@leadal/flowstream-ui-plus 0.0.4 → 0.0.5

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,5 +1,5 @@
1
1
  import dl, { ElMessage as vt, ElButton as Cn, ElDialog as hl, ElEmpty as Nr, ElTree as ml, ElCheckbox as yl, ElTabs as gl, ElTabPane as vl, ElTable as wl, ElTableColumn as Gn, ElInput as bl, ElMessageBox as El } from "element-plus";
2
- import { defineComponent as Te, openBlock as ie, createElementBlock as ve, createElementVNode as he, computed as Le, mergeProps as qa, createBlock as Se, resolveDynamicComponent as _l, resolveComponent as Ue, withCtx as ye, createVNode as xe, createTextVNode as Ne, toDisplayString as et, renderSlot as kt, ref as le, watch as wt, onMounted as Fn, createCommentVNode as We, Fragment as pn, renderList as dn, resolveDirective as Ya, unref as Ie, normalizeClass as Ka, withDirectives as hi, nextTick as bt, useSlots as xl, onBeforeUnmount as Ga, normalizeStyle as Xa, reactive as Sl, withModifiers as Br, useModel as Al, vShow as Rl, mergeModels as Cl, shallowRef as kl, createStaticVNode as Tl, markRaw as Pl, render as Ja } from "vue";
2
+ import { defineComponent as Te, openBlock as ie, createElementBlock as ve, createElementVNode as he, computed as Le, mergeProps as qa, createBlock as Se, resolveDynamicComponent as _l, resolveComponent as Ue, withCtx as ye, createVNode as xe, createTextVNode as Ne, toDisplayString as et, renderSlot as kt, ref as ue, watch as wt, onMounted as Fn, createCommentVNode as We, Fragment as pn, renderList as dn, resolveDirective as Ya, unref as Ie, normalizeClass as Ka, withDirectives as hi, nextTick as bt, useSlots as xl, onBeforeUnmount as Ga, normalizeStyle as Xa, reactive as Sl, withModifiers as Br, useModel as Al, vShow as Rl, mergeModels as Cl, shallowRef as kl, createStaticVNode as Tl, markRaw as Pl, render as Ja } from "vue";
3
3
  /*! Element Plus Icons Vue v2.3.2 */
4
4
  var Dl = /* @__PURE__ */ Te({
5
5
  name: "ArrowDown",
@@ -2040,26 +2040,26 @@ const bi = "1.19.0", ua = 64 * 1024, { isFunction: Zn } = v, rf = (e) => encodeU
2040
2040
  maxContentLength: X,
2041
2041
  maxBodyLength: Y
2042
2042
  } = bo(x);
2043
- const G = v.isNumber(X) && X > -1, ne = v.isNumber(Y) && Y > -1, Z = (se) => v.hasOwnProp(x, se) ? x[se] : void 0;
2043
+ const G = v.isNumber(X) && X > -1, ne = v.isNumber(Y) && Y > -1, J = (se) => v.hasOwnProp(x, se) ? x[se] : void 0;
2044
2044
  let O = i || fetch;
2045
2045
  M = M ? (M + "").toLowerCase() : "text";
2046
2046
  let D = qc(
2047
2047
  [A, k && k.toAbortSignal()],
2048
2048
  b
2049
- ), L = null;
2049
+ ), B = null;
2050
2050
  const R = D && D.unsubscribe && (() => {
2051
2051
  D.unsubscribe();
2052
2052
  });
2053
2053
  let C, j = null;
2054
- const fe = () => new re(
2054
+ const pe = () => new re(
2055
2055
  "Request body larger than maxBodyLength limit",
2056
2056
  re.ERR_BAD_REQUEST,
2057
2057
  x,
2058
- L
2058
+ B
2059
2059
  );
2060
2060
  try {
2061
2061
  let se;
2062
- const p = Z("auth");
2062
+ const p = J("auth");
2063
2063
  if (p) {
2064
2064
  const H = v.getSafeProp(p, "username") || "", ee = v.getSafeProp(p, "password") || "";
2065
2065
  se = {
@@ -2086,19 +2086,19 @@ const bi = "1.19.0", ua = 64 * 1024, { isFunction: Zn } = v, rf = (e) => encodeU
2086
2086
  "maxContentLength size of " + X + " exceeded",
2087
2087
  re.ERR_BAD_RESPONSE,
2088
2088
  x,
2089
- L
2089
+ B
2090
2090
  );
2091
2091
  if (ne && m !== "get" && m !== "head") {
2092
2092
  const H = await F(g);
2093
2093
  if (typeof H == "number" && isFinite(H) && (C = H, H > Y))
2094
- throw fe();
2094
+ throw pe();
2095
2095
  }
2096
2096
  const u = ne && (v.isReadableStream(g) || v.isStream(g)), l = (H, ee, U) => oa(
2097
2097
  H,
2098
2098
  ua,
2099
2099
  (V) => {
2100
2100
  if (ne && V > Y)
2101
- throw j = fe();
2101
+ throw j = pe();
2102
2102
  ee && ee(V);
2103
2103
  },
2104
2104
  U
@@ -2125,7 +2125,7 @@ const bi = "1.19.0", ua = 64 * 1024, { isFunction: Zn } = v, rf = (e) => encodeU
2125
2125
  "Stream request bodies are not supported by the current fetch implementation",
2126
2126
  re.ERR_NOT_SUPPORT,
2127
2127
  x,
2128
- L
2128
+ B
2129
2129
  );
2130
2130
  v.isString(W) || (W = W ? "include" : "omit");
2131
2131
  const y = c && "credentials" in a.prototype;
@@ -2143,8 +2143,8 @@ const bi = "1.19.0", ua = 64 * 1024, { isFunction: Zn } = v, rf = (e) => encodeU
2143
2143
  duplex: "half",
2144
2144
  credentials: y ? W : void 0
2145
2145
  };
2146
- L = c && new a(I, w);
2147
- let P = await (c ? O(L, oe) : O(I, w));
2146
+ B = c && new a(I, w);
2147
+ let P = await (c ? O(B, oe) : O(I, w));
2148
2148
  const Q = qe.from(P.headers);
2149
2149
  if (G) {
2150
2150
  const H = v.toFiniteNumber(Q.getContentLength());
@@ -2153,32 +2153,32 @@ const bi = "1.19.0", ua = 64 * 1024, { isFunction: Zn } = v, rf = (e) => encodeU
2153
2153
  "maxContentLength size of " + X + " exceeded",
2154
2154
  re.ERR_BAD_RESPONSE,
2155
2155
  x,
2156
- L
2156
+ B
2157
2157
  );
2158
2158
  }
2159
2159
  const T = $ && (M === "stream" || M === "response");
2160
2160
  if ($ && P.body && (_ || G || T && R)) {
2161
2161
  const H = {};
2162
- ["status", "statusText", "headers"].forEach((de) => {
2163
- H[de] = P[de];
2162
+ ["status", "statusText", "headers"].forEach((le) => {
2163
+ H[le] = P[le];
2164
2164
  });
2165
2165
  const ee = v.toFiniteNumber(Q.getContentLength()), [U, V] = _ && na(
2166
2166
  ee,
2167
2167
  vr(ra(_), !0)
2168
2168
  ) || [];
2169
- let J = 0;
2170
- const B = (de) => {
2171
- if (G && (J = de, J > X))
2169
+ let Z = 0;
2170
+ const L = (le) => {
2171
+ if (G && (Z = le, Z > X))
2172
2172
  throw new re(
2173
2173
  "maxContentLength size of " + X + " exceeded",
2174
2174
  re.ERR_BAD_RESPONSE,
2175
2175
  x,
2176
- L
2176
+ B
2177
2177
  );
2178
- U && U(de);
2178
+ U && U(le);
2179
2179
  };
2180
2180
  P = new o(
2181
- oa(P.body, ua, B, () => {
2181
+ oa(P.body, ua, L, () => {
2182
2182
  V && V(), R && R();
2183
2183
  }),
2184
2184
  H
@@ -2196,7 +2196,7 @@ const bi = "1.19.0", ua = 64 * 1024, { isFunction: Zn } = v, rf = (e) => encodeU
2196
2196
  "maxContentLength size of " + X + " exceeded",
2197
2197
  re.ERR_BAD_RESPONSE,
2198
2198
  x,
2199
- L
2199
+ B
2200
2200
  );
2201
2201
  }
2202
2202
  return !T && R && R(), await new Promise((H, ee) => {
@@ -2206,13 +2206,13 @@ const bi = "1.19.0", ua = 64 * 1024, { isFunction: Zn } = v, rf = (e) => encodeU
2206
2206
  status: P.status,
2207
2207
  statusText: P.statusText,
2208
2208
  config: x,
2209
- request: L
2209
+ request: B
2210
2210
  });
2211
2211
  });
2212
2212
  } catch (se) {
2213
2213
  if (R && R(), D && D.aborted && D.reason instanceof re) {
2214
2214
  const p = D.reason;
2215
- throw p.config = x, L && (p.request = L), se !== p && Object.defineProperty(p, "cause", {
2215
+ throw p.config = x, B && (p.request = B), se !== p && Object.defineProperty(p, "cause", {
2216
2216
  __proto__: null,
2217
2217
  value: se,
2218
2218
  writable: !0,
@@ -2221,15 +2221,15 @@ const bi = "1.19.0", ua = 64 * 1024, { isFunction: Zn } = v, rf = (e) => encodeU
2221
2221
  }), p;
2222
2222
  }
2223
2223
  if (j)
2224
- throw L && !j.request && (j.request = L), j;
2224
+ throw B && !j.request && (j.request = B), j;
2225
2225
  if (se instanceof re)
2226
- throw L && !se.request && (se.request = L), se;
2226
+ throw B && !se.request && (se.request = B), se;
2227
2227
  if (se && se.name === "TypeError" && /Load failed|fetch/i.test(se.message)) {
2228
2228
  const p = new re(
2229
2229
  "Network Error",
2230
2230
  re.ERR_NETWORK,
2231
2231
  x,
2232
- L,
2232
+ B,
2233
2233
  se && se.response
2234
2234
  );
2235
2235
  throw Object.defineProperty(p, "cause", {
@@ -2240,7 +2240,7 @@ const bi = "1.19.0", ua = 64 * 1024, { isFunction: Zn } = v, rf = (e) => encodeU
2240
2240
  configurable: !0
2241
2241
  }), p;
2242
2242
  }
2243
- throw re.from(se, se && se.code, x, L, se && se.response);
2243
+ throw re.from(se, se && se.code, x, B, se && se.response);
2244
2244
  }
2245
2245
  };
2246
2246
  }, sf = /* @__PURE__ */ new Map(), _o = (e) => {
@@ -2971,6 +2971,7 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
2971
2971
  workId: { default: "" },
2972
2972
  processInstanceId: { default: "" },
2973
2973
  dealUser: { default: () => ({}) },
2974
+ assignmentQueryParams: { default: () => ({}) },
2974
2975
  modelValue: { type: Boolean, default: !1 },
2975
2976
  showTrigger: { type: Boolean, default: !0 },
2976
2977
  dialogTitle: { default: "跳转" },
@@ -2979,7 +2980,7 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
2979
2980
  },
2980
2981
  emits: ["update:modelValue", "click", "open", "close", "beforeJump", "afterJump", "error"],
2981
2982
  setup(e, { expose: t, emit: n }) {
2982
- const r = e, i = n, a = le(!1), o = le(), s = le(!1), c = le(!1), f = le(!1), d = le([]), h = le([]), S = le(""), $ = le("");
2983
+ const r = e, i = n, a = ue(!1), o = ue(), s = ue(!1), c = ue(!1), f = ue(!1), d = ue([]), h = ue([]), S = ue(""), $ = ue("");
2983
2984
  let K = 0;
2984
2985
  const F = Le(() => String(r.dealUser.userId || r.dealUser.id || "")), N = Le(() => String(r.dealUser.name || F.value)), x = {
2985
2986
  children: "children",
@@ -2996,25 +2997,25 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
2996
2997
  }
2997
2998
  function g(O) {
2998
2999
  return Array.isArray(O) ? O.map((D) => {
2999
- const L = D || {}, R = I(L);
3000
+ const B = D || {}, R = I(B);
3000
3001
  return {
3001
- ...L,
3002
+ ...B,
3002
3003
  id: R,
3003
- name: m(L)
3004
+ name: m(B)
3004
3005
  };
3005
3006
  }).filter((D) => D.id) : [];
3006
3007
  }
3007
3008
  function A(O) {
3008
3009
  return O.map((D) => {
3009
- const L = D || {}, R = String(L.id || L.userId || ""), C = String(L.ntype || "user"), j = Array.isArray(L.childs) ? L.childs : Array.isArray(L.children) ? L.children : void 0;
3010
+ const B = D || {}, R = String(B.id || B.userId || ""), C = String(B.ntype || "user"), j = Array.isArray(B.childs) ? B.childs : Array.isArray(B.children) ? B.children : void 0;
3010
3011
  return {
3011
- ...L,
3012
+ ...B,
3012
3013
  id: R,
3013
3014
  value: R,
3014
- label: String(L.caption || L.name || L.id || L.userId || ""),
3015
- caption: String(L.caption || L.name || L.id || L.userId || ""),
3015
+ label: String(B.caption || B.name || B.id || B.userId || ""),
3016
+ caption: String(B.caption || B.name || B.id || B.userId || ""),
3016
3017
  ntype: C,
3017
- hasChild: !!(L.hasChild || j != null && j.length),
3018
+ hasChild: !!(B.hasChild || j != null && j.length),
3018
3019
  disabled: C !== "user",
3019
3020
  children: j ? A(j) : void 0
3020
3021
  };
@@ -3038,22 +3039,24 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3038
3039
  return d.value = [], d.value;
3039
3040
  c.value = !0;
3040
3041
  try {
3041
- const L = await Yo({ processDefinitionId: O }), R = g(L == null ? void 0 : L.data);
3042
+ const B = await Yo({ processDefinitionId: O }), R = g(B == null ? void 0 : B.data);
3042
3043
  return D !== K || O !== String(r.processDefinitionId || "") ? R : (d.value = R, d.value);
3043
- } catch (L) {
3044
- throw D === K && (d.value = []), i("error", L), L;
3044
+ } catch (B) {
3045
+ throw D === K && (d.value = []), i("error", B), B;
3045
3046
  } finally {
3046
3047
  D === K && (c.value = !1);
3047
3048
  }
3048
3049
  }
3049
3050
  async function _(O = "", D) {
3050
- const L = await Ri({
3051
- processDefinitionId: r.processDefinitionId,
3051
+ const B = await Ri({
3052
+ processDefinitionId: String(r.processDefinitionId),
3052
3053
  activityId: S.value,
3053
- ntype: D,
3054
- parentId: O
3054
+ ntype: D || "",
3055
+ parentId: O,
3056
+ userId: F.value,
3057
+ extendParams: { ...r.assignmentQueryParams }
3055
3058
  });
3056
- return A(Array.isArray(L.data) ? L.data : []);
3059
+ return A(Array.isArray(B.data) ? B.data : []);
3057
3060
  }
3058
3061
  async function z() {
3059
3062
  if (h.value = [], $.value = "", !S.value) return [];
@@ -3082,21 +3085,21 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3082
3085
  return;
3083
3086
  }
3084
3087
  try {
3085
- const L = await _(String(O.data.id), String(O.data.ntype || ""));
3086
- D(L);
3087
- } catch (L) {
3088
- i("error", L), D([]);
3088
+ const B = await _(String(O.data.id), String(O.data.ntype || ""));
3089
+ D(B);
3090
+ } catch (B) {
3091
+ i("error", B), D([]);
3089
3092
  }
3090
3093
  }
3091
3094
  async function E() {
3092
3095
  await z();
3093
3096
  }
3094
3097
  function W(O, D) {
3095
- const L = O ? I(O) : S.value, R = String(D || $.value || F.value);
3098
+ const B = O ? I(O) : S.value, R = String(D || $.value || F.value);
3096
3099
  return {
3097
3100
  workId: r.workId,
3098
3101
  flowNodeAssignee: {
3099
- activityId: L,
3102
+ activityId: B,
3100
3103
  assignees: [{ name: R, userId: R }]
3101
3104
  },
3102
3105
  // 跳转弹窗不提供变量编辑,按后端协议传空对象。
@@ -3107,10 +3110,10 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3107
3110
  const D = O || W();
3108
3111
  i("beforeJump", D), s.value = !0;
3109
3112
  try {
3110
- const L = await qo(D);
3111
- return i("afterJump", L, D), L;
3112
- } catch (L) {
3113
- throw i("error", L), L;
3113
+ const B = await qo(D);
3114
+ return i("afterJump", B, D), B;
3115
+ } catch (B) {
3116
+ throw i("error", B), B;
3114
3117
  } finally {
3115
3118
  s.value = !1;
3116
3119
  }
@@ -3146,7 +3149,7 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3146
3149
  function ne() {
3147
3150
  i("close");
3148
3151
  }
3149
- function Z() {
3152
+ function J() {
3150
3153
  i("click"), Y();
3151
3154
  }
3152
3155
  return wt(
@@ -3180,13 +3183,13 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3180
3183
  assembleData: W,
3181
3184
  jump: oe
3182
3185
  }), (O, D) => {
3183
- const L = Ue("el-button"), R = Ue("el-option"), C = Ue("el-select"), j = Ue("el-form-item"), fe = Ue("el-tree-select"), se = Ue("el-form"), p = Ue("el-dialog");
3186
+ const B = Ue("el-button"), R = Ue("el-option"), C = Ue("el-select"), j = Ue("el-form-item"), pe = Ue("el-tree-select"), se = Ue("el-form"), p = Ue("el-dialog");
3184
3187
  return ie(), ve("div", Sf, [
3185
- e.showTrigger ? (ie(), Se(L, {
3188
+ e.showTrigger ? (ie(), Se(B, {
3186
3189
  key: 0,
3187
3190
  type: "primary",
3188
3191
  loading: s.value,
3189
- onClick: Z
3192
+ onClick: J
3190
3193
  }, {
3191
3194
  default: ye(() => [
3192
3195
  kt(O.$slots, "default", {}, () => [
@@ -3208,7 +3211,7 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3208
3211
  }, {
3209
3212
  footer: ye(() => [
3210
3213
  he("div", Af, [
3211
- xe(L, {
3214
+ xe(B, {
3212
3215
  type: "primary",
3213
3216
  loading: s.value,
3214
3217
  onClick: X
@@ -3218,7 +3221,7 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3218
3221
  ])]),
3219
3222
  _: 1
3220
3223
  }, 8, ["loading"]),
3221
- xe(L, {
3224
+ xe(B, {
3222
3225
  disabled: s.value,
3223
3226
  onClick: G
3224
3227
  }, {
@@ -3268,7 +3271,7 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3268
3271
  required: ""
3269
3272
  }, {
3270
3273
  default: ye(() => [
3271
- xe(fe, {
3274
+ xe(pe, {
3272
3275
  modelValue: $.value,
3273
3276
  "onUpdate:modelValue": D[1] || (D[1] = (u) => $.value = u),
3274
3277
  "check-strictly": "",
@@ -3297,7 +3300,7 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3297
3300
  ]);
3298
3301
  };
3299
3302
  }
3300
- }), Ko = /* @__PURE__ */ Vt(Rf, [["__scopeId", "data-v-6ee553e3"]]), Cf = { class: "ui-flow-send" }, kf = { class: "send-panel" }, Tf = { class: "current-activity" }, Pf = { class: "node-groups" }, Df = ["onClick"], If = { class: "send-center" }, Of = { class: "assignee-transfer" }, Mf = { class: "assignee-box" }, Nf = { class: "tree-node" }, Bf = {
3303
+ }), Ko = /* @__PURE__ */ Vt(Rf, [["__scopeId", "data-v-40cc6874"]]), Cf = { class: "ui-flow-send" }, kf = { class: "send-panel" }, Tf = { class: "current-activity" }, Pf = { class: "node-groups" }, Df = ["onClick"], If = { class: "send-center" }, Of = { class: "assignee-transfer" }, Mf = { class: "assignee-box" }, Nf = { class: "tree-node" }, Bf = {
3301
3304
  key: 1,
3302
3305
  class: "candidate-list"
3303
3306
  }, Lf = { class: "assignee-box selected-list" }, Ff = {
@@ -3326,7 +3329,7 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3326
3329
  },
3327
3330
  emits: ["update:modelValue", "click", "open", "close", "nextNodesResolved", "beforeSend", "afterSend", "error"],
3328
3331
  setup(e, { expose: t, emit: n }) {
3329
- const r = e, i = n, a = le(!1), o = le(), s = le(!1), c = le(!1), f = le(!1), d = le(!1), h = le([]), S = le([]), $ = le([]), K = le([]), F = le([]), N = le(!1), x = le(""), I = le("nextNode"), m = le(""), g = le([]), A = le(!1), k = le(0), b = le(), _ = le(!1), z = {
3332
+ const r = e, i = n, a = ue(!1), o = ue(), s = ue(!1), c = ue(!1), f = ue(!1), d = ue(!1), h = ue([]), S = ue([]), $ = ue([]), K = ue([]), F = ue([]), N = ue(!1), x = ue(""), I = ue("nextNode"), m = ue(""), g = ue([]), A = ue(!1), k = ue(0), b = ue(), _ = ue(!1), z = {
3330
3333
  children: "childs",
3331
3334
  label: "caption",
3332
3335
  isLeaf: (U) => U.hasChild === !1
@@ -3353,60 +3356,61 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3353
3356
  function ne() {
3354
3357
  x.value = "", h.value = [], S.value = [], $.value = [], K.value = [], F.value = [], N.value = !1;
3355
3358
  }
3356
- function Z(U) {
3359
+ function J(U) {
3357
3360
  if (!r.bpmnXml || !U || typeof DOMParser > "u") return;
3358
3361
  const V = new DOMParser().parseFromString(r.bpmnXml, "text/xml");
3359
- return Array.from(V.getElementsByTagName("*")).find((J) => J.getAttribute("id") === U);
3362
+ return Array.from(V.getElementsByTagName("*")).find((Z) => Z.getAttribute("id") === U);
3360
3363
  }
3361
3364
  function O(U) {
3362
3365
  if (r.forceSingleAssignee) return !0;
3363
- const V = Z(U);
3366
+ const V = J(U);
3364
3367
  if (!V) return !0;
3365
3368
  if (Array.from(V.children || []).some(
3366
3369
  (De) => De.localName === "multiInstanceLoopCharacteristics"
3367
3370
  )) return !1;
3368
- const B = ["assigneUser", "candidateUser"], de = Array.from(V.getElementsByTagName("*")).filter((De) => De.localName === "properties" && B.includes(De.getAttribute("type") || "")).flatMap((De) => Array.from(De.getElementsByTagName("*")).filter((Qe) => Qe.localName === "property"));
3369
- if (de.some((De) => {
3371
+ const L = ["assigneUser", "candidateUser"], le = Array.from(V.getElementsByTagName("*")).filter((De) => De.localName === "properties" && L.includes(De.getAttribute("type") || "")).flatMap((De) => Array.from(De.getElementsByTagName("*")).filter((Qe) => Qe.localName === "property"));
3372
+ if (le.some((De) => {
3370
3373
  const Qe = De.getAttribute("assignType");
3371
3374
  return !!(Qe && Qe !== "user");
3372
3375
  })) return !1;
3373
- const Ee = de.map((De) => De.getAttribute("value")).filter(Boolean), ct = V.getAttribute("camunda:assignee") || "";
3376
+ const Ee = le.map((De) => De.getAttribute("value")).filter(Boolean), ct = V.getAttribute("camunda:assignee") || "";
3374
3377
  return ct && !ct.includes("${") && Ee.push(...ct.split(",").filter(Boolean)), new Set(Ee).size <= 1;
3375
3378
  }
3376
3379
  function D(U) {
3377
3380
  var V;
3378
- return ((V = S.value.find((J) => W(J) === U)) == null ? void 0 : V.isSingleAssignee) !== !1;
3381
+ return ((V = S.value.find((Z) => W(Z) === U)) == null ? void 0 : V.isSingleAssignee) !== !1;
3379
3382
  }
3380
- function L(U, V) {
3381
- const J = W(V), B = String(V.activityName || V.name || J);
3382
- return U.map((de) => {
3383
- const Ee = de || {};
3383
+ function B(U, V) {
3384
+ const Z = W(V), L = String(V.activityName || V.name || Z);
3385
+ return U.map((le) => {
3386
+ const Ee = le || {};
3384
3387
  return {
3385
3388
  ...Ee,
3386
3389
  id: String(Ee.id || ""),
3387
3390
  caption: String(Ee.caption || Ee.name || Ee.id || ""),
3388
3391
  ntype: String(Ee.ntype || "user"),
3389
3392
  hasChild: Ee.hasChild,
3390
- activity: J,
3391
- activityName: B,
3393
+ activity: Z,
3394
+ activityName: L,
3392
3395
  disabled: Ee.ntype !== "user",
3393
- childs: Array.isArray(Ee.childs) ? L(Ee.childs, V) : void 0
3396
+ childs: Array.isArray(Ee.childs) ? B(Ee.childs, V) : void 0
3394
3397
  };
3395
3398
  });
3396
3399
  }
3397
- async function R(U, V) {
3400
+ async function R(U, V = "", Z = "") {
3398
3401
  d.value = !0;
3399
3402
  try {
3400
- const J = await Ri({
3401
- ...r.assignmentQueryParams,
3402
- processDefinitionId: r.processDefinitionId,
3403
+ const L = await Ri({
3404
+ processDefinitionId: String(r.processDefinitionId),
3403
3405
  activityId: W(U),
3406
+ parentId: V,
3407
+ ntype: Z,
3404
3408
  userId: M.value,
3405
- ...V ? { parentId: V } : {}
3406
- }), B = L(Array.isArray(J.data) ? J.data : [], U);
3407
- return V ? B : x.value !== W(U) ? [] : (N.value = B.some((de) => ["router", "organ"].includes(de.ntype || "")), N.value ? (K.value = B, $.value = [], await bt(), l(B)) : (K.value = [], $.value = B), B);
3408
- } catch (J) {
3409
- throw i("error", J), J;
3409
+ extendParams: { ...r.assignmentQueryParams }
3410
+ }), le = B(Array.isArray(L.data) ? L.data : [], U);
3411
+ return V ? le : x.value !== W(U) ? [] : (N.value = le.some((Ee) => ["router", "organ"].includes(Ee.ntype || "")), N.value ? (K.value = le, $.value = [], await bt(), l(le)) : (K.value = [], $.value = le), le);
3412
+ } catch (L) {
3413
+ throw i("error", L), L;
3410
3414
  } finally {
3411
3415
  d.value = !1;
3412
3416
  }
@@ -3425,8 +3429,12 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3425
3429
  return;
3426
3430
  }
3427
3431
  try {
3428
- const J = await R(E.value, String(U.data.id));
3429
- V(J), await bt(), l(J);
3432
+ const Z = await R(
3433
+ E.value,
3434
+ String(U.data.id),
3435
+ String(U.data.ntype || "")
3436
+ );
3437
+ V(Z), await bt(), l(Z);
3430
3438
  } catch {
3431
3439
  V([]);
3432
3440
  }
@@ -3435,7 +3443,7 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3435
3443
  const V = ++k.value;
3436
3444
  c.value = !0, f.value = !1, ne();
3437
3445
  try {
3438
- const J = await Wo({
3446
+ const Z = await Wo({
3439
3447
  processDefinitionId: r.processDefinitionId,
3440
3448
  activityId: r.activity.activityId,
3441
3449
  processInstanceId: r.processInstanceId,
@@ -3443,23 +3451,23 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3443
3451
  variables: U
3444
3452
  });
3445
3453
  if (V !== k.value) return [];
3446
- h.value = J.data || [], S.value = h.value.filter((de) => de.flowElementType === "USER_TASK").map((de) => ({ ...de, isSingleAssignee: O(W(de)) })), f.value = !0, A.value = !1, i("nextNodesResolved", h.value);
3447
- const B = S.value[0];
3448
- if (B) {
3449
- x.value = W(B);
3454
+ h.value = Z.data || [], S.value = h.value.filter((le) => le.flowElementType === "USER_TASK").map((le) => ({ ...le, isSingleAssignee: O(W(le)) })), f.value = !0, A.value = !1, i("nextNodesResolved", h.value);
3455
+ const L = S.value[0];
3456
+ if (L) {
3457
+ x.value = W(L);
3450
3458
  try {
3451
- await R(B);
3459
+ await R(L);
3452
3460
  } catch {
3453
3461
  }
3454
3462
  }
3455
3463
  return h.value;
3456
- } catch (J) {
3457
- throw V === k.value && (f.value = !1), i("error", J), J;
3464
+ } catch (Z) {
3465
+ throw V === k.value && (f.value = !1), i("error", Z), Z;
3458
3466
  } finally {
3459
3467
  V === k.value && (c.value = !1);
3460
3468
  }
3461
3469
  }
3462
- async function fe(U) {
3470
+ async function pe(U) {
3463
3471
  x.value = W(U), $.value = [], K.value = [], N.value = !1;
3464
3472
  try {
3465
3473
  await R(U);
@@ -3470,29 +3478,29 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3470
3478
  return F.value.some((V) => oe(V) === oe(U));
3471
3479
  }
3472
3480
  function p(U, V) {
3473
- const J = oe(U);
3474
- V ? (D(U.activity) && (F.value = F.value.filter((B) => B.activity !== U.activity)), F.value.some((B) => oe(B) === J) || F.value.push({ ...U })) : F.value = F.value.filter((B) => oe(B) !== J);
3481
+ const Z = oe(U);
3482
+ V ? (D(U.activity) && (F.value = F.value.filter((L) => L.activity !== U.activity)), F.value.some((L) => oe(L) === Z) || F.value.push({ ...U })) : F.value = F.value.filter((L) => oe(L) !== Z);
3475
3483
  }
3476
3484
  function u(U, V) {
3477
- U.ntype === "user" && (V && D(U.activity) && F.value.filter((B) => B.activity === U.activity).forEach((B) => {
3478
- var de;
3479
- return (de = b.value) == null ? void 0 : de.setChecked(B.id, !1, !1);
3485
+ U.ntype === "user" && (V && D(U.activity) && F.value.filter((L) => L.activity === U.activity).forEach((L) => {
3486
+ var le;
3487
+ return (le = b.value) == null ? void 0 : le.setChecked(L.id, !1, !1);
3480
3488
  }), p(U, V));
3481
3489
  }
3482
3490
  function l(U) {
3483
3491
  U.forEach((V) => {
3484
- var J, B;
3485
- V.ntype === "user" && se(V) && ((J = b.value) == null || J.setChecked(V.id, !0, !1)), (B = V.childs) != null && B.length && l(V.childs);
3492
+ var Z, L;
3493
+ V.ntype === "user" && se(V) && ((Z = b.value) == null || Z.setChecked(V.id, !0, !1)), (L = V.childs) != null && L.length && l(V.childs);
3486
3494
  });
3487
3495
  }
3488
3496
  function y(U) {
3489
3497
  var V;
3490
- F.value = F.value.filter((J) => oe(J) !== oe(U)), N.value && ((V = b.value) == null || V.setChecked(U.id, !1, !1));
3498
+ F.value = F.value.filter((Z) => oe(Z) !== oe(U)), N.value && ((V = b.value) == null || V.setChecked(U.id, !1, !1));
3491
3499
  }
3492
3500
  function w() {
3493
- const U = F.value.reduce((V, J) => {
3494
- let B = V.get(J.activity);
3495
- return B || (B = { activityId: J.activity, assignees: [] }, V.set(J.activity, B)), B.assignees.some((de) => de.userId === J.id) || B.assignees.push({ name: J.id, userId: J.id }), V;
3501
+ const U = F.value.reduce((V, Z) => {
3502
+ let L = V.get(Z.activity);
3503
+ return L || (L = { activityId: Z.activity, assignees: [] }, V.set(Z.activity, L)), L.assignees.some((le) => le.userId === Z.id) || L.assignees.push({ name: Z.id, userId: Z.id }), V;
3496
3504
  }, /* @__PURE__ */ new Map());
3497
3505
  return {
3498
3506
  workId: r.workId,
@@ -3505,10 +3513,10 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3505
3513
  const V = U || w();
3506
3514
  i("beforeSend", V), s.value = !0;
3507
3515
  try {
3508
- const J = await zo(V);
3509
- return i("afterSend", J, V), J;
3510
- } catch (J) {
3511
- throw i("error", J), J;
3516
+ const Z = await zo(V);
3517
+ return i("afterSend", Z, V), Z;
3518
+ } catch (Z) {
3519
+ throw i("error", Z), Z;
3512
3520
  } finally {
3513
3521
  s.value = !1;
3514
3522
  }
@@ -3523,10 +3531,10 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3523
3531
  return;
3524
3532
  }
3525
3533
  const U = S.value.find(
3526
- (V) => !F.value.some((J) => J.activity === W(V))
3534
+ (V) => !F.value.some((Z) => Z.activity === W(V))
3527
3535
  );
3528
3536
  if (U) {
3529
- x.value = W(U), I.value = "nextNode", vt.warning(`请选择“${U.activityName || U.name || W(U)}”的办理人`), await fe(U);
3537
+ x.value = W(U), I.value = "nextNode", vt.warning(`请选择“${U.activityName || U.name || W(U)}”的办理人`), await pe(U);
3530
3538
  return;
3531
3539
  }
3532
3540
  try {
@@ -3570,7 +3578,7 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3570
3578
  assembleData: w,
3571
3579
  send: P
3572
3580
  }), (U, V) => {
3573
- const J = Ya("loading");
3581
+ const Z = Ya("loading");
3574
3582
  return ie(), ve("div", Cf, [
3575
3583
  e.showTrigger ? (ie(), Se(Ie(Cn), {
3576
3584
  key: 0,
@@ -3587,7 +3595,7 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3587
3595
  }, 8, ["loading"])) : We("", !0),
3588
3596
  xe(Ie(hl), {
3589
3597
  modelValue: a.value,
3590
- "onUpdate:modelValue": V[2] || (V[2] = (B) => a.value = B),
3598
+ "onUpdate:modelValue": V[2] || (V[2] = (L) => a.value = L),
3591
3599
  "append-to-body": "",
3592
3600
  class: "ui-flow-send-dialog",
3593
3601
  "close-on-click-modal": !1,
@@ -3626,14 +3634,14 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3626
3634
  he("strong", null, et(e.activity.activityName || e.activity.activityId), 1)
3627
3635
  ]),
3628
3636
  he("aside", Pf, [
3629
- (ie(!0), ve(pn, null, dn(S.value, (B) => (ie(), ve("button", {
3630
- key: W(B),
3631
- class: Ka(["node-group", { active: x.value === W(B) }]),
3637
+ (ie(!0), ve(pn, null, dn(S.value, (L) => (ie(), ve("button", {
3638
+ key: W(L),
3639
+ class: Ka(["node-group", { active: x.value === W(L) }]),
3632
3640
  type: "button",
3633
- onClick: (de) => fe(B)
3641
+ onClick: (le) => pe(L)
3634
3642
  }, [
3635
3643
  V[5] || (V[5] = he("span", { class: "group-avatar" }, "♟", -1)),
3636
- he("span", null, et(B.activityName || B.name || W(B)), 1)
3644
+ he("span", null, et(L.activityName || L.name || W(L)), 1)
3637
3645
  ], 10, Df))), 128)),
3638
3646
  f.value && !S.value.length ? (ie(), Se(Ie(Nr), {
3639
3647
  key: 0,
@@ -3659,22 +3667,22 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3659
3667
  "show-checkbox": "",
3660
3668
  onCheckChange: u
3661
3669
  }, {
3662
- default: ye(({ data: B }) => [
3670
+ default: ye(({ data: L }) => [
3663
3671
  he("span", Nf, [
3664
- he("span", null, et(B.ntype === "user" ? "●" : "▣"), 1),
3665
- he("span", null, et(B.caption || B.id), 1)
3672
+ he("span", null, et(L.ntype === "user" ? "●" : "▣"), 1),
3673
+ he("span", null, et(L.caption || L.id), 1)
3666
3674
  ])
3667
3675
  ]),
3668
3676
  _: 1
3669
3677
  }, 8, ["data"])) : (ie(), ve("div", Bf, [
3670
- (ie(!0), ve(pn, null, dn($.value, (B) => (ie(), Se(Ie(yl), {
3671
- key: oe(B),
3672
- "model-value": se(B),
3678
+ (ie(!0), ve(pn, null, dn($.value, (L) => (ie(), Se(Ie(yl), {
3679
+ key: oe(L),
3680
+ "model-value": se(L),
3673
3681
  class: "candidate-item",
3674
- onChange: (de) => p(B, !!de)
3682
+ onChange: (le) => p(L, !!le)
3675
3683
  }, {
3676
3684
  default: ye(() => [
3677
- Ne(et(B.caption || B.name || B.id), 1)
3685
+ Ne(et(L.caption || L.name || L.id), 1)
3678
3686
  ]),
3679
3687
  _: 2
3680
3688
  }, 1032, ["model-value", "onChange"]))), 128)),
@@ -3685,7 +3693,7 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3685
3693
  })) : We("", !0)
3686
3694
  ]))
3687
3695
  ])), [
3688
- [J, d.value]
3696
+ [Z, d.value]
3689
3697
  ]),
3690
3698
  V[7] || (V[7] = he("div", {
3691
3699
  class: "transfer-arrows",
@@ -3695,15 +3703,15 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3695
3703
  he("span", null, "←")
3696
3704
  ], -1)),
3697
3705
  he("div", Lf, [
3698
- (ie(!0), ve(pn, null, dn(F.value, (B) => (ie(), ve("div", {
3699
- key: oe(B),
3706
+ (ie(!0), ve(pn, null, dn(F.value, (L) => (ie(), ve("div", {
3707
+ key: oe(L),
3700
3708
  class: "selected-user"
3701
3709
  }, [
3702
- he("span", null, et(B.caption || B.name || B.id), 1),
3710
+ he("span", null, et(L.caption || L.name || L.id), 1),
3703
3711
  xe(Ie(Cn), {
3704
3712
  link: "",
3705
3713
  type: "danger",
3706
- onClick: (de) => y(B)
3714
+ onClick: (le) => y(L)
3707
3715
  }, {
3708
3716
  default: ye(() => [...V[6] || (V[6] = [
3709
3717
  Ne("移除", -1)
@@ -3720,7 +3728,7 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3720
3728
  ]),
3721
3729
  xe(Ie(gl), {
3722
3730
  modelValue: I.value,
3723
- "onUpdate:modelValue": V[0] || (V[0] = (B) => I.value = B),
3731
+ "onUpdate:modelValue": V[0] || (V[0] = (L) => I.value = L),
3724
3732
  type: "card",
3725
3733
  class: "send-tabs"
3726
3734
  }, {
@@ -3750,10 +3758,10 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3750
3758
  label: "办理人",
3751
3759
  "min-width": "130"
3752
3760
  }, {
3753
- default: ye((B) => {
3754
- var de, Ee, ct;
3761
+ default: ye((L) => {
3762
+ var le, Ee, ct;
3755
3763
  return [
3756
- Ne(et(((de = B == null ? void 0 : B.row) == null ? void 0 : de.caption) || ((Ee = B == null ? void 0 : B.row) == null ? void 0 : Ee.name) || ((ct = B == null ? void 0 : B.row) == null ? void 0 : ct.id) || ""), 1)
3764
+ Ne(et(((le = L == null ? void 0 : L.row) == null ? void 0 : le.caption) || ((Ee = L == null ? void 0 : L.row) == null ? void 0 : Ee.name) || ((ct = L == null ? void 0 : L.row) == null ? void 0 : ct.id) || ""), 1)
3757
3765
  ];
3758
3766
  }),
3759
3767
  _: 1
@@ -3762,8 +3770,8 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3762
3770
  label: "办理方式",
3763
3771
  width: "120"
3764
3772
  }, {
3765
- default: ye((B) => [
3766
- Ne(et(B != null && B.row ? D(B.row.activity) ? "单人单办" : "多人办理" : ""), 1)
3773
+ default: ye((L) => [
3774
+ Ne(et(L != null && L.row ? D(L.row.activity) ? "单人单办" : "多人办理" : ""), 1)
3767
3775
  ]),
3768
3776
  _: 1
3769
3777
  }),
@@ -3772,12 +3780,12 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3772
3780
  width: "90",
3773
3781
  align: "center"
3774
3782
  }, {
3775
- default: ye((B) => [
3776
- B != null && B.row ? (ie(), Se(Ie(Cn), {
3783
+ default: ye((L) => [
3784
+ L != null && L.row ? (ie(), Se(Ie(Cn), {
3777
3785
  key: 0,
3778
3786
  link: "",
3779
3787
  type: "danger",
3780
- onClick: (de) => y(B.row)
3788
+ onClick: (le) => y(L.row)
3781
3789
  }, {
3782
3790
  default: ye(() => [...V[8] || (V[8] = [
3783
3791
  Ne("删除", -1)
@@ -3801,7 +3809,7 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3801
3809
  V[9] || (V[9] = he("label", null, "填写意见:", -1)),
3802
3810
  xe(Ie(bl), {
3803
3811
  modelValue: m.value,
3804
- "onUpdate:modelValue": V[1] || (V[1] = (B) => m.value = B),
3812
+ "onUpdate:modelValue": V[1] || (V[1] = (L) => m.value = L),
3805
3813
  maxlength: "500",
3806
3814
  placeholder: "请输入意见",
3807
3815
  resize: "none",
@@ -3816,7 +3824,7 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3816
3824
  ]);
3817
3825
  };
3818
3826
  }
3819
- }), Ci = /* @__PURE__ */ Vt(Uf, [["__scopeId", "data-v-398deb1e"]]), Vf = { class: "button-group-wrapper" }, zf = {
3827
+ }), Ci = /* @__PURE__ */ Vt(Uf, [["__scopeId", "data-v-c7d02702"]]), Vf = { class: "button-group-wrapper" }, zf = {
3820
3828
  key: 0,
3821
3829
  class: "button-state"
3822
3830
  }, Hf = {
@@ -3846,7 +3854,7 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3846
3854
  emits: ["executeAction", "afterAction", "workResolved", "error"],
3847
3855
  setup(e, { expose: t, emit: n }) {
3848
3856
  let r = 0;
3849
- const i = e, a = n, o = le([]), s = le(!1), c = le(), f = le(!1), d = le(!1), h = le(), S = le(), $ = le(!1), K = le("turnBefore"), F = le(!1), N = le(!1), x = le([]), I = le(), m = Le(() => K.value === "turnBefore" ? "前加签" : "后加签"), g = {
3857
+ const i = e, a = n, o = ue([]), s = ue(!1), c = ue(), f = ue(!1), d = ue(!1), h = ue(), S = ue(), $ = ue(!1), K = ue("turnBefore"), F = ue(!1), N = ue(!1), x = ue([]), I = ue(), m = Le(() => K.value === "turnBefore" ? "前加签" : "后加签"), g = {
3850
3858
  children: "children",
3851
3859
  label: "caption",
3852
3860
  disabled: "disabled",
@@ -3925,7 +3933,7 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3925
3933
  const ee = X();
3926
3934
  return a("workResolved", ee), ee;
3927
3935
  }
3928
- function Z(T) {
3936
+ function J(T) {
3929
3937
  return T.map((q) => {
3930
3938
  const H = q || {}, ee = String(H.id || H.userId || ""), U = String(H.ntype || ""), V = Array.isArray(H.childs) ? H.childs : Array.isArray(H.children) ? H.children : void 0;
3931
3939
  return {
@@ -3936,13 +3944,13 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3936
3944
  hasChild: !!(H.hasChild || V != null && V.length),
3937
3945
  isLeaf: U === "user" || !H.hasChild && !(V != null && V.length),
3938
3946
  disabled: U !== "user",
3939
- children: V ? Z(V) : void 0
3947
+ children: V ? J(V) : void 0
3940
3948
  };
3941
3949
  }).filter((q) => q.id);
3942
3950
  }
3943
3951
  async function O(T = "") {
3944
3952
  const q = await Ho(T);
3945
- return Z(Array.isArray(q.data) ? q.data : []);
3953
+ return J(Array.isArray(q.data) ? q.data : []);
3946
3954
  }
3947
3955
  async function D(T, q) {
3948
3956
  const H = T.level === 0 ? "" : String(T.data.id || "");
@@ -3960,7 +3968,7 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3960
3968
  F.value = !1;
3961
3969
  }
3962
3970
  }
3963
- function L(T) {
3971
+ function B(T) {
3964
3972
  T.ntype === "user" && (I.value = T);
3965
3973
  }
3966
3974
  function R() {
@@ -3994,7 +4002,7 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
3994
4002
  N.value = !1;
3995
4003
  }
3996
4004
  }
3997
- async function fe() {
4005
+ async function pe() {
3998
4006
  s.value = !0, o.value = [];
3999
4007
  try {
4000
4008
  if (await ne(), !b.value) return o.value;
@@ -4020,57 +4028,57 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
4020
4028
  }[T] || T;
4021
4029
  }
4022
4030
  async function l(T, q, H) {
4023
- var de;
4031
+ var le;
4024
4032
  const ee = wr(i.dialogZIndex), U = `ui-flow-confirm-overlay-${++r}`, V = El.confirm(`是否${q}此任务?`, "提示", {
4025
4033
  confirmButtonText: "确定",
4026
4034
  cancelButtonText: "取消",
4027
4035
  type: "warning",
4028
4036
  modalClass: U
4029
4037
  });
4030
- await bt(), (de = document.querySelector(`.${U}`)) == null || de.style.setProperty("z-index", String(ee), "important"), await V;
4031
- const J = { workId: H.workId };
4032
- let B;
4038
+ await bt(), (le = document.querySelector(`.${U}`)) == null || le.style.setProperty("z-index", String(ee), "important"), await V;
4039
+ const Z = { workId: H.workId };
4040
+ let L;
4033
4041
  switch (u(T)) {
4034
4042
  case "revocation":
4035
4043
  case "taskWithdraw":
4036
- B = await Oo(J);
4044
+ L = await Oo(Z);
4037
4045
  break;
4038
4046
  case "taskRecyle":
4039
- B = await No(J);
4047
+ L = await No(Z);
4040
4048
  break;
4041
4049
  case "hang":
4042
- B = await $o({ processInstanceIds: [H.processInstanceId || ""] });
4050
+ L = await $o({ processInstanceIds: [H.processInstanceId || ""] });
4043
4051
  break;
4044
4052
  case "restore":
4045
- B = await jo(J);
4053
+ L = await jo(Z);
4046
4054
  break;
4047
4055
  case "terminate":
4048
- B = await Uo(J);
4056
+ L = await Uo(Z);
4049
4057
  break;
4050
4058
  case "taskComplete":
4051
- B = await Bo({ ...J, variables: i.variables });
4059
+ L = await Bo({ ...Z, variables: i.variables });
4052
4060
  break;
4053
4061
  case "taskRollback":
4054
- B = await Mo(J);
4062
+ L = await Mo(Z);
4055
4063
  break;
4056
4064
  case "taskClaim":
4057
4065
  if (!i.dealUserId) {
4058
4066
  p(T, H);
4059
4067
  return;
4060
4068
  }
4061
- B = await Io({ ...J, assignee: i.dealUserId });
4069
+ L = await Io({ ...Z, assignee: i.dealUserId });
4062
4070
  break;
4063
4071
  default:
4064
4072
  p(T, H);
4065
4073
  return;
4066
4074
  }
4067
- se(T, B, H), u(T) === "taskClaim" && await fe();
4075
+ se(T, L, H), u(T) === "taskClaim" && await pe();
4068
4076
  }
4069
4077
  async function y(T) {
4070
4078
  var q;
4071
4079
  try {
4072
4080
  const H = T.name;
4073
- b.value || await fe();
4081
+ b.value || await pe();
4074
4082
  const ee = X(H, T.label);
4075
4083
  if (!ee.workId) throw new Error("当前待办缺少 workId,无法执行流程操作");
4076
4084
  if (await ((q = i.beforeAction) == null ? void 0 : q.call(i, H, ee)) === !1) return;
@@ -4122,36 +4130,36 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
4122
4130
  return wt(
4123
4131
  () => [i.workId, i.processInstanceId, i.dealUserId],
4124
4132
  () => {
4125
- f.value = !1, d.value = !1, h.value = void 0, fe().catch((T) => a("error", T));
4133
+ f.value = !1, d.value = !1, h.value = void 0, pe().catch((T) => a("error", T));
4126
4134
  },
4127
4135
  { immediate: !0 }
4128
4136
  ), t({
4129
4137
  loading: s,
4130
4138
  optList: o,
4131
4139
  resolvedWorkData: c,
4132
- getAvailableActions: fe,
4140
+ getAvailableActions: pe,
4133
4141
  resolveCurrentWork: ne,
4134
4142
  executeAction: y
4135
4143
  }), (T, q) => {
4136
4144
  const H = Ue("el-tree"), ee = Ue("el-button"), U = Ue("el-dialog"), V = Ya("loading");
4137
4145
  return ie(), ve("div", Vf, [
4138
- s.value ? (ie(), ve("span", zf, "正在加载流程操作...")) : (ie(!0), ve(pn, { key: 1 }, dn(o.value, (J, B) => (ie(), ve("div", {
4139
- key: J.name || B,
4146
+ s.value ? (ie(), ve("span", zf, "正在加载流程操作...")) : (ie(!0), ve(pn, { key: 1 }, dn(o.value, (Z, L) => (ie(), ve("div", {
4147
+ key: Z.name || L,
4140
4148
  class: "flex-start-r"
4141
4149
  }, [
4142
- kt(T.$slots, "prefix", { action: J }, void 0, !0),
4143
- kt(T.$slots, "default", { action: J }, void 0, !0),
4150
+ kt(T.$slots, "prefix", { action: Z }, void 0, !0),
4151
+ kt(T.$slots, "default", { action: Z }, void 0, !0),
4144
4152
  xe(Za, {
4145
- type: J.name,
4146
- label: J.label,
4147
- onClick: (de) => y(J)
4153
+ type: Z.name,
4154
+ label: Z.label,
4155
+ onClick: (le) => y(Z)
4148
4156
  }, null, 8, ["type", "label", "onClick"]),
4149
- B !== o.value.length - 1 ? (ie(), ve("div", Hf)) : We("", !0),
4150
- kt(T.$slots, "suffix", { action: J }, void 0, !0)
4157
+ L !== o.value.length - 1 ? (ie(), ve("div", Hf)) : We("", !0),
4158
+ kt(T.$slots, "suffix", { action: Z }, void 0, !0)
4151
4159
  ]))), 128)),
4152
4160
  xe(U, {
4153
4161
  modelValue: $.value,
4154
- "onUpdate:modelValue": q[1] || (q[1] = (J) => $.value = J),
4162
+ "onUpdate:modelValue": q[1] || (q[1] = (Z) => $.value = Z),
4155
4163
  "append-to-body": "",
4156
4164
  class: "ui-flow-sign-dialog",
4157
4165
  "close-on-click-modal": !1,
@@ -4174,7 +4182,7 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
4174
4182
  }, 8, ["loading"]),
4175
4183
  xe(ee, {
4176
4184
  disabled: N.value,
4177
- onClick: q[0] || (q[0] = (J) => $.value = !1)
4185
+ onClick: q[0] || (q[0] = (Z) => $.value = !1)
4178
4186
  }, {
4179
4187
  default: ye(() => [...q[7] || (q[7] = [
4180
4188
  Ne("取消", -1)
@@ -4184,7 +4192,7 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
4184
4192
  ])
4185
4193
  ]),
4186
4194
  default: ye(() => {
4187
- var J, B;
4195
+ var Z, L;
4188
4196
  return [
4189
4197
  hi((ie(), ve("div", Wf, [
4190
4198
  q[5] || (q[5] = he("p", { class: "sign-tip" }, "仅可选择一名机构人员", -1)),
@@ -4195,11 +4203,11 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
4195
4203
  "highlight-current": "",
4196
4204
  lazy: "",
4197
4205
  "node-key": "id",
4198
- onNodeClick: L
4206
+ onNodeClick: B
4199
4207
  }, null, 8, ["data"]),
4200
4208
  he("div", qf, [
4201
4209
  q[4] || (q[4] = Ne(" 已选择:", -1)),
4202
- he("strong", null, et(((J = I.value) == null ? void 0 : J.caption) || ((B = I.value) == null ? void 0 : B.name) || "暂无"), 1)
4210
+ he("strong", null, et(((Z = I.value) == null ? void 0 : Z.caption) || ((L = I.value) == null ? void 0 : L.name) || "暂无"), 1)
4203
4211
  ])
4204
4212
  ])), [
4205
4213
  [V, F.value]
@@ -4211,7 +4219,7 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
4211
4219
  Y.value ? (ie(), Se(Ci, {
4212
4220
  key: 2,
4213
4221
  modelValue: f.value,
4214
- "onUpdate:modelValue": q[2] || (q[2] = (J) => f.value = J),
4222
+ "onUpdate:modelValue": q[2] || (q[2] = (Z) => f.value = Z),
4215
4223
  activity: Y.value.activity,
4216
4224
  "assignment-query-params": e.assignmentQueryParams,
4217
4225
  "deal-user": oe.value,
@@ -4228,7 +4236,8 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
4228
4236
  G.value ? (ie(), Se(Ko, {
4229
4237
  key: 3,
4230
4238
  modelValue: d.value,
4231
- "onUpdate:modelValue": q[3] || (q[3] = (J) => d.value = J),
4239
+ "onUpdate:modelValue": q[3] || (q[3] = (Z) => d.value = Z),
4240
+ "assignment-query-params": e.assignmentQueryParams,
4232
4241
  "deal-user": oe.value,
4233
4242
  "process-definition-id": G.value.processDefinitionId,
4234
4243
  "process-instance-id": G.value.processInstanceId,
@@ -4237,11 +4246,11 @@ const Sf = { class: "ui-flow-jump" }, Af = { class: "dialog-footer" }, Rf = /* @
4237
4246
  "z-index": e.dialogZIndex,
4238
4247
  onAfterJump: P,
4239
4248
  onError: Q
4240
- }, null, 8, ["modelValue", "deal-user", "process-definition-id", "process-instance-id", "work-id", "z-index"])) : We("", !0)
4249
+ }, null, 8, ["modelValue", "assignment-query-params", "deal-user", "process-definition-id", "process-instance-id", "work-id", "z-index"])) : We("", !0)
4241
4250
  ]);
4242
4251
  };
4243
4252
  }
4244
- }), Gf = /* @__PURE__ */ Vt(Kf, [["__scopeId", "data-v-dcc93ede"]]);
4253
+ }), Gf = /* @__PURE__ */ Vt(Kf, [["__scopeId", "data-v-3a5cacc7"]]);
4245
4254
  function Xf(e) {
4246
4255
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4247
4256
  }
@@ -4258,12 +4267,12 @@ function Zf() {
4258
4267
  var ne = String(X);
4259
4268
  return !ne || ne.length >= Y ? X : "" + Array(Y + 1 - ne.length).join(G) + X;
4260
4269
  }, g = { s: m, z: function(X) {
4261
- var Y = -X.utcOffset(), G = Math.abs(Y), ne = Math.floor(G / 60), Z = G % 60;
4262
- return (Y <= 0 ? "+" : "-") + m(ne, 2, "0") + ":" + m(Z, 2, "0");
4270
+ var Y = -X.utcOffset(), G = Math.abs(Y), ne = Math.floor(G / 60), J = G % 60;
4271
+ return (Y <= 0 ? "+" : "-") + m(ne, 2, "0") + ":" + m(J, 2, "0");
4263
4272
  }, m: function X(Y, G) {
4264
4273
  if (Y.date() < G.date()) return -X(G, Y);
4265
- var ne = 12 * (G.year() - Y.year()) + (G.month() - Y.month()), Z = Y.clone().add(ne, h), O = G - Z < 0, D = Y.clone().add(ne + (O ? -1 : 1), h);
4266
- return +(-(ne + (G - Z) / (O ? Z - D : D - Z)) || 0);
4274
+ var ne = 12 * (G.year() - Y.year()) + (G.month() - Y.month()), J = Y.clone().add(ne, h), O = G - J < 0, D = Y.clone().add(ne + (O ? -1 : 1), h);
4275
+ return +(-(ne + (G - J) / (O ? J - D : D - J)) || 0);
4267
4276
  }, a: function(X) {
4268
4277
  return X < 0 ? Math.ceil(X) || 0 : Math.floor(X);
4269
4278
  }, p: function(X) {
@@ -4275,18 +4284,18 @@ function Zf() {
4275
4284
  var b = "$isDayjsObject", _ = function(X) {
4276
4285
  return X instanceof W || !(!X || !X[b]);
4277
4286
  }, z = function X(Y, G, ne) {
4278
- var Z;
4287
+ var J;
4279
4288
  if (!Y) return A;
4280
4289
  if (typeof Y == "string") {
4281
4290
  var O = Y.toLowerCase();
4282
- k[O] && (Z = O), G && (k[O] = G, Z = O);
4291
+ k[O] && (J = O), G && (k[O] = G, J = O);
4283
4292
  var D = Y.split("-");
4284
- if (!Z && D.length > 1) return X(D[0]);
4293
+ if (!J && D.length > 1) return X(D[0]);
4285
4294
  } else {
4286
- var L = Y.name;
4287
- k[L] = Y, Z = L;
4295
+ var B = Y.name;
4296
+ k[B] = Y, J = B;
4288
4297
  }
4289
- return !ne && Z && (A = Z), Z || !ne && A;
4298
+ return !ne && J && (A = J), J || !ne && A;
4290
4299
  }, M = function(X, Y) {
4291
4300
  if (_(X)) return X.clone();
4292
4301
  var G = typeof Y == "object" ? Y : {};
@@ -4302,18 +4311,18 @@ function Zf() {
4302
4311
  var Y = X.prototype;
4303
4312
  return Y.parse = function(G) {
4304
4313
  this.$d = (function(ne) {
4305
- var Z = ne.date, O = ne.utc;
4306
- if (Z === null) return /* @__PURE__ */ new Date(NaN);
4307
- if (E.u(Z)) return /* @__PURE__ */ new Date();
4308
- if (Z instanceof Date) return new Date(Z);
4309
- if (typeof Z == "string" && !/Z$/i.test(Z)) {
4310
- var D = Z.match(N);
4314
+ var J = ne.date, O = ne.utc;
4315
+ if (J === null) return /* @__PURE__ */ new Date(NaN);
4316
+ if (E.u(J)) return /* @__PURE__ */ new Date();
4317
+ if (J instanceof Date) return new Date(J);
4318
+ if (typeof J == "string" && !/Z$/i.test(J)) {
4319
+ var D = J.match(N);
4311
4320
  if (D) {
4312
- var L = D[2] - 1 || 0, R = (D[7] || "0").substring(0, 3);
4313
- return O ? new Date(Date.UTC(D[1], L, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, R)) : new Date(D[1], L, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, R);
4321
+ var B = D[2] - 1 || 0, R = (D[7] || "0").substring(0, 3);
4322
+ return O ? new Date(Date.UTC(D[1], B, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, R)) : new Date(D[1], B, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, R);
4314
4323
  }
4315
4324
  }
4316
- return new Date(Z);
4325
+ return new Date(J);
4317
4326
  })(G), this.init();
4318
4327
  }, Y.init = function() {
4319
4328
  var G = this.$d;
@@ -4323,33 +4332,33 @@ function Zf() {
4323
4332
  }, Y.isValid = function() {
4324
4333
  return this.$d.toString() !== F;
4325
4334
  }, Y.isSame = function(G, ne) {
4326
- var Z = M(G);
4327
- return this.startOf(ne) <= Z && Z <= this.endOf(ne);
4335
+ var J = M(G);
4336
+ return this.startOf(ne) <= J && J <= this.endOf(ne);
4328
4337
  }, Y.isAfter = function(G, ne) {
4329
4338
  return M(G) < this.startOf(ne);
4330
4339
  }, Y.isBefore = function(G, ne) {
4331
4340
  return this.endOf(ne) < M(G);
4332
- }, Y.$g = function(G, ne, Z) {
4333
- return E.u(G) ? this[ne] : this.set(Z, G);
4341
+ }, Y.$g = function(G, ne, J) {
4342
+ return E.u(G) ? this[ne] : this.set(J, G);
4334
4343
  }, Y.unix = function() {
4335
4344
  return Math.floor(this.valueOf() / 1e3);
4336
4345
  }, Y.valueOf = function() {
4337
4346
  return this.$d.getTime();
4338
4347
  }, Y.startOf = function(G, ne) {
4339
- var Z = this, O = !!E.u(ne) || ne, D = E.p(G), L = function(l, y) {
4340
- var w = E.w(Z.$u ? Date.UTC(Z.$y, y, l) : new Date(Z.$y, y, l), Z);
4348
+ var J = this, O = !!E.u(ne) || ne, D = E.p(G), B = function(l, y) {
4349
+ var w = E.w(J.$u ? Date.UTC(J.$y, y, l) : new Date(J.$y, y, l), J);
4341
4350
  return O ? w : w.endOf(f);
4342
4351
  }, R = function(l, y) {
4343
- return E.w(Z.toDate()[l].apply(Z.toDate("s"), (O ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(y)), Z);
4344
- }, C = this.$W, j = this.$M, fe = this.$D, se = "set" + (this.$u ? "UTC" : "");
4352
+ return E.w(J.toDate()[l].apply(J.toDate("s"), (O ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(y)), J);
4353
+ }, C = this.$W, j = this.$M, pe = this.$D, se = "set" + (this.$u ? "UTC" : "");
4345
4354
  switch (D) {
4346
4355
  case $:
4347
- return O ? L(1, 0) : L(31, 11);
4356
+ return O ? B(1, 0) : B(31, 11);
4348
4357
  case h:
4349
- return O ? L(1, j) : L(0, j + 1);
4358
+ return O ? B(1, j) : B(0, j + 1);
4350
4359
  case d:
4351
4360
  var p = this.$locale().weekStart || 0, u = (C < p ? C + 7 : C) - p;
4352
- return L(O ? fe - u : fe + (6 - u), j);
4361
+ return B(O ? pe - u : pe + (6 - u), j);
4353
4362
  case f:
4354
4363
  case K:
4355
4364
  return R(se + "Hours", 0);
@@ -4365,38 +4374,38 @@ function Zf() {
4365
4374
  }, Y.endOf = function(G) {
4366
4375
  return this.startOf(G, !1);
4367
4376
  }, Y.$set = function(G, ne) {
4368
- var Z, O = E.p(G), D = "set" + (this.$u ? "UTC" : ""), L = (Z = {}, Z[f] = D + "Date", Z[K] = D + "Date", Z[h] = D + "Month", Z[$] = D + "FullYear", Z[c] = D + "Hours", Z[s] = D + "Minutes", Z[o] = D + "Seconds", Z[a] = D + "Milliseconds", Z)[O], R = O === f ? this.$D + (ne - this.$W) : ne;
4377
+ var J, O = E.p(G), D = "set" + (this.$u ? "UTC" : ""), B = (J = {}, J[f] = D + "Date", J[K] = D + "Date", J[h] = D + "Month", J[$] = D + "FullYear", J[c] = D + "Hours", J[s] = D + "Minutes", J[o] = D + "Seconds", J[a] = D + "Milliseconds", J)[O], R = O === f ? this.$D + (ne - this.$W) : ne;
4369
4378
  if (O === h || O === $) {
4370
4379
  var C = this.clone().set(K, 1);
4371
- C.$d[L](R), C.init(), this.$d = C.set(K, Math.min(this.$D, C.daysInMonth())).$d;
4372
- } else L && this.$d[L](R);
4380
+ C.$d[B](R), C.init(), this.$d = C.set(K, Math.min(this.$D, C.daysInMonth())).$d;
4381
+ } else B && this.$d[B](R);
4373
4382
  return this.init(), this;
4374
4383
  }, Y.set = function(G, ne) {
4375
4384
  return this.clone().$set(G, ne);
4376
4385
  }, Y.get = function(G) {
4377
4386
  return this[E.p(G)]();
4378
4387
  }, Y.add = function(G, ne) {
4379
- var Z, O = this;
4388
+ var J, O = this;
4380
4389
  G = Number(G);
4381
- var D = E.p(ne), L = function(j) {
4382
- var fe = M(O);
4383
- return E.w(fe.date(fe.date() + Math.round(j * G)), O);
4390
+ var D = E.p(ne), B = function(j) {
4391
+ var pe = M(O);
4392
+ return E.w(pe.date(pe.date() + Math.round(j * G)), O);
4384
4393
  };
4385
4394
  if (D === h) return this.set(h, this.$M + G);
4386
4395
  if (D === $) return this.set($, this.$y + G);
4387
- if (D === f) return L(1);
4388
- if (D === d) return L(7);
4389
- var R = (Z = {}, Z[s] = r, Z[c] = i, Z[o] = n, Z)[D] || 1, C = this.$d.getTime() + G * R;
4396
+ if (D === f) return B(1);
4397
+ if (D === d) return B(7);
4398
+ var R = (J = {}, J[s] = r, J[c] = i, J[o] = n, J)[D] || 1, C = this.$d.getTime() + G * R;
4390
4399
  return E.w(C, this);
4391
4400
  }, Y.subtract = function(G, ne) {
4392
4401
  return this.add(-1 * G, ne);
4393
4402
  }, Y.format = function(G) {
4394
- var ne = this, Z = this.$locale();
4395
- if (!this.isValid()) return Z.invalidDate || F;
4396
- var O = G || "YYYY-MM-DDTHH:mm:ssZ", D = E.z(this), L = this.$H, R = this.$m, C = this.$M, j = Z.weekdays, fe = Z.months, se = Z.meridiem, p = function(y, w, P, Q) {
4403
+ var ne = this, J = this.$locale();
4404
+ if (!this.isValid()) return J.invalidDate || F;
4405
+ var O = G || "YYYY-MM-DDTHH:mm:ssZ", D = E.z(this), B = this.$H, R = this.$m, C = this.$M, j = J.weekdays, pe = J.months, se = J.meridiem, p = function(y, w, P, Q) {
4397
4406
  return y && (y[w] || y(ne, O)) || P[w].slice(0, Q);
4398
4407
  }, u = function(y) {
4399
- return E.s(L % 12 || 12, y, "0");
4408
+ return E.s(B % 12 || 12, y, "0");
4400
4409
  }, l = se || function(y, w, P) {
4401
4410
  var Q = y < 12 ? "AM" : "PM";
4402
4411
  return P ? Q.toLowerCase() : Q;
@@ -4413,9 +4422,9 @@ function Zf() {
4413
4422
  case "MM":
4414
4423
  return E.s(C + 1, 2, "0");
4415
4424
  case "MMM":
4416
- return p(Z.monthsShort, C, fe, 3);
4425
+ return p(J.monthsShort, C, pe, 3);
4417
4426
  case "MMMM":
4418
- return p(fe, C);
4427
+ return p(pe, C);
4419
4428
  case "D":
4420
4429
  return ne.$D;
4421
4430
  case "DD":
@@ -4423,23 +4432,23 @@ function Zf() {
4423
4432
  case "d":
4424
4433
  return String(ne.$W);
4425
4434
  case "dd":
4426
- return p(Z.weekdaysMin, ne.$W, j, 2);
4435
+ return p(J.weekdaysMin, ne.$W, j, 2);
4427
4436
  case "ddd":
4428
- return p(Z.weekdaysShort, ne.$W, j, 3);
4437
+ return p(J.weekdaysShort, ne.$W, j, 3);
4429
4438
  case "dddd":
4430
4439
  return j[ne.$W];
4431
4440
  case "H":
4432
- return String(L);
4441
+ return String(B);
4433
4442
  case "HH":
4434
- return E.s(L, 2, "0");
4443
+ return E.s(B, 2, "0");
4435
4444
  case "h":
4436
4445
  return u(1);
4437
4446
  case "hh":
4438
4447
  return u(2);
4439
4448
  case "a":
4440
- return l(L, R, !0);
4449
+ return l(B, R, !0);
4441
4450
  case "A":
4442
- return l(L, R, !1);
4451
+ return l(B, R, !1);
4443
4452
  case "m":
4444
4453
  return String(R);
4445
4454
  case "mm":
@@ -4458,19 +4467,19 @@ function Zf() {
4458
4467
  }));
4459
4468
  }, Y.utcOffset = function() {
4460
4469
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4461
- }, Y.diff = function(G, ne, Z) {
4462
- var O, D = this, L = E.p(ne), R = M(G), C = (R.utcOffset() - this.utcOffset()) * r, j = this - R, fe = function() {
4470
+ }, Y.diff = function(G, ne, J) {
4471
+ var O, D = this, B = E.p(ne), R = M(G), C = (R.utcOffset() - this.utcOffset()) * r, j = this - R, pe = function() {
4463
4472
  return E.m(D, R);
4464
4473
  };
4465
- switch (L) {
4474
+ switch (B) {
4466
4475
  case $:
4467
- O = fe() / 12;
4476
+ O = pe() / 12;
4468
4477
  break;
4469
4478
  case h:
4470
- O = fe();
4479
+ O = pe();
4471
4480
  break;
4472
4481
  case S:
4473
- O = fe() / 3;
4482
+ O = pe() / 3;
4474
4483
  break;
4475
4484
  case d:
4476
4485
  O = (j - C) / 6048e5;
@@ -4490,15 +4499,15 @@ function Zf() {
4490
4499
  default:
4491
4500
  O = j;
4492
4501
  }
4493
- return Z ? O : E.a(O);
4502
+ return J ? O : E.a(O);
4494
4503
  }, Y.daysInMonth = function() {
4495
4504
  return this.endOf(h).$D;
4496
4505
  }, Y.$locale = function() {
4497
4506
  return k[this.$L];
4498
4507
  }, Y.locale = function(G, ne) {
4499
4508
  if (!G) return this.$L;
4500
- var Z = this.clone(), O = z(G, ne, !0);
4501
- return O && (Z.$L = O), Z;
4509
+ var J = this.clone(), O = z(G, ne, !0);
4510
+ return O && (J.$L = O), J;
4502
4511
  }, Y.clone = function() {
4503
4512
  return E.w(this.$d, this);
4504
4513
  }, Y.toDate = function() {
@@ -4546,7 +4555,7 @@ const br = /* @__PURE__ */ Xf(Qf), ep = { class: "colBtns" }, tp = {
4546
4555
  },
4547
4556
  emits: ["page-change", "size-change", "row-click", "row-dblclick"],
4548
4557
  setup(e, { expose: t, emit: n }) {
4549
- const r = e, i = n, a = xl(), o = le(), s = le(), c = le("100%"), f = le(0), d = Le(
4558
+ const r = e, i = n, a = xl(), o = ue(), s = ue(), c = ue("100%"), f = ue(0), d = Le(
4550
4559
  () => r.tableLabel.filter((b) => {
4551
4560
  var _;
4552
4561
  return !((_ = b.hiddenCondition) != null && _.call(b, b));
@@ -4749,7 +4758,7 @@ const up = /* @__PURE__ */ Te({
4749
4758
  },
4750
4759
  emits: ["onHandle", "error"],
4751
4760
  setup(e, { expose: t, emit: n }) {
4752
- const r = e, i = n, a = le(), o = le([]), s = le(!1), c = Sl({ currentPage: 1, pageSize: 20, total: 0 }), f = Le(() => r.type === "draft" ? sp : op);
4761
+ const r = e, i = n, a = ue(), o = ue([]), s = ue(!1), c = Sl({ currentPage: 1, pageSize: 20, total: 0 }), f = Le(() => r.type === "draft" ? sp : op);
4753
4762
  function d(m) {
4754
4763
  return ap[m] || m || "";
4755
4764
  }
@@ -5021,7 +5030,7 @@ function ga(e, t) {
5021
5030
  function Ft(e, t) {
5022
5031
  return e.bind(t);
5023
5032
  }
5024
- function ce(e, ...t) {
5033
+ function fe(e, ...t) {
5025
5034
  return Object.assign(e, ...t);
5026
5035
  }
5027
5036
  function mp(e, t, n) {
@@ -5071,13 +5080,13 @@ Dt.prototype.getShapePath = function(e) {
5071
5080
  };
5072
5081
  Dt.prototype.getConnectionPath = function(e) {
5073
5082
  };
5074
- function ue(e, t) {
5083
+ function ce(e, t) {
5075
5084
  var n = Re(e);
5076
5085
  return n && typeof n.$instanceOf == "function" && n.$instanceOf(t);
5077
5086
  }
5078
5087
  function wp(e, t) {
5079
5088
  return Zo(t, function(n) {
5080
- return ue(e, n);
5089
+ return ce(e, n);
5081
5090
  });
5082
5091
  }
5083
5092
  function Re(e) {
@@ -5087,10 +5096,10 @@ function tn(e) {
5087
5096
  return e && e.di;
5088
5097
  }
5089
5098
  function Kt(e, t) {
5090
- return ue(e, "bpmn:CallActivity") ? !1 : ue(e, "bpmn:SubProcess") ? (t = t || tn(e), t && ue(t, "bpmndi:BPMNPlane") ? !0 : t && !!t.isExpanded) : ue(e, "bpmn:Participant") ? !!Re(e).processRef : !0;
5099
+ return ce(e, "bpmn:CallActivity") ? !1 : ce(e, "bpmn:SubProcess") ? (t = t || tn(e), t && ce(t, "bpmndi:BPMNPlane") ? !0 : t && !!t.isExpanded) : ce(e, "bpmn:Participant") ? !!Re(e).processRef : !0;
5091
5100
  }
5092
5101
  function va(e) {
5093
- if (!(!ue(e, "bpmn:Participant") && !ue(e, "bpmn:Lane"))) {
5102
+ if (!(!ce(e, "bpmn:Participant") && !ce(e, "bpmn:Lane"))) {
5094
5103
  var t = tn(e).isHorizontal;
5095
5104
  return t === void 0 ? !0 : t;
5096
5105
  }
@@ -5109,7 +5118,7 @@ var Nn = {
5109
5118
  height: 20
5110
5119
  }, wa = 15;
5111
5120
  function xp(e) {
5112
- return ue(e, "bpmn:Event") || ue(e, "bpmn:Gateway") || ue(e, "bpmn:DataStoreReference") || ue(e, "bpmn:DataObjectReference") || ue(e, "bpmn:DataInput") || ue(e, "bpmn:DataOutput") || ue(e, "bpmn:SequenceFlow") || ue(e, "bpmn:MessageFlow") || ue(e, "bpmn:Group");
5121
+ return ce(e, "bpmn:Event") || ce(e, "bpmn:Gateway") || ce(e, "bpmn:DataStoreReference") || ce(e, "bpmn:DataObjectReference") || ce(e, "bpmn:DataInput") || ce(e, "bpmn:DataOutput") || ce(e, "bpmn:SequenceFlow") || ce(e, "bpmn:MessageFlow") || ce(e, "bpmn:Group");
5113
5122
  }
5114
5123
  function Sp(e) {
5115
5124
  var t = e.length / 2 - 1, n = e[Math.floor(t)], r = e[Math.ceil(t + 0.01)], i = Ap(e), a = Math.atan((r.y - n.y) / (r.x - n.x)), o = i.x, s = i.y;
@@ -5123,7 +5132,7 @@ function Ap(e) {
5123
5132
  };
5124
5133
  }
5125
5134
  function Rp(e) {
5126
- return e.waypoints ? Sp(e.waypoints) : ue(e, "bpmn:Group") ? {
5135
+ return e.waypoints ? Sp(e.waypoints) : ce(e, "bpmn:Group") ? {
5127
5136
  x: e.x + e.width / 2,
5128
5137
  y: e.y + Nn.height / 2
5129
5138
  } : {
@@ -5139,17 +5148,17 @@ function Cp(e, t) {
5139
5148
  }, n = {
5140
5149
  x: i.x + i.width / 2,
5141
5150
  y: i.y + i.height / 2
5142
- }) : (n = Rp(t), r = Nn), ce({
5151
+ }) : (n = Rp(t), r = Nn), fe({
5143
5152
  x: n.x - r.width / 2,
5144
5153
  y: n.y - r.height / 2
5145
5154
  }, r);
5146
5155
  }
5147
5156
  function kp(e) {
5148
- if (ue(e, "bpmn:FlowElement") || ue(e, "bpmn:Participant") || ue(e, "bpmn:Lane") || ue(e, "bpmn:SequenceFlow") || ue(e, "bpmn:MessageFlow") || ue(e, "bpmn:DataInput") || ue(e, "bpmn:DataOutput"))
5157
+ if (ce(e, "bpmn:FlowElement") || ce(e, "bpmn:Participant") || ce(e, "bpmn:Lane") || ce(e, "bpmn:SequenceFlow") || ce(e, "bpmn:MessageFlow") || ce(e, "bpmn:DataInput") || ce(e, "bpmn:DataOutput"))
5149
5158
  return "name";
5150
- if (ue(e, "bpmn:TextAnnotation"))
5159
+ if (ce(e, "bpmn:TextAnnotation"))
5151
5160
  return "text";
5152
- if (ue(e, "bpmn:Group"))
5161
+ if (ce(e, "bpmn:Group"))
5153
5162
  return "categoryValueRef";
5154
5163
  }
5155
5164
  function Tp(e) {
@@ -6023,7 +6032,7 @@ function on(e, t, n, r, i, a, o) {
6023
6032
  return $e(p, y), y;
6024
6033
  }
6025
6034
  function A(p, u, l, y) {
6026
- return g(u, l, ce({ "data-marker": p }, y));
6035
+ return g(u, l, fe({ "data-marker": p }, y));
6027
6036
  }
6028
6037
  function k(p) {
6029
6038
  return se[p];
@@ -6405,22 +6414,22 @@ function on(e, t, n, r, i, a, o) {
6405
6414
  compensation: -7,
6406
6415
  loop: 0,
6407
6416
  adhoc: -8
6408
- }, w.get("isForCompensation") && l.push("CompensationMarker"), ue(w, "bpmn:AdHocSubProcess") && (l.push("AdhocMarker"), P || ce(y, { compensation: y.compensation - 18 }));
6417
+ }, w.get("isForCompensation") && l.push("CompensationMarker"), ce(w, "bpmn:AdHocSubProcess") && (l.push("AdhocMarker"), P || fe(y, { compensation: y.compensation - 18 }));
6409
6418
  var Q = w.get("loopCharacteristics"), T = Q && Q.get("isSequential");
6410
- Q && (ce(y, {
6419
+ Q && (fe(y, {
6411
6420
  compensation: y.compensation - 18
6412
- }), l.includes("AdhocMarker") && ce(y, {
6421
+ }), l.includes("AdhocMarker") && fe(y, {
6413
6422
  seq: -23,
6414
6423
  loop: -18,
6415
6424
  parallel: -24
6416
- }), T === void 0 && l.push("LoopMarker"), T === !1 && l.push("ParallelMarker"), T === !0 && l.push("SequentialMarker")), l.includes("CompensationMarker") && l.length === 1 && ce(y, {
6425
+ }), T === void 0 && l.push("LoopMarker"), T === !1 && l.push("ParallelMarker"), T === !0 && l.push("SequentialMarker")), l.includes("CompensationMarker") && l.length === 1 && fe(y, {
6417
6426
  compensation: -8
6418
6427
  }), ae(l, function(q) {
6419
6428
  E(q, p, u, y);
6420
6429
  });
6421
6430
  }
6422
6431
  function oe(p, u, l = {}) {
6423
- l = ce({
6432
+ l = fe({
6424
6433
  size: {
6425
6434
  width: 100
6426
6435
  }
@@ -6453,7 +6462,7 @@ function on(e, t, n, r, i, a, o) {
6453
6462
  };
6454
6463
  return oe(p, Er(u), {
6455
6464
  box: y,
6456
- style: ce(
6465
+ style: fe(
6457
6466
  {},
6458
6467
  a.getExternalStyle(),
6459
6468
  {
@@ -6490,7 +6499,7 @@ function on(e, t, n, r, i, a, o) {
6490
6499
  stroke: te(u, c, l.stroke)
6491
6500
  });
6492
6501
  }
6493
- function Z(p, u, l = {}) {
6502
+ function J(p, u, l = {}) {
6494
6503
  var y = Re(u), w = me(u, s, l.fill), P = te(u, c, l.stroke);
6495
6504
  return (y.get("associationDirection") === "One" || y.get("associationDirection") === "Both") && (l.markerEnd = $(p, "association-end", w, P)), y.get("associationDirection") === "Both" && (l.markerStart = $(p, "association-start", w, P)), l = ge(l, [
6496
6505
  "markerStart",
@@ -6543,7 +6552,7 @@ function on(e, t, n, r, i, a, o) {
6543
6552
  stroke: te(u, c, l.stroke)
6544
6553
  });
6545
6554
  }
6546
- function L(p, u, l = {}) {
6555
+ function B(p, u, l = {}) {
6547
6556
  return x(p, u.width, u.height, {
6548
6557
  fill: me(u, s, l.fill),
6549
6558
  fillOpacity: fn,
@@ -6557,7 +6566,7 @@ function on(e, t, n, r, i, a, o) {
6557
6566
  stroke: te(u, c, l.stroke),
6558
6567
  strokeWidth: 1.5
6559
6568
  }), w = Re(u);
6560
- if (ue(w, "bpmn:Lane")) {
6569
+ if (ce(w, "bpmn:Lane")) {
6561
6570
  var P = w.get("name");
6562
6571
  G(p, P, u, l);
6563
6572
  }
@@ -6569,7 +6578,7 @@ function on(e, t, n, r, i, a, o) {
6569
6578
  strokeDasharray: "0, 5.5",
6570
6579
  strokeWidth: 2.5
6571
6580
  }), !w)) {
6572
- var P = Re(u).flowElements || [], Q = P.filter((T) => ue(T, "bpmn:StartEvent"));
6581
+ var P = Re(u).flowElements || [], Q = P.filter((T) => ce(T, "bpmn:StartEvent"));
6573
6582
  Q.length === 1 && j(Q[0], p, l, u);
6574
6583
  }
6575
6584
  return X(p, u, w ? "center-top" : "center-middle", l), w ? W(p, u, void 0, l) : W(p, u, ["SubProcessMarker"], l), y;
@@ -6589,7 +6598,7 @@ function on(e, t, n, r, i, a, o) {
6589
6598
  transform: U
6590
6599
  }), z(p, u, P, y);
6591
6600
  }
6592
- function fe(p, u, l = {}) {
6601
+ function pe(p, u, l = {}) {
6593
6602
  var y = ne(p, u, l);
6594
6603
  return X(p, u, "center-middle", l), W(p, u, void 0, l), y;
6595
6604
  }
@@ -6609,7 +6618,7 @@ function on(e, t, n, r, i, a, o) {
6609
6618
  return l = ge(l, [
6610
6619
  "fill",
6611
6620
  "stroke"
6612
- ]), Z(p, u, l);
6621
+ ]), J(p, u, l);
6613
6622
  },
6614
6623
  "bpmn:BoundaryEvent": function(p, u, l = {}) {
6615
6624
  var { renderIcon: y = !0 } = l;
@@ -6635,7 +6644,7 @@ function on(e, t, n, r, i, a, o) {
6635
6644
  "fill",
6636
6645
  "stroke"
6637
6646
  ]);
6638
- var y = fe(p, u, l), w = r.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN", {
6647
+ var y = pe(p, u, l), w = r.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN", {
6639
6648
  abspos: {
6640
6649
  x: 8,
6641
6650
  y: 8
@@ -6672,7 +6681,7 @@ function on(e, t, n, r, i, a, o) {
6672
6681
  "fill",
6673
6682
  "stroke"
6674
6683
  ]);
6675
- var y = L(p, u, l), w = r.getScaledPath("GATEWAY_COMPLEX", {
6684
+ var y = B(p, u, l), w = r.getScaledPath("GATEWAY_COMPLEX", {
6676
6685
  xScaleFactor: 0.5,
6677
6686
  yScaleFactor: 0.5,
6678
6687
  containerWidth: u.width,
@@ -6704,7 +6713,7 @@ function on(e, t, n, r, i, a, o) {
6704
6713
  return l = ge(l, [
6705
6714
  "fill",
6706
6715
  "stroke"
6707
- ]), Z(p, u, {
6716
+ ]), J(p, u, {
6708
6717
  ...l,
6709
6718
  markerEnd: $(p, "association-end", me(u, s, l.fill), te(u, c, l.stroke))
6710
6719
  });
@@ -6732,7 +6741,7 @@ function on(e, t, n, r, i, a, o) {
6732
6741
  return l = ge(l, [
6733
6742
  "fill",
6734
6743
  "stroke"
6735
- ]), Z(p, u, {
6744
+ ]), J(p, u, {
6736
6745
  ...l,
6737
6746
  markerEnd: $(p, "association-end", me(u, s, l.fill), te(u, c, l.stroke))
6738
6747
  });
@@ -6776,7 +6785,7 @@ function on(e, t, n, r, i, a, o) {
6776
6785
  "fill",
6777
6786
  "stroke"
6778
6787
  ]);
6779
- var y = Re(u), w = L(p, u, l);
6788
+ var y = Re(u), w = B(p, u, l);
6780
6789
  F(p, u.width, u.height, u.height * 0.2, {
6781
6790
  fill: me(u, "none", l.fill),
6782
6791
  stroke: te(u, c, l.stroke),
@@ -6828,7 +6837,7 @@ function on(e, t, n, r, i, a, o) {
6828
6837
  "fill",
6829
6838
  "stroke"
6830
6839
  ]);
6831
- var y = L(p, u, l), w = r.getScaledPath("GATEWAY_EXCLUSIVE", {
6840
+ var y = B(p, u, l), w = r.getScaledPath("GATEWAY_EXCLUSIVE", {
6832
6841
  xScaleFactor: 0.4,
6833
6842
  yScaleFactor: 0.4,
6834
6843
  containerWidth: u.width,
@@ -6848,7 +6857,7 @@ function on(e, t, n, r, i, a, o) {
6848
6857
  return l = ge(l, [
6849
6858
  "fill",
6850
6859
  "stroke"
6851
- ]), L(p, u, l);
6860
+ ]), B(p, u, l);
6852
6861
  },
6853
6862
  "bpmn:Group": function(p, u, l = {}) {
6854
6863
  return l = ge(l, [
@@ -6871,7 +6880,7 @@ function on(e, t, n, r, i, a, o) {
6871
6880
  "fill",
6872
6881
  "stroke"
6873
6882
  ]);
6874
- var y = L(p, u, l);
6883
+ var y = B(p, u, l);
6875
6884
  return F(p, u.width, u.height, u.height * 0.24, {
6876
6885
  fill: me(u, s, l.fill),
6877
6886
  stroke: te(u, c, l.stroke),
@@ -6912,7 +6921,7 @@ function on(e, t, n, r, i, a, o) {
6912
6921
  "fill",
6913
6922
  "stroke"
6914
6923
  ]);
6915
- var y = fe(p, u, l), w = r.getScaledPath("TASK_TYPE_MANUAL", {
6924
+ var y = pe(p, u, l), w = r.getScaledPath("TASK_TYPE_MANUAL", {
6916
6925
  abspos: {
6917
6926
  x: 17,
6918
6927
  y: 15
@@ -6946,14 +6955,14 @@ function on(e, t, n, r, i, a, o) {
6946
6955
  strokeWidth: 1
6947
6956
  };
6948
6957
  w.get("messageVisibleKind") === "initiating" ? (ee.fill = P, ee.stroke = Q) : (ee.fill = Q, ee.stroke = P);
6949
- var U = g(p, H, ee), V = y.get("messageRef"), J = V.get("name"), B = oe(p, J, {
6958
+ var U = g(p, H, ee), V = y.get("messageRef"), Z = V.get("name"), L = oe(p, Z, {
6950
6959
  align: "center-top",
6951
6960
  fitBox: !0,
6952
6961
  style: {
6953
6962
  fill: Q
6954
6963
  }
6955
- }), de = U.getBBox(), Ee = B.getBBox(), ct = q.x - Ee.width / 2, De = q.y + de.height / 2 + pd;
6956
- qr(B, ct, De, 0);
6964
+ }), le = U.getBBox(), Ee = L.getBBox(), ct = q.x - Ee.width / 2, De = q.y + le.height / 2 + pd;
6965
+ qr(L, ct, De, 0);
6957
6966
  }
6958
6967
  return T;
6959
6968
  },
@@ -6962,7 +6971,7 @@ function on(e, t, n, r, i, a, o) {
6962
6971
  "fill",
6963
6972
  "stroke"
6964
6973
  ]);
6965
- var y = L(p, u, l), w = r.getScaledPath("GATEWAY_PARALLEL", {
6974
+ var y = B(p, u, l), w = r.getScaledPath("GATEWAY_PARALLEL", {
6966
6975
  xScaleFactor: 0.6,
6967
6976
  yScaleFactor: 0.6,
6968
6977
  containerWidth: u.width,
@@ -7032,7 +7041,7 @@ function on(e, t, n, r, i, a, o) {
7032
7041
  "fill",
7033
7042
  "stroke"
7034
7043
  ]);
7035
- var y = Re(u), w = fe(p, u, l), P;
7044
+ var y = Re(u), w = pe(p, u, l), P;
7036
7045
  return y.get("instantiate") ? (F(p, 28, 28, 20 * 0.22, {
7037
7046
  fill: me(u, s, l.fill),
7038
7047
  stroke: te(u, c, l.stroke),
@@ -7062,7 +7071,7 @@ function on(e, t, n, r, i, a, o) {
7062
7071
  "fill",
7063
7072
  "stroke"
7064
7073
  ]);
7065
- var y = fe(p, u, l), w = r.getScaledPath("TASK_TYPE_SCRIPT", {
7074
+ var y = pe(p, u, l), w = r.getScaledPath("TASK_TYPE_SCRIPT", {
7066
7075
  abspos: {
7067
7076
  x: 15,
7068
7077
  y: 20
@@ -7079,7 +7088,7 @@ function on(e, t, n, r, i, a, o) {
7079
7088
  "fill",
7080
7089
  "stroke"
7081
7090
  ]);
7082
- var y = fe(p, u, l), w = r.getScaledPath("TASK_TYPE_SEND", {
7091
+ var y = pe(p, u, l), w = r.getScaledPath("TASK_TYPE_SEND", {
7083
7092
  xScaleFactor: 1,
7084
7093
  yScaleFactor: 1,
7085
7094
  containerWidth: 21,
@@ -7106,9 +7115,9 @@ function on(e, t, n, r, i, a, o) {
7106
7115
  }), Q = Re(u), { source: T } = u;
7107
7116
  if (T) {
7108
7117
  var q = Re(T);
7109
- Q.get("conditionExpression") && ue(q, "bpmn:Activity") && ke(P, {
7118
+ Q.get("conditionExpression") && ce(q, "bpmn:Activity") && ke(P, {
7110
7119
  markerStart: $(p, "conditional-flow-marker", y, w)
7111
- }), q.get("default") && (ue(q, "bpmn:Gateway") || ue(q, "bpmn:Activity")) && q.get("default") === Q && ke(P, {
7120
+ }), q.get("default") && (ce(q, "bpmn:Gateway") || ce(q, "bpmn:Activity")) && q.get("default") === Q && ke(P, {
7112
7121
  markerStart: $(p, "conditional-default-flow-marker", y, w)
7113
7122
  });
7114
7123
  }
@@ -7119,7 +7128,7 @@ function on(e, t, n, r, i, a, o) {
7119
7128
  "fill",
7120
7129
  "stroke"
7121
7130
  ]);
7122
- var y = fe(p, u, l);
7131
+ var y = pe(p, u, l);
7123
7132
  F(p, 10, 10, {
7124
7133
  fill: me(u, s, l.fill),
7125
7134
  stroke: "none",
@@ -7181,7 +7190,7 @@ function on(e, t, n, r, i, a, o) {
7181
7190
  return l = ge(l, [
7182
7191
  "fill",
7183
7192
  "stroke"
7184
- ]), fe(p, u, l);
7193
+ ]), pe(p, u, l);
7185
7194
  },
7186
7195
  "bpmn:TextAnnotation": function(p, u, l = {}) {
7187
7196
  l = ge(l, [
@@ -7248,7 +7257,7 @@ function on(e, t, n, r, i, a, o) {
7248
7257
  "fill",
7249
7258
  "stroke"
7250
7259
  ]);
7251
- var y = fe(p, u, l), w = 15, P = 12, Q = r.getScaledPath("TASK_TYPE_USER_1", {
7260
+ var y = pe(p, u, l), w = 15, P = 12, Q = r.getScaledPath("TASK_TYPE_USER_1", {
7252
7261
  abspos: {
7253
7262
  x: w,
7254
7263
  y: P
@@ -7298,7 +7307,7 @@ on.$inject = [
7298
7307
  "textRenderer"
7299
7308
  ];
7300
7309
  on.prototype.canRender = function(e) {
7301
- return ue(e, "bpmn:BaseElement");
7310
+ return ce(e, "bpmn:BaseElement");
7302
7311
  };
7303
7312
  on.prototype.drawShape = function(e, t, n = {}) {
7304
7313
  var { type: r } = t, i = this._renderer(r);
@@ -7309,7 +7318,7 @@ on.prototype.drawConnection = function(e, t, n = {}) {
7309
7318
  return i(e, t, n);
7310
7319
  };
7311
7320
  on.prototype.getShapePath = function(e) {
7312
- return _p(e) ? Sa(e, hd) : ue(e, "bpmn:Event") ? Gp(e) : ue(e, "bpmn:Activity") ? Sa(e, fr) : ue(e, "bpmn:Gateway") ? Xp(e) : Jp(e);
7321
+ return _p(e) ? Sa(e, hd) : ce(e, "bpmn:Event") ? Gp(e) : ce(e, "bpmn:Activity") ? Sa(e, fr) : ce(e, "bpmn:Gateway") ? Xp(e) : Jp(e);
7313
7322
  };
7314
7323
  function ge(e, t = []) {
7315
7324
  return t.reduce((n, r) => (e[r] && (n[r] = e[r]), n), {});
@@ -7326,7 +7335,7 @@ function wd(e) {
7326
7335
  };
7327
7336
  }
7328
7337
  function bd(e) {
7329
- return Bt(e) ? ce({ top: 0, left: 0, right: 0, bottom: 0 }, e) : {
7338
+ return Bt(e) ? fe({ top: 0, left: 0, right: 0, bottom: 0 }, e) : {
7330
7339
  top: e,
7331
7340
  left: e,
7332
7341
  right: e,
@@ -7393,7 +7402,7 @@ function Cd(e, t, n) {
7393
7402
  return i || (i = e.slice(0, Math.max(Math.round(r - 1), 1))), i;
7394
7403
  }
7395
7404
  function kr(e) {
7396
- this._config = ce({}, {
7405
+ this._config = fe({}, {
7397
7406
  size: vd,
7398
7407
  padding: gd,
7399
7408
  style: {},
@@ -7407,7 +7416,7 @@ kr.prototype.getDimensions = function(e, t) {
7407
7416
  return this.layoutText(e, t).dimensions;
7408
7417
  };
7409
7418
  kr.prototype.layoutText = function(e, t) {
7410
- for (var n = ce({}, this._config.size, t.box), r = ce({}, this._config.style, t.style), i = wd(t.align || this._config.align), a = bd(t.padding !== void 0 ? t.padding : this._config.padding), o = t.fitBox || !1, s = kd(r), c = e.split(/\u00AD?\r?\n/), f = [], d = n.width - a.left - a.right; c.length; )
7419
+ for (var n = fe({}, this._config.size, t.box), r = fe({}, this._config.style, t.style), i = wd(t.align || this._config.align), a = bd(t.padding !== void 0 ? t.padding : this._config.padding), o = t.fitBox || !1, s = kd(r), c = e.split(/\u00AD?\r?\n/), f = [], d = n.width - a.left - a.right; c.length; )
7411
7420
  f.push(Sd(c, d, r));
7412
7421
  i.vertical === "middle" && (a.top = a.bottom = 0);
7413
7422
  var h = gn(f, function(N, x, I) {
@@ -7447,12 +7456,12 @@ function kd(e) {
7447
7456
  }
7448
7457
  var Td = 12, Pd = 1.2, Dd = 40;
7449
7458
  function hs(e) {
7450
- var t = ce({
7459
+ var t = fe({
7451
7460
  fontFamily: "Arial, sans-serif",
7452
7461
  fontSize: Td,
7453
7462
  fontWeight: "normal",
7454
7463
  lineHeight: Pd
7455
- }, e && e.defaultStyle || {}), n = parseInt(t.fontSize, 10) - 1, r = ce({}, t, {
7464
+ }, e && e.defaultStyle || {}), n = parseInt(t.fontSize, 10) - 1, r = fe({}, t, {
7456
7465
  fontSize: n
7457
7466
  }, e && e.externalStyle || {}), i = new kr({
7458
7467
  style: t
@@ -7486,7 +7495,7 @@ function hs(e) {
7486
7495
  return i.getDimensions(o, s || {});
7487
7496
  };
7488
7497
  function a(o, s, c) {
7489
- return i.getDimensions(o, ce({ box: s }, c));
7498
+ return i.getDimensions(o, fe({ box: s }, c));
7490
7499
  }
7491
7500
  this.createText = function(o, s) {
7492
7501
  return i.createText(o, s || {});
@@ -7845,7 +7854,7 @@ function je(e) {
7845
7854
  return e ? "<" + e.$type + (e.id ? ' id="' + e.id : "") + '" />' : "<null>";
7846
7855
  }
7847
7856
  function pr(e, t, n) {
7848
- return ce({
7857
+ return fe({
7849
7858
  id: e.id,
7850
7859
  type: e.$type,
7851
7860
  businessObject: e,
@@ -7875,10 +7884,10 @@ It.$inject = [
7875
7884
  ];
7876
7885
  It.prototype.add = function(e, t, n) {
7877
7886
  var r, i, a;
7878
- if (ue(t, "bpmndi:BPMNPlane")) {
7879
- var o = ue(e, "bpmn:SubProcess") ? { id: e.id + "_plane" } : {};
7887
+ if (ce(t, "bpmndi:BPMNPlane")) {
7888
+ var o = ce(e, "bpmn:SubProcess") ? { id: e.id + "_plane" } : {};
7880
7889
  r = this._elementFactory.createRoot(pr(e, t, o)), this._canvas.addRootElement(r);
7881
- } else if (ue(t, "bpmndi:BPMNShape")) {
7890
+ } else if (ce(t, "bpmndi:BPMNShape")) {
7882
7891
  var s = !Kt(e, t), c = qd(e);
7883
7892
  i = n && (n.hidden || n.collapsed);
7884
7893
  var f = t.bounds;
@@ -7890,15 +7899,15 @@ It.prototype.add = function(e, t, n) {
7890
7899
  width: Math.round(f.width),
7891
7900
  height: Math.round(f.height),
7892
7901
  isFrame: c
7893
- })), ue(e, "bpmn:BoundaryEvent") && this._attachBoundary(e, r), ue(e, "bpmn:Lane") && (a = 0), ue(e, "bpmn:DataStoreReference") && (Wd(n, si(f)) || (n = this._canvas.findRoot(n))), this._canvas.addShape(r, n, a);
7894
- } else if (ue(t, "bpmndi:BPMNEdge")) {
7902
+ })), ce(e, "bpmn:BoundaryEvent") && this._attachBoundary(e, r), ce(e, "bpmn:Lane") && (a = 0), ce(e, "bpmn:DataStoreReference") && (Wd(n, si(f)) || (n = this._canvas.findRoot(n))), this._canvas.addShape(r, n, a);
7903
+ } else if (ce(t, "bpmndi:BPMNEdge")) {
7895
7904
  var d = this._getSource(e), h = this._getTarget(e);
7896
7905
  i = n && (n.hidden || n.collapsed), r = this._elementFactory.createConnection(pr(e, t, {
7897
7906
  hidden: i,
7898
7907
  source: d,
7899
7908
  target: h,
7900
7909
  waypoints: Hd(t, d, h)
7901
- })), ue(e, "bpmn:DataAssociation") && (n = this._canvas.findRoot(n)), this._canvas.addConnection(r, n, a);
7910
+ })), ce(e, "bpmn:DataAssociation") && (n = this._canvas.findRoot(n)), this._canvas.addConnection(r, n, a);
7902
7911
  } else
7903
7912
  throw new Error(
7904
7913
  `unknown di ${je(t)} for element ${je(e)}`
@@ -7951,7 +7960,7 @@ function Wd(e, t) {
7951
7960
  return n >= e.x && n <= e.x + e.width && r >= e.y && r <= e.y + e.height;
7952
7961
  }
7953
7962
  function qd(e) {
7954
- return ue(e, "bpmn:Group");
7963
+ return ce(e, "bpmn:Group");
7955
7964
  }
7956
7965
  const Yd = {
7957
7966
  __depends__: [
@@ -7972,7 +7981,7 @@ gs.prototype.next = function() {
7972
7981
  };
7973
7982
  var Gd = new gs("ov"), Xd = 500;
7974
7983
  function Fe(e, t, n, r) {
7975
- this._eventBus = t, this._canvas = n, this._elementRegistry = r, this._ids = Gd, this._overlayDefaults = ce({
7984
+ this._eventBus = t, this._canvas = n, this._elementRegistry = r, this._ids = Gd, this._overlayDefaults = fe({
7976
7985
  // no show constraints
7977
7986
  show: null,
7978
7987
  // always scale
@@ -7999,7 +8008,7 @@ Fe.prototype.add = function(e, t, n) {
7999
8008
  if (!e)
8000
8009
  throw new Error("invalid element specified");
8001
8010
  var r = this._ids.next();
8002
- return n = ce({}, this._overlayDefaults, n, {
8011
+ return n = fe({}, this._overlayDefaults, n, {
8003
8012
  id: r,
8004
8013
  type: t,
8005
8014
  element: e,
@@ -8245,7 +8254,7 @@ function rh(e) {
8245
8254
  var ih = "_plane";
8246
8255
  function Ii(e) {
8247
8256
  var t = e.id;
8248
- return ue(e, "bpmn:SubProcess") ? ah(t) : t;
8257
+ return ce(e, "bpmn:SubProcess") ? ah(t) : t;
8249
8258
  }
8250
8259
  function ah(e) {
8251
8260
  return e + ih;
@@ -8265,7 +8274,7 @@ function _s(e, t, n) {
8265
8274
  c && (o = sh(c));
8266
8275
  var f = o.flatMap(function(h) {
8267
8276
  var S = n.findRoot(Ii(h)) || n.findRoot(h.id);
8268
- if (!S && ue(h, "bpmn:Process")) {
8277
+ if (!S && ce(h, "bpmn:Process")) {
8269
8278
  var $ = t.find(function(N) {
8270
8279
  var x = Re(N);
8271
8280
  return x && x.get("processRef") === h;
@@ -8292,7 +8301,7 @@ function _s(e, t, n) {
8292
8301
  _s.$inject = ["eventBus", "elementRegistry", "canvas"];
8293
8302
  function sh(e) {
8294
8303
  for (var t = Re(e), n = [], r = t; r; r = r.$parent)
8295
- (ue(r, "bpmn:SubProcess") || ue(r, "bpmn:Process")) && n.push(r);
8304
+ (ce(r, "bpmn:SubProcess") || ce(r, "bpmn:Process")) && n.push(r);
8296
8305
  return n.reverse();
8297
8306
  }
8298
8307
  function xs(e, t) {
@@ -8303,7 +8312,7 @@ function xs(e, t) {
8303
8312
  x: o.x,
8304
8313
  y: o.y,
8305
8314
  zoom: o.scale
8306
- }), n = a, !(!ue(a, "bpmn:SubProcess") && !s)) {
8315
+ }), n = a, !(!ce(a, "bpmn:SubProcess") && !s)) {
8307
8316
  s = s || { x: 0, y: 0, zoom: 1 };
8308
8317
  var c = (o.x - s.x) * o.scale, f = (o.y - s.y) * o.scale;
8309
8318
  (c !== 0 || f !== 0) && t.scroll({
@@ -8371,7 +8380,7 @@ sn.prototype._createNewDiagrams = function(e) {
8371
8380
  var o = a.bpmnElement;
8372
8381
  if (o) {
8373
8382
  var s = o.$parent;
8374
- ue(o, "bpmn:SubProcess") && !a.isExpanded && n.push(o), ch(o, e) && r.push({ diElement: a, parent: s });
8383
+ ce(o, "bpmn:SubProcess") && !a.isExpanded && n.push(o), ch(o, e) && r.push({ diElement: a, parent: s });
8375
8384
  }
8376
8385
  });
8377
8386
  var i = [];
@@ -8414,7 +8423,7 @@ sn.prototype._createDiagram = function(e) {
8414
8423
  };
8415
8424
  sn.$inject = ["eventBus", "moddle"];
8416
8425
  function Ss(e) {
8417
- return ue(e, "bpmndi:BPMNDiagram") ? e : Ss(e.$parent);
8426
+ return ce(e, "bpmndi:BPMNDiagram") ? e : Ss(e.$parent);
8418
8427
  }
8419
8428
  function uh(e) {
8420
8429
  var t = {
@@ -8432,7 +8441,7 @@ function uh(e) {
8432
8441
  }
8433
8442
  function ch(e, t) {
8434
8443
  var n = e.$parent;
8435
- return !(!ue(n, "bpmn:SubProcess") || n === t.bpmnElement || wp(e, ["bpmn:DataInputAssociation", "bpmn:DataOutputAssociation"]));
8444
+ return !(!ce(n, "bpmn:SubProcess") || n === t.bpmnElement || wp(e, ["bpmn:DataInputAssociation", "bpmn:DataOutputAssociation"]));
8436
8445
  }
8437
8446
  var nr = 250, fh = '<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>', ph = "bjs-drilldown-empty";
8438
8447
  function zt(e, t, n, r, i) {
@@ -8478,7 +8487,7 @@ zt.prototype._updateDrilldownOverlay = function(e) {
8478
8487
  };
8479
8488
  zt.prototype._canDrillDown = function(e) {
8480
8489
  var t = this._canvas;
8481
- return ue(e, "bpmn:SubProcess") && t.findRoot(Ii(e));
8490
+ return ce(e, "bpmn:SubProcess") && t.findRoot(Ii(e));
8482
8491
  };
8483
8492
  zt.prototype._updateOverlayVisibility = function(e) {
8484
8493
  var t = this._overlays, n = Re(e), r = t.get({ element: n.id, type: "drilldown" })[0];
@@ -8645,7 +8654,7 @@ function Cs(e, t, n) {
8645
8654
  "no-move": m
8646
8655
  };
8647
8656
  function A(_, z) {
8648
- return z = ce({
8657
+ return z = fe({
8649
8658
  stroke: "white",
8650
8659
  strokeWidth: 15
8651
8660
  }, z || {}), n.cls(_, ["no-fill", "no-border"], z);
@@ -8672,7 +8681,7 @@ function Cs(e, t, n) {
8672
8681
  var M = Pi(z);
8673
8682
  return k(M, "stroke"), b(_, M), M;
8674
8683
  }, this.createBoxHit = function(_, z, M) {
8675
- M = ce({
8684
+ M = fe({
8676
8685
  x: 0,
8677
8686
  y: 0
8678
8687
  }, M);
@@ -8994,10 +9003,10 @@ Ht.prototype.drawShape = function(t, n, r) {
8994
9003
  y: 0,
8995
9004
  width: n.width || 0,
8996
9005
  height: n.height || 0
8997
- }), es(n) ? ke(i, ce({}, this.FRAME_STYLE, r || {})) : ke(i, ce({}, this.SHAPE_STYLE, r || {})), $e(t, i), i;
9006
+ }), es(n) ? ke(i, fe({}, this.FRAME_STYLE, r || {})) : ke(i, fe({}, this.SHAPE_STYLE, r || {})), $e(t, i), i;
8998
9007
  };
8999
9008
  Ht.prototype.drawConnection = function(t, n, r) {
9000
- var i = Pi(n.waypoints, ce({}, this.CONNECTION_STYLE, r || {}));
9009
+ var i = Pi(n.waypoints, fe({}, this.CONNECTION_STYLE, r || {}));
9001
9010
  return $e(t, i), i;
9002
9011
  };
9003
9012
  Ht.prototype.getShapePath = function(t) {
@@ -9031,15 +9040,15 @@ function Th() {
9031
9040
  }, t = this;
9032
9041
  this.cls = function(n, r, i) {
9033
9042
  var a = this.style(r, i);
9034
- return ce(a, { class: n });
9043
+ return fe(a, { class: n });
9035
9044
  }, this.style = function(n, r) {
9036
9045
  !ot(n) && !r && (r = n, n = []);
9037
9046
  var i = gn(n, function(a, o) {
9038
- return ce(a, e[o] || {});
9047
+ return fe(a, e[o] || {});
9039
9048
  }, {});
9040
- return r ? ce(i, r) : i;
9049
+ return r ? fe(i, r) : i;
9041
9050
  }, this.computeStyle = function(n, r, i) {
9042
- return ot(r) || (i = r, r = []), t.style(r || [], ce({}, i, n || {}));
9051
+ return ot(r) || (i = r, r = []), t.style(r || [], fe({}, i, n || {}));
9043
9052
  };
9044
9053
  }
9045
9054
  const Ph = {
@@ -9080,7 +9089,7 @@ function Oh(e) {
9080
9089
  return e;
9081
9090
  }
9082
9091
  function Mh(e) {
9083
- e = ce({}, { width: "100%", height: "100%" }, e);
9092
+ e = fe({}, { width: "100%", height: "100%" }, e);
9084
9093
  const t = e.container || document.body, n = document.createElement("div");
9085
9094
  return n.setAttribute("class", "djs-container djs-parent"), tt(n, {
9086
9095
  position: "relative",
@@ -9099,16 +9108,16 @@ const Nh = "base", Is = 0, Bh = 1, Lh = {
9099
9108
  shape: ["x", "y", "width", "height"],
9100
9109
  connection: ["waypoints"]
9101
9110
  };
9102
- function pe(e, t, n, r) {
9111
+ function de(e, t, n, r) {
9103
9112
  this._eventBus = t, this._elementRegistry = r, this._graphicsFactory = n, this._rootsIdx = 0, this._layers = {}, this._planes = [], this._rootElement = null, this._focused = !1, this._init(e || {});
9104
9113
  }
9105
- pe.$inject = [
9114
+ de.$inject = [
9106
9115
  "config.canvas",
9107
9116
  "eventBus",
9108
9117
  "graphicsFactory",
9109
9118
  "elementRegistry"
9110
9119
  ];
9111
- pe.prototype._init = function(e) {
9120
+ de.prototype._init = function(e) {
9112
9121
  const t = this._eventBus, n = this._container = Mh(e), r = this._svg = Ce("svg");
9113
9122
  ke(r, {
9114
9123
  width: "100%",
@@ -9143,7 +9152,7 @@ pe.prototype._init = function(e) {
9143
9152
  delete this._cachedViewbox;
9144
9153
  }), t.on("diagram.destroy", 500, this._destroy, this), t.on("diagram.clear", 500, this._clear, this);
9145
9154
  };
9146
- pe.prototype._destroy = function() {
9155
+ de.prototype._destroy = function() {
9147
9156
  this._restoreFocus.cancel(), this._eventBus.fire("canvas.destroy", {
9148
9157
  svg: this._svg,
9149
9158
  viewport: this._viewport
@@ -9151,31 +9160,31 @@ pe.prototype._destroy = function() {
9151
9160
  const e = this._container.parentNode;
9152
9161
  e && e.removeChild(this._container), delete this._svg, delete this._container, delete this._layers, delete this._planes, delete this._rootElement, delete this._viewport;
9153
9162
  };
9154
- pe.prototype._setFocused = function(e) {
9163
+ de.prototype._setFocused = function(e) {
9155
9164
  e != this._focused && (this._focused = e, this._eventBus.fire("canvas.focus.changed", { focused: e }));
9156
9165
  };
9157
- pe.prototype._clear = function() {
9166
+ de.prototype._clear = function() {
9158
9167
  this._elementRegistry.getAll().forEach((t) => {
9159
9168
  const n = Qo(t);
9160
9169
  n === "root" ? this.removeRootElement(t) : this._removeElement(t, n);
9161
9170
  }), this._planes = [], this._rootElement = null, delete this._cachedViewbox;
9162
9171
  };
9163
- pe.prototype.focus = function() {
9172
+ de.prototype.focus = function() {
9164
9173
  this._svg.focus({ preventScroll: !0 }), this._setFocused(!0);
9165
9174
  };
9166
- pe.prototype.restoreFocus = function() {
9175
+ de.prototype.restoreFocus = function() {
9167
9176
  this._restoreFocus();
9168
9177
  };
9169
- pe.prototype._restoreFocus = function() {
9178
+ de.prototype._restoreFocus = function() {
9170
9179
  document.activeElement === document.body && this.focus();
9171
9180
  };
9172
- pe.prototype.isFocused = function() {
9181
+ de.prototype.isFocused = function() {
9173
9182
  return this._focused;
9174
9183
  };
9175
- pe.prototype.getDefaultLayer = function() {
9184
+ de.prototype.getDefaultLayer = function() {
9176
9185
  return this.getLayer(Nh, Is);
9177
9186
  };
9178
- pe.prototype.getLayer = function(e, t) {
9187
+ de.prototype.getLayer = function(e, t) {
9179
9188
  if (!e)
9180
9189
  throw new Error("must specify a name");
9181
9190
  let n = this._layers[e];
@@ -9183,12 +9192,12 @@ pe.prototype.getLayer = function(e, t) {
9183
9192
  throw new Error("layer <" + e + "> already created at index <" + t + ">");
9184
9193
  return n.group;
9185
9194
  };
9186
- pe.prototype._getChildIndex = function(e) {
9195
+ de.prototype._getChildIndex = function(e) {
9187
9196
  return gn(this._layers, function(t, n) {
9188
9197
  return n.visible && e >= n.index && t++, t;
9189
9198
  }, 0);
9190
9199
  };
9191
- pe.prototype._createLayer = function(e, t) {
9200
+ de.prototype._createLayer = function(e, t) {
9192
9201
  typeof t > "u" && (t = Bh);
9193
9202
  const n = this._getChildIndex(t);
9194
9203
  return {
@@ -9197,7 +9206,7 @@ pe.prototype._createLayer = function(e, t) {
9197
9206
  visible: !0
9198
9207
  };
9199
9208
  };
9200
- pe.prototype.showLayer = function(e) {
9209
+ de.prototype.showLayer = function(e) {
9201
9210
  if (!e)
9202
9211
  throw new Error("must specify a name");
9203
9212
  const t = this._layers[e];
@@ -9209,7 +9218,7 @@ pe.prototype.showLayer = function(e) {
9209
9218
  const a = this._getChildIndex(i);
9210
9219
  return n.insertBefore(r, n.childNodes[a] || null), t.visible = !0, r;
9211
9220
  };
9212
- pe.prototype.hideLayer = function(e) {
9221
+ de.prototype.hideLayer = function(e) {
9213
9222
  if (!e)
9214
9223
  throw new Error("must specify a name");
9215
9224
  const t = this._layers[e];
@@ -9218,15 +9227,15 @@ pe.prototype.hideLayer = function(e) {
9218
9227
  const n = t.group;
9219
9228
  return t.visible && (Cr(n), t.visible = !1), n;
9220
9229
  };
9221
- pe.prototype._removeLayer = function(e) {
9230
+ de.prototype._removeLayer = function(e) {
9222
9231
  const t = this._layers[e];
9223
9232
  t && (delete this._layers[e], Cr(t.group));
9224
9233
  };
9225
- pe.prototype.getActiveLayer = function() {
9234
+ de.prototype.getActiveLayer = function() {
9226
9235
  const e = this._findPlaneForRoot(this.getRootElement());
9227
9236
  return e ? e.layer : null;
9228
9237
  };
9229
- pe.prototype.findRoot = function(e) {
9238
+ de.prototype.findRoot = function(e) {
9230
9239
  const t = this._resolveElements(e);
9231
9240
  let n;
9232
9241
  for (const r of t) {
@@ -9239,48 +9248,48 @@ pe.prototype.findRoot = function(e) {
9239
9248
  }
9240
9249
  return n;
9241
9250
  };
9242
- pe.prototype.getRootElements = function() {
9251
+ de.prototype.getRootElements = function() {
9243
9252
  return this._planes.map(function(e) {
9244
9253
  return e.rootElement;
9245
9254
  });
9246
9255
  };
9247
- pe.prototype._findPlaneForRoot = function(e) {
9256
+ de.prototype._findPlaneForRoot = function(e) {
9248
9257
  return pt(this._planes, function(t) {
9249
9258
  return t.rootElement === e;
9250
9259
  });
9251
9260
  };
9252
- pe.prototype._resolveElement = function(e) {
9261
+ de.prototype._resolveElement = function(e) {
9253
9262
  return typeof e == "string" ? this._elementRegistry.get(e) : e;
9254
9263
  };
9255
- pe.prototype._resolveElements = function(e) {
9264
+ de.prototype._resolveElements = function(e) {
9256
9265
  return ot(e) || (e = [e]), e.map((t) => this._resolveElement(t)).filter(Boolean);
9257
9266
  };
9258
- pe.prototype.getContainer = function() {
9267
+ de.prototype.getContainer = function() {
9259
9268
  return this._container;
9260
9269
  };
9261
- pe.prototype._updateMarker = function(e, t, n) {
9270
+ de.prototype._updateMarker = function(e, t, n) {
9262
9271
  let r;
9263
9272
  e = this._resolveElement(e), e.markers = e.markers || /* @__PURE__ */ new Set(), r = this._elementRegistry._elements[e.id], r && (ae([r.gfx, r.secondaryGfx], function(i) {
9264
9273
  i && (n ? (e.markers.add(t), yt(i).add(t)) : (e.markers.delete(t), yt(i).remove(t)));
9265
9274
  }), this._eventBus.fire("element.marker.update", { element: e, gfx: r.gfx, marker: t, add: !!n }));
9266
9275
  };
9267
- pe.prototype.addMarker = function(e, t) {
9276
+ de.prototype.addMarker = function(e, t) {
9268
9277
  this._updateMarker(e, t, !0);
9269
9278
  };
9270
- pe.prototype.removeMarker = function(e, t) {
9279
+ de.prototype.removeMarker = function(e, t) {
9271
9280
  this._updateMarker(e, t, !1);
9272
9281
  };
9273
- pe.prototype.hasMarker = function(e, t) {
9282
+ de.prototype.hasMarker = function(e, t) {
9274
9283
  return e = this._resolveElement(e), e.markers ? e.markers.has(t) : !1;
9275
9284
  };
9276
- pe.prototype.toggleMarker = function(e, t) {
9285
+ de.prototype.toggleMarker = function(e, t) {
9277
9286
  this.hasMarker(e, t) ? this.removeMarker(e, t) : this.addMarker(e, t);
9278
9287
  };
9279
- pe.prototype.getRootElement = function() {
9288
+ de.prototype.getRootElement = function() {
9280
9289
  const e = this._rootElement;
9281
9290
  return e || this._planes.length ? e : this.setRootElement(this.addRootElement(null));
9282
9291
  };
9283
- pe.prototype.addRootElement = function(e) {
9292
+ de.prototype.addRootElement = function(e) {
9284
9293
  const t = this._rootsIdx++;
9285
9294
  e || (e = {
9286
9295
  id: "__implicitroot_" + t,
@@ -9295,13 +9304,13 @@ pe.prototype.addRootElement = function(e) {
9295
9304
  layer: r
9296
9305
  }), e;
9297
9306
  };
9298
- pe.prototype.removeRootElement = function(e) {
9307
+ de.prototype.removeRootElement = function(e) {
9299
9308
  if (e = this._resolveElement(e), !!this._findPlaneForRoot(e))
9300
9309
  return this._removeRoot(e), this._removeLayer(e.layer), this._planes = this._planes.filter(function(n) {
9301
9310
  return n.rootElement !== e;
9302
9311
  }), this._rootElement === e && (this._rootElement = null), e;
9303
9312
  };
9304
- pe.prototype.setRootElement = function(e) {
9313
+ de.prototype.setRootElement = function(e) {
9305
9314
  if (e === this._rootElement)
9306
9315
  return e;
9307
9316
  let t;
@@ -9309,19 +9318,19 @@ pe.prototype.setRootElement = function(e) {
9309
9318
  throw new Error("rootElement required");
9310
9319
  return t = this._findPlaneForRoot(e), t || (e = this.addRootElement(e)), this._setRoot(e), e;
9311
9320
  };
9312
- pe.prototype._removeRoot = function(e) {
9321
+ de.prototype._removeRoot = function(e) {
9313
9322
  const t = this._elementRegistry, n = this._eventBus;
9314
9323
  n.fire("root.remove", { element: e }), n.fire("root.removed", { element: e }), t.remove(e);
9315
9324
  };
9316
- pe.prototype._addRoot = function(e, t) {
9325
+ de.prototype._addRoot = function(e, t) {
9317
9326
  const n = this._elementRegistry, r = this._eventBus;
9318
9327
  r.fire("root.add", { element: e }), n.add(e, t), r.fire("root.added", { element: e, gfx: t });
9319
9328
  };
9320
- pe.prototype._setRoot = function(e, t) {
9329
+ de.prototype._setRoot = function(e, t) {
9321
9330
  const n = this._rootElement;
9322
9331
  n && (this._elementRegistry.updateGraphics(n, null, !0), this.hideLayer(n.layer)), e && (t || (t = this._findPlaneForRoot(e).layer), this._elementRegistry.updateGraphics(e, this._svg, !0), this.showLayer(e.layer)), this._rootElement = e, this._eventBus.fire("root.set", { element: e });
9323
9332
  };
9324
- pe.prototype._ensureValid = function(e, t) {
9333
+ de.prototype._ensureValid = function(e, t) {
9325
9334
  if (!t.id)
9326
9335
  throw new Error("element must have an id");
9327
9336
  if (this._elementRegistry.get(t.id))
@@ -9334,43 +9343,43 @@ pe.prototype._ensureValid = function(e, t) {
9334
9343
  "must supply { " + n.join(", ") + " } with " + e
9335
9344
  );
9336
9345
  };
9337
- pe.prototype._setParent = function(e, t, n) {
9346
+ de.prototype._setParent = function(e, t, n) {
9338
9347
  Ih(t.children, e, n), e.parent = t;
9339
9348
  };
9340
- pe.prototype._addElement = function(e, t, n, r) {
9349
+ de.prototype._addElement = function(e, t, n, r) {
9341
9350
  n = n || this.getRootElement();
9342
9351
  const i = this._eventBus, a = this._graphicsFactory;
9343
9352
  this._ensureValid(e, t), i.fire(e + ".add", { element: t, parent: n }), this._setParent(t, n, r);
9344
9353
  const o = a.create(e, t, r);
9345
9354
  return this._elementRegistry.add(t, o), a.update(e, t, o), i.fire(e + ".added", { element: t, gfx: o }), t;
9346
9355
  };
9347
- pe.prototype.addShape = function(e, t, n) {
9356
+ de.prototype.addShape = function(e, t, n) {
9348
9357
  return this._addElement("shape", e, t, n);
9349
9358
  };
9350
- pe.prototype.addConnection = function(e, t, n) {
9359
+ de.prototype.addConnection = function(e, t, n) {
9351
9360
  return this._addElement("connection", e, t, n);
9352
9361
  };
9353
- pe.prototype._removeElement = function(e, t) {
9362
+ de.prototype._removeElement = function(e, t) {
9354
9363
  const n = this._elementRegistry, r = this._graphicsFactory, i = this._eventBus;
9355
9364
  if (e = n.get(e.id || e), !!e)
9356
9365
  return i.fire(t + ".remove", { element: e }), r.remove(e), Dh(e.parent && e.parent.children, e), e.parent = null, i.fire(t + ".removed", { element: e }), n.remove(e), e;
9357
9366
  };
9358
- pe.prototype.removeShape = function(e) {
9367
+ de.prototype.removeShape = function(e) {
9359
9368
  return this._removeElement(e, "shape");
9360
9369
  };
9361
- pe.prototype.removeConnection = function(e) {
9370
+ de.prototype.removeConnection = function(e) {
9362
9371
  return this._removeElement(e, "connection");
9363
9372
  };
9364
- pe.prototype.getGraphics = function(e, t) {
9373
+ de.prototype.getGraphics = function(e, t) {
9365
9374
  return this._elementRegistry.getGraphics(e, t);
9366
9375
  };
9367
- pe.prototype._changeViewbox = function(e) {
9376
+ de.prototype._changeViewbox = function(e) {
9368
9377
  this._eventBus.fire("canvas.viewbox.changing"), e.apply(this), this._cachedViewbox = null, this._viewboxChanged();
9369
9378
  };
9370
- pe.prototype._viewboxChanged = function() {
9379
+ de.prototype._viewboxChanged = function() {
9371
9380
  this._eventBus.fire("canvas.viewbox.changed", { viewbox: this.viewbox() });
9372
9381
  };
9373
- pe.prototype.viewbox = function(e) {
9382
+ de.prototype.viewbox = function(e) {
9374
9383
  if (e === void 0 && this._cachedViewbox)
9375
9384
  return structuredClone(this._cachedViewbox);
9376
9385
  const t = this._viewport, n = this.getSize();
@@ -9398,14 +9407,14 @@ pe.prototype.viewbox = function(e) {
9398
9407
  }, e;
9399
9408
  return e;
9400
9409
  };
9401
- pe.prototype.scroll = function(e) {
9410
+ de.prototype.scroll = function(e) {
9402
9411
  const t = this._viewport;
9403
9412
  let n = t.getCTM();
9404
9413
  return e && this._changeViewbox(function() {
9405
- e = ce({ dx: 0, dy: 0 }, e || {}), n = this._svg.createSVGMatrix().translate(e.dx, e.dy).multiply(n), Os(t, n);
9414
+ e = fe({ dx: 0, dy: 0 }, e || {}), n = this._svg.createSVGMatrix().translate(e.dx, e.dy).multiply(n), Os(t, n);
9406
9415
  }), { x: n.e, y: n.f };
9407
9416
  };
9408
- pe.prototype.scrollToElement = function(e, t) {
9417
+ de.prototype.scrollToElement = function(e, t) {
9409
9418
  let n = 100;
9410
9419
  const r = this._resolveElements(e);
9411
9420
  if (!r.length)
@@ -9435,7 +9444,7 @@ pe.prototype.scrollToElement = function(e, t) {
9435
9444
  }
9436
9445
  this.scroll({ dx: -d * f, dy: -h * f });
9437
9446
  };
9438
- pe.prototype.zoom = function(e, t) {
9447
+ de.prototype.zoom = function(e, t) {
9439
9448
  if (!e)
9440
9449
  return this.viewbox(e).scale;
9441
9450
  if (e === "fit-viewport")
@@ -9452,7 +9461,7 @@ function Os(e, t) {
9452
9461
  const n = "matrix(" + t.a + "," + t.b + "," + t.c + "," + t.d + "," + t.e + "," + t.f + ")";
9453
9462
  e.setAttribute("transform", n);
9454
9463
  }
9455
- pe.prototype._fitViewport = function(e) {
9464
+ de.prototype._fitViewport = function(e) {
9456
9465
  const t = this.viewbox(), n = t.outer, r = t.inner;
9457
9466
  let i, a;
9458
9467
  return r.x >= 0 && r.y >= 0 && r.x + r.width <= n.width && r.y + r.height <= n.height && !e ? a = {
@@ -9467,20 +9476,20 @@ pe.prototype._fitViewport = function(e) {
9467
9476
  height: n.height / i
9468
9477
  }), this.viewbox(a), this.viewbox(!1).scale;
9469
9478
  };
9470
- pe.prototype._setZoom = function(e, t) {
9479
+ de.prototype._setZoom = function(e, t) {
9471
9480
  const n = this._svg, r = this._viewport, i = n.createSVGMatrix(), a = n.createSVGPoint();
9472
9481
  let o, s, c, f, d;
9473
9482
  c = r.getCTM();
9474
9483
  const h = c.a;
9475
- return t ? (o = ce(a, t), s = o.matrixTransform(c.inverse()), f = i.translate(s.x, s.y).scale(1 / h * e).translate(-s.x, -s.y), d = c.multiply(f)) : d = i.scale(e), Os(this._viewport, d), d;
9484
+ return t ? (o = fe(a, t), s = o.matrixTransform(c.inverse()), f = i.translate(s.x, s.y).scale(1 / h * e).translate(-s.x, -s.y), d = c.multiply(f)) : d = i.scale(e), Os(this._viewport, d), d;
9476
9485
  };
9477
- pe.prototype.getSize = function() {
9486
+ de.prototype.getSize = function() {
9478
9487
  return {
9479
9488
  width: this._container.clientWidth,
9480
9489
  height: this._container.clientHeight
9481
9490
  };
9482
9491
  };
9483
- pe.prototype.getAbsoluteBBox = function(e) {
9492
+ de.prototype.getAbsoluteBBox = function(e) {
9484
9493
  const t = this.viewbox();
9485
9494
  let n;
9486
9495
  e.waypoints ? n = this.getGraphics(e).getBBox() : n = e;
@@ -9492,7 +9501,7 @@ pe.prototype.getAbsoluteBBox = function(e) {
9492
9501
  height: o
9493
9502
  };
9494
9503
  };
9495
- pe.prototype.resized = function() {
9504
+ de.prototype.resized = function() {
9496
9505
  delete this._cachedViewbox, this._eventBus.fire("canvas.resized");
9497
9506
  };
9498
9507
  var vn = "data-element-id";
@@ -9683,7 +9692,7 @@ function zh(e, t) {
9683
9692
  var n = Vh[e];
9684
9693
  if (!n)
9685
9694
  throw new Error("unknown type: <" + e + ">");
9686
- return ce(new n(), t);
9695
+ return fe(new n(), t);
9687
9696
  }
9688
9697
  function Sn() {
9689
9698
  this._uid = 12;
@@ -9701,7 +9710,7 @@ Sn.prototype.createConnection = function(e) {
9701
9710
  return this.create("connection", e);
9702
9711
  };
9703
9712
  Sn.prototype.create = function(e, t) {
9704
- return t = ce({}, t || {}), t.id || (t.id = e + "_" + this._uid++), zh(e, t);
9713
+ return t = fe({}, t || {}), t.id || (t.id = e + "_" + this._uid++), zh(e, t);
9705
9714
  };
9706
9715
  var xr = "__fn", Us = 1e3, Hh = Array.prototype.slice;
9707
9716
  function Ze() {
@@ -9821,7 +9830,7 @@ qn.prototype.preventDefault = function() {
9821
9830
  this.defaultPrevented = !0;
9822
9831
  };
9823
9832
  qn.prototype.init = function(e) {
9824
- ce(this, e || {});
9833
+ fe(this, e || {});
9825
9834
  };
9826
9835
  function Wh(e, t) {
9827
9836
  return e.apply(null, t);
@@ -9910,7 +9919,7 @@ function Kh(e, t, n) {
9910
9919
  const Gh = {
9911
9920
  __depends__: [Ph],
9912
9921
  __init__: ["canvas"],
9913
- canvas: ["type", pe],
9922
+ canvas: ["type", de],
9914
9923
  elementRegistry: ["type", nt],
9915
9924
  elementFactory: ["type", Sn],
9916
9925
  eventBus: ["type", Ze],
@@ -9966,13 +9975,13 @@ Vs.prototype.createType = function(e) {
9966
9975
  }
9967
9976
  return a.prototype = r, a.hasType = r.$instanceOf = this.model.hasType, n.defineModel(a, t), n.defineDescriptor(a, e), a;
9968
9977
  };
9969
- var Zh = ce(/* @__PURE__ */ Object.create(null), {
9978
+ var Zh = fe(/* @__PURE__ */ Object.create(null), {
9970
9979
  String: !0,
9971
9980
  Boolean: !0,
9972
9981
  Integer: !0,
9973
9982
  Real: !0,
9974
9983
  Element: !0
9975
- }), zs = ce(/* @__PURE__ */ Object.create(null), {
9984
+ }), zs = fe(/* @__PURE__ */ Object.create(null), {
9976
9985
  String: function(e) {
9977
9986
  return e;
9978
9987
  },
@@ -10101,7 +10110,7 @@ it.prototype.addTrait = function(e, t) {
10101
10110
  t && this.assertNotTrait(e);
10102
10111
  var n = this.allTypesByName, r = this.allTypes, i = e.name;
10103
10112
  i in n || (ae(e.properties, Ft(function(a) {
10104
- a = ce({}, a, {
10113
+ a = fe({}, a, {
10105
10114
  name: a.ns.localName,
10106
10115
  inherited: t
10107
10116
  }), Object.defineProperty(a, "definedBy", {
@@ -10121,27 +10130,27 @@ qt.prototype.getPackages = function() {
10121
10130
  return this.packages;
10122
10131
  };
10123
10132
  qt.prototype.registerPackage = function(e) {
10124
- e = ce({}, e);
10133
+ e = fe({}, e);
10125
10134
  var t = this.packageMap;
10126
10135
  Na(t, e, "prefix"), Na(t, e, "uri"), ae(e.types, Ft(function(n) {
10127
10136
  this.registerType(n, e);
10128
10137
  }, this)), t[e.uri] = t[e.prefix] = e, this.packages.push(e);
10129
10138
  };
10130
10139
  qt.prototype.registerType = function(e, t) {
10131
- e = ce({}, e, {
10140
+ e = fe({}, e, {
10132
10141
  superClass: (e.superClass || []).slice(),
10133
10142
  extends: (e.extends || []).slice(),
10134
10143
  properties: (e.properties || []).slice(),
10135
- meta: ce({}, e.meta || {})
10144
+ meta: fe({}, e.meta || {})
10136
10145
  });
10137
10146
  var n = ze(e.name, t.prefix), r = n.name, i = /* @__PURE__ */ Object.create(null);
10138
10147
  ae(e.properties, Ft(function(a) {
10139
10148
  var o = ze(a.name, n.prefix), s = o.name;
10140
- li(a.type) || (a.type = ze(a.type, o.prefix).name), ce(a, {
10149
+ li(a.type) || (a.type = ze(a.type, o.prefix).name), fe(a, {
10141
10150
  ns: o,
10142
10151
  name: s
10143
10152
  }), i[s] = a;
10144
- }, this)), ce(e, {
10153
+ }, this)), fe(e, {
10145
10154
  ns: n,
10146
10155
  name: r,
10147
10156
  propertiesByName: i
@@ -10201,7 +10210,7 @@ ln.prototype.get = function(e, t) {
10201
10210
  ln.prototype.define = function(e, t, n) {
10202
10211
  if (!n.writable) {
10203
10212
  var r = n.value;
10204
- n = ce({}, n, {
10213
+ n = fe({}, n, {
10205
10214
  get: function() {
10206
10215
  return r;
10207
10216
  }
@@ -10427,43 +10436,43 @@ function qs(e) {
10427
10436
  I = !0;
10428
10437
  };
10429
10438
  function M(E, W = !1) {
10430
- var oe = null, X = null, Y, G = 0, ne = !1, Z = !1, O = 0, D = 0, L, R, C, j, fe, se, p, u, l, y = "", w = 0, P;
10439
+ var oe = null, X = null, Y, G = 0, ne = !1, J = !1, O = 0, D = 0, B, R, C, j, pe, se, p, u, l, y = "", w = 0, P;
10431
10440
  function Q(ee, U) {
10432
10441
  var V = ee.indexOf(":");
10433
10442
  if (V === -1)
10434
10443
  return ee;
10435
- var J = g[ee.substring(0, V)];
10436
- return J ? U === J ? ee.substr(V + 1) : J + ee.substr(V) : (_(rm(ee.substring(0, V))), null);
10444
+ var Z = g[ee.substring(0, V)];
10445
+ return Z ? U === Z ? ee.substr(V + 1) : Z + ee.substr(V) : (_(rm(ee.substring(0, V))), null);
10437
10446
  }
10438
10447
  function T() {
10439
10448
  if (P !== null)
10440
10449
  return P;
10441
- var ee, U, V = N && g.xmlns, J = N && F ? [] : null, B = w, de = y, Ee = de.length, ct, De, Qe, dt, Be, Rn = {}, Hi = /* @__PURE__ */ new Set(), ft, be, _e;
10450
+ var ee, U, V = N && g.xmlns, Z = N && F ? [] : null, L = w, le = y, Ee = le.length, ct, De, Qe, dt, Be, Rn = {}, Hi = /* @__PURE__ */ new Set(), ft, be, _e;
10442
10451
  e:
10443
- for (; B < Ee; B++)
10444
- if (ft = !1, be = de.charCodeAt(B), !(be === 32 || be < 14 && be > 8)) {
10445
- for ((be < 65 || be > 122 || be > 90 && be < 97) && be !== 95 && be !== 58 && (_("illegal first char attribute name"), ft = !0), _e = B + 1; _e < Ee; _e++)
10446
- if (be = de.charCodeAt(_e), !(be > 96 && be < 123 || be > 64 && be < 91 || be > 47 && be < 59 || be === 46 || // '.'
10452
+ for (; L < Ee; L++)
10453
+ if (ft = !1, be = le.charCodeAt(L), !(be === 32 || be < 14 && be > 8)) {
10454
+ for ((be < 65 || be > 122 || be > 90 && be < 97) && be !== 95 && be !== 58 && (_("illegal first char attribute name"), ft = !0), _e = L + 1; _e < Ee; _e++)
10455
+ if (be = le.charCodeAt(_e), !(be > 96 && be < 123 || be > 64 && be < 91 || be > 47 && be < 59 || be === 46 || // '.'
10447
10456
  be === 45 || // '-'
10448
10457
  be === 95)) {
10449
10458
  if (be === 32 || be < 14 && be > 8) {
10450
- _("missing attribute value"), B = _e;
10459
+ _("missing attribute value"), L = _e;
10451
10460
  continue e;
10452
10461
  }
10453
10462
  if (be === 61)
10454
10463
  break;
10455
10464
  _("illegal attribute name char"), ft = !0;
10456
10465
  }
10457
- if (Be = de.substring(B, _e), Be === "xmlns:xmlns" && (_("illegal declaration of xmlns"), ft = !0), be = de.charCodeAt(_e + 1), be === 34)
10458
- _e = de.indexOf('"', B = _e + 2), _e === -1 && (_e = de.indexOf("'", B), _e !== -1 && (_("attribute value quote missmatch"), ft = !0));
10466
+ if (Be = le.substring(L, _e), Be === "xmlns:xmlns" && (_("illegal declaration of xmlns"), ft = !0), be = le.charCodeAt(_e + 1), be === 34)
10467
+ _e = le.indexOf('"', L = _e + 2), _e === -1 && (_e = le.indexOf("'", L), _e !== -1 && (_("attribute value quote missmatch"), ft = !0));
10459
10468
  else if (be === 39)
10460
- _e = de.indexOf("'", B = _e + 2), _e === -1 && (_e = de.indexOf('"', B), _e !== -1 && (_("attribute value quote missmatch"), ft = !0));
10469
+ _e = le.indexOf("'", L = _e + 2), _e === -1 && (_e = le.indexOf('"', L), _e !== -1 && (_("attribute value quote missmatch"), ft = !0));
10461
10470
  else
10462
- for (_("missing attribute value quotes"), ft = !0, _e = _e + 1; _e < Ee && (be = de.charCodeAt(_e + 1), !(be === 32 || be < 14 && be > 8)); _e++)
10471
+ for (_("missing attribute value quotes"), ft = !0, _e = _e + 1; _e < Ee && (be = le.charCodeAt(_e + 1), !(be === 32 || be < 14 && be > 8)); _e++)
10463
10472
  ;
10464
- for (_e === -1 && (_("missing closing quotes"), _e = Ee, ft = !0), ft || (Qe = de.substring(B, _e)), B = _e; _e + 1 < Ee && (be = de.charCodeAt(_e + 1), !(be === 32 || be < 14 && be > 8)); _e++)
10465
- B === _e && (_("illegal character after attribute end"), ft = !0);
10466
- if (B = _e + 1, ft)
10473
+ for (_e === -1 && (_("missing closing quotes"), _e = Ee, ft = !0), ft || (Qe = le.substring(L, _e)), L = _e; _e + 1 < Ee && (be = le.charCodeAt(_e + 1), !(be === 32 || be < 14 && be > 8)); _e++)
10474
+ L === _e && (_("illegal character after attribute end"), ft = !0);
10475
+ if (L = _e + 1, ft)
10467
10476
  continue e;
10468
10477
  if (Hi.has(Be)) {
10469
10478
  _("attribute <" + Be + "> already defined");
@@ -10487,20 +10496,20 @@ function qs(e) {
10487
10496
  g[De] !== dt && (ct || (g = im(g), ct = !0), g[De] = dt, De === "xmlns" && (g[ci(dt)] = ee, V = dt), g[U] = ee), Rn[Be] = Qe;
10488
10497
  continue;
10489
10498
  }
10490
- J.push(Be, Qe);
10499
+ Z.push(Be, Qe);
10491
10500
  continue;
10492
10501
  }
10493
10502
  Be = Q(Be, V), Be !== null && (Rn[Be] = Qe);
10494
10503
  }
10495
10504
  if (F)
10496
- for (B = 0, Ee = J.length; B < Ee; B++)
10497
- Be = Q(J[B++], V), Qe = J[B], Be !== null && (Rn[Be] = Qe);
10505
+ for (L = 0, Ee = Z.length; L < Ee; L++)
10506
+ Be = Q(Z[L++], V), Qe = Z[L], Be !== null && (Rn[Be] = Qe);
10498
10507
  return P = Rn;
10499
10508
  }
10500
10509
  function q() {
10501
- for (var ee = /(\r\n|\r|\n)/g, U = 0, V = 0, J = 0, B = D, de, Ee; O >= J && (de = ee.exec(E), !(!de || (B = de[0].length + de.index, B > O))); )
10502
- U += 1, J = B;
10503
- return O == -1 ? (V = B, Ee = E.substring(D)) : D === 0 ? Ee = E.substring(D, O) : (V = O - J, Ee = D == -1 ? E.substring(O) : E.substring(O, D + 1)), {
10510
+ for (var ee = /(\r\n|\r|\n)/g, U = 0, V = 0, Z = 0, L = D, le, Ee; O >= Z && (le = ee.exec(E), !(!le || (L = le[0].length + le.index, L > O))); )
10511
+ U += 1, Z = L;
10512
+ return O == -1 ? (V = L, Ee = E.substring(D)) : D === 0 ? Ee = E.substring(D, O) : (V = O - Z, Ee = D == -1 ? E.substring(O) : E.substring(O, D + 1)), {
10504
10513
  data: Ee,
10505
10514
  line: U,
10506
10515
  column: V
@@ -10561,15 +10570,15 @@ function qs(e) {
10561
10570
  D += 2;
10562
10571
  continue;
10563
10572
  }
10564
- for (L = O + 1; ; L++) {
10565
- if (fe = E.charCodeAt(L), isNaN(fe))
10573
+ for (B = O + 1; ; B++) {
10574
+ if (pe = E.charCodeAt(B), isNaN(pe))
10566
10575
  return W ? E.substring(O) : (D = -1, b("unclosed tag"));
10567
- if (fe === 34)
10568
- C = E.indexOf('"', L + 1), L = C !== -1 ? C : L;
10569
- else if (fe === 39)
10570
- C = E.indexOf("'", L + 1), L = C !== -1 ? C : L;
10571
- else if (fe === 62) {
10572
- D = L;
10576
+ if (pe === 34)
10577
+ C = E.indexOf('"', B + 1), B = C !== -1 ? C : B;
10578
+ else if (pe === 39)
10579
+ C = E.indexOf("'", B + 1), B = C !== -1 ? C : B;
10580
+ else if (pe === 62) {
10581
+ D = B;
10573
10582
  break;
10574
10583
  }
10575
10584
  }
@@ -10580,28 +10589,28 @@ function qs(e) {
10580
10589
  continue;
10581
10590
  }
10582
10591
  if (P = {}, j === 47) {
10583
- if (ne = !1, Z = !0, !A.length)
10592
+ if (ne = !1, J = !0, !A.length)
10584
10593
  return b("missing open tag");
10585
- if (L = p = A.pop(), C = O + 2 + L.length, E.substring(O + 2, C) !== L)
10594
+ if (B = p = A.pop(), C = O + 2 + B.length, E.substring(O + 2, C) !== B)
10586
10595
  return b("closing tag mismatch");
10587
10596
  for (; C < D; C++)
10588
10597
  if (j = E.charCodeAt(C), !(j === 32 || j > 8 && j < 14))
10589
10598
  return b("close tag");
10590
10599
  } else {
10591
- if (E.charCodeAt(D - 1) === 47 ? (L = p = E.substring(O + 1, D - 1), ne = !0, Z = !0) : (L = p = E.substring(O + 1, D), ne = !0, Z = !1), !(j > 96 && j < 123 || j > 64 && j < 91 || j === 95 || j === 58))
10600
+ if (E.charCodeAt(D - 1) === 47 ? (B = p = E.substring(O + 1, D - 1), ne = !0, J = !0) : (B = p = E.substring(O + 1, D), ne = !0, J = !1), !(j > 96 && j < 123 || j > 64 && j < 91 || j === 95 || j === 58))
10592
10601
  return b("illegal first char nodeName");
10593
- for (C = 1, R = L.length; C < R; C++)
10594
- if (j = L.charCodeAt(C), !(j > 96 && j < 123 || j > 64 && j < 91 || j > 47 && j < 59 || j === 45 || j === 95 || j == 46)) {
10602
+ for (C = 1, R = B.length; C < R; C++)
10603
+ if (j = B.charCodeAt(C), !(j > 96 && j < 123 || j > 64 && j < 91 || j > 47 && j < 59 || j === 45 || j === 95 || j == 46)) {
10595
10604
  if (j === 32 || j < 14 && j > 8) {
10596
- p = L.substring(0, C), P = null;
10605
+ p = B.substring(0, C), P = null;
10597
10606
  break;
10598
10607
  }
10599
10608
  return b("invalid nodeName");
10600
10609
  }
10601
- Z || A.push(p);
10610
+ J || A.push(p);
10602
10611
  }
10603
10612
  if (N) {
10604
- Y = g, ne && (Z || m.push(Y), P === null && (F = L.indexOf("xmlns", C) !== -1) && (w = C, y = L, T(), F = !1)), u = p, X !== g && (oe = g[Fa], oe === void 0 && (oe = g[Fa] = /* @__PURE__ */ Object.create(null)), X = g);
10613
+ Y = g, ne && (J || m.push(Y), P === null && (F = B.indexOf("xmlns", C) !== -1) && (w = C, y = B, T(), F = !1)), u = p, X !== g && (oe = g[Fa], oe === void 0 && (oe = g[Fa] = /* @__PURE__ */ Object.create(null)), X = g);
10605
10614
  var H = oe[p];
10606
10615
  if (H !== void 0)
10607
10616
  p = H;
@@ -10615,9 +10624,9 @@ function qs(e) {
10615
10624
  se && (p = se + ":" + p), oe[u] = p;
10616
10625
  }
10617
10626
  }
10618
- if (ne && (w = C, y = L, r && (t ? r(l, Yt, Z, h) : r(p, T, Yt, Z, h), I)))
10627
+ if (ne && (w = C, y = B, r && (t ? r(l, Yt, J, h) : r(p, T, Yt, J, h), I)))
10619
10628
  return;
10620
- if (Z) {
10629
+ if (J) {
10621
10630
  if (i && (i(t ? l : p, Yt, ne, h), I))
10622
10631
  return;
10623
10632
  N && (ne ? g = Y : g = m.pop());
@@ -10662,7 +10671,7 @@ function Tt(e) {
10662
10671
  return e.$descriptor;
10663
10672
  }
10664
10673
  function fm(e) {
10665
- ce(this, e), this.elementsById = {}, this.references = [], this.warnings = [], this.addReference = function(t) {
10674
+ fe(this, e), this.elementsById = {}, this.references = [], this.warnings = [], this.addReference = function(t) {
10666
10675
  this.references.push(t);
10667
10676
  }, this.addElement = function(t) {
10668
10677
  if (!t)
@@ -10779,7 +10788,7 @@ Ye.prototype.getPropertyForNode = function(e) {
10779
10788
  const d = e.attributes[f];
10780
10789
  if (d) {
10781
10790
  const h = cm(d, e.ns, i), S = i.getType(h);
10782
- return ce({}, s, {
10791
+ return fe({}, s, {
10783
10792
  effectiveType: Tt(S).name
10784
10793
  });
10785
10794
  }
@@ -10792,7 +10801,7 @@ Ye.prototype.getPropertyForNode = function(e) {
10792
10801
  if (s = pt(a.properties, function(h) {
10793
10802
  return !h.isVirtual && !h.isReference && !h.isAttribute && d.hasType(h.type);
10794
10803
  }), s)
10795
- return ce({}, s, {
10804
+ return fe({}, s, {
10796
10805
  effectiveType: Tt(d).name
10797
10806
  });
10798
10807
  } else if (s = pt(a.properties, function(f) {
@@ -10819,7 +10828,7 @@ Ye.prototype.handleChild = function(e) {
10819
10828
  return this.valueHandler(t, r);
10820
10829
  t.isReference ? i = this.referenceHandler(t).handleNode(e) : i = this.handler(n).handleNode(e);
10821
10830
  var a = i.element;
10822
- return a !== void 0 && (t.isMany ? r.get(t.name).push(a) : r.set(t.name, a), t.isReference ? (ce(a, {
10831
+ return a !== void 0 && (t.isMany ? r.get(t.name).push(a) : r.set(t.name, a), t.isReference ? (fe(a, {
10823
10832
  element: r
10824
10833
  }), this.context.addReference(a)) : a.$parent = r), i;
10825
10834
  };
@@ -10851,12 +10860,12 @@ wn.prototype.handleEnd = function() {
10851
10860
  function ji(e) {
10852
10861
  e instanceof ut && (e = {
10853
10862
  model: e
10854
- }), ce(this, { lax: !1 }, e);
10863
+ }), fe(this, { lax: !1 }, e);
10855
10864
  }
10856
10865
  ji.prototype.fromXML = function(e, t, n) {
10857
10866
  var r = t.rootHandler;
10858
10867
  t instanceof Ye ? (r = t, t = {}) : typeof t == "string" ? (r = this.handler(t), t = {}) : typeof r == "string" && (r = this.handler(r));
10859
- var i = this.model, a = this.lax, o = new fm(ce({}, t, { rootHandler: r })), s = new qs({ proxy: !0 }), c = pm();
10868
+ var i = this.model, a = this.lax, o = new fm(fe({}, t, { rootHandler: r })), s = new qs({ proxy: !0 }), c = pm();
10860
10869
  r.context = o, c.push(r);
10861
10870
  function f(A, k, b) {
10862
10871
  var _ = k(), z = _.line, M = _.column, E = _.data;
@@ -11033,10 +11042,10 @@ function gm(e) {
11033
11042
  });
11034
11043
  }
11035
11044
  function vm(e, t) {
11036
- return t.isGeneric ? ce({ localName: t.ns.localName }, e) : ce({ localName: ym(t.ns.localName, t.$pkg) }, e);
11045
+ return t.isGeneric ? fe({ localName: t.ns.localName }, e) : fe({ localName: ym(t.ns.localName, t.$pkg) }, e);
11037
11046
  }
11038
11047
  function wm(e, t) {
11039
- return ce({ localName: t.ns.localName }, e);
11048
+ return fe({ localName: t.ns.localName }, e);
11040
11049
  }
11041
11050
  function bm(e) {
11042
11051
  var t = e.$descriptor;
@@ -11132,7 +11141,7 @@ Ae.prototype.nsAttributeName = function(e) {
11132
11141
  if (Et(e) ? t = ze(e) : t = e.ns, e.inherited)
11133
11142
  return { localName: t.localName };
11134
11143
  var n = this.logNamespaceUsed(t);
11135
- return this.getNamespaces().logUsed(n), this.isLocalNs(n) ? { localName: t.localName } : ce({ localName: t.localName }, n);
11144
+ return this.getNamespaces().logUsed(n), this.isLocalNs(n) ? { localName: t.localName } : fe({ localName: t.localName }, n);
11136
11145
  };
11137
11146
  Ae.prototype.parseGenericNsAttributes = function(e) {
11138
11147
  return Object.entries(e).filter(
@@ -11310,7 +11319,7 @@ function km(e, t) {
11310
11319
  };
11311
11320
  }
11312
11321
  function Tm(e) {
11313
- e = ce({ format: !1, preamble: !0 }, e || {});
11322
+ e = fe({ format: !1, preamble: !0 }, e || {});
11314
11323
  function t(n, r) {
11315
11324
  var i = r || new Cm(), a = new km(i, e.format);
11316
11325
  e.preamble && a.append(dm);
@@ -11340,7 +11349,7 @@ function Or(e, t) {
11340
11349
  Or.prototype = Object.create(ut.prototype);
11341
11350
  Or.prototype.fromXML = function(e, t, n) {
11342
11351
  Et(t) || (n = t, t = "bpmn:Definitions");
11343
- var r = new ji(ce({ model: this, lax: !0 }, n)), i = r.handler(t);
11352
+ var r = new ji(fe({ model: this, lax: !0 }, n)), i = r.handler(t);
11344
11353
  return r.fromXML(e, i);
11345
11354
  };
11346
11355
  Or.prototype.toXML = function(e, t) {
@@ -14945,7 +14954,7 @@ const wy = {
14945
14954
  color: vy
14946
14955
  };
14947
14956
  function by(e, t) {
14948
- const n = ce({}, wy, e);
14957
+ const n = fe({}, wy, e);
14949
14958
  return new Or(n, t);
14950
14959
  }
14951
14960
  function Ke(e, t) {
@@ -14984,8 +14993,8 @@ function _y(e) {
14984
14993
  try {
14985
14994
  var j = r[R.id] && s(R, C);
14986
14995
  return a(R), j;
14987
- } catch (fe) {
14988
- d(fe.message, { element: R, error: fe }), console.error(`failed to import ${je(R)}`, fe);
14996
+ } catch (pe) {
14997
+ d(pe.message, { element: R, error: pe }), console.error(`failed to import ${je(R)}`, pe);
14989
14998
  }
14990
14999
  }
14991
15000
  function d(R, C) {
@@ -15011,10 +15020,10 @@ function _y(e) {
15011
15020
  h(R);
15012
15021
  }
15013
15022
  this.handleDefinitions = function(C, j) {
15014
- var fe = C.diagrams;
15015
- if (j && fe.indexOf(j) === -1)
15023
+ var pe = C.diagrams;
15024
+ if (j && pe.indexOf(j) === -1)
15016
15025
  throw new Error("diagram not part of <bpmn:Definitions />");
15017
- if (!j && fe && fe.length && (j = fe[0]), !j)
15026
+ if (!j && pe && pe.length && (j = pe[0]), !j)
15018
15027
  throw new Error("no diagram to display");
15019
15028
  r = {}, S(j);
15020
15029
  var se = j.plane;
@@ -15049,8 +15058,8 @@ function _y(e) {
15049
15058
  ne(R, C), z(R.ioSpecification, C), _(R.artifacts, C), a(R);
15050
15059
  }
15051
15060
  function x(R, C) {
15052
- var j = yn(R, function(fe) {
15053
- return !o(fe) && Ke(fe, "bpmn:Process") && fe.laneSets;
15061
+ var j = yn(R, function(pe) {
15062
+ return !o(pe) && Ke(pe, "bpmn:Process") && pe.laneSets;
15054
15063
  });
15055
15064
  j.forEach(i(N, C));
15056
15065
  }
@@ -15100,7 +15109,7 @@ function _y(e) {
15100
15109
  function X(R, C) {
15101
15110
  n.push(function() {
15102
15111
  var j = f(R, C);
15103
- R.childLaneSet && Y(R.childLaneSet, j || C), L(R);
15112
+ R.childLaneSet && Y(R.childLaneSet, j || C), B(R);
15104
15113
  });
15105
15114
  }
15106
15115
  function Y(R, C) {
@@ -15110,9 +15119,9 @@ function _y(e) {
15110
15119
  ae(R, i(Y, C));
15111
15120
  }
15112
15121
  function ne(R, C) {
15113
- Z(R.flowElements, C), R.laneSets && G(R.laneSets, C);
15122
+ J(R.flowElements, C), R.laneSets && G(R.laneSets, C);
15114
15123
  }
15115
- function Z(R, C) {
15124
+ function J(R, C) {
15116
15125
  ae(R, function(j) {
15117
15126
  Ke(j, "bpmn:SequenceFlow") ? n.push(function() {
15118
15127
  W(j, C);
@@ -15128,15 +15137,15 @@ function _y(e) {
15128
15137
  });
15129
15138
  }
15130
15139
  function O(R, C) {
15131
- var j = f(R, C), fe = R.processRef;
15132
- fe && N(fe, j || C);
15140
+ var j = f(R, C), pe = R.processRef;
15141
+ pe && N(pe, j || C);
15133
15142
  }
15134
15143
  function D(R, C) {
15135
15144
  ae(R.participants, i(O, C)), n.push(function() {
15136
15145
  m(R.messageFlows, C);
15137
15146
  }), _(R.artifacts, C);
15138
15147
  }
15139
- function L(R) {
15148
+ function B(R) {
15140
15149
  ae(R.flowNodeRef, function(C) {
15141
15150
  var j = C.get("lanes");
15142
15151
  j && j.push(R);
@@ -15183,10 +15192,10 @@ function xy(e, t, n) {
15183
15192
  function Sy(e, t) {
15184
15193
  if (!(!t || !t.plane)) {
15185
15194
  var n = t.plane.bpmnElement, r = n;
15186
- !ue(n, "bpmn:Process") && !ue(n, "bpmn:Collaboration") && (r = Ay(n));
15195
+ !ce(n, "bpmn:Process") && !ce(n, "bpmn:Collaboration") && (r = Ay(n));
15187
15196
  var i;
15188
- ue(r, "bpmn:Collaboration") ? i = r : i = pt(e.rootElements, function(f) {
15189
- if (ue(f, "bpmn:Collaboration"))
15197
+ ce(r, "bpmn:Collaboration") ? i = r : i = pt(e.rootElements, function(f) {
15198
+ if (ce(f, "bpmn:Collaboration"))
15190
15199
  return pt(f.participants, function(d) {
15191
15200
  return d.processRef === r;
15192
15201
  });
@@ -15212,7 +15221,7 @@ function tl(e) {
15212
15221
  }
15213
15222
  function Ay(e) {
15214
15223
  for (var t = e; t; ) {
15215
- if (ue(t, "bpmn:Process"))
15224
+ if (ce(t, "bpmn:Process"))
15216
15225
  return t;
15217
15226
  t = t.$parent;
15218
15227
  }
@@ -15259,7 +15268,7 @@ function Iy() {
15259
15268
  }
15260
15269
  const or = 5, $a = "djs-outline-hidden";
15261
15270
  function Pe(e) {
15262
- e = ce({}, My, e), this._moddle = this._createModdle(e), this._container = this._createContainer(e), this._init(this._container, this._moddle, e), By(this._container);
15271
+ e = fe({}, My, e), this._moddle = this._createModdle(e), this._container = this._createContainer(e), this._init(this._container, this._moddle, e), By(this._container);
15263
15272
  }
15264
15273
  xt(Pe, Wt);
15265
15274
  Pe.prototype.importXML = async function(t, n) {
@@ -15398,8 +15407,8 @@ Pe.prototype._init = function(e, t, n) {
15398
15407
  bpmnjs: ["value", this],
15399
15408
  moddle: ["value", t]
15400
15409
  }
15401
- ], o = [].concat(a, r, i), s = ce(gp(n, ["additionalModules"]), {
15402
- canvas: ce({}, n.canvas, { container: e }),
15410
+ ], o = [].concat(a, r, i), s = fe(gp(n, ["additionalModules"]), {
15411
+ canvas: fe({}, n.canvas, { container: e }),
15403
15412
  modules: o
15404
15413
  });
15405
15414
  Wt.call(this, s), n && n.container && this.attachTo(n.container);
@@ -15416,7 +15425,7 @@ Pe.prototype._createContainer = function(e) {
15416
15425
  }), t;
15417
15426
  };
15418
15427
  Pe.prototype._createModdle = function(e) {
15419
- const t = ce({}, this._moddleExtensions, e.moddleExtensions);
15428
+ const t = fe({}, this._moddleExtensions, e.moddleExtensions);
15420
15429
  return new by(t);
15421
15430
  };
15422
15431
  Pe.prototype._modules = [];
@@ -15732,7 +15741,7 @@ const Ky = {
15732
15741
  },
15733
15742
  emits: ["loaded", "error"],
15734
15743
  setup(e, { expose: t, emit: n }) {
15735
- const r = e, i = n, a = le(), o = kl(), s = le(), c = le([]), f = le(!1);
15744
+ const r = e, i = n, a = ue(), o = kl(), s = ue(), c = ue([]), f = ue(!1);
15736
15745
  let d = 0;
15737
15746
  function h() {
15738
15747
  var m;
@@ -15875,7 +15884,7 @@ const Ky = {
15875
15884
  },
15876
15885
  emits: ["started", "afterSend", "close", "error"],
15877
15886
  setup(e, { expose: t, emit: n }) {
15878
- const r = e, i = n, a = le(), o = le(!1), s = le(!1), c = le(!1), f = le(), d = le();
15887
+ const r = e, i = n, a = ue(), o = ue(!1), s = ue(!1), c = ue(!1), f = ue(), d = ue();
15879
15888
  async function h(I) {
15880
15889
  if (s.value) throw new Error("流程正在启动,请勿重复提交");
15881
15890
  s.value = !0;