@logicflow/engine 0.0.7 → 0.0.9
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.
- package/cjs/Scheduler.js +2 -1
- package/cjs/index.js +18 -13
- package/cjs/recorder/index.js +29 -13
- package/cjs/util/storage.js +6 -0
- package/es/Scheduler.js +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +18 -13
- package/es/recorder/index.d.ts +2 -0
- package/es/recorder/index.js +29 -13
- package/es/util/storage.d.ts +1 -0
- package/es/util/storage.js +6 -0
- package/lib/main.js +1 -1
- package/package.json +1 -1
package/cjs/Scheduler.js
CHANGED
|
@@ -234,7 +234,8 @@ var Scheduler = /** @class */ (function (_super) {
|
|
|
234
234
|
this.run(data);
|
|
235
235
|
};
|
|
236
236
|
Scheduler.prototype.saveActionResult = function (data) {
|
|
237
|
-
|
|
237
|
+
var _a;
|
|
238
|
+
(_a = this.recorder) === null || _a === void 0 ? void 0 : _a.addActionRecord({
|
|
238
239
|
executionId: data.executionId,
|
|
239
240
|
actionId: data.actionId,
|
|
240
241
|
nodeId: data.nodeId,
|
package/cjs/index.js
CHANGED
|
@@ -60,9 +60,11 @@ var Engine = /** @class */ (function () {
|
|
|
60
60
|
function Engine(options) {
|
|
61
61
|
this.nodeModelMap = new Map();
|
|
62
62
|
this.instanceId = ID_1.createEngineId();
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
if (options === null || options === void 0 ? void 0 : options.debug) {
|
|
64
|
+
this.recorder = new recorder_1.default({
|
|
65
|
+
instanceId: this.instanceId,
|
|
66
|
+
});
|
|
67
|
+
}
|
|
66
68
|
this.register({
|
|
67
69
|
type: StartNode_1.default.nodeTypeName,
|
|
68
70
|
model: StartNode_1.default,
|
|
@@ -150,32 +152,34 @@ var Engine = /** @class */ (function () {
|
|
|
150
152
|
});
|
|
151
153
|
};
|
|
152
154
|
Engine.prototype.getExecutionList = function () {
|
|
155
|
+
var _a;
|
|
153
156
|
return __awaiter(this, void 0, void 0, function () {
|
|
154
157
|
var executionIds;
|
|
155
|
-
return __generator(this, function (
|
|
156
|
-
switch (
|
|
157
|
-
case 0: return [4 /*yield*/, this.recorder.getExecutionList()];
|
|
158
|
+
return __generator(this, function (_b) {
|
|
159
|
+
switch (_b.label) {
|
|
160
|
+
case 0: return [4 /*yield*/, ((_a = this.recorder) === null || _a === void 0 ? void 0 : _a.getExecutionList())];
|
|
158
161
|
case 1:
|
|
159
|
-
executionIds =
|
|
162
|
+
executionIds = _b.sent();
|
|
160
163
|
return [2 /*return*/, executionIds];
|
|
161
164
|
}
|
|
162
165
|
});
|
|
163
166
|
});
|
|
164
167
|
};
|
|
165
168
|
Engine.prototype.getExecutionRecord = function (executionId) {
|
|
169
|
+
var _a, _b;
|
|
166
170
|
return __awaiter(this, void 0, void 0, function () {
|
|
167
171
|
var tasks, records, i;
|
|
168
|
-
return __generator(this, function (
|
|
169
|
-
switch (
|
|
170
|
-
case 0: return [4 /*yield*/, this.recorder.getExecutionActions(executionId)];
|
|
172
|
+
return __generator(this, function (_c) {
|
|
173
|
+
switch (_c.label) {
|
|
174
|
+
case 0: return [4 /*yield*/, ((_a = this.recorder) === null || _a === void 0 ? void 0 : _a.getExecutionActions(executionId))];
|
|
171
175
|
case 1:
|
|
172
|
-
tasks =
|
|
176
|
+
tasks = _c.sent();
|
|
173
177
|
if (!tasks) {
|
|
174
178
|
return [2 /*return*/, null];
|
|
175
179
|
}
|
|
176
180
|
records = [];
|
|
177
181
|
for (i = 0; i < tasks.length; i++) {
|
|
178
|
-
records.push(this.recorder.getActionRecord(tasks[i]));
|
|
182
|
+
records.push((_b = this.recorder) === null || _b === void 0 ? void 0 : _b.getActionRecord(tasks[i]));
|
|
179
183
|
}
|
|
180
184
|
return [2 /*return*/, Promise.all(records)];
|
|
181
185
|
}
|
|
@@ -183,7 +187,8 @@ var Engine = /** @class */ (function () {
|
|
|
183
187
|
});
|
|
184
188
|
};
|
|
185
189
|
Engine.prototype.destroy = function () {
|
|
186
|
-
|
|
190
|
+
var _a;
|
|
191
|
+
(_a = this.recorder) === null || _a === void 0 ? void 0 : _a.clear();
|
|
187
192
|
};
|
|
188
193
|
Engine.prototype.getGlobalData = function () {
|
|
189
194
|
var _a;
|
package/cjs/recorder/index.js
CHANGED
|
@@ -45,7 +45,7 @@ var Recorder = /** @class */ (function () {
|
|
|
45
45
|
var instanceId = _a.instanceId;
|
|
46
46
|
this.maxRecorder = MAX_RECORDER;
|
|
47
47
|
this.instanceId = instanceId;
|
|
48
|
-
var instances =
|
|
48
|
+
var instances = this.getItem(LOGICFLOW_ENGINE_INSTANCES) || [];
|
|
49
49
|
if (instances.indexOf(instanceId) === -1) {
|
|
50
50
|
instances.push(instanceId);
|
|
51
51
|
}
|
|
@@ -53,11 +53,26 @@ var Recorder = /** @class */ (function () {
|
|
|
53
53
|
var clearInstance = instances.shift();
|
|
54
54
|
this.clearInstance(clearInstance);
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
this.setItem(LOGICFLOW_ENGINE_INSTANCES, instances);
|
|
57
57
|
}
|
|
58
58
|
Recorder.prototype.setMaxRecorderNumber = function (maxRecorder) {
|
|
59
59
|
this.maxRecorder = maxRecorder;
|
|
60
60
|
};
|
|
61
|
+
// 将存储 storage 的方法收敛到此处,并在此处做异常处理 - setItem
|
|
62
|
+
Recorder.prototype.setItem = function (key, value) {
|
|
63
|
+
try {
|
|
64
|
+
storage_1.default.setItem(key, value);
|
|
65
|
+
}
|
|
66
|
+
catch (error) {
|
|
67
|
+
console.log('Ops, something wrong with storage.setItem');
|
|
68
|
+
storage_1.default.clear();
|
|
69
|
+
storage_1.default.setItem(key, value);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
// getItem 方法
|
|
73
|
+
Recorder.prototype.getItem = function (key) {
|
|
74
|
+
return storage_1.default.getItem(key);
|
|
75
|
+
};
|
|
61
76
|
/*
|
|
62
77
|
* @param {Object} action
|
|
63
78
|
* {
|
|
@@ -83,7 +98,7 @@ var Recorder = /** @class */ (function () {
|
|
|
83
98
|
this.pushExecution(executionId);
|
|
84
99
|
}
|
|
85
100
|
this.pushActionToExecution(executionId, actionId);
|
|
86
|
-
|
|
101
|
+
this.setItem(actionId, action);
|
|
87
102
|
return [2 /*return*/];
|
|
88
103
|
}
|
|
89
104
|
});
|
|
@@ -92,14 +107,14 @@ var Recorder = /** @class */ (function () {
|
|
|
92
107
|
Recorder.prototype.getActionRecord = function (actionId) {
|
|
93
108
|
return __awaiter(this, void 0, void 0, function () {
|
|
94
109
|
return __generator(this, function (_a) {
|
|
95
|
-
return [2 /*return*/,
|
|
110
|
+
return [2 /*return*/, this.getItem(actionId)];
|
|
96
111
|
});
|
|
97
112
|
});
|
|
98
113
|
};
|
|
99
114
|
Recorder.prototype.getExecutionActions = function (executionId) {
|
|
100
115
|
return __awaiter(this, void 0, void 0, function () {
|
|
101
116
|
return __generator(this, function (_a) {
|
|
102
|
-
return [2 /*return*/,
|
|
117
|
+
return [2 /*return*/, this.getItem(executionId)];
|
|
103
118
|
});
|
|
104
119
|
});
|
|
105
120
|
};
|
|
@@ -107,7 +122,7 @@ var Recorder = /** @class */ (function () {
|
|
|
107
122
|
return __awaiter(this, void 0, void 0, function () {
|
|
108
123
|
var instances;
|
|
109
124
|
return __generator(this, function (_a) {
|
|
110
|
-
instances =
|
|
125
|
+
instances = this.getItem(this.instanceId) || [];
|
|
111
126
|
return [2 /*return*/, instances];
|
|
112
127
|
});
|
|
113
128
|
});
|
|
@@ -116,10 +131,11 @@ var Recorder = /** @class */ (function () {
|
|
|
116
131
|
this.clearInstance(this.instanceId);
|
|
117
132
|
};
|
|
118
133
|
Recorder.prototype.clearInstance = function (instanceId) {
|
|
119
|
-
var
|
|
134
|
+
var _this = this;
|
|
135
|
+
var instanceExecutions = this.getItem(instanceId) || [];
|
|
120
136
|
instanceExecutions.forEach(function (executionId) {
|
|
121
137
|
storage_1.default.removeItem(executionId);
|
|
122
|
-
var instanceData =
|
|
138
|
+
var instanceData = _this.getItem(executionId) || [];
|
|
123
139
|
instanceData.forEach(function (actionId) {
|
|
124
140
|
storage_1.default.removeItem(actionId);
|
|
125
141
|
});
|
|
@@ -127,25 +143,25 @@ var Recorder = /** @class */ (function () {
|
|
|
127
143
|
storage_1.default.removeItem(instanceId);
|
|
128
144
|
};
|
|
129
145
|
Recorder.prototype.pushExecution = function (executionId) {
|
|
130
|
-
var instanceExecutions =
|
|
146
|
+
var instanceExecutions = this.getItem(this.instanceId) || [];
|
|
131
147
|
if (instanceExecutions.length >= this.maxRecorder) {
|
|
132
148
|
var removeItem = instanceExecutions.shift();
|
|
133
149
|
this.popExecution(removeItem);
|
|
134
150
|
}
|
|
135
151
|
instanceExecutions.push(executionId);
|
|
136
|
-
|
|
152
|
+
this.setItem(this.instanceId, instanceExecutions);
|
|
137
153
|
};
|
|
138
154
|
Recorder.prototype.popExecution = function (executionId) {
|
|
139
|
-
var instanceData =
|
|
155
|
+
var instanceData = this.getItem(executionId) || [];
|
|
140
156
|
instanceData.forEach(function (actionId) {
|
|
141
157
|
storage_1.default.removeItem(actionId);
|
|
142
158
|
});
|
|
143
159
|
storage_1.default.removeItem(executionId);
|
|
144
160
|
};
|
|
145
161
|
Recorder.prototype.pushActionToExecution = function (executionId, actionId) {
|
|
146
|
-
var actions =
|
|
162
|
+
var actions = this.getItem(executionId) || [];
|
|
147
163
|
actions.push(actionId);
|
|
148
|
-
|
|
164
|
+
this.setItem(executionId, actions);
|
|
149
165
|
};
|
|
150
166
|
return Recorder;
|
|
151
167
|
}());
|
package/cjs/util/storage.js
CHANGED
|
@@ -16,6 +16,9 @@ if (!global_1.globalScope.sessionStorage) {
|
|
|
16
16
|
removeItem: function (key) {
|
|
17
17
|
delete storage_1.data[key];
|
|
18
18
|
},
|
|
19
|
+
clear: function () {
|
|
20
|
+
storage_1.data = {};
|
|
21
|
+
},
|
|
19
22
|
};
|
|
20
23
|
global_1.globalScope.sessionStorage = storage_1;
|
|
21
24
|
}
|
|
@@ -38,4 +41,7 @@ exports.default = {
|
|
|
38
41
|
removeItem: function (key) {
|
|
39
42
|
global_1.globalScope.sessionStorage.removeItem(key);
|
|
40
43
|
},
|
|
44
|
+
clear: function () {
|
|
45
|
+
global_1.globalScope.sessionStorage.clear();
|
|
46
|
+
},
|
|
41
47
|
};
|
package/es/Scheduler.js
CHANGED
|
@@ -232,7 +232,8 @@ var Scheduler = /** @class */ (function (_super) {
|
|
|
232
232
|
this.run(data);
|
|
233
233
|
};
|
|
234
234
|
Scheduler.prototype.saveActionResult = function (data) {
|
|
235
|
-
|
|
235
|
+
var _a;
|
|
236
|
+
(_a = this.recorder) === null || _a === void 0 ? void 0 : _a.addActionRecord({
|
|
236
237
|
executionId: data.executionId,
|
|
237
238
|
actionId: data.actionId,
|
|
238
239
|
nodeId: data.nodeId,
|
package/es/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export default class Engine {
|
|
|
10
10
|
graphData: GraphConfigData;
|
|
11
11
|
nodeModelMap: Map<string, NodeConstructor>;
|
|
12
12
|
flowModel: FlowModel;
|
|
13
|
-
recorder
|
|
13
|
+
recorder?: Recorder;
|
|
14
14
|
context: Record<string, any>;
|
|
15
15
|
constructor(options?: EngineConstructorOptions);
|
|
16
16
|
/**
|
package/es/index.js
CHANGED
|
@@ -54,9 +54,11 @@ var Engine = /** @class */ (function () {
|
|
|
54
54
|
function Engine(options) {
|
|
55
55
|
this.nodeModelMap = new Map();
|
|
56
56
|
this.instanceId = createEngineId();
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
if (options === null || options === void 0 ? void 0 : options.debug) {
|
|
58
|
+
this.recorder = new Recorder({
|
|
59
|
+
instanceId: this.instanceId,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
60
62
|
this.register({
|
|
61
63
|
type: StartNode.nodeTypeName,
|
|
62
64
|
model: StartNode,
|
|
@@ -144,32 +146,34 @@ var Engine = /** @class */ (function () {
|
|
|
144
146
|
});
|
|
145
147
|
};
|
|
146
148
|
Engine.prototype.getExecutionList = function () {
|
|
149
|
+
var _a;
|
|
147
150
|
return __awaiter(this, void 0, void 0, function () {
|
|
148
151
|
var executionIds;
|
|
149
|
-
return __generator(this, function (
|
|
150
|
-
switch (
|
|
151
|
-
case 0: return [4 /*yield*/, this.recorder.getExecutionList()];
|
|
152
|
+
return __generator(this, function (_b) {
|
|
153
|
+
switch (_b.label) {
|
|
154
|
+
case 0: return [4 /*yield*/, ((_a = this.recorder) === null || _a === void 0 ? void 0 : _a.getExecutionList())];
|
|
152
155
|
case 1:
|
|
153
|
-
executionIds =
|
|
156
|
+
executionIds = _b.sent();
|
|
154
157
|
return [2 /*return*/, executionIds];
|
|
155
158
|
}
|
|
156
159
|
});
|
|
157
160
|
});
|
|
158
161
|
};
|
|
159
162
|
Engine.prototype.getExecutionRecord = function (executionId) {
|
|
163
|
+
var _a, _b;
|
|
160
164
|
return __awaiter(this, void 0, void 0, function () {
|
|
161
165
|
var tasks, records, i;
|
|
162
|
-
return __generator(this, function (
|
|
163
|
-
switch (
|
|
164
|
-
case 0: return [4 /*yield*/, this.recorder.getExecutionActions(executionId)];
|
|
166
|
+
return __generator(this, function (_c) {
|
|
167
|
+
switch (_c.label) {
|
|
168
|
+
case 0: return [4 /*yield*/, ((_a = this.recorder) === null || _a === void 0 ? void 0 : _a.getExecutionActions(executionId))];
|
|
165
169
|
case 1:
|
|
166
|
-
tasks =
|
|
170
|
+
tasks = _c.sent();
|
|
167
171
|
if (!tasks) {
|
|
168
172
|
return [2 /*return*/, null];
|
|
169
173
|
}
|
|
170
174
|
records = [];
|
|
171
175
|
for (i = 0; i < tasks.length; i++) {
|
|
172
|
-
records.push(this.recorder.getActionRecord(tasks[i]));
|
|
176
|
+
records.push((_b = this.recorder) === null || _b === void 0 ? void 0 : _b.getActionRecord(tasks[i]));
|
|
173
177
|
}
|
|
174
178
|
return [2 /*return*/, Promise.all(records)];
|
|
175
179
|
}
|
|
@@ -177,7 +181,8 @@ var Engine = /** @class */ (function () {
|
|
|
177
181
|
});
|
|
178
182
|
};
|
|
179
183
|
Engine.prototype.destroy = function () {
|
|
180
|
-
|
|
184
|
+
var _a;
|
|
185
|
+
(_a = this.recorder) === null || _a === void 0 ? void 0 : _a.clear();
|
|
181
186
|
};
|
|
182
187
|
Engine.prototype.getGlobalData = function () {
|
|
183
188
|
var _a;
|
package/es/recorder/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export default class Recorder implements RecorderInterface {
|
|
|
6
6
|
instanceId: any;
|
|
7
7
|
});
|
|
8
8
|
setMaxRecorderNumber(maxRecorder: number): void;
|
|
9
|
+
setItem(key: string | number, value: unknown): void;
|
|
10
|
+
getItem(key: string | number): any;
|
|
9
11
|
addActionRecord(action: RecorderData): Promise<void>;
|
|
10
12
|
getActionRecord(actionId: string): Promise<RecorderData>;
|
|
11
13
|
getExecutionActions(executionId: any): Promise<any>;
|
package/es/recorder/index.js
CHANGED
|
@@ -43,7 +43,7 @@ var Recorder = /** @class */ (function () {
|
|
|
43
43
|
var instanceId = _a.instanceId;
|
|
44
44
|
this.maxRecorder = MAX_RECORDER;
|
|
45
45
|
this.instanceId = instanceId;
|
|
46
|
-
var instances =
|
|
46
|
+
var instances = this.getItem(LOGICFLOW_ENGINE_INSTANCES) || [];
|
|
47
47
|
if (instances.indexOf(instanceId) === -1) {
|
|
48
48
|
instances.push(instanceId);
|
|
49
49
|
}
|
|
@@ -51,11 +51,26 @@ var Recorder = /** @class */ (function () {
|
|
|
51
51
|
var clearInstance = instances.shift();
|
|
52
52
|
this.clearInstance(clearInstance);
|
|
53
53
|
}
|
|
54
|
-
|
|
54
|
+
this.setItem(LOGICFLOW_ENGINE_INSTANCES, instances);
|
|
55
55
|
}
|
|
56
56
|
Recorder.prototype.setMaxRecorderNumber = function (maxRecorder) {
|
|
57
57
|
this.maxRecorder = maxRecorder;
|
|
58
58
|
};
|
|
59
|
+
// 将存储 storage 的方法收敛到此处,并在此处做异常处理 - setItem
|
|
60
|
+
Recorder.prototype.setItem = function (key, value) {
|
|
61
|
+
try {
|
|
62
|
+
storage.setItem(key, value);
|
|
63
|
+
}
|
|
64
|
+
catch (error) {
|
|
65
|
+
console.log('Ops, something wrong with storage.setItem');
|
|
66
|
+
storage.clear();
|
|
67
|
+
storage.setItem(key, value);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
// getItem 方法
|
|
71
|
+
Recorder.prototype.getItem = function (key) {
|
|
72
|
+
return storage.getItem(key);
|
|
73
|
+
};
|
|
59
74
|
/*
|
|
60
75
|
* @param {Object} action
|
|
61
76
|
* {
|
|
@@ -81,7 +96,7 @@ var Recorder = /** @class */ (function () {
|
|
|
81
96
|
this.pushExecution(executionId);
|
|
82
97
|
}
|
|
83
98
|
this.pushActionToExecution(executionId, actionId);
|
|
84
|
-
|
|
99
|
+
this.setItem(actionId, action);
|
|
85
100
|
return [2 /*return*/];
|
|
86
101
|
}
|
|
87
102
|
});
|
|
@@ -90,14 +105,14 @@ var Recorder = /** @class */ (function () {
|
|
|
90
105
|
Recorder.prototype.getActionRecord = function (actionId) {
|
|
91
106
|
return __awaiter(this, void 0, void 0, function () {
|
|
92
107
|
return __generator(this, function (_a) {
|
|
93
|
-
return [2 /*return*/,
|
|
108
|
+
return [2 /*return*/, this.getItem(actionId)];
|
|
94
109
|
});
|
|
95
110
|
});
|
|
96
111
|
};
|
|
97
112
|
Recorder.prototype.getExecutionActions = function (executionId) {
|
|
98
113
|
return __awaiter(this, void 0, void 0, function () {
|
|
99
114
|
return __generator(this, function (_a) {
|
|
100
|
-
return [2 /*return*/,
|
|
115
|
+
return [2 /*return*/, this.getItem(executionId)];
|
|
101
116
|
});
|
|
102
117
|
});
|
|
103
118
|
};
|
|
@@ -105,7 +120,7 @@ var Recorder = /** @class */ (function () {
|
|
|
105
120
|
return __awaiter(this, void 0, void 0, function () {
|
|
106
121
|
var instances;
|
|
107
122
|
return __generator(this, function (_a) {
|
|
108
|
-
instances =
|
|
123
|
+
instances = this.getItem(this.instanceId) || [];
|
|
109
124
|
return [2 /*return*/, instances];
|
|
110
125
|
});
|
|
111
126
|
});
|
|
@@ -114,10 +129,11 @@ var Recorder = /** @class */ (function () {
|
|
|
114
129
|
this.clearInstance(this.instanceId);
|
|
115
130
|
};
|
|
116
131
|
Recorder.prototype.clearInstance = function (instanceId) {
|
|
117
|
-
var
|
|
132
|
+
var _this = this;
|
|
133
|
+
var instanceExecutions = this.getItem(instanceId) || [];
|
|
118
134
|
instanceExecutions.forEach(function (executionId) {
|
|
119
135
|
storage.removeItem(executionId);
|
|
120
|
-
var instanceData =
|
|
136
|
+
var instanceData = _this.getItem(executionId) || [];
|
|
121
137
|
instanceData.forEach(function (actionId) {
|
|
122
138
|
storage.removeItem(actionId);
|
|
123
139
|
});
|
|
@@ -125,25 +141,25 @@ var Recorder = /** @class */ (function () {
|
|
|
125
141
|
storage.removeItem(instanceId);
|
|
126
142
|
};
|
|
127
143
|
Recorder.prototype.pushExecution = function (executionId) {
|
|
128
|
-
var instanceExecutions =
|
|
144
|
+
var instanceExecutions = this.getItem(this.instanceId) || [];
|
|
129
145
|
if (instanceExecutions.length >= this.maxRecorder) {
|
|
130
146
|
var removeItem = instanceExecutions.shift();
|
|
131
147
|
this.popExecution(removeItem);
|
|
132
148
|
}
|
|
133
149
|
instanceExecutions.push(executionId);
|
|
134
|
-
|
|
150
|
+
this.setItem(this.instanceId, instanceExecutions);
|
|
135
151
|
};
|
|
136
152
|
Recorder.prototype.popExecution = function (executionId) {
|
|
137
|
-
var instanceData =
|
|
153
|
+
var instanceData = this.getItem(executionId) || [];
|
|
138
154
|
instanceData.forEach(function (actionId) {
|
|
139
155
|
storage.removeItem(actionId);
|
|
140
156
|
});
|
|
141
157
|
storage.removeItem(executionId);
|
|
142
158
|
};
|
|
143
159
|
Recorder.prototype.pushActionToExecution = function (executionId, actionId) {
|
|
144
|
-
var actions =
|
|
160
|
+
var actions = this.getItem(executionId) || [];
|
|
145
161
|
actions.push(actionId);
|
|
146
|
-
|
|
162
|
+
this.setItem(executionId, actions);
|
|
147
163
|
};
|
|
148
164
|
return Recorder;
|
|
149
165
|
}());
|
package/es/util/storage.d.ts
CHANGED
package/es/util/storage.js
CHANGED
|
@@ -14,6 +14,9 @@ if (!globalScope.sessionStorage) {
|
|
|
14
14
|
removeItem: function (key) {
|
|
15
15
|
delete storage_1.data[key];
|
|
16
16
|
},
|
|
17
|
+
clear: function () {
|
|
18
|
+
storage_1.data = {};
|
|
19
|
+
},
|
|
17
20
|
};
|
|
18
21
|
globalScope.sessionStorage = storage_1;
|
|
19
22
|
}
|
|
@@ -36,4 +39,7 @@ export default {
|
|
|
36
39
|
removeItem: function (key) {
|
|
37
40
|
globalScope.sessionStorage.removeItem(key);
|
|
38
41
|
},
|
|
42
|
+
clear: function () {
|
|
43
|
+
globalScope.sessionStorage.clear();
|
|
44
|
+
},
|
|
39
45
|
};
|
package/lib/main.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 n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=179)}([function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n(98))},function(t,e,n){var r=n(0),o=n(35).f,i=n(34),u=n(18),c=n(75),a=n(106),s=n(83);t.exports=function(t,e){var n,f,l,p,d,v=t.target,h=t.global,y=t.stat;if(n=h?r:y?r[v]||c(v,{}):(r[v]||{}).prototype)for(f in e){if(p=e[f],l=t.noTargetGet?(d=o(n,f))&&d.value:n[f],!s(h?f:v+(y?".":"#")+f,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),u(n,f,p,t)}}},function(t,e){var n=Function.prototype,r=n.bind,o=n.call,i=r&&r.bind(o);t.exports=r?function(t){return t&&i(o,t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e,n){var r=n(0),o=n(48),i=n(8),u=n(49),c=n(76),a=n(100),s=o("wks"),f=r.Symbol,l=f&&f.for,p=a?f:f&&f.withoutSetter||u;t.exports=function(t){if(!i(s,t)||!c&&"string"!=typeof s[t]){var e="Symbol."+t;c&&i(f,t)?s[t]=f[t]:s[t]=a&&l?l(e):p(e)}return s[t]}},function(t,e,n){var r=n(4);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},function(t,e,n){var r=n(3);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(2),o=n(15),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},function(t,e,n){var r=n(0),o=n(6),i=r.String,u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not an object")}},function(t,e,n){var r=n(0),o=n(7),i=n(102),u=n(9),c=n(53),a=r.TypeError,s=Object.defineProperty;e.f=o?s:function(t,e,n){if(u(t),e=c(e),u(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(88),o=n(18),i=n(144);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e){var n=Function.prototype.call;t.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},function(t,e,n){"use strict";var r=n(14),o=n(99),i=n(43),u=n(27),c=n(80),a=u.set,s=u.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){a(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=s(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,n){var r=n(73),o=n(47);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(0),o=n(47),i=r.Object;t.exports=function(t){return i(o(t))}},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i}));n(177),n(23),n(30),n(11),n(31),n(13),n(19),n(20);function r(t){return(r="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)}var o="object"===("undefined"==typeof window?"undefined":r(window))&&window.window===window,i="object"===(void 0===t?"undefined":r(t))&&t.global===t,u=(!o&&"object"===("undefined"==typeof self?"undefined":r(self))&&self.constructor,o?window:"object"===("undefined"==typeof self?"undefined":r(self))&&self.self===self?self:i?t:"object"===("undefined"==typeof globalThis?"undefined":r(globalThis))?globalThis:{eval:function(){}})}).call(this,n(98))},function(t,e,n){var r=n(0),o=n(4),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},function(t,e,n){var r=n(0),o=n(4),i=n(8),u=n(34),c=n(75),a=n(59),s=n(27),f=n(60).CONFIGURABLE,l=s.get,p=s.enforce,d=String(String).split("String");(t.exports=function(t,e,n,a){var s,l=!!a&&!!a.unsafe,v=!!a&&!!a.enumerable,h=!!a&&!!a.noTargetGet,y=a&&void 0!==a.name?a.name:e;o(n)&&("Symbol("===String(y).slice(0,7)&&(y="["+String(y).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||f&&n.name!==y)&&u(n,"name",y),(s=p(n)).source||(s.source=d.join("string"==typeof y?y:""))),t!==r?(l?!h&&t[e]&&(v=!0):delete t[e],v?t[e]=n:u(t,e,n)):v?t[e]=n:c(e,n)})(Function.prototype,"toString",(function(){return o(this)&&l(this).source||a(this)}))},function(t,e,n){"use strict";var r=n(145).charAt,o=n(38),i=n(27),u=n(80),c=i.set,a=i.getterFor("String Iterator");u(String,"String",(function(t){c(this,{type:"String Iterator",string:o(t),index:0})}),(function(){var t,e=a(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){var r=n(0),o=n(117),i=n(118),u=n(13),c=n(34),a=n(5),s=a("iterator"),f=a("toStringTag"),l=u.values,p=function(t,e){if(t){if(t[s]!==l)try{c(t,s,l)}catch(e){t[s]=l}if(t[f]||c(t,f,e),o[e])for(var n in u)if(t[n]!==u[n])try{c(t,n,u[n])}catch(e){t[n]=u[n]}}};for(var d in o)p(r[d]&&r[d].prototype,d);p(i,"DOMTokenList")},function(t,e,n){"use strict";var r,o,i,u,c=n(1),a=n(40),s=n(0),f=n(17),l=n(12),p=n(146),d=n(18),v=n(115),h=n(62),y=n(45),g=n(116),b=n(33),m=n(4),x=n(6),w=n(89),O=n(59),E=n(86),S=n(90),I=n(147),j=n(120).set,R=n(148),_=n(151),N=n(152),T=n(122),P=n(153),k=n(27),A=n(83),D=n(5),M=n(154),C=n(92),L=n(50),F=D("species"),G="Promise",U=k.getterFor(G),B=k.set,z=k.getterFor(G),X=p&&p.prototype,Y=p,V=X,W=s.TypeError,$=s.document,K=s.process,Q=T.f,q=Q,H=!!($&&$.createEvent&&s.dispatchEvent),J=m(s.PromiseRejectionEvent),Z=!1,tt=A(G,(function(){var t=O(Y),e=t!==String(Y);if(!e&&66===L)return!0;if(a&&!V.finally)return!0;if(L>=51&&/native code/.test(t))return!1;var n=new Y((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[F]=r,!(Z=n.then((function(){}))instanceof r)||!e&&M&&!J})),et=tt||!S((function(t){Y.all(t).catch((function(){}))})),nt=function(t){var e;return!(!x(t)||!m(e=t.then))&&e},rt=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;R((function(){for(var r=t.value,o=1==t.state,i=0;n.length>i;){var u,c,a,s=n[i++],f=o?s.ok:s.fail,p=s.resolve,d=s.reject,v=s.domain;try{f?(o||(2===t.rejection&&ct(t),t.rejection=1),!0===f?u=r:(v&&v.enter(),u=f(r),v&&(v.exit(),a=!0)),u===s.promise?d(W("Promise-chain cycle")):(c=nt(u))?l(c,u,p,d):p(u)):d(r)}catch(t){v&&!a&&v.exit(),d(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&it(t)}))}},ot=function(t,e,n){var r,o;H?((r=$.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},!J&&(o=s["on"+t])?o(r):"unhandledrejection"===t&&N("Unhandled promise rejection",n)},it=function(t){l(j,s,(function(){var e,n=t.facade,r=t.value;if(ut(t)&&(e=P((function(){C?K.emit("unhandledRejection",r,n):ot("unhandledrejection",n,r)})),t.rejection=C||ut(t)?2:1,e.error))throw e.value}))},ut=function(t){return 1!==t.rejection&&!t.parent},ct=function(t){l(j,s,(function(){var e=t.facade;C?K.emit("rejectionHandled",e):ot("rejectionhandled",e,t.value)}))},at=function(t,e,n){return function(r){t(e,r,n)}},st=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,rt(t,!0))},ft=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw W("Promise can't be resolved itself");var r=nt(e);r?R((function(){var n={done:!1};try{l(r,e,at(ft,n,t),at(st,n,t))}catch(e){st(n,e,t)}})):(t.value=e,t.state=1,rt(t,!1))}catch(e){st({done:!1},e,t)}}};if(tt&&(V=(Y=function(t){w(this,V),b(t),l(r,this);var e=U(this);try{t(at(ft,e),at(st,e))}catch(t){st(e,t)}}).prototype,(r=function(t){B(this,{type:G,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=v(V,{then:function(t,e){var n=z(this),r=n.reactions,o=Q(I(this,Y));return o.ok=!m(t)||t,o.fail=m(e)&&e,o.domain=C?K.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&rt(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=U(t);this.promise=t,this.resolve=at(ft,e),this.reject=at(st,e)},T.f=Q=function(t){return t===Y||t===i?new o(t):q(t)},!a&&m(p)&&X!==Object.prototype)){u=X.then,Z||(d(X,"then",(function(t,e){var n=this;return new Y((function(t,e){l(u,n,t,e)})).then(t,e)}),{unsafe:!0}),d(X,"catch",V.catch,{unsafe:!0}));try{delete X.constructor}catch(t){}h&&h(X,V)}c({global:!0,wrap:!0,forced:tt},{Promise:Y}),y(Y,G,!1,!0),g(G),i=f(G),c({target:G,stat:!0,forced:tt},{reject:function(t){var e=Q(this);return l(e.reject,void 0,t),e.promise}}),c({target:G,stat:!0,forced:a||tt},{resolve:function(t){return _(a&&this===i?Y:this,t)}}),c({target:G,stat:!0,forced:et},{all:function(t){var e=this,n=Q(e),r=n.resolve,o=n.reject,i=P((function(){var n=b(e.resolve),i=[],u=0,c=1;E(t,(function(t){var a=u++,s=!1;c++,l(n,e,t).then((function(t){s||(s=!0,i[a]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Q(e),r=n.reject,o=P((function(){var o=b(e.resolve);E(t,(function(t){l(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},function(t,e,n){var r=n(1),o=n(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(10).f})},function(t,e,n){"use strict";var r=n(1),o=n(0),i=n(17),u=n(91),c=n(12),a=n(2),s=n(40),f=n(7),l=n(76),p=n(3),d=n(8),v=n(46),h=n(4),y=n(6),g=n(41),b=n(77),m=n(9),x=n(15),w=n(14),O=n(53),E=n(38),S=n(44),I=n(25),j=n(55),R=n(61),_=n(111),N=n(82),T=n(35),P=n(10),k=n(81),A=n(65),D=n(18),M=n(48),C=n(58),L=n(42),F=n(49),G=n(5),U=n(123),B=n(124),z=n(45),X=n(27),Y=n(66).forEach,V=C("hidden"),W=G("toPrimitive"),$=X.set,K=X.getterFor("Symbol"),Q=Object.prototype,q=o.Symbol,H=q&&q.prototype,J=o.TypeError,Z=o.QObject,tt=i("JSON","stringify"),et=T.f,nt=P.f,rt=_.f,ot=k.f,it=a([].push),ut=M("symbols"),ct=M("op-symbols"),at=M("string-to-symbol-registry"),st=M("symbol-to-string-registry"),ft=M("wks"),lt=!Z||!Z.prototype||!Z.prototype.findChild,pt=f&&p((function(){return 7!=I(nt({},"a",{get:function(){return nt(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=et(Q,e);r&&delete Q[e],nt(t,e,n),r&&t!==Q&&nt(Q,e,r)}:nt,dt=function(t,e){var n=ut[t]=I(H);return $(n,{type:"Symbol",tag:t,description:e}),f||(n.description=e),n},vt=function(t,e,n){t===Q&&vt(ct,e,n),m(t);var r=O(e);return m(n),d(ut,r)?(n.enumerable?(d(t,V)&&t[V][r]&&(t[V][r]=!1),n=I(n,{enumerable:S(0,!1)})):(d(t,V)||nt(t,V,S(1,{})),t[V][r]=!0),pt(t,r,n)):nt(t,r,n)},ht=function(t,e){m(t);var n=w(e),r=j(n).concat(mt(n));return Y(r,(function(e){f&&!c(yt,n,e)||vt(t,e,n[e])})),t},yt=function(t){var e=O(t),n=c(ot,this,e);return!(this===Q&&d(ut,e)&&!d(ct,e))&&(!(n||!d(this,e)||!d(ut,e)||d(this,V)&&this[V][e])||n)},gt=function(t,e){var n=w(t),r=O(e);if(n!==Q||!d(ut,r)||d(ct,r)){var o=et(n,r);return!o||!d(ut,r)||d(n,V)&&n[V][r]||(o.enumerable=!0),o}},bt=function(t){var e=rt(w(t)),n=[];return Y(e,(function(t){d(ut,t)||d(L,t)||it(n,t)})),n},mt=function(t){var e=t===Q,n=rt(e?ct:w(t)),r=[];return Y(n,(function(t){!d(ut,t)||e&&!d(Q,t)||it(r,ut[t])})),r};(l||(D(H=(q=function(){if(g(H,this))throw J("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?E(arguments[0]):void 0,e=F(t),n=function(t){this===Q&&c(n,ct,t),d(this,V)&&d(this[V],e)&&(this[V][e]=!1),pt(this,e,S(1,t))};return f&<&&pt(Q,e,{configurable:!0,set:n}),dt(e,t)}).prototype,"toString",(function(){return K(this).tag})),D(q,"withoutSetter",(function(t){return dt(F(t),t)})),k.f=yt,P.f=vt,T.f=gt,R.f=_.f=bt,N.f=mt,U.f=function(t){return dt(G(t),t)},f&&(nt(H,"description",{configurable:!0,get:function(){return K(this).description}}),s||D(Q,"propertyIsEnumerable",yt,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),Y(j(ft),(function(t){B(t)})),r({target:"Symbol",stat:!0,forced:!l},{for:function(t){var e=E(t);if(d(at,e))return at[e];var n=q(e);return at[e]=n,st[n]=e,n},keyFor:function(t){if(!b(t))throw J(t+" is not a symbol");if(d(st,t))return st[t]},useSetter:function(){lt=!0},useSimple:function(){lt=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!f},{create:function(t,e){return void 0===e?I(t):ht(I(t),e)},defineProperty:vt,defineProperties:ht,getOwnPropertyDescriptor:gt}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:bt,getOwnPropertySymbols:mt}),r({target:"Object",stat:!0,forced:p((function(){N.f(1)}))},{getOwnPropertySymbols:function(t){return N.f(x(t))}}),tt)&&r({target:"JSON",stat:!0,forced:!l||p((function(){var t=q();return"[null]"!=tt([t])||"{}"!=tt({a:t})||"{}"!=tt(Object(t))}))},{stringify:function(t,e,n){var r=A(arguments),o=e;if((y(e)||void 0!==t)&&!b(t))return v(e)||(e=function(t,e){if(h(o)&&(e=c(o,this,t,e)),!b(e))return e}),r[1]=e,u(tt,null,r)}});if(!H[W]){var xt=H.valueOf;D(H,W,(function(t){return c(xt,this)}))}z(q,"Symbol"),L[V]=!0},function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",u=r.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function a(t,e,n,r){var o=e&&e.prototype instanceof l?e:l,i=Object.create(o.prototype),u=new E(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return I()}for(n.method=o,n.arg=i;;){var u=n.delegate;if(u){var c=x(u,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var a=s(t,e,n);if("normal"===a.type){if(r=n.done?"completed":"suspendedYield",a.arg===f)continue;return{value:a.arg,done:n.done}}"throw"===a.type&&(r="completed",n.method="throw",n.arg=a.arg)}}}(t,n,u),i}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=a;var f={};function l(){}function p(){}function d(){}var v={};c(v,o,(function(){return this}));var h=Object.getPrototypeOf,y=h&&h(h(S([])));y&&y!==e&&n.call(y,o)&&(v=y);var g=d.prototype=l.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function m(t,e){var r;this._invoke=function(o,i){function u(){return new e((function(r,u){!function r(o,i,u,c){var a=s(t[o],t,i);if("throw"!==a.type){var f=a.arg,l=f.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,c)}))}c(a.arg)}(o,i,r,u)}))}return r=r?r.then(u,u):u()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=s(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,f;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function S(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:I}}function I(){return{value:void 0,done:!0}}return p.prototype=d,c(g,"constructor",d),c(d,"constructor",p),p.displayName=c(d,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,c(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(m.prototype),c(m.prototype,i,(function(){return this})),t.AsyncIterator=m,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var u=new m(a(e,n,r,o),i);return t.isGeneratorFunction(n)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},b(g),c(g,u,"Generator"),c(g,o,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return u.type="throw",u.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),a=n.call(i,"finallyLoc");if(c&&a){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var u=i?i.completion:{};return u.type=t,u.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(u)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}(t.exports);try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){var r,o=n(9),i=n(101),u=n(79),c=n(42),a=n(105),s=n(52),f=n(58),l=f("IE_PROTO"),p=function(){},d=function(t){return"<script>"+t+"<\/script>"},v=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;h="undefined"!=typeof document?document.domain&&r?v(r):((e=s("iframe")).style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):v(r);for(var n=u.length;n--;)delete h.prototype[u[n]];return h()};c[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[l]=t):n=h(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(133);t.exports=function(t){return r(t.length)}},function(t,e,n){var r,o,i,u=n(134),c=n(0),a=n(2),s=n(6),f=n(34),l=n(8),p=n(74),d=n(58),v=n(42),h=c.TypeError,y=c.WeakMap;if(u||p.state){var g=p.state||(p.state=new y),b=a(g.get),m=a(g.has),x=a(g.set);r=function(t,e){if(m(g,t))throw new h("Object already initialized");return e.facade=t,x(g,t,e),e},o=function(t){return b(g,t)||{}},i=function(t){return m(g,t)}}else{var w=d("state");v[w]=!0,r=function(t,e){if(l(t,w))throw new h("Object already initialized");return e.facade=t,f(t,w,e),e},o=function(t){return l(t,w)?t[w]:{}},i=function(t){return l(t,w)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!s(e)||(n=o(e)).type!==t)throw h("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){"use strict";var r=n(1),o=n(125);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,n){var r=n(0),o=n(117),i=n(118),u=n(125),c=n(34),a=function(t){if(t&&t.forEach!==u)try{c(t,"forEach",u)}catch(e){t.forEach=u}};for(var s in o)o[s]&&a(r[s]&&r[s].prototype);a(i)},function(t,e,n){"use strict";var r=n(1),o=n(7),i=n(0),u=n(2),c=n(8),a=n(4),s=n(41),f=n(38),l=n(10).f,p=n(106),d=i.Symbol,v=d&&d.prototype;if(o&&a(d)&&(!("description"in v)||void 0!==d().description)){var h={},y=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:f(arguments[0]),e=s(v,this)?new d(t):void 0===t?d():d(t);return""===t&&(h[e]=!0),e};p(y,d),y.prototype=v,v.constructor=y;var g="Symbol(test)"==String(d("test")),b=u(v.toString),m=u(v.valueOf),x=/^Symbol\((.*)\)[^)]+$/,w=u("".replace),O=u("".slice);l(v,"description",{configurable:!0,get:function(){var t=m(this),e=b(t);if(c(h,t))return"";var n=g?O(e,7,-1):w(e,x,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:y})}},function(t,e,n){n(124)("iterator")},function(t,e,n){var r=n(2),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},function(t,e,n){var r=n(0),o=n(4),i=n(54),u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a function")}},function(t,e,n){var r=n(7),o=n(10),i=n(44);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(7),o=n(12),i=n(81),u=n(44),c=n(14),a=n(53),s=n(8),f=n(102),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=c(t),e=a(e),f)try{return l(t,e)}catch(t){}if(s(t,e))return u(!o(i.f,t,e),t[e])}},function(t,e,n){"use strict";var r=n(53),o=n(10),i=n(44);t.exports=function(t,e,n){var u=r(e);u in t?o.f(t,u,i(0,n)):t[u]=n}},function(t,e,n){var r=n(2),o=n(33),i=r(r.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,n){var r=n(0),o=n(63),i=r.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,n){var r=n(1),o=n(15),i=n(55);r({target:"Object",stat:!0,forced:n(3)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},function(t,e){t.exports=!1},function(t,e,n){var r=n(2);t.exports=r({}.isPrototypeOf)},function(t,e){t.exports={}},function(t,e){t.exports={}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(10).f,o=n(8),i=n(5)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(32);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(0).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},function(t,e,n){var r=n(40),o=n(74);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(2),o=0,i=Math.random(),u=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},function(t,e,n){var r,o,i=n(0),u=n(51),c=i.process,a=i.Deno,s=c&&c.versions||a&&a.version,f=s&&s.v8;f&&(o=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},function(t,e,n){var r=n(17);t.exports=r("navigator","userAgent")||""},function(t,e,n){var r=n(0),o=n(6),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,e,n){var r=n(131),o=n(77);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},function(t,e,n){var r=n(0).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,e,n){var r=n(103),o=n(79);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(57),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){var e=+t;return e!=e||0===e?0:(e>0?r:n)(e)}},function(t,e,n){var r=n(48),o=n(49),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e,n){var r=n(2),o=n(4),i=n(74),u=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},function(t,e,n){var r=n(7),o=n(8),i=Function.prototype,u=r&&Object.getOwnPropertyDescriptor,c=o(i,"name"),a=c&&"something"===function(){}.name,s=c&&(!r||r&&u(i,"name").configurable);t.exports={EXISTS:c,PROPER:a,CONFIGURABLE:s}},function(t,e,n){var r=n(103),o=n(79).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(2),o=n(9),i=n(136);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return o(n),i(r),e?t(n,r):n.__proto__=r,n}}():void 0)},function(t,e,n){var r=n(0),o=n(88),i=n(4),u=n(32),c=n(5)("toStringTag"),a=r.Object,s="Arguments"==u(function(){return arguments}());t.exports=o?u:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=a(t),c))?n:s?u(e):"Object"==(r=u(e))&&i(e.callee)?"Arguments":r}},function(t,e,n){var r=n(2),o=n(3),i=n(4),u=n(63),c=n(17),a=n(59),s=function(){},f=[],l=c("Reflect","construct"),p=/^\s*(?:class|function)\b/,d=r(p.exec),v=!p.exec(s),h=function(t){if(!i(t))return!1;try{return l(s,f,t),!0}catch(t){return!1}};t.exports=!l||o((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?function(t){if(!i(t))return!1;switch(u(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return v||!!d(p,a(t))}:h},function(t,e,n){var r=n(2);t.exports=r([].slice)},function(t,e,n){var r=n(37),o=n(2),i=n(73),u=n(15),c=n(26),a=n(93),s=o([].push),f=function(t){var e=1==t,n=2==t,o=3==t,f=4==t,l=6==t,p=7==t,d=5==t||l;return function(v,h,y,g){for(var b,m,x=u(v),w=i(x),O=r(h,y),E=c(w),S=0,I=g||a,j=e?I(v,E):n||p?I(v,0):void 0;E>S;S++)if((d||S in w)&&(m=O(b=w[S],S,x),t))if(e)j[S]=m;else if(m)switch(t){case 3:return!0;case 5:return b;case 6:return S;case 2:s(j,b)}else switch(t){case 4:return!1;case 7:s(j,b)}return l?-1:o||f?f:j}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},function(t,e,n){"use strict";var r=n(1),o=n(66).filter;r({target:"Array",proto:!0,forced:!n(68)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(3),o=n(5),i=n(50),u=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[u]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var r=n(1),o=n(3),i=n(14),u=n(35).f,c=n(7),a=o((function(){u(1)}));r({target:"Object",stat:!0,forced:!c||a,sham:!c},{getOwnPropertyDescriptor:function(t,e){return u(i(t),e)}})},function(t,e,n){var r=n(1),o=n(7),i=n(107),u=n(14),c=n(35),a=n(36);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,n,r=u(t),o=c.f,s=i(r),f={},l=0;s.length>l;)void 0!==(n=o(r,e=s[l++]))&&a(f,e,n);return f}})},function(t,e,n){var r=n(1),o=n(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n(101)})},function(t,e,n){"use strict";var r=n(1),o=n(0),i=n(3),u=n(46),c=n(6),a=n(15),s=n(26),f=n(36),l=n(93),p=n(68),d=n(5),v=n(50),h=d("isConcatSpreadable"),y=o.TypeError,g=v>=51||!i((function(){var t=[];return t[h]=!1,t.concat()[0]!==t})),b=p("concat"),m=function(t){if(!c(t))return!1;var e=t[h];return void 0!==e?!!e:u(t)};r({target:"Array",proto:!0,forced:!g||!b},{concat:function(t){var e,n,r,o,i,u=a(this),c=l(u,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(m(i=-1===e?u:arguments[e])){if(p+(o=s(i))>9007199254740991)throw y("Maximum allowed index exceeded");for(n=0;n<o;n++,p++)n in i&&f(c,p,i[n])}else{if(p>=9007199254740991)throw y("Maximum allowed index exceeded");f(c,p++,i)}return c.length=p,c}})},function(t,e,n){var r=n(0),o=n(2),i=n(3),u=n(32),c=r.Object,a=o("".split);t.exports=i((function(){return!c("z").propertyIsEnumerable(0)}))?function(t){return"String"==u(t)?a(t,""):c(t)}:c},function(t,e,n){var r=n(0),o=n(75),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(0),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(50),o=n(3);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e,n){var r=n(0),o=n(17),i=n(4),u=n(41),c=n(100),a=r.Object;t.exports=c?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return i(e)&&u(e.prototype,a(t))}},function(t,e,n){var r=n(33);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){"use strict";var r=n(1),o=n(12),i=n(40),u=n(60),c=n(4),a=n(135),s=n(84),f=n(62),l=n(45),p=n(34),d=n(18),v=n(5),h=n(43),y=n(108),g=u.PROPER,b=u.CONFIGURABLE,m=y.IteratorPrototype,x=y.BUGGY_SAFARI_ITERATORS,w=v("iterator"),O=function(){return this};t.exports=function(t,e,n,u,v,y,E){a(n,e,u);var S,I,j,R=function(t){if(t===v&&k)return k;if(!x&&t in T)return T[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},_=e+" Iterator",N=!1,T=t.prototype,P=T[w]||T["@@iterator"]||v&&T[v],k=!x&&P||R(v),A="Array"==e&&T.entries||P;if(A&&(S=s(A.call(new t)))!==Object.prototype&&S.next&&(i||s(S)===m||(f?f(S,m):c(S[w])||d(S,w,O)),l(S,_,!0,!0),i&&(h[_]=O)),g&&"values"==v&&P&&"values"!==P.name&&(!i&&b?p(T,"name","values"):(N=!0,k=function(){return o(P,this)})),v)if(I={values:R("values"),keys:y?k:R("keys"),entries:R("entries")},E)for(j in I)(x||N||!(j in T))&&d(T,j,I[j]);else r({target:e,proto:!0,forced:x||N},I);return i&&!E||T[w]===k||d(T,w,k,{name:v}),h[e]=k,I}},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(3),o=n(4),i=/#|\.prototype\./,u=function(t,e){var n=a[c(t)];return n==f||n!=s&&(o(e)?r(e):!!e)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=u.data={},s=u.NATIVE="N",f=u.POLYFILL="P";t.exports=u},function(t,e,n){var r=n(0),o=n(8),i=n(4),u=n(15),c=n(58),a=n(109),s=c("IE_PROTO"),f=r.Object,l=f.prototype;t.exports=a?f.getPrototypeOf:function(t){var e=u(t);if(o(e,s))return e[s];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof f?l:null}},function(t,e,n){"use strict";n(137)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(143))},function(t,e,n){var r=n(0),o=n(37),i=n(12),u=n(9),c=n(54),a=n(112),s=n(26),f=n(41),l=n(113),p=n(87),d=n(114),v=r.TypeError,h=function(t,e){this.stopped=t,this.result=e},y=h.prototype;t.exports=function(t,e,n){var r,g,b,m,x,w,O,E=n&&n.that,S=!(!n||!n.AS_ENTRIES),I=!(!n||!n.IS_ITERATOR),j=!(!n||!n.INTERRUPTED),R=o(e,E),_=function(t){return r&&d(r,"normal",t),new h(!0,t)},N=function(t){return S?(u(t),j?R(t[0],t[1],_):R(t[0],t[1])):j?R(t,_):R(t)};if(I)r=t;else{if(!(g=p(t)))throw v(c(t)+" is not iterable");if(a(g)){for(b=0,m=s(t);m>b;b++)if((x=N(t[b]))&&f(y,x))return x;return new h(!1)}r=l(t,g)}for(w=r.next;!(O=i(w,r)).done;){try{x=N(O.value)}catch(t){d(r,"throw",t)}if("object"==typeof x&&x&&f(y,x))return x}return new h(!1)}},function(t,e,n){var r=n(63),o=n(78),i=n(43),u=n(5)("iterator");t.exports=function(t){if(null!=t)return o(t,u)||o(t,"@@iterator")||i[r(t)]}},function(t,e,n){var r={};r[n(5)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r=n(0),o=n(41),i=r.TypeError;t.exports=function(t,e){if(o(e,t))return t;throw i("Incorrect invocation")}},function(t,e,n){var r=n(5)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[r]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e){var n=Function.prototype,r=n.apply,o=n.bind,i=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?i.bind(r):function(){return i.apply(r,arguments)})},function(t,e,n){var r=n(32),o=n(0);t.exports="process"==r(o.process)},function(t,e,n){var r=n(158);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e,n){n(1)({target:"Object",stat:!0},{setPrototypeOf:n(62)})},function(t,e,n){var r=n(1),o=n(3),i=n(15),u=n(84),c=n(109);r({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!c},{getPrototypeOf:function(t){return u(i(t))}})},function(t,e,n){var r=n(1),o=n(17),i=n(91),u=n(129),c=n(119),a=n(9),s=n(6),f=n(25),l=n(3),p=o("Reflect","construct"),d=Object.prototype,v=[].push,h=l((function(){function t(){}return!(p((function(){}),[],t)instanceof t)})),y=!l((function(){p((function(){}))})),g=h||y;r({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(t,e){c(t),a(e);var n=arguments.length<3?t:c(arguments[2]);if(y&&!h)return p(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return i(v,r,e),new(i(u,t,r))}var o=n.prototype,l=f(s(o)?o:d),g=i(t,l,e);return s(g)?g:l}})},function(t,e,n){n(1)({target:"Object",stat:!0,sham:!n(7)},{create:n(25)})},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(5),o=n(25),i=n(10),u=r("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,n){var r=n(76);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(7),o=n(10),i=n(9),u=n(14),c=n(55);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=u(e),a=c(e),s=a.length,f=0;s>f;)o.f(t,n=a[f++],r[n]);return t}},function(t,e,n){var r=n(7),o=n(3),i=n(52);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(2),o=n(8),i=n(14),u=n(104).indexOf,c=n(42),a=r([].push);t.exports=function(t,e){var n,r=i(t),s=0,f=[];for(n in r)!o(c,n)&&o(r,n)&&a(f,n);for(;e.length>s;)o(r,n=e[s++])&&(~u(f,n)||a(f,n));return f}},function(t,e,n){var r=n(14),o=n(56),i=n(26),u=function(t){return function(e,n,u){var c,a=r(e),s=i(a),f=o(u,s);if(t&&n!=n){for(;s>f;)if((c=a[f++])!=c)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,e,n){var r=n(17);t.exports=r("document","documentElement")},function(t,e,n){var r=n(8),o=n(107),i=n(35),u=n(10);t.exports=function(t,e){for(var n=o(e),c=u.f,a=i.f,s=0;s<n.length;s++){var f=n[s];r(t,f)||c(t,f,a(e,f))}}},function(t,e,n){var r=n(17),o=n(2),i=n(61),u=n(82),c=n(9),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(c(t)),n=u.f;return n?a(e,n(t)):e}},function(t,e,n){"use strict";var r,o,i,u=n(3),c=n(4),a=n(25),s=n(84),f=n(18),l=n(5),p=n(40),d=l("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=s(s(i)))!==Object.prototype&&(r=o):v=!0),null==r||u((function(){var t={};return r[d].call(t)!==t}))?r={}:p&&(r=a(r)),c(r[d])||f(r,d,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},function(t,e,n){var r=n(3);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(1),o=n(2),i=n(42),u=n(6),c=n(8),a=n(10).f,s=n(61),f=n(111),l=n(139),p=n(49),d=n(141),v=!1,h=p("meta"),y=0,g=function(t){a(t,h,{value:{objectID:"O"+y++,weakData:{}}})},b=t.exports={enable:function(){b.enable=function(){},v=!0;var t=s.f,e=o([].splice),n={};n[h]=1,t(n).length&&(s.f=function(n){for(var r=t(n),o=0,i=r.length;o<i;o++)if(r[o]===h){e(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,e){if(!u(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!c(t,h)){if(!l(t))return"F";if(!e)return"E";g(t)}return t[h].objectID},getWeakData:function(t,e){if(!c(t,h)){if(!l(t))return!0;if(!e)return!1;g(t)}return t[h].weakData},onFreeze:function(t){return d&&v&&l(t)&&!c(t,h)&&g(t),t}};i[h]=!0},function(t,e,n){var r=n(32),o=n(14),i=n(61).f,u=n(138),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"Window"==r(t)?function(t){try{return i(t)}catch(t){return u(c)}}(t):i(o(t))}},function(t,e,n){var r=n(5),o=n(43),i=r("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,e,n){var r=n(0),o=n(12),i=n(33),u=n(9),c=n(54),a=n(87),s=r.TypeError;t.exports=function(t,e){var n=arguments.length<2?a(t):e;if(i(n))return u(o(n,t));throw s(c(t)+" is not iterable")}},function(t,e,n){var r=n(12),o=n(9),i=n(78);t.exports=function(t,e,n){var u,c;o(t);try{if(!(u=i(t,"return"))){if("throw"===e)throw n;return n}u=r(u,t)}catch(t){c=!0,u=t}if("throw"===e)throw n;if(c)throw u;return o(u),n}},function(t,e,n){var r=n(18);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";var r=n(17),o=n(10),i=n(5),u=n(7),c=i("species");t.exports=function(t){var e=r(t),n=o.f;u&&e&&!e[c]&&n(e,c,{configurable:!0,get:function(){return this}})}},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,n){var r=n(52)("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},function(t,e,n){var r=n(0),o=n(64),i=n(54),u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a constructor")}},function(t,e,n){var r,o,i,u,c=n(0),a=n(91),s=n(37),f=n(4),l=n(8),p=n(3),d=n(105),v=n(65),h=n(52),y=n(121),g=n(92),b=c.setImmediate,m=c.clearImmediate,x=c.process,w=c.Dispatch,O=c.Function,E=c.MessageChannel,S=c.String,I=0,j={};try{r=c.location}catch(t){}var R=function(t){if(l(j,t)){var e=j[t];delete j[t],e()}},_=function(t){return function(){R(t)}},N=function(t){R(t.data)},T=function(t){c.postMessage(S(t),r.protocol+"//"+r.host)};b&&m||(b=function(t){var e=v(arguments,1);return j[++I]=function(){a(f(t)?t:O(t),void 0,e)},o(I),I},m=function(t){delete j[t]},g?o=function(t){x.nextTick(_(t))}:w&&w.now?o=function(t){w.now(_(t))}:E&&!y?(u=(i=new E).port2,i.port1.onmessage=N,o=s(u.postMessage,u)):c.addEventListener&&f(c.postMessage)&&!c.importScripts&&r&&"file:"!==r.protocol&&!p(T)?(o=T,c.addEventListener("message",N,!1)):o="onreadystatechange"in h("script")?function(t){d.appendChild(h("script")).onreadystatechange=function(){d.removeChild(this),R(t)}}:function(t){setTimeout(_(t),0)}),t.exports={set:b,clear:m}},function(t,e,n){var r=n(51);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(t,e,n){"use strict";var r=n(33),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(5);e.f=r},function(t,e,n){var r=n(157),o=n(8),i=n(123),u=n(10).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||u(e,t,{value:i.f(t)})}},function(t,e,n){"use strict";var r=n(66).forEach,o=n(126)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){"use strict";var r=n(3);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e,n){"use strict";var r=n(1),o=n(0),i=n(56),u=n(57),c=n(26),a=n(15),s=n(93),f=n(36),l=n(68)("splice"),p=o.TypeError,d=Math.max,v=Math.min;r({target:"Array",proto:!0,forced:!l},{splice:function(t,e){var n,r,o,l,h,y,g=a(this),b=c(g),m=i(t,b),x=arguments.length;if(0===x?n=r=0:1===x?(n=0,r=b-m):(n=x-2,r=v(d(u(e),0),b-m)),b+n-r>9007199254740991)throw p("Maximum allowed length exceeded");for(o=s(g,r),l=0;l<r;l++)(h=m+l)in g&&f(o,l,g[h]);if(o.length=r,n<r){for(l=m;l<b-r;l++)y=l+n,(h=l+r)in g?g[y]=g[h]:delete g[y];for(l=b;l>b-r+n;l--)delete g[l-1]}else if(n>r)for(l=b-r;l>m;l--)y=l+n-1,(h=l+r-1)in g?g[y]=g[h]:delete g[y];for(l=0;l<n;l++)g[l+m]=arguments[l+2];return g.length=b-r+n,o}})},function(t,e,n){"use strict";var r=n(1),o=n(160);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(t,e,n){"use strict";var r=n(0),o=n(2),i=n(33),u=n(6),c=n(8),a=n(65),s=r.Function,f=o([].concat),l=o([].join),p={},d=function(t,e,n){if(!c(p,e)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";p[e]=s("C,a","return new C("+l(r,",")+")")}return p[e](t,n)};t.exports=s.bind||function(t){var e=i(this),n=e.prototype,r=a(arguments,1),o=function(){var n=f(r,a(arguments));return this instanceof o?d(e,n.length,n):e.apply(t,n)};return u(n)&&(o.prototype=n),o}},function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,n){var r=n(0),o=n(12),i=n(6),u=n(77),c=n(78),a=n(132),s=n(5),f=r.TypeError,l=s("toPrimitive");t.exports=function(t,e){if(!i(t)||u(t))return t;var n,r=c(t,l);if(r){if(void 0===e&&(e="default"),n=o(r,t,e),!i(n)||u(n))return n;throw f("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},function(t,e,n){var r=n(0),o=n(12),i=n(4),u=n(6),c=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&i(n=t.toString)&&!u(r=o(n,t)))return r;if(i(n=t.valueOf)&&!u(r=o(n,t)))return r;if("string"!==e&&i(n=t.toString)&&!u(r=o(n,t)))return r;throw c("Can't convert object to primitive value")}},function(t,e,n){var r=n(57),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(0),o=n(4),i=n(59),u=r.WeakMap;t.exports=o(u)&&/native code/.test(i(u))},function(t,e,n){"use strict";var r=n(108).IteratorPrototype,o=n(25),i=n(44),u=n(45),c=n(43),a=function(){return this};t.exports=function(t,e,n,s){var f=e+" Iterator";return t.prototype=o(r,{next:i(+!s,n)}),u(t,f,!1,!0),c[f]=a,t}},function(t,e,n){var r=n(0),o=n(4),i=r.String,u=r.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,n){"use strict";var r=n(1),o=n(0),i=n(2),u=n(83),c=n(18),a=n(110),s=n(86),f=n(89),l=n(4),p=n(6),d=n(3),v=n(90),h=n(45),y=n(142);t.exports=function(t,e,n){var g=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),m=g?"set":"add",x=o[t],w=x&&x.prototype,O=x,E={},S=function(t){var e=i(w[t]);c(w,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(b&&!p(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return b&&!p(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!p(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(u(t,!l(x)||!(b||w.forEach&&!d((function(){(new x).entries().next()})))))O=n.getConstructor(e,t,g,m),a.enable();else if(u(t,!0)){var I=new O,j=I[m](b?{}:-0,1)!=I,R=d((function(){I.has(1)})),_=v((function(t){new x(t)})),N=!b&&d((function(){for(var t=new x,e=5;e--;)t[m](e,e);return!t.has(-0)}));_||((O=e((function(t,e){f(t,w);var n=y(new x,t,O);return null!=e&&s(e,n[m],{that:n,AS_ENTRIES:g}),n}))).prototype=w,w.constructor=O),(R||N)&&(S("delete"),S("has"),g&&S("get")),(N||j)&&S(m),b&&w.clear&&delete w.clear}return E[t]=O,r({global:!0,forced:O!=x},E),h(O,t),b||n.setStrong(O,t,g),O}},function(t,e,n){var r=n(0),o=n(56),i=n(26),u=n(36),c=r.Array,a=Math.max;t.exports=function(t,e,n){for(var r=i(t),s=o(e,r),f=o(void 0===n?r:n,r),l=c(a(f-s,0)),p=0;s<f;s++,p++)u(l,p,t[s]);return l.length=p,l}},function(t,e,n){var r=n(3),o=n(6),i=n(32),u=n(140),c=Object.isExtensible,a=r((function(){c(1)}));t.exports=a||u?function(t){return!!o(t)&&((!u||"ArrayBuffer"!=i(t))&&(!c||c(t)))}:c},function(t,e,n){var r=n(3);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},function(t,e,n){var r=n(3);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,n){var r=n(4),o=n(6),i=n(62);t.exports=function(t,e,n){var u,c;return i&&r(u=e.constructor)&&u!==n&&o(c=u.prototype)&&c!==n.prototype&&i(t,c),t}},function(t,e,n){"use strict";var r=n(10).f,o=n(25),i=n(115),u=n(37),c=n(89),a=n(86),s=n(80),f=n(116),l=n(7),p=n(110).fastKey,d=n(27),v=d.set,h=d.getterFor;t.exports={getConstructor:function(t,e,n,s){var f=t((function(t,r){c(t,d),v(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=r&&a(r,t[s],{that:t,AS_ENTRIES:n})})),d=f.prototype,y=h(e),g=function(t,e,n){var r,o,i=y(t),u=b(t,e);return u?u.value=n:(i.last=u={index:o=p(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),l?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},b=function(t,e){var n,r=y(t),o=p(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(d,{clear:function(){for(var t=y(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=y(this),n=b(this,t);if(n){var r=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first==n&&(e.first=r),e.last==n&&(e.last=o),l?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=y(this),r=u(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),i(d,n?{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)}}),l&&r(d,"size",{get:function(){return y(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",o=h(e),i=h(r);s(t,e,(function(t,e){v(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),f(e)}}},function(t,e,n){"use strict";var r=n(88),o=n(63);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){var r=n(2),o=n(57),i=n(38),u=n(47),c=r("".charAt),a=r("".charCodeAt),s=r("".slice),f=function(t){return function(e,n){var r,f,l=i(u(e)),p=o(n),d=l.length;return p<0||p>=d?t?"":void 0:(r=a(l,p))<55296||r>56319||p+1===d||(f=a(l,p+1))<56320||f>57343?t?c(l,p):r:t?s(l,p,p+2):f-56320+(r-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},function(t,e,n){var r=n(0);t.exports=r.Promise},function(t,e,n){var r=n(9),o=n(119),i=n(5)("species");t.exports=function(t,e){var n,u=r(t).constructor;return void 0===u||null==(n=r(u)[i])?e:o(n)}},function(t,e,n){var r,o,i,u,c,a,s,f,l=n(0),p=n(37),d=n(35).f,v=n(120).set,h=n(121),y=n(149),g=n(150),b=n(92),m=l.MutationObserver||l.WebKitMutationObserver,x=l.document,w=l.process,O=l.Promise,E=d(l,"queueMicrotask"),S=E&&E.value;S||(r=function(){var t,e;for(b&&(t=w.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?u():i=void 0,t}}i=void 0,t&&t.enter()},h||b||g||!m||!x?!y&&O&&O.resolve?((s=O.resolve(void 0)).constructor=O,f=p(s.then,s),u=function(){f(r)}):b?u=function(){w.nextTick(r)}:(v=p(v,l),u=function(){v(r)}):(c=!0,a=x.createTextNode(""),new m(r).observe(a,{characterData:!0}),u=function(){a.data=c=!c})),t.exports=S||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,u()),i=e}},function(t,e,n){var r=n(51),o=n(0);t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==o.Pebble},function(t,e,n){var r=n(51);t.exports=/web0s(?!.*chrome)/i.test(r)},function(t,e,n){var r=n(9),o=n(6),i=n(122);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){var r=n(0);t.exports=function(t,e){var n=r.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e){t.exports="object"==typeof window},function(t,e,n){var r=n(1),o=n(156);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,e,n){"use strict";var r=n(7),o=n(2),i=n(12),u=n(3),c=n(55),a=n(82),s=n(81),f=n(15),l=n(73),p=Object.assign,d=Object.defineProperty,v=o([].concat);t.exports=!p||u((function(){if(r&&1!==p({b:1},p(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=p({},t)[n]||"abcdefghijklmnopqrst"!=c(p({},e)).join("")}))?function(t,e){for(var n=f(t),o=arguments.length,u=1,p=a.f,d=s.f;o>u;)for(var h,y=l(arguments[u++]),g=p?v(c(y),p(y)):c(y),b=g.length,m=0;b>m;)h=g[m++],r&&!i(d,y,h)||(n[h]=y[h]);return n}:p},function(t,e,n){var r=n(0);t.exports=r},function(t,e,n){var r=n(0),o=n(46),i=n(64),u=n(6),c=n(5)("species"),a=r.Array;t.exports=function(t){var e;return o(t)&&(e=t.constructor,(i(e)&&(e===a||o(e.prototype))||u(e)&&null===(e=e[c]))&&(e=void 0)),void 0===e?a:e}},function(t,e,n){"use strict";var r=n(1),o=n(66).findIndex,i=n(99),u=!0;"findIndex"in[]&&Array(1).findIndex((function(){u=!1})),r({target:"Array",proto:!0,forced:u},{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},function(t,e,n){"use strict";var r,o,i=n(12),u=n(2),c=n(38),a=n(161),s=n(162),f=n(48),l=n(25),p=n(27).get,d=n(163),v=n(164),h=f("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,g=y,b=u("".charAt),m=u("".indexOf),x=u("".replace),w=u("".slice),O=(o=/b*/g,i(y,r=/a/,"a"),i(y,o,"a"),0!==r.lastIndex||0!==o.lastIndex),E=s.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(O||S||E||d||v)&&(g=function(t){var e,n,r,o,u,s,f,d=this,v=p(d),I=c(t),j=v.raw;if(j)return j.lastIndex=d.lastIndex,e=i(g,j,I),d.lastIndex=j.lastIndex,e;var R=v.groups,_=E&&d.sticky,N=i(a,d),T=d.source,P=0,k=I;if(_&&(N=x(N,"y",""),-1===m(N,"g")&&(N+="g"),k=w(I,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==b(I,d.lastIndex-1))&&(T="(?: "+T+")",k=" "+k,P++),n=new RegExp("^(?:"+T+")",N)),S&&(n=new RegExp("^"+T+"$(?!\\s)",N)),O&&(r=d.lastIndex),o=i(y,_?n:d,k),_?o?(o.input=w(o.input,P),o[0]=w(o[0],P),o.index=d.lastIndex,d.lastIndex+=o[0].length):d.lastIndex=0:O&&o&&(d.lastIndex=d.global?o.index+o[0].length:r),S&&o&&o.length>1&&i(h,o[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o&&R)for(o.groups=s=l(null),u=0;u<R.length;u++)s[(f=R[u])[0]]=o[f[1]];return o}),t.exports=g},function(t,e,n){"use strict";var r=n(9);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(3),o=n(0).RegExp,i=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),u=i||r((function(){return!o("a","y").sticky})),c=i||r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:c,MISSED_STICKY:u,UNSUPPORTED_Y:i}},function(t,e,n){var r=n(3),o=n(0).RegExp;t.exports=r((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,e,n){var r=n(3),o=n(0).RegExp;t.exports=r((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},function(t,e,n){n(1)({target:"Function",proto:!0},{bind:n(129)})},function(t,e,n){var r=n(1),o=n(0),i=n(2),u=o.Date,c=i(u.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return c(new u)}})},function(t,e,n){var r=n(2),o=n(18),i=Date.prototype,u=r(i.toString),c=r(i.getTime);"Invalid Date"!=String(new Date(NaN))&&o(i,"toString",(function(){var t=c(this);return t==t?u(this):"Invalid Date"}))},function(t,e,n){"use strict";var r=n(1),o=n(169).trim;r({target:"String",proto:!0,forced:n(170)("trim")},{trim:function(){return o(this)}})},function(t,e,n){var r=n(2),o=n(47),i=n(38),u=n(130),c=r("".replace),a="["+u+"]",s=RegExp("^"+a+a+"*"),f=RegExp(a+a+"*$"),l=function(t){return function(e){var n=i(o(e));return 1&t&&(n=c(n,s,"")),2&t&&(n=c(n,f,"")),n}};t.exports={start:l(1),end:l(2),trim:l(3)}},function(t,e,n){var r=n(60).PROPER,o=n(3),i=n(130);t.exports=function(t){return o((function(){return!!i[t]()||"
"!=="
"[t]()||r&&i[t].name!==t}))}},function(t,e,n){"use strict";var r=n(1),o=n(0),i=n(46),u=n(64),c=n(6),a=n(56),s=n(26),f=n(14),l=n(36),p=n(5),d=n(68),v=n(65),h=d("slice"),y=p("species"),g=o.Array,b=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(t,e){var n,r,o,p=f(this),d=s(p),h=a(t,d),m=a(void 0===e?d:e,d);if(i(p)&&(n=p.constructor,(u(n)&&(n===g||i(n.prototype))||c(n)&&null===(n=n[y]))&&(n=void 0),n===g||void 0===n))return v(p,h,m);for(r=new(void 0===n?g:n)(b(m-h,0)),o=0;h<m;h++,o++)h in p&&l(r,o,p[h]);return r.length=o,r}})},function(t,e,n){var r=n(7),o=n(60).EXISTS,i=n(2),u=n(10).f,c=Function.prototype,a=i(c.toString),s=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,f=i(s.exec);r&&!o&&u(c,"name",{configurable:!0,get:function(){try{return f(s,a(this))[1]}catch(t){return""}}})},function(t,e,n){var r=n(1),o=n(174);r({target:"Array",stat:!0,forced:!n(90)((function(t){Array.from(t)}))},{from:o})},function(t,e,n){"use strict";var r=n(0),o=n(37),i=n(12),u=n(15),c=n(175),a=n(112),s=n(64),f=n(26),l=n(36),p=n(113),d=n(87),v=r.Array;t.exports=function(t){var e=u(t),n=s(this),r=arguments.length,h=r>1?arguments[1]:void 0,y=void 0!==h;y&&(h=o(h,r>2?arguments[2]:void 0));var g,b,m,x,w,O,E=d(e),S=0;if(!E||this==v&&a(E))for(g=f(e),b=n?new this(g):v(g);g>S;S++)O=y?h(e[S],S):e[S],l(b,S,O);else for(w=(x=p(e,E)).next,b=n?new this:[];!(m=i(w,x)).done;S++)O=y?c(x,h,[m.value,S],!0):m.value,l(b,S,O);return b.length=S,b}},function(t,e,n){var r=n(9),o=n(114);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){o(t,"throw",e)}}},function(t,e,n){n(1)({target:"Array",stat:!0},{isArray:n(46)})},function(t,e,n){n(1)({global:!0},{globalThis:n(0)})},function(t,e,n){"use strict";var r=n(1),o=n(2),i=n(104).indexOf,u=n(126),c=o([].indexOf),a=!!c&&1/c([1],1,-0)<0,s=u("indexOf");r({target:"Array",proto:!0,forced:a||!s},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return a?c(this,t,e)||0:i(this,t,e)}})},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return Ut})),n.d(e,"Engine",(function(){return Ut})),n.d(e,"TaskNode",(function(){return St})),n.d(e,"StartNode",(function(){return ht})),n.d(e,"Recorder",(function(){return At}));var r,o,i;n(24),n(13),n(85),n(11),n(19),n(20),n(21),n(155),n(22),n(39),n(23),n(67),n(69),n(28),n(29),n(70),n(71),n(159),n(127),n(72);!function(t){t.COMPLETED="completed",t.INTERRUPTED="interrupted",t.RUNNING="running",t.PENDING="pending",t.ERROR="error"}(r||(r={})),function(t){t.SUCCESS="success",t.ERROR="error",t.INTERRUPTED="interrupted"}(o||(o={}));var u=new Uint8Array(16);function c(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(u)}var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var s=function(t){return"string"==typeof t&&a.test(t)},f=[],l=0;l<256;++l)f.push((l+256).toString(16).substr(1));var p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(f[t[e+0]]+f[t[e+1]]+f[t[e+2]]+f[t[e+3]]+"-"+f[t[e+4]]+f[t[e+5]]+"-"+f[t[e+6]]+f[t[e+7]]+"-"+f[t[e+8]]+f[t[e+9]]+"-"+f[t[e+10]]+f[t[e+11]]+f[t[e+12]]+f[t[e+13]]+f[t[e+14]]+f[t[e+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n};var d=function(t,e,n){var r=(t=t||{}).random||(t.rng||c)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return p(r)};n(128),n(165),n(166),n(167),n(94),n(95),n(96),n(97),n(30),n(31),n(168);function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t){return(h="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 y(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(a):Promise.resolve(a).then(r,o)}function g(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){y(i,r,o,u,c,"next",t)}function c(t){y(i,r,o,u,c,"throw",t)}u(void 0)}))}}function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?b(Object(n),!0).forEach((function(e){x(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function x(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function O(t,e){return(O=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function E(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=I(t);if(e){var o=I(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(t,e){if(e&&("object"===h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function I(t){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var j,R,_,N,T=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&O(t,e)}(a,t);var e,n,o,i,u,c=E(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=c.call(this)).nodeQueueMap=new Map,e.actionRunningMap=new Map,e.flowModel=t.flowModel,e.recorder=t.recorder,e}return e=a,(n=[{key:"addAction",value:function(t){var e=t.executionId;this.nodeQueueMap.has(e)||this.nodeQueueMap.set(e,[]),this.nodeQueueMap.get(e).push(t)}},{key:"run",value:function(t){for(var e,n=this.nodeQueueMap.get(t.executionId);n.length;){var o=n.pop(),i=(e=void 0,e=d(),"action-".concat(e)),u=m(m({},o),{},{actionId:i});this.pushActionToRunningMap(u),this.exec(u)}this.hasRunningAction(t.executionId)||this.emit("instance:complete",m(m({},t),{},{status:r.COMPLETED}))}},{key:"resume",value:(u=g(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.pushActionToRunningMap({executionId:e.executionId,nodeId:e.nodeId,actionId:e.actionId}),n=this.flowModel.createAction(e.nodeId),t.next=4,n.resume(m(m({},e),{},{next:this.next.bind(this)}));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:"pushActionToRunningMap",value:function(t){var e=t.executionId,n=t.actionId;if(!this.actionRunningMap.has(e)){var r=new Map;this.actionRunningMap.set(e,r)}this.actionRunningMap.get(e).set(n,t)}},{key:"removeActionFromRunningMap",value:function(t){var e=t.executionId,n=t.actionId;if(n){var r=this.actionRunningMap.get(e);r&&r.delete(n)}}},{key:"hasRunningAction",value:function(t){var e=this.actionRunningMap.get(t);return!(!e||0===e.size&&(this.actionRunningMap.delete(t),1))}},{key:"exec",value:(i=g(regeneratorRuntime.mark((function t(e){var n,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.flowModel.createAction(e.nodeId),t.next=3,n.execute({executionId:e.executionId,actionId:e.actionId,nodeId:e.nodeId,next:this.next.bind(this)});case 3:(o=t.sent)&&o.status===r.INTERRUPTED&&(this.interrupted(o),this.saveActionResult({executionId:e.executionId,nodeId:e.nodeId,actionId:e.actionId,nodeType:o.nodeType,properties:o.properties,outgoing:o.outgoing,status:o.status,detail:o.detail}),this.removeActionFromRunningMap(e)),o&&o.status===r.ERROR&&(this.error(o),this.saveActionResult({executionId:e.executionId,nodeId:e.nodeId,actionId:e.actionId,nodeType:o.nodeType,properties:o.properties,outgoing:o.outgoing,status:o.status,detail:o.detail}),this.removeActionFromRunningMap(e));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"interrupted",value:function(t){this.emit("instance:interrupted",t)}},{key:"error",value:function(t){this.emit("instance:error",t)}},{key:"next",value:function(t){var e=this;t.outgoing&&t.outgoing.length>0&&t.outgoing.forEach((function(n){n.result&&e.addAction({executionId:t.executionId,nodeId:n.target})})),this.saveActionResult(t),this.removeActionFromRunningMap(t),this.run(t)}},{key:"saveActionResult",value:function(t){this.recorder.addActionRecord({executionId:t.executionId,actionId:t.actionId,nodeId:t.nodeId,nodeType:t.nodeType,timestamp:Date.now(),properties:t.properties,outgoing:t.outgoing,detail:t.detail,status:t.status})}}])&&w(e.prototype,n),o&&w(e,o),a}(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._events={}}var e,n,r;return e=t,(n=[{key:"on",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t=t.trim(),this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n})}},{key:"emit",value:function(t,e){var n=this;!function(r){for(var o=r.length,i=0;i<o;i++)if(r[i]){var u=r[i],c=u.callback;u.once&&(r.splice(i,1),0===r.length&&delete n._events[t],o--,i--),c.apply(n,[e])}}(this._events[t]||[])}},{key:"off",value:function(t,e){if(t||(this._events={}),e){for(var n=this._events[t]||[],r=n.length,o=0;o<r;o++)n[o].callback===e&&(n.splice(o,1),r--,o--);0===n.length&&delete this._events[t]}else delete this._events[t]}}])&&v(e.prototype,n),r&&v(e,r),t}());function P(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}!function(t){t[t.NONE_START_NODE=1e3]="NONE_START_NODE",t[t.NONE_NODE_ID=1001]="NONE_NODE_ID",t[t.NO_DOCUMENT_BODY=2001]="NO_DOCUMENT_BODY"}(_||(_={})),function(t){t[t.NONE_START_NODE_IN_DATA=2e3]="NONE_START_NODE_IN_DATA",t[t.START_NODE_INCOMING=2001]="START_NODE_INCOMING",t[t.EXPRESSION_EXEC_ERROR=3e3]="EXPRESSION_EXEC_ERROR"}(N||(N={}));var k=(P(j={},_.NONE_START_NODE,"未找到入度为0的节点"),P(j,_.NONE_NODE_ID,"流程数据中存在没有此节点"),P(j,_.NO_DOCUMENT_BODY,"找不到document.body, 请在DOM加载完成后再执行"),j),A=(P(R={},N.NONE_START_NODE_IN_DATA,"初始化数据中未找到入度为0的节点"),P(R,N.START_NODE_INCOMING,"开始节点不允许被连入"),P(R,N.EXPRESSION_EXEC_ERROR,"表达式执行异常"),R),D=function(t){return"error[".concat(t,"]: ").concat(k[t])};function M(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?M(Object(n),!0).forEach((function(e){U(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function L(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(a):Promise.resolve(a).then(r,o)}function F(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){L(i,r,o,u,c,"next",t)}function c(t){L(i,r,o,u,c,"throw",t)}u(void 0)}))}}function G(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function U(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var B=function(){function t(e){var n=this,r=e.nodeModelMap,o=e.recorder,i=e.context,u=void 0===i?{}:i,c=e.globalData,a=void 0===c?{}:c,s=e.startNodeType,f=void 0===s?"StartNode":s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),U(this,"nodeConfigMap",new Map),U(this,"startNodes",[]),U(this,"globalData",{}),this.nodeModelMap=r,this.executeList=[],this.executingInstance=null,this.context=u,this.globalData=a,this.startNodeType=f,this.isRunning=!1,this.scheduler=new T({flowModel:this,recorder:o}),this.scheduler.on("instance:complete",(function(t){n.onExecuteFinished(t)})),this.scheduler.on("instance:interrupted",(function(t){n.onExecuteFinished(t)})),this.scheduler.on("instance:error",(function(t){n.onExecuteFinished(t)}))}var e,n,r,o,i;return e=t,(n=[{key:"setStartNodeType",value:function(t){this.startNodeType=t}},{key:"load",value:function(t){var e=this,n=t.nodes,r=void 0===n?[]:n,o=t.edges,i=void 0===o?[]:o;this.startNodes=[],this.nodeConfigMap=new Map,r.forEach((function(t){if(e.nodeModelMap.has(t.type)){var n={id:t.id,type:t.type,properties:t.properties,incoming:[],outgoing:[]};e.nodeConfigMap.set(t.id,n),t.type===e.startNodeType&&e.startNodes.push(n)}else console.warn("未识别的节点类型: ".concat(t.type))})),i.forEach((function(t){var n=e.nodeConfigMap.get(t.sourceNodeId),r=e.nodeConfigMap.get(t.targetNodeId);n&&n.outgoing.push({id:t.id,properties:t.properties,target:t.targetNodeId}),r&&r.type!==e.startNodeType&&r.incoming.push({id:t.id,properties:t.properties,source:t.sourceNodeId})}))}},{key:"execute",value:(i=F(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.createExecution(e);case 1:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"resume",value:(o=F(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.createExecution(e);case 1:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"createAction",value:function(t){var e=this.nodeConfigMap.get(t);return new(this.nodeModelMap.get(e.type))({nodeConfig:e,globalData:this.globalData,context:this.context})}},{key:"updateGlobalData",value:function(t){this.globalData=C(C({},this.globalData),t)}},{key:"onExecuteFinished",value:function(t){var e=this.executeList.findIndex((function(e){return e.executionId===t.executionId}));if(-1!==e){var n=this.executeList[e].callback;this.executeList.splice(e,1),n&&n(t)}}},{key:"createExecution",value:function(t){var e=this;if(this.executeList.push(t),t.actionId&&t.executionId&&t.nodeId)this.scheduler.resume({executionId:t.executionId,actionId:t.actionId,nodeId:t.nodeId,data:t.data});else{var n,r=(n=d(),"exec-".concat(n));if(t.executionId=r,t.nodeId){var o=this.nodeConfigMap.get(t.nodeId);if(!o)return void t.onError(new Error("".concat(D(_.NONE_NODE_ID),"(").concat(t.nodeId,")")));this.startNodes=[o]}this.startNodes.forEach((function(t){e.scheduler.addAction({executionId:r,nodeId:t.id})})),this.scheduler.run({executionId:r})}}}])&&G(e.prototype,n),r&&G(e,r),t}();n(171),n(172),n(173),n(176);function z(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(a):Promise.resolve(a).then(r,o)}var X=n(180),Y=function(){var t,e=(t=regeneratorRuntime.mark((function t(e){var n,r,o=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},r=X.createContext(n),X.runInContext(e,r),t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){z(i,r,o,u,c,"next",t)}function c(t){z(i,r,o,u,c,"throw",t)}u(void 0)}))});return function(t){return e.apply(this,arguments)}}();function V(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(a):Promise.resolve(a).then(r,o)}var W=function(t){var e=document.createElement("iframe");e.style.display="none",document&&document.body||console.error(D(_.NO_DOCUMENT_BODY)),document.body.appendChild(e);var n=e.contentWindow;return n.parent=null,Object.keys(t).forEach((function(e){n[e]=t[e]})),n},$=function(t,e){try{e.eval.call(e,t),e.frameElement&&document.body.removeChild(e.frameElement)}catch(n){console.warn(function(t){return"warning[".concat(t,"]: ").concat(A[t])}(N.EXPRESSION_EXEC_ERROR),{code:t,context:e,e:n})}return e},K=function(){var t,e=(t=regeneratorRuntime.mark((function t(e){var n,r,o=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},r=W(n),$(e,r),t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){V(i,r,o,u,c,"next",t)}function c(t){V(i,r,o,u,c,"throw",t)}u(void 0)}))});return function(t){return e.apply(this,arguments)}}(),Q=n(16);function q(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(a):Promise.resolve(a).then(r,o)}var H=function(){var t,e=(t=regeneratorRuntime.mark((function t(e,n){var r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!Q.c){t.next=5;break}return t.next=3,Y(e,n);case 3:return r=t.sent,t.abrupt("return",r);case 5:if(!Q.b){t.next=10;break}return t.next=8,K(e,n);case 8:return o=t.sent,t.abrupt("return",o);case 10:return t.abrupt("return",Q.a.eval(e));case 11:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){q(i,r,o,u,c,"next",t)}function c(t){q(i,r,o,u,c,"throw",t)}u(void 0)}))});return function(t,n){return e.apply(this,arguments)}}();function J(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?J(Object(n),!0).forEach((function(e){it(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function tt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return et(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return et(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){c=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw i}}}}function et(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function nt(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(a):Promise.resolve(a).then(r,o)}function rt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){nt(i,r,o,u,c,"next",t)}function c(t){nt(i,r,o,u,c,"throw",t)}u(void 0)}))}}function ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function it(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ut=function(){function t(e){var n=e.nodeConfig,r=e.context,o=e.globalData;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.outgoing=n.outgoing,this.incoming=n.incoming,this.nodeId=n.id,this.type=n.type,this.properties=n.properties||{},this.context=r,this.globalData=o,this.baseType="base"}var e,n,r,i,u,c,a,s,f;return e=t,(n=[{key:"execute",value:(f=rt(regeneratorRuntime.mark((function t(e){var n,r,i,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.action({executionId:e.executionId,actionId:e.actionId,nodeId:this.nodeId});case 2:if(n=t.sent,(r=n?n.status:"success")!==o.SUCCESS){t.next=10;break}return t.next=7,this.getOutgoing();case 7:i=t.sent,u=n?n.detail:{},e.next({status:o.SUCCESS,detail:u,executionId:e.executionId,actionId:e.actionId,nodeId:this.nodeId,nodeType:this.type,properties:this.properties,outgoing:i});case 10:return t.abrupt("return",{status:r,detail:n&&n.detail,executionId:e.executionId,actionId:e.actionId,nodeId:this.nodeId,nodeType:this.type,properties:this.properties,outgoing:[]});case 11:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"resume",value:(s=rt(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getOutgoing();case 2:return n=t.sent,t.next=5,this.onResume({executionId:e.executionId,nodeId:e.nodeId,actionId:e.actionId,data:e.data});case 5:return e.next({executionId:e.executionId,actionId:e.actionId,nodeId:this.nodeId,nodeType:this.type,properties:this.properties,outgoing:n,status:o.SUCCESS}),t.abrupt("return",void 0);case 7:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"getOutgoing",value:(a=rt(regeneratorRuntime.mark((function t(){var e,n,r,o,i,u,c=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=[],n=[],r=tt(this.outgoing);try{for(r.s();!(o=r.n()).done;)i=o.value,u=i.properties,n.push(this.isPass(u))}catch(t){r.e(t)}finally{r.f()}return t.next=6,Promise.all(n);case 6:return t.sent.forEach((function(t,n){var r=c.outgoing[n];r.result=t,e.push(r)})),t.abrupt("return",e);case 9:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"isPass",value:(c=rt(regeneratorRuntime.mark((function t(e){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return",!0);case 2:if(n=e.conditionExpression){t.next=5;break}return t.abrupt("return",!0);case 5:return t.prev=5,t.next=8,H("isPassResult = (".concat(n,")"),Z({},this.globalData));case 8:return r=t.sent,t.abrupt("return",r.isPassResult);case 12:return t.prev=12,t.t0=t.catch(5),t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,this,[[5,12]])}))),function(t){return c.apply(this,arguments)})},{key:"action",value:(u=rt(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",null);case 1:case"end":return t.stop()}}),t)}))),function(t){return u.apply(this,arguments)})},{key:"onResume",value:(i=rt(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",void 0);case 1:case"end":return t.stop()}}),t)}))),function(t){return i.apply(this,arguments)})}])&&ot(e.prototype,n),r&&ot(e,r),t}();function ct(t){return(ct="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 at(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function st(t,e){return(st=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ft(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=dt(t);if(e){var o=dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lt(this,n)}}function lt(t,e){if(e&&("object"===ct(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return pt(t)}function pt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dt(t){return(dt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function vt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}it(ut,"nodeTypeName","BaseNode");var ht=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&st(t,e)}(n,t);var e=ft(n);function n(){var t;at(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return vt(pt(t=e.call.apply(e,[this].concat(o))),"baseType","start"),t}return n}(ut);function yt(t){return(yt="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 gt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bt(t,e){return(bt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function mt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ot(t);if(e){var o=Ot(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xt(this,n)}}function xt(t,e){if(e&&("object"===yt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return wt(t)}function wt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ot(t){return(Ot=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Et(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}vt(ht,"nodeTypeName","StartNode");var St=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&bt(t,e)}(n,t);var e=mt(n);function n(){var t;gt(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return Et(wt(t=e.call.apply(e,[this].concat(o))),"baseType","task"),t}return n}(ut);Et(St,"nodeTypeName","TaskNode");n(178);function It(t){return(It="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)}if(!Q.a.sessionStorage){var jt={data:{},setItem:function(t,e){jt.data[t]=e},getItem:function(t){return jt.data[t]},removeItem:function(t){delete jt.data[t]}};Q.a.sessionStorage=jt}var Rt=function(t,e){"object"===It(e)&&(e=JSON.stringify(e)),Q.a.sessionStorage.setItem(t,e)},_t=function(t){var e=Q.a.sessionStorage.getItem(t);try{return JSON.parse(e)}catch(t){return e}},Nt=function(t){Q.a.sessionStorage.removeItem(t)};function Tt(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(a):Promise.resolve(a).then(r,o)}function Pt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){Tt(i,r,o,u,c,"next",t)}function c(t){Tt(i,r,o,u,c,"throw",t)}u(void 0)}))}}function kt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var At=function(){function t(e){var n=e.instanceId;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.maxRecorder=100,this.instanceId=n;var r=_t("LOGICFLOW_ENGINE_INSTANCES")||[];if(-1===r.indexOf(n)&&r.push(n),r.length>100){var o=r.shift();this.clearInstance(o)}Rt("LOGICFLOW_ENGINE_INSTANCES",r)}var e,n,r,o,i,u,c;return e=t,(n=[{key:"setMaxRecorderNumber",value:function(t){this.maxRecorder=t}},{key:"addActionRecord",value:(c=Pt(regeneratorRuntime.mark((function t(e){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.executionId,r=e.actionId,t.next=3,this.getExecutionActions(n);case 3:t.sent||this.pushExecution(n),this.pushActionToExecution(n,r),Rt(r,e);case 7:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"getActionRecord",value:(u=Pt(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",_t(e));case 1:case"end":return t.stop()}}),t)}))),function(t){return u.apply(this,arguments)})},{key:"getExecutionActions",value:(i=Pt(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",_t(e));case 1:case"end":return t.stop()}}),t)}))),function(t){return i.apply(this,arguments)})},{key:"getExecutionList",value:(o=Pt(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=_t(this.instanceId)||[],t.abrupt("return",e);case 2:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"clear",value:function(){this.clearInstance(this.instanceId)}},{key:"clearInstance",value:function(t){(_t(t)||[]).forEach((function(t){Nt(t),(_t(t)||[]).forEach((function(t){Nt(t)}))})),Nt(t)}},{key:"pushExecution",value:function(t){var e=_t(this.instanceId)||[];if(e.length>=this.maxRecorder){var n=e.shift();this.popExecution(n)}e.push(t),Rt(this.instanceId,e)}},{key:"popExecution",value:function(t){(_t(t)||[]).forEach((function(t){Nt(t)})),Nt(t)}},{key:"pushActionToExecution",value:function(t,e){var n=_t(t)||[];n.push(e),Rt(t,n)}}])&&kt(e.prototype,n),r&&kt(e,r),t}();function Dt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Mt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Dt(Object(n),!0).forEach((function(e){Ct(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ct(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Lt(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(a):Promise.resolve(a).then(r,o)}function Ft(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){Lt(i,r,o,u,c,"next",t)}function c(t){Lt(i,r,o,u,c,"throw",t)}u(void 0)}))}}function Gt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Ut=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.nodeModelMap=new Map,this.instanceId=(n=d(),"engine-".concat(n)),this.recorder=new At({instanceId:this.instanceId}),this.register({type:ht.nodeTypeName,model:ht}),this.register({type:St.nodeTypeName,model:St}),this.context=(null==e?void 0:e.context)||{}}var e,n,r,o,i,u,c;return e=t,(n=[{key:"register",value:function(t){this.nodeModelMap.set(t.type,t.model)}},{key:"setCustomRecorder",value:function(t){this.recorder=t}},{key:"load",value:function(t){var e=t.graphData,n=t.startNodeType,r=void 0===n?"StartNode":n,o=t.globalData,i=void 0===o?{}:o;return this.flowModel=new B({nodeModelMap:this.nodeModelMap,recorder:this.recorder,context:this.context,globalData:i,startNodeType:r}),this.flowModel.load(e),this.flowModel}},{key:"execute",value:(c=Ft(regeneratorRuntime.mark((function t(e){var n=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){e||(e={}),n.flowModel.execute(Mt(Mt({},e),{},{callback:function(e){t(e)},onError:function(t){r(t)}}))})));case 1:case"end":return t.stop()}}),t)}))),function(t){return c.apply(this,arguments)})},{key:"resume",value:(u=Ft(regeneratorRuntime.mark((function t(e){var n=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){n.flowModel.resume(Mt(Mt({},e),{},{callback:function(e){t(e)},onError:function(t){r(t)}}))})));case 1:case"end":return t.stop()}}),t)}))),function(t){return u.apply(this,arguments)})},{key:"getExecutionList",value:(i=Ft(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.recorder.getExecutionList();case 2:return e=t.sent,t.abrupt("return",e);case 4:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"getExecutionRecord",value:(o=Ft(regeneratorRuntime.mark((function t(e){var n,r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.recorder.getExecutionActions(e);case 2:if(n=t.sent){t.next=5;break}return t.abrupt("return",null);case 5:for(r=[],o=0;o<n.length;o++)r.push(this.recorder.getActionRecord(n[o]));return t.abrupt("return",Promise.all(r));case 8:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"destroy",value:function(){this.recorder.clear()}},{key:"getGlobalData",value:function(){var t;return null===(t=this.flowModel)||void 0===t?void 0:t.globalData}},{key:"setGlobalData",value:function(t){this.flowModel&&(this.flowModel.globalData=t)}},{key:"updateGlobalData",value:function(t){this.flowModel&&Object.assign(this.flowModel.globalData,t)}}])&&Gt(e.prototype,n),r&&Gt(e,r),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"runInBrowserContext",(function(){return d})),n.d(e,"createContext",(function(){return l})),n.d(e,"runInContext",(function(){return p}));var r,o,i,u;n(11),n(21),n(23),n(30),n(31),n(13),n(19),n(20),n(28),n(29),n(39);!function(t){t[t.NONE_START_NODE=1e3]="NONE_START_NODE",t[t.NONE_NODE_ID=1001]="NONE_NODE_ID",t[t.NO_DOCUMENT_BODY=2001]="NO_DOCUMENT_BODY"}(i||(i={})),function(t){t[t.NONE_START_NODE_IN_DATA=2e3]="NONE_START_NODE_IN_DATA",t[t.START_NODE_INCOMING=2001]="START_NODE_INCOMING",t[t.EXPRESSION_EXEC_ERROR=3e3]="EXPRESSION_EXEC_ERROR"}(u||(u={}));var c=((r={})[i.NONE_START_NODE]="未找到入度为0的节点",r[i.NONE_NODE_ID]="流程数据中存在没有此节点",r[i.NO_DOCUMENT_BODY]="找不到document.body, 请在DOM加载完成后再执行",r),a=((o={})[u.NONE_START_NODE_IN_DATA]="初始化数据中未找到入度为0的节点",o[u.START_NODE_INCOMING]="开始节点不允许被连入",o[u.EXPRESSION_EXEC_ERROR]="表达式执行异常",o),s=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function u(t){try{a(r.next(t))}catch(t){i(t)}}function c(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(u,c)}a((r=r.apply(t,e||[])).next())}))},f=function(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},l=function(t){var e,n=document.createElement("iframe");n.style.display="none",document&&document.body||console.error("error["+(e=i.NO_DOCUMENT_BODY)+"]: "+c[e]),document.body.appendChild(n);var r=n.contentWindow;return r.parent=null,Object.keys(t).forEach((function(e){r[e]=t[e]})),r},p=function(t,e){try{e.eval.call(e,t),e.frameElement&&document.body.removeChild(e.frameElement)}catch(n){console.warn(function(t){return"warning["+t+"]: "+a[t]}(u.EXPRESSION_EXEC_ERROR),{code:t,context:e,e:n})}return e},d=function(t,e){return void 0===e&&(e={}),s(void 0,void 0,void 0,(function(){var n;return f(this,(function(r){return n=l(e),p(t,n),[2,n]}))}))}}])}));
|
|
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 n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=179)}([function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n(98))},function(t,e,n){var r=n(0),o=n(35).f,i=n(34),u=n(18),c=n(75),a=n(106),s=n(83);t.exports=function(t,e){var n,f,l,p,d,v=t.target,h=t.global,y=t.stat;if(n=h?r:y?r[v]||c(v,{}):(r[v]||{}).prototype)for(f in e){if(p=e[f],l=t.noTargetGet?(d=o(n,f))&&d.value:n[f],!s(h?f:v+(y?".":"#")+f,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),u(n,f,p,t)}}},function(t,e){var n=Function.prototype,r=n.bind,o=n.call,i=r&&r.bind(o);t.exports=r?function(t){return t&&i(o,t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e,n){var r=n(0),o=n(48),i=n(8),u=n(49),c=n(76),a=n(100),s=o("wks"),f=r.Symbol,l=f&&f.for,p=a?f:f&&f.withoutSetter||u;t.exports=function(t){if(!i(s,t)||!c&&"string"!=typeof s[t]){var e="Symbol."+t;c&&i(f,t)?s[t]=f[t]:s[t]=a&&l?l(e):p(e)}return s[t]}},function(t,e,n){var r=n(4);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},function(t,e,n){var r=n(3);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(2),o=n(16),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},function(t,e,n){var r=n(0),o=n(6),i=r.String,u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not an object")}},function(t,e,n){var r=n(0),o=n(7),i=n(102),u=n(9),c=n(53),a=r.TypeError,s=Object.defineProperty;e.f=o?s:function(t,e,n){if(u(t),e=c(e),u(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(88),o=n(18),i=n(144);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e){var n=Function.prototype.call;t.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i}));n(177),n(23),n(30),n(11),n(31),n(14),n(19),n(20);function r(t){return(r="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)}var o="object"===("undefined"==typeof window?"undefined":r(window))&&window.window===window,i="object"===(void 0===t?"undefined":r(t))&&t.global===t,u=(!o&&"object"===("undefined"==typeof self?"undefined":r(self))&&self.constructor,o?window:"object"===("undefined"==typeof self?"undefined":r(self))&&self.self===self?self:i?t:"object"===("undefined"==typeof globalThis?"undefined":r(globalThis))?globalThis:{eval:function(){}})}).call(this,n(98))},function(t,e,n){"use strict";var r=n(15),o=n(99),i=n(43),u=n(27),c=n(80),a=u.set,s=u.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){a(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=s(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,n){var r=n(73),o=n(47);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(0),o=n(47),i=r.Object;t.exports=function(t){return i(o(t))}},function(t,e,n){var r=n(0),o=n(4),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},function(t,e,n){var r=n(0),o=n(4),i=n(8),u=n(34),c=n(75),a=n(59),s=n(27),f=n(60).CONFIGURABLE,l=s.get,p=s.enforce,d=String(String).split("String");(t.exports=function(t,e,n,a){var s,l=!!a&&!!a.unsafe,v=!!a&&!!a.enumerable,h=!!a&&!!a.noTargetGet,y=a&&void 0!==a.name?a.name:e;o(n)&&("Symbol("===String(y).slice(0,7)&&(y="["+String(y).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||f&&n.name!==y)&&u(n,"name",y),(s=p(n)).source||(s.source=d.join("string"==typeof y?y:""))),t!==r?(l?!h&&t[e]&&(v=!0):delete t[e],v?t[e]=n:u(t,e,n)):v?t[e]=n:c(e,n)})(Function.prototype,"toString",(function(){return o(this)&&l(this).source||a(this)}))},function(t,e,n){"use strict";var r=n(145).charAt,o=n(38),i=n(27),u=n(80),c=i.set,a=i.getterFor("String Iterator");u(String,"String",(function(t){c(this,{type:"String Iterator",string:o(t),index:0})}),(function(){var t,e=a(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){var r=n(0),o=n(117),i=n(118),u=n(14),c=n(34),a=n(5),s=a("iterator"),f=a("toStringTag"),l=u.values,p=function(t,e){if(t){if(t[s]!==l)try{c(t,s,l)}catch(e){t[s]=l}if(t[f]||c(t,f,e),o[e])for(var n in u)if(t[n]!==u[n])try{c(t,n,u[n])}catch(e){t[n]=u[n]}}};for(var d in o)p(r[d]&&r[d].prototype,d);p(i,"DOMTokenList")},function(t,e,n){"use strict";var r,o,i,u,c=n(1),a=n(40),s=n(0),f=n(17),l=n(12),p=n(146),d=n(18),v=n(115),h=n(62),y=n(45),g=n(116),b=n(33),m=n(4),x=n(6),w=n(89),O=n(59),E=n(86),I=n(90),S=n(147),j=n(120).set,R=n(148),_=n(151),N=n(152),T=n(122),P=n(153),k=n(27),A=n(83),D=n(5),M=n(154),C=n(92),L=n(50),F=D("species"),G="Promise",U=k.getterFor(G),B=k.set,z=k.getterFor(G),X=p&&p.prototype,Y=p,V=X,W=s.TypeError,$=s.document,K=s.process,Q=T.f,q=Q,H=!!($&&$.createEvent&&s.dispatchEvent),J=m(s.PromiseRejectionEvent),Z=!1,tt=A(G,(function(){var t=O(Y),e=t!==String(Y);if(!e&&66===L)return!0;if(a&&!V.finally)return!0;if(L>=51&&/native code/.test(t))return!1;var n=new Y((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[F]=r,!(Z=n.then((function(){}))instanceof r)||!e&&M&&!J})),et=tt||!I((function(t){Y.all(t).catch((function(){}))})),nt=function(t){var e;return!(!x(t)||!m(e=t.then))&&e},rt=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;R((function(){for(var r=t.value,o=1==t.state,i=0;n.length>i;){var u,c,a,s=n[i++],f=o?s.ok:s.fail,p=s.resolve,d=s.reject,v=s.domain;try{f?(o||(2===t.rejection&&ct(t),t.rejection=1),!0===f?u=r:(v&&v.enter(),u=f(r),v&&(v.exit(),a=!0)),u===s.promise?d(W("Promise-chain cycle")):(c=nt(u))?l(c,u,p,d):p(u)):d(r)}catch(t){v&&!a&&v.exit(),d(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&it(t)}))}},ot=function(t,e,n){var r,o;H?((r=$.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),s.dispatchEvent(r)):r={promise:e,reason:n},!J&&(o=s["on"+t])?o(r):"unhandledrejection"===t&&N("Unhandled promise rejection",n)},it=function(t){l(j,s,(function(){var e,n=t.facade,r=t.value;if(ut(t)&&(e=P((function(){C?K.emit("unhandledRejection",r,n):ot("unhandledrejection",n,r)})),t.rejection=C||ut(t)?2:1,e.error))throw e.value}))},ut=function(t){return 1!==t.rejection&&!t.parent},ct=function(t){l(j,s,(function(){var e=t.facade;C?K.emit("rejectionHandled",e):ot("rejectionhandled",e,t.value)}))},at=function(t,e,n){return function(r){t(e,r,n)}},st=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,rt(t,!0))},ft=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw W("Promise can't be resolved itself");var r=nt(e);r?R((function(){var n={done:!1};try{l(r,e,at(ft,n,t),at(st,n,t))}catch(e){st(n,e,t)}})):(t.value=e,t.state=1,rt(t,!1))}catch(e){st({done:!1},e,t)}}};if(tt&&(V=(Y=function(t){w(this,V),b(t),l(r,this);var e=U(this);try{t(at(ft,e),at(st,e))}catch(t){st(e,t)}}).prototype,(r=function(t){B(this,{type:G,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=v(V,{then:function(t,e){var n=z(this),r=n.reactions,o=Q(S(this,Y));return o.ok=!m(t)||t,o.fail=m(e)&&e,o.domain=C?K.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&rt(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=U(t);this.promise=t,this.resolve=at(ft,e),this.reject=at(st,e)},T.f=Q=function(t){return t===Y||t===i?new o(t):q(t)},!a&&m(p)&&X!==Object.prototype)){u=X.then,Z||(d(X,"then",(function(t,e){var n=this;return new Y((function(t,e){l(u,n,t,e)})).then(t,e)}),{unsafe:!0}),d(X,"catch",V.catch,{unsafe:!0}));try{delete X.constructor}catch(t){}h&&h(X,V)}c({global:!0,wrap:!0,forced:tt},{Promise:Y}),y(Y,G,!1,!0),g(G),i=f(G),c({target:G,stat:!0,forced:tt},{reject:function(t){var e=Q(this);return l(e.reject,void 0,t),e.promise}}),c({target:G,stat:!0,forced:a||tt},{resolve:function(t){return _(a&&this===i?Y:this,t)}}),c({target:G,stat:!0,forced:et},{all:function(t){var e=this,n=Q(e),r=n.resolve,o=n.reject,i=P((function(){var n=b(e.resolve),i=[],u=0,c=1;E(t,(function(t){var a=u++,s=!1;c++,l(n,e,t).then((function(t){s||(s=!0,i[a]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Q(e),r=n.reject,o=P((function(){var o=b(e.resolve);E(t,(function(t){l(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},function(t,e,n){var r=n(1),o=n(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(10).f})},function(t,e,n){"use strict";var r=n(1),o=n(0),i=n(17),u=n(91),c=n(12),a=n(2),s=n(40),f=n(7),l=n(76),p=n(3),d=n(8),v=n(46),h=n(4),y=n(6),g=n(41),b=n(77),m=n(9),x=n(16),w=n(15),O=n(53),E=n(38),I=n(44),S=n(25),j=n(55),R=n(61),_=n(111),N=n(82),T=n(35),P=n(10),k=n(81),A=n(65),D=n(18),M=n(48),C=n(58),L=n(42),F=n(49),G=n(5),U=n(123),B=n(124),z=n(45),X=n(27),Y=n(66).forEach,V=C("hidden"),W=G("toPrimitive"),$=X.set,K=X.getterFor("Symbol"),Q=Object.prototype,q=o.Symbol,H=q&&q.prototype,J=o.TypeError,Z=o.QObject,tt=i("JSON","stringify"),et=T.f,nt=P.f,rt=_.f,ot=k.f,it=a([].push),ut=M("symbols"),ct=M("op-symbols"),at=M("string-to-symbol-registry"),st=M("symbol-to-string-registry"),ft=M("wks"),lt=!Z||!Z.prototype||!Z.prototype.findChild,pt=f&&p((function(){return 7!=S(nt({},"a",{get:function(){return nt(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=et(Q,e);r&&delete Q[e],nt(t,e,n),r&&t!==Q&&nt(Q,e,r)}:nt,dt=function(t,e){var n=ut[t]=S(H);return $(n,{type:"Symbol",tag:t,description:e}),f||(n.description=e),n},vt=function(t,e,n){t===Q&&vt(ct,e,n),m(t);var r=O(e);return m(n),d(ut,r)?(n.enumerable?(d(t,V)&&t[V][r]&&(t[V][r]=!1),n=S(n,{enumerable:I(0,!1)})):(d(t,V)||nt(t,V,I(1,{})),t[V][r]=!0),pt(t,r,n)):nt(t,r,n)},ht=function(t,e){m(t);var n=w(e),r=j(n).concat(mt(n));return Y(r,(function(e){f&&!c(yt,n,e)||vt(t,e,n[e])})),t},yt=function(t){var e=O(t),n=c(ot,this,e);return!(this===Q&&d(ut,e)&&!d(ct,e))&&(!(n||!d(this,e)||!d(ut,e)||d(this,V)&&this[V][e])||n)},gt=function(t,e){var n=w(t),r=O(e);if(n!==Q||!d(ut,r)||d(ct,r)){var o=et(n,r);return!o||!d(ut,r)||d(n,V)&&n[V][r]||(o.enumerable=!0),o}},bt=function(t){var e=rt(w(t)),n=[];return Y(e,(function(t){d(ut,t)||d(L,t)||it(n,t)})),n},mt=function(t){var e=t===Q,n=rt(e?ct:w(t)),r=[];return Y(n,(function(t){!d(ut,t)||e&&!d(Q,t)||it(r,ut[t])})),r};(l||(D(H=(q=function(){if(g(H,this))throw J("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?E(arguments[0]):void 0,e=F(t),n=function(t){this===Q&&c(n,ct,t),d(this,V)&&d(this[V],e)&&(this[V][e]=!1),pt(this,e,I(1,t))};return f&<&&pt(Q,e,{configurable:!0,set:n}),dt(e,t)}).prototype,"toString",(function(){return K(this).tag})),D(q,"withoutSetter",(function(t){return dt(F(t),t)})),k.f=yt,P.f=vt,T.f=gt,R.f=_.f=bt,N.f=mt,U.f=function(t){return dt(G(t),t)},f&&(nt(H,"description",{configurable:!0,get:function(){return K(this).description}}),s||D(Q,"propertyIsEnumerable",yt,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),Y(j(ft),(function(t){B(t)})),r({target:"Symbol",stat:!0,forced:!l},{for:function(t){var e=E(t);if(d(at,e))return at[e];var n=q(e);return at[e]=n,st[n]=e,n},keyFor:function(t){if(!b(t))throw J(t+" is not a symbol");if(d(st,t))return st[t]},useSetter:function(){lt=!0},useSimple:function(){lt=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!f},{create:function(t,e){return void 0===e?S(t):ht(S(t),e)},defineProperty:vt,defineProperties:ht,getOwnPropertyDescriptor:gt}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:bt,getOwnPropertySymbols:mt}),r({target:"Object",stat:!0,forced:p((function(){N.f(1)}))},{getOwnPropertySymbols:function(t){return N.f(x(t))}}),tt)&&r({target:"JSON",stat:!0,forced:!l||p((function(){var t=q();return"[null]"!=tt([t])||"{}"!=tt({a:t})||"{}"!=tt(Object(t))}))},{stringify:function(t,e,n){var r=A(arguments),o=e;if((y(e)||void 0!==t)&&!b(t))return v(e)||(e=function(t,e){if(h(o)&&(e=c(o,this,t,e)),!b(e))return e}),r[1]=e,u(tt,null,r)}});if(!H[W]){var xt=H.valueOf;D(H,W,(function(t){return c(xt,this)}))}z(q,"Symbol"),L[V]=!0},function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",u=r.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function a(t,e,n,r){var o=e&&e.prototype instanceof l?e:l,i=Object.create(o.prototype),u=new E(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var u=n.delegate;if(u){var c=x(u,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var a=s(t,e,n);if("normal"===a.type){if(r=n.done?"completed":"suspendedYield",a.arg===f)continue;return{value:a.arg,done:n.done}}"throw"===a.type&&(r="completed",n.method="throw",n.arg=a.arg)}}}(t,n,u),i}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=a;var f={};function l(){}function p(){}function d(){}var v={};c(v,o,(function(){return this}));var h=Object.getPrototypeOf,y=h&&h(h(I([])));y&&y!==e&&n.call(y,o)&&(v=y);var g=d.prototype=l.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function m(t,e){var r;this._invoke=function(o,i){function u(){return new e((function(r,u){!function r(o,i,u,c){var a=s(t[o],t,i);if("throw"!==a.type){var f=a.arg,l=f.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,c)}))}c(a.arg)}(o,i,r,u)}))}return r=r?r.then(u,u):u()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=s(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,f;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function I(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=d,c(g,"constructor",d),c(d,"constructor",p),p.displayName=c(d,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,c(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(m.prototype),c(m.prototype,i,(function(){return this})),t.AsyncIterator=m,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var u=new m(a(e,n,r,o),i);return t.isGeneratorFunction(n)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},b(g),c(g,u,"Generator"),c(g,o,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=I,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return u.type="throw",u.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),a=n.call(i,"finallyLoc");if(c&&a){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var u=i?i.completion:{};return u.type=t,u.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(u)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}(t.exports);try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){var r,o=n(9),i=n(101),u=n(79),c=n(42),a=n(105),s=n(52),f=n(58),l=f("IE_PROTO"),p=function(){},d=function(t){return"<script>"+t+"<\/script>"},v=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;h="undefined"!=typeof document?document.domain&&r?v(r):((e=s("iframe")).style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):v(r);for(var n=u.length;n--;)delete h.prototype[u[n]];return h()};c[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[l]=t):n=h(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(133);t.exports=function(t){return r(t.length)}},function(t,e,n){var r,o,i,u=n(134),c=n(0),a=n(2),s=n(6),f=n(34),l=n(8),p=n(74),d=n(58),v=n(42),h=c.TypeError,y=c.WeakMap;if(u||p.state){var g=p.state||(p.state=new y),b=a(g.get),m=a(g.has),x=a(g.set);r=function(t,e){if(m(g,t))throw new h("Object already initialized");return e.facade=t,x(g,t,e),e},o=function(t){return b(g,t)||{}},i=function(t){return m(g,t)}}else{var w=d("state");v[w]=!0,r=function(t,e){if(l(t,w))throw new h("Object already initialized");return e.facade=t,f(t,w,e),e},o=function(t){return l(t,w)?t[w]:{}},i=function(t){return l(t,w)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!s(e)||(n=o(e)).type!==t)throw h("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){"use strict";var r=n(1),o=n(125);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,n){var r=n(0),o=n(117),i=n(118),u=n(125),c=n(34),a=function(t){if(t&&t.forEach!==u)try{c(t,"forEach",u)}catch(e){t.forEach=u}};for(var s in o)o[s]&&a(r[s]&&r[s].prototype);a(i)},function(t,e,n){"use strict";var r=n(1),o=n(7),i=n(0),u=n(2),c=n(8),a=n(4),s=n(41),f=n(38),l=n(10).f,p=n(106),d=i.Symbol,v=d&&d.prototype;if(o&&a(d)&&(!("description"in v)||void 0!==d().description)){var h={},y=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:f(arguments[0]),e=s(v,this)?new d(t):void 0===t?d():d(t);return""===t&&(h[e]=!0),e};p(y,d),y.prototype=v,v.constructor=y;var g="Symbol(test)"==String(d("test")),b=u(v.toString),m=u(v.valueOf),x=/^Symbol\((.*)\)[^)]+$/,w=u("".replace),O=u("".slice);l(v,"description",{configurable:!0,get:function(){var t=m(this),e=b(t);if(c(h,t))return"";var n=g?O(e,7,-1):w(e,x,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:y})}},function(t,e,n){n(124)("iterator")},function(t,e,n){var r=n(2),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},function(t,e,n){var r=n(0),o=n(4),i=n(54),u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a function")}},function(t,e,n){var r=n(7),o=n(10),i=n(44);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(7),o=n(12),i=n(81),u=n(44),c=n(15),a=n(53),s=n(8),f=n(102),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=c(t),e=a(e),f)try{return l(t,e)}catch(t){}if(s(t,e))return u(!o(i.f,t,e),t[e])}},function(t,e,n){"use strict";var r=n(53),o=n(10),i=n(44);t.exports=function(t,e,n){var u=r(e);u in t?o.f(t,u,i(0,n)):t[u]=n}},function(t,e,n){var r=n(2),o=n(33),i=r(r.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,n){var r=n(0),o=n(63),i=r.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,n){var r=n(1),o=n(16),i=n(55);r({target:"Object",stat:!0,forced:n(3)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},function(t,e){t.exports=!1},function(t,e,n){var r=n(2);t.exports=r({}.isPrototypeOf)},function(t,e){t.exports={}},function(t,e){t.exports={}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(10).f,o=n(8),i=n(5)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(32);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(0).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},function(t,e,n){var r=n(40),o=n(74);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(2),o=0,i=Math.random(),u=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},function(t,e,n){var r,o,i=n(0),u=n(51),c=i.process,a=i.Deno,s=c&&c.versions||a&&a.version,f=s&&s.v8;f&&(o=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},function(t,e,n){var r=n(17);t.exports=r("navigator","userAgent")||""},function(t,e,n){var r=n(0),o=n(6),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,e,n){var r=n(131),o=n(77);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},function(t,e,n){var r=n(0).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,e,n){var r=n(103),o=n(79);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(57),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){var e=+t;return e!=e||0===e?0:(e>0?r:n)(e)}},function(t,e,n){var r=n(48),o=n(49),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e,n){var r=n(2),o=n(4),i=n(74),u=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},function(t,e,n){var r=n(7),o=n(8),i=Function.prototype,u=r&&Object.getOwnPropertyDescriptor,c=o(i,"name"),a=c&&"something"===function(){}.name,s=c&&(!r||r&&u(i,"name").configurable);t.exports={EXISTS:c,PROPER:a,CONFIGURABLE:s}},function(t,e,n){var r=n(103),o=n(79).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(2),o=n(9),i=n(136);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return o(n),i(r),e?t(n,r):n.__proto__=r,n}}():void 0)},function(t,e,n){var r=n(0),o=n(88),i=n(4),u=n(32),c=n(5)("toStringTag"),a=r.Object,s="Arguments"==u(function(){return arguments}());t.exports=o?u:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=a(t),c))?n:s?u(e):"Object"==(r=u(e))&&i(e.callee)?"Arguments":r}},function(t,e,n){var r=n(2),o=n(3),i=n(4),u=n(63),c=n(17),a=n(59),s=function(){},f=[],l=c("Reflect","construct"),p=/^\s*(?:class|function)\b/,d=r(p.exec),v=!p.exec(s),h=function(t){if(!i(t))return!1;try{return l(s,f,t),!0}catch(t){return!1}};t.exports=!l||o((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?function(t){if(!i(t))return!1;switch(u(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return v||!!d(p,a(t))}:h},function(t,e,n){var r=n(2);t.exports=r([].slice)},function(t,e,n){var r=n(37),o=n(2),i=n(73),u=n(16),c=n(26),a=n(93),s=o([].push),f=function(t){var e=1==t,n=2==t,o=3==t,f=4==t,l=6==t,p=7==t,d=5==t||l;return function(v,h,y,g){for(var b,m,x=u(v),w=i(x),O=r(h,y),E=c(w),I=0,S=g||a,j=e?S(v,E):n||p?S(v,0):void 0;E>I;I++)if((d||I in w)&&(m=O(b=w[I],I,x),t))if(e)j[I]=m;else if(m)switch(t){case 3:return!0;case 5:return b;case 6:return I;case 2:s(j,b)}else switch(t){case 4:return!1;case 7:s(j,b)}return l?-1:o||f?f:j}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},function(t,e,n){"use strict";var r=n(1),o=n(66).filter;r({target:"Array",proto:!0,forced:!n(68)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(3),o=n(5),i=n(50),u=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[u]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var r=n(1),o=n(3),i=n(15),u=n(35).f,c=n(7),a=o((function(){u(1)}));r({target:"Object",stat:!0,forced:!c||a,sham:!c},{getOwnPropertyDescriptor:function(t,e){return u(i(t),e)}})},function(t,e,n){var r=n(1),o=n(7),i=n(107),u=n(15),c=n(35),a=n(36);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,n,r=u(t),o=c.f,s=i(r),f={},l=0;s.length>l;)void 0!==(n=o(r,e=s[l++]))&&a(f,e,n);return f}})},function(t,e,n){var r=n(1),o=n(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n(101)})},function(t,e,n){"use strict";var r=n(1),o=n(0),i=n(3),u=n(46),c=n(6),a=n(16),s=n(26),f=n(36),l=n(93),p=n(68),d=n(5),v=n(50),h=d("isConcatSpreadable"),y=o.TypeError,g=v>=51||!i((function(){var t=[];return t[h]=!1,t.concat()[0]!==t})),b=p("concat"),m=function(t){if(!c(t))return!1;var e=t[h];return void 0!==e?!!e:u(t)};r({target:"Array",proto:!0,forced:!g||!b},{concat:function(t){var e,n,r,o,i,u=a(this),c=l(u,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(m(i=-1===e?u:arguments[e])){if(p+(o=s(i))>9007199254740991)throw y("Maximum allowed index exceeded");for(n=0;n<o;n++,p++)n in i&&f(c,p,i[n])}else{if(p>=9007199254740991)throw y("Maximum allowed index exceeded");f(c,p++,i)}return c.length=p,c}})},function(t,e,n){var r=n(0),o=n(2),i=n(3),u=n(32),c=r.Object,a=o("".split);t.exports=i((function(){return!c("z").propertyIsEnumerable(0)}))?function(t){return"String"==u(t)?a(t,""):c(t)}:c},function(t,e,n){var r=n(0),o=n(75),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(0),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(50),o=n(3);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e,n){var r=n(0),o=n(17),i=n(4),u=n(41),c=n(100),a=r.Object;t.exports=c?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return i(e)&&u(e.prototype,a(t))}},function(t,e,n){var r=n(33);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){"use strict";var r=n(1),o=n(12),i=n(40),u=n(60),c=n(4),a=n(135),s=n(84),f=n(62),l=n(45),p=n(34),d=n(18),v=n(5),h=n(43),y=n(108),g=u.PROPER,b=u.CONFIGURABLE,m=y.IteratorPrototype,x=y.BUGGY_SAFARI_ITERATORS,w=v("iterator"),O=function(){return this};t.exports=function(t,e,n,u,v,y,E){a(n,e,u);var I,S,j,R=function(t){if(t===v&&k)return k;if(!x&&t in T)return T[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},_=e+" Iterator",N=!1,T=t.prototype,P=T[w]||T["@@iterator"]||v&&T[v],k=!x&&P||R(v),A="Array"==e&&T.entries||P;if(A&&(I=s(A.call(new t)))!==Object.prototype&&I.next&&(i||s(I)===m||(f?f(I,m):c(I[w])||d(I,w,O)),l(I,_,!0,!0),i&&(h[_]=O)),g&&"values"==v&&P&&"values"!==P.name&&(!i&&b?p(T,"name","values"):(N=!0,k=function(){return o(P,this)})),v)if(S={values:R("values"),keys:y?k:R("keys"),entries:R("entries")},E)for(j in S)(x||N||!(j in T))&&d(T,j,S[j]);else r({target:e,proto:!0,forced:x||N},S);return i&&!E||T[w]===k||d(T,w,k,{name:v}),h[e]=k,S}},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(3),o=n(4),i=/#|\.prototype\./,u=function(t,e){var n=a[c(t)];return n==f||n!=s&&(o(e)?r(e):!!e)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=u.data={},s=u.NATIVE="N",f=u.POLYFILL="P";t.exports=u},function(t,e,n){var r=n(0),o=n(8),i=n(4),u=n(16),c=n(58),a=n(109),s=c("IE_PROTO"),f=r.Object,l=f.prototype;t.exports=a?f.getPrototypeOf:function(t){var e=u(t);if(o(e,s))return e[s];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof f?l:null}},function(t,e,n){"use strict";n(137)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(143))},function(t,e,n){var r=n(0),o=n(37),i=n(12),u=n(9),c=n(54),a=n(112),s=n(26),f=n(41),l=n(113),p=n(87),d=n(114),v=r.TypeError,h=function(t,e){this.stopped=t,this.result=e},y=h.prototype;t.exports=function(t,e,n){var r,g,b,m,x,w,O,E=n&&n.that,I=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_ITERATOR),j=!(!n||!n.INTERRUPTED),R=o(e,E),_=function(t){return r&&d(r,"normal",t),new h(!0,t)},N=function(t){return I?(u(t),j?R(t[0],t[1],_):R(t[0],t[1])):j?R(t,_):R(t)};if(S)r=t;else{if(!(g=p(t)))throw v(c(t)+" is not iterable");if(a(g)){for(b=0,m=s(t);m>b;b++)if((x=N(t[b]))&&f(y,x))return x;return new h(!1)}r=l(t,g)}for(w=r.next;!(O=i(w,r)).done;){try{x=N(O.value)}catch(t){d(r,"throw",t)}if("object"==typeof x&&x&&f(y,x))return x}return new h(!1)}},function(t,e,n){var r=n(63),o=n(78),i=n(43),u=n(5)("iterator");t.exports=function(t){if(null!=t)return o(t,u)||o(t,"@@iterator")||i[r(t)]}},function(t,e,n){var r={};r[n(5)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r=n(0),o=n(41),i=r.TypeError;t.exports=function(t,e){if(o(e,t))return t;throw i("Incorrect invocation")}},function(t,e,n){var r=n(5)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[r]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e){var n=Function.prototype,r=n.apply,o=n.bind,i=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?i.bind(r):function(){return i.apply(r,arguments)})},function(t,e,n){var r=n(32),o=n(0);t.exports="process"==r(o.process)},function(t,e,n){var r=n(158);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e,n){n(1)({target:"Object",stat:!0},{setPrototypeOf:n(62)})},function(t,e,n){var r=n(1),o=n(3),i=n(16),u=n(84),c=n(109);r({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!c},{getPrototypeOf:function(t){return u(i(t))}})},function(t,e,n){var r=n(1),o=n(17),i=n(91),u=n(129),c=n(119),a=n(9),s=n(6),f=n(25),l=n(3),p=o("Reflect","construct"),d=Object.prototype,v=[].push,h=l((function(){function t(){}return!(p((function(){}),[],t)instanceof t)})),y=!l((function(){p((function(){}))})),g=h||y;r({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(t,e){c(t),a(e);var n=arguments.length<3?t:c(arguments[2]);if(y&&!h)return p(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return i(v,r,e),new(i(u,t,r))}var o=n.prototype,l=f(s(o)?o:d),g=i(t,l,e);return s(g)?g:l}})},function(t,e,n){n(1)({target:"Object",stat:!0,sham:!n(7)},{create:n(25)})},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(5),o=n(25),i=n(10),u=r("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,n){var r=n(76);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(7),o=n(10),i=n(9),u=n(15),c=n(55);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=u(e),a=c(e),s=a.length,f=0;s>f;)o.f(t,n=a[f++],r[n]);return t}},function(t,e,n){var r=n(7),o=n(3),i=n(52);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(2),o=n(8),i=n(15),u=n(104).indexOf,c=n(42),a=r([].push);t.exports=function(t,e){var n,r=i(t),s=0,f=[];for(n in r)!o(c,n)&&o(r,n)&&a(f,n);for(;e.length>s;)o(r,n=e[s++])&&(~u(f,n)||a(f,n));return f}},function(t,e,n){var r=n(15),o=n(56),i=n(26),u=function(t){return function(e,n,u){var c,a=r(e),s=i(a),f=o(u,s);if(t&&n!=n){for(;s>f;)if((c=a[f++])!=c)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,e,n){var r=n(17);t.exports=r("document","documentElement")},function(t,e,n){var r=n(8),o=n(107),i=n(35),u=n(10);t.exports=function(t,e){for(var n=o(e),c=u.f,a=i.f,s=0;s<n.length;s++){var f=n[s];r(t,f)||c(t,f,a(e,f))}}},function(t,e,n){var r=n(17),o=n(2),i=n(61),u=n(82),c=n(9),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(c(t)),n=u.f;return n?a(e,n(t)):e}},function(t,e,n){"use strict";var r,o,i,u=n(3),c=n(4),a=n(25),s=n(84),f=n(18),l=n(5),p=n(40),d=l("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=s(s(i)))!==Object.prototype&&(r=o):v=!0),null==r||u((function(){var t={};return r[d].call(t)!==t}))?r={}:p&&(r=a(r)),c(r[d])||f(r,d,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},function(t,e,n){var r=n(3);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(1),o=n(2),i=n(42),u=n(6),c=n(8),a=n(10).f,s=n(61),f=n(111),l=n(139),p=n(49),d=n(141),v=!1,h=p("meta"),y=0,g=function(t){a(t,h,{value:{objectID:"O"+y++,weakData:{}}})},b=t.exports={enable:function(){b.enable=function(){},v=!0;var t=s.f,e=o([].splice),n={};n[h]=1,t(n).length&&(s.f=function(n){for(var r=t(n),o=0,i=r.length;o<i;o++)if(r[o]===h){e(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,e){if(!u(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!c(t,h)){if(!l(t))return"F";if(!e)return"E";g(t)}return t[h].objectID},getWeakData:function(t,e){if(!c(t,h)){if(!l(t))return!0;if(!e)return!1;g(t)}return t[h].weakData},onFreeze:function(t){return d&&v&&l(t)&&!c(t,h)&&g(t),t}};i[h]=!0},function(t,e,n){var r=n(32),o=n(15),i=n(61).f,u=n(138),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"Window"==r(t)?function(t){try{return i(t)}catch(t){return u(c)}}(t):i(o(t))}},function(t,e,n){var r=n(5),o=n(43),i=r("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,e,n){var r=n(0),o=n(12),i=n(33),u=n(9),c=n(54),a=n(87),s=r.TypeError;t.exports=function(t,e){var n=arguments.length<2?a(t):e;if(i(n))return u(o(n,t));throw s(c(t)+" is not iterable")}},function(t,e,n){var r=n(12),o=n(9),i=n(78);t.exports=function(t,e,n){var u,c;o(t);try{if(!(u=i(t,"return"))){if("throw"===e)throw n;return n}u=r(u,t)}catch(t){c=!0,u=t}if("throw"===e)throw n;if(c)throw u;return o(u),n}},function(t,e,n){var r=n(18);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";var r=n(17),o=n(10),i=n(5),u=n(7),c=i("species");t.exports=function(t){var e=r(t),n=o.f;u&&e&&!e[c]&&n(e,c,{configurable:!0,get:function(){return this}})}},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,n){var r=n(52)("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},function(t,e,n){var r=n(0),o=n(64),i=n(54),u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a constructor")}},function(t,e,n){var r,o,i,u,c=n(0),a=n(91),s=n(37),f=n(4),l=n(8),p=n(3),d=n(105),v=n(65),h=n(52),y=n(121),g=n(92),b=c.setImmediate,m=c.clearImmediate,x=c.process,w=c.Dispatch,O=c.Function,E=c.MessageChannel,I=c.String,S=0,j={};try{r=c.location}catch(t){}var R=function(t){if(l(j,t)){var e=j[t];delete j[t],e()}},_=function(t){return function(){R(t)}},N=function(t){R(t.data)},T=function(t){c.postMessage(I(t),r.protocol+"//"+r.host)};b&&m||(b=function(t){var e=v(arguments,1);return j[++S]=function(){a(f(t)?t:O(t),void 0,e)},o(S),S},m=function(t){delete j[t]},g?o=function(t){x.nextTick(_(t))}:w&&w.now?o=function(t){w.now(_(t))}:E&&!y?(u=(i=new E).port2,i.port1.onmessage=N,o=s(u.postMessage,u)):c.addEventListener&&f(c.postMessage)&&!c.importScripts&&r&&"file:"!==r.protocol&&!p(T)?(o=T,c.addEventListener("message",N,!1)):o="onreadystatechange"in h("script")?function(t){d.appendChild(h("script")).onreadystatechange=function(){d.removeChild(this),R(t)}}:function(t){setTimeout(_(t),0)}),t.exports={set:b,clear:m}},function(t,e,n){var r=n(51);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(t,e,n){"use strict";var r=n(33),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},function(t,e,n){var r=n(5);e.f=r},function(t,e,n){var r=n(157),o=n(8),i=n(123),u=n(10).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||u(e,t,{value:i.f(t)})}},function(t,e,n){"use strict";var r=n(66).forEach,o=n(126)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){"use strict";var r=n(3);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e,n){"use strict";var r=n(1),o=n(0),i=n(56),u=n(57),c=n(26),a=n(16),s=n(93),f=n(36),l=n(68)("splice"),p=o.TypeError,d=Math.max,v=Math.min;r({target:"Array",proto:!0,forced:!l},{splice:function(t,e){var n,r,o,l,h,y,g=a(this),b=c(g),m=i(t,b),x=arguments.length;if(0===x?n=r=0:1===x?(n=0,r=b-m):(n=x-2,r=v(d(u(e),0),b-m)),b+n-r>9007199254740991)throw p("Maximum allowed length exceeded");for(o=s(g,r),l=0;l<r;l++)(h=m+l)in g&&f(o,l,g[h]);if(o.length=r,n<r){for(l=m;l<b-r;l++)y=l+n,(h=l+r)in g?g[y]=g[h]:delete g[y];for(l=b;l>b-r+n;l--)delete g[l-1]}else if(n>r)for(l=b-r;l>m;l--)y=l+n-1,(h=l+r-1)in g?g[y]=g[h]:delete g[y];for(l=0;l<n;l++)g[l+m]=arguments[l+2];return g.length=b-r+n,o}})},function(t,e,n){"use strict";var r=n(1),o=n(160);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(t,e,n){"use strict";var r=n(0),o=n(2),i=n(33),u=n(6),c=n(8),a=n(65),s=r.Function,f=o([].concat),l=o([].join),p={},d=function(t,e,n){if(!c(p,e)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";p[e]=s("C,a","return new C("+l(r,",")+")")}return p[e](t,n)};t.exports=s.bind||function(t){var e=i(this),n=e.prototype,r=a(arguments,1),o=function(){var n=f(r,a(arguments));return this instanceof o?d(e,n.length,n):e.apply(t,n)};return u(n)&&(o.prototype=n),o}},function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,n){var r=n(0),o=n(12),i=n(6),u=n(77),c=n(78),a=n(132),s=n(5),f=r.TypeError,l=s("toPrimitive");t.exports=function(t,e){if(!i(t)||u(t))return t;var n,r=c(t,l);if(r){if(void 0===e&&(e="default"),n=o(r,t,e),!i(n)||u(n))return n;throw f("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},function(t,e,n){var r=n(0),o=n(12),i=n(4),u=n(6),c=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&i(n=t.toString)&&!u(r=o(n,t)))return r;if(i(n=t.valueOf)&&!u(r=o(n,t)))return r;if("string"!==e&&i(n=t.toString)&&!u(r=o(n,t)))return r;throw c("Can't convert object to primitive value")}},function(t,e,n){var r=n(57),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(0),o=n(4),i=n(59),u=r.WeakMap;t.exports=o(u)&&/native code/.test(i(u))},function(t,e,n){"use strict";var r=n(108).IteratorPrototype,o=n(25),i=n(44),u=n(45),c=n(43),a=function(){return this};t.exports=function(t,e,n,s){var f=e+" Iterator";return t.prototype=o(r,{next:i(+!s,n)}),u(t,f,!1,!0),c[f]=a,t}},function(t,e,n){var r=n(0),o=n(4),i=r.String,u=r.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,n){"use strict";var r=n(1),o=n(0),i=n(2),u=n(83),c=n(18),a=n(110),s=n(86),f=n(89),l=n(4),p=n(6),d=n(3),v=n(90),h=n(45),y=n(142);t.exports=function(t,e,n){var g=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),m=g?"set":"add",x=o[t],w=x&&x.prototype,O=x,E={},I=function(t){var e=i(w[t]);c(w,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(b&&!p(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return b&&!p(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!p(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(u(t,!l(x)||!(b||w.forEach&&!d((function(){(new x).entries().next()})))))O=n.getConstructor(e,t,g,m),a.enable();else if(u(t,!0)){var S=new O,j=S[m](b?{}:-0,1)!=S,R=d((function(){S.has(1)})),_=v((function(t){new x(t)})),N=!b&&d((function(){for(var t=new x,e=5;e--;)t[m](e,e);return!t.has(-0)}));_||((O=e((function(t,e){f(t,w);var n=y(new x,t,O);return null!=e&&s(e,n[m],{that:n,AS_ENTRIES:g}),n}))).prototype=w,w.constructor=O),(R||N)&&(I("delete"),I("has"),g&&I("get")),(N||j)&&I(m),b&&w.clear&&delete w.clear}return E[t]=O,r({global:!0,forced:O!=x},E),h(O,t),b||n.setStrong(O,t,g),O}},function(t,e,n){var r=n(0),o=n(56),i=n(26),u=n(36),c=r.Array,a=Math.max;t.exports=function(t,e,n){for(var r=i(t),s=o(e,r),f=o(void 0===n?r:n,r),l=c(a(f-s,0)),p=0;s<f;s++,p++)u(l,p,t[s]);return l.length=p,l}},function(t,e,n){var r=n(3),o=n(6),i=n(32),u=n(140),c=Object.isExtensible,a=r((function(){c(1)}));t.exports=a||u?function(t){return!!o(t)&&((!u||"ArrayBuffer"!=i(t))&&(!c||c(t)))}:c},function(t,e,n){var r=n(3);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},function(t,e,n){var r=n(3);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,n){var r=n(4),o=n(6),i=n(62);t.exports=function(t,e,n){var u,c;return i&&r(u=e.constructor)&&u!==n&&o(c=u.prototype)&&c!==n.prototype&&i(t,c),t}},function(t,e,n){"use strict";var r=n(10).f,o=n(25),i=n(115),u=n(37),c=n(89),a=n(86),s=n(80),f=n(116),l=n(7),p=n(110).fastKey,d=n(27),v=d.set,h=d.getterFor;t.exports={getConstructor:function(t,e,n,s){var f=t((function(t,r){c(t,d),v(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=r&&a(r,t[s],{that:t,AS_ENTRIES:n})})),d=f.prototype,y=h(e),g=function(t,e,n){var r,o,i=y(t),u=b(t,e);return u?u.value=n:(i.last=u={index:o=p(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),l?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},b=function(t,e){var n,r=y(t),o=p(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(d,{clear:function(){for(var t=y(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=y(this),n=b(this,t);if(n){var r=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first==n&&(e.first=r),e.last==n&&(e.last=o),l?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=y(this),r=u(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),i(d,n?{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)}}),l&&r(d,"size",{get:function(){return y(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",o=h(e),i=h(r);s(t,e,(function(t,e){v(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),f(e)}}},function(t,e,n){"use strict";var r=n(88),o=n(63);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){var r=n(2),o=n(57),i=n(38),u=n(47),c=r("".charAt),a=r("".charCodeAt),s=r("".slice),f=function(t){return function(e,n){var r,f,l=i(u(e)),p=o(n),d=l.length;return p<0||p>=d?t?"":void 0:(r=a(l,p))<55296||r>56319||p+1===d||(f=a(l,p+1))<56320||f>57343?t?c(l,p):r:t?s(l,p,p+2):f-56320+(r-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},function(t,e,n){var r=n(0);t.exports=r.Promise},function(t,e,n){var r=n(9),o=n(119),i=n(5)("species");t.exports=function(t,e){var n,u=r(t).constructor;return void 0===u||null==(n=r(u)[i])?e:o(n)}},function(t,e,n){var r,o,i,u,c,a,s,f,l=n(0),p=n(37),d=n(35).f,v=n(120).set,h=n(121),y=n(149),g=n(150),b=n(92),m=l.MutationObserver||l.WebKitMutationObserver,x=l.document,w=l.process,O=l.Promise,E=d(l,"queueMicrotask"),I=E&&E.value;I||(r=function(){var t,e;for(b&&(t=w.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?u():i=void 0,t}}i=void 0,t&&t.enter()},h||b||g||!m||!x?!y&&O&&O.resolve?((s=O.resolve(void 0)).constructor=O,f=p(s.then,s),u=function(){f(r)}):b?u=function(){w.nextTick(r)}:(v=p(v,l),u=function(){v(r)}):(c=!0,a=x.createTextNode(""),new m(r).observe(a,{characterData:!0}),u=function(){a.data=c=!c})),t.exports=I||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,u()),i=e}},function(t,e,n){var r=n(51),o=n(0);t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==o.Pebble},function(t,e,n){var r=n(51);t.exports=/web0s(?!.*chrome)/i.test(r)},function(t,e,n){var r=n(9),o=n(6),i=n(122);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){var r=n(0);t.exports=function(t,e){var n=r.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e){t.exports="object"==typeof window},function(t,e,n){var r=n(1),o=n(156);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,e,n){"use strict";var r=n(7),o=n(2),i=n(12),u=n(3),c=n(55),a=n(82),s=n(81),f=n(16),l=n(73),p=Object.assign,d=Object.defineProperty,v=o([].concat);t.exports=!p||u((function(){if(r&&1!==p({b:1},p(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=p({},t)[n]||"abcdefghijklmnopqrst"!=c(p({},e)).join("")}))?function(t,e){for(var n=f(t),o=arguments.length,u=1,p=a.f,d=s.f;o>u;)for(var h,y=l(arguments[u++]),g=p?v(c(y),p(y)):c(y),b=g.length,m=0;b>m;)h=g[m++],r&&!i(d,y,h)||(n[h]=y[h]);return n}:p},function(t,e,n){var r=n(0);t.exports=r},function(t,e,n){var r=n(0),o=n(46),i=n(64),u=n(6),c=n(5)("species"),a=r.Array;t.exports=function(t){var e;return o(t)&&(e=t.constructor,(i(e)&&(e===a||o(e.prototype))||u(e)&&null===(e=e[c]))&&(e=void 0)),void 0===e?a:e}},function(t,e,n){"use strict";var r=n(1),o=n(66).findIndex,i=n(99),u=!0;"findIndex"in[]&&Array(1).findIndex((function(){u=!1})),r({target:"Array",proto:!0,forced:u},{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},function(t,e,n){"use strict";var r,o,i=n(12),u=n(2),c=n(38),a=n(161),s=n(162),f=n(48),l=n(25),p=n(27).get,d=n(163),v=n(164),h=f("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,g=y,b=u("".charAt),m=u("".indexOf),x=u("".replace),w=u("".slice),O=(o=/b*/g,i(y,r=/a/,"a"),i(y,o,"a"),0!==r.lastIndex||0!==o.lastIndex),E=s.BROKEN_CARET,I=void 0!==/()??/.exec("")[1];(O||I||E||d||v)&&(g=function(t){var e,n,r,o,u,s,f,d=this,v=p(d),S=c(t),j=v.raw;if(j)return j.lastIndex=d.lastIndex,e=i(g,j,S),d.lastIndex=j.lastIndex,e;var R=v.groups,_=E&&d.sticky,N=i(a,d),T=d.source,P=0,k=S;if(_&&(N=x(N,"y",""),-1===m(N,"g")&&(N+="g"),k=w(S,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==b(S,d.lastIndex-1))&&(T="(?: "+T+")",k=" "+k,P++),n=new RegExp("^(?:"+T+")",N)),I&&(n=new RegExp("^"+T+"$(?!\\s)",N)),O&&(r=d.lastIndex),o=i(y,_?n:d,k),_?o?(o.input=w(o.input,P),o[0]=w(o[0],P),o.index=d.lastIndex,d.lastIndex+=o[0].length):d.lastIndex=0:O&&o&&(d.lastIndex=d.global?o.index+o[0].length:r),I&&o&&o.length>1&&i(h,o[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o&&R)for(o.groups=s=l(null),u=0;u<R.length;u++)s[(f=R[u])[0]]=o[f[1]];return o}),t.exports=g},function(t,e,n){"use strict";var r=n(9);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(3),o=n(0).RegExp,i=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),u=i||r((function(){return!o("a","y").sticky})),c=i||r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:c,MISSED_STICKY:u,UNSUPPORTED_Y:i}},function(t,e,n){var r=n(3),o=n(0).RegExp;t.exports=r((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,e,n){var r=n(3),o=n(0).RegExp;t.exports=r((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},function(t,e,n){n(1)({target:"Function",proto:!0},{bind:n(129)})},function(t,e,n){var r=n(1),o=n(0),i=n(2),u=o.Date,c=i(u.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return c(new u)}})},function(t,e,n){var r=n(2),o=n(18),i=Date.prototype,u=r(i.toString),c=r(i.getTime);"Invalid Date"!=String(new Date(NaN))&&o(i,"toString",(function(){var t=c(this);return t==t?u(this):"Invalid Date"}))},function(t,e,n){"use strict";var r=n(1),o=n(169).trim;r({target:"String",proto:!0,forced:n(170)("trim")},{trim:function(){return o(this)}})},function(t,e,n){var r=n(2),o=n(47),i=n(38),u=n(130),c=r("".replace),a="["+u+"]",s=RegExp("^"+a+a+"*"),f=RegExp(a+a+"*$"),l=function(t){return function(e){var n=i(o(e));return 1&t&&(n=c(n,s,"")),2&t&&(n=c(n,f,"")),n}};t.exports={start:l(1),end:l(2),trim:l(3)}},function(t,e,n){var r=n(60).PROPER,o=n(3),i=n(130);t.exports=function(t){return o((function(){return!!i[t]()||"
"!=="
"[t]()||r&&i[t].name!==t}))}},function(t,e,n){"use strict";var r=n(1),o=n(0),i=n(46),u=n(64),c=n(6),a=n(56),s=n(26),f=n(15),l=n(36),p=n(5),d=n(68),v=n(65),h=d("slice"),y=p("species"),g=o.Array,b=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(t,e){var n,r,o,p=f(this),d=s(p),h=a(t,d),m=a(void 0===e?d:e,d);if(i(p)&&(n=p.constructor,(u(n)&&(n===g||i(n.prototype))||c(n)&&null===(n=n[y]))&&(n=void 0),n===g||void 0===n))return v(p,h,m);for(r=new(void 0===n?g:n)(b(m-h,0)),o=0;h<m;h++,o++)h in p&&l(r,o,p[h]);return r.length=o,r}})},function(t,e,n){var r=n(7),o=n(60).EXISTS,i=n(2),u=n(10).f,c=Function.prototype,a=i(c.toString),s=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,f=i(s.exec);r&&!o&&u(c,"name",{configurable:!0,get:function(){try{return f(s,a(this))[1]}catch(t){return""}}})},function(t,e,n){var r=n(1),o=n(174);r({target:"Array",stat:!0,forced:!n(90)((function(t){Array.from(t)}))},{from:o})},function(t,e,n){"use strict";var r=n(0),o=n(37),i=n(12),u=n(16),c=n(175),a=n(112),s=n(64),f=n(26),l=n(36),p=n(113),d=n(87),v=r.Array;t.exports=function(t){var e=u(t),n=s(this),r=arguments.length,h=r>1?arguments[1]:void 0,y=void 0!==h;y&&(h=o(h,r>2?arguments[2]:void 0));var g,b,m,x,w,O,E=d(e),I=0;if(!E||this==v&&a(E))for(g=f(e),b=n?new this(g):v(g);g>I;I++)O=y?h(e[I],I):e[I],l(b,I,O);else for(w=(x=p(e,E)).next,b=n?new this:[];!(m=i(w,x)).done;I++)O=y?c(x,h,[m.value,I],!0):m.value,l(b,I,O);return b.length=I,b}},function(t,e,n){var r=n(9),o=n(114);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){o(t,"throw",e)}}},function(t,e,n){n(1)({target:"Array",stat:!0},{isArray:n(46)})},function(t,e,n){n(1)({global:!0},{globalThis:n(0)})},function(t,e,n){"use strict";var r=n(1),o=n(2),i=n(104).indexOf,u=n(126),c=o([].indexOf),a=!!c&&1/c([1],1,-0)<0,s=u("indexOf");r({target:"Array",proto:!0,forced:a||!s},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return a?c(this,t,e)||0:i(this,t,e)}})},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return Bt})),n.d(e,"Engine",(function(){return Bt})),n.d(e,"TaskNode",(function(){return It})),n.d(e,"StartNode",(function(){return ht})),n.d(e,"Recorder",(function(){return Dt}));var r,o,i;n(24),n(14),n(85),n(11),n(19),n(20),n(21),n(155),n(22),n(39),n(23),n(67),n(69),n(28),n(29),n(70),n(71),n(159),n(127),n(72);!function(t){t.COMPLETED="completed",t.INTERRUPTED="interrupted",t.RUNNING="running",t.PENDING="pending",t.ERROR="error"}(r||(r={})),function(t){t.SUCCESS="success",t.ERROR="error",t.INTERRUPTED="interrupted"}(o||(o={}));var u=new Uint8Array(16);function c(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(u)}var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var s=function(t){return"string"==typeof t&&a.test(t)},f=[],l=0;l<256;++l)f.push((l+256).toString(16).substr(1));var p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(f[t[e+0]]+f[t[e+1]]+f[t[e+2]]+f[t[e+3]]+"-"+f[t[e+4]]+f[t[e+5]]+"-"+f[t[e+6]]+f[t[e+7]]+"-"+f[t[e+8]]+f[t[e+9]]+"-"+f[t[e+10]]+f[t[e+11]]+f[t[e+12]]+f[t[e+13]]+f[t[e+14]]+f[t[e+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n};var d=function(t,e,n){var r=(t=t||{}).random||(t.rng||c)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return p(r)};n(128),n(165),n(166),n(167),n(94),n(95),n(96),n(97),n(30),n(31),n(168);function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t){return(h="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 y(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(a):Promise.resolve(a).then(r,o)}function g(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){y(i,r,o,u,c,"next",t)}function c(t){y(i,r,o,u,c,"throw",t)}u(void 0)}))}}function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?b(Object(n),!0).forEach((function(e){x(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function x(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function O(t,e){return(O=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function E(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=S(t);if(e){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return I(this,n)}}function I(t,e){if(e&&("object"===h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var j,R,_,N,T=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&O(t,e)}(a,t);var e,n,o,i,u,c=E(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=c.call(this)).nodeQueueMap=new Map,e.actionRunningMap=new Map,e.flowModel=t.flowModel,e.recorder=t.recorder,e}return e=a,(n=[{key:"addAction",value:function(t){var e=t.executionId;this.nodeQueueMap.has(e)||this.nodeQueueMap.set(e,[]),this.nodeQueueMap.get(e).push(t)}},{key:"run",value:function(t){for(var e,n=this.nodeQueueMap.get(t.executionId);n.length;){var o=n.pop(),i=(e=void 0,e=d(),"action-".concat(e)),u=m(m({},o),{},{actionId:i});this.pushActionToRunningMap(u),this.exec(u)}this.hasRunningAction(t.executionId)||this.emit("instance:complete",m(m({},t),{},{status:r.COMPLETED}))}},{key:"resume",value:(u=g(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.pushActionToRunningMap({executionId:e.executionId,nodeId:e.nodeId,actionId:e.actionId}),n=this.flowModel.createAction(e.nodeId),t.next=4,n.resume(m(m({},e),{},{next:this.next.bind(this)}));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:"pushActionToRunningMap",value:function(t){var e=t.executionId,n=t.actionId;if(!this.actionRunningMap.has(e)){var r=new Map;this.actionRunningMap.set(e,r)}this.actionRunningMap.get(e).set(n,t)}},{key:"removeActionFromRunningMap",value:function(t){var e=t.executionId,n=t.actionId;if(n){var r=this.actionRunningMap.get(e);r&&r.delete(n)}}},{key:"hasRunningAction",value:function(t){var e=this.actionRunningMap.get(t);return!(!e||0===e.size&&(this.actionRunningMap.delete(t),1))}},{key:"exec",value:(i=g(regeneratorRuntime.mark((function t(e){var n,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.flowModel.createAction(e.nodeId),t.next=3,n.execute({executionId:e.executionId,actionId:e.actionId,nodeId:e.nodeId,next:this.next.bind(this)});case 3:(o=t.sent)&&o.status===r.INTERRUPTED&&(this.interrupted(o),this.saveActionResult({executionId:e.executionId,nodeId:e.nodeId,actionId:e.actionId,nodeType:o.nodeType,properties:o.properties,outgoing:o.outgoing,status:o.status,detail:o.detail}),this.removeActionFromRunningMap(e)),o&&o.status===r.ERROR&&(this.error(o),this.saveActionResult({executionId:e.executionId,nodeId:e.nodeId,actionId:e.actionId,nodeType:o.nodeType,properties:o.properties,outgoing:o.outgoing,status:o.status,detail:o.detail}),this.removeActionFromRunningMap(e));case 6:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"interrupted",value:function(t){this.emit("instance:interrupted",t)}},{key:"error",value:function(t){this.emit("instance:error",t)}},{key:"next",value:function(t){var e=this;t.outgoing&&t.outgoing.length>0&&t.outgoing.forEach((function(n){n.result&&e.addAction({executionId:t.executionId,nodeId:n.target})})),this.saveActionResult(t),this.removeActionFromRunningMap(t),this.run(t)}},{key:"saveActionResult",value:function(t){var e;null===(e=this.recorder)||void 0===e||e.addActionRecord({executionId:t.executionId,actionId:t.actionId,nodeId:t.nodeId,nodeType:t.nodeType,timestamp:Date.now(),properties:t.properties,outgoing:t.outgoing,detail:t.detail,status:t.status})}}])&&w(e.prototype,n),o&&w(e,o),a}(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._events={}}var e,n,r;return e=t,(n=[{key:"on",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t=t.trim(),this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n})}},{key:"emit",value:function(t,e){var n=this;!function(r){for(var o=r.length,i=0;i<o;i++)if(r[i]){var u=r[i],c=u.callback;u.once&&(r.splice(i,1),0===r.length&&delete n._events[t],o--,i--),c.apply(n,[e])}}(this._events[t]||[])}},{key:"off",value:function(t,e){if(t||(this._events={}),e){for(var n=this._events[t]||[],r=n.length,o=0;o<r;o++)n[o].callback===e&&(n.splice(o,1),r--,o--);0===n.length&&delete this._events[t]}else delete this._events[t]}}])&&v(e.prototype,n),r&&v(e,r),t}());function P(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}!function(t){t[t.NONE_START_NODE=1e3]="NONE_START_NODE",t[t.NONE_NODE_ID=1001]="NONE_NODE_ID",t[t.NO_DOCUMENT_BODY=2001]="NO_DOCUMENT_BODY"}(_||(_={})),function(t){t[t.NONE_START_NODE_IN_DATA=2e3]="NONE_START_NODE_IN_DATA",t[t.START_NODE_INCOMING=2001]="START_NODE_INCOMING",t[t.EXPRESSION_EXEC_ERROR=3e3]="EXPRESSION_EXEC_ERROR"}(N||(N={}));var k=(P(j={},_.NONE_START_NODE,"未找到入度为0的节点"),P(j,_.NONE_NODE_ID,"流程数据中存在没有此节点"),P(j,_.NO_DOCUMENT_BODY,"找不到document.body, 请在DOM加载完成后再执行"),j),A=(P(R={},N.NONE_START_NODE_IN_DATA,"初始化数据中未找到入度为0的节点"),P(R,N.START_NODE_INCOMING,"开始节点不允许被连入"),P(R,N.EXPRESSION_EXEC_ERROR,"表达式执行异常"),R),D=function(t){return"error[".concat(t,"]: ").concat(k[t])};function M(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?M(Object(n),!0).forEach((function(e){U(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function L(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(a):Promise.resolve(a).then(r,o)}function F(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){L(i,r,o,u,c,"next",t)}function c(t){L(i,r,o,u,c,"throw",t)}u(void 0)}))}}function G(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function U(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var B=function(){function t(e){var n=this,r=e.nodeModelMap,o=e.recorder,i=e.context,u=void 0===i?{}:i,c=e.globalData,a=void 0===c?{}:c,s=e.startNodeType,f=void 0===s?"StartNode":s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),U(this,"nodeConfigMap",new Map),U(this,"startNodes",[]),U(this,"globalData",{}),this.nodeModelMap=r,this.executeList=[],this.executingInstance=null,this.context=u,this.globalData=a,this.startNodeType=f,this.isRunning=!1,this.scheduler=new T({flowModel:this,recorder:o}),this.scheduler.on("instance:complete",(function(t){n.onExecuteFinished(t)})),this.scheduler.on("instance:interrupted",(function(t){n.onExecuteFinished(t)})),this.scheduler.on("instance:error",(function(t){n.onExecuteFinished(t)}))}var e,n,r,o,i;return e=t,(n=[{key:"setStartNodeType",value:function(t){this.startNodeType=t}},{key:"load",value:function(t){var e=this,n=t.nodes,r=void 0===n?[]:n,o=t.edges,i=void 0===o?[]:o;this.startNodes=[],this.nodeConfigMap=new Map,r.forEach((function(t){if(e.nodeModelMap.has(t.type)){var n={id:t.id,type:t.type,properties:t.properties,incoming:[],outgoing:[]};e.nodeConfigMap.set(t.id,n),t.type===e.startNodeType&&e.startNodes.push(n)}else console.warn("未识别的节点类型: ".concat(t.type))})),i.forEach((function(t){var n=e.nodeConfigMap.get(t.sourceNodeId),r=e.nodeConfigMap.get(t.targetNodeId);n&&n.outgoing.push({id:t.id,properties:t.properties,target:t.targetNodeId}),r&&r.type!==e.startNodeType&&r.incoming.push({id:t.id,properties:t.properties,source:t.sourceNodeId})}))}},{key:"execute",value:(i=F(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.createExecution(e);case 1:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"resume",value:(o=F(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.createExecution(e);case 1:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"createAction",value:function(t){var e=this.nodeConfigMap.get(t);return new(this.nodeModelMap.get(e.type))({nodeConfig:e,globalData:this.globalData,context:this.context})}},{key:"updateGlobalData",value:function(t){this.globalData=C(C({},this.globalData),t)}},{key:"onExecuteFinished",value:function(t){var e=this.executeList.findIndex((function(e){return e.executionId===t.executionId}));if(-1!==e){var n=this.executeList[e].callback;this.executeList.splice(e,1),n&&n(t)}}},{key:"createExecution",value:function(t){var e=this;if(this.executeList.push(t),t.actionId&&t.executionId&&t.nodeId)this.scheduler.resume({executionId:t.executionId,actionId:t.actionId,nodeId:t.nodeId,data:t.data});else{var n,r=(n=d(),"exec-".concat(n));if(t.executionId=r,t.nodeId){var o=this.nodeConfigMap.get(t.nodeId);if(!o)return void t.onError(new Error("".concat(D(_.NONE_NODE_ID),"(").concat(t.nodeId,")")));this.startNodes=[o]}this.startNodes.forEach((function(t){e.scheduler.addAction({executionId:r,nodeId:t.id})})),this.scheduler.run({executionId:r})}}}])&&G(e.prototype,n),r&&G(e,r),t}();n(171),n(172),n(173),n(176);function z(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(a):Promise.resolve(a).then(r,o)}var X=n(180),Y=function(){var t,e=(t=regeneratorRuntime.mark((function t(e){var n,r,o=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},r=X.createContext(n),X.runInContext(e,r),t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){z(i,r,o,u,c,"next",t)}function c(t){z(i,r,o,u,c,"throw",t)}u(void 0)}))});return function(t){return e.apply(this,arguments)}}();function V(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(a):Promise.resolve(a).then(r,o)}var W=function(t){var e=document.createElement("iframe");e.style.display="none",document&&document.body||console.error(D(_.NO_DOCUMENT_BODY)),document.body.appendChild(e);var n=e.contentWindow;return n.parent=null,Object.keys(t).forEach((function(e){n[e]=t[e]})),n},$=function(t,e){try{e.eval.call(e,t),e.frameElement&&document.body.removeChild(e.frameElement)}catch(n){console.warn(function(t){return"warning[".concat(t,"]: ").concat(A[t])}(N.EXPRESSION_EXEC_ERROR),{code:t,context:e,e:n})}return e},K=function(){var t,e=(t=regeneratorRuntime.mark((function t(e){var n,r,o=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},r=W(n),$(e,r),t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){V(i,r,o,u,c,"next",t)}function c(t){V(i,r,o,u,c,"throw",t)}u(void 0)}))});return function(t){return e.apply(this,arguments)}}(),Q=n(13);function q(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(a):Promise.resolve(a).then(r,o)}var H=function(){var t,e=(t=regeneratorRuntime.mark((function t(e,n){var r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!Q.c){t.next=5;break}return t.next=3,Y(e,n);case 3:return r=t.sent,t.abrupt("return",r);case 5:if(!Q.b){t.next=10;break}return t.next=8,K(e,n);case 8:return o=t.sent,t.abrupt("return",o);case 10:return t.abrupt("return",Q.a.eval(e));case 11:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){q(i,r,o,u,c,"next",t)}function c(t){q(i,r,o,u,c,"throw",t)}u(void 0)}))});return function(t,n){return e.apply(this,arguments)}}();function J(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?J(Object(n),!0).forEach((function(e){it(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function tt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return et(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return et(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){c=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw i}}}}function et(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function nt(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(a):Promise.resolve(a).then(r,o)}function rt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){nt(i,r,o,u,c,"next",t)}function c(t){nt(i,r,o,u,c,"throw",t)}u(void 0)}))}}function ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function it(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ut=function(){function t(e){var n=e.nodeConfig,r=e.context,o=e.globalData;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.outgoing=n.outgoing,this.incoming=n.incoming,this.nodeId=n.id,this.type=n.type,this.properties=n.properties||{},this.context=r,this.globalData=o,this.baseType="base"}var e,n,r,i,u,c,a,s,f;return e=t,(n=[{key:"execute",value:(f=rt(regeneratorRuntime.mark((function t(e){var n,r,i,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.action({executionId:e.executionId,actionId:e.actionId,nodeId:this.nodeId});case 2:if(n=t.sent,(r=n?n.status:"success")!==o.SUCCESS){t.next=10;break}return t.next=7,this.getOutgoing();case 7:i=t.sent,u=n?n.detail:{},e.next({status:o.SUCCESS,detail:u,executionId:e.executionId,actionId:e.actionId,nodeId:this.nodeId,nodeType:this.type,properties:this.properties,outgoing:i});case 10:return t.abrupt("return",{status:r,detail:n&&n.detail,executionId:e.executionId,actionId:e.actionId,nodeId:this.nodeId,nodeType:this.type,properties:this.properties,outgoing:[]});case 11:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"resume",value:(s=rt(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getOutgoing();case 2:return n=t.sent,t.next=5,this.onResume({executionId:e.executionId,nodeId:e.nodeId,actionId:e.actionId,data:e.data});case 5:return e.next({executionId:e.executionId,actionId:e.actionId,nodeId:this.nodeId,nodeType:this.type,properties:this.properties,outgoing:n,status:o.SUCCESS}),t.abrupt("return",void 0);case 7:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"getOutgoing",value:(a=rt(regeneratorRuntime.mark((function t(){var e,n,r,o,i,u,c=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=[],n=[],r=tt(this.outgoing);try{for(r.s();!(o=r.n()).done;)i=o.value,u=i.properties,n.push(this.isPass(u))}catch(t){r.e(t)}finally{r.f()}return t.next=6,Promise.all(n);case 6:return t.sent.forEach((function(t,n){var r=c.outgoing[n];r.result=t,e.push(r)})),t.abrupt("return",e);case 9:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"isPass",value:(c=rt(regeneratorRuntime.mark((function t(e){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return",!0);case 2:if(n=e.conditionExpression){t.next=5;break}return t.abrupt("return",!0);case 5:return t.prev=5,t.next=8,H("isPassResult = (".concat(n,")"),Z({},this.globalData));case 8:return r=t.sent,t.abrupt("return",r.isPassResult);case 12:return t.prev=12,t.t0=t.catch(5),t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,this,[[5,12]])}))),function(t){return c.apply(this,arguments)})},{key:"action",value:(u=rt(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",null);case 1:case"end":return t.stop()}}),t)}))),function(t){return u.apply(this,arguments)})},{key:"onResume",value:(i=rt(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",void 0);case 1:case"end":return t.stop()}}),t)}))),function(t){return i.apply(this,arguments)})}])&&ot(e.prototype,n),r&&ot(e,r),t}();function ct(t){return(ct="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 at(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function st(t,e){return(st=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ft(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=dt(t);if(e){var o=dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lt(this,n)}}function lt(t,e){if(e&&("object"===ct(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return pt(t)}function pt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dt(t){return(dt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function vt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}it(ut,"nodeTypeName","BaseNode");var ht=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&st(t,e)}(n,t);var e=ft(n);function n(){var t;at(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return vt(pt(t=e.call.apply(e,[this].concat(o))),"baseType","start"),t}return n}(ut);function yt(t){return(yt="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 gt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bt(t,e){return(bt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function mt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ot(t);if(e){var o=Ot(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xt(this,n)}}function xt(t,e){if(e&&("object"===yt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return wt(t)}function wt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ot(t){return(Ot=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Et(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}vt(ht,"nodeTypeName","StartNode");var It=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&bt(t,e)}(n,t);var e=mt(n);function n(){var t;gt(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return Et(wt(t=e.call.apply(e,[this].concat(o))),"baseType","task"),t}return n}(ut);Et(It,"nodeTypeName","TaskNode");n(178);function St(t){return(St="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)}if(!Q.a.sessionStorage){var jt={data:{},setItem:function(t,e){jt.data[t]=e},getItem:function(t){return jt.data[t]},removeItem:function(t){delete jt.data[t]},clear:function(){jt.data={}}};Q.a.sessionStorage=jt}var Rt=function(t,e){"object"===St(e)&&(e=JSON.stringify(e)),Q.a.sessionStorage.setItem(t,e)},_t=function(t){var e=Q.a.sessionStorage.getItem(t);try{return JSON.parse(e)}catch(t){return e}},Nt=function(t){Q.a.sessionStorage.removeItem(t)},Tt=function(){Q.a.sessionStorage.clear()};function Pt(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(a):Promise.resolve(a).then(r,o)}function kt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){Pt(i,r,o,u,c,"next",t)}function c(t){Pt(i,r,o,u,c,"throw",t)}u(void 0)}))}}function At(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Dt=function(){function t(e){var n=e.instanceId;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.maxRecorder=100,this.instanceId=n;var r=this.getItem("LOGICFLOW_ENGINE_INSTANCES")||[];if(-1===r.indexOf(n)&&r.push(n),r.length>100){var o=r.shift();this.clearInstance(o)}this.setItem("LOGICFLOW_ENGINE_INSTANCES",r)}var e,n,r,o,i,u,c;return e=t,(n=[{key:"setMaxRecorderNumber",value:function(t){this.maxRecorder=t}},{key:"setItem",value:function(t,e){try{Rt(t,e)}catch(n){console.log("Ops, something wrong with storage.setItem"),Tt(),Rt(t,e)}}},{key:"getItem",value:function(t){return _t(t)}},{key:"addActionRecord",value:(c=kt(regeneratorRuntime.mark((function t(e){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.executionId,r=e.actionId,t.next=3,this.getExecutionActions(n);case 3:t.sent||this.pushExecution(n),this.pushActionToExecution(n,r),this.setItem(r,e);case 7:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"getActionRecord",value:(u=kt(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getItem(e));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:"getExecutionActions",value:(i=kt(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getItem(e));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"getExecutionList",value:(o=kt(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.getItem(this.instanceId)||[],t.abrupt("return",e);case 2:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"clear",value:function(){this.clearInstance(this.instanceId)}},{key:"clearInstance",value:function(t){var e=this;(this.getItem(t)||[]).forEach((function(t){Nt(t),(e.getItem(t)||[]).forEach((function(t){Nt(t)}))})),Nt(t)}},{key:"pushExecution",value:function(t){var e=this.getItem(this.instanceId)||[];if(e.length>=this.maxRecorder){var n=e.shift();this.popExecution(n)}e.push(t),this.setItem(this.instanceId,e)}},{key:"popExecution",value:function(t){(this.getItem(t)||[]).forEach((function(t){Nt(t)})),Nt(t)}},{key:"pushActionToExecution",value:function(t,e){var n=this.getItem(t)||[];n.push(e),this.setItem(t,n)}}])&&At(e.prototype,n),r&&At(e,r),t}();function Mt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ct(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Mt(Object(n),!0).forEach((function(e){Lt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Lt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ft(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(a):Promise.resolve(a).then(r,o)}function Gt(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function u(t){Ft(i,r,o,u,c,"next",t)}function c(t){Ft(i,r,o,u,c,"throw",t)}u(void 0)}))}}function Ut(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Bt=function(){function t(e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.nodeModelMap=new Map,this.instanceId=(n=d(),"engine-".concat(n)),null!=e&&e.debug&&(this.recorder=new Dt({instanceId:this.instanceId})),this.register({type:ht.nodeTypeName,model:ht}),this.register({type:It.nodeTypeName,model:It}),this.context=(null==e?void 0:e.context)||{}}var e,n,r,o,i,u,c;return e=t,(n=[{key:"register",value:function(t){this.nodeModelMap.set(t.type,t.model)}},{key:"setCustomRecorder",value:function(t){this.recorder=t}},{key:"load",value:function(t){var e=t.graphData,n=t.startNodeType,r=void 0===n?"StartNode":n,o=t.globalData,i=void 0===o?{}:o;return this.flowModel=new B({nodeModelMap:this.nodeModelMap,recorder:this.recorder,context:this.context,globalData:i,startNodeType:r}),this.flowModel.load(e),this.flowModel}},{key:"execute",value:(c=Gt(regeneratorRuntime.mark((function t(e){var n=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){e||(e={}),n.flowModel.execute(Ct(Ct({},e),{},{callback:function(e){t(e)},onError:function(t){r(t)}}))})));case 1:case"end":return t.stop()}}),t)}))),function(t){return c.apply(this,arguments)})},{key:"resume",value:(u=Gt(regeneratorRuntime.mark((function t(e){var n=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){n.flowModel.resume(Ct(Ct({},e),{},{callback:function(e){t(e)},onError:function(t){r(t)}}))})));case 1:case"end":return t.stop()}}),t)}))),function(t){return u.apply(this,arguments)})},{key:"getExecutionList",value:(i=Gt(regeneratorRuntime.mark((function t(){var e,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,null===(e=this.recorder)||void 0===e?void 0:e.getExecutionList();case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"getExecutionRecord",value:(o=Gt(regeneratorRuntime.mark((function t(e){var n,r,o,i,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,null===(n=this.recorder)||void 0===n?void 0:n.getExecutionActions(e);case 2:if(r=t.sent){t.next=5;break}return t.abrupt("return",null);case 5:for(o=[],i=0;i<r.length;i++)o.push(null===(u=this.recorder)||void 0===u?void 0:u.getActionRecord(r[i]));return t.abrupt("return",Promise.all(o));case 8:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"destroy",value:function(){var t;null===(t=this.recorder)||void 0===t||t.clear()}},{key:"getGlobalData",value:function(){var t;return null===(t=this.flowModel)||void 0===t?void 0:t.globalData}},{key:"setGlobalData",value:function(t){this.flowModel&&(this.flowModel.globalData=t)}},{key:"updateGlobalData",value:function(t){this.flowModel&&Object.assign(this.flowModel.globalData,t)}}])&&Ut(e.prototype,n),r&&Ut(e,r),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"runInBrowserContext",(function(){return d})),n.d(e,"createContext",(function(){return l})),n.d(e,"runInContext",(function(){return p}));var r,o,i,u;n(11),n(21),n(23),n(30),n(31),n(14),n(19),n(20),n(28),n(29),n(39);!function(t){t[t.NONE_START_NODE=1e3]="NONE_START_NODE",t[t.NONE_NODE_ID=1001]="NONE_NODE_ID",t[t.NO_DOCUMENT_BODY=2001]="NO_DOCUMENT_BODY"}(i||(i={})),function(t){t[t.NONE_START_NODE_IN_DATA=2e3]="NONE_START_NODE_IN_DATA",t[t.START_NODE_INCOMING=2001]="START_NODE_INCOMING",t[t.EXPRESSION_EXEC_ERROR=3e3]="EXPRESSION_EXEC_ERROR"}(u||(u={}));var c=((r={})[i.NONE_START_NODE]="未找到入度为0的节点",r[i.NONE_NODE_ID]="流程数据中存在没有此节点",r[i.NO_DOCUMENT_BODY]="找不到document.body, 请在DOM加载完成后再执行",r),a=((o={})[u.NONE_START_NODE_IN_DATA]="初始化数据中未找到入度为0的节点",o[u.START_NODE_INCOMING]="开始节点不允许被连入",o[u.EXPRESSION_EXEC_ERROR]="表达式执行异常",o),s=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function u(t){try{a(r.next(t))}catch(t){i(t)}}function c(t){try{a(r.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(u,c)}a((r=r.apply(t,e||[])).next())}))},f=function(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},l=function(t){var e,n=document.createElement("iframe");n.style.display="none",document&&document.body||console.error("error["+(e=i.NO_DOCUMENT_BODY)+"]: "+c[e]),document.body.appendChild(n);var r=n.contentWindow;return r.parent=null,Object.keys(t).forEach((function(e){r[e]=t[e]})),r},p=function(t,e){try{e.eval.call(e,t),e.frameElement&&document.body.removeChild(e.frameElement)}catch(n){console.warn(function(t){return"warning["+t+"]: "+a[t]}(u.EXPRESSION_EXEC_ERROR),{code:t,context:e,e:n})}return e},d=function(t,e){return void 0===e&&(e={}),s(void 0,void 0,void 0,(function(){var n;return f(this,(function(r){return n=l(e),p(t,n),[2,n]}))}))}}])}));
|