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