@a2simcode/ui 0.0.47 → 0.0.49

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.
@@ -34,7 +34,7 @@ import { useVirtualList as Wa } from "@vueuse/core";
34
34
  import rd from "async-validator";
35
35
  import { createEditor as sd, createToolbar as cd } from "@wangeditor/editor";
36
36
  import ms from "diagram-js";
37
- import { closest as Ua, queryAll as xa, query as kt, delegate as sn, classes as Rt, event as ze, assignStyle as Do, domify as $t, remove as wa, clear as ys, attr as Nt, matches as ud } from "min-dom";
37
+ import { closest as Ua, queryAll as xa, query as _t, delegate as un, classes as Rt, event as ze, assignStyle as Do, domify as $t, remove as wa, clear as ys, attr as Nt, matches as ud } from "min-dom";
38
38
  import { isNumber as lt, assign as xe, forEach as Q, isArray as Fe, find as Jt, filter as Lt, isUndefined as dd, isObject as Dt, groupBy as Ja, has as bs, map as zo, every as Ya, sortBy as Bo, isNil as Fl, bind as Ga, uniqueBy as fd, isFunction as Yt, isDefined as Ft, some as pd, omit as hd, pick as Ci, values as xs, without as gd, reduce as Ca, isString as Sa, matchPattern as Si, flatten as vd, size as md, debounce as yd } from "min-dash";
39
39
  import { create as Te, attr as ve, remove as At, append as je, clone as ws, classes as Ye, createTransform as Oo, transform as Ka, clear as Xa } from "tiny-svg";
40
40
  import In from "inherits";
@@ -51,7 +51,7 @@ function xd(e, t) {
51
51
  function R0(e) {
52
52
  return e !== null && xd(e, "Object");
53
53
  }
54
- const dn = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array.isArray(e) && e.length === 0 || typeof e == "object" && Object.keys(e).length === 0), An = /* @__PURE__ */ ie({
54
+ const pn = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array.isArray(e) && e.length === 0 || typeof e == "object" && Object.keys(e).length === 0), An = /* @__PURE__ */ ie({
55
55
  name: "JIcon",
56
56
  inheritAttrs: !1,
57
57
  __name: "icon",
@@ -217,7 +217,7 @@ const dn = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Arr
217
217
  (p) => {
218
218
  if (typeof p == "boolean")
219
219
  u.value = p;
220
- else if (dn(p?.delay))
220
+ else if (pn(p?.delay))
221
221
  u.value = !1;
222
222
  else {
223
223
  const h = setTimeout(() => {
@@ -293,7 +293,7 @@ function kd(e) {
293
293
  };
294
294
  return typeof Element < "u" && e instanceof Element ? "element" : n[t.call(e)];
295
295
  }
296
- function fn(e) {
296
+ function hn(e) {
297
297
  const t = kd(e);
298
298
  let n;
299
299
  if (t === "array")
@@ -304,9 +304,9 @@ function fn(e) {
304
304
  return e;
305
305
  if (t === "array")
306
306
  for (let o = 0, i = e.length; o < i; o++)
307
- e[o] = (e[o] === 0, e[o]), e[o] && delete e[o].$parent, n.push(fn(e[o]));
307
+ e[o] = (e[o] === 0, e[o]), e[o] && delete e[o].$parent, n.push(hn(e[o]));
308
308
  else t === "object" && Object.keys(e).forEach((o) => {
309
- e && delete e.$parent, n[o] = fn(e[o]);
309
+ e && delete e.$parent, n[o] = hn(e[o]);
310
310
  });
311
311
  return n;
312
312
  }
@@ -478,7 +478,7 @@ function L0(e, t, n, o, i, a) {
478
478
  n = n || "_pid";
479
479
  let r = [], s = {};
480
480
  if (o ? e.forEach((u) => {
481
- s[u[o]] || (s[u[o]] = !0, r.push(fn(u)));
481
+ s[u[o]] || (s[u[o]] = !0, r.push(hn(u)));
482
482
  }) : r = e, s = {}, l === n) {
483
483
  const u = [];
484
484
  return r.forEach((d) => {
@@ -587,7 +587,7 @@ const Ss = (e, t, n, o) => {
587
587
  }
588
588
  return o.options.find((a) => a.value === e)?.label;
589
589
  } else if (t)
590
- return t(e, i, o);
590
+ return t({ value: e, type: i, config: o, row: n.row });
591
591
  return e;
592
592
  }, Ad = "YYYY-MM-DD HH:mm:ss", Id = "YYYY-MM-DD";
593
593
  function Bd(e, t = Ad) {
@@ -805,7 +805,7 @@ class Ts {
805
805
  this.events.clear();
806
806
  }
807
807
  }
808
- const F0 = new Ts(), _t = {
808
+ const F0 = new Ts(), yt = {
809
809
  /** 应用相关注入(国际化等) */
810
810
  APP_PROVIDE: "jcode_app_provide",
811
811
  /** 表单相关注入 */
@@ -825,14 +825,14 @@ const F0 = new Ts(), _t = {
825
825
  /** 页面相关注入 */
826
826
  PAGE_PROVIDE: "jcode_page_provide"
827
827
  };
828
- function hn(e, t) {
828
+ function en(e, t) {
829
829
  return yu(e, t);
830
830
  }
831
- function gn(e, t) {
831
+ function tn(e, t) {
832
832
  bu(e, t);
833
833
  }
834
- function bt() {
835
- return hn(_t.APP_PROVIDE, {
834
+ function xt() {
835
+ return en(yt.APP_PROVIDE, {
836
836
  t: (e, ...t) => {
837
837
  if (!e) return "";
838
838
  if (typeof e != "string")
@@ -846,52 +846,58 @@ function bt() {
846
846
  useData: () => ({})
847
847
  });
848
848
  }
849
+ function N0(e) {
850
+ tn(yt.APP_PROVIDE, e);
851
+ }
849
852
  function co() {
850
- return hn(_t.FORM_PROVIDE, {});
853
+ return en(yt.FORM_PROVIDE, {});
851
854
  }
852
855
  function Ps(e) {
853
- gn(_t.FORM_PROVIDE, e);
856
+ tn(yt.FORM_PROVIDE, e);
854
857
  }
855
858
  function Hd() {
856
- return hn(_t.TABLE_PROVIDE, {});
859
+ return en(yt.TABLE_PROVIDE, {});
857
860
  }
858
861
  function Qa(e) {
859
- gn(_t.TABLE_PROVIDE, e);
862
+ tn(yt.TABLE_PROVIDE, e);
860
863
  }
861
864
  function Wd() {
862
- return hn(_t.COMP_PROVIDE, {});
865
+ return en(yt.COMP_PROVIDE, {});
863
866
  }
864
867
  function Ms(e) {
865
- gn(_t.COMP_PROVIDE, e);
868
+ tn(yt.COMP_PROVIDE, e);
866
869
  }
867
870
  function Vo() {
868
- return hn(_t.MENU_PROVIDE, {});
871
+ return en(yt.MENU_PROVIDE, {});
869
872
  }
870
873
  function Ud(e) {
871
- gn(_t.MENU_PROVIDE, e);
874
+ tn(yt.MENU_PROVIDE, e);
872
875
  }
873
876
  function Jd() {
874
- return hn(_t.H_MENU_PROVIDE, {});
877
+ return en(yt.H_MENU_PROVIDE, {});
875
878
  }
876
879
  function Yd(e) {
877
- gn(_t.H_MENU_PROVIDE, e);
880
+ tn(yt.H_MENU_PROVIDE, e);
878
881
  }
879
882
  function Gd() {
880
- return hn(_t.AUTH_PAGE_PROVIDE, {
883
+ return en(yt.AUTH_PAGE_PROVIDE, {
881
884
  getPageName: () => ""
882
885
  });
883
886
  }
884
887
  function Kd(e) {
885
- gn(_t.AUTH_PAGE_PROVIDE, e);
888
+ tn(yt.AUTH_PAGE_PROVIDE, e);
889
+ }
890
+ function H0() {
891
+ return en(yt.LAYER_PROVIDE, {});
886
892
  }
887
893
  function Xd(e) {
888
- gn(_t.LAYER_PROVIDE, e);
894
+ tn(yt.LAYER_PROVIDE, e);
889
895
  }
890
896
  function qd() {
891
- return hn(_t.PAGE_PROVIDE, {});
897
+ return en(yt.PAGE_PROVIDE, {});
892
898
  }
893
899
  function Zd(e) {
894
- gn(_t.PAGE_PROVIDE, e);
900
+ tn(yt.PAGE_PROVIDE, e);
895
901
  }
896
902
  const Os = /* @__PURE__ */ ie({
897
903
  name: "JDynamicLayer",
@@ -1030,7 +1036,7 @@ const ef = de(Os), tf = /* @__PURE__ */ ie({
1030
1036
  const t = e, n = R(() => {
1031
1037
  if (!Array.isArray(t.list) && Object.keys(t.list).length > 0)
1032
1038
  return t.list;
1033
- const a = {}, l = fn(t.list), r = l.length;
1039
+ const a = {}, l = hn(t.list), r = l.length;
1034
1040
  for (let s = 0; s < r; s++) {
1035
1041
  const c = l[s];
1036
1042
  c.groupId = c.groupId || qa(), a[c.groupId] = a[c.groupId] || [], a[c.groupId].push(c);
@@ -1275,7 +1281,7 @@ const ef = de(Os), tf = /* @__PURE__ */ ie({
1275
1281
  const n = e, o = t, i = R({
1276
1282
  get() {
1277
1283
  let a = n.options;
1278
- if (!dn(n.modelValue) && a && a.length > 0) {
1284
+ if (!pn(n.modelValue) && a && a.length > 0) {
1279
1285
  let l = n.modelValue + "", r = n.options.find((s) => s.value + "" === l);
1280
1286
  if (r)
1281
1287
  return r.value;
@@ -1365,7 +1371,7 @@ const ef = de(Os), tf = /* @__PURE__ */ ie({
1365
1371
  set(d) {
1366
1372
  n.multiple && Array.isArray(d) && (d = d?.join(",") || []), o("update:modelValue", d);
1367
1373
  }
1368
- }), l = R(() => !dn(a.value) && !n.multiple && n.options.filter((d) => a.value == d.value).map((d) => d.label).join(",") || ""), r = R(() => !dn(a.value) && !n.multiple ? n.options.find((d) => d.value === a.value)?.icon : ""), s = R(
1374
+ }), l = R(() => !pn(a.value) && !n.multiple && n.options.filter((d) => a.value == d.value).map((d) => d.label).join(",") || ""), r = R(() => !pn(a.value) && !n.multiple ? n.options.find((d) => d.value === a.value)?.icon : ""), s = R(
1369
1375
  () => typeof n.selectData == "string" ? n.selectData?.split(",") || [] : []
1370
1376
  ), c = R(() => {
1371
1377
  let d = [];
@@ -1549,14 +1555,14 @@ const ef = de(Os), tf = /* @__PURE__ */ ie({
1549
1555
  });
1550
1556
  const s = R({
1551
1557
  get() {
1552
- return dn(o.modelValue) ? [] : o.modelValue?.split(",") || [];
1558
+ return pn(o.modelValue) ? [] : o.modelValue?.split(",") || [];
1553
1559
  },
1554
1560
  set(d) {
1555
- a("update:modelValue", dn(d) ? "" : d.join(","));
1561
+ a("update:modelValue", pn(d) ? "" : d.join(","));
1556
1562
  }
1557
1563
  }), c = (d, p) => {
1558
1564
  s.value = d, a("change", {
1559
- value: dn(d) ? "" : d.join(","),
1565
+ value: pn(d) ? "" : d.join(","),
1560
1566
  data: p
1561
1567
  });
1562
1568
  }, u = R(() => ({
@@ -2313,7 +2319,7 @@ const ef = de(Os), tf = /* @__PURE__ */ ie({
2313
2319
  }
2314
2320
  },
2315
2321
  setup(e) {
2316
- const t = e, { formData: n, compsConfig: o, errorFields: i, span: a, labelWidth: l } = co(), { t: r } = bt(), s = R(() => to({
2322
+ const t = e, { formData: n, compsConfig: o, errorFields: i, span: a, labelWidth: l } = co(), { t: r } = xt(), s = R(() => to({
2317
2323
  config: { ...t.config || {}, ...o?.value?.[t.id] || {} },
2318
2324
  getCompConfig: t.getCompConfig,
2319
2325
  formData: n
@@ -2885,7 +2891,7 @@ const If = { class: "j-table-footer" }, Bf = {
2885
2891
  },
2886
2892
  emits: ["ready", "selectionChanged", "update:tablePage", "update:pageSize", "loadPageData", "rowChange", "update:modelValue", "change"],
2887
2893
  setup(e, { expose: t, emit: n }) {
2888
- const o = ps(), i = e, a = n, { formData: l } = co(), { useData: r } = bt(), { getLabel: s } = r(), { openLayer: c } = Di(), u = R(() => i.heightMode === "auto" ? { height: "auto" } : {}), d = O(40), p = R(() => {
2894
+ const o = ps(), i = e, a = n, { formData: l } = co(), { useData: r } = xt(), { getLabel: s } = r(), { openLayer: c } = Di(), u = R(() => i.heightMode === "auto" ? { height: "auto" } : {}), d = O(40), p = R(() => {
2889
2895
  const L = {};
2890
2896
  return i.heightMode === "auto" && (L.height = d.value + "px", L.flex = "none", i.maxHeight && (L.maxHeight = typeof i.maxHeight == "number" ? `${i.maxHeight}px` : i.maxHeight)), L;
2891
2897
  }), h = O(null);
@@ -2935,7 +2941,7 @@ const If = { class: "j-table-footer" }, Bf = {
2935
2941
  disableColumnResize: !0,
2936
2942
  disableSelect: !0,
2937
2943
  customLayout: (Mt) => {
2938
- const { table: ct, row: Ue, col: Je } = Mt, De = ct.getCellOriginRecord(Je, Ue), vt = ct.getRecordIndexByCell(Je, Ue), yt = new L({
2944
+ const { table: ct, row: Ue, col: Je } = Mt, De = ct.getCellOriginRecord(Je, Ue), vt = ct.getRecordIndexByCell(Je, Ue), bt = new L({
2939
2945
  height: 40,
2940
2946
  display: "flex",
2941
2947
  flexDirection: "row",
@@ -2957,7 +2963,7 @@ const If = { class: "j-table-footer" }, Bf = {
2957
2963
  Ot.target.setAttribute("fill", Ie(dt, -20)), ct.scenegraph.stage.renderNextFrame();
2958
2964
  }), Ne.addEventListener("mouseleave", (Ot) => {
2959
2965
  Ot.target.setAttribute("fill", dt), ct.scenegraph.stage.renderNextFrame();
2960
- }), yt.add(Ne);
2966
+ }), bt.add(Ne);
2961
2967
  }), ue) {
2962
2968
  const Oe = "#1677ff", ut = new q({
2963
2969
  text: "更多",
@@ -2976,10 +2982,10 @@ const If = { class: "j-table-footer" }, Bf = {
2976
2982
  F = !0, S();
2977
2983
  }), ut.addEventListener("mouseleave", (dt) => {
2978
2984
  dt.target.setAttribute("fill", Oe), ct.scenegraph.stage.renderNextFrame(), F = !1, M();
2979
- }), yt.add(ut);
2985
+ }), bt.add(ut);
2980
2986
  }
2981
2987
  return {
2982
- rootContainer: yt,
2988
+ rootContainer: bt,
2983
2989
  renderDefault: !1
2984
2990
  };
2985
2991
  }
@@ -3022,7 +3028,7 @@ const If = { class: "j-table-footer" }, Bf = {
3022
3028
  elements: jt
3023
3029
  };
3024
3030
  }, Me = (L) => {
3025
- const { dataValue: q, rect: ae } = L, ue = Number(q) || 0, ge = 5, fe = 20, We = 4, jt = 8, Mt = (ae.height - fe) / 2, ct = [], Ue = Kn("mdi:star"), Je = Kn("mdi:star-half-full"), De = Kn("mdi:star-outline"), vt = "#f7ba2a", yt = "#e5e6eb";
3031
+ const { dataValue: q, rect: ae } = L, ue = Number(q) || 0, ge = 5, fe = 20, We = 4, jt = 8, Mt = (ae.height - fe) / 2, ct = [], Ue = Kn("mdi:star"), Je = Kn("mdi:star-half-full"), De = Kn("mdi:star-outline"), vt = "#f7ba2a", bt = "#e5e6eb";
3026
3032
  for (let Oe = 0; Oe < ge; Oe++) {
3027
3033
  const ut = jt + Oe * (fe + We), dt = Mt;
3028
3034
  if (ue >= Oe + 1) {
@@ -3046,7 +3052,7 @@ const If = { class: "j-table-footer" }, Bf = {
3046
3052
  height: fe
3047
3053
  });
3048
3054
  } else {
3049
- const Ne = De?.body?.replace(/currentColor/g, yt);
3055
+ const Ne = De?.body?.replace(/currentColor/g, bt);
3050
3056
  ct.push({
3051
3057
  type: "icon",
3052
3058
  svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${fe}" height="${fe}" viewBox="0 0 ${De?.width} ${De?.height}">${Ne}</svg>`,
@@ -3061,12 +3067,12 @@ const If = { class: "j-table-footer" }, Bf = {
3061
3067
  elements: ct
3062
3068
  };
3063
3069
  }, Ae = (L) => {
3064
- const { dataValue: q, rect: ae, table: ue, col: ge, row: fe } = L, We = ue.getBodyField(ge, fe), jt = ue.options?.columns || [], ct = Se(jt, We)?._compConfig || {}, Ue = Number(ct.min) || 0, Je = Number(ct.max) || 100, De = Number(q) || 0, vt = Je - Ue, yt = vt === 0 ? 0 : Math.max(0, Math.min(100, (De - Ue) / vt * 100)), Oe = 4, ut = 8, dt = 8, Ne = (ae.height - Oe) / 2, Ot = String(De), na = Po(Ot) || 0, oa = ut, Ll = Ne, Jn = ae.width - ut * 2 - na - dt, Co = Jn * yt / 100, ti = [], Dl = (Tt, Ct, ni) => {
3065
- const St = Math.min(ni, Ct / 2, Tt / 2);
3066
- return `M ${St} 0 L ${Tt - St} 0 Q ${Tt} 0 ${Tt} ${St} L ${Tt} ${Ct - St} Q ${Tt} ${Ct} ${Tt - St} ${Ct} L ${St} ${Ct} Q 0 ${Ct} 0 ${Ct - St} L 0 ${St} Q 0 0 ${St} 0 Z`;
3067
- }, pu = (Tt, Ct, ni) => {
3068
- const St = Math.min(ni, Ct / 2, Tt / 2);
3069
- return Tt <= St * 2 ? Dl(Tt, Ct, ni) : `M ${St} 0 L ${Tt} 0 L ${Tt} ${Ct} L ${St} ${Ct} Q 0 ${Ct} 0 ${Ct - St} L 0 ${St} Q 0 0 ${St} 0 Z`;
3070
+ const { dataValue: q, rect: ae, table: ue, col: ge, row: fe } = L, We = ue.getBodyField(ge, fe), jt = ue.options?.columns || [], ct = Se(jt, We)?._compConfig || {}, Ue = Number(ct.min) || 0, Je = Number(ct.max) || 100, De = Number(q) || 0, vt = Je - Ue, bt = vt === 0 ? 0 : Math.max(0, Math.min(100, (De - Ue) / vt * 100)), Oe = 4, ut = 8, dt = 8, Ne = (ae.height - Oe) / 2, Ot = String(De), na = Po(Ot) || 0, oa = ut, Ll = Ne, Jn = ae.width - ut * 2 - na - dt, Co = Jn * bt / 100, ti = [], Dl = (Tt, St, ni) => {
3071
+ const kt = Math.min(ni, St / 2, Tt / 2);
3072
+ return `M ${kt} 0 L ${Tt - kt} 0 Q ${Tt} 0 ${Tt} ${kt} L ${Tt} ${St - kt} Q ${Tt} ${St} ${Tt - kt} ${St} L ${kt} ${St} Q 0 ${St} 0 ${St - kt} L 0 ${kt} Q 0 0 ${kt} 0 Z`;
3073
+ }, pu = (Tt, St, ni) => {
3074
+ const kt = Math.min(ni, St / 2, Tt / 2);
3075
+ return Tt <= kt * 2 ? Dl(Tt, St, ni) : `M ${kt} 0 L ${Tt} 0 L ${Tt} ${St} L ${kt} ${St} Q 0 ${St} 0 ${St - kt} L 0 ${kt} Q 0 0 ${kt} 0 Z`;
3070
3076
  }, hu = Oe / 2, gu = Dl(Jn, Oe, hu);
3071
3077
  if (ti.push({
3072
3078
  type: "icon",
@@ -3076,10 +3082,10 @@ const If = { class: "j-table-footer" }, Bf = {
3076
3082
  width: Jn,
3077
3083
  height: Oe
3078
3084
  }), Co > 0) {
3079
- const Tt = Oe / 2, Ct = pu(Co, Oe, Tt);
3085
+ const Tt = Oe / 2, St = pu(Co, Oe, Tt);
3080
3086
  ti.push({
3081
3087
  type: "icon",
3082
- svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Co}" height="${Oe}" viewBox="0 0 ${Co} ${Oe}"><path d="${Ct}" fill="#165dff"/></svg>`,
3088
+ svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Co}" height="${Oe}" viewBox="0 0 ${Co} ${Oe}"><path d="${St}" fill="#165dff"/></svg>`,
3083
3089
  x: oa,
3084
3090
  y: Ll,
3085
3091
  width: Co,
@@ -3107,7 +3113,7 @@ const If = { class: "j-table-footer" }, Bf = {
3107
3113
  minWidth: Je,
3108
3114
  maxWidth: De,
3109
3115
  align: vt,
3110
- fieldFormat: yt,
3116
+ fieldFormat: bt,
3111
3117
  editor: Oe,
3112
3118
  frozen: ut,
3113
3119
  ...dt
@@ -3120,7 +3126,7 @@ const If = { class: "j-table-footer" }, Bf = {
3120
3126
  style: {
3121
3127
  textAlign: vt
3122
3128
  },
3123
- _fieldFormat: yt,
3129
+ _fieldFormat: bt,
3124
3130
  _compType: ge,
3125
3131
  _compConfig: {
3126
3132
  ...dt
@@ -3182,15 +3188,15 @@ const If = { class: "j-table-footer" }, Bf = {
3182
3188
  Je.push(De);
3183
3189
  return;
3184
3190
  }
3185
- const vt = ue(De.columns), yt = [], Oe = [], ut = [];
3191
+ const vt = ue(De.columns), bt = [], Oe = [], ut = [];
3186
3192
  if (vt.forEach((Ne) => {
3187
3193
  const Ot = ae(Ne);
3188
- Ot === "left" ? yt.push(Ne) : Ot === "right" ? Oe.push(Ne) : ut.push(Ne);
3189
- }), (yt.length > 0 ? 1 : 0) + (Oe.length > 0 ? 1 : 0) + (ut.length > 0 ? 1 : 0) <= 1) {
3194
+ Ot === "left" ? bt.push(Ne) : Ot === "right" ? Oe.push(Ne) : ut.push(Ne);
3195
+ }), (bt.length > 0 ? 1 : 0) + (Oe.length > 0 ? 1 : 0) + (ut.length > 0 ? 1 : 0) <= 1) {
3190
3196
  De.columns = vt, Je.push(De);
3191
3197
  return;
3192
3198
  }
3193
- yt.length && Je.push({ ...De, columns: yt }), ut.length && Je.push({ ...De, columns: ut }), Oe.length && Je.push({ ...De, columns: Oe });
3199
+ bt.length && Je.push({ ...De, columns: bt }), ut.length && Je.push({ ...De, columns: ut }), Oe.length && Je.push({ ...De, columns: Oe });
3194
3200
  }), Je;
3195
3201
  };
3196
3202
  q = ue(q);
@@ -3198,8 +3204,8 @@ const If = { class: "j-table-footer" }, Bf = {
3198
3204
  let Je = 0, De = 0;
3199
3205
  return Ue.forEach((vt) => {
3200
3206
  if (vt.columns && vt.columns.length > 0) {
3201
- const yt = ge(vt.columns);
3202
- Je += yt.left, De += yt.right;
3207
+ const bt = ge(vt.columns);
3208
+ Je += bt.left, De += bt.right;
3203
3209
  } else
3204
3210
  vt.frozen === "left" ? Je++ : vt.frozen === "right" && De++;
3205
3211
  }), { left: Je, right: De };
@@ -3300,7 +3306,7 @@ const If = { class: "j-table-footer" }, Bf = {
3300
3306
  }), Ii(() => {
3301
3307
  ht(), S(), document.removeEventListener("wheel", te);
3302
3308
  });
3303
- const wt = R({
3309
+ const Ct = R({
3304
3310
  get() {
3305
3311
  return i.tablePage;
3306
3312
  },
@@ -3314,7 +3320,7 @@ const If = { class: "j-table-footer" }, Bf = {
3314
3320
  set(L) {
3315
3321
  Ht.value = L, a("update:pageSize", L);
3316
3322
  }
3317
- }), ne = R(() => (wt.value - 1) * N.value), Y = (L, q) => {
3323
+ }), ne = R(() => (Ct.value - 1) * N.value), Y = (L, q) => {
3318
3324
  a("loadPageData", {
3319
3325
  rows: q,
3320
3326
  page: L
@@ -3385,7 +3391,7 @@ const If = { class: "j-table-footer" }, Bf = {
3385
3391
  const L = {};
3386
3392
  L._i = eo(), nt.value.forEach((q) => {
3387
3393
  const ae = q.config?.valueRowKey || q.id || "";
3388
- ae && (L[ae] = fn(q.config?.defaultValue));
3394
+ ae && (L[ae] = hn(q.config?.defaultValue));
3389
3395
  }), f && (f.addRecord(L), f.scrollToCell({ col: 0, row: f.records.length })), a("change", {
3390
3396
  id: i.id,
3391
3397
  value: L,
@@ -3498,8 +3504,8 @@ const If = { class: "j-table-footer" }, Bf = {
3498
3504
  q[2] || (q[2] = V("div", null, null, -1)),
3499
3505
  e.isPage ? (C(), $(ge, {
3500
3506
  key: 0,
3501
- "current-page": wt.value,
3502
- "onUpdate:currentPage": q[0] || (q[0] = (fe) => wt.value = fe),
3507
+ "current-page": Ct.value,
3508
+ "onUpdate:currentPage": q[0] || (q[0] = (fe) => Ct.value = fe),
3503
3509
  "page-size": N.value,
3504
3510
  "onUpdate:pageSize": q[1] || (q[1] = (fe) => N.value = fe),
3505
3511
  "page-sizes": e.pageSizes || [100, 200, 500, 1e3],
@@ -3704,7 +3710,7 @@ const If = { class: "j-table-footer" }, Bf = {
3704
3710
  },
3705
3711
  emits: ["update:visible", "update:stepActive", "cancel", "ok", "closed"],
3706
3712
  setup(e, { expose: t, emit: n }) {
3707
- const o = e, i = n, { t: a } = bt(), l = O(!1), r = O(!1), s = O(""), c = O(!1), u = O(!0), d = O(!1), p = O(!0), h = O(-1), f = lo({
3713
+ const o = e, i = n, { t: a } = xt(), l = O(!1), r = O(!1), s = O(""), c = O(!1), u = O(!0), d = O(!1), p = O(!0), h = O(-1), f = lo({
3708
3714
  isMove: !1,
3709
3715
  pageX: 0,
3710
3716
  pageY: 0,
@@ -4060,7 +4066,7 @@ const If = { class: "j-table-footer" }, Bf = {
4060
4066
  },
4061
4067
  emits: ["update:stepActive", "update:visible", "cancel", "ok", "closed"],
4062
4068
  setup(e, { expose: t, emit: n }) {
4063
- const o = e, i = n, { logoImg: a, t: l } = bt(), r = O(!1), s = O(!1), c = O(""), u = O(!1), d = O(!0), p = O(!1), h = O(!0), f = O(-1);
4069
+ const o = e, i = n, { logoImg: a, t: l } = xt(), r = O(!1), s = O(!1), c = O(""), u = O(!1), d = O(!0), p = O(!1), h = O(!0), f = O(-1);
4064
4070
  Ge(
4065
4071
  () => o.visible,
4066
4072
  (T) => {
@@ -4393,7 +4399,7 @@ const If = { class: "j-table-footer" }, Bf = {
4393
4399
  },
4394
4400
  emits: ["update:visible", "update:stepActive", "closed", "ok", "cancel"],
4395
4401
  setup(e, { expose: t, emit: n }) {
4396
- const o = e, { t: i } = bt(), a = n, l = O(!1), r = O(""), s = R(() => ["ltr", "rtl"].indexOf(o.direction) !== -1 ? `${o.width}px` : `${o.height}px`), c = R({
4402
+ const o = e, { t: i } = xt(), a = n, l = O(!1), r = O(""), s = R(() => ["ltr", "rtl"].indexOf(o.direction) !== -1 ? `${o.width}px` : `${o.height}px`), c = R({
4397
4403
  get() {
4398
4404
  return o.visible;
4399
4405
  },
@@ -4785,7 +4791,7 @@ const If = { class: "j-table-footer" }, Bf = {
4785
4791
  emits: ["update:modelValue", "change", "select", "search"],
4786
4792
  setup(e, { emit: t }) {
4787
4793
  const n = e, o = t, i = O(), a = R(
4788
- () => dn(n.modelValue) ? [] : n.modelValue?.split(",") || []
4794
+ () => pn(n.modelValue) ? [] : n.modelValue?.split(",") || []
4789
4795
  ), l = R(() => n.isStyleLoop ? a.value?.map((d, p) => {
4790
4796
  let h = n.colors[p % n.colors.length] || {};
4791
4797
  return h = { ...h, borderWidth: (h.borderWidth || 0) + "px" }, h;
@@ -5002,7 +5008,7 @@ const If = { class: "j-table-footer" }, Bf = {
5002
5008
  }
5003
5009
  },
5004
5010
  setup(e) {
5005
- const { t } = bt();
5011
+ const { t } = xt();
5006
5012
  return (n, o) => {
5007
5013
  const i = B("j-icon"), a = B("el-text"), l = B("j-button"), r = B("el-progress"), s = B("el-link");
5008
5014
  return C(), A("div", {
@@ -5350,7 +5356,7 @@ const If = { class: "j-table-footer" }, Bf = {
5350
5356
  "notUploadChange"
5351
5357
  ],
5352
5358
  setup(e, { emit: t }) {
5353
- const n = e, o = t, { warning: i, error: a, createConfirm: l, t: r, apiUrl: s, token: c, useFile: u } = bt(), { fileChunkedUpload: d, deleteFile: p } = u(), h = R(() => n.isUploadImg ? n.accept || "image/*" : n.accept), f = R(() => {
5359
+ const n = e, o = t, { warning: i, error: a, createConfirm: l, t: r, apiUrl: s, token: c, useFile: u } = xt(), { fileChunkedUpload: d, deleteFile: p } = u(), h = R(() => n.isUploadImg ? n.accept || "image/*" : n.accept), f = R(() => {
5354
5360
  if (n.limit !== -1)
5355
5361
  return n.limit;
5356
5362
  }), g = R(() => n.limit === -1 ? "" : `,${r("上传数量")}${n.limit}`), v = O(""), b = R(() => ({
@@ -5496,7 +5502,7 @@ const If = { class: "j-table-footer" }, Bf = {
5496
5502
  return i && i(`当前限制选择${n.limit}个文件`), !1;
5497
5503
  };
5498
5504
  return (X, ce) => {
5499
- const ye = B("j-icon"), He = B("j-button"), ht = B("el-popover"), Et = B("el-upload"), Be = B("el-text"), It = B("j-dialog-full"), wt = Bi("loading");
5505
+ const ye = B("j-icon"), He = B("j-button"), ht = B("el-popover"), Et = B("el-upload"), Be = B("el-text"), It = B("j-dialog-full"), Ct = Bi("loading");
5500
5506
  return C(), A("div", Tp, [
5501
5507
  G(Et, {
5502
5508
  action: "",
@@ -5596,7 +5602,7 @@ const If = { class: "j-table-footer" }, Bf = {
5596
5602
  onLoad: ce[0] || (ce[0] = (Ht) => Ze.value = !1)
5597
5603
  }, null, 40, Ip)
5598
5604
  ])), [
5599
- [wt, Ze.value]
5605
+ [Ct, Ze.value]
5600
5606
  ]) : U("", !0)
5601
5607
  ]),
5602
5608
  _: 1
@@ -7089,7 +7095,7 @@ const If = { class: "j-table-footer" }, Bf = {
7089
7095
  },
7090
7096
  emits: ["click"],
7091
7097
  setup(e, { emit: t }) {
7092
- const { t: n } = bt(), { activeMenuId: o } = Vo(), i = t, a = (l) => {
7098
+ const { t: n } = xt(), { activeMenuId: o } = Vo(), i = t, a = (l) => {
7093
7099
  i("click", l);
7094
7100
  };
7095
7101
  return (l, r) => {
@@ -7514,7 +7520,7 @@ const If = { class: "j-table-footer" }, Bf = {
7514
7520
  }),
7515
7521
  emits: ["update:checkAll", "update:checkFields"],
7516
7522
  setup(e, { expose: t }) {
7517
- const { t: n } = bt(), o = e, i = Ao(e, "checkAll"), a = Ao(e, "checkFields"), l = O(!1), r = O(""), s = R(
7523
+ const { t: n } = xt(), o = e, i = Ao(e, "checkAll"), a = Ao(e, "checkFields"), l = O(!1), r = O(""), s = R(
7518
7524
  () => o.columns.filter((p) => p.config?.filter?.isSearchKeyword ? r.value ? p.config?.label?.indexOf(r.value) != -1 : !0 : !1).map((p) => ({
7519
7525
  label: p.config?.label,
7520
7526
  value: p.id
@@ -7600,7 +7606,7 @@ const If = { class: "j-table-footer" }, Bf = {
7600
7606
  }),
7601
7607
  emits: /* @__PURE__ */ Io(["filter", "close"], ["update:relation", "update:isPin"]),
7602
7608
  setup(e, { expose: t, emit: n }) {
7603
- const { t: o } = bt(), i = e, a = Ao(e, "relation"), l = Ao(e, "isPin"), r = O([]), s = () => {
7609
+ const { t: o } = xt(), i = e, a = Ao(e, "relation"), l = Ao(e, "isPin"), r = O([]), s = () => {
7604
7610
  l.value = !l.value;
7605
7611
  }, c = [
7606
7612
  {
@@ -7844,7 +7850,7 @@ const If = { class: "j-table-footer" }, Bf = {
7844
7850
  },
7845
7851
  emits: ["save", "clear"],
7846
7852
  setup(e, { expose: t, emit: n }) {
7847
- const { t: o } = bt(), i = e, a = n, l = R(
7853
+ const { t: o } = xt(), i = e, a = n, l = R(
7848
7854
  () => i.columns.filter((f) => !f.children?.length && f.config?.sorter?.isNot !== !0).map((f) => ({
7849
7855
  label: f.config?.label,
7850
7856
  value: f.id
@@ -7933,7 +7939,7 @@ const If = { class: "j-table-footer" }, Bf = {
7933
7939
  },
7934
7940
  emits: ["save"],
7935
7941
  setup(e, { expose: t, emit: n }) {
7936
- const { t: o } = bt(), i = e, a = n, l = O(), r = O(""), s = {}, c = O([]), u = O([]), d = (m, j) => {
7942
+ const { t: o } = xt(), i = e, a = n, l = O(), r = O(""), s = {}, c = O([]), u = O([]), d = (m, j) => {
7937
7943
  const _ = [], E = /* @__PURE__ */ new Map();
7938
7944
  m.forEach((T) => {
7939
7945
  E.set(T.id, T), s[T.id] = T;
@@ -8199,7 +8205,7 @@ const If = { class: "j-table-footer" }, Bf = {
8199
8205
  },
8200
8206
  emits: ["select", "ready"],
8201
8207
  setup(e, { expose: t, emit: n }) {
8202
- const { t: o } = bt(), { openLayer: i } = Di(), a = e, l = n;
8208
+ const { t: o } = xt(), { openLayer: i } = Di(), a = e, l = n;
8203
8209
  a.isMultiple && !a.rowKey && console.warn("rowKey is required when isMultiple is true");
8204
8210
  const r = O();
8205
8211
  let s = [];
@@ -8240,9 +8246,9 @@ const If = { class: "j-table-footer" }, Bf = {
8240
8246
  }, H = O(), M = O(!1), S = O(!1), I = O(!1), z = O([]), te = O("and"), se = O(), me = O(!1), Se = O([]), Ze = () => {
8241
8247
  se.value.init(Se.value);
8242
8248
  }, Z = (oe) => {
8243
- Se.value = oe, me.value = !1, wt();
8249
+ Se.value = oe, me.value = !1, Ct();
8244
8250
  }, Me = () => {
8245
- Se.value = [], wt();
8251
+ Se.value = [], Ct();
8246
8252
  }, Ae = O(), he = O(!1), Ie = O(), Xe = R(() => Ie.value != null), X = () => {
8247
8253
  Ae.value?.init();
8248
8254
  }, ce = (oe) => {
@@ -8315,7 +8321,7 @@ const If = { class: "j-table-footer" }, Bf = {
8315
8321
  oe.sort = tt, s = await a.loadData(oe) || [], c.value = s.length;
8316
8322
  r.value.setRecords(s), g.value ? (h.value = [], f.value = !1) : a.rowKey && h.value.length > 0 && r.value?.setSelection?.(h.value);
8317
8323
  }
8318
- }, wt = async () => {
8324
+ }, Ct = async () => {
8319
8325
  u.value = 1, await It();
8320
8326
  }, Ht = ({ rows: oe, page: re }) => {
8321
8327
  d = oe, u.value = re, It();
@@ -8384,8 +8390,8 @@ const If = { class: "j-table-footer" }, Bf = {
8384
8390
  placeholder: W(o)("搜索数据"),
8385
8391
  clearable: "",
8386
8392
  class: "j-suffix",
8387
- onKeyup: ya(wt, ["enter"]),
8388
- onClear: wt
8393
+ onKeyup: ya(Ct, ["enter"]),
8394
+ onClear: Ct
8389
8395
  }, {
8390
8396
  prefix: D(() => [
8391
8397
  G(tt, { icon: "mdi:search" })
@@ -8404,7 +8410,7 @@ const If = { class: "j-table-footer" }, Bf = {
8404
8410
  trigger: "click",
8405
8411
  "show-arrow": !1,
8406
8412
  onShow: J,
8407
- onHide: wt
8413
+ onHide: Ct
8408
8414
  }, {
8409
8415
  reference: D(() => [
8410
8416
  G(tt, {
@@ -8442,7 +8448,7 @@ const If = { class: "j-table-footer" }, Bf = {
8442
8448
  width: 644,
8443
8449
  trigger: "click",
8444
8450
  persistent: !1,
8445
- onHide: wt
8451
+ onHide: Ct
8446
8452
  }, {
8447
8453
  reference: D(() => [
8448
8454
  G(jn, {
@@ -8462,7 +8468,7 @@ const If = { class: "j-table-footer" }, Bf = {
8462
8468
  "onUpdate:relation": re[4] || (re[4] = (L) => te.value = L),
8463
8469
  "search-field-list": z.value,
8464
8470
  columns: m.value,
8465
- onFilter: wt,
8471
+ onFilter: Ct,
8466
8472
  onClose: re[5] || (re[5] = (L) => S.value = !1)
8467
8473
  }, null, 8, ["is-pin", "relation", "search-field-list", "columns"])
8468
8474
  ]),
@@ -8609,7 +8615,7 @@ const If = { class: "j-table-footer" }, Bf = {
8609
8615
  "onUpdate:relation": re[11] || (re[11] = (L) => te.value = L),
8610
8616
  "search-field-list": z.value,
8611
8617
  columns: m.value,
8612
- onFilter: wt
8618
+ onFilter: Ct
8613
8619
  }, null, 8, ["is-pin", "relation", "search-field-list", "columns"])
8614
8620
  ])) : U("", !0)
8615
8621
  ], 2)
@@ -8627,7 +8633,7 @@ const If = { class: "j-table-footer" }, Bf = {
8627
8633
  },
8628
8634
  emits: ["update:modelValue", "change"],
8629
8635
  setup(e, { emit: t }) {
8630
- const n = e, o = t, { t: i } = bt(), a = O(""), l = R(() => a.value === "" ? n.options : n.options.filter((c) => (c.label || "").includes(a.value))), r = R(() => n.modelValue ? (n.modelValue + "").split(",").filter(Boolean) : []), s = (c) => {
8636
+ const n = e, o = t, { t: i } = xt(), a = O(""), l = R(() => a.value === "" ? n.options : n.options.filter((c) => (c.label || "").includes(a.value))), r = R(() => n.modelValue ? (n.modelValue + "").split(",").filter(Boolean) : []), s = (c) => {
8631
8637
  if (c.disabled || r.value.includes(c.value)) return;
8632
8638
  const d = [...r.value, c.value].join(",");
8633
8639
  o("update:modelValue", d), o("change", { value: d, data: c });
@@ -8920,7 +8926,7 @@ const If = { class: "j-table-footer" }, Bf = {
8920
8926
  },
8921
8927
  emits: ["node-drop"],
8922
8928
  setup(e, { expose: t, emit: n }) {
8923
- const o = e, i = n, { useData: a, t: l } = bt(), { getTreeData: r, loadData: s } = a(), c = O(), u = O(!1), d = O(""), p = O([]), h = {
8929
+ const o = e, i = n, { useData: a, t: l } = xt(), { getTreeData: r, loadData: s } = a(), c = O(), u = O(!1), d = O(""), p = O([]), h = {
8924
8930
  children: "children",
8925
8931
  label: "label",
8926
8932
  disabled: "disabled"
@@ -8951,7 +8957,7 @@ const If = { class: "j-table-footer" }, Bf = {
8951
8957
  }, j = (H, M, S, I) => {
8952
8958
  i("node-drop", H, M, S, I);
8953
8959
  }, _ = (H) => {
8954
- const M = fn(o.treeButtons);
8960
+ const M = hn(o.treeButtons);
8955
8961
  return H && o.filterButton ? o.filterButton({ buttons: M, node: H }) : M;
8956
8962
  }, { openLayer: E } = Di(), P = (H, M) => {
8957
8963
  H.config?.disabled || H.click && H.click({ data: M, openLayer: E });
@@ -9175,7 +9181,7 @@ const Tg = /* @__PURE__ */ ie({
9175
9181
  },
9176
9182
  emits: ["change"],
9177
9183
  setup(e, { expose: t, emit: n }) {
9178
- const o = e, i = n, { useData: a, existField: l, httpGet: r, httpPost: s, success: c, warning: u, error: d, info: p, t: h } = bt();
9184
+ const o = e, i = n, { useData: a, existField: l, httpGet: r, httpPost: s, success: c, warning: u, error: d, info: p, t: h } = xt();
9179
9185
  let f;
9180
9186
  a && (f = a());
9181
9187
  const g = (N) => {
@@ -9233,9 +9239,9 @@ const Tg = /* @__PURE__ */ ie({
9233
9239
  }, Se = async (N, ne) => {
9234
9240
  v.value = !1;
9235
9241
  const Y = !!ne;
9236
- _.splice(0, _.length), T = {}, F = {}, J = [], z = ne, ki(m), P.value = {}, Y && te(ne, ""), me(N, _, Y), H = fn(m), mt(() => {
9242
+ _.splice(0, _.length), T = {}, F = {}, J = [], z = ne, ki(m), P.value = {}, Y && te(ne, ""), me(N, _, Y), H = hn(m), mt(() => {
9237
9243
  v.value = !0, mt(() => {
9238
- wt(o.config?.codeInit, {});
9244
+ Ct(o.config?.codeInit, {});
9239
9245
  });
9240
9246
  });
9241
9247
  }, Ze = (N, ne, Y) => {
@@ -9441,7 +9447,7 @@ const Tg = /* @__PURE__ */ ie({
9441
9447
  break;
9442
9448
  }
9443
9449
  console.log("showMsg", ne, Y);
9444
- }, N), wt = async (N, ne) => {
9450
+ }, N), Ct = async (N, ne) => {
9445
9451
  if (N && N.trim()) {
9446
9452
  N = `async (jcode) => {${N}}`;
9447
9453
  const { res: Y, fn: K } = Cs(N);
@@ -9715,7 +9721,7 @@ const Tg = /* @__PURE__ */ ie({
9715
9721
  const w = { _i: eo() };
9716
9722
  o.columns.forEach((k) => {
9717
9723
  const m = k.config?.valueRowKey || k.id || "";
9718
- m && (w[m] = fn(k.config?.defaultValue));
9724
+ m && (w[m] = hn(k.config?.defaultValue));
9719
9725
  }), g.value.push(w), i("change", {
9720
9726
  id: o.id,
9721
9727
  value: w,
@@ -10015,7 +10021,7 @@ const Tg = /* @__PURE__ */ ie({
10015
10021
  }
10016
10022
  },
10017
10023
  setup(e) {
10018
- const t = e, n = co(), { t: o } = bt(), i = R(() => t.formConfig?.gutter || 16), a = R(() => t.formConfig?.span || 24), l = R(() => t.formConfig?.labelWidth || n.labelWidth?.value), r = R(
10024
+ const t = e, n = co(), { t: o } = xt(), i = R(() => t.formConfig?.gutter || 16), a = R(() => t.formConfig?.span || 24), l = R(() => t.formConfig?.labelWidth || n.labelWidth?.value), r = R(
10019
10025
  () => t.formConfig?.labelPosition || n.labelPosition?.value || "right"
10020
10026
  ), s = R(
10021
10027
  () => t.schema?.length === 1 && (t.schema?.[0]?.type === "j-tabs" || t.schema?.[0]?.type === "j-layout" || t.schema?.[0]?.config?.isAutoWindow)
@@ -10691,11 +10697,11 @@ function Fs(e, t, n) {
10691
10697
  var F = a[P] = function(J) {
10692
10698
  i(P, J);
10693
10699
  };
10694
- T && (c[P] = T), F.$delegate = sn.bind(_, d, E, F);
10700
+ T && (c[P] = T), F.$delegate = un.bind(_, d, E, F);
10695
10701
  }
10696
10702
  function h(_, E, P) {
10697
10703
  var T = l(P);
10698
- T && sn.unbind(_, E, T.$delegate);
10704
+ T && un.unbind(_, E, T.$delegate);
10699
10705
  }
10700
10706
  function f(_) {
10701
10707
  Q(s, function(E, P) {
@@ -10768,7 +10774,7 @@ function Fs(e, t, n) {
10768
10774
  var T = Te("rect");
10769
10775
  return m(T, E), ve(T, P), j(_, T), T;
10770
10776
  }, this.updateDefaultHit = function(_, E) {
10771
- var P = kt(".djs-hit", E);
10777
+ var P = _t(".djs-hit", E);
10772
10778
  if (P)
10773
10779
  return _.waypoints ? Vs(P, _.waypoints) : ve(P, {
10774
10780
  width: _.width,
@@ -11129,18 +11135,18 @@ mn.prototype._cloneMarkers = function(e, t = "djs-dragger", n = e) {
11129
11135
  });
11130
11136
  };
11131
11137
  mn.prototype._cloneMarker = function(e, t, n, o, i = "djs-dragger") {
11132
- var a = [n.id, i, mv.next()].join("-"), l = kt("marker#" + n.id, e);
11138
+ var a = [n.id, i, mv.next()].join("-"), l = _t("marker#" + n.id, e);
11133
11139
  e = e || this._canvas._svg;
11134
11140
  var r = l || ws(n);
11135
11141
  r.id = a, Ye(r).add(i);
11136
- var s = kt(":scope > defs", e);
11142
+ var s = _t(":scope > defs", e);
11137
11143
  s || (s = Te("defs"), je(e, s)), je(s, r);
11138
11144
  var c = Cv(r.id);
11139
11145
  ve(t, o, c);
11140
11146
  };
11141
11147
  function xv(e, t, n) {
11142
11148
  var o = wv(ve(e, t));
11143
- return kt("marker#" + o, n || document);
11149
+ return _t("marker#" + o, n || document);
11144
11150
  }
11145
11151
  function wv(e) {
11146
11152
  return e.match(/url\(['"]?#([^'"]*)['"]?\)/)[1];
@@ -11480,7 +11486,7 @@ function ll(e, t, n, o) {
11480
11486
  return Math.abs(i / a) <= o;
11481
11487
  }
11482
11488
  var Bv = 2;
11483
- function cn(e, t) {
11489
+ function dn(e, t) {
11484
11490
  var n = Array.from(arguments).flat();
11485
11491
  const o = {
11486
11492
  x: "v",
@@ -11506,7 +11512,7 @@ function Oa(e, t) {
11506
11512
  y: Math.round(e.y + (t.y - e.y) / 2)
11507
11513
  };
11508
11514
  }
11509
- var Dv = /,?([a-z]),?/gi, ur = parseFloat, ot = Math, on = ot.PI, Wt = ot.min, Ut = ot.max, dr = ot.pow, un = ot.abs, zv = /([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/ig, Vv = /(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/ig, fr = Array.isArray || function(e) {
11515
+ var Dv = /,?([a-z]),?/gi, ur = parseFloat, ot = Math, ln = ot.PI, Wt = ot.min, Ut = ot.max, dr = ot.pow, fn = ot.abs, zv = /([a-z])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?[\s]*,?[\s]*)+)/ig, Vv = /(-?\d*\.?\d*(?:e[-+]?\d+)?)[\s]*,?[\s]*/ig, fr = Array.isArray || function(e) {
11510
11516
  return e instanceof Array;
11511
11517
  };
11512
11518
  function Fv(e, t) {
@@ -11586,11 +11592,11 @@ function hr(e) {
11586
11592
  t.y1 - t.y0
11587
11593
  );
11588
11594
  }
11589
- function an(e, t, n) {
11595
+ function rn(e, t, n) {
11590
11596
  return t >= e.x && t <= e.x + e.width && n >= e.y && n <= e.y + e.height;
11591
11597
  }
11592
11598
  function Gv(e, t) {
11593
- return e = Ra(e), t = Ra(t), an(t, e.x, e.y) || an(t, e.x2, e.y) || an(t, e.x, e.y2) || an(t, e.x2, e.y2) || an(e, t.x, t.y) || an(e, t.x2, t.y) || an(e, t.x, t.y2) || an(e, t.x2, t.y2) || (e.x < t.x2 && e.x > t.x || t.x < e.x2 && t.x > e.x) && (e.y < t.y2 && e.y > t.y || t.y < e.y2 && t.y > e.y);
11599
+ return e = Ra(e), t = Ra(t), rn(t, e.x, e.y) || rn(t, e.x2, e.y) || rn(t, e.x, e.y2) || rn(t, e.x2, e.y2) || rn(e, t.x, t.y) || rn(e, t.x2, t.y) || rn(e, t.x, t.y2) || rn(e, t.x2, t.y2) || (e.x < t.x2 && e.x > t.x || t.x < e.x2 && t.x > e.x) && (e.y < t.y2 && e.y > t.y || t.y < e.y2 && t.y > e.y);
11594
11600
  }
11595
11601
  function gr(e, t, n, o, i) {
11596
11602
  var a = -3 * t + 9 * n - 9 * o + 3 * i, l = e * a + 6 * t - 12 * n + 6 * o;
@@ -11630,12 +11636,12 @@ function Xv(e, t, n) {
11630
11636
  g = pr(...t, h / s), u[h] = { x: g.x, y: g.y, t: h / s };
11631
11637
  for (h = 0; h < r; h++)
11632
11638
  for (f = 0; f < s; f++) {
11633
- var v = c[h], b = c[h + 1], y = u[f], x = u[f + 1], w = un(b.x - v.x) < 0.01 ? "y" : "x", k = un(x.x - y.x) < 0.01 ? "y" : "x", m = Kv(v.x, v.y, b.x, b.y, y.x, y.y, x.x, x.y), j;
11639
+ var v = c[h], b = c[h + 1], y = u[f], x = u[f + 1], w = fn(b.x - v.x) < 0.01 ? "y" : "x", k = fn(x.x - y.x) < 0.01 ? "y" : "x", m = Kv(v.x, v.y, b.x, b.y, y.x, y.y, x.x, x.y), j;
11634
11640
  if (m) {
11635
11641
  if (j = m.x.toFixed(9) + "#" + m.y.toFixed(9), d[j])
11636
11642
  continue;
11637
11643
  d[j] = !0;
11638
- var _ = v.t + un((m[w] - v[w]) / (b[w] - v[w])) * (b.t - v.t), E = y.t + un((m[k] - y[k]) / (x[k] - y[k])) * (x.t - y.t);
11644
+ var _ = v.t + fn((m[w] - v[w]) / (b[w] - v[w])) * (b.t - v.t), E = y.t + fn((m[k] - y[k]) / (x[k] - y[k])) * (x.t - y.t);
11639
11645
  _ >= 0 && _ <= 1 && E >= 0 && E <= 1 && p.push({
11640
11646
  x: m.x,
11641
11647
  y: m.y,
@@ -11744,7 +11750,7 @@ function yr(e, t, n, o, i, a) {
11744
11750
  ];
11745
11751
  }
11746
11752
  function ec(e, t, n, o, i, a, l, r, s, c) {
11747
- var u = on * 120 / 180, d = on / 180 * (+i || 0), p = [], h, f = Hv(function(he, Ie, Xe) {
11753
+ var u = ln * 120 / 180, d = ln / 180 * (+i || 0), p = [], h, f = Hv(function(he, Ie, Xe) {
11748
11754
  var X = he * ot.cos(Xe) - Ie * ot.sin(Xe), ce = he * ot.sin(Xe) + Ie * ot.cos(Xe);
11749
11755
  return { x: X, y: ce };
11750
11756
  });
@@ -11754,11 +11760,11 @@ function ec(e, t, n, o, i, a, l, r, s, c) {
11754
11760
  h = f(e, t, -d), e = h.x, t = h.y, h = f(r, s, -d), r = h.x, s = h.y;
11755
11761
  var g = (e - r) / 2, v = (t - s) / 2, b = g * g / (n * n) + v * v / (o * o);
11756
11762
  b > 1 && (b = ot.sqrt(b), n = b * n, o = b * o);
11757
- var y = n * n, x = o * o, w = (a == l ? -1 : 1) * ot.sqrt(un((y * x - y * v * v - x * g * g) / (y * v * v + x * g * g))), k = w * n * v / o + (e + r) / 2, m = w * -o * g / n + (t + s) / 2, j = ot.asin(((t - m) / o).toFixed(9)), _ = ot.asin(((s - m) / o).toFixed(9));
11758
- j = e < k ? on - j : j, _ = r < k ? on - _ : _, j < 0 && (j = on * 2 + j), _ < 0 && (_ = on * 2 + _), l && j > _ && (j = j - on * 2), !l && _ > j && (_ = _ - on * 2);
11763
+ var y = n * n, x = o * o, w = (a == l ? -1 : 1) * ot.sqrt(fn((y * x - y * v * v - x * g * g) / (y * v * v + x * g * g))), k = w * n * v / o + (e + r) / 2, m = w * -o * g / n + (t + s) / 2, j = ot.asin(((t - m) / o).toFixed(9)), _ = ot.asin(((s - m) / o).toFixed(9));
11764
+ j = e < k ? ln - j : j, _ = r < k ? ln - _ : _, j < 0 && (j = ln * 2 + j), _ < 0 && (_ = ln * 2 + _), l && j > _ && (j = j - ln * 2), !l && _ > j && (_ = _ - ln * 2);
11759
11765
  }
11760
11766
  var E = _ - j;
11761
- if (un(E) > u) {
11767
+ if (fn(E) > u) {
11762
11768
  var P = _, T = r, F = s;
11763
11769
  _ = j + u * (l && _ > j ? 1 : -1), r = k + n * ot.cos(_), s = m + o * ot.sin(_), p = ec(r, s, n, o, i, 0, l, T, F, [_, P, k, m]);
11764
11770
  }
@@ -11773,8 +11779,8 @@ function ec(e, t, n, o, i, a, l, r, s, c) {
11773
11779
  }
11774
11780
  function Qv(e, t, n, o, i, a, l, r) {
11775
11781
  for (var s = [], c = [[], []], u, d, p, h, f, g, v, b, y = 0; y < 2; ++y) {
11776
- if (y == 0 ? (d = 6 * e - 12 * n + 6 * i, u = -3 * e + 9 * n - 9 * i + 3 * l, p = 3 * n - 3 * e) : (d = 6 * t - 12 * o + 6 * a, u = -3 * t + 9 * o - 9 * a + 3 * r, p = 3 * o - 3 * t), un(u) < 1e-12) {
11777
- if (un(d) < 1e-12)
11782
+ if (y == 0 ? (d = 6 * e - 12 * n + 6 * i, u = -3 * e + 9 * n - 9 * i + 3 * l, p = 3 * n - 3 * e) : (d = 6 * t - 12 * o + 6 * a, u = -3 * t + 9 * o - 9 * a + 3 * r, p = 3 * o - 3 * t), fn(u) < 1e-12) {
11783
+ if (fn(d) < 1e-12)
11778
11784
  continue;
11779
11785
  h = -p / d, 0 < h && h < 1 && s.push(h);
11780
11786
  continue;
@@ -11904,7 +11910,7 @@ function nm(e) {
11904
11910
  function et(e) {
11905
11911
  return Pt(e) ? nm(e) : tm(e);
11906
11912
  }
11907
- function pn(e, t, n) {
11913
+ function gn(e, t, n) {
11908
11914
  n = n || 0, Dt(n) || (n = { x: n, y: n });
11909
11915
  var o = Ve(e), i = Ve(t), a = o.bottom + n.y <= i.top, l = o.left - n.x >= i.right, r = o.top - n.y >= i.bottom, s = o.right + n.x <= i.left, c = a ? "top" : r ? "bottom" : null, u = s ? "left" : l ? "right" : null;
11910
11916
  return u && c ? c + "-" + u : u || c || "intersect";
@@ -12335,16 +12341,16 @@ function oo(e, t) {
12335
12341
  }
12336
12342
  }
12337
12343
  var gm = 1e3;
12338
- function xt(e) {
12344
+ function wt(e) {
12339
12345
  this._eventBus = e;
12340
12346
  }
12341
- xt.$inject = ["eventBus"];
12347
+ wt.$inject = ["eventBus"];
12342
12348
  function vm(e, t) {
12343
12349
  return function(n) {
12344
12350
  return e.call(t || null, n.context, n.command, n);
12345
12351
  };
12346
12352
  }
12347
- xt.prototype.on = function(e, t, n, o, i, a) {
12353
+ wt.prototype.on = function(e, t, n, o, i, a) {
12348
12354
  if ((Yt(t) || lt(t)) && (a = i, i = o, o = n, n = t, t = null), Yt(n) && (a = i, i = o, o = n, n = gm), Dt(i) && (a = i, i = !1), !Yt(o))
12349
12355
  throw new Error("handlerFn must be a function");
12350
12356
  Fe(e) || (e = [e]);
@@ -12356,23 +12362,23 @@ xt.prototype.on = function(e, t, n, o, i, a) {
12356
12362
  l.on(s, n, i ? vm(o, a) : o, a);
12357
12363
  });
12358
12364
  };
12359
- xt.prototype.canExecute = en("canExecute");
12360
- xt.prototype.preExecute = en("preExecute");
12361
- xt.prototype.preExecuted = en("preExecuted");
12362
- xt.prototype.execute = en("execute");
12363
- xt.prototype.executed = en("executed");
12364
- xt.prototype.postExecute = en("postExecute");
12365
- xt.prototype.postExecuted = en("postExecuted");
12366
- xt.prototype.revert = en("revert");
12367
- xt.prototype.reverted = en("reverted");
12368
- function en(e) {
12365
+ wt.prototype.canExecute = nn("canExecute");
12366
+ wt.prototype.preExecute = nn("preExecute");
12367
+ wt.prototype.preExecuted = nn("preExecuted");
12368
+ wt.prototype.execute = nn("execute");
12369
+ wt.prototype.executed = nn("executed");
12370
+ wt.prototype.postExecute = nn("postExecute");
12371
+ wt.prototype.postExecuted = nn("postExecuted");
12372
+ wt.prototype.revert = nn("revert");
12373
+ wt.prototype.reverted = nn("reverted");
12374
+ function nn(e) {
12369
12375
  return function(n, o, i, a, l) {
12370
12376
  (Yt(n) || lt(n)) && (l = a, a = i, i = o, o = n, n = null), this.on(n, e, o, i, a, l);
12371
12377
  };
12372
12378
  }
12373
12379
  var mm = 250, Cr = 1400;
12374
12380
  function dl(e, t, n) {
12375
- xt.call(this, t);
12381
+ wt.call(this, t);
12376
12382
  var o = e.get("movePreview", !1);
12377
12383
  t.on("shape.move.start", Cr, function(i) {
12378
12384
  var a = i.context, l = a.shapes, r = a.validatedShapes;
@@ -12409,7 +12415,7 @@ function dl(e, t, n) {
12409
12415
  r && (yn(r.labels, l, s), l.labelTarget = r);
12410
12416
  });
12411
12417
  }
12412
- Ln(dl, xt);
12418
+ Ln(dl, wt);
12413
12419
  dl.$inject = [
12414
12420
  "injector",
12415
12421
  "eventBus",
@@ -12977,7 +12983,7 @@ function bc(e, t) {
12977
12983
  });
12978
12984
  }
12979
12985
  function Om(e, t) {
12980
- return pn(t, e, 1) === "intersect";
12986
+ return gn(t, e, 1) === "intersect";
12981
12987
  }
12982
12988
  function Rm(e) {
12983
12989
  return e.original || e;
@@ -13093,11 +13099,11 @@ Go.prototype.revert = function(e) {
13093
13099
  function jr(e) {
13094
13100
  return e.original || e;
13095
13101
  }
13096
- function tn(e, t) {
13102
+ function on(e, t) {
13097
13103
  this._modeling = e, this._rules = t;
13098
13104
  }
13099
- tn.$inject = ["modeling", "rules"];
13100
- tn.prototype.preExecute = function(e) {
13105
+ on.$inject = ["modeling", "rules"];
13106
+ on.prototype.preExecute = function(e) {
13101
13107
  var t = this, n = this._modeling, o = this._rules, i = e.oldShape, a = e.newData, l = e.hints || {}, r;
13102
13108
  function s(f, g, v) {
13103
13109
  return o.allowed("connection.reconnect", {
@@ -13137,21 +13143,21 @@ tn.prototype.preExecute = function(e) {
13137
13143
  );
13138
13144
  });
13139
13145
  };
13140
- tn.prototype.postExecute = function(e) {
13146
+ on.prototype.postExecute = function(e) {
13141
13147
  var t = e.oldShape;
13142
13148
  this._modeling.removeShape(t);
13143
13149
  };
13144
- tn.prototype.execute = function(e) {
13150
+ on.prototype.execute = function(e) {
13145
13151
  };
13146
- tn.prototype.revert = function(e) {
13152
+ on.prototype.revert = function(e) {
13147
13153
  };
13148
- tn.prototype.createShape = function(e, t, n, o) {
13154
+ on.prototype.createShape = function(e, t, n, o) {
13149
13155
  return this._modeling.createShape(e, t, n, o);
13150
13156
  };
13151
- tn.prototype.reconnectStart = function(e, t, n, o) {
13157
+ on.prototype.reconnectStart = function(e, t, n, o) {
13152
13158
  this._modeling.reconnectStart(e, t, n, o);
13153
13159
  };
13154
- tn.prototype.reconnectEnd = function(e, t, n, o) {
13160
+ on.prototype.reconnectEnd = function(e, t, n, o) {
13155
13161
  this._modeling.reconnectEnd(e, t, n, o);
13156
13162
  };
13157
13163
  function Ko(e) {
@@ -13294,15 +13300,15 @@ wn.prototype.updateConnectionWaypoints = function(e, t, n, o, i, a, l) {
13294
13300
  var r = this, s = i.concat(a);
13295
13301
  Q(e, function(c) {
13296
13302
  var u = c.source, d = c.target, p = Im(c), h = xc(n), f = {};
13297
- ln(s, u) && ln(s, d) ? (p = zo(p, function(g) {
13303
+ sn(s, u) && sn(s, d) ? (p = zo(p, function(g) {
13298
13304
  return Pr(g, o, n) && (g[h] = g[h] + t[h]), g.original && Pr(g.original, o, n) && (g.original[h] = g.original[h] + t[h]), g;
13299
13305
  }), r._modeling.updateWaypoints(c, p, {
13300
13306
  labelBehavior: !1
13301
- })) : (ln(s, u) || ln(s, d)) && (ln(i, u) ? f.connectionStart = yl(c, u, t) : ln(i, d) ? f.connectionEnd = bl(c, d, t) : ln(a, u) ? f.connectionStart = vl(
13307
+ })) : (sn(s, u) || sn(s, d)) && (sn(i, u) ? f.connectionStart = yl(c, u, t) : sn(i, d) ? f.connectionEnd = bl(c, d, t) : sn(a, u) ? f.connectionStart = vl(
13302
13308
  c,
13303
13309
  u,
13304
13310
  l[u.id]
13305
- ) : ln(a, d) && (f.connectionEnd = ml(
13311
+ ) : sn(a, d) && (f.connectionEnd = ml(
13306
13312
  c,
13307
13313
  d,
13308
13314
  l[d.id]
@@ -13336,7 +13342,7 @@ function Pr(e, t, n) {
13336
13342
  if (/n|w/.test(n))
13337
13343
  return e[o] < t;
13338
13344
  }
13339
- function ln(e, t) {
13345
+ function sn(e, t) {
13340
13346
  return e.indexOf(t) !== -1;
13341
13347
  }
13342
13348
  function Bm(e) {
@@ -13425,7 +13431,7 @@ Le.prototype.getHandlers = function() {
13425
13431
  "shape.delete": Jo,
13426
13432
  "shape.move": zn,
13427
13433
  "shape.resize": Ko,
13428
- "shape.replace": tn,
13434
+ "shape.replace": on,
13429
13435
  "shape.toggleCollapse": Xi,
13430
13436
  spaceTool: wn,
13431
13437
  "label.create": Wo,
@@ -13783,7 +13789,7 @@ Xo.prototype.updateLabel = function(e, t, n, o) {
13783
13789
  });
13784
13790
  };
13785
13791
  function kl(e, t) {
13786
- xt.call(this, e);
13792
+ wt.call(this, e);
13787
13793
  function n(o) {
13788
13794
  const { context: i } = o, a = i.hints || {};
13789
13795
  let l;
@@ -13791,7 +13797,7 @@ function kl(e, t) {
13791
13797
  }
13792
13798
  this.executed(["connection.layout", "connection.create"], n);
13793
13799
  }
13794
- In(kl, xt);
13800
+ In(kl, wt);
13795
13801
  kl.$inject = ["eventBus", "connectionDocking"];
13796
13802
  function Pc() {
13797
13803
  }
@@ -13828,7 +13834,7 @@ function Jm(e, t) {
13828
13834
  }[e].test(t);
13829
13835
  }
13830
13836
  function Mc(e, t, n) {
13831
- var o = pn(t, e, Hm), i = n.split(":")[0], a = Ti((t.x - e.x) / 2 + e.x), l = Ti((t.y - e.y) / 2 + e.y), r, s, c = Jm(i, o), u = /h|r|l/.test(i), d = !1, p = !1;
13837
+ var o = gn(t, e, Hm), i = n.split(":")[0], a = Ti((t.x - e.x) / 2 + e.x), l = Ti((t.y - e.y) / 2 + e.y), r, s, c = Jm(i, o), u = /h|r|l/.test(i), d = !1, p = !1;
13832
13838
  return c ? (r = u ? { x: a, y: e.y } : { x: e.x, y: l }, s = u ? "h:h" : "v:v") : (d = Um(o, i), s = u ? "h:v" : "v:h", d ? u ? (p = l === e.y, r = {
13833
13839
  x: e.x + ui * (/l/.test(i) ? -1 : 1),
13834
13840
  y: p ? l + ui : l
@@ -13909,7 +13915,7 @@ function qm(e, t, n) {
13909
13915
  return o.unshift(e), o.push(t), Rc(o);
13910
13916
  }
13911
13917
  function Zm(e, t, n, o, i) {
13912
- var a = i && i.preferredLayouts || [], l = gd(a, "straight")[0] || "h:h", r = Wm[l] || 0, s = pn(e, t, r), c = iy(s, l);
13918
+ var a = i && i.preferredLayouts || [], l = gd(a, "straight")[0] || "h:h", r = Wm[l] || 0, s = gn(e, t, r), c = iy(s, l);
13913
13919
  n = n || et(e), o = o || et(t);
13914
13920
  var u = c.split(":"), d = Br(n, e, u[0], ly(s)), p = Br(o, t, u[1], s);
13915
13921
  return qm(d, p, c);
@@ -13931,7 +13937,7 @@ function Ir(e, t, n) {
13931
13937
  }
13932
13938
  function ty(e, t, n, o, i) {
13933
13939
  var a = {}, l, r;
13934
- return r = pn(e, t), /^(top|bottom|left|right)$/.test(r) ? (/top|bottom/.test(r) && (l = "x"), /left|right/.test(r) && (l = "y"), i.preserveDocking === "target" ? Ir(l, o, e) ? (a[l] = o[l], [
13940
+ return r = gn(e, t), /^(top|bottom|left|right)$/.test(r) ? (/top|bottom/.test(r) && (l = "x"), /left|right/.test(r) && (l = "y"), i.preserveDocking === "target" ? Ir(l, o, e) ? (a[l] = o[l], [
13935
13941
  {
13936
13942
  x: a.x !== void 0 ? a.x : n.x,
13937
13943
  y: a.y !== void 0 ? a.y : n.y,
@@ -13974,7 +13980,7 @@ function El(e, t, n, o) {
13974
13980
  });
13975
13981
  }
13976
13982
  function a(u, d, p) {
13977
- var h = cn(d, u);
13983
+ var h = dn(d, u);
13978
13984
  switch (h) {
13979
13985
  case "v":
13980
13986
  return { x: p.x, y: u.y };
@@ -13993,7 +13999,7 @@ function El(e, t, n, o) {
13993
13999
  if (i(o))
13994
14000
  return null;
13995
14001
  var r = o[0], s = o.slice(), c;
13996
- return s[0] = n, s[1] = a(s[1], r, n), c = l(s, e, t), c !== s && (s = El(e, t, n, c)), s && cn(s) ? null : s;
14002
+ return s[0] = n, s[1] = a(s[1], r, n), c = l(s, e, t), c !== s && (s = El(e, t, n, c)), s && dn(s) ? null : s;
13997
14003
  }
13998
14004
  function iy(e, t) {
13999
14005
  if (Oc(t))
@@ -14074,7 +14080,7 @@ function di(e, t) {
14074
14080
  return e ? e.original || e : et(t);
14075
14081
  }
14076
14082
  function ry(e, t) {
14077
- const { waypoints: n } = t, o = n && n.length && pn(n[0], e);
14083
+ const { waypoints: n } = t, o = n && n.length && gn(n[0], e);
14078
14084
  return o === "top" ? ["t:r"] : o === "right" ? ["r:b"] : o === "left" ? ["l:t"] : ["b:l"];
14079
14085
  }
14080
14086
  function Lr(e) {
@@ -14192,7 +14198,7 @@ function py(e) {
14192
14198
  const { x: t, y: n, width: o, height: i } = e, a = [["M", t, n], ["l", o, 0], ["l", 0, i], ["l", -o, 0], ["z"]];
14193
14199
  return Fo(a);
14194
14200
  }
14195
- const Ba = 10, da = 0.95, rn = (e, t) => e.type === t;
14201
+ const Ba = 10, da = 0.95, cn = (e, t) => e.type === t;
14196
14202
  function Fn(e, t, n, o, i, a, l) {
14197
14203
  Vn.call(this, e, l);
14198
14204
  const r = "var(--j-color-bg-container)", s = "var(--j-color-text)", c = {};
@@ -14357,7 +14363,7 @@ function Fn(e, t, n, o, i, a, l) {
14357
14363
  orient: "auto"
14358
14364
  });
14359
14365
  je(me, te);
14360
- let Se = kt(":scope > defs", se);
14366
+ let Se = _t(":scope > defs", se);
14361
14367
  Se || (Se = Te("defs"), je(se, Se)), je(Se, me);
14362
14368
  }
14363
14369
  function T(M, S, I, z) {
@@ -14611,7 +14617,7 @@ Fn.prototype.drawConnection = function(e, t) {
14611
14617
  return o(e, t);
14612
14618
  };
14613
14619
  Fn.prototype.getShapePath = function(e) {
14614
- return rn(e, "startEvent") || rn(e, "endEvent") ? uy(e) : rn(e, "userTask") || rn(e, "scriptTask") || rn(e, "subprocess") ? dy(e, Ba) : rn(e, "gatewayAnd") || rn(e, "gatewayXor") || rn(e, "gatewayInclusive") ? fy(e) : py(e);
14620
+ return cn(e, "startEvent") || cn(e, "endEvent") ? uy(e) : cn(e, "userTask") || cn(e, "scriptTask") || cn(e, "subprocess") ? dy(e, Ba) : cn(e, "gatewayAnd") || cn(e, "gatewayXor") || cn(e, "gatewayInclusive") ? fy(e) : py(e);
14615
14621
  };
14616
14622
  var hy = 0, gy = {
14617
14623
  width: 150,
@@ -15350,7 +15356,7 @@ function Yy(e, t, n, o) {
15350
15356
  }), Ye(d).add("djs-hit"), je(i, d), Av(i, o === "v" ? 90 : 0), i;
15351
15357
  }
15352
15358
  function Hc(e, t, n) {
15353
- var o = Te("g"), i = Oa(t, n), a = cn(t, n);
15359
+ var o = Te("g"), i = Oa(t, n), a = dn(t, n);
15354
15360
  return je(e, o), Yy(o, t, n, a), Ye(o).add(Nc), Ye(o).add(a === "h" ? "horizontal" : "vertical"), Gt(o, i.x, i.y), o;
15355
15361
  }
15356
15362
  function za(e) {
@@ -15377,14 +15383,14 @@ function Tl(e) {
15377
15383
  function Wc(e, t, n, o, i) {
15378
15384
  function a(x, w, k) {
15379
15385
  var m = x.index, j = x.point, _, E, P, T, F, J;
15380
- return m <= 0 || x.bendpoint ? !1 : (_ = w[m - 1], E = w[m], P = Oa(_, E), T = cn(_, E), F = Math.abs(j.x - P.x), J = Math.abs(j.y - P.y), T && F <= k && J <= k);
15386
+ return m <= 0 || x.bendpoint ? !1 : (_ = w[m - 1], E = w[m], P = Oa(_, E), T = dn(_, E), F = Math.abs(j.x - P.x), J = Math.abs(j.y - P.y), T && F <= k && J <= k);
15381
15387
  }
15382
15388
  function l(x, w) {
15383
15389
  var k = x.waypoints, m, j, _, E;
15384
15390
  return w.index <= 0 || w.bendpoint || (m = {
15385
15391
  start: k[w.index - 1],
15386
15392
  end: k[w.index]
15387
- }, j = cn(m.start, m.end), !j) ? null : (j === "h" ? _ = m.end.x - m.start.x : _ = m.end.y - m.start.y, E = za(_) / 2, E);
15393
+ }, j = dn(m.start, m.end), !j) ? null : (j === "h" ? _ = m.end.x - m.start.x : _ = m.end.y - m.start.y, E = za(_) / 2, E);
15388
15394
  }
15389
15395
  function r(x, w) {
15390
15396
  var k = w.waypoints, m = La(t, k, x), j;
@@ -15397,11 +15403,11 @@ function Wc(e, t, n, o, i) {
15397
15403
  });
15398
15404
  }
15399
15405
  function c(x, w) {
15400
- var k = t.getLayer("overlays"), m = kt('.djs-bendpoints[data-element-id="' + Tl(x.id) + '"]', k);
15406
+ var k = t.getLayer("overlays"), m = _t('.djs-bendpoints[data-element-id="' + Tl(x.id) + '"]', k);
15401
15407
  return !m && w && (m = Te("g"), ve(m, { "data-element-id": x.id }), Ye(m).add("djs-bendpoints"), je(k, m), s(m, "mousedown", x), s(m, "click", x), s(m, "dblclick", x)), m;
15402
15408
  }
15403
15409
  function u(x, w) {
15404
- return kt(
15410
+ return _t(
15405
15411
  '.djs-segment-dragger[data-segment-idx="' + x + '"]',
15406
15412
  w
15407
15413
  );
@@ -15414,7 +15420,7 @@ function Wc(e, t, n, o, i) {
15414
15420
  }
15415
15421
  function p(x, w) {
15416
15422
  for (var k = w.waypoints, m, j, _, E = 1; E < k.length; E++)
15417
- m = k[E - 1], j = k[E], cn(m, j) && (_ = Hc(x, m, j), ve(_, { "data-segment-idx": E }), s(_, "mousemove", w));
15423
+ m = k[E - 1], j = k[E], dn(m, j) && (_ = Hc(x, m, j), ve(_, { "data-segment-idx": E }), s(_, "mousemove", w));
15418
15424
  }
15419
15425
  function h(x) {
15420
15426
  Q(xa("." + Fc, x), function(w) {
@@ -15435,11 +15441,11 @@ function Wc(e, t, n, o, i) {
15435
15441
  w && (f(w), h(w), p(w, x), d(w, x));
15436
15442
  }
15437
15443
  function b(x, w) {
15438
- var k = kt(".floating", x), m = w.point;
15444
+ var k = _t(".floating", x), m = w.point;
15439
15445
  k && Gt(k, m.x, m.y);
15440
15446
  }
15441
15447
  function y(x, w, k) {
15442
- var m = u(w.index, x), j = k[w.index - 1], _ = k[w.index], E = w.point, P = Oa(j, _), T = cn(j, _), F, J;
15448
+ var m = u(w.index, x), j = k[w.index - 1], _ = k[w.index], E = w.point, P = Oa(j, _), T = dn(j, _), F, J;
15443
15449
  m && (F = qy(m), J = {
15444
15450
  x: E.x - P.x,
15445
15451
  y: E.y - P.y
@@ -15493,7 +15499,7 @@ Wc.$inject = [
15493
15499
  "connectionSegmentMove"
15494
15500
  ];
15495
15501
  function qy(e) {
15496
- return kt(".djs-visual", e);
15502
+ return _t(".djs-visual", e);
15497
15503
  }
15498
15504
  var Nr = Math.round, Mn = "reconnectStart", On = "reconnectEnd", _o = "updateWaypoints";
15499
15505
  function Pl(e, t, n, o, i, a) {
@@ -15646,7 +15652,7 @@ function Yc(e, t, n, o, i, a) {
15646
15652
  var l = e.get("connectionDocking", !1);
15647
15653
  this.start = function(d, p, h) {
15648
15654
  var f, g = n.getGraphics(p), v = h - 1, b = h, y = p.waypoints, x = y[v], w = y[b], k = La(n, y, d), m, j, _;
15649
- m = cn(x, w), m && (j = m === "v" ? "x" : "y", v === 0 && (x = qr(x, p.source, j)), b === y.length - 1 && (w = qr(w, p.target, j)), k ? _ = k.point : _ = {
15655
+ m = dn(x, w), m && (j = m === "v" ? "x" : "y", v === 0 && (x = qr(x, p.source, j)), b === y.length - 1 && (w = qr(w, p.target, j)), k ? _ = k.point : _ = {
15650
15656
  x: (x.x + w.x) / 2,
15651
15657
  y: (x.y + w.y) / 2
15652
15658
  }, f = {
@@ -15695,7 +15701,7 @@ function Yc(e, t, n, o, i, a) {
15695
15701
  var p = d.context, h = p.connection, f = p.segmentStartIndex, g = p.segmentEndIndex, v = p.segmentStart, b = p.segmentEnd, y = p.axis, x = p.originalWaypoints.slice(), w = Xr(v, y, d["d" + y]), k = Xr(b, y, d["d" + y]), m = x.length, j = 0;
15696
15702
  x[f] = w, x[g] = k;
15697
15703
  var _, E;
15698
- f < 2 && (_ = pn(h.source, w), f === 1 ? _ === "intersect" && (x.shift(), x[0] = w, j--) : _ !== "intersect" && (x.unshift(v), j++)), g > m - 3 && (E = pn(h.target, k), g === m - 2 ? E === "intersect" && (x.pop(), x[x.length - 1] = k) : E !== "intersect" && x.push(b)), p.newWaypoints = h.waypoints = r(h, x), c(p, j, d), p.newSegmentStartIndex = f + j, s(d);
15704
+ f < 2 && (_ = gn(h.source, w), f === 1 ? _ === "intersect" && (x.shift(), x[0] = w, j--) : _ !== "intersect" && (x.unshift(v), j++)), g > m - 3 && (E = gn(h.target, k), g === m - 2 ? E === "intersect" && (x.pop(), x[x.length - 1] = k) : E !== "intersect" && x.push(b)), p.newWaypoints = h.waypoints = r(h, x), c(p, j, d), p.newSegmentStartIndex = f + j, s(d);
15699
15705
  }), t.on("connectionSegment.move.hover", function(d) {
15700
15706
  d.context.hover = d.hover, n.addMarker(d.hover, Gr);
15701
15707
  }), t.on([
@@ -15876,16 +15882,16 @@ const lb = {
15876
15882
  bendpointSnapping: ["type", Kc]
15877
15883
  };
15878
15884
  var rb = "djs-dragger";
15879
- function nn(e, t, n, o) {
15885
+ function an(e, t, n, o) {
15880
15886
  this._canvas = t, this._graphicsFactory = n, this._elementFactory = o, this._connectionDocking = e.get("connectionDocking", !1), this._layouter = e.get("layouter", !1);
15881
15887
  }
15882
- nn.$inject = [
15888
+ an.$inject = [
15883
15889
  "injector",
15884
15890
  "canvas",
15885
15891
  "graphicsFactory",
15886
15892
  "elementFactory"
15887
15893
  ];
15888
- nn.prototype.drawPreview = function(e, t, n) {
15894
+ an.prototype.drawPreview = function(e, t, n) {
15889
15895
  n = n || {};
15890
15896
  var o = e.connectionPreviewGfx, i = e.getConnection, a = n.source, l = n.target, r = n.waypoints, s = n.connectionStart, c = n.connectionEnd, u = n.noLayout, d = n.noCropping, p = n.noNoop, h, f = this;
15891
15897
  if (o || (o = e.connectionPreviewGfx = this.createConnectionPreviewGfx()), Xa(o), i || (i = e.getConnection = sb(function(g, v, b) {
@@ -15907,28 +15913,28 @@ nn.prototype.drawPreview = function(e, t, n) {
15907
15913
  stroke: "var(--element-dragger-color)"
15908
15914
  });
15909
15915
  };
15910
- nn.prototype.drawNoopPreview = function(e, t) {
15916
+ an.prototype.drawNoopPreview = function(e, t) {
15911
15917
  var n = t.source, o = t.target, i = t.connectionStart || et(n), a = t.connectionEnd || et(o), l = this.cropWaypoints(i, a, n, o), r = this.createNoopConnection(l[0], l[1]);
15912
15918
  je(e, r);
15913
15919
  };
15914
- nn.prototype.cropWaypoints = function(e, t, n, o) {
15920
+ an.prototype.cropWaypoints = function(e, t, n, o) {
15915
15921
  var i = this._graphicsFactory, a = n && i.getShapePath(n), l = o && i.getShapePath(o), r = i.getConnectionPath({ waypoints: [e, t] });
15916
15922
  return e = n && $a(a, r, !0) || e, t = o && $a(l, r, !1) || t, [e, t];
15917
15923
  };
15918
- nn.prototype.cleanUp = function(e) {
15924
+ an.prototype.cleanUp = function(e) {
15919
15925
  e && e.connectionPreviewGfx && At(e.connectionPreviewGfx);
15920
15926
  };
15921
- nn.prototype.getConnection = function(e) {
15927
+ an.prototype.getConnection = function(e) {
15922
15928
  var t = cb(e);
15923
15929
  return this._elementFactory.createConnection(t);
15924
15930
  };
15925
- nn.prototype.createConnectionPreviewGfx = function() {
15931
+ an.prototype.createConnectionPreviewGfx = function() {
15926
15932
  var e = Te("g");
15927
15933
  return ve(e, {
15928
15934
  pointerEvents: "none"
15929
15935
  }), Ye(e).add(rb), je(this._canvas.getActiveLayer(), e), e;
15930
15936
  };
15931
- nn.prototype.createNoopConnection = function(e, t) {
15937
+ an.prototype.createNoopConnection = function(e, t) {
15932
15938
  return el([e, t], {
15933
15939
  stroke: "#333",
15934
15940
  strokeDasharray: [1],
@@ -15948,7 +15954,7 @@ function cb(e) {
15948
15954
  }
15949
15955
  const ub = {
15950
15956
  __init__: ["connectionPreview"],
15951
- connectionPreview: ["type", nn]
15957
+ connectionPreview: ["type", an]
15952
15958
  };
15953
15959
  var db = new Vi("ov"), fb = 500;
15954
15960
  function pt(e, t, n, o) {
@@ -16284,7 +16290,7 @@ at.prototype._updateAndOpen = function(e) {
16284
16290
  var t = this.getEntries(e), n = this._createHtml(e), o;
16285
16291
  Q(t, function(i, a) {
16286
16292
  var l = i.group || "default", r = $t(i.html || '<div class="entry" draggable="true"></div>'), s;
16287
- Nt(r, "data-action", a), s = kt("[data-group=" + Tl(l) + "]", n), s || (s = $t('<div class="group"></div>'), Nt(s, "data-group", l), n.appendChild(s)), s.appendChild(r), i.className && wb(r, i.className), i.title && Nt(r, "title", i.title), i.imageUrl && (o = $t("<img>"), Nt(o, "src", i.imageUrl), o.style.width = "100%", o.style.height = "100%", r.appendChild(o));
16293
+ Nt(r, "data-action", a), s = _t("[data-group=" + Tl(l) + "]", n), s || (s = $t('<div class="group"></div>'), Nt(s, "data-group", l), n.appendChild(s)), s.appendChild(r), i.className && wb(r, i.className), i.title && Nt(r, "title", i.title), i.imageUrl && (o = $t("<img>"), Nt(o, "src", i.imageUrl), o.style.width = "100%", o.style.height = "100%", r.appendChild(o));
16288
16294
  }), Rt(n).add("open"), this._current = {
16289
16295
  entries: t,
16290
16296
  html: n,
@@ -16293,13 +16299,13 @@ at.prototype._updateAndOpen = function(e) {
16293
16299
  };
16294
16300
  at.prototype._createHtml = function(e) {
16295
16301
  var t = this, n = $t('<div class="djs-context-pad"></div>');
16296
- return sn.bind(n, gi, "click", function(o) {
16302
+ return un.bind(n, gi, "click", function(o) {
16297
16303
  t.trigger("click", o);
16298
- }), sn.bind(n, gi, "dragstart", function(o) {
16304
+ }), un.bind(n, gi, "dragstart", function(o) {
16299
16305
  t.trigger("dragstart", o);
16300
- }), sn.bind(n, gi, "mouseover", function(o) {
16306
+ }), un.bind(n, gi, "mouseover", function(o) {
16301
16307
  t.trigger("mouseover", o);
16302
- }), sn.bind(n, gi, "mouseout", function(o) {
16308
+ }), un.bind(n, gi, "mouseout", function(o) {
16303
16309
  t.trigger("mouseout", o);
16304
16310
  }), ze.bind(n, "mousedown", function(o) {
16305
16311
  o.stopPropagation();
@@ -16812,10 +16818,10 @@ function Wn(e, t) {
16812
16818
  }, n)), l;
16813
16819
  }
16814
16820
  e.on(["shape.added", "shape.changed"], Ob, function(a) {
16815
- var l = a.element, r = a.gfx, s = kt(".djs-outline", r);
16821
+ var l = a.element, r = a.gfx, s = _t(".djs-outline", r);
16816
16822
  s || (s = o.getOutline(l) || i(), je(r, s)), o.updateShapeOutline(s, l);
16817
16823
  }), e.on(["connection.added", "connection.changed"], function(a) {
16818
- var l = a.element, r = a.gfx, s = kt(".djs-outline", r);
16824
+ var l = a.element, r = a.gfx, s = _t(".djs-outline", r);
16819
16825
  s || (s = i(), je(r, s)), o.updateConnectionOutline(s, l);
16820
16826
  });
16821
16827
  }
@@ -17091,14 +17097,14 @@ it.prototype._rebuild = function() {
17091
17097
  };
17092
17098
  it.prototype._init = function() {
17093
17099
  var e = this, t = this._eventBus, n = this._getParentContainer(), o = this._container = $t(it.HTML_MARKUP);
17094
- n.appendChild(o), Rt(n).add(Va + Hb), sn.bind(o, Nb, "click", function(i) {
17100
+ n.appendChild(o), Rt(n).add(Va + Hb), un.bind(o, Nb, "click", function(i) {
17095
17101
  var a = i.delegateTarget;
17096
17102
  if (ud(a, ou))
17097
17103
  return e.toggle();
17098
17104
  e.trigger("click", i);
17099
17105
  }), ze.bind(o, "mousedown", function(i) {
17100
17106
  i.stopPropagation();
17101
- }), sn.bind(o, iu, "dragstart", function(i) {
17107
+ }), un.bind(o, iu, "dragstart", function(i) {
17102
17108
  e.trigger("dragstart", i);
17103
17109
  }), t.on("canvas.resized", this._layoutChanged, this), t.fire("palette.create", {
17104
17110
  container: o
@@ -17120,9 +17126,9 @@ it.prototype._toggleState = function(e) {
17120
17126
  });
17121
17127
  };
17122
17128
  it.prototype._update = function() {
17123
- var e = kt(".djs-palette-entries", this._container), t = this._entries = this.getEntries();
17129
+ var e = _t(".djs-palette-entries", this._container), t = this._entries = this.getEntries();
17124
17130
  ys(e), Q(t, function(n, o) {
17125
- var i = n.group || "default", a = kt("[data-group=" + Tl(i) + "]", e);
17131
+ var i = n.group || "default", a = _t("[data-group=" + Tl(i) + "]", e);
17126
17132
  a || (a = $t('<div class="group"></div>'), Nt(a, "data-group", i), e.appendChild(a));
17127
17133
  var l = n.html || (n.separator ? '<hr class="separator" />' : '<div class="entry" draggable="true"></div>'), r = $t(l);
17128
17134
  if (a.appendChild(r), !n.separator && (Nt(r, "data-action", o), n.title && Nt(r, "title", n.title), n.className && Ub(r, n.className), n.imageUrl)) {
@@ -17170,7 +17176,7 @@ it.prototype.isActiveTool = function(e) {
17170
17176
  };
17171
17177
  it.prototype.updateToolHighlight = function(e) {
17172
17178
  var t, n;
17173
- this._toolsContainer || (t = kt(".djs-palette-entries", this._container), this._toolsContainer = kt("[data-group=tools]", t)), n = this._toolsContainer, Q(n.children, function(o) {
17179
+ this._toolsContainer || (t = _t(".djs-palette-entries", this._container), this._toolsContainer = _t("[data-group=tools]", t)), n = this._toolsContainer, Q(n.children, function(o) {
17174
17180
  var i = o.getAttribute("data-action");
17175
17181
  if (i) {
17176
17182
  var a = Rt(o);
@@ -17860,10 +17866,10 @@ const bx = {
17860
17866
  createMoveSnapping: ["type", xo]
17861
17867
  };
17862
17868
  function wo(e) {
17863
- xt.call(this, e), this.init();
17869
+ wt.call(this, e), this.init();
17864
17870
  }
17865
17871
  wo.$inject = ["eventBus"];
17866
- Ln(wo, xt);
17872
+ Ln(wo, wt);
17867
17873
  wo.prototype.addRule = function(e, t, n) {
17868
17874
  var o = this;
17869
17875
  typeof e == "string" && (e = [e]), e.forEach(function(i) {
@@ -18099,7 +18105,7 @@ function Ax(e, t, n) {
18099
18105
  width: n.width,
18100
18106
  height: n.height
18101
18107
  }, i = $x(e);
18102
- return Jt(i, (a) => a === n ? !1 : pn(a, o, Px) === "intersect");
18108
+ return Jt(i, (a) => a === n ? !1 : gn(a, o, Px) === "intersect");
18103
18109
  }
18104
18110
  function Ix(e, t, n, o) {
18105
18111
  let i;
@@ -18467,13 +18473,14 @@ const Fx = {
18467
18473
  Ux.forEach((t) => {
18468
18474
  e.component(t.name, t);
18469
18475
  });
18470
- }, N0 = {
18476
+ }, W0 = {
18471
18477
  install: Jx
18472
18478
  };
18473
18479
  export {
18474
18480
  Vd as EncryptionFactory,
18475
18481
  Ts as EventBus,
18476
18482
  z0 as HashingFactory,
18483
+ yt as INJECT_KEYS,
18477
18484
  Cf as JAutoComplete,
18478
18485
  Wp as JBarcode,
18479
18486
  _a as JButton,
@@ -18531,8 +18538,8 @@ export {
18531
18538
  eo as buildUUID,
18532
18539
  ki as clearJson,
18533
18540
  Ea as clone,
18534
- fn as deepClone,
18535
- N0 as default,
18541
+ hn as deepClone,
18542
+ W0 as default,
18536
18543
  F0 as eventBus,
18537
18544
  ii as formatToDate,
18538
18545
  Bd as formatToDateTime,
@@ -18547,7 +18554,7 @@ export {
18547
18554
  Po as getTextWidth,
18548
18555
  xd as is,
18549
18556
  ka as isArray,
18550
- dn as isNullOrEmpty,
18557
+ pn as isNullOrEmpty,
18551
18558
  R0 as isObject,
18552
18559
  Nd as loadBMap,
18553
18560
  B0 as lowerFirst,
@@ -18565,6 +18572,26 @@ export {
18565
18572
  L0 as toTree,
18566
18573
  I0 as uniqueArray,
18567
18574
  Td as upFirst,
18575
+ xt as useAppInject,
18576
+ N0 as useAppProvide,
18577
+ Gd as useAuthPageInject,
18578
+ Kd as useAuthPageProvide,
18579
+ Wd as useCompInject,
18580
+ Ms as useCompProvide,
18581
+ co as useFormInject,
18582
+ Ps as useFormProvide,
18583
+ Jd as useHMenuInject,
18584
+ Yd as useHMenuProvide,
18585
+ en as useInject,
18568
18586
  Di as useLayer,
18569
- Fd as useSortable
18587
+ H0 as useLayerInject,
18588
+ Xd as useLayerProvide,
18589
+ Vo as useMenuInject,
18590
+ Ud as useMenuProvide,
18591
+ qd as usePageInject,
18592
+ Zd as usePageProvide,
18593
+ tn as useProvide,
18594
+ Fd as useSortable,
18595
+ Hd as useTableInject,
18596
+ Qa as useTableProvide
18570
18597
  };