mx-framework-plus 1.1.3 → 1.1.4

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.
@@ -4448,20 +4448,20 @@ function Me(t) {
4448
4448
  // 继承样式
4449
4449
  ), U = 10, I = 10, R = g.getCellGeometry(h);
4450
4450
  let $ = R.getTerminalPoint(!0), T = R.getTerminalPoint(!1);
4451
- var K = new mxGeometry();
4452
- K.setTerminalPoint(
4451
+ var G = new mxGeometry();
4452
+ G.setTerminalPoint(
4453
4453
  new mxPoint(
4454
4454
  $.x + U,
4455
4455
  $.y + I
4456
4456
  ),
4457
4457
  !0
4458
- ), K.setTerminalPoint(
4458
+ ), G.setTerminalPoint(
4459
4459
  new mxPoint(
4460
4460
  T.x + U,
4461
4461
  T.y + I
4462
4462
  ),
4463
4463
  !1
4464
- ), C.setGeometry(K), C.value = h.value, C.type = h.type, C.model = "yes", C.type = "edge", C.iconName = h.iconName, k(C);
4464
+ ), C.setGeometry(G), C.value = h.value, C.type = h.type, C.model = "yes", C.type = "edge", C.iconName = h.iconName, k(C);
4465
4465
  } finally {
4466
4466
  z.endUpdate();
4467
4467
  }
@@ -4555,8 +4555,8 @@ function Tt(t) {
4555
4555
  let $ = C.value.style || {};
4556
4556
  $.background && $.background.indexOf("files/") > -1 && $["background-image"] ? I.style.background = `${$["background-image"]} center center no-repeat` : I.style.background = "";
4557
4557
  }
4558
- let K = k.container.querySelector("#gridCanvas_" + C.id);
4559
- K && K.remove(), k.container.prepend(I), I.width = I.offsetWidth, I.height = I.offsetHeight, U ? s = "transparent" : s = "#dddddd", A(I), I.addEventListener("wheel", function($) {
4558
+ let G = k.container.querySelector("#gridCanvas_" + C.id);
4559
+ G && G.remove(), k.container.prepend(I), I.width = I.offsetWidth, I.height = I.offsetHeight, U ? s = "transparent" : s = "#dddddd", A(I), I.addEventListener("wheel", function($) {
4560
4560
  $.preventDefault();
4561
4561
  const T = I.getBoundingClientRect(), Z = $.clientX - T.left, te = $.clientY - T.top, ie = 0.1, oe = $.deltaY < 0 ? 1 : -1, ce = Math.exp(oe * ie), ye = Z / h, fe = te / h;
4562
4562
  h *= ce, h = Math.min(Math.max(0.5, h), 5), x = ye - Z / h, g = fe - te / h, A(I), k && (k.view.scale = h, k.refresh());
@@ -4567,8 +4567,8 @@ function Tt(t) {
4567
4567
  if (!k) return;
4568
4568
  k.snapPoint = function(C, U, I) {
4569
4569
  if (!I && this.snapToGrid && l > 0) {
4570
- const R = l / h, K = C.x - x, $ = C.y - g;
4571
- C.x = Math.round(K / R) * R + x, C.y = Math.round($ / R) * R + g;
4570
+ const R = l / h, G = C.x - x, $ = C.y - g;
4571
+ C.x = Math.round(G / R) * R + x, C.y = Math.round($ / R) * R + g;
4572
4572
  }
4573
4573
  return C;
4574
4574
  };
@@ -4584,8 +4584,8 @@ function Tt(t) {
4584
4584
  for (let C = 0; C < z.length; C++) {
4585
4585
  const U = z[C], I = this.getCellGeometry(U);
4586
4586
  if (I) {
4587
- const R = I.clone(), K = this.snapPoint({ x: R.x, y: R.y });
4588
- R.x = K.x, R.y = K.y, this.getModel().setGeometry(U, R);
4587
+ const R = I.clone(), G = this.snapPoint({ x: R.x, y: R.y });
4588
+ R.x = G.x, R.y = G.y, this.getModel().setGeometry(U, R);
4589
4589
  }
4590
4590
  }
4591
4591
  } finally {
@@ -4600,17 +4600,17 @@ function Tt(t) {
4600
4600
  const U = l * h;
4601
4601
  if (U < 2) return;
4602
4602
  C.strokeStyle = s, C.lineWidth = m, C.globalAlpha = v;
4603
- const I = Math.floor(-x * h / U) * U, R = Math.floor(-g * h / U) * U, K = z.width + U, $ = z.height + U;
4603
+ const I = Math.floor(-x * h / U) * U, R = Math.floor(-g * h / U) * U, G = z.width + U, $ = z.height + U;
4604
4604
  switch (p) {
4605
4605
  case "dotted":
4606
4606
  C.fillStyle = s;
4607
- for (let T = I; T < K; T += U)
4607
+ for (let T = I; T < G; T += U)
4608
4608
  for (let Z = R; Z < $; Z += U)
4609
4609
  C.beginPath(), C.arc(T + 0.5, Z + 0.5, m, 0, Math.PI * 2), C.fill();
4610
4610
  break;
4611
4611
  case "dashed":
4612
4612
  C.setLineDash([5, 3]), C.beginPath();
4613
- for (let T = I; T < K; T += U)
4613
+ for (let T = I; T < G; T += U)
4614
4614
  C.moveTo(T + 0.5, 0), C.lineTo(T + 0.5, z.height);
4615
4615
  for (let T = R; T < $; T += U)
4616
4616
  C.moveTo(0, T + 0.5), C.lineTo(z.width, T + 0.5);
@@ -4618,7 +4618,7 @@ function Tt(t) {
4618
4618
  break;
4619
4619
  case "square":
4620
4620
  C.beginPath();
4621
- for (let T = I; T < K; T += U)
4621
+ for (let T = I; T < G; T += U)
4622
4622
  C.moveTo(T + 0.5, 0), C.lineTo(T + 0.5, z.height);
4623
4623
  for (let T = R; T < $; T += U)
4624
4624
  C.moveTo(0, T + 0.5), C.lineTo(z.width, T + 0.5);
@@ -4626,7 +4626,7 @@ function Tt(t) {
4626
4626
  break;
4627
4627
  default:
4628
4628
  C.beginPath();
4629
- for (let T = I; T < K; T += U)
4629
+ for (let T = I; T < G; T += U)
4630
4630
  C.moveTo(T + 0.5, 0), C.lineTo(T + 0.5, z.height);
4631
4631
  for (let T = R; T < $; T += U)
4632
4632
  C.moveTo(0, T + 0.5), C.lineTo(z.width, T + 0.5);
@@ -5534,7 +5534,7 @@ function je(t) {
5534
5534
  e.firstStyle = !1;
5535
5535
  }
5536
5536
  }, i.view.scaleGrid = !0, i.view.roundPoints = !0, mxSvgCanvas2D.prototype.updateTextNodes = function(w, E, L, O, M, B, F, V, H, W, q) {
5537
- var G = this.state.scale;
5537
+ var K = this.state.scale;
5538
5538
  mxSvgCanvas2D.createCss(
5539
5539
  L + 2,
5540
5540
  O,
@@ -5547,11 +5547,11 @@ function je(t) {
5547
5547
  this.state.fontBorderColor != null ? this.state.fontBorderColor : null,
5548
5548
  "display: flex; align-items: unsafe " + (B == mxConstants.ALIGN_TOP ? "flex-start" : B == mxConstants.ALIGN_BOTTOM ? "flex-end" : "center") + "; justify-content: unsafe " + (M == mxConstants.ALIGN_LEFT ? "flex-start" : M == mxConstants.ALIGN_RIGHT ? "flex-end" : "center") + "; ",
5549
5549
  this.getTextCss(),
5550
- G,
5550
+ K,
5551
5551
  mxUtils.bind(this, function(ne, re, Y, se, X) {
5552
5552
  w += this.state.dx, E += this.state.dy;
5553
- var he = q.firstChild, Ue = he.firstChild, Le = Ue.firstChild, et = Le.firstChild, Pe = (this.rotateHtml ? this.state.rotation : 0) + (W ?? 0), Ce = (this.foOffset != 0 ? "translate(" + this.foOffset + " " + this.foOffset + ")" : "") + (G != 1 ? "scale(" + G + ")" : "");
5554
- et.setAttribute("style", X), Le.setAttribute("style", se), he.setAttribute("width", Math.ceil(1 / Math.min(1, G) * 100) + "%"), he.setAttribute("height", Math.ceil(1 / Math.min(1, G) * 100) + "%");
5553
+ var he = q.firstChild, Ue = he.firstChild, Le = Ue.firstChild, et = Le.firstChild, Pe = (this.rotateHtml ? this.state.rotation : 0) + (W ?? 0), Ce = (this.foOffset != 0 ? "translate(" + this.foOffset + " " + this.foOffset + ")" : "") + (K != 1 ? "scale(" + K + ")" : "");
5554
+ et.setAttribute("style", X), Le.setAttribute("style", se), he.setAttribute("width", Math.ceil(1 / Math.min(1, K) * 100) + "%"), he.setAttribute("height", Math.ceil(1 / Math.min(1, K) * 100) + "%");
5555
5555
  let ge = Math.round(E + re), tt = Math.round(w + ne), lt = s(ge), at = s(tt);
5556
5556
  if (ge < 0)
5557
5557
  he.setAttribute("y", ge);
@@ -5943,12 +5943,12 @@ function je(t) {
5943
5943
  return i === "gap" && (y = `${o}px`), `${i}=${y}`;
5944
5944
  }).join("; ") + ";" : "";
5945
5945
  }
5946
- function K(a) {
5946
+ function G(a) {
5947
5947
  const u = String(a).match(/\d+/);
5948
5948
  return u ? Number(u[0]) : null;
5949
5949
  }
5950
5950
  function $(a, n, u) {
5951
- let d = a.value, o = K(d);
5951
+ let d = a.value, o = G(d);
5952
5952
  return n === "-inf" ? o <= u : u === "+inf" ? o >= n : o >= n && o <= u;
5953
5953
  }
5954
5954
  function T(a, n) {
@@ -6124,8 +6124,8 @@ function je(t) {
6124
6124
  f && (M = u.getPointForEvent(f));
6125
6125
  let B = ue(), F = u.insertEdge(d, null, "", null, null, w.perimeter + `;strokeWidth=${w.strokeWidth || 1};strokeColor=${w.strokeColor || "#333333"}`);
6126
6126
  F.id = B;
6127
- let V = new mxGeometry(), { startX: H, startY: W, endX: q, endY: G } = ze(M, E, L);
6128
- V.setTerminalPoint(new mxPoint(H, W), !0), V.setTerminalPoint(new mxPoint(q, G), !1), F.setGeometry(V), F.model = "yes", F.type = "edge", F.iconName = O, F.value = {
6127
+ let V = new mxGeometry(), { startX: H, startY: W, endX: q, endY: K } = ze(M, E, L);
6128
+ V.setTerminalPoint(new mxPoint(H, W), !0), V.setTerminalPoint(new mxPoint(q, K), !1), F.setGeometry(V), F.model = "yes", F.type = "edge", F.iconName = O, F.value = {
6129
6129
  data: { ...b },
6130
6130
  //存储对象
6131
6131
  style: { ...w }
@@ -6158,9 +6158,9 @@ function je(t) {
6158
6158
  se.value = W;
6159
6159
  }
6160
6160
  b.layout = W;
6161
- let G = n.getDefaultParent();
6161
+ let K = n.getDefaultParent();
6162
6162
  ce(n, null);
6163
- let ne = R(b), re = ue(), Y = n.insertVertex(G, re, b.text || "", H.x, H.y, F, V, ne);
6163
+ let ne = R(b), re = ue(), Y = n.insertVertex(K, re, b.text || "", H.x, H.y, F, V, ne);
6164
6164
  Y.crtype = "creatComp", Y.cmp = L, Y.codeType = O, Y.type = E, Y.realType = B, Y.model = "yes", Y.name = b.text || "", Y.iconName = M, Y.style = ne, Y.value = {
6165
6165
  data: c,
6166
6166
  //存储对象
@@ -6195,14 +6195,14 @@ function je(t) {
6195
6195
  }
6196
6196
  let W = R(b);
6197
6197
  b.gtype == "rect" && (Number(b.borderValue) === 0 && (b.stroke = "transparent"), W = b.perimeter + `;fillColor=${b.background || "transparent"};strokeColor=${b.stroke || "#333333"};strokeWidth=${b.borderWidth || 0}`);
6198
- let q = ue(), G = n.insertVertex(B, q, b.text || "", M.x, M.y, S, w, W);
6199
- b.gtype == "rect" ? G.type = "rect" : G.type = "vertex", G.model = "yes", G.name = b.text || "", G.iconName = E, G.value = {
6198
+ let q = ue(), K = n.insertVertex(B, q, b.text || "", M.x, M.y, S, w, W);
6199
+ b.gtype == "rect" ? K.type = "rect" : K.type = "vertex", K.model = "yes", K.name = b.text || "", K.iconName = E, K.value = {
6200
6200
  data: { ...c },
6201
6201
  //存储对象
6202
6202
  style: { ...b }
6203
6203
  //存储样式对象
6204
- }, G.from = O || "other", G.realType = L, G.style = W, d.push(G), n.fireEvent(new mxEventObject(mxEvent.SELECTION_CHANGED, {
6205
- cells: [G]
6204
+ }, K.from = O || "other", K.realType = L, K.style = W, d.push(K), n.fireEvent(new mxEventObject(mxEvent.SELECTION_CHANGED, {
6205
+ cells: [K]
6206
6206
  }));
6207
6207
  }
6208
6208
  n.setSelectionCells(d);
@@ -6293,9 +6293,9 @@ function je(t) {
6293
6293
  height: H,
6294
6294
  x: W.x,
6295
6295
  y: W.y
6296
- }, G = i.children;
6297
- if (G && G.length > 0) {
6298
- let Y = G.find((se) => se.key == "layout");
6296
+ }, K = i.children;
6297
+ if (K && K.length > 0) {
6298
+ let Y = K.find((se) => se.key == "layout");
6299
6299
  Y.value = q;
6300
6300
  }
6301
6301
  f.layout = q;
@@ -7191,10 +7191,12 @@ const $e = {
7191
7191
  "mxWindowTitle"
7192
7192
  );
7193
7193
  U.setClosable(!0), U.setMaximizable(!0), U.setScrollable(!0), U.setResizable(!0), U.setVisible(e), U.constrainWithinViewport = !0, U.addListener(mxEvent.CLOSE, function(I, R) {
7194
- l.isShowPup = !1, document.body.removeChild(z), z.style.display = "none";
7194
+ l.isShowPup = !1, C && C.length > 0 && C.forEach((G) => {
7195
+ document.body.removeChild(G);
7196
+ }), z.style.display = "none";
7195
7197
  }), U.addListener(mxEvent.MOVE, function(I, R) {
7196
- var K = U.getX(), $ = U.getY(), T = U.getElement().offsetWidth, Z = U.getElement().offsetHeight, te = document.documentElement.clientWidth, ie = document.documentElement.clientHeight, oe = 0, ce = 0, ye = te - T, fe = ie - Z;
7197
- K = Math.max(oe, Math.min(K, ye)), $ = Math.max(ce, Math.min($, fe)), U.setLocation(K, $);
7198
+ var G = U.getX(), $ = U.getY(), T = U.getElement().offsetWidth, Z = U.getElement().offsetHeight, te = document.documentElement.clientWidth, ie = document.documentElement.clientHeight, oe = 0, ce = 0, ye = te - T, fe = ie - Z;
7199
+ G = Math.max(oe, Math.min(G, ye)), $ = Math.max(ce, Math.min($, fe)), U.setLocation(G, $);
7198
7200
  }), U.div && C.length === 0 && (U.div.style.zIndex = 2e3 + m, z.className = "mx-window-mask", z.style.zIndex = 30 + m, document.body.appendChild(z), z.style.display = "block"), s.push(U);
7199
7201
  }), l.centeredWindow = s, l.wndAry = s;
7200
7202
  }
@@ -7502,7 +7504,7 @@ const jl = /* @__PURE__ */ ae(zl, [["render", Pl]]), Tl = {
7502
7504
  A.setClosable(!0), A.setMaximizable(!1), A.setResizable(!0), A.setVisible(e), A.constrainWithinViewport = !0, A.addListener(mxEvent.CLOSE, function(z, C) {
7503
7505
  l.isShowPup = !1;
7504
7506
  }), A.addListener(mxEvent.MOVE, function(z, C) {
7505
- var U = A.getX(), I = A.getY(), R = A.getElement().offsetWidth, K = A.getElement().offsetHeight, $ = document.documentElement.clientWidth, T = document.documentElement.clientHeight, Z = 0, te = 0, ie = $ - R, oe = T - K;
7507
+ var U = A.getX(), I = A.getY(), R = A.getElement().offsetWidth, G = A.getElement().offsetHeight, $ = document.documentElement.clientWidth, T = document.documentElement.clientHeight, Z = 0, te = 0, ie = $ - R, oe = T - G;
7506
7508
  U = Math.max(Z, Math.min(U, ie)), I = Math.max(te, Math.min(I, oe)), A.setLocation(U, I);
7507
7509
  }), s.push(A);
7508
7510
  }), window.centeredWindow = s, l.wndAry = s;
@@ -1,5 +1,5 @@
1
1
  (function(J,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("element-plus"),require("element-plus/dist/index.css"),require("yhz-ui-v3"),require("yhz-ui-v3/dist/index.css")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","element-plus/dist/index.css","yhz-ui-v3","yhz-ui-v3/dist/index.css"],r):(J=typeof globalThis<"u"?globalThis:J||self,r(J["mx-framework-plus"]={},J.Vue,J.ElementPlus,null,J.yhzUiV3))})(this,function(J,r,Oe,xa,Ve){"use strict";var be=document.createElement("style");be.textContent=`.geEditor{font-family:Helvetica,Arial,sans-serif;font-size:14px;border:none;margin:0}.geEditor input[type=text]::-ms-clear{display:none}.geEditor input,select,textarea,button{font-size:inherit}.geEditor input{border-width:2px}.geEditor select{border-width:1px}.geEditor div.mxTooltip{background:#f5f5f5;border-color:#d3d3d3;font-size:11px;color:#000;padding:6px}.geMenubarContainer .geItem,.geToolbar .geButton,.geToolbar .geLabel{cursor:pointer!important}.geSidebarContainer .geTitle{cursor:default!important}.geBackgroundPage{box-shadow:0 0 2px 1px #d1d1d1}.geSidebarContainer a,.geMenubarContainer a,.geToolbar a{color:#000;text-decoration:none}.geMenubarContainer,.geToolbarContainer,.geDiagramContainer,.geSidebarContainer,.geFooterContainer,.geHsplit,.geVsplit{overflow:hidden;position:absolute;cursor:default}.geFormatContainer{overflow-x:hidden!important;overflow-y:auto!important;font-size:12px;border-left:1px solid #dadce0}.geSidebarFooter{border-top:1px solid #dadce0}.geFormatSection{border-bottom:1px solid #dadce0;border-color:#dadce0}.geDiagramContainer{background-color:#fff;font-size:0px;outline:none}.geMenubarContainer .geItem,.geToolbar .geButton,.geToolbar .geLabel,.geSidebar,.geSidebarContainer .geTitle,.geSidebar .geItem,.mxPopupMenuItem{-webkit-transition:all .1s ease-in-out;-moz-transition:all .1s ease-in-out;-o-transition:all .1s ease-in-out;-ms-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.geHint{background-color:#fff;border:1px solid gray;padding:4px 16px;border-radius:3px;-webkit-box-shadow:1px 1px 2px 0px #ddd;-moz-box-shadow:1px 1px 2px 0px #ddd;box-shadow:1px 1px 2px #ddd;opacity:.8;filter:alpha(opacity=80);font-size:9pt}.geStatusAlert{white-space:nowrap;margin-top:-5px;font-size:12px;padding:4px 6px;background-color:#f2dede;border:1px solid #ebccd1;color:#a94442!important;border-radius:3px}.geStatusAlert:hover{background-color:#f1d8d8;border-color:#d6b2b8}.geStatusMessage{white-space:nowrap;margin-top:-5px;padding:4px 6px;font-size:12px;background:-webkit-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background:-o-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#c8e5bc));background:linear-gradient(to bottom,#dff0d8 0,#c8e5bc);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffdff0d8",endColorstr="#ffc8e5bc",GradientType=0);background-repeat:repeat-x;border:1px solid #b2dba1;border-radius:3px;color:#3c763d!important}.geAlert{position:absolute;white-space:nowrap;padding:14px;background-color:#f2dede;border:1px solid #ebccd1;color:#a94442;border-radius:3px;-webkit-box-shadow:2px 2px 3px 0px #ddd;-moz-box-shadow:2px 2px 3px 0px #ddd;box-shadow:2px 2px 3px #ddd}.geBtn,.mxWindow .geBtn{background-image:none;background-color:#f5f5f5;border-radius:2px;border:1px solid #d8d8d8;color:#333;cursor:default;font-size:13px;font-weight:500;letter-spacing:.25px;height:29px;line-height:27px;margin:0 0 0 8px;min-width:72px;outline:0;padding:0 8px;cursor:pointer}.geBtn:hover,.geBtn:focus{-webkit-box-shadow:0px 1px 1px rgba(0,0,0,.1);-moz-box-shadow:0px 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px #0000001a;border:1px solid #c6c6c6;background-color:#f8f8f8;background-image:linear-gradient(#f8f8f8,#f1f1f1);color:#111}.geBtn:active,.geStatus:active{opacity:.7}.geBtn:disabled{opacity:.5}.geToolbarContainer>.geToolbar>div>a:active{opacity:.5}.geBtnUp{background-image:url(data:image/gif;base64,R0lGODlhCgAGAJECAGZmZtXV1f///wAAACH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjAgNjEuMTM0Nzc3LCAyMDEwLzAyLzEyLTE3OjMyOjAwICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo0QzM3ODJERjg4NUQxMUU0OTFEQ0E2MzRGQzcwNUY3NCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo0QzM3ODJFMDg4NUQxMUU0OTFEQ0E2MzRGQzcwNUY3NCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjRDMzc4MkREODg1RDExRTQ5MURDQTYzNEZDNzA1Rjc0IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjRDMzc4MkRFODg1RDExRTQ5MURDQTYzNEZDNzA1Rjc0Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEAQAAAgAsAAAAAAoABgAAAg6UjwiQBhGYglCKhXFLBQA7);background-position:center center;background-repeat:no-repeat}.geBtnUp:active{background-color:#4d90fe;background-image:linear-gradient(#4d90fe,#357ae8)}.geBtnDown{background-image:url(data:image/gif;base64,R0lGODlhCgAGAJECANXV1WZmZv///wAAACH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjAgNjEuMTM0Nzc3LCAyMDEwLzAyLzEyLTE3OjMyOjAwICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo0QzM3ODJEQjg4NUQxMUU0OTFEQ0E2MzRGQzcwNUY3NCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo0QzM3ODJEQzg4NUQxMUU0OTFEQ0E2MzRGQzcwNUY3NCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjRDMzc4MkQ5ODg1RDExRTQ5MURDQTYzNEZDNzA1Rjc0IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjRDMzc4MkRBODg1RDExRTQ5MURDQTYzNEZDNzA1Rjc0Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEAQAAAgAsAAAAAAoABgAAAg6UjxLLewEiCAnOZBzeBQA7);background-position:center center;background-repeat:no-repeat}.geBtnDown:active{background-color:#4d90fe;background-image:linear-gradient(#4d90fe,#357ae8)}.geColorBtn{background-color:#f5f5f5;background-image:linear-gradient(#f5f5f5,#e1e1e1);border-radius:4px;border:1px solid rgba(0,0,0,.5);color:#333;cursor:default;margin:0;outline:0;padding:0;cursor:pointer}.geColorBtn:hover{-webkit-box-shadow:0px 1px 1px rgba(0,0,0,.1);-moz-box-shadow:0px 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px #0000001a;border:1px solid rgba(0,0,0,.7)}.geColorBtn:active{background-color:#4d90fe;background-image:linear-gradient(#4d90fe,#357ae8);border:1px solid #2f5bb7;color:#fff}.geColorBtn:disabled{opacity:.5}.gePrimaryBtn,.mxWindow .gePrimaryBtn{background-color:#4d90fe;background-image:linear-gradient(#4d90fe,#4787ed);border:1px solid #3079ed;color:#fff}.gePrimaryBtn:hover,.gePrimaryBtn:focus{background-color:#357ae8;background-image:linear-gradient(#4d90fe,#357ae8);border:1px solid #2f5bb7;color:#fff}.gePrimaryBtn:disabled{opacity:.5}.geAlertLink{color:#843534;font-weight:700;text-decoration:none}.geActivePage{font-weight:700;color:#188038!important}.geMenubarContainer,.geToolbarContainer,.geHsplit,.geVsplit{background-color:#fbfbfb}.geMenubar{padding:0 2px;vertical-align:middle}.geMenubarContainer .geItem,.geToolbar .geItem{padding:6px 6px 6px 9px;cursor:default}.geMenubarContainer .geItem:hover{background:#eee;border-radius:2px}.geMenubarContainer .geItem:active{background:#f8c382}.geToolbarContainer .geButton:hover{opacity:1;_filter:none!important;background:#eee;border-radius:2px}.geToolbarContainer .geButton:active,.geToolbarContainer .geLabel:active{background:#f8c382}.geToolbarContainer .geLabel:hover{background:#eee;border-radius:2px}.geToolbarButton{opacity:.6}.geToolbarButton:active{opacity:.2}.mxDisabled:hover{background:inherit!important}.geMenubar a.geStatus{color:#888;padding-left:12px;display:inline-block;cursor:default!important}.geMenubar a.geStatus:hover{background:transparent}.geToolbarContainer{border-bottom:1px solid #dadce0}.geSidebarContainer .geToolbarContainer{background:transparent;border-bottom:none}.geSidebarContainer button{text-overflow:ellipsis;overflow:hidden}.geToolbar{padding:5px 0 0 6px;border-top:1px solid #dadce0;-webkit-box-shadow:inset 0 1px 0 0 #fff;-moz-box-shadow:inset 0 1px 0 0 #fff;box-shadow:inset 0 1px #fff}.geToolbarContainer .geSeparator{float:left;width:1px;height:20px;background:#e5e5e5;margin-left:6px;margin-right:6px;margin-top:4px}.geToolbarContainer .geButton{float:left;width:20px;height:20px;padding:0 2px 4px;margin:2px;border:1px solid transparent;cursor:pointer;opacity:.6;_filter:alpha(opacity=60)}div.mxWindow .geButton{margin:-1px 2px 2px;padding:1px 2px 2px 1px}.geToolbarContainer .geLabel{float:left;margin:2px;cursor:pointer;padding:3px 5px;border:1px solid transparent}.geToolbarContainer .mxDisabled:hover{border:1px solid transparent!important;opacity:.2!important;filter:alpha(opacity=20)!important}.geDiagramBackdrop{background-color:#f8f9fa}.geSidebarContainer{background:#fbfbfb;overflow:hidden;position:absolute;overflow:auto;-webkit-user-select:none;user-select:none}.geTabContainer{border-top:1px solid #e5e5e5;background-color:#f1f3f4}.geSidebar{border-bottom:1px solid #e5e5e5;padding:6px 6px 6px 10px;_padding:2px;_padding-left:6px;overflow:hidden}.geSidebarContainer .geTitle{display:block;font-size:13px;border-bottom:1px solid #e5e5e5;font-weight:500;padding:8px 0 8px 14px;margin:0;cursor:default;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4em}.geSidebarContainer .geTitle:hover{background:#eee;border-radius:2px}.geSidebarContainer .geTitle:active{background-color:#f8c382}.geSidebarContainer .geDropTarget{border-radius:10px;border:2px dotted #b0b0b0;text-align:center;padding:6px;margin:6px;color:#a0a0a0;font-size:13px}.geTitle img{opacity:.5;_filter:alpha(opacity=50)}.geTitle img:hover{opacity:1;_filter:alpha(opacity=100)}.geTitle .geButton{border:1px solid transparent;padding:3px;border-radius:2px}.geTitle .geButton:hover{border:1px solid gray}.geSidebar .geItem{display:inline-block;background-repeat:no-repeat;background-position:50% 50%;border-radius:8px}.geSidebar .geItem:hover{background-color:#e0e0e0}.geItem{vertical-align:top;display:inline-block}.geSidebarTooltip{position:absolute;background:#fbfbfb;overflow:hidden;box-shadow:0 2px 6px 2px #3c404326;border-radius:6px;_filter:progid:DXImageTransform.Microsoft.DropShadow(OffX=2,OffY=2,Color="#d5d5d5",Positive="true")}.geFooterContainer{background:#e5e5e5;border-top:1px solid #c0c0c0}.geFooterContainer a{display:inline-block;box-sizing:border-box;width:100%;white-space:nowrap;font-size:14px;color:#235695;font-weight:700;text-decoration:none}.geFooterContainer table{border-collapse:collapse;margin:0 auto}.geFooterContainer td{border-left:1px solid #c0c0c0;border-right:1px solid #c0c0c0}.geFooterContainer td:hover{background-color:#b3b3b3}.geHsplit{cursor:col-resize;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAHBAMAAADdS/HjAAAAGFBMVEUzMzP///9tbW1QUFCKiopBQUF8fHxfX1/IXlmXAAAAHUlEQVQImWMQEGAQFWUQFmYQF2cQEmIQE2MQEQEACy4BF67hpEwAAAAASUVORK5CYII=);background-repeat:no-repeat;background-position:center center}.geVsplit{font-size:1pt;cursor:row-resize;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAEBAMAAACw6DhOAAAAGFBMVEUzMzP///9tbW1QUFCKiopBQUF8fHxfX1/IXlmXAAAAFElEQVQImWNgNVdzYBAUFBRggLMAEzYBy29kEPgAAAAASUVORK5CYII=);background-repeat:no-repeat;background-position:center center}.geHsplit{border-left:1px solid #e5e5e5;border-right:1px solid #e5e5e5}.geVSplit{border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5}.geHsplit:hover,.geVsplit:hover{background-color:#e0e0e0}.geDialog{position:absolute;background:#fff;line-height:1em;overflow:hidden;padding:30px;border:1px solid #acacac;-webkit-box-shadow:0px 0px 2px 2px #d5d5d5;-moz-box-shadow:0px 0px 2px 2px #d5d5d5;box-shadow:0 0 2px 2px #d5d5d5;_filter:progid:DXImageTransform.Microsoft.DropShadow(OffX=2,OffY=2,Color="#d5d5d5",Positive="true");z-index:2}.geTransDialog{position:absolute;overflow:hidden;padding:30px;z-index:2}.geDialogClose{position:absolute;width:9px;height:9px;opacity:.5;cursor:pointer;_filter:alpha(opacity=50)}.geDialogClose:hover{opacity:1}.geDialogTitle{box-sizing:border-box;white-space:nowrap;background:#e5e5e5;border-bottom:1px solid rgb(192,192,192);font-size:15px;font-weight:700;text-align:center;color:#235695}.geDialogFooter{background:#f5f5f5;white-space:nowrap;text-align:right;box-sizing:border-box;border-top:1px solid #e5e5e5;color:#a9a9a9}.geSprite{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAABeQCAMAAAByzXKPAAAA1VBMVEUAAAAzMzIzMzIzMzE1NTUzMzIzMzIzMzEzMzIyMjIzMzIzMzIzMzIzMzE6OjoyMjIzMzIzMzIzMzEzMzI0NDA0NDIwMDAyMjEzMzIzMzEzMzE0NDAzMzMzMzIyMjIzMzI0NDE0NDQyMjIzMzIzMzIzMzIzMzM5OTkAAAC1tbX///9mZmYwMDAQEBAmJiZTiPJ7e3v/Z2RwcHAgICB+fn5hYWFzc3NAQECoqKiampqMjIxTU1NGRkY3NzcbGxsNDQ3w8PBQUFDg4ODAwMCwsLCgoKBPT09W+xp5AAAAKHRSTlMAh4DDEd187+mljnhvVge5nmhMQi4hA8uxk2IlHOOYc102M/jW088J/2liTQAACt5JREFUeNrs3O1um0AQheG5nIPCoIq1Q7+r/Mn9X1K9xtEAM9RLQmODzyO1cV+NtzjShhjHkRkAgn9DMCaYnRXIGOQdtWmk1zRWm0vNN6az+Y+v2fXZ5iTX/kZ4ZGvUNT6/RJuCM/VVRKFB7YBwtnY1k3h2wboaHy8RFQC2VGuc1D730WWLS2GIZ27aM4yUT+9tXaLNw9m0mI9uokepRLeC+ZyCfFCoqwckqV3WBHFZaxHLFrNxVpgUVRWjg/jli2WbfH4WyxYnWcVV0Rz7FYj26X9ezQcuE3VYkXzFSYpm9eq6pqSiuNYAaj+r0GiFxKv5tEOqxVfV0utrCkZF/HCXTuOdGz2IHKbDR5wdJ6PdeRmIsfviED0C5ZV7ojf487v59fPHsT18//a1Yn1HJdoSjIUXBG5XgaBejhMYVmT9B1dRUONj4KtyRHNmNkULDYeD2CGVjiZ0paOK1jVuYKIpjJTO7m9dovvEn3bz/DH4440f2+d9fvlVh+4LLuK6cM8GVcKKkmq3ZqqBfbhaef4n+pijBudNZH3H+OW3No+rbTmVXjfciPbs/GVQ7QU6tWqUW5lonefHfn5f6xI9DAxdqQU3n55uU821mj2ZuUq0SYo2ivA5tThxk3rK6u+urYtZiqKuGiWMEkbp4/OFLITIvyrfekt35WGvjvP6OlERwP6+VU39z+ansp+0SThP8jk+0SeoAehRjObmdha0f2YwfucMss7uaPVF3rThN/EH6fH3YhEt3bD1zMlwGtu8/8a5zrHJuR6NyrkKMK5N5qqf9ev6Y4hfGfSPrc7ZWZqPQrQPa+x5Cfe8FO55m3Xrcs8T3TFUYQ0zqj5jTPoMmagQz4brFh8D3x5L9OngyRy+IEa0JgBRlaBWAIJYyVYjYDF47PwNV/TwAIRfB+BiFcyeolchija6+P7xd//IveI+JlpwnrdZP7xexdD6/4N/PDzP06NZdc8vP4H7WKFXLbqjQcU9T7QZvFhHdN/+sndmy6lCQRQ9KOA8Ro1TxjttYuUlX5BK5f+/6YJIWjlNFREkpLJXGQuWO01e2mPaU4pA17qH7iEeKfRsrrqh4/t0hJQPEJSokULPFpJse0Iu0PNQNVSNnOu8ZHPWZc8TUhkBgECRikZMrp4Xq9W1NPubkIIUm4hnrtyikSIjq+jck3bOBQkpnSBrkU97ALl73pJqXfFc5AlJqN3cXvoTEKIzJcu5PSEFqHiGp6ahz+33Z3rWtpzhEfK16DO8XXi3S2vIvfUCHnpWrcsZHiHVAFUG0KQJoEgjGjGRFG1l9bq25gyPkIoANBcEab9DEPf27iCk40VbWa0uP86WkMsTQHPQHBSnJJHCytp1dW9Uz2cBQoo0PEqVes/r2bM0131CLtLzUCVUidw9n6uuaPY8IdnUYMet2BTccUtIfShnz60mBe65JaTunL/tVqTAbbeE1ImCc3vl16McIEiWc3tCClD5DM9Ak7ZFZCBkZEVzhkfI5/n6Hbdp+wF33BJSH8rZc6vISB/gnltCas/Z225FStdz2y0hZXE19lrt5p177NyR11+OHb/THhzJP86wP2uYrjvz1h92eTseNEzDbB2nd/OY1Py9WNw6/qjnN+fmvnmwnYkxjf1t+mAW7XlsbzaJ3a7DzH1sf3Udp7m/dcOf615sW26SdfvGrCaxbV4l9nEan0X0xqEaRrbvmnlrGFu3PTN3ndUoLOuapW8ODLzudLVomMHA71z/MwmT9mTmN+bOZnS9NcJDs+V53t+WPzQnbNa9/nRoCPl2AKqObKFvltEBoPvcVwNwmavxOy3IDwFAlkWCWPBqhJDC8GtsCPlGYI8ciQyRI+3/CLHHscysXvf0ynzWIOQsPr3wWllkxNQskD+b82/Ihi8qCCm150XpObXnc2RFs+cJqRhAE5AHpI8BOZbH5TQdlXB8JAUEIC4AvkFPSMEl/dQ+v74+2/bl6enFtm/v72+W/c/eHSW3CUNRGNZyjgiZNHE6fW2b6f63VGScCHSvI7CxjfH/tYnTU43CywFiAfnT/On+lunH3274R5G2zbv03rTj9F+z92+U7pqPX52PZjdM35uf6vxs3ofp799Kulf2B8CEc2JVjvJm6OIT5CO9PekvD/8T767XgTc2z1umnEdggyT5eX2s+k9yGpvH1kqvI523IVfSAzdlW2gbu3zn5+6j/JFcfIft0lBOi4/J6cbmBTZJTdPo9fV1/3pamqTUFCalOVkunVdNTU5bSa2Nn7ULjl0A7o5/aGt6Z6TKUpVC7/VLSrWzqTo7b+yzO+9i28shHtugl5cXXS9NLnyYHVZ+Nz79UG7y4in7Aqza9po+tBsXP1B8wCW3m01yVqq9G3w3q/X+/1lpZ5WEbKdOTnNsxiYtd+ngjl28Fw+zhwGwLA0/mDeIS46AxWnO2MVnUFD627+sasuAxyJpTsp3A+6WgnplGpILpL1JR21lZt5k2ZSrFPE41AteEy+Q9qrn58qW77lNM877sXXq+fcGLp/2giETZO5tTYumHObxKDQ0aezhxb2feNE0MWlvqZS1SzwsJZdslu3x9fYae8HFXYeAKcIVejxwzgwc0YE6jTzuWOAuqOS+GTY3rc+rmDxAKn7VEPAt+amm/7Yu8ev0gfnkHckljT8nSoaf/RkeNgUejaKburGiYt696FNIcXrt/3yJh8Qba+advg0BwJCk66Qamp3WvxtX1gMzSDZya+BU8y2OR+ogyk7w5h+Nox+/6S04pNunwKqpt9Db9yemA2GokjqThGR+ms1JeYMe92hu5y2Zbs5O5be7mkru2Hlpgc5j434M1NPiq0qqgXoaDkwqTU21V0s7dgY/TfLX9XMT1udx56RJqTqf5aqlR3vVqtOWaYpbp4NtW2tmPaXbwAZI0U1zroI/tiRW9oBVOtL5QT6uu2TH0nlgnXRSqsLkGXg+JnBTCjopVeGceXk2FnAtColkUynGMn1SrHXejq3Py4U5wHXZvtluJtXO27H+vFyMB9xElFIxNQ6fUmFj9Xm6Sr67SrA6b94Gfp4HLsb2rSM53VSMpseK1c7bsXbechs4zgO3EiUvs6kK7tgsUmlglaLkZiZVStzOBzoPrJHOS1VgVR5YuTPXz1VgXR5YM/+u9xglkyZRT2WqghlbnVc8CA+4mtxRp5vB7XxW7bw3LwvywI0pr5MN6HNNrUi/fUZO4o6tzxuiuO0GuLzUUdu3GOV3M6raeTu2Nm8aR+eBlVD1BnoVjowt0HBgnY51PrqdT/9yxtJ5YHWkeGKswoxJuMcGuIYoKdowKOQ4Xxov+4Zb/khU8Mf681a3gZ/0gYt1PjGdV1J2/mBS5z/58zrbQOeBE6zpGZgA7smRzgc6D2xKlORlCiUVKrfSslMAVulI56PX+XHv81g6D6yPFM+MVWCJDliLJdfoMhVYowPWYsk1ukwF1uiAu1R/Hh5v2wNb8r+9O0pBGAaiKLqdm/1vUCiFSCdhTIjWhntAwefY5sMxRW1ToJnZ89KjQTnuGzGUWB1DLkJtul0ofocn3SOf5wMu3mu97q30GN2e99he2gKEpj6Dkvwjj4tebb5d8EBAuhuUJJ87f96f4aT/1OlNz7GRfgg+WheCUFsfE16cpEFNx5exIUmHx09zd34AaRdACCDp+TVLSlFv1blzgKR2egx5zx/see0pn+djbR4FIVofz4/UeV67G3+vr3niC+H04Oz/nbwA7lqtm+wByfQAAAAASUVORK5CYII=) no-repeat;width:21px;height:21px}.geBaseButton{padding:10px;border-radius:6px;border:1px solid #c0c0c0;cursor:pointer;background-color:#ececec;background-image:linear-gradient(#ececec,#fcfcfc)}.geBaseButton:hover{background:#ececec}.geBigButton{color:#fff;border:none;padding:4px 10px;font-size:14px;white-space:nowrap;border-radius:3px;background-color:#0052cc;currsor:pointer;transition:background-color .1s ease-out;overflow:hidden;text-overflow:ellipsis}.geBigButton:hover{background-color:#0065ff}.geBigButton:active{background-color:#0747a6}html body .geBigStandardButton{color:#344563;background-color:#091e4214}html body .geBigStandardButton:hover{background-color:#091e4221}html body .geBigStandardButton:active{background-color:#f8c382;color:#600000}@media print{div.geNoPrint{display:none!important}}.geSprite-actualsize{background-position:0 0}.geSprite-bold{background-position:0 -46px}.geSprite-bottom{background-position:0 -92px}.geSprite-center{background-position:0 -138px}.geSprite-delete{background-position:0 -184px}.geSprite-fillcolor{background-position:0 -229px}.geSprite-fit{background-position:0 -277px}.geSprite-fontcolor{background-position:0 -322px}.geSprite-gradientcolor{background-position:0 -368px}.geSprite-image{background-position:0 -414px}.geSprite-italic{background-position:0 -460px}.geSprite-left{background-position:0 -505px}.geSprite-middle{background-position:0 -552px}.geSprite-print{background-position:0 -598px}.geSprite-redo{background-position:0 -644px}.geSprite-right{background-position:0 -689px}.geSprite-shadow{background-position:0 -735px}.geSprite-strokecolor{background-position:0 -782px}.geSprite-top{background-position:0 -828px}.geSprite-underline{background-position:0 -874px}.geSprite-undo{background-position:0 -920px}.geSprite-zoomin{background-position:0 -966px}.geSprite-zoomout{background-position:0 -1012px}.geSprite-arrow{background-position:0 -1059px}.geSprite-linkedge{background-position:0 -1105px}.geSprite-straight{background-position:0 -1150px}.geSprite-entity{background-position:0 -1196px}.geSprite-orthogonal{background-position:0 -1242px}.geSprite-curved{background-position:0 -1288px}.geSprite-noarrow{background-position:0 -1334px}.geSprite-endclassic{background-position:0 -1380px}.geSprite-endopen{background-position:0 -1426px}.geSprite-endblock{background-position:0 -1472px}.geSprite-endoval{background-position:0 -1518px}.geSprite-enddiamond{background-position:0 -1564px}.geSprite-endthindiamond{background-position:0 -1610px}.geSprite-endclassictrans{background-position:0 -1656px}.geSprite-endblocktrans{background-position:0 -1702px}.geSprite-endovaltrans{background-position:0 -1748px}.geSprite-enddiamondtrans{background-position:0 -1794px}.geSprite-endthindiamondtrans{background-position:0 -1840px}.geSprite-startclassic{background-position:0 -1886px}.geSprite-startopen{background-position:0 -1932px}.geSprite-startblock{background-position:0 -1978px}.geSprite-startoval{background-position:0 -2024px}.geSprite-startdiamond{background-position:0 -2070px}.geSprite-startthindiamond{background-position:0 -2116px}.geSprite-startclassictrans{background-position:0 -2162px}.geSprite-startblocktrans{background-position:0 -2208px}.geSprite-startovaltrans{background-position:0 -2254px}.geSprite-startdiamondtrans{background-position:0 -2300px}.geSprite-startthindiamondtrans{background-position:0 -2346px}.geSprite-globe{background-position:0 -2392px}.geSprite-orderedlist{background-position:0 -2438px}.geSprite-unorderedlist{background-position:0 -2484px}.geSprite-horizontalrule{background-position:0 -2530px}.geSprite-link{background-position:0 -2576px}.geSprite-indent{background-position:0 -2622px}.geSprite-outdent{background-position:0 -2668px}.geSprite-code{background-position:0 -2714px}.geSprite-fontbackground{background-position:0 -2760px}.geSprite-removeformat{background-position:0 -2806px}.geSprite-superscript{background-position:0 -2852px}.geSprite-subscript{background-position:0 -2898px}.geSprite-table{background-position:0 -2944px}.geSprite-deletecolumn{background-position:0 -2990px}.geSprite-deleterow{background-position:0 -3036px}.geSprite-insertcolumnafter{background-position:0 -3082px}.geSprite-insertcolumnbefore{background-position:0 -3128px}.geSprite-insertrowafter{background-position:0 -3174px}.geSprite-insertrowbefore{background-position:0 -3220px}.geSprite-grid{background-position:0 -3272px}.geSprite-guides{background-position:0 -3324px}.geSprite-dots{background-position:0 -3370px}.geSprite-alignleft{background-position:0 -3416px}.geSprite-alignright{background-position:0 -3462px}.geSprite-aligncenter{background-position:0 -3508px}.geSprite-aligntop{background-position:0 -3554px}.geSprite-alignbottom{background-position:0 -3600px}.geSprite-alignmiddle{background-position:0 -3646px}.geSprite-justifyfull{background-position:0 -3692px}.geSprite-formatpanel{background-position:0 -3738px}.geSprite-connection{background-position:0 -3784px}.geSprite-vertical{background-position:0 -3830px}.geSprite-simplearrow{background-position:0 -3876px}.geSprite-plus{background-position:0 -3922px}.geSprite-rounded{background-position:0 -3968px}.geSprite-toback{background-position:0 -4014px}.geSprite-tofront{background-position:0 -4060px}.geSprite-duplicate{background-position:0 -4106px}.geSprite-insert{background-position:0 -4152px}.geSprite-endblockthin{background-position:0 -4201px}.geSprite-endblockthintrans{background-position:0 -4247px}.geSprite-enderone{background-position:0 -4293px}.geSprite-enderonetoone{background-position:0 -4339px}.geSprite-enderonetomany{background-position:0 -4385px}.geSprite-endermany{background-position:0 -4431px}.geSprite-enderoneopt{background-position:0 -4477px}.geSprite-endermanyopt{background-position:0 -4523px}.geSprite-endclassicthin{background-position:0 -4938px}.geSprite-endclassicthintrans{background-position:0 -4984px}.geSprite-enddash{background-position:0 -5029px}.geSprite-endcircleplus{background-position:0 -5075px}.geSprite-endcircle{background-position:0 -5121px}.geSprite-endasync{background-position:0 -5167px}.geSprite-endasynctrans{background-position:0 -5213px}.geSprite-startblockthin{background-position:0 -4569px}.geSprite-startblockthintrans{background-position:0 -4615px}.geSprite-starterone{background-position:0 -4661px}.geSprite-starteronetoone{background-position:0 -4707px}.geSprite-starteronetomany{background-position:0 -4753px}.geSprite-startermany{background-position:0 -4799px}.geSprite-starteroneopt{background-position:0 -4845px}.geSprite-startermanyopt{background-position:0 -4891px}.geSprite-startclassicthin{background-position:0 -5259px}.geSprite-startclassicthintrans{background-position:0 -5305px}.geSprite-startdash{background-position:0 -5351px}.geSprite-startcircleplus{background-position:0 -5397px}.geSprite-startcircle{background-position:0 -5443px}.geSprite-startasync{background-position:0 -5489px}.geSprite-startasynctrans{background-position:0 -5535px}.geSprite-startcross{background-position:0 -5581px}.geSprite-startopenthin{background-position:0 -5627px}.geSprite-startopenasync{background-position:0 -5673px}.geSprite-endcross{background-position:0 -5719px}.geSprite-endopenthin{background-position:0 -5765px}.geSprite-endopenasync{background-position:0 -5811px}.geSprite-verticalelbow{background-position:0 -5857px}.geSprite-horizontalelbow{background-position:0 -5903px}.geSprite-horizontalisometric{background-position:0 -5949px}.geSprite-verticalisometric{background-position:0 -5995px}.geSvgSprite{background-position:center center}.geFlipSprite{transform:scaleX(-1)}.geSprite-box{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='10' transform='translate(0.5,0.5)'><rect stroke='black' fill='none' x='2' y='2' width='6' height='6'/><path stroke='black' d='M8 5 L 18 5'/></svg>")}.geSprite-halfCircle{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='10' transform='translate(0.5,0.5)'><path stroke='black' fill='none' d='M 2 2 Q 6 2 6 5 Q 6 8 2 8 M 6 5 L 18 5'/></svg>")}html div.mxRubberband{border-color:#00d;background:#9cf}td.mxPopupMenuIcon div{width:20px;height:20px}.geEditor div.mxPopupMenu{box-shadow:0 2px 6px 2px #3c404326;background:#fff;border-radius:4px;border:none;padding:3px}html table.mxPopupMenu{border-collapse:collapse;margin:0}html td.mxPopupMenuItem{padding:7px 30px;font-family:Helvetica Neue,Helvetica,Arial Unicode MS,Arial;font-size:10pt}html td.mxPopupMenuIcon{background-color:#fff;padding:0}td.mxPopupMenuIcon .geIcon{padding:2px 2px 4px;margin:2px;border:1px solid transparent;opacity:.5;_width:26px;_height:26px}td.mxPopupMenuIcon .geIcon:hover{border:1px solid gray;border-radius:2px;opacity:1}html tr.mxPopupMenuItemHover{background-color:#eee;color:#000}table.mxPopupMenu hr{color:#ccc;background-color:#ccc;border:none;height:1px}table.mxPopupMenu tr{font-size:4pt}html td.mxWindowTitle{font-family:Helvetica Neue,Helvetica,Arial Unicode MS,Arial;text-align:left;font-size:12px;color:#707070;padding:4px}.gePropHeader,.gePropRow{border:1px solid #e9e9e9}.gePropRowDark{border:1px solid #4472C4}.gePropHeader>.gePropHeaderCell{border-top:0;border-bottom:0;text-align:left;width:50%}.gePropHeader>.gePropHeaderCell:first-child{border-left:none}.gePropHeader>.gePropHeaderCell:last-child{border-right:none}.gePropHeader{background:#e5e5e5;color:#000}.gePropRowCell{border-left:1px solid #f3f3f3;width:50%}.gePropRow>.gePropRowCell{background:#fff}.gePropRowAlt>.gePropRowCell{background:#fcfcfc}.gePropRowDark>.gePropRowCell{background:#fff;color:#305496;font-weight:700}.gePropRowDarkAlt>.gePropRowCell{background:#d9e1f2;color:#305496;font-weight:700}.gePropEditor input:invalid{border:1px solid red}.geTemplateDlg{width:987px;height:712px}.geTemplateDlg ::-webkit-scrollbar{width:12px;height:12px}.geTemplateDlg ::-webkit-scrollbar-track{background:#f5f5f5;-webkit-box-shadow:inset 0 0 4px rgba(0,0,0,.1)}.geTemplateDlg ::-webkit-scrollbar-thumb{background:#c5c5c5;border-radius:10px;border:whiteSmoke solid 3px}.geTemplateDlg ::-webkit-scrollbar-thumb:hover{background:#b5b5b5}.geTempDlgHeader{box-sizing:border-box;height:62px;width:100%;border:1px solid #CCCCCC;border-radius:5px 5px 0 0;background-color:#f5f5f5}.geTempDlgHeaderLogo{height:34px;margin:14px 14px 14px 20px}.geTempDlgSearchBox{color:#888;background-color:#fff;background-position:15px;height:40px;width:40%;max-width:400px;border:1px solid #CCCCCC;border-radius:3px;float:right;font-family:Arial,Helvetica,sans-serif;font-size:15px;line-height:36px;margin:11px 36px 0 0;outline:medium none;padding:0 0 0 36px;text-shadow:1px 1px 0 white}.geTemplatesList{box-sizing:border-box;float:left;height:calc(100% - 118px);width:20%;border:1px solid #CCCCCC;background-color:#fff;display:inline-block;overflow-x:hidden;overflow-y:auto}.geTempDlgContent{box-sizing:border-box;float:right;height:calc(100% - 118px);width:80%;border:1px solid #CCCCCC;background-color:#fff;display:inline-block;overflow-x:hidden;overflow-y:auto;position:relative}.geTempDlgFooter{box-sizing:border-box;height:52px;width:100%;border:1px solid #CCCCCC;border-radius:0 0 5px 5px;background-color:#f5f5f5;text-align:right;font-family:Helvetica;font-size:14px;line-height:17px;padding-top:11px}.geTempDlgCreateBtn{display:inline-block;width:67px;border-radius:3px;background-color:#3d72ad;padding:6px;text-align:center;color:#fff;cursor:pointer}.geTempDlgCancelBtn{display:inline-block;width:67px;padding:6px;text-align:center;color:#3d72ad;cursor:pointer}.geTempDlgCancelBtn:active,.geTempDlgCreateBtn:active,.geTempDlgShowAllBtn:active{transform:translateY(2px)}.geTempDlgCreateBtnDisabled{background-color:#9fbddd}.geTempDlgCreateBtnDisabled:active{transform:translateY(0)}.geTempDlgCreateBtnBusy{background-repeat:no-repeat;background-position:62px 7px}.geTempDlgNewDiagramlbl{height:17px;color:#333;font-family:Helvetica;font-size:14px;font-weight:700;line-height:17px;padding:25px 0 0 20px;cursor:pointer}.geTempDlgHLine{height:1px;width:calc(100% - 22px);background-color:#ccc;margin:20px 0 0 11px}.geTemplatesLbl{height:17px;color:#6d6d6d;font-family:Helvetica;font-size:14px;font-weight:700;line-height:17px;text-transform:uppercase;margin:20px 0 3px 20px}.geTemplateCatLink{height:17px;color:#3d72ad;font-family:Helvetica;font-size:14px;line-height:17px;margin:12px 0 0 20px;cursor:pointer}.geTempDlgNewDiagramCat{height:280px;width:100%;background-color:#555}.geTempDlgNewDiagramCatLbl{height:17px;color:#fff;font-family:Helvetica;font-size:14px;font-weight:700;line-height:17px;padding:25px 0 0 20px;text-transform:uppercase}.geTempDlgNewDiagramCatList{width:100%;height:190px;padding-left:9px;box-sizing:border-box;overflow-y:auto;overflow-x:hidden}.geTempDlgNewDiagramCatFooter{width:100%}.geTempDlgShowAllBtn{width:78px;border:1px solid #777777;border-radius:3px;cursor:pointer;text-align:center;color:#ddd;font-family:Helvetica;font-size:14px;line-height:17px;padding:4px;float:right;margin-right:30px}.geTempDlgNewDiagramCatItem{height:155px;width:134px;padding:18px 6px 0 9px;display:inline-block}.geTempDlgNewDiagramCatItemImg{box-sizing:border-box;height:134px;width:134px;border:1px solid #CCCCCC;border-radius:3px;background-color:#fff;display:table-cell;vertical-align:middle;text-align:center;cursor:pointer}.geTempDlgNewDiagramCatItemActive>.geTempDlgNewDiagramCatItemImg{border:4px solid #3D72AD}.geTempDlgNewDiagramCatItemLbl{height:17px;width:100%;color:#fff;font-family:Helvetica;font-size:14px;line-height:17px;text-align:center;padding-top:4px;cursor:pointer}.geTempDlgDiagramsList{width:100%;min-height:calc(100% - 280px);padding-left:9px;box-sizing:border-box;background-color:#e5e5e5}.geTempDlgDiagramsListHeader{width:100%;height:45px;padding:18px 20px 0 11px;box-sizing:border-box}.geTempDlgDiagramsListTitle{box-sizing:border-box;height:17px;color:#666;font-family:Helvetica;font-size:14px;font-weight:700;line-height:17px;text-transform:uppercase;padding-top:5px;display:inline-block}.geTempDlgDiagramsListBtns{float:right;margin-top:-9px}.geTempDlgRadioBtn{box-sizing:border-box;border:1px solid #CCCCCC;border-radius:3px;background-color:#555;display:inline-block;color:#fff;font-family:Helvetica;font-size:14px;line-height:17px;text-align:center;padding:4px;cursor:pointer}.geTempDlgRadioBtnActive{background-color:#fff;color:#333}.geTempDlgRadioBtnLarge{height:27px;width:120px}.geTempDlgRadioBtnSmall{position:relative;top:9px;height:27px;width:27px}.geTempDlgRadioBtnSmall img{position:absolute;top:6px;left:6px;height:13px;width:13px}.geTempDlgSpacer{display:inline-block;width:10px}.geTempDlgDiagramsListGrid{width:100%;white-space:nowrap;font-size:13px;padding:0 20px 20px 10px;box-sizing:border-box;border-spacing:0}.geTempDlgDiagramsListGrid tr{height:40px}.geTempDlgDiagramsListGrid th{background-color:#e5e5e5;color:#8e8e8e;font-weight:700;text-align:left;padding:5px;border-bottom:1px solid #CCCCCC;font-size:14px}.geTempDlgDiagramsListGrid td{background-color:#fff;color:#888;padding:5px;border-bottom:1px solid #CCCCCC;overflow:hidden}.geTempDlgDiagramsListGridActive td{border-bottom:2px solid #3D72AD;border-top:2px solid #3D72AD}.geTempDlgDiagramsListGridActive td:first-child{border-left:2px solid #3D72AD}.geTempDlgDiagramsListGridActive td:last-child{border-right:2px solid #3D72AD}.geTempDlgDiagramTitle{font-weight:700;color:#666!important}.geTempDlgDiagramsTiles{position:relative;min-height:100px}.geTempDlgDiagramTile{height:152px;width:130px;padding:20px 7px 0 10px;display:inline-block;position:relative}.geTempDlgDiagramTileImg{box-sizing:border-box;height:130px;width:130px;border:1px solid #CCCCCC;border-radius:3px;background-color:#fff;display:table-cell;vertical-align:middle;text-align:center}.geTempDlgDiagramTileImgLoading{background-repeat:no-repeat;background-position:center}.geTempDlgDiagramTileImgError{background-repeat:no-repeat;background-position:center;background-color:#be3730}.geTempDlgDiagramTileImg img{max-width:117px;max-height:117px;cursor:pointer}.geTempDlgDiagramTileActive>.geTempDlgDiagramTileImg{border:4px solid #3D72AD}.geTempDlgDiagramTileLbl{height:17px;width:100%;color:#333;font-family:Helvetica;font-size:14px;line-height:17px;text-align:center;padding-top:5px;cursor:pointer}.geTempDlgDiagramPreviewBtn{position:absolute;top:28px;right:15px;cursor:pointer}.geTempDlgDiagramListPreviewBtn{cursor:pointer;padding-left:5px;padding-right:15px}.geTempDlgDiagramPreviewBox{position:absolute;top:3%;left:10%;width:80%;height:94%;background:#fff;border:4px solid #3D72AD;border-radius:6px;box-sizing:border-box;display:table-cell;vertical-align:middle;text-align:center;z-index:2}.geTempDlgDialogMask{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.geTempDlgDiagramPreviewBox img{max-width:95%;max-height:95%;vertical-align:middle}.geTempDlgPreviewCloseBtn{position:absolute;top:5px;right:5px;cursor:pointer}.geTempDlgLinkToDiagramHint{color:#555}.geTempDlgLinkToDiagramBtn{color:#555;margin:0 10px;height:27px;font-size:14px}.geCommentsWin{-webkit-user-select:none;user-select:none;border:1px solid whiteSmoke;height:100%;margin-bottom:10px;overflow:auto}.geCommentsToolbar{position:absolute;bottom:0;left:0;right:0;overflow:hidden;border-width:1px 0px 0px 0px;border-color:#c3c3c3;border-style:solid;display:block;white-space:nowrap}.geCommentsList{position:absolute;overflow:auto;left:0;right:0;top:0}.geCommentContainer{position:relative;padding:12px;margin:5px;min-height:50px;display:block;background-color:#fff;border-width:0px 0px 1px 0px;border-color:#c3c3c3;border-style:solid;border-radius:10px;white-space:nowrap;box-shadow:2px 2px 6px #3c404326;color:#3c4043}.geCommentHeader{width:100%;height:32px}.geCommentUserImg{width:32px;height:32px;border-radius:50%;float:left;background-color:#f5f5f5}.geCommentHeaderTxt{overflow:hidden;height:32px;padding-left:5px}.geCommentUsername{overflow:hidden;height:18px;font-size:15px;font-weight:700;text-overflow:ellipsis}.geCommentDate{color:#707070;overflow:hidden;height:14px;font-size:11px;text-overflow:ellipsis}.geCommentDate:first-letter{text-transform:uppercase}.geCommentTxt{font-size:14px;padding-top:5px;white-space:normal;min-height:12px}.geCommentEditTxtArea{margin-top:5px;font-size:14px!important;min-height:12px;max-width:100%;min-width:100%;width:100%;box-sizing:border-box}.geCommentEditBtns{width:100%;box-sizing:border-box;padding-top:5px;height:20px}.geCommentEditBtn{padding:3px 8px!important;float:right!important;margin-left:5px}.geCommentActions{color:#707070;font-size:12px}.geCommentActionsList{list-style-type:disc;margin:0;padding:10px 0 0}.geCommentAction{display:inline-block;padding:0}.geCommentAction:before{content:"•";padding:5px}.geCommentAction:first-child:before{content:"";padding:0}.geCommentActionLnk{cursor:pointer;color:#707070;text-decoration:none}.geCommentActionLnk:hover{text-decoration:underline}.geCheckedBtn{background-color:#ccc;border-top:1px solid black!important;border-left:1px solid black!important}.geCommentBusyImg{position:absolute;top:5px;right:5px}.geAspectDlgListItem{width:120px;height:120px;display:inline-block;border:3px solid #F0F0F0;border-radius:5px;padding:5px;margin:2px 2px 20px}.geAspectDlgListItem:hover{border:3px solid #c5c5c5}.geAspectDlgListItemSelected{border:3px solid #3b73af}.geAspectDlgListItemSelected:hover{border:3px solid #405a86}.geAspectDlgListItemText{text-overflow:ellipsis;max-width:100%;min-height:2em;overflow:hidden;text-align:center;margin-top:10px}.geAspectDlgList{min-height:184px;white-space:nowrap;overflow-x:auto;overflow-y:hidden}div.mxRubberband{position:absolute;overflow:hidden;border-style:solid;border-width:1px;border-color:#00f;background:#07f}.mxCellEditor{background:url(data:image/gif;base64,R0lGODlhMAAwAIAAAP///wAAACH5BAEAAAAALAAAAAAwADAAAAIxhI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8fyTNf2jef6zvf+DwwKh8Si8egpAAA7);border-color:transparent;border-style:solid;display:inline-block;position:absolute;overflow:visible;word-wrap:normal;border-width:0;min-width:1px;resize:none;padding:0;margin:0}.mxPlainTextEditor *{padding:0;margin:0}div.mxWindow{-webkit-box-shadow:3px 3px 12px #C0C0C0;-moz-box-shadow:3px 3px 12px #C0C0C0;box-shadow:3px 3px 12px silver;background:url(data:image/gif;base64,R0lGODlhGgAUAIAAAOzs7PDw8CH5BAAAAAAALAAAAAAaABQAAAIijI+py70Ao5y02lud3lzhD4ZUR5aPiKajyZbqq7YyB9dhAQA7);border:1px solid #c3c3c3;position:absolute;overflow:hidden;z-index:1}table.mxWindow{border-collapse:collapse;table-layout:fixed;font-family:Arial;font-size:8pt}td.mxWindowTitle{background:url(data:image/gif;base64,R0lGODlhFwAXAMQAANfX18rKyuHh4c7OzsDAwMHBwc/Pz+Li4uTk5NHR0dvb2+jo6O/v79/f3/n5+dnZ2dbW1uPj44yMjNPT0+Dg4N3d3ebm5szMzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAAAXABcAAAWQICESxWiW5Ck6bOu+MMvMdG3f86LvfO/rlqBwSCwaj8ikUohoOp/QaDNCrVqvWKpgezhsv+AwmEIum89ocmPNbrvf64p8Tq/b5Yq8fs/v5x+AgYKDhIAAh4iJiouHEI6PkJGSjhOVlpeYmZUJnJ2en6CcBqMDpaanqKgXq6ytrq+rAbKztLW2shK5uru8vbkhADs=) repeat-x;text-overflow:ellipsis;white-space:nowrap;text-align:center;font-weight:700;overflow:hidden;height:13px;padding:4px 2px 6px;color:#000}td.mxWindowPane{vertical-align:top;padding:0}div.mxWindowPane{overflow:hidden;position:relative}td.mxWindowPane td{font-family:Arial;font-size:8pt}td.mxWindowPane input,td.mxWindowPane select,td.mxWindowPane textarea,td.mxWindowPane radio{border-color:#8c8c8c;border-style:solid;border-width:1px;font-family:Arial;font-size:8pt;padding:1px}td.mxWindowPane button{background:url(data:image/gif;base64,R0lGODlhCgATALMAAP7+/t7e3vj4+Ojo6OXl5e/v7/n5+fb29vPz8/39/e3t7fHx8e7u7v///wAAAAAAACH5BAAAAAAALAAAAAAKABMAAAQ2MMlJhb0Y6c2X/2AhjiRjnqiirizqMkEsz0Rt30Ou7y8K/ouDcEg0GI9IgHLJbDif0Kh06owAADs=) repeat-x;font-family:Arial;font-size:8pt;padding:2px;float:left}img.mxToolbarItem{margin-right:6px;margin-bottom:6px;border-width:1px}select.mxToolbarCombo{vertical-align:top;border-style:inset;border-width:2px}div.mxToolbarComboContainer{padding:2px}img.mxToolbarMode{margin:2px 4px 4px 2px;border-width:0px}img.mxToolbarModeSelected{margin:0 2px 2px 0;border-width:2px;border-style:inset}div.mxTooltip{-webkit-box-shadow:3px 3px 12px #C0C0C0;-moz-box-shadow:3px 3px 12px #C0C0C0;box-shadow:3px 3px 12px silver;background:#ffc;border-style:solid;border-width:1px;border-color:#000;font-family:Arial;font-size:8pt;position:absolute;cursor:default;padding:4px;color:#000}div.mxPopupMenu{-webkit-box-shadow:1px 3px 5px 3px rgba(29,69,147,.3);-moz-box-shadow:1px 3px 5px 3px rgba(29,69,147,.3);box-shadow:1px 3px 5px 3px #1d45934d;background:#fff;position:absolute}table.mxPopupMenu tr{display:flex;padding:0 16px;min-width:180px;align-items:center}.border-btm{border-bottom:1px solid #a5a5a53b;margin-bottom:-1px}table.mxPopupMenu{border-collapse:collapse;margin-top:1px;margin-bottom:1px}tr.mxPopupMenuItem{color:#333;cursor:pointer}tr.mxPopupMenuItemHover{background-color:#006;color:#fff;cursor:pointer}td.mxPopupMenuItem{padding:2px 30px 2px 10px;white-space:nowrap;font-family:Arial;font-weight:400;font-size:12px}td.mxPopupMenuIcon{padding:2px 4px}.mxDisabled{opacity:.2!important;cursor:default!important}html td.mxPopupMenuIcon{background-color:transparent;min-width:16px}html td.mxPopupMenuItem{padding:7px 30px 7px 10px}td.mxWindowPane button{background:none!important}.ruler-container[data-v-b14d49d0]{position:relative;width:100%;height:100%;box-sizing:border-box}.vertical-ruler[data-v-b14d49d0]{position:absolute;top:0;right:0;width:100%;height:100%}.chart-bottom[data-v-b14d49d0]{background:#d1e7ff;position:absolute;bottom:0;width:100%;transition:height .3s ease}.scale-mark[data-v-b14d49d0]{position:absolute;right:0;display:flex;align-items:center;z-index:1}.mark-line[data-v-b14d49d0]{height:1px;background-color:#666;width:4px}.mark-line.long-mark[data-v-b14d49d0]{width:4px}.mark-value[data-v-b14d49d0]{margin-right:2px;font-size:12px;color:#333;width:20px;text-align:right}.value-text[data-v-b14d49d0]{position:absolute;top:0;left:50%;font-size:12px;color:#333;transform:translate(-50%)}.ruler-h-container[data-v-7f6aaa3d]{position:relative;width:100%;height:100%;box-sizing:border-box}.h-ruler[data-v-7f6aaa3d]{position:absolute;bottom:0;height:18px}.chart-h-bottom[data-v-7f6aaa3d]{background:#d1e7ff;position:absolute;left:0;height:100%;transition:height .3s ease}.scale-h-mark[data-v-7f6aaa3d]{position:absolute;right:0;display:flex;flex-direction:column;align-items:center;z-index:1}.mark-h-line[data-v-7f6aaa3d]{width:1px;background-color:#666;height:4px}.mark-h-line.long-h-mark[data-v-7f6aaa3d]{width:1px}.mark-h-value[data-v-7f6aaa3d]{margin-right:2px;font-size:12px;color:#333;width:20px;text-align:right}.value-h-text[data-v-7f6aaa3d]{position:absolute;top:50%;right:0;font-size:12px;color:#333;transform:translateY(-50%)}.chart-container[data-v-5f295dcb]{width:100%;height:100%;display:flex;border:1px solid #000;position:relative}.switch-jd[data-v-3233cdae]{position:relative;display:inline-block;cursor:pointer;transition:all .3s ease;height:100%;width:100%;background:#f5f5f5;border:1px solid #C0C0C0}.switch-input[data-v-3233cdae]{display:none}.switch-jd-slider[data-v-3233cdae]{position:relative;display:flex;background-color:#e0e0e0;transition:all .3s ease;box-shadow:inset -1px -1px #333}.switch-jd-slider[data-v-3233cdae]:before{content:"";position:absolute;background-color:#fff;transition:all .3s ease}.switch-default .switch-jd-slider[data-v-3233cdae]{width:100%;height:100%}.switch-input:checked+.switch-jd-slider[data-v-3233cdae]{box-shadow:inset 1px 1px #333}.switch-disabled[data-v-3233cdae]{opacity:.6;cursor:not-allowed}.switch[data-v-41ace2e4]{position:relative;display:flex;cursor:pointer;transition:all .3s ease;width:100%;height:100%}.switch-input[data-v-41ace2e4]{display:none}.switch-slider[data-v-41ace2e4]{position:relative;display:flex;align-items:center;justify-content:flex-end;padding-right:10px;background-color:#e0e0e0;transition:all .3s ease;border-radius:56px;width:100%;height:100%}.switch-slider[data-v-41ace2e4]:before{content:"";position:absolute;background-color:#fff;transition:all .3s ease;border-radius:50%;box-shadow:0 2px 5px #0003}.switch-default .switch-slider[data-v-41ace2e4]{width:100%;height:100%}.switch-default .switch-slider[data-v-41ace2e4]:before{width:45%;left:2px;bottom:2px;top:2px}.switch-input:checked+.switch-slider[data-v-41ace2e4]{background-color:#4383fe;justify-content:flex-start;padding-right:auto;padding-left:10px}.switch-input:not(:checked)+.switch-slider[data-v-41ace2e4]{background-color:#e0e0e0!important}.switch-input:checked+.switch-slider[data-v-41ace2e4]:before{right:4px;left:auto}.switch-small .switch-slider[data-v-41ace2e4]{width:45px;height:25px}.switch-small .switch-slider[data-v-41ace2e4]:before{height:19px;width:19px;left:3px;bottom:3px}.switch-small .switch-input:checked+.switch-slider[data-v-41ace2e4]:before{transform:translate(20px)}.switch-large .switch-slider[data-v-41ace2e4]{width:75px;height:42px}.switch-large .switch-slider[data-v-41ace2e4]:before{height:34px;width:34px;left:4px;bottom:4px}.switch-large .switch-input:checked+.switch-slider[data-v-41ace2e4]:before{transform:translate(33px)}.switch-primary .switch-input:checked+.switch-slider[data-v-41ace2e4]{background-color:#3498db}.switch-success .switch-input:checked+.switch-slider[data-v-41ace2e4]{background-color:#2ecc71}.switch-warning .switch-input:checked+.switch-slider[data-v-41ace2e4]{background-color:#f39c12}.switch-danger .switch-input:checked+.switch-slider[data-v-41ace2e4]{background-color:#e74c3c}.switch-purple .switch-input:checked+.switch-slider[data-v-41ace2e4]{background-color:#9b59b6}.switch-with-icons .switch-slider[data-v-41ace2e4]:after{content:"✕";position:absolute;right:10px;top:50%;transform:translateY(-50%);color:#aaa;font-size:12px;font-weight:700;transition:all .3s ease}.switch-with-icons .switch-input:checked+.switch-slider[data-v-41ace2e4]:after{content:"✓";left:10px;right:auto;color:#fff}.switch-disabled[data-v-41ace2e4]{opacity:.6;cursor:not-allowed}.switch-with-labels .switch-slider[data-v-41ace2e4]:after{content:"关";position:absolute;right:10px;top:50%;transform:translateY(-50%);color:#aaa;font-size:12px;transition:all .3s ease}.switch-with-labels .switch-input:checked+.switch-slider[data-v-41ace2e4]:after{content:"开";left:10px;right:auto;color:#fff}.gr-circle[data-v-fa22a4c3]{width:100%;height:100%;border-radius:50%;background-color:#d1e7ff;border:1px solid #000000;display:flex;align-items:center;justify-content:center;overflow:hidden}.gr-circle-text[data-v-fa22a4c3]{word-wrap:break-word;overflow-wrap:break-word;white-space:normal;max-width:80%;text-align:center;line-height:1.4}.gr-rectangle[data-v-98efe4a0]{width:100%;height:100%;background-color:#d1e7ff;border:1px solid #000000;display:flex;align-items:center;justify-content:center;overflow:hidden}.gr-rectangle-text[data-v-98efe4a0]{word-wrap:break-word;overflow-wrap:break-word;white-space:normal;max-width:80%;text-align:center;line-height:1.4}.gr-triangle[data-v-25fd969b]{width:100%;height:100%}.gr-triangle-text[data-v-25fd969b]{word-wrap:break-word;overflow-wrap:break-word;white-space:normal;text-align:center;line-height:1.4}.show-scroll{overflow:auto!important}.hidden-scroll{overflow:hidden!important}#aaaa{cursor:grab}.mx-window-mask{position:absolute;left:0;top:0;width:100%;height:100%;background:transparent;display:none}.img-vr-fit-ratio img{width:100%;height:100%;object-fit:contain}.img-vr-fit img{width:100%;height:100%}.mxWindow tr:first-child{height:36px}.resize-image{display:none}.mxDisabled{opacity:.5!important}html td.mxWindowTitle{background:#fff;height:36px;display:flex;align-items:center;color:#262626!important;padding:0 0 0 30px!important;border-bottom:1px solid #dcdcdc!important;font-weight:400;font-size:14px!important;font-family:Microsoft YaHei UI!important;justify-content:space-between}html td.mxWindowTitle div{position:relative!important;display:flex!important;right:0!important;top:auto!important}html td.mxWindowTitle div img{width:36px;height:36px;padding:12px}html td.mxWindowTitle div img:nth-child(1):hover{background:#f5f7fa}html td.mxWindowTitle div img:nth-child(3):hover{background:#f5f7fa}div.mxWindowPane{background:#fff;height:100%;width:100%}#canvas{cursor:default!important}.is-block{display:block!important}.is-hidden{display:none!important}.main-text{margin:2px;display:flex;overflow:hidden;position:relative}.main-text .svg-edit-gr{background:none;pointer-events:none}.btn-index-none,.switch-none{width:100%;height:100%;border-radius:6px;opacity:1;display:flex;overflow:hidden;gap:8px}.btn-index-none:active{opacity:.7}.btn-index{width:100%;height:100%;border-radius:6px;opacity:1;display:flex;color:#fff;background:#4383fe;gap:8px;overflow:hidden}.btn-index:hover{opacity:.8}.btn-index:active{opacity:1}.switch-self{--el-color-primary: #409eff}.svg-edit{pointer-events:all;position:absolute;top:0;left:0;width:100%;height:100%}.mxRubberband{z-index:999}.controls{position:fixed;bottom:20px;left:0;right:0;text-align:center;padding:10px;background:#fff;opacity:.9}.hyperlink-btn{pointer-events:all!important;cursor:pointer!important}.bgss-light{border-top:none;border-left:none;pointer-events:none;cursor:default!important}.iconfont{cursor:default!important}.bg-light{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;position:relative;display:flex;justify-content:center;align-items:center;font-size:12px;overflow:hidden}.bg-creat-comp{overflow:hidden;position:relative;opacity:1}.svg-edit-gr{position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(-45deg,transparent 49%,#9998982b 49%,#afa3a3 51%,transparent 51%);background-size:6px 6px;pointer-events:all}.svg-edit-gr-body{position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(-45deg,transparent 49%,#9998982b 49%,#afa3a3 51%,transparent 51%);background-size:6px 6px;pointer-events:none;opacity:.4}.svg-preview-gr{pointer-events:all}.svg-preview-gr .svg-edit-gr{pointer-events:none;background:none}.mx-selection{stroke:#f3e521!important;stroke-width:2px!important;stroke-dasharray:3 3!important;stroke-opacity:.8!important}.main-gd{width:100%;height:100%;display:flex;justify-content:center;align-items:center;line-height:normal;position:relative;overflow:hidden}.main-body{display:inline-block;position:relative;overflow:auto;width:100%;height:100%;z-index:0}.transparentRect{position:absolute;width:0;height:0;top:0;left:0;box-shadow:0 0 0 1000vmax #fff;pointer-events:none}.btn-bg-jd{box-sizing:border-box;width:100%;height:100%;background:#f5f5f5;border:1px solid #C0C0C0;display:flex;box-shadow:inset -1px -1px #333;overflow:hidden;gap:8px}.btn-bg-jd:active{box-shadow:inset 1px 1px #333}.custom-rect{display:flex;position:relative}.custom-rect-p{display:flex;align-items:center;justify-content:center;position:relative}.custom-rect-p span,.custom-rect span{word-wrap:break-word;overflow-wrap:break-word;white-space:normal;text-align:center;line-height:1.4;padding:0 10px}.triangle{clip-path:polygon(50% 0%,0% 100%,100% 100%);align-items:end!important;padding:0 25%;pointer-events:none;position:relative}.triangle span{position:absolute;left:50%;top:70%;transform:translate(-50%,-50%)}.rectangle{clip-path:polygon(0% 0%,100% 0%,100% 100%,0% 100%);pointer-events:none}.circle{clip-path:circle(50% at 50% 50%);pointer-events:none}div.mxWindow{border:none;background:transparent;box-shadow:0 12px 32px 4px #0000000a,0 8px 20px #00000014;z-index:40!important}.mxWindow td.mxWindowTitle{border-bottom:1px solid #e7ecf2!important}.mxWindow tr:first-child{height:26px!important}
2
- /*$vite$:1*/`,document.head.appendChild(be),window.mxLoadResources=!1,window.mxForceIncludes=!0,window.mxResourceExtension=".txt",window.mxLoadStylesheets=!1;const X=[];for(let t=0;t<256;++t)X.push((t+256).toString(16).slice(1));function Fe(t,e=0){return(X[t[e+0]]+X[t[e+1]]+X[t[e+2]]+X[t[e+3]]+"-"+X[t[e+4]]+X[t[e+5]]+"-"+X[t[e+6]]+X[t[e+7]]+"-"+X[t[e+8]]+X[t[e+9]]+"-"+X[t[e+10]]+X[t[e+11]]+X[t[e+12]]+X[t[e+13]]+X[t[e+14]]+X[t[e+15]]).toLowerCase()}let pe;const Re=new Uint8Array(16);function We(){if(!pe){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");pe=crypto.getRandomValues.bind(crypto)}return pe(Re)}const xe={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ae(t,e,a){var o;if(xe.randomUUID&&!t)return xe.randomUUID();t=t||{};const d=t.random??((o=t.rng)==null?void 0:o.call(t))??We();if(d.length<16)throw new Error("Random bytes length must be >= 16");return d[6]=d[6]&15|64,d[8]=d[8]&63|128,Fe(d)}const je=(t,e,a)=>{let d=["edit"];return t&&t.forEach(o=>{e.includes(o.code)?o.disable=!1:d.includes(o.code)||(o.disable=!0)}),t},ve={BoundLabels:"icon-binding-label","kitUI:BoundLabelWidget":"icon-binding-label",BoundCanvas:"icon-general-icon",PopupBinding:"icon-general-icon",ActionButton:"icon-hyperlink"},le={BoundLabels:"BoundLabels",Canvas:"Canvas",PopupBinding:"PopupBinding",ValueBinding:"ValueBinding",SetPointBinding:"SetPointBinding",BoundLabelBinding:"BoundLabelBinding",ActionBinding:"ActionBinding",ActionButton:"ActionButton",SaveButton:"SaveButton",RefreshButton:"RefreshButton",HyperlinkButton:"HyperlinkButton",ToggleButton:"ToggleButton",BackButton:"BackButton",ShapeCircle:"ShapeCircle",ShapeRect:"ShapeRect",ShapeTriangle:"ShapeTriangle",ShapePolygon:"ShapePolygon",ShapePentagon:"ShapePentagon",ShapeHexagon:"ShapeHexagon",ShapePolygons:"ShapePolygons",StraightLine:"StraightLine",DashedLine:"DashedLine",Arrow:"Arrow",DashedArrow:"DashedArrow",DoubleArrow:"DoubleArrow",DashedDoubleArrow:"DashedDoubleArrow","kitUI:BoundLabelWidget":"BoundLabels","kitUI:ActionButtonWidget":"ActionButton","kitUI:SaveButtonWidget":"SaveButton","kitUI:RefreshButtonWidget":"RefreshButton","kitUI:HyperlinkButtonWidget":"HyperlinkButton","kitUI:ToggleButtonWidget":"ToggleButton","kitUI:BackButtonWidget":"BackButton","kitUI:BargraphBarWidget":"BargraphBar","kitUI:ShapeRectWidget":"ShapeRect","kitUI:ShapeCircleWidget":"ShapeCircle","kitUI:ShapeTriangleWidget":"ShapeTriangle","kitUI:ShapePolygonWidget":"ShapePolygon","kitUI:ShapePentagonWidget":"ShapePentagon","kitUI:ShapeHexagonWidget":"ShapeHexagon","kitUI:ShapePolygonsWidget":"ShapePolygons","kitUI:StraightLineWidget":"StraightLine","kitUI:DashedLineWidget":"DashedLine","kitUI:ArrowWidget":"Arrow","kitUI:DashedArrowWidget":"DashedArrow","kitUI:DoubleArrowWidget":"DoubleArrow","kitUI:PictureWidget":"Picture","kitUI:DashedDoubleArrowWidget":"DashedDoubleArrow","kitLogic:Schedule":"Schedule"};let ke={BoundLabels:[{name:"子集",value:"ValueBinding",type:"metaCore:String",key:"treeData",isHide:!0},{name:"来源",value:"other",type:"metaCore:String",key:"from",isHide:!0},{name:"背景(动效)",value:null,type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"边框",value:"0 none black",type:"metaCore:Border",key:"border",bind:!1},{name:"字体",value:{},type:"metaCore:FontUI",key:"font",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"字体颜色(动效)",value:null,type:"metaCore:Brush",key:"color",bind:!0,animate:{isShow:!1,value:"null"}},{name:"水平对齐",value:"center",type:"metaCore:Enum",key:"justifyContent",bind:!1,option:[{label:"左对齐",value:"start"},{label:"水平居中",value:"center"},{label:"右对齐",value:"end"}]},{name:"垂直对齐",value:"center",type:"metaCore:Enum",key:"alignItems",bind:!1,option:[{label:"顶端对齐",value:"start"},{label:"垂直居中",value:"center"},{label:"底端对齐",value:"end"}]},{name:"大小与位置",value:{width:100,height:20,x:0,y:0},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:100},{name:"height",value:20}]},{name:"图片(动效)",value:"",type:"metaCore:Image",key:"image",bind:!0,animate:{isShow:!1,value:""}},{name:"文本(动效)",value:"",type:"metaCore:String",key:"text",bind:!0,animate:{isShow:!1,value:""}},{name:"文本与图片间隙",value:"4.0",bind:!1,type:"metaCore:Double",key:"gap",precision:2},{name:"文本与图片位置",value:"row",type:"metaCore:Enum",key:"flexDirection",option:[{label:"底端",value:"column"},{label:"右侧",value:"row"},{label:"顶端",value:"column-reverse"},{label:"左侧",value:"row-reverse"}]}],Canvas:[{name:"背景",value:null,type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"水平对齐",value:"center",type:"metaCore:Enum",key:"horizontalAlign",animate:{isShow:!1,value:"null"},option:[{label:"左对齐",value:"start"},{label:"水平居中",value:"center"},{label:"右对齐",value:"end"}]},{name:"垂直对齐",value:"center",type:"metaCore:Enum",key:"verticalAlign",animate:{isShow:!1,value:"null"},option:[{label:"顶端对齐",value:"start"},{label:"垂直居中",value:"center"},{label:"底端对齐",value:"end"}]},{name:"缩放",value:"hidden",type:"metaCore:Enum",key:"scrollBar",animate:{isShow:!1,value:"null"},option:[{label:"无",value:"hidden"}]},{name:"视图大小",value:"1000,800",type:"metaCore:ViewSize",key:"viewSize",animate:{isShow:!1,value:"null"},option:[{label:"宽度",value:"width"},{label:"高度",value:"height"}]}],PopupBinding:[{name:"路径",value:null,type:"metaCore:Ord",key:"ord",bind:!0,animate:!1},{name:"标题",value:"弹窗",type:"metaCore:String",key:"title",bind:!0,animate:!1},{name:"位置大小",value:{x:100,y:100,width:800,height:600},type:"metaCore:Local",key:"local",option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:0},{name:"height",value:0}]},{name:"是否居中",value:"true",type:"metaCore:Enum",key:"isCenter",bind:!0,option:[{label:"是",value:"true"},{label:"否",value:"false"}]}],ValueBinding:[{name:"路径",value:"null",type:"metaCore:Ord",key:"ord",bind:!0},{name:"超链接",value:"null",type:"metaCore:Ord",key:"hyperlink",bind:!0}],SetPointBinding:[{name:"路径",value:"null",type:"metaCore:Ord",key:"ord",bind:!0},{name:"超链接",value:"null",type:"metaCore:Ord",key:"hyperlink",bind:!0}],BoundLabelBinding:[{name:"路径",value:null,type:"metaCore:Ord",key:"ord",bind:!0},{name:"超链接",value:null,type:"metaCore:Ord",key:"hyperlink",bind:!0}],ActionButton:[{name:"类型",value:"btn",type:"metaCore:String",key:"compType",isHide:!0},{name:"子集",value:"ActionBinding",type:"metaCore:String",key:"treeData",isHide:!0},{name:"背景(动效)",value:null,type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"按钮风格",value:"sq",type:"metaCore:Enum",key:"btntype",bind:!1,option:[{label:"无",value:"none"},{label:"沙丘",value:"sq"},{label:"经典",value:"jd"}]},{name:"字体",value:{},type:"metaCore:FontUI",key:"font",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"字体颜色(动效)",value:null,type:"metaCore:Brush",key:"color",bind:!0,animate:{isShow:!1,value:"null"}},{name:"水平对齐",value:"center",type:"metaCore:Enum",key:"justifyContent",bind:!1,option:[{label:"左对齐",value:"start"},{label:"水平居中",value:"center"},{label:"右对齐",value:"end"}]},{name:"垂直对齐",value:"center",type:"metaCore:Enum",key:"alignItems",bind:!1,option:[{label:"顶端对齐",value:"start"},{label:"垂直居中",value:"center"},{label:"底端对齐",value:"end"}]},{name:"大小与位置",value:{width:100,height:30,x:0,y:0},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:100},{name:"height",value:30}]},{name:"图片(动效)",value:"",type:"metaCore:Image",key:"image",bind:!0,animate:{isShow:!1,value:"null"}},{name:"文本(动效)",value:"",type:"metaCore:String",key:"text",bind:!0,animate:{isShow:!0,value:"null"}},{name:"文本与图片间隙",value:"4.0",bind:!1,type:"metaCore:Double",key:"gap",precision:2},{name:"文本与图片位置",value:"row",type:"metaCore:Enum",key:"flexDirection",option:[{label:"底端",value:"column"},{label:"右侧",value:"row"},{label:"顶端",value:"column-reverse"},{label:"左侧",value:"row-reverse"}]}],ActionBinding:[{name:"路径",value:"null",type:"metaCore:Ord",key:"ord",bind:!0}],ImageButton:[{name:"背景(动效)",value:null,type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"按钮风格",value:"sq",type:"metaCore:Enum",key:"btntype",bind:!1,option:[{label:"无",value:"none"},{label:"沙丘",value:"sq"},{label:"经典",value:"jd"}]},{name:"字体",value:{},type:"metaCore:FontUI",key:"font",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"字体颜色(动效)",value:null,type:"metaCore:Brush",key:"color",bind:!0,animate:{isShow:!1,value:"null"}},{name:"水平对齐",value:"center",type:"metaCore:Enum",key:"justifyContent",bind:!1,option:[{label:"左对齐",value:"start"},{label:"水平居中",value:"center"},{label:"右对齐",value:"end"}]},{name:"垂直对齐",value:"center",type:"metaCore:Enum",key:"alignItems",bind:!1,option:[{label:"顶端对齐",value:"start"},{label:"垂直居中",value:"center"},{label:"底端对齐",value:"end"}]},{name:"大小与位置",value:{width:100,height:30,x:0,y:0},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:0},{name:"height",value:0}]},{name:"图片(动效)",value:"/files/icon/back.png",type:"metaCore:Image",key:"image",bind:!0,animate:{isShow:!1,value:"null"}},{name:"文本(动效)",value:"返回",type:"metaCore:String",key:"text",bind:!0,animate:{isShow:!0,value:"null"}},{name:"文本与图片间隙",value:"4.0",bind:!1,type:"metaCore:Double",key:"gap",precision:2},{name:"文本与图片位置",value:"row",type:"metaCore:Enum",key:"flexDirection",option:[{label:"底端",value:"column"},{label:"右侧",value:"row"},{label:"顶端",value:"column-reverse"},{label:"左侧",value:"row-reverse"}]}],SaveButton:[{name:"类型",value:"iconbtn",type:"metaCore:String",key:"compType",isHide:!0},{name:"背景(动效)",value:null,type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"按钮风格",value:"sq",type:"metaCore:Enum",key:"btntype",bind:!1,option:[{label:"无",value:"none"},{label:"沙丘",value:"sq"},{label:"经典",value:"jd"}]},{name:"字体",value:{},type:"metaCore:FontUI",key:"font",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"字体颜色(动效)",value:null,type:"metaCore:Brush",key:"color",bind:!0,animate:{isShow:!1,value:"null"}},{name:"水平对齐",value:"center",type:"metaCore:Enum",key:"justifyContent",bind:!1,option:[{label:"左对齐",value:"start"},{label:"水平居中",value:"center"},{label:"右对齐",value:"end"}]},{name:"垂直对齐",value:"center",type:"metaCore:Enum",key:"alignItems",bind:!1,option:[{label:"顶端对齐",value:"start"},{label:"垂直居中",value:"center"},{label:"底端对齐",value:"end"}]},{name:"大小与位置",value:{width:100,height:30,x:0,y:0},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:0},{name:"height",value:0}]},{name:"图片(动效)",value:"",type:"metaCore:Image",key:"image",bind:!0,animate:{isShow:!1,value:"null"}},{name:"文本(动效)",value:"保存",type:"metaCore:String",key:"text",bind:!0,animate:{isShow:!0,value:"null"}},{name:"文本与图片间隙",value:"4.0",bind:!1,type:"metaCore:Double",key:"gap",precision:2},{name:"文本与图片位置",value:"row",type:"metaCore:Enum",key:"flexDirection",option:[{label:"底端",value:"column"},{label:"右侧",value:"row"},{label:"顶端",value:"column-reverse"},{label:"左侧",value:"row-reverse"}]}],RefreshButton:[{name:"类型",value:"iconbtn",type:"metaCore:String",key:"compType",isHide:!0},{name:"背景(动效)",value:null,type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"按钮风格",value:"sq",type:"metaCore:Enum",key:"btntype",bind:!1,option:[{label:"无",value:"none"},{label:"沙丘",value:"sq"},{label:"经典",value:"jd"}]},{name:"字体",value:{},type:"metaCore:FontUI",key:"font",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"字体颜色(动效)",value:null,type:"metaCore:Brush",key:"color",bind:!0,animate:{isShow:!1,value:"null"}},{name:"水平对齐",value:"center",type:"metaCore:Enum",key:"justifyContent",bind:!1,option:[{label:"左对齐",value:"start"},{label:"水平居中",value:"center"},{label:"右对齐",value:"end"}]},{name:"垂直对齐",value:"center",type:"metaCore:Enum",key:"alignItems",bind:!1,option:[{label:"顶端对齐",value:"start"},{label:"垂直居中",value:"center"},{label:"底端对齐",value:"end"}]},{name:"大小与位置",value:{width:100,height:30,x:0,y:0},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:0},{name:"height",value:0}]},{name:"图片(动效)",value:"",type:"metaCore:Image",key:"image",bind:!0,animate:{isShow:!1,value:"null"}},{name:"文本(动效)",value:"刷新",type:"metaCore:String",key:"text",bind:!0,animate:{isShow:!0,value:"null"}},{name:"文本与图片间隙",value:"4.0",bind:!1,type:"metaCore:Double",key:"gap",precision:2},{name:"文本与图片位置",value:"row",type:"metaCore:Enum",key:"flexDirection",option:[{label:"底端",value:"column"},{label:"右侧",value:"row"},{label:"顶端",value:"column-reverse"},{label:"左侧",value:"row-reverse"}]}],HyperlinkButton:[{name:"子集",value:"ValueBinding",type:"metaCore:String",key:"treeData",isHide:!0},{name:"类型",value:"btn",type:"metaCore:String",key:"compType",isHide:!0},{name:"背景(动效)",value:null,type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"按钮风格",value:"sq",type:"metaCore:Enum",key:"btntype",bind:!1,option:[{label:"无",value:"none"},{label:"沙丘",value:"sq"},{label:"经典",value:"jd"}]},{name:"字体",value:{},type:"metaCore:FontUI",key:"font",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"字体颜色(动效)",value:null,type:"metaCore:Brush",key:"color",bind:!0,animate:{isShow:!1,value:"null"}},{name:"水平对齐",value:"center",type:"metaCore:Enum",key:"justifyContent",bind:!1,option:[{label:"左对齐",value:"start"},{label:"水平居中",value:"center"},{label:"右对齐",value:"end"}]},{name:"垂直对齐",value:"center",type:"metaCore:Enum",key:"alignItems",bind:!1,option:[{label:"顶端对齐",value:"start"},{label:"垂直居中",value:"center"},{label:"底端对齐",value:"end"}]},{name:"大小与位置",value:{width:100,height:30,x:0,y:0},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:0},{name:"height",value:0}]},{name:"图片(动效)",value:"",type:"metaCore:Image",key:"image",bind:!0,animate:{isShow:!1,value:"null"}},{name:"文本(动效)",value:"",type:"metaCore:String",key:"text",bind:!0,animate:{isShow:!0,value:"null"}},{name:"文本与图片间隙",value:"4.0",bind:!1,type:"metaCore:Double",key:"gap",precision:2},{name:"文本与图片位置",value:"row",type:"metaCore:Enum",key:"flexDirection",option:[{label:"底端",value:"column"},{label:"右侧",value:"row"},{label:"顶端",value:"column-reverse"},{label:"左侧",value:"row-reverse"}]}],ToggleButton:[{name:"类型",value:"switch",type:"metaCore:String",key:"compType",isHide:!0},{name:"子集",value:"SetPointBinding",type:"metaCore:String",key:"treeData",isHide:!0},{name:"背景(动效)",value:null,type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"按钮风格",value:"sq",type:"metaCore:Enum",key:"btntype",bind:!1,option:[{label:"无",value:"none"},{label:"沙丘",value:"sq"},{label:"经典",value:"jd"}]},{name:"字体",value:{},type:"metaCore:FontUI",key:"font",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"字体颜色(动效)",value:null,type:"metaCore:Brush",key:"color",bind:!0,animate:{isShow:!1,value:"null"}},{name:"水平对齐",value:"center",type:"metaCore:Enum",key:"justifyContent",bind:!1,option:[{label:"左对齐",value:"start"},{label:"水平居中",value:"center"},{label:"右对齐",value:"end"}]},{name:"垂直对齐",value:"center",type:"metaCore:Enum",key:"alignItems",bind:!1,option:[{label:"顶端对齐",value:"start"},{label:"垂直居中",value:"center"},{label:"底端对齐",value:"end"}]},{name:"大小与位置",value:{width:60,height:30,x:0,y:0},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:0},{name:"height",value:0}]},{name:"图片(动效)",value:"",type:"metaCore:Image",key:"image",bind:!0,animate:{isShow:!1,value:"null"}},{name:"文本(动效)",value:"",type:"metaCore:String",key:"text",bind:!0,animate:{isShow:!0,value:"null"}},{name:"文本与图片间隙",value:"4.0",bind:!1,type:"metaCore:Double",key:"gap",precision:2},{name:"文本与图片位置",value:"row",type:"metaCore:Enum",key:"flexDirection",option:[{label:"底端",value:"column"},{label:"右侧",value:"row"},{label:"顶端",value:"column-reverse"},{label:"左侧",value:"row-reverse"}]}],BargraphBar:[{name:"子集",value:"ValueBinding",type:"metaCore:String",key:"treeData",isHide:!0},{name:"类型",value:"bar",type:"metaCore:String",key:"compType",isHide:!0},{name:"背景(动效)",value:null,type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"填充色",value:"#D1E7FF",type:"metaCore:Brush",key:"fillColor",bind:!0,animate:{isShow:!1,value:"null"}},{name:"文字颜色",value:"#333333",type:"metaCore:Brush",key:"color",bind:!0,animate:{isShow:!1,value:"null"}},{name:"大小与位置",value:{width:100,height:200,x:0,y:0},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:0},{name:"height",value:0}]},{name:"最大刻度",value:100,type:"metaCore:Double",key:"max",precision:2},{name:"最小刻度",value:0,type:"metaCore:Double",key:"min",precision:2},{name:"方向",value:"vertical",type:"metaCore:Enum",bind:!1,key:"orientation",option:[{label:"垂直",value:"vertical"},{label:"水平",value:"horizontal"}]},{name:"刻度值",value:10,type:"metaCore:Double",key:"scales",precision:2},{name:"刻度字体",value:{},type:"metaCore:FontUI",key:"scalefont",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"刻度显示",value:!0,type:"metaCore:Enum",bind:!1,key:"scalevisible",option:[{label:"显示",value:!0},{label:"不显示",value:!1}]},{name:"图片(动效)",value:"",type:"metaCore:Image",key:"image",bind:!0,animate:{isShow:!1,value:"null"}},{name:"文本(动效)",value:"",type:"metaCore:String",key:"text",bind:!0,animate:{isShow:!1,value:"null"}},{name:"液位(动效)",value:"",type:"metaCore:String",key:"value",bind:!0,animate:{isShow:!1,value:"null"}},{name:"数值字体",value:{},type:"metaCore:FontUI",key:"valuefont",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"数值显示",value:!0,type:"metaCore:Enum",bind:!1,key:"valuevisible",option:[{label:"显示",value:!0},{label:"不显示",value:!1}]}],BackButton:[{name:"类型",value:"iconbtn",type:"metaCore:String",key:"compType",isHide:!0},{name:"背景(动效)",value:null,type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"按钮风格",value:"sq",type:"metaCore:Enum",key:"btntype",bind:!1,option:[{label:"无",value:"none"},{label:"沙丘",value:"sq"},{label:"经典",value:"jd"}]},{name:"字体",value:{},type:"metaCore:FontUI",key:"font",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"字体颜色(动效)",value:null,type:"metaCore:Brush",key:"color",bind:!0,animate:{isShow:!1,value:"null"}},{name:"水平对齐",value:"center",type:"metaCore:Enum",key:"justifyContent",bind:!1,option:[{label:"左对齐",value:"start"},{label:"水平居中",value:"center"},{label:"右对齐",value:"end"}]},{name:"垂直对齐",value:"center",type:"metaCore:Enum",key:"alignItems",bind:!1,option:[{label:"顶端对齐",value:"start"},{label:"垂直居中",value:"center"},{label:"底端对齐",value:"end"}]},{name:"大小与位置",value:{width:100,height:30,x:0,y:0},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:0},{name:"height",value:0}]},{name:"图片(动效)",value:"",type:"metaCore:Image",key:"image",bind:!0,animate:{isShow:!1,value:"null"}},{name:"文本(动效)",value:"返回",type:"metaCore:String",key:"text",bind:!0,animate:{isShow:!0,value:"null"}},{name:"文本与图片间隙",value:"4.0",bind:!1,type:"metaCore:Double",key:"gap",precision:2},{name:"文本与图片位置",value:"row",type:"metaCore:Enum",key:"flexDirection",option:[{label:"底端",value:"column"},{label:"右侧",value:"row"},{label:"顶端",value:"column-reverse"},{label:"左侧",value:"row-reverse"}]}],ShapeRect:[{name:"类型",value:"rect",type:"metaCore:String",key:"gtype",bind:!1,isHide:!0},{name:"参数",value:"shape=rectangle;perimeter=ellipsePerimeter;",type:"metaCore:String",key:"perimeter",bind:!1,isHide:!0},{name:"背景(动效)",value:"#D1E7FF",type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"边框值",value:"1",type:"metaCore:Double",key:"borderValue",precision:0},{name:"边框颜色",value:"#000000",type:"metaCore:Brush",key:"stroke",bind:!0},{name:"字体",value:{},type:"metaCore:FontUI",key:"font",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"字体颜色(动效)",value:null,type:"metaCore:Brush",key:"color",bind:!0,animate:{isShow:!1,value:"null"}},{name:"文本(动效)",value:"",type:"metaCore:String",key:"text",bind:!0,animate:{isShow:!0,value:"null"}},{name:"大小与位置",value:{x:0,y:0,width:100,height:100},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:0},{name:"height",value:0}]}],ShapeCircle:[{name:"类型",value:"rect",type:"metaCore:String",key:"gtype",bind:!1,isHide:!0},{name:"参数",value:"shape=ellipse;perimeter=ellipsePerimeter;",type:"metaCore:String",key:"perimeter",bind:!1,isHide:!0},{name:"背景(动效)",value:"#D1E7FF",type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"边框值",value:"1",type:"metaCore:Double",key:"borderValue",precision:0},{name:"边框颜色",value:"#000000",type:"metaCore:Brush",key:"stroke",bind:!0},{name:"字体",value:{},type:"metaCore:FontUI",key:"font",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"字体颜色(动效)",value:null,type:"metaCore:Brush",key:"color",bind:!0,animate:{isShow:!1,value:"null"}},{name:"文本(动效)",value:"",type:"metaCore:String",key:"text",bind:!0,animate:{isShow:!0,value:"null"}},{name:"大小与位置",value:{x:0,y:0,width:100,height:100},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:0},{name:"height",value:0}]}],ShapeTriangle:[{name:"类型",value:"rect",type:"metaCore:String",key:"gtype",bind:!1,isHide:!0},{name:"参数",value:"shape=triangle;perimeter=ellipsePerimeter;direction=north;",type:"metaCore:String",key:"perimeter",bind:!1,isHide:!0},{name:"背景(动效)",value:"#D1E7FF",type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"边框值",value:"1",type:"metaCore:Double",key:"borderValue",precision:0},{name:"边框颜色",value:"#000000",type:"metaCore:Brush",key:"stroke",bind:!0},{name:"字体",value:{},type:"metaCore:FontUI",key:"font",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"字体颜色(动效)",value:null,type:"metaCore:Brush",key:"color",bind:!0,animate:{isShow:!1,value:"null"}},{name:"文本(动效)",value:"",type:"metaCore:String",key:"text",bind:!0,animate:{isShow:!0,value:"null"}},{name:"大小与位置",value:{x:0,y:0,width:100,height:100},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:0},{name:"height",value:0}]}],ShapePolygon:[],ShapePentagon:[],ShapeHexagon:[],ShapePolygons:[],StraightLine:[{name:"类型",value:"line",type:"metaCore:String",key:"compType",bind:!1,isHide:!0},{name:"参数",value:"endArrow=none",type:"metaCore:String",key:"perimeter",bind:!1,isHide:!0},{name:"宽度",value:"1",type:"metaCore:Double",key:"strokeWidth",precision:0},{name:"颜色",value:"#333333",type:"metaCore:Brush",key:"strokeColor",bind:!0}],DashedLine:[{name:"类型",value:"line",type:"metaCore:String",key:"compType",bind:!1,isHide:!0},{name:"参数",value:"dashed=1;endArrow=none;",type:"metaCore:String",key:"perimeter",bind:!1,isHide:!0},{name:"宽度",value:"1",type:"metaCore:Double",key:"strokeWidth",precision:0},{name:"颜色",value:"#333333",type:"metaCore:Brush",key:"strokeColor",bind:!0},{name:"虚线格子长度",value:"3",type:"metaCore:Double",key:"dashWidth",precision:0},{name:"虚线间隔",value:"1",type:"metaCore:Double",key:"dashSpace",precision:0}],Arrow:[{name:"类型",value:"line",type:"metaCore:String",key:"compType",bind:!1,isHide:!0},{name:"参数",value:"endArrow=classic;",type:"metaCore:String",key:"perimeter",bind:!1,isHide:!0},{name:"宽度",value:"1",type:"metaCore:Double",key:"strokeWidth",precision:0},{name:"颜色",value:"#333333",type:"metaCore:Brush",key:"strokeColor",bind:!0}],DashedArrow:[{name:"类型",value:"line",type:"metaCore:String",key:"compType",bind:!1,isHide:!0},{name:"参数",value:"endArrow=classic;dashed=1;",type:"metaCore:String",key:"perimeter",bind:!1,isHide:!0},{name:"宽度",value:"1",type:"metaCore:Double",key:"strokeWidth",precision:0},{name:"颜色",value:"#333333",type:"metaCore:Brush",key:"strokeColor",bind:!0},{name:"虚线格子长度",value:"3",type:"metaCore:Double",key:"dashWidth",precision:0},{name:"虚线间隔",value:"1",type:"metaCore:Double",key:"dashSpace",precision:0}],DoubleArrow:[{name:"类型",value:"line",type:"metaCore:String",key:"compType",bind:!1,isHide:!0},{name:"参数",value:"startArrow=classic; startFill=1; endArrow=classic; endFill=1;",type:"metaCore:String",key:"perimeter",bind:!1,isHide:!0},{name:"宽度",value:"1",type:"metaCore:Double",key:"strokeWidth",precision:0},{name:"颜色",value:"#333333",type:"metaCore:Brush",key:"strokeColor",bind:!0}],DashedDoubleArrow:[{name:"类型",value:"line",type:"metaCore:String",key:"compType",bind:!1,isHide:!0},{name:"参数",value:"dashed=1;startArrow=classic;startFill=1;endArrow=classic;endFill=1;",type:"metaCore:String",key:"perimeter",bind:!1,isHide:!0},{name:"宽度",value:"1",type:"metaCore:Double",key:"strokeWidth",precision:0},{name:"颜色",value:"#333333",type:"metaCore:Brush",key:"strokeColor",bind:!0},{name:"虚线格子长度",value:"3",type:"metaCore:Double",key:"dashWidth",precision:0},{name:"虚线间隔",value:"1",type:"metaCore:Double",key:"dashSpace",precision:0}],Schedule:[{name:"来源",value:"other",type:"metaCore:String",key:"from",isHide:!0},{name:"类型",value:"schedule",type:"metaCore:String",key:"compType",isHide:!0},{name:"大小与位置",value:{width:100,height:100,x:0,y:0},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:100},{name:"height",value:100}]}],Picture:[{name:"图片(动效)",value:"",type:"metaCore:Image",key:"image",bind:!0,animate:{isShow:!1,value:""}},{name:"大小与位置",value:{width:100,height:100,x:0,y:0},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:100},{name:"height",value:20}]},{name:"自适应",value:"fitRatio",type:"metaCore:Enum",key:"scale",bind:!1,option:[{label:"无",value:"none"},{label:"自适应",value:"fit"},{label:"等比例",value:"fitRatio"}]}]};const He=(t,e,a={})=>{let d={};t=="kitUI:BoundLabelWidget"?t="BoundLabels":t=="kitUI:CanvasWidget"&&(t="Canvas");let o=ke[le[t]];return o?(a&&Object.keys(a).length>0&&o.forEach(m=>{let h=a[m.key];h&&(m=Object.assign(m,h))}),d={title:le[t],value:e,icon:ve[t],children:o},JSON.parse(JSON.stringify(d))):{}},we=(t,e,a={},d)=>{let o={},m=ke[le[t]];if(m&&m.length>0){let h=null,b=m.find(E=>E.key=="treeData"),S=m.find(E=>E.key=="compType"),x=[],y=[];if(a&&Object.keys(a).length>0)m.forEach(E=>{let B=a[E.key];B&&(E=Object.assign(E,B)),y.push({...E})});else{let E=["RefreshButton","BackButton","SaveButton"],B=b&&!E.includes(le[t])&&le[t]!=="ActionButton",k={text:{animate:{isShow:!!B,value:"null",realPath:{key:1,path:"null"}}},image:{value:"",animate:{isShow:!1,value:""}},value:{value:"null",animate:{isShow:!!B,value:"null",realPath:{key:1,path:"null"}}}};E.includes(le[t])||(k.text.value=""),m.forEach(T=>{let P=k[T.key];P&&(T=Object.assign(T,P)),y.push({...T})})}if(b){let E=b.value||"ValueBinding";x=[He(E,e+1,{ord:{value:"null",realPath:{key:1,path:"null"}}})]}S&&(h=S.value),o={title:le[t],value:e,icon:ve[t],children:y,treeData:x};let C={};return o.children.forEach(E=>{let B=E.key;C[B]=E.value}),{style:C,compType:h,data:JSON.parse(JSON.stringify(o))}}else return{}};function Ge(t,e,a){return new Promise((d,o)=>{let m=t.getDefaultParent(),h=t.getModel();h.beginUpdate();try{var b=t.insertEdge(m,null,"",null,null,e.style),S=t.getCellGeometry(e);let y=S.getTerminalPoint(!0),C=a.x-y.x,D=a.y-y.y,E=S.getTerminalPoint(!1);var x=new mxGeometry;x.setTerminalPoint(new mxPoint(y.x+C,y.y+D),!0),x.setTerminalPoint(new mxPoint(E.x+C,E.y+D),!1),b.setGeometry(x),b.value=e.value,b.type=e.type,b.model="yes",b.type="edge",b.iconName=e.iconName,d(b)}finally{h.endUpdate()}})}async function _e(t,e,a,d){if(e&&e.length>0){let D=e[0];var o=t.getCellGeometry(D),m=o.x,h=o.y,b=a.x,S=a.y,x=b-m,y=S-h;t.getModel().beginUpdate();try{var C=t.getDefaultParent();let E=t.importCells(e,0,0,C),B=[];if(E!=null){for(let k=0;k<E.length;k++){const T=E[k];T!=null&&B.push(T)}t.moveCells(B,x,y);for(let k=0;k<e.length;k++){let T=e[k];if(T.type=="edge"){let P=await Ge(t,T,a);B.push(P)}}}setTimeout(()=>{t.setSelectionCells(B),d.handelEvent({key:"paste",val:B})},10)}finally{t.getModel().endUpdate()}}}function Ye(t,e){return new Promise((a,d)=>{let o=t.getDefaultParent(),m=t.getModel();m.beginUpdate();try{var h=t.insertEdge(o,null,"",null,null,e.style),b=10,S=10,x=t.getCellGeometry(e);let C=x.getTerminalPoint(!0),D=x.getTerminalPoint(!1);var y=new mxGeometry;y.setTerminalPoint(new mxPoint(C.x+b,C.y+S),!0),y.setTerminalPoint(new mxPoint(D.x+b,D.y+S),!1),h.setGeometry(y),h.value=e.value,h.type=e.type,h.model="yes",h.type="edge",h.iconName=e.iconName,a(h)}finally{m.endUpdate()}})}async function Qe(t,e,a){mxClipboard.copy(t,[]),t.getDefaultParent();let d=[],o=[];if(e&&e.length>0){for(let m=0;m<e.length;m++){const h=e[m];h.type==="edge"?o.push(h):d.push(h)}if(o.length>0)for(let m=0;m<o.length;m++){const h=o[m];let b=await Ye(t,h);d.push(b)}return t.addSelectionCells(d),d}}function Xe(t){let e=t.getModel().cells,a=[];for(const d in e){let o=e[d];o.type!="kitUI:CanvasWidget"&&o.id!="0"&&o.id!="1"&&a.push(e[d])}return a}function Ze(t){t.addAction("toUp",function(e){let a=t.graph,d=Xe(a);d&&d.length>0&&a.orderCells(!1,d)}),t.addAction("toDown",function(e){let a=t.graph,d=a.getModel(),o=a.getDefaultParent();var m=new Array;m=a.getSelectionCells();for(let h=0;h<m.length;h++){const b=m[h];d.add(o,b,1)}}),t.addAction("upOne",function(e){let a=t.graph,d=a.getModel(),o=a.getDefaultParent();var m=a.getSelectionCells();let b=[...o.children];if(m&&m.length>0)for(let S=0;S<m.length;S++){const x=m[S];let C=b.findIndex(D=>D.id==x.id)+S+1;b[C]&&(C=C+1),d.add(o,x,C)}}),t.addAction("downOne",function(e){let a=t.graph,d=a.getModel(),o=a.getDefaultParent();var m=a.getSelectionCells();let h=o.children;if(m&&m.length>0)for(let b=0;b<m.length;b++){const S=m[b],x=h.findIndex(C=>C.id==S.id),y=x-1<1?1:x-1;d.add(o,S,y)}})}async function Ce(t,e,a,d){let{pt:o,style:m,me:h,type:b,iconCls:S}=a,x=h.editor;switch(t){case"add":let{style:C,compType:D,data:E}=we(b,0,null);if(!E)return;D?await h.createCustomComponent({options:{style:myedit.getBaseAttr(E,props.thisTab),data:E,pt:o,type:b,tmpType:D,realType:b,iconName:S.replace("iconfont ","")}}):b=="kitUI:PictureWidget"?h.createAllVertex("img",[{iconName:S.replace("iconfont ",""),style:C,data:E,w:C.layout.width,h:C.layout.height,pt:o,realType:b}]):h.addVertex({options:{iconName:S.replace("iconfont ",""),style:C,data:E,w:C.layout.width,h:C.layout.height,pt:o,realType:b}});break;case"del":e.isEnabled()&&(e.removeCells(),d.handelEvent({key:"delete"}));break;case"edit":let B=null;var y=new Array;y=e.getSelectionCells(),y&&y.length>0?B=y[0]:B=h.parent,d.handelEvent({key:"edit",val:B});break;case"clone":var y=new Array;y=e.getSelectionCells(),mxClipboard.copy(e,y),mxClipboard.paste(e),await Qe(e,mxClipboard.cells),d.handelEvent({key:"clone",val:y});break;case"copy":var y=new Array;y=e.getSelectionCells(),mxClipboard.copy(e,y),d.handelEvent({key:"copy",val:y});break;case"paste":const k=mxClipboard.cells;_e(e,k,o,d);break;case"cut":mxClipboard.cut(e,y);break;case"alignLeft":x.execute("alignCellsLeft");break;case"alignRight":x.execute("alignCellsRight");break;case"alignCenterHorizontal":x.execute("alignCellsCenter");break;case"alignCenterVertical":x.execute("alignCellsMiddle");break;case"toUp":x.execute("toFront"),d.handelEvent({key:"toLayer",val:y});break;case"toDown":x.execute("toDown"),d.handelEvent({key:"toLayer",val:y});break;case"upOne":x.execute("upOne"),d.handelEvent({key:"toLayer",val:y});break;case"downOne":x.execute("downOne"),d.handelEvent({key:"toLayer",val:y});break;case"alignCellsTop":x.execute("alignCellsTop");break;case"alignCellsBottom":x.execute("alignCellsBottom");break}}function Je(t,e,a){if(!e)return;const d=t.getModel();let o=d.getStyle(e);e.type=="kitUI:CanvasWidget"&&(o=e.style),d.beginUpdate();try{if(o===a)return;d.setStyle(e,a)}finally{d.endUpdate()}const m={cell:e,oldStyle:o,newStyle:a,undo:function(){d.beginUpdate();try{let b=Se(this.cell,this.oldStyle),S=t.container.querySelector("canvas");if(S&&this.cell.type=="kitUI:CanvasWidget"){if(b&&b.viewSize){let y=b.viewSize.split(",");if(y&&y.length>0){let C=this.cell.geometry;C!=null&&(C=C.clone(),C.width=y[0],C.height=y[1],d.setGeometry(this.cell,C))}}b["background-image"]?S.style.background=`${b["background-image"]}center center no-repeat`:S.style.background="transparent"}b&&Object.keys(b).length>0&&(this.cell.value.style=b,this.cell.value.data=Ae(b,this.cell.value.data),d.setStyle(this.cell,this.oldStyle),t.refresh(this.cell))}finally{d.endUpdate()}},redo:function(){d.beginUpdate();try{let b=Se(this.cell,this.newStyle),S=t.container.querySelector("canvas");if(S&&this.cell.type=="kitUI:CanvasWidget"){if(b&&b.viewSize){let y=b.viewSize.split(",");if(y&&y.length>0){let C=this.cell.geometry;C!=null&&(C=C.clone(),C.width=y[0],C.height=y[1],d.setGeometry(this.cell,C))}}b["background-image"]?S.style.background=`${b["background-image"]}center center no-repeat`:S.style.background="transparent"}this.cell.value.style=b,this.cell.value.data=Ae(b,this.cell.value.data),t.refresh(this.cell)}finally{d.endUpdate()}}},h=new mxUndoableEdit(d);h.add(m),d.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",h)),d.fireEvent(new mxEventObject(mxEvent.REDO,"edit",h))}function qe(t){return t!==null&&typeof t=="object"}function Ke(t){return t.slice(0,1)==="-"&&(t=t.slice(1)),t.replace(/([^-])(?:-+([^-]))/g,function(e,a,d){return a+d.toUpperCase()})}function Se(t,e){if(qe(e))return e;const a=e.trim().split(";"),d={};a.forEach(S=>{if(!S.trim())return;const x=S.indexOf("=");if(x===-1)return;const y=S.substring(0,x).trim(),C=S.substring(x+1).trim(),D=Ke(y);let E=C;D==="gap"&&(E=C.replace("px","")),d[D]=E});let{style:o,compType:m,data:h}=we(t.realType,"0",null);return{...o,...d}}function Ae(t,e){return e?((e.children||[]).forEach(d=>{d.value=t[d.key]||null}),e):[]}function ze(t){let e=this;e.ts=t;function a(x,y){if(document.activeElement!==y.srcElement)return;let C=10;y.ctrlKey&&(C=1);const D=x.getSelectionCells();let E=x.getModel();E.beginUpdate();try{let B=0,k=0;y.key==="ArrowUp"?(k=-C,B=0):y.key==="ArrowDown"?(k=C,B=0):y.key==="ArrowLeft"?(B=-C,k=0):y.key==="ArrowRight"&&(B=C,k=0),x.moveCells(D,B,k)}finally{E.endUpdate()}}function d(x){let y=x.indexOfNextAdd;return!!(x.history&&x.history.length==1&&y==1)}e.graph=null;let o=!1,m=!1;const h=function(x,y,C){let D=e.graph;if(!D)return;const E=x.ctrlKey||x.metaKey;let B=!1;if(!e.ts.pageShortcuts){if(E){if(x.key==="z"||x.key==="Z")d(y),y.canUndo()&&(y.undo(),e.ts.handelEvent({key:"unre"}),C&&C("undo"));else if(x.key==="y"||x.key==="Y")d(y),y.canRedo()&&(y.redo(),e.ts.handelEvent({key:"unre"}),C&&C("redo"));else if(x.key==="a"||x.key==="A")D.selectCells(!0,!1),e.ts.handelEvent({key:"selectAll"});else if(x.key==="c"||x.key==="C"){if(o)return;let k=new Array;k=D.getSelectionCells(),k&&k.length>0&&(mxClipboard.copy(D,k),o=!0,m=!1,e.ts.handelEvent({key:"copy",evt:x,val:k})),B=!0}else if(x.key==="v"||x.key==="V"){if(m)return;let T=mxClipboard.cells.filter(P=>P.type==="edge");mxClipboard.paste(D),T.length>0&&b(D,mxClipboard.cells),o=!1,m=!0,setTimeout(()=>{m=!1},10),e.ts.handelEvent({key:"paste",evt:x}),B=!0}else if(x.key==="x"||x.key==="X"){let k=D.getSelectionCells();mxClipboard.cut(D,k),e.ts.handelEvent({key:"cut",evt:x,val:k})}else if(x.key==="d"||x.key==="D"){let k=D.getSelectionCells();mxClipboard.copy(D,k),mxClipboard.paste(D),b(D,mxClipboard.cells),e.ts.handelEvent({key:"clone",evt:x,val:k}),B=!0}else if(x.key==="s"||x.key==="S"){let k=new Array;k=D.getSelectionCells(),e.ts.handelEvent({key:"save",evt:x,val:k}),x.preventDefault()}else if(x.key==="g"||x.key==="G"){const k=D.getSelectionCells();if(k.length>0){const T=D.groupCells(null,10,k);D.setSelectionCell(T)}else D.ungroupCells(k)}}x.key==="Delete"&&(D.isEnabled()&&D.removeCells(),e.ts.handelEvent({key:"delete"})),a(D,x),x.preventDefault(),x.stopPropagation()}B&&(x.preventDefault(),x.stopPropagation(),mxEvent.consume(x))};e.keyUpdown=function(x,y,C){e.graph=x,x.container.addEventListener("keydown",E=>h(E,y,C))},e.removeListener=function(x){x.setSelectionCells([]),e.graph=null,o=!1,m=!1};async function b(x,y){x.getDefaultParent();let C=[],D=[];if(y&&y.length>0){for(let E=0;E<y.length;E++){const B=y[E];B.type==="edge"&&D.push(B)}if(D.length>0)for(let E=0;E<D.length;E++){const B=D[E];let k=await S(x,B);C.push(k)}x.addSelectionCells(C)}}function S(x,y){return new Promise((C,D)=>{let E=x.getDefaultParent(),B=x.getModel();B.beginUpdate();try{var k=x.insertEdge(E,null,"",null,null,y.style),T=10,P=10,F=x.getCellGeometry(y);let j=F.getTerminalPoint(!0),I=F.getTerminalPoint(!1);var G=new mxGeometry;G.setTerminalPoint(new mxPoint(j.x+T,j.y+P),!0),G.setTerminalPoint(new mxPoint(I.x+T,I.y+P),!1),k.setGeometry(G),k.value=y.value,k.type=y.type,k.model="yes",k.type="edge",k.iconName=y.iconName,C(k)}finally{B.endUpdate()}})}}const me=(t,e)=>{let a={x:0,y:0};if(t){let d=e.offsetWidth,o=e.offsetHeight;t.horizontalAlign=="start"&&(a.x=0),t.horizontalAlign=="center"&&(a.x=d/2-t.width/2),t.horizontalAlign=="end"&&(a.x=d-t.width),t.verticalAlign=="start"&&(a.y=0),t.verticalAlign=="center"&&(a.y=o/2-t.height/2),t.verticalAlign=="end"&&(a.y=o-t.height)}return a},$e=t=>{const e=t.getModel();return et(e)};function et(t){const a=new mxCodec().encode(t);return ge(a)}function ge(t){let e={};if(t.nodeType===1){if(t.attributes.length>0){e.node={};for(let a=0;a<t.attributes.length;a++){const d=t.attributes.item(a);e.node[d.nodeName]=d.nodeValue}}}else t.nodeType===3&&(e=t.nodeValue);if(t.hasChildNodes())for(let a=0;a<t.childNodes.length;a++){const d=t.childNodes.item(a),o=d.nodeName;if(typeof e[o]>"u")e[o]=ge(d);else{if(typeof e[o].push>"u"){const m=e[o];e[o]=[],e[o].push(m)}e[o].push(ge(d))}}return e}function tt(t){return at(t)}function at(t){let e="";return e+=`<mxGraphModel>
2
+ /*$vite$:1*/`,document.head.appendChild(be),window.mxLoadResources=!1,window.mxForceIncludes=!0,window.mxResourceExtension=".txt",window.mxLoadStylesheets=!1;const X=[];for(let t=0;t<256;++t)X.push((t+256).toString(16).slice(1));function Fe(t,e=0){return(X[t[e+0]]+X[t[e+1]]+X[t[e+2]]+X[t[e+3]]+"-"+X[t[e+4]]+X[t[e+5]]+"-"+X[t[e+6]]+X[t[e+7]]+"-"+X[t[e+8]]+X[t[e+9]]+"-"+X[t[e+10]]+X[t[e+11]]+X[t[e+12]]+X[t[e+13]]+X[t[e+14]]+X[t[e+15]]).toLowerCase()}let pe;const Re=new Uint8Array(16);function We(){if(!pe){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");pe=crypto.getRandomValues.bind(crypto)}return pe(Re)}const xe={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ae(t,e,a){var o;if(xe.randomUUID&&!t)return xe.randomUUID();t=t||{};const d=t.random??((o=t.rng)==null?void 0:o.call(t))??We();if(d.length<16)throw new Error("Random bytes length must be >= 16");return d[6]=d[6]&15|64,d[8]=d[8]&63|128,Fe(d)}const je=(t,e,a)=>{let d=["edit"];return t&&t.forEach(o=>{e.includes(o.code)?o.disable=!1:d.includes(o.code)||(o.disable=!0)}),t},ve={BoundLabels:"icon-binding-label","kitUI:BoundLabelWidget":"icon-binding-label",BoundCanvas:"icon-general-icon",PopupBinding:"icon-general-icon",ActionButton:"icon-hyperlink"},le={BoundLabels:"BoundLabels",Canvas:"Canvas",PopupBinding:"PopupBinding",ValueBinding:"ValueBinding",SetPointBinding:"SetPointBinding",BoundLabelBinding:"BoundLabelBinding",ActionBinding:"ActionBinding",ActionButton:"ActionButton",SaveButton:"SaveButton",RefreshButton:"RefreshButton",HyperlinkButton:"HyperlinkButton",ToggleButton:"ToggleButton",BackButton:"BackButton",ShapeCircle:"ShapeCircle",ShapeRect:"ShapeRect",ShapeTriangle:"ShapeTriangle",ShapePolygon:"ShapePolygon",ShapePentagon:"ShapePentagon",ShapeHexagon:"ShapeHexagon",ShapePolygons:"ShapePolygons",StraightLine:"StraightLine",DashedLine:"DashedLine",Arrow:"Arrow",DashedArrow:"DashedArrow",DoubleArrow:"DoubleArrow",DashedDoubleArrow:"DashedDoubleArrow","kitUI:BoundLabelWidget":"BoundLabels","kitUI:ActionButtonWidget":"ActionButton","kitUI:SaveButtonWidget":"SaveButton","kitUI:RefreshButtonWidget":"RefreshButton","kitUI:HyperlinkButtonWidget":"HyperlinkButton","kitUI:ToggleButtonWidget":"ToggleButton","kitUI:BackButtonWidget":"BackButton","kitUI:BargraphBarWidget":"BargraphBar","kitUI:ShapeRectWidget":"ShapeRect","kitUI:ShapeCircleWidget":"ShapeCircle","kitUI:ShapeTriangleWidget":"ShapeTriangle","kitUI:ShapePolygonWidget":"ShapePolygon","kitUI:ShapePentagonWidget":"ShapePentagon","kitUI:ShapeHexagonWidget":"ShapeHexagon","kitUI:ShapePolygonsWidget":"ShapePolygons","kitUI:StraightLineWidget":"StraightLine","kitUI:DashedLineWidget":"DashedLine","kitUI:ArrowWidget":"Arrow","kitUI:DashedArrowWidget":"DashedArrow","kitUI:DoubleArrowWidget":"DoubleArrow","kitUI:PictureWidget":"Picture","kitUI:DashedDoubleArrowWidget":"DashedDoubleArrow","kitLogic:Schedule":"Schedule"};let ke={BoundLabels:[{name:"子集",value:"ValueBinding",type:"metaCore:String",key:"treeData",isHide:!0},{name:"来源",value:"other",type:"metaCore:String",key:"from",isHide:!0},{name:"背景(动效)",value:null,type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"边框",value:"0 none black",type:"metaCore:Border",key:"border",bind:!1},{name:"字体",value:{},type:"metaCore:FontUI",key:"font",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"字体颜色(动效)",value:null,type:"metaCore:Brush",key:"color",bind:!0,animate:{isShow:!1,value:"null"}},{name:"水平对齐",value:"center",type:"metaCore:Enum",key:"justifyContent",bind:!1,option:[{label:"左对齐",value:"start"},{label:"水平居中",value:"center"},{label:"右对齐",value:"end"}]},{name:"垂直对齐",value:"center",type:"metaCore:Enum",key:"alignItems",bind:!1,option:[{label:"顶端对齐",value:"start"},{label:"垂直居中",value:"center"},{label:"底端对齐",value:"end"}]},{name:"大小与位置",value:{width:100,height:20,x:0,y:0},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:100},{name:"height",value:20}]},{name:"图片(动效)",value:"",type:"metaCore:Image",key:"image",bind:!0,animate:{isShow:!1,value:""}},{name:"文本(动效)",value:"",type:"metaCore:String",key:"text",bind:!0,animate:{isShow:!1,value:""}},{name:"文本与图片间隙",value:"4.0",bind:!1,type:"metaCore:Double",key:"gap",precision:2},{name:"文本与图片位置",value:"row",type:"metaCore:Enum",key:"flexDirection",option:[{label:"底端",value:"column"},{label:"右侧",value:"row"},{label:"顶端",value:"column-reverse"},{label:"左侧",value:"row-reverse"}]}],Canvas:[{name:"背景",value:null,type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"水平对齐",value:"center",type:"metaCore:Enum",key:"horizontalAlign",animate:{isShow:!1,value:"null"},option:[{label:"左对齐",value:"start"},{label:"水平居中",value:"center"},{label:"右对齐",value:"end"}]},{name:"垂直对齐",value:"center",type:"metaCore:Enum",key:"verticalAlign",animate:{isShow:!1,value:"null"},option:[{label:"顶端对齐",value:"start"},{label:"垂直居中",value:"center"},{label:"底端对齐",value:"end"}]},{name:"缩放",value:"hidden",type:"metaCore:Enum",key:"scrollBar",animate:{isShow:!1,value:"null"},option:[{label:"无",value:"hidden"}]},{name:"视图大小",value:"1000,800",type:"metaCore:ViewSize",key:"viewSize",animate:{isShow:!1,value:"null"},option:[{label:"宽度",value:"width"},{label:"高度",value:"height"}]}],PopupBinding:[{name:"路径",value:null,type:"metaCore:Ord",key:"ord",bind:!0,animate:!1},{name:"标题",value:"弹窗",type:"metaCore:String",key:"title",bind:!0,animate:!1},{name:"位置大小",value:{x:100,y:100,width:800,height:600},type:"metaCore:Local",key:"local",option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:0},{name:"height",value:0}]},{name:"是否居中",value:"true",type:"metaCore:Enum",key:"isCenter",bind:!0,option:[{label:"是",value:"true"},{label:"否",value:"false"}]}],ValueBinding:[{name:"路径",value:"null",type:"metaCore:Ord",key:"ord",bind:!0},{name:"超链接",value:"null",type:"metaCore:Ord",key:"hyperlink",bind:!0}],SetPointBinding:[{name:"路径",value:"null",type:"metaCore:Ord",key:"ord",bind:!0},{name:"超链接",value:"null",type:"metaCore:Ord",key:"hyperlink",bind:!0}],BoundLabelBinding:[{name:"路径",value:null,type:"metaCore:Ord",key:"ord",bind:!0},{name:"超链接",value:null,type:"metaCore:Ord",key:"hyperlink",bind:!0}],ActionButton:[{name:"类型",value:"btn",type:"metaCore:String",key:"compType",isHide:!0},{name:"子集",value:"ActionBinding",type:"metaCore:String",key:"treeData",isHide:!0},{name:"背景(动效)",value:null,type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"按钮风格",value:"sq",type:"metaCore:Enum",key:"btntype",bind:!1,option:[{label:"无",value:"none"},{label:"沙丘",value:"sq"},{label:"经典",value:"jd"}]},{name:"字体",value:{},type:"metaCore:FontUI",key:"font",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"字体颜色(动效)",value:null,type:"metaCore:Brush",key:"color",bind:!0,animate:{isShow:!1,value:"null"}},{name:"水平对齐",value:"center",type:"metaCore:Enum",key:"justifyContent",bind:!1,option:[{label:"左对齐",value:"start"},{label:"水平居中",value:"center"},{label:"右对齐",value:"end"}]},{name:"垂直对齐",value:"center",type:"metaCore:Enum",key:"alignItems",bind:!1,option:[{label:"顶端对齐",value:"start"},{label:"垂直居中",value:"center"},{label:"底端对齐",value:"end"}]},{name:"大小与位置",value:{width:100,height:30,x:0,y:0},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:100},{name:"height",value:30}]},{name:"图片(动效)",value:"",type:"metaCore:Image",key:"image",bind:!0,animate:{isShow:!1,value:"null"}},{name:"文本(动效)",value:"",type:"metaCore:String",key:"text",bind:!0,animate:{isShow:!0,value:"null"}},{name:"文本与图片间隙",value:"4.0",bind:!1,type:"metaCore:Double",key:"gap",precision:2},{name:"文本与图片位置",value:"row",type:"metaCore:Enum",key:"flexDirection",option:[{label:"底端",value:"column"},{label:"右侧",value:"row"},{label:"顶端",value:"column-reverse"},{label:"左侧",value:"row-reverse"}]}],ActionBinding:[{name:"路径",value:"null",type:"metaCore:Ord",key:"ord",bind:!0}],ImageButton:[{name:"背景(动效)",value:null,type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"按钮风格",value:"sq",type:"metaCore:Enum",key:"btntype",bind:!1,option:[{label:"无",value:"none"},{label:"沙丘",value:"sq"},{label:"经典",value:"jd"}]},{name:"字体",value:{},type:"metaCore:FontUI",key:"font",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"字体颜色(动效)",value:null,type:"metaCore:Brush",key:"color",bind:!0,animate:{isShow:!1,value:"null"}},{name:"水平对齐",value:"center",type:"metaCore:Enum",key:"justifyContent",bind:!1,option:[{label:"左对齐",value:"start"},{label:"水平居中",value:"center"},{label:"右对齐",value:"end"}]},{name:"垂直对齐",value:"center",type:"metaCore:Enum",key:"alignItems",bind:!1,option:[{label:"顶端对齐",value:"start"},{label:"垂直居中",value:"center"},{label:"底端对齐",value:"end"}]},{name:"大小与位置",value:{width:100,height:30,x:0,y:0},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:0},{name:"height",value:0}]},{name:"图片(动效)",value:"/files/icon/back.png",type:"metaCore:Image",key:"image",bind:!0,animate:{isShow:!1,value:"null"}},{name:"文本(动效)",value:"返回",type:"metaCore:String",key:"text",bind:!0,animate:{isShow:!0,value:"null"}},{name:"文本与图片间隙",value:"4.0",bind:!1,type:"metaCore:Double",key:"gap",precision:2},{name:"文本与图片位置",value:"row",type:"metaCore:Enum",key:"flexDirection",option:[{label:"底端",value:"column"},{label:"右侧",value:"row"},{label:"顶端",value:"column-reverse"},{label:"左侧",value:"row-reverse"}]}],SaveButton:[{name:"类型",value:"iconbtn",type:"metaCore:String",key:"compType",isHide:!0},{name:"背景(动效)",value:null,type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"按钮风格",value:"sq",type:"metaCore:Enum",key:"btntype",bind:!1,option:[{label:"无",value:"none"},{label:"沙丘",value:"sq"},{label:"经典",value:"jd"}]},{name:"字体",value:{},type:"metaCore:FontUI",key:"font",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"字体颜色(动效)",value:null,type:"metaCore:Brush",key:"color",bind:!0,animate:{isShow:!1,value:"null"}},{name:"水平对齐",value:"center",type:"metaCore:Enum",key:"justifyContent",bind:!1,option:[{label:"左对齐",value:"start"},{label:"水平居中",value:"center"},{label:"右对齐",value:"end"}]},{name:"垂直对齐",value:"center",type:"metaCore:Enum",key:"alignItems",bind:!1,option:[{label:"顶端对齐",value:"start"},{label:"垂直居中",value:"center"},{label:"底端对齐",value:"end"}]},{name:"大小与位置",value:{width:100,height:30,x:0,y:0},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:0},{name:"height",value:0}]},{name:"图片(动效)",value:"",type:"metaCore:Image",key:"image",bind:!0,animate:{isShow:!1,value:"null"}},{name:"文本(动效)",value:"保存",type:"metaCore:String",key:"text",bind:!0,animate:{isShow:!0,value:"null"}},{name:"文本与图片间隙",value:"4.0",bind:!1,type:"metaCore:Double",key:"gap",precision:2},{name:"文本与图片位置",value:"row",type:"metaCore:Enum",key:"flexDirection",option:[{label:"底端",value:"column"},{label:"右侧",value:"row"},{label:"顶端",value:"column-reverse"},{label:"左侧",value:"row-reverse"}]}],RefreshButton:[{name:"类型",value:"iconbtn",type:"metaCore:String",key:"compType",isHide:!0},{name:"背景(动效)",value:null,type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"按钮风格",value:"sq",type:"metaCore:Enum",key:"btntype",bind:!1,option:[{label:"无",value:"none"},{label:"沙丘",value:"sq"},{label:"经典",value:"jd"}]},{name:"字体",value:{},type:"metaCore:FontUI",key:"font",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"字体颜色(动效)",value:null,type:"metaCore:Brush",key:"color",bind:!0,animate:{isShow:!1,value:"null"}},{name:"水平对齐",value:"center",type:"metaCore:Enum",key:"justifyContent",bind:!1,option:[{label:"左对齐",value:"start"},{label:"水平居中",value:"center"},{label:"右对齐",value:"end"}]},{name:"垂直对齐",value:"center",type:"metaCore:Enum",key:"alignItems",bind:!1,option:[{label:"顶端对齐",value:"start"},{label:"垂直居中",value:"center"},{label:"底端对齐",value:"end"}]},{name:"大小与位置",value:{width:100,height:30,x:0,y:0},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:0},{name:"height",value:0}]},{name:"图片(动效)",value:"",type:"metaCore:Image",key:"image",bind:!0,animate:{isShow:!1,value:"null"}},{name:"文本(动效)",value:"刷新",type:"metaCore:String",key:"text",bind:!0,animate:{isShow:!0,value:"null"}},{name:"文本与图片间隙",value:"4.0",bind:!1,type:"metaCore:Double",key:"gap",precision:2},{name:"文本与图片位置",value:"row",type:"metaCore:Enum",key:"flexDirection",option:[{label:"底端",value:"column"},{label:"右侧",value:"row"},{label:"顶端",value:"column-reverse"},{label:"左侧",value:"row-reverse"}]}],HyperlinkButton:[{name:"子集",value:"ValueBinding",type:"metaCore:String",key:"treeData",isHide:!0},{name:"类型",value:"btn",type:"metaCore:String",key:"compType",isHide:!0},{name:"背景(动效)",value:null,type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"按钮风格",value:"sq",type:"metaCore:Enum",key:"btntype",bind:!1,option:[{label:"无",value:"none"},{label:"沙丘",value:"sq"},{label:"经典",value:"jd"}]},{name:"字体",value:{},type:"metaCore:FontUI",key:"font",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"字体颜色(动效)",value:null,type:"metaCore:Brush",key:"color",bind:!0,animate:{isShow:!1,value:"null"}},{name:"水平对齐",value:"center",type:"metaCore:Enum",key:"justifyContent",bind:!1,option:[{label:"左对齐",value:"start"},{label:"水平居中",value:"center"},{label:"右对齐",value:"end"}]},{name:"垂直对齐",value:"center",type:"metaCore:Enum",key:"alignItems",bind:!1,option:[{label:"顶端对齐",value:"start"},{label:"垂直居中",value:"center"},{label:"底端对齐",value:"end"}]},{name:"大小与位置",value:{width:100,height:30,x:0,y:0},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:0},{name:"height",value:0}]},{name:"图片(动效)",value:"",type:"metaCore:Image",key:"image",bind:!0,animate:{isShow:!1,value:"null"}},{name:"文本(动效)",value:"",type:"metaCore:String",key:"text",bind:!0,animate:{isShow:!0,value:"null"}},{name:"文本与图片间隙",value:"4.0",bind:!1,type:"metaCore:Double",key:"gap",precision:2},{name:"文本与图片位置",value:"row",type:"metaCore:Enum",key:"flexDirection",option:[{label:"底端",value:"column"},{label:"右侧",value:"row"},{label:"顶端",value:"column-reverse"},{label:"左侧",value:"row-reverse"}]}],ToggleButton:[{name:"类型",value:"switch",type:"metaCore:String",key:"compType",isHide:!0},{name:"子集",value:"SetPointBinding",type:"metaCore:String",key:"treeData",isHide:!0},{name:"背景(动效)",value:null,type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"按钮风格",value:"sq",type:"metaCore:Enum",key:"btntype",bind:!1,option:[{label:"无",value:"none"},{label:"沙丘",value:"sq"},{label:"经典",value:"jd"}]},{name:"字体",value:{},type:"metaCore:FontUI",key:"font",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"字体颜色(动效)",value:null,type:"metaCore:Brush",key:"color",bind:!0,animate:{isShow:!1,value:"null"}},{name:"水平对齐",value:"center",type:"metaCore:Enum",key:"justifyContent",bind:!1,option:[{label:"左对齐",value:"start"},{label:"水平居中",value:"center"},{label:"右对齐",value:"end"}]},{name:"垂直对齐",value:"center",type:"metaCore:Enum",key:"alignItems",bind:!1,option:[{label:"顶端对齐",value:"start"},{label:"垂直居中",value:"center"},{label:"底端对齐",value:"end"}]},{name:"大小与位置",value:{width:60,height:30,x:0,y:0},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:0},{name:"height",value:0}]},{name:"图片(动效)",value:"",type:"metaCore:Image",key:"image",bind:!0,animate:{isShow:!1,value:"null"}},{name:"文本(动效)",value:"",type:"metaCore:String",key:"text",bind:!0,animate:{isShow:!0,value:"null"}},{name:"文本与图片间隙",value:"4.0",bind:!1,type:"metaCore:Double",key:"gap",precision:2},{name:"文本与图片位置",value:"row",type:"metaCore:Enum",key:"flexDirection",option:[{label:"底端",value:"column"},{label:"右侧",value:"row"},{label:"顶端",value:"column-reverse"},{label:"左侧",value:"row-reverse"}]}],BargraphBar:[{name:"子集",value:"ValueBinding",type:"metaCore:String",key:"treeData",isHide:!0},{name:"类型",value:"bar",type:"metaCore:String",key:"compType",isHide:!0},{name:"背景(动效)",value:null,type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"填充色",value:"#D1E7FF",type:"metaCore:Brush",key:"fillColor",bind:!0,animate:{isShow:!1,value:"null"}},{name:"文字颜色",value:"#333333",type:"metaCore:Brush",key:"color",bind:!0,animate:{isShow:!1,value:"null"}},{name:"大小与位置",value:{width:100,height:200,x:0,y:0},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:0},{name:"height",value:0}]},{name:"最大刻度",value:100,type:"metaCore:Double",key:"max",precision:2},{name:"最小刻度",value:0,type:"metaCore:Double",key:"min",precision:2},{name:"方向",value:"vertical",type:"metaCore:Enum",bind:!1,key:"orientation",option:[{label:"垂直",value:"vertical"},{label:"水平",value:"horizontal"}]},{name:"刻度值",value:10,type:"metaCore:Double",key:"scales",precision:2},{name:"刻度字体",value:{},type:"metaCore:FontUI",key:"scalefont",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"刻度显示",value:!0,type:"metaCore:Enum",bind:!1,key:"scalevisible",option:[{label:"显示",value:!0},{label:"不显示",value:!1}]},{name:"图片(动效)",value:"",type:"metaCore:Image",key:"image",bind:!0,animate:{isShow:!1,value:"null"}},{name:"文本(动效)",value:"",type:"metaCore:String",key:"text",bind:!0,animate:{isShow:!1,value:"null"}},{name:"液位(动效)",value:"",type:"metaCore:String",key:"value",bind:!0,animate:{isShow:!1,value:"null"}},{name:"数值字体",value:{},type:"metaCore:FontUI",key:"valuefont",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"数值显示",value:!0,type:"metaCore:Enum",bind:!1,key:"valuevisible",option:[{label:"显示",value:!0},{label:"不显示",value:!1}]}],BackButton:[{name:"类型",value:"iconbtn",type:"metaCore:String",key:"compType",isHide:!0},{name:"背景(动效)",value:null,type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"按钮风格",value:"sq",type:"metaCore:Enum",key:"btntype",bind:!1,option:[{label:"无",value:"none"},{label:"沙丘",value:"sq"},{label:"经典",value:"jd"}]},{name:"字体",value:{},type:"metaCore:FontUI",key:"font",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"字体颜色(动效)",value:null,type:"metaCore:Brush",key:"color",bind:!0,animate:{isShow:!1,value:"null"}},{name:"水平对齐",value:"center",type:"metaCore:Enum",key:"justifyContent",bind:!1,option:[{label:"左对齐",value:"start"},{label:"水平居中",value:"center"},{label:"右对齐",value:"end"}]},{name:"垂直对齐",value:"center",type:"metaCore:Enum",key:"alignItems",bind:!1,option:[{label:"顶端对齐",value:"start"},{label:"垂直居中",value:"center"},{label:"底端对齐",value:"end"}]},{name:"大小与位置",value:{width:100,height:30,x:0,y:0},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:0},{name:"height",value:0}]},{name:"图片(动效)",value:"",type:"metaCore:Image",key:"image",bind:!0,animate:{isShow:!1,value:"null"}},{name:"文本(动效)",value:"返回",type:"metaCore:String",key:"text",bind:!0,animate:{isShow:!0,value:"null"}},{name:"文本与图片间隙",value:"4.0",bind:!1,type:"metaCore:Double",key:"gap",precision:2},{name:"文本与图片位置",value:"row",type:"metaCore:Enum",key:"flexDirection",option:[{label:"底端",value:"column"},{label:"右侧",value:"row"},{label:"顶端",value:"column-reverse"},{label:"左侧",value:"row-reverse"}]}],ShapeRect:[{name:"类型",value:"rect",type:"metaCore:String",key:"gtype",bind:!1,isHide:!0},{name:"参数",value:"shape=rectangle;perimeter=ellipsePerimeter;",type:"metaCore:String",key:"perimeter",bind:!1,isHide:!0},{name:"背景(动效)",value:"#D1E7FF",type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"边框值",value:"1",type:"metaCore:Double",key:"borderValue",precision:0},{name:"边框颜色",value:"#000000",type:"metaCore:Brush",key:"stroke",bind:!0},{name:"字体",value:{},type:"metaCore:FontUI",key:"font",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"字体颜色(动效)",value:null,type:"metaCore:Brush",key:"color",bind:!0,animate:{isShow:!1,value:"null"}},{name:"文本(动效)",value:"",type:"metaCore:String",key:"text",bind:!0,animate:{isShow:!0,value:"null"}},{name:"大小与位置",value:{x:0,y:0,width:100,height:100},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:0},{name:"height",value:0}]}],ShapeCircle:[{name:"类型",value:"rect",type:"metaCore:String",key:"gtype",bind:!1,isHide:!0},{name:"参数",value:"shape=ellipse;perimeter=ellipsePerimeter;",type:"metaCore:String",key:"perimeter",bind:!1,isHide:!0},{name:"背景(动效)",value:"#D1E7FF",type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"边框值",value:"1",type:"metaCore:Double",key:"borderValue",precision:0},{name:"边框颜色",value:"#000000",type:"metaCore:Brush",key:"stroke",bind:!0},{name:"字体",value:{},type:"metaCore:FontUI",key:"font",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"字体颜色(动效)",value:null,type:"metaCore:Brush",key:"color",bind:!0,animate:{isShow:!1,value:"null"}},{name:"文本(动效)",value:"",type:"metaCore:String",key:"text",bind:!0,animate:{isShow:!0,value:"null"}},{name:"大小与位置",value:{x:0,y:0,width:100,height:100},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:0},{name:"height",value:0}]}],ShapeTriangle:[{name:"类型",value:"rect",type:"metaCore:String",key:"gtype",bind:!1,isHide:!0},{name:"参数",value:"shape=triangle;perimeter=ellipsePerimeter;direction=north;",type:"metaCore:String",key:"perimeter",bind:!1,isHide:!0},{name:"背景(动效)",value:"#D1E7FF",type:"metaCore:Brush",key:"background",bind:!0,animate:{isShow:!1,value:"null"}},{name:"边框值",value:"1",type:"metaCore:Double",key:"borderValue",precision:0},{name:"边框颜色",value:"#000000",type:"metaCore:Brush",key:"stroke",bind:!0},{name:"字体",value:{},type:"metaCore:FontUI",key:"font",bind:!1,children:[{name:"fontSize",displayName:"fontSize",value:"12.0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Double"},{name:"fontFamily",displayName:"fontFamily",value:"",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:String"},{name:"bold",displayName:"bold",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"italic",displayName:"italic",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"underline",displayName:"underline",value:"0",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]},{name:"nullDefault",displayName:"默认值",value:"1",isLeaf:!0,isFrozen:!0,flag:0,type:"metaCore:Enum",option:[{label:"false",value:"0"},{label:"true",value:"1"}]}]},{name:"字体颜色(动效)",value:null,type:"metaCore:Brush",key:"color",bind:!0,animate:{isShow:!1,value:"null"}},{name:"文本(动效)",value:"",type:"metaCore:String",key:"text",bind:!0,animate:{isShow:!0,value:"null"}},{name:"大小与位置",value:{x:0,y:0,width:100,height:100},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:0},{name:"height",value:0}]}],ShapePolygon:[],ShapePentagon:[],ShapeHexagon:[],ShapePolygons:[],StraightLine:[{name:"类型",value:"line",type:"metaCore:String",key:"compType",bind:!1,isHide:!0},{name:"参数",value:"endArrow=none",type:"metaCore:String",key:"perimeter",bind:!1,isHide:!0},{name:"宽度",value:"1",type:"metaCore:Double",key:"strokeWidth",precision:0},{name:"颜色",value:"#333333",type:"metaCore:Brush",key:"strokeColor",bind:!0}],DashedLine:[{name:"类型",value:"line",type:"metaCore:String",key:"compType",bind:!1,isHide:!0},{name:"参数",value:"dashed=1;endArrow=none;",type:"metaCore:String",key:"perimeter",bind:!1,isHide:!0},{name:"宽度",value:"1",type:"metaCore:Double",key:"strokeWidth",precision:0},{name:"颜色",value:"#333333",type:"metaCore:Brush",key:"strokeColor",bind:!0},{name:"虚线格子长度",value:"3",type:"metaCore:Double",key:"dashWidth",precision:0},{name:"虚线间隔",value:"1",type:"metaCore:Double",key:"dashSpace",precision:0}],Arrow:[{name:"类型",value:"line",type:"metaCore:String",key:"compType",bind:!1,isHide:!0},{name:"参数",value:"endArrow=classic;",type:"metaCore:String",key:"perimeter",bind:!1,isHide:!0},{name:"宽度",value:"1",type:"metaCore:Double",key:"strokeWidth",precision:0},{name:"颜色",value:"#333333",type:"metaCore:Brush",key:"strokeColor",bind:!0}],DashedArrow:[{name:"类型",value:"line",type:"metaCore:String",key:"compType",bind:!1,isHide:!0},{name:"参数",value:"endArrow=classic;dashed=1;",type:"metaCore:String",key:"perimeter",bind:!1,isHide:!0},{name:"宽度",value:"1",type:"metaCore:Double",key:"strokeWidth",precision:0},{name:"颜色",value:"#333333",type:"metaCore:Brush",key:"strokeColor",bind:!0},{name:"虚线格子长度",value:"3",type:"metaCore:Double",key:"dashWidth",precision:0},{name:"虚线间隔",value:"1",type:"metaCore:Double",key:"dashSpace",precision:0}],DoubleArrow:[{name:"类型",value:"line",type:"metaCore:String",key:"compType",bind:!1,isHide:!0},{name:"参数",value:"startArrow=classic; startFill=1; endArrow=classic; endFill=1;",type:"metaCore:String",key:"perimeter",bind:!1,isHide:!0},{name:"宽度",value:"1",type:"metaCore:Double",key:"strokeWidth",precision:0},{name:"颜色",value:"#333333",type:"metaCore:Brush",key:"strokeColor",bind:!0}],DashedDoubleArrow:[{name:"类型",value:"line",type:"metaCore:String",key:"compType",bind:!1,isHide:!0},{name:"参数",value:"dashed=1;startArrow=classic;startFill=1;endArrow=classic;endFill=1;",type:"metaCore:String",key:"perimeter",bind:!1,isHide:!0},{name:"宽度",value:"1",type:"metaCore:Double",key:"strokeWidth",precision:0},{name:"颜色",value:"#333333",type:"metaCore:Brush",key:"strokeColor",bind:!0},{name:"虚线格子长度",value:"3",type:"metaCore:Double",key:"dashWidth",precision:0},{name:"虚线间隔",value:"1",type:"metaCore:Double",key:"dashSpace",precision:0}],Schedule:[{name:"来源",value:"other",type:"metaCore:String",key:"from",isHide:!0},{name:"类型",value:"schedule",type:"metaCore:String",key:"compType",isHide:!0},{name:"大小与位置",value:{width:100,height:100,x:0,y:0},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:100},{name:"height",value:100}]}],Picture:[{name:"图片(动效)",value:"",type:"metaCore:Image",key:"image",bind:!0,animate:{isShow:!1,value:""}},{name:"大小与位置",value:{width:100,height:100,x:0,y:0},type:"metaCore:Position",key:"layout",bind:!1,option:[{name:"x",value:0},{name:"y",value:0},{name:"width",value:100},{name:"height",value:20}]},{name:"自适应",value:"fitRatio",type:"metaCore:Enum",key:"scale",bind:!1,option:[{label:"无",value:"none"},{label:"自适应",value:"fit"},{label:"等比例",value:"fitRatio"}]}]};const He=(t,e,a={})=>{let d={};t=="kitUI:BoundLabelWidget"?t="BoundLabels":t=="kitUI:CanvasWidget"&&(t="Canvas");let o=ke[le[t]];return o?(a&&Object.keys(a).length>0&&o.forEach(m=>{let h=a[m.key];h&&(m=Object.assign(m,h))}),d={title:le[t],value:e,icon:ve[t],children:o},JSON.parse(JSON.stringify(d))):{}},we=(t,e,a={},d)=>{let o={},m=ke[le[t]];if(m&&m.length>0){let h=null,b=m.find(E=>E.key=="treeData"),S=m.find(E=>E.key=="compType"),x=[],y=[];if(a&&Object.keys(a).length>0)m.forEach(E=>{let B=a[E.key];B&&(E=Object.assign(E,B)),y.push({...E})});else{let E=["RefreshButton","BackButton","SaveButton"],B=b&&!E.includes(le[t])&&le[t]!=="ActionButton",k={text:{animate:{isShow:!!B,value:"null",realPath:{key:1,path:"null"}}},image:{value:"",animate:{isShow:!1,value:""}},value:{value:"null",animate:{isShow:!!B,value:"null",realPath:{key:1,path:"null"}}}};E.includes(le[t])||(k.text.value=""),m.forEach(T=>{let P=k[T.key];P&&(T=Object.assign(T,P)),y.push({...T})})}if(b){let E=b.value||"ValueBinding";x=[He(E,e+1,{ord:{value:"null",realPath:{key:1,path:"null"}}})]}S&&(h=S.value),o={title:le[t],value:e,icon:ve[t],children:y,treeData:x};let C={};return o.children.forEach(E=>{let B=E.key;C[B]=E.value}),{style:C,compType:h,data:JSON.parse(JSON.stringify(o))}}else return{}};function Ge(t,e,a){return new Promise((d,o)=>{let m=t.getDefaultParent(),h=t.getModel();h.beginUpdate();try{var b=t.insertEdge(m,null,"",null,null,e.style),S=t.getCellGeometry(e);let y=S.getTerminalPoint(!0),C=a.x-y.x,D=a.y-y.y,E=S.getTerminalPoint(!1);var x=new mxGeometry;x.setTerminalPoint(new mxPoint(y.x+C,y.y+D),!0),x.setTerminalPoint(new mxPoint(E.x+C,E.y+D),!1),b.setGeometry(x),b.value=e.value,b.type=e.type,b.model="yes",b.type="edge",b.iconName=e.iconName,d(b)}finally{h.endUpdate()}})}async function _e(t,e,a,d){if(e&&e.length>0){let D=e[0];var o=t.getCellGeometry(D),m=o.x,h=o.y,b=a.x,S=a.y,x=b-m,y=S-h;t.getModel().beginUpdate();try{var C=t.getDefaultParent();let E=t.importCells(e,0,0,C),B=[];if(E!=null){for(let k=0;k<E.length;k++){const T=E[k];T!=null&&B.push(T)}t.moveCells(B,x,y);for(let k=0;k<e.length;k++){let T=e[k];if(T.type=="edge"){let P=await Ge(t,T,a);B.push(P)}}}setTimeout(()=>{t.setSelectionCells(B),d.handelEvent({key:"paste",val:B})},10)}finally{t.getModel().endUpdate()}}}function Ye(t,e){return new Promise((a,d)=>{let o=t.getDefaultParent(),m=t.getModel();m.beginUpdate();try{var h=t.insertEdge(o,null,"",null,null,e.style),b=10,S=10,x=t.getCellGeometry(e);let C=x.getTerminalPoint(!0),D=x.getTerminalPoint(!1);var y=new mxGeometry;y.setTerminalPoint(new mxPoint(C.x+b,C.y+S),!0),y.setTerminalPoint(new mxPoint(D.x+b,D.y+S),!1),h.setGeometry(y),h.value=e.value,h.type=e.type,h.model="yes",h.type="edge",h.iconName=e.iconName,a(h)}finally{m.endUpdate()}})}async function Qe(t,e,a){mxClipboard.copy(t,[]),t.getDefaultParent();let d=[],o=[];if(e&&e.length>0){for(let m=0;m<e.length;m++){const h=e[m];h.type==="edge"?o.push(h):d.push(h)}if(o.length>0)for(let m=0;m<o.length;m++){const h=o[m];let b=await Ye(t,h);d.push(b)}return t.addSelectionCells(d),d}}function Xe(t){let e=t.getModel().cells,a=[];for(const d in e){let o=e[d];o.type!="kitUI:CanvasWidget"&&o.id!="0"&&o.id!="1"&&a.push(e[d])}return a}function Ze(t){t.addAction("toUp",function(e){let a=t.graph,d=Xe(a);d&&d.length>0&&a.orderCells(!1,d)}),t.addAction("toDown",function(e){let a=t.graph,d=a.getModel(),o=a.getDefaultParent();var m=new Array;m=a.getSelectionCells();for(let h=0;h<m.length;h++){const b=m[h];d.add(o,b,1)}}),t.addAction("upOne",function(e){let a=t.graph,d=a.getModel(),o=a.getDefaultParent();var m=a.getSelectionCells();let b=[...o.children];if(m&&m.length>0)for(let S=0;S<m.length;S++){const x=m[S];let C=b.findIndex(D=>D.id==x.id)+S+1;b[C]&&(C=C+1),d.add(o,x,C)}}),t.addAction("downOne",function(e){let a=t.graph,d=a.getModel(),o=a.getDefaultParent();var m=a.getSelectionCells();let h=o.children;if(m&&m.length>0)for(let b=0;b<m.length;b++){const S=m[b],x=h.findIndex(C=>C.id==S.id),y=x-1<1?1:x-1;d.add(o,S,y)}})}async function Ce(t,e,a,d){let{pt:o,style:m,me:h,type:b,iconCls:S}=a,x=h.editor;switch(t){case"add":let{style:C,compType:D,data:E}=we(b,0,null);if(!E)return;D?await h.createCustomComponent({options:{style:myedit.getBaseAttr(E,props.thisTab),data:E,pt:o,type:b,tmpType:D,realType:b,iconName:S.replace("iconfont ","")}}):b=="kitUI:PictureWidget"?h.createAllVertex("img",[{iconName:S.replace("iconfont ",""),style:C,data:E,w:C.layout.width,h:C.layout.height,pt:o,realType:b}]):h.addVertex({options:{iconName:S.replace("iconfont ",""),style:C,data:E,w:C.layout.width,h:C.layout.height,pt:o,realType:b}});break;case"del":e.isEnabled()&&(e.removeCells(),d.handelEvent({key:"delete"}));break;case"edit":let B=null;var y=new Array;y=e.getSelectionCells(),y&&y.length>0?B=y[0]:B=h.parent,d.handelEvent({key:"edit",val:B});break;case"clone":var y=new Array;y=e.getSelectionCells(),mxClipboard.copy(e,y),mxClipboard.paste(e),await Qe(e,mxClipboard.cells),d.handelEvent({key:"clone",val:y});break;case"copy":var y=new Array;y=e.getSelectionCells(),mxClipboard.copy(e,y),d.handelEvent({key:"copy",val:y});break;case"paste":const k=mxClipboard.cells;_e(e,k,o,d);break;case"cut":mxClipboard.cut(e,y);break;case"alignLeft":x.execute("alignCellsLeft");break;case"alignRight":x.execute("alignCellsRight");break;case"alignCenterHorizontal":x.execute("alignCellsCenter");break;case"alignCenterVertical":x.execute("alignCellsMiddle");break;case"toUp":x.execute("toFront"),d.handelEvent({key:"toLayer",val:y});break;case"toDown":x.execute("toDown"),d.handelEvent({key:"toLayer",val:y});break;case"upOne":x.execute("upOne"),d.handelEvent({key:"toLayer",val:y});break;case"downOne":x.execute("downOne"),d.handelEvent({key:"toLayer",val:y});break;case"alignCellsTop":x.execute("alignCellsTop");break;case"alignCellsBottom":x.execute("alignCellsBottom");break}}function Je(t,e,a){if(!e)return;const d=t.getModel();let o=d.getStyle(e);e.type=="kitUI:CanvasWidget"&&(o=e.style),d.beginUpdate();try{if(o===a)return;d.setStyle(e,a)}finally{d.endUpdate()}const m={cell:e,oldStyle:o,newStyle:a,undo:function(){d.beginUpdate();try{let b=Se(this.cell,this.oldStyle),S=t.container.querySelector("canvas");if(S&&this.cell.type=="kitUI:CanvasWidget"){if(b&&b.viewSize){let y=b.viewSize.split(",");if(y&&y.length>0){let C=this.cell.geometry;C!=null&&(C=C.clone(),C.width=y[0],C.height=y[1],d.setGeometry(this.cell,C))}}b["background-image"]?S.style.background=`${b["background-image"]}center center no-repeat`:S.style.background="transparent"}b&&Object.keys(b).length>0&&(this.cell.value.style=b,this.cell.value.data=Ae(b,this.cell.value.data),d.setStyle(this.cell,this.oldStyle),t.refresh(this.cell))}finally{d.endUpdate()}},redo:function(){d.beginUpdate();try{let b=Se(this.cell,this.newStyle),S=t.container.querySelector("canvas");if(S&&this.cell.type=="kitUI:CanvasWidget"){if(b&&b.viewSize){let y=b.viewSize.split(",");if(y&&y.length>0){let C=this.cell.geometry;C!=null&&(C=C.clone(),C.width=y[0],C.height=y[1],d.setGeometry(this.cell,C))}}b["background-image"]?S.style.background=`${b["background-image"]}center center no-repeat`:S.style.background="transparent"}this.cell.value.style=b,this.cell.value.data=Ae(b,this.cell.value.data),t.refresh(this.cell)}finally{d.endUpdate()}}},h=new mxUndoableEdit(d);h.add(m),d.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",h)),d.fireEvent(new mxEventObject(mxEvent.REDO,"edit",h))}function qe(t){return t!==null&&typeof t=="object"}function Ke(t){return t.slice(0,1)==="-"&&(t=t.slice(1)),t.replace(/([^-])(?:-+([^-]))/g,function(e,a,d){return a+d.toUpperCase()})}function Se(t,e){if(qe(e))return e;const a=e.trim().split(";"),d={};a.forEach(S=>{if(!S.trim())return;const x=S.indexOf("=");if(x===-1)return;const y=S.substring(0,x).trim(),C=S.substring(x+1).trim(),D=Ke(y);let E=C;D==="gap"&&(E=C.replace("px","")),d[D]=E});let{style:o,compType:m,data:h}=we(t.realType,"0",null);return{...o,...d}}function Ae(t,e){return e?((e.children||[]).forEach(d=>{d.value=t[d.key]||null}),e):[]}function ze(t){let e=this;e.ts=t;function a(x,y){if(document.activeElement!==y.srcElement)return;let C=10;y.ctrlKey&&(C=1);const D=x.getSelectionCells();let E=x.getModel();E.beginUpdate();try{let B=0,k=0;y.key==="ArrowUp"?(k=-C,B=0):y.key==="ArrowDown"?(k=C,B=0):y.key==="ArrowLeft"?(B=-C,k=0):y.key==="ArrowRight"&&(B=C,k=0),x.moveCells(D,B,k)}finally{E.endUpdate()}}function d(x){let y=x.indexOfNextAdd;return!!(x.history&&x.history.length==1&&y==1)}e.graph=null;let o=!1,m=!1;const h=function(x,y,C){let D=e.graph;if(!D)return;const E=x.ctrlKey||x.metaKey;let B=!1;if(!e.ts.pageShortcuts){if(E){if(x.key==="z"||x.key==="Z")d(y),y.canUndo()&&(y.undo(),e.ts.handelEvent({key:"unre"}),C&&C("undo"));else if(x.key==="y"||x.key==="Y")d(y),y.canRedo()&&(y.redo(),e.ts.handelEvent({key:"unre"}),C&&C("redo"));else if(x.key==="a"||x.key==="A")D.selectCells(!0,!1),e.ts.handelEvent({key:"selectAll"});else if(x.key==="c"||x.key==="C"){if(o)return;let k=new Array;k=D.getSelectionCells(),k&&k.length>0&&(mxClipboard.copy(D,k),o=!0,m=!1,e.ts.handelEvent({key:"copy",evt:x,val:k})),B=!0}else if(x.key==="v"||x.key==="V"){if(m)return;let T=mxClipboard.cells.filter(P=>P.type==="edge");mxClipboard.paste(D),T.length>0&&b(D,mxClipboard.cells),o=!1,m=!0,setTimeout(()=>{m=!1},10),e.ts.handelEvent({key:"paste",evt:x}),B=!0}else if(x.key==="x"||x.key==="X"){let k=D.getSelectionCells();mxClipboard.cut(D,k),e.ts.handelEvent({key:"cut",evt:x,val:k})}else if(x.key==="d"||x.key==="D"){let k=D.getSelectionCells();mxClipboard.copy(D,k),mxClipboard.paste(D),b(D,mxClipboard.cells),e.ts.handelEvent({key:"clone",evt:x,val:k}),B=!0}else if(x.key==="s"||x.key==="S"){let k=new Array;k=D.getSelectionCells(),e.ts.handelEvent({key:"save",evt:x,val:k}),x.preventDefault()}else if(x.key==="g"||x.key==="G"){const k=D.getSelectionCells();if(k.length>0){const T=D.groupCells(null,10,k);D.setSelectionCell(T)}else D.ungroupCells(k)}}x.key==="Delete"&&(D.isEnabled()&&D.removeCells(),e.ts.handelEvent({key:"delete"})),a(D,x),x.preventDefault(),x.stopPropagation()}B&&(x.preventDefault(),x.stopPropagation(),mxEvent.consume(x))};e.keyUpdown=function(x,y,C){e.graph=x,x.container.addEventListener("keydown",E=>h(E,y,C))},e.removeListener=function(x){x.setSelectionCells([]),e.graph=null,o=!1,m=!1};async function b(x,y){x.getDefaultParent();let C=[],D=[];if(y&&y.length>0){for(let E=0;E<y.length;E++){const B=y[E];B.type==="edge"&&D.push(B)}if(D.length>0)for(let E=0;E<D.length;E++){const B=D[E];let k=await S(x,B);C.push(k)}x.addSelectionCells(C)}}function S(x,y){return new Promise((C,D)=>{let E=x.getDefaultParent(),B=x.getModel();B.beginUpdate();try{var k=x.insertEdge(E,null,"",null,null,y.style),T=10,P=10,F=x.getCellGeometry(y);let j=F.getTerminalPoint(!0),I=F.getTerminalPoint(!1);var H=new mxGeometry;H.setTerminalPoint(new mxPoint(j.x+T,j.y+P),!0),H.setTerminalPoint(new mxPoint(I.x+T,I.y+P),!1),k.setGeometry(H),k.value=y.value,k.type=y.type,k.model="yes",k.type="edge",k.iconName=y.iconName,C(k)}finally{B.endUpdate()}})}}const me=(t,e)=>{let a={x:0,y:0};if(t){let d=e.offsetWidth,o=e.offsetHeight;t.horizontalAlign=="start"&&(a.x=0),t.horizontalAlign=="center"&&(a.x=d/2-t.width/2),t.horizontalAlign=="end"&&(a.x=d-t.width),t.verticalAlign=="start"&&(a.y=0),t.verticalAlign=="center"&&(a.y=o/2-t.height/2),t.verticalAlign=="end"&&(a.y=o-t.height)}return a},$e=t=>{const e=t.getModel();return et(e)};function et(t){const a=new mxCodec().encode(t);return ge(a)}function ge(t){let e={};if(t.nodeType===1){if(t.attributes.length>0){e.node={};for(let a=0;a<t.attributes.length;a++){const d=t.attributes.item(a);e.node[d.nodeName]=d.nodeValue}}}else t.nodeType===3&&(e=t.nodeValue);if(t.hasChildNodes())for(let a=0;a<t.childNodes.length;a++){const d=t.childNodes.item(a),o=d.nodeName;if(typeof e[o]>"u")e[o]=ge(d);else{if(typeof e[o].push>"u"){const m=e[o];e[o]=[],e[o].push(m)}e[o].push(ge(d))}}return e}function tt(t){return at(t)}function at(t){let e="";return e+=`<mxGraphModel>
3
3
  `,e+=` <root>
4
4
  `,t.root&&Array.isArray(t.root.mxCell)&&t.root.mxCell.forEach(a=>{e+=" <mxCell",a.node&&Object.entries(a.node).forEach(([d,o])=>{const m=String(o).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;");e+=` ${d}="${m}"`}),a.Object||a.mxGeometry?(e+=`>
5
5
  `,a.Object&&(a.Object.node&&a.Object.node.as==="value"?(e+=`<Object as="value">
@@ -10,7 +10,7 @@
10
10
  `),e+=` </mxCell>
11
11
  `):e+=`/>
12
12
  `}),e+=` </root>
13
- `,e+="</mxGraphModel>",e}function fe(t){return typeof t!="string"&&(t=String(t)),t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function lt(t){let e=this,a=10,d="#dddddd",o="#ffffff00",m=1,h="square",b=1,S=0,x=0,y=1,C=null;e.createGrid=function(B,k,T){if(C=B,k){var P=document.createElement("canvas");if(!P)return;P.style.position="absolute";var F=C.getCellBounds(k);if(F){P.style.top=F.y+"px",P.style.left=F.x+"px",P.style.width=F.width+1+"px",P.style.height=F.height+1+"px",P.style.zIndex=-1,P.style.pointerEvents="none",P.id="gridCanvas_"+k.id,P.dataId=ae();let j=k.value.style||{};j.background&&j.background.indexOf("files/")>-1&&j["background-image"]?P.style.background=`${j["background-image"]} center center no-repeat`:P.style.background=""}let G=C.container.querySelector("#gridCanvas_"+k.id);G&&G.remove(),C.container.prepend(P),P.width=P.offsetWidth,P.height=P.offsetHeight,T?d="transparent":d="#dddddd",E(P),P.addEventListener("wheel",function(j){j.preventDefault();const I=P.getBoundingClientRect(),Z=j.clientX-I.left,K=j.clientY-I.top,ee=.1,ne=j.deltaY<0?1:-1,oe=Math.exp(ne*ee),re=Z/y,se=K/y;y*=oe,y=Math.min(Math.max(.5,y),5),S=re-Z/y,x=se-K/y,E(P),C&&(C.view.scale=y,C.refresh())}),C&&D()}};function D(){if(!C)return;C.snapPoint=function(k,T,P){if(!P&&this.snapToGrid&&a>0){const F=a/y,G=k.x-S,j=k.y-x;k.x=Math.round(G/F)*F+S,k.y=Math.round(j/F)*F+x}return k};const B=C.mouseUp;C.mouseUp=function(k,T){B.apply(this,arguments),this.selectedCells.length>0&&this.snapToGrid&&T.snapCellsToGrid(this.selectedCells)}}e.snapCellsToGrid=function(B){if(!(!B||B.length===0)){this.getModel().beginUpdate();try{for(let k=0;k<B.length;k++){const T=B[k],P=this.getCellGeometry(T);if(P){const F=P.clone(),G=this.snapPoint({x:F.x,y:F.y});F.x=G.x,F.y=G.y,this.getModel().setGeometry(T,F)}}}finally{this.getModel().endUpdate()}}};function E(B){y=C.view.scale;let k=B.getContext("2d");k.clearRect(0,0,B.width,B.height),k.fillStyle=o,k.fillRect(0,0,B.width,B.height);const T=a*y;if(T<2)return;k.strokeStyle=d,k.lineWidth=m,k.globalAlpha=b;const P=Math.floor(-S*y/T)*T,F=Math.floor(-x*y/T)*T,G=B.width+T,j=B.height+T;switch(h){case"dotted":k.fillStyle=d;for(let I=P;I<G;I+=T)for(let Z=F;Z<j;Z+=T)k.beginPath(),k.arc(I+.5,Z+.5,m,0,Math.PI*2),k.fill();break;case"dashed":k.setLineDash([5,3]),k.beginPath();for(let I=P;I<G;I+=T)k.moveTo(I+.5,0),k.lineTo(I+.5,B.height);for(let I=F;I<j;I+=T)k.moveTo(0,I+.5),k.lineTo(B.width,I+.5);k.stroke(),k.setLineDash([]);break;case"square":k.beginPath();for(let I=P;I<G;I+=T)k.moveTo(I+.5,0),k.lineTo(I+.5,B.height);for(let I=F;I<j;I+=T)k.moveTo(0,I+.5),k.lineTo(B.width,I+.5);k.stroke();break;default:k.beginPath();for(let I=P;I<G;I+=T)k.moveTo(I+.5,0),k.lineTo(I+.5,B.height);for(let I=F;I<j;I+=T)k.moveTo(0,I+.5),k.lineTo(B.width,I+.5);k.stroke()}k.globalAlpha=1}e.getGridConfig=function(){return{gridSize:a,scale:y,offsetX:S,offsetY:x}},e.setGridSize=function(B){a=B;const k=document.getElementById("canvas");k&&E(k)}}const nt=["src"],it={key:2,style:{"z-index":"0"}},ot={key:3},rt=["src"],st={key:2,style:{"z-index":"0"}},dt={key:3},ct=["src"],ut={key:2,style:{"z-index":"0"}},pt={key:3},he={__name:"btnIndex",props:{style:{type:Object,default:()=>({})}},setup(t){const e=t;return(a,d)=>t.style.btntype=="none"?(r.openBlock(),r.createElementBlock("div",{key:0,class:"btn-index-none",style:r.normalizeStyle(t.style)},[e.style.isIcon&&!e.style.imgUrl?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(["iconfont",e.style.iconName])},null,2)):r.createCommentVNode("",!0),e.style.imgUrl?(r.openBlock(),r.createElementBlock("img",{key:1,src:e.style.imgUrl,style:{"z-index":"0"},alt:" "},null,8,nt)):r.createCommentVNode("",!0),e.style.text?(r.openBlock(),r.createElementBlock("span",it,r.toDisplayString(e.style.text),1)):r.createCommentVNode("",!0),!e.style.imgUrl&&!e.style.text?(r.openBlock(),r.createElementBlock("span",ot)):r.createCommentVNode("",!0)],4)):t.style.btntype=="sq"?(r.openBlock(),r.createElementBlock("div",{key:1,class:"btn-index",style:r.normalizeStyle(t.style)},[e.style.isIcon&&!e.style.imgUrl?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(["iconfont",e.style.iconName])},null,2)):r.createCommentVNode("",!0),e.style.imgUrl?(r.openBlock(),r.createElementBlock("img",{key:1,src:e.style.imgUrl,style:{"z-index":"0"},alt:" "},null,8,rt)):r.createCommentVNode("",!0),e.style.text?(r.openBlock(),r.createElementBlock("span",st,r.toDisplayString(e.style.text),1)):r.createCommentVNode("",!0),!e.style.imgUrl&&!e.style.text?(r.openBlock(),r.createElementBlock("span",dt)):r.createCommentVNode("",!0)],4)):(r.openBlock(),r.createElementBlock("div",{key:2,class:"btn-bg-jd",style:r.normalizeStyle(t.style)},[e.style.isIcon&&!e.style.imgUrl?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(["iconfont",e.style.iconName])},null,2)):r.createCommentVNode("",!0),e.style.imgUrl?(r.openBlock(),r.createElementBlock("img",{key:1,src:e.style.imgUrl,style:{"z-index":"0"},alt:" "},null,8,ct)):r.createCommentVNode("",!0),e.style.text?(r.openBlock(),r.createElementBlock("span",ut,r.toDisplayString(e.style.text),1)):r.createCommentVNode("",!0),!e.style.imgUrl&&!e.style.text?(r.openBlock(),r.createElementBlock("span",pt)):r.createCommentVNode("",!0)],4))}},q=(t,e)=>{const a=t.__vccOpts||t;for(const[d,o]of e)a[d]=o;return a},mt={name:"VerticalRuler",props:{style:{type:Object,default:()=>({max:100,min:0,scales:10,value:0,layout:{height:400}})}},methods:{getNumber(t){if(typeof t=="number")return t;const e=parseFloat(t);return isNaN(e)?0:e},convertToStyleString(t){if(!t)return"";let e={};for(const a in t){if(!Object.hasOwn(t,a))continue;const d=t[a],o=a.replace(/([A-Z])/g,"-$1").toLowerCase();let m=d;o==="gap"&&(m=`${d}px`),(o==="fontSize"||o==="font-size")&&(m=`${d}px`),e[o]=m}return e}},computed:{getFontStyle(){let t=this,e=t.style,d={color:e.color,...e.valuefont};return t.convertToStyleString(d)},getScalesFontStyle(){let t=this,e=t.style,d={color:e.color,...e.scalefont};return t.convertToStyleString(d)},ywvalue(){const t=this,e=t.getNumber(t.style.value),a=t.getNumber(t.style.max),d=t.getNumber(t.style.min),o=t.getNumber(t.style.layout.height),m=Math.max(d,Math.min(e,a)),h=a-d;return h<=0?0:(m-d)/h*o-8},scaleInterval(){const t=this,e=t.getNumber(t.style.max),a=t.getNumber(t.style.min),d=t.getNumber(t.style.layout.height),o=Math.floor((e-a)/t.style.scales)+1;return o>1?d/(o-1):0},scaleValues(){const t=this,e=t.getNumber(t.style.max),a=t.getNumber(t.style.min),d=t.getNumber(t.style.scales)||10;let o=[];for(let m=e;m>=a;m-=d)o.push(m.toFixed(0));return o}},mounted(){}},gt={class:"ruler-container"};function ft(t,e,a,d,o,m){return r.openBlock(),r.createElementBlock("div",gt,[a.style.scalevisible||a.style.scalevisible==1?(r.openBlock(),r.createElementBlock("div",{key:0,class:"vertical-ruler",style:r.normalizeStyle(m.getScalesFontStyle)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(m.scaleValues,(h,b)=>(r.openBlock(),r.createElementBlock("div",{key:b,class:"scale-mark",style:r.normalizeStyle({top:`${b*m.scaleInterval}px`})},[b!=0?(r.openBlock(),r.createElementBlock("span",{key:0,class:"mark-value",style:r.normalizeStyle({color:a.style.color})},r.toDisplayString(h),5)):r.createCommentVNode("",!0),b!=0?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["mark-line",{"long-mark":b%5===0}]),style:r.normalizeStyle({background:a.style.color})},null,6)):r.createCommentVNode("",!0)],4))),128))],4)):r.createCommentVNode("",!0),r.createElementVNode("div",{class:"chart-bottom",style:r.normalizeStyle({height:`${m.ywvalue}px`,background:a.style.fillColor})},[a.style.valuevisible||a.style.valuevisible==1?(r.openBlock(),r.createElementBlock("span",{key:0,class:"value-text",style:r.normalizeStyle(m.getFontStyle)},r.toDisplayString(a.style.text),5)):r.createCommentVNode("",!0)],4)])}const ht=q(mt,[["render",ft],["__scopeId","data-v-b14d49d0"]]),yt={name:"VerticalRuler",props:{style:{type:Object,default:()=>({max:100,min:0,scales:10,value:0,layout:{height:400}})}},methods:{getNumber(t){if(typeof t=="number")return t;const e=parseFloat(t);return isNaN(e)?0:e},convertToStyleString(t){if(!t)return"";let e={};for(const a in t){if(!Object.hasOwn(t,a))continue;const d=t[a],o=a.replace(/([A-Z])/g,"-$1").toLowerCase();let m=d;o==="gap"&&(m=`${d}px`),(o==="fontSize"||o==="font-size")&&(m=`${d}px`),e[o]=m}return e}},computed:{getFontStyle(){let t=this,e=t.style,d={color:e.color,...e.valuefont};return t.convertToStyleString(d)},getScalesFontStyle(){let t=this,e=t.style,d={color:e.color,...e.scalefont};return t.convertToStyleString(d)},ywvalue(){const t=this,e=t.getNumber(t.style.value),a=t.getNumber(t.style.max),d=t.getNumber(t.style.min),o=t.getNumber(t.style.layout.width),m=Math.max(d,Math.min(e,a)),h=a-d;return h<=0?0:(m-d)/h*o},scaleInterval(){const t=this,e=t.getNumber(t.style.max),a=t.getNumber(t.style.min),d=t.getNumber(t.style.layout.width),o=Math.floor((e-a)/t.style.scales)+1;return o>1?d/(o-1):0},scaleValues(){const t=this,e=t.getNumber(t.style.max),a=t.getNumber(t.style.min),d=t.getNumber(t.style.scales)||10,o=[];for(let m=a;m<e;m+=d)o.push(m.toFixed(0));return o}}},bt={class:"ruler-h-container"};function xt(t,e,a,d,o,m){return r.openBlock(),r.createElementBlock("div",bt,[a.style.scalevisible||a.style.scalevisible==1?(r.openBlock(),r.createElementBlock("div",{key:0,class:"h-ruler",style:r.normalizeStyle(m.getScalesFontStyle)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(m.scaleValues,(h,b)=>(r.openBlock(),r.createElementBlock("div",{key:b,class:"scale-h-mark",style:r.normalizeStyle({left:`${b*m.scaleInterval}px`})},[b!=0?(r.openBlock(),r.createElementBlock("span",{key:0,class:"mark-h-value",style:r.normalizeStyle({color:a.style.color})},r.toDisplayString(h),5)):r.createCommentVNode("",!0),b!=0?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["mark-h-line",{"long-h-mark":b%5===0}]),style:r.normalizeStyle({background:a.style.color})},null,6)):r.createCommentVNode("",!0)],4))),128))],4)):r.createCommentVNode("",!0),r.createElementVNode("div",{class:"chart-h-bottom",style:r.normalizeStyle({width:`${m.ywvalue}px`,background:a.style.fillColor})},[a.style.valuevisible||a.style.valuevisible==1?(r.openBlock(),r.createElementBlock("span",{key:0,class:"value-h-text",style:r.normalizeStyle(m.getFontStyle)},r.toDisplayString(a.style.text),5)):r.createCommentVNode("",!0)],4)])}const vt={name:"VerticalRuler",components:{indexV:ht,indexH:q(yt,[["render",xt],["__scopeId","data-v-7f6aaa3d"]])},props:{style:{type:Object,default:()=>({})}},methods:{},computed:{getStyle(){let t=this.style;return t.borderColor=t.color||"#333333",t}}};function kt(t,e,a,d,o,m){const h=r.resolveComponent("index-v"),b=r.resolveComponent("index-h");return r.openBlock(),r.createElementBlock("div",{class:"chart-container",style:r.normalizeStyle(m.getStyle)},[a.style.orientation=="vertical"?(r.openBlock(),r.createBlock(h,{key:0,style:r.normalizeStyle(a.style)},null,8,["style"])):(r.openBlock(),r.createBlock(b,{key:1,style:r.normalizeStyle(a.style)},null,8,["style"]))],4)}const wt=q(vt,[["render",kt],["__scopeId","data-v-5f295dcb"]]),Ct={name:"VueSwitch",props:{modelValue:{type:Boolean,default:!1},style:{type:Object,default:()=>({})},size:{type:String,default:"default",validator:function(t){return["small","default","large"].includes(t)}},color:{type:String,default:"default",validator:function(t){return["default","primary","success","warning","danger","purple"].includes(t)}},withIcons:{type:Boolean,default:!1},withLabels:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],computed:{switchClasses(){return[`switch-${this.size}`,`switch-${this.color}`,{"switch-with-icons":this.withIcons,"switch-with-labels":this.withLabels,"switch-disabled":this.disabled}]}}},St=["checked","disabled"],At=["src"],zt={key:2,style:{"z-index":"0"}},Et={key:3};function Bt(t,e,a,d,o,m){return r.openBlock(),r.createElementBlock("label",{class:r.normalizeClass(["switch-jd",m.switchClasses])},[r.createElementVNode("input",{type:"checkbox",class:"switch-input",checked:a.modelValue,onChange:e[0]||(e[0]=h=>t.$emit("update:modelValue",h.target.checked)),disabled:a.disabled},null,40,St),r.createElementVNode("span",{class:"switch-jd-slider",style:r.normalizeStyle(a.style)},[a.style.isIcon&&!a.style.imgUrl?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(["iconfont",a.style.iconName])},null,2)):r.createCommentVNode("",!0),a.style.imgUrl?(r.openBlock(),r.createElementBlock("img",{key:1,src:a.style.imgUrl,style:{"z-index":"0"},alt:" "},null,8,At)):r.createCommentVNode("",!0),a.style.text?(r.openBlock(),r.createElementBlock("span",zt,r.toDisplayString(a.style.text),1)):r.createCommentVNode("",!0),!a.style.imgUrl&&!a.style.text?(r.openBlock(),r.createElementBlock("span",Et)):r.createCommentVNode("",!0)],4)],2)}const Dt=q(Ct,[["render",Bt],["__scopeId","data-v-3233cdae"]]),Tt={name:"VueSwitch",props:{style:{type:Object,default:()=>({})},modelValue:{type:Boolean,default:!0},size:{type:String,default:"default",validator:function(t){return["small","default","large"].includes(t)}},color:{type:String,default:"default",validator:function(t){return["default","primary","success","warning","danger","purple"].includes(t)}},withIcons:{type:Boolean,default:!1},withLabels:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],methods:{convertToStyleString(t){if(!t)return"";let e={};for(const a in t){if(!Object.hasOwn(t,a))continue;const d=t[a],o=a.replace(/([A-Z])/g,"-$1").toLowerCase();let m=d;o==="gap"&&(m=`${d}px`),(o==="fontSize"||o==="font-size")&&(m=`${d}px`),e[o]=m}return e}},computed:{getActiveStyle(){let t={};return t={background:this.style.background},t},switchClasses(){return[`switch-${this.size}`,`switch-${this.color}`,{"switch-with-icons":this.withIcons,"switch-with-labels":this.withLabels,"switch-disabled":this.disabled}]}}},Nt=["checked","disabled"];function It(t,e,a,d,o,m){return r.openBlock(),r.createElementBlock("label",{class:r.normalizeClass(["switch",m.switchClasses])},[r.createElementVNode("input",{type:"checkbox",class:"switch-input",checked:a.modelValue,onChange:e[0]||(e[0]=h=>t.$emit("update:modelValue",h.target.checked)),disabled:a.disabled},null,40,Nt),r.createElementVNode("span",{class:"switch-slider",style:r.normalizeStyle({background:a.style.background})},null,4)],2)}const Pt=q(Tt,[["render",It],["__scopeId","data-v-41ace2e4"]]),Ut=["src"],Lt={key:2,style:{"z-index":"0"}},Mt={key:3},Ot={__name:"switch",props:{style:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1}},setup(t){const e=t,a=r.ref(e.style.realValue==="true");return(d,o)=>t.style.btntype=="none"?(r.openBlock(),r.createElementBlock("div",{key:0,class:"switch-none",style:r.normalizeStyle(t.style)},[e.style.isIcon&&!e.style.imgUrl?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(["iconfont",e.style.iconName])},null,2)):r.createCommentVNode("",!0),e.style.imgUrl?(r.openBlock(),r.createElementBlock("img",{key:1,src:e.style.imgUrl,style:{"z-index":"0"},alt:" "},null,8,Ut)):r.createCommentVNode("",!0),e.style.text?(r.openBlock(),r.createElementBlock("span",Lt,r.toDisplayString(e.style.text),1)):r.createCommentVNode("",!0),!e.style.imgUrl&&!e.style.text?(r.openBlock(),r.createElementBlock("span",Mt)):r.createCommentVNode("",!0)],4)):t.style.btntype=="sq"?(r.openBlock(),r.createBlock(Pt,{key:1,modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=m=>a.value=m),style:r.normalizeStyle(t.style),disabled:t.disabled},null,8,["modelValue","style","disabled"])):(r.openBlock(),r.createBlock(Dt,{key:2,modelValue:a.value,"onUpdate:modelValue":o[1]||(o[1]=m=>a.value=m),style:r.normalizeStyle(t.style),disabled:t.disabled},null,8,["modelValue","style","disabled"]))}},Vt=q({__name:"circle",props:{style:{type:Object,default:()=>({})}},setup(t){const e=t,a=r.computed(()=>{let d=e.style.layout||{};return{width:d.width+"px",height:d.height+"px",borderWidth:(e.style.borderValue||1)+"px",padding:(e.style.borderValue||1)+"px",borderColor:e.style.stroke||"#000000",backgroundColor:e.style.background||"#D1E7FF"}});return(d,o)=>(r.openBlock(),r.createElementBlock("div",{class:"gr-circle",style:r.normalizeStyle(a.value)},[r.createElementVNode("div",{class:"gr-circle-text",style:r.normalizeStyle({color:e.style.stroke||"#000000"})},r.toDisplayString(e.style.text),5)],4))}},[["__scopeId","data-v-fa22a4c3"]]),Ft=q({__name:"rectangle",props:{style:{type:Object,default:()=>({})}},setup(t){const e=t,a=r.computed(()=>{let d=e.style.layout||{};return{width:d.width+"px",height:d.height+"px",borderWidth:(e.style.borderValue||1)+"px",padding:(e.style.borderValue||1)+"px",borderColor:e.style.stroke||"#000000",backgroundColor:e.style.background||"#D1E7FF"}});return(d,o)=>(r.openBlock(),r.createElementBlock("div",{class:"gr-rectangle",style:r.normalizeStyle(a.value)},[r.createElementVNode("div",{class:"gr-rectangle-text",style:r.normalizeStyle({color:e.style.stroke||"#000000"})},r.toDisplayString(e.style.text),5)],4))}},[["__scopeId","data-v-98efe4a0"]]),Rt=["innerHTML"],Wt=q({__name:"triangle",props:{style:{type:Object,default:()=>({})}},setup(t){const e=t,a=r.computed(()=>{let d=e.style.layout||{},{x:o,y:m,width:h,height:b}=d,S=e.style.borderValue/2,x=`${o+h/2},${m+S}`,y=`${o+S},${m+b-S}`,C=`${o+h-S},${m+b-S}`;return`
13
+ `,e+="</mxGraphModel>",e}function fe(t){return typeof t!="string"&&(t=String(t)),t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function lt(t){let e=this,a=10,d="#dddddd",o="#ffffff00",m=1,h="square",b=1,S=0,x=0,y=1,C=null;e.createGrid=function(B,k,T){if(C=B,k){var P=document.createElement("canvas");if(!P)return;P.style.position="absolute";var F=C.getCellBounds(k);if(F){P.style.top=F.y+"px",P.style.left=F.x+"px",P.style.width=F.width+1+"px",P.style.height=F.height+1+"px",P.style.zIndex=-1,P.style.pointerEvents="none",P.id="gridCanvas_"+k.id,P.dataId=ae();let j=k.value.style||{};j.background&&j.background.indexOf("files/")>-1&&j["background-image"]?P.style.background=`${j["background-image"]} center center no-repeat`:P.style.background=""}let H=C.container.querySelector("#gridCanvas_"+k.id);H&&H.remove(),C.container.prepend(P),P.width=P.offsetWidth,P.height=P.offsetHeight,T?d="transparent":d="#dddddd",E(P),P.addEventListener("wheel",function(j){j.preventDefault();const I=P.getBoundingClientRect(),Z=j.clientX-I.left,K=j.clientY-I.top,ee=.1,ne=j.deltaY<0?1:-1,oe=Math.exp(ne*ee),re=Z/y,se=K/y;y*=oe,y=Math.min(Math.max(.5,y),5),S=re-Z/y,x=se-K/y,E(P),C&&(C.view.scale=y,C.refresh())}),C&&D()}};function D(){if(!C)return;C.snapPoint=function(k,T,P){if(!P&&this.snapToGrid&&a>0){const F=a/y,H=k.x-S,j=k.y-x;k.x=Math.round(H/F)*F+S,k.y=Math.round(j/F)*F+x}return k};const B=C.mouseUp;C.mouseUp=function(k,T){B.apply(this,arguments),this.selectedCells.length>0&&this.snapToGrid&&T.snapCellsToGrid(this.selectedCells)}}e.snapCellsToGrid=function(B){if(!(!B||B.length===0)){this.getModel().beginUpdate();try{for(let k=0;k<B.length;k++){const T=B[k],P=this.getCellGeometry(T);if(P){const F=P.clone(),H=this.snapPoint({x:F.x,y:F.y});F.x=H.x,F.y=H.y,this.getModel().setGeometry(T,F)}}}finally{this.getModel().endUpdate()}}};function E(B){y=C.view.scale;let k=B.getContext("2d");k.clearRect(0,0,B.width,B.height),k.fillStyle=o,k.fillRect(0,0,B.width,B.height);const T=a*y;if(T<2)return;k.strokeStyle=d,k.lineWidth=m,k.globalAlpha=b;const P=Math.floor(-S*y/T)*T,F=Math.floor(-x*y/T)*T,H=B.width+T,j=B.height+T;switch(h){case"dotted":k.fillStyle=d;for(let I=P;I<H;I+=T)for(let Z=F;Z<j;Z+=T)k.beginPath(),k.arc(I+.5,Z+.5,m,0,Math.PI*2),k.fill();break;case"dashed":k.setLineDash([5,3]),k.beginPath();for(let I=P;I<H;I+=T)k.moveTo(I+.5,0),k.lineTo(I+.5,B.height);for(let I=F;I<j;I+=T)k.moveTo(0,I+.5),k.lineTo(B.width,I+.5);k.stroke(),k.setLineDash([]);break;case"square":k.beginPath();for(let I=P;I<H;I+=T)k.moveTo(I+.5,0),k.lineTo(I+.5,B.height);for(let I=F;I<j;I+=T)k.moveTo(0,I+.5),k.lineTo(B.width,I+.5);k.stroke();break;default:k.beginPath();for(let I=P;I<H;I+=T)k.moveTo(I+.5,0),k.lineTo(I+.5,B.height);for(let I=F;I<j;I+=T)k.moveTo(0,I+.5),k.lineTo(B.width,I+.5);k.stroke()}k.globalAlpha=1}e.getGridConfig=function(){return{gridSize:a,scale:y,offsetX:S,offsetY:x}},e.setGridSize=function(B){a=B;const k=document.getElementById("canvas");k&&E(k)}}const nt=["src"],it={key:2,style:{"z-index":"0"}},ot={key:3},rt=["src"],st={key:2,style:{"z-index":"0"}},dt={key:3},ct=["src"],ut={key:2,style:{"z-index":"0"}},pt={key:3},he={__name:"btnIndex",props:{style:{type:Object,default:()=>({})}},setup(t){const e=t;return(a,d)=>t.style.btntype=="none"?(r.openBlock(),r.createElementBlock("div",{key:0,class:"btn-index-none",style:r.normalizeStyle(t.style)},[e.style.isIcon&&!e.style.imgUrl?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(["iconfont",e.style.iconName])},null,2)):r.createCommentVNode("",!0),e.style.imgUrl?(r.openBlock(),r.createElementBlock("img",{key:1,src:e.style.imgUrl,style:{"z-index":"0"},alt:" "},null,8,nt)):r.createCommentVNode("",!0),e.style.text?(r.openBlock(),r.createElementBlock("span",it,r.toDisplayString(e.style.text),1)):r.createCommentVNode("",!0),!e.style.imgUrl&&!e.style.text?(r.openBlock(),r.createElementBlock("span",ot)):r.createCommentVNode("",!0)],4)):t.style.btntype=="sq"?(r.openBlock(),r.createElementBlock("div",{key:1,class:"btn-index",style:r.normalizeStyle(t.style)},[e.style.isIcon&&!e.style.imgUrl?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(["iconfont",e.style.iconName])},null,2)):r.createCommentVNode("",!0),e.style.imgUrl?(r.openBlock(),r.createElementBlock("img",{key:1,src:e.style.imgUrl,style:{"z-index":"0"},alt:" "},null,8,rt)):r.createCommentVNode("",!0),e.style.text?(r.openBlock(),r.createElementBlock("span",st,r.toDisplayString(e.style.text),1)):r.createCommentVNode("",!0),!e.style.imgUrl&&!e.style.text?(r.openBlock(),r.createElementBlock("span",dt)):r.createCommentVNode("",!0)],4)):(r.openBlock(),r.createElementBlock("div",{key:2,class:"btn-bg-jd",style:r.normalizeStyle(t.style)},[e.style.isIcon&&!e.style.imgUrl?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(["iconfont",e.style.iconName])},null,2)):r.createCommentVNode("",!0),e.style.imgUrl?(r.openBlock(),r.createElementBlock("img",{key:1,src:e.style.imgUrl,style:{"z-index":"0"},alt:" "},null,8,ct)):r.createCommentVNode("",!0),e.style.text?(r.openBlock(),r.createElementBlock("span",ut,r.toDisplayString(e.style.text),1)):r.createCommentVNode("",!0),!e.style.imgUrl&&!e.style.text?(r.openBlock(),r.createElementBlock("span",pt)):r.createCommentVNode("",!0)],4))}},q=(t,e)=>{const a=t.__vccOpts||t;for(const[d,o]of e)a[d]=o;return a},mt={name:"VerticalRuler",props:{style:{type:Object,default:()=>({max:100,min:0,scales:10,value:0,layout:{height:400}})}},methods:{getNumber(t){if(typeof t=="number")return t;const e=parseFloat(t);return isNaN(e)?0:e},convertToStyleString(t){if(!t)return"";let e={};for(const a in t){if(!Object.hasOwn(t,a))continue;const d=t[a],o=a.replace(/([A-Z])/g,"-$1").toLowerCase();let m=d;o==="gap"&&(m=`${d}px`),(o==="fontSize"||o==="font-size")&&(m=`${d}px`),e[o]=m}return e}},computed:{getFontStyle(){let t=this,e=t.style,d={color:e.color,...e.valuefont};return t.convertToStyleString(d)},getScalesFontStyle(){let t=this,e=t.style,d={color:e.color,...e.scalefont};return t.convertToStyleString(d)},ywvalue(){const t=this,e=t.getNumber(t.style.value),a=t.getNumber(t.style.max),d=t.getNumber(t.style.min),o=t.getNumber(t.style.layout.height),m=Math.max(d,Math.min(e,a)),h=a-d;return h<=0?0:(m-d)/h*o-8},scaleInterval(){const t=this,e=t.getNumber(t.style.max),a=t.getNumber(t.style.min),d=t.getNumber(t.style.layout.height),o=Math.floor((e-a)/t.style.scales)+1;return o>1?d/(o-1):0},scaleValues(){const t=this,e=t.getNumber(t.style.max),a=t.getNumber(t.style.min),d=t.getNumber(t.style.scales)||10;let o=[];for(let m=e;m>=a;m-=d)o.push(m.toFixed(0));return o}},mounted(){}},gt={class:"ruler-container"};function ft(t,e,a,d,o,m){return r.openBlock(),r.createElementBlock("div",gt,[a.style.scalevisible||a.style.scalevisible==1?(r.openBlock(),r.createElementBlock("div",{key:0,class:"vertical-ruler",style:r.normalizeStyle(m.getScalesFontStyle)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(m.scaleValues,(h,b)=>(r.openBlock(),r.createElementBlock("div",{key:b,class:"scale-mark",style:r.normalizeStyle({top:`${b*m.scaleInterval}px`})},[b!=0?(r.openBlock(),r.createElementBlock("span",{key:0,class:"mark-value",style:r.normalizeStyle({color:a.style.color})},r.toDisplayString(h),5)):r.createCommentVNode("",!0),b!=0?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["mark-line",{"long-mark":b%5===0}]),style:r.normalizeStyle({background:a.style.color})},null,6)):r.createCommentVNode("",!0)],4))),128))],4)):r.createCommentVNode("",!0),r.createElementVNode("div",{class:"chart-bottom",style:r.normalizeStyle({height:`${m.ywvalue}px`,background:a.style.fillColor})},[a.style.valuevisible||a.style.valuevisible==1?(r.openBlock(),r.createElementBlock("span",{key:0,class:"value-text",style:r.normalizeStyle(m.getFontStyle)},r.toDisplayString(a.style.text),5)):r.createCommentVNode("",!0)],4)])}const ht=q(mt,[["render",ft],["__scopeId","data-v-b14d49d0"]]),yt={name:"VerticalRuler",props:{style:{type:Object,default:()=>({max:100,min:0,scales:10,value:0,layout:{height:400}})}},methods:{getNumber(t){if(typeof t=="number")return t;const e=parseFloat(t);return isNaN(e)?0:e},convertToStyleString(t){if(!t)return"";let e={};for(const a in t){if(!Object.hasOwn(t,a))continue;const d=t[a],o=a.replace(/([A-Z])/g,"-$1").toLowerCase();let m=d;o==="gap"&&(m=`${d}px`),(o==="fontSize"||o==="font-size")&&(m=`${d}px`),e[o]=m}return e}},computed:{getFontStyle(){let t=this,e=t.style,d={color:e.color,...e.valuefont};return t.convertToStyleString(d)},getScalesFontStyle(){let t=this,e=t.style,d={color:e.color,...e.scalefont};return t.convertToStyleString(d)},ywvalue(){const t=this,e=t.getNumber(t.style.value),a=t.getNumber(t.style.max),d=t.getNumber(t.style.min),o=t.getNumber(t.style.layout.width),m=Math.max(d,Math.min(e,a)),h=a-d;return h<=0?0:(m-d)/h*o},scaleInterval(){const t=this,e=t.getNumber(t.style.max),a=t.getNumber(t.style.min),d=t.getNumber(t.style.layout.width),o=Math.floor((e-a)/t.style.scales)+1;return o>1?d/(o-1):0},scaleValues(){const t=this,e=t.getNumber(t.style.max),a=t.getNumber(t.style.min),d=t.getNumber(t.style.scales)||10,o=[];for(let m=a;m<e;m+=d)o.push(m.toFixed(0));return o}}},bt={class:"ruler-h-container"};function xt(t,e,a,d,o,m){return r.openBlock(),r.createElementBlock("div",bt,[a.style.scalevisible||a.style.scalevisible==1?(r.openBlock(),r.createElementBlock("div",{key:0,class:"h-ruler",style:r.normalizeStyle(m.getScalesFontStyle)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(m.scaleValues,(h,b)=>(r.openBlock(),r.createElementBlock("div",{key:b,class:"scale-h-mark",style:r.normalizeStyle({left:`${b*m.scaleInterval}px`})},[b!=0?(r.openBlock(),r.createElementBlock("span",{key:0,class:"mark-h-value",style:r.normalizeStyle({color:a.style.color})},r.toDisplayString(h),5)):r.createCommentVNode("",!0),b!=0?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(["mark-h-line",{"long-h-mark":b%5===0}]),style:r.normalizeStyle({background:a.style.color})},null,6)):r.createCommentVNode("",!0)],4))),128))],4)):r.createCommentVNode("",!0),r.createElementVNode("div",{class:"chart-h-bottom",style:r.normalizeStyle({width:`${m.ywvalue}px`,background:a.style.fillColor})},[a.style.valuevisible||a.style.valuevisible==1?(r.openBlock(),r.createElementBlock("span",{key:0,class:"value-h-text",style:r.normalizeStyle(m.getFontStyle)},r.toDisplayString(a.style.text),5)):r.createCommentVNode("",!0)],4)])}const vt={name:"VerticalRuler",components:{indexV:ht,indexH:q(yt,[["render",xt],["__scopeId","data-v-7f6aaa3d"]])},props:{style:{type:Object,default:()=>({})}},methods:{},computed:{getStyle(){let t=this.style;return t.borderColor=t.color||"#333333",t}}};function kt(t,e,a,d,o,m){const h=r.resolveComponent("index-v"),b=r.resolveComponent("index-h");return r.openBlock(),r.createElementBlock("div",{class:"chart-container",style:r.normalizeStyle(m.getStyle)},[a.style.orientation=="vertical"?(r.openBlock(),r.createBlock(h,{key:0,style:r.normalizeStyle(a.style)},null,8,["style"])):(r.openBlock(),r.createBlock(b,{key:1,style:r.normalizeStyle(a.style)},null,8,["style"]))],4)}const wt=q(vt,[["render",kt],["__scopeId","data-v-5f295dcb"]]),Ct={name:"VueSwitch",props:{modelValue:{type:Boolean,default:!1},style:{type:Object,default:()=>({})},size:{type:String,default:"default",validator:function(t){return["small","default","large"].includes(t)}},color:{type:String,default:"default",validator:function(t){return["default","primary","success","warning","danger","purple"].includes(t)}},withIcons:{type:Boolean,default:!1},withLabels:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],computed:{switchClasses(){return[`switch-${this.size}`,`switch-${this.color}`,{"switch-with-icons":this.withIcons,"switch-with-labels":this.withLabels,"switch-disabled":this.disabled}]}}},St=["checked","disabled"],At=["src"],zt={key:2,style:{"z-index":"0"}},Et={key:3};function Bt(t,e,a,d,o,m){return r.openBlock(),r.createElementBlock("label",{class:r.normalizeClass(["switch-jd",m.switchClasses])},[r.createElementVNode("input",{type:"checkbox",class:"switch-input",checked:a.modelValue,onChange:e[0]||(e[0]=h=>t.$emit("update:modelValue",h.target.checked)),disabled:a.disabled},null,40,St),r.createElementVNode("span",{class:"switch-jd-slider",style:r.normalizeStyle(a.style)},[a.style.isIcon&&!a.style.imgUrl?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(["iconfont",a.style.iconName])},null,2)):r.createCommentVNode("",!0),a.style.imgUrl?(r.openBlock(),r.createElementBlock("img",{key:1,src:a.style.imgUrl,style:{"z-index":"0"},alt:" "},null,8,At)):r.createCommentVNode("",!0),a.style.text?(r.openBlock(),r.createElementBlock("span",zt,r.toDisplayString(a.style.text),1)):r.createCommentVNode("",!0),!a.style.imgUrl&&!a.style.text?(r.openBlock(),r.createElementBlock("span",Et)):r.createCommentVNode("",!0)],4)],2)}const Dt=q(Ct,[["render",Bt],["__scopeId","data-v-3233cdae"]]),Tt={name:"VueSwitch",props:{style:{type:Object,default:()=>({})},modelValue:{type:Boolean,default:!0},size:{type:String,default:"default",validator:function(t){return["small","default","large"].includes(t)}},color:{type:String,default:"default",validator:function(t){return["default","primary","success","warning","danger","purple"].includes(t)}},withIcons:{type:Boolean,default:!1},withLabels:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],methods:{convertToStyleString(t){if(!t)return"";let e={};for(const a in t){if(!Object.hasOwn(t,a))continue;const d=t[a],o=a.replace(/([A-Z])/g,"-$1").toLowerCase();let m=d;o==="gap"&&(m=`${d}px`),(o==="fontSize"||o==="font-size")&&(m=`${d}px`),e[o]=m}return e}},computed:{getActiveStyle(){let t={};return t={background:this.style.background},t},switchClasses(){return[`switch-${this.size}`,`switch-${this.color}`,{"switch-with-icons":this.withIcons,"switch-with-labels":this.withLabels,"switch-disabled":this.disabled}]}}},Nt=["checked","disabled"];function It(t,e,a,d,o,m){return r.openBlock(),r.createElementBlock("label",{class:r.normalizeClass(["switch",m.switchClasses])},[r.createElementVNode("input",{type:"checkbox",class:"switch-input",checked:a.modelValue,onChange:e[0]||(e[0]=h=>t.$emit("update:modelValue",h.target.checked)),disabled:a.disabled},null,40,Nt),r.createElementVNode("span",{class:"switch-slider",style:r.normalizeStyle({background:a.style.background})},null,4)],2)}const Pt=q(Tt,[["render",It],["__scopeId","data-v-41ace2e4"]]),Ut=["src"],Lt={key:2,style:{"z-index":"0"}},Mt={key:3},Ot={__name:"switch",props:{style:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1}},setup(t){const e=t,a=r.ref(e.style.realValue==="true");return(d,o)=>t.style.btntype=="none"?(r.openBlock(),r.createElementBlock("div",{key:0,class:"switch-none",style:r.normalizeStyle(t.style)},[e.style.isIcon&&!e.style.imgUrl?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(["iconfont",e.style.iconName])},null,2)):r.createCommentVNode("",!0),e.style.imgUrl?(r.openBlock(),r.createElementBlock("img",{key:1,src:e.style.imgUrl,style:{"z-index":"0"},alt:" "},null,8,Ut)):r.createCommentVNode("",!0),e.style.text?(r.openBlock(),r.createElementBlock("span",Lt,r.toDisplayString(e.style.text),1)):r.createCommentVNode("",!0),!e.style.imgUrl&&!e.style.text?(r.openBlock(),r.createElementBlock("span",Mt)):r.createCommentVNode("",!0)],4)):t.style.btntype=="sq"?(r.openBlock(),r.createBlock(Pt,{key:1,modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=m=>a.value=m),style:r.normalizeStyle(t.style),disabled:t.disabled},null,8,["modelValue","style","disabled"])):(r.openBlock(),r.createBlock(Dt,{key:2,modelValue:a.value,"onUpdate:modelValue":o[1]||(o[1]=m=>a.value=m),style:r.normalizeStyle(t.style),disabled:t.disabled},null,8,["modelValue","style","disabled"]))}},Vt=q({__name:"circle",props:{style:{type:Object,default:()=>({})}},setup(t){const e=t,a=r.computed(()=>{let d=e.style.layout||{};return{width:d.width+"px",height:d.height+"px",borderWidth:(e.style.borderValue||1)+"px",padding:(e.style.borderValue||1)+"px",borderColor:e.style.stroke||"#000000",backgroundColor:e.style.background||"#D1E7FF"}});return(d,o)=>(r.openBlock(),r.createElementBlock("div",{class:"gr-circle",style:r.normalizeStyle(a.value)},[r.createElementVNode("div",{class:"gr-circle-text",style:r.normalizeStyle({color:e.style.stroke||"#000000"})},r.toDisplayString(e.style.text),5)],4))}},[["__scopeId","data-v-fa22a4c3"]]),Ft=q({__name:"rectangle",props:{style:{type:Object,default:()=>({})}},setup(t){const e=t,a=r.computed(()=>{let d=e.style.layout||{};return{width:d.width+"px",height:d.height+"px",borderWidth:(e.style.borderValue||1)+"px",padding:(e.style.borderValue||1)+"px",borderColor:e.style.stroke||"#000000",backgroundColor:e.style.background||"#D1E7FF"}});return(d,o)=>(r.openBlock(),r.createElementBlock("div",{class:"gr-rectangle",style:r.normalizeStyle(a.value)},[r.createElementVNode("div",{class:"gr-rectangle-text",style:r.normalizeStyle({color:e.style.stroke||"#000000"})},r.toDisplayString(e.style.text),5)],4))}},[["__scopeId","data-v-98efe4a0"]]),Rt=["innerHTML"],Wt=q({__name:"triangle",props:{style:{type:Object,default:()=>({})}},setup(t){const e=t,a=r.computed(()=>{let d=e.style.layout||{},{x:o,y:m,width:h,height:b}=d,S=e.style.borderValue/2,x=`${o+h/2},${m+S}`,y=`${o+S},${m+b-S}`,C=`${o+h-S},${m+b-S}`;return`
14
14
  <svg width="${h}" height="${b}" xmlns="http://www.w3.org/2000/svg" viewBox="${o} ${m} ${h} ${b}">
15
15
  <polygon points="${x} ${y} ${C}" fill="${e.style.fillColor||"#D1E7FF"}" stroke="${e.style.stroke||"#000000"}" stroke-width="${e.style.borderValue||1}"/>
16
16
  <foreignObject x="${o}" y="${m}" width="100%" height="100%">
@@ -23,7 +23,7 @@
23
23
  </div>
24
24
  </foreignObject>
25
25
  </svg>
26
- `});return(d,o)=>(r.openBlock(),r.createElementBlock("div",{class:"gr-triangle",innerHTML:a.value},null,8,Rt))}},[["__scopeId","data-v-25fd969b"]]),jt=(t,e,a)=>{const d=document.createDocumentFragment();let m=Ht({},e.data);e.style.background==="transparent"&&delete e.style.background,e.style.color==="transparent"&&delete e.style.color,e.style={...e.style,...m};let h="";if(t=="btn")h=he,e.style.btntype=="none"&&(delete e.style.background,delete e.style["background-image"]),e.style.isIcon=!1;else if(t=="bar")h=wt;else if(t=="iconbtn")h=he,e.style.btntype=="none"&&(delete e.style.background,delete e.style["background-image"]),e.style.isIcon=!0,e.style.iconName=a;else if(t=="switch"){h=Ot,e.style.btntype=="none"&&(delete e.style.background,delete e.style["background-image"]);let y=e.data;if(y.children){let D=y.children.find(E=>E.key==="text");e.style.realValue=D.realValue,e.style.path=D.animate.value}}else t=="schedule"?(e.id=e.timeId+"",h=e.comp):t=="circle"?h=Vt:t=="rectangle"?h=Ft:t=="triangle"?h=Wt:h=he;const b={setup(){var y=()=>r.h(h,{...e,onClick:function(C){}});return y}};let S=r.createApp(b);return S.use(Oe),S.use(Ve),S.mount(d).$el.outerHTML};function Ht(t,e){if(!e.children)return"";let d=e.children.filter(o=>o.animate&&(o.animate.isShow||o.animate.isShow==1));return d&&d.length>0&&d.forEach(o=>{if(o.key==="background"||o.key==="color"||o.key==="image"){let m=o.animate.data,h=o.animate.mpType,b=null;if(h==="NumericToSimple"){let S=m.find(x=>Gt(o,x.min,x.max));S?b=S:o.key==="image"?b={value:o.animate.default,valueUrl:o.animate.defaultVal}:b={value:o.animate.default}}else h==="BooleanToSimple"&&(b=m.find(S=>S.key===o.value));b&&(t[o.key]=b.value,o.key==="image"&&(t.imgUrl=`${b.valueUrl}`))}else t[o.key]=o.value}),t}function Gt(t,e,a){let d=t.value,o=_t(d);return o>=e&&o<=a}function _t(t){const a=String(t).match(/\d+/);return a?Number(a[0]):null}function Yt(t){let e=this;e.initShapes=function(){function a(){mxActor.call(this)}mxUtils.extend(a,mxActor),a.prototype.arrowWidth=.3,a.prototype.arrowSize=.2,a.prototype.redrawPath=function(o,m,h,b,S){var x=S*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth)))),y=b*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize)))),C=(S-x)/2,D=C+x,E=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(o,[new mxPoint(0,C),new mxPoint(b-y,C),new mxPoint(b-y,0),new mxPoint(b,S/2),new mxPoint(b-y,S),new mxPoint(b-y,D),new mxPoint(0,D)],this.isRounded,E,!0),o.end()},mxCellRenderer.registerShape("singleArrow",a);function d(){mxActor.call(this)}mxUtils.extend(d,mxActor),d.prototype.redrawPath=function(o,m,h,b,S){var x=S*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",a.prototype.arrowWidth)))),y=b*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",a.prototype.arrowSize)))),C=(S-x)/2,D=C+x,E=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(o,[new mxPoint(0,S/2),new mxPoint(y,0),new mxPoint(y,C),new mxPoint(b-y,C),new mxPoint(b-y,0),new mxPoint(b,S/2),new mxPoint(b-y,S),new mxPoint(b-y,D),new mxPoint(y,D),new mxPoint(y,S)],this.isRounded,E,!0),o.end()},mxCellRenderer.registerShape("doubleArrow",d)}}function Ee(t){let e=this;e.editor=null,e.parent=null,e.graph=null,e.undoMng=null,e.preview=!0,e.pageShortcuts=!1,e.firstFlag=!0,e.container=null,e.keyUpdownEvt=null,e.vueInstances=new Map,e.setPageShortcuts=l=>{e.pageShortcuts=l},e.clearCanvas=()=>{let l=e.graph;const n=l.getChildCells(l.getDefaultParent());if(n.length>0){l.getModel().beginUpdate();try{l.removeCells(n)}finally{l.getModel().endUpdate()}}};function a(l,n){return[...l.parentNode.children].filter(c=>c!==l&&c.classList.contains(n))}e.isPreview=l=>{let n=e.graph;n.setCellsResizable(l),n.setCellsEditable(l),n.setCellsSelectable(l),n.setHtmlLabels(!0),n.setCellsMovable(l),n.setPanning(!l),e.preview=!l,e.changePageSize(),e.preview?e.keyUpdownEvt&&e.keyUpdownEvt.removeListener(n):e.keyUpdownEvt=new ze(t);let c=a(n.container,"transparentRect");if(e.preview){if(c&&c.length>0)for(let u=0;u<c.length;u++){let s=c[u];s&&(s.classList.remove("is-hidden"),s.classList.add("is-block"))}}else if(c&&c.length>0)for(let u=0;u<c.length;u++){let s=c[u];s&&(s.classList.remove("is-block"),s.classList.add("is-hidden"))}if(e.preview&&n.clearSelection(),e.preview){const u=n.container.querySelectorAll(".bg-light");if(u)for(let s=0;s<u.length;s++)u[s].classList.replace("bg-light","main-text")}else{const u=n.container.querySelectorAll(".main-text");if(u)for(let s=0;s<u.length;s++)u[s].classList.replace("main-text","bg-light")}if(e.preview){const u=n.container.querySelectorAll(".bg-creat-comp");if(u)for(let s=0;s<u.length;s++){const i=u[s];i&&i.classList.add("svg-preview-gr")}}else{const u=n.container.querySelectorAll(".svg-preview-gr");if(u)for(let s=0;s<u.length;s++){const i=u[s];i&&i.classList.remove("svg-preview-gr")}}n.view.validate(),n.view.refresh(),e.preview},e.init=l=>{let{container:n}=l;return new Promise((c,u)=>{let s=new mxEditor,i=s.graph;n.setAttribute("tabindex","0"),n.style.outline="none",n.style.width="100%",n.style.height="100%",s.setGraphContainer(n),e.container=n,e.editor=s,Ze(s),mxEvent.disableContextMenu(n);const p=i.getStylesheet().getDefaultVertexStyle();Object.assign(p,{fillColor:"transparent",strokeColor:"transparent",strokeWidth:0,fontColor:"#333333",fontSize:12}),i.setConnectable(!1),i.setEnabled(!0),i.setPanning(!1),i.resizeContainer=!1,i.scrollbars=!1,i.setHtmlLabels(!0),i.setCellsResizable(!0),i.connectionHandler.setCreateTarget(!1),i.setDropEnabled(!1),i.setCellsDeletable(!0),i.setTooltips(!1),i.setMultigraph(!1),new mxRubberband(i),i.setAllowDanglingEdges(!1),i.setCellsEditable(!0),i.setCellsSelectable(!0),i.setCellsMovable(!0),i.setEdgeLabelsMovable(!1),i.setGridEnabled(!1),i.setGridEnabled(!1),i.gridEnabled=!0,i.gridSize=10,i.centerZoom=!1,e.changeRotationHandleStyle(i),i.snapTolerance=10,i.isCellEditable=function(w){return!1},i.isCellMovable=function(w){return w.type==="kitUI:CanvasWidget"?!1:w.isVertex()||w.isEdge()},i.isCellResizable=function(w){return w.type==="kitUI:CanvasWidget"?!1:w.isVertex()||w.isEdge()},i.isCellDeletable=function(w){return w.type==="kitUI:CanvasWidget"?!1:w.isVertex()||w.isEdge()},i.isCellSelectable=function(w){return w&&w.type==="kitUI:CanvasWidget"?!1:mxGraph.prototype.isCellSelectable.apply(this,arguments)},i.setResizeContainer(!1),i.autoExtend=!1,i.setAutoSizeCells(!1),i.swimlaneSelectionEnabled=!1;let f=new mxUndoManager;da(i,f),e.undoMng=f,E(i),sa(i),Ie(i),ua(i,n),ma(t.menus,i),ca(i),e.graph=i,h(i),i.autoSize=!1,i.model.validateGraph=!1,i.model.validateEdge=()=>!0,i.model.validateNode=()=>!0,i.removeListener(i.listeners),i.view.animate=!1,e.clearUndo(),new Yt().initShapes(),y(),mxConstants.INVALID_COLOR="transparent",mxConstants.DEFAULT_INVALID_COLOR="transparent",mxConstants.INVALID_CONNECT_TARGET_COLOR="transparent",e.keyUpdownEvt=new ze(t),mxWindow.prototype.closeImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAw0lEQVR4AZyS3RHCIBCEEyuxFO1E36EGsQZ419LsBHd3IHP8jTNmWH4u+x0HyWn78xEYY3xQv3LQk1J60SeQEyjwBcZpK0DIOX9oEOi9f2IRqBlMCMBt3/d38W4CAWwlMMAWcs7d6aUOkIseXkH0NiADFq7l2Z3ooQaQQZzlzJECrMvg3GoAbXkwDmdGTK0BLcTybNn9bR9gDyktuhUskNlwFn0n7gR/02awQLguUJhBiKtVuF6cQASvEP8emVYdPTX5FwAA//+rmaLTAAAABklEQVQDAD/igh3e/xFHAAAAAElFTkSuQmCC ",mxWindow.prototype.normalizeImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAwElEQVR4AcRSwRHCIBAUKkknQidaALSgtgD8tRNIJ1YC7mYSRhgn5Gfmdg7udnNwhzytn/deASWE8FxD1THGHKC2YBVugaNe8i8EBGdg10opE7kEK0awiTv8rgkheA1yI4UJ7Iqc84x9Y6j0RqByuJbGGP0Na+0LicaQfwANjxUb0tHNH4Robexw64/rnLt0nKWrfA0VaPnUC6WUnHHlIK94R42FRsuv8CPjrBc+x5HQ6oRKnNVIOJNLsOKI/DP/AQAA///YhGxbAAAABklEQVQDANQlZDV28KsrAAAAAElFTkSuQmCC",mxWindow.prototype.minimizeImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAwElEQVR4AcRSwRHCIBAUKkknQidaALSgtgD8tRNIJ1YC7mYSRhgn5Gfmdg7udnNwhzytn/deASWE8FxD1THGHKC2YBVugaNe8i8EBGdg10opE7kEK0awiTv8rgkheA1yI4UJ7Iqc84x9Y6j0RqByuJbGGP0Na+0LicaQfwANjxUb0tHNH4Robexw64/rnLt0nKWrfA0VaPnUC6WUnHHlIK94R42FRsuv8CPjrBc+x5HQ6oRKnNVIOJNLsOKI/DP/AQAA///YhGxbAAAABklEQVQDANQlZDV28KsrAAAAAElFTkSuQmCC",mxWindow.prototype.maximizeImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAArklEQVR4AcSSUQrDIBBEG/Eg7U1yIT88QZoT+OGFepP2IEI6b4mwlkD6UWjwmc3MjgomXPSUUq4eScPwHjVmoIgxPj0YHu9Rk7Ed96aH3vcdvYbRdXrMGIIppRXMcRMaSDoMSv9+hJzzS6tNYj2L0SMmMv6oZ7nB/0OQO6m1bmIZznLwQY/YyPzkqLNWW+BzMzSQPgsbfkfE/oeY6aau02OyBVtrN485bvIeNff4BgAA//8HoCv8AAAABklEQVQDAFXqZFJqMF/zAAAAAElFTkSuQmCC",mxWindow.prototype.resizeImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAtklEQVR4AZSS0Q2EIBBEF0MhVwqdnP5DEVZAAvyfnXidaCfcrBcTQFQkIWQ387I7Ezp6eEIIH+fc8gj03s8xxl4IMTWDDBGRYsgYMzaBKaS1HgjnFiwha+0LHvtLsIRQKynlgnXfpyBEMzbaPPF6qBVqDmfFW/cI0SmEaQPC+R4mtkCYSBnYAh0+QAvEmuwDcAPjq0HsnlINPI5d2ijTq0GswZC/RwimvcFNrLOit6XHNV/UmeYHAAD//4CpKLcAAAAGSURBVAMAuzSnSig8bRkAAAAASUVORK5CYII=";const A=i.getView().setTranslate;i.getView().setTranslate=function(w,z){const N=Math.max(0,Math.min(3e3,w)),M=Math.max(0,Math.min(3e3,z));A.call(this,N,M)},i.addListener(mxEvent.PAN,function(){const w=i.getView().getTranslate();let z=Math.min(0,w.x),N=Math.min(0,w.y);(z!==w.x||N!==w.y)&&i.getView().setTranslate(z,N)}),mxGraph.prototype.setCellStyles=function(w,z,N,M){N=N||this.getSelectionCells(),mxUtils.setCellStyles(this.model,N,w,z,M)},mxUtils.setCellStyles=function(w,z,N,M,O){if(z!=null&&z.length>0)if(e.firstStyle){w.beginUpdate();try{for(var U=0;U<z.length;U++)if(z[U]!=null)for(let W in O){var L=mxUtils.setStyle(w.getStyle(z[U]),W,O[W]);w.setStyle(z[U],L)}}finally{w.endUpdate()}}else{for(var U=0;U<z.length;U++)if(z[U]!=null)for(let V in O){var L=mxUtils.setStyle(w.getStyle(z[U]),V,O[V]);w.setStyle(z[U],L)}e.firstStyle=!1}},i.view.scaleGrid=!0,i.view.roundPoints=!0,mxSvgCanvas2D.prototype.updateTextNodes=function(w,z,N,M,O,U,L,V,W,R,Y){var H=this.state.scale;mxSvgCanvas2D.createCss(N+2,M,O,U,L,V,W,this.state.fontBackgroundColor!=null?this.state.fontBackgroundColor:null,this.state.fontBorderColor!=null?this.state.fontBorderColor:null,"display: flex; align-items: unsafe "+(U==mxConstants.ALIGN_TOP?"flex-start":U==mxConstants.ALIGN_BOTTOM?"flex-end":"center")+"; justify-content: unsafe "+(O==mxConstants.ALIGN_LEFT?"flex-start":O==mxConstants.ALIGN_RIGHT?"flex-end":"center")+"; ",this.getTextCss(),H,mxUtils.bind(this,function($,te,_,ie,Q){w+=this.state.dx,z+=this.state.dy;var ce=Y.firstChild,Pe=ce.firstChild,Ue=Pe.firstChild,ga=Ue.firstChild,Le=(this.rotateHtml?this.state.rotation:0)+(R??0),ye=(this.foOffset!=0?"translate("+this.foOffset+" "+this.foOffset+")":"")+(H!=1?"scale("+H+")":"");ga.setAttribute("style",Q),Ue.setAttribute("style",ie),ce.setAttribute("width",Math.ceil(1/Math.min(1,H)*100)+"%"),ce.setAttribute("height",Math.ceil(1/Math.min(1,H)*100)+"%");let ue=Math.round(z+te),fa=Math.round(w+$),ha=d(ue),ya=d(fa);if(ue<0)ce.setAttribute("y",ue);else{ce.removeAttribute("y");let Me=ue;ya||ha||(Me=ue-.5),_+="padding-top: "+Me+"px; "}_=_.replace("width: 1px","width: 0px"),_=_.replace("height: 1px","height: 0px");let ba=w+$;Pe.setAttribute("style",_+"margin-left: "+Math.round(ba)+"px;"),ye+=Le!=0?"rotate("+Le+" "+w+" "+z+")":"",ye!=""?Y.setAttribute("transform",ye):Y.removeAttribute("transform"),this.state.alpha!=1?Y.setAttribute("opacity",this.state.alpha):Y.removeAttribute("opacity")}))},i.fit(),o(),c(i)})};function d(l){let n=!0;return l%2===0?n=!0:n=!1,n}function o(l){mxVertexHandler.prototype.getHandleForEvent=function(n){let c=n.getEvent(),u=["nw-resize","n-resize","ne-resize","w-resize","e-resize","sw-resize","s-resize","se-resize"];var s=c.target||c.srcElement,i=window.getComputedStyle(s).cursor;if(u.indexOf(i)!=-1){var g=mxEvent.isMouseEvent(n.getEvent())?1:this.tolerance,p=this.allowHandleBoundsCheck&&(mxClient.IS_IE||g>0)?new mxRectangle(n.getGraphX()-g,n.getGraphY()-g,2*g,2*g):null,f=mxUtils.bind(this,function(A){var w=A!=null&&A.constructor!=mxImageShape&&this.allowHandleBoundsCheck?A.strokewidth+A.svgStrokeTolerance:null,z=w!=null?new mxRectangle(n.getGraphX()-Math.floor(w/2),n.getGraphY()-Math.floor(w/2),w,w):p;return A!=null&&(n.isSource(A)||z!=null&&mxUtils.intersects(A.bounds,z)&&A.node.style.display!="none"&&A.node.style.visibility!="hidden")});if(f(this.rotationShape))return mxEvent.ROTATION_HANDLE;if(f(this.labelShape))return mxEvent.LABEL_HANDLE;if(this.sizers!=null){for(var v=0;v<this.sizers.length;v++)if(f(this.sizers[v]))return v}if(this.customHandles!=null&&this.isCustomHandleEvent(n)){for(var v=this.customHandles.length-1;v>=0;v--)if(f(this.customHandles[v].shape))return mxEvent.CUSTOM_HANDLE-v}}return null}}e.keyUpdownEvent=l=>{let n=e.graph,c=e.undoMng;e.keyUpdownEvt.keyUpdown(n,c,function(s){(s==="undo"||s==="redo")&&e.changePageSize()})},e.removeKeyUpDown=()=>{let l=e.graph;e.keyUpdownEvt.removeListener(l)};function m(l){return new Promise((n,c)=>{let u=new Image;u.src=`${l}`,u.onload=async function(){let s=u.width,i=u.height;n({w:s,h:i})}})}e.scheduleBorder=l=>{let n={};if(l.border){let u=l.border.split(",");u.length==1?u.forEach((s,i)=>{let g=s.split(" "),p="";n["border"+p+"Width"]=g[0],n["border"+p+"Style"]=g[1],n["border"+p+"Color"]=g[2]}):u.forEach((s,i)=>{let g=s.split(" "),p="Top";i==0?p="Top":i==1?p="Right":i==2?p="Bottom":i==3&&(p="Left"),n["border"+p+"Width"]=g[0],n["border"+p+"Style"]=g[1],n["border"+p+"Color"]=g[2]})}return n};function h(l){l.convertValueToString=function(n){let{width:c,height:u,x:s,y:i}=n.geometry;if(n.type=="vertex")return b(n);if(n.type=="kitUI:CanvasWidget"){let p=n.value.style,f=document.createElement("div");f.style.width=c+"px",f.style.height=u+"px",f.className="bgss-light";let v=l.container.querySelector("canvas");return v&&(p["background-image"]?v.style.background=`${p["background-image"]}center center no-repeat`:v.style.background="transparent"),f}else if(n.type=="img"){let p=document.createElement("div"),f=n.value.style,v="";if(f.scale=="fitRatio"?(p.style.display="flex",p.style.alignItems="center",p.style.justifyContent="center",p.style.flexDirection="column",m(f.imgUrl||n.imgUrl).then(A=>{A&&(p.style.aspectRatio=A.w/A.h)}),v="img-vr-fit-ratio"):f.scale=="fit"&&(p.style.display="flex",p.style.alignItems="center",p.style.justifyContent="center",v="img-vr-fit"),p.innerHTML=D({img:f.imgUrl||n.imgUrl}),p.style.width=c+"px",p.style.height=u+"px",p.innerHTML+='<div class="svg-edit-gr"></div>',e.preview){n.hyperlink="",n.popup="",p.className="bg-light svg-preview-gr "+v;let{url:A,pup:w}=de(n);A?(p.style.cursor="pointer",n.hyperlink=A):p.style.cursor="default",w&&w.length>0?(p.style.cursor="pointer",n.popup=w):p.style.cursor="default"}else p.className="bg-light "+v;return p}else if(n.crtype=="creatComp"){C(n);let p=document.createElement("div");if(p.innerHTML=jt(n.cmp,n.value,n.iconName),p.style.width=c+"px",p.style.height=u+"px",p.innerHTML+='<div class="svg-edit-gr"></div>',e.preview){n.hyperlink="",n.popup="",p.className="bg-creat-comp svg-preview-gr";let{url:f,pup:v}=de(n);f?(p.style.cursor="pointer",n.hyperlink=f):p.style.cursor="default",v&&v.length>0?(p.style.cursor="pointer",n.popup=v):p.style.cursor="default"}else p.className="bg-creat-comp";return p}else if(n.crtype=="schedule"){let p=n.value.style;C(n);let f=document.createElement("div"),{el:v}=n.other||{};f.innerHTML=v.outerHTML;let A=document.getElementById(n.id);if(A){var g=l.view.getState(n);A.style.position="absolute",A.style.width=g.width+"px",A.style.height=g.height+"px",A.style.left=g.x+"px",A.style.top=g.y+"px",e.preview||(f.innerHTML=A.innerHTML)}return f.style=T(p,[]),f.style.width=c+"px",f.style.height=u+"px",f.innerHTML+='<div class="svg-edit-gr"></div>',e.preview?f.className="bg-creat-comp svg-preview-gr":f.className="bg-creat-comp",f}else if(n.type=="rect"){let p=n.value.style,f=n.value.data,A=(f.children||[]).find(O=>O.key==="perimeter");A&&(p.background.indexOf("/files")>-1&&(p.background=""),Number(p.borderValue)===0&&(p.stroke="transparent"),n.style=A.value+`fillColor=${p.background||"transparent"};strokeColor=${p.stroke||"#333333"};strokeWidth=${p.borderValue||0}`);let w={},z=f.children;z&&(w=z.find(O=>O.key==="text"));let N=document.createElement("div");N.innerHTML=D({text:w.value||p.text,style:k(p,["text-","font-","color"])}),N.style=T(p,["background","stroke","strokeWidth"]),N.style.width=c+"px",N.style.height=u+"px",N.className="";let M="";if(f.title==="ShapeTriangle"?M="triangle":f.title==="ShapeRect"?M="rectangle":f.title==="ShapeCircle"&&(M="circle"),e.preview){n.hyperlink="",n.popup="";let{url:O,pup:U}=de(n);O?(N.style.cursor="pointer",N.className="main-text hyperlink-btn custom-rect-p "+M,n.hyperlink=O):(N.style.cursor="default",N.className="main-text custom-rect-p "+M),U&&U.length>0?(n.popup=U,N.style.cursor="pointer"):N.style.cursor="default"}else N.className="bg-light custom-rect "+M;return N.innerHTML+='<div class="svg-edit-gr"></div>',N}else if(n.type=="edge"){if(e.firstFlag){l.getModel(),e.firstFlag=!1;try{let p=n.value.style,f=p.dashWidth||3,v=p.dashSpace||1;f&&v&&(p.dashPattern=`${f} ${v}`),setTimeout(()=>{p&&l.setCellStyles(null,null,[n],p)},1)}finally{}return n.value}return n.value}return n.value}}function b(l){let{width:n,height:c,x:u,y:s}=l.geometry;C(l);let i=l.value.style,g=l.value.data.children,p={};g&&(p=g.find(v=>v.key==="text"));let f=document.createElement("div");if(f.innerHTML=D({img:i.imgUrl||"",text:p.value||i.text}),f.style=P(i),f.style.width=n+"px",f.style.height=c+"px",f.style.linHeight=c+"px",f.className="bg-light",e.preview){l.hyperlink="",l.popup="";let{url:v,pup:A}=de(l);v?(f.style.cursor="pointer",f.className="main-text hyperlink-btn",l.hyperlink=v):(f.style.cursor="default",f.className="main-text"),A&&A.length>0?(f.style.cursor="pointer",l.popup=A):f.style.cursor="default"}else f.className="bg-light";return f.innerHTML+='<div class="svg-edit-gr"></div>',f}function S(l,n){const c=n.x-l.x,u=n.y-l.y;return Math.sqrt(c*c+u*u)}e.isDragging=!1,e.dragTerminal=null,e.startPos=null,e.dx=null,e.dy=null,e.ctrlKey=!1,e.moveEdgeCells=[];function x(l,n,c,u){return new Promise((s,i)=>{let g=l.getDefaultParent(),p=l.getModel();p.beginUpdate();try{var f=l.insertEdge(g,null,"",null,null,n.style),v=l.getCellGeometry(n);let w=v.getTerminalPoint(!0),z=v.getTerminalPoint(!1);var A=new mxGeometry;A.setTerminalPoint(new mxPoint(w.x+c,w.y+u),!0),A.setTerminalPoint(new mxPoint(z.x+c,z.y+u),!1),f.setGeometry(A),f.value=n.value,f.type=n.type,f.model="yes",f.type="edge",f.iconName=n.iconName,s(f)}finally{p.endUpdate()}})}function y(){let l=e.graph;l.addMouseListener({mouseDown:function(n,c){e.dx=null,e.dy=null,e.moveEdgeCells=l.getSelectionCells();let u=c.evt;if(e.ctrlKey=u.ctrlKey,e.ctrlKey){let i=l.getPointForEvent(u);e.startPos=i,c.consume()}let s=l.getSelectionCell();if(s&&s.isEdge()){let i=l.getPointForEvent(u),g=s.getGeometry(),p=g.getTerminalPoint(!0),f=g.getTerminalPoint(!1),v=S(i,p),A=S(i,f);v<15&&(e.isDragging=!0,e.dragTerminal=!0,e.startPos=i,c.consume()),A<15&&(e.isDragging=!0,e.dragTerminal=!1,e.startPos=i,c.consume())}c.consume()},mouseMove:function(n,c){let u=c.evt;if(e.ctrlKey=u.ctrlKey,e.ctrlKey){let s=l.getPointForEvent(u),i=s.x,g=s.y;e.dx=i,e.dy=g,c.consume()}else if(e.isDragging&&e.dragTerminal!==null){let s=l.getPointForEvent(u),i=s.x,g=s.y;e.dx=i,e.dy=g,c.consume()}c.consume()},mouseUp:function(n,c){let u=c.evt,s=l.getModel();s.beginUpdate();try{if(e.ctrlKey&&u.ctrlKey&&e.dx!==null&&e.dy!==null){let i=e.moveEdgeCells;if(i&&i.length>0){let g=[];for(let p=0;p<i.length;p++){let f=i[p];f&&f.isEdge()&&x(l,f,e.dx-e.startPos.x,e.dy-e.startPos.y).then(v=>{g.push(v)})}}c.consume()}else if(e.isDragging&&e.dragTerminal!==null&&e.dx!==null&&e.dy!==null){let i=l.getSelectionCell(),g=i.getGeometry();if(e.dragTerminal){let p=new mxPoint(e.dx,e.dy);g.setTerminalPoint(p,!0)}else{let p=new mxPoint(e.dx,e.dy);g.setTerminalPoint(p,!1)}l.refresh(i),setTimeout(()=>{e.isDragging=!1,e.dragTerminal=null,e.startPos=null},1),c.consume()}}finally{s.endUpdate()}c.consume()}})}const C=l=>{let{width:n,height:c,x:u,y:s}=l.geometry,i=l.value.style;if(i&&i.hasOwnProperty("layout")){let g=l.value.data,p={width:n,height:c,x:u,y:s},f=g.children;if(f&&f.length>0){let v=f.find(A=>A.key=="layout");v.value=p}i.layout=p}};function D(l){let{img:n,text:c,style:u}=l,s="";return n&&(s+=`<img src='${n}' style="z-index: 0;" alt=" " v-if='${n}'>`),c&&(u?s+=`<span style="z-index: 0;${u}">${c}</span>`:s+=`<span style="z-index: 0;">${c}</span>`),!n&&!c?"<span> </span>":s}function E(l){new lt().createGrid(l,e.parent,e.preview),l.gridEnabled=!0,l.gridSize=10}e.disableAll=l=>{e.graph.setEnabled(l)},e.redo=()=>{if(e.preview)return;let l=e.undoMng;e.canRedo()&&(l.redo(),e.changePageSize())},e.undo=()=>{if(e.preview)return;let l=e.undoMng;e.canUndo()&&(l.undo(),e.changePageSize())},e.canRedo=()=>e.undoMng.canRedo(),e.canUndo=()=>e.undoMng.canUndo(),e.clearUndo=()=>{let l=e.undoMng;l&&(l.clear(),l.indexOfNextAdd=0,l.history=[])},e.getPoint=l=>e.graph.getPointForEvent(l),e.getXml=l=>{l||(l=e.graph);let c=new mxCodec().encode(l.getModel());return mxUtils.getPrettyXml(c)};function B(l){let c=e.graph.getModel();c.beginUpdate();try{let u=mxUtils.parseXml(l),g=new mxCodec(u).decode(u.documentElement,c).cells;for(const p in g){let f=g[p];f.type=="kitUI:CanvasWidget"&&(f.style=f.value.style,e.parent=f)}}finally{c.endUpdate(),setTimeout(()=>{e.changePageSize(),e.undoMng&&e.clearUndo()},1)}}function k(l,n){if(!l)return"";let c={};for(const u in l)n.some(s=>u.startsWith(s))&&(c[u]=l[u]);return c&&Object.keys(c).length===0?"":Object.entries(c).filter(([u,s])=>s!=null&&s!==""&&!(typeof s=="object"&&Object.keys(s).length===0)).map(([u,s])=>{const i=u.replace(/([A-Z])/g,"-$1").toLowerCase();let g=s;return i==="gap"&&(g=`${s}px`),`${i}:${g}`}).join("; ")+";"}function T(l,n){if(!l)return"";let c={};for(const u in l)n.indexOf(u)===-1&&(c[u]=l[u]);return c&&Object.keys(c).length===0?"":Object.entries(c).filter(([u,s])=>s!=null&&s!==""&&!(typeof s=="object"&&Object.keys(s).length===0)).map(([u,s])=>{const i=u.replace(/([A-Z])/g,"-$1").toLowerCase();let g=s;return i==="gap"&&(g=`${s}px`),`${i}:${g}`}).join("; ")+";"}function P(l){return l?(l.border&&l.border.split(",").length===1&&["top","right","bottom","left"].forEach(u=>{delete l["border-"+u+"-width"],delete l["border-"+u+"-style"],delete l["border-"+u+"-color"]}),Object.entries(l).filter(([n,c])=>c!=null&&c!==""&&!(typeof c=="object"&&Object.keys(c).length===0)).map(([n,c])=>{const u=n.replace(/([A-Z])/g,"-$1").toLowerCase();let s=c;return u==="gap"&&(s=c.toString().indexOf("px")===-1?`${c}px`:c),`${u}: ${s}`}).join("; ")+";"):""}function F(l,n){return l?Object.entries(l).filter(([u,s])=>s!=null&&s!==""&&!(typeof s=="object"&&Object.keys(s).length===0)).map(([u,s])=>{let i=u;n||(i=u.replace(/([A-Z])/g,"-$1").toLowerCase());let g=s;return i==="gap"&&(g=`${s}px`),`${i}=${g}`}).join("; ")+";":""}function G(l){const c=String(l).match(/\d+/);return c?Number(c[0]):null}function j(l,n,c){let u=l.value,s=G(u);return n==="-inf"?s<=c:c==="+inf"?s>=n:s>=n&&s<=c}function I(l,n){if(!n.children)return"";let u=n.children.filter(s=>s.animate&&(s.animate.isShow||s.animate.isShow==1));return u&&u.length>0&&u.forEach(s=>{if(s.key==="background"||s.key==="color"||s.key==="image"){let i=s.animate.data,g=s.animate.mpType,p=null;if(g==="NumericToSimple"){let f=i.find(v=>j(s,v.min,v.max));f?p=f:s.key==="image"?p={value:s.animate.default,valueUrl:s.animate.defaultVal}:p={value:s.animate.default}}else g==="BooleanToSimple"&&(p=i.find(f=>f.key===s.realValue));p&&(l[s.key]=p.value,s.key==="image"&&(l.imgUrl=`${p.valueUrl}`))}}),l}e.batchUpdateCells=l=>{const n=e.graph,c=e.undoMng;let u=n.getModel();if(!c){u.beginUpdate();try{l.forEach(i=>{if(u.setValue(i,i.value),i.value.style){let g={};if(i.type==="rect"){const p=I(i.value.style,i.value.data);g=K(i,p)}else if(i.type==="edge"){const p=I(i.value.style,i.value.data);e.firstFlag=!0,g=Z(i,p)}else i.type==="kitUI:CanvasWidget"?(g=I(realStyle,i.value.data),e.changePageSize(realStyle)):g=I(i.value.style,i.value.data);u.setStyle(i,g)}})}finally{u.endUpdate()}n.refresh();return}const s=c.undoableEditHappened;try{c.undoableEditHappened=function(){},u.beginUpdate();try{l.forEach(i=>{if(u.setValue(i,i.value),i.value.style){let g={};if(i.type==="rect"){const p=I(i.value.style,i.value.data);g=K(i,p)}else if(i.type==="edge"){const p=I(i.value.style,i.value.data);e.firstFlag=!0,g=Z(i,p)}else i.type==="kitUI:CanvasWidget"?(g=I(realStyle,i.value.data),e.changePageSize(realStyle)):g=I(i.value.style,i.value.data);u.setStyle(i,g)}})}finally{u.endUpdate()}}finally{c.undoableEditHappened=s}},e.updateCell=(l,n)=>{let c=e.graph;const u=c.getModel();u.beginUpdate();try{let s=l.value.style;if(n&&n.layout&&Object.keys(n.layout).length>0){const g=n.layout;if(g){let p=l.geometry;p!=null&&(p=p.clone(),p.x=g.x,p.y=g.y,p.width=g.width,p.height=g.height,u.setGeometry(l,p))}}u.setValue(l,l.value);let i="";l.type==="rect"?i=K(l,n):l.type==="edge"?(e.firstFlag=!0,i=Z(l,n)):l.type==="kitUI:CanvasWidget"?(i=I(s,l.value.data),e.changePageSize(s)):i=I(s,l.value.data),Je(e.graph,l,i)}finally{u.endUpdate()}c.refresh()};function Z(l,n){let c=e.graph,u="",s=l.style||"";if(s){const g={...ee(s),...n};u=F(g,!0),l.value.style=g,l.setStyle(u),I(l.value.style,l.value.data),c.refresh(l)}return u}function K(l,n){let c="",u=l.style||"";if(u){let s=ee(u);s.shape=s.shape,s.perimeter=s.perimeter,n.background.indexOf("/files")>-1&&(n.background=""),Number(n.borderValue)===0&&(n.stroke="transparent"),c=`shape=${s.shape};perimeter=${s.perimeter};fillColor=${n.background||"#D1E7FF"};strokeColor=${n.stroke||"#000000"};strokeWidth=${n.borderValue||0}`,s.direction&&(c+=`;direction=${s.direction}`);const i={...s,...n};l.value.style=i,I(l.value.style,l.value.data)}return c}function ee(l){const n={};return l.split(";").filter(u=>u.trim()!=="").forEach(u=>{const[s,i]=u.split("=");s&&i!==void 0&&(n[s.trim()]=i.trim())}),n}function ne(l){e.addImgVertex(l)}e.addImgVertex=l=>{let n=e.graph;const c=n.getModel();let u=n.getDefaultParent(),s=[];c.beginUpdate();try{l.forEach(i=>{const{evt:g=null,data:p={},pt:f={x:50,y:50},w:v=48,h:A=48,style:w={},displayName:z="",imgUrl:N="",iconName:M="icon-Imagefile",realWh:O={}}=i;let U=f,L=e.graph;g&&(U=L.getPointForEvent(g));let V=L.insertVertex(u,null,i.show?i.name:"",U.x,U.y,v,A);V.type="img",V.model="yes",V.imgUrl=i.imgUrl,V.iconName=M,V.value={data:p,style:w,name:i?i.displayName:i.getAttribute("label"),realWh:O},s.push(V)}),n.setSelectionCells(s)}finally{c.endUpdate()}};function oe(l,n){const u=l.getStylesheet().getDefaultVertexStyle();Object.assign(u,{fillColor:"transparent",strokeColor:"transparent",strokeWidth:0,fontColor:"#333333",fontSize:12})}e.createAllVertex=(l,n)=>{l==="vertex"?ra(n):l==="custom"?se(n):l==="edge"?re(n):l==="img"&&ne(n)};function re(l){e.firstFlag=!0;const n=mxGraph.prototype.insertEdge;mxGraph.prototype.insertEdge=function(g,p,f,v,A,w){return w===null&&(w=""),n.apply(this,arguments)};let c=e.graph,u=c.getDefaultParent(),s=c.getModel(),i=[];s.beginUpdate();try{for(let g=0;g<l.length;g++){const p=l[g],{evt:f=null,data:v=null,pt:A={x:50,y:50},style:w,w:z=30,h:N=100,iconName:M="icon-general-icon"}=p;let O=A;f&&(O=c.getPointForEvent(f));let U=ae(),L=c.insertEdge(u,null,"",null,null,w.perimeter+`;strokeWidth=${w.strokeWidth||1};strokeColor=${w.strokeColor||"#333333"}`);L.id=U;let V=new mxGeometry,{startX:W,startY:R,endX:Y,endY:H}=Ne(O,z,N);V.setTerminalPoint(new mxPoint(W,R),!0),V.setTerminalPoint(new mxPoint(Y,H),!1),L.setGeometry(V),L.model="yes",L.type="edge",L.iconName=M,L.value={data:{...v},style:{...w}},c.setSelectionCell(L),c.fireEvent(new mxEventObject(mxEvent.SELECTION_CHANGED,{cells:[L]})),c.refresh(L),i.push(L),e.firstStyle=!0}c.setSelectionCells(i)}finally{s.endUpdate()}}function se(l){let n=e.graph,c=n.getModel(),u=[];c.beginUpdate();try{for(let s=0;s<l.length;s++){const i=l[s],{evt:g=null,data:p=null,pt:f={x:50,y:50},style:v,w:A=100,h:w=30,type:z,tmpType:N,codeType:M,iconName:O="icon-general-icon",realType:U}=i;let L=A,V=w,W=f;g&&(W=n.getPointForEvent(g)),v.layout&&(L=v.layout.width,V=v.layout.height);let R={width:L,height:V,x:W.x,y:W.y},Y=p.children;if(Y&&Y.length>0){let ie=Y.find(Q=>Q.key=="layout");ie.value=R}v.layout=R;let H=n.getDefaultParent();oe(n,null);let $=F(v),te=ae(),_=n.insertVertex(H,te,v.text||"",W.x,W.y,L,V,$);_.crtype="creatComp",_.cmp=N,_.codeType=M,_.type=z,_.realType=U,_.model="yes",_.name=v.text||"",_.iconName=O,_.style=$,_.value={data:p,style:v},n.fireEvent(new mxEventObject(mxEvent.SELECTION_CHANGED,{cells:[_]})),u.push(_)}n.setSelectionCells(u)}finally{c.endUpdate()}}function ra(l){let n=e.graph,c=n.getModel(),u=[];c.beginUpdate();try{for(let s=0;s<l.length;s++){const i=l[s],{evt:g=null,data:p=null,pt:f={x:50,y:50},style:v,w:A=100,h:w=20,iconName:z="iconfont icon-general-icon",realType:N,from:M}=i;let O=f;n||(n=e.graph),g&&(O=n.getPointForEvent(g));let U=n.getDefaultParent(),L=n.getModel(),V={width:A,height:w,x:O.x,y:O.y},W=p.children;if(W&&W.length>0){let $=W.find(te=>te.key=="layout");$.value=V}let R=F(v);v.gtype=="rect"&&(Number(v.borderValue)===0&&(v.stroke="transparent"),R=v.perimeter+`;fillColor=${v.background||"transparent"};strokeColor=${v.stroke||"#333333"};strokeWidth=${v.borderWidth||0}`);let Y=ae(),H=n.insertVertex(U,Y,v.text||"",O.x,O.y,A,w,R);v.gtype=="rect"?H.type="rect":H.type="vertex",H.model="yes",H.name=v.text||"",H.iconName=z,H.value={data:{...p},style:{...v}},H.from=M||"other",H.realType=N,H.style=R,u.push(H),n.fireEvent(new mxEventObject(mxEvent.SELECTION_CHANGED,{cells:[H]}))}n.setSelectionCells(u)}finally{c.endUpdate()}}e.addVertex=({graph:l,options:n={}})=>new Promise((c,u)=>{const{evt:s=null,data:i=null,pt:g={x:50,y:50},style:p,w:f=100,h:v=20,iconName:A="iconfont icon-general-icon",realType:w,from:z}=n;let N=g;l||(l=e.graph),s&&(N=l.getPointForEvent(s));let M=l.getDefaultParent(),O=l.getModel(),U={width:f,height:v,x:N.x,y:N.y},L=i.children;if(L&&L.length>0){let V=L.find(W=>W.key=="layout");V.value=U}O.beginUpdate();try{let V=F(p);p.gtype=="rect"&&(Number(p.borderValue)===0&&(p.stroke="transparent"),V=p.perimeter+`;fillColor=${p.background||"transparent"};strokeColor=${p.stroke||"#333333"};strokeWidth=${p.borderWidth||0}`);let W=ae(),R=l.insertVertex(M,W,p.text||"",N.x,N.y,f,v,V);p.gtype=="rect"?R.type="rect":R.type="vertex",R.model="yes",R.name=p.text||"",R.iconName=A,R.value={data:{...i},style:{...p}},R.from=z||"other",R.realType=w,R.style=V,l.setSelectionCell(R),l.fireEvent(new mxEventObject(mxEvent.SELECTION_CHANGED,{cells:[R]})),c(R)}finally{O.endUpdate()}});function Ne(l,n,c){const s=-10*Math.PI/180,i=Math.cos(s),g=Math.sin(s),p=c/2,f=n/2,A=[{x:-p,y:-f},{x:p,y:-f},{x:p,y:f},{x:-p,y:f}].map(N=>{const M=l.x+(N.x*i-N.y*g),O=l.y+(N.x*g+N.y*i);return{x:M.toFixed(0),y:O.toFixed(0)}}),w=A[3],z=A[1];return{startX:parseFloat(w.x),startY:parseFloat(w.y),endX:parseFloat(z.x),endY:parseFloat(z.y)}}e.addEdge=({graph:l,options:n={}})=>{e.firstFlag=!0;const c=mxGraph.prototype.insertEdge;return mxGraph.prototype.insertEdge=function(u,s,i,g,p,f){return f===null&&(f=""),c.apply(this,arguments)},new Promise((u,s)=>{const{evt:i=null,data:g=null,pt:p={x:50,y:50},style:f,w:v=30,h:A=100,iconName:w="icon-general-icon"}=n;let z=p;l||(l=e.graph),i&&(z=l.getPointForEvent(i));let N=l.getDefaultParent(),M=l.getModel();M.beginUpdate();try{let O=ae(),U=l.insertEdge(N,null,"",null,null,f.perimeter+`;strokeWidth=${f.strokeWidth||1};strokeColor=${f.strokeColor||"#333333"}`);U.id=O;let L=new mxGeometry,{startX:V,startY:W,endX:R,endY:Y}=Ne(z,v,A);L.setTerminalPoint(new mxPoint(V,W),!0),L.setTerminalPoint(new mxPoint(R,Y),!1),U.setGeometry(L),U.model="yes",U.type="edge",U.iconName=w,U.value={data:{...g},style:{...f}},l.setSelectionCell(U),l.fireEvent(new mxEventObject(mxEvent.SELECTION_CHANGED,{cells:[U]})),l.refresh(U),e.firstStyle=!0,u(U)}finally{M.endUpdate()}})},e.createCustomComponent=({graph:l,options:n={}})=>new Promise((c,u)=>{const{evt:s=null,data:i=null,pt:g={x:50,y:50},id:p=null,style:f,w:v=100,h:A=30,type:w,tmpType:z,codeType:N,crtype:M="creatComp",other:O={},iconName:U="icon-general-icon",realType:L}=n;let V=v,W=A,R=g;l||(l=e.graph),s&&(R=l.getPointForEvent(s)),f.layout&&(V=f.layout.width,W=f.layout.height);let Y={width:V,height:W,x:R.x,y:R.y},H=i.children;if(H&&H.length>0){let _=H.find(ie=>ie.key=="layout");_.value=Y}f.layout=Y;let $=l.getDefaultParent(),te=l.getModel();oe(l),te.beginUpdate();try{let _=F(f),ie=p||ae(),Q=l.insertVertex($,ie,f.text||"",R.x,R.y,V,W,_);Q.crtype=M||"creatComp",Q.other=O,Q.cmp=z,Q.codeType=N,Q.type=w,Q.realType=L,Q.model="yes",Q.name=f.text||"",Q.iconName=U,Q.style=_,Q.value={data:i,style:f},l.setSelectionCell(Q),l.fireEvent(new mxEventObject(mxEvent.SELECTION_CHANGED,{cells:[Q]})),c(Q)}finally{te.endUpdate()}}),e.loadJson=()=>$e(e.graph),e.loadJsonToView=l=>{let n=tt(l);n&&B(n)},e.fromXmlToView=l=>{let n=e.graph;return new Promise((c,u)=>{let s=new mxFastOrganicLayout(n);s.forceConstant=140;const i=n.getStylesheet().getDefaultVertexStyle();i.fill="none",i[mxConstants.STYLE_STROKE]="none",n.getModel().beginUpdate();try{l&&B(l)}finally{n.getModel().endUpdate(),c()}})},e.main=l=>{let{container:n,xml:c}=l;return new Promise((u,s)=>{if(!mxClient.isBrowserSupported())mxUtils.error("Browser is not supported!",200,!1);else{let i=new mxEditor,g=i.graph;i.setGraphContainer(n),g.setEnabled(!1),g.setPanning(!1),g.setTooltips(!1),g.setHtmlLabels(!0),g.panningHandler.useLeftButtonForPanning=!0,g.isHtmlLabel=function(v){return!0},g.gridSize=10,e.graph=g,e.preview=!0;const f=g.getStylesheet().getDefaultVertexStyle();Object.assign(f,{fillColor:"transparent",strokeColor:"transparent",strokeWidth:0,fontColor:"#333333",fontSize:12}),g.convertValueToString=function(v){let{width:A,height:w}=v.geometry;if(v.type=="vertex"){let{url:z,pup:N}=de(v),M=v.value.style,O=v.value.data.children,U={};O&&(U=O.find(V=>V.key==="text"));let L=document.createElement("div");return L.innerHTML=D({img:(M==null?void 0:M.imgUrl)||"",text:U.value||M.text}),L.style=P(M),L.style.width=A+"px",L.style.height=w+"px",L.style.lineHeight=w+"px",z?(L.style.cursor="pointer",L.className="main-text hyperlink-btn",v.hyperlink=z):L.className="main-text",N&&(v.popup=N),L}else if(v.type=="kitUI:CanvasWidget"){let{width:z,height:N}=v.geometry,M=document.createElement("div");if(M.style.width=z+"px",M.style.height=N+"px",v.value){let O=v.value.style;O["background-image"]?M.style.background=`${O["background-image"]} center center no-repeat`:M.style.background=""}return M}else if(v.type=="img"){let z=document.createElement("div");return z.innerHTML=D({img:v.imgUrl||""}),z.style.width=A+"px",z.style.height=w+"px",z.className="main-img",z}return v.value},g.setPanning(!1),g.view.animate=!1,g.gridEnabled=!1,Ie(g),u(g)}})};function de(l){let n=l.value.data;if(n){let c=n.treeData||[],u=[],s=[];return c.forEach(i=>{let g=i.children||[],p=g.find(f=>f.key=="hyperlink"&&f.value!="null");p&&u.push(p),i.title=="PopupBinding"&&s.push(g)}),{url:u&&u.length>0?u[0].value:"",pup:s}}return null}e.addMask=(l,n,c,u,s)=>{let i=a(l.container,"transparentRect");if(i&&i.length>0)for(let g=0;g<i.length;g++){let p=i[g];p&&(p.style.top=c+"px",p.style.left=n+"px",p.style.width=u+"px",p.style.height=s+"px",p.style.zIndex="20",e.preview||(p.classList.remove("is-block"),p.classList.add("is-hidden")))}},e.initCanvas=l=>{const n=e.graph;return new Promise((c,u)=>{let s=n.getModel();const i=n.getDefaultParent();s.beginUpdate();try{const g=n.insertVertex(i,null,"",0,0,l?l.width:1e3,l?l.height:800,"transparent-node;fillColor=transparent;strokeColor=transparent;strokeWidth=0;consumeEvents=false;pointer-events:none;editable=0;selectable=0;clipping=1;order=999999;resizable=0");g.type="kitUI:CanvasWidget",g.resizable=!1,g.movable=!1,g.deletable=!1,g.selection=!1,g.value={style:{background:null,height:"800",horizontalAlign:"center",scrollBar:"hidden",verticalAlign:"center",viewSize:"1000,800",width:"1000"}},n.constrainChildren=!0,n.setCellsResizable(!1,[g]),g.collapsible=!1,g.automaticResize=!1,g.editable=!1,e.parent||(e.parent=g),n.refresh(g),setTimeout(()=>{e.changePageSize(l),e.undoMng&&e.clearUndo()},10),c()}finally{s.endUpdate()}})},e.changeRotationHandleStyle=l=>{mxGraphHandler.prototype.maxCells=mxClient.IS_IE?20:9999,mxConstants.GUIDELINE_WIDTH=1,mxConstants.VERTEX_SELECTION_DASHED=!1,mxConstants.HANDLE_SIZE=6,mxConstants.HANDLE_FILLCOLOR="#FD6902",mxConstants.HANDLE_STROKECOLOR="#FD6902",mxConstants.STYLE_SELECTION_STROKEWIDTH=2},e.testPosition=()=>{let l=e.graph,n=null,c=e.parent;c&&(n=c.value?c.value.style:null);let{x:u,y:s}=me(n,l.container),i=u,g=s;n.horizontalAlign==="end"&&(i=u-2),n.verticalAlign==="end"&&(g=s-2),e.addMask(l,i,g,n.width,n.height),l.getView().setTranslate(i,g)},e.getTranslate=l=>{let n=e.graph;const c=l.value?l.value.style:null;let{x:u,y:s}=me(c,n.container);return{x:u,y:s}},e.getFloatingPosition=l=>{let n=e.graph;if(!l){let i=n.getModel().cells;l=Object.values(i)}let c=l.filter(i=>i.crtype=="schedule"),u=l.find(i=>i.type=="kitUI:CanvasWidget");if(u){let{x:i,y:g}=e.getTranslate(u);i=i<0?0:i,g=g<0?0:g;for(let p=0;p<c.length;p++){let f=c[p];if(e.isPreview){let v=document.getElementsByClassName(f.id);for(let A=0;A<v.length;A++){const w=v[A];if(w){var s=f.getGeometry();w.style.position="absolute",w.style.width=s.width+"px",w.style.height=s.height+"px",w.style.left=s.x+i+"px",w.style.top=s.y+g+"px"}}}}}e.isPreview||c.forEach(i=>{n.getModel().setVisible(i,!0)})},e.changePageSize=l=>{if(!l){let n=e.parent;n&&(l=n.value?n.value.style:null)}if(l){let n=e.graph,c=n.getModel();c.beginUpdate();try{const u=e.parent;if(u){let s=n.getCellGeometry(u);if(s){let{x:i,y:g}=me(l,n.container);s.width=l.width,s.height=l.height,c.setGeometry(u,s);let p=n.container.querySelector("canvas");if(l.background)if(l.background.indexOf("files/")>-1){p&&(l["background-image"]?p.style.background=`${l["background-image"]} center center no-repeat`:p.style.background=l.background),n.container.parentElement.style.background="transparent";let A=document.querySelectorAll(".transparentRect");if(A){let w=(n.container.clientWidth-l.width)/2;A.forEach(z=>{z.style.boxShadow=`0 0 0 ${w}px #fff`})}}else{p&&(p.style.background="transparent"),l.fillColor=l.background,n.container.parentElement.style.background=l.background;let A=a(n.container,"transparentRect");if(A){let w=(n.container.clientWidth-l.width)/2;A.forEach(z=>{z.style.boxShadow=`0 0 0 ${w}px `+(l.background=="transparent"?"#fff":l.background)})}}else p&&(p.style.background="transparent");let f=i,v=g;l.horizontalAlign==="end"&&(f=i-2),l.verticalAlign==="end"&&(v=g-2),e.addMask(n,f,v,l.width,l.height),n.getView().setTranslate(f,v)}n.scrollCellToVisible(u,!1),e.parent=u,n.refresh(u)}c.setBounds=function(s){return new mxRectangle(0,0,l.width,l.height)}}finally{c.endUpdate(),E(n)}}};function Ie(l){l.addListener(mxEvent.CLICK,function(n,c){l.container.focus();const s=c.getProperty("cell");if(s)return t.handelEvent({key:"click",evt:c,val:s}),!1})}function sa(l){l.dblClick=function(n,c){if(!e.preview){if(c||(c=e.parent),c){let u=l.getModel();if(u.isVertex(c)||u.isEdge(c))return t.handelEvent({key:"db",evt:n,val:c}),!1}return!1}}}function da(l,n,c){let u=l.getModel(),s=function(i,g){n.undoableEditHappened(g.getProperty("edit"))};u.addListener(mxEvent.UNDO,s),l.getView().addListener(mxEvent.UNDO,s)}e.addCode=({code:l,pt:n,style:c,type:u,iconCls:s})=>{let i=e.graph;Ce(l,i,{pt:n,style:c,me:e,type:u,iconCls:s},t)},e.addEvent=({code:l,pt:n,style:c,type:u,iconCls:s})=>{let i=e.graph;Ce(l,i,{pt:n,style:c,me:e,type:u,iconCls:s},t)};function ca(l){l.addListener(mxEvent.RESIZE_CELLS,function(n,c){const u=c.getProperty("cells"),s=c.getProperty("bounds"),i=c.getProperty("previous"),g=l.getSelectionCells();u.forEach(p=>{if(l.getChildCells(p),l.getCellGeometry(p)){const v=parseFloat(s[0].width/i[0].width),A=parseFloat(s[0].height/i[0].height);g.forEach(w=>{if(w.id!=p.id){const N=l.getCellGeometry(w).clone();N.width*=v,N.height*=A,l.getModel().setGeometry(w,N)}})}}),setTimeout(()=>{l.setSelectionCells(g)},10),l.fireEvent(new mxEventObject(mxEvent.SELECTION_CHANGED,{cells:g}))})}function ua(l,n){mxEvent.addMouseWheelListener(function(c,u){e.preview||mxEvent.isConsumed(c)||c.ctrlKey&&(c.ctrlKey&&pa(c,l,u),e.changePageSize(),t.handelEvent({key:"wheel"}))},n)}function pa(l,n,c){mxEvent.consume(l);const u=n.getView().getScale(),s=c?1.1:1/1.1,i=u*s;if(i>3||i<.1)return;const g=n.container,p=g.offsetWidth,f=g.offsetHeight,v=p/2,A=f/2;n.getModel().beginUpdate();try{const w=n.getView(),z=w.getScale(),N=w.getTranslate(),M=v/z-N.x,O=A/z-N.y;n.getView().setScale(i);const U=v/i-N.x,L=A/i-N.y,V=U-M,W=L-O;w.setTranslate(w.getTranslate().x+V,w.getTranslate().y+W)}finally{n.getModel().endUpdate()}}function ma(l,n){n.popupMenuHandler.autoExpand=!0,n.popupMenuHandler.factoryMethod=function(c,u,s){if(e.preview)return;let i=mxClipboard.cells;if(!u)return;let g=[];u&&u.type!="kitUI:CanvasWidget"?(g=["new"],i||g.push("paste"),n.getSelectionCells().length<2&&g.push("order")):(g=["copy","cut","clone","del","order","toUp","toDown"],i||g.push("paste")),je(l,g).forEach(f=>{let v=null,A=null;f.children&&f.children.length>0?(v=null,A=f.children):v=function(){if(f.code){let z=n.getPointForEvent(s);t.contextmenus(s,{title:f.title,code:f.code||"",type:f.type,style:f.style,iconCls:f.iconCls,pt:z})}};let w=c.addItem(f.title,f.image,v,null,f.iconCls,f.disable,null,null,f.isBorder);A&&A.forEach(z=>{c.addItem(z.title,z.image,function(){if(z.code){let N=n.getPointForEvent(s);t.contextmenus(s,{title:z.title,code:z.code||"",type:z.type,style:z.style,iconCls:z.iconCls,pt:N})}},w,z.iconCls,z.disable,null,null,z.isBorder)})})}}}/*!
26
+ `});return(d,o)=>(r.openBlock(),r.createElementBlock("div",{class:"gr-triangle",innerHTML:a.value},null,8,Rt))}},[["__scopeId","data-v-25fd969b"]]),jt=(t,e,a)=>{const d=document.createDocumentFragment();let m=Ht({},e.data);e.style.background==="transparent"&&delete e.style.background,e.style.color==="transparent"&&delete e.style.color,e.style={...e.style,...m};let h="";if(t=="btn")h=he,e.style.btntype=="none"&&(delete e.style.background,delete e.style["background-image"]),e.style.isIcon=!1;else if(t=="bar")h=wt;else if(t=="iconbtn")h=he,e.style.btntype=="none"&&(delete e.style.background,delete e.style["background-image"]),e.style.isIcon=!0,e.style.iconName=a;else if(t=="switch"){h=Ot,e.style.btntype=="none"&&(delete e.style.background,delete e.style["background-image"]);let y=e.data;if(y.children){let D=y.children.find(E=>E.key==="text");e.style.realValue=D.realValue,e.style.path=D.animate.value}}else t=="schedule"?(e.id=e.timeId+"",h=e.comp):t=="circle"?h=Vt:t=="rectangle"?h=Ft:t=="triangle"?h=Wt:h=he;const b={setup(){var y=()=>r.h(h,{...e,onClick:function(C){}});return y}};let S=r.createApp(b);return S.use(Oe),S.use(Ve),S.mount(d).$el.outerHTML};function Ht(t,e){if(!e.children)return"";let d=e.children.filter(o=>o.animate&&(o.animate.isShow||o.animate.isShow==1));return d&&d.length>0&&d.forEach(o=>{if(o.key==="background"||o.key==="color"||o.key==="image"){let m=o.animate.data,h=o.animate.mpType,b=null;if(h==="NumericToSimple"){let S=m.find(x=>Gt(o,x.min,x.max));S?b=S:o.key==="image"?b={value:o.animate.default,valueUrl:o.animate.defaultVal}:b={value:o.animate.default}}else h==="BooleanToSimple"&&(b=m.find(S=>S.key===o.value));b&&(t[o.key]=b.value,o.key==="image"&&(t.imgUrl=`${b.valueUrl}`))}else t[o.key]=o.value}),t}function Gt(t,e,a){let d=t.value,o=_t(d);return o>=e&&o<=a}function _t(t){const a=String(t).match(/\d+/);return a?Number(a[0]):null}function Yt(t){let e=this;e.initShapes=function(){function a(){mxActor.call(this)}mxUtils.extend(a,mxActor),a.prototype.arrowWidth=.3,a.prototype.arrowSize=.2,a.prototype.redrawPath=function(o,m,h,b,S){var x=S*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",this.arrowWidth)))),y=b*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",this.arrowSize)))),C=(S-x)/2,D=C+x,E=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(o,[new mxPoint(0,C),new mxPoint(b-y,C),new mxPoint(b-y,0),new mxPoint(b,S/2),new mxPoint(b-y,S),new mxPoint(b-y,D),new mxPoint(0,D)],this.isRounded,E,!0),o.end()},mxCellRenderer.registerShape("singleArrow",a);function d(){mxActor.call(this)}mxUtils.extend(d,mxActor),d.prototype.redrawPath=function(o,m,h,b,S){var x=S*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowWidth",a.prototype.arrowWidth)))),y=b*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"arrowSize",a.prototype.arrowSize)))),C=(S-x)/2,D=C+x,E=mxUtils.getValue(this.style,mxConstants.STYLE_ARCSIZE,mxConstants.LINE_ARCSIZE)/2;this.addPoints(o,[new mxPoint(0,S/2),new mxPoint(y,0),new mxPoint(y,C),new mxPoint(b-y,C),new mxPoint(b-y,0),new mxPoint(b,S/2),new mxPoint(b-y,S),new mxPoint(b-y,D),new mxPoint(y,D),new mxPoint(y,S)],this.isRounded,E,!0),o.end()},mxCellRenderer.registerShape("doubleArrow",d)}}function Ee(t){let e=this;e.editor=null,e.parent=null,e.graph=null,e.undoMng=null,e.preview=!0,e.pageShortcuts=!1,e.firstFlag=!0,e.container=null,e.keyUpdownEvt=null,e.vueInstances=new Map,e.setPageShortcuts=l=>{e.pageShortcuts=l},e.clearCanvas=()=>{let l=e.graph;const n=l.getChildCells(l.getDefaultParent());if(n.length>0){l.getModel().beginUpdate();try{l.removeCells(n)}finally{l.getModel().endUpdate()}}};function a(l,n){return[...l.parentNode.children].filter(c=>c!==l&&c.classList.contains(n))}e.isPreview=l=>{let n=e.graph;n.setCellsResizable(l),n.setCellsEditable(l),n.setCellsSelectable(l),n.setHtmlLabels(!0),n.setCellsMovable(l),n.setPanning(!l),e.preview=!l,e.changePageSize(),e.preview?e.keyUpdownEvt&&e.keyUpdownEvt.removeListener(n):e.keyUpdownEvt=new ze(t);let c=a(n.container,"transparentRect");if(e.preview){if(c&&c.length>0)for(let u=0;u<c.length;u++){let s=c[u];s&&(s.classList.remove("is-hidden"),s.classList.add("is-block"))}}else if(c&&c.length>0)for(let u=0;u<c.length;u++){let s=c[u];s&&(s.classList.remove("is-block"),s.classList.add("is-hidden"))}if(e.preview&&n.clearSelection(),e.preview){const u=n.container.querySelectorAll(".bg-light");if(u)for(let s=0;s<u.length;s++)u[s].classList.replace("bg-light","main-text")}else{const u=n.container.querySelectorAll(".main-text");if(u)for(let s=0;s<u.length;s++)u[s].classList.replace("main-text","bg-light")}if(e.preview){const u=n.container.querySelectorAll(".bg-creat-comp");if(u)for(let s=0;s<u.length;s++){const i=u[s];i&&i.classList.add("svg-preview-gr")}}else{const u=n.container.querySelectorAll(".svg-preview-gr");if(u)for(let s=0;s<u.length;s++){const i=u[s];i&&i.classList.remove("svg-preview-gr")}}n.view.validate(),n.view.refresh(),e.preview},e.init=l=>{let{container:n}=l;return new Promise((c,u)=>{let s=new mxEditor,i=s.graph;n.setAttribute("tabindex","0"),n.style.outline="none",n.style.width="100%",n.style.height="100%",s.setGraphContainer(n),e.container=n,e.editor=s,Ze(s),mxEvent.disableContextMenu(n);const p=i.getStylesheet().getDefaultVertexStyle();Object.assign(p,{fillColor:"transparent",strokeColor:"transparent",strokeWidth:0,fontColor:"#333333",fontSize:12}),i.setConnectable(!1),i.setEnabled(!0),i.setPanning(!1),i.resizeContainer=!1,i.scrollbars=!1,i.setHtmlLabels(!0),i.setCellsResizable(!0),i.connectionHandler.setCreateTarget(!1),i.setDropEnabled(!1),i.setCellsDeletable(!0),i.setTooltips(!1),i.setMultigraph(!1),new mxRubberband(i),i.setAllowDanglingEdges(!1),i.setCellsEditable(!0),i.setCellsSelectable(!0),i.setCellsMovable(!0),i.setEdgeLabelsMovable(!1),i.setGridEnabled(!1),i.setGridEnabled(!1),i.gridEnabled=!0,i.gridSize=10,i.centerZoom=!1,e.changeRotationHandleStyle(i),i.snapTolerance=10,i.isCellEditable=function(w){return!1},i.isCellMovable=function(w){return w.type==="kitUI:CanvasWidget"?!1:w.isVertex()||w.isEdge()},i.isCellResizable=function(w){return w.type==="kitUI:CanvasWidget"?!1:w.isVertex()||w.isEdge()},i.isCellDeletable=function(w){return w.type==="kitUI:CanvasWidget"?!1:w.isVertex()||w.isEdge()},i.isCellSelectable=function(w){return w&&w.type==="kitUI:CanvasWidget"?!1:mxGraph.prototype.isCellSelectable.apply(this,arguments)},i.setResizeContainer(!1),i.autoExtend=!1,i.setAutoSizeCells(!1),i.swimlaneSelectionEnabled=!1;let f=new mxUndoManager;da(i,f),e.undoMng=f,E(i),sa(i),Ie(i),ua(i,n),ma(t.menus,i),ca(i),e.graph=i,h(i),i.autoSize=!1,i.model.validateGraph=!1,i.model.validateEdge=()=>!0,i.model.validateNode=()=>!0,i.removeListener(i.listeners),i.view.animate=!1,e.clearUndo(),new Yt().initShapes(),y(),mxConstants.INVALID_COLOR="transparent",mxConstants.DEFAULT_INVALID_COLOR="transparent",mxConstants.INVALID_CONNECT_TARGET_COLOR="transparent",e.keyUpdownEvt=new ze(t),mxWindow.prototype.closeImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAw0lEQVR4AZyS3RHCIBCEEyuxFO1E36EGsQZ419LsBHd3IHP8jTNmWH4u+x0HyWn78xEYY3xQv3LQk1J60SeQEyjwBcZpK0DIOX9oEOi9f2IRqBlMCMBt3/d38W4CAWwlMMAWcs7d6aUOkIseXkH0NiADFq7l2Z3ooQaQQZzlzJECrMvg3GoAbXkwDmdGTK0BLcTybNn9bR9gDyktuhUskNlwFn0n7gR/02awQLguUJhBiKtVuF6cQASvEP8emVYdPTX5FwAA//+rmaLTAAAABklEQVQDAD/igh3e/xFHAAAAAElFTkSuQmCC ",mxWindow.prototype.normalizeImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAwElEQVR4AcRSwRHCIBAUKkknQidaALSgtgD8tRNIJ1YC7mYSRhgn5Gfmdg7udnNwhzytn/deASWE8FxD1THGHKC2YBVugaNe8i8EBGdg10opE7kEK0awiTv8rgkheA1yI4UJ7Iqc84x9Y6j0RqByuJbGGP0Na+0LicaQfwANjxUb0tHNH4Robexw64/rnLt0nKWrfA0VaPnUC6WUnHHlIK94R42FRsuv8CPjrBc+x5HQ6oRKnNVIOJNLsOKI/DP/AQAA///YhGxbAAAABklEQVQDANQlZDV28KsrAAAAAElFTkSuQmCC",mxWindow.prototype.minimizeImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAwElEQVR4AcRSwRHCIBAUKkknQidaALSgtgD8tRNIJ1YC7mYSRhgn5Gfmdg7udnNwhzytn/deASWE8FxD1THGHKC2YBVugaNe8i8EBGdg10opE7kEK0awiTv8rgkheA1yI4UJ7Iqc84x9Y6j0RqByuJbGGP0Na+0LicaQfwANjxUb0tHNH4Robexw64/rnLt0nKWrfA0VaPnUC6WUnHHlIK94R42FRsuv8CPjrBc+x5HQ6oRKnNVIOJNLsOKI/DP/AQAA///YhGxbAAAABklEQVQDANQlZDV28KsrAAAAAElFTkSuQmCC",mxWindow.prototype.maximizeImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAArklEQVR4AcSSUQrDIBBEG/Eg7U1yIT88QZoT+OGFepP2IEI6b4mwlkD6UWjwmc3MjgomXPSUUq4eScPwHjVmoIgxPj0YHu9Rk7Ed96aH3vcdvYbRdXrMGIIppRXMcRMaSDoMSv9+hJzzS6tNYj2L0SMmMv6oZ7nB/0OQO6m1bmIZznLwQY/YyPzkqLNWW+BzMzSQPgsbfkfE/oeY6aau02OyBVtrN485bvIeNff4BgAA//8HoCv8AAAABklEQVQDAFXqZFJqMF/zAAAAAElFTkSuQmCC",mxWindow.prototype.resizeImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAtklEQVR4AZSS0Q2EIBBEF0MhVwqdnP5DEVZAAvyfnXidaCfcrBcTQFQkIWQ387I7Ezp6eEIIH+fc8gj03s8xxl4IMTWDDBGRYsgYMzaBKaS1HgjnFiwha+0LHvtLsIRQKynlgnXfpyBEMzbaPPF6qBVqDmfFW/cI0SmEaQPC+R4mtkCYSBnYAh0+QAvEmuwDcAPjq0HsnlINPI5d2ijTq0GswZC/RwimvcFNrLOit6XHNV/UmeYHAAD//4CpKLcAAAAGSURBVAMAuzSnSig8bRkAAAAASUVORK5CYII=";const A=i.getView().setTranslate;i.getView().setTranslate=function(w,z){const N=Math.max(0,Math.min(3e3,w)),M=Math.max(0,Math.min(3e3,z));A.call(this,N,M)},i.addListener(mxEvent.PAN,function(){const w=i.getView().getTranslate();let z=Math.min(0,w.x),N=Math.min(0,w.y);(z!==w.x||N!==w.y)&&i.getView().setTranslate(z,N)}),mxGraph.prototype.setCellStyles=function(w,z,N,M){N=N||this.getSelectionCells(),mxUtils.setCellStyles(this.model,N,w,z,M)},mxUtils.setCellStyles=function(w,z,N,M,O){if(z!=null&&z.length>0)if(e.firstStyle){w.beginUpdate();try{for(var U=0;U<z.length;U++)if(z[U]!=null)for(let W in O){var L=mxUtils.setStyle(w.getStyle(z[U]),W,O[W]);w.setStyle(z[U],L)}}finally{w.endUpdate()}}else{for(var U=0;U<z.length;U++)if(z[U]!=null)for(let V in O){var L=mxUtils.setStyle(w.getStyle(z[U]),V,O[V]);w.setStyle(z[U],L)}e.firstStyle=!1}},i.view.scaleGrid=!0,i.view.roundPoints=!0,mxSvgCanvas2D.prototype.updateTextNodes=function(w,z,N,M,O,U,L,V,W,R,Y){var G=this.state.scale;mxSvgCanvas2D.createCss(N+2,M,O,U,L,V,W,this.state.fontBackgroundColor!=null?this.state.fontBackgroundColor:null,this.state.fontBorderColor!=null?this.state.fontBorderColor:null,"display: flex; align-items: unsafe "+(U==mxConstants.ALIGN_TOP?"flex-start":U==mxConstants.ALIGN_BOTTOM?"flex-end":"center")+"; justify-content: unsafe "+(O==mxConstants.ALIGN_LEFT?"flex-start":O==mxConstants.ALIGN_RIGHT?"flex-end":"center")+"; ",this.getTextCss(),G,mxUtils.bind(this,function($,te,_,ie,Q){w+=this.state.dx,z+=this.state.dy;var ce=Y.firstChild,Pe=ce.firstChild,Ue=Pe.firstChild,ga=Ue.firstChild,Le=(this.rotateHtml?this.state.rotation:0)+(R??0),ye=(this.foOffset!=0?"translate("+this.foOffset+" "+this.foOffset+")":"")+(G!=1?"scale("+G+")":"");ga.setAttribute("style",Q),Ue.setAttribute("style",ie),ce.setAttribute("width",Math.ceil(1/Math.min(1,G)*100)+"%"),ce.setAttribute("height",Math.ceil(1/Math.min(1,G)*100)+"%");let ue=Math.round(z+te),fa=Math.round(w+$),ha=d(ue),ya=d(fa);if(ue<0)ce.setAttribute("y",ue);else{ce.removeAttribute("y");let Me=ue;ya||ha||(Me=ue-.5),_+="padding-top: "+Me+"px; "}_=_.replace("width: 1px","width: 0px"),_=_.replace("height: 1px","height: 0px");let ba=w+$;Pe.setAttribute("style",_+"margin-left: "+Math.round(ba)+"px;"),ye+=Le!=0?"rotate("+Le+" "+w+" "+z+")":"",ye!=""?Y.setAttribute("transform",ye):Y.removeAttribute("transform"),this.state.alpha!=1?Y.setAttribute("opacity",this.state.alpha):Y.removeAttribute("opacity")}))},i.fit(),o(),c(i)})};function d(l){let n=!0;return l%2===0?n=!0:n=!1,n}function o(l){mxVertexHandler.prototype.getHandleForEvent=function(n){let c=n.getEvent(),u=["nw-resize","n-resize","ne-resize","w-resize","e-resize","sw-resize","s-resize","se-resize"];var s=c.target||c.srcElement,i=window.getComputedStyle(s).cursor;if(u.indexOf(i)!=-1){var g=mxEvent.isMouseEvent(n.getEvent())?1:this.tolerance,p=this.allowHandleBoundsCheck&&(mxClient.IS_IE||g>0)?new mxRectangle(n.getGraphX()-g,n.getGraphY()-g,2*g,2*g):null,f=mxUtils.bind(this,function(A){var w=A!=null&&A.constructor!=mxImageShape&&this.allowHandleBoundsCheck?A.strokewidth+A.svgStrokeTolerance:null,z=w!=null?new mxRectangle(n.getGraphX()-Math.floor(w/2),n.getGraphY()-Math.floor(w/2),w,w):p;return A!=null&&(n.isSource(A)||z!=null&&mxUtils.intersects(A.bounds,z)&&A.node.style.display!="none"&&A.node.style.visibility!="hidden")});if(f(this.rotationShape))return mxEvent.ROTATION_HANDLE;if(f(this.labelShape))return mxEvent.LABEL_HANDLE;if(this.sizers!=null){for(var v=0;v<this.sizers.length;v++)if(f(this.sizers[v]))return v}if(this.customHandles!=null&&this.isCustomHandleEvent(n)){for(var v=this.customHandles.length-1;v>=0;v--)if(f(this.customHandles[v].shape))return mxEvent.CUSTOM_HANDLE-v}}return null}}e.keyUpdownEvent=l=>{let n=e.graph,c=e.undoMng;e.keyUpdownEvt.keyUpdown(n,c,function(s){(s==="undo"||s==="redo")&&e.changePageSize()})},e.removeKeyUpDown=()=>{let l=e.graph;e.keyUpdownEvt.removeListener(l)};function m(l){return new Promise((n,c)=>{let u=new Image;u.src=`${l}`,u.onload=async function(){let s=u.width,i=u.height;n({w:s,h:i})}})}e.scheduleBorder=l=>{let n={};if(l.border){let u=l.border.split(",");u.length==1?u.forEach((s,i)=>{let g=s.split(" "),p="";n["border"+p+"Width"]=g[0],n["border"+p+"Style"]=g[1],n["border"+p+"Color"]=g[2]}):u.forEach((s,i)=>{let g=s.split(" "),p="Top";i==0?p="Top":i==1?p="Right":i==2?p="Bottom":i==3&&(p="Left"),n["border"+p+"Width"]=g[0],n["border"+p+"Style"]=g[1],n["border"+p+"Color"]=g[2]})}return n};function h(l){l.convertValueToString=function(n){let{width:c,height:u,x:s,y:i}=n.geometry;if(n.type=="vertex")return b(n);if(n.type=="kitUI:CanvasWidget"){let p=n.value.style,f=document.createElement("div");f.style.width=c+"px",f.style.height=u+"px",f.className="bgss-light";let v=l.container.querySelector("canvas");return v&&(p["background-image"]?v.style.background=`${p["background-image"]}center center no-repeat`:v.style.background="transparent"),f}else if(n.type=="img"){let p=document.createElement("div"),f=n.value.style,v="";if(f.scale=="fitRatio"?(p.style.display="flex",p.style.alignItems="center",p.style.justifyContent="center",p.style.flexDirection="column",m(f.imgUrl||n.imgUrl).then(A=>{A&&(p.style.aspectRatio=A.w/A.h)}),v="img-vr-fit-ratio"):f.scale=="fit"&&(p.style.display="flex",p.style.alignItems="center",p.style.justifyContent="center",v="img-vr-fit"),p.innerHTML=D({img:f.imgUrl||n.imgUrl}),p.style.width=c+"px",p.style.height=u+"px",p.innerHTML+='<div class="svg-edit-gr"></div>',e.preview){n.hyperlink="",n.popup="",p.className="bg-light svg-preview-gr "+v;let{url:A,pup:w}=de(n);A?(p.style.cursor="pointer",n.hyperlink=A):p.style.cursor="default",w&&w.length>0?(p.style.cursor="pointer",n.popup=w):p.style.cursor="default"}else p.className="bg-light "+v;return p}else if(n.crtype=="creatComp"){C(n);let p=document.createElement("div");if(p.innerHTML=jt(n.cmp,n.value,n.iconName),p.style.width=c+"px",p.style.height=u+"px",p.innerHTML+='<div class="svg-edit-gr"></div>',e.preview){n.hyperlink="",n.popup="",p.className="bg-creat-comp svg-preview-gr";let{url:f,pup:v}=de(n);f?(p.style.cursor="pointer",n.hyperlink=f):p.style.cursor="default",v&&v.length>0?(p.style.cursor="pointer",n.popup=v):p.style.cursor="default"}else p.className="bg-creat-comp";return p}else if(n.crtype=="schedule"){let p=n.value.style;C(n);let f=document.createElement("div"),{el:v}=n.other||{};f.innerHTML=v.outerHTML;let A=document.getElementById(n.id);if(A){var g=l.view.getState(n);A.style.position="absolute",A.style.width=g.width+"px",A.style.height=g.height+"px",A.style.left=g.x+"px",A.style.top=g.y+"px",e.preview||(f.innerHTML=A.innerHTML)}return f.style=T(p,[]),f.style.width=c+"px",f.style.height=u+"px",f.innerHTML+='<div class="svg-edit-gr"></div>',e.preview?f.className="bg-creat-comp svg-preview-gr":f.className="bg-creat-comp",f}else if(n.type=="rect"){let p=n.value.style,f=n.value.data,A=(f.children||[]).find(O=>O.key==="perimeter");A&&(p.background.indexOf("/files")>-1&&(p.background=""),Number(p.borderValue)===0&&(p.stroke="transparent"),n.style=A.value+`fillColor=${p.background||"transparent"};strokeColor=${p.stroke||"#333333"};strokeWidth=${p.borderValue||0}`);let w={},z=f.children;z&&(w=z.find(O=>O.key==="text"));let N=document.createElement("div");N.innerHTML=D({text:w.value||p.text,style:k(p,["text-","font-","color"])}),N.style=T(p,["background","stroke","strokeWidth"]),N.style.width=c+"px",N.style.height=u+"px",N.className="";let M="";if(f.title==="ShapeTriangle"?M="triangle":f.title==="ShapeRect"?M="rectangle":f.title==="ShapeCircle"&&(M="circle"),e.preview){n.hyperlink="",n.popup="";let{url:O,pup:U}=de(n);O?(N.style.cursor="pointer",N.className="main-text hyperlink-btn custom-rect-p "+M,n.hyperlink=O):(N.style.cursor="default",N.className="main-text custom-rect-p "+M),U&&U.length>0?(n.popup=U,N.style.cursor="pointer"):N.style.cursor="default"}else N.className="bg-light custom-rect "+M;return N.innerHTML+='<div class="svg-edit-gr"></div>',N}else if(n.type=="edge"){if(e.firstFlag){l.getModel(),e.firstFlag=!1;try{let p=n.value.style,f=p.dashWidth||3,v=p.dashSpace||1;f&&v&&(p.dashPattern=`${f} ${v}`),setTimeout(()=>{p&&l.setCellStyles(null,null,[n],p)},1)}finally{}return n.value}return n.value}return n.value}}function b(l){let{width:n,height:c,x:u,y:s}=l.geometry;C(l);let i=l.value.style,g=l.value.data.children,p={};g&&(p=g.find(v=>v.key==="text"));let f=document.createElement("div");if(f.innerHTML=D({img:i.imgUrl||"",text:p.value||i.text}),f.style=P(i),f.style.width=n+"px",f.style.height=c+"px",f.style.linHeight=c+"px",f.className="bg-light",e.preview){l.hyperlink="",l.popup="";let{url:v,pup:A}=de(l);v?(f.style.cursor="pointer",f.className="main-text hyperlink-btn",l.hyperlink=v):(f.style.cursor="default",f.className="main-text"),A&&A.length>0?(f.style.cursor="pointer",l.popup=A):f.style.cursor="default"}else f.className="bg-light";return f.innerHTML+='<div class="svg-edit-gr"></div>',f}function S(l,n){const c=n.x-l.x,u=n.y-l.y;return Math.sqrt(c*c+u*u)}e.isDragging=!1,e.dragTerminal=null,e.startPos=null,e.dx=null,e.dy=null,e.ctrlKey=!1,e.moveEdgeCells=[];function x(l,n,c,u){return new Promise((s,i)=>{let g=l.getDefaultParent(),p=l.getModel();p.beginUpdate();try{var f=l.insertEdge(g,null,"",null,null,n.style),v=l.getCellGeometry(n);let w=v.getTerminalPoint(!0),z=v.getTerminalPoint(!1);var A=new mxGeometry;A.setTerminalPoint(new mxPoint(w.x+c,w.y+u),!0),A.setTerminalPoint(new mxPoint(z.x+c,z.y+u),!1),f.setGeometry(A),f.value=n.value,f.type=n.type,f.model="yes",f.type="edge",f.iconName=n.iconName,s(f)}finally{p.endUpdate()}})}function y(){let l=e.graph;l.addMouseListener({mouseDown:function(n,c){e.dx=null,e.dy=null,e.moveEdgeCells=l.getSelectionCells();let u=c.evt;if(e.ctrlKey=u.ctrlKey,e.ctrlKey){let i=l.getPointForEvent(u);e.startPos=i,c.consume()}let s=l.getSelectionCell();if(s&&s.isEdge()){let i=l.getPointForEvent(u),g=s.getGeometry(),p=g.getTerminalPoint(!0),f=g.getTerminalPoint(!1),v=S(i,p),A=S(i,f);v<15&&(e.isDragging=!0,e.dragTerminal=!0,e.startPos=i,c.consume()),A<15&&(e.isDragging=!0,e.dragTerminal=!1,e.startPos=i,c.consume())}c.consume()},mouseMove:function(n,c){let u=c.evt;if(e.ctrlKey=u.ctrlKey,e.ctrlKey){let s=l.getPointForEvent(u),i=s.x,g=s.y;e.dx=i,e.dy=g,c.consume()}else if(e.isDragging&&e.dragTerminal!==null){let s=l.getPointForEvent(u),i=s.x,g=s.y;e.dx=i,e.dy=g,c.consume()}c.consume()},mouseUp:function(n,c){let u=c.evt,s=l.getModel();s.beginUpdate();try{if(e.ctrlKey&&u.ctrlKey&&e.dx!==null&&e.dy!==null){let i=e.moveEdgeCells;if(i&&i.length>0){let g=[];for(let p=0;p<i.length;p++){let f=i[p];f&&f.isEdge()&&x(l,f,e.dx-e.startPos.x,e.dy-e.startPos.y).then(v=>{g.push(v)})}}c.consume()}else if(e.isDragging&&e.dragTerminal!==null&&e.dx!==null&&e.dy!==null){let i=l.getSelectionCell(),g=i.getGeometry();if(e.dragTerminal){let p=new mxPoint(e.dx,e.dy);g.setTerminalPoint(p,!0)}else{let p=new mxPoint(e.dx,e.dy);g.setTerminalPoint(p,!1)}l.refresh(i),setTimeout(()=>{e.isDragging=!1,e.dragTerminal=null,e.startPos=null},1),c.consume()}}finally{s.endUpdate()}c.consume()}})}const C=l=>{let{width:n,height:c,x:u,y:s}=l.geometry,i=l.value.style;if(i&&i.hasOwnProperty("layout")){let g=l.value.data,p={width:n,height:c,x:u,y:s},f=g.children;if(f&&f.length>0){let v=f.find(A=>A.key=="layout");v.value=p}i.layout=p}};function D(l){let{img:n,text:c,style:u}=l,s="";return n&&(s+=`<img src='${n}' style="z-index: 0;" alt=" " v-if='${n}'>`),c&&(u?s+=`<span style="z-index: 0;${u}">${c}</span>`:s+=`<span style="z-index: 0;">${c}</span>`),!n&&!c?"<span> </span>":s}function E(l){new lt().createGrid(l,e.parent,e.preview),l.gridEnabled=!0,l.gridSize=10}e.disableAll=l=>{e.graph.setEnabled(l)},e.redo=()=>{if(e.preview)return;let l=e.undoMng;e.canRedo()&&(l.redo(),e.changePageSize())},e.undo=()=>{if(e.preview)return;let l=e.undoMng;e.canUndo()&&(l.undo(),e.changePageSize())},e.canRedo=()=>e.undoMng.canRedo(),e.canUndo=()=>e.undoMng.canUndo(),e.clearUndo=()=>{let l=e.undoMng;l&&(l.clear(),l.indexOfNextAdd=0,l.history=[])},e.getPoint=l=>e.graph.getPointForEvent(l),e.getXml=l=>{l||(l=e.graph);let c=new mxCodec().encode(l.getModel());return mxUtils.getPrettyXml(c)};function B(l){let c=e.graph.getModel();c.beginUpdate();try{let u=mxUtils.parseXml(l),g=new mxCodec(u).decode(u.documentElement,c).cells;for(const p in g){let f=g[p];f.type=="kitUI:CanvasWidget"&&(f.style=f.value.style,e.parent=f)}}finally{c.endUpdate(),setTimeout(()=>{e.changePageSize(),e.undoMng&&e.clearUndo()},1)}}function k(l,n){if(!l)return"";let c={};for(const u in l)n.some(s=>u.startsWith(s))&&(c[u]=l[u]);return c&&Object.keys(c).length===0?"":Object.entries(c).filter(([u,s])=>s!=null&&s!==""&&!(typeof s=="object"&&Object.keys(s).length===0)).map(([u,s])=>{const i=u.replace(/([A-Z])/g,"-$1").toLowerCase();let g=s;return i==="gap"&&(g=`${s}px`),`${i}:${g}`}).join("; ")+";"}function T(l,n){if(!l)return"";let c={};for(const u in l)n.indexOf(u)===-1&&(c[u]=l[u]);return c&&Object.keys(c).length===0?"":Object.entries(c).filter(([u,s])=>s!=null&&s!==""&&!(typeof s=="object"&&Object.keys(s).length===0)).map(([u,s])=>{const i=u.replace(/([A-Z])/g,"-$1").toLowerCase();let g=s;return i==="gap"&&(g=`${s}px`),`${i}:${g}`}).join("; ")+";"}function P(l){return l?(l.border&&l.border.split(",").length===1&&["top","right","bottom","left"].forEach(u=>{delete l["border-"+u+"-width"],delete l["border-"+u+"-style"],delete l["border-"+u+"-color"]}),Object.entries(l).filter(([n,c])=>c!=null&&c!==""&&!(typeof c=="object"&&Object.keys(c).length===0)).map(([n,c])=>{const u=n.replace(/([A-Z])/g,"-$1").toLowerCase();let s=c;return u==="gap"&&(s=c.toString().indexOf("px")===-1?`${c}px`:c),`${u}: ${s}`}).join("; ")+";"):""}function F(l,n){return l?Object.entries(l).filter(([u,s])=>s!=null&&s!==""&&!(typeof s=="object"&&Object.keys(s).length===0)).map(([u,s])=>{let i=u;n||(i=u.replace(/([A-Z])/g,"-$1").toLowerCase());let g=s;return i==="gap"&&(g=`${s}px`),`${i}=${g}`}).join("; ")+";":""}function H(l){const c=String(l).match(/\d+/);return c?Number(c[0]):null}function j(l,n,c){let u=l.value,s=H(u);return n==="-inf"?s<=c:c==="+inf"?s>=n:s>=n&&s<=c}function I(l,n){if(!n.children)return"";let u=n.children.filter(s=>s.animate&&(s.animate.isShow||s.animate.isShow==1));return u&&u.length>0&&u.forEach(s=>{if(s.key==="background"||s.key==="color"||s.key==="image"){let i=s.animate.data,g=s.animate.mpType,p=null;if(g==="NumericToSimple"){let f=i.find(v=>j(s,v.min,v.max));f?p=f:s.key==="image"?p={value:s.animate.default,valueUrl:s.animate.defaultVal}:p={value:s.animate.default}}else g==="BooleanToSimple"&&(p=i.find(f=>f.key===s.realValue));p&&(l[s.key]=p.value,s.key==="image"&&(l.imgUrl=`${p.valueUrl}`))}}),l}e.batchUpdateCells=l=>{const n=e.graph,c=e.undoMng;let u=n.getModel();if(!c){u.beginUpdate();try{l.forEach(i=>{if(u.setValue(i,i.value),i.value.style){let g={};if(i.type==="rect"){const p=I(i.value.style,i.value.data);g=K(i,p)}else if(i.type==="edge"){const p=I(i.value.style,i.value.data);e.firstFlag=!0,g=Z(i,p)}else i.type==="kitUI:CanvasWidget"?(g=I(realStyle,i.value.data),e.changePageSize(realStyle)):g=I(i.value.style,i.value.data);u.setStyle(i,g)}})}finally{u.endUpdate()}n.refresh();return}const s=c.undoableEditHappened;try{c.undoableEditHappened=function(){},u.beginUpdate();try{l.forEach(i=>{if(u.setValue(i,i.value),i.value.style){let g={};if(i.type==="rect"){const p=I(i.value.style,i.value.data);g=K(i,p)}else if(i.type==="edge"){const p=I(i.value.style,i.value.data);e.firstFlag=!0,g=Z(i,p)}else i.type==="kitUI:CanvasWidget"?(g=I(realStyle,i.value.data),e.changePageSize(realStyle)):g=I(i.value.style,i.value.data);u.setStyle(i,g)}})}finally{u.endUpdate()}}finally{c.undoableEditHappened=s}},e.updateCell=(l,n)=>{let c=e.graph;const u=c.getModel();u.beginUpdate();try{let s=l.value.style;if(n&&n.layout&&Object.keys(n.layout).length>0){const g=n.layout;if(g){let p=l.geometry;p!=null&&(p=p.clone(),p.x=g.x,p.y=g.y,p.width=g.width,p.height=g.height,u.setGeometry(l,p))}}u.setValue(l,l.value);let i="";l.type==="rect"?i=K(l,n):l.type==="edge"?(e.firstFlag=!0,i=Z(l,n)):l.type==="kitUI:CanvasWidget"?(i=I(s,l.value.data),e.changePageSize(s)):i=I(s,l.value.data),Je(e.graph,l,i)}finally{u.endUpdate()}c.refresh()};function Z(l,n){let c=e.graph,u="",s=l.style||"";if(s){const g={...ee(s),...n};u=F(g,!0),l.value.style=g,l.setStyle(u),I(l.value.style,l.value.data),c.refresh(l)}return u}function K(l,n){let c="",u=l.style||"";if(u){let s=ee(u);s.shape=s.shape,s.perimeter=s.perimeter,n.background.indexOf("/files")>-1&&(n.background=""),Number(n.borderValue)===0&&(n.stroke="transparent"),c=`shape=${s.shape};perimeter=${s.perimeter};fillColor=${n.background||"#D1E7FF"};strokeColor=${n.stroke||"#000000"};strokeWidth=${n.borderValue||0}`,s.direction&&(c+=`;direction=${s.direction}`);const i={...s,...n};l.value.style=i,I(l.value.style,l.value.data)}return c}function ee(l){const n={};return l.split(";").filter(u=>u.trim()!=="").forEach(u=>{const[s,i]=u.split("=");s&&i!==void 0&&(n[s.trim()]=i.trim())}),n}function ne(l){e.addImgVertex(l)}e.addImgVertex=l=>{let n=e.graph;const c=n.getModel();let u=n.getDefaultParent(),s=[];c.beginUpdate();try{l.forEach(i=>{const{evt:g=null,data:p={},pt:f={x:50,y:50},w:v=48,h:A=48,style:w={},displayName:z="",imgUrl:N="",iconName:M="icon-Imagefile",realWh:O={}}=i;let U=f,L=e.graph;g&&(U=L.getPointForEvent(g));let V=L.insertVertex(u,null,i.show?i.name:"",U.x,U.y,v,A);V.type="img",V.model="yes",V.imgUrl=i.imgUrl,V.iconName=M,V.value={data:p,style:w,name:i?i.displayName:i.getAttribute("label"),realWh:O},s.push(V)}),n.setSelectionCells(s)}finally{c.endUpdate()}};function oe(l,n){const u=l.getStylesheet().getDefaultVertexStyle();Object.assign(u,{fillColor:"transparent",strokeColor:"transparent",strokeWidth:0,fontColor:"#333333",fontSize:12})}e.createAllVertex=(l,n)=>{l==="vertex"?ra(n):l==="custom"?se(n):l==="edge"?re(n):l==="img"&&ne(n)};function re(l){e.firstFlag=!0;const n=mxGraph.prototype.insertEdge;mxGraph.prototype.insertEdge=function(g,p,f,v,A,w){return w===null&&(w=""),n.apply(this,arguments)};let c=e.graph,u=c.getDefaultParent(),s=c.getModel(),i=[];s.beginUpdate();try{for(let g=0;g<l.length;g++){const p=l[g],{evt:f=null,data:v=null,pt:A={x:50,y:50},style:w,w:z=30,h:N=100,iconName:M="icon-general-icon"}=p;let O=A;f&&(O=c.getPointForEvent(f));let U=ae(),L=c.insertEdge(u,null,"",null,null,w.perimeter+`;strokeWidth=${w.strokeWidth||1};strokeColor=${w.strokeColor||"#333333"}`);L.id=U;let V=new mxGeometry,{startX:W,startY:R,endX:Y,endY:G}=Ne(O,z,N);V.setTerminalPoint(new mxPoint(W,R),!0),V.setTerminalPoint(new mxPoint(Y,G),!1),L.setGeometry(V),L.model="yes",L.type="edge",L.iconName=M,L.value={data:{...v},style:{...w}},c.setSelectionCell(L),c.fireEvent(new mxEventObject(mxEvent.SELECTION_CHANGED,{cells:[L]})),c.refresh(L),i.push(L),e.firstStyle=!0}c.setSelectionCells(i)}finally{s.endUpdate()}}function se(l){let n=e.graph,c=n.getModel(),u=[];c.beginUpdate();try{for(let s=0;s<l.length;s++){const i=l[s],{evt:g=null,data:p=null,pt:f={x:50,y:50},style:v,w:A=100,h:w=30,type:z,tmpType:N,codeType:M,iconName:O="icon-general-icon",realType:U}=i;let L=A,V=w,W=f;g&&(W=n.getPointForEvent(g)),v.layout&&(L=v.layout.width,V=v.layout.height);let R={width:L,height:V,x:W.x,y:W.y},Y=p.children;if(Y&&Y.length>0){let ie=Y.find(Q=>Q.key=="layout");ie.value=R}v.layout=R;let G=n.getDefaultParent();oe(n,null);let $=F(v),te=ae(),_=n.insertVertex(G,te,v.text||"",W.x,W.y,L,V,$);_.crtype="creatComp",_.cmp=N,_.codeType=M,_.type=z,_.realType=U,_.model="yes",_.name=v.text||"",_.iconName=O,_.style=$,_.value={data:p,style:v},n.fireEvent(new mxEventObject(mxEvent.SELECTION_CHANGED,{cells:[_]})),u.push(_)}n.setSelectionCells(u)}finally{c.endUpdate()}}function ra(l){let n=e.graph,c=n.getModel(),u=[];c.beginUpdate();try{for(let s=0;s<l.length;s++){const i=l[s],{evt:g=null,data:p=null,pt:f={x:50,y:50},style:v,w:A=100,h:w=20,iconName:z="iconfont icon-general-icon",realType:N,from:M}=i;let O=f;n||(n=e.graph),g&&(O=n.getPointForEvent(g));let U=n.getDefaultParent(),L=n.getModel(),V={width:A,height:w,x:O.x,y:O.y},W=p.children;if(W&&W.length>0){let $=W.find(te=>te.key=="layout");$.value=V}let R=F(v);v.gtype=="rect"&&(Number(v.borderValue)===0&&(v.stroke="transparent"),R=v.perimeter+`;fillColor=${v.background||"transparent"};strokeColor=${v.stroke||"#333333"};strokeWidth=${v.borderWidth||0}`);let Y=ae(),G=n.insertVertex(U,Y,v.text||"",O.x,O.y,A,w,R);v.gtype=="rect"?G.type="rect":G.type="vertex",G.model="yes",G.name=v.text||"",G.iconName=z,G.value={data:{...p},style:{...v}},G.from=M||"other",G.realType=N,G.style=R,u.push(G),n.fireEvent(new mxEventObject(mxEvent.SELECTION_CHANGED,{cells:[G]}))}n.setSelectionCells(u)}finally{c.endUpdate()}}e.addVertex=({graph:l,options:n={}})=>new Promise((c,u)=>{const{evt:s=null,data:i=null,pt:g={x:50,y:50},style:p,w:f=100,h:v=20,iconName:A="iconfont icon-general-icon",realType:w,from:z}=n;let N=g;l||(l=e.graph),s&&(N=l.getPointForEvent(s));let M=l.getDefaultParent(),O=l.getModel(),U={width:f,height:v,x:N.x,y:N.y},L=i.children;if(L&&L.length>0){let V=L.find(W=>W.key=="layout");V.value=U}O.beginUpdate();try{let V=F(p);p.gtype=="rect"&&(Number(p.borderValue)===0&&(p.stroke="transparent"),V=p.perimeter+`;fillColor=${p.background||"transparent"};strokeColor=${p.stroke||"#333333"};strokeWidth=${p.borderWidth||0}`);let W=ae(),R=l.insertVertex(M,W,p.text||"",N.x,N.y,f,v,V);p.gtype=="rect"?R.type="rect":R.type="vertex",R.model="yes",R.name=p.text||"",R.iconName=A,R.value={data:{...i},style:{...p}},R.from=z||"other",R.realType=w,R.style=V,l.setSelectionCell(R),l.fireEvent(new mxEventObject(mxEvent.SELECTION_CHANGED,{cells:[R]})),c(R)}finally{O.endUpdate()}});function Ne(l,n,c){const s=-10*Math.PI/180,i=Math.cos(s),g=Math.sin(s),p=c/2,f=n/2,A=[{x:-p,y:-f},{x:p,y:-f},{x:p,y:f},{x:-p,y:f}].map(N=>{const M=l.x+(N.x*i-N.y*g),O=l.y+(N.x*g+N.y*i);return{x:M.toFixed(0),y:O.toFixed(0)}}),w=A[3],z=A[1];return{startX:parseFloat(w.x),startY:parseFloat(w.y),endX:parseFloat(z.x),endY:parseFloat(z.y)}}e.addEdge=({graph:l,options:n={}})=>{e.firstFlag=!0;const c=mxGraph.prototype.insertEdge;return mxGraph.prototype.insertEdge=function(u,s,i,g,p,f){return f===null&&(f=""),c.apply(this,arguments)},new Promise((u,s)=>{const{evt:i=null,data:g=null,pt:p={x:50,y:50},style:f,w:v=30,h:A=100,iconName:w="icon-general-icon"}=n;let z=p;l||(l=e.graph),i&&(z=l.getPointForEvent(i));let N=l.getDefaultParent(),M=l.getModel();M.beginUpdate();try{let O=ae(),U=l.insertEdge(N,null,"",null,null,f.perimeter+`;strokeWidth=${f.strokeWidth||1};strokeColor=${f.strokeColor||"#333333"}`);U.id=O;let L=new mxGeometry,{startX:V,startY:W,endX:R,endY:Y}=Ne(z,v,A);L.setTerminalPoint(new mxPoint(V,W),!0),L.setTerminalPoint(new mxPoint(R,Y),!1),U.setGeometry(L),U.model="yes",U.type="edge",U.iconName=w,U.value={data:{...g},style:{...f}},l.setSelectionCell(U),l.fireEvent(new mxEventObject(mxEvent.SELECTION_CHANGED,{cells:[U]})),l.refresh(U),e.firstStyle=!0,u(U)}finally{M.endUpdate()}})},e.createCustomComponent=({graph:l,options:n={}})=>new Promise((c,u)=>{const{evt:s=null,data:i=null,pt:g={x:50,y:50},id:p=null,style:f,w:v=100,h:A=30,type:w,tmpType:z,codeType:N,crtype:M="creatComp",other:O={},iconName:U="icon-general-icon",realType:L}=n;let V=v,W=A,R=g;l||(l=e.graph),s&&(R=l.getPointForEvent(s)),f.layout&&(V=f.layout.width,W=f.layout.height);let Y={width:V,height:W,x:R.x,y:R.y},G=i.children;if(G&&G.length>0){let _=G.find(ie=>ie.key=="layout");_.value=Y}f.layout=Y;let $=l.getDefaultParent(),te=l.getModel();oe(l),te.beginUpdate();try{let _=F(f),ie=p||ae(),Q=l.insertVertex($,ie,f.text||"",R.x,R.y,V,W,_);Q.crtype=M||"creatComp",Q.other=O,Q.cmp=z,Q.codeType=N,Q.type=w,Q.realType=L,Q.model="yes",Q.name=f.text||"",Q.iconName=U,Q.style=_,Q.value={data:i,style:f},l.setSelectionCell(Q),l.fireEvent(new mxEventObject(mxEvent.SELECTION_CHANGED,{cells:[Q]})),c(Q)}finally{te.endUpdate()}}),e.loadJson=()=>$e(e.graph),e.loadJsonToView=l=>{let n=tt(l);n&&B(n)},e.fromXmlToView=l=>{let n=e.graph;return new Promise((c,u)=>{let s=new mxFastOrganicLayout(n);s.forceConstant=140;const i=n.getStylesheet().getDefaultVertexStyle();i.fill="none",i[mxConstants.STYLE_STROKE]="none",n.getModel().beginUpdate();try{l&&B(l)}finally{n.getModel().endUpdate(),c()}})},e.main=l=>{let{container:n,xml:c}=l;return new Promise((u,s)=>{if(!mxClient.isBrowserSupported())mxUtils.error("Browser is not supported!",200,!1);else{let i=new mxEditor,g=i.graph;i.setGraphContainer(n),g.setEnabled(!1),g.setPanning(!1),g.setTooltips(!1),g.setHtmlLabels(!0),g.panningHandler.useLeftButtonForPanning=!0,g.isHtmlLabel=function(v){return!0},g.gridSize=10,e.graph=g,e.preview=!0;const f=g.getStylesheet().getDefaultVertexStyle();Object.assign(f,{fillColor:"transparent",strokeColor:"transparent",strokeWidth:0,fontColor:"#333333",fontSize:12}),g.convertValueToString=function(v){let{width:A,height:w}=v.geometry;if(v.type=="vertex"){let{url:z,pup:N}=de(v),M=v.value.style,O=v.value.data.children,U={};O&&(U=O.find(V=>V.key==="text"));let L=document.createElement("div");return L.innerHTML=D({img:(M==null?void 0:M.imgUrl)||"",text:U.value||M.text}),L.style=P(M),L.style.width=A+"px",L.style.height=w+"px",L.style.lineHeight=w+"px",z?(L.style.cursor="pointer",L.className="main-text hyperlink-btn",v.hyperlink=z):L.className="main-text",N&&(v.popup=N),L}else if(v.type=="kitUI:CanvasWidget"){let{width:z,height:N}=v.geometry,M=document.createElement("div");if(M.style.width=z+"px",M.style.height=N+"px",v.value){let O=v.value.style;O["background-image"]?M.style.background=`${O["background-image"]} center center no-repeat`:M.style.background=""}return M}else if(v.type=="img"){let z=document.createElement("div");return z.innerHTML=D({img:v.imgUrl||""}),z.style.width=A+"px",z.style.height=w+"px",z.className="main-img",z}return v.value},g.setPanning(!1),g.view.animate=!1,g.gridEnabled=!1,Ie(g),u(g)}})};function de(l){let n=l.value.data;if(n){let c=n.treeData||[],u=[],s=[];return c.forEach(i=>{let g=i.children||[],p=g.find(f=>f.key=="hyperlink"&&f.value!="null");p&&u.push(p),i.title=="PopupBinding"&&s.push(g)}),{url:u&&u.length>0?u[0].value:"",pup:s}}return null}e.addMask=(l,n,c,u,s)=>{let i=a(l.container,"transparentRect");if(i&&i.length>0)for(let g=0;g<i.length;g++){let p=i[g];p&&(p.style.top=c+"px",p.style.left=n+"px",p.style.width=u+"px",p.style.height=s+"px",p.style.zIndex="20",e.preview||(p.classList.remove("is-block"),p.classList.add("is-hidden")))}},e.initCanvas=l=>{const n=e.graph;return new Promise((c,u)=>{let s=n.getModel();const i=n.getDefaultParent();s.beginUpdate();try{const g=n.insertVertex(i,null,"",0,0,l?l.width:1e3,l?l.height:800,"transparent-node;fillColor=transparent;strokeColor=transparent;strokeWidth=0;consumeEvents=false;pointer-events:none;editable=0;selectable=0;clipping=1;order=999999;resizable=0");g.type="kitUI:CanvasWidget",g.resizable=!1,g.movable=!1,g.deletable=!1,g.selection=!1,g.value={style:{background:null,height:"800",horizontalAlign:"center",scrollBar:"hidden",verticalAlign:"center",viewSize:"1000,800",width:"1000"}},n.constrainChildren=!0,n.setCellsResizable(!1,[g]),g.collapsible=!1,g.automaticResize=!1,g.editable=!1,e.parent||(e.parent=g),n.refresh(g),setTimeout(()=>{e.changePageSize(l),e.undoMng&&e.clearUndo()},10),c()}finally{s.endUpdate()}})},e.changeRotationHandleStyle=l=>{mxGraphHandler.prototype.maxCells=mxClient.IS_IE?20:9999,mxConstants.GUIDELINE_WIDTH=1,mxConstants.VERTEX_SELECTION_DASHED=!1,mxConstants.HANDLE_SIZE=6,mxConstants.HANDLE_FILLCOLOR="#FD6902",mxConstants.HANDLE_STROKECOLOR="#FD6902",mxConstants.STYLE_SELECTION_STROKEWIDTH=2},e.testPosition=()=>{let l=e.graph,n=null,c=e.parent;c&&(n=c.value?c.value.style:null);let{x:u,y:s}=me(n,l.container),i=u,g=s;n.horizontalAlign==="end"&&(i=u-2),n.verticalAlign==="end"&&(g=s-2),e.addMask(l,i,g,n.width,n.height),l.getView().setTranslate(i,g)},e.getTranslate=l=>{let n=e.graph;const c=l.value?l.value.style:null;let{x:u,y:s}=me(c,n.container);return{x:u,y:s}},e.getFloatingPosition=l=>{let n=e.graph;if(!l){let i=n.getModel().cells;l=Object.values(i)}let c=l.filter(i=>i.crtype=="schedule"),u=l.find(i=>i.type=="kitUI:CanvasWidget");if(u){let{x:i,y:g}=e.getTranslate(u);i=i<0?0:i,g=g<0?0:g;for(let p=0;p<c.length;p++){let f=c[p];if(e.isPreview){let v=document.getElementsByClassName(f.id);for(let A=0;A<v.length;A++){const w=v[A];if(w){var s=f.getGeometry();w.style.position="absolute",w.style.width=s.width+"px",w.style.height=s.height+"px",w.style.left=s.x+i+"px",w.style.top=s.y+g+"px"}}}}}e.isPreview||c.forEach(i=>{n.getModel().setVisible(i,!0)})},e.changePageSize=l=>{if(!l){let n=e.parent;n&&(l=n.value?n.value.style:null)}if(l){let n=e.graph,c=n.getModel();c.beginUpdate();try{const u=e.parent;if(u){let s=n.getCellGeometry(u);if(s){let{x:i,y:g}=me(l,n.container);s.width=l.width,s.height=l.height,c.setGeometry(u,s);let p=n.container.querySelector("canvas");if(l.background)if(l.background.indexOf("files/")>-1){p&&(l["background-image"]?p.style.background=`${l["background-image"]} center center no-repeat`:p.style.background=l.background),n.container.parentElement.style.background="transparent";let A=document.querySelectorAll(".transparentRect");if(A){let w=(n.container.clientWidth-l.width)/2;A.forEach(z=>{z.style.boxShadow=`0 0 0 ${w}px #fff`})}}else{p&&(p.style.background="transparent"),l.fillColor=l.background,n.container.parentElement.style.background=l.background;let A=a(n.container,"transparentRect");if(A){let w=(n.container.clientWidth-l.width)/2;A.forEach(z=>{z.style.boxShadow=`0 0 0 ${w}px `+(l.background=="transparent"?"#fff":l.background)})}}else p&&(p.style.background="transparent");let f=i,v=g;l.horizontalAlign==="end"&&(f=i-2),l.verticalAlign==="end"&&(v=g-2),e.addMask(n,f,v,l.width,l.height),n.getView().setTranslate(f,v)}n.scrollCellToVisible(u,!1),e.parent=u,n.refresh(u)}c.setBounds=function(s){return new mxRectangle(0,0,l.width,l.height)}}finally{c.endUpdate(),E(n)}}};function Ie(l){l.addListener(mxEvent.CLICK,function(n,c){l.container.focus();const s=c.getProperty("cell");if(s)return t.handelEvent({key:"click",evt:c,val:s}),!1})}function sa(l){l.dblClick=function(n,c){if(!e.preview){if(c||(c=e.parent),c){let u=l.getModel();if(u.isVertex(c)||u.isEdge(c))return t.handelEvent({key:"db",evt:n,val:c}),!1}return!1}}}function da(l,n,c){let u=l.getModel(),s=function(i,g){n.undoableEditHappened(g.getProperty("edit"))};u.addListener(mxEvent.UNDO,s),l.getView().addListener(mxEvent.UNDO,s)}e.addCode=({code:l,pt:n,style:c,type:u,iconCls:s})=>{let i=e.graph;Ce(l,i,{pt:n,style:c,me:e,type:u,iconCls:s},t)},e.addEvent=({code:l,pt:n,style:c,type:u,iconCls:s})=>{let i=e.graph;Ce(l,i,{pt:n,style:c,me:e,type:u,iconCls:s},t)};function ca(l){l.addListener(mxEvent.RESIZE_CELLS,function(n,c){const u=c.getProperty("cells"),s=c.getProperty("bounds"),i=c.getProperty("previous"),g=l.getSelectionCells();u.forEach(p=>{if(l.getChildCells(p),l.getCellGeometry(p)){const v=parseFloat(s[0].width/i[0].width),A=parseFloat(s[0].height/i[0].height);g.forEach(w=>{if(w.id!=p.id){const N=l.getCellGeometry(w).clone();N.width*=v,N.height*=A,l.getModel().setGeometry(w,N)}})}}),setTimeout(()=>{l.setSelectionCells(g)},10),l.fireEvent(new mxEventObject(mxEvent.SELECTION_CHANGED,{cells:g}))})}function ua(l,n){mxEvent.addMouseWheelListener(function(c,u){e.preview||mxEvent.isConsumed(c)||c.ctrlKey&&(c.ctrlKey&&pa(c,l,u),e.changePageSize(),t.handelEvent({key:"wheel"}))},n)}function pa(l,n,c){mxEvent.consume(l);const u=n.getView().getScale(),s=c?1.1:1/1.1,i=u*s;if(i>3||i<.1)return;const g=n.container,p=g.offsetWidth,f=g.offsetHeight,v=p/2,A=f/2;n.getModel().beginUpdate();try{const w=n.getView(),z=w.getScale(),N=w.getTranslate(),M=v/z-N.x,O=A/z-N.y;n.getView().setScale(i);const U=v/i-N.x,L=A/i-N.y,V=U-M,W=L-O;w.setTranslate(w.getTranslate().x+V,w.getTranslate().y+W)}finally{n.getModel().endUpdate()}}function ma(l,n){n.popupMenuHandler.autoExpand=!0,n.popupMenuHandler.factoryMethod=function(c,u,s){if(e.preview)return;let i=mxClipboard.cells;if(!u)return;let g=[];u&&u.type!="kitUI:CanvasWidget"?(g=["new"],i||g.push("paste"),n.getSelectionCells().length<2&&g.push("order")):(g=["copy","cut","clone","del","order","toUp","toDown"],i||g.push("paste")),je(l,g).forEach(f=>{let v=null,A=null;f.children&&f.children.length>0?(v=null,A=f.children):v=function(){if(f.code){let z=n.getPointForEvent(s);t.contextmenus(s,{title:f.title,code:f.code||"",type:f.type,style:f.style,iconCls:f.iconCls,pt:z})}};let w=c.addItem(f.title,f.image,v,null,f.iconCls,f.disable,null,null,f.isBorder);A&&A.forEach(z=>{c.addItem(z.title,z.image,function(){if(z.code){let N=n.getPointForEvent(s);t.contextmenus(s,{title:z.title,code:z.code||"",type:z.type,style:z.style,iconCls:z.iconCls,pt:N})}},w,z.iconCls,z.disable,null,null,z.isBorder)})})}}}/*!
27
27
  * vue-router v4.6.4
28
28
  * (c) 2025 Eduardo San Martin Morote
29
29
  * @license MIT
@@ -31,4 +31,4 @@
31
31
  * vue-router v4.6.4
32
32
  * (c) 2025 Eduardo San Martin Morote
33
33
  * @license MIT
34
- */function Be(){return r.inject(Qt)}const De={init(t){let e=["/js/mxClient.js"];return new Promise(a=>{const d=document.getElementsByTagName("script");let o=!1;for(let b=0;b<d.length;b++)d[b].src.includes("mxClient.js")&&(o=!0);if(o)return a();let h=e.map(b=>{let S=document.createElement("script");return S.type="text/javascript",S.async=!1,S.src=b,document.head.appendChild(S),S}).pop();h.onload=a})}},Te=[{title:"新建",image:null,code:"new",iconCls:"iconfont icon-new",isBorder:!0,children:[{iconClass:"",code:"add",iconCls:"iconfont icon-binding-label",title:"标签",name:"grNewLabel",canNotUse:!1,type:"kitUI:BoundLabelWidget",style:"",child:!0},{iconClass:"",code:"add",iconCls:"iconfont icon-Imagefile",title:"图片",name:"grNewImg",canNotUse:!1,type:"kitUI:PictureWidget",style:"",child:!0},{code:"add",title:"矩形",image:null,iconCls:"iconfont icon-rectangle",type:"kitUI:ShapeRectWidget"},{code:"add",image:null,iconCls:"iconfont icon-rotundity",title:"圆形",type:"kitUI:ShapeCircleWidget"},{code:"add",iconCls:"iconfont icon-triangle",image:null,title:"等腰三角形",type:"kitUI:ShapeTriangleWidget"},{code:"add",iconCls:"iconfont icon-lingxing1",title:"棱形",disable:!1,type:"shape:Polygon"},{code:"add",iconCls:"iconfont icon-duobianxing-01",title:"正五边形",disable:!1,type:"shape:Pentagon"},{code:"add",iconCls:"iconfont icon-ziyuan",title:"正六边形",disable:!1,type:"shape:Hexagon"},{code:"add",iconCls:"iconfont icon-duobianxing",title:"任意多边形",disable:!1,type:"shape:Polygons"}]},{title:"复制",image:null,code:"copy",iconCls:"iconfont icon-copy"},{title:"克隆",image:null,code:"clone",iconCls:"iconfont icon-clone"},{title:"剪切",image:null,code:"cut",iconCls:"iconfont icon-cut"},{title:"粘贴",image:null,code:"paste",iconCls:"iconfont icon-paste"},{title:"删除",code:"del",image:null,iconCls:"iconfont icon-delete",isBorder:!0},{title:"排列",code:"order",image:null,iconCls:"iconfont icon-arrange",isBorder:!0,children:[{iconClass:"",code:"alignLeft",iconCls:"iconfont icon-left-align",title:"左对齐",name:"grNewLabel",canNotUse:!1,type:"kitUI:BoundLabelWidget",child:!0},{iconClass:"",code:"alignCenterHorizontal",iconCls:"iconfont icon-horizontal-center",title:"水平居中",name:"grNewLabel",canNotUse:!1,type:"kitUI:BoundLabelWidget",child:!0},{iconClass:"",code:"alignRight",iconCls:"iconfont icon-right-align",title:"右对齐",name:"grNewLabel",canNotUse:!1,type:"kitUI:BoundLabelWidget",child:!0},{iconClass:"",code:"alignCellsTop",iconCls:"iconfont icon-top-align",title:"顶端对齐",name:"grNewLabel",canNotUse:!1,type:"kitUI:BoundLabelWidget",child:!0},{iconClass:"",code:"alignCenterVertical",iconCls:"iconfont icon-vertical-center",title:"垂直居中",name:"grNewLabel",canNotUse:!1,type:"kitUI:BoundLabelWidget",child:!0},{iconClass:"",code:"alignCellsBottom",iconCls:"iconfont icon-bottom-align",title:"底端对齐",name:"grNewLabel",canNotUse:!1,type:"kitUI:BoundLabelWidget",child:!0}]},{title:"图层",code:"view",image:null,iconCls:"iconfont icon-view",isBorder:!0,children:[{title:"置顶",code:"toUp",image:null,iconCls:"iconfont icon-top"},{title:"置底",code:"toDown",image:null,iconCls:"iconfont icon-bottom",isBorder:!0},{title:"上一层",code:"upOne",image:null,iconCls:"iconfont icon-top"},{title:"下一层",code:"downOne",image:null,iconCls:"iconfont icon-bottom",isBorder:!0}]},{title:"编辑",code:"edit",image:null,disable:!0,iconCls:"iconfont icon-edit"}],Xt={components:{},props:{menus:{type:Array,default:Te},isShow:{type:Boolean,default:!1},isPreview:{type:Boolean,default:!1},currentIndex:{type:Number,default:0}},data(){return{graph:null,yhz:null,cell:null,loadCells:null,scale:1,pageShortcuts:!1,timeLineMap:[],updateRaf:null,keys:Math.random().toString(36).substring(2),compMap:[],pupAry:[],resizeObserver:null,isShowPup:!1,wndAry:[],thisObj:new Map,centeredWindow:[]}},watch:{isPreview:{handler(t,e){let a=this;a.yhz&&(a.yhz.isPreview(!t),a.$nextTick(()=>{t?(a.keys=Math.random().toString(36).substring(2),a.graph.refresh(),a.scheduleUpdateOverlay()):a.centeredWindow&&a.centeredWindow.forEach(o=>{o&&(o.setVisible(!1),o.destroy())})}))},immediate:!0,deep:!0}},methods:{getStyle(t){let e=this,d=t.cell.style||{};return e.yhz.scheduleBorder(d)},handleshowAndHide(t,e){},dynamicComponent(t){return this.compMap.get(t)},scheduleUpdateOverlay(){let t=this;this.updateRaf&&cancelAnimationFrame(this.updateRaf),this.updateRaf=requestAnimationFrame(()=>{t.$nextTick(()=>{var a=t.graph.getModel().cells,d=Object.values(a);let o=d.filter(m=>m.crtype=="schedule");for(let m=0;m<o.length;m++){let h=o[m];t.graph.view.validateCell(h)}}),this.$forceUpdate(),this.updateRaf=null})},async addTimeLine({cellAry:t,scheduleCombination:e}){let a=this;a.$nextTick(()=>{for(let d=0;d<t.length;d++){let o=t[d],m={id:o.id,cell:o,other:o.other,compId:o.id,show:!0};a.timeLineMap.push(m),a.thisObj.set(o.id,e)}a.compMap=Object.freeze(a.thisObj),this.$forceUpdate()})},removeKeyUpDown(){let t=this;t.yhz&&t.yhz.removeKeyUpDown()},keyUpdownEvent(){let t=this;t.yhz&&(t.yhz.keyUpdownEvent(),console.log("绑定键盘事件"))},addCode(t){let e=this;e.yhz&&e.yhz.addCode({code:t})},setPageShortcuts(t){let e=this;e.yhz&&(e.yhz.setPageShortcuts(t),e.pageShortcuts=t)},setIsPreview(t){let e=this;e.yhz&&(e.onResize(),e.yhz.isPreview(t))},clearUndo(){let t=this;if(t.yhz)return t.yhz.clearUndo()},zoomHome(){let t=this;t.graph.zoomTo(1),t.yhz.changePageSize()},redo(){let t=this;if(t.yhz)return t.handelEvent({key:"unre"}),t.yhz.redo()},undo(){let t=this;if(t.yhz)return t.handelEvent({key:"unre"}),t.yhz.undo()},canRedo(){let t=this;return t.yhz?t.yhz.canRedo():!1},canUndo(){let t=this;return t.yhz?t.yhz.canUndo():!1},view(){let t=this,e=this.cell,a={background:"#000",color:"#fff",border:"1px solid #fff"};t.yhz.updateCell(e,a)},changeSize(t){this.yhz.changePageSize(t)},preview(){Be().push({path:"/preview"})},contextmenus(t,e){e&&(this.yhz.addEvent(e),t.preventDefault(),t.stopPropagation())},changeTimeLineShow(){let t=this,e=[],a=t.graph.getModel();Object.values(a.cells).forEach(o=>{e.push(o.id)}),t.timeLineMap=t.timeLineMap.filter(o=>e.includes(o.id))},handelEvent(t){let e=this;e.cell=t.val,t.key=="delete"&&e.changeTimeLineShow(),e.$emit("handelEvent",t)},loadJson(){this.yhz.loadJson()},async loadXml(t,e){let a=this;t?a.yhz.fromXmlToView(t):a.yhz.initCanvas(null,a.$refs.transparentRectRef)},async init(){let t=this,e=t.$refs.geEditor;const a=new Ee(t);if(!t.graph){let d=await a.init({container:e,menus:t.menus,pageShortcuts:t.pageShortcuts});t.graph=d,t.delCell(d),t.yhz=a,t.$emit("handelEvent",{key:"init",mygraph:d,yhz:a}),setTimeout(()=>{a.isPreview(!t.isPreview)},0)}},delCell(t){let e=this;t.addListener(mxEvent.DELETE_CELLS,(a,d)=>{const o=d.properties.cells;let m=[];o&&o.length>0&&(o.forEach(h=>{m.push(h.id)}),e.timeLineMap.forEach(h=>{m.includes(h.id)&&(h.show=!1)}))})},onResize(){let t=this;t.yhz&&(t.yhz.changePageSize(),t.yhz.getFloatingPosition())},clearCanvas(){let t=this;t.yhz&&t.yhz.clearCanvas()},openPupop(t,e=!0){let a=this;if(a.pupAry=t,t&&t.length>0){a.centeredWindow&&a.centeredWindow.forEach(m=>{m&&(m.setVisible(!1),m.destroy())});let d=[];t.forEach((o,m)=>{var h=document.createElement("div");if(o.type==="img"){h.style.overflow="auto",h.style.width="100%",h.style.height="100%",h.style.display="flex",h.style.justifyContent="center",h.style.alignItems="center";var b=document.createElement("img");b.src=o.path,h.appendChild(b)}else if(o.type==="time"){let{el:P}=o.vnode;h.style.overflow="auto",h.style.width="100%",h.style.height="100%",h.appendChild(P)}else{h.style.overflow="auto",h.style.width="100%",h.style.height="100%",h.style.display="flex",h.style.justifyContent="center",h.style.alignItems="center";var S=o.pathHtml;h.appendChild(S)}let x=0,y=0;if(o.isCenter=="false")x=o.left,y=o.top;else{var C=document.getElementById("app"),D=C.clientWidth,E=C.clientHeight;x=(D-o.width)/2,y=(E-o.height)/2}var B=document.createElement("div");let k=document.querySelectorAll(".mx-window-mask");var T=new mxWindow(o.title,h,x,y,o.width,o.height,!1,!0,"mxWindowTitle");T.setClosable(!0),T.setMaximizable(!0),T.setScrollable(!0),T.setResizable(!0),T.setVisible(e),T.constrainWithinViewport=!0,T.addListener(mxEvent.CLOSE,function(P,F){a.isShowPup=!1,document.body.removeChild(B),B.style.display="none"}),T.addListener(mxEvent.MOVE,function(P,F){var G=T.getX(),j=T.getY(),I=T.getElement().offsetWidth,Z=T.getElement().offsetHeight,K=document.documentElement.clientWidth,ee=document.documentElement.clientHeight,ne=0,oe=0,re=K-I,se=ee-Z;G=Math.max(ne,Math.min(G,re)),j=Math.max(oe,Math.min(j,se)),T.setLocation(G,j)}),T.div&&k.length===0&&(T.div.style.zIndex=2e3+m,B.className="mx-window-mask",B.style.zIndex=30+m,document.body.appendChild(B),B.style.display="block"),d.push(T)}),a.centeredWindow=d,a.wndAry=d}},getWindowInfo(){let t=this,e=t.wndAry;e&&e.length>0&&e.forEach((a,d)=>{if(a){let o=t.pupAry[d];o&&t.openPupop([o],a.isVisible())}})},debounce(t,e=200){let a=null;return function(...d){clearTimeout(a),a=setTimeout(()=>{t.apply(this,d)},e)}},debouncedScroll(t){let e=this;if(e.graph){var a=e.graph.container;a.addEventListener("scroll",function(){console.log("元素滚动:",a.scrollTop,a.scrollLeft)})}}},mounted(){let t=this,e=t.$refs.geEditor;De.init().then(()=>{t.init()}),t.resizeObserver=new ResizeObserver(a=>{t.onResize(null)}),t.resizeObserver.observe(e),window.addEventListener("resize",t.getWindowInfo)},unmounted(){let t=this;t.resizeObserver&&t.resizeObserver.disconnect(),t.isShowPup=!1,t.centeredWindow&&t.centeredWindow.forEach(a=>{a&&(a.setVisible(!1),a.destroy())}),window.removeEventListener("resize",t.getWindowInfo)}},Zt=["id"],Jt={key:0,class:"transparentRect"},qt=["id"];function Kt(t,e,a,d,o,m){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["main-gd",{"show-scroll":a.isPreview}]),ref:"mainGd"},[r.createElementVNode("div",{class:r.normalizeClass(["main-body",{"hidden-scroll":a.isPreview}]),ref:"geEditor",id:a.currentIndex},null,10,Zt),a.isShow?(r.openBlock(),r.createElementBlock("div",Jt)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.timeLineMap,(h,b)=>r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:h.id+o.keys,id:h.id,style:r.normalizeStyle([{position:"absolute"},m.getStyle(h)]),class:r.normalizeClass(h.id)},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(m.dynamicComponent(h.compId)),{id:h.other.timeId+"",thisTab:h.other.thisTab},null,8,["id","thisTab"]))],14,qt)),[[r.vShow,o.timeLineMap.length>0&&a.isPreview]])),128))],2)}const $t=q(Xt,[["render",Kt]]),ea={components:{},props:{menus:{type:Array,default:Te},isShow:{type:Boolean,default:!1},isPreview:{type:Boolean,default:!0},currentIndex:{type:Number,default:0}},data(){return{graph:null,yhz:null,cell:null,loadCells:null,scale:1,pageShortcuts:!1,timeLineMap:[],compMap:[],pupAry:[],resizeObserver:null,isShowPup:!1}},watch:{isPreview:{handler(t,e){let a=this;a.yhz&&(a.yhz.isPreview(!t),a.$nextTick(()=>{t?(a.keys=Math.random().toString(36).substring(2),a.graph.refresh(),a.scheduleUpdateOverlay()):window.centeredWindow&&window.centeredWindow.forEach(o=>{o&&(o.setVisible(!1),o.destroy())})}))},immediate:!0,deep:!0}},methods:{dynamicComponent(t){return this.compMap[t]},scheduleUpdateOverlay(){let t=this;this.updateRaf&&cancelAnimationFrame(this.updateRaf),this.updateRaf=requestAnimationFrame(()=>{t.$nextTick(()=>{var a=t.graph.getModel().cells,d=Object.values(a);let o=d.filter(m=>m.crtype=="schedule");for(let m=0;m<o.length;m++){let h=o[m];t.graph.view.validateCell(h)}}),this.$forceUpdate(),this.updateRaf=null})},async addTimeLine({cellAry:t,scheduleCombination:e}){let a=this;a.$nextTick(()=>{let d={};for(let o=0;o<t.length;o++){let m=t[o],h={id:m.id,cell:m,other:m.other,compId:m.id,show:!0};a.timeLineMap.push(h),d[m.id]=e}a.compMap=Object.freeze(d),this.$forceUpdate()})},removeKeyUpDown(){let t=this;t.yhz&&t.yhz.removeKeyUpDown()},keyUpdownEvent(){let t=this;t.yhz&&t.yhz.keyUpdownEvent()},addCode(t){let e=this;e.yhz&&e.yhz.addCode({code:t})},setPageShortcuts(t){let e=this;e.yhz&&(e.yhz.setPageShortcuts(t),e.pageShortcuts=t)},setIsPreview(t){let e=this;e.yhz&&(e.onResize(),e.yhz.isPreview(t))},clearUndo(){let t=this;if(t.yhz)return t.yhz.clearUndo()},zoomHome(){let t=this;t.graph.zoomTo(1),t.yhz.changePageSize()},redo(){let t=this;if(t.yhz)return t.handelEvent({key:"unre"}),t.yhz.redo()},undo(){let t=this;if(t.yhz)return t.handelEvent({key:"unre"}),t.yhz.undo()},canRedo(){let t=this;return t.yhz?t.yhz.canRedo():!1},canUndo(){let t=this;return t.yhz?t.yhz.canUndo():!1},view(){let t=this,e=this.cell,a={background:"#000",color:"#fff",border:"1px solid #fff"};t.yhz.updateCell(e,a)},changeSize(t){this.yhz.changePageSize(t)},preview(){Be().push({path:"/preview"})},contextmenus(t,e){e&&(this.yhz.addEvent(e),t.preventDefault(),t.stopPropagation())},handelEvent(t){let e=this;e.cell=t.val,e.$emit("handelEvent",t)},loadJson(){this.yhz.loadJson()},async loadXml(t,e){let a=this;t?a.yhz.fromXmlToView(t):a.yhz.initCanvas(null,a.$refs.transparentRectRef)},async init(){let t=this,e=t.$refs.geEditor;const a=new Ee(t);if(!t.graph){let d=await a.init({container:e,menus:t.menus,pageShortcuts:t.pageShortcuts});t.graph=d,t.yhz=a,t.$emit("handelEvent",{key:"init",mygraph:d,yhz:a}),setTimeout(()=>{a.isPreview(!t.isPreview)},0)}},onResize(){let t=this;t.yhz&&t.yhz.changePageSize()},clearCanvas(){let t=this;t.yhz&&t.yhz.clearCanvas()},openPupop(t,e=!0){let a=this;if(a.pupAry=t,t&&t.length>0){window.centeredWindow&&window.centeredWindow.forEach(m=>{m&&(m.setVisible(!1),m.destroy())});let d=[];t.forEach(o=>{var m=document.createElement("div");if(o.type==="img"){m.style.overflow="auto",m.style.width="100%",m.style.height="100%",m.style.display="flex",m.style.justifyContent="center",m.style.alignItems="center";var h=document.createElement("img");h.src=o.path,m.appendChild(h)}else if(o.type==="time"){let{el:B}=o.vnode;m.style.overflow="auto",m.style.width="100%",m.style.height="100%",m.appendChild(B)}else{m.style.overflow="auto",m.style.width="100%",m.style.height="100%";var b=o.pathHtml;m.appendChild(b)}let S=0,x=0;if(o.isCenter=="false")S=o.left,x=o.top;else{var y=document.getElementById("app"),C=y.clientWidth,D=y.clientHeight;S=(C-o.width)/2,x=(D-o.height)/2}var E=new mxWindow(o.title,m,S,x,o.width,o.height,!0,!0,"mxWindowTitle");E.setClosable(!0),E.setMaximizable(!1),E.setResizable(!0),E.setVisible(e),E.constrainWithinViewport=!0,E.addListener(mxEvent.CLOSE,function(B,k){a.isShowPup=!1}),E.addListener(mxEvent.MOVE,function(B,k){var T=E.getX(),P=E.getY(),F=E.getElement().offsetWidth,G=E.getElement().offsetHeight,j=document.documentElement.clientWidth,I=document.documentElement.clientHeight,Z=0,K=0,ee=j-F,ne=I-G;T=Math.max(Z,Math.min(T,ee)),P=Math.max(K,Math.min(P,ne)),E.setLocation(T,P)}),d.push(E)}),window.centeredWindow=d,a.wndAry=d}}},mounted(){let t=this;De.init().then(()=>{t.init()}),t.resizeObserver=new ResizeObserver(e=>{e.forEach(a=>{const{width:d,height:o}=a.contentRect;t.onResize(),t.openPupop(t.pupAry)})}),t.resizeObserver.observe(t.$refs.geEditor)},unmounted(){let t=this;t.resizeObserver&&t.resizeObserver.disconnect(),t.isShowPup=!1,window.centeredWindow&&window.centeredWindow.forEach(a=>{a&&(a.setVisible(!1),a.destroy())})}},ta={class:"main-gd",ref:"mainGd"},aa=["id"],la={key:0,class:"transparentRect"},na=["id"];function ia(t,e,a,d,o,m){return r.openBlock(),r.createElementBlock("div",ta,[r.createElementVNode("div",{class:"main-body",ref:"geEditor",id:a.currentIndex},[a.isShow?(r.openBlock(),r.createElementBlock("div",la)):r.createCommentVNode("",!0),o.timeLineMap.length>0&&a.isPreview?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(o.timeLineMap,(h,b)=>(r.openBlock(),r.createElementBlock("div",{key:h.id,id:h.id,class:r.normalizeClass(h.id),style:r.normalizeStyle([{position:"absolute"},{zIndex:0}])},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(m.dynamicComponent(h.compId)),{id:h.other.timeId+"",thisTab:h.other.thisTab},null,8,["id","thisTab"]))],10,na))),128)):r.createCommentVNode("",!0)],8,aa)],512)}const oa=q(ea,[["render",ia]]);J.mxCodeSvg=$t,J.mxCodeSvgPreview=oa,Object.defineProperty(J,Symbol.toStringTag,{value:"Module"})});
34
+ */function Be(){return r.inject(Qt)}const De={init(t){let e=["/js/mxClient.js"];return new Promise(a=>{const d=document.getElementsByTagName("script");let o=!1;for(let b=0;b<d.length;b++)d[b].src.includes("mxClient.js")&&(o=!0);if(o)return a();let h=e.map(b=>{let S=document.createElement("script");return S.type="text/javascript",S.async=!1,S.src=b,document.head.appendChild(S),S}).pop();h.onload=a})}},Te=[{title:"新建",image:null,code:"new",iconCls:"iconfont icon-new",isBorder:!0,children:[{iconClass:"",code:"add",iconCls:"iconfont icon-binding-label",title:"标签",name:"grNewLabel",canNotUse:!1,type:"kitUI:BoundLabelWidget",style:"",child:!0},{iconClass:"",code:"add",iconCls:"iconfont icon-Imagefile",title:"图片",name:"grNewImg",canNotUse:!1,type:"kitUI:PictureWidget",style:"",child:!0},{code:"add",title:"矩形",image:null,iconCls:"iconfont icon-rectangle",type:"kitUI:ShapeRectWidget"},{code:"add",image:null,iconCls:"iconfont icon-rotundity",title:"圆形",type:"kitUI:ShapeCircleWidget"},{code:"add",iconCls:"iconfont icon-triangle",image:null,title:"等腰三角形",type:"kitUI:ShapeTriangleWidget"},{code:"add",iconCls:"iconfont icon-lingxing1",title:"棱形",disable:!1,type:"shape:Polygon"},{code:"add",iconCls:"iconfont icon-duobianxing-01",title:"正五边形",disable:!1,type:"shape:Pentagon"},{code:"add",iconCls:"iconfont icon-ziyuan",title:"正六边形",disable:!1,type:"shape:Hexagon"},{code:"add",iconCls:"iconfont icon-duobianxing",title:"任意多边形",disable:!1,type:"shape:Polygons"}]},{title:"复制",image:null,code:"copy",iconCls:"iconfont icon-copy"},{title:"克隆",image:null,code:"clone",iconCls:"iconfont icon-clone"},{title:"剪切",image:null,code:"cut",iconCls:"iconfont icon-cut"},{title:"粘贴",image:null,code:"paste",iconCls:"iconfont icon-paste"},{title:"删除",code:"del",image:null,iconCls:"iconfont icon-delete",isBorder:!0},{title:"排列",code:"order",image:null,iconCls:"iconfont icon-arrange",isBorder:!0,children:[{iconClass:"",code:"alignLeft",iconCls:"iconfont icon-left-align",title:"左对齐",name:"grNewLabel",canNotUse:!1,type:"kitUI:BoundLabelWidget",child:!0},{iconClass:"",code:"alignCenterHorizontal",iconCls:"iconfont icon-horizontal-center",title:"水平居中",name:"grNewLabel",canNotUse:!1,type:"kitUI:BoundLabelWidget",child:!0},{iconClass:"",code:"alignRight",iconCls:"iconfont icon-right-align",title:"右对齐",name:"grNewLabel",canNotUse:!1,type:"kitUI:BoundLabelWidget",child:!0},{iconClass:"",code:"alignCellsTop",iconCls:"iconfont icon-top-align",title:"顶端对齐",name:"grNewLabel",canNotUse:!1,type:"kitUI:BoundLabelWidget",child:!0},{iconClass:"",code:"alignCenterVertical",iconCls:"iconfont icon-vertical-center",title:"垂直居中",name:"grNewLabel",canNotUse:!1,type:"kitUI:BoundLabelWidget",child:!0},{iconClass:"",code:"alignCellsBottom",iconCls:"iconfont icon-bottom-align",title:"底端对齐",name:"grNewLabel",canNotUse:!1,type:"kitUI:BoundLabelWidget",child:!0}]},{title:"图层",code:"view",image:null,iconCls:"iconfont icon-view",isBorder:!0,children:[{title:"置顶",code:"toUp",image:null,iconCls:"iconfont icon-top"},{title:"置底",code:"toDown",image:null,iconCls:"iconfont icon-bottom",isBorder:!0},{title:"上一层",code:"upOne",image:null,iconCls:"iconfont icon-top"},{title:"下一层",code:"downOne",image:null,iconCls:"iconfont icon-bottom",isBorder:!0}]},{title:"编辑",code:"edit",image:null,disable:!0,iconCls:"iconfont icon-edit"}],Xt={components:{},props:{menus:{type:Array,default:Te},isShow:{type:Boolean,default:!1},isPreview:{type:Boolean,default:!1},currentIndex:{type:Number,default:0}},data(){return{graph:null,yhz:null,cell:null,loadCells:null,scale:1,pageShortcuts:!1,timeLineMap:[],updateRaf:null,keys:Math.random().toString(36).substring(2),compMap:[],pupAry:[],resizeObserver:null,isShowPup:!1,wndAry:[],thisObj:new Map,centeredWindow:[]}},watch:{isPreview:{handler(t,e){let a=this;a.yhz&&(a.yhz.isPreview(!t),a.$nextTick(()=>{t?(a.keys=Math.random().toString(36).substring(2),a.graph.refresh(),a.scheduleUpdateOverlay()):a.centeredWindow&&a.centeredWindow.forEach(o=>{o&&(o.setVisible(!1),o.destroy())})}))},immediate:!0,deep:!0}},methods:{getStyle(t){let e=this,d=t.cell.style||{};return e.yhz.scheduleBorder(d)},handleshowAndHide(t,e){},dynamicComponent(t){return this.compMap.get(t)},scheduleUpdateOverlay(){let t=this;this.updateRaf&&cancelAnimationFrame(this.updateRaf),this.updateRaf=requestAnimationFrame(()=>{t.$nextTick(()=>{var a=t.graph.getModel().cells,d=Object.values(a);let o=d.filter(m=>m.crtype=="schedule");for(let m=0;m<o.length;m++){let h=o[m];t.graph.view.validateCell(h)}}),this.$forceUpdate(),this.updateRaf=null})},async addTimeLine({cellAry:t,scheduleCombination:e}){let a=this;a.$nextTick(()=>{for(let d=0;d<t.length;d++){let o=t[d],m={id:o.id,cell:o,other:o.other,compId:o.id,show:!0};a.timeLineMap.push(m),a.thisObj.set(o.id,e)}a.compMap=Object.freeze(a.thisObj),this.$forceUpdate()})},removeKeyUpDown(){let t=this;t.yhz&&t.yhz.removeKeyUpDown()},keyUpdownEvent(){let t=this;t.yhz&&(t.yhz.keyUpdownEvent(),console.log("绑定键盘事件"))},addCode(t){let e=this;e.yhz&&e.yhz.addCode({code:t})},setPageShortcuts(t){let e=this;e.yhz&&(e.yhz.setPageShortcuts(t),e.pageShortcuts=t)},setIsPreview(t){let e=this;e.yhz&&(e.onResize(),e.yhz.isPreview(t))},clearUndo(){let t=this;if(t.yhz)return t.yhz.clearUndo()},zoomHome(){let t=this;t.graph.zoomTo(1),t.yhz.changePageSize()},redo(){let t=this;if(t.yhz)return t.handelEvent({key:"unre"}),t.yhz.redo()},undo(){let t=this;if(t.yhz)return t.handelEvent({key:"unre"}),t.yhz.undo()},canRedo(){let t=this;return t.yhz?t.yhz.canRedo():!1},canUndo(){let t=this;return t.yhz?t.yhz.canUndo():!1},view(){let t=this,e=this.cell,a={background:"#000",color:"#fff",border:"1px solid #fff"};t.yhz.updateCell(e,a)},changeSize(t){this.yhz.changePageSize(t)},preview(){Be().push({path:"/preview"})},contextmenus(t,e){e&&(this.yhz.addEvent(e),t.preventDefault(),t.stopPropagation())},changeTimeLineShow(){let t=this,e=[],a=t.graph.getModel();Object.values(a.cells).forEach(o=>{e.push(o.id)}),t.timeLineMap=t.timeLineMap.filter(o=>e.includes(o.id))},handelEvent(t){let e=this;e.cell=t.val,t.key=="delete"&&e.changeTimeLineShow(),e.$emit("handelEvent",t)},loadJson(){this.yhz.loadJson()},async loadXml(t,e){let a=this;t?a.yhz.fromXmlToView(t):a.yhz.initCanvas(null,a.$refs.transparentRectRef)},async init(){let t=this,e=t.$refs.geEditor;const a=new Ee(t);if(!t.graph){let d=await a.init({container:e,menus:t.menus,pageShortcuts:t.pageShortcuts});t.graph=d,t.delCell(d),t.yhz=a,t.$emit("handelEvent",{key:"init",mygraph:d,yhz:a}),setTimeout(()=>{a.isPreview(!t.isPreview)},0)}},delCell(t){let e=this;t.addListener(mxEvent.DELETE_CELLS,(a,d)=>{const o=d.properties.cells;let m=[];o&&o.length>0&&(o.forEach(h=>{m.push(h.id)}),e.timeLineMap.forEach(h=>{m.includes(h.id)&&(h.show=!1)}))})},onResize(){let t=this;t.yhz&&(t.yhz.changePageSize(),t.yhz.getFloatingPosition())},clearCanvas(){let t=this;t.yhz&&t.yhz.clearCanvas()},openPupop(t,e=!0){let a=this;if(a.pupAry=t,t&&t.length>0){a.centeredWindow&&a.centeredWindow.forEach(m=>{m&&(m.setVisible(!1),m.destroy())});let d=[];t.forEach((o,m)=>{var h=document.createElement("div");if(o.type==="img"){h.style.overflow="auto",h.style.width="100%",h.style.height="100%",h.style.display="flex",h.style.justifyContent="center",h.style.alignItems="center";var b=document.createElement("img");b.src=o.path,h.appendChild(b)}else if(o.type==="time"){let{el:P}=o.vnode;h.style.overflow="auto",h.style.width="100%",h.style.height="100%",h.appendChild(P)}else{h.style.overflow="auto",h.style.width="100%",h.style.height="100%",h.style.display="flex",h.style.justifyContent="center",h.style.alignItems="center";var S=o.pathHtml;h.appendChild(S)}let x=0,y=0;if(o.isCenter=="false")x=o.left,y=o.top;else{var C=document.getElementById("app"),D=C.clientWidth,E=C.clientHeight;x=(D-o.width)/2,y=(E-o.height)/2}var B=document.createElement("div");let k=document.querySelectorAll(".mx-window-mask");var T=new mxWindow(o.title,h,x,y,o.width,o.height,!1,!0,"mxWindowTitle");T.setClosable(!0),T.setMaximizable(!0),T.setScrollable(!0),T.setResizable(!0),T.setVisible(e),T.constrainWithinViewport=!0,T.addListener(mxEvent.CLOSE,function(P,F){a.isShowPup=!1,k&&k.length>0&&k.forEach(H=>{document.body.removeChild(H)}),B.style.display="none"}),T.addListener(mxEvent.MOVE,function(P,F){var H=T.getX(),j=T.getY(),I=T.getElement().offsetWidth,Z=T.getElement().offsetHeight,K=document.documentElement.clientWidth,ee=document.documentElement.clientHeight,ne=0,oe=0,re=K-I,se=ee-Z;H=Math.max(ne,Math.min(H,re)),j=Math.max(oe,Math.min(j,se)),T.setLocation(H,j)}),T.div&&k.length===0&&(T.div.style.zIndex=2e3+m,B.className="mx-window-mask",B.style.zIndex=30+m,document.body.appendChild(B),B.style.display="block"),d.push(T)}),a.centeredWindow=d,a.wndAry=d}},getWindowInfo(){let t=this,e=t.wndAry;e&&e.length>0&&e.forEach((a,d)=>{if(a){let o=t.pupAry[d];o&&t.openPupop([o],a.isVisible())}})},debounce(t,e=200){let a=null;return function(...d){clearTimeout(a),a=setTimeout(()=>{t.apply(this,d)},e)}},debouncedScroll(t){let e=this;if(e.graph){var a=e.graph.container;a.addEventListener("scroll",function(){console.log("元素滚动:",a.scrollTop,a.scrollLeft)})}}},mounted(){let t=this,e=t.$refs.geEditor;De.init().then(()=>{t.init()}),t.resizeObserver=new ResizeObserver(a=>{t.onResize(null)}),t.resizeObserver.observe(e),window.addEventListener("resize",t.getWindowInfo)},unmounted(){let t=this;t.resizeObserver&&t.resizeObserver.disconnect(),t.isShowPup=!1,t.centeredWindow&&t.centeredWindow.forEach(a=>{a&&(a.setVisible(!1),a.destroy())}),window.removeEventListener("resize",t.getWindowInfo)}},Zt=["id"],Jt={key:0,class:"transparentRect"},qt=["id"];function Kt(t,e,a,d,o,m){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["main-gd",{"show-scroll":a.isPreview}]),ref:"mainGd"},[r.createElementVNode("div",{class:r.normalizeClass(["main-body",{"hidden-scroll":a.isPreview}]),ref:"geEditor",id:a.currentIndex},null,10,Zt),a.isShow?(r.openBlock(),r.createElementBlock("div",Jt)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(o.timeLineMap,(h,b)=>r.withDirectives((r.openBlock(),r.createElementBlock("div",{key:h.id+o.keys,id:h.id,style:r.normalizeStyle([{position:"absolute"},m.getStyle(h)]),class:r.normalizeClass(h.id)},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(m.dynamicComponent(h.compId)),{id:h.other.timeId+"",thisTab:h.other.thisTab},null,8,["id","thisTab"]))],14,qt)),[[r.vShow,o.timeLineMap.length>0&&a.isPreview]])),128))],2)}const $t=q(Xt,[["render",Kt]]),ea={components:{},props:{menus:{type:Array,default:Te},isShow:{type:Boolean,default:!1},isPreview:{type:Boolean,default:!0},currentIndex:{type:Number,default:0}},data(){return{graph:null,yhz:null,cell:null,loadCells:null,scale:1,pageShortcuts:!1,timeLineMap:[],compMap:[],pupAry:[],resizeObserver:null,isShowPup:!1}},watch:{isPreview:{handler(t,e){let a=this;a.yhz&&(a.yhz.isPreview(!t),a.$nextTick(()=>{t?(a.keys=Math.random().toString(36).substring(2),a.graph.refresh(),a.scheduleUpdateOverlay()):window.centeredWindow&&window.centeredWindow.forEach(o=>{o&&(o.setVisible(!1),o.destroy())})}))},immediate:!0,deep:!0}},methods:{dynamicComponent(t){return this.compMap[t]},scheduleUpdateOverlay(){let t=this;this.updateRaf&&cancelAnimationFrame(this.updateRaf),this.updateRaf=requestAnimationFrame(()=>{t.$nextTick(()=>{var a=t.graph.getModel().cells,d=Object.values(a);let o=d.filter(m=>m.crtype=="schedule");for(let m=0;m<o.length;m++){let h=o[m];t.graph.view.validateCell(h)}}),this.$forceUpdate(),this.updateRaf=null})},async addTimeLine({cellAry:t,scheduleCombination:e}){let a=this;a.$nextTick(()=>{let d={};for(let o=0;o<t.length;o++){let m=t[o],h={id:m.id,cell:m,other:m.other,compId:m.id,show:!0};a.timeLineMap.push(h),d[m.id]=e}a.compMap=Object.freeze(d),this.$forceUpdate()})},removeKeyUpDown(){let t=this;t.yhz&&t.yhz.removeKeyUpDown()},keyUpdownEvent(){let t=this;t.yhz&&t.yhz.keyUpdownEvent()},addCode(t){let e=this;e.yhz&&e.yhz.addCode({code:t})},setPageShortcuts(t){let e=this;e.yhz&&(e.yhz.setPageShortcuts(t),e.pageShortcuts=t)},setIsPreview(t){let e=this;e.yhz&&(e.onResize(),e.yhz.isPreview(t))},clearUndo(){let t=this;if(t.yhz)return t.yhz.clearUndo()},zoomHome(){let t=this;t.graph.zoomTo(1),t.yhz.changePageSize()},redo(){let t=this;if(t.yhz)return t.handelEvent({key:"unre"}),t.yhz.redo()},undo(){let t=this;if(t.yhz)return t.handelEvent({key:"unre"}),t.yhz.undo()},canRedo(){let t=this;return t.yhz?t.yhz.canRedo():!1},canUndo(){let t=this;return t.yhz?t.yhz.canUndo():!1},view(){let t=this,e=this.cell,a={background:"#000",color:"#fff",border:"1px solid #fff"};t.yhz.updateCell(e,a)},changeSize(t){this.yhz.changePageSize(t)},preview(){Be().push({path:"/preview"})},contextmenus(t,e){e&&(this.yhz.addEvent(e),t.preventDefault(),t.stopPropagation())},handelEvent(t){let e=this;e.cell=t.val,e.$emit("handelEvent",t)},loadJson(){this.yhz.loadJson()},async loadXml(t,e){let a=this;t?a.yhz.fromXmlToView(t):a.yhz.initCanvas(null,a.$refs.transparentRectRef)},async init(){let t=this,e=t.$refs.geEditor;const a=new Ee(t);if(!t.graph){let d=await a.init({container:e,menus:t.menus,pageShortcuts:t.pageShortcuts});t.graph=d,t.yhz=a,t.$emit("handelEvent",{key:"init",mygraph:d,yhz:a}),setTimeout(()=>{a.isPreview(!t.isPreview)},0)}},onResize(){let t=this;t.yhz&&t.yhz.changePageSize()},clearCanvas(){let t=this;t.yhz&&t.yhz.clearCanvas()},openPupop(t,e=!0){let a=this;if(a.pupAry=t,t&&t.length>0){window.centeredWindow&&window.centeredWindow.forEach(m=>{m&&(m.setVisible(!1),m.destroy())});let d=[];t.forEach(o=>{var m=document.createElement("div");if(o.type==="img"){m.style.overflow="auto",m.style.width="100%",m.style.height="100%",m.style.display="flex",m.style.justifyContent="center",m.style.alignItems="center";var h=document.createElement("img");h.src=o.path,m.appendChild(h)}else if(o.type==="time"){let{el:B}=o.vnode;m.style.overflow="auto",m.style.width="100%",m.style.height="100%",m.appendChild(B)}else{m.style.overflow="auto",m.style.width="100%",m.style.height="100%";var b=o.pathHtml;m.appendChild(b)}let S=0,x=0;if(o.isCenter=="false")S=o.left,x=o.top;else{var y=document.getElementById("app"),C=y.clientWidth,D=y.clientHeight;S=(C-o.width)/2,x=(D-o.height)/2}var E=new mxWindow(o.title,m,S,x,o.width,o.height,!0,!0,"mxWindowTitle");E.setClosable(!0),E.setMaximizable(!1),E.setResizable(!0),E.setVisible(e),E.constrainWithinViewport=!0,E.addListener(mxEvent.CLOSE,function(B,k){a.isShowPup=!1}),E.addListener(mxEvent.MOVE,function(B,k){var T=E.getX(),P=E.getY(),F=E.getElement().offsetWidth,H=E.getElement().offsetHeight,j=document.documentElement.clientWidth,I=document.documentElement.clientHeight,Z=0,K=0,ee=j-F,ne=I-H;T=Math.max(Z,Math.min(T,ee)),P=Math.max(K,Math.min(P,ne)),E.setLocation(T,P)}),d.push(E)}),window.centeredWindow=d,a.wndAry=d}}},mounted(){let t=this;De.init().then(()=>{t.init()}),t.resizeObserver=new ResizeObserver(e=>{e.forEach(a=>{const{width:d,height:o}=a.contentRect;t.onResize(),t.openPupop(t.pupAry)})}),t.resizeObserver.observe(t.$refs.geEditor)},unmounted(){let t=this;t.resizeObserver&&t.resizeObserver.disconnect(),t.isShowPup=!1,window.centeredWindow&&window.centeredWindow.forEach(a=>{a&&(a.setVisible(!1),a.destroy())})}},ta={class:"main-gd",ref:"mainGd"},aa=["id"],la={key:0,class:"transparentRect"},na=["id"];function ia(t,e,a,d,o,m){return r.openBlock(),r.createElementBlock("div",ta,[r.createElementVNode("div",{class:"main-body",ref:"geEditor",id:a.currentIndex},[a.isShow?(r.openBlock(),r.createElementBlock("div",la)):r.createCommentVNode("",!0),o.timeLineMap.length>0&&a.isPreview?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(o.timeLineMap,(h,b)=>(r.openBlock(),r.createElementBlock("div",{key:h.id,id:h.id,class:r.normalizeClass(h.id),style:r.normalizeStyle([{position:"absolute"},{zIndex:0}])},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(m.dynamicComponent(h.compId)),{id:h.other.timeId+"",thisTab:h.other.thisTab},null,8,["id","thisTab"]))],10,na))),128)):r.createCommentVNode("",!0)],8,aa)],512)}const oa=q(ea,[["render",ia]]);J.mxCodeSvg=$t,J.mxCodeSvgPreview=oa,Object.defineProperty(J,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mx-framework-plus",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "画布功能",
5
5
  "type": "module",
6
6
  "files": [