@a2simcode/ui 0.0.79 → 0.0.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as ae, computed as j, openBlock as C, createElementBlock as I, mergeProps as He, createVNode as K, unref as G, shallowRef as la, ref as A, watch as rt, withModifiers as kt, normalizeClass as je, createBlock as H, createCommentVNode as Y, toDisplayString as we, renderSlot as $e, nextTick as Pt, inject as td, provide as nd, resolveComponent as B, withCtx as W, resolveDynamicComponent as To, getCurrentInstance as Fs, render as Yi, Fragment as be, renderList as Ee, onMounted as St, createSlots as mn, createTextVNode as Kt, createElementVNode as N, useSlots as od, reactive as Mo, onUnmounted as ii, normalizeStyle as Ce, onBeforeUnmount as ra, h as id, resolveDirective as sa, withDirectives as vn, withKeys as Wa, vShow as Xo, watchEffect as Vs, useTemplateRef as no, useModel as ti, mergeModels as ni, normalizeProps as ca, guardReactiveProps as pl } from "vue";
1
+ import { defineComponent as ae, computed as j, openBlock as C, createElementBlock as I, mergeProps as He, createVNode as K, unref as G, shallowRef as la, ref as A, watch as rt, withModifiers as kt, normalizeClass as je, createBlock as H, createCommentVNode as Y, toDisplayString as we, renderSlot as $e, nextTick as Pt, inject as td, provide as nd, resolveComponent as B, withCtx as W, resolveDynamicComponent as To, getCurrentInstance as Fs, render as Gi, Fragment as be, renderList as Ee, onMounted as St, createSlots as mn, createTextVNode as Kt, createElementVNode as N, useSlots as od, reactive as Mo, onUnmounted as ai, normalizeStyle as Ce, onBeforeUnmount as ra, h as id, resolveDirective as sa, withDirectives as vn, withKeys as Wa, vShow as Xo, watchEffect as Vs, useTemplateRef as no, useModel as ni, mergeModels as oi, normalizeProps as ca, guardReactiveProps as pl } from "vue";
2
2
  import { getIcon as to, Icon as ur } from "@iconify/vue";
3
3
  import Ns from "dayjs";
4
4
  import ad from "crypto-js/aes";
@@ -35,8 +35,8 @@ import { useVirtualList as gl } from "@vueuse/core";
35
35
  import Wd from "async-validator";
36
36
  import { createEditor as Ud, createToolbar as Yd } from "@wangeditor/editor";
37
37
  import Us from "diagram-js";
38
- import { closest as vl, queryAll as Ua, query as $t, delegate as Hn, classes as Nt, event as Xe, assignStyle as ai, domify as Ut, remove as Ya, clear as Ys, attr as tn, matches as Gd } from "min-dom";
39
- import { isNumber as Ct, assign as _e, forEach as ne, isArray as Ze, find as rn, filter as Jt, isUndefined as Kd, isObject as Xt, groupBy as ml, has as Gs, map as li, every as yl, sortBy as oi, isNil as hr, bind as bl, uniqueBy as Jd, isFunction as sn, isDefined as en, some as Xd, omit as qd, pick as Gi, values as Ks, without as Zd, reduce as Ga, isString as Ka, matchPattern as Ki, flatten as Qd, size as ef, debounce as tf } from "min-dash";
38
+ import { closest as vl, queryAll as Ua, query as $t, delegate as Hn, classes as Nt, event as Xe, assignStyle as li, domify as Ut, remove as Ya, clear as Ys, attr as tn, matches as Gd } from "min-dom";
39
+ import { isNumber as Ct, assign as _e, forEach as ne, isArray as Ze, find as rn, filter as Jt, isUndefined as Kd, isObject as Xt, groupBy as ml, has as Gs, map as ri, every as yl, sortBy as ii, isNil as hr, bind as bl, uniqueBy as Jd, isFunction as sn, isDefined as en, some as Xd, omit as qd, pick as Ki, values as Ks, without as Zd, reduce as Ga, isString as Ka, matchPattern as Ji, flatten as Qd, size as ef, debounce as tf } from "min-dash";
40
40
  import { create as Ve, attr as ye, remove as Yt, append as Oe, clone as Js, classes as lt, createTransform as qo, transform as xl, clear as wl } from "tiny-svg";
41
41
  import io from "inherits";
42
42
  import nf from "diagram-js-direct-editing";
@@ -185,7 +185,7 @@ const cn = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Arr
185
185
  ], 10, af));
186
186
  }
187
187
  }), Xa = de(rf);
188
- function Ji(e) {
188
+ function Zo(e) {
189
189
  Object.keys(e || {}).forEach((t) => {
190
190
  delete e[t];
191
191
  });
@@ -260,7 +260,7 @@ function Ha(e, t, n) {
260
260
  }
261
261
  return i[o[o.length - 1]] = n, e;
262
262
  }
263
- const Ri = (e) => {
263
+ const Ti = (e) => {
264
264
  let t = parseFloat(e);
265
265
  return isNaN(t) ? 0 : (t = Math.round(e * 100) / 100, t);
266
266
  }, V0 = function(e, t, n) {
@@ -507,7 +507,7 @@ const qs = (e, t, n, o) => {
507
507
  function tc(e, t = mf) {
508
508
  return e == null || e === "" ? "" : Ns(e).format(t);
509
509
  }
510
- function Ti(e, t = yf) {
510
+ function Mi(e, t = yf) {
511
511
  return e == null || e === "" ? "" : Ns(e).format(t);
512
512
  }
513
513
  function pr(e) {
@@ -808,7 +808,7 @@ function kf() {
808
808
  function ac(e) {
809
809
  xn(At.COMP_PROVIDE, e);
810
810
  }
811
- function ri() {
811
+ function si() {
812
812
  return bn(At.MENU_PROVIDE, {});
813
813
  }
814
814
  function Rf(e) {
@@ -935,13 +935,13 @@ const lc = /* @__PURE__ */ ae({
935
935
  }
936
936
  }), Of = (e, t) => {
937
937
  const n = document.createElement("div"), o = K(lc);
938
- t && (o.appContext = t), Yi(o, n);
938
+ t && (o.appContext = t), Gi(o, n);
939
939
  const i = e.afterClose;
940
940
  e.afterClose = () => {
941
- i && i(), Yi(null, n);
941
+ i && i(), Gi(null, n);
942
942
  }, o.component && o.component.exposed && o.component.exposed.open(e);
943
943
  };
944
- function si() {
944
+ function ci() {
945
945
  const t = Fs()?.appContext;
946
946
  return {
947
947
  openLayer: (o) => {
@@ -983,7 +983,7 @@ const Bf = de(lc), Lf = /* @__PURE__ */ ae({
983
983
  c.groupId = c.groupId || Cl(), a[c.groupId] = a[c.groupId] || [], a[c.groupId].push(c);
984
984
  }
985
985
  return a;
986
- }), { openLayer: o } = si(), i = (a) => {
986
+ }), { openLayer: o } = ci(), i = (a) => {
987
987
  a.config?.disabled || a.click && a.click({ openLayer: o });
988
988
  };
989
989
  return (a, l) => {
@@ -2229,7 +2229,7 @@ const Bf = de(lc), Lf = /* @__PURE__ */ ae({
2229
2229
  t.hideMidWhenNarrow && o.value && typeof window < "u" && window.ResizeObserver && (z(), $ = new ResizeObserver(() => {
2230
2230
  z();
2231
2231
  }), $.observe(o.value));
2232
- }), ii(() => {
2232
+ }), ai(() => {
2233
2233
  $ && $.disconnect();
2234
2234
  }), (D, M) => (C(), I("div", {
2235
2235
  ref_key: "layout",
@@ -2337,7 +2337,7 @@ function Vt(e, t) {
2337
2337
  return ((n = pt(e).originalRowHeights) === null || n === void 0 ? void 0 : n.get(t)) || 0;
2338
2338
  }
2339
2339
  const mr = /* @__PURE__ */ new WeakMap();
2340
- function Zo(e, t) {
2340
+ function Qo(e, t) {
2341
2341
  let n = mr.get(e);
2342
2342
  if (n || (n = /* @__PURE__ */ new Map(), mr.set(e, n)), n.has(t)) return n.get(t);
2343
2343
  for (let o = 0; o < e.colCount; o++)
@@ -2787,12 +2787,12 @@ class yh {
2787
2787
  if (!t.stateManager) return;
2788
2788
  const o = n?.headerCheckedState || t.stateManager.headerCheckedState, i = n?.checkedState || {};
2789
2789
  Object.keys(o).forEach(((a) => {
2790
- const l = o[a], r = Zo(t, a);
2790
+ const l = o[a], r = Qo(t, a);
2791
2791
  r !== -1 && t.isHeader(r, 0) && t.scenegraph.updateHeaderCheckboxCellState(r, 0, l);
2792
2792
  })), n?.checkedState ? Object.keys(i).forEach(((a) => {
2793
2793
  const l = i[a], r = Number(a);
2794
2794
  Object.keys(l).forEach(((s) => {
2795
- const c = l[s], u = Zo(t, s);
2795
+ const c = l[s], u = Qo(t, s);
2796
2796
  if (u !== -1) {
2797
2797
  for (let d = t.columnHeaderLevelCount; d < t.rowCount; d++)
2798
2798
  if (t.getRecordIndexByCell(u, d) === r) {
@@ -2804,7 +2804,7 @@ class yh {
2804
2804
  })) : t.stateManager.checkedState.forEach(((a, l) => {
2805
2805
  const r = Number(l);
2806
2806
  Object.keys(a).forEach(((s) => {
2807
- const c = a[s], u = Zo(t, s);
2807
+ const c = a[s], u = Qo(t, s);
2808
2808
  if (u !== -1) {
2809
2809
  for (let d = t.columnHeaderLevelCount; d < t.rowCount; d++)
2810
2810
  if (t.getRecordIndexByCell(u, d) === r) {
@@ -3611,7 +3611,7 @@ function Ch(e, t, n, o) {
3611
3611
  let a = !1;
3612
3612
  const l = t.stateManager.headerCheckedState[o];
3613
3613
  l !== void 0 && (a = l);
3614
- const r = Zo(e, o);
3614
+ const r = Qo(e, o);
3615
3615
  if (r !== -1 && e.stateManager && (e.stateManager.setCheckedState(r, i, o, a), e.getCellType(r, i) === "checkbox" && qi(r, i, a, e), e.internalProps.enableCheckboxCascade)) {
3616
3616
  const s = e.stateManager.headerCheckedState[o], c = e.stateManager.updateHeaderCheckedState(o, r, 0);
3617
3617
  s !== c && e.isHeader(r, 0) && e.scenegraph.updateHeaderCheckboxCellState(r, 0, c);
@@ -3625,7 +3625,7 @@ function yr(e, t, n) {
3625
3625
  let r = e.stateManager.checkedState.get(l);
3626
3626
  r || (r = {}, e.stateManager.checkedState.set(l, r)), r[t] = n;
3627
3627
  }));
3628
- const o = Zo(e, t);
3628
+ const o = Qo(e, t);
3629
3629
  if (o >= 0) {
3630
3630
  e.scenegraph.updateHeaderCheckboxCellState(o, 0, n);
3631
3631
  for (let i = e.columnHeaderLevelCount; i < e.rowCount; i++) qi(o, i, n, e);
@@ -3893,7 +3893,7 @@ class Sh {
3893
3893
  this.mainTableClickHandler && (this.table.off("click_cell", this.mainTableClickHandler), this.mainTableClickHandler = void 0), this.tableAPIExtensions && (this.tableAPIExtensions.cleanup(), this.tableAPIExtensions = void 0);
3894
3894
  }
3895
3895
  }
3896
- const Mi = {
3896
+ const Pi = {
3897
3897
  cellInnerBorder: !1,
3898
3898
  defaultStyle: {
3899
3899
  bgColor: "#fff",
@@ -4175,7 +4175,7 @@ const Mi = {
4175
4175
  const R = { ...y.value };
4176
4176
  return x.value === "j-layer-form" && (R.schema = n.children), x.value === "el-collapse-item" && R.label && (R.title = R.label, delete R.label), ["j-input-cards", "j-input-rows", "j-table"].includes(b.value) && (console.log(n.children), R.columns = n.children.map((z) => {
4177
4177
  const $ = z.config?.parentTableId;
4178
- return $ && z.id.startsWith($ + ".") ? {
4178
+ return $ && z.id && z.id.startsWith($ + ".") ? {
4179
4179
  ...z,
4180
4180
  id: z.id.slice($.length + 1)
4181
4181
  } : z;
@@ -4351,7 +4351,7 @@ class _h {
4351
4351
  colNum: i,
4352
4352
  rowNum: a
4353
4353
  });
4354
- return h.appContext = l._getAppContext(), Yi(h, f), o?.rect && this.adjustPosition(o.rect), !0;
4354
+ return h.appContext = l._getAppContext(), Gi(h, f), o?.rect && this.adjustPosition(o.rect), !0;
4355
4355
  }
4356
4356
  /**
4357
4357
  * 获取当前编辑值
@@ -4380,7 +4380,7 @@ class _h {
4380
4380
  const t = this.wrapContainer;
4381
4381
  if (t) {
4382
4382
  try {
4383
- Yi(null, t);
4383
+ Gi(null, t);
4384
4384
  } catch {
4385
4385
  }
4386
4386
  try {
@@ -4643,7 +4643,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
4643
4643
  },
4644
4644
  emits: ["ready", "selectionChanged", "update:tablePage", "update:pageSize", "loadPageData", "rowChange", "update:modelValue", "change"],
4645
4645
  setup(e, { expose: t, emit: n }) {
4646
- const o = Fs(), i = e, a = n, { formData: l } = ao(), { useData: r } = Rt(), { getLabel: s, getObjectList: c } = r(), { openLayer: u } = si(), d = j(() => i.heightMode === "auto" ? { height: "auto" } : {}), f = A(40), p = j(() => {
4646
+ const o = Fs(), i = e, a = n, { formData: l } = ao(), { useData: r } = Rt(), { getLabel: s, getObjectList: c } = r(), { openLayer: u } = ci(), d = j(() => i.heightMode === "auto" ? { height: "auto" } : {}), f = A(40), p = j(() => {
4647
4647
  const L = {};
4648
4648
  return i.heightMode === "auto" && (i.emptyTipText && f.value < 200 ? L.height = "200px" : L.height = f.value + "px", L.flex = "none", i.maxHeight && (L.maxHeight = typeof i.maxHeight == "number" ? `${i.maxHeight}px` : i.maxHeight)), L;
4649
4649
  }), h = A(null);
@@ -4832,10 +4832,10 @@ const Mh = { class: "j-table-footer" }, Ph = {
4832
4832
  }, Xn = (Bt, Et, Je) => {
4833
4833
  const Ie = Math.min(Je, Et / 2, Bt / 2);
4834
4834
  return Bt <= Ie * 2 ? nn(Bt, Et, Je) : `M ${Ie} 0 L ${Bt} 0 L ${Bt} ${Et} L ${Ie} ${Et} Q 0 ${Et} 0 ${Et - Ie} L 0 ${Ie} Q 0 0 ${Ie} 0 Z`;
4835
- }, Ta = pe / 2, _i = nn(Wt, pe, Ta);
4835
+ }, Ta = pe / 2, Ei = nn(Wt, pe, Ta);
4836
4836
  if (It.push({
4837
4837
  type: "icon",
4838
- svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Wt}" height="${pe}" viewBox="0 0 ${Wt} ${pe}"><path d="${_i}" fill="#e5e6eb"/></svg>`,
4838
+ svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Wt}" height="${pe}" viewBox="0 0 ${Wt} ${pe}"><path d="${Ei}" fill="#e5e6eb"/></svg>`,
4839
4839
  x: ot,
4840
4840
  y: Ft,
4841
4841
  width: Wt,
@@ -4851,11 +4851,11 @@ const Mh = { class: "j-table-footer" }, Ph = {
4851
4851
  height: pe
4852
4852
  });
4853
4853
  }
4854
- const Ei = ot + Wt + et, Ma = J.height / 2;
4854
+ const ki = ot + Wt + et, Ma = J.height / 2;
4855
4855
  return It.push({
4856
4856
  type: "text",
4857
4857
  text: We,
4858
- x: Ei,
4858
+ x: ki,
4859
4859
  y: Ma,
4860
4860
  fontSize: 14,
4861
4861
  fill: "#333333",
@@ -4923,7 +4923,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
4923
4923
  const Ie = Z(Je, ot), Gt = on(Ie) || 0;
4924
4924
  return Math.min(ut, Gt + Le * 2);
4925
4925
  }, Ht = (Je, Ie, Gt, Lt, Tn) => {
4926
- const ki = Z(Gt, ot), Ju = ft(ki), Xu = on(ki) || 0, vo = Math.min(ut, Xu + Le * 2), qu = Lt || "#f2f3f5", Zu = Tn || "#1d2129", Qu = ke / 2 + ct * 0.35, ed = `<svg xmlns="http://www.w3.org/2000/svg" width="${vo}" height="${ke}" viewBox="0 0 ${vo} ${ke}"><rect x="0" y="0" width="${vo}" height="${ke}" rx="${pe}" ry="${pe}" fill="${qu}"/><text x="${vo / 2}" y="${Qu}" text-anchor="middle" font-size="${ct}" fill="${Zu}">${Ju}</text></svg>`;
4926
+ const Ri = Z(Gt, ot), Ju = ft(Ri), Xu = on(Ri) || 0, vo = Math.min(ut, Xu + Le * 2), qu = Lt || "#f2f3f5", Zu = Tn || "#1d2129", Qu = ke / 2 + ct * 0.35, ed = `<svg xmlns="http://www.w3.org/2000/svg" width="${vo}" height="${ke}" viewBox="0 0 ${vo} ${ke}"><rect x="0" y="0" width="${vo}" height="${ke}" rx="${pe}" ry="${pe}" fill="${qu}"/><text x="${vo / 2}" y="${Qu}" text-anchor="middle" font-size="${ct}" fill="${Zu}">${Ju}</text></svg>`;
4927
4927
  return Ft.push({
4928
4928
  type: "icon",
4929
4929
  svg: ed,
@@ -4945,8 +4945,8 @@ const Mh = { class: "j-table-footer" }, Ph = {
4945
4945
  }
4946
4946
  nn.length > 0 && It.push({ items: nn, lineWidth: Xn });
4947
4947
  const Ta = J.height;
4948
- let _i = Math.max(1, Math.floor((Ta + Fe) / (ke + Fe))), Ei = !1;
4949
- if (It.length > _i && (Ei = !0, It.length = _i), Ei) {
4948
+ let Ei = Math.max(1, Math.floor((Ta + Fe) / (ke + Fe))), ki = !1;
4949
+ if (It.length > Ei && (ki = !0, It.length = Ei), ki) {
4950
4950
  const Je = It[It.length - 1], Ie = Wt("...");
4951
4951
  let Gt = Je.lineWidth + (Je.items.length > 0 ? et : 0) + Ie;
4952
4952
  for (; Gt > ut && Je.items.length > 0; ) {
@@ -4962,14 +4962,14 @@ const Mh = { class: "j-table-footer" }, Ph = {
4962
4962
  const Ie = It[Je];
4963
4963
  let Gt = De === "center" ? We + Math.max(0, (ut - Ie.lineWidth) / 2) : De === "right" ? We + Math.max(0, ut - Ie.lineWidth) : We;
4964
4964
  for (let Lt = 0; Lt < Ie.items.length; Lt++) {
4965
- const Tn = Ie.items[Lt], { tagWidth: ki } = Ht(
4965
+ const Tn = Ie.items[Lt], { tagWidth: Ri } = Ht(
4966
4966
  Gt,
4967
4967
  Et,
4968
4968
  Tn.label,
4969
4969
  Tn.bg,
4970
4970
  Tn.text
4971
4971
  );
4972
- Gt += ki + (Lt < Ie.items.length - 1 ? et : 0);
4972
+ Gt += Ri + (Lt < Ie.items.length - 1 ? et : 0);
4973
4973
  }
4974
4974
  Et += ke + (Je < It.length - 1 ? Fe : 0);
4975
4975
  }
@@ -5230,10 +5230,10 @@ const Mh = { class: "j-table-footer" }, Ph = {
5230
5230
  style: {
5231
5231
  textAlign: "center"
5232
5232
  }
5233
- }, i.selectField && (U.rowSeriesNumber.field = i.selectField)), U.theme = Mi, i.heightMode === "auto" && (U.theme = {
5234
- ...Mi,
5233
+ }, i.selectField && (U.rowSeriesNumber.field = i.selectField)), U.theme = Pi, i.heightMode === "auto" && (U.theme = {
5234
+ ...Pi,
5235
5235
  scrollStyle: {
5236
- ...Mi.scrollStyle,
5236
+ ...Pi.scrollStyle,
5237
5237
  hoverOn: !0,
5238
5238
  width: 8
5239
5239
  }
@@ -5250,7 +5250,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
5250
5250
  margin: [8, 8, 8, 0],
5251
5251
  height: "auto"
5252
5252
  },
5253
- theme: Mi,
5253
+ theme: Pi,
5254
5254
  ...L.option
5255
5255
  }
5256
5256
  };
@@ -5361,7 +5361,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
5361
5361
  clearColWidthCache: !1,
5362
5362
  clearRowHeightCache: !1
5363
5363
  }), i.heightMode === "auto" && (f.value = g.getAllRowsHeight()), L ? w.value = 0 : (w.value = U.length, U.length > 0 && kn(U));
5364
- }, rr = j(() => i.editConfig.isAddBtn), Nu = j(() => i.editConfig.addBtnText || "添加"), Si = j(() => i.editConfig.isRemoveBtn), Wu = j(() => i.editConfig.readonly), Rn = j(() => i.isMultiple || Si.value), sr = () => {
5364
+ }, rr = j(() => i.editConfig.isAddBtn), Nu = j(() => i.editConfig.addBtnText || "添加"), _i = j(() => i.editConfig.isRemoveBtn), Wu = j(() => i.editConfig.readonly), Rn = j(() => i.isMultiple || _i.value), sr = () => {
5365
5365
  const L = i.modelValue || [];
5366
5366
  return L.forEach((U) => {
5367
5367
  U._i || (U._i = Bn());
@@ -5441,7 +5441,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
5441
5441
  i.subColumns,
5442
5442
  i.isSubShowNumber,
5443
5443
  i.subActions,
5444
- Si.value
5444
+ _i.value
5445
5445
  ],
5446
5446
  () => {
5447
5447
  Qe();
@@ -5480,7 +5480,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
5480
5480
  }, null, 512)
5481
5481
  ], 4),
5482
5482
  N("div", Mh, [
5483
- e.isPage || !Wu.value && (rr.value || Si.value) ? (C(), I("div", Ph, [
5483
+ e.isPage || !Wu.value && (rr.value || _i.value) ? (C(), I("div", Ph, [
5484
5484
  K(X, null, {
5485
5485
  default: W(() => [
5486
5486
  rr.value ? (C(), H(J, {
@@ -5490,7 +5490,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
5490
5490
  icon: "mdi:add",
5491
5491
  onClick: Yu
5492
5492
  }, null, 8, ["label"])) : Y("", !0),
5493
- Si.value ? (C(), H(J, {
5493
+ _i.value ? (C(), H(J, {
5494
5494
  key: 1,
5495
5495
  type: "link",
5496
5496
  label: "删除",
@@ -6960,7 +6960,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
6960
6960
  }, null, 8, ["modelValue", "min", "max", "disabled", "step", "show-input", "show-input-controls", "size", "input-size", "show-stops", "show-tooltip", "format-tooltip", "range", "vertical", "height", "aria-label", "range-start-label", "range-end-label", "format-value-text", "tooltip-class", "placement", "marks", "validate-event", "persistent"]);
6961
6961
  };
6962
6962
  }
6963
- }), hp = de(fp), Pi = (e) => e < 1024 ? Ri(e) + " B" : e >= 1024 && e < 1048576 ? Ri(e / 1024) + " KB" : e >= 1048576 && e < 1073741824 ? Ri(e / 1024 / 1024) + " MB" : e >= 1073741824 ? Ri(e / 1024 / 1024 / 1024) + " GB" : "", pp = (e) => {
6963
+ }), hp = de(fp), Ai = (e) => e < 1024 ? Ti(e) + " B" : e >= 1024 && e < 1048576 ? Ti(e / 1024) + " KB" : e >= 1048576 && e < 1073741824 ? Ti(e / 1024 / 1024) + " MB" : e >= 1073741824 ? Ti(e / 1024 / 1024 / 1024) + " GB" : "", pp = (e) => {
6964
6964
  const t = window.open("_blank");
6965
6965
  t && (t.location = e);
6966
6966
  }, gp = {
@@ -7042,13 +7042,13 @@ const Mh = { class: "j-table-footer" }, Ph = {
7042
7042
  N("div", null, [
7043
7043
  c.status === "uploading" ? (C(), H(a, { key: 0 }, {
7044
7044
  default: W(() => [
7045
- Kt(we(G(Pi)(c.uploadSize)) + "/", 1)
7045
+ Kt(we(G(Ai)(c.uploadSize)) + "/", 1)
7046
7046
  ]),
7047
7047
  _: 2
7048
7048
  }, 1024)) : Y("", !0),
7049
7049
  K(a, null, {
7050
7050
  default: W(() => [
7051
- Kt(we(G(Pi)(c.size)), 1)
7051
+ Kt(we(G(Ai)(c.size)), 1)
7052
7052
  ]),
7053
7053
  _: 2
7054
7054
  }, 1024)
@@ -7136,13 +7136,13 @@ const Mh = { class: "j-table-footer" }, Ph = {
7136
7136
  ]),
7137
7137
  c.status === "uploading" ? (C(), H(a, { key: 0 }, {
7138
7138
  default: W(() => [
7139
- Kt(we(G(Pi)(c.uploadSize)) + "/", 1)
7139
+ Kt(we(G(Ai)(c.uploadSize)) + "/", 1)
7140
7140
  ]),
7141
7141
  _: 2
7142
7142
  }, 1024)) : Y("", !0),
7143
7143
  K(a, null, {
7144
7144
  default: W(() => [
7145
- Kt(we(G(Pi)(c.size)), 1)
7145
+ Kt(we(G(Ai)(c.size)), 1)
7146
7146
  ]),
7147
7147
  _: 2
7148
7148
  }, 1024),
@@ -7408,7 +7408,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
7408
7408
  const Te = m(Z);
7409
7409
  return ["webp", "bmp", "jpg", "jpge", "png", "tif", "gif", "svg"].includes(Te) ? "file-image" : _[Te] || "file-ufo";
7410
7410
  }, S = (Z) => {
7411
- Z.status = n.autoUpload ? "uploading" : "unUpload", Z.uploadSize = 0, Z.icon = E(Z.name, Z.type), d || (Z.icon = "file-text"), Z.id = Z.uid, Z.url = window.URL.createObjectURL(Z), Z.date = Ti(), Z.param = y.value;
7411
+ Z.status = n.autoUpload ? "uploading" : "unUpload", Z.uploadSize = 0, Z.icon = E(Z.name, Z.type), d || (Z.icon = "file-text"), Z.id = Z.uid, Z.url = window.URL.createObjectURL(Z), Z.date = Mi(), Z.param = y.value;
7412
7412
  }, T = (Z) => {
7413
7413
  o("start", { file: Z, list: b.value });
7414
7414
  }, P = (Z, fe, Te) => {
@@ -7456,7 +7456,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
7456
7456
  await k(Z) && O(Z);
7457
7457
  }, re = A(!1), ue = A(""), ge = A(""), ze = A(!1), dt = A(!1);
7458
7458
  let ee = null;
7459
- const Ne = A(Ti(/* @__PURE__ */ new Date(), "YYYY-MM-DD")), Ke = (Z) => {
7459
+ const Ne = A(Mi(/* @__PURE__ */ new Date(), "YYYY-MM-DD")), Ke = (Z) => {
7460
7460
  if (Z.isPreview === !1 && !n.isUploadImg) {
7461
7461
  i && i("无权限预览!");
7462
7462
  return;
@@ -7487,12 +7487,12 @@ const Mh = { class: "j-table-footer" }, Ph = {
7487
7487
  dt.value = !0, ze.value = !0;
7488
7488
  break;
7489
7489
  }
7490
- Ne.value = Ti(/* @__PURE__ */ new Date(), "YYYY-MM-DD HH:mm:ss");
7490
+ Ne.value = Mi(/* @__PURE__ */ new Date(), "YYYY-MM-DD HH:mm:ss");
7491
7491
  }, Se = (Z) => {
7492
7492
  const fe = Z.response?.fileId || Z.id;
7493
7493
  if (!s)
7494
7494
  return "";
7495
- const Te = Ti(/* @__PURE__ */ new Date(), "YYYY-MM-DD HH:mm:ss") + "|" + fe, nt = Cf.createAesEncryption({ key: "jianda" }).encrypt(Te).replace(/\//g, "|");
7495
+ const Te = Mi(/* @__PURE__ */ new Date(), "YYYY-MM-DD HH:mm:ss") + "|" + fe, nt = Cf.createAesEncryption({ key: "jianda" }).encrypt(Te).replace(/\//g, "|");
7496
7496
  return `${s}/system/annexesfile/preview/${nt}?token=${c?.value}`;
7497
7497
  }, tt = () => {
7498
7498
  ee.isDown === !1 && i && i("无权限下载!");
@@ -7674,7 +7674,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
7674
7674
  { deep: !0 }
7675
7675
  ), St(() => {
7676
7676
  c();
7677
- }), ii(() => {
7677
+ }), ai(() => {
7678
7678
  s && clearTimeout(s), r && a.value && (r.unobserve(a.value), r.disconnect(), r = null), l.value && (l.value.dispose(), l.value = void 0);
7679
7679
  }), t({
7680
7680
  getInstance: () => l.value,
@@ -8217,7 +8217,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
8217
8217
  n.callback?.(a.value);
8218
8218
  }));
8219
8219
  };
8220
- return ii(() => {
8220
+ return ai(() => {
8221
8221
  a.value = null;
8222
8222
  }), ra(() => {
8223
8223
  a.value = null;
@@ -8768,7 +8768,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
8768
8768
  scrollIntoView: !0
8769
8769
  });
8770
8770
  }), h.observe(a.value));
8771
- }), ii(() => {
8771
+ }), ai(() => {
8772
8772
  h && a.value && (h.unobserve(a.value), h.disconnect(), h = null), r && (r.destroy(), r = null);
8773
8773
  }), t({
8774
8774
  /**
@@ -8910,7 +8910,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
8910
8910
  }), mg = /* @__PURE__ */ ae({
8911
8911
  name: "JSliderCaptcha",
8912
8912
  __name: "slider-captcha",
8913
- props: /* @__PURE__ */ ni({
8913
+ props: /* @__PURE__ */ oi({
8914
8914
  class: {},
8915
8915
  actionStyle: { default: () => ({}) },
8916
8916
  barStyle: { default: () => ({}) },
@@ -8922,9 +8922,9 @@ const Mh = { class: "j-table-footer" }, Ph = {
8922
8922
  modelValue: { type: Boolean, default: void 0 },
8923
8923
  modelModifiers: {}
8924
8924
  }),
8925
- emits: /* @__PURE__ */ ni(["end", "move", "start", "success"], ["update:modelValue"]),
8925
+ emits: /* @__PURE__ */ oi(["end", "move", "start", "success"], ["update:modelValue"]),
8926
8926
  setup(e, { emit: t }) {
8927
- const n = e, o = t, i = ti(e, "modelValue"), a = Mo({
8927
+ const n = e, o = t, i = ni(e, "modelValue"), a = Mo({
8928
8928
  endTime: 0,
8929
8929
  isMoving: !1,
8930
8930
  isPassing: !1,
@@ -9033,7 +9033,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
9033
9033
  },
9034
9034
  emits: ["click"],
9035
9035
  setup(e, { emit: t }) {
9036
- const n = e, o = t, { getMenuMap: i, toArray: a, activeMenu: l, theme: r } = ri(), { getHMoreMenus: s } = Tf(), c = A([]);
9036
+ const n = e, o = t, { getMenuMap: i, toArray: a, activeMenu: l, theme: r } = si(), { getHMoreMenus: s } = Tf(), c = A([]);
9037
9037
  n.pId === "moreId" ? c.value = s.value : c.value = a(i()[n.pId || ""] || [], []);
9038
9038
  const u = (h) => {
9039
9039
  const g = c.value.find((v) => v.active);
@@ -9096,7 +9096,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
9096
9096
  },
9097
9097
  emits: ["click"],
9098
9098
  setup(e, { emit: t }) {
9099
- const { t: n } = Rt(), { activeMenuId: o } = ri(), i = t, a = (l) => {
9099
+ const { t: n } = Rt(), { activeMenuId: o } = si(), i = t, a = (l) => {
9100
9100
  i("click", l);
9101
9101
  };
9102
9102
  return (l, r) => {
@@ -9227,7 +9227,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
9227
9227
  },
9228
9228
  emits: ["click"],
9229
9229
  setup(e, { emit: t }) {
9230
- const n = e, o = t, { activeMenu: i, theme: a } = ri(), l = (d) => {
9230
+ const n = e, o = t, { activeMenu: i, theme: a } = si(), l = (d) => {
9231
9231
  o("click", d);
9232
9232
  }, r = j(() => n.menuList), { list: s, containerProps: c, wrapperProps: u } = gl(r, {
9233
9233
  itemHeight: 44
@@ -9261,7 +9261,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
9261
9261
  },
9262
9262
  emits: ["click"],
9263
9263
  setup(e, { emit: t }) {
9264
- const n = e, o = t, { activeMenu: i, theme: a } = ri(), l = A(), r = A(0);
9264
+ const n = e, o = t, { activeMenu: i, theme: a } = si(), l = A(), r = A(0);
9265
9265
  let s = null;
9266
9266
  St(() => {
9267
9267
  typeof window < "u" && window.ResizeObserver && l.value && (s = new ResizeObserver(() => {
@@ -9300,7 +9300,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
9300
9300
  };
9301
9301
  return Mf({
9302
9302
  getHMoreMenus: u
9303
- }), ii(() => {
9303
+ }), ai(() => {
9304
9304
  s && l.value && (s.unobserve(l.value), s.disconnect(), s = null);
9305
9305
  }), (p, h) => (C(), I("div", {
9306
9306
  ref_key: "menuRef",
@@ -9327,7 +9327,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
9327
9327
  },
9328
9328
  emits: ["click"],
9329
9329
  setup(e, { emit: t }) {
9330
- const n = e, o = t, { activeMenu: i, theme: a } = ri(), l = [
9330
+ const n = e, o = t, { activeMenu: i, theme: a } = si(), l = [
9331
9331
  "var(--j-color-primary)",
9332
9332
  "var(--j-color-success)",
9333
9333
  "var(--j-color-warning)",
@@ -9509,7 +9509,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
9509
9509
  }, jg = /* @__PURE__ */ ae({
9510
9510
  name: "JKeywordPanel",
9511
9511
  __name: "keyword-panel",
9512
- props: /* @__PURE__ */ ni({
9512
+ props: /* @__PURE__ */ oi({
9513
9513
  columns: {
9514
9514
  type: Array,
9515
9515
  default: () => []
@@ -9522,7 +9522,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
9522
9522
  }),
9523
9523
  emits: ["update:checkAll", "update:checkFields"],
9524
9524
  setup(e, { expose: t }) {
9525
- const { t: n } = Rt(), o = e, i = ti(e, "checkAll"), a = ti(e, "checkFields"), l = A(!1), r = A(""), s = j(
9525
+ const { t: n } = Rt(), o = e, i = ni(e, "checkAll"), a = ni(e, "checkFields"), l = A(!1), r = A(""), s = j(
9526
9526
  () => o.columns.filter((f) => f.config?.filter?.isSearchKeyword ? r.value ? f.config?.label?.indexOf(r.value) != -1 : !0 : !1).map((f) => ({
9527
9527
  label: f.config?.label,
9528
9528
  value: f.id
@@ -9591,7 +9591,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
9591
9591
  }, Ig = { class: "content" }, Og = { class: "relation" }, Bg = { style: { width: "72px" } }, Lg = { class: "btn-wrapper" }, $g = { class: "field-wrapper" }, zg = { class: "buttons" }, wr = /* @__PURE__ */ ae({
9592
9592
  name: "JFilterPanel",
9593
9593
  __name: "filter-panel",
9594
- props: /* @__PURE__ */ ni({
9594
+ props: /* @__PURE__ */ oi({
9595
9595
  columns: {
9596
9596
  type: Array,
9597
9597
  default: () => []
@@ -9606,9 +9606,9 @@ const Mh = { class: "j-table-footer" }, Ph = {
9606
9606
  isPin: { default: !1 },
9607
9607
  isPinModifiers: {}
9608
9608
  }),
9609
- emits: /* @__PURE__ */ ni(["filter", "close"], ["update:relation", "update:isPin"]),
9609
+ emits: /* @__PURE__ */ oi(["filter", "close"], ["update:relation", "update:isPin"]),
9610
9610
  setup(e, { expose: t, emit: n }) {
9611
- const { t: o } = Rt(), i = e, a = ti(e, "relation"), l = ti(e, "isPin"), r = A([]), s = () => {
9611
+ const { t: o } = Rt(), i = e, a = ni(e, "relation"), l = ni(e, "isPin"), r = A([]), s = () => {
9612
9612
  l.value = !l.value;
9613
9613
  }, c = [
9614
9614
  {
@@ -9964,26 +9964,26 @@ const Mh = { class: "j-table-footer" }, Ph = {
9964
9964
  const { t: o } = Rt(), i = e, a = n, l = A(), r = A(""), s = {}, c = A([]), u = A([]), d = (m, E) => {
9965
9965
  const S = [], T = /* @__PURE__ */ new Map();
9966
9966
  m.forEach((R) => {
9967
- T.set(R.id, R), s[R.id] = R;
9967
+ T.set(R.id || "", R), s[R.id || ""] = R;
9968
9968
  });
9969
9969
  const P = /* @__PURE__ */ new Set();
9970
9970
  return E && E.length > 0 && E.forEach((R) => {
9971
9971
  const z = T.get(R.id);
9972
9972
  if (z) {
9973
- P.add(z.id);
9973
+ P.add(z.id || "");
9974
9974
  const $ = {
9975
- id: z.id,
9976
- label: z.config?.label || z.id,
9975
+ id: z.id || "",
9976
+ label: z.config?.label || z.id || "",
9977
9977
  type: z.type,
9978
9978
  display: z.config?.display !== !1
9979
9979
  };
9980
9980
  z.children && z.children.length > 0 && ($.children = d(z.children, R.children)), S.push($);
9981
9981
  }
9982
9982
  }), m.forEach((R) => {
9983
- if (!P.has(R.id)) {
9983
+ if (!P.has(R.id || "")) {
9984
9984
  const z = {
9985
- id: R.id,
9986
- label: R.config?.label || R.id,
9985
+ id: R.id || "",
9986
+ label: R.config?.label || R.id || "",
9987
9987
  type: R.type,
9988
9988
  display: R.config?.display !== !1
9989
9989
  };
@@ -10020,11 +10020,11 @@ const Mh = { class: "j-table-footer" }, Ph = {
10020
10020
  return E.forEach((T) => {
10021
10021
  let P = !0;
10022
10022
  if (g.value.size > 0) {
10023
- const R = g.value.get(T.id);
10023
+ const R = g.value.get(T.id || "");
10024
10024
  R ? P = R.display : P = T.config?.display !== !1;
10025
10025
  } else
10026
10026
  P = T.config?.display !== !1;
10027
- P && (S.push(T.id), T.children && S.push(...m(T.children)));
10027
+ P && (S.push(T.id || ""), T.children && S.push(...m(T.children)));
10028
10028
  }), S;
10029
10029
  };
10030
10030
  h.value = m(i.columns);
@@ -10256,7 +10256,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
10256
10256
  },
10257
10257
  emits: ["select", "ready"],
10258
10258
  setup(e, { expose: t, emit: n }) {
10259
- const { t: o } = Rt(), { openLayer: i } = si(), a = e, l = n;
10259
+ const { t: o } = Rt(), { openLayer: i } = ci(), a = e, l = n;
10260
10260
  a.isMultiple && !a.rowKey && console.warn("rowKey is required when isMultiple is true");
10261
10261
  const r = A();
10262
10262
  let s = [];
@@ -11034,7 +11034,7 @@ const Mh = { class: "j-table-footer" }, Ph = {
11034
11034
  }, S = (D) => {
11035
11035
  const M = yn(o.treeButtons);
11036
11036
  return D && o.filterButton ? o.filterButton({ buttons: M, node: D }) : M;
11037
- }, { openLayer: T } = si(), P = (D, M) => {
11037
+ }, { openLayer: T } = ci(), P = (D, M) => {
11038
11038
  D.config?.disabled || D.click && D.click({ data: M, openLayer: T });
11039
11039
  }, R = A(""), z = (D, M) => {
11040
11040
  R.value = D ? M.value : "", console.log(R.value, "row");
@@ -11377,7 +11377,7 @@ const Rv = /* @__PURE__ */ ae({
11377
11377
  }, ze = async (V, le) => {
11378
11378
  v.value = !1;
11379
11379
  const q = !!le;
11380
- S.splice(0, S.length), R = {}, z = {}, $ = [], F = le, Ji(m), P.value = {}, q && re(le, ""), ge(V, S, q), D = yn(m), Pt(() => {
11380
+ S.splice(0, S.length), R = {}, z = {}, $ = [], F = le, Zo(m), Zo(T), P.value = {}, q && re(le, ""), ge(V, S, q), D = yn(m), Pt(() => {
11381
11381
  v.value = !0, Pt(() => {
11382
11382
  _n(o.config?.codeInit, {});
11383
11383
  });
@@ -11447,7 +11447,7 @@ const Rv = /* @__PURE__ */ ae({
11447
11447
  if (!ie)
11448
11448
  return {};
11449
11449
  const ve = _o({
11450
- config: { ...ie.config || {}, ...P.value[ie.id] || {} },
11450
+ config: { ...ie.config || {}, ...P.value[ie.id || ""] || {} },
11451
11451
  getCompConfig: ie.getCompConfig,
11452
11452
  formData: m,
11453
11453
  getTableData: q,
@@ -11490,7 +11490,7 @@ const Rv = /* @__PURE__ */ ae({
11490
11490
  `${p(T[Object.keys(V)[0]]?.config?.label)}:${p(V[Object.keys(V)[0]].msg)}`
11491
11491
  ), !1) : !0;
11492
11492
  }, fe = () => {
11493
- E.value = {}, Ji(m), Object.keys(D || {}).forEach((V) => {
11493
+ E.value = {}, Zo(m), Object.keys(D || {}).forEach((V) => {
11494
11494
  m[V] = D[V];
11495
11495
  });
11496
11496
  }, Te = (V) => {
@@ -11684,7 +11684,7 @@ const Rv = /* @__PURE__ */ ae({
11684
11684
  a[v.id] = y, y.config = [], qa(y.config, v.config || {}, ["defaultValue"]), v?.config?.defaultValue !== void 0 && (l[v.id] = v.config.defaultValue), g.push(y), b && b.length > 0 && (y.children = [], r(b, y.children));
11685
11685
  });
11686
11686
  }, s = (h) => {
11687
- o.value = !1, i.splice(0, i.length), Ji(a), Ji(l), r(h, i), Pt(() => {
11687
+ o.value = !1, i.splice(0, i.length), Zo(a), Zo(l), r(h, i), Pt(() => {
11688
11688
  o.value = !0;
11689
11689
  });
11690
11690
  };
@@ -11775,7 +11775,7 @@ const Rv = /* @__PURE__ */ ae({
11775
11775
  size: { default: "default" }
11776
11776
  },
11777
11777
  setup(e) {
11778
- const { openLayer: t } = si(), n = (o) => {
11778
+ const { openLayer: t } = ci(), n = (o) => {
11779
11779
  o.config?.disabled || o.click && o.click({ openLayer: t });
11780
11780
  };
11781
11781
  return (o, i) => {
@@ -12813,7 +12813,7 @@ function Qa(e) {
12813
12813
  var t = jo(e) || e;
12814
12814
  return $n(e) && t.shiftKey;
12815
12815
  }
12816
- function ci(e) {
12816
+ function ui(e) {
12817
12817
  return e.flat().join(",").replace(/,?([A-Za-z]),?/g, "$1");
12818
12818
  }
12819
12819
  function pm(e) {
@@ -12842,12 +12842,12 @@ function vm(e, t) {
12842
12842
  o.push(Ba(l));
12843
12843
  continue;
12844
12844
  }
12845
- const c = Ai(l, a, s), u = Ai(l, a, s * 0.5), d = Ai(l, r, s), f = Ai(l, r, s * 0.5);
12845
+ const c = ji(l, a, s), u = ji(l, a, s * 0.5), d = ji(l, r, s), f = ji(l, r, s * 0.5);
12846
12846
  o.push(Ba(c)), o.push(gm(u, f, d));
12847
12847
  }
12848
12848
  return o;
12849
12849
  }
12850
- function Ai(e, t, n) {
12850
+ function ji(e, t, n) {
12851
12851
  const o = t.x - e.x, i = t.y - e.y, a = el(o, i), l = n / a;
12852
12852
  return {
12853
12853
  x: e.x + o * l,
@@ -12865,13 +12865,13 @@ function _l(e, t, n) {
12865
12865
  function vc(e, t) {
12866
12866
  const n = parseInt(e.dataset.cornerRadius, 10) || 0;
12867
12867
  return ye(e, {
12868
- d: ci(vm(t, n))
12868
+ d: ui(vm(t, n))
12869
12869
  }), e;
12870
12870
  }
12871
12871
  function mm(e) {
12872
12872
  return !0;
12873
12873
  }
12874
- function ji(e) {
12874
+ function Hi(e) {
12875
12875
  return $n(e) || hm(e);
12876
12876
  }
12877
12877
  var Er = 500;
@@ -12906,10 +12906,10 @@ function mc(e, t, n) {
12906
12906
  mouseup: "element.mouseup"
12907
12907
  }, c = {
12908
12908
  "element.contextmenu": mm,
12909
- "element.mousedown": ji,
12910
- "element.mouseup": ji,
12911
- "element.click": ji,
12912
- "element.dblclick": ji
12909
+ "element.mousedown": Hi,
12910
+ "element.mouseup": Hi,
12911
+ "element.click": Hi,
12912
+ "element.dblclick": Hi
12913
12913
  };
12914
12914
  function u(S, T, P) {
12915
12915
  var R = s[S];
@@ -13606,7 +13606,7 @@ function kc(e, t, n, o, i) {
13606
13606
  return !h.hidden;
13607
13607
  }), p = dn(f);
13608
13608
  ne(c, function(h) {
13609
- Dt(h) && (h.waypoints = li(h.waypoints, function(g) {
13609
+ Dt(h) && (h.waypoints = ri(h.waypoints, function(g) {
13610
13610
  return {
13611
13611
  x: g.x - p.x - p.width / 2,
13612
13612
  y: g.y - p.y - p.height / 2
@@ -13699,7 +13699,7 @@ const Tc = {
13699
13699
  create: ["type", kc],
13700
13700
  createPreview: ["type", Rc]
13701
13701
  };
13702
- function ui(e, t) {
13702
+ function di(e, t) {
13703
13703
  return !e || !t ? -1 : Math.sqrt(
13704
13704
  Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2)
13705
13705
  );
@@ -13707,7 +13707,7 @@ function ui(e, t) {
13707
13707
  function Pl(e, t, n, o) {
13708
13708
  if (typeof o > "u" && (o = 5), !e || !t || !n)
13709
13709
  return !1;
13710
- var i = (t.x - e.x) * (n.y - e.y) - (t.y - e.y) * (n.x - e.x), a = ui(e, t);
13710
+ var i = (t.x - e.x) * (n.y - e.y) - (t.y - e.y) * (n.x - e.x), a = di(e, t);
13711
13711
  return Math.abs(i / a) <= o;
13712
13712
  }
13713
13713
  var Vm = 2;
@@ -13953,7 +13953,7 @@ function iy(e) {
13953
13953
  function Ur(e) {
13954
13954
  return e[0] === e[2] && e[1] === e[3] && e[4] === e[6] && e[5] === e[7];
13955
13955
  }
13956
- function Hi(e, t, n, o) {
13956
+ function Ii(e, t, n, o) {
13957
13957
  return [
13958
13958
  e,
13959
13959
  t,
@@ -14045,16 +14045,16 @@ function Gr(e) {
14045
14045
  p.qx = f[1], p.qy = f[2], f = ["C", ...Yr(p.x, p.y, f[1], f[2], f[3], f[4])];
14046
14046
  break;
14047
14047
  case "L":
14048
- f = ["C", ...Hi(p.x, p.y, f[1], f[2])];
14048
+ f = ["C", ...Ii(p.x, p.y, f[1], f[2])];
14049
14049
  break;
14050
14050
  case "H":
14051
- f = ["C", ...Hi(p.x, p.y, f[1], p.y)];
14051
+ f = ["C", ...Ii(p.x, p.y, f[1], p.y)];
14052
14052
  break;
14053
14053
  case "V":
14054
- f = ["C", ...Hi(p.x, p.y, p.x, f[1])];
14054
+ f = ["C", ...Ii(p.x, p.y, p.x, f[1])];
14055
14055
  break;
14056
14056
  case "Z":
14057
- f = ["C", ...Hi(p.x, p.y, p.X, p.Y)];
14057
+ f = ["C", ...Ii(p.x, p.y, p.X, p.Y)];
14058
14058
  break;
14059
14059
  }
14060
14060
  return f;
@@ -14080,7 +14080,7 @@ function ly(e) {
14080
14080
  height: Math.round(e.height)
14081
14081
  };
14082
14082
  }
14083
- function Qo(e) {
14083
+ function ei(e) {
14084
14084
  return {
14085
14085
  x: Math.round(e.x),
14086
14086
  y: Math.round(e.y)
@@ -14103,7 +14103,7 @@ function Ac(e) {
14103
14103
  };
14104
14104
  }
14105
14105
  function ry(e) {
14106
- return Qo({
14106
+ return ei({
14107
14107
  x: e.x + (e.width || 0) / 2,
14108
14108
  y: e.y + (e.height || 0) / 2
14109
14109
  });
@@ -14142,10 +14142,10 @@ function Ln(e, t, n) {
14142
14142
  }
14143
14143
  function il(e, t, n) {
14144
14144
  var o = cy(e, t);
14145
- return o.length === 1 || o.length === 2 && ui(o[0], o[1]) < 1 ? Qo(o[0]) : o.length > 1 ? (o = oi(o, function(i) {
14145
+ return o.length === 1 || o.length === 2 && di(o[0], o[1]) < 1 ? ei(o[0]) : o.length > 1 ? (o = ii(o, function(i) {
14146
14146
  var a = Math.floor(i.t2 * 100) || 1;
14147
14147
  return a = 100 - a, a = (a < 10 ? "0" : "") + a, i.segment2 + "#" + a;
14148
- }), Qo(o[n ? 0 : o.length - 1])) : null;
14148
+ }), ei(o[n ? 0 : o.length - 1])) : null;
14149
14149
  }
14150
14150
  function cy(e, t) {
14151
14151
  return Mc(e, t);
@@ -14153,7 +14153,7 @@ function cy(e, t) {
14153
14153
  function uy(e) {
14154
14154
  e = e.slice();
14155
14155
  for (var t = 0, n, o, i; e[t]; )
14156
- n = e[t], o = e[t - 1], i = e[t + 1], ui(n, i) === 0 || Pl(o, i, n) ? e.splice(t, 1) : t++;
14156
+ n = e[t], o = e[t - 1], i = e[t + 1], di(n, i) === 0 || Pl(o, i, n) ? e.splice(t, 1) : t++;
14157
14157
  return e;
14158
14158
  }
14159
14159
  function dy(e, t) {
@@ -14766,25 +14766,25 @@ function Bo() {
14766
14766
  }
14767
14767
  }), Bl.bind(this, "parent"), Vc.bind(this, "labels"), Nc.bind(this, "outgoing"), Wc.bind(this, "incoming");
14768
14768
  }
14769
- function di() {
14769
+ function fi() {
14770
14770
  Bo.call(this), Bl.bind(this, "children"), Zr.bind(this, "host"), Zr.bind(this, "attachers");
14771
14771
  }
14772
- ro(di, Bo);
14772
+ ro(fi, Bo);
14773
14773
  function Uc() {
14774
14774
  Bo.call(this), Bl.bind(this, "children");
14775
14775
  }
14776
- ro(Uc, di);
14776
+ ro(Uc, fi);
14777
14777
  function Yc() {
14778
- di.call(this), Vc.bind(this, "labelTarget");
14778
+ fi.call(this), Vc.bind(this, "labelTarget");
14779
14779
  }
14780
- ro(Yc, di);
14780
+ ro(Yc, fi);
14781
14781
  function Gc() {
14782
14782
  Bo.call(this), Nc.bind(this, "source"), Wc.bind(this, "target");
14783
14783
  }
14784
14784
  ro(Gc, Bo);
14785
14785
  var My = {
14786
14786
  connection: Gc,
14787
- shape: di,
14787
+ shape: fi,
14788
14788
  label: Yc,
14789
14789
  root: Uc
14790
14790
  };
@@ -14924,7 +14924,7 @@ va.prototype.revert = function(e) {
14924
14924
  var t = e.connection;
14925
14925
  return this._canvas.removeConnection(t), t.source = null, t.target = null, t;
14926
14926
  };
14927
- var Ii = Math.round;
14927
+ var Oi = Math.round;
14928
14928
  function Ll(e) {
14929
14929
  this._modeling = e;
14930
14930
  }
@@ -14940,14 +14940,14 @@ Ll.prototype.preExecute = function(e) {
14940
14940
  return !d.hidden;
14941
14941
  }), s = dn(r);
14942
14942
  ne(t, function(d) {
14943
- Dt(d) && (d.waypoints = li(d.waypoints, function(f) {
14943
+ Dt(d) && (d.waypoints = ri(d.waypoints, function(f) {
14944
14944
  return {
14945
- x: Ii(f.x - s.x - s.width / 2 + i.x),
14946
- y: Ii(f.y - s.y - s.height / 2 + i.y)
14945
+ x: Oi(f.x - s.x - s.width / 2 + i.x),
14946
+ y: Oi(f.y - s.y - s.height / 2 + i.y)
14947
14947
  };
14948
14948
  })), _e(d, {
14949
- x: Ii(d.x - s.x - s.width / 2 + i.x),
14950
- y: Ii(d.y - s.y - s.height / 2 + i.y)
14949
+ x: Oi(d.x - s.x - s.width / 2 + i.x),
14950
+ y: Oi(d.y - s.y - s.height / 2 + i.y)
14951
14951
  });
14952
14952
  });
14953
14953
  var c = Pm(t), u = {};
@@ -14972,13 +14972,13 @@ Ll.prototype.preExecute = function(e) {
14972
14972
  var f = _e({}, a);
14973
14973
  c.indexOf(d) === -1 && (f.autoResize = !1), Ao(d) && (f = qd(f, ["attach"])), u[d.id] = Ct(o) ? l.createShape(
14974
14974
  d,
14975
- Gi(d, ["x", "y", "width", "height"]),
14975
+ Ki(d, ["x", "y", "width", "height"]),
14976
14976
  d.parent || n,
14977
14977
  o,
14978
14978
  f
14979
14979
  ) : l.createShape(
14980
14980
  d,
14981
- Gi(d, ["x", "y", "width", "height"]),
14981
+ Ki(d, ["x", "y", "width", "height"]),
14982
14982
  d.parent || n,
14983
14983
  f
14984
14984
  );
@@ -15004,18 +15004,18 @@ Vn.prototype.revert = function(e) {
15004
15004
  var t = e.shape;
15005
15005
  return this._canvas.removeShape(t), t;
15006
15006
  };
15007
- function fi(e) {
15007
+ function hi(e) {
15008
15008
  Vn.call(this, e);
15009
15009
  }
15010
- ro(fi, Vn);
15011
- fi.$inject = ["canvas"];
15010
+ ro(hi, Vn);
15011
+ hi.$inject = ["canvas"];
15012
15012
  var Iy = Vn.prototype.execute;
15013
- fi.prototype.execute = function(e) {
15013
+ hi.prototype.execute = function(e) {
15014
15014
  var t = e.shape;
15015
15015
  return By(t), t.labelTarget = e.labelTarget, Iy.call(this, e);
15016
15016
  };
15017
15017
  var Oy = Vn.prototype.revert;
15018
- fi.prototype.revert = function(e) {
15018
+ hi.prototype.revert = function(e) {
15019
15019
  return e.shape.labelTarget = null, Oy.call(this, e);
15020
15020
  };
15021
15021
  function By(e) {
@@ -15023,14 +15023,14 @@ function By(e) {
15023
15023
  typeof e[t] > "u" && (e[t] = 0);
15024
15024
  });
15025
15025
  }
15026
- function hi(e, t) {
15026
+ function pi(e, t) {
15027
15027
  this._canvas = e, this._modeling = t;
15028
15028
  }
15029
- hi.$inject = [
15029
+ pi.$inject = [
15030
15030
  "canvas",
15031
15031
  "modeling"
15032
15032
  ];
15033
- hi.prototype.preExecute = function(e) {
15033
+ pi.prototype.preExecute = function(e) {
15034
15034
  var t = this._modeling, n = e.connection;
15035
15035
  ko(n.incoming, function(o) {
15036
15036
  t.removeConnection(o, { nested: !0 });
@@ -15038,11 +15038,11 @@ hi.prototype.preExecute = function(e) {
15038
15038
  t.removeConnection(o, { nested: !0 });
15039
15039
  });
15040
15040
  };
15041
- hi.prototype.execute = function(e) {
15041
+ pi.prototype.execute = function(e) {
15042
15042
  var t = e.connection, n = t.parent;
15043
15043
  return e.parent = n, e.parentIndex = Il(n.children, t), e.source = t.source, e.target = t.target, this._canvas.removeConnection(t), t.source = null, t.target = null, t;
15044
15044
  };
15045
- hi.prototype.revert = function(e) {
15045
+ pi.prototype.revert = function(e) {
15046
15046
  var t = e.connection, n = e.parent, o = e.parentIndex;
15047
15047
  return t.source = e.source, t.target = e.target, Dn(n.children, t, o), this._canvas.addConnection(t, n), t;
15048
15048
  };
@@ -15059,11 +15059,11 @@ $l.prototype.postExecute = function(e) {
15059
15059
  n.get(i.id) && (i.waypoints ? t.removeConnection(i) : t.removeShape(i));
15060
15060
  });
15061
15061
  };
15062
- function pi(e, t) {
15062
+ function gi(e, t) {
15063
15063
  this._canvas = e, this._modeling = t;
15064
15064
  }
15065
- pi.$inject = ["canvas", "modeling"];
15066
- pi.prototype.preExecute = function(e) {
15065
+ gi.$inject = ["canvas", "modeling"];
15066
+ gi.prototype.preExecute = function(e) {
15067
15067
  var t = this._modeling, n = e.shape;
15068
15068
  ko(n.incoming, function(o) {
15069
15069
  t.removeConnection(o, { nested: !0 });
@@ -15073,11 +15073,11 @@ pi.prototype.preExecute = function(e) {
15073
15073
  Dt(o) ? t.removeConnection(o, { nested: !0 }) : t.removeShape(o, { nested: !0 });
15074
15074
  });
15075
15075
  };
15076
- pi.prototype.execute = function(e) {
15076
+ gi.prototype.execute = function(e) {
15077
15077
  var t = this._canvas, n = e.shape, o = n.parent;
15078
15078
  return e.oldParent = o, e.oldParentIndex = Il(o.children, n), t.removeShape(n), n;
15079
15079
  };
15080
- pi.prototype.revert = function(e) {
15080
+ gi.prototype.revert = function(e) {
15081
15081
  var t = this._canvas, n = e.shape, o = e.oldParent, i = e.oldParentIndex;
15082
15082
  return Dn(o.children, n, i), t.addShape(n, o), n;
15083
15083
  };
@@ -15114,7 +15114,7 @@ ma.prototype.preExecute = function(e) {
15114
15114
  y && y !== n.length - 1 && (a(v, v.elements[0]), g += s(v.range));
15115
15115
  return;
15116
15116
  }
15117
- b = oi(v.elements, o), x = b[0], y === d && (x = b[r(b)]), w = l(x), v.range = null, ne(b, function(_) {
15117
+ b = ii(v.elements, o), x = b[0], y === d && (x = b[r(b)]), w = l(x), v.range = null, ne(b, function(_) {
15118
15118
  if (c(w, _), v.range === null) {
15119
15119
  v.range = {
15120
15120
  min: _[o],
@@ -15166,7 +15166,7 @@ function ba(e, t, n) {
15166
15166
  x: a.x * (n.width / t.width),
15167
15167
  y: a.y * (n.height / t.height)
15168
15168
  };
15169
- return Qo({
15169
+ return ei({
15170
15170
  x: i.x + l.x,
15171
15171
  y: i.y + l.y
15172
15172
  });
@@ -15202,7 +15202,7 @@ function xa(e) {
15202
15202
  return t;
15203
15203
  }
15204
15204
  function Jc(e, t) {
15205
- var n = li(e, $y);
15205
+ var n = ri(e, $y);
15206
15206
  return Jt(n, function(o) {
15207
15207
  return Ly(o, t);
15208
15208
  });
@@ -15223,13 +15223,13 @@ Wl.prototype.addAll = function(e, t) {
15223
15223
  var n = Hm(e, !!t, this);
15224
15224
  return _e(this, n), this;
15225
15225
  };
15226
- function gi(e) {
15226
+ function vi(e) {
15227
15227
  this._modeling = e;
15228
15228
  }
15229
- gi.prototype.moveRecursive = function(e, t, n) {
15229
+ vi.prototype.moveRecursive = function(e, t, n) {
15230
15230
  return e ? this.moveClosure(this.getClosure(e), t, n) : [];
15231
15231
  };
15232
- gi.prototype.moveClosure = function(e, t, n, o, i) {
15232
+ vi.prototype.moveClosure = function(e, t, n, o, i) {
15233
15233
  var a = this._modeling, l = e.allShapes, r = e.allConnections, s = e.enclosedConnections, c = e.topLevel, u = !1;
15234
15234
  i && i.parent === n && (u = !0), ne(l, function(d) {
15235
15235
  a.moveShape(d, t, c[d.id] && !u && n, {
@@ -15244,11 +15244,11 @@ gi.prototype.moveClosure = function(e, t, n, o, i) {
15244
15244
  });
15245
15245
  });
15246
15246
  };
15247
- gi.prototype.getClosure = function(e) {
15247
+ vi.prototype.getClosure = function(e) {
15248
15248
  return new Wl().addAll(e, !0);
15249
15249
  };
15250
15250
  function wa(e) {
15251
- this._helper = new gi(e);
15251
+ this._helper = new vi(e);
15252
15252
  }
15253
15253
  wa.$inject = ["modeling"];
15254
15254
  wa.prototype.preExecute = function(e) {
@@ -15265,12 +15265,12 @@ wa.prototype.postExecute = function(e) {
15265
15265
  );
15266
15266
  };
15267
15267
  function co(e) {
15268
- this._modeling = e, this._helper = new gi(e);
15268
+ this._modeling = e, this._helper = new vi(e);
15269
15269
  }
15270
15270
  co.$inject = ["modeling"];
15271
15271
  co.prototype.execute = function(e) {
15272
15272
  var t = e.shape, n = e.delta, o = e.newParent || t.parent, i = e.newParentIndex, a = t.parent;
15273
- return e.oldBounds = Gi(t, ["x", "y", "width", "height"]), e.oldParent = a, e.oldParentIndex = ha(a.children, t), Dn(o.children, t, i), _e(t, {
15273
+ return e.oldBounds = Ki(t, ["x", "y", "width", "height"]), e.oldParent = a, e.oldParentIndex = ha(a.children, t), Dn(o.children, t, i), _e(t, {
15274
15274
  parent: o,
15275
15275
  x: t.x + n.x,
15276
15276
  y: t.y + n.y
@@ -15303,21 +15303,21 @@ co.prototype.moveChildren = function(e) {
15303
15303
  co.prototype.getNewParent = function(e) {
15304
15304
  return e.newParent || e.shape.parent;
15305
15305
  };
15306
- function vi(e) {
15306
+ function mi(e) {
15307
15307
  this._modeling = e;
15308
15308
  }
15309
- vi.$inject = ["modeling"];
15310
- vi.prototype.execute = function(e) {
15309
+ mi.$inject = ["modeling"];
15310
+ mi.prototype.execute = function(e) {
15311
15311
  var t = e.newSource, n = e.newTarget, o = e.connection, i = e.dockingOrPoints;
15312
15312
  if (!t && !n)
15313
15313
  throw new Error("newSource or newTarget required");
15314
15314
  return Ze(i) && (e.oldWaypoints = o.waypoints, o.waypoints = i), t && (e.oldSource = o.source, o.source = t), n && (e.oldTarget = o.target, o.target = n), o;
15315
15315
  };
15316
- vi.prototype.postExecute = function(e) {
15316
+ mi.prototype.postExecute = function(e) {
15317
15317
  var t = e.connection, n = e.newSource, o = e.newTarget, i = e.dockingOrPoints, a = e.hints || {}, l = {};
15318
15318
  a.connectionStart && (l.connectionStart = a.connectionStart), a.connectionEnd && (l.connectionEnd = a.connectionEnd), a.layoutConnection !== !1 && (n && (!o || a.docking === "source") && (l.connectionStart = l.connectionStart || ts(Ze(i) ? i[0] : i)), o && (!n || a.docking === "target") && (l.connectionEnd = l.connectionEnd || ts(Ze(i) ? i[i.length - 1] : i)), a.newWaypoints && (l.waypoints = a.newWaypoints), this._modeling.layoutConnection(t, l));
15319
15319
  };
15320
- vi.prototype.revert = function(e) {
15320
+ mi.prototype.revert = function(e) {
15321
15321
  var t = e.oldSource, n = e.oldTarget, o = e.oldWaypoints, i = e.connection;
15322
15322
  return t && (i.source = t), n && (i.target = n), o && (i.waypoints = o), i;
15323
15323
  };
@@ -15385,11 +15385,11 @@ Cn.prototype.reconnectStart = function(e, t, n, o) {
15385
15385
  Cn.prototype.reconnectEnd = function(e, t, n, o) {
15386
15386
  this._modeling.reconnectEnd(e, t, n, o);
15387
15387
  };
15388
- function mi(e) {
15388
+ function yi(e) {
15389
15389
  this._modeling = e;
15390
15390
  }
15391
- mi.$inject = ["modeling"];
15392
- mi.prototype.execute = function(e) {
15391
+ yi.$inject = ["modeling"];
15392
+ yi.prototype.execute = function(e) {
15393
15393
  var t = e.shape, n = e.newBounds, o = e.minBounds;
15394
15394
  if (n.x === void 0 || n.y === void 0 || n.width === void 0 || n.height === void 0)
15395
15395
  throw new Error("newBounds must have {x, y, width, height} properties");
@@ -15409,7 +15409,7 @@ mi.prototype.execute = function(e) {
15409
15409
  y: n.y
15410
15410
  }), t;
15411
15411
  };
15412
- mi.prototype.postExecute = function(e) {
15412
+ yi.prototype.postExecute = function(e) {
15413
15413
  var t = this._modeling, n = e.shape, o = e.oldBounds, i = e.hints || {};
15414
15414
  i.layout !== !1 && (ne(n.incoming, function(a) {
15415
15415
  t.layoutConnection(a, {
@@ -15421,7 +15421,7 @@ mi.prototype.postExecute = function(e) {
15421
15421
  });
15422
15422
  }));
15423
15423
  };
15424
- mi.prototype.revert = function(e) {
15424
+ yi.prototype.revert = function(e) {
15425
15425
  var t = e.shape, n = e.oldBounds;
15426
15426
  return _e(t, {
15427
15427
  width: n.width,
@@ -15525,7 +15525,7 @@ Nn.prototype.updateConnectionWaypoints = function(e, t, n, o, i, a, l) {
15525
15525
  var r = this, s = i.concat(a);
15526
15526
  ne(e, function(c) {
15527
15527
  var u = c.source, d = c.target, f = Fy(c), p = Xc(n), h = {};
15528
- An(s, u) && An(s, d) ? (f = li(f, function(g) {
15528
+ An(s, u) && An(s, d) ? (f = ri(f, function(g) {
15529
15529
  return os(g, o, n) && (g[p] = g[p] + t[p]), g.original && os(g.original, o, n) && (g.original[p] = g.original[p] + t[p]), g;
15530
15530
  }), r._modeling.updateWaypoints(c, f, {
15531
15531
  labelBehavior: !1
@@ -15544,7 +15544,7 @@ function ns(e) {
15544
15544
  return _e({}, e);
15545
15545
  }
15546
15546
  function Fy(e) {
15547
- return li(e.waypoints, function(t) {
15547
+ return ri(e.waypoints, function(t) {
15548
15548
  return t = ns(t), t.original && (t.original = ns(t.original)), t;
15549
15549
  });
15550
15550
  }
@@ -15653,19 +15653,19 @@ Ge.prototype.getHandlers = function() {
15653
15653
  return {
15654
15654
  "shape.append": ga,
15655
15655
  "shape.create": Vn,
15656
- "shape.delete": pi,
15656
+ "shape.delete": gi,
15657
15657
  "shape.move": co,
15658
- "shape.resize": mi,
15658
+ "shape.resize": yi,
15659
15659
  "shape.replace": Cn,
15660
15660
  "shape.toggleCollapse": Ca,
15661
15661
  spaceTool: Nn,
15662
- "label.create": fi,
15662
+ "label.create": hi,
15663
15663
  "connection.create": va,
15664
- "connection.delete": hi,
15664
+ "connection.delete": pi,
15665
15665
  "connection.move": zl,
15666
15666
  "connection.layout": ya,
15667
15667
  "connection.updateWaypoints": Ul,
15668
- "connection.reconnect": vi,
15668
+ "connection.reconnect": mi,
15669
15669
  "elements.create": Ll,
15670
15670
  "elements.move": wa,
15671
15671
  "elements.delete": $l,
@@ -15927,7 +15927,7 @@ function Gl(e) {
15927
15927
  ].includes(e.type);
15928
15928
  }
15929
15929
  function nu(e) {
15930
- return ei(e.label);
15930
+ return ti(e.label);
15931
15931
  }
15932
15932
  function Yy(e) {
15933
15933
  const t = e.length / 2 - 1, n = e[Math.floor(t)], o = e[Math.ceil(t + 0.01)], i = Gy(e), a = Math.atan((o.y - n.y) / (o.x - n.x));
@@ -15947,7 +15947,7 @@ function ou(e) {
15947
15947
  y: e.y + e.height + Uy.height / 2
15948
15948
  };
15949
15949
  }
15950
- function ei(e) {
15950
+ function ti(e) {
15951
15951
  return e && !!e.labelTarget;
15952
15952
  }
15953
15953
  const Ky = {
@@ -15961,7 +15961,7 @@ function iu(e, t) {
15961
15961
  }
15962
15962
  function o(r) {
15963
15963
  const { element: s, newLabel: c } = r, { businessObject: u } = s;
15964
- if (!ei(s) && Gl(s) && !nu(s) && !ls(c)) {
15964
+ if (!ti(s) && Gl(s) && !nu(s) && !ls(c)) {
15965
15965
  let f = ou(s);
15966
15966
  f = {
15967
15967
  x: f.x,
@@ -15981,9 +15981,9 @@ function iu(e, t) {
15981
15981
  function l(r) {
15982
15982
  const { element: s, newLabel: c } = r, u = s.label || s, d = r.hints || {};
15983
15983
  let { newBounds: f } = r;
15984
- if (!ei(u))
15984
+ if (!ti(u))
15985
15985
  return;
15986
- if (ei(u) && ls(c)) {
15986
+ if (ti(u) && ls(c)) {
15987
15987
  d.removeShape !== !1 && e.removeShape(u, { unsetLabel: !1 });
15988
15988
  return;
15989
15989
  }
@@ -15996,16 +15996,16 @@ iu.$inject = ["modeling", "textRenderer"];
15996
15996
  function ls(e) {
15997
15997
  return !e || !e.trim();
15998
15998
  }
15999
- function yi(e, t, n) {
15999
+ function bi(e, t, n) {
16000
16000
  Ge.call(this, e, t, n);
16001
16001
  }
16002
- io(yi, Ge);
16003
- yi.$inject = ["eventBus", "elementFactory", "commandStack"];
16004
- yi.prototype.getHandlers = function() {
16002
+ io(bi, Ge);
16003
+ bi.$inject = ["eventBus", "elementFactory", "commandStack"];
16004
+ bi.prototype.getHandlers = function() {
16005
16005
  const e = Ge.prototype.getHandlers.call(this);
16006
16006
  return e["element.updateLabel"] = iu, e;
16007
16007
  };
16008
- yi.prototype.updateLabel = function(e, t, n, o) {
16008
+ bi.prototype.updateLabel = function(e, t, n, o) {
16009
16009
  this._commandStack.execute("element.updateLabel", {
16010
16010
  element: e,
16011
16011
  newLabel: t,
@@ -16032,7 +16032,7 @@ au.prototype.layoutConnection = function(e, t) {
16032
16032
  t.connectionEnd || yt(t.target || e.target)
16033
16033
  ];
16034
16034
  };
16035
- var Oi = 20, Jy = 5, ea = Math.round, rs = 20, Xy = {
16035
+ var Bi = 20, Jy = 5, ea = Math.round, rs = 20, Xy = {
16036
16036
  "h:h": 20,
16037
16037
  "v:v": 20,
16038
16038
  "h:v": -10,
@@ -16061,11 +16061,11 @@ function Zy(e, t) {
16061
16061
  function lu(e, t, n) {
16062
16062
  var o = Ln(t, e, Jy), i = n.split(":")[0], a = ea((t.x - e.x) / 2 + e.x), l = ea((t.y - e.y) / 2 + e.y), r, s, c = Zy(i, o), u = /h|r|l/.test(i), d = !1, f = !1;
16063
16063
  return c ? (r = u ? { x: a, y: e.y } : { x: e.x, y: l }, s = u ? "h:h" : "v:v") : (d = qy(o, i), s = u ? "h:v" : "v:h", d ? u ? (f = l === e.y, r = {
16064
- x: e.x + Oi * (/l/.test(i) ? -1 : 1),
16065
- y: f ? l + Oi : l
16064
+ x: e.x + Bi * (/l/.test(i) ? -1 : 1),
16065
+ y: f ? l + Bi : l
16066
16066
  }) : (f = a === e.x, r = {
16067
- x: f ? a + Oi : a,
16068
- y: e.y + Oi * (/t/.test(i) ? -1 : 1)
16067
+ x: f ? a + Bi : a,
16068
+ y: e.y + Bi * (/t/.test(i) ? -1 : 1)
16069
16069
  }) : r = {
16070
16070
  x: a,
16071
16071
  y: l
@@ -16201,7 +16201,7 @@ function Xl(e, t, n, o) {
16201
16201
  function i(u) {
16202
16202
  return u.length < 3 ? !0 : u.length > 4 ? !1 : !!rn(u, function(d, f) {
16203
16203
  var p = u[f - 1];
16204
- return p && ui(d, p) < 3;
16204
+ return p && di(d, p) < 3;
16205
16205
  });
16206
16206
  }
16207
16207
  function a(u, d, f) {
@@ -16289,7 +16289,7 @@ ql.prototype.layoutConnection = function(e, t) {
16289
16289
  t || (t = {});
16290
16290
  const n = t.source || e.source, o = t.target || e.target, i = t.waypoints || e.waypoints;
16291
16291
  let { connectionStart: a, connectionEnd: l } = t, r, s;
16292
- return l === void 0 && (a = Bi(i && i[0], n), l = Bi(i && i[i.length - 1], o)), a || (a = Bi(i && i[0], n)), l || (l = Bi(i && i[i.length - 1], o)), Zn(e, "myline") && (n === o ? r = {
16292
+ return l === void 0 && (a = Li(i && i[0], n), l = Li(i && i[i.length - 1], o)), a || (a = Li(i && i[0], n)), l || (l = Li(i && i[i.length - 1], o)), Zn(e, "myline") && (n === o ? r = {
16293
16293
  preferredLayouts: hb(n, e)
16294
16294
  } : Zn(n, "gatewayAnd") || Zn(n, "gatewayXor") || Zn(n, "gatewayInclusive") ? r = {
16295
16295
  preferredLayouts: ["v:h"]
@@ -16301,7 +16301,7 @@ ql.prototype.layoutConnection = function(e, t) {
16301
16301
  ab(n, o, a, l, i, r)
16302
16302
  )), s || [a, l];
16303
16303
  };
16304
- function Bi(e, t) {
16304
+ function Li(e, t) {
16305
16305
  return e ? e.original || e : yt(t);
16306
16306
  }
16307
16307
  function hb(e, t) {
@@ -16344,7 +16344,7 @@ Wn.prototype._getGfx = function(e) {
16344
16344
  const cu = {
16345
16345
  __depends__: [xy, _y, Io],
16346
16346
  __init__: ["modeling", "elementUpdater"],
16347
- modeling: ["type", yi],
16347
+ modeling: ["type", bi],
16348
16348
  layouter: ["type", ql],
16349
16349
  elementUpdater: ["type", Kl],
16350
16350
  elementFactory: ["type", so],
@@ -16375,7 +16375,7 @@ uo.prototype.getConnectionPath = function(e) {
16375
16375
  function gb(e) {
16376
16376
  return e.businessObject;
16377
16377
  }
16378
- function Li(e, t) {
16378
+ function $i(e, t) {
16379
16379
  return e.businessObject.strokeWidth || t || 1;
16380
16380
  }
16381
16381
  function Qt(e, t) {
@@ -16392,7 +16392,7 @@ function vb(e) {
16392
16392
  ["a", o, o, 0, 1, 1, 0, -2 * o],
16393
16393
  ["z"]
16394
16394
  ];
16395
- return ci(i);
16395
+ return ui(i);
16396
16396
  }
16397
16397
  function mb(e, t) {
16398
16398
  const { x: n, y: o, width: i, height: a } = e, l = [
@@ -16407,7 +16407,7 @@ function mb(e, t) {
16407
16407
  ["a", t, t, 0, 0, 1, t, -t],
16408
16408
  ["z"]
16409
16409
  ];
16410
- return ci(l);
16410
+ return ui(l);
16411
16411
  }
16412
16412
  function yb(e) {
16413
16413
  const { x: t, y: n, width: o, height: i } = e, a = o / 2, l = i / 2, r = [
@@ -16417,11 +16417,11 @@ function yb(e) {
16417
16417
  ["l", -a, -l],
16418
16418
  ["z"]
16419
16419
  ];
16420
- return ci(r);
16420
+ return ui(r);
16421
16421
  }
16422
16422
  function bb(e) {
16423
16423
  const { x: t, y: n, width: o, height: i } = e, a = [["M", t, n], ["l", o, 0], ["l", 0, i], ["l", -o, 0], ["z"]];
16424
- return ci(a);
16424
+ return ui(a);
16425
16425
  }
16426
16426
  const rl = 10, La = 0.95, jn = (e, t) => e.type === t;
16427
16427
  function fo(e, t, n, o, i, a, l) {
@@ -16636,7 +16636,7 @@ function fo(e, t, n, o, i, a, l) {
16636
16636
  const O = {
16637
16637
  fill: Qt(k, c.startEvent?.fill || k.fill),
16638
16638
  stroke: mt(k, c.startEvent?.stroke || k.stroke),
16639
- strokeWidth: Li(
16639
+ strokeWidth: $i(
16640
16640
  k,
16641
16641
  c.startEvent?.strokeWidth || k.strokeWidth
16642
16642
  )
@@ -16645,7 +16645,7 @@ function fo(e, t, n, o, i, a, l) {
16645
16645
  },
16646
16646
  endEvent(M, k) {
16647
16647
  const O = d("event")(M, k, {
16648
- strokeWidth: Li(
16648
+ strokeWidth: $i(
16649
16649
  k,
16650
16650
  c.endEvent?.strokeWidth || k.strokeWidth || 4
16651
16651
  ),
@@ -16657,7 +16657,7 @@ function fo(e, t, n, o, i, a, l) {
16657
16657
  gateway(M, k) {
16658
16658
  const O = {
16659
16659
  fillOpacity: La,
16660
- strokeWidth: Li(
16660
+ strokeWidth: $i(
16661
16661
  k,
16662
16662
  c[k.type]?.strokeWidth || k.strokeWidth || 4
16663
16663
  ),
@@ -16810,7 +16810,7 @@ function fo(e, t, n, o, i, a, l) {
16810
16810
  },
16811
16811
  default(M, k) {
16812
16812
  const O = {
16813
- strokeWidth: Li(
16813
+ strokeWidth: $i(
16814
16814
  k,
16815
16815
  c[k.type]?.strokeWidth || k.strokeWidth || 1
16816
16816
  ),
@@ -16916,7 +16916,7 @@ function Mb() {
16916
16916
  var e = document.getElementById("helper-svg");
16917
16917
  return e || (e = Ve("svg"), ye(e, {
16918
16918
  id: "helper-svg"
16919
- }), ai(e, {
16919
+ }), li(e, {
16920
16920
  visibility: "hidden",
16921
16921
  position: "fixed",
16922
16922
  width: 0,
@@ -17433,11 +17433,11 @@ Lo.prototype._alignmentPosition = function(e, t) {
17433
17433
  elements: [f],
17434
17434
  center: p
17435
17435
  };
17436
- }), s = oi(l, function(f) {
17436
+ }), s = ii(l, function(f) {
17437
17437
  return f.elements.length > 1 && (r = !0), f.elements.length;
17438
17438
  }), r)
17439
17439
  return a[e] = $a(s).center, a;
17440
- c = t[0], t = oi(t, function(f) {
17440
+ c = t[0], t = ii(t, function(f) {
17441
17441
  return f[o] + f[i];
17442
17442
  }), u = $a(t), a[e] = d(c, u);
17443
17443
  }
@@ -17448,7 +17448,7 @@ Lo.prototype.trigger = function(e, t) {
17448
17448
  return !(s.waypoints || s.host || s.labelTarget);
17449
17449
  });
17450
17450
  if (o = this._rules.allowed("elements.align", { elements: i }), Ze(o) && (i = o), !(i.length < 2 || !o)) {
17451
- var a = Fb[t], l = oi(i, a), r = this._alignmentPosition(t, l);
17451
+ var a = Fb[t], l = ii(i, a), r = this._alignmentPosition(t, l);
17452
17452
  n.alignElements(l, r);
17453
17453
  }
17454
17454
  };
@@ -17456,7 +17456,7 @@ const Vb = {
17456
17456
  __init__: ["alignElements"],
17457
17457
  alignElements: ["type", Lo]
17458
17458
  };
17459
- var $i = Math.round, Nb = Math.max;
17459
+ var zi = Math.round, Nb = Math.max;
17460
17460
  function Wb(e, t) {
17461
17461
  var n = e.x, o = e.y;
17462
17462
  return [
@@ -17477,7 +17477,7 @@ var gu = 10;
17477
17477
  function Yb(e, t) {
17478
17478
  var n, o;
17479
17479
  for (n = 0; o = e[n]; n++)
17480
- if (ui(o, t) <= gu)
17480
+ if (di(o, t) <= gu)
17481
17481
  return {
17482
17482
  point: e[n],
17483
17483
  bendpoint: !0,
@@ -17493,14 +17493,14 @@ function Gb(e, t) {
17493
17493
  index: a
17494
17494
  }) : {
17495
17495
  point: {
17496
- x: $i(o.x + i.x) / 2,
17497
- y: $i(o.y + i.y) / 2
17496
+ x: zi(o.x + i.x) / 2,
17497
+ y: zi(o.y + i.y) / 2
17498
17498
  },
17499
17499
  index: o.segment2
17500
17500
  } : {
17501
17501
  point: {
17502
- x: $i(o.x),
17503
- y: $i(o.y)
17502
+ x: zi(o.x),
17503
+ y: zi(o.y)
17504
17504
  },
17505
17505
  index: o.segment2
17506
17506
  } : null;
@@ -17813,7 +17813,7 @@ function ta(e) {
17813
17813
  if (i === eo)
17814
17814
  return t && n && t === n && n !== o;
17815
17815
  }
17816
- var ix = "reconnectStart", ax = "reconnectEnd", ms = "updateWaypoints", Yo = "connect-ok", zi = "connect-not-ok", ys = "connect-hover", bs = "djs-updating", xs = "djs-dragging", ws = 1100;
17816
+ var ix = "reconnectStart", ax = "reconnectEnd", ms = "updateWaypoints", Yo = "connect-ok", Di = "connect-not-ok", ys = "connect-hover", bs = "djs-updating", xs = "djs-dragging", ws = 1100;
17817
17817
  function wu(e, t, n, o) {
17818
17818
  this._injector = t;
17819
17819
  var i = t.get("connectionPreview", !1);
@@ -17827,14 +17827,14 @@ function wu(e, t, n, o) {
17827
17827
  if (s) {
17828
17828
  if (o.addMarker(s, ys), c === ms)
17829
17829
  return;
17830
- r ? (o.removeMarker(s, zi), o.addMarker(s, Yo)) : r === !1 && (o.removeMarker(s, Yo), o.addMarker(s, zi));
17830
+ r ? (o.removeMarker(s, Di), o.addMarker(s, Yo)) : r === !1 && (o.removeMarker(s, Yo), o.addMarker(s, Di));
17831
17831
  }
17832
17832
  }), n.on([
17833
17833
  "bendpoint.move.out",
17834
17834
  "bendpoint.move.cleanup"
17835
17835
  ], ws, function(a) {
17836
17836
  var l = a.context, r = l.hover, s = l.target;
17837
- r && (o.removeMarker(r, ys), o.removeMarker(r, s ? Yo : zi));
17837
+ r && (o.removeMarker(r, ys), o.removeMarker(r, s ? Yo : Di));
17838
17838
  }), n.on("bendpoint.move.move", function(a) {
17839
17839
  var l = a.context, r = l.allowed, s = l.bendpointIndex, c = l.draggerGfx, u = l.hover, d = l.type, f = l.connection, p = f.source, h = f.target, g = f.waypoints.slice(), v = { x: a.x, y: a.y }, y = l.hints || {}, b = {};
17840
17840
  i && (y.connectionStart && (b.connectionStart = y.connectionStart), y.connectionEnd && (b.connectionEnd = y.connectionEnd), d === ix ? ta(l) ? (b.connectionEnd = b.connectionEnd || v, b.source = h, b.target = u || p, g = g.reverse()) : (b.connectionStart = b.connectionStart || v, b.source = u || p, b.target = h) : d === ax ? ta(l) ? (b.connectionStart = b.connectionStart || v, b.source = u || h, b.target = p, g = g.reverse()) : (b.connectionEnd = b.connectionEnd || v, b.source = p, b.target = u || h) : (b.noCropping = !0, b.noLayout = !0, g[s] = v), d === ms && (g = e.cropWaypoints(f, g)), b.waypoints = g, i.drawPreview(l, r, b)), un(c, a.x, a.y);
@@ -17843,7 +17843,7 @@ function wu(e, t, n, o) {
17843
17843
  "bendpoint.move.cancel"
17844
17844
  ], ws, function(a) {
17845
17845
  var l = a.context, r = l.connection, s = l.draggerGfx, c = l.hover, u = l.target, d = l.waypoints;
17846
- r.waypoints = d, Yt(s), o.removeMarker(r, bs), o.removeMarker(r, xs), c && (o.removeMarker(c, Yo), o.removeMarker(c, u ? Yo : zi)), i && i.cleanUp(l);
17846
+ r.waypoints = d, Yt(s), o.removeMarker(r, bs), o.removeMarker(r, xs), c && (o.removeMarker(c, Yo), o.removeMarker(c, u ? Yo : Di)), i && i.cleanUp(l);
17847
17847
  });
17848
17848
  }
17849
17849
  wu.$inject = [
@@ -18199,8 +18199,8 @@ Tt.$inject = [
18199
18199
  Tt.prototype.get = function(e) {
18200
18200
  if (Ka(e) && (e = { id: e }), Ka(e.element) && (e.element = this._elementRegistry.get(e.element)), e.element) {
18201
18201
  var t = this._getOverlayContainer(e.element, !0);
18202
- return t ? e.type ? Jt(t.overlays, Ki({ type: e.type })) : t.overlays.slice() : [];
18203
- } else return e.type ? Jt(this._overlays, Ki({ type: e.type })) : e.id ? this._overlays[e.id] : null;
18202
+ return t ? e.type ? Jt(t.overlays, Ji({ type: e.type })) : t.overlays.slice() : [];
18203
+ } else return e.type ? Jt(this._overlays, Ji({ type: e.type })) : e.id ? this._overlays[e.id] : null;
18204
18204
  };
18205
18205
  Tt.prototype.add = function(e, t, n) {
18206
18206
  if (Xt(t) && (n = t, t = null), e.id || (e = this._elementRegistry.get(e)), !n.position)
@@ -18263,7 +18263,7 @@ Tt.prototype._updateOverlay = function(e) {
18263
18263
  };
18264
18264
  Tt.prototype._createOverlayContainer = function(e) {
18265
18265
  var t = Ut('<div class="djs-overlays" />');
18266
- ai(t, { position: "absolute" }), this._overlayRoot.appendChild(t);
18266
+ li(t, { position: "absolute" }), this._overlayRoot.appendChild(t);
18267
18267
  var n = {
18268
18268
  html: t,
18269
18269
  element: e,
@@ -18290,7 +18290,7 @@ Tt.prototype._getOverlayContainer = function(e, t) {
18290
18290
  };
18291
18291
  Tt.prototype._addOverlay = function(e) {
18292
18292
  var t = e.id, n = e.element, o = e.html, i, a;
18293
- o.get && o.constructor.prototype.jquery && (o = o.get(0)), Ka(o) && (o = Ut(o)), a = this._getOverlayContainer(n), i = Ut('<div class="djs-overlay" data-overlay-id="' + t + '">'), ai(i, { position: "absolute" }), i.appendChild(o), e.type && Nt(i).add("djs-overlay-" + e.type);
18293
+ o.get && o.constructor.prototype.jquery && (o = o.get(0)), Ka(o) && (o = Ut(o)), a = this._getOverlayContainer(n), i = Ut('<div class="djs-overlay" data-overlay-id="' + t + '">'), li(i, { position: "absolute" }), i.appendChild(o), e.type && Nt(i).add("djs-overlay-" + e.type);
18294
18294
  var l = this._canvas.findRoot(n), r = this._canvas.getRootElement();
18295
18295
  Ea(i, l === r), e.htmlContainer = i, a.overlays.push(e), a.html.appendChild(i), this._overlays[t] = e, this._updateOverlay(e), this._updateOverlayVisibilty(e, this._canvas.viewbox());
18296
18296
  };
@@ -18344,14 +18344,14 @@ function bx(e) {
18344
18344
  var t = Ut(
18345
18345
  '<div class="djs-overlay-container" />'
18346
18346
  );
18347
- return ai(t, {
18347
+ return li(t, {
18348
18348
  position: "absolute",
18349
18349
  width: 0,
18350
18350
  height: 0
18351
18351
  }), e.insertBefore(t, e.firstChild), t;
18352
18352
  }
18353
18353
  function ku(e, t, n) {
18354
- ai(e, { left: t + "px", top: n + "px" });
18354
+ li(e, { left: t + "px", top: n + "px" });
18355
18355
  }
18356
18356
  function Ea(e, t) {
18357
18357
  e.style.display = t === !1 ? "none" : "";
@@ -18412,7 +18412,7 @@ function Cx() {
18412
18412
  const Sx = {
18413
18413
  scheduler: ["type", $o]
18414
18414
  };
18415
- var _x = "djs-element-hidden", Di = ".entry", Ex = 1e3, Ts = 8, kx = 300;
18415
+ var _x = "djs-element-hidden", Fi = ".entry", Ex = 1e3, Ts = 8, kx = 300;
18416
18416
  function wt(e, t, n, o) {
18417
18417
  this._canvas = e, this._elementRegistry = t, this._eventBus = n, this._scheduler = o, this._current = null, this._init();
18418
18418
  }
@@ -18524,13 +18524,13 @@ wt.prototype._updateAndOpen = function(e) {
18524
18524
  };
18525
18525
  wt.prototype._createHtml = function(e) {
18526
18526
  var t = this, n = Ut('<div class="djs-context-pad"></div>');
18527
- return Hn.bind(n, Di, "click", function(o) {
18527
+ return Hn.bind(n, Fi, "click", function(o) {
18528
18528
  t.trigger("click", o);
18529
- }), Hn.bind(n, Di, "dragstart", function(o) {
18529
+ }), Hn.bind(n, Fi, "dragstart", function(o) {
18530
18530
  t.trigger("dragstart", o);
18531
- }), Hn.bind(n, Di, "mouseover", function(o) {
18531
+ }), Hn.bind(n, Fi, "mouseover", function(o) {
18532
18532
  t.trigger("mouseover", o);
18533
- }), Hn.bind(n, Di, "mouseout", function(o) {
18533
+ }), Hn.bind(n, Fi, "mouseout", function(o) {
18534
18534
  t.trigger("mouseout", o);
18535
18535
  }), Xe.bind(n, "mousedown", function(o) {
18536
18536
  o.stopPropagation();
@@ -19089,7 +19089,7 @@ go.prototype.getOutline = function(e) {
19089
19089
  }), t;
19090
19090
  };
19091
19091
  go.$inject = ["eventBus", "styles", "elementRegistry"];
19092
- var Fi = 6;
19092
+ var Vi = 6;
19093
19093
  function ir(e, t, n) {
19094
19094
  this._canvas = t;
19095
19095
  var o = this;
@@ -19114,10 +19114,10 @@ ir.prototype._updateMultiSelectionOutline = function(e) {
19114
19114
  ir.$inject = ["eventBus", "canvas", "selection"];
19115
19115
  function zx(e) {
19116
19116
  return {
19117
- x: e.x - Fi,
19118
- y: e.y - Fi,
19119
- width: e.width + Fi * 2,
19120
- height: e.height + Fi * 2
19117
+ x: e.x - Vi,
19118
+ y: e.y - Vi,
19119
+ width: e.width + Vi * 2,
19120
+ height: e.height + Vi * 2
19121
19121
  };
19122
19122
  }
19123
19123
  const Pu = {
@@ -19266,7 +19266,7 @@ ju.$inject = [
19266
19266
  ];
19267
19267
  function Ux(e) {
19268
19268
  var t = Jt(e, function(n) {
19269
- return Dt(n) ? rn(e, Ki({ id: n.source.id })) && rn(e, Ki({ id: n.target.id })) : !0;
19269
+ return Dt(n) ? rn(e, Ji({ id: n.source.id })) && rn(e, Ji({ id: n.target.id })) : !0;
19270
19270
  });
19271
19271
  return t;
19272
19272
  }
@@ -19467,7 +19467,7 @@ function nw(e, t, n) {
19467
19467
  };
19468
19468
  return t.indexOf("n") !== -1 ? (a.y = e.y + i, a.height = e.height - i) : t.indexOf("s") !== -1 && (a.height = e.height + i), t.indexOf("e") !== -1 ? a.width = e.width + o : t.indexOf("w") !== -1 && (a.x = e.x + o, a.width = e.width - o), a;
19469
19469
  }
19470
- function Vi(e, t, n) {
19470
+ function Ni(e, t, n) {
19471
19471
  var o = t[e], i = n.min && n.min[e], a = n.max && n.max[e];
19472
19472
  return Ct(i) && (o = (/top|left/.test(e) ? aa : ia)(o, i)), Ct(a) && (o = (/top|left/.test(e) ? ia : aa)(o, a)), o;
19473
19473
  }
@@ -19476,10 +19476,10 @@ function ow(e, t) {
19476
19476
  return e;
19477
19477
  var n = qe(e);
19478
19478
  return Ac({
19479
- top: Vi("top", n, t),
19480
- right: Vi("right", n, t),
19481
- bottom: Vi("bottom", n, t),
19482
- left: Vi("left", n, t)
19479
+ top: Ni("top", n, t),
19480
+ right: Ni("right", n, t),
19481
+ bottom: Ni("bottom", n, t),
19482
+ left: Ni("left", n, t)
19483
19483
  });
19484
19484
  }
19485
19485
  function iw(e, t, n, o) {
@@ -19517,7 +19517,7 @@ function rw(e, t) {
19517
19517
  return aw(dn(n), t);
19518
19518
  }
19519
19519
  var $s = 10;
19520
- function bi(e, t, n, o) {
19520
+ function xi(e, t, n, o) {
19521
19521
  this._dragging = o, this._rules = t;
19522
19522
  var i = this;
19523
19523
  function a(s, c) {
@@ -19550,11 +19550,11 @@ function bi(e, t, n, o) {
19550
19550
  r(s.context);
19551
19551
  });
19552
19552
  }
19553
- bi.prototype.canResize = function(e) {
19554
- var t = this._rules, n = Gi(e, ["newBounds", "shape", "delta", "direction"]);
19553
+ xi.prototype.canResize = function(e) {
19554
+ var t = this._rules, n = Ki(e, ["newBounds", "shape", "delta", "direction"]);
19555
19555
  return t.allowed("shape.resize", n);
19556
19556
  };
19557
- bi.prototype.activate = function(e, t, n) {
19557
+ xi.prototype.activate = function(e, t, n) {
19558
19558
  var o = this._dragging, i, a;
19559
19559
  if (typeof n == "string" && (n = {
19560
19560
  direction: n
@@ -19569,14 +19569,14 @@ bi.prototype.activate = function(e, t, n) {
19569
19569
  }
19570
19570
  });
19571
19571
  };
19572
- bi.prototype.computeMinResizeBox = function(e) {
19572
+ xi.prototype.computeMinResizeBox = function(e) {
19573
19573
  var t = e.shape, n = e.direction, o, i;
19574
19574
  return o = e.minDimensions || {
19575
19575
  width: $s,
19576
19576
  height: $s
19577
19577
  }, i = rw(t, e.childrenBoxPadding), iw(n, t, o, i);
19578
19578
  };
19579
- bi.$inject = [
19579
+ xi.$inject = [
19580
19580
  "eventBus",
19581
19581
  "rules",
19582
19582
  "modeling",
@@ -19617,7 +19617,7 @@ Lu.$inject = [
19617
19617
  "canvas",
19618
19618
  "previewSupport"
19619
19619
  ];
19620
- var Ni = -6, Wi = 8, Ui = 20, Ko = "djs-resizer", dw = ["n", "w", "s", "e", "nw", "ne", "se", "sw"];
19620
+ var Wi = -6, Ui = 8, Yi = 20, Ko = "djs-resizer", dw = ["n", "w", "s", "e", "nw", "ne", "se", "sw"];
19621
19621
  function Yn(e, t, n, o) {
19622
19622
  this._resize = o, this._canvas = t;
19623
19623
  var i = this;
@@ -19641,17 +19641,17 @@ Yn.prototype._createResizer = function(e, t, n, o) {
19641
19641
  lt(l).add(Ko), lt(l).add(Ko + "-" + e.id), lt(l).add(Ko + "-" + o), Oe(i, l);
19642
19642
  var r = Ve("rect");
19643
19643
  ye(r, {
19644
- x: -Wi / 2 + a.x,
19645
- y: -Wi / 2 + a.y,
19646
- width: Wi,
19647
- height: Wi
19648
- }), lt(r).add(Ko + "-visual"), Oe(l, r);
19649
- var s = Ve("rect");
19650
- return ye(s, {
19651
19644
  x: -Ui / 2 + a.x,
19652
19645
  y: -Ui / 2 + a.y,
19653
19646
  width: Ui,
19654
19647
  height: Ui
19648
+ }), lt(r).add(Ko + "-visual"), Oe(l, r);
19649
+ var s = Ve("rect");
19650
+ return ye(s, {
19651
+ x: -Yi / 2 + a.x,
19652
+ y: -Yi / 2 + a.y,
19653
+ width: Yi,
19654
+ height: Yi
19655
19655
  }), lt(s).add(Ko + "-hit"), Oe(l, s), zm(l, t, n), l;
19656
19656
  };
19657
19657
  Yn.prototype.createResizer = function(e, t) {
@@ -19682,7 +19682,7 @@ function fw(e) {
19682
19682
  x: 0,
19683
19683
  y: 0
19684
19684
  };
19685
- return e.indexOf("e") !== -1 ? t.x = -Ni : e.indexOf("w") !== -1 && (t.x = Ni), e.indexOf("s") !== -1 ? t.y = -Ni : e.indexOf("n") !== -1 && (t.y = Ni), t;
19685
+ return e.indexOf("e") !== -1 ? t.x = -Wi : e.indexOf("w") !== -1 && (t.x = Wi), e.indexOf("s") !== -1 ? t.y = -Wi : e.indexOf("n") !== -1 && (t.y = Wi), t;
19686
19686
  }
19687
19687
  const hw = {
19688
19688
  __depends__: [
@@ -19695,11 +19695,11 @@ const hw = {
19695
19695
  "resizePreview",
19696
19696
  "resizeHandles"
19697
19697
  ],
19698
- resize: ["type", bi],
19698
+ resize: ["type", xi],
19699
19699
  resizePreview: ["type", Lu],
19700
19700
  resizeHandles: ["type", Yn]
19701
19701
  };
19702
- function xi(e, t, n, o, i, a) {
19702
+ function wi(e, t, n, o, i, a) {
19703
19703
  this._canvas = t, this._modeling = o, this._textRenderer = a, n.registerProvider(this), e.on("element.dblclick", (r) => {
19704
19704
  l(r.element, !0);
19705
19705
  }), e.on(
@@ -19727,7 +19727,7 @@ function xi(e, t, n, o, i, a) {
19727
19727
  (s || Yl(r, ["userTask", "scriptTask", "subprocess"]) || r.isDirectEdit) && n.activate(r);
19728
19728
  }
19729
19729
  }
19730
- xi.$inject = [
19730
+ wi.$inject = [
19731
19731
  "eventBus",
19732
19732
  "canvas",
19733
19733
  "directEditing",
@@ -19735,7 +19735,7 @@ xi.$inject = [
19735
19735
  "resizeHandles",
19736
19736
  "textRenderer"
19737
19737
  ];
19738
- xi.prototype.activate = function(e) {
19738
+ wi.prototype.activate = function(e) {
19739
19739
  const t = Qi(e);
19740
19740
  if (t === void 0)
19741
19741
  return;
@@ -19752,7 +19752,7 @@ xi.prototype.activate = function(e) {
19752
19752
  options: i
19753
19753
  }), n;
19754
19754
  };
19755
- xi.prototype.getEditingBBox = function(e) {
19755
+ wi.prototype.getEditingBBox = function(e) {
19756
19756
  const t = this._canvas, n = e.label || e, o = t.getAbsoluteBBox(n), i = {
19757
19757
  x: o.x + o.width / 2,
19758
19758
  y: o.y + o.height / 2
@@ -19782,7 +19782,7 @@ xi.prototype.getEditingBBox = function(e) {
19782
19782
  lineHeight: u,
19783
19783
  paddingTop: g + "px",
19784
19784
  paddingBottom: v + "px"
19785
- })), Gl(n) && !nu(n) && !ei(n)) {
19785
+ })), Gl(n) && !nu(n) && !ti(n)) {
19786
19786
  const y = ou(e), b = t.getAbsoluteBBox({
19787
19787
  x: y.x,
19788
19788
  y: y.y,
@@ -19803,7 +19803,7 @@ xi.prototype.getEditingBBox = function(e) {
19803
19803
  }
19804
19804
  return { bounds: a, style: p };
19805
19805
  };
19806
- xi.prototype.update = function(e, t) {
19806
+ wi.prototype.update = function(e, t) {
19807
19807
  let n;
19808
19808
  pw(t) && (t = null), this._modeling.updateLabel(e, t, n);
19809
19809
  };
@@ -19813,7 +19813,7 @@ function pw(e) {
19813
19813
  const gw = {
19814
19814
  __depends__: [ew, hw, nf],
19815
19815
  __init__: ["labelEditingProvider"],
19816
- labelEditingProvider: ["type", xi]
19816
+ labelEditingProvider: ["type", wi]
19817
19817
  };
19818
19818
  function Gn() {
19819
19819
  this._targets = {}, this._snapOrigins = {}, this._snapLocations = [], this._defaultSnaps = {};
@@ -19956,7 +19956,7 @@ Fo.prototype.getSnapTargets = function(e, t) {
19956
19956
  return hn.prototype.getSnapTargets.call(this, e, t);
19957
19957
  };
19958
19958
  var yw = 1250;
19959
- function wi(e, t) {
19959
+ function Ci(e, t) {
19960
19960
  var n = this;
19961
19961
  e.on(["resize.start"], function(o) {
19962
19962
  n.initSnap(o);
@@ -19973,7 +19973,7 @@ function wi(e, t) {
19973
19973
  t.hide();
19974
19974
  });
19975
19975
  }
19976
- wi.prototype.initSnap = function(e) {
19976
+ Ci.prototype.initSnap = function(e) {
19977
19977
  var t = e.context, n = t.shape, o = t.direction, i = t.snapContext;
19978
19978
  i || (i = t.snapContext = new Gn());
19979
19979
  var a = $u(n, o);
@@ -19982,17 +19982,17 @@ wi.prototype.initSnap = function(e) {
19982
19982
  y: a.y - e.y
19983
19983
  }), i;
19984
19984
  };
19985
- wi.prototype.addSnapTargetPoints = function(e, t, n, o) {
19985
+ Ci.prototype.addSnapTargetPoints = function(e, t, n, o) {
19986
19986
  var i = this.getSnapTargets(t, n);
19987
19987
  return ne(i, function(a) {
19988
19988
  e.add("corner", ux(a)), e.add("corner", cx(a));
19989
19989
  }), e.add("corner", $u(t, o)), e;
19990
19990
  };
19991
- wi.$inject = [
19991
+ Ci.$inject = [
19992
19992
  "eventBus",
19993
19993
  "snapping"
19994
19994
  ];
19995
- wi.prototype.getSnapTargets = function(e, t) {
19995
+ Ci.prototype.getSnapTargets = function(e, t) {
19996
19996
  return _u(t).filter(function(n) {
19997
19997
  return !bw(n, e) && !Dt(n) && !xw(n) && !Ao(n);
19998
19998
  });
@@ -20083,7 +20083,7 @@ const Ew = {
20083
20083
  "snapping"
20084
20084
  ],
20085
20085
  createMoveSnapping: ["type", hn],
20086
- resizeSnapping: ["type", wi],
20086
+ resizeSnapping: ["type", Ci],
20087
20087
  snapping: ["type", Kn]
20088
20088
  }, kw = {
20089
20089
  __depends__: [Ew],
@@ -20105,12 +20105,12 @@ Vo.prototype.addRule = function(e, t, n) {
20105
20105
  };
20106
20106
  Vo.prototype.init = function() {
20107
20107
  };
20108
- function Ci(e) {
20108
+ function Si(e) {
20109
20109
  Vo.call(this, e);
20110
20110
  }
20111
- Ci.$inject = ["eventBus"];
20112
- io(Ci, Vo);
20113
- Ci.prototype.init = function() {
20111
+ Si.$inject = ["eventBus"];
20112
+ io(Si, Vo);
20113
+ Si.prototype.init = function() {
20114
20114
  this.addRule("connection.start", function(e) {
20115
20115
  var t = e.source;
20116
20116
  return !!(t && t.type != "" && t.type != null && t.type != null);
@@ -20140,13 +20140,13 @@ Ci.prototype.init = function() {
20140
20140
  return Bm(t);
20141
20141
  });
20142
20142
  };
20143
- Ci.prototype.canConnect = hl;
20143
+ Si.prototype.canConnect = hl;
20144
20144
  function hl(e, t, n) {
20145
20145
  return t.type && e.type && e.type != "endEvent" ? e.id == t.id ? !1 : { type: "myline" } : !1;
20146
20146
  }
20147
20147
  const Rw = {
20148
20148
  __init__: ["myRuleProvider"],
20149
- myRuleProvider: ["type", Ci]
20149
+ myRuleProvider: ["type", Si]
20150
20150
  };
20151
20151
  function ar(e, t, n, o, i, a, l) {
20152
20152
  this._create = e, this._elementFactory = t, this._handTool = n, this._lassoTool = o, this._globalConnect = i, this._palette = a, this._myOptions = l, a.registerProvider(this);
@@ -20977,12 +20977,12 @@ export {
20977
20977
  gt as assign,
20978
20978
  Cl as buildShortUUID,
20979
20979
  Bn as buildUUID,
20980
- Ji as clearJson,
20980
+ Zo as clearJson,
20981
20981
  qa as clone,
20982
20982
  yn as deepClone,
20983
20983
  Q0 as default,
20984
20984
  X0 as eventBus,
20985
- Ti as formatToDate,
20985
+ Mi as formatToDate,
20986
20986
  tc as formatToDateTime,
20987
20987
  Jo as fullScreenLoading,
20988
20988
  _o as getCompConfig,
@@ -21007,7 +21007,7 @@ export {
21007
21007
  Ha as set,
21008
21008
  ff as setGroupMap,
21009
21009
  hf as toArray,
21010
- Ri as toDecimal,
21010
+ Ti as toDecimal,
21011
21011
  pf as toLeafArray,
21012
21012
  G0 as toSimpleTree,
21013
21013
  Y0 as toTree,
@@ -21024,10 +21024,10 @@ export {
21024
21024
  Tf as useHMenuInject,
21025
21025
  Mf as useHMenuProvide,
21026
21026
  bn as useInject,
21027
- si as useLayer,
21027
+ ci as useLayer,
21028
21028
  Z0 as useLayerInject,
21029
21029
  jf as useLayerProvide,
21030
- ri as useMenuInject,
21030
+ si as useMenuInject,
21031
21031
  Rf as useMenuProvide,
21032
21032
  Hf as usePageInject,
21033
21033
  If as usePageProvide,