lyflowchart 1.0.65 → 1.0.66

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.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { defineComponent as oi, ref as Ne, reactive as Dl, watch as or, onMounted as go, resolveComponent as we, openBlock as Qe, createBlock as yt, withCtx as le, createVNode as ae, createTextVNode as tt, createCommentVNode as Fn, inject as Wh, computed as uo, nextTick as kl, createElementBlock as yn, createElementVNode as _t, withDirectives as Uh, vShow as Gh, Fragment as fa, renderList as da, withKeys as ZC, toDisplayString as so, provide as QC, normalizeClass as JC, onBeforeUnmount as eT } from "vue";
1
+ import { defineComponent as oi, ref as Ne, reactive as Dl, watch as fr, onMounted as go, resolveComponent as we, openBlock as Qe, createBlock as yt, withCtx as le, createVNode as ae, createTextVNode as tt, createCommentVNode as Fn, inject as Wh, computed as uo, nextTick as Zc, createElementBlock as yn, createElementVNode as _t, withDirectives as Uh, vShow as Gh, Fragment as fa, renderList as da, withKeys as ZC, toDisplayString as so, provide as QC, normalizeClass as JC, onBeforeUnmount as eT } from "vue";
2
2
  import { SearchOutlined as Vh, SyncOutlined as KE, RedoOutlined as tT, UserOutlined as nT, TeamOutlined as rT, CodeOutlined as iT, PlusOutlined as oT, QuestionCircleOutlined as aT, UploadOutlined as sT, DragOutlined as lT, ZoomInOutlined as uT, ZoomOutOutlined as cT } from "@ant-design/icons-vue";
3
3
  import { Modal as pT, message as fT } from "ant-design-vue";
4
- var $c = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
+ var Fc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
5
5
  function ms(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
7
7
  }
@@ -10,7 +10,7 @@ function qE() {
10
10
  return Iy || (Iy = 1, function(e, t) {
11
11
  (function(n, r) {
12
12
  e.exports = r();
13
- })($c, function() {
13
+ })(Fc, function() {
14
14
  var n = navigator.userAgent, r = navigator.platform, o = /gecko\/\d/i.test(n), a = /MSIE \d/.test(n), l = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n), u = /Edge\/(\d+)/.exec(n), c = a || l || u, d = c && (a ? document.documentMode || 6 : +(u || l)[1]), v = !u && /WebKit\//.test(n), m = v && /Qt\/\d+\.\d+/.test(n), y = !u && /Chrome\/(\d+)/.exec(n), b = y && +y[1], _ = /Opera\//.test(n), w = /Apple Computer/.test(navigator.vendor), T = /Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n), I = /PhantomJS/.test(n), D = w && (/Mobile\/\w+/.test(n) || navigator.maxTouchPoints > 2), k = /Android/.test(n), P = D || k || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n), M = D || /Mac/.test(r), L = /\bCrOS\b/.test(n), j = /win/i.test(r), z = _ && n.match(/Version\/(\d*\.\d*)/);
15
15
  z && (z = Number(z[1])), z && z >= 15 && (_ = !1, v = !0);
16
16
  var H = M && (m || _ && (z == null || z < 12.11)), Q = o || c && d >= 9;
@@ -198,9 +198,9 @@ function qE() {
198
198
  return !1;
199
199
  return !0;
200
200
  }
201
- var Su = /[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;
201
+ var wu = /[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;
202
202
  function Na(i) {
203
- return i.charCodeAt(0) >= 768 && Su.test(i);
203
+ return i.charCodeAt(0) >= 768 && wu.test(i);
204
204
  }
205
205
  function Io(i, s, f) {
206
206
  for (; (f < 0 ? s > 0 : s < i.length) && Na(i.charAt(s)); )
@@ -356,7 +356,7 @@ function qE() {
356
356
  this.defaultPrevented = !0;
357
357
  } }), kt(i, f || s.type, i, s), Ls(s) || s.codemirrorIgnore;
358
358
  }
359
- function Cu(i) {
359
+ function Su(i) {
360
360
  var s = i._handlers && i._handlers.cursorActivity;
361
361
  if (s)
362
362
  for (var f = i.curOp.cursorActivityHandlers || (i.curOp.cursorActivityHandlers = []), p = 0; p < s.length; ++p)
@@ -375,19 +375,19 @@ function qE() {
375
375
  function mn(i) {
376
376
  i.preventDefault ? i.preventDefault() : i.returnValue = !1;
377
377
  }
378
- function Tu(i) {
378
+ function Cu(i) {
379
379
  i.stopPropagation ? i.stopPropagation() : i.cancelBubble = !0;
380
380
  }
381
381
  function Ls(i) {
382
382
  return i.defaultPrevented != null ? i.defaultPrevented : i.returnValue == !1;
383
383
  }
384
384
  function Ho(i) {
385
- mn(i), Tu(i);
385
+ mn(i), Cu(i);
386
386
  }
387
387
  function Gi(i) {
388
388
  return i.target || i.srcElement;
389
389
  }
390
- function Au(i) {
390
+ function Tu(i) {
391
391
  var s = i.which;
392
392
  return s == null && (i.button & 1 ? s = 1 : i.button & 2 ? s = 3 : i.button & 4 && (s = 2)), M && i.ctrlKey && s == 1 && (s = 3), s;
393
393
  }
@@ -406,7 +406,7 @@ function qE() {
406
406
  return f.setAttribute("cm-text", ""), f;
407
407
  }
408
408
  var Is;
409
- function Pu(i) {
409
+ function Au(i) {
410
410
  if (Is != null)
411
411
  return Is;
412
412
  var s = Me(i, document.createTextNode("AخA")), f = re(s, 0, 1).getBoundingClientRect(), p = re(s, 1, 2).getBoundingClientRect();
@@ -425,7 +425,7 @@ b`.split(/\n/).length != 3 ? function(i) {
425
425
  return f;
426
426
  } : function(i) {
427
427
  return i.split(/\r\n?|\n/);
428
- }, Ru = window.getSelection ? function(i) {
428
+ }, Pu = window.getSelection ? function(i) {
429
429
  try {
430
430
  return i.selectionStart != i.selectionEnd;
431
431
  } catch {
@@ -438,11 +438,11 @@ b`.split(/\n/).length != 3 ? function(i) {
438
438
  } catch {
439
439
  }
440
440
  return !s || s.parentElement() != i ? !1 : s.compareEndPoints("StartToEnd", s) != 0;
441
- }, Du = function() {
441
+ }, Ru = function() {
442
442
  var i = G("div");
443
443
  return "oncopy" in i ? !0 : (i.setAttribute("oncopy", "return;"), typeof i.oncopy == "function");
444
444
  }(), Oa = null;
445
- function ku(i) {
445
+ function Du(i) {
446
446
  if (Oa != null)
447
447
  return Oa;
448
448
  var s = Me(i, G("span", "x")), f = s.getBoundingClientRect(), p = re(s, 0, 1).getBoundingClientRect();
@@ -587,7 +587,7 @@ b`.split(/\n/).length != 3 ? function(i) {
587
587
  }
588
588
  return f.lines[s];
589
589
  }
590
- function cr(i, s, f) {
590
+ function ur(i, s, f) {
591
591
  var p = [], h = s.line;
592
592
  return i.iter(s.line, f.line + 1, function(g) {
593
593
  var E = g.text;
@@ -669,9 +669,9 @@ b`.split(/\n/).length != 3 ? function(i) {
669
669
  if (s.line < i.first)
670
670
  return de(i.first, 0);
671
671
  var f = i.first + i.size - 1;
672
- return s.line > f ? de(f, Ae(i, f).text.length) : Mu(s, Ae(i, s.line).text.length);
672
+ return s.line > f ? de(f, Ae(i, f).text.length) : ku(s, Ae(i, s.line).text.length);
673
673
  }
674
- function Mu(i, s) {
674
+ function ku(i, s) {
675
675
  var f = i.ch;
676
676
  return f == null || f > s ? de(i.line, s) : f < 0 ? de(i.line, 0) : i;
677
677
  }
@@ -706,7 +706,7 @@ b`.split(/\n/).length != 3 ? function(i) {
706
706
  var s = i !== !1 ? gr(this.doc.mode, this.state) : this.state;
707
707
  return this.maxLookAhead > 0 ? new Ko(s, this.maxLookAhead) : s;
708
708
  };
709
- function Nu(i, s, f, p) {
709
+ function Mu(i, s, f, p) {
710
710
  var h = [i.state.modeGen], g = {};
711
711
  tn(
712
712
  i,
@@ -742,7 +742,7 @@ b`.split(/\n/).length != 3 ? function(i) {
742
742
  }
743
743
  function N(i, s, f) {
744
744
  if (!s.styles || s.styles[0] != i.state.modeGen) {
745
- var p = O(i, dt(s)), h = s.text.length > i.options.maxHighlightLength && gr(i.doc.mode, p.state), g = Nu(i, s, p);
745
+ var p = O(i, dt(s)), h = s.text.length > i.options.maxHighlightLength && gr(i.doc.mode, p.state), g = Mu(i, s, p);
746
746
  h && (p.state = h), s.stateAfter = p.save(!h), s.styles = g.styles, g.classes ? s.styleClasses = g.classes : s.styleClasses && (s.styleClasses = null), f === i.doc.highlightFrontier && (i.doc.modeFrontier = Math.max(i.doc.modeFrontier, ++i.doc.highlightFrontier));
747
747
  }
748
748
  return s.styles;
@@ -856,7 +856,7 @@ b`.split(/\n/).length != 3 ? function(i) {
856
856
  function nS() {
857
857
  mi = !0;
858
858
  }
859
- function Lu(i, s, f) {
859
+ function Nu(i, s, f) {
860
860
  this.marker = i, this.from = s, this.to = f;
861
861
  }
862
862
  function Fs(i, s) {
@@ -883,7 +883,7 @@ b`.split(/\n/).length != 3 ? function(i) {
883
883
  var g = i[h], E = g.marker, x = g.from == null || (E.inclusiveLeft ? g.from <= s : g.from < s);
884
884
  if (x || g.from == s && E.type == "bookmark" && (!f || !g.marker.insertLeft)) {
885
885
  var S = g.to == null || (E.inclusiveRight ? g.to >= s : g.to > s);
886
- (p || (p = [])).push(new Lu(E, g.from, S ? null : g.to));
886
+ (p || (p = [])).push(new Nu(E, g.from, S ? null : g.to));
887
887
  }
888
888
  }
889
889
  return p;
@@ -895,7 +895,7 @@ b`.split(/\n/).length != 3 ? function(i) {
895
895
  var g = i[h], E = g.marker, x = g.to == null || (E.inclusiveRight ? g.to >= s : g.to > s);
896
896
  if (x || g.from == s && E.type == "bookmark" && (!f || g.marker.insertLeft)) {
897
897
  var S = g.from == null || (E.inclusiveLeft ? g.from <= s : g.from < s);
898
- (p || (p = [])).push(new Lu(
898
+ (p || (p = [])).push(new Nu(
899
899
  E,
900
900
  S ? null : g.from - s,
901
901
  g.to == null ? null : g.to - s
@@ -934,7 +934,7 @@ b`.split(/\n/).length != 3 ? function(i) {
934
934
  var xe = s.text.length - 2, be;
935
935
  if (xe > 0 && x)
936
936
  for (var Te = 0; Te < x.length; ++Te)
937
- x[Te].to == null && (be || (be = [])).push(new Lu(x[Te].marker, null, null));
937
+ x[Te].to == null && (be || (be = [])).push(new Nu(x[Te].marker, null, null));
938
938
  for (var ze = 0; ze < xe; ++ze)
939
939
  ye.push(be);
940
940
  ye.push(S);
@@ -983,20 +983,20 @@ b`.split(/\n/).length != 3 ? function(i) {
983
983
  i.markedSpans = s;
984
984
  }
985
985
  }
986
- function Ou(i) {
986
+ function Lu(i) {
987
987
  return i.inclusiveLeft ? -1 : 0;
988
988
  }
989
- function Iu(i) {
989
+ function Ou(i) {
990
990
  return i.inclusiveRight ? 1 : 0;
991
991
  }
992
992
  function If(i, s) {
993
993
  var f = i.lines.length - s.lines.length;
994
994
  if (f != 0)
995
995
  return f;
996
- var p = i.find(), h = s.find(), g = Ye(p.from, h.from) || Ou(i) - Ou(s);
996
+ var p = i.find(), h = s.find(), g = Ye(p.from, h.from) || Lu(i) - Lu(s);
997
997
  if (g)
998
998
  return -g;
999
- var E = Ye(p.to, h.to) || Iu(i) - Iu(s);
999
+ var E = Ye(p.to, h.to) || Ou(i) - Ou(s);
1000
1000
  return E || s.id - i.id;
1001
1001
  }
1002
1002
  function Xm(i, s) {
@@ -1009,7 +1009,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1009
1009
  function Zm(i) {
1010
1010
  return Xm(i, !0);
1011
1011
  }
1012
- function Bu(i) {
1012
+ function Iu(i) {
1013
1013
  return Xm(i, !1);
1014
1014
  }
1015
1015
  function lS(i, s) {
@@ -1027,7 +1027,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1027
1027
  for (var x = 0; x < E.length; ++x) {
1028
1028
  var S = E[x];
1029
1029
  if (S.marker.collapsed) {
1030
- var A = S.marker.find(0), B = Ye(A.from, f) || Ou(S.marker) - Ou(h), $ = Ye(A.to, p) || Iu(S.marker) - Iu(h);
1030
+ var A = S.marker.find(0), B = Ye(A.from, f) || Lu(S.marker) - Lu(h), $ = Ye(A.to, p) || Ou(S.marker) - Ou(h);
1031
1031
  if (!(B >= 0 && $ <= 0 || B <= 0 && $ >= 0) && (B <= 0 && (S.marker.inclusiveRight && h.inclusiveLeft ? Ye(A.to, f) >= 0 : Ye(A.to, f) > 0) || B >= 0 && (S.marker.inclusiveRight && h.inclusiveLeft ? Ye(A.from, p) <= 0 : Ye(A.from, p) < 0)))
1032
1032
  return !0;
1033
1033
  }
@@ -1039,12 +1039,12 @@ b`.split(/\n/).length != 3 ? function(i) {
1039
1039
  return i;
1040
1040
  }
1041
1041
  function uS(i) {
1042
- for (var s; s = Bu(i); )
1042
+ for (var s; s = Iu(i); )
1043
1043
  i = s.find(1, !0).line;
1044
1044
  return i;
1045
1045
  }
1046
1046
  function cS(i) {
1047
- for (var s, f; s = Bu(i); )
1047
+ for (var s, f; s = Iu(i); )
1048
1048
  i = s.find(1, !0).line, (f || (f = [])).push(i);
1049
1049
  return f;
1050
1050
  }
@@ -1058,7 +1058,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1058
1058
  var f = Ae(i, s), p;
1059
1059
  if (!qi(i, f))
1060
1060
  return s;
1061
- for (; p = Bu(f); )
1061
+ for (; p = Iu(f); )
1062
1062
  f = p.find(1, !0).line;
1063
1063
  return dt(f) + 1;
1064
1064
  }
@@ -1102,14 +1102,14 @@ b`.split(/\n/).length != 3 ? function(i) {
1102
1102
  }
1103
1103
  return s;
1104
1104
  }
1105
- function Fu(i) {
1105
+ function Bu(i) {
1106
1106
  if (i.height == 0)
1107
1107
  return 0;
1108
1108
  for (var s = i.text.length, f, p = i; f = Zm(p); ) {
1109
1109
  var h = f.find(0, !0);
1110
1110
  p = h.from.line, s += h.from.ch - h.to.ch;
1111
1111
  }
1112
- for (p = i; f = Bu(p); ) {
1112
+ for (p = i; f = Iu(p); ) {
1113
1113
  var g = f.find(0, !0);
1114
1114
  s -= p.text.length - g.from.ch, p = g.to.line, s += p.text.length - g.to.ch;
1115
1115
  }
@@ -1117,8 +1117,8 @@ b`.split(/\n/).length != 3 ? function(i) {
1117
1117
  }
1118
1118
  function $f(i) {
1119
1119
  var s = i.display, f = i.doc;
1120
- s.maxLine = Ae(f, f.first), s.maxLineLength = Fu(s.maxLine), s.maxLineChanged = !0, f.iter(function(p) {
1121
- var h = Fu(p);
1120
+ s.maxLine = Ae(f, f.first), s.maxLineLength = Bu(s.maxLine), s.maxLineChanged = !0, f.iter(function(p) {
1121
+ var h = Bu(p);
1122
1122
  h > s.maxLineLength && (s.maxLineLength = h, s.maxLine = p);
1123
1123
  });
1124
1124
  }
@@ -1156,7 +1156,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1156
1156
  s.measure = {};
1157
1157
  for (var h = 0; h <= (s.rest ? s.rest.length : 0); h++) {
1158
1158
  var g = h ? s.rest[h - 1] : s.line, E = void 0;
1159
- p.pos = 0, p.addToken = mS, Pu(i.display.measure) && (E = kr(g, i.doc.direction)) && (p.addToken = yS(p.addToken, E)), p.map = [];
1159
+ p.pos = 0, p.addToken = mS, Au(i.display.measure) && (E = kr(g, i.doc.direction)) && (p.addToken = yS(p.addToken, E)), p.map = [];
1160
1160
  var x = s != i.display.externalMeasured && dt(g);
1161
1161
  bS(g, p, N(i, g, x)), g.styleClasses && (g.styleClasses.bgClass && (p.bgClass = V(g.styleClasses.bgClass, p.bgClass || "")), g.styleClasses.textClass && (p.textClass = V(g.styleClasses.textClass, p.textClass || ""))), p.map.length == 0 && p.map.push(0, 0, p.content.appendChild(Os(i.display.measure))), h == 0 ? (s.measure.map = p.map, s.measure.cache = {}) : ((s.measure.maps || (s.measure.maps = [])).push(p.map), (s.measure.caches || (s.measure.caches = [])).push({}));
1162
1162
  }
@@ -1303,7 +1303,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1303
1303
  function rg(i, s, f) {
1304
1304
  this.line = s, this.rest = cS(s), this.size = this.rest ? dt(ke(this.rest)) - f + 1 : 1, this.node = this.text = null, this.hidden = qi(i, s);
1305
1305
  }
1306
- function $u(i, s, f) {
1306
+ function Fu(i, s, f) {
1307
1307
  for (var p = [], h, g = s; g < f; g = h) {
1308
1308
  var E = new rg(i.doc, Ae(i.doc, g), g);
1309
1309
  h = g + E.size, p.push(E);
@@ -1470,7 +1470,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1470
1470
  if (!f || f.nodeType == 1 && f.getAttribute("cm-ignore-events") == "true" || f.parentNode == i.sizer && f != i.mover)
1471
1471
  return !0;
1472
1472
  }
1473
- function Hu(i) {
1473
+ function $u(i) {
1474
1474
  return i.lineSpace.offsetTop;
1475
1475
  }
1476
1476
  function zf(i) {
@@ -1615,7 +1615,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1615
1615
  return !A.left && !A.right && (Te.bogus = !0), i.options.singleCursorHeightPerLine || (Te.rtop = K, Te.rbottom = ne), Te;
1616
1616
  }
1617
1617
  function NS(i, s) {
1618
- if (!window.screen || screen.logicalXDPI == null || screen.logicalXDPI == screen.deviceXDPI || !ku(i))
1618
+ if (!window.screen || screen.logicalXDPI == null || screen.logicalXDPI == screen.deviceXDPI || !Du(i))
1619
1619
  return s;
1620
1620
  var f = screen.logicalXDPI / screen.deviceXDPI, p = screen.logicalYDPI / screen.deviceYDPI;
1621
1621
  return {
@@ -1651,7 +1651,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1651
1651
  f[h].above && (p += zs(f[h]));
1652
1652
  return p;
1653
1653
  }
1654
- function zu(i, s, f, p, h) {
1654
+ function Hu(i, s, f, p, h) {
1655
1655
  if (!h) {
1656
1656
  var g = Uf(s);
1657
1657
  f.top += g, f.bottom += g;
@@ -1660,7 +1660,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1660
1660
  return f;
1661
1661
  p || (p = "local");
1662
1662
  var E = gi(s);
1663
- if (p == "local" ? E += Hu(i.display) : E -= i.display.viewOffset, p == "page" || p == "window") {
1663
+ if (p == "local" ? E += $u(i.display) : E -= i.display.viewOffset, p == "page" || p == "window") {
1664
1664
  var x = i.display.lineSpace.getBoundingClientRect();
1665
1665
  E += x.top + (p == "window" ? 0 : gg(pe(i)));
1666
1666
  var S = x.left + (p == "window" ? 0 : mg(pe(i)));
@@ -1681,14 +1681,14 @@ b`.split(/\n/).length != 3 ? function(i) {
1681
1681
  var E = i.display.lineSpace.getBoundingClientRect();
1682
1682
  return { left: p - E.left, top: h - E.top };
1683
1683
  }
1684
- function ju(i, s, f, p, h) {
1685
- return p || (p = Ae(i.doc, s.line)), zu(i, p, pg(i, p, s.ch, h), f);
1684
+ function zu(i, s, f, p, h) {
1685
+ return p || (p = Ae(i.doc, s.line)), Hu(i, p, pg(i, p, s.ch, h), f);
1686
1686
  }
1687
1687
  function Nr(i, s, f, p, h, g) {
1688
1688
  p = p || Ae(i.doc, s.line), h || (h = $a(i, p));
1689
1689
  function E(ne, ue) {
1690
1690
  var ve = qr(i, h, ne, ue ? "right" : "left", g);
1691
- return ue ? ve.left = ve.right : ve.right = ve.left, zu(i, p, ve, f);
1691
+ return ue ? ve.left = ve.right : ve.right = ve.left, Hu(i, p, ve, f);
1692
1692
  }
1693
1693
  var x = kr(p, i.doc.direction), S = s.ch, A = s.sticky;
1694
1694
  if (S >= p.text.length ? (S = p.text.length, A = "before") : S <= 0 && (S = 0, A = "after"), !x)
@@ -1703,7 +1703,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1703
1703
  function bg(i, s) {
1704
1704
  var f = 0;
1705
1705
  s = Xe(i.doc, s), i.options.lineWrapping || (f = za(i.display) * s.ch);
1706
- var p = Ae(i.doc, s.line), h = gi(p) + Hu(i.display);
1706
+ var p = Ae(i.doc, s.line), h = gi(p) + $u(i.display);
1707
1707
  return { left: f, right: f, top: h, bottom: h + p.height };
1708
1708
  }
1709
1709
  function Gf(i, s, f, p, h) {
@@ -1739,7 +1739,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1739
1739
  }
1740
1740
  function _g(i, s, f, p) {
1741
1741
  f || (f = $a(i, s));
1742
- var h = zu(i, s, qr(i, f, p), "line").top;
1742
+ var h = Hu(i, s, qr(i, f, p), "line").top;
1743
1743
  return Eg(i, s, f, h);
1744
1744
  }
1745
1745
  function Kf(i, s, f, p) {
@@ -1892,14 +1892,14 @@ b`.split(/\n/).length != 3 ? function(i) {
1892
1892
  else if (s <= h.viewFrom && f >= h.viewTo)
1893
1893
  Xi(i);
1894
1894
  else if (s <= h.viewFrom) {
1895
- var g = Wu(i, f, f + p, 1);
1895
+ var g = ju(i, f, f + p, 1);
1896
1896
  g ? (h.view = h.view.slice(g.index), h.viewFrom = g.lineN, h.viewTo += p) : Xi(i);
1897
1897
  } else if (f >= h.viewTo) {
1898
- var E = Wu(i, s, s, -1);
1898
+ var E = ju(i, s, s, -1);
1899
1899
  E ? (h.view = h.view.slice(0, E.index), h.viewTo = E.lineN) : Xi(i);
1900
1900
  } else {
1901
- var x = Wu(i, s, s, -1), S = Wu(i, f, f + p, 1);
1902
- x && S ? (h.view = h.view.slice(0, x.index).concat($u(i, x.lineN, S.lineN)).concat(h.view.slice(S.index)), h.viewTo += p) : Xi(i);
1901
+ var x = ju(i, s, s, -1), S = ju(i, f, f + p, 1);
1902
+ x && S ? (h.view = h.view.slice(0, x.index).concat(Fu(i, x.lineN, S.lineN)).concat(h.view.slice(S.index)), h.viewTo += p) : Xi(i);
1903
1903
  }
1904
1904
  var A = h.externalMeasured;
1905
1905
  A && (f < A.lineN ? A.lineN += p : s < A.lineN + A.size && (h.externalMeasured = null));
@@ -1918,7 +1918,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1918
1918
  function Xi(i) {
1919
1919
  i.display.viewFrom = i.display.viewTo = i.doc.first, i.display.view = [], i.display.viewOffset = 0;
1920
1920
  }
1921
- function Wu(i, s, f, p) {
1921
+ function ju(i, s, f, p) {
1922
1922
  var h = Zo(i, s), g, E = i.display.view;
1923
1923
  if (!mi || f == i.doc.first + i.doc.size)
1924
1924
  return { index: h, lineN: f };
@@ -1942,7 +1942,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1942
1942
  }
1943
1943
  function BS(i, s, f) {
1944
1944
  var p = i.display, h = p.view;
1945
- h.length == 0 || s >= p.viewTo || f <= p.viewFrom ? (p.view = $u(i, s, f), p.viewFrom = s) : (p.viewFrom > s ? p.view = $u(i, s, p.viewFrom).concat(p.view) : p.viewFrom < s && (p.view = p.view.slice(Zo(i, s))), p.viewFrom = s, p.viewTo < f ? p.view = p.view.concat($u(i, p.viewTo, f)) : p.viewTo > f && (p.view = p.view.slice(0, Zo(i, f)))), p.viewTo = f;
1945
+ h.length == 0 || s >= p.viewTo || f <= p.viewFrom ? (p.view = Fu(i, s, f), p.viewFrom = s) : (p.viewFrom > s ? p.view = Fu(i, s, p.viewFrom).concat(p.view) : p.viewFrom < s && (p.view = p.view.slice(Zo(i, s))), p.viewFrom = s, p.viewTo < f ? p.view = p.view.concat(Fu(i, p.viewTo, f)) : p.viewTo > f && (p.view = p.view.slice(0, Zo(i, f)))), p.viewTo = f;
1946
1946
  }
1947
1947
  function wg(i) {
1948
1948
  for (var s = i.display.view, f = 0, p = 0; p < s.length; p++) {
@@ -1976,7 +1976,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1976
1976
  function Zf(i, s, f) {
1977
1977
  var p = Nr(i, s, "div", null, null, !i.options.singleCursorHeightPerLine), h = f.appendChild(G("div", " ", "CodeMirror-cursor"));
1978
1978
  if (h.style.left = p.left + "px", h.style.top = p.top + "px", h.style.height = Math.max(0, p.bottom - p.top) * i.options.cursorHeight + "px", /\bcm-fat-cursor\b/.test(i.getWrapperElement().className)) {
1979
- var g = ju(i, s, "div", null, null), E = g.right - g.left;
1979
+ var g = zu(i, s, "div", null, null), E = g.right - g.left;
1980
1980
  h.style.width = (E > 0 ? E : i.defaultCharWidth()) + "px";
1981
1981
  }
1982
1982
  if (p.other) {
@@ -1984,7 +1984,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1984
1984
  x.style.display = "", x.style.left = p.other.left + "px", x.style.top = p.other.top + "px", x.style.height = (p.other.bottom - p.other.top) * 0.85 + "px";
1985
1985
  }
1986
1986
  }
1987
- function Uu(i, s) {
1987
+ function Wu(i, s) {
1988
1988
  return i.top - s.top || i.left - s.left;
1989
1989
  }
1990
1990
  function FS(i, s, f) {
@@ -1997,7 +1997,7 @@ b`.split(/\n/).length != 3 ? function(i) {
1997
1997
  function $(be, Te, ze) {
1998
1998
  var Oe = Ae(h, be), rt = Oe.text.length, xt, ln;
1999
1999
  function Mt(Kt, Vn) {
2000
- return ju(i, de(be, Kt), "div", Oe, Vn);
2000
+ return zu(i, de(be, Kt), "div", Oe, Vn);
2001
2001
  }
2002
2002
  function nr(Kt, Vn, gn) {
2003
2003
  var nn = _g(i, Oe, null, Kt), qt = Vn == "ltr" == (gn == "after") ? "left" : "right", Lt = gn == "after" ? nn.begin : nn.end - (/\s/.test(Oe.text.charAt(nn.end - 1)) ? 2 : 1);
@@ -2013,7 +2013,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2013
2013
  var ra, In, ts, Cd;
2014
2014
  qt ? (ra = A && es && Tn ? x : Lt.left, In = A ? S : nr(Kt, gn, "before"), ts = A ? x : nr(Vn, gn, "after"), Cd = A && no && Yr ? S : Kn.right) : (ra = A ? nr(Kt, gn, "before") : x, In = !A && es && Tn ? S : Lt.right, ts = !A && no && Yr ? x : Kn.left, Cd = A ? nr(Vn, gn, "after") : S), B(ra, Lt.top, In - ra, Lt.bottom), Lt.bottom < Kn.top && B(x, Lt.bottom, null, Kn.top), B(ts, Kn.top, Cd - ts, Kn.bottom);
2015
2015
  }
2016
- (!xt || Uu(Lt, xt) < 0) && (xt = Lt), Uu(Kn, xt) < 0 && (xt = Kn), (!ln || Uu(Lt, ln) < 0) && (ln = Lt), Uu(Kn, ln) < 0 && (ln = Kn);
2016
+ (!xt || Wu(Lt, xt) < 0) && (xt = Lt), Wu(Kn, xt) < 0 && (xt = Kn), (!ln || Wu(Lt, ln) < 0) && (ln = Lt), Wu(Kn, ln) < 0 && (ln = Kn);
2017
2017
  }), { start: xt, end: ln };
2018
2018
  }
2019
2019
  var Y = s.from(), K = s.to();
@@ -2053,7 +2053,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2053
2053
  i.state.focused || (i.display.shift = !1);
2054
2054
  }, 150));
2055
2055
  }
2056
- function Gu(i) {
2056
+ function Uu(i) {
2057
2057
  for (var s = i.display, f = s.lineDiv.offsetTop, p = Math.max(0, s.scroller.getBoundingClientRect().top), h = s.lineDiv.getBoundingClientRect().top, g = 0, E = 0; E < s.view.length; E++) {
2058
2058
  var x = s.view[E], S = i.options.lineWrapping, A = void 0, B = 0;
2059
2059
  if (!x.hidden) {
@@ -2083,9 +2083,9 @@ b`.split(/\n/).length != 3 ? function(i) {
2083
2083
  p && (f.height = p.offsetHeight);
2084
2084
  }
2085
2085
  }
2086
- function Vu(i, s, f) {
2086
+ function Gu(i, s, f) {
2087
2087
  var p = f && f.top != null ? Math.max(0, f.top) : i.scroller.scrollTop;
2088
- p = Math.floor(p - Hu(i));
2088
+ p = Math.floor(p - $u(i));
2089
2089
  var h = f && f.bottom != null ? f.bottom : p + i.wrapper.clientHeight, g = Gr(s, p), E = Gr(s, h);
2090
2090
  if (f && f.ensure) {
2091
2091
  var x = f.ensure.from.line, S = f.ensure.to.line;
@@ -2098,7 +2098,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2098
2098
  var f = i.display, p = f.sizer.getBoundingClientRect(), h = null, g = f.wrapper.ownerDocument;
2099
2099
  if (s.top + p.top < 0 ? h = !0 : s.bottom + p.top > (g.defaultView.innerHeight || g.documentElement.clientHeight) && (h = !1), h != null && !I) {
2100
2100
  var E = G("div", "​", null, `position: absolute;
2101
- top: ` + (s.top - f.viewOffset - Hu(i.display)) + `px;
2101
+ top: ` + (s.top - f.viewOffset - $u(i.display)) + `px;
2102
2102
  height: ` + (s.bottom - s.top + Kr(i) + f.barHeight) + `px;
2103
2103
  left: ` + s.left + "px; width: " + Math.max(2, s.right - s.left) + "px;");
2104
2104
  i.display.lineSpace.appendChild(E), E.scrollIntoView(h), i.display.lineSpace.removeChild(E);
@@ -2143,20 +2143,20 @@ b`.split(/\n/).length != 3 ? function(i) {
2143
2143
  return ne && (s.right = s.left + K), s.left < 10 ? E.scrollLeft = 0 : s.left < Y ? E.scrollLeft = Math.max(0, s.left + $ - (ne ? 0 : 10)) : s.right > K + Y - 3 && (E.scrollLeft = s.right + (ne ? 0 : 10) - K), E;
2144
2144
  }
2145
2145
  function nd(i, s) {
2146
- s != null && (Ku(i), i.curOp.scrollTop = (i.curOp.scrollTop == null ? i.doc.scrollTop : i.curOp.scrollTop) + s);
2146
+ s != null && (Vu(i), i.curOp.scrollTop = (i.curOp.scrollTop == null ? i.doc.scrollTop : i.curOp.scrollTop) + s);
2147
2147
  }
2148
2148
  function Wa(i) {
2149
- Ku(i);
2149
+ Vu(i);
2150
2150
  var s = i.getCursor();
2151
2151
  i.curOp.scrollToPos = { from: s, to: s, margin: i.options.cursorScrollMargin };
2152
2152
  }
2153
2153
  function Us(i, s, f) {
2154
- (s != null || f != null) && Ku(i), s != null && (i.curOp.scrollLeft = s), f != null && (i.curOp.scrollTop = f);
2154
+ (s != null || f != null) && Vu(i), s != null && (i.curOp.scrollLeft = s), f != null && (i.curOp.scrollTop = f);
2155
2155
  }
2156
2156
  function jS(i, s) {
2157
- Ku(i), i.curOp.scrollToPos = s;
2157
+ Vu(i), i.curOp.scrollToPos = s;
2158
2158
  }
2159
- function Ku(i) {
2159
+ function Vu(i) {
2160
2160
  var s = i.curOp.scrollToPos;
2161
2161
  if (s) {
2162
2162
  i.curOp.scrollToPos = null;
@@ -2252,7 +2252,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2252
2252
  var f = i.display.barWidth, p = i.display.barHeight;
2253
2253
  Rg(i, s);
2254
2254
  for (var h = 0; h < 4 && f != i.display.barWidth || p != i.display.barHeight; h++)
2255
- f != i.display.barWidth && i.options.lineWrapping && Gu(i), Rg(i, Vs(i)), f = i.display.barWidth, p = i.display.barHeight;
2255
+ f != i.display.barWidth && i.options.lineWrapping && Uu(i), Rg(i, Vs(i)), f = i.display.barWidth, p = i.display.barHeight;
2256
2256
  }
2257
2257
  function Rg(i, s) {
2258
2258
  var f = i.display, p = f.scrollbars.update(s);
@@ -2328,14 +2328,14 @@ b`.split(/\n/).length != 3 ? function(i) {
2328
2328
  }
2329
2329
  function GS(i) {
2330
2330
  var s = i.cm, f = s.display;
2331
- ZS(s), i.updateMaxLine && $f(s), i.mustUpdate = i.viewChanged || i.forceUpdate || i.scrollTop != null || i.scrollToPos && (i.scrollToPos.from.line < f.viewFrom || i.scrollToPos.to.line >= f.viewTo) || f.maxLineChanged && s.options.lineWrapping, i.update = i.mustUpdate && new qu(s, i.mustUpdate && { top: i.scrollTop, ensure: i.scrollToPos }, i.forceUpdate);
2331
+ ZS(s), i.updateMaxLine && $f(s), i.mustUpdate = i.viewChanged || i.forceUpdate || i.scrollTop != null || i.scrollToPos && (i.scrollToPos.from.line < f.viewFrom || i.scrollToPos.to.line >= f.viewTo) || f.maxLineChanged && s.options.lineWrapping, i.update = i.mustUpdate && new Ku(s, i.mustUpdate && { top: i.scrollTop, ensure: i.scrollToPos }, i.forceUpdate);
2332
2332
  }
2333
2333
  function VS(i) {
2334
2334
  i.updatedDisplay = i.mustUpdate && rd(i.cm, i.update);
2335
2335
  }
2336
2336
  function KS(i) {
2337
2337
  var s = i.cm, f = s.display;
2338
- i.updatedDisplay && Gu(s), i.barMeasure = Vs(s), f.maxLineChanged && !s.options.lineWrapping && (i.adjustWidthTo = pg(s, f.maxLine, f.maxLine.text.length).left + 3, s.display.sizerWidth = i.adjustWidthTo, i.barMeasure.scrollWidth = Math.max(f.scroller.clientWidth, f.sizer.offsetLeft + i.adjustWidthTo + Kr(s) + s.display.barWidth), i.maxScrollLeft = Math.max(0, f.sizer.offsetLeft + i.adjustWidthTo - qo(s))), (i.updatedDisplay || i.selectionChanged) && (i.preparedSelection = f.input.prepareSelection());
2338
+ i.updatedDisplay && Uu(s), i.barMeasure = Vs(s), f.maxLineChanged && !s.options.lineWrapping && (i.adjustWidthTo = pg(s, f.maxLine, f.maxLine.text.length).left + 3, s.display.sizerWidth = i.adjustWidthTo, i.barMeasure.scrollWidth = Math.max(f.scroller.clientWidth, f.sizer.offsetLeft + i.adjustWidthTo + Kr(s) + s.display.barWidth), i.maxScrollLeft = Math.max(0, f.sizer.offsetLeft + i.adjustWidthTo - qo(s))), (i.updatedDisplay || i.selectionChanged) && (i.preparedSelection = f.input.prepareSelection());
2339
2339
  }
2340
2340
  function qS(i) {
2341
2341
  var s = i.cm;
@@ -2419,7 +2419,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2419
2419
  var f = +/* @__PURE__ */ new Date() + i.options.workTime, p = O(i, s.highlightFrontier), h = [];
2420
2420
  s.iter(p.line, Math.min(s.first + s.size, i.display.viewTo + 500), function(g) {
2421
2421
  if (p.line >= i.display.viewFrom) {
2422
- var E = g.styles, x = g.text.length > i.options.maxHighlightLength ? gr(s.mode, p.state) : null, S = Nu(i, g, p, !0);
2422
+ var E = g.styles, x = g.text.length > i.options.maxHighlightLength ? gr(s.mode, p.state) : null, S = Mu(i, g, p, !0);
2423
2423
  x && (p.state = x), g.styles = S.styles;
2424
2424
  var A = g.styleClasses, B = S.classes;
2425
2425
  B ? g.styleClasses = B : A && (g.styleClasses = null);
@@ -2436,13 +2436,13 @@ b`.split(/\n/).length != 3 ? function(i) {
2436
2436
  });
2437
2437
  }
2438
2438
  }
2439
- var qu = function(i, s, f) {
2439
+ var Ku = function(i, s, f) {
2440
2440
  var p = i.display;
2441
- this.viewport = s, this.visible = Vu(p, i.doc, s), this.editorIsHidden = !p.wrapper.offsetWidth, this.wrapperHeight = p.wrapper.clientHeight, this.wrapperWidth = p.wrapper.clientWidth, this.oldDisplayWidth = qo(i), this.force = f, this.dims = qf(i), this.events = [];
2441
+ this.viewport = s, this.visible = Gu(p, i.doc, s), this.editorIsHidden = !p.wrapper.offsetWidth, this.wrapperHeight = p.wrapper.clientHeight, this.wrapperWidth = p.wrapper.clientWidth, this.oldDisplayWidth = qo(i), this.force = f, this.dims = qf(i), this.events = [];
2442
2442
  };
2443
- qu.prototype.signal = function(i, s) {
2443
+ Ku.prototype.signal = function(i, s) {
2444
2444
  Qn(i, s) && this.events.push(arguments);
2445
- }, qu.prototype.finish = function() {
2445
+ }, Ku.prototype.finish = function() {
2446
2446
  for (var i = 0; i < this.events.length; i++)
2447
2447
  kt.apply(null, this.events[i]);
2448
2448
  };
@@ -2489,22 +2489,22 @@ b`.split(/\n/).length != 3 ? function(i) {
2489
2489
  function Mg(i, s) {
2490
2490
  for (var f = s.viewport, p = !0; ; p = !1) {
2491
2491
  if (!p || !i.options.lineWrapping || s.oldDisplayWidth == qo(i)) {
2492
- if (f && f.top != null && (f = { top: Math.min(i.doc.height + zf(i.display) - jf(i), f.top) }), s.visible = Vu(i.display, i.doc, f), s.visible.from >= i.display.viewFrom && s.visible.to <= i.display.viewTo)
2492
+ if (f && f.top != null && (f = { top: Math.min(i.doc.height + zf(i.display) - jf(i), f.top) }), s.visible = Gu(i.display, i.doc, f), s.visible.from >= i.display.viewFrom && s.visible.to <= i.display.viewTo)
2493
2493
  break;
2494
2494
  } else
2495
- p && (s.visible = Vu(i.display, i.doc, f));
2495
+ p && (s.visible = Gu(i.display, i.doc, f));
2496
2496
  if (!rd(i, s))
2497
2497
  break;
2498
- Gu(i);
2498
+ Uu(i);
2499
2499
  var h = Vs(i);
2500
2500
  Ws(i), Ua(i, h), ad(i, h), s.force = !1;
2501
2501
  }
2502
2502
  s.signal(i, "update", i), (i.display.viewFrom != i.display.reportedViewFrom || i.display.viewTo != i.display.reportedViewTo) && (s.signal(i, "viewportChange", i, i.display.viewFrom, i.display.viewTo), i.display.reportedViewFrom = i.display.viewFrom, i.display.reportedViewTo = i.display.viewTo);
2503
2503
  }
2504
2504
  function id(i, s) {
2505
- var f = new qu(i, s);
2505
+ var f = new Ku(i, s);
2506
2506
  if (rd(i, f)) {
2507
- Gu(i), Mg(i, f);
2507
+ Uu(i), Mg(i, f);
2508
2508
  var p = Vs(i);
2509
2509
  Ws(i), Ua(i, p), ad(i, p), f.finish();
2510
2510
  }
@@ -2602,7 +2602,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2602
2602
  var g = ce("div", [h.lineSpace], "CodeMirror-lines");
2603
2603
  h.mover = G("div", [g], null, "position: relative"), h.sizer = G("div", [h.mover], "CodeMirror-sizer"), h.sizerWidth = null, h.heightForcer = G("div", null, null, "position: absolute; height: " + at + "px; width: 1px;"), h.gutters = G("div", null, "CodeMirror-gutters"), h.lineGutter = null, h.scroller = G("div", [h.sizer, h.heightForcer, h.gutters], "CodeMirror-scroll"), h.scroller.setAttribute("tabIndex", "-1"), h.wrapper = G("div", [h.scrollbarFiller, h.gutterFiller, h.scroller], "CodeMirror"), y && b === 105 && (h.wrapper.style.clipPath = "inset(0px)"), h.wrapper.setAttribute("translate", "no"), c && d < 8 && (h.gutters.style.zIndex = -1, h.scroller.style.paddingRight = 0), !v && !(o && P) && (h.scroller.draggable = !0), i && (i.appendChild ? i.appendChild(h.wrapper) : i(h.wrapper)), h.viewFrom = h.viewTo = s.first, h.reportedViewFrom = h.reportedViewTo = s.first, h.view = [], h.renderedView = null, h.externalMeasured = null, h.viewOffset = 0, h.lastWrapHeight = h.lastWrapWidth = 0, h.updateLineNumbers = null, h.nativeBarWidth = h.barHeight = h.barWidth = 0, h.scrollbarsClipped = !1, h.lineNumWidth = h.lineNumInnerWidth = h.lineNumChars = null, h.alignWidgets = !1, h.cachedCharWidth = h.cachedTextHeight = h.cachedPaddingH = null, h.maxLine = null, h.maxLineLength = 0, h.maxLineChanged = !1, h.wheelDX = h.wheelDY = h.wheelStartX = h.wheelStartY = null, h.shift = !1, h.selForContextMenu = null, h.activeTouch = null, h.gutterSpecs = sd(p.gutters, p.lineNumbers), Og(h), f.init(h);
2604
2604
  }
2605
- var Yu = 0, bi = null;
2605
+ var qu = 0, bi = null;
2606
2606
  c ? bi = -0.53 : o ? bi = 15 : y ? bi = -0.7 : w && (bi = -1 / 3);
2607
2607
  function Ig(i) {
2608
2608
  var s = i.wheelDeltaX, f = i.wheelDeltaY;
@@ -2637,20 +2637,20 @@ b`.split(/\n/).length != 3 ? function(i) {
2637
2637
  var K = h * g, ne = i.doc.scrollTop, ue = ne + E.wrapper.clientHeight;
2638
2638
  K < 0 ? ne = Math.max(0, ne + K - 50) : ue = Math.min(i.doc.height, ue + K + 50), id(i, { top: ne, bottom: ue });
2639
2639
  }
2640
- Yu < 20 && s.deltaMode !== 0 && (E.wheelStartX == null ? (E.wheelStartX = x.scrollLeft, E.wheelStartY = x.scrollTop, E.wheelDX = p, E.wheelDY = h, setTimeout(function() {
2640
+ qu < 20 && s.deltaMode !== 0 && (E.wheelStartX == null ? (E.wheelStartX = x.scrollLeft, E.wheelStartY = x.scrollTop, E.wheelDX = p, E.wheelDY = h, setTimeout(function() {
2641
2641
  if (E.wheelStartX != null) {
2642
2642
  var ve = x.scrollLeft - E.wheelStartX, ye = x.scrollTop - E.wheelStartY, xe = ye && E.wheelDY && ye / E.wheelDY || ve && E.wheelDX && ve / E.wheelDX;
2643
- E.wheelStartX = E.wheelStartY = null, xe && (bi = (bi * Yu + xe) / (Yu + 1), ++Yu);
2643
+ E.wheelStartX = E.wheelStartY = null, xe && (bi = (bi * qu + xe) / (qu + 1), ++qu);
2644
2644
  }
2645
2645
  }, 200)) : (E.wheelDX += p, E.wheelDY += h));
2646
2646
  }
2647
2647
  }
2648
- var pr = function(i, s) {
2648
+ var cr = function(i, s) {
2649
2649
  this.ranges = i, this.primIndex = s;
2650
2650
  };
2651
- pr.prototype.primary = function() {
2651
+ cr.prototype.primary = function() {
2652
2652
  return this.ranges[this.primIndex];
2653
- }, pr.prototype.equals = function(i) {
2653
+ }, cr.prototype.equals = function(i) {
2654
2654
  if (i == this)
2655
2655
  return !0;
2656
2656
  if (i.primIndex != this.primIndex || i.ranges.length != this.ranges.length)
@@ -2661,16 +2661,16 @@ b`.split(/\n/).length != 3 ? function(i) {
2661
2661
  return !1;
2662
2662
  }
2663
2663
  return !0;
2664
- }, pr.prototype.deepCopy = function() {
2664
+ }, cr.prototype.deepCopy = function() {
2665
2665
  for (var i = [], s = 0; s < this.ranges.length; s++)
2666
2666
  i[s] = new ht(Vo(this.ranges[s].anchor), Vo(this.ranges[s].head));
2667
- return new pr(i, this.primIndex);
2668
- }, pr.prototype.somethingSelected = function() {
2667
+ return new cr(i, this.primIndex);
2668
+ }, cr.prototype.somethingSelected = function() {
2669
2669
  for (var i = 0; i < this.ranges.length; i++)
2670
2670
  if (!this.ranges[i].empty())
2671
2671
  return !0;
2672
2672
  return !1;
2673
- }, pr.prototype.contains = function(i, s) {
2673
+ }, cr.prototype.contains = function(i, s) {
2674
2674
  s || (s = i);
2675
2675
  for (var f = 0; f < this.ranges.length; f++) {
2676
2676
  var p = this.ranges[f];
@@ -2701,10 +2701,10 @@ b`.split(/\n/).length != 3 ? function(i) {
2701
2701
  g <= f && --f, s.splice(--g, 2, new ht($ ? B : A, $ ? A : B));
2702
2702
  }
2703
2703
  }
2704
- return new pr(s, f);
2704
+ return new cr(s, f);
2705
2705
  }
2706
2706
  function Zi(i, s) {
2707
- return new pr([new ht(i, s || i)], 0);
2707
+ return new cr([new ht(i, s || i)], 0);
2708
2708
  }
2709
2709
  function Qi(i) {
2710
2710
  return i.text ? de(
@@ -2742,7 +2742,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2742
2742
  } else
2743
2743
  p[E] = new ht(S, S);
2744
2744
  }
2745
- return new pr(p, i.sel.primIndex);
2745
+ return new cr(p, i.sel.primIndex);
2746
2746
  }
2747
2747
  function ud(i) {
2748
2748
  i.doc.mode = Uo(i.options, i.doc.modeOption), Xs(i);
@@ -2815,11 +2815,11 @@ b`.split(/\n/).length != 3 ? function(i) {
2815
2815
  jg(i), Wn(i);
2816
2816
  });
2817
2817
  }
2818
- function Xu(i) {
2818
+ function Yu(i) {
2819
2819
  this.done = [], this.undone = [], this.undoDepth = i ? i.undoDepth : 1 / 0, this.lastModTime = this.lastSelTime = 0, this.lastOp = this.lastSelOp = null, this.lastOrigin = this.lastSelOrigin = null, this.generation = this.maxGeneration = i ? i.maxGeneration : 1;
2820
2820
  }
2821
2821
  function pd(i, s) {
2822
- var f = { from: Vo(s.from), to: Qi(s), text: cr(i, s.from, s.to) };
2822
+ var f = { from: Vo(s.from), to: Qi(s), text: ur(i, s.from, s.to) };
2823
2823
  return Gg(i, f, s.from.line, s.to.line + 1), Ji(i, function(p) {
2824
2824
  return Gg(p, f, s.from.line, s.to.line + 1);
2825
2825
  }, !0), f;
@@ -2849,7 +2849,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2849
2849
  x = ke(E.changes), Ye(s.from, s.to) == 0 && Ye(s.from, x.to) == 0 ? x.to = Qi(s) : E.changes.push(pd(i, s));
2850
2850
  else {
2851
2851
  var S = ke(h.done);
2852
- for ((!S || !S.ranges) && Zu(i.sel, h.done), E = {
2852
+ for ((!S || !S.ranges) && Xu(i.sel, h.done), E = {
2853
2853
  changes: [pd(i, s)],
2854
2854
  generation: h.generation
2855
2855
  }, h.done.push(E); h.done.length > h.undoDepth; )
@@ -2863,9 +2863,9 @@ b`.split(/\n/).length != 3 ? function(i) {
2863
2863
  }
2864
2864
  function sC(i, s, f, p) {
2865
2865
  var h = i.history, g = p && p.origin;
2866
- f == h.lastSelOp || g && h.lastSelOrigin == g && (h.lastModTime == h.lastSelTime && h.lastOrigin == g || aC(i, g, ke(h.done), s)) ? h.done[h.done.length - 1] = s : Zu(s, h.done), h.lastSelTime = +/* @__PURE__ */ new Date(), h.lastSelOrigin = g, h.lastSelOp = f, p && p.clearRedo !== !1 && Wg(h.undone);
2866
+ f == h.lastSelOp || g && h.lastSelOrigin == g && (h.lastModTime == h.lastSelTime && h.lastOrigin == g || aC(i, g, ke(h.done), s)) ? h.done[h.done.length - 1] = s : Xu(s, h.done), h.lastSelTime = +/* @__PURE__ */ new Date(), h.lastSelOrigin = g, h.lastSelOp = f, p && p.clearRedo !== !1 && Wg(h.undone);
2867
2867
  }
2868
- function Zu(i, s) {
2868
+ function Xu(i, s) {
2869
2869
  var f = ke(s);
2870
2870
  f && f.ranges && f.equals(i) || s.push(i);
2871
2871
  }
@@ -2915,7 +2915,7 @@ b`.split(/\n/).length != 3 ? function(i) {
2915
2915
  for (var p = [], h = 0; h < i.length; ++h) {
2916
2916
  var g = i[h];
2917
2917
  if (g.ranges) {
2918
- p.push(f ? pr.prototype.deepCopy.call(g) : g);
2918
+ p.push(f ? cr.prototype.deepCopy.call(g) : g);
2919
2919
  continue;
2920
2920
  }
2921
2921
  var E = g.changes, x = [];
@@ -2940,8 +2940,8 @@ b`.split(/\n/).length != 3 ? function(i) {
2940
2940
  } else
2941
2941
  return new ht(f || s, s);
2942
2942
  }
2943
- function Qu(i, s, f, p, h) {
2944
- h == null && (h = i.cm && (i.cm.display.shift || i.extend)), Cn(i, new pr([fd(i.sel.primary(), s, f, h)], 0), p);
2943
+ function Zu(i, s, f, p, h) {
2944
+ h == null && (h = i.cm && (i.cm.display.shift || i.extend)), Cn(i, new cr([fd(i.sel.primary(), s, f, h)], 0), p);
2945
2945
  }
2946
2946
  function Kg(i, s, f) {
2947
2947
  for (var p = [], h = i.cm && (i.cm.display.shift || i.extend), g = 0; g < i.sel.ranges.length; g++)
@@ -2973,25 +2973,25 @@ b`.split(/\n/).length != 3 ? function(i) {
2973
2973
  }
2974
2974
  function Yg(i, s, f) {
2975
2975
  var p = i.history.done, h = ke(p);
2976
- h && h.ranges ? (p[p.length - 1] = s, Ju(i, s, f)) : Cn(i, s, f);
2976
+ h && h.ranges ? (p[p.length - 1] = s, Qu(i, s, f)) : Cn(i, s, f);
2977
2977
  }
2978
2978
  function Cn(i, s, f) {
2979
- Ju(i, s, f), sC(i, i.sel, i.cm ? i.cm.curOp.id : NaN, f);
2979
+ Qu(i, s, f), sC(i, i.sel, i.cm ? i.cm.curOp.id : NaN, f);
2980
2980
  }
2981
- function Ju(i, s, f) {
2981
+ function Qu(i, s, f) {
2982
2982
  (Qn(i, "beforeSelectionChange") || i.cm && Qn(i.cm, "beforeSelectionChange")) && (s = cC(i, s, f));
2983
2983
  var p = f && f.bias || (Ye(s.primary().head, i.sel.primary().head) < 0 ? -1 : 1);
2984
2984
  Xg(i, Qg(i, s, p, !0)), !(f && f.scroll === !1) && i.cm && i.cm.getOption("readOnly") != "nocursor" && Wa(i.cm);
2985
2985
  }
2986
2986
  function Xg(i, s) {
2987
- s.equals(i.sel) || (i.sel = s, i.cm && (i.cm.curOp.updateInput = 1, i.cm.curOp.selectionChanged = !0, Cu(i.cm)), on(i, "cursorActivity", i));
2987
+ s.equals(i.sel) || (i.sel = s, i.cm && (i.cm.curOp.updateInput = 1, i.cm.curOp.selectionChanged = !0, Su(i.cm)), on(i, "cursorActivity", i));
2988
2988
  }
2989
2989
  function Zg(i) {
2990
2990
  Xg(i, Qg(i, i.sel, null, !1));
2991
2991
  }
2992
2992
  function Qg(i, s, f, p) {
2993
2993
  for (var h, g = 0; g < s.ranges.length; g++) {
2994
- var E = s.ranges[g], x = s.ranges.length == i.sel.ranges.length && i.sel.ranges[g], S = ec(i, E.anchor, x && x.anchor, f, p), A = E.head == E.anchor ? S : ec(i, E.head, x && x.head, f, p);
2994
+ var E = s.ranges[g], x = s.ranges.length == i.sel.ranges.length && i.sel.ranges[g], S = Ju(i, E.anchor, x && x.anchor, f, p), A = E.head == E.anchor ? S : Ju(i, E.head, x && x.head, f, p);
2995
2995
  (h || S != E.anchor || A != E.head) && (h || (h = s.ranges.slice(0, g)), h[g] = new ht(S, A));
2996
2996
  }
2997
2997
  return h ? Lr(i.cm, h, s.primIndex) : s;
@@ -3021,7 +3021,7 @@ b`.split(/\n/).length != 3 ? function(i) {
3021
3021
  }
3022
3022
  return s;
3023
3023
  }
3024
- function ec(i, s, f, p, h) {
3024
+ function Ju(i, s, f, p, h) {
3025
3025
  var g = p || 1, E = Va(i, s, f, g, h) || !h && Va(i, s, f, g, !0) || Va(i, s, f, -g, h) || !h && Va(i, s, f, -g, !0);
3026
3026
  return E || (i.cantEdit = !0, de(i.first, 0));
3027
3027
  }
@@ -3072,7 +3072,7 @@ b`.split(/\n/).length != 3 ? function(i) {
3072
3072
  });
3073
3073
  }
3074
3074
  }
3075
- function tc(i, s, f) {
3075
+ function ec(i, s, f) {
3076
3076
  var p = i.cm && i.cm.state.suppressEdits;
3077
3077
  if (!(p && !f)) {
3078
3078
  for (var h = i.history, g, E = i.sel, x = s == "undo" ? h.done : h.undone, S = s == "undo" ? h.undone : h.done, A = 0; A < x.length && (g = x[A], !(f ? g.ranges && !g.equals(i.sel) : !g.ranges)); A++)
@@ -3080,7 +3080,7 @@ b`.split(/\n/).length != 3 ? function(i) {
3080
3080
  if (A != x.length) {
3081
3081
  for (h.lastOrigin = h.lastSelOrigin = null; ; )
3082
3082
  if (g = x.pop(), g.ranges) {
3083
- if (Zu(g, S), f && !g.equals(i.sel)) {
3083
+ if (Xu(g, S), f && !g.equals(i.sel)) {
3084
3084
  Cn(i, g, { clearRedo: !1 });
3085
3085
  return;
3086
3086
  }
@@ -3091,7 +3091,7 @@ b`.split(/\n/).length != 3 ? function(i) {
3091
3091
  } else
3092
3092
  break;
3093
3093
  var B = [];
3094
- Zu(E, S), S.push({ changes: B, generation: h.generation }), h.generation = g.generation || ++h.maxGeneration;
3094
+ Xu(E, S), S.push({ changes: B, generation: h.generation }), h.generation = g.generation || ++h.maxGeneration;
3095
3095
  for (var $ = Qn(i, "beforeChange") || i.cm && Qn(i.cm, "beforeChange"), Y = function(ue) {
3096
3096
  var ve = g.changes[ue];
3097
3097
  if (ve.origin = s, $ && !ty(i, ve, !1))
@@ -3112,7 +3112,7 @@ b`.split(/\n/).length != 3 ? function(i) {
3112
3112
  }
3113
3113
  }
3114
3114
  function ry(i, s) {
3115
- if (s != 0 && (i.first += s, i.sel = new pr(Dt(i.sel.ranges, function(h) {
3115
+ if (s != 0 && (i.first += s, i.sel = new cr(Dt(i.sel.ranges, function(h) {
3116
3116
  return new ht(
3117
3117
  de(h.anchor.line + s, h.anchor.ch),
3118
3118
  de(h.head.line + s, h.head.ch)
@@ -3146,7 +3146,7 @@ b`.split(/\n/).length != 3 ? function(i) {
3146
3146
  to: de(g, Ae(i, g).text.length),
3147
3147
  text: [s.text[0]],
3148
3148
  origin: s.origin
3149
- }), s.removed = cr(i, s.from, s.to), f || (f = ld(i, s)), i.cm ? pC(i.cm, s, p) : cd(i, s, p), Ju(i, f, Ue), i.cantEdit && ec(i, de(i.firstLine(), 0)) && (i.cantEdit = !1);
3149
+ }), s.removed = ur(i, s.from, s.to), f || (f = ld(i, s)), i.cm ? pC(i.cm, s, p) : cd(i, s, p), Qu(i, f, Ue), i.cantEdit && Ju(i, de(i.firstLine(), 0)) && (i.cantEdit = !1);
3150
3150
  }
3151
3151
  }
3152
3152
  function pC(i, s, f) {
@@ -3154,8 +3154,8 @@ b`.split(/\n/).length != 3 ? function(i) {
3154
3154
  i.options.lineWrapping || (S = dt(Mr(Ae(p, g.line))), p.iter(S, E.line + 1, function(K) {
3155
3155
  if (K == h.maxLine)
3156
3156
  return x = !0, !0;
3157
- })), p.sel.contains(s.from, s.to) > -1 && Cu(i), cd(p, s, f, xg(i)), i.options.lineWrapping || (p.iter(S, g.line + s.text.length, function(K) {
3158
- var ne = Fu(K);
3157
+ })), p.sel.contains(s.from, s.to) > -1 && Su(i), cd(p, s, f, xg(i)), i.options.lineWrapping || (p.iter(S, g.line + s.text.length, function(K) {
3158
+ var ne = Bu(K);
3159
3159
  ne > h.maxLineLength && (h.maxLine = K, h.maxLineLength = ne, h.maxLineChanged = !0, x = !1);
3160
3160
  }), x && (i.curOp.updateMaxLine = !0)), Er(p, g.line), qs(i, 400);
3161
3161
  var A = s.text.length - (E.line - g.line) - 1;
@@ -3384,7 +3384,7 @@ b`.split(/\n/).length != 3 ? function(i) {
3384
3384
  }
3385
3385
  if (i && this.collapsed && !i.options.lineWrapping)
3386
3386
  for (var S = 0; S < this.lines.length; ++S) {
3387
- var A = Mr(this.lines[S]), B = Fu(A);
3387
+ var A = Mr(this.lines[S]), B = Bu(A);
3388
3388
  B > i.display.maxLineLength && (i.display.maxLine = A, i.display.maxLineLength = B, i.display.maxLineChanged = !0);
3389
3389
  }
3390
3390
  p != null && i && this.collapsed && Wn(i, p, h + 1), this.lines.length = 0, this.explicitlyCleared = !0, this.atomic && this.doc.cantEdit && (this.doc.cantEdit = !1, i && Zg(i.doc)), i && on(i, "markerCleared", i, this, p, h), s && ta(i), this.parent && this.parent.clear();
@@ -3439,7 +3439,7 @@ b`.split(/\n/).length != 3 ? function(i) {
3439
3439
  g.addToHistory && Ug(i, { from: s, to: f, origin: "markText" }, i.sel, NaN);
3440
3440
  var x = s.line, S = i.cm, A;
3441
3441
  if (i.iter(x, f.line + 1, function($) {
3442
- S && g.collapsed && !S.options.lineWrapping && Mr($) == S.display.maxLine && (A = !0), g.collapsed && x != s.line && en($, 0), iS($, new Lu(
3442
+ S && g.collapsed && !S.options.lineWrapping && Mr($) == S.display.maxLine && (A = !0), g.collapsed && x != s.line && en($, 0), iS($, new Nu(
3443
3443
  g,
3444
3444
  x == s.line ? s.ch : null,
3445
3445
  x == f.line ? f.ch : null
@@ -3516,7 +3516,7 @@ b`.split(/\n/).length != 3 ? function(i) {
3516
3516
  return new Un(i, s, f, p, h);
3517
3517
  f == null && (f = 0), el.call(this, [new Js([new Ba("", null)])]), this.first = f, this.scrollTop = this.scrollLeft = 0, this.cantEdit = !1, this.cleanGeneration = 1, this.modeFrontier = this.highlightFrontier = f;
3518
3518
  var g = de(f, 0);
3519
- this.sel = Zi(g), this.history = new Xu(null), this.id = ++mC, this.modeOption = s, this.lineSep = p, this.direction = h == "rtl" ? "rtl" : "ltr", this.extend = !1, typeof i == "string" && (i = this.splitLines(i)), cd(this, { from: g, to: g, text: i }), Cn(this, Zi(g), Ue);
3519
+ this.sel = Zi(g), this.history = new Yu(null), this.id = ++mC, this.modeOption = s, this.lineSep = p, this.direction = h == "rtl" ? "rtl" : "ltr", this.extend = !1, typeof i == "string" && (i = this.splitLines(i)), cd(this, { from: g, to: g, text: i }), Cn(this, Zi(g), Ue);
3520
3520
  };
3521
3521
  Un.prototype = Le(el.prototype, {
3522
3522
  constructor: Un,
@@ -3556,7 +3556,7 @@ b`.split(/\n/).length != 3 ? function(i) {
3556
3556
  s = Xe(this, s), f = f ? Xe(this, f) : s, qa(this, i, s, f, p);
3557
3557
  },
3558
3558
  getRange: function(i, s, f) {
3559
- var p = cr(this, Xe(this, i), Xe(this, s));
3559
+ var p = ur(this, Xe(this, i), Xe(this, s));
3560
3560
  return f === !1 ? p : f === "" ? p.join("") : p.join(f || this.lineSeparator());
3561
3561
  },
3562
3562
  getLine: function(i) {
@@ -3602,7 +3602,7 @@ b`.split(/\n/).length != 3 ? function(i) {
3602
3602
  qg(this, Xe(this, i), Xe(this, s || i), f);
3603
3603
  }),
3604
3604
  extendSelection: sn(function(i, s, f) {
3605
- Qu(this, Xe(this, i), s && Xe(this, s), f);
3605
+ Zu(this, Xe(this, i), s && Xe(this, s), f);
3606
3606
  }),
3607
3607
  extendSelections: sn(function(i, s) {
3608
3608
  Kg(this, Ia(this, i), s);
@@ -3627,14 +3627,14 @@ b`.split(/\n/).length != 3 ? function(i) {
3627
3627
  }),
3628
3628
  getSelection: function(i) {
3629
3629
  for (var s = this.sel.ranges, f, p = 0; p < s.length; p++) {
3630
- var h = cr(this, s[p].from(), s[p].to());
3630
+ var h = ur(this, s[p].from(), s[p].to());
3631
3631
  f = f ? f.concat(h) : h;
3632
3632
  }
3633
3633
  return i === !1 ? f : f.join(i || this.lineSeparator());
3634
3634
  },
3635
3635
  getSelections: function(i) {
3636
3636
  for (var s = [], f = this.sel.ranges, p = 0; p < f.length; p++) {
3637
- var h = cr(this, f[p].from(), f[p].to());
3637
+ var h = ur(this, f[p].from(), f[p].to());
3638
3638
  i !== !1 && (h = h.join(i || this.lineSeparator())), s[p] = h;
3639
3639
  }
3640
3640
  return s;
@@ -3654,16 +3654,16 @@ b`.split(/\n/).length != 3 ? function(i) {
3654
3654
  x ? Yg(this, x) : this.cm && Wa(this.cm);
3655
3655
  }),
3656
3656
  undo: sn(function() {
3657
- tc(this, "undo");
3657
+ ec(this, "undo");
3658
3658
  }),
3659
3659
  redo: sn(function() {
3660
- tc(this, "redo");
3660
+ ec(this, "redo");
3661
3661
  }),
3662
3662
  undoSelection: sn(function() {
3663
- tc(this, "undo", !0);
3663
+ ec(this, "undo", !0);
3664
3664
  }),
3665
3665
  redoSelection: sn(function() {
3666
- tc(this, "redo", !0);
3666
+ ec(this, "redo", !0);
3667
3667
  }),
3668
3668
  setExtending: function(i) {
3669
3669
  this.extend = i;
@@ -3680,7 +3680,7 @@ b`.split(/\n/).length != 3 ? function(i) {
3680
3680
  },
3681
3681
  clearHistory: function() {
3682
3682
  var i = this;
3683
- this.history = new Xu(this.history), Ji(this, function(s) {
3683
+ this.history = new Yu(this.history), Ji(this, function(s) {
3684
3684
  return s.history = i.history;
3685
3685
  }, !0);
3686
3686
  },
@@ -3700,7 +3700,7 @@ b`.split(/\n/).length != 3 ? function(i) {
3700
3700
  };
3701
3701
  },
3702
3702
  setHistory: function(i) {
3703
- var s = this.history = new Xu(this.history);
3703
+ var s = this.history = new Yu(this.history);
3704
3704
  s.done = Ga(i.done.slice(0), null, !0), s.undone = Ga(i.undone.slice(0), null, !0);
3705
3705
  },
3706
3706
  setGutterMarker: sn(function(i, s, f) {
@@ -3866,7 +3866,7 @@ b`.split(/\n/).length != 3 ? function(i) {
3866
3866
  var p = [i.id];
3867
3867
  Ji(i, function(h) {
3868
3868
  return p.push(h.id);
3869
- }, !0), i.history = new Xu(null), i.history.done = Ga(this.history.done, p), i.history.undone = Ga(this.history.undone, p);
3869
+ }, !0), i.history = new Yu(null), i.history.done = Ga(this.history.done, p), i.history.undone = Ga(this.history.undone, p);
3870
3870
  }
3871
3871
  },
3872
3872
  iterLinkedDocs: function(i) {
@@ -3943,7 +3943,7 @@ b`.split(/\n/).length != 3 ? function(i) {
3943
3943
  var B = i.dataTransfer.getData("Text");
3944
3944
  if (B) {
3945
3945
  var $;
3946
- if (s.state.draggingText && !s.state.draggingText.copy && ($ = s.listSelections()), Ju(s.doc, Zi(f, f)), $)
3946
+ if (s.state.draggingText && !s.state.draggingText.copy && ($ = s.listSelections()), Qu(s.doc, Zi(f, f)), $)
3947
3947
  for (var Y = 0; Y < $.length; ++Y)
3948
3948
  qa(s.doc, "", $[Y].anchor, $[Y].head, "drag");
3949
3949
  s.replaceSelection(B, "around", "paste"), s.display.input.focus();
@@ -4062,8 +4062,8 @@ b`.split(/\n/).length != 3 ? function(i) {
4062
4062
  63302: "Insert"
4063
4063
  }, rl = 0; rl < 10; rl++)
4064
4064
  to[rl + 48] = to[rl + 96] = String(rl);
4065
- for (var nc = 65; nc <= 90; nc++)
4066
- to[nc] = String.fromCharCode(nc);
4065
+ for (var tc = 65; tc <= 90; tc++)
4066
+ to[tc] = String.fromCharCode(tc);
4067
4067
  for (var il = 1; il <= 12; il++)
4068
4068
  to[il + 111] = to[il + 63235] = "F" + il;
4069
4069
  var Ei = {};
@@ -4205,7 +4205,7 @@ b`.split(/\n/).length != 3 ? function(i) {
4205
4205
  return i;
4206
4206
  }
4207
4207
  function Xa(i, s, f, p) {
4208
- s = rc(s);
4208
+ s = nc(s);
4209
4209
  var h = s.call ? s.call(i, p) : s[i];
4210
4210
  if (h === !1)
4211
4211
  return "nothing";
@@ -4237,7 +4237,7 @@ b`.split(/\n/).length != 3 ? function(i) {
4237
4237
  var f = to[i.keyCode];
4238
4238
  return f == null || i.altGraphKey ? !1 : (i.keyCode == 3 && i.code && (f = i.code), vy(f, i, s));
4239
4239
  }
4240
- function rc(i) {
4240
+ function nc(i) {
4241
4241
  return typeof i == "string" ? Ei[i] : i;
4242
4242
  }
4243
4243
  function Za(i, s) {
@@ -4566,7 +4566,7 @@ b`.split(/\n/).length != 3 ? function(i) {
4566
4566
  }
4567
4567
  return f;
4568
4568
  }
4569
- function ic(i, s, f) {
4569
+ function rc(i, s, f) {
4570
4570
  if (typeof s == "string" && (s = ol[s], !s))
4571
4571
  return !1;
4572
4572
  i.display.input.ensurePolled();
@@ -4606,17 +4606,17 @@ b`.split(/\n/).length != 3 ? function(i) {
4606
4606
  function Ey(i, s) {
4607
4607
  var f = my(s, !0);
4608
4608
  return f ? s.shiftKey && !i.state.keySeq ? al(i, "Shift-" + f, s, function(p) {
4609
- return ic(i, p, !0);
4609
+ return rc(i, p, !0);
4610
4610
  }) || al(i, f, s, function(p) {
4611
4611
  if (typeof p == "string" ? /^go[A-Z]/.test(p) : p.motion)
4612
- return ic(i, p);
4612
+ return rc(i, p);
4613
4613
  }) : al(i, f, s, function(p) {
4614
- return ic(i, p);
4614
+ return rc(i, p);
4615
4615
  }) : !1;
4616
4616
  }
4617
4617
  function RC(i, s, f) {
4618
4618
  return al(i, "'" + f + "'", s, function(p) {
4619
- return ic(i, p, !0);
4619
+ return rc(i, p, !0);
4620
4620
  });
4621
4621
  }
4622
4622
  var gd = null;
@@ -4627,7 +4627,7 @@ b`.split(/\n/).length != 3 ? function(i) {
4627
4627
  var f = i.keyCode;
4628
4628
  s.display.shift = f == 16 || i.shiftKey;
4629
4629
  var p = Ey(s, i);
4630
- _ && (gd = p ? f : null, !p && f == 88 && !Du && (M ? i.metaKey : i.ctrlKey) && s.replaceSelection("", null, "cut")), o && !M && !p && f == 46 && i.shiftKey && !i.ctrlKey && document.execCommand && document.execCommand("cut"), f == 18 && !/\bCodeMirror-crosshair\b/.test(s.display.lineDiv.className) && DC(s);
4630
+ _ && (gd = p ? f : null, !p && f == 88 && !Ru && (M ? i.metaKey : i.ctrlKey) && s.replaceSelection("", null, "cut")), o && !M && !p && f == 46 && i.shiftKey && !i.ctrlKey && document.execCommand && document.execCommand("cut"), f == 18 && !/\bCodeMirror-crosshair\b/.test(s.display.lineDiv.className) && DC(s);
4631
4631
  }
4632
4632
  }
4633
4633
  function DC(i) {
@@ -4676,8 +4676,8 @@ b`.split(/\n/).length != 3 ? function(i) {
4676
4676
  return;
4677
4677
  }
4678
4678
  if (!bd(s, i)) {
4679
- var p = Xo(s, i), h = Au(i), g = p ? MC(p, h) : "single";
4680
- _e(s).focus(), h == 1 && s.state.selectingText && s.state.selectingText(i), !(p && NC(s, h, p, g, i)) && (h == 1 ? p ? OC(s, p, g, i) : Gi(i) == f.scroller && mn(i) : h == 2 ? (p && Qu(s.doc, p), setTimeout(function() {
4679
+ var p = Xo(s, i), h = Tu(i), g = p ? MC(p, h) : "single";
4680
+ _e(s).focus(), h == 1 && s.state.selectingText && s.state.selectingText(i), !(p && NC(s, h, p, g, i)) && (h == 1 ? p ? OC(s, p, g, i) : Gi(i) == f.scroller && mn(i) : h == 2 ? (p && Zu(s.doc, p), setTimeout(function() {
4681
4681
  return f.input.focus();
4682
4682
  }, 20)) : h == 3 && (Q ? s.display.input.onContextMenu(i) : Jf(s)));
4683
4683
  }
@@ -4712,7 +4712,7 @@ b`.split(/\n/).length != 3 ? function(i) {
4712
4712
  }
4713
4713
  function IC(i, s, f, p) {
4714
4714
  var h = i.display, g = !1, E = an(i, function(A) {
4715
- v && (h.scroller.draggable = !1), i.state.draggingText = !1, i.state.delayingBlurEvent && (i.hasFocus() ? i.state.delayingBlurEvent = !1 : Jf(i)), Nn(h.wrapper.ownerDocument, "mouseup", E), Nn(h.wrapper.ownerDocument, "mousemove", x), Nn(h.scroller, "dragstart", S), Nn(h.scroller, "drop", E), g || (mn(A), p.addNew || Qu(i.doc, f, null, null, p.extend), v && !w || c && d == 9 ? setTimeout(function() {
4715
+ v && (h.scroller.draggable = !1), i.state.draggingText = !1, i.state.delayingBlurEvent && (i.hasFocus() ? i.state.delayingBlurEvent = !1 : Jf(i)), Nn(h.wrapper.ownerDocument, "mouseup", E), Nn(h.wrapper.ownerDocument, "mousemove", x), Nn(h.scroller, "dragstart", S), Nn(h.scroller, "drop", E), g || (mn(A), p.addNew || Zu(i.doc, f, null, null, p.extend), v && !w || c && d == 9 ? setTimeout(function() {
4716
4716
  h.wrapper.ownerDocument.body.focus({ preventScroll: !0 }), h.input.focus();
4717
4717
  }, 20) : h.input.focus());
4718
4718
  }), x = function(A) {
@@ -4753,7 +4753,7 @@ b`.split(/\n/).length != 3 ? function(i) {
4753
4753
  g,
4754
4754
  Lr(i, A.slice(0, x).concat(A.slice(x + 1)), 0),
4755
4755
  { scroll: !1, origin: "*mouse" }
4756
- ), S = g.sel) : dd(g, x, E, St) : (x = 0, Cn(g, new pr([E], 0), St), S = g.sel);
4756
+ ), S = g.sel) : dd(g, x, E, St) : (x = 0, Cn(g, new cr([E], 0), St), S = g.sel);
4757
4757
  var $ = f;
4758
4758
  function Y(be) {
4759
4759
  if (Ye($, be) != 0)
@@ -4780,7 +4780,7 @@ b`.split(/\n/).length != 3 ? function(i) {
4780
4780
  if (ze)
4781
4781
  if (Ye(ze, $) != 0) {
4782
4782
  i.curOp.focus = F(X(i)), Y(ze);
4783
- var Oe = Vu(h, g);
4783
+ var Oe = Gu(h, g);
4784
4784
  (ze.line >= Oe.to || ze.line < Oe.from) && setTimeout(an(i, function() {
4785
4785
  ne == Te && ue(be);
4786
4786
  }), 150);
@@ -4795,7 +4795,7 @@ b`.split(/\n/).length != 3 ? function(i) {
4795
4795
  i.state.selectingText = !1, ne = 1 / 0, be && (mn(be), h.input.focus()), Nn(h.wrapper.ownerDocument, "mousemove", ye), Nn(h.wrapper.ownerDocument, "mouseup", xe), g.history.lastSelOrigin = null;
4796
4796
  }
4797
4797
  var ye = an(i, function(be) {
4798
- be.buttons === 0 || !Au(be) ? ve(be) : ue(be);
4798
+ be.buttons === 0 || !Tu(be) ? ve(be) : ue(be);
4799
4799
  }), xe = an(i, ve);
4800
4800
  i.state.selectingText = xe, je(h.wrapper.ownerDocument, "mousemove", ye), je(h.wrapper.ownerDocument, "mouseup", xe);
4801
4801
  }
@@ -4861,7 +4861,7 @@ b`.split(/\n/).length != 3 ? function(i) {
4861
4861
  }
4862
4862
  var Qa = { toString: function() {
4863
4863
  return "CodeMirror.Init";
4864
- } }, Ry = {}, oc = {};
4864
+ } }, Ry = {}, ic = {};
4865
4865
  function HC(i) {
4866
4866
  var s = i.optionHandlers;
4867
4867
  function f(p, h, g, E) {
@@ -4905,7 +4905,7 @@ b`.split(/\n/).length != 3 ? function(i) {
4905
4905
  }, !0), f("rtlMoveVisually", !j), f("wholeLineUpdateBefore", !0), f("theme", "default", function(p) {
4906
4906
  Py(p), Ys(p);
4907
4907
  }, !0), f("keyMap", "default", function(p, h, g) {
4908
- var E = rc(h), x = g != Qa && rc(g);
4908
+ var E = nc(h), x = g != Qa && nc(g);
4909
4909
  x && x.detach && x.detach(p, E), E.attach && E.attach(p, x || null);
4910
4910
  }), f("extraKeys", null), f("configureMouse", null), f("lineWrapping", !1, jC, !0), f("gutters", [], function(p, h) {
4911
4911
  p.display.gutterSpecs = sd(h, p.options.lineNumbers), Ys(p);
@@ -4984,14 +4984,14 @@ b`.split(/\n/).length != 3 ? function(i) {
4984
4984
  }, 20), WC(this), EC(), ea(this), this.curOp.forceUpdate = !0, zg(this, p), s.autofocus && !P || this.hasFocus() ? setTimeout(function() {
4985
4985
  f.hasFocus() && !f.state.focused && ed(f);
4986
4986
  }, 20) : ja(this);
4987
- for (var E in oc)
4988
- oc.hasOwnProperty(E) && oc[E](this, s[E], Qa);
4987
+ for (var E in ic)
4988
+ ic.hasOwnProperty(E) && ic[E](this, s[E], Qa);
4989
4989
  Lg(this), s.finishInit && s.finishInit(this);
4990
4990
  for (var x = 0; x < Ed.length; ++x)
4991
4991
  Ed[x](this);
4992
4992
  ta(this), v && s.lineWrapping && getComputedStyle(g.lineDiv).textRendering == "optimizelegibility" && (g.lineDiv.style.textRendering = "auto");
4993
4993
  }
4994
- Ct.defaults = Ry, Ct.optionHandlers = oc;
4994
+ Ct.defaults = Ry, Ct.optionHandlers = ic;
4995
4995
  function WC(i) {
4996
4996
  var s = i.display;
4997
4997
  je(s.scroller, "mousedown", an(i, Sy)), c && d < 11 ? je(s.scroller, "dblclick", an(i, function(S) {
@@ -5000,7 +5000,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5000
5000
  if (!(!A || bd(i, S) || yi(i.display, S))) {
5001
5001
  mn(S);
5002
5002
  var B = i.findWordAt(A);
5003
- Qu(i.doc, B.anchor, B.head);
5003
+ Zu(i.doc, B.anchor, B.head);
5004
5004
  }
5005
5005
  }
5006
5006
  })) : je(s.scroller, "dblclick", function(S) {
@@ -5113,7 +5113,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5113
5113
  }
5114
5114
  }
5115
5115
  var Or = null;
5116
- function ac(i) {
5116
+ function oc(i) {
5117
5117
  Or = i;
5118
5118
  }
5119
5119
  function _d(i, s, f, p, h) {
@@ -5204,7 +5204,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5204
5204
  return this.doc;
5205
5205
  },
5206
5206
  addKeyMap: function(p, h) {
5207
- this.state.keyMaps[h ? "push" : "unshift"](rc(p));
5207
+ this.state.keyMaps[h ? "push" : "unshift"](nc(p));
5208
5208
  },
5209
5209
  removeKeyMap: function(p) {
5210
5210
  for (var h = this.state.keyMaps, g = 0; g < h.length; ++g)
@@ -5319,7 +5319,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5319
5319
  return p == null ? g = E.head : typeof p == "object" ? g = Xe(this.doc, p) : g = p ? E.from() : E.to(), Nr(this, g, h || "page");
5320
5320
  },
5321
5321
  charCoords: function(p, h) {
5322
- return ju(this, Xe(this.doc, p), h || "page");
5322
+ return zu(this, Xe(this.doc, p), h || "page");
5323
5323
  },
5324
5324
  coordsChar: function(p, h) {
5325
5325
  return p = yg(this, p, h || "page"), Vf(this, p.left, p.top);
@@ -5334,7 +5334,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5334
5334
  p < this.doc.first ? p = this.doc.first : p > S && (p = S, E = !0), x = Ae(this.doc, p);
5335
5335
  } else
5336
5336
  x = p;
5337
- return zu(this, x, { top: 0, left: 0 }, h || "page", g || E).top + (E ? this.doc.height - gi(x) : 0);
5337
+ return Hu(this, x, { top: 0, left: 0 }, h || "page", g || E).top + (E ? this.doc.height - gi(x) : 0);
5338
5338
  },
5339
5339
  defaultTextHeight: function() {
5340
5340
  return Ha(this.display);
@@ -5406,7 +5406,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5406
5406
  var $ = Nr(g, B.head, "div");
5407
5407
  B.goalColumn != null && ($.left = B.goalColumn), x.push($.left);
5408
5408
  var Y = Ly(g, $, p, h);
5409
- return h == "page" && B == E.sel.primary() && nd(g, ju(g, Y, "div").top - $.top), Y;
5409
+ return h == "page" && B == E.sel.primary() && nd(g, zu(g, Y, "div").top - $.top), Y;
5410
5410
  }, It), x.length)
5411
5411
  for (var A = 0; A < E.sel.ranges.length; A++)
5412
5412
  E.sel.ranges[A].goalColumn = x[A];
@@ -5555,7 +5555,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5555
5555
  if (ve && ($ = ve), f > 0 && !B(!ne))
5556
5556
  break;
5557
5557
  }
5558
- var ye = ec(i, s, g, E, !0);
5558
+ var ye = Ju(i, s, g, E, !0);
5559
5559
  return Go(g, ye) && (ye.hitSide = !0), ye;
5560
5560
  }
5561
5561
  function Ly(i, s, f, p) {
@@ -5607,10 +5607,10 @@ b`.split(/\n/).length != 3 ? function(i) {
5607
5607
  function E(x) {
5608
5608
  if (!(!g(x) || Nt(p, x))) {
5609
5609
  if (p.somethingSelected())
5610
- ac({ lineWise: !1, text: p.getSelections() }), x.type == "cut" && p.replaceSelection("", null, "cut");
5610
+ oc({ lineWise: !1, text: p.getSelections() }), x.type == "cut" && p.replaceSelection("", null, "cut");
5611
5611
  else if (p.options.lineWiseCopyCut) {
5612
5612
  var S = My(p);
5613
- ac({ lineWise: !0, text: S.text }), x.type == "cut" && p.operation(function() {
5613
+ oc({ lineWise: !0, text: S.text }), x.type == "cut" && p.operation(function() {
5614
5614
  p.setSelections(S.ranges, 0, Ue), p.replaceSelection("", null, "cut");
5615
5615
  });
5616
5616
  } else
@@ -5649,7 +5649,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5649
5649
  i.removeAllRanges();
5650
5650
  return;
5651
5651
  }
5652
- var g = sc(s, i.anchorNode, i.anchorOffset), E = sc(s, i.focusNode, i.focusOffset);
5652
+ var g = ac(s, i.anchorNode, i.anchorOffset), E = ac(s, i.focusNode, i.focusOffset);
5653
5653
  if (!(g && !g.bad && E && !E.bad && Ye(vi(g, E), p) == 0 && Ye(Ki(g, E), h) == 0)) {
5654
5654
  var x = s.display.view, S = p.line >= s.display.viewFrom && Oy(s, p) || { node: x[0].measure.map[2], offset: 0 }, A = h.line < s.display.viewTo && Oy(s, h);
5655
5655
  if (!A) {
@@ -5716,7 +5716,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5716
5716
  }
5717
5717
  if (!this.composing) {
5718
5718
  this.rememberSelection();
5719
- var f = sc(s, i.anchorNode, i.anchorOffset), p = sc(s, i.focusNode, i.focusOffset);
5719
+ var f = ac(s, i.anchorNode, i.anchorOffset), p = ac(s, i.focusNode, i.focusOffset);
5720
5720
  f && p && tr(s, function() {
5721
5721
  Cn(s.doc, Zi(f, p), Ue), (f.bad || p.bad) && (s.curOp.selectionChanged = !0);
5722
5722
  });
@@ -5732,7 +5732,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5732
5732
  var S = Zo(i, h.line), A, B;
5733
5733
  if (S == s.view.length - 1 ? (A = s.viewTo - 1, B = s.lineDiv.lastChild) : (A = dt(s.view[S + 1].line) - 1, B = s.view[S + 1].node.previousSibling), !x)
5734
5734
  return !1;
5735
- for (var $ = i.doc.splitLines(VC(i, x, B, E, A)), Y = cr(i.doc, de(E, 0), de(A, Ae(i.doc, A).text.length)); $.length > 1 && Y.length > 1; )
5735
+ for (var $ = i.doc.splitLines(VC(i, x, B, E, A)), Y = ur(i.doc, de(E, 0), de(A, Ae(i.doc, A).text.length)); $.length > 1 && Y.length > 1; )
5736
5736
  if (ke($) == ke(Y))
5737
5737
  $.pop(), Y.pop(), A--;
5738
5738
  else if ($[0] == Y[0])
@@ -5827,7 +5827,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5827
5827
  var ue = K.getAttribute("cm-marker"), ve;
5828
5828
  if (ue) {
5829
5829
  var ye = i.findMarks(de(p, 0), de(h + 1, 0), A(+ue));
5830
- ye.length && (ve = ye[0].find(0)) && $(cr(i.doc, ve.from, ve.to).join(x));
5830
+ ye.length && (ve = ye[0].find(0)) && $(ur(i.doc, ve.from, ve.to).join(x));
5831
5831
  return;
5832
5832
  }
5833
5833
  if (K.getAttribute("contenteditable") == "false")
@@ -5846,7 +5846,7 @@ b`.split(/\n/).length != 3 ? function(i) {
5846
5846
  s = s.nextSibling, S = !1;
5847
5847
  return g;
5848
5848
  }
5849
- function sc(i, s, f) {
5849
+ function ac(i, s, f) {
5850
5850
  var p;
5851
5851
  if (s == i.display.lineDiv) {
5852
5852
  if (p = i.display.lineDiv.childNodes[f], !p)
@@ -5916,10 +5916,10 @@ b`.split(/\n/).length != 3 ? function(i) {
5916
5916
  function g(E) {
5917
5917
  if (!Nt(p, E)) {
5918
5918
  if (p.somethingSelected())
5919
- ac({ lineWise: !1, text: p.getSelections() });
5919
+ oc({ lineWise: !1, text: p.getSelections() });
5920
5920
  else if (p.options.lineWiseCopyCut) {
5921
5921
  var x = My(p);
5922
- ac({ lineWise: !0, text: x.text }), E.type == "cut" ? p.setSelections(x.ranges, null, Ue) : (f.prevInput = "", h.value = x.text.join(`
5922
+ oc({ lineWise: !0, text: x.text }), E.type == "cut" ? p.setSelections(x.ranges, null, Ue) : (f.prevInput = "", h.value = x.text.join(`
5923
5923
  `), Z(h));
5924
5924
  } else
5925
5925
  return;
@@ -6010,7 +6010,7 @@ b`.split(/\n/).length != 3 ? function(i) {
6010
6010
  s.polling.set(20, f);
6011
6011
  }, Bt.prototype.poll = function() {
6012
6012
  var i = this, s = this.cm, f = this.textarea, p = this.prevInput;
6013
- if (this.contextMenuPending || this.resetting || !s.state.focused || Ru(f) && !p && !this.composing || s.isReadOnly() || s.options.disableInput || s.state.keySeq)
6013
+ if (this.contextMenuPending || this.resetting || !s.state.focused || Pu(f) && !p && !this.composing || s.isReadOnly() || s.options.disableInput || s.state.keySeq)
6014
6014
  return !1;
6015
6015
  var h = f.value;
6016
6016
  if (h == p && !s.somethingSelected())
@@ -6119,16 +6119,16 @@ b`.split(/\n/).length != 3 ? function(i) {
6119
6119
  return x;
6120
6120
  }
6121
6121
  function YC(i) {
6122
- i.off = Nn, i.on = je, i.wheelEventPixels = nC, i.Doc = Un, i.splitLines = Bs, i.countColumn = oe, i.findColumn = pt, i.isWordChar = ks, i.Pass = Fe, i.signal = kt, i.Line = Ba, i.changeEnd = Qi, i.scrollbarModel = Dg, i.Pos = de, i.cmpPos = Ye, i.modes = zo, i.mimeModes = Jn, i.resolveMode = di, i.getMode = Uo, i.modeExtensions = Vi, i.extendMode = Lf, i.copyState = gr, i.startState = hi, i.innerMode = Ln, i.commands = ol, i.keyMap = Ei, i.keyName = my, i.isModifierKey = hy, i.lookupKey = Xa, i.normalizeKeyMap = SC, i.StringStream = mt, i.SharedTextMarker = nl, i.TextMarker = eo, i.LineWidget = tl, i.e_preventDefault = mn, i.e_stopPropagation = Tu, i.e_stop = Ho, i.addClass = C, i.contains = De, i.rmClass = se, i.keyNames = to;
6122
+ i.off = Nn, i.on = je, i.wheelEventPixels = nC, i.Doc = Un, i.splitLines = Bs, i.countColumn = oe, i.findColumn = pt, i.isWordChar = ks, i.Pass = Fe, i.signal = kt, i.Line = Ba, i.changeEnd = Qi, i.scrollbarModel = Dg, i.Pos = de, i.cmpPos = Ye, i.modes = zo, i.mimeModes = Jn, i.resolveMode = di, i.getMode = Uo, i.modeExtensions = Vi, i.extendMode = Lf, i.copyState = gr, i.startState = hi, i.innerMode = Ln, i.commands = ol, i.keyMap = Ei, i.keyName = my, i.isModifierKey = hy, i.lookupKey = Xa, i.normalizeKeyMap = SC, i.StringStream = mt, i.SharedTextMarker = nl, i.TextMarker = eo, i.LineWidget = tl, i.e_preventDefault = mn, i.e_stopPropagation = Cu, i.e_stop = Ho, i.addClass = C, i.contains = De, i.rmClass = se, i.keyNames = to;
6123
6123
  }
6124
6124
  HC(Ct), UC(Ct);
6125
6125
  var XC = "iter insert remove copy getEditor constructor".split(" ");
6126
- for (var lc in Un.prototype)
6127
- Un.prototype.hasOwnProperty(lc) && Be(XC, lc) < 0 && (Ct.prototype[lc] = function(i) {
6126
+ for (var sc in Un.prototype)
6127
+ Un.prototype.hasOwnProperty(sc) && Be(XC, sc) < 0 && (Ct.prototype[sc] = function(i) {
6128
6128
  return function() {
6129
6129
  return i.apply(this.doc, arguments);
6130
6130
  };
6131
- }(Un.prototype[lc]));
6131
+ }(Un.prototype[sc]));
6132
6132
  return Ui(Un), Ct.inputStyles = { textarea: Bt, contenteditable: gt }, Ct.defineMode = function(i) {
6133
6133
  !Ct.defaults.mode && i != "null" && (Ct.defaults.mode = i), jo.apply(this, arguments);
6134
6134
  }, Ct.defineMIME = Wo, Ct.defineMode("null", function() {
@@ -6513,7 +6513,7 @@ ri.prototype.clear = function() {
6513
6513
  function Qc(e) {
6514
6514
  return Array.prototype.concat.apply([], e);
6515
6515
  }
6516
- const jl = Object.prototype.toString, vT = Object.prototype.hasOwnProperty;
6516
+ const zl = Object.prototype.toString, vT = Object.prototype.hasOwnProperty;
6517
6517
  function ki(e) {
6518
6518
  return e === void 0;
6519
6519
  }
@@ -6524,20 +6524,20 @@ function Jc(e) {
6524
6524
  return e == null;
6525
6525
  }
6526
6526
  function et(e) {
6527
- return jl.call(e) === "[object Array]";
6527
+ return zl.call(e) === "[object Array]";
6528
6528
  }
6529
6529
  function _n(e) {
6530
- return jl.call(e) === "[object Object]";
6530
+ return zl.call(e) === "[object Object]";
6531
6531
  }
6532
6532
  function Ge(e) {
6533
- return jl.call(e) === "[object Number]";
6533
+ return zl.call(e) === "[object Number]";
6534
6534
  }
6535
6535
  function En(e) {
6536
- const t = jl.call(e);
6536
+ const t = zl.call(e);
6537
6537
  return t === "[object Function]" || t === "[object AsyncFunction]" || t === "[object GeneratorFunction]" || t === "[object AsyncGeneratorFunction]" || t === "[object Proxy]";
6538
6538
  }
6539
6539
  function Yn(e) {
6540
- return jl.call(e) === "[object String]";
6540
+ return zl.call(e) === "[object String]";
6541
6541
  }
6542
6542
  function mT(e) {
6543
6543
  if (!et(e))
@@ -6587,13 +6587,13 @@ function gT(e, t) {
6587
6587
  return !n(r, o);
6588
6588
  });
6589
6589
  }
6590
- function ar(e, t, n) {
6590
+ function or(e, t, n) {
6591
6591
  return W(e, function(r, o) {
6592
6592
  n = t(n, r, o);
6593
6593
  }), n;
6594
6594
  }
6595
6595
  function yo(e, t) {
6596
- return !!ar(e, function(n, r, o) {
6596
+ return !!or(e, function(n, r, o) {
6597
6597
  return n && t(r, o);
6598
6598
  }, !0);
6599
6599
  }
@@ -6835,8 +6835,8 @@ function LT(e, t, n, r) {
6835
6835
  var wr = {
6836
6836
  bind: NT,
6837
6837
  unbind: LT
6838
- }, OT = IT, t_ = !1, uc;
6839
- typeof document < "u" && (uc = document.createElement("div"), uc.innerHTML = ' <link/><table></table><a href="/a">a</a><input type="checkbox"/>', t_ = !uc.getElementsByTagName("link").length, uc = void 0);
6838
+ }, OT = IT, t_ = !1, lc;
6839
+ typeof document < "u" && (lc = document.createElement("div"), lc.innerHTML = ' <link/><table></table><a href="/a">a</a><input type="checkbox"/>', t_ = !lc.getElementsByTagName("link").length, lc = void 0);
6840
6840
  var Xt = {
6841
6841
  legend: [1, "<fieldset>", "</fieldset>"],
6842
6842
  tr: [2, "<table><tbody>", "</tbody></table>"],
@@ -7155,7 +7155,7 @@ function XT(e, t) {
7155
7155
  for (e.clear(), n = 0; r = t[n]; n++)
7156
7156
  e.appendItem(YT(e, r));
7157
7157
  }
7158
- function Ml(e, t) {
7158
+ function kl(e, t) {
7159
7159
  var n = e.transform.baseVal;
7160
7160
  return t && (Array.isArray(t) || (t = [t]), XT(n, t)), n.consolidate();
7161
7161
  }
@@ -7169,7 +7169,7 @@ function Qh(e) {
7169
7169
  function Rd(e, t) {
7170
7170
  return Object.prototype.hasOwnProperty.call(e, t);
7171
7171
  }
7172
- function Hc(...e) {
7172
+ function $c(...e) {
7173
7173
  e.length === 1 && Qh(e[0]) && (e = e[0]), e = [...e];
7174
7174
  const t = e.pop();
7175
7175
  return t.$inject = e, t;
@@ -7219,7 +7219,7 @@ function l_(e, t) {
7219
7219
  function c(D, k) {
7220
7220
  if (typeof k > "u" && (k = {}), typeof D != "function")
7221
7221
  if (Qh(D))
7222
- D = Hc(D.slice());
7222
+ D = $c(D.slice());
7223
7223
  else
7224
7224
  throw l(`Cannot invoke "${D}". Expected a function!`);
7225
7225
  const M = (D.$inject || n2(D)).map((L) => Rd(k, L) ? k[L] : u(L));
@@ -7243,7 +7243,7 @@ function l_(e, t) {
7243
7243
  return M.apply(k, L);
7244
7244
  }
7245
7245
  function m(D) {
7246
- return Hc((k) => D.get(k));
7246
+ return $c((k) => D.get(k));
7247
7247
  }
7248
7248
  function y(D, k) {
7249
7249
  if (k && k.length) {
@@ -7278,7 +7278,7 @@ function l_(e, t) {
7278
7278
  function w(D) {
7279
7279
  const k = D.__exports__;
7280
7280
  if (k) {
7281
- const P = D.__modules__, M = Object.keys(D).reduce((Q, J) => (J !== "__exports__" && J !== "__modules__" && J !== "__init__" && J !== "__depends__" && (Q[J] = D[J]), Q), /* @__PURE__ */ Object.create(null)), L = (P || []).concat(M), j = y(L), z = Hc(function(Q) {
7281
+ const P = D.__modules__, M = Object.keys(D).reduce((Q, J) => (J !== "__exports__" && J !== "__modules__" && J !== "__init__" && J !== "__depends__" && (Q[J] = D[J]), Q), /* @__PURE__ */ Object.create(null)), L = (P || []).concat(M), j = y(L), z = $c(function(Q) {
7282
7282
  return j.get(Q);
7283
7283
  });
7284
7284
  k.forEach(function(Q) {
@@ -7315,7 +7315,7 @@ function l_(e, t) {
7315
7315
  this.get = u, this.invoke = v, this.instantiate = d, this.createChild = y, this.init = I(e);
7316
7316
  }
7317
7317
  function r2(e, t) {
7318
- return e !== "value" && Qh(t) && (t = Hc(t.slice())), t;
7318
+ return e !== "value" && Qh(t) && (t = $c(t.slice())), t;
7319
7319
  }
7320
7320
  var i2 = 1e3;
7321
7321
  function Li(e, t) {
@@ -7368,12 +7368,12 @@ function s2(e, t) {
7368
7368
  r.push(Dd(l));
7369
7369
  continue;
7370
7370
  }
7371
- const d = cc(l, a, c), v = cc(l, a, c * 0.5), m = cc(l, u, c), y = cc(l, u, c * 0.5);
7371
+ const d = uc(l, a, c), v = uc(l, a, c * 0.5), m = uc(l, u, c), y = uc(l, u, c * 0.5);
7372
7372
  r.push(Dd(d)), r.push(a2(v, y, m));
7373
7373
  }
7374
7374
  return r;
7375
7375
  }
7376
- function cc(e, t, n) {
7376
+ function uc(e, t, n) {
7377
7377
  const r = t.x - e.x, o = t.y - e.y, a = ih(r, o), l = n / a;
7378
7378
  return {
7379
7379
  x: e.x + r * l,
@@ -7428,7 +7428,7 @@ function l2(e, t, n) {
7428
7428
  return c;
7429
7429
  }), r;
7430
7430
  }
7431
- function Wl(e, t) {
7431
+ function jl(e, t) {
7432
7432
  return l2(e, !t, -1);
7433
7433
  }
7434
7434
  function u2(e, t, n) {
@@ -7542,7 +7542,7 @@ function f2() {
7542
7542
  return q(a, { class: n });
7543
7543
  }, this.style = function(n, r) {
7544
7544
  !et(n) && !r && (r = n, n = []);
7545
- var o = ar(n, function(a, l) {
7545
+ var o = or(n, function(a, l) {
7546
7546
  return q(a, e[l] || {});
7547
7547
  }, {});
7548
7548
  return r ? q(o, r) : o;
@@ -7579,7 +7579,7 @@ function Jt(e, t, n) {
7579
7579
  function Jh(e, t) {
7580
7580
  return !e || !t ? -1 : e.indexOf(t);
7581
7581
  }
7582
- function Ul(e, t) {
7582
+ function Wl(e, t) {
7583
7583
  return !e || !t ? -1 : Math.sqrt(
7584
7584
  Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2)
7585
7585
  );
@@ -7587,7 +7587,7 @@ function Ul(e, t) {
7587
7587
  function ev(e, t, n, r) {
7588
7588
  if (typeof r > "u" && (r = 5), !e || !t || !n)
7589
7589
  return !1;
7590
- var o = (t.x - e.x) * (n.y - e.y) - (t.y - e.y) * (n.x - e.x), a = Ul(e, t);
7590
+ var o = (t.x - e.x) * (n.y - e.y) - (t.y - e.y) * (n.x - e.x), a = Wl(e, t);
7591
7591
  return Math.abs(o / a) <= r;
7592
7592
  }
7593
7593
  var h2 = 2;
@@ -7837,7 +7837,7 @@ function T2(e) {
7837
7837
  function Xy(e) {
7838
7838
  return e[0] === e[2] && e[1] === e[3] && e[4] === e[6] && e[5] === e[7];
7839
7839
  }
7840
- function pc(e, t, n, r) {
7840
+ function cc(e, t, n, r) {
7841
7841
  return [
7842
7842
  e,
7843
7843
  t,
@@ -7930,16 +7930,16 @@ function Qy(e) {
7930
7930
  _.qx = b[1], _.qy = b[2], b = ["C"].concat(Zy(_.x, _.y, b[1], b[2], b[3], b[4]));
7931
7931
  break;
7932
7932
  case "L":
7933
- b = ["C"].concat(pc(_.x, _.y, b[1], b[2]));
7933
+ b = ["C"].concat(cc(_.x, _.y, b[1], b[2]));
7934
7934
  break;
7935
7935
  case "H":
7936
- b = ["C"].concat(pc(_.x, _.y, b[1], _.y));
7936
+ b = ["C"].concat(cc(_.x, _.y, b[1], _.y));
7937
7937
  break;
7938
7938
  case "V":
7939
- b = ["C"].concat(pc(_.x, _.y, _.x, b[1]));
7939
+ b = ["C"].concat(cc(_.x, _.y, _.x, b[1]));
7940
7940
  break;
7941
7941
  case "Z":
7942
- b = ["C"].concat(pc(_.x, _.y, _.X, _.Y));
7942
+ b = ["C"].concat(cc(_.x, _.y, _.X, _.Y));
7943
7943
  break;
7944
7944
  }
7945
7945
  return b;
@@ -8029,7 +8029,7 @@ function Rn(e, t, n) {
8029
8029
  }
8030
8030
  function sh(e, t, n) {
8031
8031
  var r = k2(e, t);
8032
- return r.length === 1 || r.length === 2 && Ul(r[0], r[1]) < 1 ? Pi(r[0]) : r.length > 1 ? (r = $r(r, function(o) {
8032
+ return r.length === 1 || r.length === 2 && Wl(r[0], r[1]) < 1 ? Pi(r[0]) : r.length > 1 ? (r = $r(r, function(o) {
8033
8033
  var a = Math.floor(o.t2 * 100) || 1;
8034
8034
  return a = 100 - a, a = (a < 10 ? "0" : "") + a, o.segment2 + "#" + a;
8035
8035
  }), Pi(r[n ? 0 : r.length - 1])) : null;
@@ -8040,7 +8040,7 @@ function k2(e, t) {
8040
8040
  function M2(e) {
8041
8041
  e = e.slice();
8042
8042
  for (var t = 0, n, r, o; e[t]; )
8043
- n = e[t], r = e[t - 1], o = e[t + 1], Ul(n, o) === 0 || ev(r, o, n) ? e.splice(t, 1) : t++;
8043
+ n = e[t], r = e[t - 1], o = e[t + 1], Wl(n, o) === 0 || ev(r, o, n) ? e.splice(t, 1) : t++;
8044
8044
  return e;
8045
8045
  }
8046
8046
  function N2(e, t) {
@@ -8049,7 +8049,7 @@ function N2(e, t) {
8049
8049
  function L2(e) {
8050
8050
  return !!e.waypoints;
8051
8051
  }
8052
- function zc(e, t) {
8052
+ function Hc(e, t) {
8053
8053
  return Math.round(e * t) / t;
8054
8054
  }
8055
8055
  function Jy(e) {
@@ -8135,7 +8135,7 @@ Ze.prototype.getLayer = function(e, t) {
8135
8135
  return n.group;
8136
8136
  };
8137
8137
  Ze.prototype._getChildIndex = function(e) {
8138
- return ar(this._layers, function(t, n) {
8138
+ return or(this._layers, function(t, n) {
8139
8139
  return n.visible && e >= n.index && t++, t;
8140
8140
  }, 0);
8141
8141
  };
@@ -8320,10 +8320,10 @@ Ze.prototype.viewbox = function(e) {
8320
8320
  this._changeViewbox(function() {
8321
8321
  u = Math.min(n.width / e.width, n.height / e.height);
8322
8322
  const v = this._svg.createSVGMatrix().scale(u).translate(-e.x, -e.y);
8323
- Ml(t, v);
8323
+ kl(t, v);
8324
8324
  });
8325
8325
  else
8326
- return a = this._rootElement ? this.getActiveLayer() : null, r = a && a.getBBox() || {}, l = Ml(t), o = l ? l.matrix : jT(), u = zc(o.a, 1e3), c = zc(-o.e || 0, 1e3), d = zc(-o.f || 0, 1e3), e = this._cachedViewbox = {
8326
+ return a = this._rootElement ? this.getActiveLayer() : null, r = a && a.getBBox() || {}, l = kl(t), o = l ? l.matrix : jT(), u = Hc(o.a, 1e3), c = Hc(-o.e || 0, 1e3), d = Hc(-o.f || 0, 1e3), e = this._cachedViewbox = {
8327
8327
  x: c ? c / u : 0,
8328
8328
  y: d ? d / u : 0,
8329
8329
  width: n.width / u,
@@ -8379,7 +8379,7 @@ Ze.prototype.zoom = function(e, t) {
8379
8379
  x: n.width / 2,
8380
8380
  y: n.height / 2
8381
8381
  }), r = this._setZoom(e, t);
8382
- }), zc(r.a, 1e3);
8382
+ }), Hc(r.a, 1e3);
8383
8383
  };
8384
8384
  function b_(e, t) {
8385
8385
  const n = "matrix(" + t.a + "," + t.b + "," + t.c + "," + t.d + "," + t.e + "," + t.f + ")";
@@ -8584,9 +8584,9 @@ var U2 = ho;
8584
8584
  nv.exports = U2;
8585
8585
  nv.exports.Collection = Tp;
8586
8586
  var G2 = nv.exports;
8587
- const Gl = /* @__PURE__ */ ms(G2);
8588
- var x_ = new Gl({ name: "children", enumerable: !0, collection: !0 }, { name: "parent" }), w_ = new Gl({ name: "labels", enumerable: !0, collection: !0 }, { name: "labelTarget" }), e0 = new Gl({ name: "attachers", collection: !0 }, { name: "host" }), S_ = new Gl({ name: "outgoing", collection: !0 }, { name: "source" }), C_ = new Gl({ name: "incoming", collection: !0 }, { name: "target" });
8589
- function Vl() {
8587
+ const Ul = /* @__PURE__ */ ms(G2);
8588
+ var x_ = new Ul({ name: "children", enumerable: !0, collection: !0 }, { name: "parent" }), w_ = new Ul({ name: "labels", enumerable: !0, collection: !0 }, { name: "labelTarget" }), e0 = new Ul({ name: "attachers", collection: !0 }, { name: "host" }), S_ = new Ul({ name: "outgoing", collection: !0 }, { name: "source" }), C_ = new Ul({ name: "incoming", collection: !0 }, { name: "target" });
8589
+ function Gl() {
8590
8590
  Object.defineProperty(this, "businessObject", {
8591
8591
  writable: !0
8592
8592
  }), Object.defineProperty(this, "label", {
@@ -8600,9 +8600,9 @@ function Vl() {
8600
8600
  }), x_.bind(this, "parent"), w_.bind(this, "labels"), S_.bind(this, "outgoing"), C_.bind(this, "incoming");
8601
8601
  }
8602
8602
  function ys() {
8603
- Vl.call(this), x_.bind(this, "children"), e0.bind(this, "host"), e0.bind(this, "attachers");
8603
+ Gl.call(this), x_.bind(this, "children"), e0.bind(this, "host"), e0.bind(this, "attachers");
8604
8604
  }
8605
- Re(ys, Vl);
8605
+ Re(ys, Gl);
8606
8606
  function T_() {
8607
8607
  ys.call(this);
8608
8608
  }
@@ -8612,9 +8612,9 @@ function Ap() {
8612
8612
  }
8613
8613
  Re(Ap, ys);
8614
8614
  function A_() {
8615
- Vl.call(this), S_.bind(this, "source"), C_.bind(this, "target");
8615
+ Gl.call(this), S_.bind(this, "source"), C_.bind(this, "target");
8616
8616
  }
8617
- Re(A_, Vl);
8617
+ Re(A_, Gl);
8618
8618
  var V2 = {
8619
8619
  connection: A_,
8620
8620
  shape: ys,
@@ -8646,10 +8646,10 @@ Oi.prototype.create = function(e, t) {
8646
8646
  return t = q({}, t || {}), t.id || (t.id = e + "_" + this._uid++), K2(e, t);
8647
8647
  };
8648
8648
  var ap = "__fn", P_ = 1e3, q2 = Array.prototype.slice;
8649
- function sr() {
8649
+ function ar() {
8650
8650
  this._listeners = {}, this.on("diagram.destroy", 1, this._destroy, this);
8651
8651
  }
8652
- sr.prototype.on = function(e, t, n, r) {
8652
+ ar.prototype.on = function(e, t, n, r) {
8653
8653
  if (e = et(e) ? e : [e], En(t) && (r = n, n = t, t = P_), !Ge(t))
8654
8654
  throw new Error("priority must be a number");
8655
8655
  var o = n;
@@ -8663,7 +8663,7 @@ sr.prototype.on = function(e, t, n, r) {
8663
8663
  });
8664
8664
  });
8665
8665
  };
8666
- sr.prototype.once = function(e, t, n, r) {
8666
+ ar.prototype.once = function(e, t, n, r) {
8667
8667
  var o = this;
8668
8668
  if (En(t) && (r = n, n = t, t = P_), !Ge(t))
8669
8669
  throw new Error("priority must be a number");
@@ -8674,23 +8674,23 @@ sr.prototype.once = function(e, t, n, r) {
8674
8674
  }
8675
8675
  a[ap] = n, this.on(e, t, a);
8676
8676
  };
8677
- sr.prototype.off = function(e, t) {
8677
+ ar.prototype.off = function(e, t) {
8678
8678
  e = et(e) ? e : [e];
8679
8679
  var n = this;
8680
8680
  e.forEach(function(r) {
8681
8681
  n._removeListener(r, t);
8682
8682
  });
8683
8683
  };
8684
- sr.prototype.createEvent = function(e) {
8685
- var t = new Kl();
8684
+ ar.prototype.createEvent = function(e) {
8685
+ var t = new Vl();
8686
8686
  return t.init(e), t;
8687
8687
  };
8688
- sr.prototype.fire = function(e, t) {
8688
+ ar.prototype.fire = function(e, t) {
8689
8689
  var n, r, o, a;
8690
8690
  if (a = q2.call(arguments), typeof e == "object" && (t = e, e = t.type), !e)
8691
8691
  throw new Error("no event type specified");
8692
8692
  if (r = this._listeners[e], !!r) {
8693
- t instanceof Kl ? n = t : n = this.createEvent(t), a[0] = n;
8693
+ t instanceof Vl ? n = t : n = this.createEvent(t), a[0] = n;
8694
8694
  var l = n.type;
8695
8695
  e !== l && (n.type = e);
8696
8696
  try {
@@ -8701,18 +8701,18 @@ sr.prototype.fire = function(e, t) {
8701
8701
  return o === void 0 && n.defaultPrevented && (o = !1), o;
8702
8702
  }
8703
8703
  };
8704
- sr.prototype.handleError = function(e) {
8704
+ ar.prototype.handleError = function(e) {
8705
8705
  return this.fire("error", { error: e }) === !1;
8706
8706
  };
8707
- sr.prototype._destroy = function() {
8707
+ ar.prototype._destroy = function() {
8708
8708
  this._listeners = {};
8709
8709
  };
8710
- sr.prototype._invokeListeners = function(e, t, n) {
8710
+ ar.prototype._invokeListeners = function(e, t, n) {
8711
8711
  for (var r; n && !e.cancelBubble; )
8712
8712
  r = this._invokeListener(e, t, n), n = n.next;
8713
8713
  return r;
8714
8714
  };
8715
- sr.prototype._invokeListener = function(e, t, n) {
8715
+ ar.prototype._invokeListener = function(e, t, n) {
8716
8716
  var r;
8717
8717
  if (n.callback.__isTomb)
8718
8718
  return r;
@@ -8724,7 +8724,7 @@ sr.prototype._invokeListener = function(e, t, n) {
8724
8724
  }
8725
8725
  return r;
8726
8726
  };
8727
- sr.prototype._addListener = function(e, t) {
8727
+ ar.prototype._addListener = function(e, t) {
8728
8728
  var n = this._getListeners(e), r;
8729
8729
  if (!n) {
8730
8730
  this._setListeners(e, t);
@@ -8739,13 +8739,13 @@ sr.prototype._addListener = function(e, t) {
8739
8739
  }
8740
8740
  r.next = t;
8741
8741
  };
8742
- sr.prototype._getListeners = function(e) {
8742
+ ar.prototype._getListeners = function(e) {
8743
8743
  return this._listeners[e];
8744
8744
  };
8745
- sr.prototype._setListeners = function(e, t) {
8745
+ ar.prototype._setListeners = function(e, t) {
8746
8746
  this._listeners[e] = t;
8747
8747
  };
8748
- sr.prototype._removeListener = function(e, t) {
8748
+ ar.prototype._removeListener = function(e, t) {
8749
8749
  var n = this._getListeners(e), r, o, a;
8750
8750
  if (!t) {
8751
8751
  this._setListeners(e, null);
@@ -8754,15 +8754,15 @@ sr.prototype._removeListener = function(e, t) {
8754
8754
  for (; n; )
8755
8755
  r = n.next, a = n.callback, (a === t || a[ap] === t) && (o ? o.next = r : this._setListeners(e, r)), o = n, n = r;
8756
8756
  };
8757
- function Kl() {
8757
+ function Vl() {
8758
8758
  }
8759
- Kl.prototype.stopPropagation = function() {
8759
+ Vl.prototype.stopPropagation = function() {
8760
8760
  this.cancelBubble = !0;
8761
8761
  };
8762
- Kl.prototype.preventDefault = function() {
8762
+ Vl.prototype.preventDefault = function() {
8763
8763
  this.defaultPrevented = !0;
8764
8764
  };
8765
- Kl.prototype.init = function(e) {
8765
+ Vl.prototype.init = function(e) {
8766
8766
  q(this, e || {});
8767
8767
  };
8768
8768
  function Y2(e, t) {
@@ -8780,15 +8780,15 @@ function lh(e, t, n, r, o) {
8780
8780
  var l = xl();
8781
8781
  l.setRotate(r || 0, 0, 0);
8782
8782
  var u = xl();
8783
- u.setScale(o || 1, o || 1), Ml(e, [a, l, u]);
8783
+ u.setScale(o || 1, o || 1), kl(e, [a, l, u]);
8784
8784
  }
8785
8785
  function rr(e, t, n) {
8786
8786
  var r = xl();
8787
- r.setTranslate(t, n), Ml(e, r);
8787
+ r.setTranslate(t, n), kl(e, r);
8788
8788
  }
8789
8789
  function R_(e, t) {
8790
8790
  var n = xl();
8791
- n.setRotate(t, 0, 0), Ml(e, n);
8791
+ n.setRotate(t, 0, 0), kl(e, n);
8792
8792
  }
8793
8793
  function hr(e, t) {
8794
8794
  this._eventBus = e, this._elementRegistry = t;
@@ -8816,7 +8816,7 @@ hr.prototype.create = function(e, t, n) {
8816
8816
  };
8817
8817
  hr.prototype.updateContainments = function(e) {
8818
8818
  var t = this, n = this._elementRegistry, r;
8819
- r = ar(e, function(o, a) {
8819
+ r = or(e, function(o, a) {
8820
8820
  return a.parent && (o[a.parent.id] = a.parent), o;
8821
8821
  }, {}), W(r, function(o) {
8822
8822
  var a = o.children;
@@ -8871,7 +8871,7 @@ const Z2 = {
8871
8871
  canvas: ["type", Ze],
8872
8872
  elementRegistry: ["type", dr],
8873
8873
  elementFactory: ["type", Oi],
8874
- eventBus: ["type", sr],
8874
+ eventBus: ["type", ar],
8875
8875
  graphicsFactory: ["type", hr]
8876
8876
  };
8877
8877
  function Q2(e) {
@@ -9257,7 +9257,7 @@ function ns(e) {
9257
9257
  function o0(e) {
9258
9258
  return "missing namespace for prefix <" + e + ">";
9259
9259
  }
9260
- function fc(e) {
9260
+ function pc(e) {
9261
9261
  return {
9262
9262
  get: e,
9263
9263
  enumerable: !0
@@ -9433,14 +9433,14 @@ function N_(e) {
9433
9433
  };
9434
9434
  }
9435
9435
  for (m = He, t && (Z = Object.create({}, {
9436
- name: fc(function() {
9436
+ name: pc(function() {
9437
9437
  return C;
9438
9438
  }),
9439
- originalName: fc(function() {
9439
+ originalName: pc(function() {
9440
9440
  return V;
9441
9441
  }),
9442
- attrs: fc(_e),
9443
- ns: fc(function() {
9442
+ attrs: pc(_e),
9443
+ ns: pc(function() {
9444
9444
  return L;
9445
9445
  })
9446
9446
  })); fe !== -1; ) {
@@ -9958,39 +9958,39 @@ function gA(e) {
9958
9958
  this.warnings.push(t);
9959
9959
  };
9960
9960
  }
9961
- function ql() {
9961
+ function Kl() {
9962
9962
  }
9963
- ql.prototype.handleEnd = function() {
9963
+ Kl.prototype.handleEnd = function() {
9964
9964
  };
9965
- ql.prototype.handleText = function() {
9965
+ Kl.prototype.handleText = function() {
9966
9966
  };
9967
- ql.prototype.handleNode = function() {
9967
+ Kl.prototype.handleNode = function() {
9968
9968
  };
9969
9969
  function av() {
9970
9970
  }
9971
- av.prototype = Object.create(ql.prototype);
9971
+ av.prototype = Object.create(Kl.prototype);
9972
9972
  av.prototype.handleNode = function() {
9973
9973
  return this;
9974
9974
  };
9975
9975
  function Es() {
9976
9976
  }
9977
- Es.prototype = Object.create(ql.prototype);
9977
+ Es.prototype = Object.create(Kl.prototype);
9978
9978
  Es.prototype.handleText = function(e) {
9979
9979
  this.body = (this.body || "") + e;
9980
9980
  };
9981
- function Yl(e, t) {
9981
+ function ql(e, t) {
9982
9982
  this.property = e, this.context = t;
9983
9983
  }
9984
- Yl.prototype = Object.create(Es.prototype);
9985
- Yl.prototype.handleNode = function(e) {
9984
+ ql.prototype = Object.create(Es.prototype);
9985
+ ql.prototype.handleNode = function(e) {
9986
9986
  if (this.element)
9987
9987
  throw vo("expected no sub nodes");
9988
9988
  return this.element = this.createReference(e), this;
9989
9989
  };
9990
- Yl.prototype.handleEnd = function() {
9990
+ ql.prototype.handleEnd = function() {
9991
9991
  this.element.id = this.body;
9992
9992
  };
9993
- Yl.prototype.createReference = function(e) {
9993
+ ql.prototype.createReference = function(e) {
9994
9994
  return {
9995
9995
  property: this.property.ns.name,
9996
9996
  id: ""
@@ -10077,7 +10077,7 @@ zn.prototype.valueHandler = function(e, t) {
10077
10077
  return new sv(e, t);
10078
10078
  };
10079
10079
  zn.prototype.referenceHandler = function(e) {
10080
- return new Yl(e, this.context);
10080
+ return new ql(e, this.context);
10081
10081
  };
10082
10082
  zn.prototype.handler = function(e) {
10083
10083
  return e === "Element" ? new ps(this.model, e, this.context) : new zn(this.model, e, this.context);
@@ -14607,7 +14607,7 @@ Pt.prototype.importXML = _s(async function(t, n) {
14607
14607
  return a = a.concat(m.warnings), this._emit("import.done", { error: null, warnings: a }), { warnings: a };
14608
14608
  } catch (l) {
14609
14609
  let u = l;
14610
- throw a = a.concat(u.warnings || []), jc(u, a), u = HP(u), this._emit("import.done", { error: u, warnings: u.warnings }), u;
14610
+ throw a = a.concat(u.warnings || []), zc(u, a), u = HP(u), this._emit("import.done", { error: u, warnings: u.warnings }), u;
14611
14611
  }
14612
14612
  });
14613
14613
  Pt.prototype.importDefinitions = _s(async function(t, n) {
@@ -14618,16 +14618,16 @@ Pt.prototype.open = _s(async function(t) {
14618
14618
  let r = t;
14619
14619
  if (!n) {
14620
14620
  const a = new Error("no XML imported");
14621
- throw jc(a, []), a;
14621
+ throw zc(a, []), a;
14622
14622
  }
14623
14623
  if (typeof t == "string" && (r = jP(n, t), !r)) {
14624
14624
  const a = new Error("BPMNDiagram <" + t + "> not found");
14625
- throw jc(a, []), a;
14625
+ throw zc(a, []), a;
14626
14626
  }
14627
14627
  try {
14628
14628
  this.clear();
14629
14629
  } catch (a) {
14630
- throw jc(a, []), a;
14630
+ throw zc(a, []), a;
14631
14631
  }
14632
14632
  const { warnings: o } = await DP(this, n, r);
14633
14633
  return { warnings: o };
@@ -14728,7 +14728,7 @@ Pt.prototype._createModdle = function(e) {
14728
14728
  return new TP(t);
14729
14729
  };
14730
14730
  Pt.prototype._modules = [];
14731
- function jc(e, t) {
14731
+ function zc(e, t) {
14732
14732
  return e.warnings = t, e;
14733
14733
  }
14734
14734
  function HP(e) {
@@ -14759,19 +14759,19 @@ function WP(e) {
14759
14759
  $P(), o.preventDefault();
14760
14760
  });
14761
14761
  }
14762
- function Xl(e) {
14762
+ function Yl(e) {
14763
14763
  Pt.call(this, e), this.on("import.parse.complete", function(t) {
14764
14764
  t.error || this._collectIds(t.definitions, t.elementsById);
14765
14765
  }, this), this.on("diagram.destroy", function() {
14766
14766
  this.get("moddle").ids.clear();
14767
14767
  }, this);
14768
14768
  }
14769
- Re(Xl, Pt);
14770
- Xl.prototype._createModdle = function(e) {
14769
+ Re(Yl, Pt);
14770
+ Yl.prototype._createModdle = function(e) {
14771
14771
  var t = Pt.prototype._createModdle.call(this, e);
14772
14772
  return t.ids = new ri([32, 36, 1]), t;
14773
14773
  };
14774
- Xl.prototype._collectIds = function(e, t) {
14774
+ Yl.prototype._collectIds = function(e, t) {
14775
14775
  var n = e.$model, r = n.ids, o;
14776
14776
  r.clear();
14777
14777
  for (o in t)
@@ -14900,7 +14900,7 @@ function tR(e) {
14900
14900
  ];
14901
14901
  return Ea(a);
14902
14902
  }
14903
- var nR = new ri(), Wc = 10, kd = 3, rs = 0.95, rR = 0.35, iR = 10;
14903
+ var nR = new ri(), jc = 10, kd = 3, rs = 0.95, rR = 0.35, iR = 10;
14904
14904
  function Sa(e, t, n, r, o, a, l) {
14905
14905
  Li.call(this, t, l);
14906
14906
  var u = e && e.defaultFillColor, c = e && e.defaultStrokeColor, d = e && e.defaultLabelColor, v = nR.next(), m = {};
@@ -15438,7 +15438,7 @@ function Sa(e, t, n, r, o, a, l) {
15438
15438
  "bpmn:IntermediateCatchEvent": Q("bpmn:IntermediateEvent"),
15439
15439
  "bpmn:IntermediateThrowEvent": Q("bpmn:IntermediateEvent"),
15440
15440
  "bpmn:Activity": function(F, C, V) {
15441
- return V = V || {}, "fillOpacity" in V || (V.fillOpacity = rs), k(F, C.width, C.height, Wc, V);
15441
+ return V = V || {}, "fillOpacity" in V || (V.fillOpacity = rs), k(F, C.width, C.height, jc, V);
15442
15442
  },
15443
15443
  "bpmn:Task": function(F, C) {
15444
15444
  var V = {
@@ -15624,7 +15624,7 @@ function Sa(e, t, n, r, o, a, l) {
15624
15624
  stroke: Ee(C, c),
15625
15625
  strokeWidth: 1.5
15626
15626
  });
15627
- return k(F, C.width, C.height, Wc - 3, kd, Z), V;
15627
+ return k(F, C.width, C.height, jc - 3, kd, Z), V;
15628
15628
  },
15629
15629
  "bpmn:CallActivity": function(F, C) {
15630
15630
  return H("bpmn:SubProcess")(F, C, {
@@ -15911,7 +15911,7 @@ function Sa(e, t, n, r, o, a, l) {
15911
15911
  return D(F, C.width, C.height, kd, ee), J(C, F), _e;
15912
15912
  },
15913
15913
  "bpmn:Group": function(F, C) {
15914
- return k(F, C.width, C.height, Wc, {
15914
+ return k(F, C.width, C.height, jc, {
15915
15915
  stroke: Ee(C, c),
15916
15916
  strokeWidth: 1.5,
15917
15917
  strokeDasharray: "10,6,0,6",
@@ -16131,7 +16131,7 @@ Sa.prototype.drawConnection = function(e, t) {
16131
16131
  return r(e, t);
16132
16132
  };
16133
16133
  Sa.prototype.getShapePath = function(e) {
16134
- return R(e, "bpmn:Event") ? QP(e) : R(e, "bpmn:Activity") ? JP(e, Wc) : R(e, "bpmn:Gateway") ? eR(e) : tR(e);
16134
+ return R(e, "bpmn:Event") ? QP(e) : R(e, "bpmn:Activity") ? JP(e, jc) : R(e, "bpmn:Gateway") ? eR(e) : tR(e);
16135
16135
  };
16136
16136
  var oR = 0, aR = {
16137
16137
  width: 150,
@@ -16233,9 +16233,9 @@ Np.prototype.layoutText = function(e, t) {
16233
16233
  for (Ve(y, m); c.length; )
16234
16234
  d.push(cR(c, v, m));
16235
16235
  o.vertical === "middle" && (a.top = a.bottom = 0);
16236
- var b = ar(d, function(D, k, P) {
16236
+ var b = or(d, function(D, k, P) {
16237
16237
  return D + (u || k.height);
16238
- }, 0) + a.top + a.bottom, _ = ar(d, function(D, k, P) {
16238
+ }, 0) + a.top + a.bottom, _ = or(d, function(D, k, P) {
16239
16239
  return k.width > D ? k.width : D;
16240
16240
  }, 0), w = a.top;
16241
16241
  o.vertical === "middle" && (w += (n.height - b) / 2), w -= (u || d[0].height) / 4;
@@ -16604,7 +16604,7 @@ function CR(e, t) {
16604
16604
  const Lp = {
16605
16605
  translate: ["value", CR]
16606
16606
  };
16607
- var Nl = {
16607
+ var Ml = {
16608
16608
  width: 90,
16609
16609
  height: 20
16610
16610
  }, c0 = 15;
@@ -16628,21 +16628,21 @@ function AR(e) {
16628
16628
  function Ip(e) {
16629
16629
  return e.waypoints ? TR(e.waypoints) : R(e, "bpmn:Group") ? {
16630
16630
  x: e.x + e.width / 2,
16631
- y: e.y + Nl.height / 2
16631
+ y: e.y + Ml.height / 2
16632
16632
  } : {
16633
16633
  x: e.x + e.width / 2,
16634
- y: e.y + e.height + Nl.height / 2
16634
+ y: e.y + e.height + Ml.height / 2
16635
16635
  };
16636
16636
  }
16637
16637
  function PR(e, t) {
16638
16638
  var n, r, o, a = e.label;
16639
16639
  return a && a.bounds ? (o = a.bounds, r = {
16640
- width: Math.max(Nl.width, o.width),
16640
+ width: Math.max(Ml.width, o.width),
16641
16641
  height: o.height
16642
16642
  }, n = {
16643
16643
  x: o.x + o.width / 2,
16644
16644
  y: o.y + o.height / 2
16645
- }) : (n = Ip(t), r = Nl), q({
16645
+ }) : (n = Ip(t), r = Ml), q({
16646
16646
  x: n.x - r.width / 2,
16647
16647
  y: n.y - r.height / 2
16648
16648
  }, r);
@@ -16650,7 +16650,7 @@ function PR(e, t) {
16650
16650
  function dn(e) {
16651
16651
  return e && !!e.labelTarget;
16652
16652
  }
16653
- function Uc(e, t, n) {
16653
+ function Wc(e, t, n) {
16654
16654
  return q({
16655
16655
  id: e.id,
16656
16656
  type: e.$type,
@@ -16686,12 +16686,12 @@ Ii.prototype.add = function(e, t, n) {
16686
16686
  var r, o = this._translate, a, l;
16687
16687
  if (R(t, "bpmndi:BPMNPlane")) {
16688
16688
  var u = R(e, "bpmn:SubProcess") ? { id: e.id + "_plane" } : {};
16689
- r = this._elementFactory.createRoot(Uc(e, t, u)), this._canvas.addRootElement(r);
16689
+ r = this._elementFactory.createRoot(Wc(e, t, u)), this._canvas.addRootElement(r);
16690
16690
  } else if (R(t, "bpmndi:BPMNShape")) {
16691
16691
  var c = !lt(e, t), d = kR(e);
16692
16692
  a = n && (n.hidden || n.collapsed);
16693
16693
  var v = t.bounds;
16694
- r = this._elementFactory.createShape(Uc(e, t, {
16694
+ r = this._elementFactory.createShape(Wc(e, t, {
16695
16695
  collapsed: c,
16696
16696
  hidden: a,
16697
16697
  x: Math.round(v.x),
@@ -16702,7 +16702,7 @@ Ii.prototype.add = function(e, t, n) {
16702
16702
  })), R(e, "bpmn:BoundaryEvent") && this._attachBoundary(e, r), R(e, "bpmn:Lane") && (l = 0), R(e, "bpmn:DataStoreReference") && (DR(n, qe(v)) || (n = this._canvas.findRoot(n))), this._canvas.addShape(r, n, l);
16703
16703
  } else if (R(t, "bpmndi:BPMNEdge")) {
16704
16704
  var m = this._getSource(e), y = this._getTarget(e);
16705
- a = n && (n.hidden || n.collapsed), r = this._elementFactory.createConnection(Uc(e, t, {
16705
+ a = n && (n.hidden || n.collapsed), r = this._elementFactory.createConnection(Wc(e, t, {
16706
16706
  hidden: a,
16707
16707
  source: m,
16708
16708
  target: y,
@@ -16728,7 +16728,7 @@ Ii.prototype._attachBoundary = function(e, t) {
16728
16728
  };
16729
16729
  Ii.prototype.addLabel = function(e, t, n) {
16730
16730
  var r, o, a;
16731
- return r = PR(t, n), o = Hr(n), o && (r = this._textRenderer.getExternalLabelBounds(r, o)), a = this._elementFactory.createLabel(Uc(e, t, {
16731
+ return r = PR(t, n), o = Hr(n), o && (r = this._textRenderer.getExternalLabelBounds(r, o)), a = this._elementFactory.createLabel(Wc(e, t, {
16732
16732
  id: e.id + "_label",
16733
16733
  labelTarget: n,
16734
16734
  type: "label",
@@ -16813,7 +16813,7 @@ function tx(e) {
16813
16813
  function IR(e) {
16814
16814
  return !0;
16815
16815
  }
16816
- function dc(e) {
16816
+ function fc(e) {
16817
16817
  return wo(e) || OR(e);
16818
16818
  }
16819
16819
  var f0 = 500;
@@ -16848,10 +16848,10 @@ function nx(e, t, n) {
16848
16848
  mouseup: "element.mouseup"
16849
16849
  }, d = {
16850
16850
  "element.contextmenu": IR,
16851
- "element.mousedown": dc,
16852
- "element.mouseup": dc,
16853
- "element.click": dc,
16854
- "element.dblclick": dc
16851
+ "element.mousedown": fc,
16852
+ "element.mouseup": fc,
16853
+ "element.click": fc,
16854
+ "element.dblclick": fc
16855
16855
  };
16856
16856
  function v(z, H, Q) {
16857
16857
  var J = c[z];
@@ -16954,7 +16954,7 @@ nx.$inject = [
16954
16954
  "elementRegistry",
16955
16955
  "styles"
16956
16956
  ];
16957
- const Zl = {
16957
+ const Xl = {
16958
16958
  __init__: ["interactionEvents"],
16959
16959
  interactionEvents: ["type", nx]
16960
16960
  };
@@ -17037,7 +17037,7 @@ ws.prototype.select = function(e, t) {
17037
17037
  n.indexOf(l) === -1 && n.push(l);
17038
17038
  }) : this._selectedElements = n = e.slice(), this._eventBus.fire("selection.changed", { oldSelection: r, newSelection: n });
17039
17039
  };
17040
- var d0 = "hover", h0 = "selected", hc = 6;
17040
+ var d0 = "hover", h0 = "selected", dc = 6;
17041
17041
  function fv(e, t, n) {
17042
17042
  this._canvas = e;
17043
17043
  var r = this;
@@ -17087,10 +17087,10 @@ fv.prototype._updateSelectionOutline = function(e) {
17087
17087
  };
17088
17088
  function FR(e) {
17089
17089
  return {
17090
- x: e.x - hc,
17091
- y: e.y - hc,
17092
- width: e.width + hc * 2,
17093
- height: e.height + hc * 2
17090
+ x: e.x - dc,
17091
+ y: e.y - dc,
17092
+ width: e.width + dc * 2,
17093
+ height: e.height + dc * 2
17094
17094
  };
17095
17095
  }
17096
17096
  function ix(e, t, n, r) {
@@ -17132,7 +17132,7 @@ function $R(e) {
17132
17132
  const si = {
17133
17133
  __init__: ["selectionVisuals", "selectionBehavior"],
17134
17134
  __depends__: [
17135
- Zl,
17135
+ Xl,
17136
17136
  rx
17137
17137
  ],
17138
17138
  selection: ["type", ws],
@@ -17408,7 +17408,7 @@ const VR = {
17408
17408
  __init__: ["rootElementsBehavior"],
17409
17409
  rootElementsBehavior: ["type", vv]
17410
17410
  };
17411
- function Ll(e) {
17411
+ function Nl(e) {
17412
17412
  return CSS.escape(e);
17413
17413
  }
17414
17414
  var KR = {
@@ -17627,19 +17627,19 @@ function JR(e, t) {
17627
17627
  var n = e.$parent;
17628
17628
  return !(!R(n, "bpmn:SubProcess") || n === t.bpmnElement || nt(e, ["bpmn:DataInputAssociation", "bpmn:DataOutputAssociation"]));
17629
17629
  }
17630
- var vc = 250, eD = '<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>', tD = "bjs-drilldown-empty";
17630
+ var hc = 250, eD = '<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>', tD = "bjs-drilldown-empty";
17631
17631
  function So(e, t, n, r) {
17632
17632
  ge.call(this, t), this._canvas = e, this._eventBus = t, this._elementRegistry = n, this._overlays = r;
17633
17633
  var o = this;
17634
- this.executed("shape.toggleCollapse", vc, function(a) {
17634
+ this.executed("shape.toggleCollapse", hc, function(a) {
17635
17635
  var l = a.shape;
17636
17636
  o.canDrillDown(l) ? o.addOverlay(l) : o.removeOverlay(l);
17637
- }, !0), this.reverted("shape.toggleCollapse", vc, function(a) {
17637
+ }, !0), this.reverted("shape.toggleCollapse", hc, function(a) {
17638
17638
  var l = a.shape;
17639
17639
  o.canDrillDown(l) ? o.addOverlay(l) : o.removeOverlay(l);
17640
17640
  }, !0), this.executed(
17641
17641
  ["shape.create", "shape.move", "shape.delete"],
17642
- vc,
17642
+ hc,
17643
17643
  function(a) {
17644
17644
  var l = a.oldParent, u = a.newParent || a.parent, c = a.shape;
17645
17645
  o.canDrillDown(c) && o.addOverlay(c), o.updateDrilldownOverlay(l), o.updateDrilldownOverlay(u), o.updateDrilldownOverlay(c);
@@ -17647,7 +17647,7 @@ function So(e, t, n, r) {
17647
17647
  !0
17648
17648
  ), this.reverted(
17649
17649
  ["shape.create", "shape.move", "shape.delete"],
17650
- vc,
17650
+ hc,
17651
17651
  function(a) {
17652
17652
  var l = a.oldParent, u = a.newParent || a.parent, c = a.shape;
17653
17653
  o.canDrillDown(c) && o.addOverlay(c), o.updateDrilldownOverlay(l), o.updateDrilldownOverlay(u), o.updateDrilldownOverlay(c);
@@ -17731,7 +17731,7 @@ var rD = ["c", "C"], iD = ["v", "V"], oD = ["y", "Y"], dx = ["z", "Z"];
17731
17731
  function aD(e) {
17732
17732
  return e.ctrlKey || e.metaKey || e.shiftKey || e.altKey;
17733
17733
  }
17734
- function fr(e) {
17734
+ function pr(e) {
17735
17735
  return e.altKey ? !1 : e.ctrlKey || e.metaKey;
17736
17736
  }
17737
17737
  function pn(e, t) {
@@ -17741,16 +17741,16 @@ function mv(e) {
17741
17741
  return e.shiftKey;
17742
17742
  }
17743
17743
  function sD(e) {
17744
- return fr(e) && pn(rD, e);
17744
+ return pr(e) && pn(rD, e);
17745
17745
  }
17746
17746
  function lD(e) {
17747
- return fr(e) && pn(iD, e);
17747
+ return pr(e) && pn(iD, e);
17748
17748
  }
17749
17749
  function uD(e) {
17750
- return fr(e) && !mv(e) && pn(dx, e);
17750
+ return pr(e) && !mv(e) && pn(dx, e);
17751
17751
  }
17752
17752
  function cD(e) {
17753
- return fr(e) && (pn(oD, e) || pn(dx, e) && mv(e));
17753
+ return pr(e) && (pn(oD, e) || pn(dx, e) && mv(e));
17754
17754
  }
17755
17755
  var Hp = "keyboard.keydown", pD = "keyboard.keyup", g0 = "input-handle-modified-keys", fD = 1e3;
17756
17756
  function xn(e, t) {
@@ -17788,7 +17788,7 @@ xn.prototype._isEventIgnored = function(e) {
17788
17788
  return e.defaultPrevented ? !0 : dD(e.target) && this._isModifiedKeyIgnored(e);
17789
17789
  };
17790
17790
  xn.prototype._isModifiedKeyIgnored = function(e) {
17791
- if (!fr(e))
17791
+ if (!pr(e))
17792
17792
  return !0;
17793
17793
  var t = this._getAllowedModifiers(e.target);
17794
17794
  return t.indexOf(e.key) === -1;
@@ -17817,7 +17817,7 @@ xn.prototype.removeListener = function(e, t) {
17817
17817
  this._eventBus.off(t || Hp, e);
17818
17818
  };
17819
17819
  xn.prototype.hasModifier = aD;
17820
- xn.prototype.isCmd = fr;
17820
+ xn.prototype.isCmd = pr;
17821
17821
  xn.prototype.isShift = mv;
17822
17822
  xn.prototype.isKey = pn;
17823
17823
  function dD(e) {
@@ -17857,15 +17857,15 @@ Bi.prototype.registerBindings = function(e, t) {
17857
17857
  return t.trigger("paste"), !0;
17858
17858
  }), n("stepZoom", function(r) {
17859
17859
  var o = r.keyEvent;
17860
- if (pn(["+", "Add", "="], o) && fr(o))
17860
+ if (pn(["+", "Add", "="], o) && pr(o))
17861
17861
  return t.trigger("stepZoom", { value: 1 }), !0;
17862
17862
  }), n("stepZoom", function(r) {
17863
17863
  var o = r.keyEvent;
17864
- if (pn(["-", "Subtract"], o) && fr(o))
17864
+ if (pn(["-", "Subtract"], o) && pr(o))
17865
17865
  return t.trigger("stepZoom", { value: -1 }), !0;
17866
17866
  }), n("zoom", function(r) {
17867
17867
  var o = r.keyEvent;
17868
- if (pn("0", o) && fr(o))
17868
+ if (pn("0", o) && pr(o))
17869
17869
  return t.trigger("zoom", { value: 1 }), !0;
17870
17870
  }), n("removeSelection", function(r) {
17871
17871
  var o = r.keyEvent;
@@ -18110,18 +18110,18 @@ const Ev = {
18110
18110
  __init__: ["zoomScroll"],
18111
18111
  zoomScroll: ["type", li]
18112
18112
  };
18113
- function Ol(e) {
18113
+ function Ll(e) {
18114
18114
  jr.call(this, e);
18115
18115
  }
18116
- Re(Ol, jr);
18117
- Ol.prototype._navigationModules = [
18116
+ Re(Ll, jr);
18117
+ Ll.prototype._navigationModules = [
18118
18118
  vx,
18119
18119
  yv,
18120
18120
  Ev
18121
18121
  ];
18122
- Ol.prototype._modules = [].concat(
18122
+ Ll.prototype._modules = [].concat(
18123
18123
  jr.prototype._modules,
18124
- Ol.prototype._navigationModules
18124
+ Ll.prototype._navigationModules
18125
18125
  );
18126
18126
  var _x = { exports: {} };
18127
18127
  /*! Hammer.JS - v2.0.7 - 2016-04-22
@@ -18295,7 +18295,7 @@ var _x = { exports: {} };
18295
18295
  U.firstInput || (U.firstInput = Oo(O)), he > 1 && !U.firstMultiple ? U.firstMultiple = Oo(O) : he === 1 && (U.firstMultiple = !1);
18296
18296
  var Pe = U.firstInput, it = U.firstMultiple, Vt = it ? it.center : Pe.center, tn = O.center = Ms(te);
18297
18297
  O.timeStamp = v(), O.deltaTime = O.timeStamp - Pe.timeStamp, O.angle = fi(Vt, tn), O.distance = Io(Vt, tn), ft(U, O), O.offsetDirection = Na(O.deltaX, O.deltaY);
18298
- var Sn = Su(O.deltaTime, O.deltaX, O.deltaY);
18298
+ var Sn = wu(O.deltaTime, O.deltaX, O.deltaY);
18299
18299
  O.overallVelocityX = Sn.x, O.overallVelocityY = Sn.y, O.overallVelocity = d(Sn.x) > d(Sn.y) ? Sn.x : Sn.y, O.scale = it ? Bo(it.pointers, te) : 1, O.rotation = it ? kf(it.pointers, te) : 0, O.maxPointers = U.prevInput ? O.pointers.length > U.prevInput.maxPointers ? O.pointers.length : U.prevInput.maxPointers : O.pointers.length, ks(U, O);
18300
18300
  var Er = N.element;
18301
18301
  z(O.srcEvent.target, Er) && (Er = O.srcEvent.target), O.target = Er;
@@ -18313,7 +18313,7 @@ var _x = { exports: {} };
18313
18313
  function ks(N, O) {
18314
18314
  var U = N.lastInterval || O, te = O.timeStamp - U.timeStamp, he, Pe, it, Vt;
18315
18315
  if (O.eventType != me && (te > _e || U.velocity === o)) {
18316
- var tn = O.deltaX - U.deltaX, Sn = O.deltaY - U.deltaY, Er = Su(te, tn, Sn);
18316
+ var tn = O.deltaX - U.deltaX, Sn = O.deltaY - U.deltaY, Er = wu(te, tn, Sn);
18317
18317
  Pe = Er.x, it = Er.y, he = d(Er.x) > d(Er.y) ? Er.x : Er.y, Vt = Na(tn, Sn), N.lastInterval = O;
18318
18318
  } else
18319
18319
  he = U.velocity, Pe = U.velocityX, it = U.velocityY, Vt = U.direction;
@@ -18347,7 +18347,7 @@ var _x = { exports: {} };
18347
18347
  y: c(te / O)
18348
18348
  };
18349
18349
  }
18350
- function Su(N, O, U) {
18350
+ function wu(N, O, U) {
18351
18351
  return {
18352
18352
  x: O / N || 0,
18353
18353
  y: U / N || 0
@@ -18427,7 +18427,7 @@ var _x = { exports: {} };
18427
18427
  }), te && U.splice(tn, 1));
18428
18428
  }
18429
18429
  });
18430
- var Cu = {
18430
+ var Su = {
18431
18431
  touchstart: He,
18432
18432
  touchmove: ie,
18433
18433
  touchend: oe,
@@ -18438,9 +18438,9 @@ var _x = { exports: {} };
18438
18438
  }
18439
18439
  D(mn, Dt, {
18440
18440
  handler: function(O) {
18441
- var U = Cu[O.type];
18441
+ var U = Su[O.type];
18442
18442
  if (U === He && (this.started = !0), !!this.started) {
18443
- var te = Tu.call(this, O, U);
18443
+ var te = Cu.call(this, O, U);
18444
18444
  U & (oe | me) && te[0].length - te[1].length === 0 && (this.started = !1), this.callback(this.manager, U, {
18445
18445
  pointers: te[0],
18446
18446
  changedPointers: te[1],
@@ -18450,7 +18450,7 @@ var _x = { exports: {} };
18450
18450
  }
18451
18451
  }
18452
18452
  });
18453
- function Tu(N, O) {
18453
+ function Cu(N, O) {
18454
18454
  var U = se(N.touches), te = se(N.changedTouches);
18455
18455
  return O & (oe | me) && (U = fe(U.concat(te), "identifier", !0)), [U, te];
18456
18456
  }
@@ -18465,7 +18465,7 @@ var _x = { exports: {} };
18465
18465
  }
18466
18466
  D(Gi, Dt, {
18467
18467
  handler: function(O) {
18468
- var U = Ls[O.type], te = Au.call(this, O, U);
18468
+ var U = Ls[O.type], te = Tu.call(this, O, U);
18469
18469
  te && this.callback(this.manager, U, {
18470
18470
  pointers: te[0],
18471
18471
  changedPointers: te[1],
@@ -18474,7 +18474,7 @@ var _x = { exports: {} };
18474
18474
  });
18475
18475
  }
18476
18476
  });
18477
- function Au(N, O) {
18477
+ function Tu(N, O) {
18478
18478
  var U = se(N.touches), te = this.targetIds;
18479
18479
  if (O & (He | ie) && U.length === 1)
18480
18480
  return te[U[0].identifier] = !0, [U, U];
@@ -18524,9 +18524,9 @@ var _x = { exports: {} };
18524
18524
  }
18525
18525
  });
18526
18526
  function Is(N, O) {
18527
- N & He ? (this.primaryTouch = O.changedPointers[0].identifier, Pu.call(this, O)) : N & (oe | me) && Pu.call(this, O);
18527
+ N & He ? (this.primaryTouch = O.changedPointers[0].identifier, Au.call(this, O)) : N & (oe | me) && Au.call(this, O);
18528
18528
  }
18529
- function Pu(N) {
18529
+ function Au(N) {
18530
18530
  var O = N.changedPointers[0];
18531
18531
  if (O.identifier === this.primaryTouch) {
18532
18532
  var U = { x: O.clientX, y: O.clientY };
@@ -18546,7 +18546,7 @@ var _x = { exports: {} };
18546
18546
  }
18547
18547
  return !1;
18548
18548
  }
18549
- var Ru = Me(l.style, "touchAction"), Du = Ru !== o, Oa = "compute", ku = "auto", zo = "manipulation", Jn = "none", jo = "pan-x", Wo = "pan-y", di = Lf();
18549
+ var Pu = Me(l.style, "touchAction"), Ru = Pu !== o, Oa = "compute", Du = "auto", zo = "manipulation", Jn = "none", jo = "pan-x", Wo = "pan-y", di = Lf();
18550
18550
  function Uo(N, O) {
18551
18551
  this.manager = N, this.set(O);
18552
18552
  }
@@ -18556,7 +18556,7 @@ var _x = { exports: {} };
18556
18556
  * @param {String} value
18557
18557
  */
18558
18558
  set: function(N) {
18559
- N == Oa && (N = this.compute()), Du && this.manager.element.style && di[N] && (this.manager.element.style[Ru] = N), this.actions = N.toLowerCase().trim();
18559
+ N == Oa && (N = this.compute()), Ru && this.manager.element.style && di[N] && (this.manager.element.style[Pu] = N), this.actions = N.toLowerCase().trim();
18560
18560
  },
18561
18561
  /**
18562
18562
  * just re-set the touchAction value
@@ -18605,17 +18605,17 @@ var _x = { exports: {} };
18605
18605
  if (H(N, Jn))
18606
18606
  return Jn;
18607
18607
  var O = H(N, jo), U = H(N, Wo);
18608
- return O && U ? Jn : O || U ? O ? jo : Wo : H(N, zo) ? zo : ku;
18608
+ return O && U ? Jn : O || U ? O ? jo : Wo : H(N, zo) ? zo : Du;
18609
18609
  }
18610
18610
  function Lf() {
18611
- if (!Du)
18611
+ if (!Ru)
18612
18612
  return !1;
18613
18613
  var N = {}, O = t.CSS && t.CSS.supports;
18614
18614
  return ["auto", "manipulation", "pan-y", "pan-x", "pan-x pan-y", "none"].forEach(function(U) {
18615
18615
  N[U] = O ? t.CSS.supports("touch-action", U) : !0;
18616
18616
  }), N;
18617
18617
  }
18618
- var gr = 1, Ln = 2, hi = 4, mt = 8, Ae = mt, cr = 16, er = 32;
18618
+ var gr = 1, Ln = 2, hi = 4, mt = 8, Ae = mt, ur = 16, er = 32;
18619
18619
  function en(N) {
18620
18620
  this.options = w({}, this.defaults, N || {}), this.id = ce(), this.manager = null, this.options.enable = M(this.options.enable, !0), this.state = gr, this.simultaneous = {}, this.requireFail = [];
18621
18621
  }
@@ -18735,7 +18735,7 @@ var _x = { exports: {} };
18735
18735
  this.reset(), this.state = er;
18736
18736
  return;
18737
18737
  }
18738
- this.state & (Ae | cr | er) && (this.state = gr), this.state = this.process(O), this.state & (Ln | hi | mt | cr) && this.tryEmit(O);
18738
+ this.state & (Ae | ur | er) && (this.state = gr), this.state = this.process(O), this.state & (Ln | hi | mt | ur) && this.tryEmit(O);
18739
18739
  },
18740
18740
  /**
18741
18741
  * return the state of the recognizer
@@ -18763,7 +18763,7 @@ var _x = { exports: {} };
18763
18763
  }
18764
18764
  };
18765
18765
  function dt(N) {
18766
- return N & cr ? "cancel" : N & mt ? "end" : N & hi ? "move" : N & Ln ? "start" : "";
18766
+ return N & ur ? "cancel" : N & mt ? "end" : N & hi ? "move" : N & Ln ? "start" : "";
18767
18767
  }
18768
18768
  function Gr(N) {
18769
18769
  return N == St ? "down" : N == Ue ? "up" : N == at ? "left" : N == Fe ? "right" : "";
@@ -18805,7 +18805,7 @@ var _x = { exports: {} };
18805
18805
  */
18806
18806
  process: function(N) {
18807
18807
  var O = this.state, U = N.eventType, te = O & (Ln | hi), he = this.attrTest(N);
18808
- return te && (U & me || !he) ? O | cr : te || he ? U & oe ? O | mt : O & Ln ? O | hi : Ln : er;
18808
+ return te && (U & me || !he) ? O | ur : te || he ? U & oe ? O | mt : O & Ln ? O | hi : Ln : er;
18809
18809
  }
18810
18810
  });
18811
18811
  function de() {
@@ -18883,7 +18883,7 @@ var _x = { exports: {} };
18883
18883
  // a minimal movement is ok, but keep it low
18884
18884
  },
18885
18885
  getTouchAction: function() {
18886
- return [ku];
18886
+ return [Du];
18887
18887
  },
18888
18888
  process: function(N) {
18889
18889
  var O = this.options, U = N.pointers.length === O.pointers, te = N.distance < O.threshold, he = N.deltaTime > O.time;
@@ -19103,7 +19103,7 @@ var _x = { exports: {} };
19103
19103
  tapHighlightColor: "rgba(0,0,0,0)"
19104
19104
  }
19105
19105
  };
19106
- var Xe = 1, Mu = 2;
19106
+ var Xe = 1, ku = 2;
19107
19107
  function Ia(N, O) {
19108
19108
  this.options = w({}, yr.defaults, O || {}), this.options.inputTarget = this.options.inputTarget || N, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = N, this.input = Ma(this), this.touchAction = new Uo(this, this.options.touchAction), Ko(this, !0), b(this.options.recognizers, function(U) {
19109
19109
  var te = this.add(new U[0](U[1]));
@@ -19126,7 +19126,7 @@ var _x = { exports: {} };
19126
19126
  * @param {Boolean} [force]
19127
19127
  */
19128
19128
  stop: function(N) {
19129
- this.session.stopped = N ? Mu : Xe;
19129
+ this.session.stopped = N ? ku : Xe;
19130
19130
  },
19131
19131
  /**
19132
19132
  * run the recognizers!
@@ -19141,7 +19141,7 @@ var _x = { exports: {} };
19141
19141
  var U, te = this.recognizers, he = O.curRecognizer;
19142
19142
  (!he || he && he.state & Ae) && (he = O.curRecognizer = null);
19143
19143
  for (var Pe = 0; Pe < te.length; )
19144
- U = te[Pe], O.stopped !== Mu && // 1
19144
+ U = te[Pe], O.stopped !== ku && // 1
19145
19145
  (!he || U == he || // 2
19146
19146
  U.canRecognizeWith(he)) ? U.recognize(N) : U.reset(), !he && U.state & (Ln | hi | mt) && (he = O.curRecognizer = U), Pe++;
19147
19147
  }
@@ -19260,7 +19260,7 @@ var _x = { exports: {} };
19260
19260
  STATE_CHANGED: hi,
19261
19261
  STATE_ENDED: mt,
19262
19262
  STATE_RECOGNIZED: Ae,
19263
- STATE_CANCELLED: cr,
19263
+ STATE_CANCELLED: ur,
19264
19264
  STATE_FAILED: er,
19265
19265
  DIRECTION_NONE: Be,
19266
19266
  DIRECTION_LEFT: at,
@@ -19296,8 +19296,8 @@ var _x = { exports: {} };
19296
19296
  bindFn: k,
19297
19297
  prefixed: Me
19298
19298
  });
19299
- var Nu = typeof t < "u" ? t : typeof self < "u" ? self : {};
19300
- Nu.Hammer = yr, typeof o == "function" && o.amd ? o(function() {
19299
+ var Mu = typeof t < "u" ? t : typeof self < "u" ? self : {};
19300
+ Mu.Hammer = yr, typeof o == "function" && o.amd ? o(function() {
19301
19301
  return yr;
19302
19302
  }) : e.exports ? e.exports = yr : t[r] = yr;
19303
19303
  })(window, document, "Hammer");
@@ -19312,7 +19312,7 @@ var CD = 0.2, TD = 4, y0 = [
19312
19312
  "click",
19313
19313
  "dblclick"
19314
19314
  ];
19315
- function mc(e, t) {
19315
+ function vc(e, t) {
19316
19316
  return t.get(e, !1);
19317
19317
  }
19318
19318
  function mh(e) {
@@ -19350,7 +19350,7 @@ function Ld(e) {
19350
19350
  }), r;
19351
19351
  }
19352
19352
  function xx(e, t, n, r, o) {
19353
- var a = mc("dragging", e), l = mc("move", e), u = mc("contextPad", e), c = mc("palette", e), d;
19353
+ var a = vc("dragging", e), l = vc("move", e), u = vc("contextPad", e), c = vc("palette", e), d;
19354
19354
  function v(b, _) {
19355
19355
  return function(w) {
19356
19356
  var T = m(w.target), I = T && r.get(T);
@@ -19456,7 +19456,7 @@ _v.prototype.addBBoxMarker = function(e) {
19456
19456
  }), Se(r, t), Ve(e, r);
19457
19457
  };
19458
19458
  const AD = {
19459
- __depends__: [Zl],
19459
+ __depends__: [Xl],
19460
19460
  __init__: ["touchInteractionEvents"],
19461
19461
  touchInteractionEvents: ["type", xx],
19462
19462
  touchFix: ["type", _v]
@@ -19624,7 +19624,7 @@ Xn.prototype._updateAndOpen = function(e) {
19624
19624
  var t = this.getEntries(e), n = this.getPad(e), r = n.html, o;
19625
19625
  W(t, function(a, l) {
19626
19626
  var u = a.group || "default", c = wt(a.html || '<div class="entry" draggable="true"></div>'), d;
19627
- $n(c, "data-action", l), d = bt("[data-group=" + Ll(u) + "]", r), d || (d = wt('<div class="group"></div>'), $n(d, "data-group", u), r.appendChild(d)), d.appendChild(c), a.className && MD(c, a.className), a.title && $n(c, "title", a.title), a.imageUrl && (o = wt("<img>"), $n(o, "src", a.imageUrl), o.style.width = "100%", o.style.height = "100%", c.appendChild(o));
19627
+ $n(c, "data-action", l), d = bt("[data-group=" + Nl(u) + "]", r), d || (d = wt('<div class="group"></div>'), $n(d, "data-group", u), r.appendChild(d)), d.appendChild(c), a.className && MD(c, a.className), a.title && $n(c, "title", a.title), a.imageUrl && (o = wt("<img>"), $n(o, "src", a.imageUrl), o.style.width = "100%", o.style.height = "100%", c.appendChild(o));
19628
19628
  }), hn(r).add("open"), this._current = {
19629
19629
  target: e,
19630
19630
  entries: t,
@@ -19689,12 +19689,12 @@ function wx(e, t) {
19689
19689
  }
19690
19690
  const xv = {
19691
19691
  __depends__: [
19692
- Zl,
19692
+ Xl,
19693
19693
  $p
19694
19694
  ],
19695
19695
  contextPad: ["type", Xn]
19696
19696
  };
19697
- var jp, Tt, Sx, pa, w0, Cx, Tx, Ax, wv, gh, yh, Il = {}, Px = [], ND = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Wp = Array.isArray;
19697
+ var jp, Tt, Sx, pa, w0, Cx, Tx, Ax, wv, gh, yh, Ol = {}, Px = [], ND = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Wp = Array.isArray;
19698
19698
  function Ai(e, t) {
19699
19699
  for (var n in t)
19700
19700
  e[n] = t[n];
@@ -19710,16 +19710,16 @@ function Rx(e, t, n) {
19710
19710
  if (arguments.length > 2 && (l.children = arguments.length > 3 ? jp.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null)
19711
19711
  for (a in e.defaultProps)
19712
19712
  l[a] === void 0 && (l[a] = e.defaultProps[a]);
19713
- return Gc(e, l, r, o, null);
19713
+ return Uc(e, l, r, o, null);
19714
19714
  }
19715
- function Gc(e, t, n, r, o) {
19715
+ function Uc(e, t, n, r, o) {
19716
19716
  var a = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o ?? ++Sx, __i: -1, __u: 0 };
19717
19717
  return o == null && Tt.vnode != null && Tt.vnode(a), a;
19718
19718
  }
19719
19719
  function Up(e) {
19720
19720
  return e.children;
19721
19721
  }
19722
- function Vc(e, t) {
19722
+ function Gc(e, t) {
19723
19723
  this.props = e, this.context = t;
19724
19724
  }
19725
19725
  function fs(e, t) {
@@ -19752,13 +19752,13 @@ function lp() {
19752
19752
  function kx(e, t, n, r, o, a, l, u, c, d, v) {
19753
19753
  var m, y, b, _, w, T, I, D = r && r.__k || Px, k = t.length;
19754
19754
  for (c = LD(n, t, D, c, k), m = 0; m < k; m++)
19755
- (b = n.__k[m]) != null && (y = b.__i == -1 ? Il : D[b.__i] || Il, b.__i = m, T = Cv(e, b, y, o, a, l, u, c, d, v), _ = b.__e, b.ref && y.ref != b.ref && (y.ref && Tv(y.ref, null, b), v.push(b.ref, b.__c || _, b)), w == null && _ != null && (w = _), (I = !!(4 & b.__u)) || y.__k === b.__k ? c = Mx(b, c, e, I) : typeof b.type == "function" && T !== void 0 ? c = T : _ && (c = _.nextSibling), b.__u &= -7);
19755
+ (b = n.__k[m]) != null && (y = b.__i == -1 ? Ol : D[b.__i] || Ol, b.__i = m, T = Cv(e, b, y, o, a, l, u, c, d, v), _ = b.__e, b.ref && y.ref != b.ref && (y.ref && Tv(y.ref, null, b), v.push(b.ref, b.__c || _, b)), w == null && _ != null && (w = _), (I = !!(4 & b.__u)) || y.__k === b.__k ? c = Mx(b, c, e, I) : typeof b.type == "function" && T !== void 0 ? c = T : _ && (c = _.nextSibling), b.__u &= -7);
19756
19756
  return n.__e = w, c;
19757
19757
  }
19758
19758
  function LD(e, t, n, r, o) {
19759
19759
  var a, l, u, c, d, v = n.length, m = v, y = 0;
19760
19760
  for (e.__k = new Array(o), a = 0; a < o; a++)
19761
- (l = t[a]) != null && typeof l != "boolean" && typeof l != "function" ? (c = a + y, (l = e.__k[a] = typeof l == "string" || typeof l == "number" || typeof l == "bigint" || l.constructor == String ? Gc(null, l, null, null, null) : Wp(l) ? Gc(Up, { children: l }, null, null, null) : l.constructor == null && l.__b > 0 ? Gc(l.type, l.props, l.key, l.ref ? l.ref : null, l.__v) : l).__ = e, l.__b = e.__b + 1, u = null, (d = l.__i = OD(l, n, c, m)) != -1 && (m--, (u = n[d]) && (u.__u |= 2)), u == null || u.__v == null ? (d == -1 && (o > v ? y-- : o < v && y++), typeof l.type != "function" && (l.__u |= 4)) : d != c && (d == c - 1 ? y-- : d == c + 1 ? y++ : (d > c ? y-- : y++, l.__u |= 4))) : e.__k[a] = null;
19761
+ (l = t[a]) != null && typeof l != "boolean" && typeof l != "function" ? (c = a + y, (l = e.__k[a] = typeof l == "string" || typeof l == "number" || typeof l == "bigint" || l.constructor == String ? Uc(null, l, null, null, null) : Wp(l) ? Uc(Up, { children: l }, null, null, null) : l.constructor == null && l.__b > 0 ? Uc(l.type, l.props, l.key, l.ref ? l.ref : null, l.__v) : l).__ = e, l.__b = e.__b + 1, u = null, (d = l.__i = OD(l, n, c, m)) != -1 && (m--, (u = n[d]) && (u.__u |= 2)), u == null || u.__v == null ? (d == -1 && (o > v ? y-- : o < v && y++), typeof l.type != "function" && (l.__u |= 4)) : d != c && (d == c - 1 ? y-- : d == c + 1 ? y++ : (d > c ? y-- : y++, l.__u |= 4))) : e.__k[a] = null;
19762
19762
  if (m)
19763
19763
  for (a = 0; a < v; a++)
19764
19764
  (u = n[a]) != null && !(2 & u.__u) && (u.__e == r && (r = fs(u)), Ox(u, u));
@@ -19791,7 +19791,7 @@ function OD(e, t, n, r) {
19791
19791
  function C0(e, t, n) {
19792
19792
  t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || ND.test(t) ? n : n + "px";
19793
19793
  }
19794
- function gc(e, t, n, r, o) {
19794
+ function mc(e, t, n, r, o) {
19795
19795
  var a, l;
19796
19796
  e:
19797
19797
  if (t == "style")
@@ -19839,7 +19839,7 @@ function Cv(e, t, n, r, o, a, l, u, c, d) {
19839
19839
  e:
19840
19840
  if (typeof J == "function")
19841
19841
  try {
19842
- if (I = t.props, D = "prototype" in J && J.prototype.render, k = (v = J.contextType) && r[v.__c], P = v ? k ? k.props.value : v.__ : r, n.__c ? T = (m = t.__c = n.__c).__ = m.__E : (D ? t.__c = m = new J(I, P) : (t.__c = m = new Vc(I, P), m.constructor = J, m.render = BD), k && k.sub(m), m.props = I, m.state || (m.state = {}), m.context = P, m.__n = r, y = m.__d = !0, m.__h = [], m._sb = []), D && m.__s == null && (m.__s = m.state), D && J.getDerivedStateFromProps != null && (m.__s == m.state && (m.__s = Ai({}, m.__s)), Ai(m.__s, J.getDerivedStateFromProps(I, m.__s))), b = m.props, _ = m.state, m.__v = t, y)
19842
+ if (I = t.props, D = "prototype" in J && J.prototype.render, k = (v = J.contextType) && r[v.__c], P = v ? k ? k.props.value : v.__ : r, n.__c ? T = (m = t.__c = n.__c).__ = m.__E : (D ? t.__c = m = new J(I, P) : (t.__c = m = new Gc(I, P), m.constructor = J, m.render = BD), k && k.sub(m), m.props = I, m.state || (m.state = {}), m.context = P, m.__n = r, y = m.__d = !0, m.__h = [], m._sb = []), D && m.__s == null && (m.__s = m.state), D && J.getDerivedStateFromProps != null && (m.__s == m.state && (m.__s = Ai({}, m.__s)), Ai(m.__s, J.getDerivedStateFromProps(I, m.__s))), b = m.props, _ = m.state, m.__v = t, y)
19843
19843
  D && J.getDerivedStateFromProps == null && m.componentWillMount != null && m.componentWillMount(), D && m.componentDidMount != null && m.__h.push(m.componentDidMount);
19844
19844
  else {
19845
19845
  if (D && J.getDerivedStateFromProps == null && I !== b && m.componentWillReceiveProps != null && m.componentWillReceiveProps(I, P), !m.__e && m.shouldComponentUpdate != null && m.shouldComponentUpdate(I, m.__s, P) === !1 || t.__v == n.__v) {
@@ -19918,7 +19918,7 @@ function ID(e, t, n, r, o, a, l, u, c) {
19918
19918
  if (D == null)
19919
19919
  T === I || u && e.data == I || (e.data = I);
19920
19920
  else {
19921
- if (a = a && jp.call(e.childNodes), T = n.props || Il, !u && a != null)
19921
+ if (a = a && jp.call(e.childNodes), T = n.props || Ol, !u && a != null)
19922
19922
  for (T = {}, d = 0; d < e.attributes.length; d++)
19923
19923
  T[(b = e.attributes[d]).name] = b.value;
19924
19924
  for (d in T)
@@ -19928,17 +19928,17 @@ function ID(e, t, n, r, o, a, l, u, c) {
19928
19928
  else if (!(d in I)) {
19929
19929
  if (d == "value" && "defaultValue" in I || d == "checked" && "defaultChecked" in I)
19930
19930
  continue;
19931
- gc(e, d, null, b, o);
19931
+ mc(e, d, null, b, o);
19932
19932
  }
19933
19933
  }
19934
19934
  for (d in I)
19935
- b = I[d], d == "children" ? y = b : d == "dangerouslySetInnerHTML" ? v = b : d == "value" ? _ = b : d == "checked" ? w = b : u && typeof b != "function" || T[d] === b || gc(e, d, b, T[d], o);
19935
+ b = I[d], d == "children" ? y = b : d == "dangerouslySetInnerHTML" ? v = b : d == "value" ? _ = b : d == "checked" ? w = b : u && typeof b != "function" || T[d] === b || mc(e, d, b, T[d], o);
19936
19936
  if (v)
19937
19937
  u || m && (v.__html == m.__html || v.__html == e.innerHTML) || (e.innerHTML = v.__html), t.__k = [];
19938
19938
  else if (m && (e.innerHTML = ""), kx(t.type == "template" ? e.content : e, Wp(y) ? y : [y], t, n, r, D == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, a, l, a ? a[0] : n.__k && fs(n, 0), u, c), a != null)
19939
19939
  for (d = a.length; d--; )
19940
19940
  Sv(a[d]);
19941
- u || (d = "value", D == "progress" && _ == null ? e.removeAttribute("value") : _ != null && (_ !== e[d] || D == "progress" && !_ || D == "option" && _ != T[d]) && gc(e, d, _, T[d], o), d = "checked", w != null && w != e[d] && gc(e, d, w, T[d], o));
19941
+ u || (d = "value", D == "progress" && _ == null ? e.removeAttribute("value") : _ != null && (_ !== e[d] || D == "progress" && !_ || D == "option" && _ != T[d]) && mc(e, d, _, T[d], o), d = "checked", w != null && w != e[d] && mc(e, d, w, T[d], o));
19942
19942
  }
19943
19943
  return e;
19944
19944
  }
@@ -19974,7 +19974,7 @@ function BD(e, t, n) {
19974
19974
  }
19975
19975
  function Ix(e, t, n) {
19976
19976
  var r, o, a, l;
19977
- t == document && (t = document.documentElement), Tt.__ && Tt.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, a = [], l = [], Cv(t, e = (!r && n || t).__k = Rx(Up, null, [e]), o || Il, Il, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? jp.call(t.childNodes) : null, a, !r && n ? n : o ? o.__e : t.firstChild, r, l), Nx(a, e, l);
19977
+ t == document && (t = document.documentElement), Tt.__ && Tt.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, a = [], l = [], Cv(t, e = (!r && n || t).__k = Rx(Up, null, [e]), o || Ol, Ol, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? jp.call(t.childNodes) : null, a, !r && n ? n : o ? o.__e : t.firstChild, r, l), Nx(a, e, l);
19978
19978
  }
19979
19979
  jp = Px.slice, Tt = { __e: function(e, t, n, r) {
19980
19980
  for (var o, a, l; t = t.__; )
@@ -19986,12 +19986,12 @@ jp = Px.slice, Tt = { __e: function(e, t, n, r) {
19986
19986
  e = u;
19987
19987
  }
19988
19988
  throw e;
19989
- } }, Sx = 0, Vc.prototype.setState = function(e, t) {
19989
+ } }, Sx = 0, Gc.prototype.setState = function(e, t) {
19990
19990
  var n;
19991
19991
  n = this.__s != null && this.__s != this.state ? this.__s : this.__s = Ai({}, this.state), typeof e == "function" && (e = e(Ai({}, n), this.props)), e && Ai(n, e), e != null && this.__v && (t && this._sb.push(t), S0(this));
19992
- }, Vc.prototype.forceUpdate = function(e) {
19992
+ }, Gc.prototype.forceUpdate = function(e) {
19993
19993
  this.__v && (this.__e = !0, e && this.__h.push(e), S0(this));
19994
- }, Vc.prototype.render = Up, pa = [], Cx = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Tx = function(e, t) {
19994
+ }, Gc.prototype.render = Up, pa = [], Cx = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Tx = function(e, t) {
19995
19995
  return e.__v.__b - t.__v.__b;
19996
19996
  }, lp.__r = 0, Ax = /(PointerCapture)$|Capture$/i, wv = 0, gh = T0(!1), yh = T0(!0);
19997
19997
  var Bx = function(e, t, n, r) {
@@ -20017,14 +20017,14 @@ function FD(e) {
20017
20017
  return d(), c;
20018
20018
  }(e)), t), arguments, [])).length > 1 ? t : t[0];
20019
20019
  }
20020
- var cn = FD.bind(Rx), ds, $t, Id, P0, Bl = 0, Fx = [], Yt = Tt, R0 = Yt.__b, D0 = Yt.__r, k0 = Yt.diffed, M0 = Yt.__c, N0 = Yt.unmount, L0 = Yt.__;
20020
+ var cn = FD.bind(Rx), ds, $t, Id, P0, Il = 0, Fx = [], Yt = Tt, R0 = Yt.__b, D0 = Yt.__r, k0 = Yt.diffed, M0 = Yt.__c, N0 = Yt.unmount, L0 = Yt.__;
20021
20021
  function Gp(e, t) {
20022
- Yt.__h && Yt.__h($t, e, Bl || t), Bl = 0;
20022
+ Yt.__h && Yt.__h($t, e, Il || t), Il = 0;
20023
20023
  var n = $t.__H || ($t.__H = { __: [], __h: [] });
20024
20024
  return e >= n.__.length && n.__.push({}), n.__[e];
20025
20025
  }
20026
20026
  function Bd(e) {
20027
- return Bl = 1, $D($x, e);
20027
+ return Il = 1, $D($x, e);
20028
20028
  }
20029
20029
  function $D(e, t, n) {
20030
20030
  var r = Gp(ds++, 2);
@@ -20071,16 +20071,16 @@ function up(e, t) {
20071
20071
  !Yt.__s && Pv(n.__H, t) && (n.__ = e, n.u = t, $t.__h.push(n));
20072
20072
  }
20073
20073
  function Av(e) {
20074
- return Bl = 5, Fl(function() {
20074
+ return Il = 5, Bl(function() {
20075
20075
  return { current: e };
20076
20076
  }, []);
20077
20077
  }
20078
- function Fl(e, t) {
20078
+ function Bl(e, t) {
20079
20079
  var n = Gp(ds++, 7);
20080
20080
  return Pv(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
20081
20081
  }
20082
20082
  function ss(e, t) {
20083
- return Bl = 8, Fl(function() {
20083
+ return Il = 8, Bl(function() {
20084
20084
  return e;
20085
20085
  }, t);
20086
20086
  }
@@ -20088,7 +20088,7 @@ function HD() {
20088
20088
  for (var e; e = Fx.shift(); )
20089
20089
  if (e.__P && e.__H)
20090
20090
  try {
20091
- e.__H.__h.forEach(Kc), e.__H.__h.forEach(Eh), e.__H.__h = [];
20091
+ e.__H.__h.forEach(Vc), e.__H.__h.forEach(Eh), e.__H.__h = [];
20092
20092
  } catch (t) {
20093
20093
  e.__H.__h = [], Yt.__e(t, e.__v);
20094
20094
  }
@@ -20102,7 +20102,7 @@ Yt.__b = function(e) {
20102
20102
  var t = ($t = e.__c).__H;
20103
20103
  t && (Id === $t ? (t.__h = [], $t.__h = [], t.__.forEach(function(n) {
20104
20104
  n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
20105
- })) : (t.__h.forEach(Kc), t.__h.forEach(Eh), t.__h = [], ds = 0)), Id = $t;
20105
+ })) : (t.__h.forEach(Vc), t.__h.forEach(Eh), t.__h = [], ds = 0)), Id = $t;
20106
20106
  }, Yt.diffed = function(e) {
20107
20107
  k0 && k0(e);
20108
20108
  var t = e.__c;
@@ -20112,7 +20112,7 @@ Yt.__b = function(e) {
20112
20112
  }, Yt.__c = function(e, t) {
20113
20113
  t.some(function(n) {
20114
20114
  try {
20115
- n.__h.forEach(Kc), n.__h = n.__h.filter(function(r) {
20115
+ n.__h.forEach(Vc), n.__h = n.__h.filter(function(r) {
20116
20116
  return !r.__ || Eh(r);
20117
20117
  });
20118
20118
  } catch (r) {
@@ -20126,7 +20126,7 @@ Yt.__b = function(e) {
20126
20126
  var t, n = e.__c;
20127
20127
  n && n.__H && (n.__H.__.forEach(function(r) {
20128
20128
  try {
20129
- Kc(r);
20129
+ Vc(r);
20130
20130
  } catch (o) {
20131
20131
  t = o;
20132
20132
  }
@@ -20139,7 +20139,7 @@ function zD(e) {
20139
20139
  }, r = setTimeout(n, 35);
20140
20140
  O0 && (t = requestAnimationFrame(n));
20141
20141
  }
20142
- function Kc(e) {
20142
+ function Vc(e) {
20143
20143
  var t = $t, n = e.__c;
20144
20144
  typeof n == "function" && (e.__c = void 0, n()), $t = t;
20145
20145
  }
@@ -20239,7 +20239,7 @@ function WD(e) {
20239
20239
  setSelectedEntry: n,
20240
20240
  entries: r,
20241
20241
  ...o
20242
- } = e, a = Av(), l = Fl(() => UD(r), [r]);
20242
+ } = e, a = Av(), l = Bl(() => UD(r), [r]);
20243
20243
  return up(() => {
20244
20244
  const u = a.current;
20245
20245
  if (!u)
@@ -20297,7 +20297,7 @@ function VD(e) {
20297
20297
  entries: v,
20298
20298
  onOpened: m,
20299
20299
  onClosed: y
20300
- } = e, b = Fl(() => Zt(d) ? v.length > 5 : !1, [d, v]), _ = Av(), [w, T] = Bd(""), I = ss((J, se) => {
20300
+ } = e, b = Bl(() => Zt(d) ? v.length > 5 : !1, [d, v]), _ = Av(), [w, T] = Bd(""), I = ss((J, se) => {
20301
20301
  if (!b)
20302
20302
  return J;
20303
20303
  const fe = (Me) => {
@@ -20343,7 +20343,7 @@ function VD(e) {
20343
20343
  Fd(() => (m(), () => {
20344
20344
  y();
20345
20345
  }), []);
20346
- const Q = Fl(() => l || o.length > 0, [l, o]);
20346
+ const Q = Bl(() => l || o.length > 0, [l, o]);
20347
20347
  return cn`
20348
20348
  <${I0}
20349
20349
  onClose=${t}
@@ -20731,23 +20731,23 @@ var JD = [
20731
20731
  "middle",
20732
20732
  "bottom"
20733
20733
  ];
20734
- function Ql(e, t, n, r) {
20734
+ function Zl(e, t, n, r) {
20735
20735
  this._alignElements = t, this._translate = n, this._popupMenu = e, this._rules = r, e.registerProvider("align-elements", this);
20736
20736
  }
20737
- Ql.$inject = [
20737
+ Zl.$inject = [
20738
20738
  "popupMenu",
20739
20739
  "alignElements",
20740
20740
  "translate",
20741
20741
  "rules"
20742
20742
  ];
20743
- Ql.prototype.getPopupMenuEntries = function(e) {
20743
+ Zl.prototype.getPopupMenuEntries = function(e) {
20744
20744
  var t = {};
20745
20745
  return this._isAllowed(e) && q(t, this._getEntries(e)), t;
20746
20746
  };
20747
- Ql.prototype._isAllowed = function(e) {
20747
+ Zl.prototype._isAllowed = function(e) {
20748
20748
  return this._rules.allowed("elements.align", { elements: e });
20749
20749
  };
20750
- Ql.prototype._getEntries = function(e) {
20750
+ Zl.prototype._getEntries = function(e) {
20751
20751
  var t = this._alignElements, n = this._translate, r = this._popupMenu, o = {};
20752
20752
  return W(JD, function(a) {
20753
20753
  o["align-elements-" + a] = {
@@ -20761,12 +20761,12 @@ Ql.prototype._getEntries = function(e) {
20761
20761
  };
20762
20762
  }), o;
20763
20763
  };
20764
- function lr(e) {
20764
+ function sr(e) {
20765
20765
  ge.call(this, e), this.init();
20766
20766
  }
20767
- lr.$inject = ["eventBus"];
20768
- Re(lr, ge);
20769
- lr.prototype.addRule = function(e, t, n) {
20767
+ sr.$inject = ["eventBus"];
20768
+ Re(sr, ge);
20769
+ sr.prototype.addRule = function(e, t, n) {
20770
20770
  var r = this;
20771
20771
  typeof e == "string" && (e = [e]), e.forEach(function(o) {
20772
20772
  r.canExecute(o, t, function(a, l, u) {
@@ -20774,13 +20774,13 @@ lr.prototype.addRule = function(e, t, n) {
20774
20774
  }, !0);
20775
20775
  });
20776
20776
  };
20777
- lr.prototype.init = function() {
20777
+ sr.prototype.init = function() {
20778
20778
  };
20779
20779
  function Kp(e) {
20780
- lr.call(this, e);
20780
+ sr.call(this, e);
20781
20781
  }
20782
20782
  Kp.$inject = ["eventBus"];
20783
- Re(Kp, lr);
20783
+ Re(Kp, sr);
20784
20784
  Kp.prototype.init = function() {
20785
20785
  this.addRule("elements.align", function(e) {
20786
20786
  var t = e.elements, n = Je(t, function(r) {
@@ -20801,7 +20801,7 @@ const ek = {
20801
20801
  "bpmnAlignElements"
20802
20802
  ],
20803
20803
  alignElementsContextPadProvider: ["type", Cs],
20804
- alignElementsMenuProvider: ["type", Ql],
20804
+ alignElementsMenuProvider: ["type", Zl],
20805
20805
  bpmnAlignElements: ["type", Kp]
20806
20806
  };
20807
20807
  var tk = 10, Wx = 50, nk = 250;
@@ -20871,7 +20871,7 @@ function ik(e, t) {
20871
20871
  };
20872
20872
  }), y = v.concat(m).reduce(function(_, w) {
20873
20873
  return _[w.id + "__weight_" + w.weight] = w, _;
20874
- }, {}), b = ar(y, function(_, w) {
20874
+ }, {}), b = or(y, function(_, w) {
20875
20875
  var T = w.distance, I = w.weight;
20876
20876
  return T < 0 || T > u || (_[String(T)] || (_[String(T)] = 0), _[String(T)] += 1 * I, (!_.distance || _[_.distance] < _[String(T)]) && (_.distance = T)), _;
20877
20877
  }, {});
@@ -21105,22 +21105,22 @@ Re(qp, Fi);
21105
21105
  qp.prototype.resize = function(e, t, n) {
21106
21106
  R(e, "bpmn:Participant") ? this._modeling.resizeLane(e, t, null, n) : this._modeling.resizeShape(e, t, null, n);
21107
21107
  };
21108
- function Jl(e) {
21109
- lr.call(this, e);
21108
+ function Ql(e) {
21109
+ sr.call(this, e);
21110
21110
  var t = this;
21111
21111
  this.addRule("element.autoResize", function(n) {
21112
21112
  return t.canResize(n.elements, n.target);
21113
21113
  });
21114
21114
  }
21115
- Jl.$inject = ["eventBus"];
21116
- Re(Jl, lr);
21117
- Jl.prototype.canResize = function(e, t) {
21115
+ Ql.$inject = ["eventBus"];
21116
+ Re(Ql, sr);
21117
+ Ql.prototype.canResize = function(e, t) {
21118
21118
  return !1;
21119
21119
  };
21120
21120
  function Yp(e, t) {
21121
- Jl.call(this, e), this._modeling = t;
21121
+ Ql.call(this, e), this._modeling = t;
21122
21122
  }
21123
- Re(Yp, Jl);
21123
+ Re(Yp, Ql);
21124
21124
  Yp.$inject = [
21125
21125
  "eventBus",
21126
21126
  "modeling"
@@ -21385,7 +21385,7 @@ const ui = {
21385
21385
  __init__: ["rules"],
21386
21386
  rules: ["type", kv]
21387
21387
  };
21388
- var yc = Math.round, Ck = Math.max;
21388
+ var gc = Math.round, Ck = Math.max;
21389
21389
  function Tk(e, t) {
21390
21390
  var n = e.x, r = e.y;
21391
21391
  return [
@@ -21406,7 +21406,7 @@ var Qx = 10;
21406
21406
  function Pk(e, t) {
21407
21407
  var n, r;
21408
21408
  for (n = 0; r = e[n]; n++)
21409
- if (Ul(r, t) <= Qx)
21409
+ if (Wl(r, t) <= Qx)
21410
21410
  return {
21411
21411
  point: e[n],
21412
21412
  bendpoint: !0,
@@ -21422,14 +21422,14 @@ function Rk(e, t) {
21422
21422
  index: a
21423
21423
  }) : {
21424
21424
  point: {
21425
- x: yc(r.x + o.x) / 2,
21426
- y: yc(r.y + o.y) / 2
21425
+ x: gc(r.x + o.x) / 2,
21426
+ y: gc(r.y + o.y) / 2
21427
21427
  },
21428
21428
  index: r.segment2
21429
21429
  } : {
21430
21430
  point: {
21431
- x: yc(r.x),
21432
- y: yc(r.y)
21431
+ x: gc(r.x),
21432
+ y: gc(r.y)
21433
21433
  },
21434
21434
  index: r.segment2
21435
21435
  } : null;
@@ -21569,7 +21569,7 @@ function iw(e, t, n, r, o) {
21569
21569
  });
21570
21570
  }
21571
21571
  function d(k, P) {
21572
- var M = t.getLayer("overlays"), L = bt('.djs-bendpoints[data-element-id="' + Ll(k.id) + '"]', M);
21572
+ var M = t.getLayer("overlays"), L = bt('.djs-bendpoints[data-element-id="' + Nl(k.id) + '"]', M);
21573
21573
  return !L && P && (L = $e("g"), Se(L, { "data-element-id": k.id }), ot(L).add("djs-bendpoints"), Ve(M, L), c(L, "mousedown", k), c(L, "click", k), c(L, "dblclick", k)), L;
21574
21574
  }
21575
21575
  function v(k, P) {
@@ -21754,7 +21754,7 @@ function dp(e) {
21754
21754
  if (o === ua)
21755
21755
  return t && n && t === n && n !== r;
21756
21756
  }
21757
- var Fk = "reconnectStart", $k = "reconnectEnd", z0 = "updateWaypoints", dl = "connect-ok", bc = "connect-not-ok", j0 = "connect-hover", W0 = "djs-updating", U0 = "djs-element-hidden", G0 = 1100;
21757
+ var Fk = "reconnectStart", $k = "reconnectEnd", z0 = "updateWaypoints", dl = "connect-ok", yc = "connect-not-ok", j0 = "connect-hover", W0 = "djs-updating", U0 = "djs-element-hidden", G0 = 1100;
21758
21758
  function ow(e, t, n, r) {
21759
21759
  this._injector = t;
21760
21760
  var o = t.get("connectionPreview", !1);
@@ -21768,14 +21768,14 @@ function ow(e, t, n, r) {
21768
21768
  if (c) {
21769
21769
  if (r.addMarker(c, j0), d === z0)
21770
21770
  return;
21771
- u ? (r.removeMarker(c, bc), r.addMarker(c, dl)) : u === !1 && (r.removeMarker(c, dl), r.addMarker(c, bc));
21771
+ u ? (r.removeMarker(c, yc), r.addMarker(c, dl)) : u === !1 && (r.removeMarker(c, dl), r.addMarker(c, yc));
21772
21772
  }
21773
21773
  }), n.on([
21774
21774
  "bendpoint.move.out",
21775
21775
  "bendpoint.move.cleanup"
21776
21776
  ], G0, function(a) {
21777
21777
  var l = a.context, u = l.hover, c = l.target;
21778
- u && (r.removeMarker(u, j0), r.removeMarker(u, c ? dl : bc));
21778
+ u && (r.removeMarker(u, j0), r.removeMarker(u, c ? dl : yc));
21779
21779
  }), n.on("bendpoint.move.move", function(a) {
21780
21780
  var l = a.context, u = l.allowed, c = l.bendpointIndex, d = l.draggerGfx, v = l.hover, m = l.type, y = l.connection, b = y.source, _ = y.target, w = y.waypoints.slice(), T = { x: a.x, y: a.y }, I = l.hints || {}, D = {};
21781
21781
  o && (I.connectionStart && (D.connectionStart = I.connectionStart), I.connectionEnd && (D.connectionEnd = I.connectionEnd), m === Fk ? dp(l) ? (D.connectionEnd = D.connectionEnd || T, D.source = _, D.target = v || b, w = w.reverse()) : (D.connectionStart = D.connectionStart || T, D.source = v || b, D.target = _) : m === $k ? dp(l) ? (D.connectionStart = D.connectionStart || T, D.source = v || _, D.target = b, w = w.reverse()) : (D.connectionEnd = D.connectionEnd || T, D.source = b, D.target = v || _) : (D.noCropping = !0, D.noLayout = !0, w[c] = T), m === z0 && (w = e.cropWaypoints(y, w)), D.waypoints = w, o.drawPreview(l, u, D)), rr(d, a.x, a.y);
@@ -21784,7 +21784,7 @@ function ow(e, t, n, r) {
21784
21784
  "bendpoint.move.cancel"
21785
21785
  ], G0, function(a) {
21786
21786
  var l = a.context, u = l.connection, c = l.draggerGfx, d = l.hover, v = l.target, m = l.waypoints;
21787
- u.waypoints = m, zt(c), r.removeMarker(u, W0), r.removeMarker(u, U0), d && (r.removeMarker(d, dl), r.removeMarker(d, v ? dl : bc)), o && o.cleanUp(l);
21787
+ u.waypoints = m, zt(c), r.removeMarker(u, W0), r.removeMarker(u, U0), d && (r.removeMarker(d, dl), r.removeMarker(d, v ? dl : yc)), o && o.cleanUp(l);
21788
21788
  });
21789
21789
  }
21790
21790
  ow.$inject = [
@@ -22475,7 +22475,7 @@ Cr.prototype.activate = function(e) {
22475
22475
  };
22476
22476
  const hw = {
22477
22477
  __depends__: [
22478
- Zl
22478
+ Xl
22479
22479
  ],
22480
22480
  __init__: ["directEditing"],
22481
22481
  directEditing: ["type", Cr]
@@ -22567,7 +22567,7 @@ function oM(e) {
22567
22567
  function aM(e) {
22568
22568
  return nM.indexOf(e.nodeName) !== -1;
22569
22569
  }
22570
- const eu = {
22570
+ const Jl = {
22571
22571
  __init__: ["previewSupport"],
22572
22572
  previewSupport: ["type", Ta]
22573
22573
  };
@@ -22752,7 +22752,7 @@ mw.$inject = [
22752
22752
  const Xp = {
22753
22753
  __depends__: [
22754
22754
  $i,
22755
- eu,
22755
+ Jl,
22756
22756
  ui,
22757
22757
  si
22758
22758
  ],
@@ -22763,23 +22763,23 @@ const Xp = {
22763
22763
  create: ["type", vw],
22764
22764
  createPreview: ["type", mw]
22765
22765
  };
22766
- function tu() {
22766
+ function eu() {
22767
22767
  }
22768
- tu.prototype.get = function() {
22768
+ eu.prototype.get = function() {
22769
22769
  return this._data;
22770
22770
  };
22771
- tu.prototype.set = function(e) {
22771
+ eu.prototype.set = function(e) {
22772
22772
  this._data = e;
22773
22773
  };
22774
- tu.prototype.clear = function() {
22774
+ eu.prototype.clear = function() {
22775
22775
  var e = this._data;
22776
22776
  return delete this._data, e;
22777
22777
  };
22778
- tu.prototype.isEmpty = function() {
22778
+ eu.prototype.isEmpty = function() {
22779
22779
  return !this._data;
22780
22780
  };
22781
22781
  const pM = {
22782
- clipboard: ["type", tu]
22782
+ clipboard: ["type", eu]
22783
22783
  };
22784
22784
  function Iv(e) {
22785
22785
  var t = this;
@@ -22818,7 +22818,7 @@ function fM(e, t) {
22818
22818
  null
22819
22819
  ), n;
22820
22820
  }
22821
- const nu = {
22821
+ const tu = {
22822
22822
  __init__: ["mouse"],
22823
22823
  mouse: ["type", Iv]
22824
22824
  };
@@ -23025,7 +23025,7 @@ const vM = {
23025
23025
  __depends__: [
23026
23026
  pM,
23027
23027
  Xp,
23028
- nu,
23028
+ tu,
23029
23029
  ui
23030
23030
  ],
23031
23031
  __init__: ["copyPaste"],
@@ -23061,7 +23061,7 @@ function gw(e, t, n) {
23061
23061
  return c.default && (v[c.default] = {
23062
23062
  element: m,
23063
23063
  property: "default"
23064
- }), c.host && (Ce(c).attachedToRef = Ce(d[c.host])), Mi(v, ar(v, function(y, b, _) {
23064
+ }), c.host && (Ce(c).attachedToRef = Ce(d[c.host])), Mi(v, or(v, function(y, b, _) {
23065
23065
  var w = b.element, T = b.property;
23066
23066
  return _ === c.id && (w[T] = m, y.push(c.id)), y;
23067
23067
  }, []));
@@ -23112,7 +23112,7 @@ var mM = [
23112
23112
  "outgoing",
23113
23113
  "categoryValue"
23114
23114
  ];
23115
- function ru(e, t, n) {
23115
+ function nu(e, t, n) {
23116
23116
  this._bpmnFactory = t, this._eventBus = e, this._moddle = n, e.on("moddleCopy.canCopyProperties", function(r) {
23117
23117
  var o = r.propertyNames;
23118
23118
  if (!(!o || !o.length))
@@ -23129,12 +23129,12 @@ function ru(e, t, n) {
23129
23129
  return !1;
23130
23130
  });
23131
23131
  }
23132
- ru.$inject = [
23132
+ nu.$inject = [
23133
23133
  "eventBus",
23134
23134
  "bpmnFactory",
23135
23135
  "moddle"
23136
23136
  ];
23137
- ru.prototype.copyElement = function(e, t, n, r) {
23137
+ nu.prototype.copyElement = function(e, t, n, r) {
23138
23138
  var o = this;
23139
23139
  n && !et(n) && (n = [n]), n = n || Th(e.$descriptor);
23140
23140
  var a = this._eventBus.fire("moddleCopy.canCopyProperties", {
@@ -23157,7 +23157,7 @@ ru.prototype.copyElement = function(e, t, n, r) {
23157
23157
  }
23158
23158
  })), t;
23159
23159
  };
23160
- ru.prototype.copyProperty = function(e, t, n, r) {
23160
+ nu.prototype.copyProperty = function(e, t, n, r) {
23161
23161
  var o = this, a = this._eventBus.fire("moddleCopy.canCopyProperty", {
23162
23162
  parent: t,
23163
23163
  property: e,
@@ -23169,19 +23169,19 @@ ru.prototype.copyProperty = function(e, t, n, r) {
23169
23169
  return _n(a) && a.$type && !a.$parent && (a.$parent = t), a;
23170
23170
  var l = this._moddle.getPropertyDescriptor(t, n);
23171
23171
  if (!l.isReference)
23172
- return l.isId ? e && this._copyId(e, t, r) : et(e) ? ar(e, function(u, c) {
23172
+ return l.isId ? e && this._copyId(e, t, r) : et(e) ? or(e, function(u, c) {
23173
23173
  return a = o.copyProperty(c, t, n, r), a ? u.concat(a) : u;
23174
23174
  }, []) : _n(e) && e.$type ? this._moddle.getElementDescriptor(e).isGeneric ? void 0 : (a = o._bpmnFactory.create(e.$type), a.$parent = t, a = o.copyElement(e, a, null, r), a) : e;
23175
23175
  }
23176
23176
  };
23177
- ru.prototype._copyId = function(e, t, n) {
23177
+ nu.prototype._copyId = function(e, t, n) {
23178
23178
  if (n)
23179
23179
  return e;
23180
23180
  if (!this._moddle.ids.assigned(e))
23181
23181
  return this._moddle.ids.claim(e, t), e;
23182
23182
  };
23183
23183
  function Th(e, t) {
23184
- return ar(e.properties, function(n, r) {
23184
+ return or(e.properties, function(n, r) {
23185
23185
  return t && r.default ? n : n.concat(r.name);
23186
23186
  }, []);
23187
23187
  }
@@ -23194,7 +23194,7 @@ const yw = {
23194
23194
  ],
23195
23195
  __init__: ["bpmnCopyPaste", "moddleCopy"],
23196
23196
  bpmnCopyPaste: ["type", gw],
23197
- moddleCopy: ["type", ru]
23197
+ moddleCopy: ["type", nu]
23198
23198
  };
23199
23199
  var pb = Math.round;
23200
23200
  function Bv(e, t) {
@@ -23265,7 +23265,7 @@ function Ew(e, t, n, r, o, a, l) {
23265
23265
  function u(c, d, v) {
23266
23266
  v = v || {};
23267
23267
  var m = d.type, y = c.businessObject;
23268
- if (Ec(y) && m === "bpmn:SubProcess" && _M(c, d))
23268
+ if (bc(y) && m === "bpmn:SubProcess" && _M(c, d))
23269
23269
  return r.toggleCollapse(c), c;
23270
23270
  var b = e.create(m), _ = {
23271
23271
  type: m,
@@ -23288,7 +23288,7 @@ function Ew(e, t, n, r, o, a, l) {
23288
23288
  b,
23289
23289
  D
23290
23290
  ), d.eventDefinitionType && (fb(b, d.eventDefinitionType) || (_.eventDefinitionType = d.eventDefinitionType, _.eventDefinitionAttrs = d.eventDefinitionAttrs)), R(y, "bpmn:Activity")) {
23291
- if (Ec(y))
23291
+ if (bc(y))
23292
23292
  _.isExpanded = lt(c);
23293
23293
  else if (d && ei(d, "isExpanded")) {
23294
23294
  _.isExpanded = d.isExpanded;
@@ -23299,7 +23299,7 @@ function Ew(e, t, n, r, o, a, l) {
23299
23299
  }
23300
23300
  lt(c) && !R(y, "bpmn:Task") && _.isExpanded && (_.width = c.width, _.height = c.height);
23301
23301
  }
23302
- return Ec(y) && !Ec(b) && (v.moveChildren = !1), R(y, "bpmn:Participant") && (d.isExpanded === !0 ? b.processRef = e.create("bpmn:Process") : v.moveChildren = !1, _.width = c.width, _.height = t.getDefaultSize(_).height), a.allowed("shape.resize", { shape: b }) || (_.height = t.getDefaultSize(_).height, _.width = t.getDefaultSize(_).width), b.name = y.name, nt(y, [
23302
+ return bc(y) && !bc(b) && (v.moveChildren = !1), R(y, "bpmn:Participant") && (d.isExpanded === !0 ? b.processRef = e.create("bpmn:Process") : v.moveChildren = !1, _.width = c.width, _.height = t.getDefaultSize(_).height), a.allowed("shape.resize", { shape: b }) || (_.height = t.getDefaultSize(_).height, _.width = t.getDefaultSize(_).width), b.name = y.name, nt(y, [
23303
23303
  "bpmn:ExclusiveGateway",
23304
23304
  "bpmn:InclusiveGateway",
23305
23305
  "bpmn:Activity"
@@ -23320,7 +23320,7 @@ Ew.$inject = [
23320
23320
  "rules",
23321
23321
  "selection"
23322
23322
  ];
23323
- function Ec(e) {
23323
+ function bc(e) {
23324
23324
  return R(e, "bpmn:SubProcess");
23325
23325
  }
23326
23326
  function fb(e, t) {
@@ -24389,7 +24389,7 @@ function $M(e, t) {
24389
24389
  height: e.height - (t.top || 0) + (t.bottom || 0)
24390
24390
  };
24391
24391
  }
24392
- function _c(e, t, n) {
24392
+ function Ec(e, t, n) {
24393
24393
  var r = t[e], o = n.min && n.min[e], a = n.max && n.max[e];
24394
24394
  return Ge(o) && (r = (/top|left/.test(e) ? vp : hp)(r, o)), Ge(a) && (r = (/top|left/.test(e) ? hp : vp)(r, a)), r;
24395
24395
  }
@@ -24398,10 +24398,10 @@ function HM(e, t) {
24398
24398
  return e;
24399
24399
  var n = Ie(e);
24400
24400
  return Cp({
24401
- top: _c("top", n, t),
24402
- right: _c("right", n, t),
24403
- bottom: _c("bottom", n, t),
24404
- left: _c("left", n, t)
24401
+ top: Ec("top", n, t),
24402
+ right: Ec("right", n, t),
24403
+ bottom: Ec("bottom", n, t),
24404
+ left: Ec("left", n, t)
24405
24405
  });
24406
24406
  }
24407
24407
  function zM(e, t, n, r) {
@@ -24438,7 +24438,7 @@ function Sw(e, t) {
24438
24438
  if (e.length === void 0 ? n = Je(e.children, WM) : n = e, n.length)
24439
24439
  return jM(jt(n), t);
24440
24440
  }
24441
- var xc = Math.abs;
24441
+ var _c = Math.abs;
24442
24442
  function UM(e, t) {
24443
24443
  return ww(Ie(t), Ie(e));
24444
24444
  }
@@ -24465,7 +24465,7 @@ function VM(e, t) {
24465
24465
  return o.forEach(function(d) {
24466
24466
  if (d !== e) {
24467
24467
  var v = 0, m = u.right, y = 0, b = u.left, _ = Ie(d);
24468
- u.top && (xc(_.bottom - a.top) < 10 && (y = l.top - _.bottom), xc(_.top - a.top) < 5 && (v = l.top - _.top)), u.bottom && (xc(_.top - a.bottom) < 10 && (v = l.bottom - _.top), xc(_.bottom - a.bottom) < 5 && (y = l.bottom - _.bottom)), (v || m || y || b) && c.push({
24468
+ u.top && (_c(_.bottom - a.top) < 10 && (y = l.top - _.bottom), _c(_.top - a.top) < 5 && (v = l.top - _.top)), u.bottom && (_c(_.top - a.bottom) < 10 && (v = l.bottom - _.top), _c(_.bottom - a.bottom) < 5 && (y = l.bottom - _.bottom)), (v || m || y || b) && c.push({
24469
24469
  shape: d,
24470
24470
  newBounds: $M(d, {
24471
24471
  top: v,
@@ -24477,7 +24477,7 @@ function VM(e, t) {
24477
24477
  }
24478
24478
  }), c;
24479
24479
  }
24480
- function iu(e, t, n, r, o, a, l, u, c, d, v, m) {
24480
+ function ru(e, t, n, r, o, a, l, u, c, d, v, m) {
24481
24481
  e = e || {}, r.registerProvider(this), this._contextPad = r, this._modeling = o, this._elementFactory = a, this._connect = l, this._create = u, this._popupMenu = c, this._canvas = d, this._rules = v, this._translate = m, e.autoPlace !== !1 && (this._autoPlace = t.get("autoPlace", !1)), n.on("create.end", 250, function(y) {
24482
24482
  var b = y.context, _ = b.shape;
24483
24483
  if (!(!ya(y) || !r.isOpen(_))) {
@@ -24486,7 +24486,7 @@ function iu(e, t, n, r, o, a, l, u, c, d, v, m) {
24486
24486
  }
24487
24487
  });
24488
24488
  }
24489
- iu.$inject = [
24489
+ ru.$inject = [
24490
24490
  "config.contextPad",
24491
24491
  "injector",
24492
24492
  "eventBus",
@@ -24500,7 +24500,7 @@ iu.$inject = [
24500
24500
  "rules",
24501
24501
  "translate"
24502
24502
  ];
24503
- iu.prototype.getMultiElementContextPadEntries = function(e) {
24503
+ ru.prototype.getMultiElementContextPadEntries = function(e) {
24504
24504
  var t = this._modeling, n = {};
24505
24505
  return this._isDeleteAllowed(e) && q(n, {
24506
24506
  delete: {
@@ -24515,7 +24515,7 @@ iu.prototype.getMultiElementContextPadEntries = function(e) {
24515
24515
  }
24516
24516
  }), n;
24517
24517
  };
24518
- iu.prototype._isDeleteAllowed = function(e) {
24518
+ ru.prototype._isDeleteAllowed = function(e) {
24519
24519
  var t = this._rules.allowed("elements.delete", {
24520
24520
  elements: e
24521
24521
  });
@@ -24523,7 +24523,7 @@ iu.prototype._isDeleteAllowed = function(e) {
24523
24523
  return KM(t, n);
24524
24524
  }) : t;
24525
24525
  };
24526
- iu.prototype.getContextPadEntries = function(e) {
24526
+ ru.prototype.getContextPadEntries = function(e) {
24527
24527
  var t = this._contextPad, n = this._modeling, r = this._elementFactory, o = this._connect, a = this._create, l = this._popupMenu, u = this._rules, c = this._autoPlace, d = this._translate, v = {};
24528
24528
  if (e.type === "label")
24529
24529
  return v;
@@ -24770,7 +24770,7 @@ const qM = {
24770
24770
  IM
24771
24771
  ],
24772
24772
  __init__: ["contextPadProvider"],
24773
- contextPadProvider: ["type", iu]
24773
+ contextPadProvider: ["type", ru]
24774
24774
  };
24775
24775
  var Cw = ".djs-palette-toggle", Tw = ".entry", YM = Cw + ", " + Tw, Ah = "djs-palette-", XM = "shown", Ph = "open", mb = "two-column", ZM = 1e3;
24776
24776
  function Ut(e, t) {
@@ -24834,7 +24834,7 @@ Ut.prototype._toggleState = function(e) {
24834
24834
  Ut.prototype._update = function() {
24835
24835
  var e = bt(".djs-palette-entries", this._container), t = this._entries = this.getEntries();
24836
24836
  _p(e), W(t, function(n, r) {
24837
- var o = n.group || "default", a = bt("[data-group=" + Ll(o) + "]", e);
24837
+ var o = n.group || "default", a = bt("[data-group=" + Nl(o) + "]", e);
24838
24838
  a || (a = wt('<div class="group"></div>'), $n(a, "data-group", o), e.appendChild(a));
24839
24839
  var l = n.html || (n.separator ? '<hr class="separator" />' : '<div class="entry" draggable="true"></div>'), u = wt(l);
24840
24840
  if (a.appendChild(u), !n.separator && ($n(u, "data-action", r), n.title && $n(u, "title", n.title), n.className && QM(u, n.className), n.imageUrl)) {
@@ -24913,7 +24913,7 @@ const Aw = {
24913
24913
  __init__: ["palette"],
24914
24914
  palette: ["type", Ut]
24915
24915
  };
24916
- var ou = {
24916
+ var iu = {
24917
24917
  id: "events",
24918
24918
  name: "Events"
24919
24919
  }, eN = {
@@ -24964,7 +24964,7 @@ var ou = {
24964
24964
  type: "bpmn:EndEvent"
24965
24965
  }
24966
24966
  }
24967
- ].map((e) => ({ ...e, group: ou })), aN = [
24967
+ ].map((e) => ({ ...e, group: iu })), aN = [
24968
24968
  {
24969
24969
  label: "Message Start Event",
24970
24970
  actionName: "message-start",
@@ -25001,7 +25001,7 @@ var ou = {
25001
25001
  eventDefinitionType: "bpmn:SignalEventDefinition"
25002
25002
  }
25003
25003
  }
25004
- ].map((e) => ({ ...e, group: ou })), sN = [
25004
+ ].map((e) => ({ ...e, group: iu })), sN = [
25005
25005
  {
25006
25006
  label: "Message Intermediate Catch Event",
25007
25007
  actionName: "message-intermediate-catch",
@@ -25098,7 +25098,7 @@ var ou = {
25098
25098
  eventDefinitionType: "bpmn:SignalEventDefinition"
25099
25099
  }
25100
25100
  }
25101
- ].map((e) => ({ ...e, group: ou })), lN = [
25101
+ ].map((e) => ({ ...e, group: iu })), lN = [
25102
25102
  {
25103
25103
  label: "Message Boundary Event",
25104
25104
  actionName: "message-boundary",
@@ -25221,7 +25221,7 @@ var ou = {
25221
25221
  cancelActivity: !1
25222
25222
  }
25223
25223
  }
25224
- ].map((e) => ({ ...e, group: ou })), uN = [
25224
+ ].map((e) => ({ ...e, group: iu })), uN = [
25225
25225
  {
25226
25226
  label: "Message End Event",
25227
25227
  actionName: "message-end",
@@ -25285,7 +25285,7 @@ var ou = {
25285
25285
  eventDefinitionType: "bpmn:TerminateEventDefinition"
25286
25286
  }
25287
25287
  }
25288
- ].map((e) => ({ ...e, group: ou })), cN = [
25288
+ ].map((e) => ({ ...e, group: iu })), cN = [
25289
25289
  {
25290
25290
  label: "Exclusive Gateway",
25291
25291
  actionName: "exclusive-gateway",
@@ -25498,10 +25498,10 @@ var ou = {
25498
25498
  ...dN,
25499
25499
  ...hN
25500
25500
  ];
25501
- function au(e, t, n, r, o, a) {
25501
+ function ou(e, t, n, r, o, a) {
25502
25502
  this._elementFactory = e, this._popupMenu = t, this._create = n, this._autoPlace = r, this._mouse = o, this._translate = a, this.register();
25503
25503
  }
25504
- au.$inject = [
25504
+ ou.$inject = [
25505
25505
  "elementFactory",
25506
25506
  "popupMenu",
25507
25507
  "create",
@@ -25509,10 +25509,10 @@ au.$inject = [
25509
25509
  "mouse",
25510
25510
  "translate"
25511
25511
  ];
25512
- au.prototype.register = function() {
25512
+ ou.prototype.register = function() {
25513
25513
  this._popupMenu.registerProvider("bpmn-create", this);
25514
25514
  };
25515
- au.prototype.getPopupMenuEntries = function() {
25515
+ ou.prototype.getPopupMenuEntries = function() {
25516
25516
  const e = {};
25517
25517
  return Pw.forEach((t) => {
25518
25518
  const {
@@ -25542,7 +25542,7 @@ au.prototype.getPopupMenuEntries = function() {
25542
25542
  };
25543
25543
  }), e;
25544
25544
  };
25545
- au.prototype._createEntryAction = function(e) {
25545
+ ou.prototype._createEntryAction = function(e) {
25546
25546
  const t = this._create, n = this._mouse, r = this._popupMenu, o = this._elementFactory;
25547
25547
  let a;
25548
25548
  return (l) => (r.close(), e.type === "bpmn:Participant" ? a = o.createParticipantShape(e) : a = o.create("shape", e), l instanceof KeyboardEvent && (l = n.getLastMoveEvent()), t.start(l, a));
@@ -25746,9 +25746,9 @@ tf.prototype._getAppendMenuPosition = function(e) {
25746
25746
  };
25747
25747
  };
25748
25748
  function nf(e) {
25749
- lr.call(this, e);
25749
+ sr.call(this, e);
25750
25750
  }
25751
- Re(nf, lr);
25751
+ Re(nf, sr);
25752
25752
  nf.$inject = [
25753
25753
  "eventBus"
25754
25754
  ];
@@ -25793,7 +25793,7 @@ const EN = {
25793
25793
  "appendContextPadProvider",
25794
25794
  "appendRules"
25795
25795
  ],
25796
- createMenuProvider: ["type", au],
25796
+ createMenuProvider: ["type", ou],
25797
25797
  createPaletteProvider: ["type", Fv],
25798
25798
  createAppendEditorActions: ["type", $v],
25799
25799
  createAppendKeyboardBindings: ["type", ef],
@@ -25857,10 +25857,10 @@ const xN = {
25857
25857
  distributeElements: ["type", zi]
25858
25858
  };
25859
25859
  function rf(e, t, n) {
25860
- lr.call(this, t);
25860
+ sr.call(this, t);
25861
25861
  }
25862
25862
  rf.$inject = ["distributeElements", "eventBus", "rules"];
25863
- Re(rf, lr);
25863
+ Re(rf, sr);
25864
25864
  rf.prototype.init = function() {
25865
25865
  this.addRule("elements.distribute", function(e) {
25866
25866
  var t = e.elements;
@@ -25885,23 +25885,23 @@ var wN = {
25885
25885
  };
25886
25886
  const yb = wN;
25887
25887
  var SN = 900;
25888
- function su(e, t, n, r) {
25888
+ function au(e, t, n, r) {
25889
25889
  this._distributeElements = t, this._translate = n, this._popupMenu = e, this._rules = r, e.registerProvider("align-elements", SN, this);
25890
25890
  }
25891
- su.$inject = [
25891
+ au.$inject = [
25892
25892
  "popupMenu",
25893
25893
  "distributeElements",
25894
25894
  "translate",
25895
25895
  "rules"
25896
25896
  ];
25897
- su.prototype.getPopupMenuEntries = function(e) {
25897
+ au.prototype.getPopupMenuEntries = function(e) {
25898
25898
  var t = {};
25899
25899
  return this._isAllowed(e) && q(t, this._getEntries(e)), t;
25900
25900
  };
25901
- su.prototype._isAllowed = function(e) {
25901
+ au.prototype._isAllowed = function(e) {
25902
25902
  return this._rules.allowed("elements.distribute", { elements: e });
25903
25903
  };
25904
- su.prototype._getEntries = function(e) {
25904
+ au.prototype._getEntries = function(e) {
25905
25905
  var t = this._distributeElements, n = this._translate, r = this._popupMenu, o = {
25906
25906
  "distribute-elements-horizontal": {
25907
25907
  group: "distribute",
@@ -25933,7 +25933,7 @@ const CN = {
25933
25933
  "distributeElementsMenuProvider"
25934
25934
  ],
25935
25935
  bpmnDistributeElements: ["type", rf],
25936
- distributeElementsMenuProvider: ["type", su]
25936
+ distributeElementsMenuProvider: ["type", au]
25937
25937
  };
25938
25938
  var Rw = "is not a registered action", TN = "is already registered";
25939
25939
  function Ar(e, t) {
@@ -26087,7 +26087,7 @@ function Dw(e) {
26087
26087
  });
26088
26088
  }
26089
26089
  Dw.$inject = ["eventBus"];
26090
- var qc = 10;
26090
+ var Kc = 10;
26091
26091
  function Ud(e, t, n) {
26092
26092
  return n || (n = "round"), Math[n](e / t) * t;
26093
26093
  }
@@ -26113,7 +26113,7 @@ function To(e, t, n) {
26113
26113
  "shape.move.end"
26114
26114
  ], RN, function(a) {
26115
26115
  var l = a.originalEvent;
26116
- if (!(!o.active || l && fr(l))) {
26116
+ if (!(!o.active || l && pr(l))) {
26117
26117
  var u = a.context, c = u.gridSnappingContext;
26118
26118
  c || (c = u.gridSnappingContext = {}), ["x", "y"].forEach(function(d) {
26119
26119
  var v = {}, m = MN(a, d, e);
@@ -26129,13 +26129,13 @@ To.prototype.snapEvent = function(e, t, n) {
26129
26129
  Ht(e, t, r);
26130
26130
  };
26131
26131
  To.prototype.getGridSpacing = function() {
26132
- return qc;
26132
+ return Kc;
26133
26133
  };
26134
26134
  To.prototype.snapValue = function(e, t) {
26135
26135
  var n = 0;
26136
- t && t.offset && (n = t.offset), e += n, e = Ud(e, qc);
26136
+ t && t.offset && (n = t.offset), e += n, e = Ud(e, Kc);
26137
26137
  var r, o;
26138
- return t && t.min && (r = t.min, Ge(r) && (r = Ud(r + n, qc, "ceil"), e = Math.max(e, r))), t && t.max && (o = t.max, Ge(o) && (o = Ud(o + n, qc, "floor"), e = Math.min(e, o))), e -= n, e;
26138
+ return t && t.min && (r = t.min, Ge(r) && (r = Ud(r + n, Kc, "ceil"), e = Math.max(e, r))), t && t.max && (o = t.max, Ge(o) && (o = Ud(o + n, Kc, "floor"), e = Math.min(e, o))), e -= n, e;
26139
26139
  };
26140
26140
  To.prototype.isActive = function() {
26141
26141
  return this.active;
@@ -26157,15 +26157,15 @@ function kN(e, t) {
26157
26157
  return l[t];
26158
26158
  l || (l = a.snapConstraints = {}), l[t] || (l[t] = {});
26159
26159
  var u = n.direction;
26160
- r && (Yc(t) ? (l.x.min = r.left, l.x.max = r.right) : (l.y.min = r.top, l.y.max = r.bottom));
26160
+ r && (qc(t) ? (l.x.min = r.left, l.x.max = r.right) : (l.y.min = r.top, l.y.max = r.bottom));
26161
26161
  var c = o.min, d = o.max;
26162
- return c && (Yc(t) ? Eb(u) ? l.x.max = c.left : l.x.min = c.right : bb(u) ? l.y.max = c.top : l.y.min = c.bottom), d && (Yc(t) ? Eb(u) ? l.x.min = d.left : l.x.max = d.right : bb(u) ? l.y.min = d.top : l.y.max = d.bottom), l[t];
26162
+ return c && (qc(t) ? Eb(u) ? l.x.max = c.left : l.x.min = c.right : bb(u) ? l.y.max = c.top : l.y.min = c.bottom), d && (qc(t) ? Eb(u) ? l.x.min = d.left : l.x.max = d.right : bb(u) ? l.y.min = d.top : l.y.max = d.bottom), l[t];
26163
26163
  }
26164
26164
  function MN(e, t, n) {
26165
26165
  var r = e.context, o = e.shape, a = r.gridSnappingContext, l = a.snapLocation, u = a.snapOffset;
26166
- return u && Ge(u[t]) || (u || (u = a.snapOffset = {}), Ge(u[t]) || (u[t] = 0), !o) || (n.get(o.id) || (Yc(t) ? u[t] += o[t] + o.width / 2 : u[t] += o[t] + o.height / 2), !l) || (t === "x" ? /left/.test(l) ? u[t] -= o.width / 2 : /right/.test(l) && (u[t] += o.width / 2) : /top/.test(l) ? u[t] -= o.height / 2 : /bottom/.test(l) && (u[t] += o.height / 2)), u[t];
26166
+ return u && Ge(u[t]) || (u || (u = a.snapOffset = {}), Ge(u[t]) || (u[t] = 0), !o) || (n.get(o.id) || (qc(t) ? u[t] += o[t] + o.width / 2 : u[t] += o[t] + o.height / 2), !l) || (t === "x" ? /left/.test(l) ? u[t] -= o.width / 2 : /right/.test(l) && (u[t] += o.width / 2) : /top/.test(l) ? u[t] -= o.height / 2 : /bottom/.test(l) && (u[t] += o.height / 2)), u[t];
26167
26167
  }
26168
- function Yc(e) {
26168
+ function qc(e) {
26169
26169
  return e === "x";
26170
26170
  }
26171
26171
  function bb(e) {
@@ -26342,7 +26342,7 @@ const UN = {
26342
26342
  bpmnGridSnapping: ["type", Dw]
26343
26343
  };
26344
26344
  var VN = 30, KN = 30;
26345
- function lu(e, t) {
26345
+ function su(e, t) {
26346
26346
  this._interactionEvents = t;
26347
26347
  var n = this;
26348
26348
  e.on([
@@ -26358,14 +26358,14 @@ function lu(e, t) {
26358
26358
  return lt(o) ? n.createSubProcessHit(o, a) : n.createDefaultHit(o, a);
26359
26359
  });
26360
26360
  }
26361
- lu.$inject = [
26361
+ su.$inject = [
26362
26362
  "eventBus",
26363
26363
  "interactionEvents"
26364
26364
  ];
26365
- lu.prototype.createDefaultHit = function(e, t) {
26365
+ su.prototype.createDefaultHit = function(e, t) {
26366
26366
  return this._interactionEvents.removeHits(t), this._interactionEvents.createDefaultHit(e, t), !0;
26367
26367
  };
26368
- lu.prototype.createParticipantHit = function(e, t) {
26368
+ su.prototype.createParticipantHit = function(e, t) {
26369
26369
  return this._interactionEvents.removeHits(t), this._interactionEvents.createBoxHit(t, "no-move", {
26370
26370
  width: e.width,
26371
26371
  height: e.height
@@ -26377,7 +26377,7 @@ lu.prototype.createParticipantHit = function(e, t) {
26377
26377
  height: e.height
26378
26378
  }), !0;
26379
26379
  };
26380
- lu.prototype.createSubProcessHit = function(e, t) {
26380
+ su.prototype.createSubProcessHit = function(e, t) {
26381
26381
  return this._interactionEvents.removeHits(t), this._interactionEvents.createBoxHit(t, "no-move", {
26382
26382
  width: e.width,
26383
26383
  height: e.height
@@ -26391,7 +26391,7 @@ lu.prototype.createSubProcessHit = function(e, t) {
26391
26391
  };
26392
26392
  const qN = {
26393
26393
  __init__: ["bpmnInteractionEvents"],
26394
- bpmnInteractionEvents: ["type", lu]
26394
+ bpmnInteractionEvents: ["type", su]
26395
26395
  };
26396
26396
  function sf(e) {
26397
26397
  e.invoke(Bi, this);
@@ -26520,7 +26520,7 @@ const eL = {
26520
26520
  keyboardMoveSelection: ["type", Lw]
26521
26521
  };
26522
26522
  var Cb = 10;
26523
- function uu(e, t, n, r) {
26523
+ function lu(e, t, n, r) {
26524
26524
  this._dragging = r, this._rules = t;
26525
26525
  var o = this;
26526
26526
  function a(c, d) {
@@ -26553,11 +26553,11 @@ function uu(e, t, n, r) {
26553
26553
  u(c.context);
26554
26554
  });
26555
26555
  }
26556
- uu.prototype.canResize = function(e) {
26556
+ lu.prototype.canResize = function(e) {
26557
26557
  var t = this._rules, n = Sr(e, ["newBounds", "shape", "delta", "direction"]);
26558
26558
  return t.allowed("shape.resize", n);
26559
26559
  };
26560
- uu.prototype.activate = function(e, t, n) {
26560
+ lu.prototype.activate = function(e, t, n) {
26561
26561
  var r = this._dragging, o, a;
26562
26562
  if (typeof n == "string" && (n = {
26563
26563
  direction: n
@@ -26572,14 +26572,14 @@ uu.prototype.activate = function(e, t, n) {
26572
26572
  }
26573
26573
  });
26574
26574
  };
26575
- uu.prototype.computeMinResizeBox = function(e) {
26575
+ lu.prototype.computeMinResizeBox = function(e) {
26576
26576
  var t = e.shape, n = e.direction, r, o;
26577
26577
  return r = e.minDimensions || {
26578
26578
  width: Cb,
26579
26579
  height: Cb
26580
26580
  }, o = Sw(t, e.childrenBoxPadding), zM(n, t, r, o);
26581
26581
  };
26582
- uu.$inject = [
26582
+ lu.$inject = [
26583
26583
  "eventBus",
26584
26584
  "rules",
26585
26585
  "modeling",
@@ -26620,7 +26620,7 @@ Iw.$inject = [
26620
26620
  "canvas",
26621
26621
  "previewSupport"
26622
26622
  ];
26623
- var wc = -6, Sc = 8, Cc = 20, vl = "djs-resizer", iL = ["n", "w", "s", "e", "nw", "ne", "se", "sw"];
26623
+ var xc = -6, wc = 8, Sc = 20, vl = "djs-resizer", iL = ["n", "w", "s", "e", "nw", "ne", "se", "sw"];
26624
26624
  function Ao(e, t, n, r) {
26625
26625
  this._resize = r, this._canvas = t;
26626
26626
  var o = this;
@@ -26644,17 +26644,17 @@ Ao.prototype._createResizer = function(e, t, n, r) {
26644
26644
  ot(l).add(vl), ot(l).add(vl + "-" + e.id), ot(l).add(vl + "-" + r), Ve(o, l);
26645
26645
  var u = $e("rect");
26646
26646
  Se(u, {
26647
+ x: -wc / 2 + a.x,
26648
+ y: -wc / 2 + a.y,
26649
+ width: wc,
26650
+ height: wc
26651
+ }), ot(u).add(vl + "-visual"), Ve(l, u);
26652
+ var c = $e("rect");
26653
+ return Se(c, {
26647
26654
  x: -Sc / 2 + a.x,
26648
26655
  y: -Sc / 2 + a.y,
26649
26656
  width: Sc,
26650
26657
  height: Sc
26651
- }), ot(u).add(vl + "-visual"), Ve(l, u);
26652
- var c = $e("rect");
26653
- return Se(c, {
26654
- x: -Cc / 2 + a.x,
26655
- y: -Cc / 2 + a.y,
26656
- width: Cc,
26657
- height: Cc
26658
26658
  }), ot(c).add(vl + "-hit"), Ve(l, c), lh(l, t, n), l;
26659
26659
  };
26660
26660
  Ao.prototype.createResizer = function(e, t) {
@@ -26685,7 +26685,7 @@ function oL(e) {
26685
26685
  x: 0,
26686
26686
  y: 0
26687
26687
  };
26688
- return e.indexOf("e") !== -1 ? t.x = -wc : e.indexOf("w") !== -1 && (t.x = wc), e.indexOf("s") !== -1 ? t.y = -wc : e.indexOf("n") !== -1 && (t.y = wc), t;
26688
+ return e.indexOf("e") !== -1 ? t.x = -xc : e.indexOf("w") !== -1 && (t.x = xc), e.indexOf("s") !== -1 ? t.y = -xc : e.indexOf("n") !== -1 && (t.y = xc), t;
26689
26689
  }
26690
26690
  function aL(e) {
26691
26691
  return !!e.waypoints;
@@ -26694,19 +26694,19 @@ const Bw = {
26694
26694
  __depends__: [
26695
26695
  ui,
26696
26696
  $i,
26697
- eu
26697
+ Jl
26698
26698
  ],
26699
26699
  __init__: [
26700
26700
  "resize",
26701
26701
  "resizePreview",
26702
26702
  "resizeHandles"
26703
26703
  ],
26704
- resize: ["type", uu],
26704
+ resize: ["type", lu],
26705
26705
  resizePreview: ["type", Iw],
26706
26706
  resizeHandles: ["type", Ao]
26707
26707
  };
26708
26708
  var sL = 2e3;
26709
- function cu(e, t, n, r, o, a, l) {
26709
+ function uu(e, t, n, r, o, a, l) {
26710
26710
  this._bpmnFactory = t, this._canvas = n, this._modeling = o, this._textRenderer = l, r.registerProvider(this), e.on("element.dblclick", function(c) {
26711
26711
  u(c.element, !0);
26712
26712
  }), e.on([
@@ -26738,7 +26738,7 @@ function cu(e, t, n, r, o, a, l) {
26738
26738
  (d || nt(c, ["bpmn:Task", "bpmn:TextAnnotation", "bpmn:Participant"]) || zv(c)) && r.activate(c);
26739
26739
  }
26740
26740
  }
26741
- cu.$inject = [
26741
+ uu.$inject = [
26742
26742
  "eventBus",
26743
26743
  "bpmnFactory",
26744
26744
  "canvas",
@@ -26747,7 +26747,7 @@ cu.$inject = [
26747
26747
  "resizeHandles",
26748
26748
  "textRenderer"
26749
26749
  ];
26750
- cu.prototype.activate = function(e) {
26750
+ uu.prototype.activate = function(e) {
26751
26751
  var t = Hr(e);
26752
26752
  if (t !== void 0) {
26753
26753
  var n = {
@@ -26772,7 +26772,7 @@ cu.prototype.activate = function(e) {
26772
26772
  }), n;
26773
26773
  }
26774
26774
  };
26775
- cu.prototype.getEditingBBox = function(e) {
26775
+ uu.prototype.getEditingBBox = function(e) {
26776
26776
  var t = this._canvas, n = e.label || e, r = t.getAbsoluteBBox(n), o = {
26777
26777
  x: r.x + r.width / 2,
26778
26778
  y: r.y + r.height / 2
@@ -26859,7 +26859,7 @@ cu.prototype.getEditingBBox = function(e) {
26859
26859
  lineHeight: y
26860
26860
  })), { bounds: a, style: b };
26861
26861
  };
26862
- cu.prototype.update = function(e, t, n, r) {
26862
+ uu.prototype.update = function(e, t, n, r) {
26863
26863
  var o, a;
26864
26864
  R(e, "bpmn:TextAnnotation") && (a = this._canvas.getAbsoluteBBox(e), o = {
26865
26865
  x: e.x,
@@ -26948,7 +26948,7 @@ const dL = {
26948
26948
  "labelEditingProvider",
26949
26949
  "labelEditingPreview"
26950
26950
  ],
26951
- labelEditingProvider: ["type", cu],
26951
+ labelEditingProvider: ["type", uu],
26952
26952
  labelEditingPreview: ["type", Fw]
26953
26953
  };
26954
26954
  var jv = [
@@ -26956,7 +26956,7 @@ var jv = [
26956
26956
  "bottom",
26957
26957
  "left",
26958
26958
  "right"
26959
- ], Tc = 10;
26959
+ ], Cc = 10;
26960
26960
  function Wv(e, t) {
26961
26961
  ge.call(this, e), this.postExecuted([
26962
26962
  "connection.create",
@@ -26992,24 +26992,24 @@ function Wv(e, t) {
26992
26992
  case "top":
26993
26993
  v = {
26994
26994
  x: l.x,
26995
- y: d.top - Tc - u.height / 2
26995
+ y: d.top - Cc - u.height / 2
26996
26996
  };
26997
26997
  break;
26998
26998
  case "left":
26999
26999
  v = {
27000
- x: d.left - Tc - u.width / 2,
27000
+ x: d.left - Cc - u.width / 2,
27001
27001
  y: l.y
27002
27002
  };
27003
27003
  break;
27004
27004
  case "bottom":
27005
27005
  v = {
27006
27006
  x: l.x,
27007
- y: d.bottom + Tc + u.height / 2
27007
+ y: d.bottom + Cc + u.height / 2
27008
27008
  };
27009
27009
  break;
27010
27010
  case "right":
27011
27011
  v = {
27012
- x: d.right + Tc + u.width / 2,
27012
+ x: d.right + Cc + u.width / 2,
27013
27013
  y: l.y
27014
27014
  };
27015
27015
  break;
@@ -27187,12 +27187,12 @@ qv.$inject = [
27187
27187
  "moddle"
27188
27188
  ];
27189
27189
  Re(qv, ge);
27190
- var Rh = 20, Dh = 20, Hw = 30, Ac = 2e3;
27190
+ var Rh = 20, Dh = 20, Hw = 30, Tc = 2e3;
27191
27191
  function Yv(e, t, n) {
27192
27192
  ge.call(this, t), t.on([
27193
27193
  "create.start",
27194
27194
  "shape.move.start"
27195
- ], Ac, function(o) {
27195
+ ], Tc, function(o) {
27196
27196
  var a = o.context, l = a.shape, u = e.getRootElement();
27197
27197
  if (!(!R(l, "bpmn:Participant") || !R(u, "bpmn:Process") || !u.children.length)) {
27198
27198
  var c = u.children.filter(function(m) {
@@ -27203,12 +27203,12 @@ function Yv(e, t, n) {
27203
27203
  q(l, v), a.createConstraints = EL(l, d);
27204
27204
  }
27205
27205
  }
27206
- }), t.on("create.start", Ac, function(o) {
27206
+ }), t.on("create.start", Tc, function(o) {
27207
27207
  var a = o.context, l = a.shape, u = e.getRootElement(), c = e.getGraphics(u);
27208
27208
  function d(v) {
27209
27209
  v.element = u, v.gfx = c;
27210
27210
  }
27211
- R(l, "bpmn:Participant") && R(u, "bpmn:Process") && (t.on("element.hover", Ac, d), t.once("create.cleanup", function() {
27211
+ R(l, "bpmn:Participant") && R(u, "bpmn:Process") && (t.on("element.hover", Tc, d), t.once("create.cleanup", function() {
27212
27212
  t.off("element.hover", d);
27213
27213
  }));
27214
27214
  });
@@ -27216,7 +27216,7 @@ function Yv(e, t, n) {
27216
27216
  var o = e.getRootElement();
27217
27217
  return R(o, "bpmn:Collaboration") ? o : n.makeCollaboration();
27218
27218
  }
27219
- this.preExecute("elements.create", Ac, function(o) {
27219
+ this.preExecute("elements.create", Tc, function(o) {
27220
27220
  var a = o.elements, l = o.parent, u = xL(a), c;
27221
27221
  u && R(l, "bpmn:Process") && (o.parent = r(), c = o.hints = o.hints || {}, c.participant = u, c.process = l, c.processRef = Ce(u).get("processRef"));
27222
27222
  }, !0), this.preExecute("shape.create", function(o) {
@@ -27600,7 +27600,7 @@ Re(em, ge);
27600
27600
  function os(e) {
27601
27601
  return R(e, "bpmn:SequenceFlow");
27602
27602
  }
27603
- var Pc = 1500, PL = 2e3;
27603
+ var Ac = 1500, PL = 2e3;
27604
27604
  function zw(e, t, n) {
27605
27605
  t.on([
27606
27606
  "create.hover",
@@ -27611,7 +27611,7 @@ function zw(e, t, n) {
27611
27611
  "shape.move.move",
27612
27612
  "shape.move.out",
27613
27613
  "shape.move.end"
27614
- ], Pc, function(r) {
27614
+ ], Ac, function(r) {
27615
27615
  var o = r.context, a = o.shape || r.shape, l = r.hover;
27616
27616
  R(l, "bpmn:Lane") && !nt(a, ["bpmn:Lane", "bpmn:Participant"]) && (r.hover = Ir(l), r.hoverGfx = e.getGraphics(r.hover));
27617
27617
  var u = n.getRootElement();
@@ -27625,17 +27625,17 @@ function zw(e, t, n) {
27625
27625
  "global-connect.out",
27626
27626
  "global-connect.end",
27627
27627
  "global-connect.cleanup"
27628
- ], Pc, function(r) {
27628
+ ], Ac, function(r) {
27629
27629
  var o = r.hover;
27630
27630
  R(o, "bpmn:Lane") && (r.hover = Ir(o) || o, r.hoverGfx = e.getGraphics(r.hover));
27631
27631
  }), t.on([
27632
27632
  "bendpoint.move.hover"
27633
- ], Pc, function(r) {
27633
+ ], Ac, function(r) {
27634
27634
  var o = r.context, a = r.hover, l = o.type;
27635
27635
  R(a, "bpmn:Lane") && /reconnect/.test(l) && (r.hover = Ir(a) || a, r.hoverGfx = e.getGraphics(r.hover));
27636
27636
  }), t.on([
27637
27637
  "connect.start"
27638
- ], Pc, function(r) {
27638
+ ], Ac, function(r) {
27639
27639
  var o = r.context, a = o.start;
27640
27640
  R(a, "bpmn:Lane") && (o.start = Ir(a) || a);
27641
27641
  }), t.on("shape.move.start", PL, function(r) {
@@ -27955,7 +27955,7 @@ function WL(e) {
27955
27955
  y: e.y + e.height / 2
27956
27956
  };
27957
27957
  }
27958
- function pu(e, t, n) {
27958
+ function cu(e, t, n) {
27959
27959
  var r = Cl(t), o = Cl(n), a = Fr(e, r), l = {
27960
27960
  x: a.x * (n.width / t.width),
27961
27961
  y: a.y * (n.height / t.height)
@@ -28104,7 +28104,7 @@ rm.$inject = [
28104
28104
  "textRenderer"
28105
28105
  ];
28106
28106
  function YL(e, t, n) {
28107
- var r = pu(e, t, n);
28107
+ var r = cu(e, t, n);
28108
28108
  return Pi(Fr(r, e));
28109
28109
  }
28110
28110
  function XL(e, t) {
@@ -28217,19 +28217,19 @@ im.$inject = [
28217
28217
  ];
28218
28218
  function pf(e, t, n) {
28219
28219
  var r = df(e), o = qw(r, t), a = r[0];
28220
- return o.length ? o[o.length - 1] : pu(a.original || a, n, t);
28220
+ return o.length ? o[o.length - 1] : cu(a.original || a, n, t);
28221
28221
  }
28222
28222
  function ff(e, t, n) {
28223
28223
  var r = df(e), o = qw(r, t), a = r[r.length - 1];
28224
- return o.length ? o[0] : pu(a.original || a, n, t);
28224
+ return o.length ? o[0] : cu(a.original || a, n, t);
28225
28225
  }
28226
28226
  function om(e, t, n) {
28227
28227
  var r = df(e), o = Kw(t, n), a = r[0];
28228
- return pu(a.original || a, o, t);
28228
+ return cu(a.original || a, o, t);
28229
28229
  }
28230
28230
  function am(e, t, n) {
28231
28231
  var r = df(e), o = Kw(t, n), a = r[r.length - 1];
28232
- return pu(a.original || a, o, t);
28232
+ return cu(a.original || a, o, t);
28233
28233
  }
28234
28234
  function Kw(e, t) {
28235
28235
  return {
@@ -28278,7 +28278,7 @@ function nO(e, t) {
28278
28278
  return R(e, "bpmn:Participant") && lt(e) && R(t, "bpmn:Participant") && !lt(t);
28279
28279
  }
28280
28280
  function rO(e) {
28281
- var t = Wl([e], !1), n = [], r = [];
28281
+ var t = jl([e], !1), n = [], r = [];
28282
28282
  return t.forEach(function(o) {
28283
28283
  o !== e && (o.incoming.forEach(function(a) {
28284
28284
  R(a, "bpmn:MessageFlow") && n.push(a);
@@ -28418,7 +28418,7 @@ pm.$inject = [
28418
28418
  ];
28419
28419
  function hf(e, t, n, r, o, a) {
28420
28420
  r.invoke(ge, this), this._bpmnReplace = e, this._elementRegistry = n, this._selection = a, this.postExecuted(["elements.create"], 500, function(l) {
28421
- var u = l.context, c = u.parent, d = u.elements, v = ar(d, function(m, y) {
28421
+ var u = l.context, c = u.parent, d = u.elements, v = or(d, function(m, y) {
28422
28422
  var b = t.canReplace([y], y.host || y.parent || c);
28423
28423
  return b ? m.concat(b.replacements) : m;
28424
28424
  }, []);
@@ -28456,23 +28456,23 @@ hf.$inject = [
28456
28456
  "modeling",
28457
28457
  "selection"
28458
28458
  ];
28459
- var aO = 1500, sO = { width: 140, height: 120 }, ca = { width: 300, height: 60 }, $l = { width: 300, height: 150 }, Xw = { width: 140, height: 120 }, Zw = { width: 50, height: 30 };
28459
+ var aO = 1500, sO = { width: 140, height: 120 }, ca = { width: 300, height: 60 }, Fl = { width: 300, height: 150 }, Xw = { width: 140, height: 120 }, Zw = { width: 50, height: 30 };
28460
28460
  function Qw(e) {
28461
28461
  e.on("resize.start", aO, function(t) {
28462
28462
  var n = t.context, r = n.shape, o = n.direction, a = n.balanced;
28463
- (R(r, "bpmn:Lane") || R(r, "bpmn:Participant")) && (n.resizeConstraints = hO(r, o, a)), R(r, "bpmn:Participant") && (n.minDimensions = $l), R(r, "bpmn:SubProcess") && lt(r) && (n.minDimensions = Xw), R(r, "bpmn:TextAnnotation") && (n.minDimensions = Zw);
28463
+ (R(r, "bpmn:Lane") || R(r, "bpmn:Participant")) && (n.resizeConstraints = hO(r, o, a)), R(r, "bpmn:Participant") && (n.minDimensions = Fl), R(r, "bpmn:SubProcess") && lt(r) && (n.minDimensions = Xw), R(r, "bpmn:TextAnnotation") && (n.minDimensions = Zw);
28464
28464
  });
28465
28465
  }
28466
28466
  Qw.$inject = ["eventBus"];
28467
- var Rc = Math.abs, lO = Math.min, uO = Math.max;
28467
+ var Pc = Math.abs, lO = Math.min, uO = Math.max;
28468
28468
  function Jw(e, t, n, r) {
28469
28469
  var o = e[t];
28470
28470
  e[t] = o === void 0 ? n : r(n, o);
28471
28471
  }
28472
- function Dc(e, t, n) {
28472
+ function Rc(e, t, n) {
28473
28473
  return Jw(e, t, n, lO);
28474
28474
  }
28475
- function kc(e, t, n) {
28475
+ function Dc(e, t, n) {
28476
28476
  return Jw(e, t, n, uO);
28477
28477
  }
28478
28478
  var cO = 20, pO = 50, fO = 20, dO = 20;
@@ -28480,14 +28480,14 @@ function hO(e, t, n) {
28480
28480
  var r = Ir(e), o = !0, a = !0, l = Jp(r, [r]), u = Ie(e), c = {}, d = {};
28481
28481
  /e/.test(t) ? d.right = u.left + ca.width : /w/.test(t) && (d.left = u.right - ca.width), l.forEach(function(m) {
28482
28482
  var y = Ie(m);
28483
- /n/.test(t) && (y.top < u.top - 10 && (o = !1), n && Rc(u.top - y.bottom) < 10 && kc(c, "top", y.top + ca.height), Rc(u.top - y.top) < 5 && Dc(d, "top", y.bottom - ca.height)), /s/.test(t) && (y.bottom > u.bottom + 10 && (a = !1), n && Rc(u.bottom - y.top) < 10 && Dc(c, "bottom", y.bottom - ca.height), Rc(u.bottom - y.bottom) < 5 && kc(d, "bottom", y.top + ca.height));
28483
+ /n/.test(t) && (y.top < u.top - 10 && (o = !1), n && Pc(u.top - y.bottom) < 10 && Dc(c, "top", y.top + ca.height), Pc(u.top - y.top) < 5 && Rc(d, "top", y.bottom - ca.height)), /s/.test(t) && (y.bottom > u.bottom + 10 && (a = !1), n && Pc(u.bottom - y.top) < 10 && Rc(c, "bottom", y.bottom - ca.height), Pc(u.bottom - y.bottom) < 5 && Dc(d, "bottom", y.top + ca.height));
28484
28484
  });
28485
28485
  var v = r.children.filter(function(m) {
28486
28486
  return !m.hidden && !m.waypoints && (R(m, "bpmn:FlowElement") || R(m, "bpmn:Artifact"));
28487
28487
  });
28488
28488
  return v.forEach(function(m) {
28489
28489
  var y = Ie(m);
28490
- o && /n/.test(t) && Dc(d, "top", y.top - fO), /e/.test(t) && kc(d, "right", y.right + cO), a && /s/.test(t) && kc(d, "bottom", y.bottom + dO), /w/.test(t) && Dc(d, "left", y.left - pO);
28490
+ o && /n/.test(t) && Rc(d, "top", y.top - fO), /e/.test(t) && Dc(d, "right", y.right + cO), a && /s/.test(t) && Dc(d, "bottom", y.bottom + dO), /w/.test(t) && Rc(d, "left", y.left - pO);
28491
28491
  }), {
28492
28492
  min: d,
28493
28493
  max: c
@@ -28598,8 +28598,8 @@ function t1(e) {
28598
28598
  var n = t.shapes, r = t.axis, o = t.start, a = {};
28599
28599
  return W(n, function(l) {
28600
28600
  var u = l.id;
28601
- R(l, "bpmn:Participant") && (yO(r) ? a[u] = $l : a[u] = {
28602
- width: $l.width,
28601
+ R(l, "bpmn:Participant") && (yO(r) ? a[u] = Fl : a[u] = {
28602
+ width: Fl.width,
28603
28603
  height: bO(l, o)
28604
28604
  }), R(l, "bpmn:SubProcess") && lt(l) && (a[u] = Xw), R(l, "bpmn:TextAnnotation") && (a[u] = Zw), R(l, "bpmn:Group") && (a[u] = sO);
28605
28605
  }), a;
@@ -28611,7 +28611,7 @@ function yO(e) {
28611
28611
  }
28612
28612
  function bO(e, t) {
28613
28613
  var n;
28614
- return EO(e) ? (n = _O(e, t), gO($l.height, n)) : $l.height;
28614
+ return EO(e) ? (n = _O(e, t), gO(Fl.height, n)) : Fl.height;
28615
28615
  }
28616
28616
  function EO(e) {
28617
28617
  return !!Co(e).length;
@@ -28837,7 +28837,7 @@ function hm(e, t) {
28837
28837
  var r = n.shape;
28838
28838
  if (lt(r))
28839
28839
  return;
28840
- var o = Wl(r);
28840
+ var o = jl(r);
28841
28841
  o.forEach(function(l) {
28842
28842
  var u = l.incoming.slice(), c = l.outgoing.slice();
28843
28843
  W(u, function(d) {
@@ -29080,9 +29080,9 @@ function r1(e, t) {
29080
29080
  return n !== "intersect" ? n : null;
29081
29081
  }
29082
29082
  function Dn(e) {
29083
- lr.call(this, e);
29083
+ sr.call(this, e);
29084
29084
  }
29085
- Re(Dn, lr);
29085
+ Re(Dn, sr);
29086
29086
  Dn.$inject = ["eventBus"];
29087
29087
  Dn.prototype.init = function() {
29088
29088
  this.addRule("connection.start", function(e) {
@@ -29094,13 +29094,13 @@ Dn.prototype.init = function() {
29094
29094
  return !1;
29095
29095
  o && (n.parent = o);
29096
29096
  try {
29097
- return Xc(t, n);
29097
+ return Yc(t, n);
29098
29098
  } finally {
29099
29099
  o && (n.parent = null);
29100
29100
  }
29101
29101
  }), this.addRule("connection.reconnect", function(e) {
29102
29102
  var t = e.connection, n = e.source, r = e.target;
29103
- return Xc(n, r, t);
29103
+ return Yc(n, r, t);
29104
29104
  }), this.addRule("connection.updateWaypoints", function(e) {
29105
29105
  return {
29106
29106
  type: e.connection.type
@@ -29111,7 +29111,7 @@ Dn.prototype.init = function() {
29111
29111
  }), this.addRule("elements.create", function(e) {
29112
29112
  var t = e.elements, n = e.position, r = e.target;
29113
29113
  return Jb(r) && !gp(t, r) ? !1 : yo(t, function(o) {
29114
- return Jb(o) ? Xc(o.source, o.target, o) : o.host ? Al(o, o.host, null, n) : Oh(o, r, null);
29114
+ return Jb(o) ? Yc(o.source, o.target, o) : o.host ? Al(o, o.host, null, n) : Oh(o, r, null);
29115
29115
  });
29116
29116
  }), this.addRule("elements.move", function(e) {
29117
29117
  var t = e.target, n = e.shapes, r = e.position;
@@ -29145,7 +29145,7 @@ Dn.prototype.canReplace = l1;
29145
29145
  Dn.prototype.canDrop = vs;
29146
29146
  Dn.prototype.canInsert = gp;
29147
29147
  Dn.prototype.canCreate = Oh;
29148
- Dn.prototype.canConnect = Xc;
29148
+ Dn.prototype.canConnect = Yc;
29149
29149
  Dn.prototype.canResize = c1;
29150
29150
  Dn.prototype.canCopy = h1;
29151
29151
  function DO(e) {
@@ -29240,7 +29240,7 @@ function Lh(e, t) {
29240
29240
  var n = $O(t);
29241
29241
  return n.indexOf(e) !== -1;
29242
29242
  }
29243
- function Xc(e, t, n) {
29243
+ function Yc(e, t, n) {
29244
29244
  if (Mh(e) || Mh(t))
29245
29245
  return null;
29246
29246
  if (!R(n, "bpmn:DataAssociation")) {
@@ -29401,7 +29401,7 @@ function v1(e, t) {
29401
29401
  var r = t.getRootElements();
29402
29402
  W(r, function(o) {
29403
29403
  var a = ct(o), l, u;
29404
- l = Wl([o], !1), l = Je(l, function(c) {
29404
+ l = jl([o], !1), l = Je(l, function(c) {
29405
29405
  return c !== o && !c.labelTarget;
29406
29406
  }), u = fn(l, ct), a.set("planeElement", u);
29407
29407
  });
@@ -29653,12 +29653,12 @@ var Vd = Math.abs, nI = Math.round, xi = {
29653
29653
  w: "left",
29654
29654
  s: "bottom",
29655
29655
  e: "right"
29656
- }, rI = 1500, Mc = {
29656
+ }, rI = 1500, kc = {
29657
29657
  n: "s",
29658
29658
  w: "e",
29659
29659
  s: "n",
29660
29660
  e: "w"
29661
- }, Nc = 20;
29661
+ }, Mc = 20;
29662
29662
  function Pr(e, t, n, r, o, a, l) {
29663
29663
  this._canvas = e, this._dragging = t, this._eventBus = n, this._modeling = r, this._rules = o, this._toolManager = a, this._mouse = l;
29664
29664
  var u = this;
@@ -29724,7 +29724,7 @@ Pr.prototype.init = function(e, t) {
29724
29724
  if (Vd(r) < 5)
29725
29725
  return !1;
29726
29726
  r < 0 && (r *= -1), ya(e) && (r *= -1);
29727
- var a = JO(n, r), l = this._canvas.getRootElement(), u = Wl(l, !0), c = this.calculateAdjustments(u, n, r, o), d = this._eventBus.fire("spaceTool.getMinDimensions", {
29727
+ var a = JO(n, r), l = this._canvas.getRootElement(), u = jl(l, !0), c = this.calculateAdjustments(u, n, r, o), d = this._eventBus.fire("spaceTool.getMinDimensions", {
29728
29728
  axis: n,
29729
29729
  direction: a,
29730
29730
  shapes: c.resizingShapes,
@@ -29801,10 +29801,10 @@ Pr.prototype.isActive = function() {
29801
29801
  };
29802
29802
  function tE(e) {
29803
29803
  return {
29804
- top: e.top - Nc,
29805
- right: e.right + Nc,
29806
- bottom: e.bottom + Nc,
29807
- left: e.left - Nc
29804
+ top: e.top - Mc,
29805
+ right: e.right + Mc,
29806
+ bottom: e.bottom + Mc,
29807
+ left: e.left - Mc
29808
29808
  };
29809
29809
  }
29810
29810
  function nE(e) {
@@ -29824,9 +29824,9 @@ function iI(e, t, n, r, o) {
29824
29824
  }), w = Je(y, function(Q) {
29825
29825
  return !Ih(Q) && !Bh(Q) && ha(a, Q);
29826
29826
  }), T, I, D, k = [], P = [], M, L, j, z;
29827
- _.length && (I = tE(Ie(jt(_))), T = r - b[oo[n]] + I[oo[n]], n === "n" ? u.bottom = d = Ge(d) ? Math.min(d, T) : T : n === "w" ? u.right = d = Ge(d) ? Math.min(d, T) : T : n === "s" ? u.top = c = Ge(c) ? Math.max(c, T) : T : n === "e" && (u.left = c = Ge(c) ? Math.max(c, T) : T)), w.length && (D = tE(Ie(jt(w))), T = r - D[oo[Mc[n]]] + b[oo[Mc[n]]], n === "n" ? u.bottom = d = Ge(d) ? Math.min(d, T) : T : n === "w" ? u.right = d = Ge(d) ? Math.min(d, T) : T : n === "s" ? u.top = c = Ge(c) ? Math.max(c, T) : T : n === "e" && (u.left = c = Ge(c) ? Math.max(c, T) : T)), m && m.length && (m.forEach(function(Q) {
29827
+ _.length && (I = tE(Ie(jt(_))), T = r - b[oo[n]] + I[oo[n]], n === "n" ? u.bottom = d = Ge(d) ? Math.min(d, T) : T : n === "w" ? u.right = d = Ge(d) ? Math.min(d, T) : T : n === "s" ? u.top = c = Ge(c) ? Math.max(c, T) : T : n === "e" && (u.left = c = Ge(c) ? Math.max(c, T) : T)), w.length && (D = tE(Ie(jt(w))), T = r - D[oo[kc[n]]] + b[oo[kc[n]]], n === "n" ? u.bottom = d = Ge(d) ? Math.min(d, T) : T : n === "w" ? u.right = d = Ge(d) ? Math.min(d, T) : T : n === "s" ? u.top = c = Ge(c) ? Math.max(c, T) : T : n === "e" && (u.left = c = Ge(c) ? Math.max(c, T) : T)), m && m.length && (m.forEach(function(Q) {
29828
29828
  ha(a, Q) ? k.push(Q) : P.push(Q);
29829
- }), k.length && (M = Ie(jt(k.map(qe))), L = b[oo[Mc[n]]] - (M[oo[Mc[n]]] - r)), P.length && (j = Ie(jt(P.map(qe))), z = j[oo[n]] - (b[oo[n]] - r)), n === "n" ? (T = Math.min(L || 1 / 0, z || 1 / 0), u.bottom = d = Ge(d) ? Math.min(d, T) : T) : n === "w" ? (T = Math.min(L || 1 / 0, z || 1 / 0), u.right = d = Ge(d) ? Math.min(d, T) : T) : n === "s" ? (T = Math.max(L || -1 / 0, z || -1 / 0), u.top = c = Ge(c) ? Math.max(c, T) : T) : n === "e" && (T = Math.max(L || -1 / 0, z || -1 / 0), u.left = c = Ge(c) ? Math.max(c, T) : T));
29829
+ }), k.length && (M = Ie(jt(k.map(qe))), L = b[oo[kc[n]]] - (M[oo[kc[n]]] - r)), P.length && (j = Ie(jt(P.map(qe))), z = j[oo[n]] - (b[oo[n]] - r)), n === "n" ? (T = Math.min(L || 1 / 0, z || 1 / 0), u.bottom = d = Ge(d) ? Math.min(d, T) : T) : n === "w" ? (T = Math.min(L || 1 / 0, z || 1 / 0), u.right = d = Ge(d) ? Math.min(d, T) : T) : n === "s" ? (T = Math.max(L || -1 / 0, z || -1 / 0), u.top = c = Ge(c) ? Math.max(c, T) : T) : n === "e" && (T = Math.max(L || -1 / 0, z || -1 / 0), u.left = c = Ge(c) ? Math.max(c, T) : T));
29830
29830
  var H = o && o[v.id];
29831
29831
  H && (n === "n" ? (T = r + v[xi[t]] - H[xi[t]], u.bottom = d = Ge(d) ? Math.min(d, T) : T) : n === "w" ? (T = r + v[xi[t]] - H[xi[t]], u.right = d = Ge(d) ? Math.min(d, T) : T) : n === "s" ? (T = r - v[xi[t]] + H[xi[t]], u.top = c = Ge(c) ? Math.max(c, T) : T) : n === "e" && (T = r - v[xi[t]] + H[xi[t]], u.left = c = Ge(c) ? Math.max(c, T) : T));
29832
29832
  }), u;
@@ -29844,7 +29844,7 @@ function Ih(e) {
29844
29844
  function Bh(e) {
29845
29845
  return !!e.labelTarget;
29846
29846
  }
29847
- var Kd = "djs-dragging", rE = "djs-resizing", aI = 250, Lc = Math.max;
29847
+ var Kd = "djs-dragging", rE = "djs-resizing", aI = 250, Nc = Math.max;
29848
29848
  function g1(e, t, n, r, o) {
29849
29849
  function a(l, u) {
29850
29850
  W(l, function(c) {
@@ -29924,13 +29924,13 @@ function g1(e, t, n, r, o) {
29924
29924
  k[D[u.axis]] = 0, rr(u.dragGroup, k.x, k.y), W(u.frames, function(P) {
29925
29925
  var M = P.element, L = P.initialBounds, j, z;
29926
29926
  u.direction === "e" ? Se(M, {
29927
- width: Lc(L.width + k.x, 5)
29928
- }) : (j = Lc(L.width - k.x, 5), Se(M, {
29927
+ width: Nc(L.width + k.x, 5)
29928
+ }) : (j = Nc(L.width - k.x, 5), Se(M, {
29929
29929
  width: j,
29930
29930
  x: L.x + L.width - j
29931
29931
  })), u.direction === "s" ? Se(M, {
29932
- height: Lc(L.height + k.y, 5)
29933
- }) : (z = Lc(L.height - k.y, 5), Se(M, {
29932
+ height: Nc(L.height + k.y, 5)
29933
+ }) : (z = Nc(L.height - k.y, 5), Se(M, {
29934
29934
  height: z,
29935
29935
  y: L.y + L.height - z
29936
29936
  }));
@@ -29963,8 +29963,8 @@ const lI = {
29963
29963
  $i,
29964
29964
  ui,
29965
29965
  mf,
29966
- eu,
29967
- nu
29966
+ Jl,
29967
+ tu
29968
29968
  ],
29969
29969
  spaceTool: ["type", Pr],
29970
29970
  spaceToolPreview: ["type", g1]
@@ -30499,7 +30499,7 @@ Rr.prototype.createDiPlane = function(e, t) {
30499
30499
  bpmnElement: e
30500
30500
  }, t));
30501
30501
  };
30502
- function ur(e, t, n, r) {
30502
+ function lr(e, t, n, r) {
30503
30503
  ge.call(this, e), this._bpmnFactory = t, this._translate = r;
30504
30504
  var o = this;
30505
30505
  function a(b) {
@@ -30594,24 +30594,24 @@ function ur(e, t, n, r) {
30594
30594
  }
30595
30595
  this.executed(["element.updateAttachment"], _r(y)), this.reverted(["element.updateAttachment"], _r(y));
30596
30596
  }
30597
- Re(ur, ge);
30598
- ur.$inject = [
30597
+ Re(lr, ge);
30598
+ lr.$inject = [
30599
30599
  "eventBus",
30600
30600
  "bpmnFactory",
30601
30601
  "connectionDocking",
30602
30602
  "translate"
30603
30603
  ];
30604
- ur.prototype.updateAttachment = function(e) {
30604
+ lr.prototype.updateAttachment = function(e) {
30605
30605
  var t = e.shape, n = t.businessObject, r = t.host;
30606
30606
  n.attachedToRef = r && r.businessObject;
30607
30607
  };
30608
- ur.prototype.updateParent = function(e, t) {
30608
+ lr.prototype.updateParent = function(e, t) {
30609
30609
  if (!(e instanceof Ap) && !(R(e, "bpmn:DataStoreReference") && e.parent && R(e.parent, "bpmn:Collaboration"))) {
30610
30610
  var n = e.parent, r = e.businessObject, o = ct(e), a = n && n.businessObject, l = ct(n);
30611
30611
  R(e, "bpmn:FlowNode") && this.updateFlowNodeRefs(r, a, t && t.businessObject), R(e, "bpmn:DataOutputAssociation") && (e.source ? a = e.source.businessObject : a = null), R(e, "bpmn:DataInputAssociation") && (e.target ? a = e.target.businessObject : a = null), this.updateSemanticParent(r, a), R(e, "bpmn:DataObjectReference") && r.dataObjectRef && this.updateSemanticParent(r.dataObjectRef, a), this.updateDiParent(o, l);
30612
30612
  }
30613
30613
  };
30614
- ur.prototype.updateBounds = function(e) {
30614
+ lr.prototype.updateBounds = function(e) {
30615
30615
  var t = ct(e), n = wI(e);
30616
30616
  if (n) {
30617
30617
  var r = Fr(n, t.get("bounds"));
@@ -30628,17 +30628,17 @@ ur.prototype.updateBounds = function(e) {
30628
30628
  height: e.height
30629
30629
  });
30630
30630
  };
30631
- ur.prototype.updateFlowNodeRefs = function(e, t, n) {
30631
+ lr.prototype.updateFlowNodeRefs = function(e, t, n) {
30632
30632
  if (n !== t) {
30633
30633
  var r, o;
30634
30634
  R(n, "bpmn:Lane") && (r = n.get("flowNodeRef"), Wt(r, e)), R(t, "bpmn:Lane") && (o = t.get("flowNodeRef"), Jt(o, e));
30635
30635
  }
30636
30636
  };
30637
- ur.prototype.updateDiConnection = function(e, t, n) {
30637
+ lr.prototype.updateDiConnection = function(e, t, n) {
30638
30638
  var r = ct(e), o = ct(t), a = ct(n);
30639
30639
  r.sourceElement && r.sourceElement.bpmnElement !== Ce(t) && (r.sourceElement = t && o), r.targetElement && r.targetElement.bpmnElement !== Ce(n) && (r.targetElement = n && a);
30640
30640
  };
30641
- ur.prototype.updateDiParent = function(e, t) {
30641
+ lr.prototype.updateDiParent = function(e, t) {
30642
30642
  if (t && !R(t, "bpmndi:BPMNPlane") && (t = t.$parent), e.$parent !== t) {
30643
30643
  var n = (t || e.$parent).get("planeElement");
30644
30644
  t ? (n.push(e), e.$parent = t) : (Wt(n, e), e.$parent = null);
@@ -30649,11 +30649,11 @@ function xI(e) {
30649
30649
  e = e.$parent;
30650
30650
  return e;
30651
30651
  }
30652
- ur.prototype.getLaneSet = function(e) {
30652
+ lr.prototype.getLaneSet = function(e) {
30653
30653
  var t, n;
30654
30654
  return R(e, "bpmn:Lane") ? (t = e.childLaneSet, t || (t = this._bpmnFactory.create("bpmn:LaneSet"), e.childLaneSet = t, t.$parent = e), t) : (R(e, "bpmn:Participant") && (e = e.processRef), n = e.get("laneSets"), t = n[0], t || (t = this._bpmnFactory.create("bpmn:LaneSet"), t.$parent = e, n.push(t)), t);
30655
30655
  };
30656
- ur.prototype.updateSemanticParent = function(e, t, n) {
30656
+ lr.prototype.updateSemanticParent = function(e, t, n) {
30657
30657
  var r, o = this._translate;
30658
30658
  if (e.$parent !== t && !((R(e, "bpmn:DataInput") || R(e, "bpmn:DataOutput")) && (R(t, "bpmn:Participant") && "processRef" in t && (t = t.processRef), "ioSpecification" in t && t.ioSpecification === e.$parent))) {
30659
30659
  if (R(e, "bpmn:Lane"))
@@ -30699,11 +30699,11 @@ ur.prototype.updateSemanticParent = function(e, t, n) {
30699
30699
  }
30700
30700
  }
30701
30701
  };
30702
- ur.prototype.updateConnectionWaypoints = function(e) {
30702
+ lr.prototype.updateConnectionWaypoints = function(e) {
30703
30703
  var t = ct(e);
30704
30704
  t.set("waypoint", this._bpmnFactory.createDiWaypoints(e.waypoints));
30705
30705
  };
30706
- ur.prototype.updateConnection = function(e) {
30706
+ lr.prototype.updateConnection = function(e) {
30707
30707
  var t = e.connection, n = Ce(t), r = t.source, o = Ce(r), a = t.target, l = Ce(t.target), u;
30708
30708
  if (R(n, "bpmn:DataAssociation"))
30709
30709
  R(n, "bpmn:DataInputAssociation") ? (n.get("sourceRef")[0] = o, u = e.parent || e.newParent || l, this.updateSemanticParent(n, l, u)) : R(n, "bpmn:DataOutputAssociation") && (u = e.parent || e.newParent || o, this.updateSemanticParent(n, o, u), n.targetRef = l);
@@ -30713,7 +30713,7 @@ ur.prototype.updateConnection = function(e) {
30713
30713
  }
30714
30714
  this.updateConnectionWaypoints(t), this.updateDiConnection(t, r, a);
30715
30715
  };
30716
- ur.prototype._getLabel = function(e) {
30716
+ lr.prototype._getLabel = function(e) {
30717
30717
  return e.label || (e.label = this._bpmnFactory.createDiLabel()), e.label;
30718
30718
  };
30719
30719
  function _r(e) {
@@ -30745,7 +30745,7 @@ Ro.prototype.baseCreate = Oi.prototype.create;
30745
30745
  Ro.prototype.create = function(e, t) {
30746
30746
  if (e === "label") {
30747
30747
  var n = t.di || this._bpmnFactory.createDiLabel();
30748
- return this.baseCreate(e, q({ type: "label", di: n }, Nl, t));
30748
+ return this.baseCreate(e, q({ type: "label", di: n }, Ml, t));
30749
30749
  }
30750
30750
  return this.createBpmnElement(e, t);
30751
30751
  };
@@ -30862,7 +30862,7 @@ Ef.prototype.revert = function(e) {
30862
30862
  var t = e.connection;
30863
30863
  return this._canvas.removeConnection(t), t.source = null, t.target = null, t;
30864
30864
  };
30865
- var Oc = Math.round;
30865
+ var Lc = Math.round;
30866
30866
  function Tm(e) {
30867
30867
  this._modeling = e;
30868
30868
  }
@@ -30880,12 +30880,12 @@ Tm.prototype.preExecute = function(e) {
30880
30880
  W(t, function(m) {
30881
30881
  lE(m) && (m.waypoints = fn(m.waypoints, function(y) {
30882
30882
  return {
30883
- x: Oc(y.x - c.x - c.width / 2 + o.x),
30884
- y: Oc(y.y - c.y - c.height / 2 + o.y)
30883
+ x: Lc(y.x - c.x - c.width / 2 + o.x),
30884
+ y: Lc(y.y - c.y - c.height / 2 + o.y)
30885
30885
  };
30886
30886
  })), q(m, {
30887
- x: Oc(m.x - c.x - c.width / 2 + o.x),
30888
- y: Oc(m.y - c.y - c.height / 2 + o.y)
30887
+ x: Lc(m.x - c.x - c.width / 2 + o.x),
30888
+ y: Lc(m.y - c.y - c.height / 2 + o.y)
30889
30889
  });
30890
30890
  });
30891
30891
  var d = Sp(t), v = {};
@@ -30945,18 +30945,18 @@ Do.prototype.revert = function(e) {
30945
30945
  var t = e.shape;
30946
30946
  return this._canvas.removeShape(t), t;
30947
30947
  };
30948
- function fu(e) {
30948
+ function pu(e) {
30949
30949
  Do.call(this, e);
30950
30950
  }
30951
- Re(fu, Do);
30952
- fu.$inject = ["canvas"];
30951
+ Re(pu, Do);
30952
+ pu.$inject = ["canvas"];
30953
30953
  var AI = Do.prototype.execute;
30954
- fu.prototype.execute = function(e) {
30954
+ pu.prototype.execute = function(e) {
30955
30955
  var t = e.shape;
30956
30956
  return RI(t), t.labelTarget = e.labelTarget, AI.call(this, e);
30957
30957
  };
30958
30958
  var PI = Do.prototype.revert;
30959
- fu.prototype.revert = function(e) {
30959
+ pu.prototype.revert = function(e) {
30960
30960
  return e.shape.labelTarget = null, PI.call(this, e);
30961
30961
  };
30962
30962
  function RI(e) {
@@ -30964,14 +30964,14 @@ function RI(e) {
30964
30964
  typeof e[t] > "u" && (e[t] = 0);
30965
30965
  });
30966
30966
  }
30967
- function du(e, t) {
30967
+ function fu(e, t) {
30968
30968
  this._canvas = e, this._modeling = t;
30969
30969
  }
30970
- du.$inject = [
30970
+ fu.$inject = [
30971
30971
  "canvas",
30972
30972
  "modeling"
30973
30973
  ];
30974
- du.prototype.preExecute = function(e) {
30974
+ fu.prototype.preExecute = function(e) {
30975
30975
  var t = this._modeling, n = e.connection;
30976
30976
  co(n.incoming, function(r) {
30977
30977
  t.removeConnection(r, { nested: !0 });
@@ -30979,11 +30979,11 @@ du.prototype.preExecute = function(e) {
30979
30979
  t.removeConnection(r, { nested: !0 });
30980
30980
  });
30981
30981
  };
30982
- du.prototype.execute = function(e) {
30982
+ fu.prototype.execute = function(e) {
30983
30983
  var t = e.connection, n = t.parent;
30984
30984
  return e.parent = n, e.parentIndex = Jh(n.children, t), e.source = t.source, e.target = t.target, this._canvas.removeConnection(t), t.source = null, t.target = null, t;
30985
30985
  };
30986
- du.prototype.revert = function(e) {
30986
+ fu.prototype.revert = function(e) {
30987
30987
  var t = e.connection, n = e.parent, r = e.parentIndex;
30988
30988
  return t.source = e.source, t.target = e.target, Jt(n.children, t, r), this._canvas.addConnection(t, n), t;
30989
30989
  };
@@ -31000,11 +31000,11 @@ Am.prototype.postExecute = function(e) {
31000
31000
  n.get(o.id) && (o.waypoints ? t.removeConnection(o) : t.removeShape(o));
31001
31001
  });
31002
31002
  };
31003
- function hu(e, t) {
31003
+ function du(e, t) {
31004
31004
  this._canvas = e, this._modeling = t;
31005
31005
  }
31006
- hu.$inject = ["canvas", "modeling"];
31007
- hu.prototype.preExecute = function(e) {
31006
+ du.$inject = ["canvas", "modeling"];
31007
+ du.prototype.preExecute = function(e) {
31008
31008
  var t = this._modeling, n = e.shape;
31009
31009
  co(n.incoming, function(r) {
31010
31010
  t.removeConnection(r, { nested: !0 });
@@ -31014,11 +31014,11 @@ hu.prototype.preExecute = function(e) {
31014
31014
  DI(r) ? t.removeConnection(r, { nested: !0 }) : t.removeShape(r, { nested: !0 });
31015
31015
  });
31016
31016
  };
31017
- hu.prototype.execute = function(e) {
31017
+ du.prototype.execute = function(e) {
31018
31018
  var t = this._canvas, n = e.shape, r = n.parent;
31019
31019
  return e.oldParent = r, e.oldParentIndex = Jh(r.children, n), t.removeShape(n), n;
31020
31020
  };
31021
- hu.prototype.revert = function(e) {
31021
+ du.prototype.revert = function(e) {
31022
31022
  var t = this._canvas, n = e.shape, r = e.oldParent, o = e.oldParentIndex;
31023
31023
  return Jt(r.children, n, o), t.addShape(n, r), n;
31024
31024
  };
@@ -31115,13 +31115,13 @@ Rm.prototype.addAll = function(e, t) {
31115
31115
  var n = u2(e, !!t, this);
31116
31116
  return q(this, n), this;
31117
31117
  };
31118
- function vu(e) {
31118
+ function hu(e) {
31119
31119
  this._modeling = e;
31120
31120
  }
31121
- vu.prototype.moveRecursive = function(e, t, n) {
31121
+ hu.prototype.moveRecursive = function(e, t, n) {
31122
31122
  return e ? this.moveClosure(this.getClosure(e), t, n) : [];
31123
31123
  };
31124
- vu.prototype.moveClosure = function(e, t, n, r, o) {
31124
+ hu.prototype.moveClosure = function(e, t, n, r, o) {
31125
31125
  var a = this._modeling, l = e.allShapes, u = e.allConnections, c = e.enclosedConnections, d = e.topLevel, v = !1;
31126
31126
  o && o.parent === n && (v = !0), W(l, function(m) {
31127
31127
  a.moveShape(m, t, d[m.id] && !v && n, {
@@ -31136,11 +31136,11 @@ vu.prototype.moveClosure = function(e, t, n, r, o) {
31136
31136
  });
31137
31137
  });
31138
31138
  };
31139
- vu.prototype.getClosure = function(e) {
31139
+ hu.prototype.getClosure = function(e) {
31140
31140
  return new Rm().addAll(e, !0);
31141
31141
  };
31142
31142
  function wf(e) {
31143
- this._helper = new vu(e);
31143
+ this._helper = new hu(e);
31144
31144
  }
31145
31145
  wf.$inject = ["modeling"];
31146
31146
  wf.prototype.preExecute = function(e) {
@@ -31157,7 +31157,7 @@ wf.prototype.postExecute = function(e) {
31157
31157
  );
31158
31158
  };
31159
31159
  function Da(e) {
31160
- this._modeling = e, this._helper = new vu(e);
31160
+ this._modeling = e, this._helper = new hu(e);
31161
31161
  }
31162
31162
  Da.$inject = ["modeling"];
31163
31163
  Da.prototype.execute = function(e) {
@@ -31195,21 +31195,21 @@ Da.prototype.moveChildren = function(e) {
31195
31195
  Da.prototype.getNewParent = function(e) {
31196
31196
  return e.newParent || e.shape.parent;
31197
31197
  };
31198
- function mu(e) {
31198
+ function vu(e) {
31199
31199
  this._modeling = e;
31200
31200
  }
31201
- mu.$inject = ["modeling"];
31202
- mu.prototype.execute = function(e) {
31201
+ vu.$inject = ["modeling"];
31202
+ vu.prototype.execute = function(e) {
31203
31203
  var t = e.newSource, n = e.newTarget, r = e.connection, o = e.dockingOrPoints;
31204
31204
  if (!t && !n)
31205
31205
  throw new Error("newSource or newTarget required");
31206
31206
  return et(o) && (e.oldWaypoints = r.waypoints, r.waypoints = o), t && (e.oldSource = r.source, r.source = t), n && (e.oldTarget = r.target, r.target = n), r;
31207
31207
  };
31208
- mu.prototype.postExecute = function(e) {
31208
+ vu.prototype.postExecute = function(e) {
31209
31209
  var t = e.connection, n = e.newSource, r = e.newTarget, o = e.dockingOrPoints, a = e.hints || {}, l = {};
31210
31210
  a.connectionStart && (l.connectionStart = a.connectionStart), a.connectionEnd && (l.connectionEnd = a.connectionEnd), a.layoutConnection !== !1 && (n && (!r || a.docking === "source") && (l.connectionStart = l.connectionStart || pE(et(o) ? o[0] : o)), r && (!n || a.docking === "target") && (l.connectionEnd = l.connectionEnd || pE(et(o) ? o[o.length - 1] : o)), a.newWaypoints && (l.waypoints = a.newWaypoints), this._modeling.layoutConnection(t, l));
31211
31211
  };
31212
- mu.prototype.revert = function(e) {
31212
+ vu.prototype.revert = function(e) {
31213
31213
  var t = e.oldSource, n = e.oldTarget, r = e.oldWaypoints, o = e.connection;
31214
31214
  return t && (o.source = t), n && (o.target = n), r && (o.waypoints = r), o;
31215
31215
  };
@@ -31277,11 +31277,11 @@ ji.prototype.reconnectStart = function(e, t, n, r) {
31277
31277
  ji.prototype.reconnectEnd = function(e, t, n, r) {
31278
31278
  this._modeling.reconnectEnd(e, t, n, r);
31279
31279
  };
31280
- function gu(e) {
31280
+ function mu(e) {
31281
31281
  this._modeling = e;
31282
31282
  }
31283
- gu.$inject = ["modeling"];
31284
- gu.prototype.execute = function(e) {
31283
+ mu.$inject = ["modeling"];
31284
+ mu.prototype.execute = function(e) {
31285
31285
  var t = e.shape, n = e.newBounds, r = e.minBounds;
31286
31286
  if (n.x === void 0 || n.y === void 0 || n.width === void 0 || n.height === void 0)
31287
31287
  throw new Error("newBounds must have {x, y, width, height} properties");
@@ -31301,7 +31301,7 @@ gu.prototype.execute = function(e) {
31301
31301
  y: n.y
31302
31302
  }), t;
31303
31303
  };
31304
- gu.prototype.postExecute = function(e) {
31304
+ mu.prototype.postExecute = function(e) {
31305
31305
  var t = this._modeling, n = e.shape, r = e.oldBounds, o = e.hints || {};
31306
31306
  o.layout !== !1 && (W(n.incoming, function(a) {
31307
31307
  t.layoutConnection(a, {
@@ -31313,7 +31313,7 @@ gu.prototype.postExecute = function(e) {
31313
31313
  });
31314
31314
  }));
31315
31315
  };
31316
- gu.prototype.revert = function(e) {
31316
+ mu.prototype.revert = function(e) {
31317
31317
  var t = e.shape, n = e.oldBounds;
31318
31318
  return q(t, {
31319
31319
  width: n.width,
@@ -31497,19 +31497,19 @@ vt.prototype.getHandlers = function() {
31497
31497
  return {
31498
31498
  "shape.append": bf,
31499
31499
  "shape.create": Do,
31500
- "shape.delete": hu,
31500
+ "shape.delete": du,
31501
31501
  "shape.move": Da,
31502
- "shape.resize": gu,
31502
+ "shape.resize": mu,
31503
31503
  "shape.replace": ji,
31504
31504
  "shape.toggleCollapse": Sf,
31505
31505
  spaceTool: ko,
31506
- "label.create": fu,
31506
+ "label.create": pu,
31507
31507
  "connection.create": Ef,
31508
- "connection.delete": du,
31508
+ "connection.delete": fu,
31509
31509
  "connection.move": Pm,
31510
31510
  "connection.layout": xf,
31511
31511
  "connection.updateWaypoints": Dm,
31512
- "connection.reconnect": mu,
31512
+ "connection.reconnect": vu,
31513
31513
  "elements.create": Tm,
31514
31514
  "elements.move": wf,
31515
31515
  "elements.delete": Am,
@@ -31726,7 +31726,7 @@ vt.prototype.connect = function(e, t, n, r) {
31726
31726
  return this.createConnection(e, t, n || {}, e.parent, r);
31727
31727
  };
31728
31728
  vt.prototype._create = function(e, t) {
31729
- return t instanceof Vl ? t : this._elementFactory.create(e, t);
31729
+ return t instanceof Gl ? t : this._elementFactory.create(e, t);
31730
31730
  };
31731
31731
  vt.prototype.toggleCollapse = function(e, t) {
31732
31732
  var n = {
@@ -31735,27 +31735,27 @@ vt.prototype.toggleCollapse = function(e, t) {
31735
31735
  };
31736
31736
  this._commandStack.execute("shape.toggleCollapse", n);
31737
31737
  };
31738
- function yu(e) {
31738
+ function gu(e) {
31739
31739
  this._elementRegistry = e;
31740
31740
  }
31741
- yu.$inject = ["elementRegistry"];
31742
- yu.prototype.execute = function(e) {
31741
+ gu.$inject = ["elementRegistry"];
31742
+ gu.prototype.execute = function(e) {
31743
31743
  var t = e.element, n = e.moddleElement, r = e.properties;
31744
31744
  if (!n)
31745
31745
  throw new Error("<moddleElement> required");
31746
31746
  var o = e.changed || this.getVisualReferences(n).concat(t), a = e.oldProperties || NI(n, ep(r));
31747
31747
  return A1(n, r), e.oldProperties = a, e.changed = o, o;
31748
31748
  };
31749
- yu.prototype.revert = function(e) {
31749
+ gu.prototype.revert = function(e) {
31750
31750
  var t = e.oldProperties, n = e.moddleElement, r = e.changed;
31751
31751
  return A1(n, t), r;
31752
31752
  };
31753
- yu.prototype.getVisualReferences = function(e) {
31753
+ gu.prototype.getVisualReferences = function(e) {
31754
31754
  var t = this._elementRegistry;
31755
31755
  return R(e, "bpmn:DataObject") ? LI(e, t) : [];
31756
31756
  };
31757
31757
  function NI(e, t) {
31758
- return ar(t, function(n, r) {
31758
+ return or(t, function(n, r) {
31759
31759
  return n[r] = e.get(r), n;
31760
31760
  }, {});
31761
31761
  }
@@ -31773,31 +31773,31 @@ var yl = "default", Di = "id", P1 = "di", OI = {
31773
31773
  width: 0,
31774
31774
  height: 0
31775
31775
  };
31776
- function bu(e, t, n, r, o) {
31776
+ function yu(e, t, n, r, o) {
31777
31777
  this._elementRegistry = e, this._moddle = t, this._translate = n, this._modeling = r, this._textRenderer = o;
31778
31778
  }
31779
- bu.$inject = [
31779
+ yu.$inject = [
31780
31780
  "elementRegistry",
31781
31781
  "moddle",
31782
31782
  "translate",
31783
31783
  "modeling",
31784
31784
  "textRenderer"
31785
31785
  ];
31786
- bu.prototype.execute = function(e) {
31786
+ yu.prototype.execute = function(e) {
31787
31787
  var t = e.element, n = [t], r = this._translate;
31788
31788
  if (!t)
31789
31789
  throw new Error(r("element required"));
31790
31790
  var o = this._elementRegistry, a = this._moddle.ids, l = t.businessObject, u = HI(e.properties), c = e.oldProperties || II(t, u);
31791
31791
  return R1(u, l) && (a.unclaim(l[Di]), o.updateId(t, u[Di]), a.claim(u[Di], l)), yl in u && (u[yl] && n.push(o.get(u[yl].id)), l[yl] && n.push(o.get(l[yl].id))), D1(t, u), e.oldProperties = c, e.changed = n, n;
31792
31792
  };
31793
- bu.prototype.postExecute = function(e) {
31793
+ yu.prototype.postExecute = function(e) {
31794
31794
  var t = e.element, n = t.label, r = n && Ce(n).name;
31795
31795
  if (r) {
31796
31796
  var o = this._textRenderer.getExternalLabelBounds(n, r);
31797
31797
  this._modeling.resizeShape(n, o, OI);
31798
31798
  }
31799
31799
  };
31800
- bu.prototype.revert = function(e) {
31800
+ yu.prototype.revert = function(e) {
31801
31801
  var t = e.element, n = e.properties, r = e.oldProperties, o = t.businessObject, a = this._elementRegistry, l = this._moddle.ids;
31802
31802
  return D1(t, r), R1(n, o) && (l.unclaim(n[Di]), a.updateId(t, r[Di]), l.claim(r[Di], o)), e.changed;
31803
31803
  };
@@ -31806,12 +31806,12 @@ function R1(e, t) {
31806
31806
  }
31807
31807
  function II(e, t) {
31808
31808
  var n = ep(t), r = e.businessObject, o = ct(e);
31809
- return ar(n, function(a, l) {
31809
+ return or(n, function(a, l) {
31810
31810
  return l !== P1 ? a[l] = r.get(l) : a[l] = BI(o, ep(t.di)), a;
31811
31811
  }, {});
31812
31812
  }
31813
31813
  function BI(e, t) {
31814
- return ar(t, function(n, r) {
31814
+ return or(t, function(n, r) {
31815
31815
  return n[r] = e && e.get(r), n;
31816
31816
  }, {});
31817
31817
  }
@@ -31905,24 +31905,24 @@ Mm.prototype.preExecute = function(e) {
31905
31905
  type: "bpmn:Lane"
31906
31906
  }, t.createShape(m, v, r));
31907
31907
  };
31908
- function Eu(e, t) {
31908
+ function bu(e, t) {
31909
31909
  this._modeling = e, this._spaceTool = t;
31910
31910
  }
31911
- Eu.$inject = [
31911
+ bu.$inject = [
31912
31912
  "modeling",
31913
31913
  "spaceTool"
31914
31914
  ];
31915
- Eu.prototype.preExecute = function(e) {
31915
+ bu.prototype.preExecute = function(e) {
31916
31916
  var t = e.shape, n = e.newBounds, r = e.balanced;
31917
31917
  r !== !1 ? this.resizeBalanced(t, n) : this.resizeSpace(t, n);
31918
31918
  };
31919
- Eu.prototype.resizeBalanced = function(e, t) {
31919
+ bu.prototype.resizeBalanced = function(e, t) {
31920
31920
  var n = this._modeling, r = VM(e, t);
31921
31921
  n.resizeShape(e, t), r.forEach(function(o) {
31922
31922
  n.resizeShape(o.shape, o.newBounds);
31923
31923
  });
31924
31924
  };
31925
- Eu.prototype.resizeSpace = function(e, t) {
31925
+ bu.prototype.resizeSpace = function(e, t) {
31926
31926
  var n = this._spaceTool, r = Ie(e), o = Ie(t), a = ww(o, r), l = Ir(e), u = [], c = [];
31927
31927
  _a(l, function(_) {
31928
31928
  return u.push(_), (R(_, "bpmn:Lane") || R(_, "bpmn:Participant")) && c.push(_), _.children;
@@ -31930,14 +31930,14 @@ Eu.prototype.resizeSpace = function(e, t) {
31930
31930
  var d, v, m, y, b;
31931
31931
  (a.bottom || a.top) && (d = a.bottom || a.top, v = e.y + (a.bottom ? e.height : 0) + (a.bottom ? -10 : 10), m = a.bottom ? "s" : "n", y = a.top > 0 || a.bottom < 0 ? -d : d, b = n.calculateAdjustments(u, "y", y, v), n.makeSpace(b.movingShapes, b.resizingShapes, { x: 0, y: d }, m)), (a.left || a.right) && (d = a.right || a.left, v = e.x + (a.right ? e.width : 0) + (a.right ? -10 : 100), m = a.right ? "e" : "w", y = a.left > 0 || a.right < 0 ? -d : d, b = n.calculateAdjustments(c, "x", y, v), n.makeSpace(b.movingShapes, b.resizingShapes, { x: d, y: 0 }, m));
31932
31932
  };
31933
- var Hl = "flowNodeRef", Nm = "lanes";
31934
- function _u(e) {
31933
+ var $l = "flowNodeRef", Nm = "lanes";
31934
+ function Eu(e) {
31935
31935
  this._elementRegistry = e;
31936
31936
  }
31937
- _u.$inject = [
31937
+ Eu.$inject = [
31938
31938
  "elementRegistry"
31939
31939
  ];
31940
- _u.prototype.computeUpdates = function(e, t) {
31940
+ Eu.prototype.computeUpdates = function(e, t) {
31941
31941
  var n = [], r = [], o = {}, a = [];
31942
31942
  function l(v, m) {
31943
31943
  var y = Ie(m), b = {
@@ -31976,30 +31976,30 @@ _u.prototype.computeUpdates = function(e, t) {
31976
31976
  r.push({ flowNode: m, remove: b, add: _ });
31977
31977
  }), t.forEach(function(v) {
31978
31978
  var m = v.businessObject;
31979
- v.parent || m.get(Hl).forEach(function(y) {
31979
+ v.parent || m.get($l).forEach(function(y) {
31980
31980
  r.push({ flowNode: y, remove: [m], add: [] });
31981
31981
  });
31982
31982
  }), r;
31983
31983
  };
31984
- _u.prototype.execute = function(e) {
31984
+ Eu.prototype.execute = function(e) {
31985
31985
  var t = e.updates;
31986
31986
  t || (t = e.updates = this.computeUpdates(e.flowNodeShapes, e.laneShapes)), t.forEach(function(n) {
31987
31987
  var r = n.flowNode, o = r.get(Nm);
31988
31988
  n.remove.forEach(function(a) {
31989
- Wt(o, a), Wt(a.get(Hl), r);
31989
+ Wt(o, a), Wt(a.get($l), r);
31990
31990
  }), n.add.forEach(function(a) {
31991
- Jt(o, a), Jt(a.get(Hl), r);
31991
+ Jt(o, a), Jt(a.get($l), r);
31992
31992
  });
31993
31993
  });
31994
31994
  };
31995
- _u.prototype.revert = function(e) {
31995
+ Eu.prototype.revert = function(e) {
31996
31996
  var t = e.updates;
31997
31997
  t.forEach(function(n) {
31998
31998
  var r = n.flowNode, o = r.get(Nm);
31999
31999
  n.add.forEach(function(a) {
32000
- Wt(o, a), Wt(a.get(Hl), r);
32000
+ Wt(o, a), Wt(a.get($l), r);
32001
32001
  }), n.remove.forEach(function(a) {
32002
- Jt(o, a), Jt(a.get(Hl), r);
32002
+ Jt(o, a), Jt(a.get($l), r);
32003
32003
  });
32004
32004
  });
32005
32005
  };
@@ -32140,7 +32140,7 @@ kn.$inject = [
32140
32140
  ];
32141
32141
  kn.prototype.getHandlers = function() {
32142
32142
  var e = vt.prototype.getHandlers.call(this);
32143
- return e["element.updateModdleProperties"] = yu, e["element.updateProperties"] = bu, e["canvas.updateRoot"] = Tf, e["lane.add"] = km, e["lane.resize"] = Eu, e["lane.split"] = Mm, e["lane.updateRefs"] = _u, e["id.updateClaim"] = Af, e["element.setColor"] = Lm, e["element.updateLabel"] = k1, e;
32143
+ return e["element.updateModdleProperties"] = gu, e["element.updateProperties"] = yu, e["canvas.updateRoot"] = Tf, e["lane.add"] = km, e["lane.resize"] = bu, e["lane.split"] = Mm, e["lane.updateRefs"] = Eu, e["id.updateClaim"] = Af, e["element.setColor"] = Lm, e["element.updateLabel"] = k1, e;
32144
32144
  };
32145
32145
  kn.prototype.updateLabel = function(e, t, n, r) {
32146
32146
  this._commandStack.execute("element.updateLabel", {
@@ -32237,7 +32237,7 @@ M1.prototype.layoutConnection = function(e, t) {
32237
32237
  t.connectionEnd || qe(t.target || e.target)
32238
32238
  ];
32239
32239
  };
32240
- var Ic = 20, VI = 5, yp = Math.round, vE = 20, KI = {
32240
+ var Oc = 20, VI = 5, yp = Math.round, vE = 20, KI = {
32241
32241
  "h:h": 20,
32242
32242
  "v:v": 20,
32243
32243
  "h:v": -10,
@@ -32266,11 +32266,11 @@ function YI(e, t) {
32266
32266
  function N1(e, t, n) {
32267
32267
  var r = Rn(t, e, VI), o = n.split(":")[0], a = yp((t.x - e.x) / 2 + e.x), l = yp((t.y - e.y) / 2 + e.y), u, c, d = YI(o, r), v = /h|r|l/.test(o), m = !1, y = !1;
32268
32268
  return d ? (u = v ? { x: a, y: e.y } : { x: e.x, y: l }, c = v ? "h:h" : "v:v") : (m = qI(r, o), c = v ? "h:v" : "v:h", m ? v ? (y = l === e.y, u = {
32269
- x: e.x + Ic * (/l/.test(o) ? -1 : 1),
32270
- y: y ? l + Ic : l
32269
+ x: e.x + Oc * (/l/.test(o) ? -1 : 1),
32270
+ y: y ? l + Oc : l
32271
32271
  }) : (y = a === e.x, u = {
32272
- x: y ? a + Ic : a,
32273
- y: e.y + Ic * (/t/.test(o) ? -1 : 1)
32272
+ x: y ? a + Oc : a,
32273
+ y: e.y + Oc * (/t/.test(o) ? -1 : 1)
32274
32274
  }) : u = {
32275
32275
  x: a,
32276
32276
  y: l
@@ -32406,7 +32406,7 @@ function Im(e, t, n, r) {
32406
32406
  function o(v) {
32407
32407
  return v.length < 3 ? !0 : v.length > 4 ? !1 : !!ut(v, function(m, y) {
32408
32408
  var b = v[y - 1];
32409
- return b && Ul(m, b) < 3;
32409
+ return b && Wl(m, b) < 3;
32410
32410
  });
32411
32411
  }
32412
32412
  function a(v, m, y) {
@@ -32491,7 +32491,7 @@ var c3 = -10, p3 = 40, Bm = {
32491
32491
  "bottom-right": "top-left",
32492
32492
  "bottom-left": "top-right",
32493
32493
  left: "right"
32494
- }, Zc = {
32494
+ }, Xc = {
32495
32495
  top: "t",
32496
32496
  right: "r",
32497
32497
  bottom: "b",
@@ -32507,7 +32507,7 @@ Fm.prototype.layoutConnection = function(e, t) {
32507
32507
  preferredLayouts: _3(n, e)
32508
32508
  } : R(n, "bpmn:BoundaryEvent") ? u = {
32509
32509
  preferredLayouts: x3(n, r, l)
32510
- } : zl(n) || zl(r) ? u = v3(n) : R(n, "bpmn:Gateway") ? u = {
32510
+ } : Hl(n) || Hl(r) ? u = v3(n) : R(n, "bpmn:Gateway") ? u = {
32511
32511
  preferredLayouts: ["v:h"]
32512
32512
  } : R(r, "bpmn:Gateway") ? u = {
32513
32513
  preferredLayouts: ["h:v"]
@@ -32533,7 +32533,7 @@ function d3(e, t) {
32533
32533
  };
32534
32534
  }
32535
32535
  function h3(e, t) {
32536
- return R(t, "bpmn:Participant") ? "source" : R(e, "bpmn:Participant") ? "target" : zl(t) ? "source" : zl(e) || R(t, "bpmn:Event") ? "target" : R(e, "bpmn:Event") ? "source" : null;
32536
+ return R(t, "bpmn:Participant") ? "source" : R(e, "bpmn:Participant") ? "target" : Hl(t) ? "source" : Hl(e) || R(t, "bpmn:Event") ? "target" : R(e, "bpmn:Event") ? "source" : null;
32537
32537
  }
32538
32538
  function v3(e) {
32539
32539
  return {
@@ -32542,7 +32542,7 @@ function v3(e) {
32542
32542
  };
32543
32543
  }
32544
32544
  function m3(e) {
32545
- return zl(e) ? "target" : "source";
32545
+ return Hl(e) ? "target" : "source";
32546
32546
  }
32547
32547
  function bE(e, t) {
32548
32548
  return e ? e.original || e : qe(t);
@@ -32550,7 +32550,7 @@ function bE(e, t) {
32550
32550
  function EE(e, t) {
32551
32551
  return R(t, "bpmn:Activity") && R(e, "bpmn:BoundaryEvent") && t.businessObject.isForCompensation;
32552
32552
  }
32553
- function zl(e) {
32553
+ function Hl(e) {
32554
32554
  return R(e, "bpmn:SubProcess") && lt(e);
32555
32555
  }
32556
32556
  function Pl(e, t) {
@@ -32593,7 +32593,7 @@ function x3(e, t, n) {
32593
32593
  return c ? w3(a, d, e, t, n) : (l = S3(a, v, d), u = C3(a, v, d), [l + ":" + u]);
32594
32594
  }
32595
32595
  function w3(e, t, n, r, o) {
32596
- var a = t ? e : va(e), l = Zc[a], u;
32596
+ var a = t ? e : va(e), l = Xc[a], u;
32597
32597
  return t ? $h(e) ? u = _E("y", n, r, o) ? "h" : "b" : u = _E("x", n, r, o) ? "v" : "l" : u = "v", [l + ":" + u];
32598
32598
  }
32599
32599
  function _E(e, t, n, r) {
@@ -32607,13 +32607,13 @@ function Yd(e, t, n, r) {
32607
32607
  return Math.abs(t[e] - n[e]) < r;
32608
32608
  }
32609
32609
  function S3(e, t, n) {
32610
- return n ? Zc[e] : Pl(
32610
+ return n ? Xc[e] : Pl(
32611
32611
  va(e),
32612
32612
  va(t)
32613
32613
  ) || y3(
32614
32614
  Rl(e),
32615
32615
  Rl(t)
32616
- ) ? Zc[va(e)] : Zc[Rl(e)];
32616
+ ) ? Xc[va(e)] : Xc[Rl(e)];
32617
32617
  }
32618
32618
  function C3(e, t, n) {
32619
32619
  return n ? $h(e) ? b3(e, t) || Pl(e, t) ? "h" : "v" : E3(e, t) || Pl(e, t) ? "v" : "h" : $h(t) || Pl(va(e), va(t)) && Rl(t) ? "h" : "v";
@@ -32671,7 +32671,7 @@ const T3 = {
32671
32671
  y1
32672
32672
  ],
32673
32673
  bpmnFactory: ["type", Rr],
32674
- bpmnUpdater: ["type", ur],
32674
+ bpmnUpdater: ["type", lr],
32675
32675
  elementFactory: ["type", Ro],
32676
32676
  modeling: ["type", kn],
32677
32677
  layouter: ["type", Fm],
@@ -32765,7 +32765,7 @@ function B1(e, t, n, r) {
32765
32765
  return v;
32766
32766
  }
32767
32767
  function a(c) {
32768
- var d = Wl(c, !0), v = fn(d, function(m) {
32768
+ var d = jl(c, !0), v = fn(d, function(m) {
32769
32769
  return (m.incoming || []).concat(m.outgoing || []);
32770
32770
  });
32771
32771
  return Qc(d.concat(v));
@@ -32829,12 +32829,12 @@ function L3(e) {
32829
32829
  }
32830
32830
  const O3 = {
32831
32831
  __depends__: [
32832
- Zl,
32832
+ Xl,
32833
32833
  si,
32834
32834
  rx,
32835
32835
  ui,
32836
32836
  $i,
32837
- eu
32837
+ Jl
32838
32838
  ],
32839
32839
  __init__: [
32840
32840
  "move",
@@ -32977,7 +32977,7 @@ function Zd(e) {
32977
32977
  const I3 = {
32978
32978
  __depends__: [
32979
32979
  mf,
32980
- nu
32980
+ tu
32981
32981
  ],
32982
32982
  __init__: ["lassoTool"],
32983
32983
  lassoTool: ["type", ka]
@@ -33064,7 +33064,7 @@ function PE(e) {
33064
33064
  const B3 = {
33065
33065
  __depends__: [
33066
33066
  mf,
33067
- nu
33067
+ tu
33068
33068
  ],
33069
33069
  __init__: ["handTool"],
33070
33070
  handTool: ["type", Ps]
@@ -33131,7 +33131,7 @@ const F3 = {
33131
33131
  ui,
33132
33132
  $i,
33133
33133
  mf,
33134
- nu
33134
+ tu
33135
33135
  ],
33136
33136
  globalConnect: ["type", Rs]
33137
33137
  };
@@ -33331,7 +33331,7 @@ function Hm(e, t, n, r, o) {
33331
33331
  q(m, { x: y.x, y: y.y });
33332
33332
  var b = n.createShape(m);
33333
33333
  r.addShape(b, y.parent);
33334
- var _ = bt('[data-element-id="' + Ll(y.id) + '"]', u.dragGroup);
33334
+ var _ = bt('[data-element-id="' + Nl(y.id) + '"]', u.dragGroup);
33335
33335
  _ && Se(_, { display: "none" });
33336
33336
  var w = o.addDragger(b, u.dragGroup);
33337
33337
  u.visualReplacements[v] = w, r.removeShape(b);
@@ -33341,7 +33341,7 @@ function Hm(e, t, n, r, o) {
33341
33341
  function l(u) {
33342
33342
  var c = u.visualReplacements;
33343
33343
  W(c, function(d, v) {
33344
- var m = bt('[data-element-id="' + Ll(v) + '"]', u.dragGroup);
33344
+ var m = bt('[data-element-id="' + Nl(v) + '"]', u.dragGroup);
33345
33345
  m && Se(m, { display: "inline" }), d.remove(), c[v] && delete c[v];
33346
33346
  });
33347
33347
  }
@@ -33360,7 +33360,7 @@ Hm.$inject = [
33360
33360
  Re(Hm, ge);
33361
33361
  const z3 = {
33362
33362
  __depends__: [
33363
- eu
33363
+ Jl
33364
33364
  ],
33365
33365
  __init__: ["bpmnReplacePreview"],
33366
33366
  bpmnReplacePreview: ["type", Hm]
@@ -33373,7 +33373,7 @@ function z1(e) {
33373
33373
  "connect.end"
33374
33374
  ], j3, function(t) {
33375
33375
  var n = t.context, r = n.canExecute, o = n.start, a = n.hover, l = n.source, u = n.target;
33376
- t.originalEvent && fr(t.originalEvent) || (n.initialConnectionStart || (n.initialConnectionStart = n.connectionStart), r && a && V3(t, a, X3(a)), a && Y3(r, [
33376
+ t.originalEvent && pr(t.originalEvent) || (n.initialConnectionStart || (n.initialConnectionStart = n.connectionStart), r && a && V3(t, a, X3(a)), a && Y3(r, [
33377
33377
  "bpmn:Association",
33378
33378
  "bpmn:DataInputAssociation",
33379
33379
  "bpmn:DataOutputAssociation",
@@ -33485,7 +33485,7 @@ function ci(e, t, n) {
33485
33485
  "shape.move.end"
33486
33486
  ], J3, function(o) {
33487
33487
  var a = o.context, l = a.shape, u = a.snapContext, c = a.target;
33488
- if (!(o.originalEvent && fr(o.originalEvent)) && !(hs(o) || !c)) {
33488
+ if (!(o.originalEvent && pr(o.originalEvent)) && !(hs(o) || !c)) {
33489
33489
  var d = u.pointsForTarget(c);
33490
33490
  d.initialized || (d = r.addSnapTargetPoints(d, l, c), d.initialized = !0), n.snap(o, d);
33491
33491
  }
@@ -33645,7 +33645,7 @@ function OE(e, t, n) {
33645
33645
  };
33646
33646
  }
33647
33647
  var aB = 1250;
33648
- function xu(e, t) {
33648
+ function _u(e, t) {
33649
33649
  var n = this;
33650
33650
  e.on(["resize.start"], function(r) {
33651
33651
  n.initSnap(r);
@@ -33654,7 +33654,7 @@ function xu(e, t) {
33654
33654
  "resize.end"
33655
33655
  ], aB, function(r) {
33656
33656
  var o = r.context, a = o.shape, l = a.parent, u = o.direction, c = o.snapContext;
33657
- if (!(r.originalEvent && fr(r.originalEvent)) && !hs(r)) {
33657
+ if (!(r.originalEvent && pr(r.originalEvent)) && !hs(r)) {
33658
33658
  var d = c.pointsForTarget(l);
33659
33659
  d.initialized || (d = n.addSnapTargetPoints(d, a, l, u), d.initialized = !0), pB(u) && Ht(r, "x", r.x), fB(u) && Ht(r, "y", r.y), t.snap(r, d);
33660
33660
  }
@@ -33662,7 +33662,7 @@ function xu(e, t) {
33662
33662
  t.hide();
33663
33663
  });
33664
33664
  }
33665
- xu.prototype.initSnap = function(e) {
33665
+ _u.prototype.initSnap = function(e) {
33666
33666
  var t = e.context, n = t.shape, r = t.direction, o = t.snapContext;
33667
33667
  o || (o = t.snapContext = new No());
33668
33668
  var a = U1(n, r);
@@ -33671,17 +33671,17 @@ xu.prototype.initSnap = function(e) {
33671
33671
  y: a.y - e.y
33672
33672
  }), o;
33673
33673
  };
33674
- xu.prototype.addSnapTargetPoints = function(e, t, n, r) {
33674
+ _u.prototype.addSnapTargetPoints = function(e, t, n, r) {
33675
33675
  var o = this.getSnapTargets(t, n);
33676
33676
  return W(o, function(a) {
33677
33677
  e.add("corner", uw(a)), e.add("corner", lw(a));
33678
33678
  }), e.add("corner", U1(t, r)), e;
33679
33679
  };
33680
- xu.$inject = [
33680
+ _u.$inject = [
33681
33681
  "eventBus",
33682
33682
  "snapping"
33683
33683
  ];
33684
- xu.prototype.getSnapTargets = function(e, t) {
33684
+ _u.prototype.getSnapTargets = function(e, t) {
33685
33685
  return cw(t).filter(function(n) {
33686
33686
  return !sB(n, e) && !lB(n) && !uB(n) && !cB(n);
33687
33687
  });
@@ -33778,7 +33778,7 @@ const vB = {
33778
33778
  "snapping"
33779
33779
  ],
33780
33780
  createMoveSnapping: ["type", ci],
33781
- resizeSnapping: ["type", xu],
33781
+ resizeSnapping: ["type", _u],
33782
33782
  snapping: ["type", Lo]
33783
33783
  }, mB = {
33784
33784
  __depends__: [vB],
@@ -34012,11 +34012,11 @@ const EB = {
34012
34012
  };
34013
34013
  var _B = '<?xml version="1.0" encoding="UTF-8"?><bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" targetNamespace="http://bpmn.io/schema/bpmn" id="Definitions_1"><bpmn:process id="Process_1" isExecutable="false"><bpmn:startEvent id="StartEvent_1"/></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1"><dc:Bounds height="36.0" width="36.0" x="173.0" y="102.0"/></bpmndi:BPMNShape></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>';
34014
34014
  function ni(e) {
34015
- Xl.call(this, e);
34015
+ Yl.call(this, e);
34016
34016
  }
34017
- Re(ni, Xl);
34017
+ Re(ni, Yl);
34018
34018
  ni.Viewer = jr;
34019
- ni.NavigatedViewer = Ol;
34019
+ ni.NavigatedViewer = Ll;
34020
34020
  ni.prototype.createDiagram = _s(function() {
34021
34021
  return this.importXML(_B);
34022
34022
  });
@@ -34649,7 +34649,7 @@ const Pn = {
34649
34649
  }), o.name = w, t("updateFlowType", r.value);
34650
34650
  }
34651
34651
  };
34652
- return or(
34652
+ return fr(
34653
34653
  () => e.id,
34654
34654
  (w) => {
34655
34655
  Pn.isNotBlank(w) && (l(), b());
@@ -34879,16 +34879,16 @@ const CB = /* @__PURE__ */ pi(wB, [["render", SB]]), TB = oi({
34879
34879
  const G = await u.fetchDepts();
34880
34880
  r.value = G.data;
34881
34881
  };
34882
- return or(
34882
+ return fr(
34883
34883
  () => e.selectValues,
34884
34884
  (G) => {
34885
34885
  Pn.isNotBlank(G) && (typeof G == "number" ? k.value = G : Array.isArray(G) ? P.value = G : typeof G == "string" && (P.value = G.split(",")));
34886
34886
  },
34887
34887
  { immediate: !0 }
34888
- ), or(
34888
+ ), fr(
34889
34889
  () => o.value,
34890
34890
  () => {
34891
- P.value.length > 0 && e.checkType === "multiple" && kl(() => {
34891
+ P.value.length > 0 && e.checkType === "multiple" && Zc(() => {
34892
34892
  const G = o.value.filter((ce) => P.value.includes(String(ce[c]))).map((ce) => M(ce));
34893
34893
  D.value = G;
34894
34894
  });
@@ -35090,16 +35090,13 @@ const MB = /* @__PURE__ */ pi(TB, [["render", kB], ["__scopeId", "data-v-aa07dab
35090
35090
  current: d.value.pageNum,
35091
35091
  pageSize: d.value.pageSize
35092
35092
  }));
35093
- or(
35093
+ fr(
35094
35094
  () => e.selectValues,
35095
35095
  (L) => {
35096
35096
  Pn.isNotBlank(L) && (typeof L == "number" || typeof L == "string" ? m.value = L : Array.isArray(L) ? v.value = L.map((j) => j) : typeof L == "string" && (v.value = L.split(",").map((j) => j.trim()).filter(Boolean)));
35097
35097
  },
35098
35098
  { immediate: !0 }
35099
- ), or(o, (L) => {
35100
- e.checkType === "multiple" && L.length > 0 && v.value.length > 0 && kl(() => {
35101
- });
35102
- });
35099
+ );
35103
35100
  const b = (L) => L[u] || L.id, _ = async () => {
35104
35101
  n.value = !0;
35105
35102
  const L = await l.fetchRoles(d.value);
@@ -35112,7 +35109,7 @@ const MB = /* @__PURE__ */ pi(TB, [["render", kB], ["__scopeId", "data-v-aa07dab
35112
35109
  const j = L[0];
35113
35110
  m.value = j ?? null;
35114
35111
  const z = o.value.find((Q) => Q[u] === j), H = (z == null ? void 0 : z[c]) || "";
35115
- t("handleRoleSelect", String(j), H);
35112
+ t("handleRoleSelect", j, H);
35116
35113
  }, I = () => {
35117
35114
  d.value.pageNum = 1, _();
35118
35115
  }, D = () => {
@@ -35269,7 +35266,7 @@ function OB(e, t, n, r, o, a) {
35269
35266
  }, 8, ["loading", "data-source", "row-key", "row-selection", "pagination", "onChange"])) : Fn("", !0)
35270
35267
  ]);
35271
35268
  }
35272
- const IB = /* @__PURE__ */ pi(NB, [["render", OB], ["__scopeId", "data-v-56fb6302"]]), BB = {
35269
+ const IB = /* @__PURE__ */ pi(NB, [["render", OB], ["__scopeId", "data-v-84faffe6"]]), BB = {
35273
35270
  string: "字符串",
35274
35271
  fixed: "系统指定",
35275
35272
  dynamic: "动态选择"
@@ -35321,7 +35318,7 @@ const IB = /* @__PURE__ */ pi(NB, [["render", OB], ["__scopeId", "data-v-56fb630
35321
35318
  }, _ = (w, T) => {
35322
35319
  u.value.pageNum = 1, u.value.pageSize = T, d();
35323
35320
  };
35324
- return or(
35321
+ return fr(
35325
35322
  () => e.selectValues,
35326
35323
  (w) => {
35327
35324
  Pn.isNotBlank(w) && (l.value = w);
@@ -35572,10 +35569,14 @@ const zB = /* @__PURE__ */ pi(FB, [["render", HB], ["__scopeId", "data-v-8afeeb4
35572
35569
  if (!ie || !oe)
35573
35570
  return;
35574
35571
  const me = w();
35575
- me && (T(), y[y.userType] = oe, me.modeling.updateProperties(me.element, {
35576
- dataType: "fixed",
35577
- [y.userType]: ie
35578
- }), b[y.userType] = ie);
35572
+ if (me) {
35573
+ T();
35574
+ debugger;
35575
+ y[y.userType] = oe, me.modeling.updateProperties(me.element, {
35576
+ dataType: "fixed",
35577
+ [y.userType]: ie
35578
+ }), b[y.userType] = ie;
35579
+ }
35579
35580
  }, G = () => {
35580
35581
  u.value = !1;
35581
35582
  }, ce = () => {
@@ -35583,7 +35584,7 @@ const zB = /* @__PURE__ */ pi(FB, [["render", HB], ["__scopeId", "data-v-8afeeb4
35583
35584
  }, re = () => {
35584
35585
  d.value = !1;
35585
35586
  };
35586
- or(
35587
+ fr(
35587
35588
  () => e.id,
35588
35589
  (ie) => {
35589
35590
  Pn.isNotBlank(ie) && I();
@@ -35634,7 +35635,7 @@ const zB = /* @__PURE__ */ pi(FB, [["render", HB], ["__scopeId", "data-v-8afeeb4
35634
35635
  // methods
35635
35636
  singleUserCheck: z,
35636
35637
  multipleUserCheck: H,
35637
- multipleRoleCheck: Q,
35638
+ singleRoleCheck: Q,
35638
35639
  singleExpCheck: J,
35639
35640
  updateElementTask: D,
35640
35641
  updateUserType: k,
@@ -35837,7 +35838,7 @@ function UB(e, t, n, r, o, a) {
35837
35838
  ae(m, {
35838
35839
  size: "small",
35839
35840
  type: "primary",
35840
- onClick: e.multipleRoleCheck
35841
+ onClick: e.singleRoleCheck
35841
35842
  }, {
35842
35843
  icon: le(() => [
35843
35844
  ae(T)
@@ -35934,6 +35935,7 @@ function UB(e, t, n, r, o, a) {
35934
35935
  e.roleVisible ? (Qe(), yt(P, {
35935
35936
  key: 0,
35936
35937
  "select-values": e.selectData.candidateGroups,
35938
+ "check-type": "single",
35937
35939
  onHandleRoleSelect: e.roleSelect
35938
35940
  }, null, 8, ["select-values", "onHandleRoleSelect"])) : Fn("", !0)
35939
35941
  ]),
@@ -36018,7 +36020,7 @@ function UB(e, t, n, r, o, a) {
36018
36020
  }, 8, ["open"])
36019
36021
  ]);
36020
36022
  }
36021
- const GB = /* @__PURE__ */ pi(jB, [["render", UB], ["__scopeId", "data-v-81d9605f"]]), VB = oi({
36023
+ const GB = /* @__PURE__ */ pi(jB, [["render", UB], ["__scopeId", "data-v-26532990"]]), VB = oi({
36022
36024
  name: "FlowConditionPanel",
36023
36025
  props: {
36024
36026
  id: {
@@ -36089,7 +36091,7 @@ const GB = /* @__PURE__ */ pi(jB, [["render", UB], ["__scopeId", "data-v-81d9605
36089
36091
  value: z
36090
36092
  };
36091
36093
  };
36092
- or(
36094
+ fr(
36093
36095
  () => e.id,
36094
36096
  (T) => {
36095
36097
  Pn.isNotBlank(T) && d();
@@ -36138,7 +36140,7 @@ const GB = /* @__PURE__ */ pi(jB, [["render", UB], ["__scopeId", "data-v-81d9605
36138
36140
  let T = o.value;
36139
36141
  return !Pn.isNumeric(o.value) && !_(o.value) && (T = `"${o.value}"`), `\${${n.value}${r.value}${T}}`;
36140
36142
  });
36141
- return or(w, (T) => {
36143
+ return fr(w, (T) => {
36142
36144
  c.value.body = T, y();
36143
36145
  }), {
36144
36146
  bpmnFormData: c,
@@ -36559,9 +36561,9 @@ const JB = oi({
36559
36561
  let v = d;
36560
36562
  v || (v = ((m = o.elRegistry) == null ? void 0 : m.find((b) => b.type === "bpmn:Process")) || ((y = o.elRegistry) == null ? void 0 : y.find((b) => b.type === "bpmn:Collaboration"))), v && (o.element = v, t.value = v.id, n.value = v.type.split(":")[1] || "", r.value = !!(n.value === "SequenceFlow" && v.source && v.source.type.indexOf("StartEvent") === -1));
36561
36563
  };
36562
- or(t, () => {
36564
+ fr(t, () => {
36563
36565
  e.value = ["common", "Task"], n.value === "SequenceFlow" && e.value.push("condition");
36564
- }), or(r, () => {
36566
+ }), fr(r, () => {
36565
36567
  r.value && (e.value.find((v) => v == "condition") || e.value.push("condition"));
36566
36568
  });
36567
36569
  const c = (d) => {
@@ -38051,7 +38053,7 @@ const i5 = "Flowable", o5 = "http://flowable.org/bpmn", a5 = "flowable", s5 = {
38051
38053
  types: u5,
38052
38054
  emumerations: c5
38053
38055
  };
38054
- function wu(e, t, n, r, o, a, l, u, c, d, v, m) {
38056
+ function xu(e, t, n, r, o, a, l, u, c, d, v, m) {
38055
38057
  e = e || {}, r.registerProvider(this), this._contextPad = r, this._modeling = o, this._elementFactory = a, this._connect = l, this._create = u, this._popupMenu = c, this._canvas = d, this._rules = v, this._translate = m, e.autoPlace !== !1 && (this._autoPlace = t.get("autoPlace", !1)), n.on("create.end", 250, function(y) {
38056
38058
  var b = y.context, _ = b.shape;
38057
38059
  if (!(!ya(y) || !r.isOpen(_))) {
@@ -38060,7 +38062,7 @@ function wu(e, t, n, r, o, a, l, u, c, d, v, m) {
38060
38062
  }
38061
38063
  });
38062
38064
  }
38063
- wu.$inject = [
38065
+ xu.$inject = [
38064
38066
  "config.contextPad",
38065
38067
  "injector",
38066
38068
  "eventBus",
@@ -38074,7 +38076,7 @@ wu.$inject = [
38074
38076
  "rules",
38075
38077
  "translate"
38076
38078
  ];
38077
- wu.prototype.getMultiElementContextPadEntries = function(e) {
38079
+ xu.prototype.getMultiElementContextPadEntries = function(e) {
38078
38080
  var t = this._modeling, n = {};
38079
38081
  return this._isDeleteAllowed(e) && q(n, {
38080
38082
  delete: {
@@ -38089,7 +38091,7 @@ wu.prototype.getMultiElementContextPadEntries = function(e) {
38089
38091
  }
38090
38092
  }), n;
38091
38093
  };
38092
- wu.prototype._isDeleteAllowed = function(e) {
38094
+ xu.prototype._isDeleteAllowed = function(e) {
38093
38095
  var t = this._rules.allowed("elements.delete", {
38094
38096
  elements: e
38095
38097
  });
@@ -38097,7 +38099,7 @@ wu.prototype._isDeleteAllowed = function(e) {
38097
38099
  return f5(t, n);
38098
38100
  }) : t;
38099
38101
  };
38100
- wu.prototype.getContextPadEntries = function(e) {
38102
+ xu.prototype.getContextPadEntries = function(e) {
38101
38103
  var t = this._contextPad, n = this._modeling, r = this._elementFactory, o = this._connect, a = this._create, l = this._popupMenu, u = this._rules, c = this._autoPlace, d = this._translate, v = {};
38102
38104
  if (e.type === "label")
38103
38105
  return v;
@@ -38447,7 +38449,7 @@ jm.prototype.getPaletteEntries = function(e) {
38447
38449
  const d5 = {
38448
38450
  __init__: ["paletteProvider", "contextPadProvider"],
38449
38451
  paletteProvider: ["type", jm],
38450
- contextPadProvider: ["type", wu]
38452
+ contextPadProvider: ["type", xu]
38451
38453
  };
38452
38454
  var h5 = function e(t, n) {
38453
38455
  n(t);
@@ -38727,8 +38729,8 @@ function zE(e) {
38727
38729
  n[r - 1] = arguments[r];
38728
38730
  return zh.apply(void 0, [e].concat(n));
38729
38731
  }
38730
- var wi = N5, Y1 = !1, Bc;
38731
- typeof document < "u" && (Bc = document.createElement("div"), Bc.innerHTML = ' <link/><table></table><a href="/a">a</a><input type="checkbox"/>', Y1 = !Bc.getElementsByTagName("link").length, Bc = void 0);
38732
+ var wi = N5, Y1 = !1, Ic;
38733
+ typeof document < "u" && (Ic = document.createElement("div"), Ic.innerHTML = ' <link/><table></table><a href="/a">a</a><input type="checkbox"/>', Y1 = !Ic.getElementsByTagName("link").length, Ic = void 0);
38732
38734
  var rn = {
38733
38735
  legend: [1, "<fieldset>", "</fieldset>"],
38734
38736
  tr: [2, "<table><tbody>", "</tbody></table>"],
@@ -38768,7 +38770,7 @@ var L5 = { exports: {} };
38768
38770
  (function(e, t) {
38769
38771
  (function(n, r) {
38770
38772
  e.exports = r(n);
38771
- })($c, function(n) {
38773
+ })(Fc, function(n) {
38772
38774
  if (n.CSS && n.CSS.escape)
38773
38775
  return n.CSS.escape;
38774
38776
  var r = function(o) {
@@ -39101,7 +39103,7 @@ var V5 = function() {
39101
39103
  return { check: t };
39102
39104
  };
39103
39105
  const {
39104
- is: Fc,
39106
+ is: Bc,
39105
39107
  isAny: VE
39106
39108
  } = Wm;
39107
39109
  var K5 = function() {
@@ -39109,7 +39111,7 @@ var K5 = function() {
39109
39111
  VE(t, [
39110
39112
  "bpmn:ParallelGateway",
39111
39113
  "bpmn:EventBasedGateway"
39112
- ]) || Fc(t, "bpmn:Gateway") && !q5(t) || Fc(t, "bpmn:BoundaryEvent") || Fc(t, "bpmn:SubProcess") || Fc(t, "bpmn:SequenceFlow") && !Y5(t) || VE(t, [
39114
+ ]) || Bc(t, "bpmn:Gateway") && !q5(t) || Bc(t, "bpmn:BoundaryEvent") || Bc(t, "bpmn:SubProcess") || Bc(t, "bpmn:SequenceFlow") && !Y5(t) || VE(t, [
39113
39115
  "bpmn:FlowNode",
39114
39116
  "bpmn:SequenceFlow",
39115
39117
  "bpmn:Participant",
@@ -39260,7 +39262,7 @@ const eF = oi({
39260
39262
  if (r.value) {
39261
39263
  M = M.replace(/<!\[CDATA\[(.+?)]]>/g, (L, j) => j.replace(/</g, "&lt;"));
39262
39264
  try {
39263
- await r.value.importXML(M), await kl(), y(), P = M, t("xmlChanged", M);
39265
+ await r.value.importXML(M), await Zc(), y(), P = M, t("xmlChanged", M);
39264
39266
  } catch (L) {
39265
39267
  console.error("导入失败:", L.message, L.warnings);
39266
39268
  }
@@ -39372,8 +39374,8 @@ const eF = oi({
39372
39374
  }), M.on("linting.completed", (L) => {
39373
39375
  const { issues: j } = L;
39374
39376
  console.log("Lint completed:", j);
39375
- }), r.value = M, l(M), Pn.isBlank(e.xml) ? d() : m(e.xml), kl(() => {
39376
- or(
39377
+ }), r.value = M, l(M), Pn.isBlank(e.xml) ? d() : m(e.xml), Zc(() => {
39378
+ fr(
39377
39379
  () => [e.processId, e.processName],
39378
39380
  async (L) => {
39379
39381
  console.log("watch process id");
@@ -39391,7 +39393,7 @@ const eF = oi({
39391
39393
  { immediate: !0 }
39392
39394
  );
39393
39395
  });
39394
- }), or(
39396
+ }), fr(
39395
39397
  () => e.xml,
39396
39398
  (M) => {
39397
39399
  if (M === P) {
@@ -39824,7 +39826,7 @@ const gF = /* @__PURE__ */ ms(mF), yF = oi({
39824
39826
  t("save", P);
39825
39827
  },
39826
39828
  onDrawerChange: (k) => {
39827
- k && kl(() => {
39829
+ k && Zc(() => {
39828
39830
  w();
39829
39831
  });
39830
39832
  },
@@ -39961,7 +39963,7 @@ const CF = oi({
39961
39963
  });
39962
39964
  };
39963
39965
  return go(() => {
39964
- or(
39966
+ fr(
39965
39967
  () => e.flowData,
39966
39968
  (c) => {
39967
39969
  !c || !c.xmlData || (n.value && n.value.destroy(), n.value = new Gm({