@logicflow/extension 1.2.0-next.3 → 1.2.0-next.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,43 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isNodeInSegment = exports.crossPointInSegment = exports.isInSegment = void 0;
3
+ exports.isNodeInSegment = exports.crossPointInSegment = exports.distToSegment = exports.distToSegmentSquared = exports.isInSegment = void 0;
4
4
  // 这个里面的函数有些在core中已经存在,为了解耦关系,没有引用
5
5
  var SegmentDirection;
6
6
  (function (SegmentDirection) {
7
7
  SegmentDirection["HORIZONTAL"] = "horizontal";
8
8
  SegmentDirection["VERTICAL"] = "vertical";
9
9
  })(SegmentDirection || (SegmentDirection = {}));
10
- /* 判断一个点是否在线段中
11
- 入参点:point, 线段起终点,start,end,
12
- 返回值: 在线段中true,否则false
13
- */
14
- exports.isInSegment = function (point, start, end) {
15
- var x = point.x, y = point.y;
16
- return (x - start.x) * (x - end.x) <= 0
17
- && (y - start.y) * (y - end.y) <= 0;
10
+ /**
11
+ * 判断一个点是否在线段中
12
+ * @param point 判断的点
13
+ * @param start 线段的起点
14
+ * @param end 线段的终点
15
+ * @param deviation 误差范围
16
+ * @returns boolean
17
+ */
18
+ exports.isInSegment = function (point, start, end, deviation) {
19
+ if (deviation === void 0) { deviation = 0; }
20
+ var distance = exports.distToSegment(point, start, end);
21
+ return distance <= deviation;
18
22
  };
23
+ function sqr(x) {
24
+ return x * x;
25
+ }
26
+ function dist2(v, w) {
27
+ return sqr(v.x - w.x) + sqr(v.y - w.y);
28
+ }
29
+ exports.distToSegmentSquared = function (p, v, w) {
30
+ var l2 = dist2(v, w);
31
+ if (l2 === 0)
32
+ return dist2(p, v);
33
+ var t = ((p.x - v.x) * (w.x - v.x) + (p.y - v.y) * (w.y - v.y)) / l2;
34
+ t = Math.max(0, Math.min(1, t));
35
+ return dist2(p, {
36
+ x: v.x + t * (w.x - v.x),
37
+ y: v.y + t * (w.y - v.y),
38
+ });
39
+ };
40
+ exports.distToSegment = function (point, start, end) { return Math.sqrt(exports.distToSegmentSquared(point, start, end)); };
19
41
  /* 获取节点bbox */
20
42
  var getNodeBBox = function (node) {
21
43
  var x = node.x, y = node.y, width = node.width, height = node.height;
@@ -55,29 +77,29 @@ exports.crossPointInSegment = function (node, start, end) {
55
77
  var x = node.x, y = node.y, width = node.width, height = node.height;
56
78
  if (direction === SegmentDirection.HORIZONTAL) {
57
79
  // 同一水平线
58
- if (start.y === y && maxX >= bBox.maxX && minX <= bBox.minX) {
80
+ if (maxX >= bBox.maxX && minX <= bBox.minX) {
59
81
  return {
60
82
  startCrossPoint: {
61
83
  x: start.x > end.x ? x + (width / 2) : x - (width / 2),
62
- y: y,
84
+ y: start.y,
63
85
  },
64
86
  endCrossPoint: {
65
87
  x: start.x > end.x ? x - (width / 2) : x + (width / 2),
66
- y: y,
88
+ y: start.y,
67
89
  },
68
90
  };
69
91
  }
70
92
  }
71
93
  else if (direction === SegmentDirection.VERTICAL) {
72
94
  // 同一垂直线
73
- if (start.x === node.x && maxY >= bBox.maxY && minY <= bBox.minY) {
95
+ if (maxY >= bBox.maxY && minY <= bBox.minY) {
74
96
  return {
75
97
  startCrossPoint: {
76
- x: x,
98
+ x: start.x,
77
99
  y: start.y > end.y ? y + (height / 2) : y - (height / 2),
78
100
  },
79
101
  endCrossPoint: {
80
- x: x,
102
+ x: start.x,
81
103
  y: start.y > end.y ? y - (height / 2) : y + (height / 2),
82
104
  },
83
105
  };
@@ -86,11 +108,12 @@ exports.crossPointInSegment = function (node, start, end) {
86
108
  };
87
109
  // 节点是否在线段内
88
110
  // eslint-disable-next-line max-len
89
- exports.isNodeInSegment = function (node, polyline) {
111
+ exports.isNodeInSegment = function (node, polyline, deviation) {
112
+ if (deviation === void 0) { deviation = 0; }
90
113
  var x = node.x, y = node.y;
91
114
  var pointsList = polyline.pointsList;
92
115
  for (var i = 0; i < pointsList.length - 1; i++) {
93
- if (exports.isInSegment({ x: x, y: y }, pointsList[i], pointsList[i + 1])) {
116
+ if (exports.isInSegment({ x: x, y: y }, pointsList[i], pointsList[i + 1], deviation)) {
94
117
  var bBoxCross = exports.crossPointInSegment(node, pointsList[i], pointsList[i + 1]);
95
118
  if (bBoxCross) {
96
119
  return {
@@ -21,11 +21,14 @@ var __spread = (this && this.__spread) || function () {
21
21
  };
22
22
  Object.defineProperty(exports, "__esModule", { value: true });
23
23
  exports.InsertNodeInPolyline = void 0;
24
+ var lodash_es_1 = require("lodash-es");
24
25
  var edge_1 = require("./edge");
25
26
  var InsertNodeInPolyline = /** @class */ (function () {
26
27
  function InsertNodeInPolyline(_a) {
27
28
  var lf = _a.lf;
28
29
  this._lf = lf;
30
+ // fix https://github.com/didi/LogicFlow/issues/754
31
+ this.deviation = 20;
29
32
  this.dndAdd = true;
30
33
  this.dropAdd = true;
31
34
  this.eventHandler();
@@ -44,6 +47,7 @@ var InsertNodeInPolyline = /** @class */ (function () {
44
47
  var data = _a.data;
45
48
  var edges = _this._lf.graphModel.edges;
46
49
  var id = data.id;
50
+ // 只有游离节点才能插入到连线上
47
51
  var pureNode = true;
48
52
  for (var i = 0; i < edges.length; i++) {
49
53
  if (edges[i].sourceNodeId === id || edges[i].targetNodeId === id) {
@@ -62,19 +66,26 @@ var InsertNodeInPolyline = /** @class */ (function () {
62
66
  var nodeModel = this._lf.getNodeModelById(nodeData.id);
63
67
  for (var i = 0; i < edges.length; i++) {
64
68
  // eslint-disable-next-line max-len
65
- var _a = edge_1.isNodeInSegment(nodeModel, edges[i]), crossIndex = _a.crossIndex, crossPoints = _a.crossPoints;
69
+ var _a = edge_1.isNodeInSegment(nodeModel, edges[i], this.deviation), crossIndex = _a.crossIndex, crossPoints = _a.crossPoints;
66
70
  if (crossIndex >= 0) {
67
71
  var _b = edges[i], sourceNodeId = _b.sourceNodeId, targetNodeId = _b.targetNodeId, id = _b.id, type = _b.type, pointsList = _b.pointsList;
72
+ // fix https://github.com/didi/LogicFlow/issues/996
73
+ var startPoint = lodash_es_1.cloneDeep(pointsList[0]);
74
+ var endPoint = lodash_es_1.cloneDeep(crossPoints.startCrossPoint);
68
75
  this._lf.addEdge({
69
76
  type: type,
70
77
  sourceNodeId: sourceNodeId,
71
78
  targetNodeId: nodeData.id,
79
+ startPoint: startPoint,
80
+ endPoint: endPoint,
72
81
  pointsList: __spread(pointsList.slice(0, crossIndex), [crossPoints.startCrossPoint]),
73
82
  });
74
83
  this._lf.addEdge({
75
84
  type: type,
76
85
  sourceNodeId: nodeData.id,
77
86
  targetNodeId: targetNodeId,
87
+ startPoint: lodash_es_1.cloneDeep(crossPoints.endCrossPoint),
88
+ endPoint: lodash_es_1.cloneDeep(pointsList[pointsList.length - 1]),
78
89
  pointsList: __spread([crossPoints.endCrossPoint], pointsList.slice(crossIndex)),
79
90
  });
80
91
  this._lf.deleteEdge(id);
@@ -124,6 +124,10 @@ var GroupNodeModel = /** @class */ (function (_super) {
124
124
  var allEdges = this.incoming.edges.concat(this.outgoing.edges);
125
125
  this.children.forEach(function (elementId) {
126
126
  var nodeModel = _this.graphModel.getElement(elementId);
127
+ // FIX: https://github.com/didi/LogicFlow/issues/1007
128
+ if (nodeModel.isGroup && !nodeModel.isFolded) {
129
+ nodeModel.foldGroup(isFolded);
130
+ }
127
131
  nodeModel.visible = !isFolded;
128
132
  allEdges = allEdges.concat(nodeModel.incoming.edges.concat(nodeModel.outgoing.edges));
129
133
  });
@@ -1,5 +1,15 @@
1
1
  import { Point, PolylineEdgeModel, BaseNodeModel } from '@logicflow/core';
2
- export declare const isInSegment: (point: any, start: any, end: any) => boolean;
2
+ /**
3
+ * 判断一个点是否在线段中
4
+ * @param point 判断的点
5
+ * @param start 线段的起点
6
+ * @param end 线段的终点
7
+ * @param deviation 误差范围
8
+ * @returns boolean
9
+ */
10
+ export declare const isInSegment: (point: any, start: any, end: any, deviation?: number) => boolean;
11
+ export declare const distToSegmentSquared: (p: any, v: any, w: any) => number;
12
+ export declare const distToSegment: (point: Point, start: Point, end: Point) => number;
3
13
  export declare const crossPointInSegment: (node: BaseNodeModel, start: Point, end: Point) => {
4
14
  startCrossPoint: {
5
15
  x: number;
@@ -17,5 +27,5 @@ interface SegmentCross {
17
27
  endCrossPoint: Point;
18
28
  };
19
29
  }
20
- export declare const isNodeInSegment: (node: BaseNodeModel, polyline: PolylineEdgeModel) => SegmentCross;
30
+ export declare const isNodeInSegment: (node: BaseNodeModel, polyline: PolylineEdgeModel, deviation?: number) => SegmentCross;
21
31
  export {};
@@ -4,15 +4,37 @@ var SegmentDirection;
4
4
  SegmentDirection["HORIZONTAL"] = "horizontal";
5
5
  SegmentDirection["VERTICAL"] = "vertical";
6
6
  })(SegmentDirection || (SegmentDirection = {}));
7
- /* 判断一个点是否在线段中
8
- 入参点:point, 线段起终点,start,end,
9
- 返回值: 在线段中true,否则false
10
- */
11
- export var isInSegment = function (point, start, end) {
12
- var x = point.x, y = point.y;
13
- return (x - start.x) * (x - end.x) <= 0
14
- && (y - start.y) * (y - end.y) <= 0;
7
+ /**
8
+ * 判断一个点是否在线段中
9
+ * @param point 判断的点
10
+ * @param start 线段的起点
11
+ * @param end 线段的终点
12
+ * @param deviation 误差范围
13
+ * @returns boolean
14
+ */
15
+ export var isInSegment = function (point, start, end, deviation) {
16
+ if (deviation === void 0) { deviation = 0; }
17
+ var distance = distToSegment(point, start, end);
18
+ return distance <= deviation;
15
19
  };
20
+ function sqr(x) {
21
+ return x * x;
22
+ }
23
+ function dist2(v, w) {
24
+ return sqr(v.x - w.x) + sqr(v.y - w.y);
25
+ }
26
+ export var distToSegmentSquared = function (p, v, w) {
27
+ var l2 = dist2(v, w);
28
+ if (l2 === 0)
29
+ return dist2(p, v);
30
+ var t = ((p.x - v.x) * (w.x - v.x) + (p.y - v.y) * (w.y - v.y)) / l2;
31
+ t = Math.max(0, Math.min(1, t));
32
+ return dist2(p, {
33
+ x: v.x + t * (w.x - v.x),
34
+ y: v.y + t * (w.y - v.y),
35
+ });
36
+ };
37
+ export var distToSegment = function (point, start, end) { return Math.sqrt(distToSegmentSquared(point, start, end)); };
16
38
  /* 获取节点bbox */
17
39
  var getNodeBBox = function (node) {
18
40
  var x = node.x, y = node.y, width = node.width, height = node.height;
@@ -52,29 +74,29 @@ export var crossPointInSegment = function (node, start, end) {
52
74
  var x = node.x, y = node.y, width = node.width, height = node.height;
53
75
  if (direction === SegmentDirection.HORIZONTAL) {
54
76
  // 同一水平线
55
- if (start.y === y && maxX >= bBox.maxX && minX <= bBox.minX) {
77
+ if (maxX >= bBox.maxX && minX <= bBox.minX) {
56
78
  return {
57
79
  startCrossPoint: {
58
80
  x: start.x > end.x ? x + (width / 2) : x - (width / 2),
59
- y: y,
81
+ y: start.y,
60
82
  },
61
83
  endCrossPoint: {
62
84
  x: start.x > end.x ? x - (width / 2) : x + (width / 2),
63
- y: y,
85
+ y: start.y,
64
86
  },
65
87
  };
66
88
  }
67
89
  }
68
90
  else if (direction === SegmentDirection.VERTICAL) {
69
91
  // 同一垂直线
70
- if (start.x === node.x && maxY >= bBox.maxY && minY <= bBox.minY) {
92
+ if (maxY >= bBox.maxY && minY <= bBox.minY) {
71
93
  return {
72
94
  startCrossPoint: {
73
- x: x,
95
+ x: start.x,
74
96
  y: start.y > end.y ? y + (height / 2) : y - (height / 2),
75
97
  },
76
98
  endCrossPoint: {
77
- x: x,
99
+ x: start.x,
78
100
  y: start.y > end.y ? y - (height / 2) : y + (height / 2),
79
101
  },
80
102
  };
@@ -83,11 +105,12 @@ export var crossPointInSegment = function (node, start, end) {
83
105
  };
84
106
  // 节点是否在线段内
85
107
  // eslint-disable-next-line max-len
86
- export var isNodeInSegment = function (node, polyline) {
108
+ export var isNodeInSegment = function (node, polyline, deviation) {
109
+ if (deviation === void 0) { deviation = 0; }
87
110
  var x = node.x, y = node.y;
88
111
  var pointsList = polyline.pointsList;
89
112
  for (var i = 0; i < pointsList.length - 1; i++) {
90
- if (isInSegment({ x: x, y: y }, pointsList[i], pointsList[i + 1])) {
113
+ if (isInSegment({ x: x, y: y }, pointsList[i], pointsList[i + 1], deviation)) {
91
114
  var bBoxCross = crossPointInSegment(node, pointsList[i], pointsList[i + 1]);
92
115
  if (bBoxCross) {
93
116
  return {
@@ -4,6 +4,7 @@ declare class InsertNodeInPolyline {
4
4
  _lf: LogicFlow;
5
5
  dndAdd: boolean;
6
6
  dropAdd: boolean;
7
+ deviation: number;
7
8
  constructor({ lf }: {
8
9
  lf: any;
9
10
  });
@@ -18,11 +18,14 @@ var __spread = (this && this.__spread) || function () {
18
18
  for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
19
19
  return ar;
20
20
  };
21
+ import { cloneDeep } from 'lodash-es';
21
22
  import { isNodeInSegment } from './edge';
22
23
  var InsertNodeInPolyline = /** @class */ (function () {
23
24
  function InsertNodeInPolyline(_a) {
24
25
  var lf = _a.lf;
25
26
  this._lf = lf;
27
+ // fix https://github.com/didi/LogicFlow/issues/754
28
+ this.deviation = 20;
26
29
  this.dndAdd = true;
27
30
  this.dropAdd = true;
28
31
  this.eventHandler();
@@ -41,6 +44,7 @@ var InsertNodeInPolyline = /** @class */ (function () {
41
44
  var data = _a.data;
42
45
  var edges = _this._lf.graphModel.edges;
43
46
  var id = data.id;
47
+ // 只有游离节点才能插入到连线上
44
48
  var pureNode = true;
45
49
  for (var i = 0; i < edges.length; i++) {
46
50
  if (edges[i].sourceNodeId === id || edges[i].targetNodeId === id) {
@@ -59,19 +63,26 @@ var InsertNodeInPolyline = /** @class */ (function () {
59
63
  var nodeModel = this._lf.getNodeModelById(nodeData.id);
60
64
  for (var i = 0; i < edges.length; i++) {
61
65
  // eslint-disable-next-line max-len
62
- var _a = isNodeInSegment(nodeModel, edges[i]), crossIndex = _a.crossIndex, crossPoints = _a.crossPoints;
66
+ var _a = isNodeInSegment(nodeModel, edges[i], this.deviation), crossIndex = _a.crossIndex, crossPoints = _a.crossPoints;
63
67
  if (crossIndex >= 0) {
64
68
  var _b = edges[i], sourceNodeId = _b.sourceNodeId, targetNodeId = _b.targetNodeId, id = _b.id, type = _b.type, pointsList = _b.pointsList;
69
+ // fix https://github.com/didi/LogicFlow/issues/996
70
+ var startPoint = cloneDeep(pointsList[0]);
71
+ var endPoint = cloneDeep(crossPoints.startCrossPoint);
65
72
  this._lf.addEdge({
66
73
  type: type,
67
74
  sourceNodeId: sourceNodeId,
68
75
  targetNodeId: nodeData.id,
76
+ startPoint: startPoint,
77
+ endPoint: endPoint,
69
78
  pointsList: __spread(pointsList.slice(0, crossIndex), [crossPoints.startCrossPoint]),
70
79
  });
71
80
  this._lf.addEdge({
72
81
  type: type,
73
82
  sourceNodeId: nodeData.id,
74
83
  targetNodeId: targetNodeId,
84
+ startPoint: cloneDeep(crossPoints.endCrossPoint),
85
+ endPoint: cloneDeep(pointsList[pointsList.length - 1]),
75
86
  pointsList: __spread([crossPoints.endCrossPoint], pointsList.slice(crossIndex)),
76
87
  });
77
88
  this._lf.deleteEdge(id);
@@ -122,6 +122,10 @@ var GroupNodeModel = /** @class */ (function (_super) {
122
122
  var allEdges = this.incoming.edges.concat(this.outgoing.edges);
123
123
  this.children.forEach(function (elementId) {
124
124
  var nodeModel = _this.graphModel.getElement(elementId);
125
+ // FIX: https://github.com/didi/LogicFlow/issues/1007
126
+ if (nodeModel.isGroup && !nodeModel.isFolded) {
127
+ nodeModel.foldGroup(isFolded);
128
+ }
125
129
  nodeModel.visible = !isFolded;
126
130
  allEdges = allEdges.concat(nodeModel.incoming.edges.concat(nodeModel.outgoing.edges));
127
131
  });
package/lib/AutoLayout.js CHANGED
@@ -1 +1 @@
1
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r=e();for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(window,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=220)}([function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,r(96))},function(t,e){var r=Function.prototype,n=r.bind,o=r.call,i=n&&n.bind(o);t.exports=n?function(t){return t&&i(o,t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){var n=r(0),o=r(34),i=r(6),u=r(36),c=r(47),f=r(62),a=o("wks"),s=n.Symbol,p=s&&s.for,l=f?s:s&&s.withoutSetter||u;t.exports=function(t){if(!i(a,t)||!c&&"string"!=typeof a[t]){var e="Symbol."+t;c&&i(s,t)?a[t]=s[t]:a[t]=f&&p?p(e):l(e)}return a[t]}},function(t,e,r){var n=r(0),o=r(25).f,i=r(16),u=r(15),c=r(42),f=r(68),a=r(70);t.exports=function(t,e){var r,s,p,l,v,y=t.target,d=t.global,h=t.stat;if(r=d?n:h?n[y]||c(y,{}):(n[y]||{}).prototype)for(s in e){if(l=e[s],p=t.noTargetGet?(v=o(r,s))&&v.value:r[s],!a(d?s:y+(h?".":"#")+s,t.forced)&&void 0!==p){if(typeof l==typeof p)continue;f(l,p)}(t.sham||p&&p.sham)&&i(l,"sham",!0),u(r,s,l,t)}}},function(t,e,r){var n=r(1),o=r(14),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},function(t,e,r){var n=r(3);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,r){var n=r(0),o=r(7),i=r(63),u=r(10),c=r(27),f=n.TypeError,a=Object.defineProperty;e.f=o?a:function(t,e,r){if(u(t),e=c(e),u(r),i)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw f("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(2);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},function(t,e,r){var n=r(0),o=r(9),i=n.String,u=n.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not an object")}},function(t,e){var r=Function.prototype.call;t.exports=r.bind?r.bind(r):function(){return r.apply(r,arguments)}},function(t,e,r){var n=r(57),o=r(33);t.exports=function(t){return n(o(t))}},function(t,e,r){var n=r(0),o=r(2),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(n[t]):n[t]&&n[t][e]}},function(t,e,r){var n=r(0),o=r(33),i=n.Object;t.exports=function(t){return i(o(t))}},function(t,e,r){var n=r(0),o=r(2),i=r(6),u=r(16),c=r(42),f=r(39),a=r(20),s=r(55).CONFIGURABLE,p=a.get,l=a.enforce,v=String(String).split("String");(t.exports=function(t,e,r,f){var a,p=!!f&&!!f.unsafe,y=!!f&&!!f.enumerable,d=!!f&&!!f.noTargetGet,h=f&&void 0!==f.name?f.name:e;o(r)&&("Symbol("===String(h).slice(0,7)&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(r,"name")||s&&r.name!==h)&&u(r,"name",h),(a=l(r)).source||(a.source=v.join("string"==typeof h?h:""))),t!==n?(p?!d&&t[e]&&(y=!0):delete t[e],y?t[e]=r:u(t,e,r)):y?t[e]=r:c(e,r)})(Function.prototype,"toString",(function(){return o(this)&&p(this).source||f(this)}))},function(t,e,r){var n=r(7),o=r(8),i=r(22);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(90);t.exports=function(t){return n(t.length)}},function(t,e,r){var n,o=r(10),i=r(94),u=r(48),c=r(24),f=r(105),a=r(43),s=r(30),p=s("IE_PROTO"),l=function(){},v=function(t){return"<script>"+t+"<\/script>"},y=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},d=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e;d="undefined"!=typeof document?document.domain&&n?y(n):((e=a("iframe")).style.display="none",f.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):y(n);for(var r=u.length;r--;)delete d.prototype[u[r]];return d()};c[p]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(l.prototype=o(t),r=new l,l.prototype=null,r[p]=t):r=d(),void 0===e?r:i(r,e)}},function(t,e,r){var n=r(1),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},function(t,e,r){var n,o,i,u=r(99),c=r(0),f=r(1),a=r(9),s=r(16),p=r(6),l=r(41),v=r(30),y=r(24),d=c.TypeError,h=c.WeakMap;if(u||l.state){var g=l.state||(l.state=new h),b=f(g.get),x=f(g.has),m=f(g.set);n=function(t,e){if(x(g,t))throw new d("Object already initialized");return e.facade=t,m(g,t,e),e},o=function(t){return b(g,t)||{}},i=function(t){return x(g,t)}}else{var O=v("state");y[O]=!0,n=function(t,e){if(p(t,O))throw new d("Object already initialized");return e.facade=t,s(t,O,e),e},o=function(t){return p(t,O)?t[O]:{}},i=function(t){return p(t,O)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!a(e)||(r=o(e)).type!==t)throw d("Incompatible receiver, "+t+" required");return r}}}},function(t,e,r){var n=r(0),o=r(32),i=n.String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},,function(t,e){t.exports={}},function(t,e,r){var n=r(7),o=r(11),i=r(60),u=r(22),c=r(12),f=r(27),a=r(6),s=r(63),p=Object.getOwnPropertyDescriptor;e.f=n?p:function(t,e){if(t=c(t),e=f(e),s)try{return p(t,e)}catch(t){}if(a(t,e))return u(!o(i.f,t,e),t[e])}},function(t,e,r){var n=r(1);t.exports=n({}.isPrototypeOf)},function(t,e,r){var n=r(93),o=r(40);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},function(t,e){t.exports={}},function(t,e){t.exports=!1},function(t,e,r){var n=r(34),o=r(36),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e,r){var n=r(19);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(0),o=r(44),i=r(2),u=r(19),c=r(4)("toStringTag"),f=n.Object,a="Arguments"==u(function(){return arguments}());t.exports=o?u:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=f(t),c))?r:a?u(e):"Object"==(n=u(e))&&i(e.callee)?"Arguments":n}},function(t,e,r){var n=r(0).TypeError;t.exports=function(t){if(null==t)throw n("Can't call method on "+t);return t}},function(t,e,r){var n=r(29),o=r(41);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,r){var n=r(0),o=r(2),i=r(52),u=n.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a function")}},function(t,e,r){var n=r(1),o=0,i=Math.random(),u=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},function(t,e,r){var n=r(66),o=r(48).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){var e=+t;return e!=e||0===e?0:(e>0?n:r)(e)}},function(t,e,r){var n=r(1),o=r(2),i=r(41),u=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},function(t,e,r){var n=r(0),o=r(13),i=r(2),u=r(26),c=r(62),f=n.Object;t.exports=c?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return i(e)&&u(e.prototype,f(t))}},function(t,e,r){var n=r(0),o=r(42),i=n["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,r){var n=r(0),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},function(t,e,r){var n=r(0),o=r(9),i=n.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,e,r){var n={};n[r(4)("toStringTag")]="z",t.exports="[object z]"===String(n)},function(t,e,r){"use strict";var n=r(27),o=r(8),i=r(22);t.exports=function(t,e,r){var u=n(e);u in t?o.f(t,u,i(0,r)):t[u]=r}},function(t,e,r){var n=r(8).f,o=r(6),i=r(4)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},function(t,e,r){var n=r(51),o=r(3);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,r){var n=r(1),o=r(35),i=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?i(t,e):function(){return t.apply(e,arguments)}}},function(t,e,r){var n=r(35);t.exports=function(t,e){var r=t[e];return null==r?void 0:n(r)}},function(t,e,r){var n,o,i=r(0),u=r(74),c=i.process,f=i.Deno,a=c&&c.versions||f&&f.version,s=a&&a.v8;s&&(o=(n=s.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&u&&(!(n=u.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=u.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},function(t,e,r){var n=r(0).String;t.exports=function(t){try{return n(t)}catch(t){return"Object"}}},function(t,e,r){var n=r(38),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},function(t,e,r){var n=r(1),o=r(3),i=r(2),u=r(32),c=r(13),f=r(39),a=function(){},s=[],p=c("Reflect","construct"),l=/^\s*(?:class|function)\b/,v=n(l.exec),y=!l.exec(a),d=function(t){if(!i(t))return!1;try{return p(a,s,t),!0}catch(t){return!1}};t.exports=!p||o((function(){var t;return d(d.call)||!d(Object)||!d((function(){t=!0}))||t}))?function(t){if(!i(t))return!1;switch(u(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return y||!!v(l,f(t))}:d},function(t,e,r){var n=r(7),o=r(6),i=Function.prototype,u=n&&Object.getOwnPropertyDescriptor,c=o(i,"name"),f=c&&"something"===function(){}.name,a=c&&(!n||n&&u(i,"name").configurable);t.exports={EXISTS:c,PROPER:f,CONFIGURABLE:a}},function(t,e,r){var n=r(49),o=r(1),i=r(57),u=r(14),c=r(17),f=r(71),a=o([].push),s=function(t){var e=1==t,r=2==t,o=3==t,s=4==t,p=6==t,l=7==t,v=5==t||p;return function(y,d,h,g){for(var b,x,m=u(y),O=i(m),S=n(d,h),w=c(O),j=0,P=g||f,E=e?P(y,w):r||l?P(y,0):void 0;w>j;j++)if((v||j in O)&&(x=S(b=O[j],j,m),t))if(e)E[j]=x;else if(x)switch(t){case 3:return!0;case 5:return b;case 6:return j;case 2:a(E,b)}else switch(t){case 4:return!1;case 7:a(E,b)}return p?-1:o||s?s:E}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},function(t,e,r){var n=r(0),o=r(1),i=r(3),u=r(19),c=n.Object,f=o("".split);t.exports=i((function(){return!c("z").propertyIsEnumerable(0)}))?function(t){return"String"==u(t)?f(t,""):c(t)}:c},function(t,e,r){"use strict";var n=r(12),o=r(103),i=r(28),u=r(20),c=r(67),f=u.set,a=u.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){f(this,{type:"Array Iterator",target:n(t),index:0,kind:e})}),(function(){var t=a(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,r){var n=r(66),o=r(48);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:n},function(t,e,r){var n=r(44),o=r(15),i=r(101);n||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,r){var n=r(47);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,r){var n=r(7),o=r(3),i=r(43);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(0),o=r(6),i=r(2),u=r(14),c=r(30),f=r(104),a=c("IE_PROTO"),s=n.Object,p=s.prototype;t.exports=f?s.getPrototypeOf:function(t){var e=u(t);if(o(e,a))return e[a];var r=e.constructor;return i(r)&&e instanceof r?r.prototype:e instanceof s?p:null}},function(t,e,r){var n=r(1),o=r(6),i=r(12),u=r(91).indexOf,c=r(24),f=n([].push);t.exports=function(t,e){var r,n=i(t),a=0,s=[];for(r in n)!o(c,r)&&o(n,r)&&f(s,r);for(;e.length>a;)o(n,r=e[a++])&&(~u(s,r)||f(s,r));return s}},function(t,e,r){"use strict";var n=r(5),o=r(11),i=r(29),u=r(55),c=r(2),f=r(113),a=r(65),s=r(81),p=r(46),l=r(16),v=r(15),y=r(4),d=r(28),h=r(80),g=u.PROPER,b=u.CONFIGURABLE,x=h.IteratorPrototype,m=h.BUGGY_SAFARI_ITERATORS,O=y("iterator"),S=function(){return this};t.exports=function(t,e,r,u,y,h,w){f(r,e,u);var j,P,E,T=function(t){if(t===y&&_)return _;if(!m&&t in I)return I[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},A=e+" Iterator",k=!1,I=t.prototype,L=I[O]||I["@@iterator"]||y&&I[y],_=!m&&L||T(y),N="Array"==e&&I.entries||L;if(N&&(j=a(N.call(new t)))!==Object.prototype&&j.next&&(i||a(j)===x||(s?s(j,x):c(j[O])||v(j,O,S)),p(j,A,!0,!0),i&&(d[A]=S)),g&&"values"==y&&L&&"values"!==L.name&&(!i&&b?l(I,"name","values"):(k=!0,_=function(){return o(L,this)})),y)if(P={values:T("values"),keys:h?_:T("keys"),entries:T("entries")},w)for(E in P)(m||k||!(E in I))&&v(I,E,P[E]);else n({target:e,proto:!0,forced:m||k},P);return i&&!w||I[O]===_||v(I,O,_,{name:y}),d[e]=_,P}},function(t,e,r){var n=r(6),o=r(86),i=r(25),u=r(8);t.exports=function(t,e){for(var r=o(e),c=u.f,f=i.f,a=0;a<r.length;a++){var s=r[a];n(t,s)||c(t,s,f(e,s))}}},function(t,e,r){var n=r(1);t.exports=n([].slice)},function(t,e,r){var n=r(3),o=r(2),i=/#|\.prototype\./,u=function(t,e){var r=f[c(t)];return r==s||r!=a&&(o(e)?n(e):!!e)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},f=u.data={},a=u.NATIVE="N",s=u.POLYFILL="P";t.exports=u},function(t,e,r){var n=r(100);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},function(t,e,r){var n=r(3),o=r(4),i=r(51),u=o("species");t.exports=function(t){return i>=51||!n((function(){var e=[];return(e.constructor={})[u]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,r){var n=r(5),o=r(7);n({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:r(8).f})},function(t,e,r){var n=r(13);t.exports=n("navigator","userAgent")||""},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,r){var n=r(43)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},function(t,e,r){"use strict";var n=r(106).charAt,o=r(21),i=r(20),u=r(67),c=i.set,f=i.getterFor("String Iterator");u(String,"String",(function(t){c(this,{type:"String Iterator",string:o(t),index:0})}),(function(){var t,e=f(this),r=e.string,o=e.index;return o>=r.length?{value:void 0,done:!0}:(t=n(r,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,r){"use strict";var n=r(5),o=r(0),i=r(13),u=r(92),c=r(11),f=r(1),a=r(29),s=r(7),p=r(47),l=r(3),v=r(6),y=r(31),d=r(2),h=r(9),g=r(26),b=r(40),x=r(10),m=r(14),O=r(12),S=r(27),w=r(21),j=r(22),P=r(18),E=r(59),T=r(37),A=r(102),k=r(64),I=r(25),L=r(8),_=r(60),N=r(69),M=r(15),R=r(34),F=r(30),D=r(24),C=r(36),H=r(4),z=r(88),G=r(89),B=r(46),V=r(20),U=r(56).forEach,W=F("hidden"),J=H("toPrimitive"),K=V.set,Y=V.getterFor("Symbol"),$=Object.prototype,q=o.Symbol,X=q&&q.prototype,Q=o.TypeError,Z=o.QObject,tt=i("JSON","stringify"),et=I.f,rt=L.f,nt=A.f,ot=_.f,it=f([].push),ut=R("symbols"),ct=R("op-symbols"),ft=R("string-to-symbol-registry"),at=R("symbol-to-string-registry"),st=R("wks"),pt=!Z||!Z.prototype||!Z.prototype.findChild,lt=s&&l((function(){return 7!=P(rt({},"a",{get:function(){return rt(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=et($,e);n&&delete $[e],rt(t,e,r),n&&t!==$&&rt($,e,n)}:rt,vt=function(t,e){var r=ut[t]=P(X);return K(r,{type:"Symbol",tag:t,description:e}),s||(r.description=e),r},yt=function(t,e,r){t===$&&yt(ct,e,r),x(t);var n=S(e);return x(r),v(ut,n)?(r.enumerable?(v(t,W)&&t[W][n]&&(t[W][n]=!1),r=P(r,{enumerable:j(0,!1)})):(v(t,W)||rt(t,W,j(1,{})),t[W][n]=!0),lt(t,n,r)):rt(t,n,r)},dt=function(t,e){x(t);var r=O(e),n=E(r).concat(xt(r));return U(n,(function(e){s&&!c(ht,r,e)||yt(t,e,r[e])})),t},ht=function(t){var e=S(t),r=c(ot,this,e);return!(this===$&&v(ut,e)&&!v(ct,e))&&(!(r||!v(this,e)||!v(ut,e)||v(this,W)&&this[W][e])||r)},gt=function(t,e){var r=O(t),n=S(e);if(r!==$||!v(ut,n)||v(ct,n)){var o=et(r,n);return!o||!v(ut,n)||v(r,W)&&r[W][n]||(o.enumerable=!0),o}},bt=function(t){var e=nt(O(t)),r=[];return U(e,(function(t){v(ut,t)||v(D,t)||it(r,t)})),r},xt=function(t){var e=t===$,r=nt(e?ct:O(t)),n=[];return U(r,(function(t){!v(ut,t)||e&&!v($,t)||it(n,ut[t])})),n};(p||(M(X=(q=function(){if(g(X,this))throw Q("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?w(arguments[0]):void 0,e=C(t),r=function(t){this===$&&c(r,ct,t),v(this,W)&&v(this[W],e)&&(this[W][e]=!1),lt(this,e,j(1,t))};return s&&pt&&lt($,e,{configurable:!0,set:r}),vt(e,t)}).prototype,"toString",(function(){return Y(this).tag})),M(q,"withoutSetter",(function(t){return vt(C(t),t)})),_.f=ht,L.f=yt,I.f=gt,T.f=A.f=bt,k.f=xt,z.f=function(t){return vt(H(t),t)},s&&(rt(X,"description",{configurable:!0,get:function(){return Y(this).description}}),a||M($,"propertyIsEnumerable",ht,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!p,sham:!p},{Symbol:q}),U(E(st),(function(t){G(t)})),n({target:"Symbol",stat:!0,forced:!p},{for:function(t){var e=w(t);if(v(ft,e))return ft[e];var r=q(e);return ft[e]=r,at[r]=e,r},keyFor:function(t){if(!b(t))throw Q(t+" is not a symbol");if(v(at,t))return at[t]},useSetter:function(){pt=!0},useSimple:function(){pt=!1}}),n({target:"Object",stat:!0,forced:!p,sham:!s},{create:function(t,e){return void 0===e?P(t):dt(P(t),e)},defineProperty:yt,defineProperties:dt,getOwnPropertyDescriptor:gt}),n({target:"Object",stat:!0,forced:!p},{getOwnPropertyNames:bt,getOwnPropertySymbols:xt}),n({target:"Object",stat:!0,forced:l((function(){k.f(1)}))},{getOwnPropertySymbols:function(t){return k.f(m(t))}}),tt)&&n({target:"JSON",stat:!0,forced:!p||l((function(){var t=q();return"[null]"!=tt([t])||"{}"!=tt({a:t})||"{}"!=tt(Object(t))}))},{stringify:function(t,e,r){var n=N(arguments),o=e;if((h(e)||void 0!==t)&&!b(t))return y(e)||(e=function(t,e){if(d(o)&&(e=c(o,this,t,e)),!b(e))return e}),n[1]=e,u(tt,null,n)}});if(!X[J]){var mt=X.valueOf;M(X,J,(function(t){return c(mt,this)}))}B(q,"Symbol"),D[W]=!0},function(t,e,r){"use strict";var n=r(56).forEach,o=r(85)("forEach");t.exports=o?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,r){"use strict";var n,o,i,u=r(3),c=r(2),f=r(18),a=r(65),s=r(15),p=r(4),l=r(29),v=p("iterator"),y=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(n=o):y=!0),null==n||u((function(){var t={};return n[v].call(t)!==t}))?n={}:l&&(n=f(n)),c(n[v])||s(n,v,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:y}},function(t,e,r){var n=r(1),o=r(10),i=r(114);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return o(r),i(n),e?t(r,n):r.__proto__=n,r}}():void 0)},function(t,e,r){var n=r(0),o=r(75),i=r(76),u=r(58),c=r(16),f=r(4),a=f("iterator"),s=f("toStringTag"),p=u.values,l=function(t,e){if(t){if(t[a]!==p)try{c(t,a,p)}catch(e){t[a]=p}if(t[s]||c(t,s,e),o[e])for(var r in u)if(t[r]!==u[r])try{c(t,r,u[r])}catch(e){t[r]=u[r]}}};for(var v in o)l(n[v]&&n[v].prototype,v);l(i,"DOMTokenList")},function(t,e,r){"use strict";var n=r(5),o=r(7),i=r(0),u=r(1),c=r(6),f=r(2),a=r(26),s=r(21),p=r(8).f,l=r(68),v=i.Symbol,y=v&&v.prototype;if(o&&f(v)&&(!("description"in y)||void 0!==v().description)){var d={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:s(arguments[0]),e=a(y,this)?new v(t):void 0===t?v():v(t);return""===t&&(d[e]=!0),e};l(h,v),h.prototype=y,y.constructor=h;var g="Symbol(test)"==String(v("test")),b=u(y.toString),x=u(y.valueOf),m=/^Symbol\((.*)\)[^)]+$/,O=u("".replace),S=u("".slice);p(y,"description",{configurable:!0,get:function(){var t=x(this),e=b(t);if(c(d,t))return"";var r=g?S(e,7,-1):O(e,m,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:h})}},function(t,e,r){r(89)("iterator")},function(t,e,r){"use strict";var n=r(3);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},function(t,e,r){var n=r(13),o=r(1),i=r(37),u=r(64),c=r(10),f=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(c(t)),r=u.f;return r?f(e,r(t)):e}},function(t,e,r){var n=r(32),o=r(50),i=r(28),u=r(4)("iterator");t.exports=function(t){if(null!=t)return o(t,u)||o(t,"@@iterator")||i[n(t)]}},function(t,e,r){var n=r(4);e.f=n},function(t,e,r){var n=r(116),o=r(6),i=r(88),u=r(8).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});o(e,t)||u(e,t,{value:i.f(t)})}},function(t,e,r){var n=r(38),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,r){var n=r(12),o=r(53),i=r(17),u=function(t){return function(e,r,u){var c,f=n(e),a=i(f),s=o(u,a);if(t&&r!=r){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===r)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,e){var r=Function.prototype,n=r.apply,o=r.bind,i=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?i.bind(n):function(){return i.apply(n,arguments)})},function(t,e,r){var n=r(0),o=r(11),i=r(9),u=r(40),c=r(50),f=r(98),a=r(4),s=n.TypeError,p=a("toPrimitive");t.exports=function(t,e){if(!i(t)||u(t))return t;var r,n=c(t,p);if(n){if(void 0===e&&(e="default"),r=o(n,t,e),!i(r)||u(r))return r;throw s("Can't convert object to primitive value")}return void 0===e&&(e="number"),f(t,e)}},function(t,e,r){var n=r(7),o=r(8),i=r(10),u=r(12),c=r(59);t.exports=n?Object.defineProperties:function(t,e){i(t);for(var r,n=u(e),f=c(e),a=f.length,s=0;a>s;)o.f(t,r=f[s++],n[r]);return t}},function(t,e,r){"use strict";var n=r(5),o=r(79);n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(0),o=r(75),i=r(76),u=r(79),c=r(16),f=function(t){if(t&&t.forEach!==u)try{c(t,"forEach",u)}catch(e){t.forEach=u}};for(var a in o)o[a]&&f(n[a]&&n[a].prototype);f(i)},function(t,e,r){var n=r(0),o=r(11),i=r(2),u=r(9),c=n.TypeError;t.exports=function(t,e){var r,n;if("string"===e&&i(r=t.toString)&&!u(n=o(r,t)))return n;if(i(r=t.valueOf)&&!u(n=o(r,t)))return n;if("string"!==e&&i(r=t.toString)&&!u(n=o(r,t)))return n;throw c("Can't convert object to primitive value")}},function(t,e,r){var n=r(0),o=r(2),i=r(39),u=n.WeakMap;t.exports=o(u)&&/native code/.test(i(u))},function(t,e,r){var n=r(0),o=r(31),i=r(54),u=r(9),c=r(4)("species"),f=n.Array;t.exports=function(t){var e;return o(t)&&(e=t.constructor,(i(e)&&(e===f||o(e.prototype))||u(e)&&null===(e=e[c]))&&(e=void 0)),void 0===e?f:e}},function(t,e,r){"use strict";var n=r(44),o=r(32);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,r){var n=r(19),o=r(12),i=r(37).f,u=r(107),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"Window"==n(t)?function(t){try{return i(t)}catch(t){return u(c)}}(t):i(o(t))}},function(t,e,r){var n=r(4),o=r(18),i=r(8),u=n("unscopables"),c=Array.prototype;null==c[u]&&i.f(c,u,{configurable:!0,value:o(null)}),t.exports=function(t){c[u][t]=!0}},function(t,e,r){var n=r(3);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,r){var n=r(13);t.exports=n("document","documentElement")},function(t,e,r){var n=r(1),o=r(38),i=r(21),u=r(33),c=n("".charAt),f=n("".charCodeAt),a=n("".slice),s=function(t){return function(e,r){var n,s,p=i(u(e)),l=o(r),v=p.length;return l<0||l>=v?t?"":void 0:(n=f(p,l))<55296||n>56319||l+1===v||(s=f(p,l+1))<56320||s>57343?t?c(p,l):n:t?a(p,l,l+2):s-56320+(n-55296<<10)+65536}};t.exports={codeAt:s(!1),charAt:s(!0)}},function(t,e,r){var n=r(0),o=r(53),i=r(17),u=r(45),c=n.Array,f=Math.max;t.exports=function(t,e,r){for(var n=i(t),a=o(e,n),s=o(void 0===r?n:r,n),p=c(f(s-a,0)),l=0;a<s;a++,l++)u(p,l,t[a]);return p.length=l,p}},,function(t,e,r){var n=r(4),o=r(28),i=n("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,e,r){var n=r(0),o=r(11),i=r(35),u=r(10),c=r(52),f=r(87),a=n.TypeError;t.exports=function(t,e){var r=arguments.length<2?f(t):e;if(i(r))return u(o(r,t));throw a(c(t)+" is not iterable")}},function(t,e,r){var n=r(11),o=r(10),i=r(50);t.exports=function(t,e,r){var u,c;o(t);try{if(!(u=i(t,"return"))){if("throw"===e)throw r;return r}u=n(u,t)}catch(t){c=!0,u=t}if("throw"===e)throw r;if(c)throw u;return o(u),r}},function(t,e,r){var n=r(4)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[n]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},function(t,e,r){"use strict";var n=r(80).IteratorPrototype,o=r(18),i=r(22),u=r(46),c=r(28),f=function(){return this};t.exports=function(t,e,r,a){var s=e+" Iterator";return t.prototype=o(n,{next:i(+!a,r)}),u(t,s,!1,!0),c[s]=f,t}},function(t,e,r){var n=r(0),o=r(2),i=n.String,u=n.TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw u("Can't set "+i(t)+" as a prototype")}},,function(t,e,r){var n=r(0);t.exports=n},function(t,e,r){var n=r(5),o=r(3),i=r(12),u=r(25).f,c=r(7),f=o((function(){u(1)}));n({target:"Object",stat:!0,forced:!c||f,sham:!c},{getOwnPropertyDescriptor:function(t,e){return u(i(t),e)}})},,function(t,e,r){var n=r(0),o=r(49),i=r(11),u=r(10),c=r(52),f=r(109),a=r(17),s=r(26),p=r(110),l=r(87),v=r(111),y=n.TypeError,d=function(t,e){this.stopped=t,this.result=e},h=d.prototype;t.exports=function(t,e,r){var n,g,b,x,m,O,S,w=r&&r.that,j=!(!r||!r.AS_ENTRIES),P=!(!r||!r.IS_ITERATOR),E=!(!r||!r.INTERRUPTED),T=o(e,w),A=function(t){return n&&v(n,"normal",t),new d(!0,t)},k=function(t){return j?(u(t),E?T(t[0],t[1],A):T(t[0],t[1])):E?T(t,A):T(t)};if(P)n=t;else{if(!(g=l(t)))throw y(c(t)+" is not iterable");if(f(g)){for(b=0,x=a(t);x>b;b++)if((m=k(t[b]))&&s(h,m))return m;return new d(!1)}n=p(t,g)}for(O=n.next;!(S=i(O,n)).done;){try{m=k(S.value)}catch(t){v(n,"throw",t)}if("object"==typeof m&&m&&s(h,m))return m}return new d(!1)}},function(t,e,r){var n=r(0),o=r(26),i=n.TypeError;t.exports=function(t,e){if(o(e,t))return t;throw i("Incorrect invocation")}},,,,,,,,,function(t,e,r){var n=r(5),o=r(1),i=r(24),u=r(9),c=r(6),f=r(8).f,a=r(37),s=r(102),p=r(146),l=r(36),v=r(148),y=!1,d=l("meta"),h=0,g=function(t){f(t,d,{value:{objectID:"O"+h++,weakData:{}}})},b=t.exports={enable:function(){b.enable=function(){},y=!0;var t=a.f,e=o([].splice),r={};r[d]=1,t(r).length&&(a.f=function(r){for(var n=t(r),o=0,i=n.length;o<i;o++)if(n[o]===d){e(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:s.f}))},fastKey:function(t,e){if(!u(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!c(t,d)){if(!p(t))return"F";if(!e)return"E";g(t)}return t[d].objectID},getWeakData:function(t,e){if(!c(t,d)){if(!p(t))return!0;if(!e)return!1;g(t)}return t[d].weakData},onFreeze:function(t){return v&&y&&p(t)&&!c(t,d)&&g(t),t}};i[d]=!0},function(t,e,r){var n=r(5),o=r(14),i=r(59);n({target:"Object",stat:!0,forced:r(3)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},,,,,,,function(t,e,r){"use strict";var n=r(5),o=r(56).filter;n({target:"Array",proto:!0,forced:!r(72)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(2),o=r(9),i=r(81);t.exports=function(t,e,r){var u,c;return i&&n(u=e.constructor)&&u!==r&&o(c=u.prototype)&&c!==r.prototype&&i(t,c),t}},function(t,e,r){var n=r(5),o=r(7),i=r(86),u=r(12),c=r(25),f=r(45);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,r,n=u(t),o=c.f,a=i(n),s={},p=0;a.length>p;)void 0!==(r=o(n,e=a[p++]))&&f(s,e,r);return s}})},function(t,e,r){var n=r(5),o=r(7);n({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:r(94)})},function(t,e,r){var n=r(15);t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},function(t,e,r){"use strict";var n=r(13),o=r(8),i=r(4),u=r(7),c=i("species");t.exports=function(t){var e=n(t),r=o.f;u&&e&&!e[c]&&r(e,c,{configurable:!0,get:function(){return this}})}},function(t,e,r){"use strict";var n=r(5),o=r(0),i=r(1),u=r(70),c=r(15),f=r(129),a=r(119),s=r(120),p=r(2),l=r(9),v=r(3),y=r(112),d=r(46),h=r(138);t.exports=function(t,e,r){var g=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),x=g?"set":"add",m=o[t],O=m&&m.prototype,S=m,w={},j=function(t){var e=i(O[t]);c(O,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(b&&!l(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return b&&!l(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!l(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(u(t,!p(m)||!(b||O.forEach&&!v((function(){(new m).entries().next()})))))S=r.getConstructor(e,t,g,x),f.enable();else if(u(t,!0)){var P=new S,E=P[x](b?{}:-0,1)!=P,T=v((function(){P.has(1)})),A=y((function(t){new m(t)})),k=!b&&v((function(){for(var t=new m,e=5;e--;)t[x](e,e);return!t.has(-0)}));A||((S=e((function(t,e){s(t,O);var r=h(new m,t,S);return null!=e&&a(e,r[x],{that:r,AS_ENTRIES:g}),r}))).prototype=O,O.constructor=S),(T||k)&&(j("delete"),j("has"),g&&j("get")),(k||E)&&j(x),b&&O.clear&&delete O.clear}return w[t]=S,n({global:!0,forced:S!=m},w),d(S,t),b||r.setStrong(S,t,g),S}},function(t,e,r){"use strict";var n=r(8).f,o=r(18),i=r(141),u=r(49),c=r(120),f=r(119),a=r(67),s=r(142),p=r(7),l=r(129).fastKey,v=r(20),y=v.set,d=v.getterFor;t.exports={getConstructor:function(t,e,r,a){var s=t((function(t,n){c(t,v),y(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),p||(t.size=0),null!=n&&f(n,t[a],{that:t,AS_ENTRIES:r})})),v=s.prototype,h=d(e),g=function(t,e,r){var n,o,i=h(t),u=b(t,e);return u?u.value=r:(i.last=u={index:o=l(e,!0),key:e,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=u),n&&(n.next=u),p?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},b=function(t,e){var r,n=h(t),o=l(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return i(v,{clear:function(){for(var t=h(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,p?t.size=0:this.size=0},delete:function(t){var e=h(this),r=b(this,t);if(r){var n=r.next,o=r.previous;delete e.index[r.index],r.removed=!0,o&&(o.next=n),n&&(n.previous=o),e.first==r&&(e.first=n),e.last==r&&(e.last=o),p?e.size--:this.size--}return!!r},forEach:function(t){for(var e,r=h(this),n=u(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),i(v,r?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),p&&n(v,"size",{get:function(){return h(this).size}}),s},setStrong:function(t,e,r){var n=e+" Iterator",o=d(e),i=d(n);a(t,e,(function(t,e){y(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),s(e)}}},,function(t,e,r){var n=r(3),o=r(9),i=r(19),u=r(147),c=Object.isExtensible,f=n((function(){c(1)}));t.exports=f||u?function(t){return!!o(t)&&((!u||"ArrayBuffer"!=i(t))&&(!c||c(t)))}:c},function(t,e,r){var n=r(3);t.exports=n((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},function(t,e,r){var n=r(3);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},,,function(t,e,r){"use strict";r(143)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r(144))},,,,,,,,,,function(t,e,r){var n=r(19),o=r(0);t.exports="process"==n(o.process)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";r.r(e),r.d(e,"AutoLayout",(function(){return p}));r(58),r(151),r(61),r(77),r(82),r(95),r(97),r(221),r(73),r(78),r(83),r(84),r(130),r(137),r(117),r(139),r(140);function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var f=-1,a=0,s=1,p=function(){function t(e){var r=this,n=e.lf;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.lf=n,this.trunk=[],n.layout=function(t){var e=r.lf.getGraphRawData();r.lf.setStartNodeType(t);var n=r.lf.getPathes();return r.levelHeight=[],r.newNodeMap=new Map,r.layout(e,n)}}var e,r,n;return e=t,(r=[{key:"layout",value:function(t,e){var r=this,n=[];e.forEach((function(t){var e=t.elements;e.length>n.length?n=e:e.length===n.length&&JSON.stringify(e)===JSON.stringify(r.trunk)&&(n=r.trunk)})),this.trunk=n;for(var o=this.formatData(t),i={nodes:[],edges:[]},u=n.length-1;u>=0;u--)this.setNodePosition(n[u],o,i,u,1);this.lf.graphModel.graphDataToModel(i)}},{key:"setNodePosition",value:function(t,e,r,n,u){var c=this,f=e[t],a=f.text,s=f.type,p=f.next,l=f.properties,v=160*n+40,y=120*u,d={id:t,x:v,text:a,y:y,type:s,properties:l};return a&&"object"===i(a)&&(d.text=o(o({},a),{},{x:v+a.x,y:y+a.y})),this.newNodeMap.set(d.id,{x:d.x,y:d.y,type:s}),r.nodes.push(d),f.isFixed=!0,this.addLevelHeight(n,1),p&&p.length>0&&p.forEach((function(i){if(!e[i.nodeId].isFixed){var u=c.getLevelHeight(n+1);c.addLevelHeight(n,1),c.setNodePosition(i.nodeId,e,r,n+1,u+1)}r.edges.push(o({id:i.edgeId,type:i.edgeType,sourceNodeId:t,targetNodeId:i.nodeId,properties:i.properties,text:i.text},c.getEdgeDataPoints(t,i.nodeId)))})),d}},{key:"getEdgeDataPoints",value:function(t,e){var r=this.newNodeMap.get(t),n=this.newNodeMap.get(e),o=this.getShape(t),i=o.width,u=o.height,c=this.getShape(e),p=c.width,l=c.height,v=this.getRelativePosition(r,n),y={x:r.x,y:r.y},d={x:n.x,y:n.y};switch(v){case a:y.x=r.x+i/2,d.x=n.x-p/2;break;case f:y.y=r.y+u/2,d.x=n.x-p/2;break;case s:y.x=r.x+i/2,d.y=n.y+l/2}return{startPoint:y,endPoint:d}}},{key:"getRelativePosition",value:function(t,e){var r=t.y,n=e.y;return r<n?-1:r===n?0:1}},{key:"getShape",value:function(t){var e=this.lf.getNodeModelById(t);return{height:e.height,width:e.width}}},{key:"formatData",value:function(t){var e=t.nodes.reduce((function(t,e){var r=e.type,n=e.properties,o=e.text,u=e.x,c=e.y;return o&&"object"===i(o)&&(o.x=o.x-u,o.y=o.y-c),t[e.id]={type:r,properties:n,text:o,prev:[],next:[]},t}),{});return t.edges.forEach((function(t){var r=t.sourceNodeId,n=t.targetNodeId,o=t.id,u=t.properties,c=t.text,f=c;"object"===i(c)&&(f=c.value),e[r].next.push({edgeId:o,nodeId:n,edgeType:t.type,properties:u,text:f}),e[n].prev.push({edgeId:o,nodeId:r,properties:u,text:f})})),e}},{key:"addLevelHeight",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.levelHeight[t];n||(n={positiveHeight:0,negativeHeight:0},this.levelHeight[t]=n),r?n.negativeHeight-=e:n.positiveHeight+=e}},{key:"getLevelHeight",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.levelHeight[t];return r?e?r.negativeHeight:r.positiveHeight:0}}])&&u(e.prototype,r),n&&u(e,n),t}();c(p,"pluginName","AutoLayout")},function(t,e,r){"use strict";var n=r(5),o=r(222).left,i=r(85),u=r(51),c=r(161);n({target:"Array",proto:!0,forced:!i("reduce")||!c&&u>79&&u<83},{reduce:function(t){var e=arguments.length;return o(this,t,e,e>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(0),o=r(35),i=r(14),u=r(57),c=r(17),f=n.TypeError,a=function(t){return function(e,r,n,a){o(r);var s=i(e),p=u(s),l=c(s),v=t?l-1:0,y=t?-1:1;if(n<2)for(;;){if(v in p){a=p[v],v+=y;break}if(v+=y,t?v<0:l<=v)throw f("Reduce of empty array with no initial value")}for(;t?v>=0:l>v;v+=y)v in p&&(a=r(a,p[v],v,s));return a}};t.exports={left:a(!1),right:a(!0)}}])}));
1
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r=e();for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(window,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=231)}([function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,r(95))},function(t,e){var r=Function.prototype,n=r.bind,o=r.call,i=n&&n.bind(o);t.exports=n?function(t){return t&&i(o,t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){var n=r(0),o=r(34),i=r(6),u=r(36),c=r(47),f=r(62),a=o("wks"),s=n.Symbol,p=s&&s.for,l=f?s:s&&s.withoutSetter||u;t.exports=function(t){if(!i(a,t)||!c&&"string"!=typeof a[t]){var e="Symbol."+t;c&&i(s,t)?a[t]=s[t]:a[t]=f&&p?p(e):l(e)}return a[t]}},function(t,e,r){var n=r(0),o=r(25).f,i=r(16),u=r(15),c=r(42),f=r(68),a=r(70);t.exports=function(t,e){var r,s,p,l,v,y=t.target,d=t.global,h=t.stat;if(r=d?n:h?n[y]||c(y,{}):(n[y]||{}).prototype)for(s in e){if(l=e[s],p=t.noTargetGet?(v=o(r,s))&&v.value:r[s],!a(d?s:y+(h?".":"#")+s,t.forced)&&void 0!==p){if(typeof l==typeof p)continue;f(l,p)}(t.sham||p&&p.sham)&&i(l,"sham",!0),u(r,s,l,t)}}},function(t,e,r){var n=r(1),o=r(14),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},function(t,e,r){var n=r(3);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,r){var n=r(0),o=r(7),i=r(63),u=r(10),c=r(27),f=n.TypeError,a=Object.defineProperty;e.f=o?a:function(t,e,r){if(u(t),e=c(e),u(r),i)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw f("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(2);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},function(t,e,r){var n=r(0),o=r(9),i=n.String,u=n.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not an object")}},function(t,e){var r=Function.prototype.call;t.exports=r.bind?r.bind(r):function(){return r.apply(r,arguments)}},function(t,e,r){var n=r(57),o=r(33);t.exports=function(t){return n(o(t))}},function(t,e,r){var n=r(0),o=r(2),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(n[t]):n[t]&&n[t][e]}},function(t,e,r){var n=r(0),o=r(33),i=n.Object;t.exports=function(t){return i(o(t))}},function(t,e,r){var n=r(0),o=r(2),i=r(6),u=r(16),c=r(42),f=r(39),a=r(20),s=r(55).CONFIGURABLE,p=a.get,l=a.enforce,v=String(String).split("String");(t.exports=function(t,e,r,f){var a,p=!!f&&!!f.unsafe,y=!!f&&!!f.enumerable,d=!!f&&!!f.noTargetGet,h=f&&void 0!==f.name?f.name:e;o(r)&&("Symbol("===String(h).slice(0,7)&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(r,"name")||s&&r.name!==h)&&u(r,"name",h),(a=l(r)).source||(a.source=v.join("string"==typeof h?h:""))),t!==n?(p?!d&&t[e]&&(y=!0):delete t[e],y?t[e]=r:u(t,e,r)):y?t[e]=r:c(e,r)})(Function.prototype,"toString",(function(){return o(this)&&p(this).source||f(this)}))},function(t,e,r){var n=r(7),o=r(8),i=r(22);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(90);t.exports=function(t){return n(t.length)}},function(t,e,r){var n,o=r(10),i=r(94),u=r(48),c=r(24),f=r(105),a=r(43),s=r(30),p=s("IE_PROTO"),l=function(){},v=function(t){return"<script>"+t+"<\/script>"},y=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},d=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e;d="undefined"!=typeof document?document.domain&&n?y(n):((e=a("iframe")).style.display="none",f.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):y(n);for(var r=u.length;r--;)delete d.prototype[u[r]];return d()};c[p]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(l.prototype=o(t),r=new l,l.prototype=null,r[p]=t):r=d(),void 0===e?r:i(r,e)}},function(t,e,r){var n=r(1),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},function(t,e,r){var n,o,i,u=r(99),c=r(0),f=r(1),a=r(9),s=r(16),p=r(6),l=r(41),v=r(30),y=r(24),d=c.TypeError,h=c.WeakMap;if(u||l.state){var g=l.state||(l.state=new h),b=f(g.get),x=f(g.has),m=f(g.set);n=function(t,e){if(x(g,t))throw new d("Object already initialized");return e.facade=t,m(g,t,e),e},o=function(t){return b(g,t)||{}},i=function(t){return x(g,t)}}else{var O=v("state");y[O]=!0,n=function(t,e){if(p(t,O))throw new d("Object already initialized");return e.facade=t,s(t,O,e),e},o=function(t){return p(t,O)?t[O]:{}},i=function(t){return p(t,O)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!a(e)||(r=o(e)).type!==t)throw d("Incompatible receiver, "+t+" required");return r}}}},function(t,e,r){var n=r(0),o=r(32),i=n.String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},,function(t,e){t.exports={}},function(t,e,r){var n=r(7),o=r(11),i=r(60),u=r(22),c=r(12),f=r(27),a=r(6),s=r(63),p=Object.getOwnPropertyDescriptor;e.f=n?p:function(t,e){if(t=c(t),e=f(e),s)try{return p(t,e)}catch(t){}if(a(t,e))return u(!o(i.f,t,e),t[e])}},function(t,e,r){var n=r(1);t.exports=n({}.isPrototypeOf)},function(t,e,r){var n=r(93),o=r(40);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},function(t,e){t.exports={}},function(t,e){t.exports=!1},function(t,e,r){var n=r(34),o=r(36),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e,r){var n=r(19);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(0),o=r(44),i=r(2),u=r(19),c=r(4)("toStringTag"),f=n.Object,a="Arguments"==u(function(){return arguments}());t.exports=o?u:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=f(t),c))?r:a?u(e):"Object"==(n=u(e))&&i(e.callee)?"Arguments":n}},function(t,e,r){var n=r(0).TypeError;t.exports=function(t){if(null==t)throw n("Can't call method on "+t);return t}},function(t,e,r){var n=r(29),o=r(41);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,r){var n=r(0),o=r(2),i=r(52),u=n.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a function")}},function(t,e,r){var n=r(1),o=0,i=Math.random(),u=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},function(t,e,r){var n=r(66),o=r(48).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){var e=+t;return e!=e||0===e?0:(e>0?n:r)(e)}},function(t,e,r){var n=r(1),o=r(2),i=r(41),u=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},function(t,e,r){var n=r(0),o=r(13),i=r(2),u=r(26),c=r(62),f=n.Object;t.exports=c?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return i(e)&&u(e.prototype,f(t))}},function(t,e,r){var n=r(0),o=r(42),i=n["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,r){var n=r(0),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},function(t,e,r){var n=r(0),o=r(9),i=n.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,e,r){var n={};n[r(4)("toStringTag")]="z",t.exports="[object z]"===String(n)},function(t,e,r){"use strict";var n=r(27),o=r(8),i=r(22);t.exports=function(t,e,r){var u=n(e);u in t?o.f(t,u,i(0,r)):t[u]=r}},function(t,e,r){var n=r(8).f,o=r(6),i=r(4)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},function(t,e,r){var n=r(51),o=r(3);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,r){var n=r(1),o=r(35),i=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?i(t,e):function(){return t.apply(e,arguments)}}},function(t,e,r){var n=r(35);t.exports=function(t,e){var r=t[e];return null==r?void 0:n(r)}},function(t,e,r){var n,o,i=r(0),u=r(74),c=i.process,f=i.Deno,a=c&&c.versions||f&&f.version,s=a&&a.v8;s&&(o=(n=s.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&u&&(!(n=u.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=u.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},function(t,e,r){var n=r(0).String;t.exports=function(t){try{return n(t)}catch(t){return"Object"}}},function(t,e,r){var n=r(38),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},function(t,e,r){var n=r(1),o=r(3),i=r(2),u=r(32),c=r(13),f=r(39),a=function(){},s=[],p=c("Reflect","construct"),l=/^\s*(?:class|function)\b/,v=n(l.exec),y=!l.exec(a),d=function(t){if(!i(t))return!1;try{return p(a,s,t),!0}catch(t){return!1}};t.exports=!p||o((function(){var t;return d(d.call)||!d(Object)||!d((function(){t=!0}))||t}))?function(t){if(!i(t))return!1;switch(u(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return y||!!v(l,f(t))}:d},function(t,e,r){var n=r(7),o=r(6),i=Function.prototype,u=n&&Object.getOwnPropertyDescriptor,c=o(i,"name"),f=c&&"something"===function(){}.name,a=c&&(!n||n&&u(i,"name").configurable);t.exports={EXISTS:c,PROPER:f,CONFIGURABLE:a}},function(t,e,r){var n=r(49),o=r(1),i=r(57),u=r(14),c=r(17),f=r(71),a=o([].push),s=function(t){var e=1==t,r=2==t,o=3==t,s=4==t,p=6==t,l=7==t,v=5==t||p;return function(y,d,h,g){for(var b,x,m=u(y),O=i(m),S=n(d,h),w=c(O),j=0,P=g||f,E=e?P(y,w):r||l?P(y,0):void 0;w>j;j++)if((v||j in O)&&(x=S(b=O[j],j,m),t))if(e)E[j]=x;else if(x)switch(t){case 3:return!0;case 5:return b;case 6:return j;case 2:a(E,b)}else switch(t){case 4:return!1;case 7:a(E,b)}return p?-1:o||s?s:E}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},function(t,e,r){var n=r(0),o=r(1),i=r(3),u=r(19),c=n.Object,f=o("".split);t.exports=i((function(){return!c("z").propertyIsEnumerable(0)}))?function(t){return"String"==u(t)?f(t,""):c(t)}:c},function(t,e,r){"use strict";var n=r(12),o=r(103),i=r(28),u=r(20),c=r(67),f=u.set,a=u.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){f(this,{type:"Array Iterator",target:n(t),index:0,kind:e})}),(function(){var t=a(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,r){var n=r(66),o=r(48);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:n},function(t,e,r){var n=r(44),o=r(15),i=r(101);n||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,r){var n=r(47);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,r){var n=r(7),o=r(3),i=r(43);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(0),o=r(6),i=r(2),u=r(14),c=r(30),f=r(104),a=c("IE_PROTO"),s=n.Object,p=s.prototype;t.exports=f?s.getPrototypeOf:function(t){var e=u(t);if(o(e,a))return e[a];var r=e.constructor;return i(r)&&e instanceof r?r.prototype:e instanceof s?p:null}},function(t,e,r){var n=r(1),o=r(6),i=r(12),u=r(91).indexOf,c=r(24),f=n([].push);t.exports=function(t,e){var r,n=i(t),a=0,s=[];for(r in n)!o(c,r)&&o(n,r)&&f(s,r);for(;e.length>a;)o(n,r=e[a++])&&(~u(s,r)||f(s,r));return s}},function(t,e,r){"use strict";var n=r(5),o=r(11),i=r(29),u=r(55),c=r(2),f=r(113),a=r(65),s=r(81),p=r(46),l=r(16),v=r(15),y=r(4),d=r(28),h=r(80),g=u.PROPER,b=u.CONFIGURABLE,x=h.IteratorPrototype,m=h.BUGGY_SAFARI_ITERATORS,O=y("iterator"),S=function(){return this};t.exports=function(t,e,r,u,y,h,w){f(r,e,u);var j,P,E,T=function(t){if(t===y&&_)return _;if(!m&&t in I)return I[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},A=e+" Iterator",k=!1,I=t.prototype,L=I[O]||I["@@iterator"]||y&&I[y],_=!m&&L||T(y),N="Array"==e&&I.entries||L;if(N&&(j=a(N.call(new t)))!==Object.prototype&&j.next&&(i||a(j)===x||(s?s(j,x):c(j[O])||v(j,O,S)),p(j,A,!0,!0),i&&(d[A]=S)),g&&"values"==y&&L&&"values"!==L.name&&(!i&&b?l(I,"name","values"):(k=!0,_=function(){return o(L,this)})),y)if(P={values:T("values"),keys:h?_:T("keys"),entries:T("entries")},w)for(E in P)(m||k||!(E in I))&&v(I,E,P[E]);else n({target:e,proto:!0,forced:m||k},P);return i&&!w||I[O]===_||v(I,O,_,{name:y}),d[e]=_,P}},function(t,e,r){var n=r(6),o=r(86),i=r(25),u=r(8);t.exports=function(t,e){for(var r=o(e),c=u.f,f=i.f,a=0;a<r.length;a++){var s=r[a];n(t,s)||c(t,s,f(e,s))}}},function(t,e,r){var n=r(1);t.exports=n([].slice)},function(t,e,r){var n=r(3),o=r(2),i=/#|\.prototype\./,u=function(t,e){var r=f[c(t)];return r==s||r!=a&&(o(e)?n(e):!!e)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},f=u.data={},a=u.NATIVE="N",s=u.POLYFILL="P";t.exports=u},function(t,e,r){var n=r(100);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},function(t,e,r){var n=r(3),o=r(4),i=r(51),u=o("species");t.exports=function(t){return i>=51||!n((function(){var e=[];return(e.constructor={})[u]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,r){var n=r(5),o=r(7);n({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:r(8).f})},function(t,e,r){var n=r(13);t.exports=n("navigator","userAgent")||""},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,r){var n=r(43)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},function(t,e,r){"use strict";var n=r(106).charAt,o=r(21),i=r(20),u=r(67),c=i.set,f=i.getterFor("String Iterator");u(String,"String",(function(t){c(this,{type:"String Iterator",string:o(t),index:0})}),(function(){var t,e=f(this),r=e.string,o=e.index;return o>=r.length?{value:void 0,done:!0}:(t=n(r,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,r){"use strict";var n=r(5),o=r(0),i=r(13),u=r(92),c=r(11),f=r(1),a=r(29),s=r(7),p=r(47),l=r(3),v=r(6),y=r(31),d=r(2),h=r(9),g=r(26),b=r(40),x=r(10),m=r(14),O=r(12),S=r(27),w=r(21),j=r(22),P=r(18),E=r(59),T=r(37),A=r(102),k=r(64),I=r(25),L=r(8),_=r(60),N=r(69),M=r(15),R=r(34),F=r(30),D=r(24),C=r(36),H=r(4),z=r(88),G=r(89),B=r(46),V=r(20),U=r(56).forEach,W=F("hidden"),J=H("toPrimitive"),K=V.set,Y=V.getterFor("Symbol"),$=Object.prototype,q=o.Symbol,X=q&&q.prototype,Q=o.TypeError,Z=o.QObject,tt=i("JSON","stringify"),et=I.f,rt=L.f,nt=A.f,ot=_.f,it=f([].push),ut=R("symbols"),ct=R("op-symbols"),ft=R("string-to-symbol-registry"),at=R("symbol-to-string-registry"),st=R("wks"),pt=!Z||!Z.prototype||!Z.prototype.findChild,lt=s&&l((function(){return 7!=P(rt({},"a",{get:function(){return rt(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=et($,e);n&&delete $[e],rt(t,e,r),n&&t!==$&&rt($,e,n)}:rt,vt=function(t,e){var r=ut[t]=P(X);return K(r,{type:"Symbol",tag:t,description:e}),s||(r.description=e),r},yt=function(t,e,r){t===$&&yt(ct,e,r),x(t);var n=S(e);return x(r),v(ut,n)?(r.enumerable?(v(t,W)&&t[W][n]&&(t[W][n]=!1),r=P(r,{enumerable:j(0,!1)})):(v(t,W)||rt(t,W,j(1,{})),t[W][n]=!0),lt(t,n,r)):rt(t,n,r)},dt=function(t,e){x(t);var r=O(e),n=E(r).concat(xt(r));return U(n,(function(e){s&&!c(ht,r,e)||yt(t,e,r[e])})),t},ht=function(t){var e=S(t),r=c(ot,this,e);return!(this===$&&v(ut,e)&&!v(ct,e))&&(!(r||!v(this,e)||!v(ut,e)||v(this,W)&&this[W][e])||r)},gt=function(t,e){var r=O(t),n=S(e);if(r!==$||!v(ut,n)||v(ct,n)){var o=et(r,n);return!o||!v(ut,n)||v(r,W)&&r[W][n]||(o.enumerable=!0),o}},bt=function(t){var e=nt(O(t)),r=[];return U(e,(function(t){v(ut,t)||v(D,t)||it(r,t)})),r},xt=function(t){var e=t===$,r=nt(e?ct:O(t)),n=[];return U(r,(function(t){!v(ut,t)||e&&!v($,t)||it(n,ut[t])})),n};(p||(M(X=(q=function(){if(g(X,this))throw Q("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?w(arguments[0]):void 0,e=C(t),r=function(t){this===$&&c(r,ct,t),v(this,W)&&v(this[W],e)&&(this[W][e]=!1),lt(this,e,j(1,t))};return s&&pt&&lt($,e,{configurable:!0,set:r}),vt(e,t)}).prototype,"toString",(function(){return Y(this).tag})),M(q,"withoutSetter",(function(t){return vt(C(t),t)})),_.f=ht,L.f=yt,I.f=gt,T.f=A.f=bt,k.f=xt,z.f=function(t){return vt(H(t),t)},s&&(rt(X,"description",{configurable:!0,get:function(){return Y(this).description}}),a||M($,"propertyIsEnumerable",ht,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!p,sham:!p},{Symbol:q}),U(E(st),(function(t){G(t)})),n({target:"Symbol",stat:!0,forced:!p},{for:function(t){var e=w(t);if(v(ft,e))return ft[e];var r=q(e);return ft[e]=r,at[r]=e,r},keyFor:function(t){if(!b(t))throw Q(t+" is not a symbol");if(v(at,t))return at[t]},useSetter:function(){pt=!0},useSimple:function(){pt=!1}}),n({target:"Object",stat:!0,forced:!p,sham:!s},{create:function(t,e){return void 0===e?P(t):dt(P(t),e)},defineProperty:yt,defineProperties:dt,getOwnPropertyDescriptor:gt}),n({target:"Object",stat:!0,forced:!p},{getOwnPropertyNames:bt,getOwnPropertySymbols:xt}),n({target:"Object",stat:!0,forced:l((function(){k.f(1)}))},{getOwnPropertySymbols:function(t){return k.f(m(t))}}),tt)&&n({target:"JSON",stat:!0,forced:!p||l((function(){var t=q();return"[null]"!=tt([t])||"{}"!=tt({a:t})||"{}"!=tt(Object(t))}))},{stringify:function(t,e,r){var n=N(arguments),o=e;if((h(e)||void 0!==t)&&!b(t))return y(e)||(e=function(t,e){if(d(o)&&(e=c(o,this,t,e)),!b(e))return e}),n[1]=e,u(tt,null,n)}});if(!X[J]){var mt=X.valueOf;M(X,J,(function(t){return c(mt,this)}))}B(q,"Symbol"),D[W]=!0},function(t,e,r){"use strict";var n=r(56).forEach,o=r(85)("forEach");t.exports=o?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,r){"use strict";var n,o,i,u=r(3),c=r(2),f=r(18),a=r(65),s=r(15),p=r(4),l=r(29),v=p("iterator"),y=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(n=o):y=!0),null==n||u((function(){var t={};return n[v].call(t)!==t}))?n={}:l&&(n=f(n)),c(n[v])||s(n,v,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:y}},function(t,e,r){var n=r(1),o=r(10),i=r(114);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return o(r),i(n),e?t(r,n):r.__proto__=n,r}}():void 0)},function(t,e,r){var n=r(0),o=r(75),i=r(76),u=r(58),c=r(16),f=r(4),a=f("iterator"),s=f("toStringTag"),p=u.values,l=function(t,e){if(t){if(t[a]!==p)try{c(t,a,p)}catch(e){t[a]=p}if(t[s]||c(t,s,e),o[e])for(var r in u)if(t[r]!==u[r])try{c(t,r,u[r])}catch(e){t[r]=u[r]}}};for(var v in o)l(n[v]&&n[v].prototype,v);l(i,"DOMTokenList")},function(t,e,r){"use strict";var n=r(5),o=r(7),i=r(0),u=r(1),c=r(6),f=r(2),a=r(26),s=r(21),p=r(8).f,l=r(68),v=i.Symbol,y=v&&v.prototype;if(o&&f(v)&&(!("description"in y)||void 0!==v().description)){var d={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:s(arguments[0]),e=a(y,this)?new v(t):void 0===t?v():v(t);return""===t&&(d[e]=!0),e};l(h,v),h.prototype=y,y.constructor=h;var g="Symbol(test)"==String(v("test")),b=u(y.toString),x=u(y.valueOf),m=/^Symbol\((.*)\)[^)]+$/,O=u("".replace),S=u("".slice);p(y,"description",{configurable:!0,get:function(){var t=x(this),e=b(t);if(c(d,t))return"";var r=g?S(e,7,-1):O(e,m,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:h})}},function(t,e,r){r(89)("iterator")},function(t,e,r){"use strict";var n=r(3);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},function(t,e,r){var n=r(13),o=r(1),i=r(37),u=r(64),c=r(10),f=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(c(t)),r=u.f;return r?f(e,r(t)):e}},function(t,e,r){var n=r(32),o=r(50),i=r(28),u=r(4)("iterator");t.exports=function(t){if(null!=t)return o(t,u)||o(t,"@@iterator")||i[n(t)]}},function(t,e,r){var n=r(4);e.f=n},function(t,e,r){var n=r(116),o=r(6),i=r(88),u=r(8).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});o(e,t)||u(e,t,{value:i.f(t)})}},function(t,e,r){var n=r(38),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,r){var n=r(12),o=r(53),i=r(17),u=function(t){return function(e,r,u){var c,f=n(e),a=i(f),s=o(u,a);if(t&&r!=r){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===r)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,e){var r=Function.prototype,n=r.apply,o=r.bind,i=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?i.bind(n):function(){return i.apply(n,arguments)})},function(t,e,r){var n=r(0),o=r(11),i=r(9),u=r(40),c=r(50),f=r(98),a=r(4),s=n.TypeError,p=a("toPrimitive");t.exports=function(t,e){if(!i(t)||u(t))return t;var r,n=c(t,p);if(n){if(void 0===e&&(e="default"),r=o(n,t,e),!i(r)||u(r))return r;throw s("Can't convert object to primitive value")}return void 0===e&&(e="number"),f(t,e)}},function(t,e,r){var n=r(7),o=r(8),i=r(10),u=r(12),c=r(59);t.exports=n?Object.defineProperties:function(t,e){i(t);for(var r,n=u(e),f=c(e),a=f.length,s=0;a>s;)o.f(t,r=f[s++],n[r]);return t}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";var n=r(5),o=r(79);n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,r){var n=r(0),o=r(75),i=r(76),u=r(79),c=r(16),f=function(t){if(t&&t.forEach!==u)try{c(t,"forEach",u)}catch(e){t.forEach=u}};for(var a in o)o[a]&&f(n[a]&&n[a].prototype);f(i)},function(t,e,r){var n=r(0),o=r(11),i=r(2),u=r(9),c=n.TypeError;t.exports=function(t,e){var r,n;if("string"===e&&i(r=t.toString)&&!u(n=o(r,t)))return n;if(i(r=t.valueOf)&&!u(n=o(r,t)))return n;if("string"!==e&&i(r=t.toString)&&!u(n=o(r,t)))return n;throw c("Can't convert object to primitive value")}},function(t,e,r){var n=r(0),o=r(2),i=r(39),u=n.WeakMap;t.exports=o(u)&&/native code/.test(i(u))},function(t,e,r){var n=r(0),o=r(31),i=r(54),u=r(9),c=r(4)("species"),f=n.Array;t.exports=function(t){var e;return o(t)&&(e=t.constructor,(i(e)&&(e===f||o(e.prototype))||u(e)&&null===(e=e[c]))&&(e=void 0)),void 0===e?f:e}},function(t,e,r){"use strict";var n=r(44),o=r(32);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,r){var n=r(19),o=r(12),i=r(37).f,u=r(107),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"Window"==n(t)?function(t){try{return i(t)}catch(t){return u(c)}}(t):i(o(t))}},function(t,e,r){var n=r(4),o=r(18),i=r(8),u=n("unscopables"),c=Array.prototype;null==c[u]&&i.f(c,u,{configurable:!0,value:o(null)}),t.exports=function(t){c[u][t]=!0}},function(t,e,r){var n=r(3);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,r){var n=r(13);t.exports=n("document","documentElement")},function(t,e,r){var n=r(1),o=r(38),i=r(21),u=r(33),c=n("".charAt),f=n("".charCodeAt),a=n("".slice),s=function(t){return function(e,r){var n,s,p=i(u(e)),l=o(r),v=p.length;return l<0||l>=v?t?"":void 0:(n=f(p,l))<55296||n>56319||l+1===v||(s=f(p,l+1))<56320||s>57343?t?c(p,l):n:t?a(p,l,l+2):s-56320+(n-55296<<10)+65536}};t.exports={codeAt:s(!1),charAt:s(!0)}},function(t,e,r){var n=r(0),o=r(53),i=r(17),u=r(45),c=n.Array,f=Math.max;t.exports=function(t,e,r){for(var n=i(t),a=o(e,n),s=o(void 0===r?n:r,n),p=c(f(s-a,0)),l=0;a<s;a++,l++)u(p,l,t[a]);return p.length=l,p}},,function(t,e,r){var n=r(4),o=r(28),i=n("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,e,r){var n=r(0),o=r(11),i=r(35),u=r(10),c=r(52),f=r(87),a=n.TypeError;t.exports=function(t,e){var r=arguments.length<2?f(t):e;if(i(r))return u(o(r,t));throw a(c(t)+" is not iterable")}},function(t,e,r){var n=r(11),o=r(10),i=r(50);t.exports=function(t,e,r){var u,c;o(t);try{if(!(u=i(t,"return"))){if("throw"===e)throw r;return r}u=n(u,t)}catch(t){c=!0,u=t}if("throw"===e)throw r;if(c)throw u;return o(u),r}},function(t,e,r){var n=r(4)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[n]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},function(t,e,r){"use strict";var n=r(80).IteratorPrototype,o=r(18),i=r(22),u=r(46),c=r(28),f=function(){return this};t.exports=function(t,e,r,a){var s=e+" Iterator";return t.prototype=o(n,{next:i(+!a,r)}),u(t,s,!1,!0),c[s]=f,t}},function(t,e,r){var n=r(0),o=r(2),i=n.String,u=n.TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw u("Can't set "+i(t)+" as a prototype")}},,function(t,e,r){var n=r(0);t.exports=n},function(t,e,r){var n=r(5),o=r(3),i=r(12),u=r(25).f,c=r(7),f=o((function(){u(1)}));n({target:"Object",stat:!0,forced:!c||f,sham:!c},{getOwnPropertyDescriptor:function(t,e){return u(i(t),e)}})},,function(t,e,r){var n=r(0),o=r(49),i=r(11),u=r(10),c=r(52),f=r(109),a=r(17),s=r(26),p=r(110),l=r(87),v=r(111),y=n.TypeError,d=function(t,e){this.stopped=t,this.result=e},h=d.prototype;t.exports=function(t,e,r){var n,g,b,x,m,O,S,w=r&&r.that,j=!(!r||!r.AS_ENTRIES),P=!(!r||!r.IS_ITERATOR),E=!(!r||!r.INTERRUPTED),T=o(e,w),A=function(t){return n&&v(n,"normal",t),new d(!0,t)},k=function(t){return j?(u(t),E?T(t[0],t[1],A):T(t[0],t[1])):E?T(t,A):T(t)};if(P)n=t;else{if(!(g=l(t)))throw y(c(t)+" is not iterable");if(f(g)){for(b=0,x=a(t);x>b;b++)if((m=k(t[b]))&&s(h,m))return m;return new d(!1)}n=p(t,g)}for(O=n.next;!(S=i(O,n)).done;){try{m=k(S.value)}catch(t){v(n,"throw",t)}if("object"==typeof m&&m&&s(h,m))return m}return new d(!1)}},function(t,e,r){var n=r(0),o=r(26),i=n.TypeError;t.exports=function(t,e){if(o(e,t))return t;throw i("Incorrect invocation")}},,,,,,,,,,function(t,e,r){var n=r(5),o=r(1),i=r(24),u=r(9),c=r(6),f=r(8).f,a=r(37),s=r(102),p=r(149),l=r(36),v=r(151),y=!1,d=l("meta"),h=0,g=function(t){f(t,d,{value:{objectID:"O"+h++,weakData:{}}})},b=t.exports={enable:function(){b.enable=function(){},y=!0;var t=a.f,e=o([].splice),r={};r[d]=1,t(r).length&&(a.f=function(r){for(var n=t(r),o=0,i=n.length;o<i;o++)if(n[o]===d){e(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:s.f}))},fastKey:function(t,e){if(!u(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!c(t,d)){if(!p(t))return"F";if(!e)return"E";g(t)}return t[d].objectID},getWeakData:function(t,e){if(!c(t,d)){if(!p(t))return!0;if(!e)return!1;g(t)}return t[d].weakData},onFreeze:function(t){return v&&y&&p(t)&&!c(t,d)&&g(t),t}};i[d]=!0},function(t,e,r){var n=r(5),o=r(14),i=r(59);n({target:"Object",stat:!0,forced:r(3)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},,,,,,,function(t,e,r){"use strict";var n=r(5),o=r(56).filter;n({target:"Array",proto:!0,forced:!r(72)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(2),o=r(9),i=r(81);t.exports=function(t,e,r){var u,c;return i&&n(u=e.constructor)&&u!==r&&o(c=u.prototype)&&c!==r.prototype&&i(t,c),t}},function(t,e,r){var n=r(5),o=r(7),i=r(86),u=r(12),c=r(25),f=r(45);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,r,n=u(t),o=c.f,a=i(n),s={},p=0;a.length>p;)void 0!==(r=o(n,e=a[p++]))&&f(s,e,r);return s}})},function(t,e,r){var n=r(5),o=r(7);n({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:r(94)})},function(t,e,r){var n=r(15);t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},function(t,e,r){"use strict";var n=r(13),o=r(8),i=r(4),u=r(7),c=i("species");t.exports=function(t){var e=n(t),r=o.f;u&&e&&!e[c]&&r(e,c,{configurable:!0,get:function(){return this}})}},,function(t,e,r){"use strict";var n=r(5),o=r(0),i=r(1),u=r(70),c=r(15),f=r(130),a=r(119),s=r(120),p=r(2),l=r(9),v=r(3),y=r(112),d=r(46),h=r(139);t.exports=function(t,e,r){var g=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),x=g?"set":"add",m=o[t],O=m&&m.prototype,S=m,w={},j=function(t){var e=i(O[t]);c(O,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(b&&!l(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return b&&!l(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!l(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(u(t,!p(m)||!(b||O.forEach&&!v((function(){(new m).entries().next()})))))S=r.getConstructor(e,t,g,x),f.enable();else if(u(t,!0)){var P=new S,E=P[x](b?{}:-0,1)!=P,T=v((function(){P.has(1)})),A=y((function(t){new m(t)})),k=!b&&v((function(){for(var t=new m,e=5;e--;)t[x](e,e);return!t.has(-0)}));A||((S=e((function(t,e){s(t,O);var r=h(new m,t,S);return null!=e&&a(e,r[x],{that:r,AS_ENTRIES:g}),r}))).prototype=O,O.constructor=S),(T||k)&&(j("delete"),j("has"),g&&j("get")),(k||E)&&j(x),b&&O.clear&&delete O.clear}return w[t]=S,n({global:!0,forced:S!=m},w),d(S,t),b||r.setStrong(S,t,g),S}},function(t,e,r){"use strict";var n=r(8).f,o=r(18),i=r(142),u=r(49),c=r(120),f=r(119),a=r(67),s=r(143),p=r(7),l=r(130).fastKey,v=r(20),y=v.set,d=v.getterFor;t.exports={getConstructor:function(t,e,r,a){var s=t((function(t,n){c(t,v),y(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),p||(t.size=0),null!=n&&f(n,t[a],{that:t,AS_ENTRIES:r})})),v=s.prototype,h=d(e),g=function(t,e,r){var n,o,i=h(t),u=b(t,e);return u?u.value=r:(i.last=u={index:o=l(e,!0),key:e,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=u),n&&(n.next=u),p?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},b=function(t,e){var r,n=h(t),o=l(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return i(v,{clear:function(){for(var t=h(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,p?t.size=0:this.size=0},delete:function(t){var e=h(this),r=b(this,t);if(r){var n=r.next,o=r.previous;delete e.index[r.index],r.removed=!0,o&&(o.next=n),n&&(n.previous=o),e.first==r&&(e.first=n),e.last==r&&(e.last=o),p?e.size--:this.size--}return!!r},forEach:function(t){for(var e,r=h(this),n=u(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),i(v,r?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),p&&n(v,"size",{get:function(){return h(this).size}}),s},setStrong:function(t,e,r){var n=e+" Iterator",o=d(e),i=d(n);a(t,e,(function(t,e){y(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),s(e)}}},,,function(t,e,r){var n=r(3),o=r(9),i=r(19),u=r(150),c=Object.isExtensible,f=n((function(){c(1)}));t.exports=f||u?function(t){return!!o(t)&&((!u||"ArrayBuffer"!=i(t))&&(!c||c(t)))}:c},function(t,e,r){var n=r(3);t.exports=n((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},function(t,e,r){var n=r(3);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},,,function(t,e,r){"use strict";r(145)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r(146))},,,,,,,,,,,,function(t,e,r){var n=r(19),o=r(0);t.exports="process"==n(o.process)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";r.r(e),r.d(e,"AutoLayout",(function(){return p}));r(58),r(154),r(61),r(77),r(82),r(96),r(97),r(232),r(73),r(78),r(83),r(84),r(131),r(138),r(117),r(140),r(141);function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var f=-1,a=0,s=1,p=function(){function t(e){var r=this,n=e.lf;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.lf=n,this.trunk=[],n.layout=function(t){var e=r.lf.getGraphRawData();r.lf.setStartNodeType(t);var n=r.lf.getPathes();return r.levelHeight=[],r.newNodeMap=new Map,r.layout(e,n)}}var e,r,n;return e=t,(r=[{key:"layout",value:function(t,e){var r=this,n=[];e.forEach((function(t){var e=t.elements;e.length>n.length?n=e:e.length===n.length&&JSON.stringify(e)===JSON.stringify(r.trunk)&&(n=r.trunk)})),this.trunk=n;for(var o=this.formatData(t),i={nodes:[],edges:[]},u=n.length-1;u>=0;u--)this.setNodePosition(n[u],o,i,u,1);this.lf.graphModel.graphDataToModel(i)}},{key:"setNodePosition",value:function(t,e,r,n,u){var c=this,f=e[t],a=f.text,s=f.type,p=f.next,l=f.properties,v=160*n+40,y=120*u,d={id:t,x:v,text:a,y:y,type:s,properties:l};return a&&"object"===i(a)&&(d.text=o(o({},a),{},{x:v+a.x,y:y+a.y})),this.newNodeMap.set(d.id,{x:d.x,y:d.y,type:s}),r.nodes.push(d),f.isFixed=!0,this.addLevelHeight(n,1),p&&p.length>0&&p.forEach((function(i){if(!e[i.nodeId].isFixed){var u=c.getLevelHeight(n+1);c.addLevelHeight(n,1),c.setNodePosition(i.nodeId,e,r,n+1,u+1)}r.edges.push(o({id:i.edgeId,type:i.edgeType,sourceNodeId:t,targetNodeId:i.nodeId,properties:i.properties,text:i.text},c.getEdgeDataPoints(t,i.nodeId)))})),d}},{key:"getEdgeDataPoints",value:function(t,e){var r=this.newNodeMap.get(t),n=this.newNodeMap.get(e),o=this.getShape(t),i=o.width,u=o.height,c=this.getShape(e),p=c.width,l=c.height,v=this.getRelativePosition(r,n),y={x:r.x,y:r.y},d={x:n.x,y:n.y};switch(v){case a:y.x=r.x+i/2,d.x=n.x-p/2;break;case f:y.y=r.y+u/2,d.x=n.x-p/2;break;case s:y.x=r.x+i/2,d.y=n.y+l/2}return{startPoint:y,endPoint:d}}},{key:"getRelativePosition",value:function(t,e){var r=t.y,n=e.y;return r<n?-1:r===n?0:1}},{key:"getShape",value:function(t){var e=this.lf.getNodeModelById(t);return{height:e.height,width:e.width}}},{key:"formatData",value:function(t){var e=t.nodes.reduce((function(t,e){var r=e.type,n=e.properties,o=e.text,u=e.x,c=e.y;return o&&"object"===i(o)&&(o.x=o.x-u,o.y=o.y-c),t[e.id]={type:r,properties:n,text:o,prev:[],next:[]},t}),{});return t.edges.forEach((function(t){var r=t.sourceNodeId,n=t.targetNodeId,o=t.id,u=t.properties,c=t.text,f=c;"object"===i(c)&&(f=c.value),e[r].next.push({edgeId:o,nodeId:n,edgeType:t.type,properties:u,text:f}),e[n].prev.push({edgeId:o,nodeId:r,properties:u,text:f})})),e}},{key:"addLevelHeight",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.levelHeight[t];n||(n={positiveHeight:0,negativeHeight:0},this.levelHeight[t]=n),r?n.negativeHeight-=e:n.positiveHeight+=e}},{key:"getLevelHeight",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.levelHeight[t];return r?e?r.negativeHeight:r.positiveHeight:0}}])&&u(e.prototype,r),n&&u(e,n),t}();c(p,"pluginName","AutoLayout")},function(t,e,r){"use strict";var n=r(5),o=r(233).left,i=r(85),u=r(51),c=r(166);n({target:"Array",proto:!0,forced:!i("reduce")||!c&&u>79&&u<83},{reduce:function(t){var e=arguments.length;return o(this,t,e,e>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(0),o=r(35),i=r(14),u=r(57),c=r(17),f=n.TypeError,a=function(t){return function(e,r,n,a){o(r);var s=i(e),p=u(s),l=c(s),v=t?l-1:0,y=t?-1:1;if(n<2)for(;;){if(v in p){a=p[v],v+=y;break}if(v+=y,t?v<0:l<=v)throw f("Reduce of empty array with no initial value")}for(;t?v>=0:l>v;v+=y)v in p&&(a=r(a,p[v],v,s));return a}};t.exports={left:a(!1),right:a(!0)}}])}));