@g1cloud/bpmn-modeler-next 5.0.0-alpha.35 → 5.0.0-alpha.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  var yx = Object.defineProperty;
2
2
  var vx = (e, t, n) => t in e ? yx(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var Sr = (e, t, n) => vx(e, typeof t != "symbol" ? t + "" : t, n);
3
+ var Rr = (e, t, n) => vx(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { ref as Os, defineComponent as _x, onMounted as bx, watch as xx, onBeforeUnmount as wx, openBlock as Ex, createElementBlock as Sx } from "vue";
5
5
  const kl = [
6
6
  "startEvent",
@@ -407,13 +407,13 @@ function Dl(e) {
407
407
  return Array.prototype.concat.apply([], e);
408
408
  }
409
409
  const ya = Object.prototype.toString, Ux = Object.prototype.hasOwnProperty;
410
- function Dr(e) {
410
+ function Or(e) {
411
411
  return e === void 0;
412
412
  }
413
413
  function zt(e) {
414
414
  return e !== void 0;
415
415
  }
416
- function co(e) {
416
+ function uo(e) {
417
417
  return e == null;
418
418
  }
419
419
  function Ce(e) {
@@ -437,7 +437,7 @@ function qx(e) {
437
437
  throw new Error("must supply array");
438
438
  }
439
439
  function Rn(e, t) {
440
- return !co(e) && Ux.call(e, t);
440
+ return !uo(e) && Ux.call(e, t);
441
441
  }
442
442
  function ft(e, t) {
443
443
  const n = gc(t);
@@ -464,7 +464,7 @@ function Fe(e, t) {
464
464
  }
465
465
  function k(e, t) {
466
466
  let n, i;
467
- if (Dr(e))
467
+ if (Or(e))
468
468
  return;
469
469
  const r = Ce(e) ? Qx : Zx;
470
470
  for (let o in e)
@@ -472,7 +472,7 @@ function k(e, t) {
472
472
  return n;
473
473
  }
474
474
  function Yx(e, t) {
475
- if (Dr(e))
475
+ if (Or(e))
476
476
  return [];
477
477
  qx(e);
478
478
  const n = gc(t);
@@ -485,12 +485,12 @@ function Tn(e, t, n) {
485
485
  n = t(n, i, r);
486
486
  }), n;
487
487
  }
488
- function Fr(e, t) {
488
+ function Hr(e, t) {
489
489
  return !!Tn(e, function(n, i, r) {
490
490
  return n && t(i, r);
491
491
  }, !0);
492
492
  }
493
- function nr(e, t) {
493
+ function ir(e, t) {
494
494
  return !!ft(e, t);
495
495
  }
496
496
  function fn(e, t) {
@@ -540,9 +540,9 @@ function di(e, t) {
540
540
  n.push(a);
541
541
  }), fn(n, (i) => i.v);
542
542
  }
543
- function uo(e) {
543
+ function lo(e) {
544
544
  return function(t) {
545
- return Fr(e, function(n, i) {
545
+ return Hr(e, function(n, i) {
546
546
  return t[i] === n;
547
547
  });
548
548
  };
@@ -597,7 +597,7 @@ function Jx(e, t, n) {
597
597
  if (r === "__proto__")
598
598
  throw new Error("illegal key: __proto__");
599
599
  let a = t[o + 1], s = i[r];
600
- zt(a) && co(s) && (s = i[r] = isNaN(+a) ? {} : []), Dr(a) ? Dr(n) ? delete i[r] : i[r] = n : i = s;
600
+ zt(a) && uo(s) && (s = i[r] = isNaN(+a) ? {} : []), Or(a) ? Or(n) ? delete i[r] : i[r] = n : i = s;
601
601
  }), e;
602
602
  }
603
603
  function ti(e, t) {
@@ -781,23 +781,23 @@ In.prototype.addTrait = function(e, t) {
781
781
  a || s ? this.redefineProperty(o, a || s, a) : (o.isBody && this.setBodyProperty(o), o.isId && this.setIdProperty(o), this.addProperty(o));
782
782
  }, this)), i.push(e), n[r] = e);
783
783
  };
784
- function ir(e, t) {
784
+ function rr(e, t) {
785
785
  this.packageMap = /* @__PURE__ */ Object.create(null), this.typeMap = /* @__PURE__ */ Object.create(null), this.packages = [], this.properties = t, k(e, _n(this.registerPackage, this));
786
786
  }
787
- ir.prototype.getPackage = function(e) {
787
+ rr.prototype.getPackage = function(e) {
788
788
  return this.packageMap[e];
789
789
  };
790
- ir.prototype.getPackages = function() {
790
+ rr.prototype.getPackages = function() {
791
791
  return this.packages;
792
792
  };
793
- ir.prototype.registerPackage = function(e) {
793
+ rr.prototype.registerPackage = function(e) {
794
794
  e = N({}, e);
795
795
  var t = this.packageMap;
796
796
  fd(t, e, "prefix"), fd(t, e, "uri"), k(e.types, _n(function(n) {
797
797
  this.registerType(n, e);
798
798
  }, this)), t[e.uri] = t[e.prefix] = e, this.packages.push(e);
799
799
  };
800
- ir.prototype.registerType = function(e, t) {
800
+ rr.prototype.registerType = function(e, t) {
801
801
  e = N({}, e, {
802
802
  superClass: (e.superClass || []).slice(),
803
803
  extends: (e.extends || []).slice(),
@@ -820,7 +820,7 @@ ir.prototype.registerType = function(e, t) {
820
820
  s.traits = s.traits || [], s.traits.push(i);
821
821
  }, this)), this.definePackage(e, t), this.typeMap[i] = e;
822
822
  };
823
- ir.prototype.mapTypes = function(e, t, n) {
823
+ rr.prototype.mapTypes = function(e, t, n) {
824
824
  var i = Zu(e.name) ? { name: e.name } : this.typeMap[e.name], r = this;
825
825
  function o(c, u) {
826
826
  var l = un(c, Zu(c) ? "" : e.prefix);
@@ -836,7 +836,7 @@ ir.prototype.mapTypes = function(e, t, n) {
836
836
  throw new Error("unknown type <" + e.name + ">");
837
837
  k(i.superClass, n ? a : s), t(i, !n), k(i.traits, a);
838
838
  };
839
- ir.prototype.getEffectiveDescriptor = function(e) {
839
+ rr.prototype.getEffectiveDescriptor = function(e) {
840
840
  var t = un(e), n = new In(t);
841
841
  this.mapTypes(t, function(r, o) {
842
842
  n.addTrait(r, o);
@@ -844,7 +844,7 @@ ir.prototype.getEffectiveDescriptor = function(e) {
844
844
  var i = n.build();
845
845
  return this.definePackage(i, i.allTypes[i.allTypes.length - 1].$pkg), i;
846
846
  };
847
- ir.prototype.definePackage = function(e, t) {
847
+ rr.prototype.definePackage = function(e, t) {
848
848
  this.properties.define(e, "$pkg", { value: t });
849
849
  };
850
850
  function fd(e, t, n) {
@@ -852,23 +852,23 @@ function fd(e, t, n) {
852
852
  if (i in e)
853
853
  throw new Error("package with " + n + " <" + i + "> already defined");
854
854
  }
855
- function Hr(e) {
855
+ function zr(e) {
856
856
  this.model = e;
857
857
  }
858
- Hr.prototype.set = function(e, t, n) {
858
+ zr.prototype.set = function(e, t, n) {
859
859
  if (!An(t) || !t.length)
860
860
  throw new TypeError("property name must be a non-empty string");
861
861
  var i = this.getProperty(e, t), r = i && i.name;
862
862
  t0(n) ? i ? delete e[r] : delete e.$attrs[Qu(t)] : i ? r in e ? e[r] = n : Kg(e, i, n) : e.$attrs[Qu(t)] = n;
863
863
  };
864
- Hr.prototype.get = function(e, t) {
864
+ zr.prototype.get = function(e, t) {
865
865
  var n = this.getProperty(e, t);
866
866
  if (!n)
867
867
  return e.$attrs[Qu(t)];
868
868
  var i = n.name;
869
869
  return !e[i] && n.isMany && Kg(e, n, []), e[i];
870
870
  };
871
- Hr.prototype.define = function(e, t, n) {
871
+ zr.prototype.define = function(e, t, n) {
872
872
  if (!n.writable) {
873
873
  var i = n.value;
874
874
  n = N({}, n, {
@@ -879,13 +879,13 @@ Hr.prototype.define = function(e, t, n) {
879
879
  }
880
880
  Object.defineProperty(e, t, n);
881
881
  };
882
- Hr.prototype.defineDescriptor = function(e, t) {
882
+ zr.prototype.defineDescriptor = function(e, t) {
883
883
  this.define(e, "$descriptor", { value: t });
884
884
  };
885
- Hr.prototype.defineModel = function(e, t) {
885
+ zr.prototype.defineModel = function(e, t) {
886
886
  this.define(e, "$model", { value: t });
887
887
  };
888
- Hr.prototype.getProperty = function(e, t) {
888
+ zr.prototype.getProperty = function(e, t) {
889
889
  var n = this.model, i = n.getPropertyDescriptor(e, t);
890
890
  if (i)
891
891
  return i;
@@ -915,7 +915,7 @@ function Qu(e) {
915
915
  return e.replace(/^:/, "");
916
916
  }
917
917
  function Un(e, t = {}) {
918
- this.properties = new Hr(this), this.factory = new Ug(this, this.properties), this.registry = new ir(e, this.properties), this.typeCache = /* @__PURE__ */ Object.create(null), this.config = t;
918
+ this.properties = new zr(this), this.factory = new Ug(this, this.properties), this.registry = new rr(e, this.properties), this.typeCache = /* @__PURE__ */ Object.create(null), this.config = t;
919
919
  }
920
920
  Un.prototype.create = function(e, t) {
921
921
  var n = this.getType(e);
@@ -985,7 +985,7 @@ Object.keys(ea).forEach(function(e) {
985
985
  function r0(e, t, n, i) {
986
986
  return i ? n0.call(ea, i) ? ea[i] : "&" + i + ";" : dd(t || parseInt(n, 16));
987
987
  }
988
- function Rr(e) {
988
+ function Cr(e) {
989
989
  return e.length > 3 && e.indexOf("&") !== -1 ? e.replace(i0, r0) : e;
990
990
  }
991
991
  var hd = "non-whitespace outside of root node";
@@ -1108,7 +1108,7 @@ function Xg(e) {
1108
1108
  function De() {
1109
1109
  if (U !== null)
1110
1110
  return U;
1111
- var ot, kt, nn = g && w.xmlns, rn = g && m ? [] : null, ct = $, Ct = O, on = Ct.length, Xr, $n, Jn, an, vt, ri = {}, br = /* @__PURE__ */ new Set(), yn, tt, it;
1111
+ var ot, kt, nn = g && w.xmlns, rn = g && m ? [] : null, ct = $, Ct = O, on = Ct.length, Zr, $n, Jn, an, vt, ri = {}, xr = /* @__PURE__ */ new Set(), yn, tt, it;
1112
1112
  e:
1113
1113
  for (; ct < on; ct++)
1114
1114
  if (yn = !1, tt = Ct.charCodeAt(ct), !(tt === 32 || tt < 14 && tt > 8)) {
@@ -1135,17 +1135,17 @@ function Xg(e) {
1135
1135
  ct === it && (T("illegal character after attribute end"), yn = !0);
1136
1136
  if (ct = it + 1, yn)
1137
1137
  continue e;
1138
- if (br.has(vt)) {
1138
+ if (xr.has(vt)) {
1139
1139
  T("attribute <" + vt + "> already defined");
1140
1140
  continue;
1141
1141
  }
1142
- if (br.add(vt), !g) {
1142
+ if (xr.add(vt), !g) {
1143
1143
  ri[vt] = Jn;
1144
1144
  continue;
1145
1145
  }
1146
1146
  if (m) {
1147
1147
  if ($n = vt === "xmlns" ? "xmlns" : vt.charCodeAt(0) === 120 && vt.substr(0, 6) === "xmlns:" ? vt.substr(6) : null, $n !== null) {
1148
- if (ot = Rr(Jn), kt = Ju($n), an = M[ot], !an) {
1148
+ if (ot = Cr(Jn), kt = Ju($n), an = M[ot], !an) {
1149
1149
  if ($n === "xmlns" || kt in w && w[kt] !== ot)
1150
1150
  do
1151
1151
  an = "ns" + K++;
@@ -1154,7 +1154,7 @@ function Xg(e) {
1154
1154
  an = $n;
1155
1155
  M[ot] = an;
1156
1156
  }
1157
- w[$n] !== an && (Xr || (w = a0(w), Xr = !0), w[$n] = an, $n === "xmlns" && (w[Ju(an)] = ot, nn = an), w[kt] = ot), ri[vt] = Jn;
1157
+ w[$n] !== an && (Zr || (w = a0(w), Zr = !0), w[$n] = an, $n === "xmlns" && (w[Ju(an)] = ot, nn = an), w[kt] = ot), ri[vt] = Jn;
1158
1158
  continue;
1159
1159
  }
1160
1160
  rn.push(vt, Jn);
@@ -1200,7 +1200,7 @@ function Xg(e) {
1200
1200
  }
1201
1201
  if (d || (d = !0), pe !== le) {
1202
1202
  if (S.length) {
1203
- if (n && (n(j.substring(pe, le), Rr, f), E))
1203
+ if (n && (n(j.substring(pe, le), Cr, f), E))
1204
1204
  return;
1205
1205
  } else if (j.substring(pe, le).trim() && (T(hd), E))
1206
1206
  return;
@@ -1217,7 +1217,7 @@ function Xg(e) {
1217
1217
  if (F === 45 && j.charCodeAt(le + 3) === 45) {
1218
1218
  if (pe = j.indexOf("-->", le), pe === -1)
1219
1219
  return V ? j.substring(le) : B("unclosed comment");
1220
- if (c && (c(j.substring(le + 4, pe), Rr, f), E))
1220
+ if (c && (c(j.substring(le + 4, pe), Cr, f), E))
1221
1221
  return;
1222
1222
  pe += 3;
1223
1223
  continue;
@@ -1244,7 +1244,7 @@ function Xg(e) {
1244
1244
  }
1245
1245
  }
1246
1246
  if (q === 33) {
1247
- if (l && (l(j.substring(le, pe + 1), Rr, f), E))
1247
+ if (l && (l(j.substring(le, pe + 1), Cr, f), E))
1248
1248
  return;
1249
1249
  pe += 1;
1250
1250
  continue;
@@ -1285,10 +1285,10 @@ function Xg(e) {
1285
1285
  Mt && (P = Mt + ":" + P), me[_] = P;
1286
1286
  }
1287
1287
  }
1288
- if (ge && ($ = F, O = ie, i && (t ? i(y, Rr, ye, f) : i(P, De, Rr, ye, f), E)))
1288
+ if (ge && ($ = F, O = ie, i && (t ? i(y, Cr, ye, f) : i(P, De, Cr, ye, f), E)))
1289
1289
  return;
1290
1290
  if (ye) {
1291
- if (r && (r(t ? y : P, Rr, ge, f), E))
1291
+ if (r && (r(t ? y : P, Cr, ge, f), E))
1292
1292
  return;
1293
1293
  g && (ge ? w = mt : w = x.pop());
1294
1294
  }
@@ -1481,7 +1481,7 @@ mn.prototype.referenceHandler = function(e) {
1481
1481
  return new _a(e, this.context);
1482
1482
  };
1483
1483
  mn.prototype.handler = function(e) {
1484
- return e === "Element" ? new lo(this.model, e, this.context) : new mn(this.model, e, this.context);
1484
+ return e === "Element" ? new po(this.model, e, this.context) : new mn(this.model, e, this.context);
1485
1485
  };
1486
1486
  mn.prototype.handleChild = function(e) {
1487
1487
  var t, n, i, r;
@@ -1503,19 +1503,19 @@ $l.prototype.createElement = function(e) {
1503
1503
  throw Zi("unexpected element <" + e.originalName + ">");
1504
1504
  return mn.prototype.createElement.call(this, e);
1505
1505
  };
1506
- function lo(e, t, n) {
1506
+ function po(e, t, n) {
1507
1507
  this.model = e, this.context = n;
1508
1508
  }
1509
- lo.prototype = Object.create(yc.prototype);
1510
- lo.prototype.createElement = function(e) {
1509
+ po.prototype = Object.create(yc.prototype);
1510
+ po.prototype.createElement = function(e) {
1511
1511
  var t = e.name, n = un(t), i = n.prefix, r = e.ns[i + "$uri"], o = e.attributes;
1512
1512
  return this.model.createAny(t, r, o);
1513
1513
  };
1514
- lo.prototype.handleChild = function(e) {
1515
- var t = new lo(this.model, "Element", this.context).handleNode(e), n = this.element, i = t.element, r;
1514
+ po.prototype.handleChild = function(e) {
1515
+ var t = new po(this.model, "Element", this.context).handleNode(e), n = this.element, i = t.element, r;
1516
1516
  return i !== void 0 && (r = n.$children = n.$children || [], r.push(i), i.$parent = n), t;
1517
1517
  };
1518
- lo.prototype.handleEnd = function() {
1518
+ po.prototype.handleEnd = function() {
1519
1519
  this.body && (this.element.$body = this.body);
1520
1520
  };
1521
1521
  function jl(e) {
@@ -1761,20 +1761,20 @@ Fl.prototype.build = function(e) {
1761
1761
  Fl.prototype.serializeTo = function(e) {
1762
1762
  e.appendIndent().append("<" + this.tagName + ">" + this.element.id + "</" + this.tagName + ">").appendNewLine();
1763
1763
  };
1764
- function Or() {
1764
+ function Lr() {
1765
1765
  }
1766
- Or.prototype.serializeValue = Or.prototype.serializeTo = function(e) {
1766
+ Lr.prototype.serializeValue = Lr.prototype.serializeTo = function(e) {
1767
1767
  e.append(
1768
1768
  this.escape ? C0(this.value) : this.value
1769
1769
  );
1770
1770
  };
1771
- Or.prototype.build = function(e, t) {
1771
+ Lr.prototype.build = function(e, t) {
1772
1772
  return this.value = t, e.type === "String" && t.search(ty) !== -1 && (this.escape = !0), this;
1773
1773
  };
1774
1774
  function Hl(e) {
1775
1775
  this.tagName = e;
1776
1776
  }
1777
- ny(Hl, Or);
1777
+ ny(Hl, Lr);
1778
1778
  Hl.prototype.serializeTo = function(e) {
1779
1779
  e.appendIndent().append("<" + this.tagName + ">"), this.serializeValue(e), e.append("</" + this.tagName + ">").appendNewLine();
1780
1780
  };
@@ -1813,7 +1813,7 @@ bt.prototype.parseGenericNsAttributes = function(e) {
1813
1813
  };
1814
1814
  bt.prototype.parseGenericContainments = function(e) {
1815
1815
  var t = e.$body;
1816
- t && this.body.push(new Or().build({ type: "String" }, t));
1816
+ t && this.body.push(new Lr().build({ type: "String" }, t));
1817
1817
  var n = e.$children;
1818
1818
  n && k(n, (i) => {
1819
1819
  this.body.push(new bt(this).build(i));
@@ -1859,7 +1859,7 @@ bt.prototype.parseContainments = function(e) {
1859
1859
  k(e, function(r) {
1860
1860
  var o = i.get(r.name), a = r.isReference, s = r.isMany;
1861
1861
  if (s || (o = [o]), r.isBody)
1862
- n.push(new Or().build(r, o[0]));
1862
+ n.push(new Lr().build(r, o[0]));
1863
1863
  else if (Yg(r.type))
1864
1864
  k(o, function(u) {
1865
1865
  n.push(new Hl(t.addTagName(t.nsPropertyTagName(r))).build(r, u));
@@ -1933,7 +1933,7 @@ bt.prototype.serializeAttributes = function(e) {
1933
1933
  });
1934
1934
  };
1935
1935
  bt.prototype.serializeTo = function(e) {
1936
- var t = this.body[0], n = t && t.constructor !== Or;
1936
+ var t = this.body[0], n = t && t.constructor !== Lr;
1937
1937
  e.appendIndent().append("<" + this.tagName), this.serializeAttributes(e), e.append(t ? ">" : " />"), t && (n && e.appendNewLine().indent(), k(this.body, function(i) {
1938
1938
  i.serializeTo(e);
1939
1939
  }), n && e.unindent().appendIndent(), e.append("</" + this.tagName + ">")), e.appendNewLine();
@@ -5702,12 +5702,12 @@ function Nw(e) {
5702
5702
  if (e.SVGMatrix) return;
5703
5703
  class t {
5704
5704
  constructor() {
5705
- Sr(this, "a", 1);
5706
- Sr(this, "b", 0);
5707
- Sr(this, "c", 0);
5708
- Sr(this, "d", 1);
5709
- Sr(this, "e", 0);
5710
- Sr(this, "f", 0);
5705
+ Rr(this, "a", 1);
5706
+ Rr(this, "b", 0);
5707
+ Rr(this, "c", 0);
5708
+ Rr(this, "d", 1);
5709
+ Rr(this, "e", 0);
5710
+ Rr(this, "f", 0);
5711
5711
  }
5712
5712
  static of(i, r, o, a, s, c) {
5713
5713
  return Object.assign(new t(), { a: i, b: r, c: o, d: a, e: s, f: c });
@@ -5812,7 +5812,7 @@ const Qs = /* @__PURE__ */ new Set([
5812
5812
  "bpmn:AdHocSubProcess",
5813
5813
  "bpmn:Transaction"
5814
5814
  ]), jw = 1, Fw = 2;
5815
- function Lr(e) {
5815
+ function Ir(e) {
5816
5816
  switch (e.kind) {
5817
5817
  case "label-over-line":
5818
5818
  return `L|${e.edge}|${e.line}`;
@@ -5881,7 +5881,7 @@ function DO(e, t) {
5881
5881
  for (const i of t) i.id !== e.id && zw(e, i) && n++;
5882
5882
  return n;
5883
5883
  }
5884
- function po(e, t) {
5884
+ function Qi(e, t) {
5885
5885
  let n = 0;
5886
5886
  for (const i of t) i.id !== e.id && Gl(e, i) && n++;
5887
5887
  return n;
@@ -5945,9 +5945,9 @@ function qw(e, t, n, i) {
5945
5945
  function xu(e, t, n) {
5946
5946
  return e.x + n < t.x + t.width - n && t.x + n < e.x + e.width - n && e.y + n < t.y + t.height - n && t.y + n < e.y + e.height - n;
5947
5947
  }
5948
- const Yw = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, ao = 1;
5948
+ const Yw = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, so = 1;
5949
5949
  function Ki(e, t) {
5950
- const n = e.x + ao, i = e.x + e.width - ao, r = e.y + ao, o = e.y + e.height - ao;
5950
+ const n = e.x + so, i = e.x + e.width - so, r = e.y + so, o = e.y + e.height - so;
5951
5951
  return t.axis === "h" ? t.at > r && t.at < o && t.lo < i && t.hi > n : t.at > n && t.at < i && t.lo < o && t.hi > r;
5952
5952
  }
5953
5953
  function bc(e) {
@@ -5997,7 +5997,7 @@ function Wl(e, t) {
5997
5997
  }
5998
5998
  return n;
5999
5999
  }
6000
- function Qi(e, t) {
6000
+ function Ji(e, t) {
6001
6001
  let n = 0;
6002
6002
  for (const i of t)
6003
6003
  i.id === e.id || dy(e, i) || Wl(e, [i]) > 0 && (n += i.type === e.type ? 2 : 1);
@@ -6059,7 +6059,7 @@ function Js(e) {
6059
6059
  for (const n of e.edges) n.label && t.push({ owner: n.id, rect: n.label });
6060
6060
  return t;
6061
6061
  }
6062
- function Ir(e) {
6062
+ function Nr(e) {
6063
6063
  const t = [], n = e.shapes.filter((p) => !p.container);
6064
6064
  for (const p of e.edges)
6065
6065
  for (const d of ni(p, n))
@@ -6147,12 +6147,12 @@ function Ir(e) {
6147
6147
  const u = new Set(e.shapes.filter((p) => p.type === "bpmn:TextAnnotation").map((p) => p.id));
6148
6148
  for (const p of c)
6149
6149
  for (const { owner: d, rect: h } of Js(e))
6150
- d === p.id || u.has(d) || xu(p.label, h, ao) && t.push({ kind: "pool-name-over-label", pool: p.id, label: d });
6150
+ d === p.id || u.has(d) || xu(p.label, h, so) && t.push({ kind: "pool-name-over-label", pool: p.id, label: d });
6151
6151
  const l = Js(e);
6152
6152
  for (const p of n)
6153
6153
  if (p.type === "bpmn:TextAnnotation")
6154
6154
  for (const { owner: d, rect: h } of l)
6155
- d !== p.id && xu(p, h, ao) && t.push({ kind: "annotation-over-label", annotation: p.id, label: d });
6155
+ d !== p.id && xu(p, h, so) && t.push({ kind: "annotation-over-label", annotation: p.id, label: d });
6156
6156
  const f = new Map(e.shapes.map((p) => [p.id, p]));
6157
6157
  for (const p of n) {
6158
6158
  const d = p.parent ?? Qw(p, e, f);
@@ -6160,9 +6160,9 @@ function Ir(e) {
6160
6160
  const h = f.get(d);
6161
6161
  !h || !h.container || Uw(h, p, Ww) || t.push({ kind: "shape-outside-container", shape: p.id, container: h.id });
6162
6162
  }
6163
- return t.sort((p, d) => Lr(p).localeCompare(Lr(d)));
6163
+ return t.sort((p, d) => Ir(p).localeCompare(Ir(d)));
6164
6164
  }
6165
- const _t = (e) => typeof e == "object" && e !== null ? e : void 0, Pt = (e) => typeof e == "number" ? e : 0, Nr = (e) => {
6165
+ const _t = (e) => typeof e == "object" && e !== null ? e : void 0, Pt = (e) => typeof e == "number" ? e : 0, Br = (e) => {
6166
6166
  const t = _t(e);
6167
6167
  return typeof (t == null ? void 0 : t.id) == "string" ? t.id : void 0;
6168
6168
  };
@@ -6173,7 +6173,7 @@ function eE(e) {
6173
6173
  for (const i of ["sourceRef", "targetRef"]) {
6174
6174
  const r = t[i];
6175
6175
  for (const o of Array.isArray(r) ? r : [r]) {
6176
- const a = Nr(o);
6176
+ const a = Br(o);
6177
6177
  a && n.push(a);
6178
6178
  }
6179
6179
  }
@@ -6184,11 +6184,11 @@ function tE(e, t) {
6184
6184
  if (!n) return;
6185
6185
  const i = typeof n.$type == "string" ? n.$type : "";
6186
6186
  if (i === "bpmn:Process") {
6187
- const r = Nr(n);
6187
+ const r = Br(n);
6188
6188
  return r ? t.get(r) : void 0;
6189
6189
  }
6190
6190
  if (Qs.has(i) && i !== "bpmn:Lane" && i !== "bpmn:Group")
6191
- return Nr(n);
6191
+ return Br(n);
6192
6192
  }
6193
6193
  function nE(e) {
6194
6194
  var a, s, c, u, l;
@@ -6197,7 +6197,7 @@ function nE(e) {
6197
6197
  const p = _t(f);
6198
6198
  if ((p == null ? void 0 : p.$type) === "bpmn:Collaboration")
6199
6199
  for (const d of p.participants ?? []) {
6200
- const h = _t(d), m = Nr(h), g = Nr(h == null ? void 0 : h.processRef);
6200
+ const h = _t(d), m = Br(h), g = Br(h == null ? void 0 : h.processRef);
6201
6201
  m && g ? r.set(g, m) : m && o.add(m);
6202
6202
  }
6203
6203
  }
@@ -6245,7 +6245,7 @@ function nE(e) {
6245
6245
  return { shapes: t, edges: n };
6246
6246
  }
6247
6247
  function iE(e) {
6248
- return Ir(nE(e));
6248
+ return Nr(nE(e));
6249
6249
  }
6250
6250
  async function OO(e) {
6251
6251
  const { definitions: t, warnings: n } = await sy(e);
@@ -6266,7 +6266,7 @@ function Gt(e) {
6266
6266
  id: o.id,
6267
6267
  type: a,
6268
6268
  waypoints: s.map((g) => ({ x: Pt(g.x), y: Pt(g.y) })),
6269
- endpoints: [Nr(o.source), Nr(o.target)].filter((g) => !!g),
6269
+ endpoints: [Br(o.source), Br(o.target)].filter((g) => !!g),
6270
6270
  ...m && typeof m.x == "number" ? { label: { x: m.x, y: Pt(m.y), width: Pt(m.width), height: Pt(m.height) } } : {}
6271
6271
  });
6272
6272
  continue;
@@ -6447,8 +6447,8 @@ function dE(e, t, n, i) {
6447
6447
  return a && o === 0 ? r : null;
6448
6448
  }
6449
6449
  function hE(e, t) {
6450
- const { elementRegistry: n } = e, i = e.modeling, r = Gt(n), o = Pi(r), a = Ir(r).filter(
6451
- (c) => c.kind === "edge-crosses-shape" && !t.has(Lr(c))
6450
+ const { elementRegistry: n } = e, i = e.modeling, r = Gt(n), o = Pi(r), a = Nr(r).filter(
6451
+ (c) => c.kind === "edge-crosses-shape" && !t.has(Ir(c))
6452
6452
  );
6453
6453
  if (!a.length) return;
6454
6454
  const s = /* @__PURE__ */ new Map();
@@ -6461,7 +6461,9 @@ function hE(e, t) {
6461
6461
  const l = n.get(c);
6462
6462
  if (!l) continue;
6463
6463
  const f = l.parent, p = f && typeof f.x == "number" && typeof f.width == "number" ? { x: f.x, y: f.y, width: f.width, height: f.height } : void 0, d = dE(u, o, p, r.edges);
6464
- d && i.updateWaypoints(l, d);
6464
+ if (!d) continue;
6465
+ const h = r.edges.filter((R) => R.id !== c), m = Qi(u, h);
6466
+ Qi({ ...u, waypoints: d }, h) > m || i.updateWaypoints(l, d);
6465
6467
  }
6466
6468
  }
6467
6469
  const mE = 10;
@@ -6481,14 +6483,14 @@ function gE(e, t) {
6481
6483
  if (!o || !a || o.id === a.id) return null;
6482
6484
  const s = a.y > o.y, c = s ? o : a, u = s ? a : o, l = n.filter((V) => V.id !== o.id && V.id !== a.id && V.y >= c.y + c.height && V.y + V.height <= u.y).sort((V, me) => V.y - me.y);
6483
6485
  if (!l.length) return null;
6484
- const f = l[0], p = l[l.length - 1], d = (c.y + c.height + f.y) / 2, h = (p.y + p.height + u.y) / 2, m = s ? d : h, g = s ? h : d, R = e.waypoints[0], E = e.waypoints[e.waypoints.length - 1], x = Pi(t), w = t.edges.filter((V) => V.id !== e.id), S = Qi(e, w), M = ni(e, x).length;
6486
+ const f = l[0], p = l[l.length - 1], d = (c.y + c.height + f.y) / 2, h = (p.y + p.height + u.y) / 2, m = s ? d : h, g = s ? h : d, R = e.waypoints[0], E = e.waypoints[e.waypoints.length - 1], x = Pi(t), w = t.edges.filter((V) => V.id !== e.id), S = Ji(e, w), M = ni(e, x).length;
6485
6487
  if (S === 0 && M === 0 || M === 0 && e.waypoints.length === 2) return null;
6486
6488
  const B = Math.min(...l.map((V) => V.x)), T = Math.max(...l.map((V) => V.x + V.width)), H = (R.x + E.x) / 2, G = (V) => V.filter((me, qe) => qe === 0 || !(Lt(me.x, V[qe - 1].x) && Lt(me.y, V[qe - 1].y)));
6487
6489
  let j;
6488
6490
  for (let V = B; V <= T; V += mE) {
6489
6491
  const me = G([R, { x: R.x, y: m }, { x: V, y: m }, { x: V, y: g }, { x: E.x, y: g }, E]), qe = { ...e, waypoints: me };
6490
6492
  if (ni(qe, x).length > 0) continue;
6491
- const mt = Qi(qe, w), K = Math.abs(V - H);
6493
+ const mt = Ji(qe, w), K = Math.abs(V - H);
6492
6494
  (!j || mt < j.cross || mt === j.cross && K < j.detour) && (j = { pts: me, cross: mt, detour: K });
6493
6495
  }
6494
6496
  return j && (M > 0 ? j.cross <= S : j.cross < S) ? j.pts : null;
@@ -6505,7 +6507,7 @@ function yE(e, t) {
6505
6507
  u && i.updateWaypoints(u, c);
6506
6508
  }
6507
6509
  }
6508
- const oo = [25, -25, 40, -40], es = 35;
6510
+ const ao = [25, -25, 40, -40], es = 35;
6509
6511
  function vy(e, t) {
6510
6512
  if (e.type !== "bpmn:SequenceFlow") return [];
6511
6513
  const n = t.get(e.endpoints[0] ?? ""), i = t.get(e.endpoints[1] ?? "");
@@ -6514,27 +6516,27 @@ function vy(e, t) {
6514
6516
  const r = n.y + n.height / 2;
6515
6517
  if (r >= i.y && r <= i.y + i.height) return [];
6516
6518
  const o = i.x + i.width / 2, a = n.x + n.width / 2, s = r < i.y, c = s ? i.y : i.y + i.height, u = s ? n.y : n.y + n.height, l = s ? n.y - es : n.y + n.height + es, f = [];
6517
- for (const E of [0, ...oo]) {
6519
+ for (const E of [0, ...ao]) {
6518
6520
  if (Math.abs(E) >= i.width / 2 - 5) continue;
6519
6521
  const x = o + E;
6520
6522
  f.push({ pts: [{ x: n.x, y: r }, { x, y: r }, { x, y: c }], cost: Math.abs(E) });
6521
- for (const w of [0, ...oo]) {
6523
+ for (const w of [0, ...ao]) {
6522
6524
  if (Math.abs(w) >= n.width / 2 - 5) continue;
6523
6525
  const S = a + w;
6524
6526
  f.push({ pts: [{ x: S, y: u }, { x: S, y: l }, { x, y: l }, { x, y: c }], cost: Math.abs(E) + Math.abs(w) });
6525
6527
  }
6526
6528
  }
6527
6529
  const p = 50, d = i.y + i.height / 2, h = s ? n.y + n.height : n.y;
6528
- for (const E of [0, ...oo]) {
6530
+ for (const E of [0, ...ao]) {
6529
6531
  if (Math.abs(E) >= n.width / 2 - 5) continue;
6530
6532
  const x = a + E;
6531
6533
  f.push({ pts: [{ x, y: h }, { x, y: d }, { x: i.x + i.width, y: d }], cost: p + Math.abs(E) });
6532
6534
  }
6533
6535
  const m = 60, g = s ? i.y + i.height : i.y, R = s ? i.y + i.height + es : i.y - es;
6534
- for (const E of [0, ...oo]) {
6536
+ for (const E of [0, ...ao]) {
6535
6537
  if (Math.abs(E) >= i.width / 2 - 5) continue;
6536
6538
  const x = o + E;
6537
- for (const w of [0, ...oo]) {
6539
+ for (const w of [0, ...ao]) {
6538
6540
  if (Math.abs(w) >= n.width / 2 - 5) continue;
6539
6541
  const S = a + w;
6540
6542
  f.push({ pts: [{ x: S, y: h }, { x: S, y: R }, { x, y: R }, { x, y: g }], cost: m + Math.abs(E) + Math.abs(w) });
@@ -6578,7 +6580,7 @@ function vE(e, t, n) {
6578
6580
  }
6579
6581
  function _E(e, t) {
6580
6582
  if (e.type !== "bpmn:SequenceFlow") return null;
6581
- const n = t.shapes.filter((E) => E.container), i = new Map(t.shapes.map((E) => [E.id, E])), r = Pi(t), o = t.edges.filter((E) => E.id !== e.id), a = po(e, o), s = Qi(e, o), c = (E) => vE(E, t.shapes, e.endpoints) + (Sd(E, n) ? 1 : 0), u = c(e.waypoints), l = (E) => {
6583
+ const n = t.shapes.filter((E) => E.container), i = new Map(t.shapes.map((E) => [E.id, E])), r = Pi(t), o = t.edges.filter((E) => E.id !== e.id), a = Qi(e, o), s = Ji(e, o), c = (E) => vE(E, t.shapes, e.endpoints) + (Sd(E, n) ? 1 : 0), u = c(e.waypoints), l = (E) => {
6582
6584
  if (!E) return;
6583
6585
  const x = E.x + E.width / 2, w = E.y + E.height / 2;
6584
6586
  return n.find((S) => S.type === "bpmn:Lane" && x >= S.x && x <= S.x + S.width && w >= S.y && w <= S.y + S.height);
@@ -6595,7 +6597,7 @@ function _E(e, t) {
6595
6597
  let R;
6596
6598
  for (const { pts: E, cost: x } of vy(e, i)) {
6597
6599
  const w = { ...e, waypoints: E };
6598
- if (ni(w, r).length > 0 || po(w, o) > a || Qi(w, o) > s) continue;
6600
+ if (ni(w, r).length > 0 || Qi(w, o) > a || Ji(w, o) > s) continue;
6599
6601
  const S = c(E), M = h(E);
6600
6602
  if (!(M && !m) && S >= u) continue;
6601
6603
  const T = M ? 0 : 1, H = g(E);
@@ -6608,11 +6610,11 @@ function bE(e, t) {
6608
6610
  for (const o of r) {
6609
6611
  const a = Gt(n), s = a.edges.find((d) => d.id === o);
6610
6612
  if (!s || s.waypoints.length < 4) continue;
6611
- const c = Pi(a), u = a.edges.filter((d) => d.id !== o), l = ni(s, c).length, f = po(s, u), p = Qi(s, u);
6613
+ const c = Pi(a), u = a.edges.filter((d) => d.id !== o), l = ni(s, c).length, f = Qi(s, u), p = Ji(s, u);
6612
6614
  for (const d of yy(s, a.shapes)) {
6613
6615
  if (d.length >= s.waypoints.length) continue;
6614
6616
  const h = { ...s, waypoints: d };
6615
- if (ni(h, c).length > l || po(h, u) > f || Qi(h, u) > p) continue;
6617
+ if (ni(h, c).length > l || Qi(h, u) > f || Ji(h, u) > p) continue;
6616
6618
  const m = n.get(o);
6617
6619
  m && i.updateWaypoints(m, d);
6618
6620
  break;
@@ -6634,7 +6636,7 @@ function wE(e, t) {
6634
6636
  const n = e.waypoints;
6635
6637
  if (n.length < 3) return [];
6636
6638
  const i = [], r = t.get(e.endpoints[0] ?? ""), o = t.get(e.endpoints[1] ?? ""), a = Lt(n[0].x, n[1].x) && !Lt(n[0].y, n[1].y), s = Lt(n[n.length - 1].x, n[n.length - 2].x) && !Lt(n[n.length - 1].y, n[n.length - 2].y);
6637
- for (const c of oo) {
6639
+ for (const c of ao) {
6638
6640
  if (a && r && Math.abs(c) < r.width / 2 - 5) {
6639
6641
  const u = n.map((l) => ({ ...l }));
6640
6642
  u[0].x += c, u[1].x += c, i.push({ pts: u, cost: Math.abs(c) });
@@ -6647,15 +6649,15 @@ function wE(e, t) {
6647
6649
  return i;
6648
6650
  }
6649
6651
  function EE(e, t) {
6650
- const n = new Map(t.shapes.map((l) => [l.id, l])), i = Pi(t), r = t.edges.filter((l) => l.id !== e.id), o = po(e, r);
6652
+ const n = new Map(t.shapes.map((l) => [l.id, l])), i = Pi(t), r = t.edges.filter((l) => l.id !== e.id), o = Qi(e, r);
6651
6653
  if (o === 0) return null;
6652
- const a = Qi(e, r);
6654
+ const a = Ji(e, r);
6653
6655
  let s;
6654
6656
  const c = (l) => l.reduce((f, p, d) => d ? f + Math.abs(p.x - l[d - 1].x) + Math.abs(p.y - l[d - 1].y) : 0, 0), u = [...vy(e, n), ...wE(e, n)];
6655
6657
  for (const { pts: l, cost: f } of u) {
6656
6658
  const p = { ...e, waypoints: l };
6657
6659
  if (ni(p, i).length > 0) continue;
6658
- const d = po(p, r), h = Qi(p, r);
6660
+ const d = Qi(p, r), h = Ji(p, r);
6659
6661
  if (d >= o || h - a > o - d) continue;
6660
6662
  const m = c(l);
6661
6663
  (!s || d < s.opposite || d === s.opposite && (h < s.cross || h === s.cross && (f < s.cost || f === s.cost && m < s.len))) && (s = { pts: l, opposite: d, cross: h, cost: f, len: m });
@@ -6663,8 +6665,8 @@ function EE(e, t) {
6663
6665
  return (s == null ? void 0 : s.pts) ?? null;
6664
6666
  }
6665
6667
  function SE(e, t, n) {
6666
- const { elementRegistry: i } = e, r = e.modeling, o = Gt(i), a = Ir(o).filter(
6667
- (l) => (l.kind === "edge-overlap-opposite" || l.kind === "edge-overlap-mixed") && !t.has(Lr(l))
6668
+ const { elementRegistry: i } = e, r = e.modeling, o = Gt(i), a = Nr(o).filter(
6669
+ (l) => (l.kind === "edge-overlap-opposite" || l.kind === "edge-overlap-mixed") && !t.has(Ir(l))
6668
6670
  );
6669
6671
  if (!a.length) return;
6670
6672
  const s = /* @__PURE__ */ new Set();
@@ -6754,8 +6756,8 @@ function TE(e, t) {
6754
6756
  }
6755
6757
  }
6756
6758
  function ME(e, t, n) {
6757
- const { elementRegistry: i } = e, r = e.modeling, o = Gt(i), a = Ir(o).filter(
6758
- (s) => s.kind === "label-on-shared-segment" && !t.has(Lr(s))
6759
+ const { elementRegistry: i } = e, r = e.modeling, o = Gt(i), a = Nr(o).filter(
6760
+ (s) => s.kind === "label-on-shared-segment" && !t.has(Ir(s))
6759
6761
  );
6760
6762
  for (const s of a) {
6761
6763
  if (s.kind !== "label-on-shared-segment" || n.has(s.edge)) continue;
@@ -7529,8 +7531,8 @@ function BE(e, t) {
7529
7531
  if (rt === void 0) continue;
7530
7532
  const dn = Q(Ze.node.lane, rt, Number.NaN);
7531
7533
  if (Number.isNaN(dn)) continue;
7532
- const Er = ne(Ze.node.id), Yt = ae(Er);
7533
- Yt && fe.push({ subtree: Er, band: rt, row: dn, dir: Yt });
7534
+ const Sr = ne(Ze.node.id), Yt = ae(Sr);
7535
+ Yt && fe.push({ subtree: Sr, band: rt, row: dn, dir: Yt });
7534
7536
  }
7535
7537
  if (!fe.some((Te) => Te.dir === "up") || !fe.some((Te) => Te.dir === "down") || !fe.some((Te) => Te.dir === "up" && fe.some((Ze) => Ze.dir === "down" && Ze.row < Te.row))) continue;
7536
7538
  const at = [...fe].sort((Te, Ze) => Te.row - Ze.row);
@@ -7575,9 +7577,9 @@ function BE(e, t) {
7575
7577
  if (!Ze || Y(Ze.subtree) === Xe || ae(Ze.subtree) === Xe) continue;
7576
7578
  const rt = Te.find((Yt) => Yt !== Ze && Y(Yt.subtree) === Xe);
7577
7579
  if (!rt) continue;
7578
- const dn = Ze.band, Er = rt.band;
7579
- for (const Yt of Ze.subtree) pe(Yt) === dn && le.set(Yt.node.id, Er);
7580
- for (const Yt of rt.subtree) pe(Yt) === Er && le.set(Yt.node.id, dn);
7580
+ const dn = Ze.band, Sr = rt.band;
7581
+ for (const Yt of Ze.subtree) pe(Yt) === dn && le.set(Yt.node.id, Sr);
7582
+ for (const Yt of rt.subtree) pe(Yt) === Sr && le.set(Yt.node.id, dn);
7581
7583
  Ve.add(ee.node.id);
7582
7584
  }
7583
7585
  for (const ee of C.nodes) {
@@ -7613,9 +7615,9 @@ function BE(e, t) {
7613
7615
  const rt = we.y < A.y;
7614
7616
  if (rt && Ze < 0 || !rt && Ze > 0) continue;
7615
7617
  let dn;
7616
- for (const [Er, Yt] of Xe) {
7618
+ for (const [Sr, Yt] of Xe) {
7617
7619
  const jn = Yt - Te;
7618
- (rt && jn < 0 && (!dn || jn < dn.row) || !rt && jn > 0 && (!dn || jn > dn.row)) && (dn = { band: Er, row: jn });
7620
+ (rt && jn < 0 && (!dn || jn < dn.row) || !rt && jn > 0 && (!dn || jn > dn.row)) && (dn = { band: Sr, row: jn });
7619
7621
  }
7620
7622
  dn && Ae.set(ee.node.id, { lane: ee.node.lane, band: dn.band });
7621
7623
  }
@@ -7754,10 +7756,10 @@ function BE(e, t) {
7754
7756
  businessObject: i.create("bpmn:MessageFlow", { id: C.id, name: C.name })
7755
7757
  });
7756
7758
  }
7757
- const ct = 20, Ct = 30, on = 4, Xr = 2, $n = [10, 30, 80], Jn = (b) => !("waypoints" in b && b.waypoints) && b.type !== "bpmn:Lane" && b.type !== "label" && typeof b.x == "number", an = () => {
7759
+ const ct = 20, Ct = 30, on = 4, Zr = 2, $n = [10, 30, 80], Jn = (b) => !("waypoints" in b && b.waypoints) && b.type !== "bpmn:Lane" && b.type !== "label" && typeof b.x == "number", an = () => {
7758
7760
  const b = Gt(o);
7759
7761
  return {
7760
- bad: Ir(b).filter(
7762
+ bad: Nr(b).filter(
7761
7763
  (C) => C.kind === "edge-crosses-shape" || C.kind === "edge-overlap-opposite" || C.kind === "edge-overlap-mixed"
7762
7764
  ).length,
7763
7765
  // 교차 축은 비용(같은 종류 2 · 다른 종류 1 — B-18 ⓑ)
@@ -7768,7 +7770,7 @@ function BE(e, t) {
7768
7770
  }, vt = (b) => {
7769
7771
  const C = Gt(o), A = C.edges.find((L) => L.id === b);
7770
7772
  return A ? ni(A, Pi(C)).length : 0;
7771
- }, ri = (b) => vt(b) > 0, br = (b) => Gt(o).edges.filter(
7773
+ }, ri = (b) => vt(b) > 0, xr = (b) => Gt(o).edges.filter(
7772
7774
  (C) => C.type === "bpmn:MessageFlow" && C.id !== b && C.waypoints.length === 2
7773
7775
  ).length, yn = (b, C) => {
7774
7776
  const A = new Set(b.flatMap((D) => D.subtree.map((W) => W.id)));
@@ -7802,12 +7804,12 @@ function BE(e, t) {
7802
7804
  if (!D) return !1;
7803
7805
  const W = an();
7804
7806
  return L(I, W) || !A() ? (D(), !1) : !0;
7805
- }, If = (b, C, A, L = () => !0) => Ka([{ subtree: b, pool: C }], A, L), xr = (b) => {
7807
+ }, If = (b, C, A, L = () => !0) => Ka([{ subtree: b, pool: C }], A, L), wr = (b) => {
7806
7808
  var C;
7807
7809
  return !!((C = S.get(b)) != null && C.node.participant);
7808
7810
  }, jo = /* @__PURE__ */ new Map();
7809
7811
  for (const b of g) {
7810
- if (!xr(b.flow.target)) continue;
7812
+ if (!wr(b.flow.target)) continue;
7811
7813
  const C = jo.get(b.flow.target) ?? [];
7812
7814
  C.push(b), jo.set(b.flow.target, C);
7813
7815
  }
@@ -7817,7 +7819,7 @@ function BE(e, t) {
7817
7819
  const A = Nf.has(b) ? 1 : 0, L = Nf.has(C) ? 1 : 0;
7818
7820
  return A !== L ? A - L : Bf((I = S.get(b)) == null ? void 0 : I.node.participant) - Bf((D = S.get(C)) == null ? void 0 : D.node.participant);
7819
7821
  });
7820
- const wr = (b) => b.x + b.width / 2, lx = (b) => {
7822
+ const Er = (b) => b.x + b.width / 2, lx = (b) => {
7821
7823
  const C = /* @__PURE__ */ new Map();
7822
7824
  for (const I of o.getAll()) {
7823
7825
  const D = I;
@@ -7837,14 +7839,14 @@ function BE(e, t) {
7837
7839
  if (D.type !== "bpmn:MessageFlow" || !D.source || !D.target || D.target.id !== b || A.has(D.source.id)) continue;
7838
7840
  const W = D.source;
7839
7841
  if (typeof W.x != "number" || W.type === "bpmn:Participant") continue;
7840
- const Q = wr(W);
7842
+ const Q = Er(W);
7841
7843
  (L === void 0 || Q > L) && (L = Q);
7842
7844
  }
7843
7845
  return L;
7844
7846
  }, _u = (b, C) => {
7845
7847
  const A = l(b.flow.source);
7846
7848
  if (A)
7847
- return A.type === "bpmn:Participant" ? px(A.id, C) : wr(A);
7849
+ return A.type === "bpmn:Participant" ? px(A.id, C) : Er(A);
7848
7850
  }, $f = (b) => {
7849
7851
  let C;
7850
7852
  for (const A of jo.get(b) ?? []) {
@@ -7854,7 +7856,7 @@ function BE(e, t) {
7854
7856
  return C == null ? void 0 : C.op;
7855
7857
  }, fx = (b) => {
7856
7858
  const C = $f(b), A = l(b), L = C ? _u(C, b) : void 0;
7857
- return A && L !== void 0 ? L - wr(A) : void 0;
7859
+ return A && L !== void 0 ? L - Er(A) : void 0;
7858
7860
  }, dx = (b) => {
7859
7861
  const C = fx(b);
7860
7862
  return C !== void 0 && Math.abs(C) < ct;
@@ -7867,7 +7869,7 @@ function BE(e, t) {
7867
7869
  const J = C.has(Q.flow.source), re = C.has(Q.flow.target);
7868
7870
  if (J === re || L(J ? Q.flow.source : Q.flow.target)) continue;
7869
7871
  const Be = J ? Q.flow.target : Q.flow.source;
7870
- if (I(Be) || !xr(Be)) continue;
7872
+ if (I(Be) || !wr(Be)) continue;
7871
7873
  const Ie = l(Q.flow.id);
7872
7874
  if (!(Ie != null && Ie.waypoints) || Ie.waypoints.length !== 2) continue;
7873
7875
  const de = l(Be), Se = (D = S.get(Be)) == null ? void 0 : D.node.participant;
@@ -7891,12 +7893,12 @@ function BE(e, t) {
7891
7893
  if (!C) return null;
7892
7894
  const A = l(b), L = l(C.flow.source), I = _u(C, b);
7893
7895
  if (!A || !L || I === void 0) return null;
7894
- const D = I - wr(A);
7896
+ const D = I - Er(A);
7895
7897
  if (D >= ct) {
7896
7898
  const W = S.get(b).node.participant, Q = dt(b, (J) => J.x >= A.x);
7897
7899
  return { groups: Ff(Q, W, b, C.flow.id, C.flow.source), dx: D };
7898
7900
  }
7899
- if (-D >= ct && xr(C.flow.source)) {
7901
+ if (-D >= ct && wr(C.flow.source)) {
7900
7902
  const W = S.get(C.flow.source).node.participant, Q = dt(C.flow.source, (J) => J.x >= L.x && !dx(J.id));
7901
7903
  return { groups: Ff(Q, W, C.flow.source, C.flow.id, b), dx: -D };
7902
7904
  }
@@ -7926,9 +7928,9 @@ function BE(e, t) {
7926
7928
  if (!ri(b.flow.id)) continue;
7927
7929
  const C = l(b.flow.target);
7928
7930
  if (!C) continue;
7929
- const A = f(S.get(b.flow.target).node.participant), L = dt(b.flow.target, (Q) => Q.x >= C.x), I = C.width + G, D = vt(b.flow.id), W = br(b.flow.id);
7931
+ const A = f(S.get(b.flow.target).node.participant), L = dt(b.flow.target, (Q) => Q.x >= C.x), I = C.width + G, D = vt(b.flow.id), W = xr(b.flow.id);
7930
7932
  for (let Q = 1; Q <= on; Q++) {
7931
- const J = () => vt(b.flow.id) < D && br(b.flow.id) >= W;
7933
+ const J = () => vt(b.flow.id) < D && xr(b.flow.id) >= W;
7932
7934
  if (If(L, A, I * Q, J)) break;
7933
7935
  }
7934
7936
  }
@@ -7945,7 +7947,7 @@ function BE(e, t) {
7945
7947
  const Be = [...S.values()].filter((nt) => nt.node.participant === J).map((nt) => nt.node.id), Ie = (nt) => nt.map((yt) => l(yt)).filter((yt) => !!yt), Se = [ot(Q.id, (nt) => {
7946
7948
  var yt;
7947
7949
  return ((yt = S.get(nt.id)) == null ? void 0 : yt.node.participant) === J;
7948
- }), Ie(Be)].filter((nt) => nt.length), he = Q.width + G, ve = vt(b.flow.id), ht = br(b.flow.id), Ae = () => vt(b.flow.id) < ve && br(b.flow.id) >= ht;
7950
+ }), Ie(Be)].filter((nt) => nt.length), he = Q.width + G, ve = vt(b.flow.id), ht = xr(b.flow.id), Ae = () => vt(b.flow.id) < ve && xr(b.flow.id) >= ht;
7949
7951
  let Ye = !1;
7950
7952
  for (const nt of Se) {
7951
7953
  for (let yt = 1; yt <= on; yt++)
@@ -7963,8 +7965,8 @@ function BE(e, t) {
7963
7965
  const C = l(b.flow.id);
7964
7966
  if (((Qf = C == null ? void 0 : C.waypoints) == null ? void 0 : Qf.length) !== 2) continue;
7965
7967
  const A = l(b.flow.source), L = l(b.flow.target);
7966
- if (!A || !L || A.type === "bpmn:Participant" || L.type === "bpmn:Participant" || !xr(b.flow.source) || !xr(b.flow.target) || Math.abs(wr(A) - wr(L)) > Xr) continue;
7967
- const I = wr(A), D = C.waypoints.map((ve) => ve.y), [W, Q] = [Math.min(...D), Math.max(...D)], J = Pi(Gt(o)).filter(
7968
+ if (!A || !L || A.type === "bpmn:Participant" || L.type === "bpmn:Participant" || !wr(b.flow.source) || !wr(b.flow.target) || Math.abs(Er(A) - Er(L)) > Zr) continue;
7969
+ const I = Er(A), D = C.waypoints.map((ve) => ve.y), [W, Q] = [Math.min(...D), Math.max(...D)], J = Pi(Gt(o)).filter(
7968
7970
  (ve) => ve.id !== A.id && ve.id !== L.id && ve.x < I && I < ve.x + ve.width && W < ve.y + ve.height && ve.y < Q
7969
7971
  );
7970
7972
  if (!J.length) continue;
@@ -7997,7 +7999,7 @@ function BE(e, t) {
7997
7999
  {
7998
8000
  const b = (A) => A.y + A.height / 2, C = [];
7999
8001
  for (const A of S.keys()) {
8000
- if (!xr(A)) continue;
8002
+ if (!wr(A)) continue;
8001
8003
  const L = m.filter((W) => W.flow.target === A);
8002
8004
  if (L.length !== 1) continue;
8003
8005
  const I = l(L[0].flow.source), D = l(A);
@@ -8128,7 +8130,7 @@ function BE(e, t) {
8128
8130
  }
8129
8131
  return !0;
8130
8132
  }, ht = o.filter((Ae) => Jn(Ae)).filter(
8131
- (Ae) => Ae.type !== "bpmn:Group" && Ae.type !== "bpmn:Participant" && Ae.type !== "bpmn:TextAnnotation" && !J.has(Ae.id) && xr(Ae.id) && ve(Ae.id) && Ae.x < Ie && Ae.x + Ae.width > Be && Ae.y < Se && Ae.y + Ae.height > de
8133
+ (Ae) => Ae.type !== "bpmn:Group" && Ae.type !== "bpmn:Participant" && Ae.type !== "bpmn:TextAnnotation" && !J.has(Ae.id) && wr(Ae.id) && ve(Ae.id) && Ae.x < Ie && Ae.x + Ae.width > Be && Ae.y < Se && Ae.y + Ae.height > de
8132
8134
  );
8133
8135
  if (ht.length)
8134
8136
  for (const Ae of [-1, 1]) {
@@ -8371,7 +8373,7 @@ function BE(e, t) {
8371
8373
  function $E(e, t, n = BE) {
8372
8374
  const i = NE(e), r = IE(t, aE(i.elementRegistry)), o = { edgeCrossings: { before: 0, after: 0, pairs: [] } };
8373
8375
  if (r.length) return { ok: !1, issues: r, findings: [], stats: o };
8374
- const a = Gt(i.elementRegistry), s = new Set(Ir(a).map(Lr)), c = new Set(a.edges.map((m) => m.id)), u = new Set(a.shapes.map((m) => m.id)), l = bd(a).length, f = e.get("commandStack");
8376
+ const a = Gt(i.elementRegistry), s = new Set(Nr(a).map(Ir)), c = new Set(a.edges.map((m) => m.id)), u = new Set(a.shapes.map((m) => m.id)), l = bd(a).length, f = e.get("commandStack");
8375
8377
  try {
8376
8378
  Tx(f, () => {
8377
8379
  n(t, i), yE(i, c), hE(i, s), SE(i, s, c), xE(i, c), bE(i, c), ME(i, s, c), TE(i, c), DE(i, u);
@@ -8384,7 +8386,7 @@ function $E(e, t, n = BE) {
8384
8386
  stats: o
8385
8387
  };
8386
8388
  }
8387
- const p = Gt(i.elementRegistry), d = Ir(p).filter((m) => !s.has(Lr(m))), h = bd(p);
8389
+ const p = Gt(i.elementRegistry), d = Nr(p).filter((m) => !s.has(Ir(m))), h = bd(p);
8388
8390
  return {
8389
8391
  ok: !0,
8390
8392
  issues: [],
@@ -8824,32 +8826,32 @@ function ln(e, t, n) {
8824
8826
  }
8825
8827
  const KE = Object.prototype.toString;
8826
8828
  function xt(e) {
8827
- return new Ji(e);
8829
+ return new er(e);
8828
8830
  }
8829
- function Ji(e) {
8831
+ function er(e) {
8830
8832
  if (!e || !e.nodeType)
8831
8833
  throw new Error("A DOM element reference is required");
8832
8834
  this.el = e, this.list = e.classList;
8833
8835
  }
8834
- Ji.prototype.add = function(e) {
8836
+ er.prototype.add = function(e) {
8835
8837
  return this.list.add(e), this;
8836
8838
  };
8837
- Ji.prototype.remove = function(e) {
8839
+ er.prototype.remove = function(e) {
8838
8840
  return KE.call(e) == "[object RegExp]" ? this.removeMatching(e) : (this.list.remove(e), this);
8839
8841
  };
8840
- Ji.prototype.removeMatching = function(e) {
8842
+ er.prototype.removeMatching = function(e) {
8841
8843
  const t = this.array();
8842
8844
  for (let n = 0; n < t.length; n++)
8843
8845
  e.test(t[n]) && this.remove(t[n]);
8844
8846
  return this;
8845
8847
  };
8846
- Ji.prototype.toggle = function(e, t) {
8848
+ er.prototype.toggle = function(e, t) {
8847
8849
  return typeof t < "u" ? t !== this.list.toggle(e, t) && this.list.toggle(e) : this.list.toggle(e), this;
8848
8850
  };
8849
- Ji.prototype.array = function() {
8851
+ er.prototype.array = function() {
8850
8852
  return Array.from(this.list);
8851
8853
  };
8852
- Ji.prototype.has = Ji.prototype.contains = function(e) {
8854
+ er.prototype.has = er.prototype.contains = function(e) {
8853
8855
  return this.list.contains(e);
8854
8856
  };
8855
8857
  function xc(e) {
@@ -8857,7 +8859,7 @@ function xc(e) {
8857
8859
  e.removeChild(t);
8858
8860
  return e;
8859
8861
  }
8860
- function zr(e, t, n) {
8862
+ function Gr(e, t, n) {
8861
8863
  var i = n ? e : e.parentNode;
8862
8864
  return i && typeof i.closest == "function" && i.closest(t) || null;
8863
8865
  }
@@ -8885,7 +8887,7 @@ var _y = ZE(), QE = /* @__PURE__ */ XE(_y), ke = /* @__PURE__ */ YE({
8885
8887
  function JE(e, t, n, i, r) {
8886
8888
  return by.indexOf(n) !== -1 && (r = !0), ke.bind(e, n, function(o) {
8887
8889
  var a = o.target || o.srcElement;
8888
- o.delegateTarget = zr(a, t, !0), o.delegateTarget && i.call(e, o);
8890
+ o.delegateTarget = Gr(a, t, !0), o.delegateTarget && i.call(e, o);
8889
8891
  }, r);
8890
8892
  }
8891
8893
  function e1(e, t, n, i) {
@@ -9008,32 +9010,32 @@ function se(e, t, n) {
9008
9010
  }
9009
9011
  const o1 = Object.prototype.toString;
9010
9012
  function Ue(e) {
9011
- return new er(e);
9013
+ return new tr(e);
9012
9014
  }
9013
- function er(e) {
9015
+ function tr(e) {
9014
9016
  if (!e || !e.nodeType)
9015
9017
  throw new Error("A DOM element reference is required");
9016
9018
  this.el = e, this.list = e.classList;
9017
9019
  }
9018
- er.prototype.add = function(e) {
9020
+ tr.prototype.add = function(e) {
9019
9021
  return this.list.add(e), this;
9020
9022
  };
9021
- er.prototype.remove = function(e) {
9023
+ tr.prototype.remove = function(e) {
9022
9024
  return o1.call(e) == "[object RegExp]" ? this.removeMatching(e) : (this.list.remove(e), this);
9023
9025
  };
9024
- er.prototype.removeMatching = function(e) {
9026
+ tr.prototype.removeMatching = function(e) {
9025
9027
  const t = this.array();
9026
9028
  for (let n = 0; n < t.length; n++)
9027
9029
  e.test(t[n]) && this.remove(t[n]);
9028
9030
  return this;
9029
9031
  };
9030
- er.prototype.toggle = function(e, t) {
9032
+ tr.prototype.toggle = function(e, t) {
9031
9033
  return typeof t < "u" ? t !== this.list.toggle(e, t) && this.list.toggle(e) : this.list.toggle(e), this;
9032
9034
  };
9033
- er.prototype.array = function() {
9035
+ tr.prototype.array = function() {
9034
9036
  return Array.from(this.list);
9035
9037
  };
9036
- er.prototype.has = er.prototype.contains = function(e) {
9038
+ tr.prototype.has = tr.prototype.contains = function(e) {
9037
9039
  return this.list.contains(e);
9038
9040
  };
9039
9041
  function wc(e) {
@@ -9354,7 +9356,7 @@ Mi.prototype.getShapePath = function(e) {
9354
9356
  };
9355
9357
  Mi.prototype.getConnectionPath = function(e) {
9356
9358
  };
9357
- function Gr(e) {
9359
+ function Vr(e) {
9358
9360
  return e.flat().join(",").replace(/,?([A-Za-z]),?/g, "$1");
9359
9361
  }
9360
9362
  function w1(e) {
@@ -9406,7 +9408,7 @@ function ba(e, t, n) {
9406
9408
  function Yl(e, t) {
9407
9409
  const n = parseInt(e.dataset.cornerRadius, 10) || 0;
9408
9410
  return se(e, {
9409
- d: Gr(S1(t, n))
9411
+ d: Vr(S1(t, n))
9410
9412
  }), e;
9411
9413
  }
9412
9414
  function Ec(e) {
@@ -9420,15 +9422,15 @@ function Ec(e) {
9420
9422
  return !0;
9421
9423
  });
9422
9424
  }
9423
- function Vr(e, t, n) {
9425
+ function Wr(e, t, n) {
9424
9426
  n = n || 0, Ce(e) || (e = [e]), k(e, function(i, r) {
9425
9427
  var o = t(i, r, n);
9426
- Ce(o) && o.length && Vr(o, t, n + 1);
9428
+ Ce(o) && o.length && Wr(o, t, n + 1);
9427
9429
  });
9428
9430
  }
9429
9431
  function Kl(e, t, n) {
9430
9432
  var i = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
9431
- return Vr(e, function(o, a, s) {
9433
+ return Wr(e, function(o, a, s) {
9432
9434
  i.add(o);
9433
9435
  var c = o.children;
9434
9436
  if (c && !r.has(c))
@@ -9439,7 +9441,7 @@ function xa(e, t) {
9439
9441
  return Kl(e);
9440
9442
  }
9441
9443
  function R1(e, t, n) {
9442
- Dr(t) && (t = !0), qt(t) && (n = t, t = !0), n = n || {};
9444
+ Or(t) && (t = !0), qt(t) && (n = t, t = !0), n = n || {};
9443
9445
  var i = Ho(n.allShapes), r = Ho(n.allConnections), o = Ho(n.enclosedElements), a = Ho(n.enclosedConnections), s = Ho(
9444
9446
  n.topLevel,
9445
9447
  t && wo(e, function(l) {
@@ -9455,7 +9457,7 @@ function R1(e, t, n) {
9455
9457
  else
9456
9458
  return i[l.id] = l, k(l.incoming, c), k(l.outgoing, c), l.children;
9457
9459
  }
9458
- return Vr(e, u), {
9460
+ return Wr(e, u), {
9459
9461
  allShapes: i,
9460
9462
  allConnections: r,
9461
9463
  topLevel: s,
@@ -9495,14 +9497,14 @@ function Ho(e, t) {
9495
9497
  return N({}, e || {}, t || {});
9496
9498
  }
9497
9499
  var C1 = 1;
9498
- function rr(e, t) {
9500
+ function or(e, t) {
9499
9501
  Mi.call(this, e, C1), this.CONNECTION_STYLE = t.style(["no-fill"], { strokeWidth: 5, stroke: "fuchsia" }), this.SHAPE_STYLE = t.style({ fill: "white", stroke: "fuchsia", strokeWidth: 2 }), this.FRAME_STYLE = t.style(["no-fill"], { stroke: "fuchsia", strokeDasharray: 4, strokeWidth: 2 });
9500
9502
  }
9501
- ce(rr, Mi);
9502
- rr.prototype.canRender = function() {
9503
+ ce(or, Mi);
9504
+ or.prototype.canRender = function() {
9503
9505
  return !0;
9504
9506
  };
9505
- rr.prototype.drawShape = function(t, n, i) {
9507
+ or.prototype.drawShape = function(t, n, i) {
9506
9508
  var r = _e("rect");
9507
9509
  return se(r, {
9508
9510
  x: 0,
@@ -9511,11 +9513,11 @@ rr.prototype.drawShape = function(t, n, i) {
9511
9513
  height: n.height || 0
9512
9514
  }), Ay(n) ? se(r, N({}, this.FRAME_STYLE, i || {})) : se(r, N({}, this.SHAPE_STYLE, i || {})), Oe(t, r), r;
9513
9515
  };
9514
- rr.prototype.drawConnection = function(t, n, i) {
9516
+ or.prototype.drawConnection = function(t, n, i) {
9515
9517
  var r = ba(n.waypoints, N({}, this.CONNECTION_STYLE, i || {}));
9516
9518
  return Oe(t, r), r;
9517
9519
  };
9518
- rr.prototype.getShapePath = function(t) {
9520
+ or.prototype.getShapePath = function(t) {
9519
9521
  var n = t.x, i = t.y, r = t.width, o = t.height, a = [
9520
9522
  ["M", n, i],
9521
9523
  ["l", r, 0],
@@ -9523,15 +9525,15 @@ rr.prototype.getShapePath = function(t) {
9523
9525
  ["l", -r, 0],
9524
9526
  ["z"]
9525
9527
  ];
9526
- return Gr(a);
9528
+ return Vr(a);
9527
9529
  };
9528
- rr.prototype.getConnectionPath = function(t) {
9530
+ or.prototype.getConnectionPath = function(t) {
9529
9531
  var n = t.waypoints, i, r, o = [];
9530
9532
  for (i = 0; r = n[i]; i++)
9531
9533
  r = r.original || r, o.push([i === 0 ? "M" : "L", r.x, r.y]);
9532
- return Gr(o);
9534
+ return Vr(o);
9533
9535
  };
9534
- rr.$inject = ["eventBus", "styles"];
9536
+ or.$inject = ["eventBus", "styles"];
9535
9537
  function P1() {
9536
9538
  var e = {
9537
9539
  "no-fill": {
@@ -9559,7 +9561,7 @@ function P1() {
9559
9561
  }
9560
9562
  const A1 = {
9561
9563
  __init__: ["defaultRenderer"],
9562
- defaultRenderer: ["type", rr],
9564
+ defaultRenderer: ["type", or],
9563
9565
  styles: ["type", P1]
9564
9566
  };
9565
9567
  function At(e, t) {
@@ -9611,7 +9613,7 @@ function Si(e, t) {
9611
9613
  }
9612
9614
  function M1(e, t) {
9613
9615
  const n = t[0];
9614
- return Fr(t, function(i) {
9616
+ return Hr(t, function(i) {
9615
9617
  return Math.abs(n[e] - i[e]) <= T1;
9616
9618
  });
9617
9619
  }
@@ -9966,7 +9968,7 @@ function $e(e) {
9966
9968
  return qt(e) && Rn(e, "labelTarget");
9967
9969
  }
9968
9970
  function q1(e) {
9969
- return qt(e) && co(e.parent);
9971
+ return qt(e) && uo(e.parent);
9970
9972
  }
9971
9973
  function ky(e) {
9972
9974
  return {
@@ -10314,7 +10316,7 @@ Pe.prototype._ensureValid = function(e, t) {
10314
10316
  if (this._elementRegistry.get(t.id))
10315
10317
  throw new Error("element <" + t.id + "> already exists");
10316
10318
  const n = iS[e];
10317
- if (!Fr(n, function(r) {
10319
+ if (!Hr(n, function(r) {
10318
10320
  return typeof t[r] < "u";
10319
10321
  }))
10320
10322
  throw new Error(
@@ -10816,7 +10818,7 @@ Sa.prototype.init = function(e) {
10816
10818
  function fS(e, t) {
10817
10819
  return e.apply(null, t);
10818
10820
  }
10819
- function kr(e) {
10821
+ function Dr(e) {
10820
10822
  return e.childNodes[0];
10821
10823
  }
10822
10824
  function dS(e) {
@@ -10847,7 +10849,7 @@ Bn.prototype._getChildrenContainer = function(e) {
10847
10849
  return e.parent ? (n = dS(t), n || (n = _e("g"), Ue(n).add("djs-children"), Oe(t.parentNode, n))) : n = t, n;
10848
10850
  };
10849
10851
  Bn.prototype._clear = function(e) {
10850
- var t = kr(e);
10852
+ var t = Dr(e);
10851
10853
  return xc(t), t;
10852
10854
  };
10853
10855
  Bn.prototype._createContainer = function(e, t, n, i) {
@@ -10933,19 +10935,19 @@ function yS(e) {
10933
10935
  }, n = [t, mS].concat(e.modules || []);
10934
10936
  return gS(n);
10935
10937
  }
10936
- function or(e, t) {
10938
+ function ar(e, t) {
10937
10939
  this._injector = t || yS(e), this.get("eventBus").fire("diagram.init");
10938
10940
  }
10939
- or.prototype.get = function(e, t) {
10941
+ ar.prototype.get = function(e, t) {
10940
10942
  return this._injector.get(e, t);
10941
10943
  };
10942
- or.prototype.invoke = function(e, t, n) {
10944
+ ar.prototype.invoke = function(e, t, n) {
10943
10945
  return this._injector.invoke(e, t, n);
10944
10946
  };
10945
- or.prototype.destroy = function() {
10947
+ ar.prototype.destroy = function() {
10946
10948
  this.get("eventBus").fire("diagram.destroy");
10947
10949
  };
10948
- or.prototype.clear = function() {
10950
+ ar.prototype.clear = function() {
10949
10951
  this.get("eventBus").fire("diagram.clear");
10950
10952
  };
10951
10953
  function cn(e) {
@@ -11151,7 +11153,7 @@ function v(e, t) {
11151
11153
  return n && typeof n.$instanceOf == "function" && n.$instanceOf(t);
11152
11154
  }
11153
11155
  function je(e, t) {
11154
- return nr(t, function(n) {
11156
+ return ir(t, function(n) {
11155
11157
  return v(e, n);
11156
11158
  });
11157
11159
  }
@@ -11279,7 +11281,7 @@ const cs = 5, Yd = "djs-outline-hidden";
11279
11281
  function Et(e) {
11280
11282
  e = N({}, kS, e), this._moddle = this._createModdle(e), this._container = this._createContainer(e), this._init(this._container, this._moddle, e), OS(this._container);
11281
11283
  }
11282
- ce(Et, or);
11284
+ ce(Et, ar);
11283
11285
  Et.prototype.importXML = async function(t, n) {
11284
11286
  const i = this;
11285
11287
  function r(a) {
@@ -11387,10 +11389,10 @@ Et.prototype.getModules = function() {
11387
11389
  return this._modules;
11388
11390
  };
11389
11391
  Et.prototype.clear = function() {
11390
- this.getDefinitions() && or.prototype.clear.call(this);
11392
+ this.getDefinitions() && ar.prototype.clear.call(this);
11391
11393
  };
11392
11394
  Et.prototype.destroy = function() {
11393
- or.prototype.destroy.call(this), mi(this._container);
11395
+ ar.prototype.destroy.call(this), mi(this._container);
11394
11396
  };
11395
11397
  Et.prototype.on = function(e, t, n, i) {
11396
11398
  return this.get("eventBus").on(e, t, n, i);
@@ -11420,7 +11422,7 @@ Et.prototype._init = function(e, t, n) {
11420
11422
  canvas: N({}, n.canvas, { container: e }),
11421
11423
  modules: a
11422
11424
  });
11423
- or.call(this, s), n && n.container && this.attachTo(n.container);
11425
+ ar.call(this, s), n && n.container && this.attachTo(n.container);
11424
11426
  };
11425
11427
  Et.prototype._emit = function(e, t) {
11426
11428
  return this.get("eventBus").fire(e, t);
@@ -11504,7 +11506,7 @@ function pn(e) {
11504
11506
  }
11505
11507
  function Co(e, t) {
11506
11508
  var n = te(e).eventDefinitions;
11507
- return nr(n, function(i) {
11509
+ return ir(n, function(i) {
11508
11510
  return v(i, t);
11509
11511
  });
11510
11512
  }
@@ -11517,11 +11519,11 @@ function NS(e) {
11517
11519
  function BS(e) {
11518
11520
  return Co(e, "bpmn:CompensateEventDefinition");
11519
11521
  }
11520
- var Br = {
11522
+ var $r = {
11521
11523
  width: 90,
11522
11524
  height: 20
11523
11525
  }, Xd = 15;
11524
- function tr(e) {
11526
+ function nr(e) {
11525
11527
  return v(e, "bpmn:Event") || v(e, "bpmn:Gateway") || v(e, "bpmn:DataStoreReference") || v(e, "bpmn:DataObjectReference") || v(e, "bpmn:DataInput") || v(e, "bpmn:DataOutput") || v(e, "bpmn:SequenceFlow") || v(e, "bpmn:MessageFlow") || v(e, "bpmn:Group");
11526
11528
  }
11527
11529
  function Rc(e) {
@@ -11541,21 +11543,21 @@ function jS(e) {
11541
11543
  function ep(e) {
11542
11544
  return e.waypoints ? $S(e.waypoints) : v(e, "bpmn:Group") ? {
11543
11545
  x: e.x + e.width / 2,
11544
- y: e.y + Br.height / 2
11546
+ y: e.y + $r.height / 2
11545
11547
  } : {
11546
11548
  x: e.x + e.width / 2,
11547
- y: e.y + e.height + Br.height / 2
11549
+ y: e.y + e.height + $r.height / 2
11548
11550
  };
11549
11551
  }
11550
11552
  function FS(e, t) {
11551
11553
  var n, i, r, o = e.label;
11552
11554
  return o && o.bounds ? (r = o.bounds, i = {
11553
- width: Math.max(Br.width, r.width),
11555
+ width: Math.max($r.width, r.width),
11554
11556
  height: r.height
11555
11557
  }, n = {
11556
11558
  x: r.x + r.width / 2,
11557
11559
  y: r.y + r.height / 2
11558
- }) : (n = ep(t), i = Br), N({
11560
+ }) : (n = ep(t), i = $r), N({
11559
11561
  x: n.x - i.width / 2,
11560
11562
  y: n.y - i.height / 2
11561
11563
  }, i);
@@ -11589,9 +11591,9 @@ function zS(e, t) {
11589
11591
  return e;
11590
11592
  }
11591
11593
  function GS(e) {
11592
- return $e(e) && tr(e.labelTarget);
11594
+ return $e(e) && nr(e.labelTarget);
11593
11595
  }
11594
- var so = 7;
11596
+ var co = 7;
11595
11597
  function Ky(e) {
11596
11598
  let t = [];
11597
11599
  return k(e.incoming, (n) => {
@@ -11610,7 +11612,7 @@ function ua(e) {
11610
11612
  }
11611
11613
  var sl = "hsl(225, 10%, 15%)", VS = "white";
11612
11614
  function ai(e, t) {
11613
- return nr(e.eventDefinitions, function(n) {
11615
+ return ir(e.eventDefinitions, function(n) {
11614
11616
  return n.$type === t;
11615
11617
  });
11616
11618
  }
@@ -11641,7 +11643,7 @@ function Xy(e) {
11641
11643
  ["a", i, i, 0, 1, 1, 0, -2 * i],
11642
11644
  ["z"]
11643
11645
  ];
11644
- return Gr(r);
11646
+ return Vr(r);
11645
11647
  }
11646
11648
  function cl(e, t) {
11647
11649
  var n = e.x, i = e.y, r = e.width, o = e.height, a = [
@@ -11656,7 +11658,7 @@ function cl(e, t) {
11656
11658
  ["a", t, t, 0, 0, 1, t, -t],
11657
11659
  ["z"]
11658
11660
  ];
11659
- return Gr(a);
11661
+ return Vr(a);
11660
11662
  }
11661
11663
  function qS(e) {
11662
11664
  var t = e.width, n = e.height, i = e.x, r = e.y, o = t / 2, a = n / 2, s = [
@@ -11666,7 +11668,7 @@ function qS(e) {
11666
11668
  ["l", -o, -a],
11667
11669
  ["z"]
11668
11670
  ];
11669
- return Gr(s);
11671
+ return Vr(s);
11670
11672
  }
11671
11673
  function YS(e) {
11672
11674
  var t = e.x, n = e.y, i = e.width, r = e.height, o = [
@@ -11676,7 +11678,7 @@ function YS(e) {
11676
11678
  ["l", -i, 0],
11677
11679
  ["z"]
11678
11680
  ];
11679
- return Gr(o);
11681
+ return Vr(o);
11680
11682
  }
11681
11683
  function Go(e, t = {}) {
11682
11684
  return {
@@ -11690,8 +11692,8 @@ function Fn(e, t = {}) {
11690
11692
  function En(e, t = {}) {
11691
11693
  return Rn(t, "height") ? t.height : e.height;
11692
11694
  }
11693
- var KS = new hi(), XS = 10, us = 3, ZS = 1.5, $s = 10, QS = 4, Zr = 0.95, JS = 1, eR = 0.25;
11694
- function Wr(e, t, n, i, r, o, a) {
11695
+ var KS = new hi(), XS = 10, us = 3, ZS = 1.5, $s = 10, QS = 4, Qr = 0.95, JS = 1, eR = 0.25;
11696
+ function Ur(e, t, n, i, r, o, a) {
11695
11697
  Mi.call(this, t, a);
11696
11698
  var s = e && e.defaultFillColor, c = e && e.defaultStrokeColor, u = e && e.defaultLabelColor;
11697
11699
  function l(P) {
@@ -12377,7 +12379,7 @@ function Wr(e, t, n, i, r, o, a) {
12377
12379
  return g(P, O, $, $s, {
12378
12380
  ...y,
12379
12381
  fill: ze(_, s, y.fill),
12380
- fillOpacity: Zr,
12382
+ fillOpacity: Qr,
12381
12383
  stroke: oe(_, c, y.stroke)
12382
12384
  });
12383
12385
  }
@@ -12404,7 +12406,7 @@ function Wr(e, t, n, i, r, o, a) {
12404
12406
  }
12405
12407
  }), ue = w(P, U, {
12406
12408
  fill: O,
12407
- fillOpacity: Zr,
12409
+ fillOpacity: Qr,
12408
12410
  stroke: $
12409
12411
  }), De = te(_);
12410
12412
  if (US(De)) {
@@ -12428,7 +12430,7 @@ function Wr(e, t, n, i, r, o, a) {
12428
12430
  }
12429
12431
  function pe(P, _, y = {}) {
12430
12432
  return m(P, _.width, _.height, {
12431
- fillOpacity: Zr,
12433
+ fillOpacity: Qr,
12432
12434
  ...y,
12433
12435
  fill: ze(_, s, y.fill),
12434
12436
  stroke: oe(_, c, y.stroke)
@@ -12437,14 +12439,14 @@ function Wr(e, t, n, i, r, o, a) {
12437
12439
  function ie(P, _, y = {}) {
12438
12440
  return R(P, _.width, _.height, {
12439
12441
  fill: ze(_, s, y.fill),
12440
- fillOpacity: Zr,
12442
+ fillOpacity: Qr,
12441
12443
  stroke: oe(_, c, y.stroke)
12442
12444
  });
12443
12445
  }
12444
12446
  function z(P, _, y = {}) {
12445
12447
  var O = g(P, Fn(_, y), En(_, y), 0, {
12446
12448
  fill: ze(_, s, y.fill),
12447
- fillOpacity: y.fillOpacity || Zr,
12449
+ fillOpacity: y.fillOpacity || Qr,
12448
12450
  stroke: oe(_, c, y.stroke),
12449
12451
  strokeWidth: 1.5
12450
12452
  }), $ = te(_);
@@ -12645,7 +12647,7 @@ function Wr(e, t, n, i, r, o, a) {
12645
12647
  });
12646
12648
  return w(P, O, {
12647
12649
  fill: ze(_, s, y.fill),
12648
- fillOpacity: Zr,
12650
+ fillOpacity: Qr,
12649
12651
  stroke: oe(_, c, y.stroke),
12650
12652
  strokeWidth: 2
12651
12653
  });
@@ -12843,8 +12845,8 @@ function Wr(e, t, n, i, r, o, a) {
12843
12845
  style: {
12844
12846
  fill: ue
12845
12847
  }
12846
- }), Ct = kt.getBBox(), on = ct.getBBox(), Xr = et.x - on.width / 2, $n = et.y + Ct.height / 2 + XS;
12847
- Ns(ct, Xr, $n, 0);
12848
+ }), Ct = kt.getBBox(), on = ct.getBBox(), Zr = et.x - on.width / 2, $n = et.y + Ct.height / 2 + XS;
12849
+ Ns(ct, Zr, $n, 0);
12848
12850
  }
12849
12851
  return De;
12850
12852
  },
@@ -13102,7 +13104,7 @@ function Wr(e, t, n, i, r, o, a) {
13102
13104
  return me(P, et, {
13103
13105
  align: "left-top",
13104
13106
  box: Go(_, y),
13105
- padding: so,
13107
+ padding: co,
13106
13108
  style: {
13107
13109
  fill: zo(_, u, c, y.stroke)
13108
13110
  }
@@ -13179,8 +13181,8 @@ function Wr(e, t, n, i, r, o, a) {
13179
13181
  };
13180
13182
  this._drawPath = w, this._renderer = M;
13181
13183
  }
13182
- ce(Wr, Mi);
13183
- Wr.$inject = [
13184
+ ce(Ur, Mi);
13185
+ Ur.$inject = [
13184
13186
  "config.bpmnRenderer",
13185
13187
  "eventBus",
13186
13188
  "styles",
@@ -13188,18 +13190,18 @@ Wr.$inject = [
13188
13190
  "canvas",
13189
13191
  "textRenderer"
13190
13192
  ];
13191
- Wr.prototype.canRender = function(e) {
13193
+ Ur.prototype.canRender = function(e) {
13192
13194
  return v(e, "bpmn:BaseElement");
13193
13195
  };
13194
- Wr.prototype.drawShape = function(e, t, n = {}) {
13196
+ Ur.prototype.drawShape = function(e, t, n = {}) {
13195
13197
  var { type: i } = t, r = this._renderer(i);
13196
13198
  return r(e, t, n);
13197
13199
  };
13198
- Wr.prototype.drawConnection = function(e, t, n = {}) {
13200
+ Ur.prototype.drawConnection = function(e, t, n = {}) {
13199
13201
  var { type: i } = t, r = this._renderer(i);
13200
13202
  return r(e, t, n);
13201
13203
  };
13202
- Wr.prototype.getShapePath = function(e) {
13204
+ Ur.prototype.getShapePath = function(e) {
13203
13205
  return $e(e) ? cl(e, QS) : v(e, "bpmn:Event") ? Xy(e) : v(e, "bpmn:Activity") ? cl(e, $s) : v(e, "bpmn:Gateway") ? qS(e) : YS(e);
13204
13206
  };
13205
13207
  function Qe(e, t = []) {
@@ -13350,7 +13352,7 @@ function Qy(e) {
13350
13352
  });
13351
13353
  this.getExternalLabelBounds = function(a, s) {
13352
13354
  var c = {
13353
- width: Math.max(a.width, Br.width),
13355
+ width: Math.max(a.width, $r.width),
13354
13356
  height: 30
13355
13357
  }, u = o(s, c, {
13356
13358
  style: i
@@ -13365,7 +13367,7 @@ function Qy(e) {
13365
13367
  var c = o(s, a, {
13366
13368
  style: t,
13367
13369
  align: "left-top",
13368
- padding: so
13370
+ padding: co
13369
13371
  });
13370
13372
  return {
13371
13373
  x: a.x,
@@ -13662,7 +13664,7 @@ function bR(e, t) {
13662
13664
  }
13663
13665
  const xR = {
13664
13666
  __init__: ["bpmnRenderer"],
13665
- bpmnRenderer: ["type", Wr],
13667
+ bpmnRenderer: ["type", Ur],
13666
13668
  textRenderer: ["type", Qy],
13667
13669
  pathMap: ["type", gR]
13668
13670
  };
@@ -13733,7 +13735,7 @@ Di.prototype.add = function(e, t, n) {
13733
13735
  throw new Error(
13734
13736
  `unknown di ${cn(t)} for element ${cn(e)}`
13735
13737
  );
13736
- return tr(e) && Ln(i) && this.addLabel(e, t, i), this._eventBus.fire("bpmnElement.added", { element: i }), i;
13738
+ return nr(e) && Ln(i) && this.addLabel(e, t, i), this._eventBus.fire("bpmnElement.added", { element: i }), i;
13737
13739
  };
13738
13740
  Di.prototype._attachBoundary = function(e, t) {
13739
13741
  var n = e.attachedToRef;
@@ -14210,17 +14212,17 @@ function cp(e, t, n) {
14210
14212
  Z.call(this, e), this.preExecute("shape.replace", s, !0), this.postExecuted("shape.replace", c, !0), this.preExecute("connection.create", r, !0), this.postExecuted("connection.delete", i, !0), this.postExecuted("connection.reconnect", o, !0), this.postExecuted("element.updateProperties", a, !0);
14211
14213
  function i(g) {
14212
14214
  const R = g.source, E = g.target;
14213
- Qr(R) && Vo(E) && l(E);
14215
+ Jr(R) && Vo(E) && l(E);
14214
14216
  }
14215
14217
  function r(g) {
14216
14218
  const R = g.connection, E = g.source, x = g.target;
14217
- Qr(E) && ps(x) && (u(x), p(E, [R]));
14219
+ Jr(E) && ps(x) && (u(x), p(E, [R]));
14218
14220
  }
14219
14221
  function o(g) {
14220
14222
  const R = g.newTarget, E = g.oldSource, x = g.oldTarget;
14221
14223
  if (x !== R) {
14222
14224
  const w = E;
14223
- Vo(x) && l(x), Qr(w) && ps(R) && u(R);
14225
+ Vo(x) && l(x), Jr(w) && ps(R) && u(R);
14224
14226
  }
14225
14227
  }
14226
14228
  function a(g) {
@@ -14232,12 +14234,12 @@ function cp(e, t, n) {
14232
14234
  newData: R,
14233
14235
  oldShape: E
14234
14236
  } = g;
14235
- if (Qr(g.oldShape) && R.eventDefinitionType !== "bpmn:CompensateEventDefinition" || R.type !== "bpmn:BoundaryEvent") {
14237
+ if (Jr(g.oldShape) && R.eventDefinitionType !== "bpmn:CompensateEventDefinition" || R.type !== "bpmn:BoundaryEvent") {
14236
14238
  const x = E.outgoing.find(
14237
14239
  ({ target: w }) => Vo(w)
14238
14240
  );
14239
14241
  x && x.target && (g._connectionTarget = x.target);
14240
- } else if (!Qr(g.oldShape) && R.eventDefinitionType === "bpmn:CompensateEventDefinition" && R.type === "bpmn:BoundaryEvent") {
14242
+ } else if (!Jr(g.oldShape) && R.eventDefinitionType === "bpmn:CompensateEventDefinition" && R.type === "bpmn:BoundaryEvent") {
14241
14243
  const x = E.outgoing.find(
14242
14244
  ({ target: w }) => ps(w)
14243
14245
  );
@@ -14269,7 +14271,7 @@ function cp(e, t, n) {
14269
14271
  }
14270
14272
  function h(g) {
14271
14273
  const R = g.incoming.filter(
14272
- (E) => Qr(E.source)
14274
+ (E) => Jr(E.source)
14273
14275
  );
14274
14276
  t.removeElements(R);
14275
14277
  }
@@ -14290,7 +14292,7 @@ function Vo(e) {
14290
14292
  const t = te(e);
14291
14293
  return t && t.get("isForCompensation");
14292
14294
  }
14293
- function Qr(e) {
14295
+ function Jr(e) {
14294
14296
  return e && v(e, "bpmn:BoundaryEvent") && Co(e, "bpmn:CompensateEventDefinition");
14295
14297
  }
14296
14298
  function ps(e) {
@@ -14628,7 +14630,7 @@ function Tc(e, t) {
14628
14630
  v(n, "bpmn:Lane") && (Tc(n, t), t.push(n));
14629
14631
  }), t;
14630
14632
  }
14631
- function ar(e) {
14633
+ function sr(e) {
14632
14634
  return e.children.filter(function(t) {
14633
14635
  return v(t, "bpmn:Lane");
14634
14636
  });
@@ -14657,8 +14659,8 @@ var tC = 500;
14657
14659
  function hp(e, t) {
14658
14660
  Z.call(this, e);
14659
14661
  function n(i, r) {
14660
- var o = Ut(i), a = ar(r), s = [], c = [], u = [], l = [];
14661
- if (Vr(a, function(g) {
14662
+ var o = Ut(i), a = sr(r), s = [], c = [], u = [], l = [];
14663
+ if (Wr(a, function(g) {
14662
14664
  return o ? g.y > i.y ? c.push(g) : s.push(g) : g.x > i.x ? l.push(g) : u.push(g), g.children;
14663
14665
  }), !!a.length) {
14664
14666
  var f;
@@ -14881,12 +14883,12 @@ function ah(e) {
14881
14883
  function gp(e, t) {
14882
14884
  Z.call(this, e), this.preExecuted("connection.create", function(n) {
14883
14885
  var i = n.context, r = i.connection, o = i.source, a = i.target, s = i.hints;
14884
- if (!(s && s.createElementsBehavior === !1) && Jr(r)) {
14886
+ if (!(s && s.createElementsBehavior === !1) && eo(r)) {
14885
14887
  var c = [];
14886
14888
  v(o, "bpmn:EventBasedGateway") ? c = a.incoming.filter(
14887
- (u) => u !== r && Jr(u)
14889
+ (u) => u !== r && eo(u)
14888
14890
  ) : c = a.incoming.filter(
14889
- (u) => u !== r && Jr(u) && v(u.source, "bpmn:EventBasedGateway")
14891
+ (u) => u !== r && eo(u) && v(u.source, "bpmn:EventBasedGateway")
14890
14892
  ), c.forEach(function(u) {
14891
14893
  t.removeConnection(u);
14892
14894
  });
@@ -14894,12 +14896,12 @@ function gp(e, t) {
14894
14896
  }), this.preExecuted("shape.replace", function(n) {
14895
14897
  var i = n.context, r = i.newShape;
14896
14898
  if (v(r, "bpmn:EventBasedGateway")) {
14897
- var o = r.outgoing.filter(Jr).reduce(function(a, s) {
14899
+ var o = r.outgoing.filter(eo).reduce(function(a, s) {
14898
14900
  return a.includes(s.target) ? a : a.concat(s.target);
14899
14901
  }, []);
14900
14902
  o.forEach(function(a) {
14901
- a.incoming.filter(Jr).forEach(function(s) {
14902
- const c = a.incoming.filter(Jr).filter(function(u) {
14903
+ a.incoming.filter(eo).forEach(function(s) {
14904
+ const c = a.incoming.filter(eo).filter(function(u) {
14903
14905
  return u.source === r;
14904
14906
  });
14905
14907
  (s.source !== r || c.length > 1) && t.removeConnection(s);
@@ -14913,7 +14915,7 @@ gp.$inject = [
14913
14915
  "modeling"
14914
14916
  ];
14915
14917
  ce(gp, Z);
14916
- function Jr(e) {
14918
+ function eo(e) {
14917
14919
  return v(e, "bpmn:SequenceFlow");
14918
14920
  }
14919
14921
  var ms = 1500, sh = 2e3;
@@ -15359,7 +15361,7 @@ function bp(e, t, n, i) {
15359
15361
  var s = a.context, c = s.hints || {};
15360
15362
  if (c.createElementsBehavior !== !1) {
15361
15363
  var u = s.shape || s.connection;
15362
- $e(u) || !tr(u) || Ln(u) && t.updateLabel(u, Ln(u));
15364
+ $e(u) || !nr(u) || Ln(u) && t.updateLabel(u, Ln(u));
15363
15365
  }
15364
15366
  }), this.postExecute("shape.delete", function(a) {
15365
15367
  var s = a.context, c = s.labelTarget, u = s.hints || {};
@@ -15380,7 +15382,7 @@ function bp(e, t, n, i) {
15380
15382
  }
15381
15383
  }), this.postExecute(["shape.replace"], function(a) {
15382
15384
  var s = a.context, c = s.newShape, u = s.oldShape, l = te(c);
15383
- l && tr(l) && u.label && c.label && (c.label.x = u.label.x, c.label.y = u.label.y);
15385
+ l && nr(l) && u.label && c.label && (c.label.x = u.label.x, c.label.y = u.label.y);
15384
15386
  }), this.preExecute("shape.resize", function(a) {
15385
15387
  var s = a.context, c = s.shape, u = s.hints || {};
15386
15388
  if (!(!$e(c) || u.autoResize)) {
@@ -15661,23 +15663,23 @@ Pp.$inject = [
15661
15663
  "bpmnRules",
15662
15664
  "modeling"
15663
15665
  ];
15664
- function eo(e) {
15666
+ function to(e) {
15665
15667
  return e.original || e;
15666
15668
  }
15667
15669
  function LC(e, t) {
15668
15670
  var n = dl(
15669
- eo(e[e.length - 2]),
15670
- eo(e[e.length - 1]),
15671
- eo(t[1]),
15672
- eo(t[0])
15671
+ to(e[e.length - 2]),
15672
+ to(e[e.length - 1]),
15673
+ to(t[1]),
15674
+ to(t[0])
15673
15675
  );
15674
15676
  return n ? [].concat(
15675
15677
  e.slice(0, e.length - 1),
15676
15678
  [n],
15677
15679
  t.slice(1)
15678
15680
  ) : [
15679
- eo(e[0]),
15680
- eo(t[t.length - 1])
15681
+ to(e[0]),
15682
+ to(t[t.length - 1])
15681
15683
  ];
15682
15684
  }
15683
15685
  function Ap(e, t) {
@@ -15726,7 +15728,7 @@ function Tp(e, t, n, i) {
15726
15728
  var u = c.context, l = u.properties, f = u.element, p = f.businessObject, d;
15727
15729
  l.default && (d = ft(
15728
15730
  f.outgoing,
15729
- uo({ id: f.businessObject.default.id })
15731
+ lo({ id: f.businessObject.default.id })
15730
15732
  ), d && t.updateProperties(d, { conditionExpression: void 0 })), l.conditionExpression && p.sourceRef.default === p && t.updateProperties(f.source, { default: void 0 });
15731
15733
  });
15732
15734
  }
@@ -15790,10 +15792,10 @@ function Sv(e, t, n, i) {
15790
15792
  var r = e[t];
15791
15793
  e[t] = r === void 0 ? n : i(n, r);
15792
15794
  }
15793
- function to(e, t, n) {
15795
+ function no(e, t, n) {
15794
15796
  return Sv(e, t, n, BC);
15795
15797
  }
15796
- function no(e, t, n) {
15798
+ function io(e, t, n) {
15797
15799
  return Sv(e, t, n, $C);
15798
15800
  }
15799
15801
  var jC = { top: 20, left: 50, right: 20, bottom: 20 }, FC = { top: 50, left: 20, right: 20, bottom: 20 };
@@ -15801,14 +15803,14 @@ function HC(e, t, n) {
15801
15803
  var i = Gn(e), r = !0, o = !0, a = Tc(i, [i]), s = xe(e), c = {}, u = {}, l = Ut(e), f = l ? Mp : kp;
15802
15804
  /n/.test(t) ? u.top = s.bottom - f.height : /e/.test(t) ? u.right = s.left + f.width : /s/.test(t) ? u.bottom = s.top + f.height : /w/.test(t) && (u.left = s.right - f.width), a.forEach(function(h) {
15803
15805
  var m = xe(h);
15804
- l ? (m.top < s.top - 10 && (r = !1), m.bottom > s.bottom + 10 && (o = !1)) : (m.left < s.left - 10 && (r = !1), m.right > s.right + 10 && (o = !1)), /n/.test(t) && (n && Vi(s.top - m.bottom) < 10 && no(c, "top", m.top + f.height), Vi(s.top - m.top) < 5 && to(u, "top", m.bottom - f.height)), /e/.test(t) && (n && Vi(s.right - m.left) < 10 && to(c, "right", m.right - f.width), Vi(s.right - m.right) < 5 && no(u, "right", m.left + f.width)), /s/.test(t) && (n && Vi(s.bottom - m.top) < 10 && to(c, "bottom", m.bottom - f.height), Vi(s.bottom - m.bottom) < 5 && no(u, "bottom", m.top + f.height)), /w/.test(t) && (n && Vi(s.left - m.right) < 10 && no(c, "left", m.left + f.width), Vi(s.left - m.left) < 5 && to(u, "left", m.right - f.width));
15806
+ l ? (m.top < s.top - 10 && (r = !1), m.bottom > s.bottom + 10 && (o = !1)) : (m.left < s.left - 10 && (r = !1), m.right > s.right + 10 && (o = !1)), /n/.test(t) && (n && Vi(s.top - m.bottom) < 10 && io(c, "top", m.top + f.height), Vi(s.top - m.top) < 5 && no(u, "top", m.bottom - f.height)), /e/.test(t) && (n && Vi(s.right - m.left) < 10 && no(c, "right", m.right - f.width), Vi(s.right - m.right) < 5 && io(u, "right", m.left + f.width)), /s/.test(t) && (n && Vi(s.bottom - m.top) < 10 && no(c, "bottom", m.bottom - f.height), Vi(s.bottom - m.bottom) < 5 && io(u, "bottom", m.top + f.height)), /w/.test(t) && (n && Vi(s.left - m.right) < 10 && io(c, "left", m.left + f.width), Vi(s.left - m.left) < 5 && no(u, "left", m.right - f.width));
15805
15807
  });
15806
15808
  var p = i.children.filter(function(h) {
15807
15809
  return !h.hidden && !h.waypoints && (v(h, "bpmn:FlowElement") || v(h, "bpmn:Artifact"));
15808
15810
  }), d = l ? jC : FC;
15809
15811
  return p.forEach(function(h) {
15810
15812
  var m = xe(h);
15811
- /n/.test(t) && (!l || r) && to(u, "top", m.top - d.top), /e/.test(t) && (l || o) && no(u, "right", m.right + d.right), /s/.test(t) && (!l || o) && no(u, "bottom", m.bottom + d.bottom), /w/.test(t) && (l || r) && to(u, "left", m.left - d.left);
15813
+ /n/.test(t) && (!l || r) && no(u, "top", m.top - d.top), /e/.test(t) && (l || o) && io(u, "right", m.right + d.right), /s/.test(t) && (!l || o) && io(u, "bottom", m.bottom + d.bottom), /w/.test(t) && (l || r) && no(u, "left", m.left - d.left);
15812
15814
  }), {
15813
15815
  min: u,
15814
15816
  max: c
@@ -15823,7 +15825,7 @@ function Po(e) {
15823
15825
  function Mu(e) {
15824
15826
  _h(e), _h(Po(e));
15825
15827
  }
15826
- function $r(e) {
15828
+ function jr(e) {
15827
15829
  return e.pointers && e.pointers.length && (e = e.pointers[0]), e.touches && e.touches.length && (e = e.touches[0]), e ? {
15828
15830
  x: e.clientX,
15829
15831
  y: e.clientY
@@ -15835,7 +15837,7 @@ function Rv() {
15835
15837
  function Cv(e, t) {
15836
15838
  return (Po(e) || e).button === t;
15837
15839
  }
15838
- function sr(e) {
15840
+ function cr(e) {
15839
15841
  return Cv(e, 0);
15840
15842
  }
15841
15843
  function zC(e) {
@@ -15843,11 +15845,11 @@ function zC(e) {
15843
15845
  }
15844
15846
  function pa(e) {
15845
15847
  var t = Po(e) || e;
15846
- return sr(e) ? Rv() ? t.metaKey : t.ctrlKey : !1;
15848
+ return cr(e) ? Rv() ? t.metaKey : t.ctrlKey : !1;
15847
15849
  }
15848
15850
  function ac(e) {
15849
15851
  var t = Po(e) || e;
15850
- return sr(e) && t.shiftKey;
15852
+ return cr(e) && t.shiftKey;
15851
15853
  }
15852
15854
  var bh = 1001;
15853
15855
  function Pv(e, t) {
@@ -15877,7 +15879,7 @@ function Dp(e, t, n, i, r) {
15877
15879
  }
15878
15880
  function a(l) {
15879
15881
  var f = e.getDefinitions(), p = f.get("rootElements");
15880
- return !!ft(p, uo({ id: l.id }));
15882
+ return !!ft(p, lo({ id: l.id }));
15881
15883
  }
15882
15884
  function s(l) {
15883
15885
  if (v(l, "bpmn:ErrorEventDefinition"))
@@ -15944,7 +15946,7 @@ Dp.$inject = [
15944
15946
  ];
15945
15947
  ce(Dp, Z);
15946
15948
  function VC(e, t) {
15947
- return Ce(t) || (t = [t]), nr(t, function(n) {
15949
+ return Ce(t) || (t = [t]), ir(t, function(n) {
15948
15950
  return Co(e, n);
15949
15951
  });
15950
15952
  }
@@ -15984,21 +15986,21 @@ function YC(e, t, n) {
15984
15986
  return i = ZC(e, t, n), Av(Hs.width, i);
15985
15987
  }
15986
15988
  function KC(e) {
15987
- return !!ar(e).length;
15989
+ return !!sr(e).length;
15988
15990
  }
15989
15991
  function XC(e, t, n) {
15990
- var i = ar(e), r;
15992
+ var i = sr(e), r;
15991
15993
  return r = Op(i, t, n), e.height - r.height + Mp.height;
15992
15994
  }
15993
15995
  function ZC(e, t, n) {
15994
- var i = ar(e), r;
15996
+ var i = sr(e), r;
15995
15997
  return r = Op(i, t, n), e.width - r.width + kp.width;
15996
15998
  }
15997
15999
  function Op(e, t, n) {
15998
16000
  var i, r, o;
15999
16001
  for (i = 0; i < e.length; i++)
16000
16002
  if (r = e[i], !n && t >= r.y && t <= r.y + r.height || n && t >= r.x && t <= r.x + r.width)
16001
- return o = ar(r), o.length ? Op(o, t, n) : r;
16003
+ return o = sr(r), o.length ? Op(o, t, n) : r;
16002
16004
  }
16003
16005
  var Mv = "_plane";
16004
16006
  function xh(e) {
@@ -16009,7 +16011,7 @@ function li(e) {
16009
16011
  var t = e.id;
16010
16012
  return v(e, "bpmn:SubProcess") ? kv(t) : t;
16011
16013
  }
16012
- function Cr(e) {
16014
+ function Pr(e) {
16013
16015
  return kv(e);
16014
16016
  }
16015
16017
  function zs(e) {
@@ -16091,11 +16093,11 @@ function Li(e, t, n, i, r, o, a) {
16091
16093
  var d = f.properties, h = f.oldProperties, m = h.id, g = d.id;
16092
16094
  if (m !== g) {
16093
16095
  if (zs(p)) {
16094
- a.updateId(p, Cr(g)), a.updateId(m, g);
16096
+ a.updateId(p, Pr(g)), a.updateId(m, g);
16095
16097
  return;
16096
16098
  }
16097
- var R = a.get(Cr(m));
16098
- R && a.updateId(Cr(m), Cr(g));
16099
+ var R = a.get(Pr(m));
16100
+ R && a.updateId(Pr(m), Pr(g));
16099
16101
  }
16100
16102
  }
16101
16103
  }, !0), this.reverted("element.updateProperties", function(f) {
@@ -16104,11 +16106,11 @@ function Li(e, t, n, i, r, o, a) {
16104
16106
  var d = f.properties, h = f.oldProperties, m = h.id, g = d.id;
16105
16107
  if (m !== g) {
16106
16108
  if (zs(p)) {
16107
- a.updateId(p, Cr(m)), a.updateId(g, m);
16109
+ a.updateId(p, Pr(m)), a.updateId(g, m);
16108
16110
  return;
16109
16111
  }
16110
- var R = a.get(Cr(g));
16111
- R && a.updateId(R, Cr(m));
16112
+ var R = a.get(Pr(g));
16113
+ R && a.updateId(R, Pr(m));
16112
16114
  }
16113
16115
  }
16114
16116
  }, !0), t.on("element.changed", function(f) {
@@ -16704,7 +16706,7 @@ en.prototype.init = function() {
16704
16706
  return Vv(t, n, i);
16705
16707
  }), this.addRule("elements.create", function(e) {
16706
16708
  var t = e.elements, n = e.position, i = e.target;
16707
- return lt(i) && !sc(t, i) ? !1 : Fr(t, function(r) {
16709
+ return lt(i) && !sc(t, i) ? !1 : Hr(t, function(r) {
16708
16710
  return lt(r) ? Gs(r.source, r.target, r) : r.host ? ia(r, r.host, null, n) : gl(r, i);
16709
16711
  });
16710
16712
  }), this.addRule("elements.move", function(e) {
@@ -16850,7 +16852,7 @@ function Gs(e, t, n) {
16850
16852
  } : !1);
16851
16853
  }
16852
16854
  function go(e, t) {
16853
- return $e(e) || Vp(e) ? !0 : v(t, "bpmn:Participant") && !Ge(t) ? !1 : v(e, "bpmn:Participant") ? v(t, "bpmn:Process") || v(t, "bpmn:Collaboration") : je(e, ["bpmn:DataInput", "bpmn:DataOutput"]) && e.parent ? t === e.parent : v(e, "bpmn:Lane") ? v(t, "bpmn:Participant") || v(t, "bpmn:Lane") : v(e, "bpmn:BoundaryEvent") && !EP(e) ? !1 : v(e, "bpmn:FlowElement") && !v(e, "bpmn:DataStoreReference") ? v(t, "bpmn:FlowElementsContainer") ? Ge(t) : je(t, ["bpmn:Participant", "bpmn:Lane"]) : v(e, "bpmn:DataStoreReference") && v(t, "bpmn:Collaboration") ? nr(te(t).get("participants"), function(n) {
16855
+ return $e(e) || Vp(e) ? !0 : v(t, "bpmn:Participant") && !Ge(t) ? !1 : v(e, "bpmn:Participant") ? v(t, "bpmn:Process") || v(t, "bpmn:Collaboration") : je(e, ["bpmn:DataInput", "bpmn:DataOutput"]) && e.parent ? t === e.parent : v(e, "bpmn:Lane") ? v(t, "bpmn:Participant") || v(t, "bpmn:Lane") : v(e, "bpmn:BoundaryEvent") && !EP(e) ? !1 : v(e, "bpmn:FlowElement") && !v(e, "bpmn:DataStoreReference") ? v(t, "bpmn:FlowElementsContainer") ? Ge(t) : je(t, ["bpmn:Participant", "bpmn:Lane"]) : v(e, "bpmn:DataStoreReference") && v(t, "bpmn:Collaboration") ? ir(te(t).get("participants"), function(n) {
16854
16856
  return !!n.get("processRef");
16855
16857
  }) : je(e, ["bpmn:Artifact", "bpmn:DataAssociation", "bpmn:DataStoreReference"]) ? je(t, [
16856
16858
  "bpmn:Collaboration",
@@ -16934,7 +16936,7 @@ function zv(e, t, n) {
16934
16936
  }), i.replacements.length ? i : !1;
16935
16937
  }
16936
16938
  function Gv(e, t) {
16937
- return nr(e, SP) ? !1 : t === void 0 ? !0 : t === null ? !1 : e.every(function(n) {
16939
+ return ir(e, SP) ? !1 : t === void 0 ? !0 : t === null ? !1 : e.every(function(n) {
16938
16940
  return go(n, t);
16939
16941
  });
16940
16942
  }
@@ -17192,7 +17194,7 @@ function Zv(e, t, n) {
17192
17194
  })(), this._findTargetGfx = function(a) {
17193
17195
  var s, c;
17194
17196
  if (a instanceof MouseEvent)
17195
- return s = $r(a), c = document.elementFromPoint(s.x, s.y), IP(c);
17197
+ return s = jr(a), c = document.elementFromPoint(s.x, s.y), IP(c);
17196
17198
  };
17197
17199
  }
17198
17200
  Zv.$inject = [
@@ -17201,7 +17203,7 @@ Zv.$inject = [
17201
17203
  "injector"
17202
17204
  ];
17203
17205
  function IP(e) {
17204
- return zr(e, "svg, .djs-element", !0);
17206
+ return Gr(e, "svg, .djs-element", !0);
17205
17207
  }
17206
17208
  const NP = {
17207
17209
  __init__: [
@@ -17213,7 +17215,7 @@ function BP(e) {
17213
17215
  return !0;
17214
17216
  }
17215
17217
  function gs(e) {
17216
- return sr(e) || zC(e);
17218
+ return cr(e) || zC(e);
17217
17219
  }
17218
17220
  var Oh = 500;
17219
17221
  function Qv(e, t, n) {
@@ -17233,7 +17235,7 @@ function Qv(e, t, n) {
17233
17235
  return o[T];
17234
17236
  }
17235
17237
  function s(T, H) {
17236
- var G = u[T] || sr;
17238
+ var G = u[T] || cr;
17237
17239
  return !G(H);
17238
17240
  }
17239
17241
  var c = {
@@ -17445,7 +17447,7 @@ function e_(e, t, n, i) {
17445
17447
  });
17446
17448
  s || t.select(a);
17447
17449
  }), e.on("element.click", function(r) {
17448
- if (sr(r)) {
17450
+ if (cr(r)) {
17449
17451
  var o = r.element;
17450
17452
  o === n.getRootElement() && (o = null);
17451
17453
  var a = t.isSelected(o), s = t.get().length > 1, c = ac(r);
@@ -17522,8 +17524,8 @@ function ZP(e) {
17522
17524
  function QP(e) {
17523
17525
  return Pn(e) && (Ht(WP, e) || Ht(i_, e) && qp(e));
17524
17526
  }
17525
- var io = Math.round, Nh = "djs-drag-active";
17526
- function Pr(e) {
17527
+ var ro = Math.round, Nh = "djs-drag-active";
17528
+ function Ar(e) {
17527
17529
  e.preventDefault();
17528
17530
  }
17529
17531
  function JP(e) {
@@ -17563,11 +17565,11 @@ function r_(e, t, n, i) {
17563
17565
  w.length && n.select(w);
17564
17566
  }
17565
17567
  function u(x, w) {
17566
- var S = o.payload, M = o.displacement, B = o.globalStart, T = $r(x), H = ei(T, B), G = o.localStart, j = a(T), V = ei(j, G);
17568
+ var S = o.payload, M = o.displacement, B = o.globalStart, T = jr(x), H = ei(T, B), G = o.localStart, j = a(T), V = ei(j, G);
17567
17569
  if (!o.active && (w || eA(H) > o.threshold)) {
17568
17570
  if (N(S, {
17569
- x: io(G.x + M.x),
17570
- y: io(G.y + M.y),
17571
+ x: ro(G.x + M.x),
17572
+ y: ro(G.y + M.y),
17571
17573
  dx: 0,
17572
17574
  dy: 0
17573
17575
  }, { originalEvent: x }), s("start") === !1)
@@ -17575,10 +17577,10 @@ function r_(e, t, n, i) {
17575
17577
  o.active = !0, o.keepSelection || (S.previousSelection = n.get(), n.select(null)), o.cursor && $c(o.cursor), t.addMarker(t.getRootElement(), Nh);
17576
17578
  }
17577
17579
  Mu(x), o.active && (N(S, {
17578
- x: io(j.x + M.x),
17579
- y: io(j.y + M.y),
17580
- dx: io(V.x),
17581
- dy: io(V.y)
17580
+ x: ro(j.x + M.x),
17581
+ y: ro(j.y + M.y),
17582
+ dx: ro(V.x),
17583
+ dy: ro(V.y)
17582
17584
  }, { originalEvent: x }), s("move"));
17583
17585
  }
17584
17586
  function l(x) {
@@ -17586,11 +17588,11 @@ function r_(e, t, n, i) {
17586
17588
  o.active && (x && (o.payload.originalEvent = x, Mu(x)), S = s("end")), S === !1 && s("rejected"), w = R(S !== !0), s("ended", w);
17587
17589
  }
17588
17590
  function f(x) {
17589
- Ht("Escape", x) && (Pr(x), g());
17591
+ Ht("Escape", x) && (Ar(x), g());
17590
17592
  }
17591
17593
  function p(x) {
17592
17594
  var w;
17593
- o.active && (w = n_(e), setTimeout(w, 400), Pr(x)), l(x);
17595
+ o.active && (w = n_(e), setTimeout(w, 400), Ar(x)), l(x);
17594
17596
  }
17595
17597
  function d(x) {
17596
17598
  u(x);
@@ -17613,14 +17615,14 @@ function r_(e, t, n, i) {
17613
17615
  }
17614
17616
  function R(x) {
17615
17617
  var w, S;
17616
- s("cleanup"), t_(), o.trapClick ? S = p : S = l, ke.unbind(document, "mousemove", u), ke.unbind(document, "dragstart", Pr), ke.unbind(document, "selectstart", Pr), ke.unbind(document, "mousedown", S, !0), ke.unbind(document, "mouseup", S, !0), ke.unbind(document, "keyup", f), ke.unbind(document, "touchstart", d, !0), ke.unbind(document, "touchcancel", g, !0), ke.unbind(document, "touchmove", u, !0), ke.unbind(document, "touchend", l, !0), e.off("element.hover", h), e.off("element.out", m), t.removeMarker(t.getRootElement(), Nh);
17618
+ s("cleanup"), t_(), o.trapClick ? S = p : S = l, ke.unbind(document, "mousemove", u), ke.unbind(document, "dragstart", Ar), ke.unbind(document, "selectstart", Ar), ke.unbind(document, "mousedown", S, !0), ke.unbind(document, "mouseup", S, !0), ke.unbind(document, "keyup", f), ke.unbind(document, "touchstart", d, !0), ke.unbind(document, "touchcancel", g, !0), ke.unbind(document, "touchmove", u, !0), ke.unbind(document, "touchend", l, !0), e.off("element.hover", h), e.off("element.out", m), t.removeMarker(t.getRootElement(), Nh);
17617
17619
  var M = o.payload.previousSelection;
17618
17620
  return x !== !1 && M && !n.get().length && c(M), w = o, o = null, w;
17619
17621
  }
17620
17622
  function E(x, w, S, M) {
17621
17623
  o && g(!1), typeof w == "string" && (M = S, S = w, w = null), M = N({}, r, M || {});
17622
17624
  var B = M.data || {}, T, H, G, j, V;
17623
- if (M.trapClick ? j = p : j = l, x ? (T = Po(x) || x, H = $r(x), Mu(x), T.type === "dragstart" && Pr(T)) : (T = null, H = { x: 0, y: 0 }), G = a(H), w || (w = G), V = JP(T), o = N({
17625
+ if (M.trapClick ? j = p : j = l, x ? (T = Po(x) || x, H = jr(x), Mu(x), T.type === "dragstart" && Ar(T)) : (T = null, H = { x: 0, y: 0 }), G = a(H), w || (w = G), V = JP(T), o = N({
17624
17626
  prefix: S,
17625
17627
  data: B,
17626
17628
  payload: {},
@@ -17628,7 +17630,7 @@ function r_(e, t, n, i) {
17628
17630
  displacement: ei(w, G),
17629
17631
  localStart: G,
17630
17632
  isTouch: V
17631
- }, M), M.manual || (V ? (ke.bind(document, "touchstart", d, !0), ke.bind(document, "touchcancel", g, !0), ke.bind(document, "touchmove", u, !0), ke.bind(document, "touchend", l, !0)) : (ke.bind(document, "mousemove", u), ke.bind(document, "dragstart", Pr), ke.bind(document, "selectstart", Pr), ke.bind(document, "mousedown", j, !0), ke.bind(document, "mouseup", j, !0)), ke.bind(document, "keyup", f), e.on("element.hover", h), e.on("element.out", m)), s("init") === !1)
17633
+ }, M), M.manual || (V ? (ke.bind(document, "touchstart", d, !0), ke.bind(document, "touchcancel", g, !0), ke.bind(document, "touchmove", u, !0), ke.bind(document, "touchend", l, !0)) : (ke.bind(document, "mousemove", u), ke.bind(document, "dragstart", Ar), ke.bind(document, "selectstart", Ar), ke.bind(document, "mousedown", j, !0), ke.bind(document, "mouseup", j, !0)), ke.bind(document, "keyup", f), e.on("element.hover", h), e.on("element.out", m)), s("init") === !1)
17632
17634
  return g(), !1;
17633
17635
  M.autoActivate && u(x, !0);
17634
17636
  }
@@ -17672,27 +17674,27 @@ var nA = [
17672
17674
  "path",
17673
17675
  "rect"
17674
17676
  ];
17675
- function cr(e, t, n, i) {
17677
+ function ur(e, t, n, i) {
17676
17678
  this._elementRegistry = e, this._canvas = n, this._styles = i;
17677
17679
  }
17678
- cr.$inject = [
17680
+ ur.$inject = [
17679
17681
  "elementRegistry",
17680
17682
  "eventBus",
17681
17683
  "canvas",
17682
17684
  "styles"
17683
17685
  ];
17684
- cr.prototype.cleanUp = function() {
17686
+ ur.prototype.cleanUp = function() {
17685
17687
  console.warn("PreviewSupport#cleanUp is deprecated and will be removed in future versions. You do not need to manually clean up previews anymore. cf. https://github.com/bpmn-io/diagram-js/pull/906");
17686
17688
  };
17687
- cr.prototype.getGfx = function(e) {
17689
+ ur.prototype.getGfx = function(e) {
17688
17690
  return this._elementRegistry.getGraphics(e);
17689
17691
  };
17690
- cr.prototype.addDragger = function(e, t, n, i = "djs-dragger") {
17692
+ ur.prototype.addDragger = function(e, t, n, i = "djs-dragger") {
17691
17693
  n = n || this.getGfx(e);
17692
17694
  var r = Ey(n);
17693
- return this._cloneMarkers(kr(r), i), se(r, this._styles.cls(i, [])), Oe(t, r), se(r, "data-preview-support-element-id", e.id), r;
17695
+ return this._cloneMarkers(Dr(r), i), se(r, this._styles.cls(i, [])), Oe(t, r), se(r, "data-preview-support-element-id", e.id), r;
17694
17696
  };
17695
- cr.prototype.addFrame = function(e, t) {
17697
+ ur.prototype.addFrame = function(e, t) {
17696
17698
  var n = _e("rect", {
17697
17699
  class: "djs-resize-overlay",
17698
17700
  width: e.width,
@@ -17702,7 +17704,7 @@ cr.prototype.addFrame = function(e, t) {
17702
17704
  });
17703
17705
  return Oe(t, n), se(n, "data-preview-support-element-id", e.id), n;
17704
17706
  };
17705
- cr.prototype._cloneMarkers = function(e, t = "djs-dragger", n = e) {
17707
+ ur.prototype._cloneMarkers = function(e, t = "djs-dragger", n = e) {
17706
17708
  var i = this;
17707
17709
  e.childNodes && e.childNodes.forEach((r) => {
17708
17710
  i._cloneMarkers(r, t, n);
@@ -17713,7 +17715,7 @@ cr.prototype._cloneMarkers = function(e, t = "djs-dragger", n = e) {
17713
17715
  }
17714
17716
  });
17715
17717
  };
17716
- cr.prototype._cloneMarker = function(e, t, n, i, r = "djs-dragger") {
17718
+ ur.prototype._cloneMarker = function(e, t, n, i, r = "djs-dragger") {
17717
17719
  var o = [n.id, r, tA.next()].join("-"), a = st("marker#" + n.id, e);
17718
17720
  e = e || this._canvas._svg;
17719
17721
  var s = a || Ey(n);
@@ -17738,7 +17740,7 @@ function sA(e) {
17738
17740
  }
17739
17741
  const Mo = {
17740
17742
  __init__: ["previewSupport"],
17741
- previewSupport: ["type", cr]
17743
+ previewSupport: ["type", ur]
17742
17744
  };
17743
17745
  var cA = "drop-ok", Bh = "drop-not-ok", $h = "attach-ok", jh = "new-parent", Fh = "create", uA = 2e3;
17744
17746
  function o_(e, t, n, i, r) {
@@ -17892,7 +17894,7 @@ function a_(e, t, n, i, r) {
17892
17894
  var c = _e("g");
17893
17895
  return a.forEach(function(u) {
17894
17896
  var l;
17895
- u.hidden || (u.waypoints ? (l = n._createContainer("connection", c), n.drawConnection(kr(l), u)) : (l = n._createContainer("shape", c), n.drawShape(kr(l), u), Qt(l, u.x, u.y)), i.addDragger(u, s, l));
17897
+ u.hidden || (u.waypoints ? (l = n._createContainer("connection", c), n.drawConnection(Dr(l), u)) : (l = n._createContainer("shape", c), n.drawShape(Dr(l), u), Qt(l, u.x, u.y)), i.addDragger(u, s, l));
17896
17898
  }), s;
17897
17899
  }
17898
17900
  t.on("create.move", lA, function(a) {
@@ -18130,7 +18132,7 @@ kn.prototype.createTree = function(e) {
18130
18132
  var d = p.indexOf(f);
18131
18133
  return d !== -1 && p.splice(d, 1), p;
18132
18134
  }
18133
- Vr(a, function(f, p, d) {
18135
+ Wr(a, function(f, p, d) {
18134
18136
  if ($e(f))
18135
18137
  return;
18136
18138
  k(f.labels, function(g) {
@@ -18204,7 +18206,7 @@ const hA = {
18204
18206
  };
18205
18207
  function Du(e, t, n) {
18206
18208
  Ce(n) || (n = [n]), k(n, function(i) {
18207
- Dr(e[i]) || (t[i] = e[i]);
18209
+ Or(e[i]) || (t[i] = e[i]);
18208
18210
  });
18209
18211
  }
18210
18212
  var Ou = 750;
@@ -18304,7 +18306,7 @@ function Ta(e, t, n) {
18304
18306
  } = i, s = qt(r) && r.$descriptor;
18305
18307
  if (a && gA.includes(a))
18306
18308
  return o;
18307
- if (a && mA.includes(a) || a && s && !ft(s.properties, uo({ name: a })))
18309
+ if (a && mA.includes(a) || a && s && !ft(s.properties, lo({ name: a })))
18308
18310
  return !1;
18309
18311
  }), e.on("moddleCopy.canSetCopiedProperty", (i) => {
18310
18312
  const { property: r } = i;
@@ -18422,7 +18424,7 @@ const yA = {
18422
18424
  };
18423
18425
  function vA(e, t, n) {
18424
18426
  Ce(n) || (n = [n]), k(n, function(i) {
18425
- Dr(e[i]) || (t[i] = e[i]);
18427
+ Or(e[i]) || (t[i] = e[i]);
18426
18428
  });
18427
18429
  }
18428
18430
  var _A = [
@@ -18522,27 +18524,27 @@ const p_ = {
18522
18524
  bpmnReplace: ["type", l_]
18523
18525
  };
18524
18526
  var wA = 250;
18525
- function Ur(e) {
18527
+ function qr(e) {
18526
18528
  this._eventBus = e, this._tools = [], this._active = null;
18527
18529
  }
18528
- Ur.$inject = ["eventBus"];
18529
- Ur.prototype.registerTool = function(e, t) {
18530
+ qr.$inject = ["eventBus"];
18531
+ qr.prototype.registerTool = function(e, t) {
18530
18532
  var n = this._tools;
18531
18533
  if (!t)
18532
18534
  throw new Error(`A tool has to be registered with it's "events"`);
18533
18535
  n.push(e), this.bindEvents(e, t);
18534
18536
  };
18535
- Ur.prototype.isActive = function(e) {
18537
+ qr.prototype.isActive = function(e) {
18536
18538
  return e && this._active === e;
18537
18539
  };
18538
- Ur.prototype.length = function(e) {
18540
+ qr.prototype.length = function(e) {
18539
18541
  return this._tools.length;
18540
18542
  };
18541
- Ur.prototype.setActive = function(e) {
18543
+ qr.prototype.setActive = function(e) {
18542
18544
  var t = this._eventBus;
18543
18545
  this._active !== e && (this._active = e, t.fire("tool-manager.update", { tool: e }));
18544
18546
  };
18545
- Ur.prototype.bindEvents = function(e, t) {
18547
+ qr.prototype.bindEvents = function(e, t) {
18546
18548
  var n = this._eventBus, i = [];
18547
18549
  n.on(t.tool + ".init", function(r) {
18548
18550
  var o = r.context;
@@ -18559,14 +18561,14 @@ Ur.prototype.bindEvents = function(e, t) {
18559
18561
  };
18560
18562
  function EA(e) {
18561
18563
  var t = e.originalEvent && e.originalEvent.target;
18562
- return t && zr(t, '.group[data-group="tools"]');
18564
+ return t && Gr(t, '.group[data-group="tools"]');
18563
18565
  }
18564
18566
  const Fc = {
18565
18567
  __depends__: [
18566
18568
  Ii
18567
18569
  ],
18568
18570
  __init__: ["toolManager"],
18569
- toolManager: ["type", Ur]
18571
+ toolManager: ["type", qr]
18570
18572
  };
18571
18573
  function SA(e, t) {
18572
18574
  if (e === "x") {
@@ -19484,7 +19486,7 @@ function Dn(e, t, n) {
19484
19486
  this.executed(["element.updateAttachment"], wn(f)), this.reverted(["element.updateAttachment"], wn(f)), this.executed("element.updateLabel", wn(p)), this.reverted("element.updateLabel", wn(p));
19485
19487
  function p(d) {
19486
19488
  const { element: h } = d.context, m = Ln(h), g = Je(h), R = g && g.get("label");
19487
- tr(h) || zs(h) || (m && !R ? g.set("label", t.create("bpmndi:BPMNLabel")) : !m && R && g.set("label", void 0));
19489
+ nr(h) || zs(h) || (m && !R ? g.set("label", t.create("bpmndi:BPMNLabel")) : !m && R && g.set("label", void 0));
19488
19490
  }
19489
19491
  }
19490
19492
  ce(Dn, Z);
@@ -19617,23 +19619,23 @@ function VA(e) {
19617
19619
  }
19618
19620
  }
19619
19621
  }
19620
- function ur(e, t) {
19622
+ function lr(e, t) {
19621
19623
  ki.call(this), this._bpmnFactory = e, this._moddle = t;
19622
19624
  }
19623
- ce(ur, ki);
19624
- ur.$inject = [
19625
+ ce(lr, ki);
19626
+ lr.$inject = [
19625
19627
  "bpmnFactory",
19626
19628
  "moddle"
19627
19629
  ];
19628
- ur.prototype._baseCreate = ki.prototype.create;
19629
- ur.prototype.create = function(e, t) {
19630
+ lr.prototype._baseCreate = ki.prototype.create;
19631
+ lr.prototype.create = function(e, t) {
19630
19632
  if (e === "label") {
19631
19633
  var n = t.di || this._bpmnFactory.createDiLabel();
19632
- return this._baseCreate(e, N({ type: "label", di: n }, Br, t));
19634
+ return this._baseCreate(e, N({ type: "label", di: n }, $r, t));
19633
19635
  }
19634
19636
  return this.createElement(e, t);
19635
19637
  };
19636
- ur.prototype.createElement = function(e, t) {
19638
+ lr.prototype.createElement = function(e, t) {
19637
19639
  t = N({}, t || {});
19638
19640
  var n, i = t.businessObject, r = t.di;
19639
19641
  if (!i) {
@@ -19665,7 +19667,7 @@ ur.prototype.createElement = function(e, t) {
19665
19667
  di: r
19666
19668
  }), this._baseCreate(e, t);
19667
19669
  };
19668
- ur.prototype.getDefaultSize = function(e, t) {
19670
+ lr.prototype.getDefaultSize = function(e, t) {
19669
19671
  var n = te(e);
19670
19672
  if (t = t || Je(e), v(n, "bpmn:SubProcess"))
19671
19673
  return Ge(n, t) ? { width: 350, height: 200 } : { width: 100, height: 80 };
@@ -19681,7 +19683,7 @@ ur.prototype.getDefaultSize = function(e, t) {
19681
19683
  }
19682
19684
  return v(n, "bpmn:Lane") ? { width: 400, height: 100 } : v(n, "bpmn:DataObjectReference") ? { width: 36, height: 50 } : v(n, "bpmn:DataStoreReference") ? { width: 50, height: 50 } : v(n, "bpmn:TextAnnotation") ? { width: 100, height: 40 } : v(n, "bpmn:Group") ? { width: 300, height: 300 } : { width: 100, height: 80 };
19683
19685
  };
19684
- ur.prototype.createParticipantShape = function(e) {
19686
+ lr.prototype.createParticipantShape = function(e) {
19685
19687
  return qt(e) || (e = { isExpanded: e }), e = N({ type: "bpmn:Participant" }, e || {}), e.isExpanded !== !1 && (e.processRef = this._bpmnFactory.create("bpmn:Process")), this.createShape(e);
19686
19688
  };
19687
19689
  function WA(e, t, n) {
@@ -19737,7 +19739,7 @@ Gc.prototype.postExecute = function(e) {
19737
19739
  qA(e.source, e.shape) || (t.connectionTarget === e.source ? this._modeling.connect(e.shape, e.source, e.connection) : this._modeling.connect(e.source, e.shape, e.connection));
19738
19740
  };
19739
19741
  function qA(e, t) {
19740
- return nr(e.outgoing, function(n) {
19742
+ return ir(e.outgoing, function(n) {
19741
19743
  return n.target === t;
19742
19744
  });
19743
19745
  }
@@ -19818,11 +19820,11 @@ Jp.prototype.preExecute = function(e) {
19818
19820
  }), e.elements = xo(l);
19819
19821
  };
19820
19822
  var tm = Math.round;
19821
- function lr(e) {
19823
+ function pr(e) {
19822
19824
  this._canvas = e;
19823
19825
  }
19824
- lr.$inject = ["canvas"];
19825
- lr.prototype.execute = function(e) {
19826
+ pr.$inject = ["canvas"];
19827
+ pr.prototype.execute = function(e) {
19826
19828
  var t = e.shape, n = e.position, i = e.parent, r = e.parentIndex;
19827
19829
  if (!i)
19828
19830
  throw new Error("parent required");
@@ -19833,21 +19835,21 @@ lr.prototype.execute = function(e) {
19833
19835
  y: n.y - tm(t.height / 2)
19834
19836
  }), this._canvas.addShape(t, i, r), t;
19835
19837
  };
19836
- lr.prototype.revert = function(e) {
19838
+ pr.prototype.revert = function(e) {
19837
19839
  var t = e.shape;
19838
19840
  return this._canvas.removeShape(t), t;
19839
19841
  };
19840
19842
  function Ma(e) {
19841
- lr.call(this, e);
19843
+ pr.call(this, e);
19842
19844
  }
19843
- ce(Ma, lr);
19845
+ ce(Ma, pr);
19844
19846
  Ma.$inject = ["canvas"];
19845
- var YA = lr.prototype.execute;
19847
+ var YA = pr.prototype.execute;
19846
19848
  Ma.prototype.execute = function(e) {
19847
19849
  var t = e.shape;
19848
19850
  return XA(t), t.labelTarget = e.labelTarget, YA.call(this, e);
19849
19851
  };
19850
- var KA = lr.prototype.revert;
19852
+ var KA = pr.prototype.revert;
19851
19853
  Ma.prototype.revert = function(e) {
19852
19854
  return e.shape.labelTarget = null, KA.call(this, e);
19853
19855
  };
@@ -20045,11 +20047,11 @@ qc.prototype.postExecute = function(e) {
20045
20047
  n
20046
20048
  );
20047
20049
  };
20048
- function qr(e) {
20050
+ function Yr(e) {
20049
20051
  this._modeling = e, this._helper = new Oa(e);
20050
20052
  }
20051
- qr.$inject = ["modeling"];
20052
- qr.prototype.execute = function(e) {
20053
+ Yr.$inject = ["modeling"];
20054
+ Yr.prototype.execute = function(e) {
20053
20055
  var t = e.shape, n = e.delta, i = e.newParent || t.parent, r = e.newParentIndex, o = t.parent;
20054
20056
  return e.oldBounds = ti(t, ["x", "y", "width", "height"]), e.oldParent = o, e.oldParentIndex = At(o.children, t), Tt(i.children, t, r), N(t, {
20055
20057
  parent: i,
@@ -20057,7 +20059,7 @@ qr.prototype.execute = function(e) {
20057
20059
  y: t.y + n.y
20058
20060
  }), t;
20059
20061
  };
20060
- qr.prototype.postExecute = function(e) {
20062
+ Yr.prototype.postExecute = function(e) {
20061
20063
  var t = e.shape, n = e.delta, i = e.hints, r = this._modeling;
20062
20064
  i.layout !== !1 && (k(t.incoming, function(o) {
20063
20065
  r.layoutConnection(o, {
@@ -20069,7 +20071,7 @@ qr.prototype.postExecute = function(e) {
20069
20071
  });
20070
20072
  })), i.recurse !== !1 && this.moveChildren(e);
20071
20073
  };
20072
- qr.prototype.revert = function(e) {
20074
+ Yr.prototype.revert = function(e) {
20073
20075
  var t = e.shape, n = e.oldParent, i = e.oldParentIndex, r = e.delta;
20074
20076
  return Tt(n.children, t, i), N(t, {
20075
20077
  parent: n,
@@ -20077,11 +20079,11 @@ qr.prototype.revert = function(e) {
20077
20079
  y: t.y - r.y
20078
20080
  }), t;
20079
20081
  };
20080
- qr.prototype.moveChildren = function(e) {
20082
+ Yr.prototype.moveChildren = function(e) {
20081
20083
  var t = e.delta, n = e.shape;
20082
20084
  this._helper.moveRecursive(n.children, t, null);
20083
20085
  };
20084
- qr.prototype.getNewParent = function(e) {
20086
+ Yr.prototype.getNewParent = function(e) {
20085
20087
  return e.newParent || e.shape.parent;
20086
20088
  };
20087
20089
  function La(e) {
@@ -20211,11 +20213,11 @@ Ia.prototype.revert = function(e) {
20211
20213
  y: n.y
20212
20214
  }), t;
20213
20215
  };
20214
- function pr(e) {
20216
+ function fr(e) {
20215
20217
  this._modeling = e;
20216
20218
  }
20217
- pr.$inject = ["modeling"];
20218
- pr.prototype.preExecute = function(e) {
20219
+ fr.$inject = ["modeling"];
20220
+ fr.prototype.preExecute = function(e) {
20219
20221
  var t = e.delta, n = e.direction, i = e.movingShapes, r = e.resizingShapes, o = e.start, a = {};
20220
20222
  this.moveShapes(i, t), k(r, function(s) {
20221
20223
  a[s.id] = QA(s);
@@ -20229,11 +20231,11 @@ pr.prototype.preExecute = function(e) {
20229
20231
  a
20230
20232
  );
20231
20233
  };
20232
- pr.prototype.execute = function() {
20234
+ fr.prototype.execute = function() {
20233
20235
  };
20234
- pr.prototype.revert = function() {
20236
+ fr.prototype.revert = function() {
20235
20237
  };
20236
- pr.prototype.moveShapes = function(e, t) {
20238
+ fr.prototype.moveShapes = function(e, t) {
20237
20239
  var n = this;
20238
20240
  k(e, function(i) {
20239
20241
  n._modeling.moveShape(i, t, null, {
@@ -20243,7 +20245,7 @@ pr.prototype.moveShapes = function(e, t) {
20243
20245
  });
20244
20246
  });
20245
20247
  };
20246
- pr.prototype.resizeShapes = function(e, t, n) {
20248
+ fr.prototype.resizeShapes = function(e, t, n) {
20247
20249
  var i = this;
20248
20250
  k(e, function(r) {
20249
20251
  var o = CA(r, n, t);
@@ -20254,7 +20256,7 @@ pr.prototype.resizeShapes = function(e, t, n) {
20254
20256
  });
20255
20257
  });
20256
20258
  };
20257
- pr.prototype.updateConnectionWaypoints = function(e, t, n, i, r, o, a) {
20259
+ fr.prototype.updateConnectionWaypoints = function(e, t, n, i, r, o, a) {
20258
20260
  var s = this, c = new Set(r), u = new Set(o);
20259
20261
  k(e, function(l) {
20260
20262
  var f = l.source, p = l.target, d = ZA(l), h = g_(n), m = {}, g = c.has(f) || u.has(f), R = c.has(p) || u.has(p);
@@ -20382,13 +20384,13 @@ pt.$inject = ["eventBus", "elementFactory", "commandStack"];
20382
20384
  pt.prototype.getHandlers = function() {
20383
20385
  return {
20384
20386
  "shape.append": Gc,
20385
- "shape.create": lr,
20387
+ "shape.create": pr,
20386
20388
  "shape.delete": Da,
20387
- "shape.move": qr,
20389
+ "shape.move": Yr,
20388
20390
  "shape.resize": Ia,
20389
20391
  "shape.replace": Ni,
20390
20392
  "shape.toggleCollapse": Yc,
20391
- spaceTool: pr,
20393
+ spaceTool: fr,
20392
20394
  "label.create": Ma,
20393
20395
  "connection.create": Vc,
20394
20396
  "connection.delete": ka,
@@ -20741,7 +20743,7 @@ of.$inject = [
20741
20743
  "spaceTool"
20742
20744
  ];
20743
20745
  of.prototype.preExecute = function(e) {
20744
- var t = this._spaceTool, n = this._modeling, i = e.shape, r = e.location, o = Gn(i), a = o === i, s = a ? i : i.parent, c = ar(s), u = Ut(i);
20746
+ var t = this._spaceTool, n = this._modeling, i = e.shape, r = e.location, o = Gn(i), a = o === i, s = a ? i : i.parent, c = sr(s), u = Ut(i);
20745
20747
  if (u ? r === "left" ? r = "top" : r === "right" && (r = "bottom") : r === "top" ? r = "left" : r === "bottom" && (r = "right"), !c.length) {
20746
20748
  var l = u ? {
20747
20749
  x: i.x + zn,
@@ -20764,7 +20766,7 @@ of.prototype.preExecute = function(e) {
20764
20766
  );
20765
20767
  }
20766
20768
  var f = [];
20767
- Vr(o, function(w) {
20769
+ Wr(o, function(w) {
20768
20770
  return f.push(w), w.label && f.push(w.label), w === i ? [] : Fe(w.children, function(S) {
20769
20771
  return S !== i;
20770
20772
  });
@@ -20806,7 +20808,7 @@ af.$inject = [
20806
20808
  "modeling"
20807
20809
  ];
20808
20810
  af.prototype.preExecute = function(e) {
20809
- var t = this._modeling, n = e.shape, i = e.count, r = ar(n), o = r.length;
20811
+ var t = this._modeling, n = e.shape, i = e.count, r = sr(n), o = r.length;
20810
20812
  if (o > i)
20811
20813
  throw new Error(`more than <${i}> child lanes`);
20812
20814
  var a = Ut(n), s = a ? n.height : n.width, c = Math.round(s / i), u, l, f, p;
@@ -20845,7 +20847,7 @@ $a.prototype.resizeBalanced = function(e, t) {
20845
20847
  };
20846
20848
  $a.prototype.resizeSpace = function(e, t) {
20847
20849
  var n = this._spaceTool, i = xe(e), r = xe(t), o = av(r, i), a = Gn(e), s = [], c = [];
20848
- Vr(a, function(h) {
20850
+ Wr(a, function(h) {
20849
20851
  return s.push(h), (v(h, "bpmn:Lane") || v(h, "bpmn:Participant")) && c.push(h), h.children;
20850
20852
  });
20851
20853
  var u, l, f, p, d;
@@ -21143,7 +21145,7 @@ function C_(e, t, n) {
21143
21145
  }
21144
21146
  function r(c) {
21145
21147
  var u = c.element, l = u.businessObject, f = c.newLabel;
21146
- if (!$e(u) && tr(u) && !Rc(u) && !am(f)) {
21148
+ if (!$e(u) && nr(u) && !Rc(u) && !am(f)) {
21147
21149
  var p = 7, d = ep(u);
21148
21150
  d = {
21149
21151
  x: d.x,
@@ -21654,7 +21656,7 @@ function fm(e, t) {
21654
21656
  function da(e) {
21655
21657
  return v(e, "bpmn:SubProcess") && Ge(e);
21656
21658
  }
21657
- function Mr(e, t) {
21659
+ function kr(e, t) {
21658
21660
  return e === t;
21659
21661
  }
21660
21662
  function zT(e, t) {
@@ -21687,7 +21689,7 @@ function WT(e, t, n) {
21687
21689
  return r === "top" ? n.loop.fromTop : r === "right" ? n.loop.fromRight : r === "left" ? n.loop.fromLeft : n.loop.fromBottom;
21688
21690
  }
21689
21691
  function UT(e, t, n, i) {
21690
- var r = Re(e), o = Re(t), a = $T(e), s, c, u = Mr(e.host, t), l = zT(a, ["top", "right", "bottom", "left"]), f = Jt(o, r, {
21692
+ var r = Re(e), o = Re(t), a = $T(e), s, c, u = kr(e.host, t), l = zT(a, ["top", "right", "bottom", "left"]), f = Jt(o, r, {
21691
21693
  x: e.width / 2 + t.width / 2,
21692
21694
  y: e.height / 2 + t.height / 2
21693
21695
  });
@@ -21712,32 +21714,32 @@ function YT(e, t, n, i) {
21712
21714
  return Jo[e];
21713
21715
  var r = vo(e), o = yo(e), a = vo(t), s = yo(t);
21714
21716
  if (i) {
21715
- if (Mr(r, a) || dm(o, s))
21717
+ if (kr(r, a) || dm(o, s))
21716
21718
  return Jo[r];
21717
- } else if (Mr(o, s) || dm(r, a))
21719
+ } else if (kr(o, s) || dm(r, a))
21718
21720
  return Jo[o];
21719
21721
  return Jo[i ? o : r];
21720
21722
  }
21721
21723
  function KT(e, t, n, i) {
21722
21724
  if (n)
21723
- return k_(e) ? GT(e, t) || Mr(e, t) ? "h" : "v" : VT(e, t) || Mr(e, t) ? "v" : "h";
21725
+ return k_(e) ? GT(e, t) || kr(e, t) ? "h" : "v" : VT(e, t) || kr(e, t) ? "v" : "h";
21724
21726
  var r = vo(e), o = yo(e), a = vo(t), s = yo(t);
21725
- return a && !s ? "v" : s && !a ? "h" : i ? Mr(r, a) ? "h" : "v" : Mr(o, s) ? "v" : "h";
21727
+ return a && !s ? "v" : s && !a ? "h" : i ? kr(r, a) ? "h" : "v" : kr(o, s) ? "v" : "h";
21726
21728
  }
21727
21729
  Jc.$inject = ["elementRegistry"];
21728
21730
  function mm(e) {
21729
21731
  return N({ original: e.point.original || e.point }, e.actual);
21730
21732
  }
21731
- function fr(e, t) {
21733
+ function dr(e, t) {
21732
21734
  this._elementRegistry = e, this._graphicsFactory = t;
21733
21735
  }
21734
- fr.$inject = ["elementRegistry", "graphicsFactory"];
21735
- fr.prototype.getCroppedWaypoints = function(e, t, n) {
21736
+ dr.$inject = ["elementRegistry", "graphicsFactory"];
21737
+ dr.prototype.getCroppedWaypoints = function(e, t, n) {
21736
21738
  t = t || e.source, n = n || e.target;
21737
21739
  var i = this.getDockingPoint(e, t, !0), r = this.getDockingPoint(e, n), o = e.waypoints.slice(i.idx + 1, r.idx);
21738
21740
  return o.unshift(mm(i)), o.push(mm(r)), o;
21739
21741
  };
21740
- fr.prototype.getDockingPoint = function(e, t, n) {
21742
+ dr.prototype.getDockingPoint = function(e, t, n) {
21741
21743
  var i = e.waypoints, r, o, a;
21742
21744
  return r = n ? 0 : i.length - 1, o = i[r], a = this._getIntersection(t, e, n), {
21743
21745
  point: o,
@@ -21745,17 +21747,17 @@ fr.prototype.getDockingPoint = function(e, t, n) {
21745
21747
  idx: r
21746
21748
  };
21747
21749
  };
21748
- fr.prototype._getIntersection = function(e, t, n) {
21750
+ dr.prototype._getIntersection = function(e, t, n) {
21749
21751
  var i = this._getShapePath(e), r = this._getConnectionPath(t);
21750
21752
  return ca(i, r, n);
21751
21753
  };
21752
- fr.prototype._getConnectionPath = function(e) {
21754
+ dr.prototype._getConnectionPath = function(e) {
21753
21755
  return this._graphicsFactory.getConnectionPath(e);
21754
21756
  };
21755
- fr.prototype._getShapePath = function(e) {
21757
+ dr.prototype._getShapePath = function(e) {
21756
21758
  return this._graphicsFactory.getShapePath(e);
21757
21759
  };
21758
- fr.prototype._getGfx = function(e) {
21760
+ dr.prototype._getGfx = function(e) {
21759
21761
  return this._elementRegistry.getGraphics(e);
21760
21762
  };
21761
21763
  const df = {
@@ -21778,10 +21780,10 @@ const df = {
21778
21780
  ],
21779
21781
  bpmnFactory: ["type", Xn],
21780
21782
  bpmnUpdater: ["type", Dn],
21781
- elementFactory: ["type", ur],
21783
+ elementFactory: ["type", lr],
21782
21784
  modeling: ["type", tn],
21783
21785
  layouter: ["type", Jc],
21784
- connectionDocking: ["type", fr]
21786
+ connectionDocking: ["type", dr]
21785
21787
  };
21786
21788
  var XT = 10, D_ = 50, ZT = 250;
21787
21789
  function hf(e, t, n, i) {
@@ -22057,8 +22059,8 @@ Kt.$inject = [
22057
22059
  Kt.prototype.get = function(e) {
22058
22060
  if (An(e) && (e = { id: e }), An(e.element) && (e.element = this._elementRegistry.get(e.element)), e.element) {
22059
22061
  var t = this._getOverlayContainer(e.element, !0);
22060
- return t ? e.type ? Fe(t.overlays, uo({ type: e.type })) : t.overlays.slice() : [];
22061
- } else return e.type ? Fe(this._overlays, uo({ type: e.type })) : e.id ? this._overlays[e.id] : null;
22062
+ return t ? e.type ? Fe(t.overlays, lo({ type: e.type })) : t.overlays.slice() : [];
22063
+ } else return e.type ? Fe(this._overlays, lo({ type: e.type })) : e.id ? this._overlays[e.id] : null;
22062
22064
  };
22063
22065
  Kt.prototype.add = function(e, t, n) {
22064
22066
  if (qt(t) && (n = t, t = null), e.id || (e = this._elementRegistry.get(e)), !n.position)
@@ -22349,14 +22351,14 @@ var ym = {
22349
22351
  x: 180,
22350
22352
  y: 160
22351
22353
  };
22352
- function Yr(e, t) {
22354
+ function Kr(e, t) {
22353
22355
  this._eventBus = e, this._moddle = t;
22354
22356
  var n = this;
22355
22357
  e.on("import.render.start", 1500, function(i, r) {
22356
22358
  n._handleImport(r.definitions);
22357
22359
  });
22358
22360
  }
22359
- Yr.prototype._handleImport = function(e) {
22361
+ Kr.prototype._handleImport = function(e) {
22360
22362
  if (e.diagrams) {
22361
22363
  var t = this;
22362
22364
  this._definitions = e, this._processToDiagramMap = {}, e.diagrams.forEach(function(i) {
@@ -22368,7 +22370,7 @@ Yr.prototype._handleImport = function(e) {
22368
22370
  });
22369
22371
  }
22370
22372
  };
22371
- Yr.prototype._createNewDiagrams = function(e) {
22373
+ Kr.prototype._createNewDiagrams = function(e) {
22372
22374
  var t = this, n = [], i = [];
22373
22375
  e.get("planeElement").forEach(function(o) {
22374
22376
  var a = o.bpmnElement;
@@ -22392,7 +22394,7 @@ Yr.prototype._createNewDiagrams = function(e) {
22392
22394
  }
22393
22395
  }), r;
22394
22396
  };
22395
- Yr.prototype._movePlaneElementsToOrigin = function(e) {
22397
+ Kr.prototype._movePlaneElementsToOrigin = function(e) {
22396
22398
  var t = e.get("planeElement"), n = _M(e), i = {
22397
22399
  x: n.x - ym.x,
22398
22400
  y: n.y - ym.y
@@ -22403,11 +22405,11 @@ Yr.prototype._movePlaneElementsToOrigin = function(e) {
22403
22405
  }) : r.bounds && (r.bounds.x = r.bounds.x - i.x, r.bounds.y = r.bounds.y - i.y);
22404
22406
  });
22405
22407
  };
22406
- Yr.prototype._moveToDiPlane = function(e, t) {
22408
+ Kr.prototype._moveToDiPlane = function(e, t) {
22407
22409
  var n = z_(e), i = n.plane.get("planeElement");
22408
22410
  i.splice(i.indexOf(e), 1), t.get("planeElement").push(e);
22409
22411
  };
22410
- Yr.prototype._createDiagram = function(e) {
22412
+ Kr.prototype._createDiagram = function(e) {
22411
22413
  var t = this._moddle.create("bpmndi:BPMNPlane", {
22412
22414
  bpmnElement: e
22413
22415
  }), n = this._moddle.create("bpmndi:BPMNDiagram", {
@@ -22415,7 +22417,7 @@ Yr.prototype._createDiagram = function(e) {
22415
22417
  });
22416
22418
  return t.$parent = n, t.bpmnElement = e, n.$parent = this._definitions, this._definitions.diagrams.push(n), n;
22417
22419
  };
22418
- Yr.$inject = ["eventBus", "moddle"];
22420
+ Kr.$inject = ["eventBus", "moddle"];
22419
22421
  function z_(e) {
22420
22422
  return v(e, "bpmndi:BPMNDiagram") ? e : z_(e.$parent);
22421
22423
  }
@@ -22438,7 +22440,7 @@ function bM(e, t) {
22438
22440
  return !(!v(n, "bpmn:SubProcess") || n === t.bpmnElement || je(e, ["bpmn:DataInputAssociation", "bpmn:DataOutputAssociation"]));
22439
22441
  }
22440
22442
  var Es = 250, xM = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.81801948,3.50735931 L10.4996894,9.1896894 L10.5,4 L12,4 L12,12 L4,12 L4,10.5 L9.6896894,10.4996894 L3.75735931,4.56801948 C3.46446609,4.27512627 3.46446609,3.80025253 3.75735931,3.50735931 C4.05025253,3.21446609 4.52512627,3.21446609 4.81801948,3.50735931 Z"/></svg>', wM = "bjs-drilldown-empty";
22441
- function dr(e, t, n, i, r) {
22443
+ function hr(e, t, n, i, r) {
22442
22444
  Z.call(this, t), this._canvas = e, this._eventBus = t, this._elementRegistry = n, this._overlays = i, this._translate = r;
22443
22445
  var o = this;
22444
22446
  this.executed("shape.toggleCollapse", Es, function(a) {
@@ -22471,26 +22473,26 @@ function dr(e, t, n, i, r) {
22471
22473
  });
22472
22474
  });
22473
22475
  }
22474
- ce(dr, Z);
22475
- dr.prototype._updateDrilldownOverlay = function(e) {
22476
+ ce(hr, Z);
22477
+ hr.prototype._updateDrilldownOverlay = function(e) {
22476
22478
  var t = this._canvas;
22477
22479
  if (e) {
22478
22480
  var n = t.findRoot(e);
22479
22481
  n && this._updateOverlayVisibility(n);
22480
22482
  }
22481
22483
  };
22482
- dr.prototype._canDrillDown = function(e) {
22484
+ hr.prototype._canDrillDown = function(e) {
22483
22485
  var t = this._canvas;
22484
22486
  return v(e, "bpmn:SubProcess") && t.findRoot(li(e));
22485
22487
  };
22486
- dr.prototype._updateOverlayVisibility = function(e) {
22488
+ hr.prototype._updateOverlayVisibility = function(e) {
22487
22489
  var t = this._overlays, n = te(e), i = t.get({ element: n.id, type: "drilldown" })[0];
22488
22490
  if (i) {
22489
22491
  var r = n && n.get("flowElements") && n.get("flowElements").length;
22490
22492
  xt(i.html).toggle(wM, !r);
22491
22493
  }
22492
22494
  };
22493
- dr.prototype._addOverlay = function(e) {
22495
+ hr.prototype._addOverlay = function(e) {
22494
22496
  var t = this._canvas, n = this._overlays, i = te(e), r = n.get({ element: e, type: "drilldown" });
22495
22497
  r.length && this._removeOverlay(e);
22496
22498
  var o = gt('<button type="button" class="bjs-drilldown">' + xM + "</button>"), a = i.get("name") || i.get("id"), s = this._translate("Open {element}", { element: a });
@@ -22504,14 +22506,14 @@ dr.prototype._addOverlay = function(e) {
22504
22506
  html: o
22505
22507
  }), this._updateOverlayVisibility(e);
22506
22508
  };
22507
- dr.prototype._removeOverlay = function(e) {
22509
+ hr.prototype._removeOverlay = function(e) {
22508
22510
  var t = this._overlays;
22509
22511
  t.remove({
22510
22512
  element: e,
22511
22513
  type: "drilldown"
22512
22514
  });
22513
22515
  };
22514
- dr.$inject = [
22516
+ hr.$inject = [
22515
22517
  "canvas",
22516
22518
  "eventBus",
22517
22519
  "elementRegistry",
@@ -22523,21 +22525,21 @@ const EM = {
22523
22525
  __init__: ["drilldownBreadcrumbs", "drilldownOverlayBehavior", "drilldownCentering", "subprocessCompatibility"],
22524
22526
  drilldownBreadcrumbs: ["type", F_],
22525
22527
  drilldownCentering: ["type", H_],
22526
- drilldownOverlayBehavior: ["type", dr],
22527
- subprocessCompatibility: ["type", Yr]
22528
+ drilldownOverlayBehavior: ["type", hr],
22529
+ subprocessCompatibility: ["type", Kr]
22528
22530
  };
22529
- function hr(e) {
22531
+ function mr(e) {
22530
22532
  Et.call(this, e);
22531
22533
  }
22532
- ce(hr, Et);
22533
- hr.prototype._modules = [
22534
+ ce(mr, Et);
22535
+ mr.prototype._modules = [
22534
22536
  ev,
22535
22537
  EM,
22536
22538
  nu,
22537
22539
  Yn,
22538
22540
  Ra
22539
22541
  ];
22540
- hr.prototype._moddleExtensions = {};
22542
+ mr.prototype._moddleExtensions = {};
22541
22543
  var iu = "keyboard.keydown", SM = "keyboard.keyup", RM = 1e3, G_ = "Keyboard binding is now implicit; explicit binding to an element got removed. For more information, see https://github.com/bpmn-io/diagram-js/issues/661";
22542
22544
  function gn(e, t) {
22543
22545
  var n = this;
@@ -22745,7 +22747,7 @@ function U_(e, t) {
22745
22747
  s.focused ? e.on("element.mousedown", 500, i) : e.off("element.mousedown", i);
22746
22748
  });
22747
22749
  function r(s) {
22748
- var c = n.start, u = n.button, l = $r(s), f = ei(l, c);
22750
+ var c = n.start, u = n.button, l = jr(s), f = ei(l, c);
22749
22751
  if (!n.dragging && TM(f) > AM && (n.dragging = !0, u === 0 && n_(e), $c("grab")), n.dragging) {
22750
22752
  var p = n.last || n.start;
22751
22753
  f = ei(l, p), t.scroll({
@@ -22759,12 +22761,12 @@ function U_(e, t) {
22759
22761
  ke.unbind(document, "mousemove", r), ke.unbind(document, "mouseup", o), n = null, t_();
22760
22762
  }
22761
22763
  function a(s) {
22762
- if (!zr(s.target, ".djs-draggable")) {
22764
+ if (!Gr(s.target, ".djs-draggable")) {
22763
22765
  var c = s.button;
22764
22766
  if (!(c >= 2 || s.ctrlKey || s.shiftKey || s.altKey))
22765
22767
  return n = {
22766
22768
  button: c,
22767
- start: $r(s)
22769
+ start: jr(s)
22768
22770
  }, ke.bind(document, "mousemove", r), ke.bind(document, "mouseup", o), !0;
22769
22771
  }
22770
22772
  }
@@ -22862,16 +22864,16 @@ const X_ = {
22862
22864
  zoomScroll: ["type", _i]
22863
22865
  };
22864
22866
  function ma(e) {
22865
- hr.call(this, e);
22867
+ mr.call(this, e);
22866
22868
  }
22867
- ce(ma, hr);
22869
+ ce(ma, mr);
22868
22870
  ma.prototype._navigationModules = [
22869
22871
  W_,
22870
22872
  q_,
22871
22873
  X_
22872
22874
  ];
22873
22875
  ma.prototype._modules = [].concat(
22874
- hr.prototype._modules,
22876
+ mr.prototype._modules,
22875
22877
  ma.prototype._navigationModules
22876
22878
  );
22877
22879
  function ju(e) {
@@ -23140,7 +23142,7 @@ $t.prototype.isOpen = function(e) {
23140
23142
  if (!e)
23141
23143
  return !0;
23142
23144
  var n = t.target;
23143
- return Ce(e) !== Ce(n) ? !1 : Ce(e) ? e.length === n.length && Fr(e, function(i) {
23145
+ return Ce(e) !== Ce(n) ? !1 : Ce(e) ? e.length === n.length && Hr(e, function(i) {
23144
23146
  return n.includes(i);
23145
23147
  }) : n === e;
23146
23148
  };
@@ -23218,7 +23220,7 @@ function GM(e) {
23218
23220
  return e.waypoints[e.waypoints.length - 1];
23219
23221
  }
23220
23222
  function VM(e, t) {
23221
- return e = Ce(e) ? e : [e], t = Ce(t) ? t : [t], e.length === t.length && Fr(e, function(n) {
23223
+ return e = Ce(e) ? e : [e], t = Ce(t) ? t : [t], e.length === t.length && Hr(e, function(n) {
23222
23224
  return t.includes(n);
23223
23225
  });
23224
23226
  }
@@ -23254,15 +23256,15 @@ function au(e) {
23254
23256
  function Us(e, t) {
23255
23257
  this.props = e, this.context = t;
23256
23258
  }
23257
- function jr(e, t) {
23258
- if (t == null) return e.__ ? jr(e.__, e.__i + 1) : null;
23259
+ function Fr(e, t) {
23260
+ if (t == null) return e.__ ? Fr(e.__, e.__i + 1) : null;
23259
23261
  for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
23260
- return typeof e.type == "function" ? jr(e) : null;
23262
+ return typeof e.type == "function" ? Fr(e) : null;
23261
23263
  }
23262
23264
  function UM(e) {
23263
23265
  if (e.__P && e.__d) {
23264
23266
  var t = e.__v, n = t.__e, i = [], r = [], o = Ri({}, t);
23265
- o.__v = t.__v + 1, wt.vnode && wt.vnode(o), xf(e.__P, o, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [n] : null, i, n ?? jr(t), !!(32 & t.__u), r), o.__v = t.__v, o.__.__k[o.__i] = o, sb(i, o, r), t.__e = t.__ = null, o.__e != n && ib(o);
23267
+ o.__v = t.__v + 1, wt.vnode && wt.vnode(o), xf(e.__P, o, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [n] : null, i, n ?? Fr(t), !!(32 & t.__u), r), o.__v = t.__v, o.__.__k[o.__i] = o, sb(i, o, r), t.__e = t.__ = null, o.__e != n && ib(o);
23266
23268
  }
23267
23269
  }
23268
23270
  function ib(e) {
@@ -23288,7 +23290,7 @@ function rb(e, t, n, i, r, o, a, s, c, u, l) {
23288
23290
  function qM(e, t, n, i, r) {
23289
23291
  var o, a, s, c, u, l = n.length, f = l, p = 0;
23290
23292
  for (e.__k = new Array(r), o = 0; o < r; o++) (a = t[o]) != null && typeof a != "boolean" && typeof a != "function" ? (typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? a = e.__k[o] = Ws(null, a, null, null, null) : ou(a) ? a = e.__k[o] = Ws(au, { children: a }, null, null, null) : a.constructor === void 0 && a.__b > 0 ? a = e.__k[o] = Ws(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : e.__k[o] = a, c = o + p, a.__ = e, a.__b = e.__b + 1, s = null, (u = a.__i = YM(a, n, c, f)) != -1 && (f--, (s = n[u]) && (s.__u |= 2)), s == null || s.__v == null ? (u == -1 && (r > l ? p-- : r < l && p++), typeof a.type != "function" && (a.__u |= 4)) : u != c && (u == c - 1 ? p-- : u == c + 1 ? p++ : (u > c ? p-- : p++, a.__u |= 4))) : e.__k[o] = null;
23291
- if (f) for (o = 0; o < l; o++) (s = n[o]) != null && (2 & s.__u) == 0 && (s.__e == i && (i = jr(s)), ub(s, s));
23293
+ if (f) for (o = 0; o < l; o++) (s = n[o]) != null && (2 & s.__u) == 0 && (s.__e == i && (i = Fr(s)), ub(s, s));
23292
23294
  return i;
23293
23295
  }
23294
23296
  function ob(e, t, n) {
@@ -23297,7 +23299,7 @@ function ob(e, t, n) {
23297
23299
  for (i = e.__k, r = 0; i && r < i.length; r++) i[r] && (i[r].__ = e, t = ob(i[r], t, n));
23298
23300
  return t;
23299
23301
  }
23300
- e.__e != t && (t && e.type && !t.parentNode && (t = jr(e)), t = n.insertBefore(e.__e, t || null));
23302
+ e.__e != t && (t && e.type && !t.parentNode && (t = Fr(e)), t = n.insertBefore(e.__e, t || null));
23301
23303
  do
23302
23304
  t = t && t.nextSibling;
23303
23305
  while (t != null && t.nodeType == 8);
@@ -23354,7 +23356,7 @@ function xf(e, t, n, i, r, o, a, s, c, u) {
23354
23356
  if (x && G.getDerivedStateFromProps == null && E !== h && p.componentWillReceiveProps != null && p.componentWillReceiveProps(E, S), t.__v == n.__v || !p.__e && p.shouldComponentUpdate != null && p.shouldComponentUpdate(E, p.__s, S) === !1) {
23355
23357
  t.__v != n.__v && (p.props = E, p.state = p.__s, p.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(j) {
23356
23358
  j && (j.__ = t);
23357
- }), lc.push.apply(p.__h, p._sb), p._sb = [], p.__h.length && a.push(p), s = jr(n);
23359
+ }), lc.push.apply(p.__h, p._sb), p._sb = [], p.__h.length && a.push(p), s = Fr(n);
23358
23360
  break e;
23359
23361
  }
23360
23362
  p.componentWillUpdate != null && p.componentWillUpdate(E, p.__s, S), x && p.componentDidUpdate != null && p.__h.push(function() {
@@ -23414,7 +23416,7 @@ function KM(e, t, n, i, r, o, a, s, c) {
23414
23416
  for (u in g) d = g[u], u == "dangerouslySetInnerHTML" ? f = d : u == "children" || u in R || u == "value" && "defaultValue" in R || u == "checked" && "defaultChecked" in R || Rs(e, u, null, d, r);
23415
23417
  for (u in R) d = R[u], u == "children" ? p = d : u == "dangerouslySetInnerHTML" ? l = d : u == "value" ? h = d : u == "checked" ? m = d : s && typeof d != "function" || g[u] === d || Rs(e, u, d, g[u], r);
23416
23418
  if (l) s || f && (l.__html == f.__html || l.__html == e.innerHTML) || (e.innerHTML = l.__html), t.__k = [];
23417
- else if (f && (e.innerHTML = ""), rb(t.type == "template" ? e.content : e, ou(p) ? p : [p], t, n, i, E == "foreignObject" ? "http://www.w3.org/1999/xhtml" : r, o, a, o ? o[0] : n.__k && jr(n, 0), s, c), o != null) for (u = o.length; u--; ) bf(o[u]);
23419
+ else if (f && (e.innerHTML = ""), rb(t.type == "template" ? e.content : e, ou(p) ? p : [p], t, n, i, E == "foreignObject" ? "http://www.w3.org/1999/xhtml" : r, o, a, o ? o[0] : n.__k && Fr(n, 0), s, c), o != null) for (u = o.length; u--; ) bf(o[u]);
23418
23420
  s && E != "textarea" || (u = "value", E == "progress" && h == null ? e.removeAttribute("value") : h != null && (h !== e[u] || E == "progress" && !h || E == "option" && h != g[u]) && Rs(e, u, h, g[u], r), u = "checked", m != null && m != e[u] && Rs(e, u, m, g[u], r));
23419
23421
  }
23420
23422
  return e;
@@ -23938,7 +23940,7 @@ function u2(e) {
23938
23940
  }, [n, K]), ye = Yo((z) => {
23939
23941
  if (z.key === "Enter" && T) {
23940
23942
  const F = z.target;
23941
- return !!zr(F, "a, button", !0) || T.disabled ? void 0 : ge(z, T);
23943
+ return !!Gr(F, "a, button", !0) || T.disabled ? void 0 : ge(z, T);
23942
23944
  }
23943
23945
  if (z.key === "Backspace") {
23944
23946
  const F = z.target;
@@ -24077,7 +24079,7 @@ function Im(e) {
24077
24079
  if (f.key === "Escape")
24078
24080
  return f.preventDefault(), t();
24079
24081
  }, l = (f) => {
24080
- if (!zr(f.target, ".djs-popup", !0))
24082
+ if (!Gr(f.target, ".djs-popup", !0))
24081
24083
  return t();
24082
24084
  };
24083
24085
  return document.documentElement.addEventListener("keydown", u), document.body.addEventListener("click", l, !0), () => {
@@ -24357,7 +24359,7 @@ Rt.prototype.isOpen = function() {
24357
24359
  };
24358
24360
  Rt.prototype.trigger = function(e, t, n = "click") {
24359
24361
  if (e.preventDefault(), !t) {
24360
- let r = zr(e.delegateTarget || e.target, ".entry", !0), o = ln(r, h2);
24362
+ let r = Gr(e.delegateTarget || e.target, ".entry", !0), o = ln(r, h2);
24361
24363
  t = { id: o, ...this._getEntry(o) };
24362
24364
  }
24363
24365
  const i = t.action;
@@ -24475,7 +24477,7 @@ function v2(e) {
24475
24477
  function _2(e, t) {
24476
24478
  return $m(t) - $m(e);
24477
24479
  }
24478
- const Bm = 0.5, ro = {
24480
+ const Bm = 0.5, oo = {
24479
24481
  FULL: 131.9,
24480
24482
  START_FULL_WORD: 8,
24481
24483
  START_WORD_PART: 7.87,
@@ -24491,7 +24493,7 @@ function vb(e) {
24491
24493
  if (Ce(e))
24492
24494
  return Math.max(...e.map(vb));
24493
24495
  const t = Math.log(e.value.length);
24494
- return e.match ? (e.start ? e.end ? ro.FULL : e.wordEnd ? ro.START_FULL_WORD : ro.START_WORD_PART : e.wordStart ? ro.WORD_START : ro.WORD_PART) * t : ro.NO_MATCH * t;
24496
+ return e.match ? (e.start ? e.end ? oo.FULL : e.wordEnd ? oo.START_FULL_WORD : oo.START_WORD_PART : e.wordStart ? oo.WORD_START : oo.WORD_PART) * t : oo.NO_MATCH * t;
24495
24497
  }
24496
24498
  function jm(e = "") {
24497
24499
  return Ce(e) ? e.join(", ") : e;
@@ -24710,7 +24712,7 @@ function Bi(e, t, n, i) {
24710
24712
  });
24711
24713
  k(l, function(f, p) {
24712
24714
  Ce(u) && (f = f.filter(function(d) {
24713
- return ft(u, uo({ id: d.id }));
24715
+ return ft(u, lo({ id: d.id }));
24714
24716
  })), r._expand(f, p);
24715
24717
  });
24716
24718
  }
@@ -24860,7 +24862,7 @@ Io.prototype.setOptions = function(e) {
24860
24862
  this._opts = N({}, this._opts, e);
24861
24863
  };
24862
24864
  Io.prototype._toBorderPoint = function(e) {
24863
- var t = this._canvas._container.getBoundingClientRect(), n = $r(e.originalEvent);
24865
+ var t = this._canvas._container.getBoundingClientRect(), n = jr(e.originalEvent);
24864
24866
  return {
24865
24867
  x: n.x - t.left,
24866
24868
  y: n.y - t.top
@@ -24875,7 +24877,7 @@ const T2 = {
24875
24877
  };
24876
24878
  var xb = "djs-bendpoint", wb = "djs-segment-dragger";
24877
24879
  function M2(e, t) {
24878
- var n = $r(t), i = e._container.getBoundingClientRect(), r;
24880
+ var n = jr(t), i = e._container.getBoundingClientRect(), r;
24879
24881
  r = {
24880
24882
  x: i.left,
24881
24883
  y: i.top
@@ -25040,7 +25042,7 @@ function Sb(e, t, n, i, r) {
25040
25042
  R(M, B), B.bendpoint || E(M, B, S);
25041
25043
  }
25042
25044
  }), e.on("element.mousedown", function(x) {
25043
- if (sr(x)) {
25045
+ if (cr(x)) {
25044
25046
  var w = x.originalEvent, S = x.element;
25045
25047
  if (S.waypoints)
25046
25048
  return s(w, S);
@@ -25078,11 +25080,11 @@ Sb.$inject = [
25078
25080
  function I2(e) {
25079
25081
  return st(".djs-visual", e);
25080
25082
  }
25081
- var Hm = Math.round, Ar = "reconnectStart", Tr = "reconnectEnd", Ko = "updateWaypoints";
25083
+ var Hm = Math.round, Tr = "reconnectStart", Mr = "reconnectEnd", Ko = "updateWaypoints";
25082
25084
  function Rf(e, t, n, i, r, o) {
25083
25085
  this._injector = e, this.start = function(a, s, c, u) {
25084
25086
  var l = n.getGraphics(s), f = s.source, p = s.target, d = s.waypoints, h;
25085
- !u && c === 0 ? h = Ar : !u && c === d.length - 1 ? h = Tr : h = Ko;
25087
+ !u && c === 0 ? h = Tr : !u && c === d.length - 1 ? h = Mr : h = Ko;
25086
25088
  var m = h === Ko ? "connection.updateWaypoints" : "connection.reconnect", g = r.allowed(m, {
25087
25089
  connection: s,
25088
25090
  source: f,
@@ -25116,17 +25118,17 @@ function Rf(e, t, n, i, r, o) {
25116
25118
  var h = p === Ko ? "connection.updateWaypoints" : "connection.reconnect";
25117
25119
  if (d = s.allowed = r.allowed(h, {
25118
25120
  connection: c,
25119
- source: p === Ar ? f : u,
25120
- target: p === Tr ? f : l
25121
+ source: p === Tr ? f : u,
25122
+ target: p === Mr ? f : l
25121
25123
  }), d) {
25122
- s.source = p === Ar ? f : u, s.target = p === Tr ? f : l;
25124
+ s.source = p === Tr ? f : u, s.target = p === Mr ? f : l;
25123
25125
  return;
25124
25126
  }
25125
25127
  d === !1 && (d = s.allowed = r.allowed(h, {
25126
25128
  connection: c,
25127
- source: p === Tr ? f : l,
25128
- target: p === Ar ? f : u
25129
- })), d && (s.source = p === Tr ? f : l, s.target = p === Ar ? f : u);
25129
+ source: p === Mr ? f : l,
25130
+ target: p === Tr ? f : u
25131
+ })), d && (s.source = p === Mr ? f : l, s.target = p === Tr ? f : u);
25130
25132
  }
25131
25133
  }), t.on(["bendpoint.move.out", "bendpoint.move.cleanup"], function(a) {
25132
25134
  var s = a.context, c = s.type;
@@ -25141,7 +25143,7 @@ function Rf(e, t, n, i, r, o) {
25141
25143
  m === Ko ? (f ? p.splice(u, 0, R) : p[u] = R, g.bendpointMove = {
25142
25144
  insert: f,
25143
25145
  bendpointIndex: u
25144
- }, p = this.cropWaypoints(l, p), o.updateWaypoints(l, Z1(p), g)) : (m === Ar ? (g.docking = "source", hc(s) && (g.docking = "target", g.newWaypoints = p.reverse())) : m === Tr && (g.docking = "target", hc(s) && (g.docking = "source", g.newWaypoints = p.reverse())), o.reconnect(l, d, h, R, g));
25146
+ }, p = this.cropWaypoints(l, p), o.updateWaypoints(l, Z1(p), g)) : (m === Tr ? (g.docking = "source", hc(s) && (g.docking = "target", g.newWaypoints = p.reverse())) : m === Mr && (g.docking = "target", hc(s) && (g.docking = "source", g.newWaypoints = p.reverse())), o.reconnect(l, d, h, R, g));
25145
25147
  }, this);
25146
25148
  }
25147
25149
  Rf.$inject = [
@@ -25161,9 +25163,9 @@ Rf.prototype.cropWaypoints = function(e, t) {
25161
25163
  };
25162
25164
  function hc(e) {
25163
25165
  var t = e.hover, n = e.source, i = e.target, r = e.type;
25164
- if (r === Ar)
25165
- return t && i && t === i && n !== i;
25166
25166
  if (r === Tr)
25167
+ return t && i && t === i && n !== i;
25168
+ if (r === Mr)
25167
25169
  return t && n && t === n && n !== i;
25168
25170
  }
25169
25171
  var N2 = "reconnectStart", B2 = "reconnectEnd", zm = "updateWaypoints", Xo = "connect-ok", Cs = "connect-not-ok", Gm = "connect-hover", Vm = "djs-updating", Wm = "djs-dragging", Um = 1100;
@@ -25472,12 +25474,12 @@ function Db(e, t, n, i) {
25472
25474
  }
25473
25475
  e.on("connect.hover", function(a) {
25474
25476
  var s = a.context, c = s.start, u = a.hover, l;
25475
- if (s.hover = u, l = s.canExecute = r(c, u), !co(l)) {
25477
+ if (s.hover = u, l = s.canExecute = r(c, u), !uo(l)) {
25476
25478
  if (l !== !1) {
25477
25479
  s.source = c, s.target = u;
25478
25480
  return;
25479
25481
  }
25480
- l = s.canExecute = o(c, u), !co(l) && l !== !1 && (s.source = u, s.target = c);
25482
+ l = s.canExecute = o(c, u), !uo(l) && l !== !1 && (s.source = u, s.target = c);
25481
25483
  }
25482
25484
  }), e.on(["connect.out", "connect.cleanup"], function(a) {
25483
25485
  var s = a.context;
@@ -25655,7 +25657,7 @@ class Lb {
25655
25657
  } = t, a = this._canvas.getLayer(Ps);
25656
25658
  n.filter((s) => !K2(s)).forEach((s) => {
25657
25659
  let c;
25658
- lt(s) ? (c = this._graphicsFactory._createContainer("connection", _e("g")), this._graphicsFactory.drawConnection(kr(c), s)) : (c = this._graphicsFactory._createContainer("shape", _e("g")), this._graphicsFactory.drawShape(kr(c), s), Qt(c, s.x, s.y)), this._previewSupport.addDragger(s, a, c);
25660
+ lt(s) ? (c = this._graphicsFactory._createContainer("connection", _e("g")), this._graphicsFactory.drawConnection(Dr(c), s)) : (c = this._graphicsFactory._createContainer("shape", _e("g")), this._graphicsFactory.drawShape(Dr(c), s), Qt(c, s.x, s.y)), this._previewSupport.addDragger(s, a, c);
25659
25661
  }), i.forEach(({ element: s, delta: c }) => {
25660
25662
  this._previewSupport.addDragger(s, a, void 0, "djs-dragging"), this._canvas.addMarker(s, "djs-element-hidden"), this._markers.push([s, "djs-element-hidden"]);
25661
25663
  const u = this._previewSupport.addDragger(s, a);
@@ -25665,7 +25667,7 @@ class Lb {
25665
25667
  }), o.forEach(({ shape: s, bounds: c }) => {
25666
25668
  this._canvas.addMarker(s, "djs-hidden"), this._markers.push([s, "djs-hidden"]), this._previewSupport.addDragger(s, a, void 0, "djs-dragging");
25667
25669
  const u = this._graphicsFactory._createContainer("shape", _e("g"));
25668
- this._graphicsFactory.drawShape(kr(u), s, {
25670
+ this._graphicsFactory.drawShape(Dr(u), s, {
25669
25671
  width: c.width,
25670
25672
  height: c.height
25671
25673
  }), Qt(u, c.x, c.y), this._previewSupport.addDragger(s, a, u);
@@ -25723,7 +25725,7 @@ pu.prototype.create = function(e, t, n) {
25723
25725
  created: [
25724
25726
  u,
25725
25727
  p
25726
- ].filter((d) => !co(d))
25728
+ ].filter((d) => !uo(d))
25727
25729
  });
25728
25730
  };
25729
25731
  pu.prototype.cleanUp = function() {
@@ -27097,7 +27099,7 @@ za.prototype._isDeleteAllowed = function(e) {
27097
27099
  var t = this._rules.allowed("elements.delete", {
27098
27100
  elements: e
27099
27101
  });
27100
- return Ce(t) ? Fr(e, (n) => t.includes(n)) : t;
27102
+ return Ce(t) ? Hr(e, (n) => t.includes(n)) : t;
27101
27103
  };
27102
27104
  za.prototype.getContextPadEntries = function(e) {
27103
27105
  var t = this._contextPad, n = this._modeling, i = this._elementFactory, r = this._connect, o = this._create, a = this._popupMenu, s = this._autoPlace, c = this._translate, u = this._appendPreview, l = {};
@@ -27161,7 +27163,7 @@ za.prototype.getContextPadEntries = function(e) {
27161
27163
  };
27162
27164
  }
27163
27165
  if (je(f, ["bpmn:Lane", "bpmn:Participant"]) && Ge(e)) {
27164
- var E = ar(e);
27166
+ var E = sr(e);
27165
27167
  N(l, {
27166
27168
  "lane-insert-above": {
27167
27169
  group: "lane-insert-above",
@@ -27671,7 +27673,7 @@ function $b(e) {
27671
27673
  });
27672
27674
  }
27673
27675
  $b.$inject = ["eventBus"];
27674
- function Kr(e, t) {
27676
+ function Xr(e, t) {
27675
27677
  Z.call(this, e), this._gridSnapping = t;
27676
27678
  var n = this;
27677
27679
  this.preExecute("shape.resize", function(i) {
@@ -27682,13 +27684,13 @@ function Kr(e, t) {
27682
27684
  }
27683
27685
  });
27684
27686
  }
27685
- Kr.$inject = [
27687
+ Xr.$inject = [
27686
27688
  "eventBus",
27687
27689
  "gridSnapping",
27688
27690
  "modeling"
27689
27691
  ];
27690
- ce(Kr, Z);
27691
- Kr.prototype.snapSimple = function(e, t) {
27692
+ ce(Xr, Z);
27693
+ Xr.prototype.snapSimple = function(e, t) {
27692
27694
  var n = this._gridSnapping;
27693
27695
  return t.width = n.snapValue(t.width, {
27694
27696
  min: t.width
@@ -27696,10 +27698,10 @@ Kr.prototype.snapSimple = function(e, t) {
27696
27698
  min: t.height
27697
27699
  }), t.x = e.x + e.width / 2 - t.width / 2, t.y = e.y + e.height / 2 - t.height / 2, t;
27698
27700
  };
27699
- Kr.prototype.snapComplex = function(e, t) {
27701
+ Xr.prototype.snapComplex = function(e, t) {
27700
27702
  return /w|e/.test(t) && (e = this.snapHorizontally(e, t)), /n|s/.test(t) && (e = this.snapVertically(e, t)), e;
27701
27703
  };
27702
- Kr.prototype.snapHorizontally = function(e, t) {
27704
+ Xr.prototype.snapHorizontally = function(e, t) {
27703
27705
  var n = this._gridSnapping, i = /w/.test(t), r = /e/.test(t), o = {};
27704
27706
  return o.width = n.snapValue(e.width, {
27705
27707
  min: e.width
@@ -27709,7 +27711,7 @@ Kr.prototype.snapHorizontally = function(e, t) {
27709
27711
  min: e.x - o.x
27710
27712
  })) : e.x = e.x + e.width - o.width), N(e, o), e;
27711
27713
  };
27712
- Kr.prototype.snapVertically = function(e, t) {
27714
+ Xr.prototype.snapVertically = function(e, t) {
27713
27715
  var n = this._gridSnapping, i = /n/.test(t), r = /s/.test(t), o = {};
27714
27716
  return o.height = n.snapValue(e.height, {
27715
27717
  min: e.height
@@ -27741,7 +27743,7 @@ const Ak = {
27741
27743
  "gridSnappingResizeBehavior",
27742
27744
  "gridSnappingSpaceToolBehavior"
27743
27745
  ],
27744
- gridSnappingResizeBehavior: ["type", Kr],
27746
+ gridSnappingResizeBehavior: ["type", Xr],
27745
27747
  gridSnappingSpaceToolBehavior: ["type", jb]
27746
27748
  };
27747
27749
  var Ks = 10;
@@ -27749,7 +27751,7 @@ function Wu(e, t, n) {
27749
27751
  return n || (n = "round"), Math[n](e / t) * t;
27750
27752
  }
27751
27753
  var Tk = 1200, Mk = 800;
27752
- function mr(e, t, n) {
27754
+ function gr(e, t, n) {
27753
27755
  var i = !n || n.active !== !1;
27754
27756
  this._eventBus = t;
27755
27757
  var r = this;
@@ -27781,29 +27783,29 @@ function mr(e, t, n) {
27781
27783
  }
27782
27784
  });
27783
27785
  }
27784
- mr.prototype.snapEvent = function(e, t, n) {
27786
+ gr.prototype.snapEvent = function(e, t, n) {
27785
27787
  var i = this.snapValue(e[t], n);
27786
27788
  It(e, t, i);
27787
27789
  };
27788
- mr.prototype.getGridSpacing = function() {
27790
+ gr.prototype.getGridSpacing = function() {
27789
27791
  return Ks;
27790
27792
  };
27791
- mr.prototype.snapValue = function(e, t) {
27793
+ gr.prototype.snapValue = function(e, t) {
27792
27794
  var n = 0;
27793
27795
  t && t.offset && (n = t.offset), e += n, e = Wu(e, Ks);
27794
27796
  var i, r;
27795
27797
  return t && t.min && (i = t.min, Me(i) && (i = Wu(i + n, Ks, "ceil"), e = Math.max(e, i))), t && t.max && (r = t.max, Me(r) && (r = Wu(r + n, Ks, "floor"), e = Math.min(e, r))), e -= n, e;
27796
27798
  };
27797
- mr.prototype.isActive = function() {
27799
+ gr.prototype.isActive = function() {
27798
27800
  return this.active;
27799
27801
  };
27800
- mr.prototype.setActive = function(e) {
27802
+ gr.prototype.setActive = function(e) {
27801
27803
  this.active = e, this._eventBus.fire("gridSnapping.toggle", { active: e });
27802
27804
  };
27803
- mr.prototype.toggleActive = function() {
27805
+ gr.prototype.toggleActive = function() {
27804
27806
  this.setActive(!this.active);
27805
27807
  };
27806
- mr.$inject = [
27808
+ gr.$inject = [
27807
27809
  "elementRegistry",
27808
27810
  "eventBus",
27809
27811
  "config.gridSnapping"
@@ -27834,7 +27836,7 @@ function lg(e) {
27834
27836
  const Ok = {
27835
27837
  __depends__: [Ak],
27836
27838
  __init__: ["gridSnapping"],
27837
- gridSnapping: ["type", mr]
27839
+ gridSnapping: ["type", gr]
27838
27840
  };
27839
27841
  var Lk = 2e3;
27840
27842
  function Fb(e, t, n) {
@@ -28215,7 +28217,7 @@ Wb.$inject = [
28215
28217
  "previewSupport"
28216
28218
  ];
28217
28219
  var As = -6, Ts = 8, Ms = 20, Zo = "djs-resizer", tD = ["n", "w", "s", "e", "nw", "ne", "se", "sw"];
28218
- function gr(e, t, n, i) {
28220
+ function yr(e, t, n, i) {
28219
28221
  this._resize = i, this._canvas = t;
28220
28222
  var r = this;
28221
28223
  e.on("selection.changed", function(o) {
@@ -28226,14 +28228,14 @@ function gr(e, t, n, i) {
28226
28228
  n.isSelected(a) && (r.removeResizers(), r.addResizer(a));
28227
28229
  });
28228
28230
  }
28229
- gr.prototype.makeDraggable = function(e, t, n) {
28231
+ yr.prototype.makeDraggable = function(e, t, n) {
28230
28232
  var i = this._resize;
28231
28233
  function r(o) {
28232
- sr(o) && i.activate(o, e, n);
28234
+ cr(o) && i.activate(o, e, n);
28233
28235
  }
28234
28236
  ke.bind(t, "mousedown", r), ke.bind(t, "touchstart", r);
28235
28237
  };
28236
- gr.prototype._createResizer = function(e, t, n, i) {
28238
+ yr.prototype._createResizer = function(e, t, n, i) {
28237
28239
  var r = this._getResizersParent(), o = nD(i), a = _e("g");
28238
28240
  Ue(a).add(Zo), Ue(a).add(Zo + "-" + e.id), Ue(a).add(Zo + "-" + i), Oe(r, a);
28239
28241
  var s = _e("rect");
@@ -28251,24 +28253,24 @@ gr.prototype._createResizer = function(e, t, n, i) {
28251
28253
  height: Ms
28252
28254
  }), Ue(c).add(Zo + "-hit"), Oe(a, c), Ns(a, t, n), a;
28253
28255
  };
28254
- gr.prototype.createResizer = function(e, t) {
28256
+ yr.prototype.createResizer = function(e, t) {
28255
28257
  var n = Vb(e, t), i = this._createResizer(e, n.x, n.y, t);
28256
28258
  this.makeDraggable(e, i, t);
28257
28259
  };
28258
- gr.prototype.addResizer = function(e) {
28260
+ yr.prototype.addResizer = function(e) {
28259
28261
  var t = this;
28260
28262
  lt(e) || k(tD, function(n) {
28261
28263
  t._resize.canResize({ shape: e, direction: n }) && t.createResizer(e, n);
28262
28264
  });
28263
28265
  };
28264
- gr.prototype.removeResizers = function() {
28266
+ yr.prototype.removeResizers = function() {
28265
28267
  var e = this._getResizersParent();
28266
28268
  wc(e);
28267
28269
  };
28268
- gr.prototype._getResizersParent = function() {
28270
+ yr.prototype._getResizersParent = function() {
28269
28271
  return this._canvas.getLayer("resizers");
28270
28272
  };
28271
- gr.$inject = [
28273
+ yr.$inject = [
28272
28274
  "eventBus",
28273
28275
  "canvas",
28274
28276
  "selection",
@@ -28294,7 +28296,7 @@ const Ub = {
28294
28296
  ],
28295
28297
  resize: ["type", Wa],
28296
28298
  resizePreview: ["type", Wb],
28297
- resizeHandles: ["type", gr]
28299
+ resizeHandles: ["type", yr]
28298
28300
  };
28299
28301
  var iD = 2e3;
28300
28302
  function Ua(e, t, n, i, r, o, a) {
@@ -28356,7 +28358,7 @@ Ua.prototype.activate = function(e) {
28356
28358
  "bpmn:CallActivity"
28357
28359
  ]) || qb(e)) && N(r, {
28358
28360
  centerVertically: !0
28359
- }), tr(e) && (N(r, {
28361
+ }), nr(e) && (N(r, {
28360
28362
  resizable: !0,
28361
28363
  autoResize: !0
28362
28364
  }), N(o, {
@@ -28452,13 +28454,13 @@ Ua.prototype.getEditingBBox = function(e) {
28452
28454
  }), N(d, {
28453
28455
  fontSize: u + "px",
28454
28456
  lineHeight: l
28455
- })), tr(n) && !Rc(n) && !$e(n)) {
28457
+ })), nr(n) && !Rc(n) && !$e(n)) {
28456
28458
  var w = ep(e), S = t.getAbsoluteBBox({
28457
28459
  x: w.x,
28458
28460
  y: w.y,
28459
28461
  width: 0,
28460
28462
  height: 0
28461
- }), M = u, B = Br.width * a + 2 * E;
28463
+ }), M = u, B = $r.width * a + 2 * E;
28462
28464
  N(o, {
28463
28465
  width: B,
28464
28466
  height: M + 2 * E,
@@ -28478,10 +28480,10 @@ Ua.prototype.getEditingBBox = function(e) {
28478
28480
  minHeight: 10 * a
28479
28481
  }), N(d, {
28480
28482
  textAlign: "left",
28481
- paddingTop: so * a + "px",
28482
- paddingBottom: so * a + "px",
28483
- paddingLeft: so * a + "px",
28484
- paddingRight: so * a + "px",
28483
+ paddingTop: co * a + "px",
28484
+ paddingBottom: co * a + "px",
28485
+ paddingLeft: co * a + "px",
28486
+ paddingRight: co * a + "px",
28485
28487
  fontSize: f + "px",
28486
28488
  lineHeight: p
28487
28489
  })), { bounds: o, style: d };
@@ -28965,7 +28967,7 @@ function Qb(e, t, n, i, r) {
28965
28967
  attach: f
28966
28968
  });
28967
28969
  }), e.on("element.mousedown", function(s) {
28968
- if (sr(s)) {
28970
+ if (cr(s)) {
28969
28971
  var c = Po(s);
28970
28972
  if (!c)
28971
28973
  throw new Error("must supply DOM mousedown event");
@@ -29232,7 +29234,7 @@ const ID = {
29232
29234
  palette: ["type", Bt]
29233
29235
  };
29234
29236
  var nx = "crosshair", Ag = "selected", ND = "djs-dragging-active-lasso";
29235
- function yr(e, t, n, i, r, o, a) {
29237
+ function vr(e, t, n, i, r, o, a) {
29236
29238
  this._selection = r, this._dragging = n, this._mouse = a;
29237
29239
  var s = this, c = {
29238
29240
  /**
@@ -29308,7 +29310,7 @@ function yr(e, t, n, i, r, o, a) {
29308
29310
  return s.activateLasso(f.originalEvent), !0;
29309
29311
  });
29310
29312
  }
29311
- yr.$inject = [
29313
+ vr.$inject = [
29312
29314
  "eventBus",
29313
29315
  "canvas",
29314
29316
  "dragging",
@@ -29317,7 +29319,7 @@ yr.$inject = [
29317
29319
  "toolManager",
29318
29320
  "mouse"
29319
29321
  ];
29320
- yr.prototype.activateLasso = function(e, t) {
29322
+ vr.prototype.activateLasso = function(e, t) {
29321
29323
  this._dragging.init(e, "lasso", {
29322
29324
  autoActivate: t,
29323
29325
  cursor: nx,
@@ -29327,7 +29329,7 @@ yr.prototype.activateLasso = function(e, t) {
29327
29329
  keepSelection: !0
29328
29330
  });
29329
29331
  };
29330
- yr.prototype.activateSelection = function(e, t) {
29332
+ vr.prototype.activateSelection = function(e, t) {
29331
29333
  this._dragging.init(e, "lasso.selection", {
29332
29334
  trapClick: !1,
29333
29335
  autoActivate: t,
@@ -29338,23 +29340,23 @@ yr.prototype.activateSelection = function(e, t) {
29338
29340
  keepSelection: !0
29339
29341
  });
29340
29342
  };
29341
- yr.prototype._select = function(e) {
29343
+ vr.prototype._select = function(e) {
29342
29344
  this._selection.select(e);
29343
29345
  };
29344
- yr.prototype.select = function(e, t, n = []) {
29346
+ vr.prototype.select = function(e, t, n = []) {
29345
29347
  var i = xo(fo(e, t));
29346
29348
  this._select([
29347
29349
  ...n,
29348
29350
  ...i
29349
29351
  ]);
29350
29352
  };
29351
- yr.prototype.toggle = function() {
29353
+ vr.prototype.toggle = function() {
29352
29354
  if (this.isActive())
29353
29355
  return this._dragging.cancel();
29354
29356
  var e = this._mouse.getLastMoveEvent();
29355
29357
  this.activateSelection(e, !!e);
29356
29358
  };
29357
- yr.prototype.isActive = function() {
29359
+ vr.prototype.isActive = function() {
29358
29360
  var e = this._dragging.context();
29359
29361
  return e && /^lasso/.test(e.prefix);
29360
29362
  };
@@ -29399,7 +29401,7 @@ const BD = {
29399
29401
  Aa
29400
29402
  ],
29401
29403
  __init__: ["lassoTool"],
29402
- lassoTool: ["type", yr]
29404
+ lassoTool: ["type", vr]
29403
29405
  };
29404
29406
  var Yu = 1500, ix = "grab";
29405
29407
  function No(e, t, n, i, r, o) {
@@ -29825,7 +29827,7 @@ function ax(e, t) {
29825
29827
  return e && e.type === t;
29826
29828
  }
29827
29829
  function XD(e, t) {
29828
- return nr(t, function(n) {
29830
+ return ir(t, function(n) {
29829
29831
  return ax(e, n);
29830
29832
  });
29831
29833
  }
@@ -29842,26 +29844,26 @@ function JD(e) {
29842
29844
  var t = e.hover, n = e.source;
29843
29845
  return t && n && t === n;
29844
29846
  }
29845
- function vr() {
29847
+ function _r() {
29846
29848
  this._targets = {}, this._snapOrigins = {}, this._snapLocations = [], this._defaultSnaps = {};
29847
29849
  }
29848
- vr.prototype.getSnapOrigin = function(e) {
29850
+ _r.prototype.getSnapOrigin = function(e) {
29849
29851
  return this._snapOrigins[e];
29850
29852
  };
29851
- vr.prototype.setSnapOrigin = function(e, t) {
29853
+ _r.prototype.setSnapOrigin = function(e, t) {
29852
29854
  this._snapOrigins[e] = t, this._snapLocations.indexOf(e) === -1 && this._snapLocations.push(e);
29853
29855
  };
29854
- vr.prototype.addDefaultSnap = function(e, t) {
29856
+ _r.prototype.addDefaultSnap = function(e, t) {
29855
29857
  var n = this._defaultSnaps[e];
29856
29858
  n || (n = this._defaultSnaps[e] = []), n.push(t);
29857
29859
  };
29858
- vr.prototype.getSnapLocations = function() {
29860
+ _r.prototype.getSnapLocations = function() {
29859
29861
  return this._snapLocations;
29860
29862
  };
29861
- vr.prototype.setSnapLocations = function(e) {
29863
+ _r.prototype.setSnapLocations = function(e) {
29862
29864
  this._snapLocations = e;
29863
29865
  };
29864
- vr.prototype.pointsForTarget = function(e) {
29866
+ _r.prototype.pointsForTarget = function(e) {
29865
29867
  var t = e.id || e, n = this._targets[t];
29866
29868
  return n || (n = this._targets[t] = new gu(), n.initDefaults(this._defaultSnaps)), n;
29867
29869
  };
@@ -29917,7 +29919,7 @@ xi.$inject = [
29917
29919
  ];
29918
29920
  xi.prototype.initSnap = function(e) {
29919
29921
  var t = this._elementRegistry, n = e.context, i = n.shape, r = n.snapContext;
29920
- r || (r = n.snapContext = new vr());
29922
+ r || (r = n.snapContext = new _r());
29921
29923
  var o;
29922
29924
  t.get(i.id) ? o = Vn(i, e) : o = {
29923
29925
  x: e.x + Vn(i).x,
@@ -30072,7 +30074,7 @@ function qa(e, t) {
30072
30074
  }
30073
30075
  qa.prototype.initSnap = function(e) {
30074
30076
  var t = e.context, n = t.shape, i = t.direction, r = t.snapContext;
30075
- r || (r = t.snapContext = new vr());
30077
+ r || (r = t.snapContext = new _r());
30076
30078
  var o = cx(n, i);
30077
30079
  return r.setSnapOrigin("corner", {
30078
30080
  x: o.x - e.x,
@@ -30114,11 +30116,11 @@ function lO(e) {
30114
30116
  return e === "e" || e === "w";
30115
30117
  }
30116
30118
  var pO = 7, fO = 1e3;
30117
- function _r(e) {
30119
+ function br(e) {
30118
30120
  this._canvas = e, this._asyncHide = Xu(_n(this.hide, this), fO);
30119
30121
  }
30120
- _r.$inject = ["canvas"];
30121
- _r.prototype.snap = function(e, t) {
30122
+ br.$inject = ["canvas"];
30123
+ br.prototype.snap = function(e, t) {
30122
30124
  var n = e.context, i = n.snapContext, r = i.getSnapLocations(), o = {
30123
30125
  x: bo(e, "x"),
30124
30126
  y: bo(e, "y")
@@ -30141,7 +30143,7 @@ _r.prototype.snap = function(e, t) {
30141
30143
  qt(s) && It(e, a, s.originValue);
30142
30144
  });
30143
30145
  };
30144
- _r.prototype._createLine = function(e) {
30146
+ br.prototype._createLine = function(e) {
30145
30147
  var t = this._canvas.getLayer("snap"), n = _e("path");
30146
30148
  return se(n, { d: "M0,0 L0,0" }), Ue(n).add("djs-snap-line"), Oe(t, n), {
30147
30149
  update: function(i) {
@@ -30155,20 +30157,20 @@ _r.prototype._createLine = function(e) {
30155
30157
  }
30156
30158
  };
30157
30159
  };
30158
- _r.prototype._createSnapLines = function() {
30160
+ br.prototype._createSnapLines = function() {
30159
30161
  this._snapLines = {
30160
30162
  horizontal: this._createLine("horizontal"),
30161
30163
  vertical: this._createLine("vertical")
30162
30164
  };
30163
30165
  };
30164
- _r.prototype.showSnapLine = function(e, t) {
30166
+ br.prototype.showSnapLine = function(e, t) {
30165
30167
  var n = this.getSnapLine(e);
30166
30168
  n && n.update(t), this._asyncHide();
30167
30169
  };
30168
- _r.prototype.getSnapLine = function(e) {
30170
+ br.prototype.getSnapLine = function(e) {
30169
30171
  return this._snapLines || this._createSnapLines(), this._snapLines[e];
30170
30172
  };
30171
- _r.prototype.hide = function() {
30173
+ br.prototype.hide = function() {
30172
30174
  k(this._snapLines, function(e) {
30173
30175
  e.update();
30174
30176
  });
@@ -30181,7 +30183,7 @@ const dO = {
30181
30183
  ],
30182
30184
  createMoveSnapping: ["type", xi],
30183
30185
  resizeSnapping: ["type", qa],
30184
- snapping: ["type", _r]
30186
+ snapping: ["type", br]
30185
30187
  }, hO = {
30186
30188
  __depends__: [dO],
30187
30189
  __init__: [
@@ -30503,7 +30505,7 @@ function fi(e) {
30503
30505
  Ro.call(this, e);
30504
30506
  }
30505
30507
  ce(fi, Ro);
30506
- fi.Viewer = hr;
30508
+ fi.Viewer = mr;
30507
30509
  fi.NavigatedViewer = ma;
30508
30510
  fi.prototype.createDiagram = function() {
30509
30511
  return this.importXML(SO);
@@ -30545,7 +30547,7 @@ fi.prototype._modelingModules = [
30545
30547
  EO
30546
30548
  ];
30547
30549
  fi.prototype._modules = [].concat(
30548
- hr.prototype._modules,
30550
+ mr.prototype._modules,
30549
30551
  fi.prototype._interactionModules,
30550
30552
  fi.prototype._modelingModules
30551
30553
  );
@@ -30620,7 +30622,7 @@ export {
30620
30622
  aa as approximateTextWidth,
30621
30623
  iE as auditBpmnGeometry,
30622
30624
  OO as auditBpmnGeometryXml,
30623
- Ir as auditGeometry,
30625
+ Nr as auditGeometry,
30624
30626
  Pi as auditTargetsOf,
30625
30627
  bn as axisSegmentsOf,
30626
30628
  py as blackBoxNameRect,
@@ -30631,14 +30633,14 @@ export {
30631
30633
  kw as createBpmnModdle,
30632
30634
  $O as createHeadlessBpmnModeler,
30633
30635
  ni as crossedShapesOf,
30634
- Qi as crossingCost,
30636
+ Ji as crossingCost,
30635
30637
  zE as describeProcess,
30636
30638
  LO as describeProcessXml,
30637
30639
  Wl as edgeCrossCount,
30638
30640
  bd as edgeCrossingPairsOf,
30639
30641
  Tx as executeAsUndoEpisode,
30640
30642
  yy as forwardThreePointCandidates,
30641
- Lr as geometryFindingKey,
30643
+ Ir as geometryFindingKey,
30642
30644
  Lw as installHeadlessBpmnDom,
30643
30645
  Rx as isMvpFlowNodeType,
30644
30646
  Js as labelRectsOf,
@@ -30672,7 +30674,7 @@ export {
30672
30674
  Gt as sceneFromRegistry,
30673
30675
  tl as sharedSegmentUnderLabel,
30674
30676
  Vl as sharedSpansOf,
30675
- po as unreadableOverlapCount,
30677
+ Qi as unreadableOverlapCount,
30676
30678
  Gl as unreadableOverlapOf,
30677
30679
  IE as validateOps,
30678
30680
  cy as warningMessages