ato-water-lib 0.0.90 → 0.0.92
Sign up to get free protection for your applications and to get access to all the features.
- package/{esm2022 → esm2020}/lib/ato-water-lib.component.mjs +5 -5
- package/{esm2022 → esm2020}/lib/ato-water-lib.module.mjs +15 -15
- package/{esm2022 → esm2020}/lib/ato-water-lib.service.mjs +5 -5
- package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +165 -0
- package/{esm2022 → esm2020}/lib/components/asset-params-view/asset-params-view.component.mjs +9 -7
- package/esm2020/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +54 -0
- package/esm2020/lib/constants/components-group-const.mjs +3687 -0
- package/esm2020/lib/directive/ato-loading.directive.mjs +55 -0
- package/esm2020/lib/directive/ng-var.directive.mjs +31 -0
- package/esm2020/lib/models/default-gojs-editor.model.mjs +3589 -0
- package/esm2020/lib/models/gojs-data.model.mjs +6 -0
- package/esm2020/lib/models/gojs-editor.model.mjs +1822 -0
- package/esm2020/lib/services/utils/utils.service.mjs +133 -0
- package/fesm2015/ato-water-lib.mjs +9810 -0
- package/fesm2015/ato-water-lib.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/ato-water-lib.mjs +1980 -568
- package/fesm2020/ato-water-lib.mjs.map +1 -0
- package/lib/components/asset-flow/asset-flow.component.d.ts +1 -1
- package/lib/components/asset-params-view/asset-params-view.component.d.ts +1 -1
- package/lib/components/flow-diagram-lib/flow-diagram-lib.component.d.ts +1 -1
- package/lib/constants/components-group-const.d.ts +710 -115
- package/lib/directive/ato-loading.directive.d.ts +1 -1
- package/lib/directive/ng-var.directive.d.ts +1 -1
- package/lib/models/default-gojs-editor.model.d.ts +2 -2
- package/lib/models/gojs-editor.model.d.ts +12 -5
- package/package.json +13 -7
- package/esm2022/lib/components/asset-flow/asset-flow.component.mjs +0 -174
- package/esm2022/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +0 -55
- package/esm2022/lib/constants/components-group-const.mjs +0 -2291
- package/esm2022/lib/directive/ato-loading.directive.mjs +0 -59
- package/esm2022/lib/directive/ng-var.directive.mjs +0 -33
- package/esm2022/lib/models/default-gojs-editor.model.mjs +0 -3582
- package/esm2022/lib/models/gojs-data.model.mjs +0 -10
- package/esm2022/lib/models/gojs-editor.model.mjs +0 -1799
- package/esm2022/lib/services/utils/utils.service.mjs +0 -133
- package/fesm2022/ato-water-lib.mjs.map +0 -1
- /package/{esm2022 → esm2020}/ato-water-lib.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/constants/applicable-prefixes-const.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/constants/base64.const.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/constants/icon-base64.const.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/constants/key.const.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/constants/plant.constant.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/constants/value.const.mjs +0 -0
- /package/{esm2022 → esm2020}/lib/models/ato-asset-flow.model.mjs +0 -0
- /package/{esm2022 → esm2020}/public-api.mjs +0 -0
@@ -0,0 +1,3589 @@
|
|
1
|
+
import { Directive, EventEmitter, Input, Output, ViewChild, } from '@angular/core';
|
2
|
+
import { AtoGojsEditorModel } from './gojs-editor.model';
|
3
|
+
import * as go from 'gojs';
|
4
|
+
import _ from 'lodash';
|
5
|
+
import moment from 'moment';
|
6
|
+
import { GO_LICENSE_KEY } from '../constants/key.const';
|
7
|
+
import { Subject } from 'rxjs';
|
8
|
+
import { UtilsService } from '../services/utils/utils.service';
|
9
|
+
import { ATO_ENUM_FLOW_DIRECTION, ATO_ECOMPONENT_PLANT_TYPE, NO_DATA, TEXT_UNKNOWN, VALUE_NA, } from '../constants/value.const';
|
10
|
+
import { ATO_EPlantType } from '../constants/plant.constant';
|
11
|
+
import { Subscription } from 'rxjs';
|
12
|
+
import { ICONS_BASE64 } from '../constants/icon-base64.const';
|
13
|
+
import * as i0 from "@angular/core";
|
14
|
+
const ICON_ALERT = '/assets/images/icons/Station.svg';
|
15
|
+
const ARROW = '/assets/images/icons/arrow.svg';
|
16
|
+
const ARROW_GRAY = '/assets/images/icons/arrow-gray.svg';
|
17
|
+
const RO_LINE_DIRTY = '/assets/images/icons/ro_line_dirty.svg';
|
18
|
+
const OUTFLOW_LINE_DIRTY = '/assets/images/icons/outflow_line_dirty.png';
|
19
|
+
export class AtoDefaultGojsEditor {
|
20
|
+
checkLinkCondition(fromNode, fromPort, toNode, toPort, link) {
|
21
|
+
if (this.linkValidation) {
|
22
|
+
return this.linkValidation(fromNode, fromPort, toNode, toPort, link);
|
23
|
+
}
|
24
|
+
return true; // Mặc định cho trường hợp không có hàm linkValidation được truyền vào
|
25
|
+
}
|
26
|
+
set initialOptions(v) {
|
27
|
+
this._initialOptions = _.merge(this._initialOptions, v);
|
28
|
+
// _.extend(v, this._initialOptions);
|
29
|
+
}
|
30
|
+
get initialOptions() {
|
31
|
+
return this._initialOptions;
|
32
|
+
}
|
33
|
+
set editor(v) {
|
34
|
+
this._editor = v;
|
35
|
+
if (v) {
|
36
|
+
setTimeout(() => {
|
37
|
+
this.initDiagram();
|
38
|
+
}, 100);
|
39
|
+
}
|
40
|
+
}
|
41
|
+
get editor() {
|
42
|
+
return this._editor;
|
43
|
+
}
|
44
|
+
constructor(_elRef) {
|
45
|
+
this._elRef = _elRef;
|
46
|
+
this.actions = [];
|
47
|
+
this.actionMenuId = 'actionMenuId';
|
48
|
+
this.myDiagramDiv = this.constructor.name + '-' + moment().valueOf();
|
49
|
+
this.$ = go.GraphObject.make;
|
50
|
+
this._initialOptions = {
|
51
|
+
'toolManager.hoverDelay': 200,
|
52
|
+
// 'draggingTool.isEnabled': false,
|
53
|
+
// initialAutoScale: go.Diagram.UniformToFill,
|
54
|
+
// autoScrollRegion: AtoGojsEditorModel.GRID_SIZE * 5,
|
55
|
+
layout: this.$(go.LayeredDigraphLayout, { direction: 0 }),
|
56
|
+
initialContentAlignment: go.Spot.Center,
|
57
|
+
initialAutoScale: go.Diagram.Uniform,
|
58
|
+
// contentAlignment: go.Spot.Center,
|
59
|
+
// this.$(go.ForceDirectedLayout),
|
60
|
+
'undoManager.isEnabled': true,
|
61
|
+
// "animationManager.isInitial": false,
|
62
|
+
// "animationManager.isEnabled": false,
|
63
|
+
// "draggingTool.isGridSnapEnabled": true
|
64
|
+
dragSelectingTool: this.$(go.DragSelectingTool, { isPartialInclusion: true, delay: 50 }, {
|
65
|
+
box: this.$(go.Part, // replace the magenta box with a red one
|
66
|
+
{ layerName: 'Tool', selectable: false }, this.$(go.Shape, {
|
67
|
+
name: 'SHAPE',
|
68
|
+
fill: 'rgba(255,0,0,0)',
|
69
|
+
stroke: '#E95F47',
|
70
|
+
strokeWidth: 2,
|
71
|
+
})),
|
72
|
+
}),
|
73
|
+
'linkingTool.linkValidation': this.checkLinkCondition.bind(this),
|
74
|
+
'draggingTool.doMouseMove': function () {
|
75
|
+
// do the standard behavior by calling the super method
|
76
|
+
go.DraggingTool.prototype.doMouseMove.call(this);
|
77
|
+
// if dragging-out from the diagram is not allowed, and
|
78
|
+
// if mouse is outside of viewport
|
79
|
+
if (!this.diagram.allowDragOut &&
|
80
|
+
!this.diagram.viewportBounds.containsPoint(this.diagram.lastInput.documentPoint)) {
|
81
|
+
this.diagram.ensureBounds();
|
82
|
+
const vp = this.diagram.lastInput.viewPoint;
|
83
|
+
const dp = this.diagram.position.copy();
|
84
|
+
if (vp.x < 0)
|
85
|
+
dp.x -= 10;
|
86
|
+
else if (vp.x > 0)
|
87
|
+
dp.x += 10;
|
88
|
+
if (vp.y < 0)
|
89
|
+
dp.y -= 10;
|
90
|
+
else if (vp.y > 0)
|
91
|
+
dp.y += 10;
|
92
|
+
this.diagram.position = dp; // scroll in the direction of the mouse
|
93
|
+
}
|
94
|
+
},
|
95
|
+
// LayoutCompleted: () => {
|
96
|
+
// this.myDiagram.zoomToFit();
|
97
|
+
// this.defaultScaleZoomToFit = this.myDiagram.scale;
|
98
|
+
// if (!this.initialOptions.isReadOnly) {
|
99
|
+
// const sizeMargin = AtoGojsEditorModel.GRID_SIZE * 15;
|
100
|
+
// this.myDiagram.padding = new go.Margin(sizeMargin);
|
101
|
+
// }
|
102
|
+
// },
|
103
|
+
};
|
104
|
+
this.isShowNodeInfo = false;
|
105
|
+
this.onModelChangeListenerEvent = new EventEmitter();
|
106
|
+
this.onClickInfoButton = new EventEmitter();
|
107
|
+
this.onOpenWizard = new EventEmitter();
|
108
|
+
this.onOpenDetail = new EventEmitter();
|
109
|
+
this.onOpenAssetParameter = new EventEmitter();
|
110
|
+
this.onOpenInsightMapping = new EventEmitter();
|
111
|
+
this.onHoverInfoButton = new EventEmitter();
|
112
|
+
this.onHoverAlert = new EventEmitter();
|
113
|
+
this.onDoubleClickNode = new EventEmitter();
|
114
|
+
this.onOpenChangeIcon = new EventEmitter();
|
115
|
+
// Click component
|
116
|
+
this.onClickCompoent = new EventEmitter();
|
117
|
+
this.callbackImageTopology = new EventEmitter();
|
118
|
+
// Click param on ParamTable
|
119
|
+
this.onClikParamOfTable = new EventEmitter();
|
120
|
+
// Delete Node
|
121
|
+
this.onDeleteNode = new EventEmitter();
|
122
|
+
this.onUndo = new EventEmitter();
|
123
|
+
// Rename
|
124
|
+
this.onRename = new EventEmitter();
|
125
|
+
this.committedTransactionSubject = new Subject();
|
126
|
+
// AddSub and UnSub
|
127
|
+
this._subscriptionList = new Subscription();
|
128
|
+
go.Diagram.licenseKey = GO_LICENSE_KEY;
|
129
|
+
}
|
130
|
+
ngOnDestroy() {
|
131
|
+
this.unsubscribeAll();
|
132
|
+
this.stopAnimation();
|
133
|
+
// this.myDiagram?.clear();
|
134
|
+
if (!!this.myDiagram?.div) {
|
135
|
+
this.myDiagram.div = null;
|
136
|
+
}
|
137
|
+
if (this.myDiagram) {
|
138
|
+
this.myDiagram.clear();
|
139
|
+
}
|
140
|
+
if (this.myDiagram != null && this.myDiagram.nodeTemplateMap != null) {
|
141
|
+
this.myDiagram.nodeTemplateMap.clear();
|
142
|
+
}
|
143
|
+
if (this.myDiagram != null && this.myDiagram.groupTemplateMap != null) {
|
144
|
+
this.myDiagram.groupTemplateMap.clear();
|
145
|
+
}
|
146
|
+
if (this.myDiagram != null && this.myDiagram.linkTemplate != null) {
|
147
|
+
for (var key in this.myDiagram.linkTemplateMap.toArray()) {
|
148
|
+
this.myDiagram.linkTemplateMap.remove(key);
|
149
|
+
}
|
150
|
+
}
|
151
|
+
this.myDiagram = null;
|
152
|
+
}
|
153
|
+
addOrRemoveCompoentTemplate() {
|
154
|
+
// Add Node and Node Group
|
155
|
+
_.forEach(this.editor.data?.nodeDataArray, (node) => {
|
156
|
+
this.addTemplate(node);
|
157
|
+
});
|
158
|
+
// Remove Node and Node Group
|
159
|
+
_.forEach(this.myDiagram.nodeTemplateMap?.Hb, (temp) => {
|
160
|
+
if (temp?.key &&
|
161
|
+
!this.editor.data?.nodeDataArray?.some((node) => node?.type === temp?.key)) {
|
162
|
+
this.myDiagram.nodeTemplateMap.remove(temp?.key);
|
163
|
+
}
|
164
|
+
});
|
165
|
+
_.forEach(this.myDiagram.groupTemplateMap?.Hb, (temp) => {
|
166
|
+
if (temp?.key &&
|
167
|
+
!this.editor.data?.nodeDataArray?.some((node) => node?.type === temp?.key)) {
|
168
|
+
this.myDiagram.groupTemplateMap.remove(temp?.key);
|
169
|
+
}
|
170
|
+
});
|
171
|
+
}
|
172
|
+
addTemplate(node) {
|
173
|
+
this.addNodeTemplate(node);
|
174
|
+
this.addGroupTemplate(node);
|
175
|
+
}
|
176
|
+
addGroupTemplate(node) {
|
177
|
+
if (this.myDiagram.groupTemplateMap?.Hb?.[node?.type] || !node?.isGroup) {
|
178
|
+
return;
|
179
|
+
}
|
180
|
+
// Group
|
181
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.RO_WATER_TREATMENT) {
|
182
|
+
this.makeGroupROPlantTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
183
|
+
return;
|
184
|
+
}
|
185
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.BOILER) {
|
186
|
+
this.makeGroupBoilerTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
187
|
+
return;
|
188
|
+
}
|
189
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER) {
|
190
|
+
this.makeGroupCoolingTowerTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
191
|
+
return;
|
192
|
+
}
|
193
|
+
if (node?.type ===
|
194
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.IMMERSED_UF_WATER_TREATMENTS) {
|
195
|
+
this.makeGroupCoolingTowerTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
196
|
+
return;
|
197
|
+
}
|
198
|
+
if (node?.type ===
|
199
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.PRESSURIZED_UF_WATER_TREATMENTS) {
|
200
|
+
this.makeGroupCoolingTowerTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
201
|
+
return;
|
202
|
+
}
|
203
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.ZONE) {
|
204
|
+
this.makeGroupZoneTemplate();
|
205
|
+
return;
|
206
|
+
}
|
207
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL &&
|
208
|
+
node?.isGroup) {
|
209
|
+
this.groupPlantCellTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
210
|
+
return;
|
211
|
+
}
|
212
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL_INPUT_GROUP) {
|
213
|
+
this.groupPCInputOrOutTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name, new go.Margin(0, 50, 0, 0));
|
214
|
+
return;
|
215
|
+
}
|
216
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL_OUTPUT_GROUP) {
|
217
|
+
this.groupPCInputOrOutTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name, new go.Margin(0, 0, 0, 50));
|
218
|
+
return;
|
219
|
+
}
|
220
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.GROUP_BASIC_COMPONENT) {
|
221
|
+
this.makeGroupBasicComponent(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
222
|
+
return;
|
223
|
+
}
|
224
|
+
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
225
|
+
}
|
226
|
+
addNodeTemplate(node) {
|
227
|
+
if (this.myDiagram.nodeTemplateMap?.Hb[node?.type] || node?.isGroup) {
|
228
|
+
return;
|
229
|
+
}
|
230
|
+
// Not Group
|
231
|
+
// Component Water Normal
|
232
|
+
if (AtoGojsEditorModel.TYPE_TEMPLATE_WATER_NORMAL?.includes(node?.type) &&
|
233
|
+
!node?.isGroup) {
|
234
|
+
this.makeEntityTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon ?? '', AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name ?? '');
|
235
|
+
}
|
236
|
+
// Component Water Withdraw Or Discharge
|
237
|
+
if (AtoGojsEditorModel.TYPE_TEMPLATE_WATER_WITHDRAW_OR_DISCHARGE?.includes(node?.type) &&
|
238
|
+
!node?.isGroup) {
|
239
|
+
this.makeEntityWithdrawOrDischarge(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon ?? '', AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name ?? '');
|
240
|
+
}
|
241
|
+
// Component Energy Normal
|
242
|
+
if ((AtoGojsEditorModel.TYPE_TEMPLATE_ELECTRICITY?.includes(node?.type) ||
|
243
|
+
AtoGojsEditorModel.TYPE_TEMPLATE_NATURAL_GAS?.includes(node?.type) ||
|
244
|
+
AtoGojsEditorModel.TYPE_TEMPLATE_FUEL?.includes(node?.type) ||
|
245
|
+
AtoGojsEditorModel.TYPE_TEMPLATE_STEAM?.includes(node?.type)) &&
|
246
|
+
!node?.isGroup) {
|
247
|
+
this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon ?? '', AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name ?? '');
|
248
|
+
}
|
249
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.IMAGE_TEMPLATE) {
|
250
|
+
this.makeImageTemplate();
|
251
|
+
}
|
252
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE) {
|
253
|
+
this.makeParamTable();
|
254
|
+
}
|
255
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.MASS_BALANCE) {
|
256
|
+
this.makeMassBalance();
|
257
|
+
}
|
258
|
+
// Text Node
|
259
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE) {
|
260
|
+
this.makeTextTemplate();
|
261
|
+
}
|
262
|
+
// Value Node
|
263
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_NODE) {
|
264
|
+
this.makeValueNodeTemplate();
|
265
|
+
}
|
266
|
+
// Value Node
|
267
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.EMPTY) {
|
268
|
+
this.makeEmptyNodeTemplate();
|
269
|
+
}
|
270
|
+
// Value Label
|
271
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_LABEL) {
|
272
|
+
this.makeValueLabelTemplate();
|
273
|
+
}
|
274
|
+
// Label
|
275
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL) {
|
276
|
+
this.makeTextLabelTemplate();
|
277
|
+
}
|
278
|
+
// Zone item
|
279
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.ZONE_ENERGY_ITEM) {
|
280
|
+
this.makeZoneItemTemplate();
|
281
|
+
}
|
282
|
+
// data box
|
283
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX) {
|
284
|
+
this.makeDataBoxTemplate();
|
285
|
+
}
|
286
|
+
// Special template
|
287
|
+
if (AtoGojsEditorModel.TYPE_TEMPLATE_SPECIAL?.includes(node?.type)) {
|
288
|
+
this.makeSpecialTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
289
|
+
}
|
290
|
+
// Plant Cell
|
291
|
+
if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL &&
|
292
|
+
!node?.isGroup) {
|
293
|
+
this.plantCellTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
|
294
|
+
}
|
295
|
+
}
|
296
|
+
initDiagram() {
|
297
|
+
if (!!this.myDiagram?.div) {
|
298
|
+
// this.myDiagram.div = null;
|
299
|
+
if (this.initialOptions?.grid) {
|
300
|
+
this.myDiagram['grid'] = this.initialOptions?.grid;
|
301
|
+
}
|
302
|
+
else {
|
303
|
+
this.myDiagram['grid'] = this.$(go.Panel, 'Grid');
|
304
|
+
}
|
305
|
+
if (this.initialOptions?.LayoutCompleted) {
|
306
|
+
this.myDiagram.addDiagramListener('LayoutCompleted', this.initialOptions?.LayoutCompleted);
|
307
|
+
}
|
308
|
+
if (this.initialOptions?.LinkReshaped) {
|
309
|
+
this.myDiagram.addDiagramListener('LinkReshaped', this.initialOptions?.LinkReshaped);
|
310
|
+
}
|
311
|
+
if (this.initialOptions?.SelectionMoved) {
|
312
|
+
this.myDiagram.addDiagramListener('SelectionMoved', this.initialOptions?.SelectionMoved);
|
313
|
+
}
|
314
|
+
if (this.initialOptions?.ChangedSelection) {
|
315
|
+
this.myDiagram.addDiagramListener('ChangedSelection', this.initialOptions?.ChangedSelection);
|
316
|
+
}
|
317
|
+
this.myDiagram.dragSelectingTool = this.initialOptions?.dragSelectingTool;
|
318
|
+
this.myDiagram.toolManager.draggingTool.isGridSnapEnabled =
|
319
|
+
this.initialOptions?.['draggingTool.isGridSnapEnabled'] ?? false;
|
320
|
+
if (this.myDiagram.toolManager &&
|
321
|
+
this.myDiagram.toolManager.draggingTool) {
|
322
|
+
if (this.initialOptions?.['draggingTool.gridSnapCellSize']) {
|
323
|
+
this.myDiagram.toolManager.draggingTool.gridSnapCellSize =
|
324
|
+
this.initialOptions?.['draggingTool.gridSnapCellSize'];
|
325
|
+
}
|
326
|
+
// if (this.initialOptions?.['draggingTool.isGridSnapEnabled']) {
|
327
|
+
// this.myDiagram.toolManager.draggingTool.isGridSnapEnabled =
|
328
|
+
// this.initialOptions?.['draggingTool.isGridSnapEnabled'];
|
329
|
+
// }
|
330
|
+
if (this.initialOptions?.['draggingTool.doMouseMove']) {
|
331
|
+
this.myDiagram.toolManager.draggingTool.doMouseMove =
|
332
|
+
this.initialOptions?.['draggingTool.doMouseMove'];
|
333
|
+
}
|
334
|
+
if (this.initialOptions?.['linkingTool.linkValidation']) {
|
335
|
+
this.myDiagram.toolManager.linkingTool.linkValidation =
|
336
|
+
this.initialOptions?.['linkingTool.linkValidation'];
|
337
|
+
}
|
338
|
+
}
|
339
|
+
this.myDiagram.contentAlignment =
|
340
|
+
this.initialOptions?.contentAlignment ?? go.Spot.Center;
|
341
|
+
this.myDiagram.layout = this.initialOptions?.layout;
|
342
|
+
// this.myDiagram.minViewportBounds = new go.Rect(0, 0, 1200, 1200);
|
343
|
+
if (!!this.editor?.data) {
|
344
|
+
this.addOrRemoveCompoentTemplate();
|
345
|
+
this.myDiagram.model = go.Model.fromJson(this.editor.data);
|
346
|
+
}
|
347
|
+
return;
|
348
|
+
}
|
349
|
+
if (this.animationInterval) {
|
350
|
+
clearInterval(this.animationInterval);
|
351
|
+
}
|
352
|
+
const diagramDiv = this._elRef.nativeElement?.getElementsByClassName(this.myDiagramDiv)?.[0];
|
353
|
+
this.myDiagram = this.$(go.Diagram, diagramDiv, this.initialOptions);
|
354
|
+
// this.myDiagram.initialPosition = new go.Point(0, 0);
|
355
|
+
this.addOrRemoveCompoentTemplate();
|
356
|
+
this.makeLinkTemplate();
|
357
|
+
// animation
|
358
|
+
this.startAnimation();
|
359
|
+
setTimeout(() => {
|
360
|
+
const self = this;
|
361
|
+
// if (!this.isAddedModelChangedListeners) {
|
362
|
+
this.isAddedModelChangedListeners = true;
|
363
|
+
this.myDiagram.addModelChangedListener(function (e) {
|
364
|
+
if (e.change === go.ChangedEvent.Remove &&
|
365
|
+
e.propertyName === 'nodeDataArray') {
|
366
|
+
const data = e.oldValue;
|
367
|
+
self.onDeleteNode.emit(data);
|
368
|
+
}
|
369
|
+
if (e.isTransactionFinished) {
|
370
|
+
self.committedTransactionSubject?.next(e);
|
371
|
+
}
|
372
|
+
});
|
373
|
+
this.myDiagram.commandHandler.undo = function () {
|
374
|
+
self.onUndo.emit();
|
375
|
+
};
|
376
|
+
});
|
377
|
+
if (!!this.editor) {
|
378
|
+
this.myDiagram.model = go.Model.fromJson(this.editor.data);
|
379
|
+
}
|
380
|
+
}
|
381
|
+
initGroupTemplateEnergy() {
|
382
|
+
// for water
|
383
|
+
const { STORAGE, WATER_TREATMENT, DEMIN_WATER_TREATMENT,
|
384
|
+
// RO_WATER_TREATMENT,
|
385
|
+
PROCESS, WASTEWATER_TREATMENT, DAF_WASTEWATER_TREATMENT, ETP_WASTEWATER_TREATMENT, MBR_WASTEWATER_TREATMENT, ZLD_WASTEWATER_TREATMENT, COOLING_TOWER, BOILER, OTHER, LANDSCAPING_IRRIGATION, PRESSURIZED_UF_WATER_TREATMENTS, IMMERSED_UF_WATER_TREATMENTS, } = AtoGojsEditorModel.ENUM_TEMPLATES;
|
386
|
+
const waterGroups = [
|
387
|
+
STORAGE,
|
388
|
+
WATER_TREATMENT,
|
389
|
+
DEMIN_WATER_TREATMENT,
|
390
|
+
// RO_WATER_TREATMENT,
|
391
|
+
PROCESS,
|
392
|
+
WASTEWATER_TREATMENT,
|
393
|
+
DAF_WASTEWATER_TREATMENT,
|
394
|
+
ETP_WASTEWATER_TREATMENT,
|
395
|
+
MBR_WASTEWATER_TREATMENT,
|
396
|
+
ZLD_WASTEWATER_TREATMENT,
|
397
|
+
COOLING_TOWER,
|
398
|
+
BOILER,
|
399
|
+
OTHER,
|
400
|
+
LANDSCAPING_IRRIGATION,
|
401
|
+
PRESSURIZED_UF_WATER_TREATMENTS,
|
402
|
+
IMMERSED_UF_WATER_TREATMENTS,
|
403
|
+
];
|
404
|
+
waterGroups.map((e) => {
|
405
|
+
if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
|
406
|
+
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
|
407
|
+
}
|
408
|
+
});
|
409
|
+
// electrical
|
410
|
+
this.initElectricGroupTemplate();
|
411
|
+
// Fuel
|
412
|
+
this.initFuelGroupTemplate();
|
413
|
+
// Gas
|
414
|
+
this.initGasGroupTemplate();
|
415
|
+
}
|
416
|
+
initElectricDiagram() {
|
417
|
+
const { GRID, DIESEL_GENERATORS, BATTERY_ENERGY_STORAGE, LIGHTING_SYSTEMS, LIGHTINGS, ELECTRIC_METERS, TRANSFORMERS, ELECTRIC_FLYWHEEL_ENERGY_STORAGE, PUMPED_HYDRO_STORAGE, THERMAL_ENERGY_STORAGE, SUPER_CAPACITOR_ENERGY_STORAGE, SWITCH_GEARS, PROCESS_CONTROL_AUTOMATION_SYSTEMS, PROCESS_EQUIPMENT_MACHINES, OFFICE_EQUIPMENT, POWER_DISTRIBUTION_CONTROL_SYSTEMS, POWER_DISTRIBUTION_SYSTEMS, NATURAL_GAS_GENERATORS, MOTOR_CONTROLS, VARIABLE_FREQUENCY_DRIVERS, ELECTRIC_HVAC, COMPRESSED_AIR_SYSTEMS, REFRIGERATION_COOLING_SYSTEMS, MATERIAL_HANDLING_EQUIPMENT, WIND_POWER, ELECTRIC_INDUSTRIAL_MOTORS, GROUNDING, } = AtoGojsEditorModel.ENUM_TEMPLATES;
|
418
|
+
const ListItemsCreateEntityTemplate = [
|
419
|
+
GRID,
|
420
|
+
DIESEL_GENERATORS,
|
421
|
+
BATTERY_ENERGY_STORAGE,
|
422
|
+
LIGHTING_SYSTEMS,
|
423
|
+
LIGHTINGS,
|
424
|
+
ELECTRIC_METERS,
|
425
|
+
TRANSFORMERS,
|
426
|
+
ELECTRIC_FLYWHEEL_ENERGY_STORAGE,
|
427
|
+
PUMPED_HYDRO_STORAGE,
|
428
|
+
THERMAL_ENERGY_STORAGE,
|
429
|
+
SUPER_CAPACITOR_ENERGY_STORAGE,
|
430
|
+
SWITCH_GEARS,
|
431
|
+
PROCESS_CONTROL_AUTOMATION_SYSTEMS,
|
432
|
+
PROCESS_EQUIPMENT_MACHINES,
|
433
|
+
OFFICE_EQUIPMENT,
|
434
|
+
POWER_DISTRIBUTION_CONTROL_SYSTEMS,
|
435
|
+
POWER_DISTRIBUTION_SYSTEMS,
|
436
|
+
NATURAL_GAS_GENERATORS,
|
437
|
+
MOTOR_CONTROLS,
|
438
|
+
VARIABLE_FREQUENCY_DRIVERS,
|
439
|
+
ELECTRIC_HVAC,
|
440
|
+
COMPRESSED_AIR_SYSTEMS,
|
441
|
+
REFRIGERATION_COOLING_SYSTEMS,
|
442
|
+
MATERIAL_HANDLING_EQUIPMENT,
|
443
|
+
WIND_POWER,
|
444
|
+
ELECTRIC_INDUSTRIAL_MOTORS,
|
445
|
+
GROUNDING,
|
446
|
+
];
|
447
|
+
ListItemsCreateEntityTemplate.map((e) => {
|
448
|
+
if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
|
449
|
+
this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
|
450
|
+
}
|
451
|
+
});
|
452
|
+
}
|
453
|
+
initElectricGroupTemplate() {
|
454
|
+
const listItems = [
|
455
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BATTERY_ENERGY_STORAGE],
|
456
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.TRANSFORMERS],
|
457
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_METERS],
|
458
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.LIGHTINGS],
|
459
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.POWER_DISTRIBUTION_SYSTEMS],
|
460
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.SWITCH_GEARS],
|
461
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_INDUSTRIAL_MOTORS],
|
462
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GROUNDING],
|
463
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.MOTOR_CONTROLS],
|
464
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.LIGHTING_SYSTEMS],
|
465
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_HVAC],
|
466
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.REFRIGERATION_COOLING_SYSTEMS],
|
467
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS_CONTROL_AUTOMATION_SYSTEMS],
|
468
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.OFFICE_EQUIPMENT],
|
469
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COMPRESSED_AIR_SYSTEMS],
|
470
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS_EQUIPMENT_MACHINES],
|
471
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.MATERIAL_HANDLING_EQUIPMENT],
|
472
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.POWER_DISTRIBUTION_CONTROL_SYSTEMS],
|
473
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BATTERIES],
|
474
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.VARIABLE_FREQUENCY_DRIVERS],
|
475
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_FLYWHEEL_ENERGY_STORAGE],
|
476
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PUMPED_HYDRO_STORAGE],
|
477
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.THERMAL_ENERGY_STORAGE],
|
478
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.SUPER_CAPACITOR_ENERGY_STORAGE],
|
479
|
+
];
|
480
|
+
listItems.forEach((e) => {
|
481
|
+
this.makeGroupTemplate(e?.icon, e.name);
|
482
|
+
});
|
483
|
+
}
|
484
|
+
initFuelGroupTemplate() {
|
485
|
+
const listItems = [
|
486
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.DIESEL_FUELS],
|
487
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GASON_LINES],
|
488
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BIODIESELS],
|
489
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.KEROSENSE],
|
490
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PROPANES],
|
491
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.TANKER_TRUCKS],
|
492
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PIPELINE],
|
493
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_BOILERS],
|
494
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GENERATORS],
|
495
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_FURNACES],
|
496
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_OVENS],
|
497
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_VEHICLES_AND_EQUIPMENT],
|
498
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_METERS],
|
499
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS],
|
500
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS],
|
501
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_HVAC],
|
502
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS],
|
503
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS],
|
504
|
+
];
|
505
|
+
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS].name);
|
506
|
+
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS].name);
|
507
|
+
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS].name);
|
508
|
+
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS].name);
|
509
|
+
listItems.forEach((e) => {
|
510
|
+
this.makeGroupTemplate(e?.icon, e.name);
|
511
|
+
});
|
512
|
+
}
|
513
|
+
initGasGroupTemplate() {
|
514
|
+
const listItems = [
|
515
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COMPRESSED_NATURAL_GAS_PIPELINE],
|
516
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BOILERS_AND_HEATERS],
|
517
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FURNACES],
|
518
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.POWER_GENERATION],
|
519
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COGENERATION],
|
520
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COMBINED_CYCLE_POWER_PLANTS],
|
521
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FOR_VEHICLES_AND_EQUIPMENT],
|
522
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GAS_METERS],
|
523
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BURNERS],
|
524
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FLUE_GAS_ANALYZERS],
|
525
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COMBUSTION_CONTROL_SYSTEMS],
|
526
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GAS_STORAGE_TANKS],
|
527
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GAS_PRESSURE_REGULATORS],
|
528
|
+
];
|
529
|
+
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS].name);
|
530
|
+
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS].name);
|
531
|
+
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS].name);
|
532
|
+
this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS].name);
|
533
|
+
listItems.forEach((e) => {
|
534
|
+
this.makeGroupTemplate(e?.icon, e.name);
|
535
|
+
});
|
536
|
+
}
|
537
|
+
initGasDiagram() {
|
538
|
+
const { NATURAL_GAS_PIPELINES, LIQUEFIED_NATURAL_GAS, COMPRESSED_NATURAL_GAS_PIPELINE, COMPRESSED_NATURAL_GAS_PRODUCTION, BOILERS_AND_HEATERS, FURNACES, POWER_GENERATION, COGENERATION, COMBINED_CYCLE_POWER_PLANTS, FUEL_FOR_VEHICLES_AND_EQUIPMENT, GAS_METERS, BURNERS, FLUE_GAS_ANALYZERS, COMBUSTION_CONTROL_SYSTEMS, GAS_STORAGE_TANKS, GAS_PRESSURE_REGULATORS, NATURAL_GAS, } = AtoGojsEditorModel.ENUM_TEMPLATES;
|
539
|
+
const ListItemsCreateEntityTemplate = [
|
540
|
+
NATURAL_GAS_PIPELINES,
|
541
|
+
LIQUEFIED_NATURAL_GAS,
|
542
|
+
COMPRESSED_NATURAL_GAS_PIPELINE,
|
543
|
+
COMPRESSED_NATURAL_GAS_PRODUCTION,
|
544
|
+
BOILERS_AND_HEATERS,
|
545
|
+
FURNACES,
|
546
|
+
POWER_GENERATION,
|
547
|
+
COGENERATION,
|
548
|
+
COMBINED_CYCLE_POWER_PLANTS,
|
549
|
+
FUEL_FOR_VEHICLES_AND_EQUIPMENT,
|
550
|
+
GAS_METERS,
|
551
|
+
BURNERS,
|
552
|
+
FLUE_GAS_ANALYZERS,
|
553
|
+
COMBUSTION_CONTROL_SYSTEMS,
|
554
|
+
GAS_STORAGE_TANKS,
|
555
|
+
GAS_PRESSURE_REGULATORS,
|
556
|
+
NATURAL_GAS,
|
557
|
+
];
|
558
|
+
ListItemsCreateEntityTemplate.map((e) => {
|
559
|
+
if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
|
560
|
+
this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
|
561
|
+
}
|
562
|
+
});
|
563
|
+
}
|
564
|
+
initFuelDiagram() {
|
565
|
+
const { DIESEL_FUELS, GASON_LINES, BIODIESELS, KEROSENSE, PROPANES, TANKER_TRUCKS, PIPELINE, INDUSTRIAL_BOILERS, GENERATORS, INDUSTRIAL_FURNACES, INDUSTRIAL_OVENS, INDUSTRIAL_VEHICLES_AND_EQUIPMENT, FUEL_METERS, FUEL_DISPENSERS, FUEL_STRORAGE_TANKS, FUEL_FILTRATIONS, FUEL_MANAGEMENTS, FUELS, } = AtoGojsEditorModel.ENUM_TEMPLATES;
|
566
|
+
const ListItemsCreateEntityTemplate = [
|
567
|
+
DIESEL_FUELS,
|
568
|
+
GASON_LINES,
|
569
|
+
BIODIESELS,
|
570
|
+
KEROSENSE,
|
571
|
+
PROPANES,
|
572
|
+
TANKER_TRUCKS,
|
573
|
+
PIPELINE,
|
574
|
+
INDUSTRIAL_BOILERS,
|
575
|
+
GENERATORS,
|
576
|
+
INDUSTRIAL_FURNACES,
|
577
|
+
INDUSTRIAL_OVENS,
|
578
|
+
INDUSTRIAL_VEHICLES_AND_EQUIPMENT,
|
579
|
+
FUEL_METERS,
|
580
|
+
FUEL_DISPENSERS,
|
581
|
+
FUEL_STRORAGE_TANKS,
|
582
|
+
FUEL_FILTRATIONS,
|
583
|
+
FUEL_MANAGEMENTS,
|
584
|
+
FUELS,
|
585
|
+
];
|
586
|
+
ListItemsCreateEntityTemplate.map((e) => {
|
587
|
+
if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
|
588
|
+
this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
|
589
|
+
}
|
590
|
+
});
|
591
|
+
}
|
592
|
+
initSolarDiagram() {
|
593
|
+
const { SOLAR_POWER, POWER_CONDITIONING_UNIT, BATTERIES: BATTERY, INVERTERS: INVERTER, } = AtoGojsEditorModel.ENUM_TEMPLATES;
|
594
|
+
const ListItemsCreateEntityTemplate = [
|
595
|
+
SOLAR_POWER,
|
596
|
+
POWER_CONDITIONING_UNIT,
|
597
|
+
BATTERY,
|
598
|
+
INVERTER,
|
599
|
+
];
|
600
|
+
ListItemsCreateEntityTemplate.map((e) => {
|
601
|
+
if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
|
602
|
+
this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
|
603
|
+
}
|
604
|
+
});
|
605
|
+
}
|
606
|
+
initSteamDiagram() {
|
607
|
+
const { VALUES, STEAM_TRAPS, PRESSURE_REGULATORS, SAFETY_VALUES_AND_EQUIPMENT, CONDENSATE_RETURN_SYSTEM, DEAERATORS, FEEDWATER_PUMPS, BLOWDOWN_TANKS, EXPANSION_TANKS, HEAT_EXCHANGERS, TURBINES, } = AtoGojsEditorModel.ENUM_TEMPLATES;
|
608
|
+
const ListItemsCreateEntityTemplate = [
|
609
|
+
VALUES,
|
610
|
+
STEAM_TRAPS,
|
611
|
+
PRESSURE_REGULATORS,
|
612
|
+
SAFETY_VALUES_AND_EQUIPMENT,
|
613
|
+
CONDENSATE_RETURN_SYSTEM,
|
614
|
+
DEAERATORS,
|
615
|
+
FEEDWATER_PUMPS,
|
616
|
+
BLOWDOWN_TANKS,
|
617
|
+
EXPANSION_TANKS,
|
618
|
+
HEAT_EXCHANGERS,
|
619
|
+
TURBINES,
|
620
|
+
];
|
621
|
+
ListItemsCreateEntityTemplate.map((e) => {
|
622
|
+
if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
|
623
|
+
this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
|
624
|
+
}
|
625
|
+
});
|
626
|
+
}
|
627
|
+
onModelChangeListener(e) {
|
628
|
+
// this.onModelChangeListenerEvent.emit(e);
|
629
|
+
}
|
630
|
+
makeLinkTemplate() {
|
631
|
+
const elements = [];
|
632
|
+
// line
|
633
|
+
elements.push(this.$(go.Shape, {
|
634
|
+
isPanelMain: true,
|
635
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
636
|
+
strokeWidth: AtoGojsEditorModel.LINK_TEMPLATES[AtoGojsEditorModel.ENUM_LINK_TYPES.SIMPLE]?.strokeWidth,
|
637
|
+
// strokeWidth: 0,
|
638
|
+
}, new go.Binding('stroke', 'color'), new go.Binding('selectable', 'selectable'), new go.Binding('strokeWidth', 'type', (x) => AtoGojsEditorModel.LINK_TEMPLATES[x]?.strokeWidth)));
|
639
|
+
// animation
|
640
|
+
elements.push(this.$(go.Shape, {
|
641
|
+
...AtoGojsEditorModel.LINK_TEMPLATES[AtoGojsEditorModel.ENUM_LINK_TYPES.PIPE_ANIMATION]?.animation,
|
642
|
+
visible: true,
|
643
|
+
fill: 'transparent',
|
644
|
+
}));
|
645
|
+
elements.push(this.$(go.Panel, 'Top', {
|
646
|
+
height: 38,
|
647
|
+
// maxSize: new go.Size(NaN, 36),
|
648
|
+
// width: 100,
|
649
|
+
// minSize: new go.Size(100, 5), // Đặt kích thước tối thiểu là 100x50
|
650
|
+
background: 'transparent',
|
651
|
+
// layerName: 'BackgroundLayer',
|
652
|
+
// alignment: go.Spot.Top,
|
653
|
+
// alignmentFocus: go.Spot.Left,
|
654
|
+
// margin: new go.Margin(0, 0, 50, 0),
|
655
|
+
// selectable: false,
|
656
|
+
}, new go.Binding('visible', 'textComponent', (x) => {
|
657
|
+
return x ? true : false;
|
658
|
+
}),
|
659
|
+
// this.$(go.Shape, {
|
660
|
+
// height: 30,
|
661
|
+
// background: 'transparent',
|
662
|
+
// fill: 'transparent',
|
663
|
+
// // visible: false,
|
664
|
+
// }),
|
665
|
+
this.$(go.TextBlock, {
|
666
|
+
// margin: new go.Margin(0, 0, 50, 0),
|
667
|
+
stroke: '#444444',
|
668
|
+
font: 'normal 10pt Arial',
|
669
|
+
textAlign: 'left',
|
670
|
+
background: 'transparent',
|
671
|
+
// editable: false,
|
672
|
+
// alignment: go.Spot.Center, // Đảm bảo văn bản nằm ở trung tâm của nút
|
673
|
+
// alignmentFocus: go.Spot.Center, // Đảm bảo văn bản không bị dịch chuyển ra khỏi trung tâm
|
674
|
+
wrap: go.TextBlock.WrapFit,
|
675
|
+
// selectable: true,
|
676
|
+
overflow: go.TextBlock.OverflowEllipsis,
|
677
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
678
|
+
margin: 4,
|
679
|
+
}, new go.Binding('text', 'textComponent'))),
|
680
|
+
}, new go.Binding('text', 'textComponent'), new go.Binding('background', 'textComponent', (x) => x ? 'white' : 'transparent')
|
681
|
+
// new go.Binding('margin', 'isFormat', (x) =>
|
682
|
+
// x ? new go.Margin(5, 0, 5, 5) : new go.Margin(5, 5, 5, 5),
|
683
|
+
// ),
|
684
|
+
)));
|
685
|
+
// arrow
|
686
|
+
elements.push(this.$(go.Shape, // the "from" arrowhead
|
687
|
+
{
|
688
|
+
...AtoGojsEditorModel.LINK_TEMPLATES[AtoGojsEditorModel.ENUM_LINK_TYPES.SIMPLE]?.arrow,
|
689
|
+
}, new go.Binding('visible', 'type', (x) => ![
|
690
|
+
AtoGojsEditorModel.ENUM_LINK_TYPES.PIPE_ANIMATION,
|
691
|
+
AtoGojsEditorModel.ENUM_LINK_TYPES.PIPE,
|
692
|
+
AtoGojsEditorModel.ENUM_LINK_TYPES.PIPE_HIDDEN,
|
693
|
+
].includes(x)), new go.Binding('fill', 'color'), new go.Binding('stroke', 'color')));
|
694
|
+
// TODO fix link cannot selected inside group template
|
695
|
+
this.myDiagram.linkTemplate = this.$(go.Link, go.Link.Orthogonal, {
|
696
|
+
// layerName: 'Background', // link cannot select inside group template
|
697
|
+
// curviness: 20,
|
698
|
+
// corner: 5,
|
699
|
+
routing: go.Link.AvoidsNodes,
|
700
|
+
reshapable: true,
|
701
|
+
resegmentable: true,
|
702
|
+
relinkableFrom: true,
|
703
|
+
relinkableTo: true,
|
704
|
+
selectable: true,
|
705
|
+
toShortLength: AtoGojsEditorModel.LINK_TEMPLATES[AtoGojsEditorModel.ENUM_LINK_TYPES.SIMPLE].toShortLength, // assume arrowhead at "to" end, need to avoid bad appearance when path is thick
|
706
|
+
}, new go.Binding('layerName', '', (data) => {
|
707
|
+
return data?.textComponent ? 'Background' : '';
|
708
|
+
}), new go.Binding('zOrder', 'type', (x) => x === AtoGojsEditorModel.ENUM_LINK_TYPES.PIPE_ANIMATION ? 11 : 10), new go.Binding('toShortLength', 'type', (x) => AtoGojsEditorModel.LINK_TEMPLATES[x].toShortLength || 0), new go.Binding('selectable', 'selectable'), new go.Binding('visible', 'visible'),
|
709
|
+
// make sure links come in from the proper direction and go out appropriately
|
710
|
+
...elements);
|
711
|
+
}
|
712
|
+
makeValueNodeTemplate(size = { w: 82, h: 36 }) {
|
713
|
+
const self = this;
|
714
|
+
const node = this.$(go.Node, 'Spot', {}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { minSize: new go.Size(size.w, size.h) }, this.$(go.Shape, 'Rectangle', {
|
715
|
+
fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
|
716
|
+
stroke: 'transparent',
|
717
|
+
}), this.$(go.Panel, 'Horizontal', this.$(go.TextBlock, {
|
718
|
+
row: 2,
|
719
|
+
font: 'bold 14px Arial',
|
720
|
+
textAlign: 'center',
|
721
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
722
|
+
}, new go.Binding('editable', 'isEditable'), new go.Binding('text', 'shortenedNumber').makeTwoWay(), new go.Binding('stroke', 'color'), new go.Binding('margin', 'isFormat', (x) => x ? new go.Margin(5, 0, 5, 5) : new go.Margin(5, 5, 5, 5)), new go.Binding('visible', '', function (data) {
|
723
|
+
return data.value !== VALUE_NA;
|
724
|
+
})),
|
725
|
+
// Icon Err when lack of value
|
726
|
+
this.$(go.TextBlock, {
|
727
|
+
margin: new go.Margin(10, 10, 10, 10),
|
728
|
+
text: VALUE_NA,
|
729
|
+
textAlign: 'center',
|
730
|
+
font: 'bold 10pt sans-serif',
|
731
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.SALMON,
|
732
|
+
wrap: go.TextBlock.WrapFit,
|
733
|
+
editable: false,
|
734
|
+
isMultiline: false,
|
735
|
+
}, new go.Binding('visible', '', function (data) {
|
736
|
+
return data.value === VALUE_NA;
|
737
|
+
})))));
|
738
|
+
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_NODE, node);
|
739
|
+
}
|
740
|
+
makeEmptyNodeTemplate(size = { w: 0, h: 0 }) {
|
741
|
+
const node = this.$(go.Node, 'Spot', {}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify));
|
742
|
+
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.EMPTY, node);
|
743
|
+
}
|
744
|
+
makeValueLabelTemplate(size = { w: 82, h: 36 }) {
|
745
|
+
const node = this.$(go.Node, 'Auto', {
|
746
|
+
movable: false,
|
747
|
+
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { minSize: new go.Size(size.w, size.h) }, this.$(go.Panel, 'Horizontal', {
|
748
|
+
margin: new go.Margin(0, 10, 0, 10),
|
749
|
+
}, this.$(go.TextBlock, {
|
750
|
+
margin: new go.Margin(0, 5, 10, 0),
|
751
|
+
textAlign: 'center',
|
752
|
+
font: 'bold 15px sans-serif',
|
753
|
+
wrap: go.TextBlock.WrapFit,
|
754
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
755
|
+
minSize: new go.Size(150, 30), // Set the width of the text block
|
756
|
+
}, new go.Binding('stroke', 'color'), new go.Binding('text', 'data', (x) => {
|
757
|
+
if (typeof x?.quantity !== 'number') {
|
758
|
+
return '';
|
759
|
+
}
|
760
|
+
const formatted = UtilsService.convertPrefixesData({
|
761
|
+
value: x?.quantity,
|
762
|
+
unit: UtilsService.convertSpecialUnit(x?.unit),
|
763
|
+
});
|
764
|
+
let retValue = formatted.shortenedNumber +
|
765
|
+
' ' +
|
766
|
+
formatted.unitPrefixes +
|
767
|
+
UtilsService.convertSpecialUnit(x?.unit) ?? '';
|
768
|
+
if (x?.percent) {
|
769
|
+
retValue += ` (${x?.percent}%)`;
|
770
|
+
}
|
771
|
+
return retValue;
|
772
|
+
}), new go.Binding('visible', 'data', (x) => typeof x?.quantity === 'number')))));
|
773
|
+
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_LABEL, node);
|
774
|
+
}
|
775
|
+
makeTextLabelTemplate(size = { w: NaN, h: 20 }) {
|
776
|
+
const node = this.$(go.Node, 'Auto', {
|
777
|
+
movable: false,
|
778
|
+
isSelected: false,
|
779
|
+
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', this.$(go.Panel, 'Horizontal', this.$(go.TextBlock, {
|
780
|
+
margin: new go.Margin(0, 5, 10, 0),
|
781
|
+
textAlign: 'center',
|
782
|
+
font: 'bold 16px Arial',
|
783
|
+
wrap: go.TextBlock.WrapFit,
|
784
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
785
|
+
}, new go.Binding('stroke', 'color'), new go.Binding('text', 'name'), new go.Binding('visible', 'visible')))));
|
786
|
+
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL, node);
|
787
|
+
}
|
788
|
+
makeTextTemplate(size = {
|
789
|
+
w: AtoGojsEditorModel.GRID_SIZE * 5,
|
790
|
+
h: AtoGojsEditorModel.GRID_SIZE * 2,
|
791
|
+
}) {
|
792
|
+
const self = this;
|
793
|
+
const contextMenu = this.$(go.Adornment, 'Vertical', this.$('ContextMenuButton', this.$(go.TextBlock, 'Option 1'), {
|
794
|
+
click: function (e, obj) {
|
795
|
+
alert('Option 1 clicked!');
|
796
|
+
},
|
797
|
+
}), this.$('ContextMenuButton', this.$(go.TextBlock, 'Option 2'), {
|
798
|
+
click: function (e, obj) {
|
799
|
+
alert('Option 2 clicked!');
|
800
|
+
},
|
801
|
+
})
|
802
|
+
// ... add more options as needed ...
|
803
|
+
);
|
804
|
+
const node = this.$(go.Node, 'Spot', {
|
805
|
+
// fromSpot: go.Spot.RightSide,
|
806
|
+
// toSpot: go.Spot.LeftSide,
|
807
|
+
locationSpot: go.Spot.Center,
|
808
|
+
// selectionChanged: (e) => {
|
809
|
+
// if (e?.data.onSelected) {
|
810
|
+
// e?.data.onSelected(e?.data);
|
811
|
+
// }
|
812
|
+
// },
|
813
|
+
// mouseHover: (e, obj) => {
|
814
|
+
// const node = obj.part;
|
815
|
+
// if ((obj as any).part?.ob?.value === VALUE_NA) {
|
816
|
+
// self.onHoverInfoButton.emit({
|
817
|
+
// left: e?.['Wr']?.x + 8,
|
818
|
+
// top: e?.['Wr']?.y,
|
819
|
+
// node: node,
|
820
|
+
// });
|
821
|
+
// }
|
822
|
+
// },
|
823
|
+
// mouseLeave: (e, obj) => {
|
824
|
+
// if ((obj as any).part?.ob?.value === VALUE_NA) {
|
825
|
+
// self.onHoverInfoButton.emit(null);
|
826
|
+
// }
|
827
|
+
// },
|
828
|
+
click: (e, obj) => {
|
829
|
+
const node = obj.part;
|
830
|
+
if (node?.ob?.isTypeInflowOfPlantCell) {
|
831
|
+
// obj?.data?.onSelected(node?.ob?.nodePlantCellParent);
|
832
|
+
// self.onClickCompoent.emit({
|
833
|
+
// left: e?.['Wr']?.x,
|
834
|
+
// top: e?.['Wr']?.y,
|
835
|
+
// node: {
|
836
|
+
// ob: node?.ob?.nodePlantCellParent,
|
837
|
+
// },
|
838
|
+
// component: node?.ob?.nodePlantCellParent,
|
839
|
+
// });
|
840
|
+
return;
|
841
|
+
}
|
842
|
+
if (this._initialOptions?.isReadOnly) {
|
843
|
+
this.isShowNodeInfo
|
844
|
+
? self.onClickInfoButton.emit({
|
845
|
+
left: e?.['Wr']?.x,
|
846
|
+
top: e?.['Wr']?.y,
|
847
|
+
node: node,
|
848
|
+
})
|
849
|
+
: null;
|
850
|
+
}
|
851
|
+
},
|
852
|
+
doubleClick: (e, obj) => {
|
853
|
+
const node = obj.part;
|
854
|
+
if (node?.ob?.isTypeInflowOfPlantCell &&
|
855
|
+
!this._initialOptions?.isReadOnly) {
|
856
|
+
// obj?.data?.onSelected(node?.ob?.nodePlantCellParent);
|
857
|
+
// this.isShowNodeInfo
|
858
|
+
// ? self.onDoubleClickNode.emit({
|
859
|
+
// left: e?.['Wr']?.x,
|
860
|
+
// top: e?.['Wr']?.y,
|
861
|
+
// node: {
|
862
|
+
// ob: node?.ob?.nodePlantCellParent,
|
863
|
+
// },
|
864
|
+
// })
|
865
|
+
// : null;
|
866
|
+
return;
|
867
|
+
}
|
868
|
+
if (!this._initialOptions?.isReadOnly) {
|
869
|
+
this.isShowNodeInfo
|
870
|
+
? self.onClickInfoButton.emit({
|
871
|
+
left: e?.['Wr']?.x,
|
872
|
+
top: e?.['Wr']?.y,
|
873
|
+
node: node,
|
874
|
+
})
|
875
|
+
: null;
|
876
|
+
}
|
877
|
+
},
|
878
|
+
selectionAdornmentTemplate: this.$(go.Adornment, 'Spot', this.$(go.Panel, 'Auto',
|
879
|
+
// { height: 62 },
|
880
|
+
this.$(go.Shape, {
|
881
|
+
fill: null,
|
882
|
+
stroke: 'dodgerblue',
|
883
|
+
strokeWidth: 4,
|
884
|
+
}), this.$(go.Placeholder,
|
885
|
+
// { padding: new go.Margin(8, 3, 0, 3) },
|
886
|
+
new go.Binding('padding', '', (x) => {
|
887
|
+
return x?.isTypeInflowOfPlantCell
|
888
|
+
? x?.flowOfPlantCell === ATO_ENUM_FLOW_DIRECTION.INFLOW
|
889
|
+
? new go.Margin(0, 0, 0, 20)
|
890
|
+
: new go.Margin(0, 20, 0, 0)
|
891
|
+
: null;
|
892
|
+
})),
|
893
|
+
// this.$(go.Placeholder, { padding: 3 }),
|
894
|
+
new go.Binding('height', '', (x) => {
|
895
|
+
return x?.isTypeInflowOfPlantCell ? x?.height + 10 : null;
|
896
|
+
}), new go.Binding('width', '', (x) => {
|
897
|
+
return x?.isTypeInflowOfPlantCell ? x?.width + 12 : null;
|
898
|
+
})), this.$(go.Panel, 'Horizontal', { alignment: go.Spot.TopRight, alignmentFocus: go.Spot.Bottom },
|
899
|
+
// more
|
900
|
+
!this._initialOptions.isReadOnly
|
901
|
+
? this.generateActionGroup([
|
902
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME,
|
903
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.INSIGHT,
|
904
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
|
905
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
|
906
|
+
])
|
907
|
+
: {})),
|
908
|
+
}, new go.Binding('visible', 'visible'), new go.Binding('fromSpot', 'fromSpot'), new go.Binding('toSpot', 'toSpot'), new go.Binding('movable', 'movable'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
|
909
|
+
// new go.Binding('alignment', 'alignment', function(loc) {
|
910
|
+
// return new go.Spot(0, 0, loc.x, 0);
|
911
|
+
// }).ofObject(),
|
912
|
+
this.$(go.Panel, 'Auto', {
|
913
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
914
|
+
margin: 2,
|
915
|
+
}, new go.Binding('text', '', function (data) {
|
916
|
+
if (!self._initialOptions.isReadOnly) {
|
917
|
+
return data?.name ?? VALUE_NA;
|
918
|
+
}
|
919
|
+
if (data?.value === VALUE_NA || _.isNil(data?.value)) {
|
920
|
+
return NO_DATA;
|
921
|
+
// return TEXT_UNKNOWN;
|
922
|
+
}
|
923
|
+
return _.round(data?.value, 2).toFixed(2);
|
924
|
+
}).makeTwoWay())),
|
925
|
+
}, this.$(go.Panel, 'Table', this.arrowForPlantCell(size, ATO_ENUM_FLOW_DIRECTION.OUTFLOW), this.$(go.Panel, 'Auto',
|
926
|
+
// { width: size.w, height: size.h },
|
927
|
+
{
|
928
|
+
// minSize: new go.Size(size.w, size.h),
|
929
|
+
// maxSize: new go.Size(size.w, size.h),
|
930
|
+
desiredSize: new go.Size(size.w, size.h),
|
931
|
+
column: 1,
|
932
|
+
row: 2,
|
933
|
+
}, new go.Binding('width', 'width'), new go.Binding('height', 'height'), this.$(go.Shape, 'RoundedRectangle', {
|
934
|
+
fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
|
935
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
936
|
+
name: 'textNodeShape',
|
937
|
+
}, new go.Binding('fill', 'fill'), new go.Binding('stroke', 'stroke')), this.$(go.Panel, 'Vertical', this.$(go.Panel, 'Horizontal', { alignment: go.Spot.Center },
|
938
|
+
// Alert
|
939
|
+
this.$(go.Panel, 'Auto', {
|
940
|
+
margin: new go.Margin(0, 0, 0, 5),
|
941
|
+
visible: false,
|
942
|
+
}, new go.Binding('visible', 'recommendation'), this.$(go.Shape, 'Circle', {
|
943
|
+
fill: '#E95F47',
|
944
|
+
stroke: '#E95F47',
|
945
|
+
width: 15,
|
946
|
+
height: 15,
|
947
|
+
}), this.$(go.TextBlock, {
|
948
|
+
text: '\uf649',
|
949
|
+
margin: new go.Margin(1.5, 0, 0, 0),
|
950
|
+
font: '8px "Font Awesome 6 Pro"',
|
951
|
+
stroke: '#fff',
|
952
|
+
})), this._initialOptions.isReadOnly
|
953
|
+
? this.$(go.Panel, 'Position', {
|
954
|
+
width: 18,
|
955
|
+
height: 15,
|
956
|
+
visible: false,
|
957
|
+
alignment: go.Spot.Center,
|
958
|
+
margin: new go.Margin(0, 0, 0, 5),
|
959
|
+
mouseEnter: (e, obj) => {
|
960
|
+
self.onHoverAlert.emit({
|
961
|
+
left: e?.['Wr']?.x + 8,
|
962
|
+
top: e?.['Wr']?.y,
|
963
|
+
messageAlert: obj.part?.ob?.messageAlert,
|
964
|
+
});
|
965
|
+
},
|
966
|
+
mouseLeave: (e, obj) => {
|
967
|
+
self.onHoverAlert.emit(null);
|
968
|
+
},
|
969
|
+
}, new go.Binding('visible', 'alert'), this.$(go.Picture, ICON_ALERT, {
|
970
|
+
alignment: go.Spot.Center,
|
971
|
+
maxSize: new go.Size(30, 30),
|
972
|
+
imageStretch: go.GraphObject.Uniform,
|
973
|
+
}))
|
974
|
+
: ''), this.$(go.Panel, 'Auto', this.$(go.TextBlock, {
|
975
|
+
name: 'textBlockValue',
|
976
|
+
row: 2,
|
977
|
+
editable: false,
|
978
|
+
desiredSize: new go.Size(size.w - 8, 18),
|
979
|
+
font: 'bold 22px Arial',
|
980
|
+
textAlign: 'center',
|
981
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
982
|
+
overflow: go.TextBlock.OverflowEllipsis,
|
983
|
+
},
|
984
|
+
// new go.Binding('editable', 'isEditable'),
|
985
|
+
new go.Binding('angle', 'angle'), new go.Binding('margin', '', (data) => {
|
986
|
+
if (data?.alert) {
|
987
|
+
return new go.Margin(0, 0, 0, 0);
|
988
|
+
}
|
989
|
+
return new go.Margin(0, 0, 0, 0);
|
990
|
+
}), new go.Binding('stroke', 'color'), new go.Binding('text', '', function (data) {
|
991
|
+
return self.getTextDataBox(data);
|
992
|
+
}).makeTwoWay(), new go.Binding('visible', '', (data) => !data?.isHiddenValue)))), this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, false, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, false), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false)), this.arrowForPlantCell(size, ATO_ENUM_FLOW_DIRECTION.INFLOW))));
|
993
|
+
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE, node);
|
994
|
+
}
|
995
|
+
arrowForPlantCell(size, flowDirection) {
|
996
|
+
return this.$(go.Panel, 'Table', {
|
997
|
+
height: size.h,
|
998
|
+
}, new go.Binding('height', 'height'), new go.Binding('visible', '', (data) => data?.flowOfPlantCell === flowDirection), {
|
999
|
+
column: flowDirection === ATO_ENUM_FLOW_DIRECTION.OUTFLOW ? 0 : 2,
|
1000
|
+
row: 2,
|
1001
|
+
}, new go.Binding('itemArray', 'dataLinkArray'), {
|
1002
|
+
itemTemplate: this.$(go.Panel, new go.Binding('row', 'indexRow'),
|
1003
|
+
// new go.Binding('height', 'height'),
|
1004
|
+
this.$(go.Picture, ARROW, {
|
1005
|
+
alignment: go.Spot.Center,
|
1006
|
+
maxSize: new go.Size(20, 40),
|
1007
|
+
// imageStretch: go.GraphObject.Uniform,
|
1008
|
+
}, new go.Binding('source', '', (data, panel) => {
|
1009
|
+
// panel.part?.data?.id
|
1010
|
+
return data?.isCreated ? panel?.$p : ARROW_GRAY;
|
1011
|
+
}))),
|
1012
|
+
});
|
1013
|
+
}
|
1014
|
+
getTextDataBox(data) {
|
1015
|
+
if (data?.value === VALUE_NA) {
|
1016
|
+
return TEXT_UNKNOWN;
|
1017
|
+
}
|
1018
|
+
return `${data?.shortenedNumber}${data?.unitPrefixes ? ' ' + data?.unitPrefixes : ''}`;
|
1019
|
+
}
|
1020
|
+
makeDataBoxTemplate(size = {
|
1021
|
+
w: AtoGojsEditorModel.GRID_SIZE * 5,
|
1022
|
+
h: AtoGojsEditorModel.GRID_SIZE * 5,
|
1023
|
+
}) {
|
1024
|
+
const self = this;
|
1025
|
+
let node = this.$(go.Node, 'Spot', {
|
1026
|
+
locationSpot: go.Spot.Center,
|
1027
|
+
mouseOver: function (e, obj) { },
|
1028
|
+
click: (e, obj) => {
|
1029
|
+
if (obj?.data?.onSelected) {
|
1030
|
+
obj?.data?.onSelected(obj?.data);
|
1031
|
+
}
|
1032
|
+
},
|
1033
|
+
selectionChanged: (e) => {
|
1034
|
+
if (!e.isSelected && e?.data?.onSelected) {
|
1035
|
+
e?.data?.onSelected(null);
|
1036
|
+
}
|
1037
|
+
},
|
1038
|
+
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', this.$(go.Panel, 'Table', {
|
1039
|
+
mouseHover: (e, obj) => {
|
1040
|
+
if (obj.part?.ob?.value === VALUE_NA) {
|
1041
|
+
self.onHoverInfoButton.emit({
|
1042
|
+
left: e?.['Wr']?.x + 8,
|
1043
|
+
top: e?.['Wr']?.y,
|
1044
|
+
node: node,
|
1045
|
+
});
|
1046
|
+
}
|
1047
|
+
},
|
1048
|
+
mouseLeave: (e, obj) => {
|
1049
|
+
if (obj.part?.ob?.value === VALUE_NA) {
|
1050
|
+
self.onHoverInfoButton.emit(null);
|
1051
|
+
}
|
1052
|
+
},
|
1053
|
+
}, this.$(go.Panel, 'Auto', { row: 0, stretch: go.GraphObject.Horizontal }, this.$(go.Shape, 'Rectangle', {
|
1054
|
+
fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
|
1055
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
1056
|
+
}, new go.Binding('fill', 'color')), this.$(go.TextBlock, {
|
1057
|
+
row: 0,
|
1058
|
+
margin: new go.Margin(10, 10, 5, 10),
|
1059
|
+
maxSize: new go.Size(size.w, NaN),
|
1060
|
+
stroke: 'white',
|
1061
|
+
font: 'normal 10pt Arial',
|
1062
|
+
textAlign: 'center',
|
1063
|
+
spacingBelow: 5,
|
1064
|
+
}, new go.Binding('text', 'name').makeTwoWay())), this.$(go.Panel, 'Auto', { row: 1, stretch: go.GraphObject.Horizontal }, this.$(go.Shape, 'Rectangle', {
|
1065
|
+
fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
|
1066
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
1067
|
+
}), this.$(go.Panel, 'Horizontal', this.$(go.TextBlock, {
|
1068
|
+
row: 2,
|
1069
|
+
// editable: true,
|
1070
|
+
// maxSize: new go.Size(size.w - 10, 40),
|
1071
|
+
// minSize: new go.Size(size.w - 10, size.h),
|
1072
|
+
margin: new go.Margin(5, 0, 5, 5),
|
1073
|
+
font: 'bold 12pt Arial',
|
1074
|
+
textAlign: 'center',
|
1075
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
1076
|
+
}, new go.Binding('editable', 'isEditable'), new go.Binding('text', 'shortenedNumber').makeTwoWay(), new go.Binding('stroke', 'color'), new go.Binding('visible', '', function (data) {
|
1077
|
+
return data.value !== VALUE_NA;
|
1078
|
+
})), this.$(go.TextBlock, {
|
1079
|
+
row: 2,
|
1080
|
+
// editable: true,
|
1081
|
+
// maxSize: new go.Size(size.w - 10, 40),
|
1082
|
+
// minSize: new go.Size(size.w - 10, size.h),
|
1083
|
+
margin: new go.Margin(5, 5, 5, 0),
|
1084
|
+
font: 'bold 12pt Arial',
|
1085
|
+
textAlign: 'center',
|
1086
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.GRAY,
|
1087
|
+
}, new go.Binding('visible', '', function (data) {
|
1088
|
+
return data.value !== VALUE_NA;
|
1089
|
+
}), new go.Binding('text', 'unitPrefixes'), new go.Binding('stroke', 'color')),
|
1090
|
+
// Icon Err when lack of value
|
1091
|
+
this.$(go.TextBlock, {
|
1092
|
+
margin: new go.Margin(10, 10, 10, 10),
|
1093
|
+
text: VALUE_NA,
|
1094
|
+
textAlign: 'center',
|
1095
|
+
font: 'bold 10pt sans-serif',
|
1096
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.SALMON,
|
1097
|
+
wrap: go.TextBlock.WrapFit,
|
1098
|
+
editable: false,
|
1099
|
+
isMultiline: false,
|
1100
|
+
}, new go.Binding('visible', '', function (data) {
|
1101
|
+
return data.value === VALUE_NA;
|
1102
|
+
})))))), this.$(go.Panel, 'Vertical', {
|
1103
|
+
alignment: go.Spot.Left,
|
1104
|
+
alignmentFocus: new go.Spot(0, 0.5, 8, 0),
|
1105
|
+
}), this.$(go.Panel, 'Vertical', {
|
1106
|
+
alignment: go.Spot.Right,
|
1107
|
+
alignmentFocus: new go.Spot(1, 0.5, -8, 0),
|
1108
|
+
}),
|
1109
|
+
// four named ports, one on each side:
|
1110
|
+
this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, true, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, true), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false));
|
1111
|
+
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX, node);
|
1112
|
+
}
|
1113
|
+
showPoint(loc) {
|
1114
|
+
const docLoc = this.myDiagram.transformDocToView(loc);
|
1115
|
+
}
|
1116
|
+
makeEntityTemplate(icon, title, size = {
|
1117
|
+
w: AtoGojsEditorModel.GRID_SIZE * 5,
|
1118
|
+
h: AtoGojsEditorModel.GRID_SIZE * 5,
|
1119
|
+
}) {
|
1120
|
+
const self = this;
|
1121
|
+
let node = this.$(go.Node, 'Spot', {
|
1122
|
+
locationSpot: go.Spot.Center,
|
1123
|
+
mouseOver: function (e, obj) {
|
1124
|
+
// self.showPoint(obj?.part?.location);
|
1125
|
+
},
|
1126
|
+
click: (e, obj) => {
|
1127
|
+
if (obj?.data?.onSelected) {
|
1128
|
+
obj?.data?.onSelected(obj?.data);
|
1129
|
+
self.onClickCompoent.emit({
|
1130
|
+
left: e?.['Wr']?.x,
|
1131
|
+
top: e?.['Wr']?.y,
|
1132
|
+
node: node,
|
1133
|
+
component: obj?.data,
|
1134
|
+
});
|
1135
|
+
}
|
1136
|
+
},
|
1137
|
+
selectionChanged: (e) => {
|
1138
|
+
if (!e.isSelected && e?.data?.onSelected) {
|
1139
|
+
e?.data?.onSelected(null);
|
1140
|
+
}
|
1141
|
+
},
|
1142
|
+
selectionAdornmentTemplate: this._initialOptions.isReadOnly
|
1143
|
+
? null
|
1144
|
+
: this.$(go.Adornment, 'Spot', {
|
1145
|
+
shadowVisible: true,
|
1146
|
+
shadowBlur: 6,
|
1147
|
+
shadowOffset: new go.Point(0, 2),
|
1148
|
+
shadowColor: '#00000029',
|
1149
|
+
}, this.$(go.Panel, 'Auto', this.$(go.Shape, {
|
1150
|
+
fill: null,
|
1151
|
+
stroke: 'dodgerblue',
|
1152
|
+
strokeWidth: 4,
|
1153
|
+
}), this.$(go.Placeholder, { padding: 3 })), this.$(go.Panel, 'Horizontal', {
|
1154
|
+
alignment: go.Spot.TopRight,
|
1155
|
+
alignmentFocus: go.Spot.Bottom,
|
1156
|
+
background: 'white',
|
1157
|
+
},
|
1158
|
+
// more
|
1159
|
+
!this._initialOptions.isReadOnly
|
1160
|
+
? this.generateActionGroup([
|
1161
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.RO_WATER_TREATMENT].name,
|
1162
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER].name,
|
1163
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BOILER].name,
|
1164
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES
|
1165
|
+
.IMMERSED_UF_WATER_TREATMENTS].name,
|
1166
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES
|
1167
|
+
.PRESSURIZED_UF_WATER_TREATMENTS].name,
|
1168
|
+
].includes(title)
|
1169
|
+
? [
|
1170
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME,
|
1171
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.FLOW_DETAILS,
|
1172
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.ASSET_PARAMETERS,
|
1173
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
|
1174
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
|
1175
|
+
]
|
1176
|
+
: [
|
1177
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME,
|
1178
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.DETAILS,
|
1179
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
|
1180
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
|
1181
|
+
])
|
1182
|
+
: {})),
|
1183
|
+
},
|
1184
|
+
// new go.Binding('location', 'loc', go.Point.parse),
|
1185
|
+
new go.Binding('movable', 'movable'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), new go.Binding('visible', 'visible'), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'RoundedRectangle', {
|
1186
|
+
fill: 'white',
|
1187
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
1188
|
+
strokeWidth: 1,
|
1189
|
+
// strokeDashArray: [5, 5],
|
1190
|
+
}), this.$(go.Panel, 'Table', this.$(go.Picture, icon, {
|
1191
|
+
row: 1,
|
1192
|
+
alignment: go.Spot.Center,
|
1193
|
+
desiredSize: new go.Size(size.w - 20, size.h - 50),
|
1194
|
+
// maxSize: new go.Size(60, 60),
|
1195
|
+
imageStretch: go.GraphObject.Uniform,
|
1196
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
1197
|
+
margin: 4,
|
1198
|
+
text: title,
|
1199
|
+
})),
|
1200
|
+
}), this.$(go.TextBlock, {
|
1201
|
+
row: 2,
|
1202
|
+
margin: new go.Margin(10, 0, 3, 0),
|
1203
|
+
editable: true,
|
1204
|
+
desiredSize: new go.Size(size.w - 20, 15),
|
1205
|
+
stroke: '#000D42',
|
1206
|
+
font: 'bold 10pt Arial',
|
1207
|
+
textAlign: 'center',
|
1208
|
+
// wrap: go.TextBlock.None,
|
1209
|
+
overflow: go.TextBlock.OverflowEllipsis,
|
1210
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, { margin: 4 }, new go.Binding('text', 'name'))),
|
1211
|
+
}, new go.Binding('text', 'name').makeTwoWay(), new go.Binding('editable', '', (data) => {
|
1212
|
+
return !(AtoGojsEditorModel.TYPE_COMPONENT_WATER?.includes(data?.systemType) &&
|
1213
|
+
data?.topologyType !== ATO_ECOMPONENT_PLANT_TYPE.WATER &&
|
1214
|
+
data?.topologyType !==
|
1215
|
+
ATO_ECOMPONENT_PLANT_TYPE.WATER_PLANT_CELL);
|
1216
|
+
})))), this.$(go.Panel, 'Vertical', {
|
1217
|
+
alignment: go.Spot.Left,
|
1218
|
+
alignmentFocus: new go.Spot(0, 0.5, 8, 0),
|
1219
|
+
}), this.$(go.Panel, 'Vertical', {
|
1220
|
+
alignment: go.Spot.Right,
|
1221
|
+
alignmentFocus: new go.Spot(1, 0.5, -8, 0),
|
1222
|
+
}), this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, false, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, false), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false));
|
1223
|
+
this.myDiagram.nodeTemplateMap.set(title, node);
|
1224
|
+
}
|
1225
|
+
makeEntityTemplateEnergy(icon, title, size = {
|
1226
|
+
w: AtoGojsEditorModel.GRID_SIZE * 5,
|
1227
|
+
h: AtoGojsEditorModel.GRID_SIZE * 5,
|
1228
|
+
}) {
|
1229
|
+
const self = this;
|
1230
|
+
let node = this.$(go.Node, 'Spot', {
|
1231
|
+
locationSpot: go.Spot.Center,
|
1232
|
+
mouseOver: function (e, obj) {
|
1233
|
+
// self.showPoint(obj?.part?.location);
|
1234
|
+
},
|
1235
|
+
click: (e, obj) => {
|
1236
|
+
if (obj?.data?.onSelected) {
|
1237
|
+
obj?.data?.onSelected(obj?.data);
|
1238
|
+
}
|
1239
|
+
},
|
1240
|
+
selectionChanged: (e) => {
|
1241
|
+
if (!e.isSelected && e?.data?.onSelected) {
|
1242
|
+
e?.data?.onSelected(null);
|
1243
|
+
}
|
1244
|
+
},
|
1245
|
+
selectionAdornmentTemplate: this._initialOptions.isReadOnly
|
1246
|
+
? null
|
1247
|
+
: this.$(go.Adornment, 'Spot', {
|
1248
|
+
shadowVisible: true,
|
1249
|
+
shadowBlur: 6,
|
1250
|
+
shadowOffset: new go.Point(0, 2),
|
1251
|
+
shadowColor: '#00000029',
|
1252
|
+
}, this.$(go.Panel, 'Auto', this.$(go.Shape, {
|
1253
|
+
fill: null,
|
1254
|
+
stroke: 'dodgerblue',
|
1255
|
+
strokeWidth: 4,
|
1256
|
+
}), this.$(go.Placeholder, { padding: 3 })), this.$(go.Panel, 'Horizontal', {
|
1257
|
+
alignment: go.Spot.TopRight,
|
1258
|
+
alignmentFocus: go.Spot.Bottom,
|
1259
|
+
background: 'white',
|
1260
|
+
},
|
1261
|
+
// more
|
1262
|
+
this.generateActionGroup([
|
1263
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME,
|
1264
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.DETAILS,
|
1265
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
|
1266
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
|
1267
|
+
]))),
|
1268
|
+
}, new go.Binding('visible', 'visible'), new go.Binding('movable', 'movable'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'RoundedRectangle', {
|
1269
|
+
fill: 'white',
|
1270
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
1271
|
+
// strokeDashArray: [5, 5],
|
1272
|
+
}), this.$(go.Panel, 'Table', this.$(go.TextBlock, AtoGojsEditorModel.TEMPLATE_DUPLICATE[title] ?? title, {
|
1273
|
+
row: 0,
|
1274
|
+
margin: new go.Margin(3, 3, 10, 3),
|
1275
|
+
maxSize: new go.Size(size.w - 20, 15),
|
1276
|
+
stroke: '#444444',
|
1277
|
+
font: 'normal 10pt Arial',
|
1278
|
+
textAlign: 'center',
|
1279
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
1280
|
+
margin: 4,
|
1281
|
+
text: title,
|
1282
|
+
})),
|
1283
|
+
}), this.$(go.Picture, icon, {
|
1284
|
+
row: 1,
|
1285
|
+
alignment: go.Spot.Center,
|
1286
|
+
desiredSize: new go.Size(size.w - 20, size.h - 65),
|
1287
|
+
imageStretch: go.GraphObject.Uniform,
|
1288
|
+
}), this.$(go.TextBlock, {
|
1289
|
+
row: 2,
|
1290
|
+
margin: new go.Margin(10, 3, 3, 3),
|
1291
|
+
editable: true,
|
1292
|
+
maxSize: new go.Size(size.w - 20, 15),
|
1293
|
+
stroke: '#2C2C2C',
|
1294
|
+
font: 'bold 10pt Arial',
|
1295
|
+
textAlign: 'center',
|
1296
|
+
// wrap: go.TextBlock.None,
|
1297
|
+
overflow: go.TextBlock.OverflowEllipsis,
|
1298
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
1299
|
+
margin: 4,
|
1300
|
+
}, new go.Binding('text', 'name').makeTwoWay())),
|
1301
|
+
}, new go.Binding('text', 'name').makeTwoWay()))), this.$(go.Panel, 'Vertical', {
|
1302
|
+
alignment: go.Spot.Left,
|
1303
|
+
alignmentFocus: new go.Spot(0, 0.5, 8, 0),
|
1304
|
+
}), this.$(go.Panel, 'Vertical', {
|
1305
|
+
alignment: go.Spot.Right,
|
1306
|
+
alignmentFocus: new go.Spot(1, 0.5, -8, 0),
|
1307
|
+
}),
|
1308
|
+
// four named ports, one on each side:
|
1309
|
+
this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, false, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, false), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false));
|
1310
|
+
this.myDiagram.nodeTemplateMap.set(title, node);
|
1311
|
+
}
|
1312
|
+
// Plant Cell
|
1313
|
+
plantCellTemplate(icon, title, size = {
|
1314
|
+
w: 260,
|
1315
|
+
h: AtoGojsEditorModel.PLANT_CELL_HEIGHT,
|
1316
|
+
}) {
|
1317
|
+
const self = this;
|
1318
|
+
let node = this.$(go.Group, 'Spot', {
|
1319
|
+
locationSpot: go.Spot.Center,
|
1320
|
+
mouseOver: function (e, obj) {
|
1321
|
+
// self.showPoint(obj?.part?.location);
|
1322
|
+
},
|
1323
|
+
mouseEnter: (e, obj) => {
|
1324
|
+
// self.onHoverAlert.emit({
|
1325
|
+
// left: e?.['Wr']?.x + 8,
|
1326
|
+
// top: e?.['Wr']?.y,
|
1327
|
+
// messageAlert: (obj as any).part?.ob?.messageAlert,
|
1328
|
+
// });
|
1329
|
+
const node = obj.part;
|
1330
|
+
self.onHoverInfoButton.emit({
|
1331
|
+
left: e?.['Wr']?.x + 8,
|
1332
|
+
top: e?.['Wr']?.y,
|
1333
|
+
node: node,
|
1334
|
+
});
|
1335
|
+
let shape = node?.findObject('SHAPE_KEY'); // Thay 'SHAPE_KEY' bằng khóa bạn đặt cho hình Shape
|
1336
|
+
// debugger;
|
1337
|
+
if (shape) {
|
1338
|
+
shape.stroke = 'blue'; // Thay đổi màu stroke thành blue
|
1339
|
+
}
|
1340
|
+
},
|
1341
|
+
mouseLeave: (e, obj) => {
|
1342
|
+
self.onHoverInfoButton.emit(null);
|
1343
|
+
// self.onHoverAlert.emit(null);
|
1344
|
+
},
|
1345
|
+
click: (e, obj) => {
|
1346
|
+
if (obj?.data?.onSelected) {
|
1347
|
+
obj?.data?.onSelected(obj?.data);
|
1348
|
+
self.onClickCompoent.emit({
|
1349
|
+
left: e?.['Wr']?.x,
|
1350
|
+
top: e?.['Wr']?.y,
|
1351
|
+
node: node,
|
1352
|
+
component: obj?.data,
|
1353
|
+
});
|
1354
|
+
}
|
1355
|
+
},
|
1356
|
+
doubleClick: (e, obj) => {
|
1357
|
+
if (!this._initialOptions?.isReadOnly) {
|
1358
|
+
const node = obj.part;
|
1359
|
+
this.isShowNodeInfo
|
1360
|
+
? self.onDoubleClickNode.emit({
|
1361
|
+
left: e?.['Wr']?.x,
|
1362
|
+
top: e?.['Wr']?.y,
|
1363
|
+
node: node,
|
1364
|
+
})
|
1365
|
+
: null;
|
1366
|
+
}
|
1367
|
+
},
|
1368
|
+
// Todo
|
1369
|
+
selectionChanged: (e) => {
|
1370
|
+
if (!e.isSelected && e?.data?.onSelected) {
|
1371
|
+
e?.data?.onSelected(null);
|
1372
|
+
}
|
1373
|
+
},
|
1374
|
+
selectionAdornmentTemplate: this._initialOptions.isReadOnly
|
1375
|
+
? null
|
1376
|
+
: this.$(go.Adornment, 'Spot', {
|
1377
|
+
shadowVisible: true,
|
1378
|
+
shadowBlur: 6,
|
1379
|
+
shadowOffset: new go.Point(0, 2),
|
1380
|
+
shadowColor: '#00000029',
|
1381
|
+
}, this.$(go.Panel, 'Auto', { width: 170 }, this.$(go.Shape, {
|
1382
|
+
fill: null,
|
1383
|
+
stroke: 'dodgerblue',
|
1384
|
+
strokeWidth: 4,
|
1385
|
+
}), this.$(go.Placeholder, { padding: 3 })), this.$(go.Panel, 'Horizontal', { alignment: go.Spot.TopRight, alignmentFocus: go.Spot.Bottom },
|
1386
|
+
// more
|
1387
|
+
this.generateActionGroup([
|
1388
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME,
|
1389
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.CHANGE_ICON,
|
1390
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.ONLY_DETAILS,
|
1391
|
+
// DefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
|
1392
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
|
1393
|
+
])
|
1394
|
+
// new go.Binding('visible', 'isNotAction', (x) => !x),
|
1395
|
+
)
|
1396
|
+
// this.$(
|
1397
|
+
// go.Panel,
|
1398
|
+
// 'Horizontal',
|
1399
|
+
// { alignment: go.Spot.TopRight, alignmentFocus: go.Spot.Bottom },
|
1400
|
+
// this.generateActionGroup([DefaultGojsEditor.ENUM_ACTIONS.ONLY_DETAILS]),
|
1401
|
+
// new go.Binding('visible', '', (x) => {
|
1402
|
+
// return x?.isOnlyDetails && !x?.isNotAction ? true : false;
|
1403
|
+
// }),
|
1404
|
+
// ),
|
1405
|
+
),
|
1406
|
+
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h },
|
1407
|
+
// this.$(go.Shape, 'RoundedRectangle', {
|
1408
|
+
// fill: 'white',
|
1409
|
+
// stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
1410
|
+
// // strokeDashArray: [5, 5],
|
1411
|
+
// }),
|
1412
|
+
// this.$(go.Placeholder, { padding: new go.Margin(0, 0, 0, 0), visible: false }),
|
1413
|
+
this.$(go.Panel, 'Auto', {
|
1414
|
+
alignmentFocus: go.Spot.Center,
|
1415
|
+
margin: new go.Margin(0, 50, 0, 50),
|
1416
|
+
}, this.$(go.Shape, 'RoundedRectangle', {
|
1417
|
+
fill: 'white',
|
1418
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
1419
|
+
strokeDashArray: [5, 5],
|
1420
|
+
}), this.$(go.Panel, 'Table', this.$(go.TextBlock, title, {
|
1421
|
+
row: 0,
|
1422
|
+
margin: new go.Margin(3, 0, 10, 0),
|
1423
|
+
desiredSize: new go.Size(size.w - 20, 15),
|
1424
|
+
stroke: '#444444',
|
1425
|
+
font: 'normal 10pt Arial',
|
1426
|
+
textAlign: 'center',
|
1427
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
1428
|
+
margin: 4,
|
1429
|
+
text: title,
|
1430
|
+
})),
|
1431
|
+
}), this.$(go.Picture, icon, {
|
1432
|
+
row: 1,
|
1433
|
+
alignment: go.Spot.Center,
|
1434
|
+
desiredSize: new go.Size(size.w - 20, size.h - 65),
|
1435
|
+
imageStretch: go.GraphObject.Uniform,
|
1436
|
+
}, new go.Binding('source', 'pathImage', (x) => x ??
|
1437
|
+
AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL].icon)), this.$(go.TextBlock, {
|
1438
|
+
row: 2,
|
1439
|
+
margin: new go.Margin(10, 0, 3, 0),
|
1440
|
+
editable: true,
|
1441
|
+
desiredSize: new go.Size(size.w - 20, 15),
|
1442
|
+
stroke: '#2C2C2C',
|
1443
|
+
font: 'bold 10pt Arial',
|
1444
|
+
textAlign: 'center',
|
1445
|
+
// wrap: go.TextBlock.None,
|
1446
|
+
overflow: go.TextBlock.OverflowEllipsis,
|
1447
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
1448
|
+
margin: 4,
|
1449
|
+
}, new go.Binding('text', 'name').makeTwoWay())),
|
1450
|
+
}, new go.Binding('text', 'name').makeTwoWay())))), this.$(go.Panel, 'Vertical', {
|
1451
|
+
alignment: go.Spot.Left,
|
1452
|
+
alignmentFocus: new go.Spot(0, 0.5, 8, 0),
|
1453
|
+
}), this.$(go.Panel, 'Vertical', {
|
1454
|
+
alignment: go.Spot.Right,
|
1455
|
+
alignmentFocus: new go.Spot(1, 0.5, -8, 0),
|
1456
|
+
})
|
1457
|
+
// this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true),
|
1458
|
+
// this.makePort('L', go.Spot.Left, go.Spot.LeftSide, false, true),
|
1459
|
+
// this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, false),
|
1460
|
+
// this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false),
|
1461
|
+
);
|
1462
|
+
this.myDiagram.nodeTemplateMap.set(title, node);
|
1463
|
+
}
|
1464
|
+
makeEntityWithdrawOrDischarge(icon, title, size = {
|
1465
|
+
w: AtoGojsEditorModel.GRID_SIZE * 5,
|
1466
|
+
h: AtoGojsEditorModel.GRID_SIZE * 5,
|
1467
|
+
}) {
|
1468
|
+
const self = this;
|
1469
|
+
let node = this.$(go.Node, 'Spot', {
|
1470
|
+
locationSpot: go.Spot.Center,
|
1471
|
+
mouseOver: function (e, obj) {
|
1472
|
+
// self.showPoint(obj?.part?.location);
|
1473
|
+
},
|
1474
|
+
click: (e, obj) => {
|
1475
|
+
if (obj?.data?.onSelected) {
|
1476
|
+
obj?.data?.onSelected(obj?.data);
|
1477
|
+
self.onClickCompoent.emit({
|
1478
|
+
left: e?.['Wr']?.x,
|
1479
|
+
top: e?.['Wr']?.y,
|
1480
|
+
node: node,
|
1481
|
+
component: obj?.data,
|
1482
|
+
});
|
1483
|
+
}
|
1484
|
+
},
|
1485
|
+
selectionChanged: (e) => {
|
1486
|
+
if (!e.isSelected && e?.data?.onSelected) {
|
1487
|
+
e?.data?.onSelected(null);
|
1488
|
+
}
|
1489
|
+
},
|
1490
|
+
selectionAdornmentTemplate: this._initialOptions.isReadOnly
|
1491
|
+
? null
|
1492
|
+
: this.$(go.Adornment, 'Spot', this.$(go.Panel, 'Auto', this.$(go.Shape, {
|
1493
|
+
fill: null,
|
1494
|
+
stroke: 'dodgerblue',
|
1495
|
+
strokeWidth: 4,
|
1496
|
+
}), this.$(go.Placeholder, { padding: 3 })), this.$(go.Panel, 'Horizontal', { alignment: go.Spot.TopRight, alignmentFocus: go.Spot.Bottom }, this.generateActionGroup([
|
1497
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME,
|
1498
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.DETAILS,
|
1499
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
|
1500
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
|
1501
|
+
]))),
|
1502
|
+
}, new go.Binding('visible', 'visible'), new go.Binding('movable', 'movable'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'RoundedRectangle', {
|
1503
|
+
fill: 'white',
|
1504
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
1505
|
+
// strokeDashArray: [5, 5],
|
1506
|
+
}), this.$(go.Panel, 'Table',
|
1507
|
+
// this.$(go.TextBlock, title, {
|
1508
|
+
// row: 0,
|
1509
|
+
// margin: new go.Margin(3, 3, 10, 3),
|
1510
|
+
// maxSize: new go.Size(size.w - 20, NaN),
|
1511
|
+
// stroke: '#444444',
|
1512
|
+
// font: 'normal 10pt Arial',
|
1513
|
+
// textAlign: 'center',
|
1514
|
+
// }),
|
1515
|
+
this.$(go.Picture, icon, {
|
1516
|
+
row: 1,
|
1517
|
+
alignment: go.Spot.Center,
|
1518
|
+
desiredSize: new go.Size(size.w - 20, size.h - 50),
|
1519
|
+
imageStretch: go.GraphObject.Uniform,
|
1520
|
+
}), this.$(go.TextBlock, {
|
1521
|
+
row: 2,
|
1522
|
+
margin: new go.Margin(10, 0, 3, 0),
|
1523
|
+
editable: true,
|
1524
|
+
desiredSize: new go.Size(size.w - 20, 15),
|
1525
|
+
stroke: '#000D42',
|
1526
|
+
font: 'bold 10pt Arial',
|
1527
|
+
textAlign: 'center',
|
1528
|
+
// wrap: go.TextBlock.None,
|
1529
|
+
overflow: go.TextBlock.OverflowEllipsis,
|
1530
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
1531
|
+
margin: 4,
|
1532
|
+
}, new go.Binding('text', 'name').makeTwoWay())),
|
1533
|
+
}, new go.Binding('text', 'name').makeTwoWay()
|
1534
|
+
// {
|
1535
|
+
// // define a tooltip for each node that displays the color as text
|
1536
|
+
// toolTip: this.$(
|
1537
|
+
// 'ToolTip',
|
1538
|
+
// this.$(go.TextBlock, { margin: 4 }, new go.Binding('text', 'name')),
|
1539
|
+
// ), // end of Adornment
|
1540
|
+
// },
|
1541
|
+
))), this.$(go.Panel, 'Vertical', {
|
1542
|
+
alignment: go.Spot.Left,
|
1543
|
+
alignmentFocus: new go.Spot(0, 0.5, 8, 0),
|
1544
|
+
}), this.$(go.Panel, 'Vertical', {
|
1545
|
+
alignment: go.Spot.Right,
|
1546
|
+
alignmentFocus: new go.Spot(1, 0.5, -8, 0),
|
1547
|
+
}),
|
1548
|
+
// four named ports, one on each side:
|
1549
|
+
this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, false, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, false), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false));
|
1550
|
+
this.myDiagram.nodeTemplateMap.set(title, node);
|
1551
|
+
}
|
1552
|
+
editTextGroupZone(e, button) {
|
1553
|
+
const nodeGroup = button.part.adornedPart;
|
1554
|
+
const diagram = nodeGroup.diagram;
|
1555
|
+
e.diagram.commandHandler.editTextBlock(nodeGroup.findObject('TEXTBLOCK'));
|
1556
|
+
}
|
1557
|
+
editText(e, button) {
|
1558
|
+
const node = button.part.adornedPart;
|
1559
|
+
e.diagram.commandHandler.editTextBlock(node.findObject('TEXTBLOCK'));
|
1560
|
+
}
|
1561
|
+
async dragNewNode(e, button) {
|
1562
|
+
const tool = e.diagram.toolManager.draggingTool;
|
1563
|
+
if (tool.isBeyondDragSize()) {
|
1564
|
+
const data = button._dragData;
|
1565
|
+
if (!data)
|
1566
|
+
return;
|
1567
|
+
e.diagram.startTransaction('button drag'); // see doDeactivate, below
|
1568
|
+
const fromnode = button.part.adornedPart;
|
1569
|
+
const diagram = fromnode.diagram;
|
1570
|
+
const model = diagram.model;
|
1571
|
+
const nodedata = {
|
1572
|
+
...model.copyNodeData(data),
|
1573
|
+
key: UtilsService.generateUUID(),
|
1574
|
+
};
|
1575
|
+
model.addNodeData(nodedata);
|
1576
|
+
const newnode = diagram.findNodeForData(nodedata);
|
1577
|
+
const linkdata = model.copyLinkData({});
|
1578
|
+
model.setFromKeyForLinkData(linkdata, model.getKeyForNodeData(fromnode.data));
|
1579
|
+
model.setToKeyForLinkData(linkdata, model.getKeyForNodeData(newnode.data));
|
1580
|
+
model.addLinkData(linkdata);
|
1581
|
+
diagram.select(newnode);
|
1582
|
+
// this.createNodeAndLink(data, button.part.adornedPart);
|
1583
|
+
newnode.location = e.diagram.lastInput.documentPoint;
|
1584
|
+
// don't commitTransaction here, but in tool.doDeactivate, after drag operation finished
|
1585
|
+
// set tool.currentPart to a selected movable Part and then activate the DraggingTool
|
1586
|
+
tool.currentPart = newnode;
|
1587
|
+
e.diagram.currentTool = tool;
|
1588
|
+
tool.doActivate();
|
1589
|
+
}
|
1590
|
+
}
|
1591
|
+
addItemOnGroupZone(e, button) {
|
1592
|
+
const data = button._dragData;
|
1593
|
+
if (!data)
|
1594
|
+
return;
|
1595
|
+
e.diagram.startTransaction('Add Item On Group Zone');
|
1596
|
+
const fromnode = button.part.adornedPart;
|
1597
|
+
const dragData = button._dragData;
|
1598
|
+
const diagram = fromnode.diagram;
|
1599
|
+
const model = diagram.model;
|
1600
|
+
const nodedata = model.copyNodeData(dragData);
|
1601
|
+
model.addNodeData({
|
1602
|
+
...nodedata,
|
1603
|
+
type: 'SubSystem',
|
1604
|
+
name: '[Title...]',
|
1605
|
+
nameItem: '[Name...]',
|
1606
|
+
group: fromnode?.ob?.key,
|
1607
|
+
});
|
1608
|
+
e.diagram.commitTransaction('Add Item On Group Zone');
|
1609
|
+
// const newnode = diagram.findNodeForData(nodedata);
|
1610
|
+
// const linkdata = model.copyLinkData({});
|
1611
|
+
// model.setFromKeyForLinkData(linkdata, model.getKeyForNodeData(fromnode.data));
|
1612
|
+
// model.setToKeyForLinkData(linkdata, model.getKeyForNodeData(newnode.data));
|
1613
|
+
// model.addLinkData(linkdata);
|
1614
|
+
// diagram.select(newnode);
|
1615
|
+
// newnode.location = new go.Point(fromnode.location.x + 200, fromnode.location.y);
|
1616
|
+
// e.diagram.commitTransaction('Create Node and Link');
|
1617
|
+
}
|
1618
|
+
generateActionGroup(actions) {
|
1619
|
+
const self = this;
|
1620
|
+
return this.$('Button', {
|
1621
|
+
click: function (e, obj) {
|
1622
|
+
self.openActionMenu();
|
1623
|
+
const filteredActions = _.filter(obj.part?.['ob']?.actions ?? actions, (action) => {
|
1624
|
+
// Filter Insight button
|
1625
|
+
if (action === AtoDefaultGojsEditor.ENUM_ACTIONS.INSIGHT) {
|
1626
|
+
return !!obj.part?.['ob']?.id;
|
1627
|
+
}
|
1628
|
+
if (action === AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME &&
|
1629
|
+
obj.part?.['ob']?.type !==
|
1630
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE &&
|
1631
|
+
AtoGojsEditorModel.TYPE_COMPONENT_WATER?.includes(obj.part?.['ob']?.systemType) &&
|
1632
|
+
obj.part?.['ob']?.topologyType !==
|
1633
|
+
ATO_ECOMPONENT_PLANT_TYPE.WATER &&
|
1634
|
+
obj.part?.['ob']?.topologyType !==
|
1635
|
+
ATO_ECOMPONENT_PLANT_TYPE.WATER_PLANT_CELL) {
|
1636
|
+
return false;
|
1637
|
+
}
|
1638
|
+
if (action === AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW &&
|
1639
|
+
self.plantSatus === ATO_EPlantType.BASIC_PLANT &&
|
1640
|
+
obj.part?.data?.type ===
|
1641
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE) {
|
1642
|
+
return false;
|
1643
|
+
}
|
1644
|
+
return true;
|
1645
|
+
}).map((e) => {
|
1646
|
+
if (ATO_ECOMPONENT_PLANT_TYPE.STEAM ===
|
1647
|
+
obj.part?.['ob']?.topologyType &&
|
1648
|
+
e === AtoDefaultGojsEditor.ENUM_ACTIONS.INSIGHT) {
|
1649
|
+
return AtoDefaultGojsEditor.ENUM_ACTIONS.DATA_MAPPING;
|
1650
|
+
}
|
1651
|
+
if (e === AtoDefaultGojsEditor.ENUM_ACTIONS.FLOW_DETAILS &&
|
1652
|
+
obj?.part?.['ob']?.systemType ===
|
1653
|
+
AtoGojsEditorModel.ENUM_TYPES.COOLING_TOWER) {
|
1654
|
+
return AtoDefaultGojsEditor.ENUM_ACTIONS.FLOW_DETAILS_AND_WIZARD;
|
1655
|
+
}
|
1656
|
+
return e;
|
1657
|
+
});
|
1658
|
+
self.actions = filteredActions.map((action) => {
|
1659
|
+
let onClickFn = () => { };
|
1660
|
+
switch (action) {
|
1661
|
+
case AtoDefaultGojsEditor.ENUM_ACTIONS.INSIGHT:
|
1662
|
+
case AtoDefaultGojsEditor.ENUM_ACTIONS.DATA_MAPPING:
|
1663
|
+
onClickFn = () => {
|
1664
|
+
self.onOpenInsightMapping.emit({
|
1665
|
+
node: obj.part,
|
1666
|
+
});
|
1667
|
+
};
|
1668
|
+
break;
|
1669
|
+
case AtoDefaultGojsEditor.ENUM_ACTIONS.DETAILS:
|
1670
|
+
case AtoDefaultGojsEditor.ENUM_ACTIONS.FLOW_DETAILS:
|
1671
|
+
case AtoDefaultGojsEditor.ENUM_ACTIONS.FLOW_DETAILS_AND_WIZARD:
|
1672
|
+
onClickFn = () => {
|
1673
|
+
self.onOpenDetail.emit({
|
1674
|
+
node: obj.part,
|
1675
|
+
});
|
1676
|
+
};
|
1677
|
+
break;
|
1678
|
+
case AtoDefaultGojsEditor.ENUM_ACTIONS.ONLY_DETAILS:
|
1679
|
+
onClickFn = () => {
|
1680
|
+
self.onOpenDetail.emit({
|
1681
|
+
node: obj.part,
|
1682
|
+
});
|
1683
|
+
};
|
1684
|
+
break;
|
1685
|
+
case AtoDefaultGojsEditor.ENUM_ACTIONS.ASSET_PARAMETERS:
|
1686
|
+
onClickFn = () => {
|
1687
|
+
self.onOpenAssetParameter.emit({
|
1688
|
+
node: obj.part,
|
1689
|
+
});
|
1690
|
+
};
|
1691
|
+
break;
|
1692
|
+
case AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME:
|
1693
|
+
onClickFn = () => {
|
1694
|
+
if (obj.part?.data?.type ===
|
1695
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE) {
|
1696
|
+
self.onRename.emit({
|
1697
|
+
left: e?.['Wr']?.x - 50,
|
1698
|
+
top: e?.['Wr']?.y,
|
1699
|
+
...obj.part?.data,
|
1700
|
+
});
|
1701
|
+
// LayoutService.setToolTipComponentDataStatic({
|
1702
|
+
// component: RenameBoxComponent,
|
1703
|
+
// data: {
|
1704
|
+
// left: e?.['Wr']?.x - 50,
|
1705
|
+
// top: e?.['Wr']?.y,
|
1706
|
+
// ...obj.part?.data,
|
1707
|
+
// },
|
1708
|
+
// });
|
1709
|
+
}
|
1710
|
+
else {
|
1711
|
+
self.editText(e, obj);
|
1712
|
+
}
|
1713
|
+
};
|
1714
|
+
break;
|
1715
|
+
case AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW:
|
1716
|
+
onClickFn = () => {
|
1717
|
+
self.clickNewNode(e, _.merge(obj, {
|
1718
|
+
actionMove: self.dragNewNode,
|
1719
|
+
_dragData: {
|
1720
|
+
...{
|
1721
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE,
|
1722
|
+
name: `${AtoGojsEditorModel.ACTION_RIGHT_MENU_GROUP.DATA_BOX}_${moment().valueOf()}`,
|
1723
|
+
color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
|
1724
|
+
},
|
1725
|
+
...self.setProFOrNewNode(self),
|
1726
|
+
},
|
1727
|
+
}));
|
1728
|
+
};
|
1729
|
+
break;
|
1730
|
+
case AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE:
|
1731
|
+
onClickFn = () => {
|
1732
|
+
self.deleteNode(e);
|
1733
|
+
};
|
1734
|
+
break;
|
1735
|
+
case AtoDefaultGojsEditor.ENUM_ACTIONS.CHANGE_ICON:
|
1736
|
+
onClickFn = () => {
|
1737
|
+
self.onOpenChangeIcon.emit({
|
1738
|
+
node: obj.part,
|
1739
|
+
});
|
1740
|
+
};
|
1741
|
+
break;
|
1742
|
+
}
|
1743
|
+
return {
|
1744
|
+
...AtoDefaultGojsEditor.ACTIONS[action],
|
1745
|
+
onClick: () => {
|
1746
|
+
onClickFn();
|
1747
|
+
},
|
1748
|
+
};
|
1749
|
+
});
|
1750
|
+
},
|
1751
|
+
'ButtonBorder.strokeWidth': 0,
|
1752
|
+
'ButtonBorder.fill': 'white',
|
1753
|
+
},
|
1754
|
+
// new go.Binding('visible', 'isNotDragNewNode', (x) => !x),
|
1755
|
+
// new go.Binding('visible', 'isNotDelete', (x) => !x),
|
1756
|
+
new go.Binding('visible', 'isNotAction', (x) => !x), this.$(go.TextBlock, {
|
1757
|
+
margin: 4,
|
1758
|
+
text: '\ue489',
|
1759
|
+
font: '20px "Font Awesome 6 Pro"',
|
1760
|
+
cursor: 'pointer',
|
1761
|
+
}));
|
1762
|
+
}
|
1763
|
+
async setProFOrNewNode(self) {
|
1764
|
+
if (self.plantSatus === ATO_EPlantType.BASIC_PLANT) {
|
1765
|
+
return {
|
1766
|
+
movable: false,
|
1767
|
+
isNotAllowConnect: true,
|
1768
|
+
};
|
1769
|
+
}
|
1770
|
+
return {};
|
1771
|
+
}
|
1772
|
+
async clickNewNode(e, button) {
|
1773
|
+
const data = button._dragData;
|
1774
|
+
if (!data)
|
1775
|
+
return;
|
1776
|
+
e.diagram.startTransaction('Create Node and Link');
|
1777
|
+
const fromnode = button.part.adornedPart;
|
1778
|
+
// this.createNodeAndLink(button._dragData, fromnode);
|
1779
|
+
const dragData = button._dragData;
|
1780
|
+
const diagram = fromnode.diagram;
|
1781
|
+
const model = diagram.model;
|
1782
|
+
const nodedata = {
|
1783
|
+
...model.copyNodeData(dragData),
|
1784
|
+
key: UtilsService.generateUUID(),
|
1785
|
+
};
|
1786
|
+
model.addNodeData({
|
1787
|
+
...nodedata,
|
1788
|
+
isEditable: true,
|
1789
|
+
shortenedNumber: 0,
|
1790
|
+
isFormat: false,
|
1791
|
+
dataCollectionMethod: AtoGojsEditorModel.DATA_COLLECTION_METHOD.MANUAL,
|
1792
|
+
color: AtoGojsEditorModel.COLOR_COLLECTION_METHOD[AtoGojsEditorModel.DATA_COLLECTION_METHOD.MANUAL].color,
|
1793
|
+
group: fromnode?.ob?.group,
|
1794
|
+
value: 0,
|
1795
|
+
});
|
1796
|
+
const newnode = diagram.findNodeForData(nodedata);
|
1797
|
+
const linkdata = model.copyLinkData({});
|
1798
|
+
model.setFromKeyForLinkData(linkdata, model.getKeyForNodeData(fromnode.data));
|
1799
|
+
model.setToKeyForLinkData(linkdata, model.getKeyForNodeData(newnode.data));
|
1800
|
+
model.addLinkData(linkdata);
|
1801
|
+
diagram.select(newnode);
|
1802
|
+
if (nodedata?.movable !== undefined && nodedata?.movable !== null) {
|
1803
|
+
newnode.movable = nodedata?.movable;
|
1804
|
+
}
|
1805
|
+
newnode.location = new go.Point(fromnode.location.x + 160, fromnode.location.y +
|
1806
|
+
this.findLocYFromnode(fromnode) * AtoDefaultGojsEditor.DISTANCE_2_OUTPUT);
|
1807
|
+
e.diagram.commitTransaction('Create Node and Link');
|
1808
|
+
}
|
1809
|
+
findLocYFromnode(fromnode) {
|
1810
|
+
// Find location auto right
|
1811
|
+
const locYFromnode = fromnode.data?.loc?.split(' ')?.[1];
|
1812
|
+
const locYAlreadyExist = [];
|
1813
|
+
fromnode.findLinksOutOf().each(function (link) {
|
1814
|
+
const targetNode = link.toNode;
|
1815
|
+
if (targetNode) {
|
1816
|
+
locYAlreadyExist.push(targetNode.data?.loc?.split(' ')?.[1] - locYFromnode);
|
1817
|
+
}
|
1818
|
+
});
|
1819
|
+
let i = 0;
|
1820
|
+
while (this.isEmptyYLoc(locYAlreadyExist, i) === null && i < 100) {
|
1821
|
+
i++;
|
1822
|
+
}
|
1823
|
+
return this.isEmptyYLoc(locYAlreadyExist, i);
|
1824
|
+
}
|
1825
|
+
isEmptyYLoc(locYAlreadyExist, i) {
|
1826
|
+
if (!_.some(locYAlreadyExist, (x) => x <
|
1827
|
+
i * AtoDefaultGojsEditor.DISTANCE_2_OUTPUT +
|
1828
|
+
AtoDefaultGojsEditor.DISTANCE_2_OUTPUT / 2 &&
|
1829
|
+
x >
|
1830
|
+
i * AtoDefaultGojsEditor.DISTANCE_2_OUTPUT -
|
1831
|
+
AtoDefaultGojsEditor.DISTANCE_2_OUTPUT / 2)) {
|
1832
|
+
return i;
|
1833
|
+
}
|
1834
|
+
if (!_.some(locYAlreadyExist, (x) => x <
|
1835
|
+
-i * AtoDefaultGojsEditor.DISTANCE_2_OUTPUT +
|
1836
|
+
AtoDefaultGojsEditor.DISTANCE_2_OUTPUT / 2 &&
|
1837
|
+
x >
|
1838
|
+
-i * AtoDefaultGojsEditor.DISTANCE_2_OUTPUT -
|
1839
|
+
AtoDefaultGojsEditor.DISTANCE_2_OUTPUT / 2)) {
|
1840
|
+
return -i;
|
1841
|
+
}
|
1842
|
+
return null;
|
1843
|
+
}
|
1844
|
+
createNewNode(newnode) {
|
1845
|
+
this.addTemplate(newnode);
|
1846
|
+
this.myDiagram.startTransaction('add group node');
|
1847
|
+
this.myDiagram.model.addNodeData(newnode);
|
1848
|
+
this.myDiagram.commitTransaction('add group node');
|
1849
|
+
}
|
1850
|
+
deleteNode(e) {
|
1851
|
+
e.diagram.startTransaction('Delete group node');
|
1852
|
+
e.diagram.removeParts(e.diagram.selection);
|
1853
|
+
e.diagram.commitTransaction('Delete group node');
|
1854
|
+
}
|
1855
|
+
deleteNodeOnDiagram(e) {
|
1856
|
+
e.startTransaction('Delete group node');
|
1857
|
+
e.removeParts(e.selection);
|
1858
|
+
e.commitTransaction('Delete group node');
|
1859
|
+
}
|
1860
|
+
insightNode(e) { }
|
1861
|
+
drawLink(e, button) {
|
1862
|
+
const node = button.part.adornedPart;
|
1863
|
+
const tool = e.diagram.toolManager.linkingTool;
|
1864
|
+
tool.startObject = node.port;
|
1865
|
+
e.diagram.currentTool = tool;
|
1866
|
+
tool.doActivate();
|
1867
|
+
}
|
1868
|
+
makePortGroup(name, align, spot, output, input) {
|
1869
|
+
const horizontal = align.equals(go.Spot.Top) || align.equals(go.Spot.Bottom);
|
1870
|
+
return this.$(go.Panel, 'Table', {
|
1871
|
+
background: '#919CA5',
|
1872
|
+
width: 40,
|
1873
|
+
height: 40,
|
1874
|
+
alignment: align,
|
1875
|
+
stretch: horizontal
|
1876
|
+
? go.GraphObject.Horizontal
|
1877
|
+
: go.GraphObject.Vertical,
|
1878
|
+
portId: name,
|
1879
|
+
fromSpot: spot,
|
1880
|
+
fromLinkable: output,
|
1881
|
+
toSpot: spot,
|
1882
|
+
toLinkable: input,
|
1883
|
+
cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
|
1884
|
+
alignmentFocus: go.Spot.Center, // tập trung vào trung tâm của Panel
|
1885
|
+
// mouseEnter: this._initialOptions.isReadOnly
|
1886
|
+
// ? null
|
1887
|
+
// : (e, panel) => {
|
1888
|
+
// const textBlock = (panel as any)?.findObject('textBlock') as go.TextBlock | null;
|
1889
|
+
// if (textBlock) {
|
1890
|
+
// // && output
|
1891
|
+
// textBlock.visible = true;
|
1892
|
+
// switch (name) {
|
1893
|
+
// case 'B':
|
1894
|
+
// case 'R': {
|
1895
|
+
// panel.background = 'rgb(243 144 171)';
|
1896
|
+
// break;
|
1897
|
+
// }
|
1898
|
+
// case 'T':
|
1899
|
+
// case 'L': {
|
1900
|
+
// panel.background = 'rgb(103,151,207)';
|
1901
|
+
// break;
|
1902
|
+
// }
|
1903
|
+
// default: {
|
1904
|
+
// panel.background = 'rgb(243 144 171)';
|
1905
|
+
// }
|
1906
|
+
// }
|
1907
|
+
// }
|
1908
|
+
// },
|
1909
|
+
// mouseLeave: this._initialOptions.isReadOnly
|
1910
|
+
// ? null
|
1911
|
+
// : (e, panel) => {
|
1912
|
+
// const textBlock = (panel as any).findObject('textBlock') as go.TextBlock | null;
|
1913
|
+
// if (textBlock) {
|
1914
|
+
// textBlock.visible = false; // Ẩn TextBlock khi rời khỏi Panel
|
1915
|
+
// }
|
1916
|
+
// panel.background = 'transparent';
|
1917
|
+
// },
|
1918
|
+
}, this.$(go.Shape, 'Ellipse', {
|
1919
|
+
fill: 'white',
|
1920
|
+
strokeWidth: 2,
|
1921
|
+
stroke: '#919CA5',
|
1922
|
+
width: 40,
|
1923
|
+
height: 40, // Match the panel's height
|
1924
|
+
})
|
1925
|
+
// this.$(
|
1926
|
+
// go.TextBlock,
|
1927
|
+
// {
|
1928
|
+
// name: 'textBlock',
|
1929
|
+
// margin: 4,
|
1930
|
+
// text: '\uf0da', // Mã Unicode tương ứng với fa-caret-left
|
1931
|
+
// font: '900 12px "Font Awesome 6 Pro"',
|
1932
|
+
// stroke: 'white', // Đặt màu chữ thành màu trắng
|
1933
|
+
// cursor: 'pointer',
|
1934
|
+
// visible: false,
|
1935
|
+
// },
|
1936
|
+
// new go.Binding('text', 'name', (_) => {
|
1937
|
+
// switch (name) {
|
1938
|
+
// case 'T':
|
1939
|
+
// case 'B': {
|
1940
|
+
// return '\uf0d7';
|
1941
|
+
// }
|
1942
|
+
// case 'L':
|
1943
|
+
// case 'R': {
|
1944
|
+
// return '\uf0da';
|
1945
|
+
// }
|
1946
|
+
// default: {
|
1947
|
+
// return '\uf0d7';
|
1948
|
+
// }
|
1949
|
+
// }
|
1950
|
+
// }),
|
1951
|
+
// ),
|
1952
|
+
);
|
1953
|
+
}
|
1954
|
+
makePort(name, align, spot, output, input) {
|
1955
|
+
// if (this._initialOptions.isReadOnly) {
|
1956
|
+
// return {};
|
1957
|
+
// }
|
1958
|
+
const horizontal = align.equals(go.Spot.Top) || align.equals(go.Spot.Bottom);
|
1959
|
+
// const vertical = align.equals(go.Spot.Left) || align.equals(go.Spot.Right);
|
1960
|
+
// the port is basically just a transparent rectangle that stretches along the side of the node,
|
1961
|
+
// and becomes colored when the mouse passes over it
|
1962
|
+
return this.$(go.Panel, 'Table', {
|
1963
|
+
background: 'transparent',
|
1964
|
+
width: horizontal ? NaN : 8,
|
1965
|
+
height: !horizontal ? NaN : 8,
|
1966
|
+
alignment: align,
|
1967
|
+
stretch: horizontal
|
1968
|
+
? go.GraphObject.Horizontal
|
1969
|
+
: go.GraphObject.Vertical,
|
1970
|
+
portId: name,
|
1971
|
+
fromSpot: spot,
|
1972
|
+
fromLinkable: output,
|
1973
|
+
toSpot: spot,
|
1974
|
+
toLinkable: input,
|
1975
|
+
cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
|
1976
|
+
alignmentFocus: go.Spot.Center,
|
1977
|
+
mouseEnter: this._initialOptions.isReadOnly
|
1978
|
+
? null
|
1979
|
+
: (e, panel) => {
|
1980
|
+
const textBlock = panel?.findObject('textBlock');
|
1981
|
+
if (textBlock) {
|
1982
|
+
// && output
|
1983
|
+
textBlock.visible = true;
|
1984
|
+
switch (name) {
|
1985
|
+
case 'B':
|
1986
|
+
case 'R': {
|
1987
|
+
panel.background = 'rgb(243 144 171)';
|
1988
|
+
break;
|
1989
|
+
}
|
1990
|
+
case 'T':
|
1991
|
+
case 'L': {
|
1992
|
+
panel.background = 'rgb(103,151,207)';
|
1993
|
+
break;
|
1994
|
+
}
|
1995
|
+
default: {
|
1996
|
+
panel.background = 'rgb(243 144 171)';
|
1997
|
+
}
|
1998
|
+
}
|
1999
|
+
}
|
2000
|
+
},
|
2001
|
+
mouseLeave: this._initialOptions.isReadOnly
|
2002
|
+
? null
|
2003
|
+
: (e, panel) => {
|
2004
|
+
const textBlock = panel.findObject('textBlock');
|
2005
|
+
if (textBlock) {
|
2006
|
+
textBlock.visible = false; // Ẩn TextBlock khi rời khỏi Panel
|
2007
|
+
}
|
2008
|
+
panel.background = 'transparent';
|
2009
|
+
},
|
2010
|
+
}, new go.Binding('visible', '', function (data) {
|
2011
|
+
if (data?.isNotAllowConnect) {
|
2012
|
+
return false;
|
2013
|
+
}
|
2014
|
+
if (data?.selectable === false && !data?.isAllowConnect) {
|
2015
|
+
return false;
|
2016
|
+
}
|
2017
|
+
if (data?.flowOfPlantCell) {
|
2018
|
+
if (data?.flowOfPlantCell === ATO_ENUM_FLOW_DIRECTION.INFLOW &&
|
2019
|
+
name === 'L') {
|
2020
|
+
return true;
|
2021
|
+
}
|
2022
|
+
if (data?.flowOfPlantCell === ATO_ENUM_FLOW_DIRECTION.OUTFLOW &&
|
2023
|
+
name === 'R') {
|
2024
|
+
return true;
|
2025
|
+
}
|
2026
|
+
return false;
|
2027
|
+
}
|
2028
|
+
switch (name) {
|
2029
|
+
case 'B':
|
2030
|
+
case 'R': {
|
2031
|
+
return !data?.isNotSelectOutput;
|
2032
|
+
}
|
2033
|
+
case 'T':
|
2034
|
+
case 'L': {
|
2035
|
+
return !data?.isNotSelectInput;
|
2036
|
+
}
|
2037
|
+
default: {
|
2038
|
+
return true;
|
2039
|
+
}
|
2040
|
+
}
|
2041
|
+
}), this.$(go.TextBlock, {
|
2042
|
+
name: 'textBlock',
|
2043
|
+
margin: 4,
|
2044
|
+
text: '\uf0da',
|
2045
|
+
font: '900 12px "Font Awesome 6 Pro"',
|
2046
|
+
stroke: 'white',
|
2047
|
+
cursor: 'pointer',
|
2048
|
+
visible: false,
|
2049
|
+
}, new go.Binding('text', 'name', (_) => {
|
2050
|
+
switch (name) {
|
2051
|
+
case 'T':
|
2052
|
+
case 'B': {
|
2053
|
+
return '\uf0d7';
|
2054
|
+
}
|
2055
|
+
case 'L':
|
2056
|
+
case 'R': {
|
2057
|
+
return '\uf0da';
|
2058
|
+
}
|
2059
|
+
default: {
|
2060
|
+
return '\uf0d7';
|
2061
|
+
}
|
2062
|
+
}
|
2063
|
+
})));
|
2064
|
+
// return this.$(go.Shape, {
|
2065
|
+
// fill: 'transparent', // changed to a color in the mouseEnter event handler
|
2066
|
+
// strokeWidth: 0, // no stroke
|
2067
|
+
// width: horizontal ? NaN : 8, // if not stretching horizontally, just 8 wide
|
2068
|
+
// height: !horizontal ? NaN : 8, // if not stretching vertically, just 8 tall
|
2069
|
+
// alignment: align, // align the port on the main Shape
|
2070
|
+
// stretch: horizontal ? go.GraphObject.Horizontal : go.GraphObject.Vertical,
|
2071
|
+
// portId: name, // declare this object to be a "port"
|
2072
|
+
// fromSpot: spot, // declare where links may connect at this port
|
2073
|
+
// fromLinkable: output, // declare whether the user may draw links from here
|
2074
|
+
// toSpot: spot, // declare where links may connect at this port
|
2075
|
+
// toLinkable: input, // declare whether the user may draw links to here
|
2076
|
+
// cursor: 'pointer', // show a different cursor to indicate potential link point
|
2077
|
+
// mouseEnter: (e, port) => {
|
2078
|
+
// // the PORT argument will be this Shape
|
2079
|
+
// if (!e.diagram.isReadOnly && output) {
|
2080
|
+
// port.fill = 'rgba(255,0,255,0.5)'
|
2081
|
+
// };
|
2082
|
+
// },
|
2083
|
+
// mouseLeave: (e, port) => {
|
2084
|
+
// return (port.fill = 'transparent');
|
2085
|
+
// },
|
2086
|
+
// });
|
2087
|
+
}
|
2088
|
+
makeGroupBasicComponent(icon, title, size = { w: 80, h: 80 }) {
|
2089
|
+
let node = this.$(go.Group, 'Spot', {
|
2090
|
+
// layout: this.$(go.LayeredDigraphLayout, { direction: 0 }),
|
2091
|
+
alignment: go.Spot.Center,
|
2092
|
+
layout: this.$(go.Layout),
|
2093
|
+
movable: false,
|
2094
|
+
selectable: false,
|
2095
|
+
// movable: true,
|
2096
|
+
// selectable: true,
|
2097
|
+
dragComputation: (node, pt, gridpt) => {
|
2098
|
+
pt.x =
|
2099
|
+
Math.round(pt.x / AtoGojsEditorModel.BASIC_GRID_SIZE_WIDTH) *
|
2100
|
+
AtoGojsEditorModel.BASIC_GRID_SIZE_WIDTH;
|
2101
|
+
pt.y =
|
2102
|
+
Math.round(pt.y / AtoGojsEditorModel.BASIC_GRID_SIZE_HEIGHT) *
|
2103
|
+
AtoGojsEditorModel.BASIC_GRID_SIZE_HEIGHT;
|
2104
|
+
return pt;
|
2105
|
+
},
|
2106
|
+
}, {
|
2107
|
+
// minSize: new go.Size(AtoGojsEditorModel.BASIC_GRID_SIZE_WIDTH, AtoGojsEditorModel.BASIC_GRID_SIZE_HEIGHT),
|
2108
|
+
minSize: new go.Size(1, 1),
|
2109
|
+
maxSize: new go.Size(1, 1),
|
2110
|
+
// minSize: new go.Size(100, 100),
|
2111
|
+
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', this.$(go.Shape, 'RoundedRectangle', {
|
2112
|
+
fill: 'transparent',
|
2113
|
+
stroke: 'transparent',
|
2114
|
+
// stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
2115
|
+
strokeWidth: 2,
|
2116
|
+
// strokeDashArray: [5, 5],
|
2117
|
+
})
|
2118
|
+
// this.$(go.Placeholder),
|
2119
|
+
// this.$(go.Placeholder, { padding: new go.Margin(0, 0, 0, 0) }),
|
2120
|
+
)
|
2121
|
+
// this.$(go.TextBlock, title, {
|
2122
|
+
// row: 0,
|
2123
|
+
// margin: new go.Margin(0, 0, 0, 0),
|
2124
|
+
// stroke: '#444444',
|
2125
|
+
// font: 'normal 10pt Arial',
|
2126
|
+
// textAlign: 'center',
|
2127
|
+
// alignment: go.Spot.Left,
|
2128
|
+
// },
|
2129
|
+
// new go.Binding('text', 'key').makeTwoWay(),),
|
2130
|
+
// this.$(
|
2131
|
+
// go.Panel,
|
2132
|
+
// 'Table',
|
2133
|
+
// {
|
2134
|
+
// alignment: go.Spot.TopLeft,
|
2135
|
+
// alignmentFocus: new go.Spot(0, 0, -10, -10),
|
2136
|
+
// // padding: new go.Margin(0, 0, 50, 0),
|
2137
|
+
// },
|
2138
|
+
// this.$(
|
2139
|
+
// go.Panel,
|
2140
|
+
// 'Horizontal',
|
2141
|
+
// {
|
2142
|
+
// row: 0,
|
2143
|
+
// alignment: go.Spot.Left,
|
2144
|
+
// },
|
2145
|
+
// this.$(go.Picture, icon, {
|
2146
|
+
// row: 0,
|
2147
|
+
// // alignment: go.Spot.Center,
|
2148
|
+
// alignment: go.Spot.Left,
|
2149
|
+
// maxSize: new go.Size(40, 40),
|
2150
|
+
// imageStretch: go.GraphObject.Uniform,
|
2151
|
+
// }),
|
2152
|
+
// this.$(
|
2153
|
+
// go.Panel,
|
2154
|
+
// 'Table',
|
2155
|
+
// {
|
2156
|
+
// column: 1,
|
2157
|
+
// defaultAlignment: go.Spot.Left,
|
2158
|
+
// alignmentFocus: new go.Spot(0, 0, 0, 20),
|
2159
|
+
// },
|
2160
|
+
// this.$(go.TextBlock, title, {
|
2161
|
+
// row: 0,
|
2162
|
+
// margin: new go.Margin(3, 3, 5, 10),
|
2163
|
+
// // maxSize: new go.Size(size.w - 20, NaN),
|
2164
|
+
// stroke: '#444444',
|
2165
|
+
// font: 'normal 10pt Arial',
|
2166
|
+
// textAlign: 'center',
|
2167
|
+
// alignment: go.Spot.Left,
|
2168
|
+
// }),
|
2169
|
+
// this.$(
|
2170
|
+
// go.TextBlock,
|
2171
|
+
// {
|
2172
|
+
// row: 1,
|
2173
|
+
// margin: new go.Margin(0, 3, 3, 10),
|
2174
|
+
// editable: true,
|
2175
|
+
// // maxSize: new go.Size(size.w - 20, 40),
|
2176
|
+
// stroke: '#000D42',
|
2177
|
+
// font: 'bold 10pt Arial',
|
2178
|
+
// textAlign: 'center',
|
2179
|
+
// wrap: go.TextBlock.None,
|
2180
|
+
// overflow: go.TextBlock.OverflowEllipsis,
|
2181
|
+
// },
|
2182
|
+
// new go.Binding('text', 'name').makeTwoWay(),
|
2183
|
+
// {
|
2184
|
+
// // define a tooltip for each node that displays the color as text
|
2185
|
+
// toolTip: this.$(
|
2186
|
+
// 'ToolTip',
|
2187
|
+
// this.$(go.TextBlock, { margin: 4 }, new go.Binding('text', 'name')),
|
2188
|
+
// ), // end of Adornment
|
2189
|
+
// },
|
2190
|
+
// ),
|
2191
|
+
// ),
|
2192
|
+
// ),
|
2193
|
+
// ),
|
2194
|
+
);
|
2195
|
+
this.myDiagram.groupTemplateMap.set(title, node);
|
2196
|
+
}
|
2197
|
+
makeGroupTemplate(icon, title, size = { w: 80, h: 80 }) {
|
2198
|
+
let node = this.$(go.Group, 'Spot', {
|
2199
|
+
// // layout: this.$(go.ForceDirectedLayout , {
|
2200
|
+
// // direction: 0,
|
2201
|
+
// // setsPortSpots: false,
|
2202
|
+
// // }),
|
2203
|
+
// layout: this.$(go.LayeredDigraphLayout, {
|
2204
|
+
// direction: 0,
|
2205
|
+
// setsPortSpots: false,
|
2206
|
+
// }),
|
2207
|
+
layout: this.$(go.Layout),
|
2208
|
+
// // // adornment when a group is selected
|
2209
|
+
// // // selectionAdornmentTemplate: this.$(
|
2210
|
+
// // // go.Adornment,
|
2211
|
+
// // // 'Auto',
|
2212
|
+
// // // this.$(go.Shape, 'Rectangle', { fill: null, stroke: 'dodgerblue', strokeWidth: 8 }),
|
2213
|
+
// // // this.$(go.Placeholder),
|
2214
|
+
// // // ),
|
2215
|
+
},
|
2216
|
+
// new go.Binding('layout', 'layout', (x) =>
|
2217
|
+
// {
|
2218
|
+
// return this.$(go.ForceDirectedLayout , {
|
2219
|
+
// direction: 0,
|
2220
|
+
// setsPortSpots: false,
|
2221
|
+
// });
|
2222
|
+
// }
|
2223
|
+
// ),
|
2224
|
+
{
|
2225
|
+
minSize: new go.Size(400, 400),
|
2226
|
+
},
|
2227
|
+
// new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
|
2228
|
+
this.$(go.Panel, 'Auto', this.$(go.Shape, 'RoundedRectangle', {
|
2229
|
+
fill: 'transparent',
|
2230
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
2231
|
+
strokeWidth: 2,
|
2232
|
+
// strokeDashArray: [5, 5],
|
2233
|
+
}), this.$(go.Placeholder, { padding: new go.Margin(60, 20, 20, 20) })),
|
2234
|
+
// this.$(
|
2235
|
+
// go.Panel,
|
2236
|
+
// 'Table',
|
2237
|
+
// {
|
2238
|
+
// alignment: go.Spot.TopLeft,
|
2239
|
+
// alignmentFocus: new go.Spot(0, 0, -10, -10),
|
2240
|
+
// },
|
2241
|
+
// this.$(go.TextBlock, title, {
|
2242
|
+
// row: 0,
|
2243
|
+
// margin: new go.Margin(3, 3, 5, 3),
|
2244
|
+
// maxSize: new go.Size(size.w - 20, NaN),
|
2245
|
+
// stroke: '#444444',
|
2246
|
+
// font: 'normal 8pt Arial',
|
2247
|
+
// textAlign: 'center',
|
2248
|
+
// }),
|
2249
|
+
// this.$(go.Picture, icon, {
|
2250
|
+
// row: 1,
|
2251
|
+
// alignment: go.Spot.Center,
|
2252
|
+
// maxSize: new go.Size(40, 40),
|
2253
|
+
// imageStretch: go.GraphObject.Uniform,
|
2254
|
+
// }),
|
2255
|
+
// this.$(
|
2256
|
+
// go.TextBlock,
|
2257
|
+
// {
|
2258
|
+
// row: 2,
|
2259
|
+
// margin: new go.Margin(10, 3, 3, 3),
|
2260
|
+
// editable: true,
|
2261
|
+
// maxSize: new go.Size(size.w - 20, 40),
|
2262
|
+
// stroke: '#000D42',
|
2263
|
+
// font: 'bold 8pt Arial',
|
2264
|
+
// textAlign: 'center',
|
2265
|
+
// wrap: go.TextBlock.None,
|
2266
|
+
// overflow: go.TextBlock.OverflowEllipsis,
|
2267
|
+
// },
|
2268
|
+
// new go.Binding('text', 'name').makeTwoWay(),
|
2269
|
+
// {
|
2270
|
+
// // define a tooltip for each node that displays the color as text
|
2271
|
+
// toolTip: this.$('ToolTip', this.$(go.TextBlock, { margin: 4 }, new go.Binding('text', 'name'))), // end of Adornment
|
2272
|
+
// },
|
2273
|
+
// ),
|
2274
|
+
// // new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
|
2275
|
+
// ),
|
2276
|
+
this.$(go.Panel, 'Table', {
|
2277
|
+
alignment: go.Spot.TopLeft,
|
2278
|
+
alignmentFocus: new go.Spot(0, 0, -10, -10),
|
2279
|
+
// padding: new go.Margin(0, 0, 50, 0),
|
2280
|
+
}, this.$(go.Panel, 'Horizontal', {
|
2281
|
+
row: 0,
|
2282
|
+
alignment: go.Spot.Left,
|
2283
|
+
}, this.$(go.Picture, icon, {
|
2284
|
+
row: 0,
|
2285
|
+
// alignment: go.Spot.Center,
|
2286
|
+
alignment: go.Spot.Left,
|
2287
|
+
maxSize: new go.Size(40, 40),
|
2288
|
+
imageStretch: go.GraphObject.Uniform,
|
2289
|
+
}), this.$(go.Panel, 'Table', {
|
2290
|
+
column: 1,
|
2291
|
+
defaultAlignment: go.Spot.Left,
|
2292
|
+
alignmentFocus: new go.Spot(0, 0, 0, 20),
|
2293
|
+
}, this.$(go.TextBlock, AtoGojsEditorModel.TEMPLATE_DUPLICATE[title] ?? title, {
|
2294
|
+
row: 0,
|
2295
|
+
margin: new go.Margin(3, 3, 5, 10),
|
2296
|
+
// maxSize: new go.Size(size.w - 20, NaN),
|
2297
|
+
stroke: '#444444',
|
2298
|
+
font: 'normal 10pt Arial',
|
2299
|
+
textAlign: 'center',
|
2300
|
+
alignment: go.Spot.Left,
|
2301
|
+
}), this.$(go.TextBlock, {
|
2302
|
+
row: 1,
|
2303
|
+
margin: new go.Margin(0, 3, 3, 10),
|
2304
|
+
editable: true,
|
2305
|
+
// maxSize: new go.Size(size.w - 20, 40),
|
2306
|
+
stroke: '#000D42',
|
2307
|
+
font: 'bold 10pt Arial',
|
2308
|
+
textAlign: 'center',
|
2309
|
+
wrap: go.TextBlock.None,
|
2310
|
+
overflow: go.TextBlock.OverflowEllipsis,
|
2311
|
+
}, new go.Binding('text', 'name').makeTwoWay(), {
|
2312
|
+
// define a tooltip for each node that displays the color as text
|
2313
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, { margin: 4 }, new go.Binding('text', 'name'))), // end of Adornment
|
2314
|
+
})))));
|
2315
|
+
this.myDiagram.groupTemplateMap.set(title, node);
|
2316
|
+
}
|
2317
|
+
makeImageTemplate() {
|
2318
|
+
const node = this.$(go.Node, 'Spot', {
|
2319
|
+
zOrder: 1,
|
2320
|
+
}, new go.Binding('selectable', 'selectable'), this.$(go.Panel, 'Horizontal', {
|
2321
|
+
row: 0,
|
2322
|
+
alignment: go.Spot.Left,
|
2323
|
+
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Picture, AtoGojsEditorModel.IMAGE_RO_WATER_TREATMENT_PATH, {
|
2324
|
+
alignment: go.Spot.Center,
|
2325
|
+
// maxSize: new go.Size(500, 500),
|
2326
|
+
// imageStretch: go.GraphObject.Uniform,
|
2327
|
+
// margin: new go.Margin(130, 0, 0, 0),
|
2328
|
+
}, new go.Binding('margin', 'margin'), new go.Binding('width', 'width'), new go.Binding('height', 'height'), new go.Binding('source', '', (data) => {
|
2329
|
+
return data?.source
|
2330
|
+
? data?.source
|
2331
|
+
: AtoGojsEditorModel.IMAGE_RO_WATER_TREATMENT_PATH;
|
2332
|
+
}))));
|
2333
|
+
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.IMAGE_TEMPLATE, node);
|
2334
|
+
}
|
2335
|
+
makeParamTable() {
|
2336
|
+
const self = this;
|
2337
|
+
const node = this.$(go.Part, 'Vertical',
|
2338
|
+
// this.$(go.Shape, { fill: '#E6F0F7', stroke: '#0063A9', strokeWidth: 3, geometryString: 'M 5 0 L 95 0 Q 100 0 100 5 L 100 95 Q 100 100 95 100 L 5 100 Q 0 100 0 95 L 0 5 Q 0 0 5 0' }),
|
2339
|
+
{
|
2340
|
+
zOrder: 2,
|
2341
|
+
// padding: new go.Margin(0, 0, 0, 200),
|
2342
|
+
}, new go.Binding('padding', 'padding'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), new go.Binding('visible', '', (data) => {
|
2343
|
+
return typeof data?.visible === 'boolean' ? data?.visible : true;
|
2344
|
+
}),
|
2345
|
+
// Header
|
2346
|
+
this.$(go.Panel, 'Auto', {
|
2347
|
+
stretch: go.GraphObject.Fill,
|
2348
|
+
minSize: new go.Size(150, 27),
|
2349
|
+
margin: new go.Margin(0, 0, -6, 0),
|
2350
|
+
}, new go.Binding('visible', '', (data) => !!data?.title), this.$(go.Shape, 'RoundedRectangle', {
|
2351
|
+
parameter1: 5,
|
2352
|
+
}, new go.Binding('fill', '', (data) => {
|
2353
|
+
return data?.color;
|
2354
|
+
}), new go.Binding('stroke', '', (data) => {
|
2355
|
+
return data?.color;
|
2356
|
+
})), this.$(go.TextBlock, {
|
2357
|
+
stroke: 'white',
|
2358
|
+
margin: new go.Margin(0, 0, 0, 5),
|
2359
|
+
stretch: go.GraphObject.Fill,
|
2360
|
+
alignment: go.Spot.Left,
|
2361
|
+
verticalAlignment: go.Spot.Center,
|
2362
|
+
font: '14px sans-serif',
|
2363
|
+
}, new go.Binding('text', 'title'))), this.$(go.Shape, 'Rectangle', {
|
2364
|
+
height: 6,
|
2365
|
+
margin: new go.Margin(0, 0, -6, 0),
|
2366
|
+
stretch: go.GraphObject.Fill,
|
2367
|
+
}, new go.Binding('fill', '', (data) => {
|
2368
|
+
return data?.color;
|
2369
|
+
}), new go.Binding('stroke', '', (data) => {
|
2370
|
+
return data?.color;
|
2371
|
+
}), new go.Binding('visible', '', (data) => !!data?.title)), this.$(go.Panel, 'Auto', this.$(go.Shape, 'RoundedRectangle', { fill: '#E6F0F7', stroke: '#0063A9', strokeWidth: 4, parameter1: 5 }, new go.Binding('fill', 'bgColor'), new go.Binding('stroke', 'borderTable')), this.$(go.Panel, 'Table',
|
2372
|
+
// Set defaults for all rows and columns:
|
2373
|
+
{
|
2374
|
+
padding: 1.5,
|
2375
|
+
defaultRowSeparatorStroke: '#0062A9',
|
2376
|
+
defaultColumnSeparatorStroke: '#0062A9',
|
2377
|
+
defaultSeparatorPadding: new go.Margin(5, 2, 5, 2),
|
2378
|
+
}, new go.Binding('defaultRowSeparatorStroke', 'borderTable'), new go.Binding('defaultColumnSeparatorStroke', 'borderTable'),
|
2379
|
+
// this.$(
|
2380
|
+
// go.Panel,
|
2381
|
+
// 'TableRow',
|
2382
|
+
// { row: 0 },
|
2383
|
+
// this.$(go.TextBlock, 'row 1 col 1', { column: 0, margin: 2 }),
|
2384
|
+
// this.$(go.TextBlock, 'row 1 col 2', { column: 1, margin: 2 }),
|
2385
|
+
// ),
|
2386
|
+
// this.$(
|
2387
|
+
// go.Panel,
|
2388
|
+
// 'TableRow',
|
2389
|
+
// { row: 1 },
|
2390
|
+
// this.$(go.TextBlock, 'row 2 col 1', { column: 0, margin: 2 }),
|
2391
|
+
// this.$(go.TextBlock, 'row 2 col 2', { column: 1, margin: 2 }),
|
2392
|
+
// ),
|
2393
|
+
// new go.Binding('itemArray', 'dataTable'),
|
2394
|
+
new go.Binding('itemArray', '', function (data) {
|
2395
|
+
return data.dataTable.filter((x) => x?.visible !== false);
|
2396
|
+
}), {
|
2397
|
+
// itemTemplate: this.$(
|
2398
|
+
// go.Panel,
|
2399
|
+
// new go.Binding('row', 'indexRow'),
|
2400
|
+
// // new go.Binding('height', 'height'),
|
2401
|
+
// this.$(
|
2402
|
+
// go.Picture,
|
2403
|
+
// ARROW,
|
2404
|
+
// {
|
2405
|
+
// alignment: go.Spot.Center,
|
2406
|
+
// maxSize: new go.Size(20, 40),
|
2407
|
+
// // imageStretch: go.GraphObject.Uniform,
|
2408
|
+
// },
|
2409
|
+
// new go.Binding('source', '', (data, panel) => {
|
2410
|
+
// // panel.part?.data?.id
|
2411
|
+
// return data?.isCreated ? panel?.$p : ARROW_GRAY;
|
2412
|
+
// }),
|
2413
|
+
// ),
|
2414
|
+
// ),
|
2415
|
+
itemTemplate: this.$(go.Panel, 'TableRow', {
|
2416
|
+
cursor: 'pointer',
|
2417
|
+
click: (e, obj) => {
|
2418
|
+
if (obj.panel.part.data?.dataTable[obj.row]?.isEditable ===
|
2419
|
+
false) {
|
2420
|
+
return;
|
2421
|
+
}
|
2422
|
+
self.onClikParamOfTable.emit({
|
2423
|
+
...obj.panel.part.data?.dataTable[obj.row],
|
2424
|
+
});
|
2425
|
+
},
|
2426
|
+
background: 'transparent',
|
2427
|
+
}, this.$(go.TextBlock, '', {
|
2428
|
+
column: 0,
|
2429
|
+
margin: 2,
|
2430
|
+
textAlign: 'left',
|
2431
|
+
alignment: go.Spot.Left,
|
2432
|
+
overflow: go.TextBlock.OverflowEllipsis,
|
2433
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
2434
|
+
margin: 4,
|
2435
|
+
}, new go.Binding('text', '', (data, panel) => {
|
2436
|
+
return data?.name;
|
2437
|
+
}))),
|
2438
|
+
}, new go.Binding('text', '', (data, panel) => {
|
2439
|
+
return data?.name;
|
2440
|
+
}), new go.Binding('maxSize', '', (data, panel) => {
|
2441
|
+
return data?.maxSizeNameParam;
|
2442
|
+
})), this.$(go.Panel, 'Table', {
|
2443
|
+
column: 1,
|
2444
|
+
margin: 2,
|
2445
|
+
padding: 0,
|
2446
|
+
defaultSeparatorPadding: new go.Margin(0, 0, 0, 0),
|
2447
|
+
stretch: go.GraphObject.Fill,
|
2448
|
+
}, new go.Binding('minSize', '', (data, panel) => {
|
2449
|
+
// return panel.part?.data?.minSizeValue;
|
2450
|
+
return new go.Size(panel.part?.data?.minSizeValue?.width, NaN);
|
2451
|
+
}), this.$(go.TextBlock, '', {
|
2452
|
+
column: 0,
|
2453
|
+
margin: 0,
|
2454
|
+
alignment: go.Spot.Left,
|
2455
|
+
overflow: go.TextBlock.OverflowEllipsis,
|
2456
|
+
cursor: 'pointer',
|
2457
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
2458
|
+
margin: 4,
|
2459
|
+
}, new go.Binding('text', '', (data, panel) => {
|
2460
|
+
return `${!!this._initialOptions.isReadOnly
|
2461
|
+
? `${data?.tagName || ''} `
|
2462
|
+
: ''}${data?.value}`;
|
2463
|
+
}), new go.Binding('visible', '', (data) => {
|
2464
|
+
if (!!this._initialOptions.isReadOnly &&
|
2465
|
+
data?.tagName) {
|
2466
|
+
return true;
|
2467
|
+
}
|
2468
|
+
return !!data?.value;
|
2469
|
+
}))),
|
2470
|
+
}, new go.Binding('text', '', (data, panel) => {
|
2471
|
+
return data?.value;
|
2472
|
+
}), new go.Binding('stroke', '', (data) => {
|
2473
|
+
if (!this._initialOptions.isReadOnly) {
|
2474
|
+
return;
|
2475
|
+
}
|
2476
|
+
return data.color;
|
2477
|
+
}), new go.Binding('maxSize', '', (data) => {
|
2478
|
+
return new go.Size(data?.maxSizeValue || 190, 14);
|
2479
|
+
}), new go.Binding('font', '', (data) => {
|
2480
|
+
return data?.font;
|
2481
|
+
})), this.$(go.Picture, {
|
2482
|
+
alignment: go.Spot.Right,
|
2483
|
+
column: 1,
|
2484
|
+
margin: new go.Margin(0, 0, 0, 5),
|
2485
|
+
source: ICONS_BASE64['uf044'],
|
2486
|
+
cursor: 'pointer',
|
2487
|
+
visible: false,
|
2488
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
2489
|
+
margin: 4,
|
2490
|
+
}, new go.Binding('text', '', (data, panel) => {
|
2491
|
+
return data?.toolTipAction;
|
2492
|
+
})), new go.Binding('visible', '', (data) => !!data?.toolTipAction)),
|
2493
|
+
height: 14,
|
2494
|
+
width: 14,
|
2495
|
+
}, new go.Binding('visible', '', (data, panel) => {
|
2496
|
+
return (!data?.isReadOnly && !this._initialOptions.isReadOnly);
|
2497
|
+
}), new go.Binding('opacity', '', (data, panel) => {
|
2498
|
+
return data?.isEditable === false ? 0.6 : 1;
|
2499
|
+
})))),
|
2500
|
+
}
|
2501
|
+
// new go.Binding('text', 'name')
|
2502
|
+
)));
|
2503
|
+
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, node);
|
2504
|
+
}
|
2505
|
+
makeMassBalance() {
|
2506
|
+
const self = this;
|
2507
|
+
const node = this.$(go.Part, 'Auto', {}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), new go.Binding('selectable', 'selectable'), this.$(go.Panel, 'Horizontal',
|
2508
|
+
// Set defaults for all rows and columns:
|
2509
|
+
{
|
2510
|
+
padding: 4,
|
2511
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
2512
|
+
margin: 4,
|
2513
|
+
maxSize: new go.Size(450, 30),
|
2514
|
+
}, new go.Binding('text', 'tooltip'))),
|
2515
|
+
visible: this._initialOptions.isReadOnly,
|
2516
|
+
}, this.$(go.TextBlock, '', {
|
2517
|
+
margin: new go.Margin(0, 5, 0, 0),
|
2518
|
+
text: 'Mass Balance:',
|
2519
|
+
}, new go.Binding('font', 'font')), this.$(go.TextBlock, '', {
|
2520
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.ALIZARIN,
|
2521
|
+
}, new go.Binding('font', 'font'), new go.Binding('stroke', 'colorValue'), new go.Binding('text', '', (data, panel) => {
|
2522
|
+
return data?.value;
|
2523
|
+
}))));
|
2524
|
+
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.MASS_BALANCE, node);
|
2525
|
+
}
|
2526
|
+
makeGroupROPlantTemplate(icon, title, size = { w: 80, h: 80 }) {
|
2527
|
+
let node = this.$(go.Group, 'Spot', {
|
2528
|
+
layout: this.$(go.Layout),
|
2529
|
+
}, {
|
2530
|
+
// minSize: new go.Size(NaN, 600),
|
2531
|
+
}, new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Table', this.$(go.Panel, 'Auto', {
|
2532
|
+
row: 0,
|
2533
|
+
padding: new go.Margin(0, 0, 0, 0),
|
2534
|
+
}, this.$(go.Shape, 'RoundedRectangle', {
|
2535
|
+
name: 'SHAPE_KEY',
|
2536
|
+
fill: '#FCFCFD',
|
2537
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
2538
|
+
strokeWidth: 2,
|
2539
|
+
// strokeDashArray: [5, 5],
|
2540
|
+
}), this.$(go.Placeholder, { padding: new go.Margin(15, 0, 0, 0) })), this.$(go.Picture, RO_LINE_DIRTY, {
|
2541
|
+
row: 1,
|
2542
|
+
}, new go.Binding('visible', '', (x) => {
|
2543
|
+
return x?.isViewGeneral && x?.hasOutFlow ? true : false;
|
2544
|
+
}))), this.$(go.Panel, 'Table', {
|
2545
|
+
width: 0,
|
2546
|
+
height: 0,
|
2547
|
+
alignment: new go.Spot(0, 0, 0, 183),
|
2548
|
+
alignmentFocus: go.Spot.Left,
|
2549
|
+
// stretch: go.GraphObject.Vertical,
|
2550
|
+
portId: 'Inflow',
|
2551
|
+
cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
|
2552
|
+
// alignmentFocus: new go.Spot(0, 0, 0, 150),
|
2553
|
+
fromSpot: go.Spot.Left,
|
2554
|
+
toSpot: go.Spot.Left,
|
2555
|
+
fromLinkable: true,
|
2556
|
+
toLinkable: true,
|
2557
|
+
}), this.$(go.Panel, 'Table', {
|
2558
|
+
width: 0,
|
2559
|
+
height: 0,
|
2560
|
+
alignment: new go.Spot(0, 0, 970, 315),
|
2561
|
+
alignmentFocus: go.Spot.Bottom,
|
2562
|
+
portId: 'OutFlow_Clean',
|
2563
|
+
cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
|
2564
|
+
fromSpot: go.Spot.Bottom,
|
2565
|
+
toSpot: go.Spot.Bottom,
|
2566
|
+
fromLinkable: true,
|
2567
|
+
toLinkable: true,
|
2568
|
+
}), this.$(go.Panel, 'Table', {
|
2569
|
+
width: 0,
|
2570
|
+
height: 0,
|
2571
|
+
// alignment: new go.Spot(0, 0, 480, 525),
|
2572
|
+
// alignment: new go.Spot(0, 0, 475, 552),
|
2573
|
+
alignmentFocus: go.Spot.Bottom,
|
2574
|
+
portId: 'OutFlow_Dirty',
|
2575
|
+
cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
|
2576
|
+
fromSpot: go.Spot.Bottom,
|
2577
|
+
toSpot: go.Spot.Bottom,
|
2578
|
+
fromLinkable: true,
|
2579
|
+
toLinkable: true,
|
2580
|
+
}, new go.Binding('alignment', '', (x) => {
|
2581
|
+
return x?.isViewGeneral && x?.hasOutFlow
|
2582
|
+
? new go.Spot(0, 0, 475, 552)
|
2583
|
+
: new go.Spot(0, 0, 480, 525);
|
2584
|
+
})));
|
2585
|
+
this.myDiagram.groupTemplateMap.set(title, node);
|
2586
|
+
}
|
2587
|
+
makeGroupBoilerTemplate(icon, title, size = { w: 80, h: 80 }) {
|
2588
|
+
let node = this.$(go.Group, 'Spot', {
|
2589
|
+
selectable: false,
|
2590
|
+
}, {
|
2591
|
+
// minSize: new go.Size(NaN, 600),
|
2592
|
+
}, new go.Binding('selectable', 'selectable'), this.$(go.Panel, 'Auto', {
|
2593
|
+
padding: new go.Margin(0, 0, 0, 0),
|
2594
|
+
}, this.$(go.Shape, 'RoundedRectangle', {
|
2595
|
+
name: 'SHAPE_KEY',
|
2596
|
+
fill: '#FCFCFD',
|
2597
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
2598
|
+
strokeWidth: 2,
|
2599
|
+
}), this.$(go.Placeholder, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), { padding: new go.Margin(0, 0, 0, 0) })), this.$(go.Panel, 'Spot', {
|
2600
|
+
width: 0,
|
2601
|
+
height: 0,
|
2602
|
+
alignment: new go.Spot(0, 0.5, 0, 112),
|
2603
|
+
alignmentFocus: go.Spot.Left,
|
2604
|
+
portId: 'Inflow',
|
2605
|
+
cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
|
2606
|
+
fromSpot: go.Spot.Left,
|
2607
|
+
toSpot: go.Spot.Left,
|
2608
|
+
fromLinkable: true,
|
2609
|
+
toLinkable: true,
|
2610
|
+
}), this.$(go.Panel, 'Spot', {
|
2611
|
+
alignmentFocus: go.Spot.Top,
|
2612
|
+
alignment: new go.Spot(1, 1, -215, 0),
|
2613
|
+
}, this.$(go.Picture, OUTFLOW_LINE_DIRTY, {
|
2614
|
+
width: 10,
|
2615
|
+
height: 20,
|
2616
|
+
}, new go.Binding('visible', '', (x) => {
|
2617
|
+
return x?.isViewGeneral && x?.hasOutFlow ? true : false;
|
2618
|
+
})), this.$(go.Panel, {
|
2619
|
+
alignment: go.Spot.BottomLeft,
|
2620
|
+
alignmentFocus: go.Spot.Top,
|
2621
|
+
portId: 'OutFlow',
|
2622
|
+
cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
|
2623
|
+
fromSpot: go.Spot.Bottom,
|
2624
|
+
fromLinkable: true,
|
2625
|
+
toLinkable: true,
|
2626
|
+
})));
|
2627
|
+
this.myDiagram.groupTemplateMap.set(title, node);
|
2628
|
+
}
|
2629
|
+
makeGroupCoolingTowerTemplate(icon, title, size = { w: 80, h: 80 }) {
|
2630
|
+
let node = this.$(go.Group, 'Spot', {
|
2631
|
+
selectable: false,
|
2632
|
+
layout: this.$(go.Layout),
|
2633
|
+
padding: new go.Margin(0, 30, 0, 0),
|
2634
|
+
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', {
|
2635
|
+
row: 0,
|
2636
|
+
padding: new go.Margin(0, 0, 0, 0),
|
2637
|
+
}, this.$(go.Shape, 'RoundedRectangle', {
|
2638
|
+
name: 'SHAPE_KEY',
|
2639
|
+
fill: '#FCFCFD',
|
2640
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
2641
|
+
strokeWidth: 2,
|
2642
|
+
strokeDashArray: [5, 5],
|
2643
|
+
}), this.$(go.Placeholder, { padding: new go.Margin(0, 0, 0, 0) })), this.$(go.Panel, 'Table', {
|
2644
|
+
width: 0,
|
2645
|
+
height: 0,
|
2646
|
+
alignment: new go.Spot(0, 0, 0, 533),
|
2647
|
+
alignmentFocus: go.Spot.Bottom,
|
2648
|
+
portId: 'Inflow',
|
2649
|
+
cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
|
2650
|
+
fromSpot: go.Spot.Left,
|
2651
|
+
toSpot: go.Spot.Left,
|
2652
|
+
fromLinkable: true,
|
2653
|
+
toLinkable: true,
|
2654
|
+
}), this.$(go.Panel, 'Spot', {
|
2655
|
+
alignmentFocus: go.Spot.Top,
|
2656
|
+
alignment: new go.Spot(0.5, 1, 23, 0),
|
2657
|
+
}, this.$(go.Picture, OUTFLOW_LINE_DIRTY, {
|
2658
|
+
width: 10,
|
2659
|
+
height: 20,
|
2660
|
+
}, new go.Binding('visible', '', (x) => {
|
2661
|
+
return x?.isViewGeneral && x?.hasOutFlow ? true : false;
|
2662
|
+
})), this.$(go.Panel, {
|
2663
|
+
alignment: new go.Spot(0, 0, 0, 18),
|
2664
|
+
alignmentFocus: go.Spot.Top,
|
2665
|
+
portId: 'OutFlow',
|
2666
|
+
cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
|
2667
|
+
fromSpot: go.Spot.Center,
|
2668
|
+
toSpot: go.Spot.Right,
|
2669
|
+
fromLinkable: true,
|
2670
|
+
toLinkable: true,
|
2671
|
+
})));
|
2672
|
+
this.myDiagram.groupTemplateMap.set(title, node);
|
2673
|
+
}
|
2674
|
+
groupPlantCellTemplate(icon, title, size = { w: 80, h: 80 }) {
|
2675
|
+
const self = this;
|
2676
|
+
let node = this.$(go.Group, 'Spot', {
|
2677
|
+
// layout: this.$(go.Layout),
|
2678
|
+
// layout: this.$(go.LayeredDigraphLayout, { direction: 0 }),
|
2679
|
+
// isSubGraphExpanded: false,
|
2680
|
+
// background: 'transparent',
|
2681
|
+
// layerName: 'Foreground',
|
2682
|
+
// wasSubGraphExpanded: false,
|
2683
|
+
movable: false,
|
2684
|
+
selectable: false,
|
2685
|
+
avoidable: false,
|
2686
|
+
// resizable: true,
|
2687
|
+
// resizable: false,
|
2688
|
+
// width: data?.ob?.minWith ?? 50,
|
2689
|
+
// height: 500,
|
2690
|
+
// isSubGraphExpanded: true, // ensure the group is always expanded
|
2691
|
+
// computesBoundsAfterDrag: true,
|
2692
|
+
// handlesDragDropForMembers: true, // handle drag-and-drop events for its member nodes
|
2693
|
+
// maxSize: new go.Size(500, 500),
|
2694
|
+
// minSize: new go.Size(500, 500),
|
2695
|
+
// isSubGraphExpanded: true,
|
2696
|
+
// layerName: DIAGRAM.LAYERS.BACKGROUND,
|
2697
|
+
// mouseDrop: function (e, grp) {
|
2698
|
+
// // disallow dropping anything onto an Adornment
|
2699
|
+
// if (grp instanceof go.Adornment) return;
|
2700
|
+
// },
|
2701
|
+
// dragComputation: function (node, pt, gridPt) {
|
2702
|
+
// let grp = node.containingGroup;
|
2703
|
+
// if (grp !== null) {
|
2704
|
+
// let rect = grp.actualBounds;
|
2705
|
+
// pt.x = Math.max(rect.left, Math.min(pt.x, rect.right));
|
2706
|
+
// pt.y = Math.max(rect.top, Math.min(pt.y, rect.bottom));
|
2707
|
+
// }
|
2708
|
+
// return pt;
|
2709
|
+
// },
|
2710
|
+
// dropComputation: function (node, pt, gridPt) {
|
2711
|
+
// let grp = node.containingGroup;
|
2712
|
+
// if (grp !== null) {
|
2713
|
+
// let rect = grp.actualBounds;
|
2714
|
+
// pt.x = Math.max(rect.left, Math.min(pt.x, rect.right));
|
2715
|
+
// pt.y = Math.max(rect.top, Math.min(pt.y, rect.bottom));
|
2716
|
+
// }
|
2717
|
+
// return pt;
|
2718
|
+
// },
|
2719
|
+
// dragComputation: function (part, pt, gridpt) {
|
2720
|
+
// // Get the current group's actual bounds
|
2721
|
+
// const grp = part.containingGroup;
|
2722
|
+
// if (grp) {
|
2723
|
+
// const bnds = grp.actualBounds;
|
2724
|
+
// const loc = part.location;
|
2725
|
+
// // See if the part's new location would be out of bounds
|
2726
|
+
// const newx = Math.max(bnds.x, Math.min(pt.x, bnds.right - part.actualBounds.width / 2));
|
2727
|
+
// const newy = Math.max(bnds.y, Math.min(pt.y, bnds.bottom - part.actualBounds.height / 2));
|
2728
|
+
// // Modify the result point to keep the Part inside the Group
|
2729
|
+
// return new go.Point(newx, newy);
|
2730
|
+
// }
|
2731
|
+
// return pt;
|
2732
|
+
// },
|
2733
|
+
click: (e, obj) => {
|
2734
|
+
self.myDiagram?.clearSelection();
|
2735
|
+
},
|
2736
|
+
}, {
|
2737
|
+
// mouseDragEnter: (e, obj) => {
|
2738
|
+
// },
|
2739
|
+
// mouseDrop: (e, obj) => {
|
2740
|
+
// },
|
2741
|
+
// mouseEnter: (e, obj) => {
|
2742
|
+
// const node = obj.part;
|
2743
|
+
// self.onHoverInfoButton.emit({
|
2744
|
+
// left: e?.['Wr']?.x + 8,
|
2745
|
+
// top: e?.['Wr']?.y,
|
2746
|
+
// node: node,
|
2747
|
+
// });
|
2748
|
+
// // let shape = (node as any)?.findObject('SHAPE_KEY');
|
2749
|
+
// // if (shape) {
|
2750
|
+
// // shape.stroke = 'blue';
|
2751
|
+
// // }
|
2752
|
+
// },
|
2753
|
+
// mouseLeave: (e, obj) => {
|
2754
|
+
// self.onHoverInfoButton.emit(null);
|
2755
|
+
// // let shape = (node as any)?.findObject('SHAPE_KEY');
|
2756
|
+
// // if (shape) {
|
2757
|
+
// // shape.stroke = AtoGojsEditorModel.ENUM_COLORS.WHITE;
|
2758
|
+
// // }
|
2759
|
+
// },
|
2760
|
+
}, new go.Binding('layout', '', function (data, node) {
|
2761
|
+
// return data?.layoutValue === AtoGojsEditorModel.ENUM_LAYOUT_EDITOR.AUTO
|
2762
|
+
// ? self.$(go.LayeredDigraphLayout, { direction: 0 })
|
2763
|
+
// : node?.layout;
|
2764
|
+
if (data?.layoutValue !== data?.layoutValueClone) {
|
2765
|
+
data.layoutValueClone = data?.layoutValue;
|
2766
|
+
return data?.layoutValue ===
|
2767
|
+
AtoGojsEditorModel.ENUM_LAYOUT_EDITOR.AUTO
|
2768
|
+
? self.$(go.LayeredDigraphLayout, { direction: 0 })
|
2769
|
+
: self.$(go.Layout);
|
2770
|
+
}
|
2771
|
+
else {
|
2772
|
+
return node?.layout;
|
2773
|
+
}
|
2774
|
+
// : self.$(go.Layout);
|
2775
|
+
// return data?.layout;
|
2776
|
+
// return data?.previousLayout || self.$(go.LayeredDigraphLayout, { direction: 0 });
|
2777
|
+
// return self.$(go.LayeredDigraphLayout, { direction: 0 });
|
2778
|
+
}),
|
2779
|
+
// new go.Binding('grid', 'grid'),
|
2780
|
+
new go.Binding('selectable', 'selectable'),
|
2781
|
+
// new go.Binding('width', '', function (data) {
|
2782
|
+
// return data?.ob?.minWith ?? 50;
|
2783
|
+
// }),
|
2784
|
+
new go.Binding('minSize', '', function (data) {
|
2785
|
+
return new go.Size(data?.ob?.minWith ?? 50, data?.ob?.minHeight ?? 50); // Customize minSize based on data
|
2786
|
+
}).ofObject(),
|
2787
|
+
// new go.Binding('width', '', function (data) {
|
2788
|
+
// return data?.ob?.minWith ?? 50; // Customize minSize based on data
|
2789
|
+
// }).ofObject(),
|
2790
|
+
// new go.Binding('height', '', function (data) {
|
2791
|
+
// return data?.ob?.minHeight ?? 50; // Customize minSize based on data
|
2792
|
+
// }).ofObject(),
|
2793
|
+
new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
|
2794
|
+
// new go.Binding('isSubGraphExpanded', 'expanded').makeTwoWay(),
|
2795
|
+
this.$(go.Panel, 'Auto', {
|
2796
|
+
padding: new go.Margin(0, 0, 0, 0),
|
2797
|
+
// margin:new go.Margin(0, 50, 0, 50),
|
2798
|
+
}, this.$(go.Shape, 'RoundedRectangle', {
|
2799
|
+
name: 'SHAPE_KEY',
|
2800
|
+
fill: 'transparent',
|
2801
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
2802
|
+
strokeWidth: 2,
|
2803
|
+
strokeDashArray: [5, 5],
|
2804
|
+
}), this.$(go.Placeholder, { padding: new go.Margin(0, 0, 0, 0) })));
|
2805
|
+
// node.memberValidation = function (node, group) {
|
2806
|
+
// if (!group) return true; // allow ungrouping
|
2807
|
+
// const groupBounds = group.actualBounds;
|
2808
|
+
// const nodeBounds = node.actualBounds;
|
2809
|
+
// return groupBounds.containsRect(nodeBounds);
|
2810
|
+
// };
|
2811
|
+
this.myDiagram.groupTemplateMap.set(title, node);
|
2812
|
+
}
|
2813
|
+
groupPCInputOrOutTemplate(icon, title, padding) {
|
2814
|
+
// let node = this.$(
|
2815
|
+
// go.Group,
|
2816
|
+
// 'Spot',
|
2817
|
+
// {
|
2818
|
+
// layout: this.$(go.Layout),
|
2819
|
+
// movable: false,
|
2820
|
+
// selectable: false,
|
2821
|
+
// },
|
2822
|
+
// // {
|
2823
|
+
// // // minSize: new go.Size(500, 500),
|
2824
|
+
// // movable: false,
|
2825
|
+
// // ariaReadOnly: true,
|
2826
|
+
// // },
|
2827
|
+
// this.$(
|
2828
|
+
// go.Panel,
|
2829
|
+
// 'Auto',
|
2830
|
+
// {
|
2831
|
+
// padding: new go.Margin(0, 0, 0, 0),
|
2832
|
+
// },
|
2833
|
+
// this.$(go.Shape, 'RoundedRectangle', {
|
2834
|
+
// fill: 'transparent',
|
2835
|
+
// // stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
2836
|
+
// stroke: AtoGojsEditorModel.ENUM_COLORS.WHITE,
|
2837
|
+
// strokeWidth: 2,
|
2838
|
+
// strokeDashArray: [5, 5],
|
2839
|
+
// }),
|
2840
|
+
// this.$(go.Placeholder, {
|
2841
|
+
// padding: new go.Margin(0, 0, 0, 0),
|
2842
|
+
// }),
|
2843
|
+
// ),
|
2844
|
+
// );
|
2845
|
+
let node = this.$(go.Group, 'Spot', {
|
2846
|
+
layout: this.$(go.LayeredDigraphLayout, { direction: 0 }),
|
2847
|
+
movable: false,
|
2848
|
+
selectable: false,
|
2849
|
+
avoidable: false,
|
2850
|
+
// isSubGraphExpanded: false,
|
2851
|
+
// isSubGraphExpanded: false,
|
2852
|
+
// layerName: 'Foreground',
|
2853
|
+
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', {
|
2854
|
+
padding: padding ?? new go.Margin(0, 0, 0, 0),
|
2855
|
+
}, this.$(go.Shape, 'RoundedRectangle', {
|
2856
|
+
fill: 'transparent',
|
2857
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.WHITE,
|
2858
|
+
// stroke: AtoGojsEditorModel.ENUM_COLORS.ALIZARIN,
|
2859
|
+
strokeWidth: 2,
|
2860
|
+
// strokeDashArray: [5, 5],
|
2861
|
+
}), this.$(go.Placeholder, {
|
2862
|
+
padding: new go.Margin(0, 0, 0, 0),
|
2863
|
+
})));
|
2864
|
+
this.myDiagram.groupTemplateMap.set(title, node);
|
2865
|
+
}
|
2866
|
+
makeGroupZoneTemplate(size = {
|
2867
|
+
w: AtoGojsEditorModel.GRID_SIZE * 14,
|
2868
|
+
h: AtoGojsEditorModel.GRID_SIZE * 5,
|
2869
|
+
}) {
|
2870
|
+
const self = this;
|
2871
|
+
let node = this.$(go.Group, 'Vertical', {
|
2872
|
+
layout: this.$(go.GridLayout, {
|
2873
|
+
wrappingColumn: 1,
|
2874
|
+
spacing: new go.Size(0, 0),
|
2875
|
+
}),
|
2876
|
+
}, {
|
2877
|
+
locationSpot: go.Spot.Center,
|
2878
|
+
mouseOver: function (e, obj) {
|
2879
|
+
// self.showPoint(obj?.part?.location);
|
2880
|
+
},
|
2881
|
+
click: (e, obj) => {
|
2882
|
+
if (obj?.data?.onSelected) {
|
2883
|
+
obj?.data?.onSelected(obj?.data);
|
2884
|
+
}
|
2885
|
+
},
|
2886
|
+
selectionChanged: (e) => {
|
2887
|
+
if (!e.isSelected && e?.data?.onSelected) {
|
2888
|
+
e?.data?.onSelected(null);
|
2889
|
+
}
|
2890
|
+
},
|
2891
|
+
selectionAdornmentTemplate: this._initialOptions.isReadOnly
|
2892
|
+
? null
|
2893
|
+
: this.$(go.Adornment, 'Spot', {
|
2894
|
+
shadowVisible: true,
|
2895
|
+
shadowBlur: 6,
|
2896
|
+
shadowOffset: new go.Point(0, 2),
|
2897
|
+
shadowColor: '#00000029',
|
2898
|
+
}, this.$(go.Panel, 'Auto', this.$(go.Shape, {
|
2899
|
+
fill: null,
|
2900
|
+
stroke: 'dodgerblue',
|
2901
|
+
strokeWidth: 4,
|
2902
|
+
}), this.$(go.Placeholder, { padding: 3 })), this.$(go.Panel, 'Horizontal', {
|
2903
|
+
alignment: go.Spot.TopRight,
|
2904
|
+
alignmentFocus: go.Spot.Bottom,
|
2905
|
+
background: 'white',
|
2906
|
+
}, this.$('Button', {
|
2907
|
+
_dragData: {
|
2908
|
+
type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE,
|
2909
|
+
name: 0,
|
2910
|
+
color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
|
2911
|
+
},
|
2912
|
+
click: self.addItemOnGroupZone,
|
2913
|
+
'ButtonBorder.strokeWidth': 0,
|
2914
|
+
'ButtonBorder.fill': 'white',
|
2915
|
+
}, this.$(go.TextBlock, {
|
2916
|
+
margin: 4,
|
2917
|
+
text: '\uf055',
|
2918
|
+
font: '20px "Font Awesome 6 Pro"',
|
2919
|
+
cursor: 'pointer',
|
2920
|
+
stroke: '#2c2c2c',
|
2921
|
+
})),
|
2922
|
+
// more
|
2923
|
+
this.generateActionGroup([
|
2924
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME,
|
2925
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.DETAILS,
|
2926
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
|
2927
|
+
AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
|
2928
|
+
])
|
2929
|
+
// this.$(
|
2930
|
+
// // Edit Text
|
2931
|
+
// 'Button',
|
2932
|
+
// {
|
2933
|
+
// click: self.editTextGroupZone,
|
2934
|
+
// 'ButtonBorder.strokeWidth': 0,
|
2935
|
+
// 'ButtonBorder.fill': 'white',
|
2936
|
+
// },
|
2937
|
+
// this.$(go.TextBlock, {
|
2938
|
+
// margin: 4,
|
2939
|
+
// text: '\ue1bf',
|
2940
|
+
// font: '20px "Font Awesome 6 Pro"',
|
2941
|
+
// cursor: 'pointer',
|
2942
|
+
// stroke: '#2c2c2c',
|
2943
|
+
// }),
|
2944
|
+
// ),
|
2945
|
+
// this.$(
|
2946
|
+
// // Open Detail
|
2947
|
+
// 'Button',
|
2948
|
+
// {
|
2949
|
+
// click: (e, obj: any) => {
|
2950
|
+
// const node = obj.part;
|
2951
|
+
// self.onOpenDetail.emit({
|
2952
|
+
// node,
|
2953
|
+
// });
|
2954
|
+
// },
|
2955
|
+
// 'ButtonBorder.strokeWidth': 0,
|
2956
|
+
// 'ButtonBorder.fill': 'white',
|
2957
|
+
// },
|
2958
|
+
//
|
2959
|
+
// this.$(go.TextBlock, {
|
2960
|
+
// margin: 4,
|
2961
|
+
// text: '\ue49a',
|
2962
|
+
// font: '20px "Font Awesome 6 Pro"',
|
2963
|
+
// cursor: 'pointer',
|
2964
|
+
// }),
|
2965
|
+
// ),
|
2966
|
+
// !this._initialOptions.isReadOnly
|
2967
|
+
// ? this.$(
|
2968
|
+
// 'Button',
|
2969
|
+
// {
|
2970
|
+
// actionMove: self.dragNewNode, // defined below, to support dragging from the button
|
2971
|
+
// _dragData: {
|
2972
|
+
// type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE,
|
2973
|
+
// name: 0,
|
2974
|
+
// color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
|
2975
|
+
// },
|
2976
|
+
// click: self.clickNewNode, // defined below, to support a click on the button
|
2977
|
+
// 'ButtonBorder.strokeWidth': 0,
|
2978
|
+
// 'ButtonBorder.fill': 'white',
|
2979
|
+
// },
|
2980
|
+
// this.$(go.TextBlock, {
|
2981
|
+
// margin: 4,
|
2982
|
+
// text: '\ue157',
|
2983
|
+
// font: '20px "Font Awesome 6 Pro"',
|
2984
|
+
// cursor: 'pointer',
|
2985
|
+
// stroke: '#2c2c2c',
|
2986
|
+
// }),
|
2987
|
+
// )
|
2988
|
+
// : {},
|
2989
|
+
// this.$(
|
2990
|
+
// 'Button',
|
2991
|
+
// {
|
2992
|
+
// click: self.deleteNode,
|
2993
|
+
// 'ButtonBorder.strokeWidth': 0,
|
2994
|
+
// 'ButtonBorder.fill': 'white',
|
2995
|
+
// },
|
2996
|
+
// this.$(go.TextBlock, {
|
2997
|
+
// margin: 4,
|
2998
|
+
// text: '\uf2ed',
|
2999
|
+
// font: '20px "Font Awesome 6 Pro"',
|
3000
|
+
// cursor: 'pointer',
|
3001
|
+
// }),
|
3002
|
+
// ),
|
3003
|
+
)),
|
3004
|
+
}, this.$(go.Panel, 'Auto', this.$(go.Shape, 'RoundedRectangle', {
|
3005
|
+
fill: 'transparent',
|
3006
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
3007
|
+
strokeWidth: 2,
|
3008
|
+
strokeDashArray: [5, 5],
|
3009
|
+
maxSize: new go.Size(size.w, NaN),
|
3010
|
+
}), this.$(go.Panel, 'Table', {
|
3011
|
+
alignment: go.Spot.Top,
|
3012
|
+
padding: new go.Margin(17, 10, 16, 10),
|
3013
|
+
}, this.$(go.TextBlock, {
|
3014
|
+
row: 0,
|
3015
|
+
margin: new go.Margin(5, 0, 10, 0),
|
3016
|
+
editable: true,
|
3017
|
+
desiredSize: new go.Size(size.w - 20, 25),
|
3018
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.NIGHT_RIDER,
|
3019
|
+
font: 'bold 16px Arial',
|
3020
|
+
textAlign: 'center',
|
3021
|
+
wrap: go.TextBlock.None,
|
3022
|
+
overflow: go.TextBlock.OverflowEllipsis,
|
3023
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
3024
|
+
margin: 4,
|
3025
|
+
}, new go.Binding('text', 'name').makeTwoWay())),
|
3026
|
+
}, new go.Binding('text', 'name').makeTwoWay()), this.$(go.Placeholder, 'Vertical', {
|
3027
|
+
row: 1,
|
3028
|
+
})), this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, true, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, true), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false)), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify));
|
3029
|
+
this.myDiagram.groupTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.ZONE, node);
|
3030
|
+
}
|
3031
|
+
makeZoneItemTemplate(size = {
|
3032
|
+
w: AtoGojsEditorModel.GRID_SIZE * 12,
|
3033
|
+
h: AtoGojsEditorModel.GRID_SIZE * 2,
|
3034
|
+
}) {
|
3035
|
+
const self = this;
|
3036
|
+
const node = this.$(go.Node, 'Auto',
|
3037
|
+
// {
|
3038
|
+
// mouseHover: (e, obj) => {
|
3039
|
+
// const node = obj.part;
|
3040
|
+
// if ((obj as any).part?.ob?.value === VALUE_NA) {
|
3041
|
+
// self.onHoverInfoButton.emit({
|
3042
|
+
// left: e?.['Wr']?.x + 8,
|
3043
|
+
// top: e?.['Wr']?.y,
|
3044
|
+
// node: node
|
3045
|
+
// });
|
3046
|
+
// }
|
3047
|
+
// },
|
3048
|
+
// mouseLeave: (e, obj) => {
|
3049
|
+
// if ((obj as any).part?.ob?.value === VALUE_NA) {
|
3050
|
+
// self.onHoverInfoButton.emit(null);
|
3051
|
+
// }
|
3052
|
+
// },
|
3053
|
+
// click: (e, obj: any) => {
|
3054
|
+
// const node = obj.part;
|
3055
|
+
// this.isShowNodeInfo ? self.onClickInfoButton.emit({
|
3056
|
+
// left: e?.['Wr']?.x,
|
3057
|
+
// top: e?.['Wr']?.y,
|
3058
|
+
// node: node
|
3059
|
+
// }) : null;
|
3060
|
+
// },
|
3061
|
+
// },
|
3062
|
+
// new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
|
3063
|
+
{
|
3064
|
+
movable: false,
|
3065
|
+
}, this.$(go.Panel, 'Auto', {
|
3066
|
+
width: size.w,
|
3067
|
+
height: size.h,
|
3068
|
+
}, this.$(go.Shape, 'Rectangle', {
|
3069
|
+
fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
|
3070
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
3071
|
+
}), this.$(go.Panel, 'Vertical', this.$(go.TextBlock, {
|
3072
|
+
editable: true,
|
3073
|
+
row: 2,
|
3074
|
+
margin: new go.Margin(10, 0, 5, 0),
|
3075
|
+
font: 'bold 12px Arial',
|
3076
|
+
textAlign: 'center',
|
3077
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.NIGHT_RIDER,
|
3078
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
3079
|
+
margin: 4,
|
3080
|
+
}, new go.Binding('text', 'name').makeTwoWay())),
|
3081
|
+
}, new go.Binding('text', 'name').makeTwoWay(), new go.Binding('visible', 'name', (x) => !!x)), this.$(go.Panel, 'Horizontal', {
|
3082
|
+
margin: new go.Margin(0, 10, 0, 10),
|
3083
|
+
}, this.$(go.TextBlock, {
|
3084
|
+
margin: new go.Margin(0, 5, 10, 0),
|
3085
|
+
textAlign: 'center',
|
3086
|
+
font: '12px sans-serif',
|
3087
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.NIGHT_RIDER,
|
3088
|
+
wrap: go.TextBlock.WrapFit,
|
3089
|
+
editable: true,
|
3090
|
+
isMultiline: false,
|
3091
|
+
maxSize: new go.Size(size.w - 100, 15),
|
3092
|
+
overflow: go.TextBlock.OverflowEllipsis,
|
3093
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
3094
|
+
margin: 4,
|
3095
|
+
}, new go.Binding('text', 'nameItem').makeTwoWay())),
|
3096
|
+
}, new go.Binding('text', 'nameItem').makeTwoWay(), new go.Binding('visible', 'nameItem', (x) => !!x)), this.$(go.TextBlock, {
|
3097
|
+
margin: new go.Margin(0, 5, 10, 0),
|
3098
|
+
textAlign: 'center',
|
3099
|
+
font: '12px sans-serif',
|
3100
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
3101
|
+
wrap: go.TextBlock.WrapFit,
|
3102
|
+
text: '< ',
|
3103
|
+
}, new go.Binding('visible', 'data', (x) => typeof x?.quantity === 'number')), this.$(go.TextBlock, {
|
3104
|
+
margin: new go.Margin(0, 5, 10, 0),
|
3105
|
+
textAlign: 'center',
|
3106
|
+
font: '12px sans-serif',
|
3107
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
3108
|
+
wrap: go.TextBlock.WrapFit,
|
3109
|
+
}, new go.Binding('text', 'data', (x) => {
|
3110
|
+
if (typeof x?.quantity !== 'number') {
|
3111
|
+
return '';
|
3112
|
+
}
|
3113
|
+
const formatted = UtilsService.convertPrefixesData({
|
3114
|
+
value: x?.quantity,
|
3115
|
+
unit: x?.unit,
|
3116
|
+
});
|
3117
|
+
return (formatted.shortenedNumber +
|
3118
|
+
' ' +
|
3119
|
+
formatted.unitPrefixes +
|
3120
|
+
x?.unit ?? '');
|
3121
|
+
}), new go.Binding('visible', 'data', (x) => typeof x?.quantity === 'number')), this.$(go.TextBlock, {
|
3122
|
+
margin: new go.Margin(0, 5, 10, 0),
|
3123
|
+
textAlign: 'center',
|
3124
|
+
font: '12px sans-serif',
|
3125
|
+
stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
|
3126
|
+
wrap: go.TextBlock.WrapFit,
|
3127
|
+
text: ' >',
|
3128
|
+
}, new go.Binding('visible', 'data', (x) => typeof x?.quantity === 'number'))))));
|
3129
|
+
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.ZONE_ENERGY_ITEM, node);
|
3130
|
+
}
|
3131
|
+
makeSpecialTemplate(icon, title, size = {
|
3132
|
+
w: AtoGojsEditorModel.GRID_SIZE * 5,
|
3133
|
+
h: AtoGojsEditorModel.GRID_SIZE * 5,
|
3134
|
+
}) {
|
3135
|
+
let node = null;
|
3136
|
+
switch (title) {
|
3137
|
+
case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS:
|
3138
|
+
node = this.$(go.Node, 'Spot',
|
3139
|
+
// {
|
3140
|
+
// fromSpot: go.Spot.Right, // coming out from middle-right
|
3141
|
+
// toSpot: go.Spot.Left
|
3142
|
+
// },
|
3143
|
+
{
|
3144
|
+
click: (e, obj) => {
|
3145
|
+
if (obj?.data?.onSelected) {
|
3146
|
+
obj?.data?.onSelected(obj?.data);
|
3147
|
+
}
|
3148
|
+
},
|
3149
|
+
selectionChanged: (e) => {
|
3150
|
+
if (!e.isSelected && e?.data?.onSelected) {
|
3151
|
+
e?.data?.onSelected(null);
|
3152
|
+
}
|
3153
|
+
},
|
3154
|
+
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'Circle', {
|
3155
|
+
fill: 'white',
|
3156
|
+
stroke: '#2D3B77',
|
3157
|
+
strokeWidth: 2,
|
3158
|
+
// strokeDashArray: [5, 5],
|
3159
|
+
}), this.$(go.Panel, 'Table', this.$(go.TextBlock, AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS, {
|
3160
|
+
row: 0,
|
3161
|
+
margin: new go.Margin(3, 3, 10, 3),
|
3162
|
+
maxSize: new go.Size(size.w - 20, NaN),
|
3163
|
+
stroke: '#444444',
|
3164
|
+
font: 'normal 10pt Arial',
|
3165
|
+
textAlign: 'center',
|
3166
|
+
}), this.$(go.Picture, icon, {
|
3167
|
+
row: 1,
|
3168
|
+
margin: new go.Margin(0, 0, 10, 0),
|
3169
|
+
alignment: go.Spot.Center,
|
3170
|
+
maxSize: new go.Size(60, 60),
|
3171
|
+
imageStretch: go.GraphObject.Uniform,
|
3172
|
+
}))), this.$(go.Panel, 'Vertical', {
|
3173
|
+
alignment: go.Spot.Left,
|
3174
|
+
alignmentFocus: new go.Spot(0, 0.5, 8, 0),
|
3175
|
+
}), this.$(go.Panel, 'Vertical', {
|
3176
|
+
alignment: go.Spot.Right,
|
3177
|
+
alignmentFocus: new go.Spot(1, 0.5, -8, 0),
|
3178
|
+
}),
|
3179
|
+
// four named ports, one on each side:
|
3180
|
+
this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, true, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, true), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false));
|
3181
|
+
break;
|
3182
|
+
case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_STORAGE:
|
3183
|
+
node = this.$(go.Node, 'Spot', {
|
3184
|
+
click: (e, obj) => {
|
3185
|
+
if (obj?.data?.onSelected) {
|
3186
|
+
obj?.data?.onSelected(obj?.data);
|
3187
|
+
}
|
3188
|
+
},
|
3189
|
+
selectionChanged: (e) => {
|
3190
|
+
if (!e.isSelected && e?.data?.onSelected) {
|
3191
|
+
e?.data?.onSelected(null);
|
3192
|
+
}
|
3193
|
+
},
|
3194
|
+
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'Circle', {
|
3195
|
+
fill: 'white',
|
3196
|
+
stroke: '#2D3B77',
|
3197
|
+
strokeWidth: 2,
|
3198
|
+
// strokeDashArray: [5, 5],
|
3199
|
+
}), this.$(go.Panel, 'Table', this.$(go.TextBlock, AtoGojsEditorModel.ENUM_TEMPLATES.STORAGE, {
|
3200
|
+
row: 0,
|
3201
|
+
margin: new go.Margin(3, 3, 10, 3),
|
3202
|
+
maxSize: new go.Size(size.w - 20, NaN),
|
3203
|
+
stroke: '#444444',
|
3204
|
+
font: 'normal 10pt Arial',
|
3205
|
+
textAlign: 'center',
|
3206
|
+
}), this.$(go.Picture, icon, {
|
3207
|
+
row: 1,
|
3208
|
+
margin: new go.Margin(0, 0, 10, 0),
|
3209
|
+
alignment: go.Spot.Center,
|
3210
|
+
minSize: new go.Size(40, 40),
|
3211
|
+
maxSize: new go.Size(50, 50),
|
3212
|
+
imageStretch: go.GraphObject.Uniform,
|
3213
|
+
}, new go.Binding('source', 'icon').makeTwoWay()))), this.$(go.Panel, 'Vertical', {
|
3214
|
+
alignment: go.Spot.Left,
|
3215
|
+
alignmentFocus: new go.Spot(0, 0.5, 8, 0),
|
3216
|
+
}), this.$(go.Panel, 'Vertical', {
|
3217
|
+
alignment: go.Spot.Right,
|
3218
|
+
alignmentFocus: new go.Spot(1, 0.5, -8, 0),
|
3219
|
+
}),
|
3220
|
+
// four named ports, one on each side:
|
3221
|
+
this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, true, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, true), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false));
|
3222
|
+
break;
|
3223
|
+
case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_STORE:
|
3224
|
+
node = this.$(go.Node, 'Spot', {
|
3225
|
+
click: (e, obj) => {
|
3226
|
+
if (obj?.data?.onSelected) {
|
3227
|
+
obj?.data?.onSelected(obj?.data);
|
3228
|
+
}
|
3229
|
+
},
|
3230
|
+
selectionChanged: (e) => {
|
3231
|
+
if (!e.isSelected && e?.data?.onSelected) {
|
3232
|
+
e?.data?.onSelected(null);
|
3233
|
+
}
|
3234
|
+
},
|
3235
|
+
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'Circle', {
|
3236
|
+
fill: 'white',
|
3237
|
+
stroke: '#2D3B77',
|
3238
|
+
strokeWidth: 2,
|
3239
|
+
// strokeDashArray: [5, 5],
|
3240
|
+
}), this.$(go.Panel, 'Table', this.$(go.TextBlock, 'Store', {
|
3241
|
+
row: 0,
|
3242
|
+
margin: new go.Margin(3, 3, 10, 3),
|
3243
|
+
maxSize: new go.Size(size.w - 20, NaN),
|
3244
|
+
stroke: '#444444',
|
3245
|
+
font: 'normal 10pt Arial',
|
3246
|
+
textAlign: 'center',
|
3247
|
+
}), this.$(go.Picture, icon, {
|
3248
|
+
row: 1,
|
3249
|
+
margin: new go.Margin(0, 0, 10, 0),
|
3250
|
+
alignment: go.Spot.Center,
|
3251
|
+
maxSize: new go.Size(60, 60),
|
3252
|
+
imageStretch: go.GraphObject.Uniform,
|
3253
|
+
}))));
|
3254
|
+
break;
|
3255
|
+
case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_DISCHARGE:
|
3256
|
+
node = this.$(go.Node, 'Spot', {
|
3257
|
+
click: (e, obj) => {
|
3258
|
+
if (obj?.data?.onSelected) {
|
3259
|
+
obj?.data?.onSelected(obj?.data);
|
3260
|
+
}
|
3261
|
+
},
|
3262
|
+
selectionChanged: (e) => {
|
3263
|
+
if (!e.isSelected && e?.data?.onSelected) {
|
3264
|
+
e?.data?.onSelected(null);
|
3265
|
+
}
|
3266
|
+
},
|
3267
|
+
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'Circle', {
|
3268
|
+
fill: 'white',
|
3269
|
+
stroke: '#2D3B77',
|
3270
|
+
strokeWidth: 2,
|
3271
|
+
// strokeDashArray: [5, 5],
|
3272
|
+
}), this.$(go.Panel, 'Table', this.$(go.TextBlock, 'Discharge', {
|
3273
|
+
row: 0,
|
3274
|
+
margin: new go.Margin(3, 3, 10, 3),
|
3275
|
+
maxSize: new go.Size(size.w - 20, NaN),
|
3276
|
+
stroke: '#444444',
|
3277
|
+
font: 'normal 10pt Arial',
|
3278
|
+
textAlign: 'center',
|
3279
|
+
}), this.$(go.Picture, icon, {
|
3280
|
+
row: 1,
|
3281
|
+
margin: new go.Margin(0, 0, 10, 0),
|
3282
|
+
alignment: go.Spot.Center,
|
3283
|
+
maxSize: new go.Size(60, 60),
|
3284
|
+
imageStretch: go.GraphObject.Uniform,
|
3285
|
+
}))));
|
3286
|
+
break;
|
3287
|
+
case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_OTHER:
|
3288
|
+
node = this.$(go.Node, 'Spot', {
|
3289
|
+
click: (e, obj) => {
|
3290
|
+
if (obj?.data?.onSelected) {
|
3291
|
+
obj?.data?.onSelected(obj?.data);
|
3292
|
+
}
|
3293
|
+
},
|
3294
|
+
selectionChanged: (e) => {
|
3295
|
+
if (!e.isSelected && e?.data?.onSelected) {
|
3296
|
+
e?.data?.onSelected(null);
|
3297
|
+
}
|
3298
|
+
},
|
3299
|
+
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'Circle', {
|
3300
|
+
fill: 'white',
|
3301
|
+
stroke: '#2D3B77',
|
3302
|
+
strokeWidth: 2,
|
3303
|
+
// strokeDashArray: [5, 5],
|
3304
|
+
}), this.$(go.Panel, 'Table', this.$(go.TextBlock, 'Other', {
|
3305
|
+
row: 0,
|
3306
|
+
margin: new go.Margin(3, 3, 10, 3),
|
3307
|
+
maxSize: new go.Size(size.w - 20, NaN),
|
3308
|
+
stroke: '#444444',
|
3309
|
+
font: 'normal 10pt Arial',
|
3310
|
+
textAlign: 'center',
|
3311
|
+
}), this.$(go.Picture, icon, {
|
3312
|
+
row: 1,
|
3313
|
+
margin: new go.Margin(0, 0, 10, 0),
|
3314
|
+
alignment: go.Spot.Center,
|
3315
|
+
maxSize: new go.Size(60, 60),
|
3316
|
+
imageStretch: go.GraphObject.Uniform,
|
3317
|
+
}))));
|
3318
|
+
break;
|
3319
|
+
}
|
3320
|
+
if (node) {
|
3321
|
+
this.myDiagram.nodeTemplateMap.set(title, node);
|
3322
|
+
}
|
3323
|
+
}
|
3324
|
+
startAnimation() {
|
3325
|
+
const diagram = this.myDiagram;
|
3326
|
+
// setTimeout(() => {
|
3327
|
+
// diagram.links.each((link) => {
|
3328
|
+
// });
|
3329
|
+
// });
|
3330
|
+
try {
|
3331
|
+
this.animationInterval = setInterval(() => {
|
3332
|
+
const oldskips = diagram.skipsUndoManager;
|
3333
|
+
diagram.skipsUndoManager = true;
|
3334
|
+
diagram.links.each((link) => {
|
3335
|
+
const shape = link.findObject('PIPE');
|
3336
|
+
if (!!shape) {
|
3337
|
+
// const off = shape?.strokeDashOffset - 3;
|
3338
|
+
const off = shape?.strokeDashOffset - 9;
|
3339
|
+
// animate (move) the stroke dash
|
3340
|
+
shape.strokeDashOffset = off <= 0 ? 60 : off;
|
3341
|
+
}
|
3342
|
+
});
|
3343
|
+
diagram.skipsUndoManager = oldskips;
|
3344
|
+
}, 600);
|
3345
|
+
// 60
|
3346
|
+
}
|
3347
|
+
catch (e) { }
|
3348
|
+
}
|
3349
|
+
stopAnimation() {
|
3350
|
+
if (this.animationInterval) {
|
3351
|
+
clearInterval(this.animationInterval);
|
3352
|
+
}
|
3353
|
+
}
|
3354
|
+
toDataURL(url, callback) {
|
3355
|
+
const xhr = new XMLHttpRequest();
|
3356
|
+
xhr.onload = function () {
|
3357
|
+
const reader = new FileReader();
|
3358
|
+
reader.onloadend = function () {
|
3359
|
+
callback(reader.result);
|
3360
|
+
};
|
3361
|
+
reader.readAsDataURL(xhr.response);
|
3362
|
+
};
|
3363
|
+
xhr.open('GET', url);
|
3364
|
+
xhr.responseType = 'blob';
|
3365
|
+
xhr.send();
|
3366
|
+
}
|
3367
|
+
getBase64DiagramWithEmptyData() {
|
3368
|
+
const self = this;
|
3369
|
+
// Test
|
3370
|
+
// const newWindow = window.open('', 'newWindow');
|
3371
|
+
// if (!newWindow) {
|
3372
|
+
// return;
|
3373
|
+
// }
|
3374
|
+
// const newDocument = newWindow?.document;
|
3375
|
+
if (!this.myDiagram?.model?.nodeDataArray?.length &&
|
3376
|
+
!this.myDiagram?.model?.linkDataArray?.length) {
|
3377
|
+
return;
|
3378
|
+
}
|
3379
|
+
const svg = this.myDiagram.makeSvg({
|
3380
|
+
scale: this.defaultScaleZoomToFit,
|
3381
|
+
maxSize: new go.Size(1200, NaN),
|
3382
|
+
background: 'white',
|
3383
|
+
padding: 20,
|
3384
|
+
elementFinished: function (graphObject, svgElement) {
|
3385
|
+
svgElement.removeAttribute('clip-path');
|
3386
|
+
// Replace Image URL to base64 -> For showing Picture element
|
3387
|
+
if (graphObject instanceof go.Picture) {
|
3388
|
+
self.toDataURL(svgElement.href.baseVal, function (dataUrl) {
|
3389
|
+
svgElement.setAttribute('href', dataUrl);
|
3390
|
+
});
|
3391
|
+
}
|
3392
|
+
// Make Text Node Shape Border
|
3393
|
+
if (graphObject?.name === 'textNodeShape') {
|
3394
|
+
svgElement.setAttribute('stroke', 'rgba(64, 181, 206, 0.6)');
|
3395
|
+
}
|
3396
|
+
// Empty Value
|
3397
|
+
if (graphObject?.name === 'textBlockValue' ||
|
3398
|
+
graphObject?.name === 'textBlockUnitPrefixes') {
|
3399
|
+
svgElement.textContent = '';
|
3400
|
+
}
|
3401
|
+
if (svgElement.clipPath) {
|
3402
|
+
svgElement.clipPath = null;
|
3403
|
+
}
|
3404
|
+
},
|
3405
|
+
callback: (svg) => {
|
3406
|
+
setTimeout(() => {
|
3407
|
+
const svgStr = new XMLSerializer().serializeToString(svg);
|
3408
|
+
// For Test
|
3409
|
+
// newDocument?.body?.appendChild(svg);
|
3410
|
+
const base64Svg = `data:image/svg+xml;base64,${window.btoa(unescape(encodeURIComponent(svgStr)))}`;
|
3411
|
+
const img = new Image();
|
3412
|
+
img.src = base64Svg;
|
3413
|
+
const canvas = document.createElement('canvas');
|
3414
|
+
// get canvas context for drawing on canvas
|
3415
|
+
const context = canvas.getContext('2d');
|
3416
|
+
img.onload = function () {
|
3417
|
+
const svgWidth = img.width;
|
3418
|
+
const svgHeight = img.height;
|
3419
|
+
canvas.width = svgWidth;
|
3420
|
+
canvas.height = svgHeight;
|
3421
|
+
if (context) {
|
3422
|
+
context.drawImage(img, 0, 0);
|
3423
|
+
const base64PNG = canvas.toDataURL('image/jpeg');
|
3424
|
+
self.emitImageTopology(base64PNG.replace('data:image/jpeg;base64,', ''));
|
3425
|
+
}
|
3426
|
+
};
|
3427
|
+
}, 1000);
|
3428
|
+
},
|
3429
|
+
});
|
3430
|
+
}
|
3431
|
+
emitImageTopology(base64) {
|
3432
|
+
this.callbackImageTopology.emit(base64);
|
3433
|
+
}
|
3434
|
+
openActionMenu() {
|
3435
|
+
// When this node is clicked, adjust the menu position
|
3436
|
+
const mousePt = this.myDiagram.lastInput.viewPoint;
|
3437
|
+
// // When this node is clicked, display the dropdown menu
|
3438
|
+
const menu = document.getElementById(this.actionMenuId);
|
3439
|
+
if (menu) {
|
3440
|
+
menu.style.display = '';
|
3441
|
+
menu.style.position = 'absolute';
|
3442
|
+
menu.style.left = mousePt.x + 'px';
|
3443
|
+
menu.style.top = mousePt.y + 'px';
|
3444
|
+
this.menuTrigger.openMenu();
|
3445
|
+
}
|
3446
|
+
}
|
3447
|
+
unsubscribeAll() {
|
3448
|
+
if (this._subscriptionList) {
|
3449
|
+
this._subscriptionList.unsubscribe();
|
3450
|
+
}
|
3451
|
+
this._subscriptionList = new Subscription();
|
3452
|
+
}
|
3453
|
+
addSubscribes(...subscriptions) {
|
3454
|
+
subscriptions.forEach((el) => {
|
3455
|
+
this._subscriptionList.add(el);
|
3456
|
+
});
|
3457
|
+
}
|
3458
|
+
}
|
3459
|
+
AtoDefaultGojsEditor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoDefaultGojsEditor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
3460
|
+
AtoDefaultGojsEditor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AtoDefaultGojsEditor, inputs: { linkValidation: "linkValidation", initialOptions: "initialOptions", editor: "editor", isShowNodeInfo: "isShowNodeInfo", plantSatus: "plantSatus" }, outputs: { onModelChangeListenerEvent: "onModelChangeListenerEvent", onClickInfoButton: "onClickInfoButton", onOpenWizard: "onOpenWizard", onOpenDetail: "onOpenDetail", onOpenAssetParameter: "onOpenAssetParameter", onOpenInsightMapping: "onOpenInsightMapping", onHoverInfoButton: "onHoverInfoButton", onHoverAlert: "onHoverAlert", onDoubleClickNode: "onDoubleClickNode", onOpenChangeIcon: "onOpenChangeIcon", onClickCompoent: "onClickCompoent", callbackImageTopology: "callbackImageTopology", onClikParamOfTable: "onClikParamOfTable", onDeleteNode: "onDeleteNode", onUndo: "onUndo", onRename: "onRename" }, viewQueries: [{ propertyName: "menuTrigger", first: true, predicate: ["menuTrigger"], descendants: true }], ngImport: i0 });
|
3461
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoDefaultGojsEditor, decorators: [{
|
3462
|
+
type: Directive
|
3463
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { menuTrigger: [{
|
3464
|
+
type: ViewChild,
|
3465
|
+
args: ['menuTrigger']
|
3466
|
+
}], linkValidation: [{
|
3467
|
+
type: Input
|
3468
|
+
}], initialOptions: [{
|
3469
|
+
type: Input
|
3470
|
+
}], editor: [{
|
3471
|
+
type: Input
|
3472
|
+
}], isShowNodeInfo: [{
|
3473
|
+
type: Input
|
3474
|
+
}], plantSatus: [{
|
3475
|
+
type: Input
|
3476
|
+
}], onModelChangeListenerEvent: [{
|
3477
|
+
type: Output
|
3478
|
+
}], onClickInfoButton: [{
|
3479
|
+
type: Output
|
3480
|
+
}], onOpenWizard: [{
|
3481
|
+
type: Output
|
3482
|
+
}], onOpenDetail: [{
|
3483
|
+
type: Output
|
3484
|
+
}], onOpenAssetParameter: [{
|
3485
|
+
type: Output
|
3486
|
+
}], onOpenInsightMapping: [{
|
3487
|
+
type: Output
|
3488
|
+
}], onHoverInfoButton: [{
|
3489
|
+
type: Output
|
3490
|
+
}], onHoverAlert: [{
|
3491
|
+
type: Output
|
3492
|
+
}], onDoubleClickNode: [{
|
3493
|
+
type: Output
|
3494
|
+
}], onOpenChangeIcon: [{
|
3495
|
+
type: Output
|
3496
|
+
}], onClickCompoent: [{
|
3497
|
+
type: Output
|
3498
|
+
}], callbackImageTopology: [{
|
3499
|
+
type: Output
|
3500
|
+
}], onClikParamOfTable: [{
|
3501
|
+
type: Output
|
3502
|
+
}], onDeleteNode: [{
|
3503
|
+
type: Output
|
3504
|
+
}], onUndo: [{
|
3505
|
+
type: Output
|
3506
|
+
}], onRename: [{
|
3507
|
+
type: Output
|
3508
|
+
}] } });
|
3509
|
+
(function (AtoDefaultGojsEditor) {
|
3510
|
+
let ENUM_ACTIONS;
|
3511
|
+
(function (ENUM_ACTIONS) {
|
3512
|
+
ENUM_ACTIONS["DETAILS"] = "Open details & wizard";
|
3513
|
+
ENUM_ACTIONS["ONLY_DETAILS"] = "Open details";
|
3514
|
+
ENUM_ACTIONS["RENAME"] = "Rename this box";
|
3515
|
+
ENUM_ACTIONS["OUTFLOW"] = "Create an outflow";
|
3516
|
+
ENUM_ACTIONS["DELETE"] = "Delete";
|
3517
|
+
ENUM_ACTIONS["INSIGHT"] = "InSight tag mapping";
|
3518
|
+
ENUM_ACTIONS["DATA_MAPPING"] = "Data Mapping";
|
3519
|
+
ENUM_ACTIONS["MORE"] = "More";
|
3520
|
+
ENUM_ACTIONS["FLOW_DETAILS"] = "Flow details";
|
3521
|
+
ENUM_ACTIONS["FLOW_DETAILS_AND_WIZARD"] = "Flow details & wizard";
|
3522
|
+
ENUM_ACTIONS["ASSET_PARAMETERS"] = "Asset parameters";
|
3523
|
+
ENUM_ACTIONS["CHANGE_ICON"] = "Change icon";
|
3524
|
+
})(ENUM_ACTIONS = AtoDefaultGojsEditor.ENUM_ACTIONS || (AtoDefaultGojsEditor.ENUM_ACTIONS = {}));
|
3525
|
+
AtoDefaultGojsEditor.ACTIONS = {
|
3526
|
+
[ENUM_ACTIONS.DETAILS]: {
|
3527
|
+
name: ENUM_ACTIONS.DETAILS,
|
3528
|
+
iconClassName: 'far fa-memo-circle-info',
|
3529
|
+
onClick: () => { },
|
3530
|
+
},
|
3531
|
+
[ENUM_ACTIONS.FLOW_DETAILS]: {
|
3532
|
+
name: ENUM_ACTIONS.FLOW_DETAILS,
|
3533
|
+
iconClassName: 'far fa-arrow-progress',
|
3534
|
+
onClick: () => { },
|
3535
|
+
},
|
3536
|
+
[ENUM_ACTIONS.FLOW_DETAILS_AND_WIZARD]: {
|
3537
|
+
name: ENUM_ACTIONS.FLOW_DETAILS_AND_WIZARD,
|
3538
|
+
iconClassName: 'far fa-arrow-progress',
|
3539
|
+
onClick: () => { },
|
3540
|
+
},
|
3541
|
+
[ENUM_ACTIONS.ASSET_PARAMETERS]: {
|
3542
|
+
name: ENUM_ACTIONS.ASSET_PARAMETERS,
|
3543
|
+
iconClassName: 'far fa-box-archive',
|
3544
|
+
onClick: () => { },
|
3545
|
+
},
|
3546
|
+
[ENUM_ACTIONS.ONLY_DETAILS]: {
|
3547
|
+
name: ENUM_ACTIONS.ONLY_DETAILS,
|
3548
|
+
iconClassName: 'far fa-memo-circle-info',
|
3549
|
+
onClick: () => { },
|
3550
|
+
},
|
3551
|
+
[ENUM_ACTIONS.RENAME]: {
|
3552
|
+
name: ENUM_ACTIONS.RENAME,
|
3553
|
+
iconClassName: 'far fa-input-text',
|
3554
|
+
onClick: () => { },
|
3555
|
+
},
|
3556
|
+
[ENUM_ACTIONS.OUTFLOW]: {
|
3557
|
+
name: ENUM_ACTIONS.OUTFLOW,
|
3558
|
+
iconClassName: 'far fa-diagram-nested',
|
3559
|
+
onClick: () => { },
|
3560
|
+
},
|
3561
|
+
[ENUM_ACTIONS.DELETE]: {
|
3562
|
+
name: ENUM_ACTIONS.DELETE,
|
3563
|
+
iconClassName: 'fal fa-trash-can',
|
3564
|
+
onClick: () => { },
|
3565
|
+
},
|
3566
|
+
[ENUM_ACTIONS.INSIGHT]: {
|
3567
|
+
name: ENUM_ACTIONS.INSIGHT,
|
3568
|
+
iconClassName: 'far fa-tag',
|
3569
|
+
onClick: () => { },
|
3570
|
+
},
|
3571
|
+
[ENUM_ACTIONS.DATA_MAPPING]: {
|
3572
|
+
name: ENUM_ACTIONS.DATA_MAPPING,
|
3573
|
+
iconClassName: 'far fa-tag',
|
3574
|
+
onClick: () => { },
|
3575
|
+
},
|
3576
|
+
[ENUM_ACTIONS.MORE]: {
|
3577
|
+
name: ENUM_ACTIONS.MORE,
|
3578
|
+
iconClassName: 'fal fa-memo-circle-info',
|
3579
|
+
onClick: () => { },
|
3580
|
+
},
|
3581
|
+
[ENUM_ACTIONS.CHANGE_ICON]: {
|
3582
|
+
name: ENUM_ACTIONS.CHANGE_ICON,
|
3583
|
+
iconClassName: 'far fa-image',
|
3584
|
+
onClick: () => { },
|
3585
|
+
},
|
3586
|
+
};
|
3587
|
+
AtoDefaultGojsEditor.DISTANCE_2_OUTPUT = 60;
|
3588
|
+
})(AtoDefaultGojsEditor || (AtoDefaultGojsEditor = {}));
|
3589
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdC1nb2pzLWVkaXRvci5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2F0by13YXRlci1saWIvc3JjL2xpYi9tb2RlbHMvZGVmYXVsdC1nb2pz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Zygnc2VsZWN0YWJsZScsICdzZWxlY3RhYmxlJyksXG4gICAgICAgIG5ldyBnby5CaW5kaW5nKFxuICAgICAgICAgICdzdHJva2VXaWR0aCcsXG4gICAgICAgICAgJ3R5cGUnLFxuICAgICAgICAgICh4KSA9PiBBdG9Hb2pzRWRpdG9yTW9kZWwuTElOS19URU1QTEFURVNbeF0/LnN0cm9rZVdpZHRoXG4gICAgICAgIClcbiAgICAgIClcbiAgICApO1xuXG4gICAgLy8gYW5pbWF0aW9uXG4gICAgZWxlbWVudHMucHVzaChcbiAgICAgIHRoaXMuJChnby5TaGFwZSwge1xuICAgICAgICAuLi5BdG9Hb2pzRWRpdG9yTW9kZWwuTElOS19URU1QTEFURVNbXG4gICAgICAgICAgQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fTElOS19UWVBFUy5QSVBFX0FOSU1BVElPTlxuICAgICAgICBdPy5hbmltYXRpb24sXG4gICAgICAgIHZpc2libGU6IHRydWUsXG4gICAgICAgIGZpbGw6ICd0cmFuc3BhcmVudCcsXG4gICAgICB9KVxuICAgICk7XG5cbiAgICBlbGVtZW50cy5wdXNoKFxuICAgICAgdGhpcy4kKFxuICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgJ1RvcCcsXG4gICAgICAgIHtcbiAgICAgICAgICBoZWlnaHQ6IDM4LFxuICAgICAgICAgIC8vIG1heFNpemU6IG5ldyBnby5TaXplKE5hTiwgMzYpLFxuICAgICAgICAgIC8vIHdpZHRoOiAxMDAsXG4gICAgICAgICAgLy8gbWluU2l6ZTogbmV3IGdvLlNpemUoMTAwLCA1KSwgLy8gxJDhurd0IGvDrWNoIHRoxrDhu5tjIHThu5FpIHRoaeG7g3UgbMOgIDEwMHg1MFxuICAgICAgICAgIGJhY2tncm91bmQ6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgICAgLy8gbGF5ZXJOYW1lOiAnQmFja2dyb3VuZExheWVyJyxcbiAgICAgICAgICAvLyBhbGlnbm1lbnQ6IGdvLlNwb3QuVG9wLFxuICAgICAgICAgIC8vIGFsaWdubWVudEZvY3VzOiBnby5TcG90LkxlZnQsXG4gICAgICAgICAgLy8gbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDUwLCAwKSxcbiAgICAgICAgICAvLyBzZWxlY3RhYmxlOiBmYWxzZSxcbiAgICAgICAgfSxcbiAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAndGV4dENvbXBvbmVudCcsICh4KSA9PiB7XG4gICAgICAgICAgcmV0dXJuIHggPyB0cnVlIDogZmFsc2U7XG4gICAgICAgIH0pLFxuICAgICAgICAvLyB0aGlzLiQoZ28uU2hhcGUsIHtcbiAgICAgICAgLy8gICAgIGhlaWdodDogMzAsXG4gICAgICAgIC8vICAgICBiYWNrZ3JvdW5kOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICAvLyAgICAgZmlsbDogJ3RyYW5zcGFyZW50JyxcbiAgICAgICAgLy8gICAgIC8vIHZpc2libGU6IGZhbHNlLFxuICAgICAgICAvLyB9KSxcbiAgICAgICAgdGhpcy4kKFxuICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICB7XG4gICAgICAgICAgICAvLyBtYXJnaW46IG5ldyBnby5NYXJnaW4oMCwgMCwgNTAsIDApLFxuICAgICAgICAgICAgc3Ryb2tlOiAnIzQ0NDQ0NCcsXG4gICAgICAgICAgICBmb250OiAnbm9ybWFsIDEwcHQgQXJpYWwnLFxuICAgICAgICAgICAgdGV4dEFsaWduOiAnbGVmdCcsXG4gICAgICAgICAgICBiYWNrZ3JvdW5kOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICAgICAgLy8gZWRpdGFibGU6IGZhbHNlLFxuICAgICAgICAgICAgLy8gYWxpZ25tZW50OiBnby5TcG90LkNlbnRlciwgLy8gxJDhuqNtIGLhuqNvIHbEg24gYuG6o24gbuG6sW0g4bufIHRydW5nIHTDom0gY+G7p2EgbsO6dFxuICAgICAgICAgICAgLy8gYWxpZ25tZW50Rm9jdXM6IGdvLlNwb3QuQ2VudGVyLCAvLyDEkOG6o20gYuG6o28gdsSDbiBi4bqjbiBraMO0bmcgYuG7iyBk4buLY2ggY2h1eeG7g24gcmEga2jhu49pIHRydW5nIHTDom1cbiAgICAgICAgICAgIHdyYXA6IGdvLlRleHRCbG9jay5XcmFwRml0LCAvLyBDaHV54buDbiBkw7JuZyDEkeG7gyB2xINuIGLhuqNuIGtow7RuZyB2xrDhu6N0IHJhIG5nb8OgaVxuICAgICAgICAgICAgLy8gc2VsZWN0YWJsZTogdHJ1ZSxcbiAgICAgICAgICAgIG92ZXJmbG93OiBnby5UZXh0QmxvY2suT3ZlcmZsb3dFbGxpcHNpcyxcbiAgICAgICAgICAgIHRvb2xUaXA6IHRoaXMuJChcbiAgICAgICAgICAgICAgJ1Rvb2xUaXAnLFxuICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgIG1hcmdpbjogNCxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ3RleHRDb21wb25lbnQnKVxuICAgICAgICAgICAgICApXG4gICAgICAgICAgICApLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAndGV4dENvbXBvbmVudCcpLFxuICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdiYWNrZ3JvdW5kJywgJ3RleHRDb21wb25lbnQnLCAoeCkgPT5cbiAgICAgICAgICAgIHggPyAnd2hpdGUnIDogJ3RyYW5zcGFyZW50J1xuICAgICAgICAgIClcbiAgICAgICAgICAvLyAgICAgbmV3IGdvLkJpbmRpbmcoJ21hcmdpbicsICdpc0Zvcm1hdCcsICh4KSA9PlxuICAgICAgICAgIC8vICAgICB4ID8gbmV3IGdvLk1hcmdpbig1LCAwLCA1LCA1KSA6IG5ldyBnby5NYXJnaW4oNSwgNSwgNSwgNSksXG4gICAgICAgICAgLy8gKSxcbiAgICAgICAgKVxuICAgICAgKVxuICAgICk7XG5cbiAgICAvLyBhcnJvd1xuICAgIGVsZW1lbnRzLnB1c2goXG4gICAgICB0aGlzLiQoXG4gICAgICAgIGdvLlNoYXBlLCAvLyB0aGUgXCJmcm9tXCIgYXJyb3doZWFkXG4gICAgICAgIHtcbiAgICAgICAgICAuLi5BdG9Hb2pzRWRpdG9yTW9kZWwuTElOS19URU1QTEFURVNbXG4gICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9MSU5LX1RZUEVTLlNJTVBMRVxuICAgICAgICAgIF0/LmFycm93LFxuICAgICAgICB9LFxuICAgICAgICBuZXcgZ28uQmluZGluZyhcbiAgICAgICAgICAndmlzaWJsZScsXG4gICAgICAgICAgJ3R5cGUnLFxuICAgICAgICAgICh4KSA9PlxuICAgICAgICAgICAgIVtcbiAgICAgICAgICAgICAgQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fTElOS19UWVBFUy5QSVBFX0FOSU1BVElPTixcbiAgICAgICAgICAgICAgQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fTElOS19UWVBFUy5QSVBFLFxuICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9MSU5LX1RZUEVTLlBJUEVfSElEREVOLFxuICAgICAgICAgICAgXS5pbmNsdWRlcyh4KVxuICAgICAgICApLFxuICAgICAgICBuZXcgZ28uQmluZGluZygnZmlsbCcsICdjb2xvcicpLFxuICAgICAgICBuZXcgZ28uQmluZGluZygnc3Ryb2tlJywgJ2NvbG9yJylcbiAgICAgIClcbiAgICApO1xuXG4gICAgLy8gVE9ETyBmaXggbGluayBjYW5ub3Qgc2VsZWN0ZWQgaW5zaWRlIGdyb3VwIHRlbXBsYXRlXG4gICAgdGhpcy5teURpYWdyYW0ubGlua1RlbXBsYXRlID0gdGhpcy4kKFx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F0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5MSUdIVF9CTFVFLFxuICAgICAgICAgIHN0cm9rZTogJ3RyYW5zcGFyZW50JyxcbiAgICAgICAgfSksXG4gICAgICAgIHRoaXMuJChcbiAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAnSG9yaXpvbnRhbCcsXG4gICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICByb3c6IDIsXG4gICAgICAgICAgICAgIGZvbnQ6ICdib2xkIDE0cHggQXJpYWwnLFxuICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5DRVJVTEVBTixcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBuZXcgZ28uQmluZGluZygnZWRpdGFibGUnLCAnaXNFZGl0YWJsZScpLFxuICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnc2hvcnRlbmVkTnVtYmVyJykubWFrZVR3b1dheSgpLFxuICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3N0cm9rZScsICdjb2xvcicpLFxuICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ21hcmdpbicsICdpc0Zvcm1hdCcsICh4KSA9PlxuICAgICAgICAgICAgICB4ID8gbmV3IGdvLk1hcmdpbig1LCAwLCA1LCA1KSA6IG5ldyBnby5NYXJnaW4oNSwgNSwgNSwgNSlcbiAgICAgICAgICAgICksXG4gICAgICAgICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICcnLCBmdW5jdGlvbiAoZGF0YSkge1xuICAgICAgICAgICAgICByZXR1cm4gZGF0YS52YWx1ZSAhPT0gVkFMVUVfTkE7XG4gICAgICAgICAgICB9KVxuICAgICAgICAgICksXG4gICAgICAgICAgLy8gSWNvbiBFcnIgd2hlbiBsYWNrIG9mIHZhbHVlXG4gICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMTAsIDEwLCAxMCwgMTApLFxuICAgICAgICAgICAgICB0ZXh0OiBWQUxVRV9OQSwgLy8gT2xkIHZlcnNpb246IFRFWFRfRVJST1JcbiAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgZm9udDogJ2JvbGQgMTBwdCBzYW5zLXNlcmlmJyxcbiAgICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuU0FMTU9OLFxuICAgICAgICAgICAgICB3cmFwOiBnby5UZXh0QmxvY2suV3JhcEZpdCxcbiAgICAgICAgICAgICAgZWRpdGFibGU6IGZhbHNlLFxuICAgICAgICAgICAgICBpc011bHRpbGluZTogZmFsc2UsXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAnJywgZnVuY3Rpb24gKGRhdGEpIHtcbiAgICAgICAgICAgICAgcmV0dXJuIGRhdGEudmFsdWUgPT09IFZBTFVFX05BO1xuICAgICAgICAgICAgfSlcbiAgICAgICAgICApXG4gICAgICAgIClcbiAgICAgIClcbiAgICApO1xuICAgIHRoaXMubXlEaWFncmFtLm5vZGVUZW1wbGF0ZU1hcC5zZXQoXG4gICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuVkFMVUVfTk9ERSxcbiAgICAgIG5vZGVcbiAgICApO1xuICB9XG5cbiAgbWFrZUVtcHR5Tm9kZVRlbXBsYXRlKHNpemU6IHsgdzogbnVtYmVyOyBoOiBudW1iZXIgfSA9IHsgdzogMCwgaDogMCB9KSB7XG4gICAgY29uc3Qgbm9kZSA9IHRoaXMuJChcbiAgICAgIGdvLk5vZGUsXG4gICAgICAnU3BvdCcsXG4gICAgICB7fSxcbiAgICAgIG5ldyBnby5CaW5kaW5nKCdsb2NhdGlvbicsICdsb2MnLCBnby5Qb2ludC5wYXJzZSkubWFrZVR3b1dheShcbiAgICAgICAgZ28uUG9pbnQuc3RyaW5naWZ5XG4gICAgICApXG4gICAgKTtcbiAgICB0aGlzLm15RGlhZ3JhbS5ub2RlVGVtcGxhdGVNYXAuc2V0KFxuICAgICAgQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLkVNUFRZLFxuICAgICAgbm9kZVxuICAgICk7XG4gIH1cblxuICBtYWtlVmFsdWVMYWJlbFRlbXBsYXRlKHNpemU6IHsgdzogbnVtYmVyOyBoOiBudW1iZXIgfSA9IHsgdzogODIsIGg6IDM2IH0pIHtcbiAgICBjb25zdCBub2RlID0gdGhpcy4kKFxuICAgICAgZ28uTm9kZSxcbiAgICAgICdBdXRvJyxcbiAgICAgIHtcbiAgICAgICAgbW92YWJsZTogZmFsc2UsXG4gICAgICB9LFxuICAgICAgbmV3IGdvLkJpbmRpbmcoJ2xvY2F0aW9uJywgJ2xvYycsIGdvLlBvaW50LnBhcnNlKS5tYWtlVHdvV2F5KFxuICAgICAgICBnby5Qb2ludC5zdHJpbmdpZnlcbiAgICAgICksXG4gICAgICB0aGlzLiQoXG4gICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAnQXV0bycsXG4gICAgICAgIHsgbWluU2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53LCBzaXplLmgpIH0sXG4gICAgICAgIHRoaXMuJChcbiAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAnSG9yaXpvbnRhbCcsXG4gICAgICAgICAge1xuICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDEwLCAwLCAxMCksXG4gICAgICAgICAgfSxcbiAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigwLCA1LCAxMCwgMCksXG4gICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAgICAgICAgIGZvbnQ6ICdib2xkIDE1cHggc2Fucy1zZXJpZicsXG4gICAgICAgICAgICAgIHdyYXA6IGdvLlRleHRCbG9jay5XcmFwRml0LFxuICAgICAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5DRVJVTEVBTixcbiAgICAgICAgICAgICAgbWluU2l6ZTogbmV3IGdvLlNpemUoMTUwLCAzMCksIC8vIFNldCB0aGUgd2lkdGggb2YgdGhlIHRleHQgYmxvY2tcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBuZXcgZ28uQmluZGluZygnc3Ryb2tlJywgJ2NvbG9yJyksXG4gICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICdkYXRhJywgKHgpID0+IHtcbiAgICAgICAgICAgICAgaWYgKHR5cGVvZiB4Py5xdWFudGl0eSAhPT0gJ251bWJlcicpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gJyc7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgY29uc3QgZm9ybWF0dGVkOiBhbnkgPSBVdGlsc1NlcnZpY2UuY29udmVydFByZWZpeGVzRGF0YSh7XG4gICAgICAgICAgICAgICAgdmFsdWU6IHg/LnF1YW50aXR5LFxuICAgICAgICAgICAgICAgIHVuaXQ6IFV0aWxzU2VydmljZS5jb252ZXJ0U3BlY2lhbFVuaXQoeD8udW5pdCksXG4gICAgICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgICAgIGxldCByZXRWYWx1ZSA9XG4gICAgICAgICAgICAgICAgZm9ybWF0dGVkLnNob3J0ZW5lZE51bWJlciArXG4gICAgICAgICAgICAgICAgICAnICcgK1xuICAgICAgICAgICAgICAgICAgZm9ybWF0dGVkLnVuaXRQcmVmaXhlcyArXG4gICAgICAgICAgICAgICAgICBVdGlsc1NlcnZpY2UuY29udmVydFNwZWNpYWxVbml0KHg/LnVuaXQpID8/ICcnO1xuICAgICAgICAgICAgICBpZiAoeD8ucGVyY2VudCkge1xuICAgICAgICAgICAgICAgIHJldFZhbHVlICs9IGAgKCR7eD8ucGVyY2VudH0lKWA7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgcmV0dXJuIHJldFZhbHVlO1xuICAgICAgICAgICAgfSksXG4gICAgICAgICAgICBuZXcgZ28uQmluZGluZyhcbiAgICAgICAgICAgICAgJ3Zpc2libGUnLFxuICAgICAgICAgICAgICAnZGF0YScsXG4gICAgICAgICAgICAgICh4KSA9PiB0eXBlb2YgeD8ucXVhbnRpdHkgPT09ICdudW1iZXInXG4gICAgICAgICAgICApXG4gICAgICAgICAgKVxuICAgICAgICApXG4gICAgICApXG4gICAgKTtcbiAgICB0aGlzLm15RGlhZ3JhbS5ub2RlVGVtcGxhdGVNYXAuc2V0KFxuICAgICAgQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLlZBTFVFX0xBQkVMLFxuICAgICAgbm9kZVxuICAgICk7XG4gIH1cblxuICBtYWtlVGV4dExhYmVsVGVtcGxhdGUoc2l6ZTogeyB3OiBudW1iZXI7IGg6IG51bWJlciB9ID0geyB3OiBOYU4sIGg6IDIwIH0pIHtcbiAgICBjb25zdCBub2RlID0gdGhpcy4kKFxuICAgICAgZ28uTm9kZSxcbiAgICAgICdBdXRvJyxcbiAgICAgIHtcbiAgICAgICAgbW92YWJsZTogZmFsc2UsXG4gICAgICAgIGlzU2VsZWN0ZWQ6IGZhbHNlLFxuICAgICAgfSxcbiAgICAgIG5ldyBnby5CaW5kaW5nKCdsb2NhdGlvbicsICdsb2MnLCBnby5Qb2ludC5wYXJzZSkubWFrZVR3b1dheShcbiAgICAgICAgZ28uUG9pbnQuc3RyaW5naWZ5XG4gICAgICApLFxuICAgICAgdGhpcy4kKFxuICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgJ0F1dG8nLFxuICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgJ0hvcml6b250YWwnLFxuXG4gICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMCwgNSwgMTAsIDApLFxuICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICBmb250OiAnYm9sZCAxNnB4IEFyaWFsJyxcbiAgICAgICAgICAgICAgd3JhcDogZ28uVGV4dEJsb2NrLldyYXBGaXQsXG4gICAgICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLkNFUlVMRUFOLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdzdHJva2UnLCAnY29sb3InKSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWUnKSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd2aXNpYmxlJywgJ3Zpc2libGUnKVxuICAgICAgICAgIClcbiAgICAgICAgKVxuICAgICAgKVxuICAgICk7XG4gICAgdGhpcy5teURpYWdyYW0ubm9kZVRlbXBsYXRlTWFwLnNldChcbiAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5URVhUX0xBQkVMLFxuICAgICAgbm9kZVxuICAgICk7XG4gIH1cblxuICBtYWtlVGV4dFRlbXBsYXRlKFxuICAgIHNpemU6IHsgdzogbnVtYmVyOyBoOiBudW1iZXIgfSA9IHtcbiAgICAgIHc6IEF0b0dvanNFZGl0b3JNb2RlbC5HUklEX1NJWkUgKiA1LFxuICAgICAgaDogQXR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kYXRhKTtcbiAgICAgICAgLy8gICAgIH1cbiAgICAgICAgLy8gfSxcbiAgICAgICAgLy8gbW91c2VIb3ZlcjogKGUsIG9iaikgPT4ge1xuICAgICAgICAvLyAgICAgY29uc3Qgbm9kZSA9IG9iai5wYXJ0O1xuICAgICAgICAvLyAgICAgaWYgKChvYmogYXMgYW55KS5wYXJ0Py5vYj8udmFsdWUgPT09IFZBTFVFX05BKSB7XG4gICAgICAgIC8vICAgICAgICAgc2VsZi5vbkhvdmVySW5mb0J1dHRvbi5lbWl0KHtcbiAgICAgICAgLy8gICAgICAgICAgICAgbGVmdDogZT8uWydXciddPy54ICsgOCxcbiAgICAgICAgLy8gICAgICAgICAgICAgdG9wOiBlPy5bJ1dyJ10/LnksXG4gICAgICAgIC8vICAgICAgICAgICAgIG5vZGU6IG5vZGUsXG4gICAgICAgIC8vICAgICAgICAgfSk7XG4gICAgICAgIC8vICAgICB9XG4gICAgICAgIC8vIH0sXG4gICAgICAgIC8vIG1vdXNlTGVhdmU6IChlLCBvYmopID0+IHtcbiAgICAgICAgLy8gICAgIGlmICgob2JqIGFzIGFueSkucGFydD8ub2I/LnZhbHVlID09PSBWQUxVRV9OQSkge1xuICAgICAgICAvLyAgICAgICAgIHNlbGYub25Ib3ZlckluZm9CdXR0b24uZW1pdChudWxsKTtcbiAgICAgICAgLy8gICAgIH1cbiAgICAgICAgLy8gfSxcbiAgICAgICAgY2xpY2s6IChlLCBvYmo6IGFueSkgPT4ge1xuICAgICAgICAgIGNvbnN0IG5vZGUgPSBvYmoucGFydDtcbiAgICAgICAgICBpZiAobm9kZT8ub2I/LmlzVHlwZUluZmxvd09mUGxhbnRDZWxsKSB7XG4gICAgICAgICAgICAvLyBvYmo/LmRhdGE/Lm9uU2VsZWN0ZWQobm9kZT8ub2I/Lm5vZGVQbGFudENlbGxQYXJlbnQpO1xuICAgICAgICAgICAgLy8gc2VsZi5vbkNsaWNrQ29tcG9lbnQuZW1pdCh7XG4gICAgICAgICAgICAvLyAgICAgbGVmdDogZT8uWydXciddPy54LFxuICAgICAgICAgICAgLy8gICAgIHRvcDogZT8uWydXciddPy55LFxuICAgICAgICAgICAgLy8gICAgIG5vZGU6IHtcbiAgICAgICAgICAgIC8vICAgICAgICAgb2I6IG5vZGU/Lm9iPy5ub2RlUGxhbnRDZWxsUGFyZW50LFxuICAgICAgICAgICAgLy8gICAgIH0sXG4gICAgICAgICAgICAvLyAgICAgY29tcG9uZW50OiBub2RlPy5vYj8ubm9kZVBsYW50Q2VsbFBhcmVudCxcbiAgICAgICAgICAgIC8vIH0pO1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgIH1cbiAgICAgICAgICBpZiAodGhpcy5faW5pdGlhbE9wdGlvbnM/LmlzUmVhZE9ubHkpIHtcbiAgICAgICAgICAgIHRoaXMuaXNTaG93Tm9kZUluZm9cbiAgICAgICAgICAgICAgPyBzZWxmLm9uQ2xpY2tJbmZvQnV0dG9uLmVtaXQoe1xuICAgICAgICAgICAgICAgICAgbGVmdDogZT8uWydXciddPy54LFxuICAgICAgICAgICAgICAgICAgdG9wOiBlPy5bJ1dyJ10/LnksXG4gICAgICAgICAgICAgICAgICBub2RlOiBub2RlLFxuICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgIDogbnVsbDtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIGRvdWJsZUNsaWNrOiAoZSwgb2JqOiBhbnkpID0+IHtcbiAgICAgICAgICBjb25zdCBub2RlID0gb2JqLnBhcnQ7XG4gICAgICAgICAgaWYgKFxuICAgICAgICAgICAgbm9kZT8ub2I/LmlzVHlwZUluZmxvd09mUGxhbnRDZWxsICYmXG4gICAgICAgICAgICAhdGhpcy5faW5pdGlhbE9wdGlvbnM/LmlzUmVhZE9ubHlcbiAgICAgICAgICApIHtcbiAgICAgICAgICAgIC8vIG9iaj8uZGF0YT8ub25TZWxlY3RlZChub2RlPy5vYj8ubm9kZVBsYW50Q2VsbFBhcmVudCk7XG4gICAgICAgICAgICAvLyB0aGlzLmlzU2hvd05vZGVJbmZvXG4gICAgICAgICAgICAvLyAgICAgPyBzZWxmLm9uRG91YmxlQ2xpY2tOb2RlLmVtaXQoe1xuICAgICAgICAgICAgLy8gICAgICAgICAgIGxlZnQ6IGU/LlsnV3InXT8ueCxcbiAgICAgICAgICAgIC8vICAgICAgICAgICB0b3A6IGU/LlsnV3InXT8ueSxcbiAgICAgICAgICAgIC8vICAgICAgICAgICBub2RlOiB7XG4gICAgICAgICAgICAvLyAgICAgICAgICAgICAgIG9iOiBub2RlPy5vYj8ubm9kZVBsYW50Q2VsbFBhcmVudCxcbiAgICAgICAgICAgIC8vICAgICAgICAgICB9LFxuICAgICAgICAgICAgLy8gICAgICAgfSlcbiAgICAgICAgICAgIC8vICAgICA6IG51bGw7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgfVxuICAgICAgICAgIGlmICghdGhpcy5faW5pdGlhbE9wdGlvbnM/LmlzUmVhZE9ubHkpIHtcbiAgICAgICAgICAgIHRoaXMuaXNTaG93Tm9kZUluZm9cbiAgICAgICAgICAgICAgPyBzZWxmLm9uQ2xpY2tJbmZvQnV0dG9uLmVtaXQoe1xuICAgICAgICAgICAgICAgICAgbGVmdDogZT8uWydXciddPy54LFxuICAgICAgICAgICAgICAgICAgdG9wOiBlPy5bJ1dyJ10/LnksXG4gICAgICAgICAgICAgICAgICBub2RlOiBub2RlLFxuICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgIDogbnVsbDtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHNlbGVjdGlvbkFkb3JubWVudFRlbXBsYXRlOiB0aGlzLiQoXG4gICAgICAgICAgZ28uQWRvcm5tZW50LFxuICAgICAgICAgICdTcG90JyxcbiAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICAgIC8vIHsgaGVpZ2h0OiA2MiB9LFxuICAgICAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCB7XG4gICAgICAgICAgICAgIGZpbGw6IG51bGwsXG4gICAgICAgICAgICAgIHN0cm9rZTogJ2RvZGdlcmJsdWUnLFxuICAgICAgICAgICAgICBzdHJva2VXaWR0aDogNCxcbiAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICBnby5QbGFjZWhvbGRlcixcbiAgICAgICAgICAgICAgLy8geyBwYWRkaW5nOiBuZXcgZ28uTWFyZ2luKDgsIDMsIDAsIDMpIH0sXG4gICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdwYWRkaW5nJywgJycsICh4KSA9PiB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHg/LmlzVHlwZUluZmxvd09mUGxhbnRDZWxsXG4gICAgICAgICAgICAgICAgICA/IHg/LmZsb3dPZlBsYW50Q2VsbCA9PT0gQVRPX0VOVU1fRkxPV19ESVJFQ1RJT04uSU5GTE9XXG4gICAgICAgICAgICAgICAgICAgID8gbmV3IGdvLk1hcmdpbigwLCAwLCAwLCAyMClcbiAgICAgICAgICAgICAgICAgICAgOiBuZXcgZ28uTWFyZ2luKDAsIDIwLCAwLCAwKVxuICAgICAgICAgICAgICAgICAgOiBudWxsO1xuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgKSxcbiAgICAgICAgICAgIC8vIHRoaXMuJChnby5QbGFjZWhvbGRlciwgeyBwYWRkaW5nOiAzIH0pLFxuICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2hlaWdodCcsICcnLCAoeCkgPT4ge1xuICAgICAgICAgICAgICByZXR1cm4geD8uaXNUeXBlSW5mbG93T2ZQbGFudENlbGwgPyB4Py5oZWlnaHQgKyAxMCA6IG51bGw7XG4gICAgICAgICAgICB9KSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd3aWR0aCcsICcnLCAoeCkgPT4ge1xuICAgICAgICAgICAgICByZXR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cbiAgICAgIG5ldyBnby5CaW5kaW5nKCdzZWxlY3RhYmxlJywgJ3NlbGVjdGFibGUnKSxcbiAgICAgIG5ldyBnby5CaW5kaW5nKCdsb2NhdGlvbicsICdsb2MnLCBnby5Qb2ludC5wYXJzZSkubWFrZVR3b1dheShcbiAgICAgICAgZ28uUG9pbnQuc3RyaW5naWZ5XG4gICAgICApLFxuICAgICAgLy8gbmV3IGdvLkJpbmRpbmcoJ2FsaWdubWVudCcsICdhbGlnbm1lbnQnLCBmdW5jdGlvbihsb2MpIHtcbiAgICAgIC8vICAgICByZXR1cm4gbmV3IGdvLlNwb3QoMCwgMCwgbG9jLngsIDApO1xuICAgICAgLy8gfSkub2ZPYmplY3QoKSxcblxuICAgICAgdGhpcy4kKFxuICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgJ0F1dG8nLFxuICAgICAgICB7XG4gICAgICAgICAgdG9vbFRpcDogdGhpcy4kKFxuICAgICAgICAgICAgJ1Rvb2xUaXAnLFxuICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBtYXJnaW46IDIsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJycsIGZ1bmN0aW9uIChkYXRhKSB7XG4gICAgICAgICAgICAgICAgaWYgKCFzZWxmLl9pbml0aWFsT3B0aW9ucy5pc1JlYWRPbmx5KSB7XG4gICAgICAgICAgICAgICAgICByZXR1cm4gZGF0YT8ubmFtZSA/PyBWQUxVRV9OQTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgaWYgKGRhdGE/LnZhbHVlID09PSBWQUxVRV9OQSB8fCBfLmlzTmlsKGRhdGE/LnZhbHVlKSkge1xuICAgICAgICAgICAgICAgICAgcmV0dXJuIE5PX0RBVEE7XG4gICAgICAgICAgICAgICAgICAvLyByZXR1cm4gVEVYVF9VTktOT1dOO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICByZXR1cm4gXy5yb3VuZChkYXRhPy52YWx1ZSwgMikudG9GaXhlZCgyKTtcbiAgICAgICAgICAgICAgfSkubWFrZVR3b1dheSgpXG4gICAgICAgICAgICApXG4gICAgICAgICAgKSxcbiAgICAgICAgfSxcbiAgICAgICAgdGhpcy4kKFxuICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICdUYWJsZScsXG4gICAgICAgICAgdGhpcy5hcnJvd0ZvclBsYW50Q2VsbChzaXplLCBBVE9fRU5VTV9GTE9XX0RJUkVDVElPTi5PVVRGTE9XKSxcbiAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICAgIC8vIHsgd2lkdGg6IHNpemUudywgaGVpZ2h0OiBzaXplLmggfSxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgLy8gbWluU2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53LCBzaXplLmgpLFxuICAgICAgICAgICAgICAvLyBtYXhTaXplOiBuZXcgZ28uU2l6ZShzaXplLncsIHNpemUuaCksXG4gICAgICAgICAgICAgIGRlc2lyZWRTaXplOiBuZXcgZ28uU2l6ZShzaXplLncsIHNpemUuaCksXG4gICAgICAgICAgICAgIGNvbHVtbjogMSxcbiAgICAgICAgICAgICAgcm93OiAyLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd3aWR0aCcsICd3aWR0aCcpLFxuICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2hlaWdodCcsICdoZWlnaHQnKSxcblxuICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICBnby5TaGFwZSxcbiAgICAgICAgICAgICAgJ1JvdW5kZWRSZWN0YW5nbGUnLFxuICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgZmlsbDogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLkxJR0hUX0JMVUUsXG4gICAgICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuTElOS19XQVRFUixcbiAgICAgICAgICAgICAgICBuYW1lOiAndGV4dE5vZGVTaGFwZScsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdmaWxsJywgJ2ZpbGwnKSxcbiAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3N0cm9rZScsICdzdHJva2UnKVxuICAgICAgICAgICAgKSxcbiAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICdWZXJ0aWNhbCcsXG4gICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAnSG9yaXpvbnRhbCcsXG4gICAgICAgICAgICAgICAgeyBhbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyIH0sXG4gICAgICAgICAgICAgICAgLy8gQWxlcnRcblxuICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMCwgMCwgMCwgNSksXG4gICAgICAgICAgICAgICAgICAgIHZpc2libGU6IGZhbHNlLFxuICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd2aXNpYmxlJywgJ3JlY29tbWVuZGF0aW9uJyksXG4gICAgICAgICAgICAgICAgICB0aGlzLiQoZ28uU2hhcGUsICdDaXJjbGUnLCB7XG4gICAgICAgICAgICAgICAgICAgIGZpbGw6ICcjRTk1RjQ3JyxcbiAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiAnI0U5NUY0NycsXG4gICAgICAgICAgICAgICAgICAgIHdpZHRoOiAxNSxcbiAgICAgICAgICAgICAgICAgICAgaGVpZ2h0OiAxNSxcbiAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywge1xuICAgICAgICAgICAgICAgICAgICB0ZXh0OiAnXFx1ZjY0OScsXG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigxLjUsIDAsIDAsIDApLFxuICAgICAgICAgICAgICAgICAgICBmb250OiAnOHB4IFwiRm9udCBBd2Vzb21lIDYgUHJvXCInLFxuICAgICAgICAgICAgICAgICAgICBzdHJva2U6ICcjZmZmJyxcbiAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICB0aGlzLl9pbml0aWFsT3B0aW9ucy5pc1JlYWRPbmx5XG4gICAgICAgICAgICAgICAgICA/IHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAgICAgICAnUG9zaXRpb24nLFxuICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHdpZHRoOiAxOCxcbiAgICAgICAgICAgICAgICAgICAgICAgIGhlaWdodDogMTUsXG4gICAgICAgICAgICAgICAgICAgICAgICB2aXNpYmxlOiBmYWxzZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5DZW50ZXIsXG4gICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMCwgMCwgMCwgNSksXG4gICAgICAgICAgICAgICAgICAgICAgICBtb3VzZUVudGVyOiAoZSwgb2JqKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIHNlbGYub25Ib3ZlckFsZXJ0LmVtaXQoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxlZnQ6IGU/LlsnV3InXT8ueCArIDgsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdG9wOiBlPy5bJ1dyJ10/LnksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbWVzc2FnZUFsZXJ0OiAob2JqIGFzIGFueSkucGFydD8ub2I/Lm1lc3NhZ2VBbGVydCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgbW91c2VMZWF2ZTogKGUsIG9iaikgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxmLm9uSG92ZXJBbGVydC5lbWl0KG51bGwpO1xuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd2aXNpYmxlJywgJ2FsZXJ0JyksXG5cbiAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoZ28uUGljdHVyZSwgSUNPTl9BTEVSVCwge1xuICAgICAgICAgICAgICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkNlbnRlcixcbiAgICAgICAgICAgICAgICAgICAgICAgIG1heFNpemU6IG5ldyBnby5TaXplKDMwLCAzMCksXG4gICAgICAgICAgICAgICAgICAgICAgICBpbWFnZVN0cmV0Y2g6IGdvLkdyYXBoT2JqZWN0LlVuaWZvcm0sXG4gICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgOiAnJ1xuICAgICAgICAgICAgICApLFxuXG4gICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICBuYW1lOiAndGV4dEJsb2NrVmFsdWUnLFxuICAgICAgICAgICAgICAgICAgICByb3c6IDIsXG4gICAgICAgICAgICAgICAgICAgIGVkaXRhYmxlOiBmYWxzZSxcbiAgICAgICAgICAgICAgICAgICAgZGVzaXJlZFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDgsIDE4KSxcbiAgICAgICAgICAgICAgICAgICAgZm9udDogJ2JvbGQgMjJweCBBcmlhbCcsXG4gICAgICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAgICAgICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLkdSQVksXG4gICAgICAgICAgICAgICAgICAgIG92ZXJmbG93OiBnby5UZXh0QmxvY2suT3ZlcmZsb3dFbGxpcHNpcyxcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAvLyBuZXcgZ28uQmluZGluZygnZWRpdGFibGUnLCAnaXNFZGl0YWJsZScpLFxuICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2FuZ2xlJywgJ2FuZ2xlJyksXG4gICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnbWFyZ2luJywgJycsIChkYXRhKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGlmIChkYXRhPy5hbGVydCkge1xuICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBuZXcgZ28uTWFyZ2luKDAsIDAsIDAsIDApO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBuZXcgZ28uTWFyZ2luKDAsIDAsIDAsIDApO1xuICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnc3Ryb2tlJywgJ2NvbG9yJyksX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Jyb3dGb3JQbGFudENlbGwoc2l6ZSwgZmxvd0RpcmVjdGlvbikge1xuICAgIHJldHVybiB0aGlzLiQoXG4gICAgICBnby5QYW5lbCxcbiAgICAgICdUYWJsZScsXG4gICAgICB7XG4gICAgICAgIGhlaWdodDogc2l6ZS5oLFxuICAgICAgfSxcbiAgICAgIG5ldyBnby5CaW5kaW5nKCdoZWlnaHQnLCAnaGVpZ2h0JyksXG4gICAgICBuZXcgZ28uQmluZGluZyhcbiAgICAgICAgJ3Zpc2libGUnLFxuICAgICAgICAnJyxcbiAgICAgICAgKGRhdGEpID0+IGRhdGE/LmZsb3dPZlBsYW50Q2VsbCA9PT0gZmxvd0RpcmVjdGlvblxuICAgICAgKSxcbiAgICAgIHtcbiAgICAgICAgY29sdW1uOiBmbG93RGlyZWN0aW9uID09PSBBVE9fRU5VTV9GTE9XX0RJUkVDVElPTi5PVVRGTE9XID8gMCA6IDIsXG4gICAgICAgIHJvdzogMixcbiAgICAgIH0sXG4gICAgICBuZXcgZ28uQmluZGluZygnaXRlbUFycmF5JywgJ2RhdGFMaW5rQXJyYXknKSxcbiAgICAgIHtcbiAgICAgICAgaXRlbVRlbXBsYXRlOiB0aGlzLiQoXG4gICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3JvdycsICdpbmRleFJvdycpLFxuICAgICAgICAgIC8vIG5ldyBnby5CaW5kaW5nKCdoZWlnaHQnLCAnaGVpZ2h0JyksXG4gICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgZ28uUGljdHVyZSxcbiAgICAgICAgICAgIEFSUk9XLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZSgyMCwgNDApLFxuICAgICAgICAgICAgICAvLyBpbWFnZVN0cmV0Y2g6IGdvLkdyYXBoT2JqZWN0LlVuaWZvc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ICBpZiAob2JqPy5kYXRhPy5vblNlbGVjdGVkKSB7XG4gICAgICAgICAgICBvYmo/LmRhdGE/Lm9uU2VsZWN0ZWQob2JqPy5kYXRhKTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHNlbGVjdGlvbkNoYW5nZWQ6IChlKSA9PiB7XG4gICAgICAgICAgaWYgKCFlLmlzU2VsZWN0ZWQgJiYgZT8uZGF0YT8ub25TZWxlY3RlZCkge1xuICAgICAgICAgICAgZT8uZGF0YT8ub25TZWxlY3RlZChudWxsKTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICB9LFxuXG4gICAgICBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoXG4gICAgICAgIGdvLlBvaW50LnN0cmluZ2lmeVxuICAgICAgKSxcbiAgICAgIHRoaXMuJChcbiAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICdBdXRvJyxcbiAgICAgICAgdGhpcy4kKFxuICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICdUYWJsZScsXG4gICAgICAgICAge1xuICAgICAgICAgICAgbW91c2VIb3ZlcjogKGUsIG9iaikgPT4ge1xuICAgICAgICAgICAgICBpZiAoKG9iaiBhcyBhbnkpLnBhcnQ/Lm9iPy52YWx1ZSA9PT0gVkFMVUVfTkEpIHtcbiAgICAgICAgICAgICAgICBzZWxmLm9uSG92ZXJJbmZvQnV0dG9uLmVtaXQoe1xuICAgICAgICAgICAgICAgICAgbGVmdDogZT8uWydXciddPy54ICsgOCxcbiAgICAgICAgICAgICAgICAgIHRvcDogZT8uWydXciddPy55LFxuICAgICAgICAgICAgICAgICAgbm9kZTogbm9kZSxcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIG1vdXNlTGVhdmU6IChlLCBvYmopID0+IHtcbiAgICAgICAgICAgICAgaWYgKChvYmogYXMgYW55KS5wYXJ0Py5vYj8udmFsdWUgPT09IFZBTFVFX05BKSB7XG4gICAgICAgICAgICAgICAgc2VsZi5vbkhvdmVySW5mb0J1dHRvbi5lbWl0KG51bGwpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9LFxuICAgICAgICAgIH0sXG5cbiAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICAgIHsgcm93OiAwLCBzdHJldGNoOiBnby5HcmFwaE9iamVjdC5Ib3Jpem9udGFsIH0sXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgIGdvLlNoYXBlLFxuICAgICAgICAgICAgICAnUmVjdGFuZ2xlJyxcbiAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIGZpbGw6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5MSUdIVF9CTFVFLFxuICAgICAgICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLlJFU09MVVRJT05fQkxVRSxcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2ZpbGwnLCAnY29sb3InKVxuICAgICAgICAgICAgKSxcbiAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgcm93OiAwLFxuICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigxMCwgMTAsIDUsIDEwKSxcbiAgICAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZShzaXplLncsIE5hTiksXG4gICAgICAgICAgICAgICAgc3Ryb2tlOiAnd2hpdGUnLFxuICAgICAgICAgICAgICAgIGZvbnQ6ICdub3JtYWwgMTBwdCBBcmlhbCcsXG4gICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgICBzcGFjaW5nQmVsb3c6IDUsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWUnKS5tYWtlVHdvV2F5KClcbiAgICAgICAgICAgIClcbiAgICAgICAgICApLFxuICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgICAgeyByb3c6IDEsIHN0cmV0Y2g6IGdvLkdyYXBoT2JqZWN0Lkhvcml6b250YWwgfSxcbiAgICAgICAgICAgIHRoaXMuJChnby5TaGFwZSwgJ1JlY3RhbmdsZScsIHtcbiAgICAgICAgICAgICAgZmlsbDogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLkxJR0hUX0JMVUUsXG4gICAgICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLlJFU09MVVRJT05fQkxVRSxcbiAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgJ0hvcml6b250YWwnLFxuICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgIHJvdzogMixcbiAgICAgICAgICAgICAgICAgIC8vIGVkaXRhYmxlOiB0cnVlLFxuICAgICAgICAgICAgICAgICAgLy8gbWF4U2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gMTAsIDQwKSxcbiAgICAgICAgICAgICAgICAgIC8vIG1pblNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDEwLCBzaXplLmgpLFxuICAgICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDUsIDAsIDUsIDUpLFxuICAgICAgICAgICAgICAgICAgZm9udDogJ2JvbGQgMTJwdCBBcmlhbCcsXG4gICAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuR1JBWSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdlZGl0YWJsZScsICdpc0VkaXRhYmxlJyksXG4gICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnc2hvcnRlbmVkTnVtYmVyJykubWFrZVR3b1dheSgpLFxuICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdzdHJva2UnLCAnY29sb3InKSxcbiAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICcnLCBmdW5jdGlvbiAoZGF0YSkge1xuICAgICAgICAgICAgICAgICAgcmV0dXJuIGRhdGEudmFsdWUgIT09IFZBTFVFX05BO1xuICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgcm93OiAyLFxuICAgICAgICAgICAgICAgICAgLy8gZWRpdGFibGU6IHRydWUsXG4gICAgICAgICAgICAgICAgICAvLyBtYXhTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAxMCwgNDApLFxuICAgICAgICAgICAgICAgICAgLy8gbWluU2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gMTAsIHNpemUuaCksXG4gICAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oNSwgNSwgNSwgMCksXG4gICAgICAgICAgICAgICAgICBmb250OiAnYm9sZCAxMnB0IEFyaWFsJyxcbiAgICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAgICAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5HUkFZLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAnJywgZnVuY3Rpb24gKGRhdGEpIHtcbiAgICAgICAgICAgICAgICAgIHJldHVybiBkYXRhLnZhbHVlICE9PSBWQUxVRV9OQTtcbiAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICd1bml0UHJlZml4ZXMnKSxcbiAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnc3Ryb2tlJywgJ2NvbG9yJylcbiAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgLy8gSWNvbiBFcnIgd2hlbiBsYWNrIG9mIHZhbHVlXG4gICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDEwLCAxMCwgMTAsIDEwKSxcbiAgICAgICAgICAgICAgICAgIHRleHQ6IFZBTFVFX05BLCAvLyBPbGQgdmVyc2lvbjogVEVYVF9FUlJPUlxuICAgICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgICAgIGZvbnQ6ICdib2xkIDEwcHQgc2Fucy1zZXJpZicsXG4gICAgICAgICAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5TQUxNT04sXG4gICAgICAgICAgICAgICAgICB3cmFwOiBnby5UZXh0QmxvY2suV3JhcEZpdCxcbiAgICAgICAgICAgICAgICAgIGVkaXRhYmxlOiBmYWx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iAgICAgICAgICAgICAgbGVmdDogZT8uWydXciddPy54LFxuICAgICAgICAgICAgICB0b3A6IGU/LlsnV3InXT8ueSxcbiAgICAgICAgICAgICAgbm9kZTogbm9kZSxcbiAgICAgICAgICAgICAgY29tcG9uZW50OiBvYmo/LmRhdGEsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHNlbGVjdGlvbkNoYW5nZWQ6IChlKSA9PiB7XG4gICAgICAgICAgaWYgKCFlLmlzU2VsZWN0ZWQgJiYgZT8uZGF0YT8ub25TZWxlY3RlZCkge1xuICAgICAgICAgICAgZT8uZGF0YT8ub25TZWxlY3RlZChudWxsKTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHNlbGVjdGlvbkFkb3JubWVudFRlbXBsYXRlOiB0aGlzLl9pbml0aWFsT3B0aW9ucy5pc1JlYWRPbmx5XG4gICAgICAgICAgPyBudWxsXG4gICAgICAgICAgOiB0aGlzLiQoXG4gICAgICAgICAgICAgIGdvLkFkb3JubWVudCxcbiAgICAgICAgICAgICAgJ1Nwb3QnLFxuICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgc2hhZG93VmlzaWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgICBzaGFkb3dCbHVyOiA2LFxuICAgICAgICAgICAgICAgIHNoYWRvd09mZnNldDogbmV3IGdvLlBvaW50KDAsIDIpLFxuICAgICAgICAgICAgICAgIHNoYWRvd0NvbG9yOiAnIzAwMDAwMDI5JyxcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICAgICAgICB0aGlzLiQoZ28uU2hhcGUsIHtcbiAgICAgICAgICAgICAgICAgIGZpbGw6IG51bGwsXG4gICAgICAgICAgICAgICAgICBzdHJva2U6ICdkb2RnZXJibHVlJyxcbiAgICAgICAgICAgICAgICAgIHN0cm9rZVdpZHRoOiA0LFxuICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgIHRoaXMuJChnby5QbGFjZWhvbGRlciwgeyBwYWRkaW5nOiAzIH0pXG4gICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAnSG9yaXpvbnRhbCcsXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LlRvcFJpZ2h0LFxuICAgICAgICAgICAgICAgICAgYWxpZ25tZW50Rm9jdXM6IGdvLlNwb3QuQm90dG9tLFxuICAgICAgICAgICAgICAgICAgYmFja2dyb3VuZDogJ3doaXRlJyxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIC8vIG1vcmVcbiAgICAgICAgICAgICAgICAhdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seVxuICAgICAgICAgICAgICAgICAgPyB0aGlzLmdlbmVyYXRlQWN0aW9uR3JvdXAoXG4gICAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgICAgQXRvR29qc0VkaXRvck1vZGVsLk5PREVfVEVNUExBVEVTW1xuICAgICAgICAgICAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuUk9fV0FURVJfVFJFQVRNRU5UXG4gICAgICAgICAgICAgICAgICAgICAgICBdLm5hbWUsXG4gICAgICAgICAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuTk9ERV9URU1QTEFURVNbXG4gICAgICAgICAgICAgICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5DT09MSU5HX1RPV0VSXG4gICAgICAgICAgICAgICAgICAgICAgICBdLm5hbWUsXG4gICAgICAgICAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuTk9ERV9URU1QTEFURVNbXG4gICAgICAgICAgICAgICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5CT0lMRVJcbiAgICAgICAgICAgICAgICAgICAgICAgIF0ubmFtZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5OT0RFX1RFTVBMQVRFU1tcbiAgICAgICAgICAgICAgICAgICAgICAgICAgQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLklNTUVSU0VEX1VGX1dBVEVSX1RSRUFUTUVOVFNcbiAgICAgICAgICAgICAgICAgICAgICAgIF0ubmFtZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5OT0RFX1RFTVBMQVRFU1tcbiAgICAgICAgICAgICAgICAgICAgICAgICAgQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLlBSRVNTVVJJWkVEX1VGX1dBVEVSX1RSRUFUTUVOVFNcbiAgICAgICAgICAgICAgICAgICAgICAgIF0ubmFtZSxcbiAgICAgICAgICAgICAgICAgICAgICBdLmluY2x1ZGVzKHRpdGxlKVxuICAgICAgICAgICAgICAgICAgICAgICAgPyBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLlJFTkFNRSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuRkxPV19ERVRBSUxTLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5BU1NFVF9QQVJBTUVURVJTLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5PVVRGTE9XLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5ERUxFVEUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgIDogW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5SRU5BTUUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLkRFVEFJTFMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLk9VVEZMT1csXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLkRFTEVURSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICA6IHt9XG4gICAgICAgICAgICAgIClcbiAgICAgICAgICAgICksXG4gICAgICB9LFxuICAgICAgLy8gbmV3IGdvLkJpbmRpbmcoJ2xvY2F0aW9uJywgJ2xvYycsIGdvLlBvaW50LnBhcnNlKSxcbiAgICAgIG5ldyBnby5CaW5kaW5nKCdtb3ZhYmxlJywgJ21vdmFibGUnKSxcbiAgICAgIG5ldyBnby5CaW5kaW5nKCdzZWxlY3RhYmxlJywgJ3NlbGVjdGFibGUnKSxcbiAgICAgIG5ldyBnby5CaW5kaW5nKCdsb2NhdGlvbicsICdsb2MnLCBnby5Qb2ludC5wYXJzZSkubWFrZVR3b1dheShcbiAgICAgICAgZ28uUG9pbnQuc3RyaW5naWZ5XG4gICAgICApLFxuICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAndmlzaWJsZScpLFxuICAgICAgdGhpcy4kKFxuICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgJ0F1dG8nLFxuICAgICAgICB7IHdpZHRoOiBzaXplLncsIGhlaWdodDogc2l6ZS5oIH0sXG4gICAgICAgIHRoaXMuJChnby5TaGFwZSwgJ1JvdW5kZWRSZWN0YW5nbGUnLCB7XG4gICAgICAgICAgZmlsbDogJ3doaXRlJyxcbiAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5MSU5LX1dBVEVSLFxuICAgICAgICAgIHN0cm9rZVdpZHRoOiAxLFxuICAgICAgICAgIC8vIHN0cm9rZURhc2hBcnJheTogWzUsIDVdLFxuICAgICAgICB9KSxcbiAgICAgICAgdGhpcy4kKFxuICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICdUYWJsZScsXG4gICAgICAgICAgdGhpcy4kKGdvLlBpY3R1cmUsIGljb24sIHtcbiAgICAgICAgICAgIHJvdzogMSxcbiAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5DZW50ZXIsXG4gICAgICAgICAgICBkZXNpcmVkU2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gMjAsIHNpemUuaCAtIDUwKSxcbiAgICAgICAgICAgIC8vIG1heFNpemU6IG5ldyBnby5TaXplKDYwLCA2MCksXG4gICAgICAgICAgICBpbWFnZVN0cmV0Y2g6IGdvLkdyYXBoT2JqZWN0LlVuaWZvcm0sXG4gICAgICAgICAgICB0b29sVGlwOiB0aGlzLiQoXG4gICAgICAgICAgICAgICdUb29sVGlwJyxcbiAgICAgICAgICAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywge1xuICAgICAgICAgICAgICAgIG1hcmdpbjogNCxcbiAgICAgICAgICAgICAgICB0ZXh0OiB0aXRsZSxcbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICksXG4gICAgICAgICAgfSksXG4gICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICByb3c6IDIsXG4gICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigxMCwgMCwgMywgMCksXG4gICAgICAgICAgICAgIGVkaXRhYmxlOiB0cnVlLFxuICAgICAgICAgICAgICBkZXNpcmVkU2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gMjAsIDE1KSxcbiAgICAgICAgICAgICAgc3Ryb2tlOiAnIzAwMEQ0MicsXG4gICAgICAgICAgICAgIGZvbnQ6ICdib2xkIDEwcHQgQXJpYWwnLFxuICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICAvLyB3cmFwOiBnby5UZXh0QmxvY2suTm9uZSxcbiAgICAgICAgICAgICAgb3ZlcmZsb3c6IGdvLlRleHRCbG9jay5PdmVyZmxvd0VsbGlwc2lzLFxuICAgICAgICAgICAgICB0b29sVGlwOiB0aGlzLiQoXG4gICAgICAgICAgICAgICAgJ1Rvb2xUaXAnLFxuICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAgICAgIHsgbWFyZ2luOiA0IH0sXG4gICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJylcbiAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICksXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnbmFtZScpLm1ha2VUd29XYXkoKSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdlZGl0YWJsZScsICcnLCAoZGF0YSkgPT4ge1xuICAgICAgICAgICAgICByZXR1cm4gIShcbiAgICAgICAgICAgICAgICBBdG9Hb2pzRW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lbGVjdGVkKG51bGwpO1xuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgc2VsZWN0aW9uQWRvcm5tZW50VGVtcGxhdGU6IHRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHlcbiAgICAgICAgICA/IG51bGxcbiAgICAgICAgICA6IHRoaXMuJChcbiAgICAgICAgICAgICAgZ28uQWRvcm5tZW50LFxuICAgICAgICAgICAgICAnU3BvdCcsXG4gICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBzaGFkb3dWaXNpYmxlOiB0cnVlLFxuICAgICAgICAgICAgICAgIHNoYWRvd0JsdXI6IDYsXG4gICAgICAgICAgICAgICAgc2hhZG93T2Zmc2V0OiBuZXcgZ28uUG9pbnQoMCwgMiksXG4gICAgICAgICAgICAgICAgc2hhZG93Q29sb3I6ICcjMDAwMDAwMjknLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgICAgICAgIHRoaXMuJChnby5TaGFwZSwge1xuICAgICAgICAgICAgICAgICAgZmlsbDogbnVsbCxcbiAgICAgICAgICAgICAgICAgIHN0cm9rZTogJ2RvZGdlcmJsdWUnLFxuICAgICAgICAgICAgICAgICAgc3Ryb2tlV2lkdGg6IDQsXG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgdGhpcy4kKGdvLlBsYWNlaG9sZGVyLCB7IHBhZGRpbmc6IDMgfSlcbiAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICdIb3Jpem9udGFsJyxcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuVG9wUmlnaHQsXG4gICAgICAgICAgICAgICAgICBhbGlnbm1lbnRGb2N1czogZ28uU3BvdC5Cb3R0b20sXG4gICAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kOiAnd2hpdGUnLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgLy8gbW9yZVxuICAgICAgICAgICAgICAgIHRoaXMuZ2VuZXJhdGVBY3Rpb25Hcm91cChbXG4gICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuUkVOQU1FLFxuICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLkRFVEFJTFMsXG4gICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuT1VURkxPVyxcbiAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5ERUxFVEUsXG4gICAgICAgICAgICAgICAgXSlcbiAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgKSxcbiAgICAgIH0sXG4gICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICd2aXNpYmxlJyksXG4gICAgICBuZXcgZ28uQmluZGluZygnbW92YWJsZScsICdtb3ZhYmxlJyksXG4gICAgICBuZXcgZ28uQmluZGluZygnc2VsZWN0YWJsZScsICdzZWxlY3RhYmxlJyksXG4gICAgICBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoXG4gICAgICAgIGdvLlBvaW50LnN0cmluZ2lmeVxuICAgICAgKSxcbiAgICAgIHRoaXMuJChcbiAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICdBdXRvJyxcbiAgICAgICAgeyB3aWR0aDogc2l6ZS53LCBoZWlnaHQ6IHNpemUuaCB9LFxuICAgICAgICB0aGlzLiQoZ28uU2hhcGUsICdSb3VuZGVkUmVjdGFuZ2xlJywge1xuICAgICAgICAgIGZpbGw6ICd3aGl0ZScsXG4gICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuTElOS19XQVRFUixcbiAgICAgICAgICAvLyBzdHJva2VEYXNoQXJyYXk6IFs1LCA1XSxcbiAgICAgICAgfSksXG4gICAgICAgIHRoaXMuJChcbiAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAnVGFibGUnLFxuICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5URU1QTEFURV9EVVBMSUNBVEVbdGl0bGVdID8/IHRpdGxlLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICByb3c6IDAsXG4gICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigzLCAzLCAxMCwgMyksXG4gICAgICAgICAgICAgIG1heFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCAxNSksXG4gICAgICAgICAgICAgIHN0cm9rZTogJyM0NDQ0NDQnLFxuICAgICAgICAgICAgICBmb250OiAnbm9ybWFsIDEwcHQgQXJpYWwnLFxuICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICB0b29sVGlwOiB0aGlzLiQoXG4gICAgICAgICAgICAgICAgJ1Rvb2xUaXAnLFxuICAgICAgICAgICAgICAgIHRoaXMuJChnby5UZXh0QmxvY2ssIHtcbiAgICAgICAgICAgICAgICAgIG1hcmdpbjogNCxcbiAgICAgICAgICAgICAgICAgIHRleHQ6IHRpdGxlLFxuICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICksXG4gICAgICAgICAgICB9XG4gICAgICAgICAgKSxcbiAgICAgICAgICB0aGlzLiQoZ28uUGljdHVyZSwgaWNvbiwge1xuICAgICAgICAgICAgcm93OiAxLFxuICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkNlbnRlcixcbiAgICAgICAgICAgIGRlc2lyZWRTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAyMCwgc2l6ZS5oIC0gNjUpLFxuICAgICAgICAgICAgaW1hZ2VTdHJldGNoOiBnby5HcmFwaE9iamVjdC5Vbmlmb3JtLFxuICAgICAgICAgIH0pLFxuICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgcm93OiAyLFxuICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMTAsIDMsIDMsIDMpLFxuICAgICAgICAgICAgICBlZGl0YWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgbWF4U2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gMjAsIDE1KSxcbiAgICAgICAgICAgICAgc3Ryb2tlOiAnIzJDMkMyQycsXG4gICAgICAgICAgICAgIGZvbnQ6ICdib2xkIDEwcHQgQXJpYWwnLFxuICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICAvLyB3cmFwOiBnby5UZXh0QmxvY2suTm9uZSxcbiAgICAgICAgICAgICAgb3ZlcmZsb3c6IGdvLlRleHRCbG9jay5PdmVyZmxvd0VsbGlwc2lzLFxuICAgICAgICAgICAgICB0b29sVGlwOiB0aGlzLiQoXG4gICAgICAgICAgICAgICAgJ1Rvb2xUaXAnLFxuICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiA0LFxuICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWUnKS5tYWtlVHdvV2F5KClcbiAgICAgICAgICAgICAgICApXG4gICAgICAgICAg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pPy5maW5kT2JqZWN0KCdTSEFQRV9LRVknKTsgLy8gVGhheSAnU0hBUEVfS0VZJyBi4bqxbmcga2jDs2EgYuG6oW4gxJHhurd0IGNobyBow6xuaCBTaGFwZVxuICAgICAgICAgIC8vIGRlYnVnZ2VyO1xuICAgICAgICAgIGlmIChzaGFwZSkge1xuICAgICAgICAgICAgc2hhcGUuc3Ryb2tlID0gJ2JsdWUnOyAvLyBUaGF5IMSR4buVaSBtw6B1IHN0cm9rZSB0aMOgbmggYmx1ZVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgbW91c2VMZWF2ZTogKGUsIG9iaikgPT4ge1xuICAgICAgICAgIHNlbGYub25Ib3ZlckluZm9CdXR0b24uZW1pdChudWxsKTtcbiAgICAgICAgICAvLyBzZWxmLm9uSG92ZXJBbGVydC5lbWl0KG51bGwpO1xuICAgICAgICB9LFxuXG4gICAgICAgIGNsaWNrOiAoZSwgb2JqOiBhbnkpID0+IHtcbiAgICAgICAgICBpZiAob2JqPy5kYXRhPy5vblNlbGVjdGVkKSB7XG4gICAgICAgICAgICBvYmo/LmRhdGE/Lm9uU2VsZWN0ZWQob2JqPy5kYXRhKTtcbiAgICAgICAgICAgIHNlbGYub25DbGlja0NvbXBvZW50LmVtaXQoe1xuICAgICAgICAgICAgICBsZWZ0OiBlPy5bJ1dyJ10/LngsXG4gICAgICAgICAgICAgIHRvcDogZT8uWydXciddPy55LFxuICAgICAgICAgICAgICBub2RlOiBub2RlLFxuICAgICAgICAgICAgICBjb21wb25lbnQ6IG9iaj8uZGF0YSxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH1cbiAgICAgICAgfSxcblxuICAgICAgICBkb3VibGVDbGljazogKGUsIG9iajogYW55KSA9PiB7XG4gICAgICAgICAgaWYgKCF0aGlzLl9pbml0aWFsT3B0aW9ucz8uaXNSZWFkT25seSkge1xuICAgICAgICAgICAgY29uc3Qgbm9kZSA9IG9iai5wYXJ0O1xuICAgICAgICAgICAgdGhpcy5pc1Nob3dOb2RlSW5mb1xuICAgICAgICAgICAgICA/IHNlbGYub25Eb3VibGVDbGlja05vZGUuZW1pdCh7XG4gICAgICAgICAgICAgICAgICBsZWZ0OiBlPy5bJ1dyJ10/LngsXG4gICAgICAgICAgICAgICAgICB0b3A6IGU/LlsnV3InXT8ueSxcbiAgICAgICAgICAgICAgICAgIG5vZGU6IG5vZGUsXG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgOiBudWxsO1xuICAgICAgICAgIH1cbiAgICAgICAgfSxcblxuICAgICAgICAvLyBUb2RvXG5cbiAgICAgICAgc2VsZWN0aW9uQ2hhbmdlZDogKGUpID0+IHtcbiAgICAgICAgICBpZiAoIWUuaXNTZWxlY3RlZCAmJiBlPy5kYXRhPy5vblNlbGVjdGVkKSB7XG4gICAgICAgICAgICBlPy5kYXRhPy5vblNlbGVjdGVkKG51bGwpO1xuICAgICAgICAgIH1cbiAgICAgICAgfSxcblxuICAgICAgICBzZWxlY3Rpb25BZG9ybm1lbnRUZW1wbGF0ZTogdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seVxuICAgICAgICAgID8gbnVsbFxuICAgICAgICAgIDogdGhpcy4kKFxuICAgICAgICAgICAgICBnby5BZG9ybm1lbnQsXG4gICAgICAgICAgICAgICdTcG90JyxcbiAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIHNoYWRvd1Zpc2libGU6IHRydWUsXG4gICAgICAgICAgICAgICAgc2hhZG93Qmx1cjogNixcbiAgICAgICAgICAgICAgICBzaGFkb3dPZmZzZXQ6IG5ldyBnby5Qb2ludCgwLCAyKSxcbiAgICAgICAgICAgICAgICBzaGFkb3dDb2xvcjogJyMwMDAwMDAyOScsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICAgICAgeyB3aWR0aDogMTcwIH0sXG4gICAgICAgICAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCB7XG4gICAgICAgICAgICAgICAgICBmaWxsOiBudWxsLFxuICAgICAgICAgICAgICAgICAgc3Ryb2tlOiAnZG9kZ2VyYmx1ZScsXG4gICAgICAgICAgICAgICAgICBzdHJva2VXaWR0aDogNCxcbiAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICB0aGlzLiQoZ28uUGxhY2Vob2xkZXIsIHsgcGFkZGluZzogMyB9KVxuICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgJ0hvcml6b250YWwnLFxuICAgICAgICAgICAgICAgIHsgYWxpZ25tZW50OiBnby5TcG90LlRvcFJpZ2h0LCBhbGlnbm1lbnRGb2N1czogZ28uU3BvdC5Cb3R0b20gfSxcbiAgICAgICAgICAgICAgICAvLyBtb3JlXG4gICAgICAgICAgICAgICAgdGhpcy5nZW5lcmF0ZUFjdGlvbkdyb3VwKFtcbiAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5SRU5BTUUsXG4gICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuQ0hBTkdFX0lDT04sXG4gICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuT05MWV9ERVRBSUxTLFxuICAgICAgICAgICAgICAgICAgLy8gICBEZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuT1VURkxPVyxcbiAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5ERUxFVEUsXG4gICAgICAgICAgICAgICAgXSlcbiAgICAgICAgICAgICAgICAvLyAgIG5ldyBnby5CaW5kaW5nKCd2aXNpYmxlJywgJ2lzTm90QWN0aW9uJywgKHgpID0+ICF4KSxcbiAgICAgICAgICAgICAgKVxuXG4gICAgICAgICAgICAgIC8vICAgdGhpcy4kKFxuICAgICAgICAgICAgICAvLyAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgLy8gICAgICAgJ0hvcml6b250YWwnLFxuICAgICAgICAgICAgICAvLyAgICAgICB7IGFsaWdubWVudDogZ28uU3BvdC5Ub3BSaWdodCwgYWxpZ25tZW50Rm9jdXM6IGdvLlNwb3QuQm90dG9tIH0sXG4gICAgICAgICAgICAgIC8vICAgICAgIHRoaXMuZ2VuZXJhdGVBY3Rpb25Hcm91cChbRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLk9OTFlfREVUQUlMU10pLFxuICAgICAgICAgICAgICAvLyAgICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICcnLCAoeCkgPT4ge1xuICAgICAgICAgICAgICAvLyAgICAgICAgICAgcmV0dXJuIHg/LmlzT25seURldGFpbHMgJiYgIXg/LmlzTm90QWN0aW9uID8gdHJ1ZSA6IGZhbHNlO1xuICAgICAgICAgICAgICAvLyAgICAgICB9KSxcbiAgICAgICAgICAgICAgLy8gICApLFxuICAgICAgICAgICAgKSxcbiAgICAgIH0sXG4gICAgICBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoXG4gICAgICAgIGdvLlBvaW50LnN0cmluZ2lmeVxuICAgICAgKSxcbiAgICAgIHRoaXMuJChcbiAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICdBdXRvJyxcbiAgICAgICAgeyB3aWR0aDogc2l6ZS53LCBoZWlnaHQ6IHNpemUuaCB9LFxuICAgICAgICAvLyB0aGlzLiQoZ28uU2hhcGUsICdSb3VuZGVkUmVjdGFuZ2xlJywge1xuICAgICAgICAvLyAgICAgZmlsbDogJ3doaXRlJyxcbiAgICAgICAgLy8gICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLkxJTktfV0FURVIsXG4gICAgICAgIC8vICAgICAvLyBzdHJva2VEYXNoQXJyYXk6IFs1LCA1XSxcbiAgICAgICAgLy8gfSksXG4gICAgICAgIC8vIHRoaXMuJChnby5QbGFjZWhvbGRlciwgeyBwYWRkaW5nOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDAsIDApLCB2aXNpYmxlOiBmYWxzZSB9KSxcbiAgICAgICAgdGhpcy4kKFxuICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICB7XG4gICAgICAgICAgICBhbGlnbm1lbnRGb2N1czogZ28uU3BvdC5DZW50ZXIsXG4gICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMCwgNTAsIDAsIDUwKSxcbiAgICAgICAgICB9LFxuICAgICAgICAgIHRoaXMuJChnby5TaGFwZSwgJ1JvdW5kZWRSZWN0YW5nbGUnLCB7XG4gICAgICAgICAgICBmaWxsOiAnd2hpdGUnLFxuICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuTElOS19XQVRFUixcbiAgICAgICAgICAgIHN0cm9rZURhc2hBcnJheTogWzUsIDVdLFxuICAgICAgICAgIH0pLFxuICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgJ1RhYmxlJyxcbiAgICAgICAgICAgIHRoaXMuJChnby5UZXh0QmxvY2ssIHRpdGxlLCB7XG4gICAgICAgICAgICAgIHJvdzogMCxcbiAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDMsIDAsIDEwLCAwKSxcbiAgICAgICAgICAgICAgZGVzaXJlZFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCAxNSksXG4gICAgICAgICAgICAgIHN0cm9rZTogJyM0NDQ0NDQnLFxuICAgICAgICAgICAgICBmb250OiAnbm9ybWFsIDEwcHQgQXJpYWwnLFxuICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICB0b29sVGlwOiB0aGlzLiQoXG4gICAgICAgICAgICAgICAgJ1Rvb2xUaXAnLFxuICAgICAgICAgICAgICAgIHRoaXMuJChnby5UZXh0QmxvY2ssIHtcbiAgICAgICAgICAgICAgICAgIG1hcmdpbjogNCxcbiAgICAgICAgICAgICAgICAgIHRleHQ6IHRpdGxlLFxuICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICksXG4gICAgICAgICAgICB9KSxcbiAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgZ28uUGljdHVyZSxcbiAgICAgICAgICAgICAgaWNvbixcbiAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIHJvdzogMSxcbiAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgICAgIGRlc2lyZWRTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAyMCwgc2l6ZS5oIC0gNjUpLFxuICAgICAgICAgICAgICAgIGltYWdlU3RyZXRjaDogZ28uR3JhcGhPYmplY3QuVW5pZm9ybSxcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoXG4gICAgICAgICAgICAgICAgJ3NvdXJjZScsXG4gICAgICAgICAgICAgICAgJ3BhdGhJbWFnZScsXG4gICAgICAgICAgICAgICAgKHgpID0+XG4gICAgICAgICAgICAgICAgICB4ID8/XG4gICAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuTk9ERV9URU1QTEFURVNbXG4gICAgICAgICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5QTEFOVF9DRUxMXG4gICAgICAgICAgICAgICAgICBdLmljb25cbiAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgKSxcbiAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgcm93OiAyLFxuICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigxMCwgMCwgMywgMCksXG4gICAgICAgICAgICAgICAgZWRpdGFibGU6IHRydWUsXG4gICAgICAgICAgICAgICAgZGVzaXJlZFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCAxNSksXG4gICAgICAgICAgICAgICAgc3Ryb2tlOiAnIzJDMkMyQycsXG4gICAgICAgICAgICAgICAgZm9udDogJ2JvbGQgMTBwdCBBcmlhbCcsXG4gICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgICAvLyB3cmFwOiBnby5UZXh0QmxvY2suTm9uZSxcbiAgICAgICAgICAgICAgICBvdmVyZmxvdzogZ28uVGV4dEJsb2NrLk92ZXJmbG93RWxsaXBzaXMsXG4gICAgICAgICAgICAgICAgdG9vbFRpcDogdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgJ1Rvb2xUaXAnLFxuICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IDQsXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWUnKS5tYWtlVHdvV2F5KClcbiAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJykubWFrZVR3b1dheSgpXG4gICAgICAgICAgICApXG4gICAgICAgICAgKV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RvR29qc0VkaXRvck1vZGVsLkdSSURfU0laRSAqIDUsXG4gICAgfVxuICApIHtcbiAgICBjb25zdCBzZWxmID0gdGhpcztcbiAgICBsZXQgbm9kZSA9IHRoaXMuJChcbiAgICAgIGdvLk5vZGUsXG4gICAgICAnU3BvdCcsXG4gICAgICB7XG4gICAgICAgIGxvY2F0aW9uU3BvdDogZ28uU3BvdC5DZW50ZXIsXG4gICAgICAgIG1vdXNlT3ZlcjogZnVuY3Rpb24gKGUsIG9iaikge1xuICAgICAgICAgIC8vIHNlbGYuc2hvd1BvaW50KG9iaj8ucGFydD8ubG9jYXRpb24pO1xuICAgICAgICB9LFxuICAgICAgICBjbGljazogKGUsIG9iajogYW55KSA9PiB7XG4gICAgICAgICAgaWYgKG9iaj8uZGF0YT8ub25TZWxlY3RlZCkge1xuICAgICAgICAgICAgb2JqPy5kYXRhPy5vblNlbGVjdGVkKG9iaj8uZGF0YSk7XG4gICAgICAgICAgICBzZWxmLm9uQ2xpY2tDb21wb2VudC5lbWl0KHtcbiAgICAgICAgICAgICAgbGVmdDogZT8uWydXciddPy54LFxuICAgICAgICAgICAgICB0b3A6IGU/LlsnV3InXT8ueSxcbiAgICAgICAgICAgICAgbm9kZTogbm9kZSxcbiAgICAgICAgICAgICAgY29tcG9uZW50OiBvYmo/LmRhdGEsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHNlbGVjdGlvbkNoYW5nZWQ6IChlKSA9PiB7XG4gICAgICAgICAgaWYgKCFlLmlzU2VsZWN0ZWQgJiYgZT8uZGF0YT8ub25TZWxlY3RlZCkge1xuICAgICAgICAgICAgZT8uZGF0YT8ub25TZWxlY3RlZChudWxsKTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHNlbGVjdGlvbkFkb3JubWVudFRlbXBsYXRlOiB0aGlzLl9pbml0aWFsT3B0aW9ucy5pc1JlYWRPbmx5XG4gICAgICAgICAgPyBudWxsXG4gICAgICAgICAgOiB0aGlzLiQoXG4gICAgICAgICAgICAgIGdvLkFkb3JubWVudCxcbiAgICAgICAgICAgICAgJ1Nwb3QnLFxuICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgICAgICAgIHRoaXMuJChnby5TaGFwZSwge1xuICAgICAgICAgICAgICAgICAgZmlsbDogbnVsbCxcbiAgICAgICAgICAgICAgICAgIHN0cm9rZTogJ2RvZGdlcmJsdWUnLFxuICAgICAgICAgICAgICAgICAgc3Ryb2tlV2lkdGg6IDQsXG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgdGhpcy4kKGdvLlBsYWNlaG9sZGVyLCB7IHBhZGRpbmc6IDMgfSlcbiAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICdIb3Jpem9udGFsJyxcbiAgICAgICAgICAgICAgICB7IGFsaWdubWVudDogZ28uU3BvdC5Ub3BSaWdodCwgYWxpZ25tZW50Rm9jdXM6IGdvLlNwb3QuQm90dG9tIH0sXG4gICAgICAgICAgICAgICAgdGhpcy5nZW5lcmF0ZUFjdGlvbkdyb3VwKFtcbiAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5SRU5BTUUsXG4gICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuREVUQUlMUyxcbiAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5PVVRGTE9XLFxuICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLkRFTEVURSxcbiAgICAgICAgICAgICAgICBdKVxuICAgICAgICAgICAgICApXG4gICAgICAgICAgICApLFxuICAgICAgfSxcbiAgICAgIG5ldyBnby5CaW5kaW5nKCd2aXNpYmxlJywgJ3Zpc2libGUnKSxcbiAgICAgIG5ldyBnby5CaW5kaW5nKCdtb3ZhYmxlJywgJ21vdmFibGUnKSxcbiAgICAgIG5ldyBnby5CaW5kaW5nKCdzZWxlY3RhYmxlJywgJ3NlbGVjdGFibGUnKSxcbiAgICAgIG5ldyBnby5CaW5kaW5nKCdsb2NhdGlvbicsICdsb2MnLCBnby5Qb2ludC5wYXJzZSkubWFrZVR3b1dheShcbiAgICAgICAgZ28uUG9pbnQuc3RyaW5naWZ5XG4gICAgICApLFxuXG4gICAgICB0aGlzLiQoXG4gICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAnQXV0bycsXG4gICAgICAgIHsgd2lkdGg6IHNpemUudywgaGVpZ2h0OiBzaXplLmggfSxcbiAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCAnUm91bmRlZFJlY3RhbmdsZScsIHtcbiAgICAgICAgICBmaWxsOiAnd2hpdGUnLFxuICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLkxJTktfV0FURVIsXG4gICAgICAgICAgLy8gc3Ryb2tlRGFzaEFycmF5OiBbNSwgNV0sXG4gICAgICAgIH0pLFxuICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgJ1RhYmxlJyxcbiAgICAgICAgICAvLyB0aGlzLiQoZ28uVGV4dEJsb2NrLCB0aXRsZSwge1xuICAgICAgICAgIC8vICAgICByb3c6IDAsXG4gICAgICAgICAgLy8gICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigzLCAzLCAxMCwgMyksXG4gICAgICAgICAgLy8gICAgIG1heFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCBOYU4pLFxuICAgICAgICAgIC8vICAgICBzdHJva2U6ICcjNDQ0NDQ0JyxcbiAgICAgICAgICAvLyAgICAgZm9udDogJ25vcm1hbCAxMHB0IEFyaWFsJyxcbiAgICAgICAgICAvLyAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAvLyB9KSxcbiAgICAgICAgICB0aGlzLiQoZ28uUGljdHVyZSwgaWNvbiwge1xuICAgICAgICAgICAgcm93OiAxLFxuICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkNlbnRlcixcbiAgICAgICAgICAgIGRlc2lyZWRTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAyMCwgc2l6ZS5oIC0gNTApLFxuICAgICAgICAgICAgaW1hZ2VTdHJldGNoOiBnby5HcmFwaE9iamVjdC5Vbmlmb3JtLFxuICAgICAgICAgIH0pLFxuICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgcm93OiAyLFxuICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMTAsIDAsIDMsIDApLFxuICAgICAgICAgICAgICBlZGl0YWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgZGVzaXJlZFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCAxNSksXG4gICAgICAgICAgICAgIHN0cm9rZTogJyMwMDBENDInLFxuICAgICAgICAgICAgICBmb250OiAnYm9sZCAxMHB0IEFyaWFsJyxcbiAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgLy8gd3JhcDogZ28uVGV4dEJsb2NrLk5vbmUsXG4gICAgICAgICAgICAgIG92ZXJmbG93OiBnby5UZXh0QmxvY2suT3ZlcmZsb3dFbGxpcHNpcyxcbiAgICAgICAgICAgICAgdG9vbFRpcDogdGhpcy4kKFxuICAgICAgICAgICAgICAgICdUb29sVGlwJyxcbiAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbjogNCxcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJykubWFrZVR3b1dheSgpXG4gICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWUnKS5tYWtlVHdvV2F5KClcbiAgICAgICAgICAgIC8vIHtcbiAgICAgICAgICAgIC8vICAgICAvLyBkZWZpbmUgYSB0b29sdGlwIGZvciBlYWNoIG5vZGUgdGhhdCBkaXNwbGF5cyB0aGUgY29sb3IgYXMgdGV4dFxuICAgICAgICAgICAgLy8gICAgIHRvb2xUaXA6IHRoaXMuJChcbiAgICAgICAgICAgIC8vICAgICAgICAgJ1Rvb2xUaXAnLFxuICAgICAgICAgICAgLy8gICAgICAgICB0aGlzLiQoZ28uVGV4dEJsb2NrLCB7IG1hcmdpbjogNCB9LCBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJykpLFxuICAgICAgICAgICAgLy8gICAgICksIC8vIGVuZCBvZiBBZG9ybm1lbnRcbiAgICAgICAgICAgIC8vIH0sXG4gICAgICAgICAgKVxuICAgICAgICApXG4gICAgICApLFxuICAgICAgdGhpcy4kKGdvLlBhbmVsLCAnVmVydGljYWwnLCB7XG4gICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5MZWZ0LFxuICAgICAgICBhbGlnbm1lbnRGb2N1czogbmV3IGdvLlNwb3QoMCwgMC41LCA4LCAwKSxcbiAgICAgIH0pLFxuICAgICAgdGhpcy4kKGdvLlBhbmVsLCAnVmVydGljYWwnLCB7XG4gICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5SaWdodCxcbiAgICAgICAgYWxpZ25tZW50Rm9jdXM6IG5ldyBnby5TcG90KDEsIDAu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G9iai5wYXJ0Py5bJ29iJ10/LnN5c3RlbVR5cGVcbiAgICAgICAgICAgICAgICApICYmXG4gICAgICAgICAgICAgICAgb2JqLnBhcnQ/Llsnb2InXT8udG9wb2xvZ3lUeXBlICE9PVxuICAgICAgICAgICAgICAgICAgQVRPX0VDT01QT05FTlRfUExBTlRfVFlQRS5XQVRFUiAmJlxuICAgICAgICAgICAgICAgIG9iai5wYXJ0Py5bJ29iJ10/LnRvcG9sb2d5VHlwZSAhPT1cbiAgICAgICAgICAgICAgICAgIEFUT19FQ09NUE9ORU5UX1BMQU5UX1RZUEUuV0FURVJfUExBTlRfQ0VMTFxuICAgICAgICAgICAgICApIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgaWYgKFxuICAgICAgICAgICAgICAgIGFjdGlvbiA9PT0gQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLk9VVEZMT1cgJiZcbiAgICAgICAgICAgICAgICBzZWxmLnBsYW50U2F0dXMgPT09IEFUT19FUGxhbnRUeXBlLkJBU0lDX1BMQU5UICYmXG4gICAgICAgICAgICAgICAgb2JqLnBhcnQ/LmRhdGE/LnR5cGUgPT09XG4gICAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuVEVYVF9OT0RFXG4gICAgICAgICAgICAgICkge1xuICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICApLm1hcCgoZSkgPT4ge1xuICAgICAgICAgICAgaWYgKFxuICAgICAgICAgICAgICBBVE9fRUNPTVBPTkVOVF9QTEFOVF9UWVBFLlNURUFNID09PVxuICAgICAgICAgICAgICAgIG9iai5wYXJ0Py5bJ29iJ10/LnRvcG9sb2d5VHlwZSAmJlxuICAgICAgICAgICAgICBlID09PSBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuSU5TSUdIVFxuICAgICAgICAgICAgKSB7XG4gICAgICAgICAgICAgIHJldHVybiBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuREFUQV9NQVBQSU5HO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKFxuICAgICAgICAgICAgICBlID09PSBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuRkxPV19ERVRBSUxTICYmXG4gICAgICAgICAgICAgIG9iaj8ucGFydD8uWydvYiddPy5zeXN0ZW1UeXBlID09PVxuICAgICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RZUEVTLkNPT0xJTkdfVE9XRVJcbiAgICAgICAgICAgICkge1xuICAgICAgICAgICAgICByZXR1cm4gQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLkZMT1dfREVUQUlMU19BTkRfV0laQVJEO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmV0dXJuIGU7XG4gICAgICAgICAgfSk7XG4gICAgICAgICAgc2VsZi5hY3Rpb25zID0gZmlsdGVyZWRBY3Rpb25zLm1hcCgoYWN0aW9uKSA9PiB7XG4gICAgICAgICAgICBsZXQgb25DbGlja0ZuID0gKCkgPT4ge307XG4gICAgICAgICAgICBzd2l0Y2ggKGFjdGlvbikge1xuICAgICAgICAgICAgICBjYXNlIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5JTlNJR0hUOlxuICAgICAgICAgICAgICBjYXNlIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5EQVRBX01BUFBJTkc6XG4gICAgICAgICAgICAgICAgb25DbGlja0ZuID0gKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgc2VsZi5vbk9wZW5JbnNpZ2h0TWFwcGluZy5lbWl0KHtcbiAgICAgICAgICAgICAgICAgICAgbm9kZTogb2JqLnBhcnQsXG4gICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICBjYXNlIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5ERVRBSUxTOlxuICAgICAgICAgICAgICBjYXNlIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5GTE9XX0RFVEFJTFM6XG4gICAgICAgICAgICAgIGNhc2UgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLkZMT1dfREVUQUlMU19BTkRfV0laQVJEOlxuICAgICAgICAgICAgICAgIG9uQ2xpY2tGbiA9ICgpID0+IHtcbiAgICAgICAgICAgICAgICAgIHNlbGYub25PcGVuRGV0YWlsLmVtaXQoe1xuICAgICAgICAgICAgICAgICAgICBub2RlOiBvYmoucGFydCxcbiAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgIGNhc2UgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLk9OTFlfREVUQUlMUzpcbiAgICAgICAgICAgICAgICBvbkNsaWNrRm4gPSAoKSA9PiB7XG4gICAgICAgICAgICAgICAgICBzZWxmLm9uT3BlbkRldGFpbC5lbWl0KHtcbiAgICAgICAgICAgICAgICAgICAgbm9kZTogb2JqLnBhcnQsXG4gICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICBjYXNlIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5BU1NFVF9QQVJBTUVURVJTOlxuICAgICAgICAgICAgICAgIG9uQ2xpY2tGbiA9ICgpID0+IHtcbiAgICAgICAgICAgICAgICAgIHNlbGYub25PcGVuQXNzZXRQYXJhbWV0ZXIuZW1pdCh7XG4gICAgICAgICAgICAgICAgICAgIG5vZGU6IG9iai5wYXJ0LFxuICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgY2FzZSBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuUkVOQU1FOlxuICAgICAgICAgICAgICAgIG9uQ2xpY2tGbiA9ICgpID0+IHtcbiAgICAgICAgICAgICAgICAgIGlmIChcbiAgICAgICAgICAgICAgICAgICAgb2JqLnBhcnQ/LmRhdGE/LnR5cGUgPT09XG4gICAgICAgICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5URVhUX05PREVcbiAgICAgICAgICAgICAgICAgICkge1xuICAgICAgICAgICAgICAgICAgICBzZWxmLm9uUmVuYW1lLmVtaXQoe1xuICAgICAgICAgICAgICAgICAgICAgIGxlZnQ6IGU/LlsnV3InXT8ueCAtIDUwLFxuICAgICAgICAgICAgICAgICAgICAgIHRvcDogZT8uWydXciddPy55LFxuICAgICAgICAgICAgICAgICAgICAgIC4uLm9iai5wYXJ0Py5kYXRhLFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgLy8gTGF5b3V0U2VydmljZS5zZXRUb29sVGlwQ29tcG9uZW50RGF0YVN0YXRpYyh7XG4gICAgICAgICAgICAgICAgICAgIC8vICAgICBjb21wb25lbnQ6IFJlbmFtZUJveENvbXBvbmVudCxcbiAgICAgICAgICAgICAgICAgICAgLy8gICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICBsZWZ0OiBlPy5bJ1dyJ10/LnggLSA1MCxcbiAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICB0b3A6IGU/LlsnV3InXT8ueSxcbiAgICAgICAgICAgICAgICAgICAgLy8gICAgICAgICAuLi5vYmoucGFydD8uZGF0YSxcbiAgICAgICAgICAgICAgICAgICAgLy8gICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIC8vIH0pO1xuICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgc2VsZi5lZGl0VGV4dChlLCBvYmopO1xuICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgIGNhc2UgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLk9VVEZMT1c6XG4gICAgICAgICAgICAgICAgb25DbGlja0ZuID0gKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgc2VsZi5jbGlja05ld05vZGUoXG4gICAgICAgICAgICAgICAgICAgIGUsXG4gICAgICAgICAgICAgICAgICAgIF8ubWVyZ2Uob2JqLCB7XG4gICAgICAgICAgICAgICAgICAgICAgYWN0aW9uTW92ZTogc2VsZi5kcmFnTmV3Tm9kZSwgLy8gZGVmaW5lZCBiZWxvdywgdG8gc3VwcG9ydCBkcmFnZ2luZyBmcm9tIHRoZSBidXR0b25cbiAgICAgICAgICAgICAgICAgICAgICBfZHJhZ0RhdGE6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIC4uLntcbiAgICAgICAgICAgICAgICAgICAgICAgICAgdHlwZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLlRFWFRfTk9ERSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgbmFtZTogYCR7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgQXRvR29qc0VkaXRvck1vZGVsLkFDVElPTl9SSUdIVF9NRU5VX0dST1VQLkRBVEFfQk9YXG4gICAgICAgICAgICAgICAgICAgICAgICAgIH1fJHttb21lbnQoKS52YWx1ZU9mKCl9YCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgY29sb3I6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5CTFVFLFxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIC4uLnNlbGYuc2V0UHJvRk9yTmV3Tm9kZShzZWxmKSxcbiAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICBjYXNlIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5ERUxFVEU6XG4gICAgICAgICAgICAgICAgb25DbGlja0ZuID0gKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgc2VsZi5kZWxldGVOb2RlKGUpO1xuICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgIGNhc2UgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLkNIQU5HRV9JQ09OOlxuICAgICAgICAgICAgICAgIG9uQ2xpY2tGbiA9ICgpID0+IHtcbiAgICAgICAgICAgICAgICAgIHNlbGYub25PcGVuQ2hhbmdlSWNvbi5lbWl0KHtcbiAgICAgICAgICAgICAgICAgICAgbm9kZTogb2JqLnBhcnQsXG4gICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgICAgLi4uQXRvRGVmYXVsdEdvanNFZGl0b3IuQUNUSU9OU1thY3Rpb25dLFxuICAgICAgICAgICAgICBvbkNsaWNrOiAoKSA9PiB7XG4gICAgICAgICAgICAgICAgb25DbGlja0ZuKCk7XG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB9O1xuICAgICAgICAgIH0p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ICAgICAgZnJvbVNwb3Q6IHNwb3QsXG4gICAgICAgIGZyb21MaW5rYWJsZTogb3V0cHV0LFxuICAgICAgICB0b1Nwb3Q6IHNwb3QsXG4gICAgICAgIHRvTGlua2FibGU6IGlucHV0LFxuICAgICAgICBjdXJzb3I6IHRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHkgPyAnJyA6ICdwb2ludGVyJyxcbiAgICAgICAgYWxpZ25tZW50Rm9jdXM6IGdvLlNwb3QuQ2VudGVyLCAvLyB04bqtcCB0cnVuZyB2w6BvIHRydW5nIHTDom0gY+G7p2EgUGFuZWxcbiAgICAgICAgLy8gbW91c2VFbnRlcjogdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seVxuICAgICAgICAvLyAgICAgPyBudWxsXG4gICAgICAgIC8vICAgICA6IChlLCBwYW5lbCkgPT4ge1xuICAgICAgICAvLyAgICAgICAgICAgY29uc3QgdGV4dEJsb2NrID0gKHBhbmVsIGFzIGFueSk/LmZpbmRPYmplY3QoJ3RleHRCbG9jaycpIGFzIGdvLlRleHRCbG9jayB8IG51bGw7XG4gICAgICAgIC8vICAgICAgICAgICBpZiAodGV4dEJsb2NrKSB7XG4gICAgICAgIC8vICAgICAgICAgICAgICAgLy8gJiYgb3V0cHV0XG4gICAgICAgIC8vICAgICAgICAgICAgICAgdGV4dEJsb2NrLnZpc2libGUgPSB0cnVlO1xuICAgICAgICAvLyAgICAgICAgICAgICAgIHN3aXRjaCAobmFtZSkge1xuICAgICAgICAvLyAgICAgICAgICAgICAgICAgICBjYXNlICdCJzpcbiAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgY2FzZSAnUic6IHtcbiAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgICAgIHBhbmVsLmJhY2tncm91bmQgPSAncmdiKDI0MyAxNDQgMTcxKSc7XG4gICAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAvLyAgICAgICAgICAgICAgICAgICBjYXNlICdUJzpcbiAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgY2FzZSAnTCc6IHtcbiAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgICAgIHBhbmVsLmJhY2tncm91bmQgPSAncmdiKDEwMywxNTEsMjA3KSc7XG4gICAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAvLyAgICAgICAgICAgICAgICAgICBkZWZhdWx0OiB7XG4gICAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgICBwYW5lbC5iYWNrZ3JvdW5kID0gJ3JnYigyNDMgMTQ0IDE3MSknO1xuICAgICAgICAvLyAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgIC8vICAgICAgICAgICAgICAgfVxuICAgICAgICAvLyAgICAgICAgICAgfVxuICAgICAgICAvLyAgICAgICB9LFxuXG4gICAgICAgIC8vIG1vdXNlTGVhdmU6IHRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHlcbiAgICAgICAgLy8gICAgID8gbnVsbFxuICAgICAgICAvLyAgICAgOiAoZSwgcGFuZWwpID0+IHtcbiAgICAgICAgLy8gICAgICAgICAgIGNvbnN0IHRleHRCbG9jayA9IChwYW5lbCBhcyBhbnkpLmZpbmRPYmplY3QoJ3RleHRCbG9jaycpIGFzIGdvLlRleHRCbG9jayB8IG51bGw7XG4gICAgICAgIC8vICAgICAgICAgICBpZiAodGV4dEJsb2NrKSB7XG4gICAgICAgIC8vICAgICAgICAgICAgICAgdGV4dEJsb2NrLnZpc2libGUgPSBmYWxzZTsgLy8g4bqobiBUZXh0QmxvY2sga2hpIHLhu51pIGto4buPaSBQYW5lbFxuICAgICAgICAvLyAgICAgICAgICAgfVxuICAgICAgICAvLyAgICAgICAgICAgcGFuZWwuYmFja2dyb3VuZCA9ICd0cmFuc3BhcmVudCc7XG4gICAgICAg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AgICAgIC8vICAgICAgICAgICAgIGNhc2UgJ1QnOlxuICAgICAgLy8gICAgICAgICAgICAgY2FzZSAnQic6IHtcbiAgICAgIC8vICAgICAgICAgICAgICAgICByZXR1cm4gJ1xcdWYwZDcnO1xuICAgICAgLy8gICAgICAgICAgICAgfVxuICAgICAgLy8gICAgICAgICAgICAgY2FzZSAnTCc6XG4gICAgICAvLyAgICAgICAgICAgICBjYXNlICdSJzoge1xuICAgICAgLy8gICAgICAgICAgICAgICAgIHJldHVybiAnXFx1ZjBkYSc7XG4gICAgICAvLyAgICAgICAgICAgICB9XG4gICAgICAvLyAgICAgICAgICAgICBkZWZhdWx0OiB7XG4gICAgICAvLyAgICAgICAgICAgICAgICAgcmV0dXJuICdcXHVmMGQ3JztcbiAgICAgIC8vICAgICAgICAgICAgIH1cbiAgICAgIC8vICAgICAgICAgfVxuICAgICAgLy8gICAgIH0pLFxuICAgICAgLy8gKSxcbiAgICApO1xuICB9XG5cbiAgbWFrZVBvcnQobmFtZSwgYWxpZ24sIHNwb3QsIG91dHB1dCwgaW5wdXQpIHtcbiAgICAvLyBpZiAodGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seSkge1xuICAgIC8vICAgICByZXR1cm4ge307XG4gICAgLy8gfVxuICAgIGNvbnN0IGhvcml6b250YWwgPVxuICAgICAgYWxpZ24uZXF1YWxzKGdvLlNwb3QuVG9wKSB8fCBhbGlnbi5lcXVhbHMoZ28uU3BvdC5Cb3R0b20pO1xuICAgIC8vIGNvbnN0IHZlcnRpY2FsID0gYWxpZ24uZXF1YWxzKGdvLlNwb3QuTGVmdCkgfHwgYWxpZ24uZXF1YWxzKGdvLlNwb3QuUmlnaHQpO1xuICAgIC8vIHRoZSBwb3J0IGlzIGJhc2ljYWxseSBqdXN0IGEgdHJhbnNwYXJlbnQgcmVjdGFuZ2xlIHRoYXQgc3RyZXRjaGVzIGFsb25nIHRoZSBzaWRlIG9mIHRoZSBub2RlLFxuICAgIC8vIGFuZCBiZWNvbWVzIGNvbG9yZWQgd2hlbiB0aGUgbW91c2UgcGFzc2VzIG92ZXIgaXRcbiAgICByZXR1cm4gdGhpcy4kKFxuICAgICAgZ28uUGFuZWwsXG4gICAgICAnVGFibGUnLFxuICAgICAge1xuICAgICAgICBiYWNrZ3JvdW5kOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICB3aWR0aDogaG9yaXpvbnRhbCA/IE5hTiA6IDgsXG4gICAgICAgIGhlaWdodDogIWhvcml6b250YWwgPyBOYU4gOiA4LFxuICAgICAgICBhbGlnbm1lbnQ6IGFsaWduLFxuICAgICAgICBzdHJldGNoOiBob3Jpem9udGFsXG4gICAgICAgICAgPyBnby5HcmFwaE9iamVjdC5Ib3Jpem9udGFsXG4gICAgICAgICAgOiBnby5HcmFwaE9iamVjdC5WZXJ0aWNhbCxcbiAgICAgICAgcG9ydElkOiBuYW1lLFxuICAgICAgICBmcm9tU3BvdDogc3BvdCxcbiAgICAgICAgZnJvbUxpbmthYmxlOiBvdXRwdXQsXG4gICAgICAgIHRvU3BvdDogc3BvdCxcbiAgICAgICAgdG9MaW5rYWJsZTogaW5wdXQsXG4gICAgICAgIGN1cnNvcjogdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seSA/ICcnIDogJ3BvaW50ZXInLFxuICAgICAgICBhbGlnbm1lbnRGb2N1czogZ28uU3BvdC5DZW50ZXIsIC8vIHThuq1wIHRydW5nIHbDoG8gdHJ1bmcgdMOibSBj4bunYSBQYW5lbFxuICAgICAgICBtb3VzZUVudGVyOiB0aGlzLl9pbml0aWFsT3B0aW9ucy5pc1JlYWRPbmx5XG4gICAgICAgICAgPyBudWxsXG4gICAgICAgICAgOiAoZSwgcGFuZWwpID0+IHtcbiAgICAgICAgICAgICAgY29uc3QgdGV4dEJsb2NrID0gKHBhbmVsIGFzIGFueSk/LmZpbmRPYmplY3QoXG4gICAgICAgICAgICAgICAgJ3RleHRCbG9jaydcbiAgICAgICAgICAgICAgKSBhcyBnby5UZXh0QmxvY2sgfCBudWxsO1xuICAgICAgICAgICAgICBpZiAodGV4dEJsb2NrKSB7XG4gICAgICAgICAgICAgICAgLy8gJiYgb3V0cHV0XG4gICAgICAgICAgICAgICAgdGV4dEJsb2NrLnZpc2libGUgPSB0cnVlO1xuICAgICAgICAgICAgICAgIHN3aXRjaCAobmFtZSkge1xuICAgICAgICAgICAgICAgICAgY2FzZSAnQic6XG4gICAgICAgICAgICAgICAgICBjYXNlICdSJzoge1xuICAgICAgICAgICAgICAgICAgICBwYW5lbC5iYWNrZ3JvdW5kID0gJ3JnYigyNDMgMTQ0IDE3MSknO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgIGNhc2UgJ1QnOlxuICAgICAgICAgICAgICAgICAgY2FzZSAnTCc6IHtcbiAgICAgICAgICAgICAgICAgICAgcGFuZWwuYmFja2dyb3VuZCA9ICdyZ2IoMTAzLDE1MSwyMDcpJztcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICBkZWZhdWx0OiB7XG4gICAgICAgICAgICAgICAgICAgIHBhbmVsLmJhY2tncm91bmQgPSAncmdiKDI0MyAxNDQgMTcxKSc7XG4gICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9LFxuXG4gICAgICAgIG1vdXNlTGVhdmU6IHRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHlcbiAgICAgICAgICA/IG51bGxcbiAgICAgICAgICA6IChlLCBwYW5lbCkgPT4ge1xuICAgICAgICAgICAgICBjb25zdCB0ZXh0QmxvY2sgPSAocGFuZWwgYXMgYW55KS5maW5kT2JqZWN0KFxuICAgICAgICAgICAgICAgICd0ZXh0QmxvY2snXG4gICAgICAgICAgICAgICkgYXMgZ28uVGV4dEJsb2NrIHwgbnVsbDtcbiAgICAgICAgICAgICAgaWYgKHRleHRCbG9jaykge1xuICAgICAgICAgICAgICAgIHRleHRCbG9jay52aXNpYmxlID0gZmFsc2U7IC8vIOG6qG4gVGV4dEJsb2NrIGtoaSBy4budaSBraOG7j2kgUGFuZWxcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICBwYW5lbC5iYWNrZ3JvdW5kID0gJ3RyYW5zcGFyZW50JztcbiAgICAgICAgICAgIH0sXG4gICAgICB9LFxuXG4gICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICcnLCBmdW5jdGlvbiAoZGF0YSkge1xuICAgICAgICBpZiAoZGF0YT8uaXNOb3RBbGxvd0Nvbm5lY3QpIHtcbiAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKGRhdGE/LnNlbGVjdGFibGUgPT09IGZhbHNlICYmICFkYXRhPy5pc0FsbG93Q29ubmVjdCkge1xuICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgfVxuICAgICAgICBpZiAoZGF0YT8uZmxvd09mUGxhbnRDZWxsKSB7XG4gICAgICAgICAgaWYgKFxuICAgICAgICAgICAgZGF0YT8uZmxvd09mUGxhbnRDZWxsID09PSBBVE9fRU5VTV9GTE9XX0RJUkVDVElPTi5JTkZMT1cgJiZcbiAgICAgICAgICAgIG5hbWUgPT09ICdMJ1xuICAgICAgICAgICkge1xuICAgICAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgICAgICAgfVxuICAgICAgICAgIGlmIChcbiAgICAgICAgICAgIGRhdGE/LmZsb3dPZlBsYW50Q2VsbCA9PT0gQVRPX0VOVU1fRkxPV19ESVJFQ1RJT04uT1VURkxPVyAmJlxuICAgICAgICAgICAgbmFtZSA9PT0gJ1InXG4gICAgICAgICAgKSB7XG4gICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgICB9XG4gICAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgICAgICB9XG4gICAgICAgIHN3aXRjaCAobmFtZSkge1xuICAgICAgICAgIGNhc2UgJ0InOlxuICAgICAgICAgIGNhc2UgJ1InOiB7XG4gICAgICAgICAgICByZXR1cm4gIWRhdGE/LmlzTm90U2VsZWN0T3V0cHV0O1xuICAgICAgICAgIH1cbiAgICAgICAgICBjYXNlICdUJzpcbiAgICAgICAgICBjYXNlICdMJzoge1xuICAgICAgICAgICAgcmV0dXJuICFkYXRhPy5pc05vdFNlbGVjdElucHV0O1xuICAgICAgICAgIH1cbiAgICAgICAgICBkZWZhdWx0OiB7XG4gICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH0pLFxuXG4gICAgICB0aGlzLiQoXG4gICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAge1xuICAgICAgICAgIG5hbWU6ICd0ZXh0QmxvY2snLFxuICAgICAgICAgIG1hcmdpbjogNCxcbiAgICAgICAgICB0ZXh0OiAnXFx1ZjBkYScsIC8vIE3DoyBVbmljb2RlIHTGsMahbmcg4bupbmcgduG7m2kgZmEtY2FyZXQtbGVmdFxuICAgICAgICAgIGZvbnQ6ICc5MDAgMTJweCBcIkZvbnQgQXdlc29tZSA2IFByb1wiJyxcbiAgICAgICAgICBzdHJva2U6ICd3aGl0ZScsIC8vIMSQ4bq3dCBtw6B1IGNo4buvIHRow6BuaCBtw6B1IHRy4bqvbmdcbiAgICAgICAgICBjdXJzb3I6ICdwb2ludGVyJyxcbiAgICAgICAgICB2aXNpYmxlOiBmYWxzZSxcbiAgICAgICAgfSxcbiAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnbmFtZScsIChfKSA9PiB7XG4gICAgICAgICAgc3dpdGNoIChuYW1lKSB7XG4gICAgICAgICAgICBjYXNlICdUJzpcbiAgICAgICAgICAgIGNhc2UgJ0InOiB7XG4gICAgICAgICAgICAgIHJldHVybiAnXFx1ZjBkNyc7XG4gICAgICAgICAgICB9X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FsJyxcbiAgICAgIC8vICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgLy8gICAgIGFsaWdubWVudDogZ28uU3BvdC5MZWZ0LFxuICAgICAgLy8gfSxcbiAgICAgIC8vIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ2tleScpLm1ha2VUd29XYXkoKSwpLFxuXG4gICAgICAvLyB0aGlzLiQoXG4gICAgICAvLyAgICAgZ28uUGFuZWwsXG4gICAgICAvLyAgICAgJ1RhYmxlJyxcbiAgICAgIC8vICAgICB7XG4gICAgICAvLyAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5Ub3BMZWZ0LFxuICAgICAgLy8gICAgICAgICBhbGlnbm1lbnRGb2N1czogbmV3IGdvLlNwb3QoMCwgMCwgLTEwLCAtMTApLFxuICAgICAgLy8gICAgICAgICAvLyBwYWRkaW5nOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDUwLCAwKSxcbiAgICAgIC8vICAgICB9LFxuICAgICAgLy8gICAgIHRoaXMuJChcbiAgICAgIC8vICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAvLyAgICAgICAgICdIb3Jpem9udGFsJyxcbiAgICAgIC8vICAgICAgICAge1xuICAgICAgLy8gICAgICAgICAgICAgcm93OiAwLFxuICAgICAgLy8gICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkxlZnQsXG4gICAgICAvLyAgICAgICAgIH0sXG4gICAgICAvLyAgICAgICAgIHRoaXMuJChnby5QaWN0dXJlLCBpY29uLCB7XG4gICAgICAvLyAgICAgICAgICAgICByb3c6IDAsXG4gICAgICAvLyAgICAgICAgICAgICAvLyBhbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgLy8gICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkxlZnQsXG4gICAgICAvLyAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZSg0MCwgNDApLFxuICAgICAgLy8gICAgICAgICAgICAgaW1hZ2VTdHJldGNoOiBnby5HcmFwaE9iamVjdC5Vbmlmb3JtLFxuICAgICAgLy8gICAgICAgICB9KSxcbiAgICAgIC8vICAgICAgICAgdGhpcy4kKFxuICAgICAgLy8gICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAvLyAgICAgICAgICAgICAnVGFibGUnLFxuICAgICAgLy8gICAgICAgICAgICAge1xuICAgICAgLy8gICAgICAgICAgICAgICAgIGNvbHVtbjogMSxcbiAgICAgIC8vICAgICAgICAgICAgICAgICBkZWZhdWx0QWxpZ25tZW50OiBnby5TcG90LkxlZnQsXG4gICAgICAvLyAgICAgICAgICAgICAgICAgYWxpZ25tZW50Rm9jdXM6IG5ldyBnby5TcG90KDAsIDAsIDAsIDIwKSxcbiAgICAgIC8vICAgICAgICAgICAgIH0sXG4gICAgICAvLyAgICAgICAgICAgICB0aGlzLiQoZ28uVGV4dEJsb2NrLCB0aXRsZSwge1xuICAgICAgLy8gICAgICAgICAgICAgICAgIHJvdzogMCxcbiAgICAgIC8vICAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMywgMywgNSwgMTApLFxuICAgICAgLy8gICAgICAgICAgICAgICAgIC8vIG1heFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCBOYU4pLFxuICAgICAgLy8gICAgICAgICAgICAgICAgIHN0cm9rZTogJyM0NDQ0NDQnLFxuICAgICAgLy8gICAgICAgICAgICAgICAgIGZvbnQ6ICdub3JtYWwgMTBwdCBBcmlhbCcsXG4gICAgICAvLyAgICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgIC8vICAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuTGVmdCxcbiAgICAgIC8vICAgICAgICAgICAgIH0pLFxuICAgICAgLy8gICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgLy8gICAgICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgIC8vICAgICAgICAgICAgICAgICB7XG4gICAgICAvLyAgICAgICAgICAgICAgICAgICAgIHJvdzogMSxcbiAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDMsIDMsIDEwKSxcbiAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgZWRpdGFibGU6IHRydWUsXG4gICAgICAvLyAgICAgICAgICAgICAgICAgICAgIC8vIG1heFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCA0MCksXG4gICAgICAvLyAgICAgICAgICAgICAgICAgICAgIHN0cm9rZTogJyMwMDBENDInLFxuICAgICAgLy8gICAgICAgICAgICAgICAgICAgICBmb250OiAnYm9sZCAxMHB0IEFyaWFsJyxcbiAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgd3JhcDogZ28uVGV4dEJsb2NrLk5vbmUsXG4gICAgICAvLyAgICAgICAgICAgICAgICAgICAgIG92ZXJmbG93OiBnby5UZXh0QmxvY2suT3ZlcmZsb3dFbGxpcHNpcyxcbiAgICAgIC8vICAgICAgICAgICAgICAgICB9LFxuICAgICAgLy8gICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWUnKS5tYWtlVHdvV2F5KCksXG4gICAgICAvLyAgICAgICAgICAgICAgICAge1xuICAgICAgLy8gICAgICAgICAgICAgICAgICAgICAvLyBkZWZpbmUgYSB0b29sdGlwIGZvciBlYWNoIG5vZGUgdGhhdCBkaXNwbGF5cyB0aGUgY29sb3IgYXMgdGV4dFxuICAgICAgLy8gICAgICAgICAgICAgICAgICAgICB0b29sVGlwOiB0aGlzLiQoXG4gICAgICAvLyAgICAgICAgICAgICAgICAgICAgICAgICAnVG9vbFRpcCcsXG4gICAgICAvLyAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoZ28uVGV4dEJsb2NrLCB7IG1hcmdpbjogNCB9LCBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJykpLFxuICAgICAgLy8gICAgICAgICAgICAgICAgICAgICApLCAvLyBlbmQgb2YgQWRvcm5tZW50XG4gICAgICAvLyAgICAgICAgICAgICAgICAgfSxcbiAgICAgIC8vICAgICAgICAgICAgICksXG4gICAgICAvLyAgICAgICAgICksXG4gICAgICAvLyAgICAgKSxcbiAgICAgIC8vICksXG4gICAgKTtcbiAgICB0aGlzLm15RGlhZ3JhbS5ncm91cFRlbXBsYXRlTWFwLnNldCh0aXRsZSwgbm9kZSk7XG4gIH1cblxuICBtYWtlR3JvdXBUZW1wbGF0ZShcbiAgICBpY29uLFxuICAgIHRpdGxlLFxuICAgIHNpemU6IHsgdzogbnVtYmVyOyBoOiBudW1iZXIgfSA9IHsgdzogODAsIGg6IDgwIH1cbiAgKSB7XG4gICAgbGV0IG5vZGUgPSB0aGlzLiQoXG4gICAgICBnby5Hcm91cCxcbiAgICAgICdTcG90JyxcbiAgICAgIHtcbiAgICAgICAgLy8gICAgIC8vIGxheW91dDogdGhpcy4kKGdvLkZvcmNlRGlyZWN0ZWRMYXlvdXQgLCB7XG4gICAgICAgIC8vICAgICAvLyAgICAgZGlyZWN0aW9uOiAwLFxuICAgICAgICAvLyAgICAgLy8gICAgIHNldHNQb3J0U3BvdHM6IGZhbHNlLFxuICAgICAgICAvLyAgICAgLy8gfSksXG5cbiAgICAgICAgLy8gbGF5b3V0OiB0aGlzLiQoZ28uTGF5ZXJlZERpZ3JhcGhMYXlvdXQsIHtcbiAgICAgICAgLy8gICAgIGRpcmVjdGlvbjogMCxcbiAgICAgICAgLy8gICAgIHNldHNQb3J0U3BvdHM6IGZhbHNlLFxuICAgICAgICAvLyB9KSxcblxuICAgICAgICBsYXlvdXQ6IHRoaXMuJChnby5MYXlvdXQpLFxuXG4gICAgICAgIC8vIC8vICAgICAvLyBhZG9ybm1lbnQgd2hlbiBhIGdyb3VwIGlzIHNlbGVjdGVkXG4gICAgICAgIC8vIC8vICAgICAvLyBzZWxlY3Rpb25BZG9ybm1lbnRUZW1wbGF0ZTogdGhpcy4kKFxuICAgICAgICAvLyAvLyAgICAgLy8gICAgIGdvLkFkb3JubWVudCxcbiAgICAgICAgLy8gLy8gICAgIC8vICAgICAnQXV0bycsXG4gICAgICAgIC8vIC8vICAgICAvLyAgICAgdGhpcy4kKGdvLlNoYXBlLCAnUmVjdGFuZ2xlJywgeyBmaWxsOiBudWxsLCBzdHJva2U6ICdkb2RnZXJibHVlJywgc3Ryb2tlV2lkdGg6IDggfSksXG4gICAgICAgIC8vIC8vICAgICAvLyAgICAgdGhpcy4kKGdvLlBsYWNlaG9sZGVyKSxcbiAgICAgICAgLy8gLy8gICAgIC8vICksXG4gICAgICB9LFxuXG4gICAgICAvLyBuZXcgZ28uQmluZGluZygnbGF5b3V0JywgJ2xheW91dCcsICh4KSA9PlxuICAgICAgLy8ge1xuICAgICAgLy8gICAgIHJldHVybiB0aGlzLiQoZ28uRm9yY2VEaXJlY3RlZExheW91dCAsIHtcbiAgICAgIC8vICAgICAgICAgZGlyZWN0aW9uOiAwLFxuICAgICAgLy8gICAgICAgICBzZXRzUG9ydFNwb3RzOiBmYWxzZSxcbiAgICAgIC8vICAgICB9KTtcbiAgICAgIC8vIH1cbiAgICAgIC8vICksXG4gICAgICB7XG4gICAgICAgIG1pblNpemU6IG5ldyBnby5TaXplKDQwMCwgNDAwKSxcbiAgICAgIH0sXG4gICAgICAvLyBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoZ28uUG9pbnQuc3RyaW5naWZ5KSxcbiAgICAgIHRoaXMuJChcbiAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICdBdXRvJyxcbiAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCAnUm91bmRlZFJlY3RhbmdsZScsIHtcbiAgICAgICAgICBmaWxsOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLlJFU09MVVRJT05fQkxVRSxcbiAgICAgICAgICBzdHJva2VXaWR0aDogMixcbiAgICAgICAgICAvLyBzdHJva2VEYXNoQXJyYXk6IFs1LCA1XSxcbiAgICAgICAgfSksXG4gICAgICAgIHRoaXMuJChnby5QbGFjZWhvbGRlciwgeyBwYWRkaW5nOiBuZXcgZ28uTWFyZ2luKDYwLCAyMCwgMjAsIDIwKSB9KVxuICAgICAgKSxcblxuICAgICAgLy8gdGhpcy4kKFxuICAgICAgLy8gICAgIGdvLlBhbmVsLFxuICAgICAgLy8gICAgICdUYWJsZScsXG4gICAgICAvLyAgICAge1xuICAgICAgLy8gICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuVG9wTGVmdCxcbiAgICAgIC8vICAgICAgICAgYWxpZ25tZW50Rm9jdXM6IG5ldyBnby5TcG90KDAsIDAsIC0xMCwgLTEwKSxcbiAgICAgIC8vICAgICB9LFxuICAgICAgLy8gICAgIHRoaXMuJChnby5UZXh0QmxvY2ssIHRpdGxlLCB7XG4gICAgICAvLyAgICAgICAgIHJvdzogMCxcbiAgICAgIC8vICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDMsIDMsIDUsIDMpLFxuICAgICAgLy8gICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAyMCwgTmFOKSxcbiAgICAgIC8vICAgICAgICAgc3Ryb2tlOiAnIzQ0NDQ0NCcsXG4gICAgICAvLyAgICAgICAgIGZvbnQ6ICdub3JtYWwgOHB0IEFyaWFsJyxcbiAgICAgIC8vICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgIC8vICAgICB9KSxcbiAgICAgIC8vICAgICB0aGlzLiQoZ28uUGljdHVyZSwgaWNvbiwge1xuICAgICAgLy8gICAgICAgICByb3c6IDEsXG4gICAgICAvLyAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5DZW50ZXIsXG4gICAgICAvLyAgICAgICAgIG1heFNpemU6IG5ldyBnby5TaXplKDQwLCA0MCksXG4gICAgICAvLyAgICAgICAgIGltYWdlU3RyZXRjaDogZ28uR3JhcGhPYmplY3QuVW5pZm9ybSxcbiAgICAgIC8vICAgICB9KSxcbiAgICAgIC8vICAgICB0aGlzLiQoXG4gICAgICAvLyAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgIC8vICAgICAgICAge1xuICAgICAgLy8gICAgICAgICAgICAgcm93OiAyLFxuICAgICAgLy8gICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDEwLCAzLCAzLCAzKSxcbiAgICAgIC8vICAgICAgICAgICAgIGVkaXRhYmxlOiB0cnVlLFxuICAgICAgLy8gICAgICAgICAgICAgbWF4U2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gMjAsIDQwKSxcbiAgICAgIC8vICAgICAgICAgICAgIHN0cm9rZTogJyMwMDBENDInLFxuICAgICAgLy8gICAgICAgICAgICAgZm9udDogJ2JvbGQgOHB0IEFyaWFsJyxcbiAgICAgIC8vICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAvLyAgICAgICAgICAgICB3cmFwOiBnby5UZXh0QmxvY2suTm9uZSxcbiAgICAgIC8vICAgICAgICAgICAgIG92ZXJmbG93OiBnby5UZXh0QmxvY2suT3ZlcmZsb3dFbGxpcHNpcyxcbiAgICAgIC8vICAgICAgICAgfSxcbiAgICAgIC8vICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnbmFtZScpLm1ha2VUd29XYXkoKSxcbiAgICAgIC8vICAgICAgICAge1xuICAgICAgLy8gICAgICAgICAgICAgLy8gZGVmaW5lIGEgdG9vbHRpcCBmb3IgZWFjaCBub2RlIHRoYXQgZGlzcGxheXMgdGhlIGNvbG9yIGFzIHRleHRcbiAgICAgIC8vICAgICAgICAgICAgIHRvb2xUaXA6IHRoaXMuJCgnVG9vbFRpcCcsIHRoaXMuJChnby5UZXh0QmxvY2ssIHsgbWFyZ2luOiA0IH0sIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWUnKSkpLCAvLyBlbmQgb2YgQWRvcm5tZW50XG4gICAgICAvLyAgICAgICAgIH0sXG4gICAgICAvLyAgICAgKSxcbiAgICAgIC8vICAgICAvLyBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoZ28uUG9pbnQuc3RyaW5naWZ5KSxcbiAgICAgIC8vICksXG5cbiAgICAgIHRoaXMuJChcbiAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICdUYWJsZScsXG4gICAgICAgIHtcbiAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuVG9wTGVmdCxcbiAgICAgICAgICBhbGlnbm1lbnRGb2N1czogbmV3IGdvLlNwb3QoMCwgMCwgLTEwLCAtMTApLFxuICAgICAgICAgIC8vIHBhZGRpbmc6IG5ldyBnby5NYXJnaW4oMCwgMCwgNTAsIDApLFxuICAgICAgICB9LFxuICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgJ0hvcml6b250YWwnLFxuICAgICAgICAgIHtcbiAgICAgICAgICAgIHJvdzogMCxcbiAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5MZWZ0LFxuICAgICAgICAgIH0sXG4gICAgICAgICAgdGhpcy4kKGdvLlBpY3R1cmUsIGljb24sIHtcbiAgICAgICAgICAgIHJvdzogMCxcbiAgICAgICAgICAgIC8vIGFsaWdubWVudDogZ28uU3BvdC5DZW50ZXIsXG4gICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuTGVmdCxcbiAgICAgICAgICAgIG1heFNpemU6IG5ldyBnby5TaXplKDQwLCA0MCksXG4gICAgICAgICAgICBpbWFnZVN0cmV0Y2g6IGdvLkdyYXBoT2JqZWN0LlVuaWZvcm0sXG4gICAgICAgICAgfSksXG4gICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAnVGFibGUnLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICBjb2x1bW46IDEsXG4gICAgICAgICAgICAgIGRlZmF1bHRBbGlnbm1lbnQ6IGdvLlNwb3QuTGVmdCxcbiAgICAgICAgICAgICAgYWxpZ25tZW50Rm9jdXM6IG5ldyBnby5TcG90KDAsIDAsIDAsIDIwKSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAgQXRvR29qc0VkaXRvck1vZGVsLlRFTVBMQVRFX0RVUExJQ0FURVt0aXRsZV0gPz8gdGl0bGUsXG4gICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICByb3c6IDAsXG4gICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDMsIDMsIDUsIDEwKSxcbiAgICAgICAgICAgICAgICAvLyBtYXhTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAyMCwgTmFOKSxcbiAgICAgICAgICAgICAgICBzdHJva2U6ICcjNDQ0NDQ0JyxcbiAgICAgICAgICAgICAgICBmb250OiAnbm9ybWFsIDEwcHQgQXJpYWwnLFxuICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkxlZnQsXG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICksXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIHJvdzogMSxcbiAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMCwgMywgMywgMTApLFxuICAgICAgICAgICAgICAgIGVkaXRhYmxlOiB0cnVlLFxuICAgICAgICAgICAgICAgIC8vIG1heFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCA0MCksXG4gICAgICAgICAgICAgICAgc3Ryb2tlOiAnIzAwMEQ0MicsXG4gICAgICAgICAgICAgICAgZm9udDogJ2JvbGQgMTBwdCBBcmlhbCcsXG4gICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgICB3cmFwOiBnby5UZXh0QmxvY2suTm9uZSxcbiAgICAgICAgICAgICAgICBvdmVyZmxvdzogZ28uVGV4dEJsb2NrLk92ZXJmbG93RWxsaXBzaXMsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWUnKS5tYWtlVHdvV2F5KCksXG4gICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAvLyBkZWZpbmUgYSB0b29sdGlwIGZvciBlYWNoIG5vZGUgdGhhdCBkaXNwbGF5cyB0aGUgY29sb3IgYXMgdGV4dFxuICAgICAgICAgICAgICAgIHRvb2xUaXA6IHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICdUb29sVGlwJyxcbiAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAgICB7IG1hcmdpbjogNCB9LFxuICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJylcbiAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICApLCAvLyBlbmQgb2YgQWRvcm5tZW50XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIClcbiAgICAgICAgICApXG4gICAgICAgIClcbiAgICAgIClcbiAgICApO1xuXG4gICAgdGhpcy5teURpYWdyYW0uZ3JvdXBUZW1wbGF0ZU1hcC5zZXQodGl0bGUs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JywgJycsIChkYXRhKSA9PiB7XG4gICAgICAgICAgICByZXR1cm4gZGF0YT8uY29sb3I7XG4gICAgICAgICAgfSlcbiAgICAgICAgKSxcblxuICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgIHtcbiAgICAgICAgICAgIHN0cm9rZTogJ3doaXRlJyxcbiAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigwLCAwLCAwLCA1KSxcbiAgICAgICAgICAgIHN0cmV0Y2g6IGdvLkdyYXBoT2JqZWN0LkZpbGwsXG4gICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuTGVmdCxcbiAgICAgICAgICAgIHZlcnRpY2FsQWxpZ25tZW50OiBnby5TcG90LkNlbnRlcixcbiAgICAgICAgICAgIGZvbnQ6ICcxNHB4IHNhbnMtc2VyaWYnLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAndGl0bGUnKVxuICAgICAgICApXG4gICAgICApLFxuICAgICAgdGhpcy4kKFxuICAgICAgICBnby5TaGFwZSxcbiAgICAgICAgJ1JlY3RhbmdsZScsXG4gICAgICAgIHtcbiAgICAgICAgICBoZWlnaHQ6IDYsXG4gICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDAsIC02LCAwKSxcbiAgICAgICAgICBzdHJldGNoOiBnby5HcmFwaE9iamVjdC5GaWxsLFxuICAgICAgICB9LFxuICAgICAgICBuZXcgZ28uQmluZGluZygnZmlsbCcsICcnLCAoZGF0YSkgPT4ge1xuICAgICAgICAgIHJldHVybiBkYXRhPy5jb2xvcjtcbiAgICAgICAgfSksXG4gICAgICAgIG5ldyBnby5CaW5kaW5nKCdzdHJva2UnLCAnJywgKGRhdGEpID0+IHtcbiAgICAgICAgICByZXR1cm4gZGF0YT8uY29sb3I7XG4gICAgICAgIH0pLFxuICAgICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICcnLCAoZGF0YSkgPT4gISFkYXRhPy50aXRsZSlcbiAgICAgICksXG4gICAgICB0aGlzLiQoXG4gICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAnQXV0bycsXG4gICAgICAgIHRoaXMuJChcbiAgICAgICAgICBnby5TaGFwZSxcbiAgICAgICAgICAnUm91bmRlZFJlY3RhbmdsZScsXG4gICAgICAgICAgeyBmaWxsOiAnI0U2RjBGNycsIHN0cm9rZTogJyMwMDYzQTknLCBzdHJva2VXaWR0aDogNCwgcGFyYW1ldGVyMTogNSB9LFxuICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdmaWxsJywgJ2JnQ29sb3InKSxcbiAgICAgICAgICBuZXcgZ28uQmluZGluZygnc3Ryb2tlJywgJ2JvcmRlclRhYmxlJylcbiAgICAgICAgKSxcbiAgICAgICAgdGhpcy4kKFxuICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICdUYWJsZScsXG4gICAgICAgICAgLy8gU2V0IGRlZmF1bHRzIGZvciBhbGwgcm93cyBhbmQgY29sdW1uczpcbiAgICAgICAgICB7XG4gICAgICAgICAgICBwYWRkaW5nOiAxLjUsXG4gICAgICAgICAgICBkZWZhdWx0Um93U2VwYXJhdG9yU3Ryb2tlOiAnIzAwNjJBOScsXG4gICAgICAgICAgICBkZWZhdWx0Q29sdW1uU2VwYXJhdG9yU3Ryb2tlOiAnIzAwNjJBOScsXG4gICAgICAgICAgICBkZWZhdWx0U2VwYXJhdG9yUGFkZGluZzogbmV3IGdvLk1hcmdpbig1LCAyLCA1LCAyKSxcbiAgICAgICAgICB9LFxuICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdkZWZhdWx0Um93U2VwYXJhdG9yU3Ryb2tlJywgJ2JvcmRlclRhYmxlJyksXG4gICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2RlZmF1bHRDb2x1bW5TZXBhcmF0b3JTdHJva2UnLCAnYm9yZGVyVGFibGUnKSxcbiAgICAgICAgICAvLyB0aGlzLiQoXG4gICAgICAgICAgLy8gICAgIGdvLlBhbmVsLFxuICAgICAgICAgIC8vICAgICAnVGFibGVSb3cnLFxuICAgICAgICAgIC8vICAgICB7IHJvdzogMCB9LFxuICAgICAgICAgIC8vICAgICB0aGlzLiQoZ28uVGV4dEJsb2NrLCAncm93IDEgY29sIDEnLCB7IGNvbHVtbjogMCwgbWFyZ2luOiAyIH0pLFxuICAgICAgICAgIC8vICAgICB0aGlzLiQoZ28uVGV4dEJsb2NrLCAncm93IDEgY29sIDInLCB7IGNvbHVtbjogMSwgbWFyZ2luOiAyIH0pLFxuICAgICAgICAgIC8vICksXG4gICAgICAgICAgLy8gdGhpcy4kKFxuICAgICAgICAgIC8vICAgICBnby5QYW5lbCxcbiAgICAgICAgICAvLyAgICAgJ1RhYmxlUm93JyxcbiAgICAgICAgICAvLyAgICAgeyByb3c6IDEgfSxcbiAgICAgICAgICAvLyAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywgJ3JvdyAyIGNvbCAxJywgeyBjb2x1bW46IDAsIG1hcmdpbjogMiB9KSxcbiAgICAgICAgICAvLyAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywgJ3JvdyAyIGNvbCAyJywgeyBjb2x1bW46IDEsIG1hcmdpbjogMiB9KSxcbiAgICAgICAgICAvLyApLFxuICAgICAgICAgIC8vIG5ldyBnby5CaW5kaW5nKCdpdGVtQXJyYXknLCAnZGF0YVRhYmxlJyksXG4gICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2l0ZW1BcnJheScsICcnLCBmdW5jdGlvbiAoZGF0YSkge1xuICAgICAgICAgICAgcmV0dXJuIGRhdGEuZGF0YVRhYmxlLmZpbHRlcigoeCkgPT4geD8udmlzaWJsZSAhPT0gZmFsc2UpO1xuICAgICAgICAgIH0pLFxuICAgICAgICAgIHtcbiAgICAgICAgICAgIC8vIGl0ZW1UZW1wbGF0ZTogdGhpcy4kKFxuICAgICAgICAgICAgLy8gICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgLy8gICAgIG5ldyBnby5CaW5kaW5nKCdyb3cnLCAnaW5kZXhSb3cnKSxcbiAgICAgICAgICAgIC8vICAgICAvLyBuZXcgZ28uQmluZGluZygnaGVpZ2h0JywgJ2hlaWdodCcpLFxuICAgICAgICAgICAgLy8gICAgIHRoaXMuJChcbiAgICAgICAgICAgIC8vICAgICAgICAgZ28uUGljdHVyZSxcbiAgICAgICAgICAgIC8vICAgICAgICAgQVJST1csXG4gICAgICAgICAgICAvLyAgICAgICAgIHtcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5DZW50ZXIsXG4gICAgICAgICAgICAvLyAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZSgyMCwgNDApLFxuICAgICAgICAgICAgLy8gICAgICAgICAgICAgLy8gaW1hZ2VTdHJldGNoOiBnby5HcmFwaE9iamVjdC5Vbmlmb3JtLFxuICAgICAgICAgICAgLy8gICAgICAgICB9LFxuICAgICAgICAgICAgLy8gICAgICAgICBuZXcgZ28uQmluZGluZygnc291cmNlJywgJycsIChkYXRhLCBwYW5lbCkgPT4ge1xuICAgICAgICAgICAgLy8gICAgICAgICAgICAgLy8gcGFuZWwucGFydD8uZGF0YT8uaWRcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgIHJldHVybiBkYXRhPy5pc0NyZWF0ZWQgPyBwYW5lbD8uJHAgOiBBUlJPV19HUkFZO1xuICAgICAgICAgICAgLy8gICAgICAgICB9KSxcbiAgICAgICAgICAgIC8vICAgICApLFxuICAgICAgICAgICAgLy8gKSxcbiAgICAgICAgICAgIGl0ZW1UZW1wbGF0ZTogdGhpcy4kKFxuICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgJ1RhYmxlUm93JyxcbiAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIGN1cnNvcjogJ3BvaW50ZXInLFxuICAgICAgICAgICAgICAgIGNsaWNrOiAoZSwgb2JqOiBhbnkpID0+IHtcbiAgICAgICAgICAgICAgICAgIGlmIChcbiAgICAgICAgICAgICAgICAgICAgb2JqLnBhbmVsLnBhcnQuZGF0YT8uZGF0YVRhYmxlW29iai5yb3ddPy5pc0VkaXRhYmxlID09PVxuICAgICAgICAgICAgICAgICAgICBmYWxzZVxuICAgICAgICAgICAgICAgICAgKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgIHNlbGYub25DbGlrUGFyYW1PZlRhYmxlLmVtaXQoe1xuICAgICAgICAgICAgICAgICAgICAuLi5vYmoucGFuZWwucGFydC5kYXRhPy5kYXRhVGFibGVbb2JqLnJvd10sXG4gICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIGJhY2tncm91bmQ6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAgJycsXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgY29sdW1uOiAwLFxuICAgICAgICAgICAgICAgICAgbWFyZ2luOiAyLFxuICAgICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnbGVmdCcsXG4gICAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuTGVmdCxcbiAgICAgICAgICAgICAgICAgIG92ZXJmbG93OiBnby5UZXh0QmxvY2suT3ZlcmZsb3dFbGxpcHNpcyxcbiAgICAgICAgICAgICAgICAgIHRvb2xUaXA6IHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgJ1Rvb2xUaXAnLFxuICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbjogNCxcbiAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJycsIChkYXRhLCBwYW5lbCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGRhdGE/Lm5hbWU7XG4gICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJycsIChkYXRhLCBwYW5lbCkgPT4ge1xuICAgICAgICAgICAgICAgICAgcmV0dXJuIGRhdGE/Lm5hbWU7XG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ21heFNpemUnLCAnJywgKGRhdGEsIHBhbmVsKSA9PiB7XG4gICAgICAgICAgICAgICAgICByZXR1cm4gZGF0YT8ubWF4U2l6ZU5hbWVQYXJhbTtcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgJ1RhYmxlJyxcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICBjb2x1bW46IDEsXG4gICAgICAgICAgICAgICAgICBtYXJnaW46IDIsXG4gICAgICAgICAgICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAgICAgICAgICAgZGVmYXVsdFNlcGFyYXRvclBhZGRpbmc6IG5ldyBnby5NYXJnaW4oMCwgMCwgMCwgMCksXG4gICAgICAgICAgICAgICAgICBzdHJldGNoOiBnby5HcmFwaE9iamVjdC5GaWxsLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ21pblNpemUnLCAnJywgKGRhdGEsIHBhbmVsKSA9PiB7XG4gICAgICAgICAgICAgICAgICAvLyByZXR1cm4gcGFuZWwucGFydD8uZGF0YT8ubWluU2l6ZVZhbHVlO1xuICAgICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBnby5TaXplKFxuICAgICAgICAgICAgICAgICAgICBwYW5lbC5wYXJ0Py5kYXRhPy5taW5TaXplVmFsdWU/LndpZHRoLFxuICAgICAgICAgICAgICAgICAgICBOYU5cbiAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAgJycsXG4gICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIGNvbHVtbjogMCxcbiAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiAwLFxuICAgICAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuTGVmdCxcbiAgICAgICAgICAgICAgICAgICAgb3ZlcmZsb3c6IGdvLlRleHRCbG9jay5PdmVyZmxvd0VsbGlwc2lzLFxuICAgICAgICAgICAgICAgICAgICBjdXJzb3I6ICdwb2ludGVyJyxcbiAgICAgICAgICAgICAgICAgICAgdG9vbFRpcDogdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICdUb29sVGlwJyxcbiAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbjogNCxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICcnLCAoZGF0YSwgcGFuZWwpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGAke1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICEhdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPyBgJHtkYXRhPy50YWdOYW1lIHx8ICcnfSBgXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICA6ICcnXG4gICAgICAgICAgICAgICAgICAgICAgICAgIH0ke2RhdGE/LnZhbHVlfWA7XG4gICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd2aXNpYmxlJywgJycsIChkYXRhKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAhIXRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHkgJiZcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhPy50YWdOYW1lXG4gICAgICAgICAgICAgICAgICAgICAgICAgICkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICEhZGF0YT8udmFsdWU7XG4gICAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICcnLCAoZGF0YSwgcGFuZWwpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGRhdGE/LnZhbHVlO1xuICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnc3Ryb2tlJywgJycsIChkYXRhKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGlmICghdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seSkge1xuICAgICAgICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gZGF0YS5jb2xvcjtcbiAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ21heFNpemUnLCAnJywgKGRhdGEpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBnby5TaXplKGRhdGE/Lm1heFNpemVWYWx1ZSB8fCAxOTAsIDE0KTtcbiAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2ZvbnQnLCAnJywgKGRhdGEpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGRhdGE/LmZvbnQ7XG4gICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgZ28uUGljdHVyZSxcbiAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LlJpZ2h0LFxuICAgICAgICAgICAgICAgICAgICBjb2x1bW46IDEsXG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigwLCAwLCAwLCA1KSxcbiAgICAgICAgICAgICAgICAgICAgc291cmNlOiBJQ09OU19CQVNFNjRbJ3VmMDQ0J10sXG4gICAgICAgICAgICAgICAgICAgIGN1cnNvcjogJ3BvaW50ZXInLFxuICAgICAgICAgICAgICAgICAgICB2aXNpYmxlOiBmYWxzZSxcbiAgICAgICAgICAgICAgICAgICAgdG9vbFRpcDogdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICdUb29sVGlwJyxcbiAgICAgICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIG1hcmdpbjogNCxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICcnLCAoZGF0YSwgcGFuZWwpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGRhdGE/LnRvb2xUaXBBY3Rpb247XG4gICAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoXG4gICAgICAgICAgICAgICAgICAgICAgICAndmlzaWJsZScsXG4gICAgICAgICAgICAgICAgICAgICAgICAnJyxcbiAgICAgICAgICAgICAgICAgICAgICAgIChkYXRhKSA9PiAhIWRhdGE/LnRvb2xUaXBBY3Rpb25cbiAgICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgIGhlaWdodDogMTQsXG4gICAgICAgICAgICAgICAgICAgIHdpZHRoOiAxNCxcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICcnLCAoZGF0YSwgcGFuZWwpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIChcbiAgICAgICAgICAgICAgICAgICAgICAhZGF0YT8uaXNSZWFkT25seSAmJiAhdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seVxuICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnb3BhY2l0eScsICcnLCAoZGF0YSwgcGFuZWwpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGRhdGE/LmlzRWRpdGFibGUgPT09IGZhbHNlID8gMC42IDogMTtcbiAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICApXG4gICAgICAgICAgICApLFxuICAgICAgICAgIH1cbiAgICAgICAgICAvLyBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJylcbiAgICAgICAgKVxuICAgICAgKVxuICAgICk7XG4gICAgdGhpcy5teURpYWdyYW0ubm9kZVRlbXBsYXRlTWFwLnNldChcbiAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5QQVJBTV9UQUJMRSxcbiAgICAgIG5vZGVcbiAgICApO1xuICB9XG5cbiAgbWFrZU1hc3NCYWxhbmNlKCkge1xuICAgIGNvbnN0IHNlbGYgPSB0aGlzO1xuICAgIGNvbnN0IG5vZGUgPSB0aGlzLiQoXG4gICAgICBnby5QYXJ0LFxuICAgICAgJ0F1dG8nLFxuICAgICAge30sXG4gICAgICBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoXG4gICAgICAgIGdvLlBvaW50LnN0cmluZ2lmeVxuICAgICAgKSxcbiAgICAgIG5ldyBnby5CaW5kaW5nKCdzZWxlY3RhYmxlJywgJ3NlbGVjdGFibGUnKSxcbiAgICAgIHRoaXMuJChcbiAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICdIb3Jpem9udGFsJyxcbiAgICAgICAgLy8gU2V0IGRlZmF1bHRzIGZvciBhbGwgcm93cyBhbmQgY29sdW1uczpcbiAgICAgICAge1xuICAgICAgICAgIHBhZGRpbmc6IDQsXG4gICAgICAgICAgdG9vbFRpcDogdGhpcy4kKFxuICAgICAgICAgICAgJ1Rvb2xUaXAnLFxuICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBtYXJnaW46IDQsXG4gICAgICAgICAgICAgICAgbWF4U2l6ZTogbmV3IGdvLlNpemUoNDUwLCAzMCksXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ3Rvb2x0aXAnKVxuICAgICAgICAgICAgKVxuICAgICAgICAgICksXG4gICAgICAgICAgdmlzaWJsZTogdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seSxcbiAgICAgICAgfSxcbiAgICAgICAgdGhpcy4kKFxuICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAnJyxcbiAgICAgICAgICB7XG4gICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMCwgNSwgMCwgMCksXG4gICAgICAgICAgICB0ZXh0OiAnTWFzcyBCYWxhbmNlOicsXG4gICAgICAgICAgfSxcbiAgICAgICAgICBuZXcgZ28uQmluZGluZygnZm9udCcsICdmb250JylcbiAgICAgICAgKSxcbiAgICAgICAgdGhpcy4kKFxuICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAnJyxcbiAgICAgICAgICB7XG4gICAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5BTElaQVJJTixcbiAgICAgICAgICB9LFxuICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdmb250JywgJ2ZvbnQnKSxcbiAgICAgICAgICBuZXcgZ28uQmluZGluZygnc3Ryb2tlJywgJ2NvbG9yVmFsdWUnKSxcbiAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICcnLCAoZGF0YSwgcGFuZWwpID0+IHtcbiAgICAgICAgICAgIHJldHVybiBkYXRhPy52YWx1ZTtcbiAgICAgICAgICB9KVxuICAgICAgICApXG4gICAgICApXG4gICAgKTtcbiAgICB0aGlzLm15RGlhZ3JhbS5ub2RlVGVtcGxhdGVNYXAuc2V0KFxuICAgICAgQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLk1BU1NfQkFMQU5DRSxcbiAgICAgIG5vZGVcbiAgICApO1xuICB9XG5cbiAgbWFrZUdyb3VwUk9QbGFudFRlbXBsYXRlKFxuICAgIGljb24sXG4gICAgdGl0bGUsXG4gICAgc2l6ZTogeyB3OiBudW1iZXI7IGg6IG51bWJlciB9ID0geyB3OiA4MCwgaDogODAgfVxuICApIHtcbiAgICBsZXQgbm9kZSA9IHRoaXMuJChcbiAgICAgIGdvLkdyb3VwLFxuICAgICAgJ1Nwb3QnLFxuICAgICAge1xuICAgICAgICBsYXlvdXQ6IHRoaXMuJChnby5MYXlvdXQpLFxuICAgICAgfSxcbiAgICAgIHtcbiAgICAgICAgLy8gbWluU2l6ZTogbmV3IGdvLlNpemUoTmFOLCA2MDApLFxuICAgICAgfSxcbiAgICAgIG5ldyBnby5CaW5kaW5nKCdzZWxlY3RhYmxlJywgJ3NlbGVjdGFibGUnKSxcbiAgICAgIG5ldyBnby5CaW5kaW5nKCdsb2NhdGlvbicsICdsb2MnLCBnby5Qb2ludC5wYXJzZSkubWFrZVR3b1dheShcbiAgICAgICAgZ28uUG9pbnQuc3RyaW5naWZ5XG4gICAgICApLFxuICAgICAgdGhpcy4kKFxuICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgJ1RhYmxlJyxcblxuICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgIHtcbiAgICAgICAgICAgIHJvdzogMCxcbiAgICAgICAgICAgIHBhZGRpbmc6IG5ldyBnby5NYXJnaW4oMCwgMCwgMCwgMCksXG4gICAgICAgICAgfSxcbiAgICAgICAgICB0aGlzLiQoZ28uU2hhcGUsICdSb3VuZGVkUmVjdGFuZ2xlJywge1xuICAgICAgICAgICAgbmFtZTogJ1NIQVBFX0tFWScsXG4gICAgICAgICAgICBmaWxsOiAnI0ZDRkNGRCcsXG4gICAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5SRVNPTFVUSU9OX0JMVUUsXG4gICAgICAgICAgICBzdHJva2VXaWR0aDogMixcbiAgICAgICAgICAgIC8vIHN0cm9rZURhc2hBcnJheTogWzUsIDVdLFxuICAgICAgICAgIH0pLFxuXG4gICAgICAgICAgdGhpcy4kKGdvLlBsYWNlaG9sZGVyLCB7IHBhZGRpbmc6IG5ldyBnby5NYXJnaW4oMTUsIDAsIDAsIDApIH0pXG4gICAgICAgICksXG4gICAgICAgIHRoaXMuJChcbiAgICAgICAgICBnby5QaWN0dXJlLFxuICAgICAgICAgIFJPX0xJTkVfRElSVFksXG4gICAgICAgICAge1xuICAgICAgICAgICAgcm93OiAxLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAnJywgKHgpID0+IHtcbiAgICAgICAgICAgIHJldHVybiB4Py5pc1ZpZXdHZW5lcmFsICYmIHg/Lmhhc091dEZsb3cgPyB0cnVlIDogZmFsc2U7XG4gICAgICAgICAgfSlcbiAgICAgICAgKVxuICAgICAgKSxcblxuICAgICAgdGhpcy4kKGdvLlBhbmVsLCAnVGFibGUnLCB7XG4gICAgICAgIHdpZHRoOiAwLFxuICAgICAgICBoZWlnaHQ6IDAsXG4gICAgICAgIGFsaWdubWVudDogbmV3IGdvLlNwb3QoMCwgMCwgMCwgMTgzKSxcbiAgICAgICAgYWxpZ25tZW50Rm9jdXM6IGdvLlNwb3QuTGVmdCxcbiAgICAgICAgLy8gc3RyZXRjaDogZ28uR3JhcGhPYmplY3QuVmVydGljYWwsXG4gICAgICAgIHBvcnRJZDogJ0luZmxvdycsXG4gICAgICAgIGN1cnNvcjogdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seSA/ICcnIDogJ3BvaW50ZXInLFxuICAgICAgICAvLyBhbGlnbm1lbnRGb2N1czogb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yb21TcG90OiBnby5TcG90LkxlZnQsXG4gICAgICAgIHRvU3BvdDogZ28uU3BvdC5MZWZ0LFxuICAgICAgICBmcm9tTGlua2FibGU6IHRydWUsXG4gICAgICAgIHRvTGlua2FibGU6IHRydWUsXG4gICAgICB9KSxcbiAgICAgIHRoaXMuJChcbiAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICdTcG90JyxcbiAgICAgICAge1xuICAgICAgICAgIGFsaWdubWVudEZvY3VzOiBnby5TcG90LlRvcCxcbiAgICAgICAgICBhbGlnbm1lbnQ6IG5ldyBnby5TcG90KDEsIDEsIC0yMTUsIDApLFxuICAgICAgICB9LFxuICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgZ28uUGljdHVyZSxcbiAgICAgICAgICBPVVRGTE9XX0xJTkVfRElSVFksXG4gICAgICAgICAge1xuICAgICAgICAgICAgd2lkdGg6IDEwLFxuICAgICAgICAgICAgaGVpZ2h0OiAyMCxcbiAgICAgICAgICB9LFxuICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd2aXNpYmxlJywgJycsICh4KSA9PiB7XG4gICAgICAgICAgICByZXR1cm4geD8uaXNWaWV3R2VuZXJhbCAmJiB4Py5oYXNPdXRGbG93ID8gdHJ1ZSA6IGZhbHNlO1xuICAgICAgICAgIH0pXG4gICAgICAgICksXG4gICAgICAgIHRoaXMuJChnby5QYW5lbCwge1xuICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5Cb3R0b21MZWZ0LFxuICAgICAgICAgIGFsaWdubWVudEZvY3VzOiBnby5TcG90LlRvcCxcbiAgICAgICAgICBwb3J0SWQ6ICdPdXRGbG93JyxcbiAgICAgICAgICBjdXJzb3I6IHRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHkgPyAnJyA6ICdwb2ludGVyJyxcbiAgICAgICAgICBmcm9tU3BvdDogZ28uU3BvdC5Cb3R0b20sXG4gICAgICAgICAgZnJvbUxpbmthYmxlOiB0cnVlLFxuICAgICAgIC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xuICAgICAgICAgIHN0cm9rZVdpZHRoOiAyLFxuICAgICAgICAgIHN0cm9rZURhc2hBcnJheTogWzUsIDVdLFxuICAgICAgICB9KSxcblxuICAgICAgICB0aGlzLiQoZ28uUGxhY2Vob2xkZXIsIHsgcGFkZGluZzogbmV3IGdvLk1hcmdpbigwLCAwLCAwLCAwKSB9KVxuICAgICAgKSxcbiAgICAgIHRoaXMuJChnby5QYW5lbCwgJ1RhYmxlJywge1xuICAgICAgICB3aWR0aDogMCxcbiAgICAgICAgaGVpZ2h0OiAwLFxuICAgICAgICBhbGlnbm1lbnQ6IG5ldyBnby5TcG90KDAsIDAsIDAsIDUzMyksXG4gICAgICAgIGFsaWdubWVudEZvY3VzOiBnby5TcG90LkJvdHRvbSxcbiAgICAgICAgcG9ydElkOiAnSW5mbG93JyxcbiAgICAgICAgY3Vyc29yOiB0aGlzLl9pbml0aWFsT3B0aW9ucy5pc1JlYWRPbmx5ID8gJycgOiAncG9pbnRlcicsXG4gICAgICAgIGZyb21TcG90OiBnby5TcG90LkxlZnQsXG4gICAgICAgIHRvU3BvdDogZ28uU3BvdC5MZWZ0LFxuICAgICAgICBmcm9tTGlua2FibGU6IHRydWUsXG4gICAgICAgIHRvTGlua2FibGU6IHRydWUsXG4gICAgICB9KSxcbiAgICAgIHRoaXMuJChcbiAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICdTcG90JyxcbiAgICAgICAge1xuICAgICAgICAgIGFsaWdubWVudEZvY3VzOiBnby5TcG90LlRvcCxcbiAgICAgICAgICBhbGlnbm1lbnQ6IG5ldyBnby5TcG90KDAuNSwgMSwgMjMsIDApLFxuICAgICAgICB9LFxuICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgZ28uUGljdHVyZSxcbiAgICAgICAgICBPVVRGTE9XX0xJTkVfRElSVFksXG4gICAgICAgICAge1xuICAgICAgICAgICAgd2lkdGg6IDEwLFxuICAgICAgICAgICAgaGVpZ2h0OiAyMCxcbiAgICAgICAgICB9LFxuICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd2aXNpYmxlJywgJycsICh4KSA9PiB7XG4gICAgICAgICAgICByZXR1cm4geD8uaXNWaWV3R2VuZXJhbCAmJiB4Py5oYXNPdXRGbG93ID8gdHJ1ZSA6IGZhbHNlO1xuICAgICAgICAgIH0pXG4gICAgICAgICksXG4gICAgICAgIHRoaXMuJChnby5QYW5lbCwge1xuICAgICAgICAgIGFsaWdubWVudDogbmV3IGdvLlNwb3QoMCwgMCwgMCwgMTgpLFxuICAgICAgICAgIGFsaWdubWVudEZvY3VzOiBnby5TcG90LlRvcCxcbiAgICAgICAgICBwb3J0SWQ6ICdPdXRGbG93JyxcbiAgICAgICAgICBjdXJzb3I6IHRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHkgPyAnJyA6ICdwb2ludGVyJyxcbiAgICAgICAgICBmcm9tU3BvdDogZ28uU3BvdC5DZW50ZXIsXG4gICAgICAgICAgdG9TcG90OiBnby5TcG90LlJpZ2h0LFxuICAgICAgICAgIGZyb21MaW5rYWJsZTogdHJ1ZSxcbiAgICAgICAgICB0b0xpbmthYmxlOiB0cnVlLFxuICAgICAgICB9KVxuICAgICAgKVxuICAgICk7XG5cbiAgICB0aGlzLm15RGlhZ3JhbS5ncm91cFRlbXBsYXRlTWFwLnNldCh0aXRsZSwgbm9kZSk7XG4gIH1cblxuICBncm91cFBsYW50Q2VsbFRlbXBsYXRlKFxuICAgIGljb24sXG4gICAgdGl0bGUsXG4gICAgc2l6ZTogeyB3OiBudW1iZXI7IGg6IG51bWJlciB9ID0geyB3OiA4MCwgaDogODAgfVxuICApIHtcbiAgICBjb25zdCBzZWxmID0gdGhpcztcbiAgICBsZXQgbm9kZSA9IHRoaXMuJChcbiAgICAgIGdvLkdyb3VwLFxuICAgICAgJ1Nwb3QnLFxuICAgICAge1xuICAgICAgICAvLyBsYXlvdXQ6IHRoaXMuJChnby5MYXlvdXQpLFxuICAgICAgICAvLyBsYXlvdXQ6IHRoaXM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URyb3A6IGZ1bmN0aW9uIChlLCBncnApIHtcbiAgICAgICAgLy8gICAgIC8vIGRpc2FsbG93IGRyb3BwaW5nIGFueXRoaW5nIG9udG8gYW4gQWRvcm5tZW50XG4gICAgICAgIC8vICAgICBpZiAoZ3JwIGluc3RhbmNlb2YgZ28uQWRvcm5tZW50KSByZXR1cm47XG4gICAgICAgIC8vIH0sXG4gICAgICAgIC8vIGRyYWdDb21wdXRhdGlvbjogZnVuY3Rpb24gKG5vZGUsIHB0LCBncmlkUHQpIHtcbiAgICAgICAgLy8gICAgIGxldCBncnAgPSBub2RlLmNvbnRhaW5pbmdHcm91cDtcbiAgICAgICAgLy8gICAgIGlmIChncnAgIT09IG51bGwpIHtcbiAgICAgICAgLy8gICAgICAgICBsZXQgcmVjdCA9IGdycC5hY3R1YWxCb3VuZHM7XG4gICAgICAgIC8vICAgICAgICAgcHQueCA9IE1hdGgubWF4KHJlY3QubGVmdCwgTWF0aC5taW4ocHQueCwgcmVjdC5yaWdodCkpO1xuICAgICAgICAvLyAgICAgICAgIHB0LnkgPSBNYXRoLm1heChyZWN0LnRvcCwgTWF0aC5taW4ocHQueSwgcmVjdC5ib3R0b20pKTtcbiAgICAgICAgLy8gICAgIH1cbiAgICAgICAgLy8gICAgIHJldHVybiBwdDtcbiAgICAgICAgLy8gfSxcblxuICAgICAgICAvLyBkcm9wQ29tcHV0YXRpb246IGZ1bmN0aW9uIChub2RlLCBwdCwgZ3JpZFB0KSB7XG4gICAgICAgIC8vICAgICBsZXQgZ3JwID0gbm9kZS5jb250YWluaW5nR3JvdXA7XG4gICAgICAgIC8vICAgICBpZiAoZ3JwICE9PSBudWxsKSB7XG4gICAgICAgIC8vICAgICAgICAgbGV0IHJlY3QgPSBncnAuYWN0dWFsQm91bmRzO1xuICAgICAgICAvLyAgICAgICAgIHB0LnggPSBNYXRoLm1heChyZWN0LmxlZnQsIE1hdGgubWluKHB0LngsIHJlY3QucmlnaHQpKTtcbiAgICAgICAgLy8gICAgICAgIC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cbiAgICAgICAgLy8gICAgIH1cbiAgICAgICAgLy8gICAgIHJldHVybiBwdDtcbiAgICAgICAgLy8gfSxcbiAgICAgICAgY2xpY2s6IChlLCBvYmo6IGFueSkgPT4ge1xuICAgICAgICAgIHNlbGYubXlEaWFncmFtPy5jbGVhclNlbGVjdGlvbigpO1xuICAgICAgICB9LFxuICAgICAgfSxcbiAgICAgIHtcbiAgICAgICAgLy8gbW91c2VEcmFnRW50ZXI6IChlLCAgb2JqKSA9PiB7XG4gICAgICAgIC8vIH0sXG4gICAgICAgIC8vIG1vdXNlRHJvcDogKGUsICBvYmopID0+IHtcbiAgICAgICAgLy8gfSxcbiAgICAgICAgLy8gbW91c2VFbnRlcjogKGUsIG9iaikgPT4ge1xuICAgICAgICAvLyAgICAgY29uc3Qgbm9kZSA9IG9iai5wYXJ0O1xuICAgICAgICAvLyAgICAgc2VsZi5vbkhvdmVySW5mb0J1dHRvbi5lbWl0KHtcbiAgICAgICAgLy8gICAgICAgICBsZWZ0OiBlPy5bJ1dyJ10/LnggKyA4LFxuICAgICAgICAvLyAgICAgICAgIHRvcDogZT8uWydXciddPy55LFxuICAgICAgICAvLyAgICAgICAgIG5vZGU6IG5vZGUsXG4gICAgICAgIC8vICAgICB9KTtcbiAgICAgICAgLy8gICAgIC8vIGxldCBzaGFwZSA9IChub2RlIGFzIGFueSk/LmZpbmRPYmplY3QoJ1NIQVBFX0tFWScpO1xuICAgICAgICAvLyAgICAgLy8gaWYgKHNoYXBlKSB7XG4gICAgICAgIC8vICAgICAvLyAgICAgc2hhcGUuc3Ryb2tlID0gJ2JsdWUnO1xuICAgICAgICAvLyAgICAgLy8gfVxuICAgICAgICAvLyB9LFxuICAgICAgICAvLyBtb3VzZUxlYXZlOiAoZSwgb2JqKSA9PiB7XG4gICAgICAgIC8vICAgICBzZWxmLm9uSG92ZXJJbmZvQnV0dG9uLmVtaXQobnVsbCk7XG4gICAgICAgIC8vICAgICAvLyBsZXQgc2hhcGUgPSAobm9kZSBhc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W9kZWwuR1JJRF9TSVpFICogMTQsXG4gICAgICBoOiBBdG9Hb2pzRWRpdG9yTW9kZWwuR1JJRF9TSVpFICogNSxcbiAgICB9XG4gICkge1xuICAgIGNvbnN0IHNlbGYgPSB0aGlzO1xuICAgIGxldCBub2RlID0gdGhpcy4kKFxuICAgICAgZ28uR3JvdXAsXG4gICAgICAnVmVydGljYWwnLFxuICAgICAge1xuICAgICAgICBsYXlvdXQ6IHRoaXMuJChnby5HcmlkTGF5b3V0LCB7XG4gICAgICAgICAgd3JhcHBpbmdDb2x1bW46IDEsXG4gICAgICAgICAgc3BhY2luZzogbmV3IGdvLlNpemUoMCwgMCksXG4gICAgICAgIH0pLFxuICAgICAgfSxcblxuICAgICAge1xuICAgICAgICBsb2NhdGlvblNwb3Q6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICBtb3VzZU92ZXI6IGZ1bmN0aW9uIChlLCBvYmopIHtcbiAgICAgICAgICAvLyBzZWxmLnNob3dQb2ludChvYmo/LnBhcnQ/LmxvY2F0aW9uKTtcbiAgICAgICAgfSxcbiAgICAgICAgY2xpY2s6IChlLCBvYmo6IGFueSkgPT4ge1xuICAgICAgICAgIGlmIChvYmo/LmRhdGE/Lm9uU2VsZWN0ZWQpIHtcbiAgICAgICAgICAgIG9iaj8uZGF0YT8ub25TZWxlY3RlZChvYmo/LmRhdGEpO1xuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgc2VsZWN0aW9uQ2hhbmdlZDogKGUpID0+IHtcbiAgICAgICAgICBpZiAoIWUuaXNTZWxlY3RlZCAmJiBlPy5kYXRhPy5vblNlbGVjdGVkKSB7XG4gICAgICAgICAgICBlPy5kYXRhPy5vblNlbGVjdGVkKG51bGwpO1xuICAgICAgICAgIH1cbiAgICAgICAgfSxcblxuICAgICAgICBzZWxlY3Rpb25BZG9ybm1lbnRUZW1wbGF0ZTogdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seVxuICAgICAgICAgID8gbnVsbFxuICAgICAgICAgIDogdGhpcy4kKFxuICAgICAgICAgICAgICBnby5BZG9ybm1lbnQsXG4gICAgICAgICAgICAgICdTcG90JyxcbiAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIHNoYWRvd1Zpc2libGU6IHRydWUsXG4gICAgICAgICAgICAgICAgc2hhZG93Qmx1cjogNixcbiAgICAgICAgICAgICAgICBzaGFkb3dPZmZzZXQ6IG5ldyBnby5Qb2ludCgwLCAyKSxcbiAgICAgICAgICAgICAgICBzaGFkb3dDb2xvcjogJyMwMDAwMDAyOScsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCB7XG4gICAgICAgICAgICAgICAgICBmaWxsOiBudWxsLFxuICAgICAgICAgICAgICAgICAgc3Ryb2tlOiAnZG9kZ2VyYmx1ZScsXG4gICAgICAgICAgICAgICAgICBzdHJva2VXaWR0aDogNCxcbiAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICB0aGlzLiQoZ28uUGxhY2Vob2xkZXIsIHsgcGFkZGluZzogMyB9KVxuICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgJ0hvcml6b250YWwnLFxuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5Ub3BSaWdodCxcbiAgICAgICAgICAgICAgICAgIGFsaWdubWVudEZvY3VzOiBnby5TcG90LkJvdHRvbSxcbiAgICAgICAgICAgICAgICAgIGJhY2tncm91bmQ6ICd3aGl0ZScsXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAnQnV0dG9uJyxcbiAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgX2RyYWdEYXRhOiB7XG4gICAgICAgICAgICAgICAgICAgICAgdHlwZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLlRFWFRfTk9ERSxcbiAgICAgICAgICAgICAgICAgICAgICBuYW1lOiAwLFxuICAgICAgICAgICAgICAgICAgICAgIGNvbG9yOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuQkxVRSxcbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgY2xpY2s6IHNlbGYuYWRkSXRlbU9uR3JvdXBab25lLCAvLyBkZWZpbmVkIGJlbG93LCB0byBzdXBwb3J0IGEgY2xpY2sgb24gdGhlIGJ1dHRvblxuICAgICAgICAgICAgICAgICAgICAnQnV0dG9uQm9yZGVyLnN0cm9rZVdpZHRoJzogMCxcbiAgICAgICAgICAgICAgICAgICAgJ0J1dHRvbkJvcmRlci5maWxsJzogJ3doaXRlJyxcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICB0aGlzLiQoZ28uVGV4dEJsb2NrLCB7XG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbjogNCxcbiAgICAgICAgICAgICAgICAgICAgdGV4dDogJ1xcdWYwNTUnLFxuICAgICAgICAgICAgICAgICAgICBmb250OiAnMjBweCBcIkZvbnQgQXdlc29tZSA2IFByb1wiJyxcbiAgICAgICAgICAgICAgICAgICAgY3Vyc29yOiAncG9pbnRlcicsXG4gICAgICAgICAgICAgICAgICAgIHN0cm9rZTogJyMyYzJjMmMnLFxuICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgIC8vIG1vcmVcbiAgICAgICAgICAgICAgICB0aGlzLmdlbmVyYXRlQWN0aW9uR3JvdXAoW1xuICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLlJFTkFNRSxcbiAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5ERVRBSUxTLFxuICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLk9VVEZMT1csXG4gICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuREVMRVRFLFxuICAgICAgICAgICAgICAgIF0pXG4gICAgICAgICAgICAgICAgLy8gdGhpcy4kKFxuICAgICAgICAgICAgICAgIC8vICAgICAvLyBFZGl0IFRleHRcbiAgICAgICAgICAgICAgICAvLyAgICAgJ0J1dHRvbicsXG4gICAgICAgICAgICAgICAgLy8gICAgIHtcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgIGNsaWNrOiBzZWxmLmVkaXRUZXh0R3JvdXBab25lLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgJ0J1dHRvbkJvcmRlci5zdHJva2VXaWR0aCc6IDAsXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAnQnV0dG9uQm9yZGVyLmZpbGwnOiAnd2hpdGUnLFxuICAgICAgICAgICAgICAgIC8vICAgICB9LFxuICAgICAgICAgICAgICAgIC8vICAgICB0aGlzLiQoZ28uVGV4dEJsb2NrLCB7XG4gICAgICAgICAgICAgICAgLy8gICAgICAgICBtYXJnaW46IDQsXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICB0ZXh0OiAnXFx1ZTFiZicsXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICBmb250OiAnMjBweCBcIkZvbnQgQXdlc29tZSA2IFByb1wiJyxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgIGN1cnNvcjogJ3BvaW50ZXInLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgc3Ryb2tlOiAnIzJjMmMyYycsXG4gICAgICAgICAgICAgICAgLy8gICAgIH0pLFxuICAgICAgICAgICAgICAgIC8vICksXG4gICAgICAgICAgICAgICAgLy8gdGhpcy4kKFxuICAgICAgICAgICAgICAgIC8vICAgICAvLyBPcGVuIERldGFpbFxuICAgICAgICAgICAgICAgIC8vICAgICAnQnV0dG9uJyxcbiAgICAgICAgICAgICAgICAvLyAgICAge1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgY2xpY2s6IChlLCBvYmo6IGFueSkgPT4ge1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgIGNvbnN0IG5vZGUgPSBvYmoucGFydDtcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICBzZWxmLm9uT3BlbkRldGFpbC5lbWl0KHtcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgbm9kZSxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAnQnV0dG9uQm9yZGVyLnN0cm9rZVdpZHRoJzogMCxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICdCdXR0b25Cb3JkZXIuZmlsbCc6ICd3aGl0ZScsXG4gICAgICAgICAgICAgICAgLy8gICAgIH0sXG4gICAgICAgICAgICAgICAgLy9cbiAgICAgICAgICAgICAgICAvLyAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywge1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgbWFyZ2luOiA0LFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgdGV4dDogJ1xcdWU0OWEnLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgZm9udDogJzIwcHggXCJGb250IEF3ZXNvbWUgNiBQcm9cIicsXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICBjdXJzb3I6ICdwb2ludGVyJyxcbiAgICAgICAgICAgICAgICAvLyAgICAgfSksXG4gICAgICAgICAgICAgICAgLy8gKSxcbiAgICAgICAgICAgICAgICAvLyAhdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seVxuICAgICAgICAgICAgICAgIC8vICAgICA/IHRoaXMuJChcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgJ0J1dHRvbicsXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgIGFjdGlvbk1vdmU6IHNlbGYuZHJhZ05ld05vZGUsIC8vIGRlZmluZWQgYmVsb3csIHRvIHN1cHBvcnQgZHJhZ2dpbmcgZnJvbSB0aGUgYnV0dG9uXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICBfZHJhZ0RhdGE6IHtcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgICB0eXBlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuVEVYVF9OT0RFLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICAgIG5hbWU6IDAsXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgY29sb3I6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5CTFVFLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgIGNsaWNrOiBzZWxmLmNsaWNrTmV3Tm9kZSwgLy8gZGVmaW5lZCBiZWxvdywgdG8gc3VwcG9ydCBhIGNsaWNrIG9uIHRoZSBidXR0b25cbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgICdCdXR0b25Cb3JkZXIuc3Ryb2tlV2lkdGgnOiAwLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgJ0J1dHRvbkJvcmRlci5maWxsJzogJ3doaXRlJyxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywge1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgbWFyZ2luOiA0LFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgdGV4dDogJ1xcdWUxNTcnLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgZm9udDogJzIwcHggXCJGb250IEF3ZXNvbWUgNiBQcm9cIicsXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICBjdXJzb3I6ICdwb2ludGVyJyxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgIHN0cm9rZTogJyMyYzJjMmMnLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAvLyAgICAgICApXG4gICAgICAgICAgICAgICAgLy8gICAgIDoge30sXG5cbiAgICAgICAgICAgICAgICAvLyB0aGlzLiQoXG4gICAgICAgICAgICAgICAgLy8gICAgICdCdXR0b24nLFxuICAgICAgICAgICAgICAgIC8vICAgICB7XG4gICAgICAgICAgICAgICAgLy8gICAgICAgICBjbGljazogc2VsZi5kZWxldGVOb2RlLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgJ0J1dHRvbkJvcmRlci5zdHJva2VXaWR0aCc6IDAsXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAnQnV0dG9uQm9yZGVyLmZpbGwnOiAnd2hpdGUnLFxuICAgICAgICAgICAgICAgIC8vICAgICB9LFxuICAgICAgICAgICAgICAgIC8vICAgICB0aGlzLiQoZ28uVGV4dEJsb2NrLCB7XG4gICAgICAgICAgICAgICAgLy8gICAgICAgICBtYXJnaW46IDQsXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICB0ZXh0OiAnXFx1ZjJlZCcsXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICBmb250OiAnMjBweCBcIkZvbnQgQXdlc29tZSA2IFByb1wiJyxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgIGN1cnNvcjogJ3BvaW50ZXInLFxuICAgICAgICAgICAgICAgIC8vICAgICB9KSxcbiAgICAgICAgICAgICAgICAvLyApLFxuICAgICAgICAgICAgICApXG4gICAgICAgICAgICApLFxuICAgICAgfSxcblxuICAgICAgdGhpcy4kKFxuICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgJ0F1dG8nLFxuICAgICAgICB0aGlzLiQoZ28uU2hhcGUsICdSb3VuZGVkUmVjdGFuZ2xlJywge1xuICAgICAgICAgIGZpbGw6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuUkVTT0xVVElPTl9CTFVFLFxuICAgICAgICAgIHN0cm9rZVdpZHRoOiAyLFxuICAgICAgICAgIHN0cm9rZURhc2hBcnJheTogWzUsIDVdLFxuICAgICAgICAgIG1heFNpemU6IG5ldyBnby5TaXplKHNpemUudywgTmFOKSxcbiAgICAgICAgfSksXG4gICAgICAgIHRoaXMuJChcbiAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAnVGFibGUnLFxuICAgICAgICAgIHtcbiAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5Ub3AsXG4gICAgICAgICAgICBwYWRkaW5nOiBuZXcgZ28uTWFyZ2luKDE3LCAxMCwgMTYsIDEwKSxcbiAgICAgICAgICB9LFxuICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgcm93OiAwLFxuICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oNSwgMCwgMTAsIDApLFxuICAgICAgICAgICAgICBlZGl0YWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgZGVzaXJlZFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCAyNSksXG4gICAgICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLk5JR0hUX1JJREVSLFxuICAgICAgICAgICAgICBmb250OiAnYm9sZCAxNnB4IEFyaWFsJyxcbiAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgd3JhcDogZ28uVGV4dEJsb2NrLk5vbmUsXG4gICAgICAgICAgICAgIG92ZXJmbG93OiBnby5UZXh0QmxvY2suT3ZlcmZsb3dFbGxpcHNpcyxcbiAgICAgICAgICAgICAgdG9vbFRpcDogdGhpcy4kKFxuICAgICAgICAgICAgICAgICdUb29sVGlwJyxcbiAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbjogNCxcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJykubWFrZVR3b1dheSgpXG4gICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWUnKS5tYWtlVHdvV2F5KClcbiAgICAgICAgICApLFxuICAgICAgICAgIHRoaXMuJChnby5QbGFjZWhvbGRlciwgJ1ZlcnRpY2FsJywge1xuICAgICAgICAgICAgcm93OiAxLFxuICAgICAgICAgIH0pXG4gICAgICAgICksXG5cbiAgICAgICAgdGhpcy5tYWtlUG9ydCgnVCcsIGdvLlNwb3QuVG9wLCBnby5TcG90LlRvcFNpZGUsIGZhbHNlLCB0cnVlKSxcbiAgICAgICAgdGhpcy5tYWtlUG9ydCgnTCcsIGdvLlNwb3QuTGVmdCwgZ28uU3BvdC5MZWZ0U2lkZSwgdHJ1ZSwgdHJ1ZSksXG4gICAgICAgIHRoaXMubWFrZVBvcnQoJ1InLCBnby5TcG90LlJpZ2h0LCBnby5TcG90LlJpZ2h0U2lkZS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DgsXG4gICAgICAvLyAgICAgICAgICAgICAgICAgdG9wOiBlPy5bJ1dyJ10/LnksXG4gICAgICAvLyAgICAgICAgICAgICAgICAgbm9kZTogbm9kZVxuICAgICAgLy8gICAgICAgICAgICAgfSk7XG4gICAgICAvLyAgICAgICAgIH1cbiAgICAgIC8vICAgICB9LFxuICAgICAgLy8gICAgIG1vdXNlTGVhdmU6IChlLCBvYmopID0+IHtcbiAgICAgIC8vICAgICAgICAgaWYgKChvYmogYXMgYW55KS5wYXJ0Py5vYj8udmFsdWUgPT09IFZBTFVFX05BKSB7XG4gICAgICAvLyAgICAgICAgICAgICBzZWxmLm9uSG92ZXJJbmZvQnV0dG9uLmVtaXQobnVsbCk7XG4gICAgICAvLyAgICAgICAgIH1cbiAgICAgIC8vICAgICB9LFxuICAgICAgLy8gICAgIGNsaWNrOiAoZSwgb2JqOiBhbnkpID0+IHtcbiAgICAgIC8vICAgICAgICAgY29uc3Qgbm9kZSA9IG9iai5wYXJ0O1xuICAgICAgLy8gICAgICAgICB0aGlzLmlzU2hvd05vZGVJbmZvID8gc2VsZi5vbkNsaWNrSW5mb0J1dHRvbi5lbWl0KHtcbiAgICAgIC8vICAgICAgICAgICAgIGxlZnQ6IGU/LlsnV3InXT8ueCxcbiAgICAgIC8vICAgICAgICAgICAgIHRvcDogZT8uWydXciddPy55LFxuICAgICAgLy8gICAgICAgICAgICAgbm9kZTogbm9kZVxuICAgICAgLy8gICAgICAgICB9KSA6IG51bGw7XG4gICAgICAvLyAgICAgfSxcbiAgICAgIC8vIH0sXG4gICAgICAvLyBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoZ28uUG9pbnQuc3RyaW5naWZ5KSxcbiAgICAgIHtcbiAgICAgICAgbW92YWJsZTogZmFsc2UsXG4gICAgICB9LFxuICAgICAgdGhpcy4kKFxuICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgJ0F1dG8nLFxuICAgICAgICB7XG4gICAgICAgICAgd2lkdGg6IHNpemUudyxcbiAgICAgICAgICBoZWlnaHQ6IHNpemUuaCxcbiAgICAgICAgfSxcbiAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCAnUmVjdGFuZ2xlJywge1xuICAgICAgICAgIGZpbGw6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5MSUdIVF9CTFVFLFxuICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLkxJTktfV0FURVIsXG4gICAgICAgIH0pLFxuICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgJ1ZlcnRpY2FsJyxcbiAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgIGVkaXRhYmxlOiB0cnVlLFxuICAgICAgICAgICAgICByb3c6IDIsXG4gICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigxMCwgMCwgNSwgMCksXG4gICAgICAgICAgICAgIGZvbnQ6ICdib2xkIDEycHggQXJpYWwnLFxuICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5OSUdIVF9SSURFUixcbiAgICAgICAgICAgICAgdG9vbFRpcDogdGhpcy4kKFxuICAgICAgICAgICAgICAgICdUb29sVGlwJyxcbiAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbjogNCxcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJykubWFrZVR3b1dheSgpXG4gICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWUnKS5tYWtlVHdvV2F5KCksXG4gICAgICAgICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICduYW1lJywgKHgpID0+ICEheClcbiAgICAgICAgICApLFxuICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgJ0hvcml6b250YWwnLFxuXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigwLCAxMCwgMCwgMTApLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDUsIDEwLCAwKSxcbiAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICAgIGZvbnQ6ICcxMnB4IHNhbnMtc2VyaWYnLFxuICAgICAgICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLk5JR0hUX1JJREVSLFxuICAgICAgICAgICAgICAgIHdyYXA6IGdvLlRleHRCbG9jay5XcmFwRml0LFxuICAgICAgICAgICAgICAgIGVkaXRhYmxlOiB0cnVlLFxuICAgICAgICAgICAgICAgIGlzTXVsdGlsaW5lOiBmYWxzZSxcbiAgICAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAxMDAsIDE1KSxcbiAgICAgICAgICAgICAgICBvdmVyZmxvdzogZ28uVGV4dEJsb2NrLk92ZXJmbG93RWxsaXBzaXMsXG4gICAgICAgICAgICAgICAgdG9vbFRpcDogdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgJ1Rvb2xUaXAnLFxuICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IDQsXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWVJdGVtJykubWFrZVR3b1dheSgpXG4gICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnbmFtZUl0ZW0nKS5tYWtlVHdvV2F5KCksXG4gICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd2aXNpYmxlJywgJ25hbWVJdGVtJywgKHgpID0+ICEheClcbiAgICAgICAgICAgICksXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigwLCA1LCAxMCwgMCksXG4gICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgICBmb250OiAnMTJweCBzYW5zLXNlcmlmJyxcbiAgICAgICAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5DRVJVTEVBTixcbiAgICAgICAgICAgICAgICB3cmFwOiBnby5UZXh0QmxvY2suV3JhcEZpdCxcbiAgICAgICAgICAgICAgICB0ZXh0OiAnPCAnLFxuICAgICAgICAgICAgICB9LFxuXG4gICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKFxuICAgICAgICAgICAgICAgICd2aXNpYmxlJyxcbiAgICAgICAgICAgICAgICAnZGF0YScsXG4gICAgICAgICAgICAgICAgKHgpID0+IHR5cGVvZiB4Py5xdWFudGl0eSA9PT0gJ251bWJlcidcbiAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgKSxcbiAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDUsIDEwLCAwKSxcbiAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICAgIGZvbnQ6ICcxMnB4IHNhbnMtc2VyaWYnLFxuICAgICAgICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLkNFUlVMRUFOLFxuICAgICAgICAgICAgICAgIHdyYXA6IGdvLlRleHRCbG9jay5XcmFwRml0LFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICdkYXRhJywgKHgpID0+IHtcbiAgICAgICAgICAgICAgICBpZiAodHlwZW9mIHg/LnF1YW50aXR5ICE9PSAnbnVtYmVyJykge1xuICAgICAgICAgICAgICAgICAgcmV0dXJuICcnO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBjb25zdCBmb3JtYXR0ZWQ6IGFueSA9IFV0aWxzU2VydmljZS5jb252ZXJ0UHJlZml4ZXNEYXRhKHtcbiAgICAgICAgICAgICAgICAgIHZhbHVlOiB4Py5xdWFudGl0eSxcbiAgICAgICAgICAgICAgICAgIHVuaXQ6IHg/LnVuaXQsXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgcmV0dXJuIChcbiAgICAgICAgICAgICAgICAgIGZvcm1hdHRlZC5zaG9ydGVuZWROdW1iZXIgK1xuICAgICAgICAgICAgICAgICAgICAnICcgK1xuICAgICAgICAgICAgICAgICAgICBmb3JtYXR0ZWQudW5pdFByZWZpeGVzICtcbiAgICAgICAgICAgICAgICAgICAgeD8udW5pdCA/PyAnJ1xuICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZyhcbiAgICAgICAgICAgICAgICAndmlzaWJsZScsXG4gICAgICAgICAgICAgICAgJ2RhdGEnLFxuICAgICAgICAgICAgICAgICh4KSA9PiB0eXBlb2YgeD8ucXVhbnRpdHkgPT09ICdudW1iZXInXG4gICAgICAgICAgICAgIClcbiAgICAgICAgICAgICksXG5cbiAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDUsIDEwLCAwKSxcbiAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICAgIGZvbnQ6ICcxMnB4IHNhbnMtc2VyaWYnLFxuICAgICAgICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLkNFUlVMRUFOLFxuICAgICAgICAgICAgICAgIHdyYXA6IGdvLlRleHRCbG9jay5XcmFwRml0LFxuICAgICAgICAgICAgICAgIHRleHQ6ICcgPicsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKFxuICAgICAgICAgICAgICAgICd2aXNpYmxlJyxcbiAgICAgICAgICAgICAgICAnZGF0YScsXG4gICAgICAgICAgICAgICAgKHgpID0+IHR5cGVvZiB4Py5xdWFudGl0eSA9PT0gJ251bWJlcidcbiAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgKVxuICAgICAgICAgIClcbiAgICAgICAgKVxuICAgICAgKVxuICAgICk7XG4gICAgdGhpcy5teURpYWdyYW0ubm9kZVRlbXBsYXRlTWFwLnNldChcbiAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5aT05FX0VORVJHWV9JVEVNLFxuICAgICAgbm9kZVxuICAgICk7XG4gIH1cblxuICBtYWtlU3BlY2lhbFRlbXBsYXRlKFxuICAgIGljb24sXG4gICAgdGl0bGUsXG4gICAgc2l6ZTogeyB3OiBudW1iZXI7IGg6IG51bWJlciB9ID0ge1xuICAgICAgdzogQXRvR29qc0VkaXRvck1vZGVsLkdSSURfU0laRSAqIDUsXG4gICAgICBoOiBBdG9Hb2pzRWRpdG9yTW9kZWwuR1JJRF9TSVpFICogNSxcbiAgICB9XG4gICkge1xuICAgIGxldCBub2RlOiBhbnkgPSBudWxsO1xuICAgIHN3aXRjaCAodGl0bGUpIHtcbiAgICAgIGNhc2UgQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLlNQRUNJQUxfUFJPQ0VTUzpcbiAgICAgICAgbm9kZSA9IHRoaXMuJChcbiAgICAgICAgICBnby5Ob2RlLFxuICAgICAgICAgICdTcG90JyxcbiAgICAgICAgICAvLyB7XG4gICAgICAgICAgLy8gICAgIGZyb21TcG90OiBnby5TcG90LlJpZ2h0LCAgLy8gY29taW5nIG91dCBmcm9tIG1pZGRsZS1yaWdodFxuICAgICAgICAgIC8vICAgICB0b1Nwb3Q6IGdvLlNwb3QuTGVmdFxuICAgICAgICAgIC8vIH0sXG4gICAgICAgICAge1xuICAgICAgICAgICAgY2xpY2s6IChlLCBvYmo6IGFueSkgPT4ge1xuICAgICAgICAgICAgICBpZiAob2JqPy5kYXRhPy5vblNlbGVjdGVkKSB7XG4gICAgICAgICAgICAgICAgb2JqPy5kYXRhPy5vblNlbGVjdGVkKG9iaj8uZGF0YSk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBzZWxlY3Rpb25DaGFuZ2VkOiAoZSkgPT4ge1xuICAgICAgICAgICAgICBpZiAoIWUuaXNTZWxlY3RlZCAmJiBlPy5kYXRhPy5vblNlbGVjdGVkKSB7XG4gICAgICAgICAgICAgICAgZT8uZGF0YT8ub25TZWxlY3RlZChudWxsKTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICB9LFxuICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdsb2NhdGlvbicsICdsb2MnLCBnby5Qb2ludC5wYXJzZSkubWFrZVR3b1dheShcbiAgICAgICAgICAgIGdvLlBvaW50LnN0cmluZ2lmeVxuICAgICAgICAgICksXG4gICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICB7IHdpZHRoOiBzaXplLncsIGhlaWdodDogc2l6ZS5oIH0sXG4gICAgICAgICAgICB0aGlzLiQoZ28uU2hhcGUsICdDaXJjbGUnLCB7XG4gICAgICAgICAgICAgIGZpbGw6ICd3aGl0ZScsXG4gICAgICAgICAgICAgIHN0cm9rZTogJyMyRDNCNzcnLFxuICAgICAgICAgICAgICBzdHJva2VXaWR0aDogMixcbiAgICAgICAgICAgICAgLy8gc3Ryb2tlRGFzaEFycmF5OiBbNSwgNV0sXG4gICAgICAgICAgICB9KSxcbiAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICdUYWJsZScsXG4gICAgICAgICAgICAgIHRoaXMuJChnby5UZXh0QmxvY2ssIEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5QUk9DRVNTLCB7XG4gICAgICAgICAgICAgICAgcm93OiAwLFxuICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigzLCAzLCAxMCwgMyksXG4gICAgICAgICAgICAgICAgbWF4U2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gMjAsIE5hTiksXG4gICAgICAgICAgICAgICAgc3Ryb2tlOiAnIzQ0NDQ0NCcsXG4gICAgICAgICAgICAgICAgZm9udDogJ25vcm1hbCAxMHB0IEFyaWFsJyxcbiAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgdGhpcy4kKGdvLlBpY3R1cmUsIGljb24sIHtcbiAgICAgICAgICAgICAgICByb3c6IDEsXG4gICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDEwLCAwKSxcbiAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgICAgIG1heFNpemU6IG5ldyBnby5TaXplKDYwLCA2MCksXG4gICAgICAgICAgICAgICAgaW1hZ2VTdHJldGNoOiBnby5HcmFwaE9iamVjdC5Vbmlmb3JtLFxuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgKVxuICAgICAgICAgICksXG5cbiAgICAgICAgICB0aGlzLiQoZ28uUGFuZWwsICdWZXJ0aWNhbCcsIHtcbiAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5MZWZ0LFxuICAgICAgICAgICAgYWxpZ25tZW50Rm9jdXM6IG5ldyBnby5TcG90KDAsIDAuNSwgOCwgMCksXG4gICAgICAgICAgfSksXG4gICAgICAgICAgdGhpcy4kKGdvLlBhbmVsLCAnVmVydGljYWwnLCB7XG4gICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuUmlnaHQsXG4gICAgICAgICAgICBhbGlnbm1lbnRGb2N1czogbmV3IGdvLlNwb3QoMSwgMC41LCAtOCwgMCksXG4gICAgICAgICAgfSksXG4gICAgICAgICAgLy8gZm91ciBuYW1lZCBwb3J0cywgb25lIG9uIGVhY2ggc2lkZTpcblxuICAgICAgICAgIHRoaXMubWFrZVBvcnQoJ1QnLCBnby5TcG90LlRvcCwgZ28uU3BvdC5Ub3BTaWRlLCBmYWxzZSwgdHJ1ZSksXG4gICAgICAgICAgdGhpcy5tYWtlUG9ydCgnT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biAgICAgICAgICApLFxuICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgICAgeyB3aWR0aDogc2l6ZS53LCBoZWlnaHQ6IHNpemUuaCB9LFxuICAgICAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCAnQ2lyY2xlJywge1xuICAgICAgICAgICAgICBmaWxsOiAnd2hpdGUnLFxuICAgICAgICAgICAgICBzdHJva2U6ICcjMkQzQjc3JyxcbiAgICAgICAgICAgICAgc3Ryb2tlV2lkdGg6IDIsXG4gICAgICAgICAgICAgIC8vIHN0cm9rZURhc2hBcnJheTogWzUsIDVdLFxuICAgICAgICAgICAgfSksXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAnVGFibGUnLFxuICAgICAgICAgICAgICB0aGlzLiQoZ28uVGV4dEJsb2NrLCBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuU1RPUkFHRSwge1xuICAgICAgICAgICAgICAgIHJvdzogMCxcbiAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMywgMywgMTAsIDMpLFxuICAgICAgICAgICAgICAgIG1heFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCBOYU4pLFxuICAgICAgICAgICAgICAgIHN0cm9rZTogJyM0NDQ0NDQnLFxuICAgICAgICAgICAgICAgIGZvbnQ6ICdub3JtYWwgMTBwdCBBcmlhbCcsXG4gICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICBnby5QaWN0dXJlLFxuICAgICAgICAgICAgICAgIGljb24sXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgcm93OiAxLFxuICAgICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDEwLCAwKSxcbiAgICAgICAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5DZW50ZXIsXG4gICAgICAgICAgICAgICAgICBtaW5TaXplOiBuZXcgZ28uU2l6ZSg0MCwgNDApLFxuICAgICAgICAgICAgICAgICAgbWF4U2l6ZTogbmV3IGdvLlNpemUoNTAsIDUwKSxcbiAgICAgICAgICAgICAgICAgIGltYWdlU3RyZXRjaDogZ28uR3JhcGhPYmplY3QuVW5pZm9ybSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdzb3VyY2UnLCAnaWNvbicpLm1ha2VUd29XYXkoKVxuICAgICAgICAgICAgICApXG4gICAgICAgICAgICApXG4gICAgICAgICAgKSxcblxuICAgICAgICAgIHRoaXMuJChnby5QYW5lbCwgJ1ZlcnRpY2FsJywge1xuICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkxlZnQsXG4gICAgICAgICAgICBhbGlnbm1lbnRGb2N1czogbmV3IGdvLlNwb3QoMCwgMC41LCA4LCAwKSxcbiAgICAgICAgICB9KSxcbiAgICAgICAgICB0aGlzLiQoZ28uUGFuZWwsICdWZXJ0aWNhbCcsIHtcbiAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5SaWdodCxcbiAgICAgICAgICAgIGFsaWdubWVudEZvY3VzOiBuZXcgZ28uU3BvdCgxLCAwLjUsIC04LCAwKSxcbiAgICAgICAgICB9KSxcbiAgICAgICAgICAvLyBmb3VyIG5hbWVkIHBvcnRzLCBvbmUgb24gZWFjaCBzaWRlOlxuXG4gICAgICAgICAgdGhpcy5tYWtlUG9ydCgnVCcsIGdvLlNwb3QuVG9wLCBnby5TcG90LlRvcFNpZGUsIGZhbHNlLCB0cnVlKSxcbiAgICAgICAgICB0aGlzLm1ha2VQb3J0KCdMJywgZ28uU3BvdC5MZWZ0LCBnby5TcG90LkxlZnRTaWRlLCB0cnVlLCB0cnVlKSxcbiAgICAgICAgICB0aGlzLm1ha2VQb3J0KCdSJywgZ28uU3BvdC5SaWdodCwgZ28uU3BvdC5SaWdodFNpZGUsIHRydWUsIHRydWUpLFxuICAgICAgICAgIHRoaXMubWFrZVBvcnQoJ0InLCBnby5TcG90LkJvdHRvbSwgZ28uU3BvdC5Cb3R0b21TaWRlLCB0cnVlLCBmYWxzZSlcbiAgICAgICAgKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlIEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5TUEVDSUFMX1NUT1JFOlxuICAgICAgICBub2RlID0gdGhpcy4kKFxuICAgICAgICAgIGdvLk5vZGUsXG4gICAgICAgICAgJ1Nwb3QnLFxuICAgICAgICAgIHtcbiAgICAgICAgICAgIGNsaWNrOiAoZSwgb2JqOiBhbnkpID0+IHtcbiAgICAgICAgICAgICAgaWYgKG9iaj8uZGF0YT8ub25TZWxlY3RlZCkge1xuICAgICAgICAgICAgICAgIG9iaj8uZGF0YT8ub25TZWxlY3RlZChvYmo/LmRhdGEpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgc2VsZWN0aW9uQ2hhbmdlZDogKGUpID0+IHtcbiAgICAgICAgICAgICAgaWYgKCFlLmlzU2VsZWN0ZWQgJiYgZT8uZGF0YT8ub25TZWxlY3RlZCkge1xuICAgICAgICAgICAgICAgIGU/LmRhdGE/Lm9uU2VsZWN0ZWQobnVsbCk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgfSxcbiAgICAgICAgICBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoXG4gICAgICAgICAgICBnby5Qb2ludC5zdHJpbmdpZnlcbiAgICAgICAgICApLFxuICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgICAgeyB3aWR0aDogc2l6ZS53LCBoZWlnaHQ6IHNpemUuaCB9LFxuICAgICAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCAnQ2lyY2xlJywge1xuICAgICAgICAgICAgICBmaWxsOiAnd2hpdGUnLFxuICAgICAgICAgICAgICBzdHJva2U6ICcjMkQzQjc3JyxcbiAgICAgICAgICAgICAgc3Ryb2tlV2lkdGg6IDIsXG4gICAgICAgICAgICAgIC8vIHN0cm9rZURhc2hBcnJheTogWzUsIDVdLFxuICAgICAgICAgICAgfSksXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAnVGFibGUnLFxuICAgICAgICAgICAgICB0aGlzLiQoZ28uVGV4dEJsb2NrLCAnU3RvcmUnLCB7XG4gICAgICAgICAgICAgICAgcm93OiAwLFxuICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigzLCAzLCAxMCwgMyksXG4gICAgICAgICAgICAgICAgbWF4U2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gMjAsIE5hTiksXG4gICAgICAgICAgICAgICAgc3Ryb2tlOiAnIzQ0NDQ0NCcsXG4gICAgICAgICAgICAgICAgZm9udDogJ25vcm1hbCAxMHB0IEFyaWFsJyxcbiAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgdGhpcy4kKGdvLlBpY3R1cmUsIGljb24sIHtcbiAgICAgICAgICAgICAgICByb3c6IDEsXG4gICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDEwLCAwKSxcbiAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgICAgIG1heFNpemU6IG5ldyBnby5TaXplKDYwLCA2MCksXG4gICAgICAgICAgICAgICAgaW1hZ2VTdHJldGNoOiBnby5HcmFwaE9iamVjdC5Vbmlmb3JtLFxuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgKVxuICAgICAgICAgIClcbiAgICAgICAgKTtcbiAgICAgICAgYnJlYWs7XG5cbiAgICAgIGNhc2UgQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLlNQRUNJQUxfRElTQ0hBUkdFOlxuICAgICAgICBub2RlID0gdGhpcy4kKFxuICAgICAgICAgIGdvLk5vZGUsXG4gICAgICAgICAgJ1Nwb3QnLFxuICAgICAgICAgIHtcbiAgICAgICAgICAgIGNsaWNrOiAoZSwgb2JqOiBhbnkpID0+IHtcbiAgICAgICAgICAgICAgaWYgKG9iaj8uZGF0YT8ub25TZWxlY3RlZCkge1xuICAgICAgICAgICAgICAgIG9iaj8uZGF0YT8ub25TZWxlY3RlZChvYmo/LmRhdGEpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgc2VsZWN0aW9uQ2hhbmdlZDogKGUpID0+IHtcbiAgICAgICAgICAgICAgaWYgKCFlLmlzU2VsZWN0ZWQgJiYgZT8uZGF0YT8ub25TZWxlY3RlZCkge1xuICAgICAgICAgICAgICAgIGU/LmRhdGE/Lm9uU2VsZWN0ZWQobnVsbCk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgfSxcbiAgICAgICAgICBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoXG4gICAgICAgICAgICBnby5Qb2ludC5zdHJpbmdpZnlcbiAgICAgICAgICApLFxuICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgICAgeyB3aWR0aDogc2l6ZS53LCBoZWlnaHQ6IHNpemUuaCB9LFxuICAgICAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCAnQ2lyY2xlJywge1xuICAgICAgICAgICAgICBmaWxsOiAnd2hpdGUnLFxuICAgICAgICAgICAgICBzdHJva2U6ICcjMkQzQjc3JyxcbiAgICAgICAgICAgICAgc3Ryb2tlV2lkdGg6IDIsXG4gICAgICAgICAgICAgIC8vIHN0cm9rZURhc2hBcnJheTogWzUsIDVdLFxuICAgICAgICAgICAgfSksXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAnVGFibGUnLFxuICAgICAgICAgICAgICB0aGlzLiQoZ28uVGV4dEJsb2NrLCAnRGlzY2hhcmdlJywge1xuICAgICAgICAgICAgICAgIHJvdzogMCxcbiAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMywgMywgMTAsIDMpLFxuICAgICAgICAgICAgICAgIG1heFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCBOYU4pLFxuICAgICAgICAgICAgICAgIHN0cm9rZTogJyM0NDQ0NDQnLFxuICAgICAgICAgICAgICAgIGZvbnQ6ICdub3JtYWwgMTBwdCBBcmlhbCcsXG4gICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgIHRoaXMuJChnby5QaWN0dXJlLCBpY29uLCB7XG4gICAgICAgICAgICAgICAgcm93OiAxLFxuICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigwLCAwLCAxMCwgMCksXG4gICAgICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkNlbnRlcixcbiAgICAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZSg2MCwgNjApLFxuICAgICAgICAgICAgICAgIGltYWdlU3RyZXRjaDogZ28uR3JhcGhPYmplY3QuVW5pZm9ybSxcbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIClcbiAgICAgICAgICApXG4gICAgICAgICk7XG4gICAgICAgIGJyZWFrO1xuXG4gICAgICBjYXNlIEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5TUEVDSUFMX09USEVSOlxuICAgICAgICBub2RlID0gdGhpcy4kKFxuICAgICAgICAgIGdvLk5vZGUsXG4gICAgICAgICAgJ1Nwb3QnLFxuICAgICAgICAgIHtcbiAgICAgICAgICAgIGNsaWNrOiAoZSwgb2JqOiBhbnkpID0+IHtcbiAgICAgICAgICAgICAgaWYgKG9iaj8uZGF0YT8ub25TZWxlY3RlZCkge1xuICAgICAgICAgICAgICAgIG9iaj8uZGF0YT8ub25TZWxlY3RlZChvYmo/LmRhdGEpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgc2VsZWN0aW9uQ2hhbmdlZDogKGUpID0+IHtcbiAgICAgICAgICAgICAgaWYgKCFlLmlzU2VsZWN0ZWQgJiYgZT8uZGF0YT8ub25TZWxlY3RlZCkge1xuICAgICAgICAgICAgICAgIGU/LmRhdGE/Lm9uU2VsZWN0ZWQobnVsbCk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgfSxcbiAgICAgICAgICBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoXG4gICAgICAgICAgICBnby5Qb2ludC5zdHJpbmdpZnlcbiAgICAgICAgICApLFxuICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgICAgeyB3aWR0aDogc2l6ZS53LCBoZWlnaHQ6IHNpemUuaCB9LFxuICAgICAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCAnQ2lyY2xlJywge1xuICAgICAgICAgICAgICBmaWxsOiAnd2hpdGUnLFxuICAgICAgICAgICAgICBzdHJva2U6ICcjMkQzQjc3JyxcbiAgICAgICAgICAgICAgc3Ryb2tlV2lkdGg6IDIsXG4gICAgICAgICAgICAgIC8vIHN0cm9rZURhc2hBcnJheTogWzUsIDVdLFxuICAgICAgICAgICAgfSksXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAnVGFibGUnLFxuICAgICAgICAgICAgICB0aGlzLiQoZ28uVGV4dEJsb2NrLCAnT3RoZXInLCB7XG4gICAgICAgICAgICAgICAgcm93OiAwLFxuICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigzLCAzLCAxMCwgMyksXG4gICAgICAgICAgICAgICAgbWF4U2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gMjAsIE5hTiksXG4gICAgICAgICAgICAgICAgc3Ryb2tlOiAnIzQ0NDQ0NCcsXG4gICAgICAgICAgICAgICAgZm9udDogJ25vcm1hbCAxMHB0IEFyaWFsJyxcbiAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgdGhpcy4kKGdvLlBpY3R1cmUsIGljb24sIHtcbiAgICAgICAgICAgICAgICByb3c6IDEsXG4gICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDEwLCAwKSxcbiAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgICAgIG1heFNpemU6IG5ldyBnby5TaXplKDYwLCA2MCksXG4gICAgICAgICAgICAgICAgaW1hZ2VTdHJldGNoOiBnby5HcmFwaE9iamVjdC5Vbmlmb3JtLFxuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgKVxuICAgICAgICAgIClcbiAgICAgICAgKTtcbiAgICAgICAgYnJlYWs7XG4gICAgfVxuXG4gICAgaWYgKG5vZ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