ato-water-lib 0.0.89 → 0.0.90

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