iwmlib/pixi/all.js
2019-03-21 09:57:27 +01:00

13966 lines
1.6 MiB

(function () {
'use strict';
/**
* Class that represents a PixiJS Theme.
*
* @example
* // Create the theme
* const yellow = new Theme({
* fill: 0xfecd2d,
* fillActive: 0xfe9727,
* strokeActive: 0xfecd2d,
* strokeActiveWidth: 4,
* textStyle: {
* fill: 0x5ec7f8
* },
* textStyleActive: {
* fill: 0x5954d3
* },
* textStyleLarge: {
* fontSize: 36
* }
* })
*
* // Create the app and apply the new theme to it
* const app = new PIXIApp({
* view: canvas,
* width: 450,
* height: 150,
* theme: yellow
* }).setup().run()
*
* @class
* @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/theme.html|DocTest}
*/
class Theme {
/**
* Creates an instance of a Theme.
*
* @constructor
* @param {object} [opts] - An options object to specify to style and behaviour of the theme.
* @param {number} [opts.margin=10] - The outer spacing (distance to other objects) from the border.
* @param {number} [opts.padding=10] - The inner spacing (distance from icon and/or label) to the border.
* @param {number} [opts.radius=4] - The radius used when drawing a rounded rectangle.
* @param {number} [opts.fast=0.25] - The duration of time when it has to be fast.
* @param {number} [opts.normal=0.5] - The duration of time when it has to be normal.
* @param {number} [opts.slow=1] - The duration of time when it has to be slow.
* @param {number} [opts.primaryColor=0x5ec7f8] - The primary color of the theme.
* @param {number} [opts.color1=0x282828] - The first color of the theme. For example used for the background.
* @param {number} [opts.color2=0xf6f6f6] - The second color of the theme. For example used for the border.
* @param {number} [opts.fill=color1] - The color of the background as a hex value.
* @param {number} [opts.fillAlpha=1] - The alpha value of the background.
* @param {number} [opts.fillActive=color1] - The color of the background when activated.
* @param {number} [opts.fillActiveAlpha=1] - The alpha value of the background when activated.
* @param {number} [opts.stroke=color2] - The color of the border as a hex value.
* @param {number} [opts.strokeWidth=0.6] - The width of the border in pixel.
* @param {number} [opts.strokeAlpha=1] - The alpha value of the border.
* @param {number} [opts.strokeActive=color2] - The color of the border when activated.
* @param {number} [opts.strokeActiveWidth=0.6] - The width of the border in pixel when activated.
* @param {number} [opts.strokeActiveAlpha=1] - The alpha value of the border when activated.
* @param {number} [opts.iconColor=color2] - The color of the icon (set by the tint property) as a hex value.
* @param {number} [opts.iconColorActive=colorPrimary] - The color of the icon when activated.
* @param {number} [opts.background=color1] - The color of a background for a component (e.g. at the Modal class).
* @param {object} [opts.textStyle={}] - A textstyle object for the styling of text. See PIXI.TextStyle
* for possible options. Default object:
* @param {string} [opts.textStyle.fontFamily="Avenir Next", "Open Sans", "Segoe UI", ...] - The font family.
* @param {string} [opts.textStyle.fontWeight=400] - The font weight.
* @param {number} [opts.textStyle.fontSize=16] - The font size.
* @param {number} [opts.textStyle.fill=color2] - The fill color.
* @param {number} [opts.textStyle.stroke=color1] - The stroke color.
* @param {number} [opts.textStyle.strokeThickness=0] - The thickness of the stroke.
* @param {number} [opts.textStyle.miterLimit=1] - The meter limit.
* @param {string} [opts.textStyle.lineJoin=round] - The line join.
* @param {object} [opts.textStyleActive=textStyle + {fill: primaryColor}] - A textstyle object which is used
* for actived text.
* @param {object} [opts.textStyleSmall=textStyle + {fontSize: -= 3}] - A textstyle object which is used for
* small text.
* @param {object} [opts.textStyleSmallActive=textStyleSmall + {fill: primaryColor}] - A textstyle object which
* is used for small actived text.
* @param {object} [opts.textStyleLarge=textStyle + {fontSize: += 3}] - A textstyle object which is used for
* large text.
* @param {object} [opts.textStyleLargeActive=textStyleLarge + {fill: primaryColor}] - A textstyle object which
* is used for large actived text.
*/
constructor(opts = {}) {
const colorPrimary = opts.primaryColor != null ? opts.primaryColor : 0x5ec7f8; // blue
const color1 = opts.color1 != null ? opts.color1 : 0x282828; // black
const color2 = opts.color2 != null ? opts.color2 : 0xf6f6f6; // white
this.opts = Object.assign({}, {
margin: 12,
padding: 12,
radius: 4,
fast: .25,
normal: .5,
slow: 1,
primaryColor: colorPrimary,
color1: color1,
color2: color2,
fill: color1,
fillAlpha: 1,
fillActive: color1,
fillActiveAlpha: 1,
stroke: color2,
strokeWidth: .6,
strokeAlpha: 1,
strokeActive: color2,
strokeActiveWidth: .6,
strokeActiveAlpha: 1,
iconColor: color2,
iconColorActive: colorPrimary,
background: color1
}, opts);
// Set textStyle and variants
this.opts.textStyle = Object.assign({}, {
fontFamily: '"Avenir Next", "Open Sans", "Segoe UI", "Roboto", "Helvetica Neue", -apple-system, system-ui, BlinkMacSystemFont, Arial, sans-serif !default',
fontWeight: '500',
fontSize: 18,
fill: color2,
stroke: color1,
strokeThickness: 0,
miterLimit: 1,
lineJoin: 'round'
}, this.opts.textStyle);
this.opts.textStyleSmall = Object.assign({}, this.opts.textStyle, {fontSize: this.opts.textStyle.fontSize - 3}, this.opts.textStyleSmall);
this.opts.textStyleLarge = Object.assign({}, this.opts.textStyle, {fontSize: this.opts.textStyle.fontSize + 3}, this.opts.textStyleLarge);
this.opts.textStyleActive = Object.assign({}, this.opts.textStyle, {fill: this.opts.primaryColor}, this.opts.textStyleActive);
this.opts.textStyleSmallActive = Object.assign({}, this.opts.textStyleSmall, {fill: this.opts.primaryColor}, this.opts.textStyleSmallActive);
this.opts.textStyleLargeActive = Object.assign({}, this.opts.textStyleLarge, {fill: this.opts.primaryColor}, this.opts.textStyleLargeActive);
Object.assign(this, this.opts);
}
/**
* Factory function
*
* @static
* @param {string} theme=dark - The name of the theme to load.
* @return {Theme} Returns a newly created Theme object.
*/
static fromString(theme) {
if (theme && typeof theme === 'object') {
return theme
}
switch (theme) {
case 'light':
return new ThemeLight()
case 'red':
return new ThemeRed()
default:
return new ThemeDark()
}
}
}
/**
* Class that represents a PixiJS ThemeDark.
*
* @example
* // Create the app with a new dark theme
* const app = new PIXIApp({
* view: canvas,
* width: 450,
* height: 150,
* theme: new ThemeDark()
* }).setup().run()
*
* @class
* @extends Theme
* @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/theme.html|DocTest}
*/
class ThemeDark extends Theme {
}
/**
* Class that represents a PixiJS ThemeLight.
* The color1 is set to 0xf6f6f6, color2 to 0x282828.
*
* @example
* // Create the app with a new light theme
* const app = new PIXIApp({
* view: canvas,
* width: 450,
* height: 150,
* theme: new ThemeLight()
* }).setup().run()
*
* @class
* @extends Theme
* @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/theme.html|DocTest}
*/
class ThemeLight extends Theme {
/**
* Creates an instance of a ThemeLight.
*
* @constructor
*/
constructor() {
super({color1: 0xf6f6f6, color2: 0x282828});
}
}
/**
* Class that represents a PixiJS ThemeRed.
* The primaryColor is set to 0xd92f31.
*
* @example
* // Create the app with a new red theme
* const app = new PIXIApp({
* view: canvas,
* width: 450,
* height: 150,
* theme: new ThemeRed()
* }).setup().run()
*
* @class
* @extends Theme
* @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/theme.html|DocTest}
*/
class ThemeRed extends Theme {
/**
* Creates an instance of a ThemeRed.
*
* @constructor
*/
constructor() {
super({primaryColor: 0xd92f31});
}
}
/**
* Class that represents a PixiJS Progress.
*
* @example
* // Create the progress
* const progress = new Progress({
* app: app
* })
*
* // Add the progress to a DisplayObject
* app.scene.addChild(progress)
*
* @class
* @extends PIXI.Container
* @see {@link http://pixijs.download/dev/docs/PIXI.Container.html|PIXI.Container}
* @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/progress.html|DocTest}
*/
class Progress extends PIXI.Container {
/**
* Creates an instance of a Progress.
*
* @constructor
* @param {object} [opts] - An options object to specify to style and behaviour of the progress.
* @param {number} [opts.id=auto generated] - The id of the progress.
* @param {PIXIApp} [opts.app=window.app] - The app where the progress belongs to.
* @param {number} [opts.width] - The width of the progress bar. When not set, the width is the size of the app
* minus 2 * opts.margin.
* @param {number} [opts.height=2] - The height of the progress bar.
* @param {string|Theme} [opts.theme=dark] - The theme to use for this progress. Possible values are dark, light, red
* or a Theme object.
* @param {number} [opts.margin=100] - The outer spacing to the edges of the app.
* @param {number} [opts.padding=0] - The inner spacing (distance from icon and/or label) to the border.
* @param {number} [opts.fill=Theme.fill] - The color of the progress background as a hex value.
* @param {number} [opts.fillAlpha=Theme.fillAlpha] - The alpha value of the background.
* @param {number} [opts.fillActive=Theme.primaryColor] - The color of the progress background when activated.
* @param {number} [opts.fillActiveAlpha=Theme.fillActiveAlpha] - The alpha value of the background when activated.
* @param {number} [opts.stroke=Theme.stroke] - The color of the border as a hex value.
* @param {number} [opts.strokeWidth=0] - The width of the border in pixel.
* @param {number} [opts.strokeAlpha=Theme.strokeAlpha] - The alpha value of the border.
* @param {number} [opts.strokeActive=Theme.strokeActive] - The color of the border when activated.
* @param {number} [opts.strokeActiveWidth=0] - The width of the border in pixel when activated.
* @param {number} [opts.strokeActiveAlpha=Theme.strokeActiveAlpha] - The alpha value of the border when activated.
* @param {boolean} [opts.background=false] - The alpha value of the border when activated.
* @param {number} [opts.backgroundFill=Theme.background] - A textstyle object for the styling of the label. See PIXI.TextStyle
* for possible options.
* @param {number} [opts.backgroundFillAlpha=1] - A textstyle object for the styling of the label when the
* progress is activated. See PIXI.TextStyle for possible options.
* @param {number} [opts.radius=Theme.radius] - The radius of the four corners of the progress (which is a rounded rectangle).
* @param {boolean} [opts.destroyOnComplete=true] - Should the progress bar destroy itself after reaching 100 %?
* @param {boolean} [opts.visible=true] - Is the progress initially visible (property visible)?
*/
constructor(opts = {}) {
super();
const theme = Theme.fromString(opts.theme);
this.theme = theme;
this.opts = Object.assign({}, {
id: PIXI.utils.uid(),
app: window.app,
width: null,
height: 2,
margin: 100,
padding: 0,
fill: theme.fill,
fillAlpha: theme.fillAlpha,
fillActive: theme.primaryColor,
fillActiveAlpha: theme.fillActiveAlpha,
stroke: theme.stroke,
strokeWidth: 0,
strokeAlpha: theme.strokeAlpha,
strokeActive: theme.strokeActive,
strokeActiveWidth: 0,
strokeActiveAlpha: theme.strokeActiveAlpha,
background: false,
backgroundFill: theme.background,
backgroundFillAlpha: 1,
radius: theme.radius,
destroyOnComplete: true,
visible: true
}, opts);
this.id = this.opts.id;
this.background = null;
this.bar = null;
this.barActive = null;
this.alpha = 0;
this.visible = this.opts.visible;
this._progress = 0;
// setup
//-----------------
this.setup();
// layout
//-----------------
this.layout();
}
/**
* Creates children and instantiates everything.
*
* @private
* @return {Progress} A reference to the progress for chaining.
*/
setup() {
// interaction
//-----------------
this.on('added', e => {
this.show();
});
// background
//-----------------
if (this.opts.background) {
const background = new PIXI.Graphics();
this.background = background;
this.addChild(background);
}
// bar
//-----------------
const bar = new PIXI.Graphics();
this.bar = bar;
this.addChild(bar);
const barActive = new PIXI.Graphics();
this.barActive = barActive;
this.bar.addChild(barActive);
return this
}
/**
* Should be called to refresh the layout of the progress. Can be used after resizing.
*
* @return {Progress} A reference to the progress for chaining.
*/
layout() {
const width = this.opts.app.size.width;
const height = this.opts.app.size.height;
// background
//-----------------
if (this.opts.background) {
this.background.clear();
this.background.beginFill(this.opts.backgroundFill, this.opts.backgroundFillAlpha);
this.background.drawRect(0, 0, width, height);
this.background.endFill();
}
this.draw();
return this
}
/**
* Draws the canvas.
*
* @private
* @return {Progress} A reference to the progress for chaining.
*/
draw() {
this.bar.clear();
this.barActive.clear();
this.drawBar();
this.drawBarActive();
return this
}
/**
* Draws the bar.
*
* @private
* @return {Progress} A reference to the progress for chaining.
*/
drawBar() {
const width = this.opts.app.size.width;
const height = this.opts.app.size.height;
this.radius = this.opts.radius;
if ((this.radius * 2) > this.opts.height) {
this.radius = this.opts.height / 2;
}
const wantedWidth = this.opts.width || (width - (2 * this.opts.margin));
const wantedHeight = this.opts.height;
this.bar.lineStyle(this.opts.strokeWidth, this.opts.stroke, this.opts.strokeAlpha);
this.bar.beginFill(this.opts.fill, this.opts.fillAlpha);
if (this.radius > 1) {
this.bar.drawRoundedRect(0, 0, wantedWidth, wantedHeight, this.radius);
} else {
this.bar.drawRect(0, 0, wantedWidth, wantedHeight);
}
this.bar.endFill();
this.bar.x = width / 2 - this.bar.width / 2;
this.bar.y = height / 2 - this.bar.height / 2;
return this
}
/**
* Draws the active bar.
*
* @private
* @return {Progress} A reference to the progress for chaining.
*/
drawBarActive() {
const wantedWidth = this.bar.width - (2 * this.opts.padding);
const wantedHeight = this.bar.height - (2 * this.opts.padding);
const barActiveWidth = wantedWidth * this._progress / 100;
this.barActive.lineStyle(this.opts.strokeActiveWidth, this.opts.strokeActive, this.opts.strokeActiveAlpha);
this.barActive.beginFill(this.opts.fillActive, this.opts.fillActiveAlpha);
if (barActiveWidth > 0) {
if (this.radius > 1) {
this.barActive.drawRoundedRect(0, 0, barActiveWidth, wantedHeight, this.radius);
} else {
this.barActive.drawRect(0, 0, barActiveWidth, wantedHeight);
}
}
this.barActive.endFill();
this.barActive.x = this.opts.padding;
this.barActive.y = this.opts.padding;
return this
}
/**
* Shows the progress (sets his alpha values to 1).
*
* @return {Progress} A reference to the progress for chaining.
*/
show() {
TweenLite.to(this, this.theme.fast, {alpha: 1});
return this
}
/**
* Hides the progress (sets his alpha values to 1).
*
* @return {Progress} A reference to the progress for chaining.
*/
hide() {
TweenLite.to(this, this.theme.fast, {alpha: 0, onComplete: () => this.visible = false});
return this
}
/**
* Gets or sets the progress. Has to be a number between 0 and 100.
*
* @member {number}
*/
get progress() {
return this._progress
}
set progress(value) {
value = Math.round(value);
if (value < 0) {
value = 0;
}
if (value > 100) {
value = 100;
}
TweenLite.to(this, this.theme.normal, {
_progress: value,
onUpdate: () => this.draw(),
onComplete: () => {
if (value === 100 && this.opts.destroyOnComplete) {
TweenLite.to(this, this.theme.fast, {
alpha: 0,
onComplete: () => this.destroy({children: true})
});
}
}
});
}
}
/**
* Class that represents a PixiJS AbstractPopup.
* The class is used for various other Popup-like classes
* like Popup, Message, Tooltip...
*
* @class
* @abstract
* @extends PIXI.Graphics
* @see {@link http://pixijs.download/dev/docs/PIXI.Graphics.html|PIXI.Graphics}
*/
class AbstractPopup extends PIXI.Graphics {
/**
* Creates an instance of an AbstractPopup (only for internal use).
*
* @constructor
* @param {object} [opts] - An options object to specify to style and behaviour of the popup.
* @param {number} [opts.id=auto generated] - The id of the popup.
* @param {number} [opts.x=0] - The x position of the popup. Can be also set after creation with popup.x = 0.
* @param {number} [opts.y=0] - The y position of the popup. Can be also set after creation with popup.y = 0.
* @param {string|Theme} [opts.theme=dark] - The theme to use for this popup. Possible values are dark, light, red
* or a Theme object.
* @param {string|number|PIXI.Text} [opts.header] - The heading inside the popup as a string, a number (will be
* converted to a text) or as a PIXI.Text object.
* @param {string|number|PIXI.DisplayObject} [opts.content] - A text, a number (will be converted to a text) or
* an PIXI.DisplayObject as the content of the popup.
* @param {number} [opts.minWidth=320] - The minimum width of the popup.
* @param {number} [opts.minHeight=130] - The minimum height of the popup.
* @param {number} [opts.padding=Theme.padding] - The inner spacing (distance from header and content) the the border.
* @param {number} [opts.fill=Theme.fill] - The color of the button background as a hex value.
* @param {number} [opts.fillAlpha=Theme.fillAlpha] - The alpha value of the background.
* @param {number} [opts.stroke=Theme.stroke] - The color of the border as a hex value.
* @param {number} [opts.strokeWidth=Theme.strokeWidth] - The width of the border in pixel.
* @param {number} [opts.strokeAlpha=Theme.strokeAlpha] - The alpha value of the border.
* @param {object} [opts.headerStyle=Theme.textStyleLarge] - A textstyle object for the styling of the header. See PIXI.TextStyle
* for possible options.
* @param {object} [opts.textStyle=Theme.textStyleSmall] - A textstyle object for the styling of the text. See PIXI.TextStyle
* for possible options.
* @param {number} [opts.radius=Theme.radius] - The radius of the four corners of the popup (which is a rounded rectangle).
* @param {hiddenCallback} [opts.onHidden] - Executed when the popup gets hidden.
* @param {boolean} [opts.visible=true] - Is the popup initially visible (property visible)?
* @param {string} [opts.orientation] - When set to portrait, the popup cannot be displayed in landscape mode. When set
* to landscape, the popup cannot be displayed in portrait mode.
*/
constructor(opts = {}) {
super();
const theme = Theme.fromString(opts.theme);
this.theme = theme;
this.opts = Object.assign({}, {
id: PIXI.utils.uid(),
x: 0,
y: 0,
header: null, // null or null
content: null, // null or String or PIXI.DisplayObject
minWidth: 320,
minHeight: 130,
maxWidth: null,
padding: theme.padding,
fill: theme.fill,
fillAlpha: theme.fillAlpha,
stroke: theme.stroke,
strokeWidth: theme.strokeWidth,
strokeAlpha: theme.strokeAlpha,
headerStyle: theme.textStyleLarge,
textStyle: theme.textStyleSmall,
radius: theme.radius,
onHidden: null,
visible: true,
orientation: null
}, opts);
this.id = this.opts.id;
this.headerStyle = new PIXI.TextStyle(this.opts.headerStyle);
this.textStyle = new PIXI.TextStyle(this.opts.textStyle);
if (this.opts.maxWidth) {
this.headerStyle.wordWrap = true;
this.headerStyle.wordWrapWidth = this.opts.maxWidth - (2 * this.opts.padding);
this.textStyle.wordWrap = true;
this.textStyle.wordWrapWidth = this.opts.maxWidth - (2 * this.opts.padding);
}
this.alpha = 0;
this.visible = this.opts.visible;
this._header = null;
this._content = null;
// position
this.x = this.opts.x;
this.y = this.opts.y;
// padding
this.innerPadding = this.opts.padding * 1.5;
// interaction
//-----------------
this.interactive = true;
this.on('added', e => {
this.show();
});
}
/**
* Creates the framework and instantiates everything.
*
* @private
* @return {AbstractPopup} A reference to the popup for chaining.
*/
setup() {
// position
//-----------------
this.sy = this.opts.padding;
// header
//-----------------
if (this.opts.header != null) {
let header = null;
if (this.opts.header instanceof PIXI.Text) {
header = this.opts.header;
} else if (typeof this.opts.header === 'number') {
header = new PIXI.Text(this.opts.header.toString(), this.headerStyle);
} else {
header = new PIXI.Text(this.opts.header, this.headerStyle);
}
header.x = this.opts.padding;
header.y = this.sy;
this.addChild(header);
this.sy += header.height;
this._header = header;
}
if (this.opts.header && this.opts.content) {
this.sy += this.innerPadding;
}
// content
//-----------------
if (this.opts.content != null) {
let content = null;
if (typeof this.opts.content === 'string') {
content = new PIXI.Text(this.opts.content, this.textStyle);
} else if (typeof this.opts.content === 'number') {
content = new PIXI.Text(this.opts.content.toString(), this.textStyle);
} else {
content = this.opts.content;
}
content.x = this.opts.padding;
content.y = this.sy;
this.sy += content.height;
this.addChild(content);
this._content = content;
}
return this
}
/**
* Should be called to refresh the layout of the popup. Can be used after resizing.
*
* @return {AbstractPopup} A reference to the popup for chaining.
*/
layout() {
// wanted width & wanted height
//-----------------
const padding = this.opts.padding;
const size = this.getInnerSize();
const width = size.width + (2 * padding);
const height = size.height + (2 * padding);
this.wantedWidth = Math.max(width, this.opts.minWidth);
this.wantedHeight = Math.max(height, this.opts.minHeight);
if (this.opts.maxWidth) {
this.wantedWidth = Math.min(this.wantedWidth, this.opts.maxWidth);
}
if (this.opts.radius * 2 > this.wantedWidth) {
this.wantedWidth = this.opts.radius * 2;
}
if (this.opts.radius * 2 > this.wantedHeight) {
this.wantedHeight = this.opts.radius * 2;
}
switch (this.opts.orientation) {
case 'portrait':
if (this.wantedWidth > this.wantedHeight) {
this.wantedHeight = this.wantedWidth;
}
break
case 'landscape':
if (this.wantedHeight > this.wantedWidth) {
this.wantedWidth = this.wantedHeight;
}
break
}
this.draw();
return this
}
/**
* Draws the canvas.
*
* @private
* @return {AbstractPopup} A reference to the popup for chaining.
*/
draw() {
const square = Math.round(this.wantedWidth) === Math.round(this.wantedHeight);
const diameter = Math.round(this.opts.radius * 2);
this.clear();
this.lineStyle(this.opts.strokeWidth, this.opts.stroke, this.opts.strokeAlpha);
this.beginFill(this.opts.fill, this.opts.fillAlpha);
if (square && diameter === this.wantedWidth) {
this.drawCircle(this.wantedWidth / 2, this.wantedHeight / 2, this.opts.radius);
} else {
this.drawRoundedRect(0, 0, this.wantedWidth, this.wantedHeight, this.opts.radius);
}
this.endFill();
return this
}
/**
* Calculates the size of the children of the AbstractPopup.
* Cannot use getBounds() because it is not updated when children
* are removed.
*
* @private
* @returns {object} An JavaScript object width the keys width and height.
*/
getInnerSize() {
let width = 0;
let height = 0;
if (this._header) {
width = this._header.width;
height = this._header.height;
}
if (this._header && this._content) {
height += this.innerPadding;
}
if (this._content) {
width = Math.max(width, this._content.width);
height += this._content.height;
}
return {width, height}
}
/**
* Shows the popup (sets his alpha values to 1).
*
* @param {callback} [cb] - Executed when show animation was completed.
* @return {AbstractPopup} A reference to the popup for chaining.
*/
show(cb) {
TweenLite.to(this, this.theme.fast, {
alpha: 1,
onComplete: () => {
if (cb) {
cb.call(this);
}
}
});
return this
}
/**
* Hides the popup (sets his alpha values to 0).
*
* @param {callback} [cb] - Executed when hide animation was completed.
* @return {AbstractPopup} A reference to the popup for chaining.
*/
hide(cb) {
TweenLite.to(this, this.theme.fast, {
alpha: 0,
onComplete: () => {
this.visible = false;
if (cb) {
cb.call(this);
}
}
});
if (this.opts.onHidden) {
this.opts.onHidden.call(this, this);
}
return this
}
/**
* Sets or gets the header. The getter always returns a PIXI.Text object. The setter can receive
* a string, a number or a PIXI.Text object.
*
* @member {string|number|PIXI.Text}
*/
get header() {
return this._header
}
set header(value) {
if (this._header) {
this._header.destroy();
}
this.opts.header = value;
this.setup().layout();
}
/**
* Sets or gets the content. The getter always returns an PIXI.DisplayObject. The setter can receive
* a string, a number or a PIXI.DisplayObject.
*
* @member {string|number|PIXI.DisplayObject}
*/
get content() {
return this._content
}
set content(value) {
if (this._content) {
this._content.destroy();
}
this.opts.content = value;
this.setup().layout();
}
}
/**
* Class that represents a PixiJS Tooltip.
*
* @example
* // Create the app
* const app = new PIXIApp({
* view: canvas,
* width: 900,
* height: 250
* }).setup().run()
*
* // Add an DisplayObject to the app
* const circle = new PIXI.Graphics()
* circle.beginFill(0x5251a3)
* circle.drawCircle(50, 50, 40)
* app.scene.addChild(circle)
*
* const tooltip = new Tooltip({
* object: circle,
* container: app.scene,
* content: 'Das Gesetz ist der Freund des Schwachen.'
* })
*
* @class
* @extends AbstractPopup
* @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/tooltip.html|DocTest}
*/
class Tooltip extends AbstractPopup {
/**
* Creates an instance of a Tooltip.
*
* @constructor
* @param {object} [opts] - An options object to specify to style and behaviour of the tooltip.
* @param {number} [opts.minWidth=0] - The minimum width of the tooltip.
* @param {number} [opts.minHeight=0] - The minimum height of the tooltip.
* @param {number} [opts.padding=Theme.padding / 2] - The inner spacing of the tooltip.
* @param {PIXI.DisplayObject} opts.object - The object, where the tooltip should be displayed.
* @param {PIXI.DisplayObject} [opts.container=object] - The container where the tooltip should be attached to.
* @param {number} [opts.offsetLeft=8] - The horizontal shift of the tooltip.
* @param {number} [opts.offsetTop=-8] - The vertical shift of the tooltip.
* @param {number} [opts.delay=0] - A delay, after which the tooltip should be opened.
*/
constructor(opts = {}) {
const theme = Theme.fromString(opts.theme);
opts = Object.assign({}, {
minWidth: 0,
minHeight: 0,
padding: theme.padding / 2,
object: null,
container: null,
offsetLeft: 8,
offsetTop: -8,
delay: 0
}, opts);
opts.container = opts.container || opts.object;
super(opts);
// setup
//-----------------
this.setup();
// layout
//-----------------
this.layout();
}
/**
* Creates children and instantiates everything.
*
* @private
* @return {Tooltip} A reference to the tooltip for chaining.
*/
setup() {
super.setup();
// bind events this
//-----------------
this.interactive = true;
let mouseoverTooltip = false;
this.on('mouseover', e => {
mouseoverTooltip = true;
});
this.on('mouseout', e => {
mouseoverTooltip = false;
if (!mouseoverObject) {
this.hide(() => {
this.opts.container.removeChild(this);
});
}
});
// bind events object
//-----------------
const object = this.opts.object;
object.interactive = true;
let mouseoverObject = false;
object.on('mouseover', e => {
this.timeout = window.setTimeout(() => {
mouseoverObject = true;
this.visible = true;
this.opts.container.addChild(this);
this.setPosition(e);
}, this.opts.delay * 1000);
});
object.on('mousemove', e => {
if (mouseoverObject) {
this.setPosition(e);
}
});
object.on('mouseout', e => {
mouseoverObject = false;
window.clearTimeout(this.timeout);
if (!mouseoverTooltip) {
this.hide(() => {
this.opts.container.removeChild(this);
});
}
});
return this
}
/**
* Calculates and sets the position of the tooltip.
*
* @private
* @return {Tooltip} A reference to the tooltip for chaining.
*/
setPosition(e) {
const position = e.data.getLocalPosition(this.opts.container);
this.x = position.x + this.opts.offsetLeft;
this.y = position.y + this.opts.offsetTop - this.height;
return this
}
}
/**
* Class that represents a PixiJS Badge.
*
* @example
* // Create the app
* const app = new PIXIApp({
* view: canvas,
* width: 900,
* height: 250
* }).setup().run()
*
* // Add an DisplayObject to the app
* const circle = new PIXI.Graphics()
* circle.beginFill(0x5251a3)
* circle.drawCircle(50, 50, 40)
* app.scene.addChild(circle)
*
* const badge1 = new Badge({
* object: circle,
* container: app.scene,
* content: 'Das Gesetz ist der Freund des Schwachen.'
* })
*
* @class
* @extends AbstractPopup
* @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/badge.html|DocTest}
*/
class Badge extends AbstractPopup {
/**
* Creates an instance of a Badge.
*
* @constructor
* @param {object} [opts] - An options object to specify to style and behaviour of the badge.
* @param {number} [opts.minWidth=0] - The minimum width of the badge.
* @param {number} [opts.minHeight=0] - The minimum height of the badge.
* @param {number} [opts.padding=Theme.padding / 2] - The inner spacing of the badge.
* @param {string|object} [opts.tooltip] - A string for the label of the tooltip or an object to configure the tooltip
* to display.
*/
constructor(opts = {}) {
const theme = Theme.fromString(opts.theme);
opts = Object.assign({}, {
minWidth: 0,
minHeight: 0,
padding: theme.padding / 2,
tooltip: null
}, opts);
super(opts);
this.tooltip = null;
// setup
//-----------------
this.setup();
// layout
//-----------------
this.layout();
}
/**
* Creates children and instantiates everything.
*
* @private
* @override
* @return {Badge} A reference to the badge for chaining.
*/
setup() {
super.setup();
// tooltip
//-----------------
if (this.opts.tooltip) {
if (typeof this.opts.tooltip === 'string') {
this.tooltip = new Tooltip({object: this, content: this.opts.tooltip});
} else {
this.opts.tooltip = Object.assign({}, {object: this}, this.opts.tooltip);
this.tooltip = new Tooltip(this.opts.tooltip);
}
}
return this
}
/**
* Should be called to refresh the layout of the badge. Can be used after resizing.
*
* @override
* @return {Badge} A reference to the badge for chaining.
*/
layout() {
super.layout();
this.content.x = this.width / 2 - this.content.width / 2 - this.opts.strokeWidth / 2;
this.content.y = this.height / 2 - this.content.height / 2 - this.opts.strokeWidth / 2;
return this
}
}
class Events$1 {
static stop(event) {
event.preventDefault();
event.stopPropagation();
}
static extractPoint(event) {
switch (event.constructor.name) {
case 'TouchEvent':
for (let i = 0; i < event.targetTouches.length; i++) {
let t = event.targetTouches[i];
return { x: t.clientX, y: t.clientY }
}
break
default:
return { x: event.clientX, y: event.clientY }
}
}
static isCaptured(event) {
if (event.__capturedBy)
return true
return false
}
static capturedBy(event, obj) {
event.__capturedBy = obj;
}
static isMouseDown(event) {
// Attempts to clone the which attribute of events failed in WebKit. May
// be this is a bug or a security feature. Workaround: we introduce
// a mouseDownSubstitute attribute that can be assigned to cloned
// events after instantiation.
if (Reflect.has(event, 'mouseDownSubstitute'))
return event.mouseDownSubstitute
return event.buttons || event.which
}
static isSimulatedEvent(event) {
return Reflect.has(event, 'mouseDownSubstitute')
}
static isMouseRightClick(event) {
return event.buttons || event.which
}
static extractTouches(targets) {
let touches = [];
for (let i = 0; i < targets.length; i++) {
let t = targets[i];
touches.push({
targetSelector: this.selector(t.target),
identifier: t.identifier,
screenX: t.screenX,
screenY: t.screenY,
clientX: t.clientX,
clientY: t.clientY,
pageX: t.pageX,
pageY: t.pageY
});
}
return touches
}
static createTouchList(targets) {
let touches = [];
for (let i = 0; i < targets.length; i++) {
let t = targets[i];
let touchTarget = document.elementFromPoint(t.pageX, t.pageY);
let touch = new Touch(undefined, touchTarget, t.identifier,
t.pageX, t.pageY, t.screenX, t.screenY);
touches.push(touch);
}
return new TouchList(...touches)
}
static extractEvent(timestamp, event) {
let targetSelector = this.selector(event.target);
let infos = {
type: event.type,
time: timestamp,
constructor: event.constructor,
data: {
targetSelector: targetSelector,
view: event.view,
mouseDownSubstitute: event.buttons || event.which, // which cannot be cloned directly
bubbles: event.bubbles,
cancelable: event.cancelable,
screenX: event.screenX,
screenY: event.screenY,
clientX: event.clientX,
clientY: event.clientY,
layerX: event.layerX,
layerY: event.layerY,
pageX: event.pageX,
pageY: event.pageY,
ctrlKey: event.ctrlKey,
altKey: event.altKey,
shiftKey: event.shiftKey,
metaKey: event.metaKey
}
};
if (event.type.startsWith('touch')) {
// On Safari-WebKit the TouchEvent has layerX, layerY coordinates
let data = infos.data;
data.targetTouches = this.extractTouches(event.targetTouches);
data.changedTouches = this.extractTouches(event.changedTouches);
data.touches = this.extractTouches(event.touches);
}
if (event.type.startsWith('pointer')) {
let data = infos.data;
data.pointerId = event.pointerId;
data.pointerType = event.pointerType;
}
if (Events$1.debug) {
Events$1.extracted.push(this.toLine(event));
}
return infos
}
static cloneEvent(type, constructor, data) {
if (type.startsWith('touch')) {
// We need to find target from layerX, layerY
//var target = document.querySelector(data.targetSelector)
// elementFromPoint(data.layerX, data.layerY)
//data.target = target
data.targetTouches = this.createTouchList(data.targetTouches);
data.changedTouches = this.createTouchList(data.changedTouches);
data.touches = this.createTouchList(data.touches);
}
// We need to find target from pageX, pageY which are only
// available after construction. They seem to getter items.
let clone = Reflect.construct(constructor, [type, data]);
clone.mouseDownSubstitute = data.mouseDownSubstitute;
return clone
}
static simulateEvent(type, constructor, data) {
data.target = document.querySelector(data.targetSelector);
let clone = this.cloneEvent(type, constructor, data);
if (data.target != null) {
data.target.dispatchEvent(clone);
}
if (Events$1.debug) {
Events$1.simulated.push(this.toLine(clone));
}
}
static toLine(event) {
return `${event.type} #${event.target.id} ${event.clientX} ${event.clientY}`
let result = event.type;
let selector = this.selector(event.target);
result += ' selector: ' + selector;
if (event.target != document.querySelector(selector))
console.log('Cannot resolve', selector);
let keys = ['layerX', 'layerY', 'pageX', 'pageY', 'clientX', 'clientY'];
for (let key of keys) {
try {
result += ' ' + key + ':' + event[key];
}
catch (e) {
console.log('Invalid key: ' + key);
}
}
return result
}
static compareExtractedWithSimulated() {
if (this.extracted.length != this.simulated.length) {
alert('Unequal length of extracted [' + this.extracted.length +
'] and simulated events [' + this.simulated.length + '].');
}
else {
for (let i = 0; i < this.extracted.length; i++) {
var extracted = this.extracted[i];
var simulated = this.simulated[i];
if (extracted != simulated) {
console.log('Events differ:' + extracted + '|' + simulated);
}
}
}
}
static selector(context) {
return OptimalSelect.select(context)
}
static reset() {
this.extracted = [];
this.simulated = [];
}
static resetSimulated() {
this.simulated = [];
}
static showExtractedEvents(event) {
if (!event.shiftKey) {
return
}
if (this.popup == null) {
let element = document.createElement('div');
Elements.setStyle(element, {
position: 'absolute',
width: '480px',
height: '640px',
overflow: 'auto',
backgroundColor: 'lightgray'
});
document.body.appendChild(element);
this.popup = element;
}
this.popup.innerHTML = '';
for (let line of this.extracted) {
let div = document.createElement('div');
div.innerHTML = line;
this.popup.appendChild(div);
}
let div = document.createElement('div');
div.innerHTML = '------------ Simulated -----------';
this.popup.appendChild(div);
for (let line of this.simulated) {
let div = document.createElement('div');
div.innerHTML = line;
this.popup.appendChild(div);
}
Elements.setStyle(this.popup,
{ left: event.clientX + 'px', top: event.clientY + 'px' });
}
}
Events$1.popup = null;
Events$1.debug = true;
Events$1.extracted = [];
Events$1.simulated = [];
Events$1.simulationRunning = false;
/**
* Callback for the button action.
*
* @callback actionCallback
* @param {object} event - The event object.
* @param {Button} button - A reference to the button (also this refers to the button).
*/
/**
* Callback for the button beforeAction.
*
* @callback beforeActionCallback
* @param {object} event - The event object.
* @param {Button} button - A reference to the button (also this refers to the button).
*/
/**
* Callback for the button afterAction.
*
* @callback afterActionCallback
* @param {object} event - The event object.
* @param {Button} button - A reference to the button (also this refers to the button).
*/
/**
* Class that represents a PixiJS Button.
*
* @example
* // Create the button
* const button = new Button({
* label: 'My Button',
* action: () => console.log('Button was clicked')
* })
*
* // Add the button to a DisplayObject
* app.scene.addChild(button)
*
* @class
* @extends PIXI.Container
* @see {@link http://pixijs.download/dev/docs/PIXI.Container.html|PIXI.Container}
* @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/button.html|DocTest}
*/
class Button extends PIXI.Container {
/**
* Creates an instance of a Button.
*
* @constructor
* @param {object} [opts] - An options object to specify to style and behaviour of the button.
* @param {number} [opts.id=auto generated] - The id of the button.
* @param {string} [opts.label] - The label of the button.
* @param {number} [opts.x=0] - The x position of the button. Can be also set after creation with button.x = 0.
* @param {number} [opts.y=0] - The y position of the button. Can be also set after creation with button.y = 0.
* @param {string|Theme} [opts.theme=dark] - The theme to use for this button. Possible values are dark, light, red
* or a Theme object.
* @param {number} [opts.minWidth=44] - The minimum width of the button.
* @param {number} [opts.minHeight=44] - The minimum height of the button.
* @param {number} [opts.padding=Theme.padding] - The inner spacing (distance from icon and/or label) to the border.
* @param {string|PIXI.DisplayObject} [opts.icon] - The icon of the button. Can be a predefined one, an URL or an PIXI.DisplayObject.
* @param {string|PIXI.DisplayObject} [opts.iconActive=icon] - The icon of the button when activated. Can be a predefined one, an URL or an PIXI.DisplayObject.
* @param {string} [opts.iconPosition=left] - The position of the icon in relation to the label. Can be left or right.
* @param {number} [opts.iconColor=Theme.iconColor] - The color of the icon (set by the tint property) as a hex value.
* @param {number} [opts.iconColorActive=Theme.iconColorActive] - The color of the icon when activated.
* @param {number} [opts.fill=Theme.fill] - The color of the button background as a hex value.
* @param {number} [opts.fillAlpha=Theme.fillAlpha] - The alpha value of the background.
* @param {number} [opts.fillActive=Theme.fillActive] - The color of the button background when activated.
* @param {number} [opts.fillActiveAlpha=Theme.fillActiveAlpha] - The alpha value of the background when activated.
* @param {number} [opts.stroke=Theme.stroke] - The color of the border as a hex value.
* @param {number} [opts.strokeWidth=Theme.strokeWidth] - The width of the border in pixel.
* @param {number} [opts.strokeAlpha=Theme.strokeAlpha] - The alpha value of the border.
* @param {number} [opts.strokeActive=Theme.strokeActive] - The color of the border when activated.
* @param {number} [opts.strokeActiveWidth=Theme.strokeActiveWidth] - The width of the border in pixel when activated.
* @param {number} [opts.strokeActiveAlpha=Theme.strokeActiveAlpha] - The alpha value of the border when activated.
* @param {object} [opts.textStyle=Theme.textStyle] - A textstyle object for the styling of the label. See PIXI.TextStyle
* for possible options.
* @param {number} [opts.textStyleActive=Theme.textStyleActive] - A textstyle object for the styling of the label when the
* button is activated. See PIXI.TextStyle for possible options.
* @param {string} [opts.style=default] - A shortcut for styling options. Possible values are default, link.
* @param {number} [opts.radius=Theme.radius] - The radius of the four corners of the button (which is a rounded rectangle).
* @param {boolean} [opts.disabled=false] - Is the button disabled? When disabled, the button has a lower alpha value
* and cannot be clicked (interactive is set to false).
* @param {boolean} [opts.active=false] - Is the button initially active?
* @param {actionCallback} [opts.action] - Executed when the button was triggered (by pointerup).
* @param {beforeActionCallback} [opts.beforeAction] - Executed before the main action is triggered.
* @param {afterActionCallback} [opts.afterAction] - Executed after the main action was triggered.
* @param {string} [opts.type=default] - The type of the button. Can be default or checkbox. When the type is
* checkbox, the active state is toggled automatically.
* @param {string} [opts.align=center] - The horizontal position of the label and the icon. Possible values are
* left, center and right. Only affects the style when the minWidth is bigger than the width of the icon and label.
* @param {string} [opts.verticalAlign=middle] - The vertical position of the label and the icon. Possible values are
* top, middle and button. Only affects the style when the minHeight is bigger than the height of the icon and label.
* @param {string|object} [opts.tooltip] - A string for the label of the tooltip or an object to configure the tooltip
* to display.
* @param {string|object} [opts.badge] - A string for the label of the badge or an object to configure the badge to display.
* If the parameter is an object, all badge options can be set plus the following:
* @param {string} [opts.badge.align=right] - The horizontal alignment of the badge. Possible values: left, center, right
* @param {string} [opts.badge.verticalAlign=top] - The vertical alignment of the badge. Possible values: top, middle, bottom
* @param {number} [opts.badge.offsetLeft=0] - The horizontal shift of the badge.
* @param {number} [opts.badge.offsetTop=0] - The vertical shift of the badge.
* @param {boolean} [opts.visible=true] - Is the button initially visible (property visible)?
*/
constructor(opts = {}) {
super();
const theme = Theme.fromString(opts.theme);
this.theme = theme;
this.opts = Object.assign({}, {
id: PIXI.utils.uid(),
label: null,
x: 0,
y: 0,
minWidth: 44,
minHeight: 44,
padding: theme.padding,
icon: undefined,
iconActive: undefined,
iconPosition: 'left',
iconColor: theme.iconColor,
iconColorActive: theme.iconColorActive,
fill: theme.fill,
fillAlpha: theme.fillAlpha,
fillActive: theme.fillActive,
fillActiveAlpha: theme.fillActiveAlpha,
stroke: theme.stroke,
strokeWidth: theme.strokeWidth,
strokeAlpha: theme.strokeAlpha,
strokeActive: theme.strokeActive,
strokeActiveWidth: theme.strokeActiveWidth,
strokeActiveAlpha: theme.strokeActiveAlpha,
textStyle: theme.textStyle,
textStyleActive: theme.textStyleActive,
style: 'default',
radius: theme.radius,
disabled: false,
active: false,
action: null,
beforeAction: null,
afterAction: null,
type: 'default',
align: 'center',
verticalAlign: 'middle',
tooltip: null,
badge: null,
visible: true
}, opts);
this.id = this.opts.id;
if (typeof this.opts.icon === 'undefined' && typeof this.opts.iconActive !== 'undefined') {
this.opts.icon = this.opts.iconActive;
} else if (typeof this.opts.icon !== 'undefined' && typeof this.opts.iconActive === 'undefined') {
this.opts.iconActive = this.opts.icon;
}
if (this.opts.style === 'link') {
Object.assign(this.opts, {strokeAlpha: 0, strokeActiveAlpha: 0, fillAlpha: 0, fillActiveAlpha: 0});
}
this._active = null;
this._disabled = null;
this.iconInactive = null;
this.iconActive = null;
this.text = null;
this.button = null;
this.content = null;
this.tooltip = null;
this.badge = null;
this.visible = this.opts.visible;
// setup
//-----------------
this.setup();
}
/**
* Captures an event to inform InteractionMapper about processed events.
*
* @param {event|PIXI.InteractionEvent} event - The PIXI event to capture.
*/
capture(event) {
Events$1.capturedBy(event.data.originalEvent, this);
}
/**
* Creates children and instantiates everything.
*
* @private
* @return {Button} A reference to the button for chaining.
*/
setup() {
// Button
//-----------------
let button = new PIXI.Graphics();
this.button = button;
this.addChild(button);
// Content
//-----------------
let content = new PIXI.Container();
this.content = content;
this.addChild(content);
// Text
//-----------------
if (this.opts.label) {
this.text = new PIXI.Text(this.opts.label, this.opts.textStyle);
}
// Icon
//-----------------
if (this.opts.icon) {
this.iconInactive = this.loadIcon(this.opts.icon, this.opts.iconColor);
}
if (this.opts.iconActive) {
this.iconActive = this.loadIcon(this.opts.iconActive, this.opts.iconColorActive);
}
// interaction
//-----------------
this.button.on('pointerover', e => {
this.capture(e);
TweenLite.to([this.button, this.content], this.theme.fast, {alpha: .83, overwrite: 'none'});
});
this.button.on('pointermove', e => {
this.capture(e);
});
this.button.on('pointerout', e => {
this.capture(e);
TweenLite.to([this.button, this.content], this.theme.fast, {alpha: 1, overwrite: 'none'});
});
this.button.on('pointerdown', e => {
//this.capture(e)
TweenLite.to([this.button, this.content], this.theme.fast, {alpha: .7, overwrite: 'none'});
});
this.button.on('pointerup', e => {
this.capture(e);
if (this.opts.beforeAction) {
this.opts.beforeAction.call(this, e, this);
}
if (this.opts.action) {
this.opts.action.call(this, e, this);
}
TweenLite.to([this.button, this.content], this.theme.fast, {alpha: .83, overwrite: 'none'});
if (this.opts.type === 'checkbox') {
this.active = !this.active;
}
if (this.opts.afterAction) {
this.opts.afterAction.call(this, e, this);
}
});
// disabled
//-----------------
this.disabled = this.opts.disabled;
// active
//-----------------
this.active = this.opts.active; // calls .layout()
// tooltip
//-----------------
if (this.opts.tooltip) {
if (typeof this.opts.tooltip === 'string') {
this.tooltip = new Tooltip({object: this, content: this.opts.tooltip});
} else {
this.opts.tooltip = Object.assign({}, {object: this}, this.opts.tooltip);
this.tooltip = new Tooltip(this.opts.tooltip);
}
}
// badge
//-----------------
if (this.opts.badge) {
let opts = Object.assign({}, {
align: 'right',
verticalAlign: 'top',
offsetLeft: 0,
offsetTop: 0
});
if (typeof this.opts.badge === 'string') {
opts = Object.assign(opts, {content: this.opts.badge});
} else {
opts = Object.assign(opts, this.opts.badge);
}
const badge = new Badge(opts);
switch (opts.align) {
case 'left':
badge.x = this.x - badge.width / 2 + opts.offsetLeft;
break
case 'center':
badge.x = this.x + this.width / 2 - badge.width / 2 + opts.offsetLeft;
break
case 'right':
badge.x = this.x + this.width - badge.width / 2 + opts.offsetLeft;
}
switch (opts.verticalAlign) {
case 'top':
badge.y = this.y - badge.height / 2 + opts.offsetTop;
break
case 'middle':
badge.y = this.y + this.height / 2 - badge.height / 2 + opts.offsetTop;
break
case 'bottom':
badge.y = this.y + this.height - badge.height / 2 + opts.offsetTop;
}
this.addChild(badge);
this.badge = badge;
}
// set position
//-----------------
this.position.set(this.opts.x, this.opts.y);
return this
}
/**
* Should be called to refresh the layout of the button. Can be used after resizing.
*
* @return {Button} A reference to the button for chaining.
*/
layout() {
// Clear content
//-----------------
this.removeChild(this.content);
this.content = new PIXI.Container();
this.addChild(this.content);
// Set the icon
//-----------------
let icon = null;
if (!this.active && this.iconInactive) {
icon = this.iconInactive;
} else if (this.active && this.iconActive) {
icon = this.iconActive;
}
// Set the text
//-----------------
if (this.text) {
this.text.position.set(0, 0);
}
// Width and Height
//-----------------
let width = 0;
if (icon && this.text) {
width = icon.width + this.text.width + 3 * this.opts.padding;
} else if (icon) {
width = icon.width + 2 * this.opts.padding;
} else if (this.text) {
width = this.text.width + 2 * this.opts.padding;
}
if (width < this.opts.minWidth) {
width = this.opts.minWidth;
}
let height = 0;
if (icon) {
height = icon.height + 2 * this.opts.padding;
} else if (this.text) {
height = this.text.height + 2 * this.opts.padding;
}
if (height < this.opts.minHeight) {
height = this.opts.minHeight;
}
this._width = width;
this._height = height;
// Position icon and text
//-----------------
if (icon && this.text) {
if (this.opts.iconPosition === 'right') {
icon.x = this.text.width + this.opts.padding;
} else {
this.text.x = icon.width + this.opts.padding;
}
this.content.addChild(icon, this.text);
} else if (icon) {
this.content.addChild(icon);
} else if (this.text) {
this.content.addChild(this.text);
}
this.layoutInnerContent();
this.layoutContent();
this.icon = icon;
// draw
//-----------------
this.draw();
return this
}
/**
* Calculates the positions of the content children (icon and/or text).
*
* @private
* @return {Button} A reference to the button for chaining.
*/
layoutInnerContent() {
for (let child of this.content.children) {
switch (this.opts.verticalAlign) {
case 'top':
child.y = 0;
break
case 'middle':
child.y = this.content.height / 2 - child.height / 2;
break
case 'bottom':
child.y = this.content.height - child.height;
break
}
}
return this
}
/**
* Sets the horizontal and vertical position of the content.
* Uses the option keys "align" and "verticalAlign".
*
* @private
* @return {Button} A reference to the button for chaining.
*/
layoutContent() {
switch (this.opts.align) {
case 'left':
this.content.x = this.opts.padding;
break
case 'center':
this.content.x = ((this._width - this.content.width) / 2);
break
case 'right':
this.content.x = this._width - this.opts.padding - this.content.width;
break
}
switch (this.opts.verticalAlign) {
case 'top':
this.content.y = this.opts.padding;
break
case 'middle':
this.content.y = (this._height - this.content.height) / 2;
break
case 'bottom':
this.content.y = this._height - this.opts.padding - this.content.height;
break
}
return this
}
/**
* Draws the canvas.
*
* @private
* @return {Button} A reference to the button for chaining.
*/
draw() {
this.button.clear();
if (this.active) {
this.button.lineStyle(this.opts.strokeActiveWidth, this.opts.strokeActive, this.opts.strokeActiveAlpha);
this.button.beginFill(this.opts.fillActive, this.opts.fillActiveAlpha);
} else {
this.button.lineStyle(this.opts.strokeWidth, this.opts.stroke, this.opts.strokeAlpha);
this.button.beginFill(this.opts.fill, this.opts.fillAlpha);
}
this.button.drawRoundedRect(0, 0, this._width, this._height, this.opts.radius);
this.button.endFill();
return this
}
/**
* Gets or sets the active state.
*
* @member {boolean}
*/
get active() {
return this._active
}
set active(value) {
this._active = value;
if (this._active) {
if (this.text) {
this.text.style = this.opts.textStyleActive;
}
} else {
if (this.text) {
this.text.style = this.opts.textStyle;
}
}
this.layout();
}
/**
* Gets or sets the disabled state. When disabled, the button cannot be clicked.
*
* @member {boolean}
*/
get disabled() {
return this._disabled
}
set disabled(value) {
this._disabled = value;
if (this._disabled) {
this.button.interactive = false;
this.button.buttonMode = false;
this.button.alpha = .5;
if (this.icon) {
this.icon.alpha = .5;
}
if (this.text) {
this.text.alpha = .5;
}
} else {
this.button.interactive = true;
this.button.buttonMode = true;
this.button.alpha = 1;
if (this.icon) {
this.icon.alpha = 1;
}
if (this.text) {
this.text.alpha = 1;
}
}
}
/**
* Shows the button (sets his alpha values to 1).
*
* @return {Button} A reference to the button for chaining.
*/
show() {
this.opts.strokeAlpha = 1;
this.opts.strokeActiveAlpha = 1;
this.opts.fillAlpha = 1;
this.opts.fillActiveAlpha = 1;
this.layout();
return this
}
/**
* Hides the button (sets his alpha values to 0).
*
* @return {Button} A reference to the button for chaining.
*/
hide() {
this.opts.strokeAlpha = 0;
this.opts.strokeActiveAlpha = 0;
this.opts.fillAlpha = 0;
this.opts.fillActiveAlpha = 0;
this.layout();
return this
}
/**
* Loads an icon
*
* @private
* @param {string|PIXI.DisplayObject} icon - The icon to load.
* @param {number} color - The color of the icon (if not an PIXI.DisplayObject).
* @return {PIXI.DisplayObject} Return the icon as an PIXI.DisplayObject.
*/
loadIcon(icon, color) {
let displayObject = null;
if (icon instanceof PIXI.DisplayObject) {
displayObject = icon;
} else {
let size = 17;
if (this.text) {
size = this.text.height;
} else if (this.opts.minHeight) {
size = this.opts.minHeight - (2 * this.opts.padding);
}
const url = Button.iconIsUrl(icon) ? icon : `../../assets/icons/png/flat/${icon}.png`;
const iconTexture = PIXI.Texture.fromImage(url, true);
const sprite = new PIXI.Sprite(iconTexture);
sprite.tint = color;
sprite.width = size;
sprite.height = size;
displayObject = sprite;
}
return displayObject
}
/**
* Tests if an icon string is an url.
*
* @private
* @static
* @param {string} url - The url to test.
* @return {boolean} true if the url is an url to an image.
*/
static iconIsUrl(url) {
return /\.(png|svg|gif|jpg|jpeg|tif|tiff)$/i.test(url)
}
/**
* Gets or sets the color of the current icon (no matter how the status is). Changing the color, changes
* the tint property of the icon sprite.
*
* @member {number}
*/
get iconColor() {
return this.icon ? this.icon.tint : null
}
set iconColor(value) {
if (this.icon) {
this.icon.tint = value;
}
}
}
/**
* Class that represents a PixiJS ButtonGroup.
*
* @example
* // Create the button group
* const buttonGroup = new ButtonGroup({
* buttons: [
* {label: 'Button 1', action: event => console.log(event)},
* {label: 'Button 2', action: event => console.log(event)},
* {label: 'Button 3', action: event => console.log(event)}
* ],
* minWidth: 100
* })
*
* // Add the button group to a DisplayObject
* app.scene.addChild(buttonGroup)
*
* @class
* @extends PIXI.Graphics
* @see {@link http://pixijs.download/dev/docs/PIXI.Graphics.html|PIXI.Graphics}
* @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/buttongroup.html|DocTest}
*/
class ButtonGroup extends PIXI.Graphics {
/**
* Creates an instance of a ButtonGroup.
*
* @constructor
* @param {object} [opts] - An options object to specify to style and behaviour of the button group.
* @param {number} [opts.id=auto generated] - The id of the button group.
* @param {number} [opts.x=0] - The x position of the button group. Can be also set after creation with buttonGroup.x = 0.
* @param {number} [opts.y=0] - The y position of the button group. Can be also set after creation with buttonGroup.y = 0.
* @param {object[]} [opts.buttons=[]] - An array of the buttons of the button group. One item of the array (one object)
* can have exactly the same properties as an Button object when instantiating a Button. If a property of the button group
* conflicts with a property of a button object, the value from the button object will be used.
* @param {string|Theme=} [opts.theme=dark] - The theme to use for this button group. Possible values are dark, light, red
* or a Theme object.
* @param {number} [opts.minWidth=44] - Button: The minimum width of one button.
* @param {number} [opts.minHeight=44] - Button: The minimum height of one button.
* @param {number} [opts.padding=Theme.padding] - Button: The inner spacing (distance from icon and/or label) the the border.
* @param {number} [opts.margin=Theme.margin] - The outer spacing (distance from one button to the previous/next button).
* @param {string} [opts.iconPosition=left] - Button: The position of the icon in relation to the label. Can be left or right.
* @param {number} [opts.iconColor=Theme.iconColor] - Button: The color of the icon (set by the tint property) as a hex value.
* @param {number} [opts.iconColorActive=Theme.iconColorActive] - Button: The color of the icon when activated.
* @param {number} [opts.fill=Theme.fill] - Button: The color of the button background as a hex value.
* @param {number} [opts.fillAlpha=Theme.fillAlpha] - Button: The alpha value of the background.
* @param {number} [opts.fillActive=Theme.fillActive] - Button: The color of the button background when activated.
* @param {number} [opts.fillActiveAlpha=Theme.fillActiveAlpha] - Button: The alpha value of the background when activated.
* @param {number} [opts.stroke=Theme.stroke] - Button: The color of the border as a hex value.
* @param {number} [opts.strokeWidth=Theme.strokeWidth] - Button: The width of the border in pixel.
* @param {number} [opts.strokeAlpha=Theme.strokeAlpha] - Button: The alpha value of the border.
* @param {number} [opts.strokeActive=Theme.strokeActive] - Button: The color of the border when activated.
* @param {number} [opts.strokeActiveWidth=Theme.strokeActiveWidth] - Button: The width of the border in pixel when activated.
* @param {number} [opts.strokeActiveAlpha=Theme.strokeActiveAlpha] - Button: The alpha value of the border when activated.
* @param {object} [opts.textStyle=Theme.textStyle] - Button: A textstyle object for the styling of the label. See PIXI.TextStyle
* for possible options.
* @param {number} [opts.textStyleActive=Theme.textStyleActive] - Button: A textstyle object for the styling of the label when the
* button is activated. See PIXI.TextStyle for possible options.
* @param {string} [opts.style=default] - A shortcut for styling options. Possible values are default, link.
* @param {number} [opts.radius=Theme.radius] - Button: The radius of the four corners of the button (which is a rounded rectangle).
* @param {boolean} [opts.disabled=false] - Is the button group disabled? When disabled, the button group has a lower alpha value
* and cannot be clicked (interactive of every button is set to false).
* @param {string} [opts.type=default] - The type of the button group. Can be default, checkbox or radio. When the type is
* checkbox, the active state is toggled for each button automatically. When the type is radio, only one button can
* be activated at the same time.
* @param {string} [opts.orientation=horizontal] - The orientation of the button group. Can be horizontal or vertical.
* @param {string} [opts.align=center] - Button: The horizontal position of the label and the icon. Possible values are
* left, center and right. Only affects the style when the minWidth is bigger than the width of the icon and label.
* @param {string} [opts.verticalAlign=middle] - Button: The vertical position of the label and the icon. Possible values are
* top, middle and bottom. Only affects the style when the minHeight is bigger than the height of the icon and label.
* @param {boolean} [opts.visible=true] - Is the button group initially visible (property visible)?
*/
constructor(opts = {}) {
super();
const theme = Theme.fromString(opts.theme);
this.theme = theme;
this.opts = Object.assign({}, {
id: PIXI.utils.uid(),
x: 0,
y: 0,
buttons: [],
minWidth: 44,
minHeight: 44,
padding: theme.padding,
margin: theme.margin,
iconPosition: 'left', // left, right
iconColor: theme.iconColor,
iconColorActive: theme.iconColorActive,
fill: theme.fill,
fillAlpha: theme.fillAlpha,
fillActive: theme.fillActive,
fillActiveAlpha: theme.fillActiveAlpha,
stroke: theme.stroke,
strokeWidth: theme.strokeWidth,
strokeAlpha: theme.strokeAlpha,
strokeActive: theme.strokeActive,
strokeActiveWidth: theme.strokeActiveWidth,
strokeActiveAlpha: theme.strokeActiveAlpha,
textStyle: theme.textStyle,
textStyleActive: theme.textStyleActive,
style: 'default',
radius: theme.radius,
disabled: null,
type: 'default', // default, checkbox, radio
orientation: 'horizontal',
align: 'center', // left, center, right
verticalAlign: 'middle', // top, middle, bottom
visible: true
}, opts);
this.buttons = [];
this._disabled = null;
this.visible = this.opts.visible;
// setup
//-----------------
this.setup();
// layout
//-----------------
this.layout();
}
/**
* Creates children and instantiates everything.
*
* @private
* @return {ButtonGroup} A reference to the button group for chaining.
*/
setup() {
// Buttons
//-----------------
let position = 0;
for (let it of this.opts.buttons) {
delete it.x;
delete it.y;
if (this.opts.orientation === 'horizontal') {
it.x = position;
} else {
it.y = position;
}
it.theme = it.theme || this.opts.theme;
it.minWidth = it.minWidth || this.opts.minWidth;
it.minHeight = it.minHeight || this.opts.minHeight;
it.padding = it.padding || this.opts.padding;
it.iconPosition = it.iconPosition || this.opts.iconPosition;
it.iconColor = it.iconColor || this.opts.iconColor;
it.iconColorActive = it.iconColorActive || this.opts.iconColorActive;
it.fill = it.fill || this.opts.fill;
it.fillAlpha = it.fillAlpha || this.opts.fillAlpha;
it.fillActive = it.fillActive || this.opts.fillActive;
it.fillActiveAlpha = it.fillActiveAlpha || this.opts.fillActiveAlpha;
it.stroke = it.stroke || this.opts.stroke;
it.strokeWidth = it.strokeWidth != null ? it.strokeWidth : this.opts.strokeWidth;
it.strokeAlpha = it.strokeAlpha != null ? it.strokeAlpha : this.opts.strokeAlpha;
it.strokeActive = it.strokeActive || this.opts.strokeActive;
it.strokeActiveWidth = it.strokeActiveWidth != null ? it.strokeActiveWidth : this.opts.strokeActiveWidth;
it.strokeActiveAlpha = it.strokeActiveAlpha != null ? it.strokeActiveAlpha : this.opts.strokeActiveAlpha;
it.textStyle = it.textStyle || this.opts.textStyle;
it.textStyleActive = it.textStyleActive || this.opts.textStyleActive;
it.style = it.style || this.opts.style;
it.radius = it.radius != null ? it.radius : this.opts.radius;
if (!it.type) {
switch (this.opts.type) {
case 'checkbox':
it.type = this.opts.type;
break
default:
it.type = 'default';
break
}
}
//it.type = it.type || this.opts.type || 'default'
it.align = it.align || this.opts.align;
it.verticalAlign = it.verticalAlign || this.opts.verticalAlign;
it.afterAction = (event, button) => {
if (this.opts.type === 'radio' && button.opts.type === 'default') {
this.buttons.forEach(it => {
if (it.opts.type === 'default') {
it.active = false;
}
});
if (button.opts.type === 'default') {
button.active = true;
}
}
};
if (it.tooltip) {
if (typeof it.tooltip === 'string') {
it.tooltip = {content: it.tooltip, container: this};
} else {
it.tooltip = Object.assign({}, {container: this}, it.tooltip);
}
}
let button = new Button(it);
this.addChild(button);
this.buttons.push(button);
position += (this.opts.orientation === 'horizontal' ? button.width : button.height) + this.opts.margin;
}
if (this.opts.orientation === 'vertical') {
const maxWidth = this.getMaxButtonWidth();
this.buttons.forEach(it => {
it.opts.minWidth = maxWidth;
it.layout();
});
}
// disabled
//-----------------
if (this.opts.disabled != null) {
this.disabled = this.opts.disabled;
}
return this
}
/**
* Should be called to refresh the layout of the button group. Can be used after resizing.
*
* @return {ButtonGroup} A reference to the button group for chaining.
*/
layout() {
// set position
//-----------------
this.position.set(this.opts.x, this.opts.y);
// draw
//-----------------
this.draw();
return this
}
/**
* Draws the canvas.
*
* @private
* @return {ButtonGroup} A reference to the button group for chaining.
*/
draw() {
if (this.opts.margin === 0) {
this.buttons.forEach(it => it.hide());
this.clear();
this.lineStyle(this.opts.strokeWidth, this.opts.stroke, this.opts.strokeAlpha);
this.beginFill(this.opts.fill, this.opts.fillAlpha);
this.drawRoundedRect(0, 0, this.width, this.height, this.opts.radius);
// Draw borders
this.lineStyle(this.opts.strokeWidth, this.opts.stroke, this.opts.strokeAlpha / 2);
this.buttons.forEach((it, i) => {
if (i > 0) {
this.moveTo(it.x, it.y);
if (this.opts.orientation === 'horizontal') {
this.lineTo(it.x, it.height);
} else {
this.lineTo(it.width, it.y);
}
}
});
this.endFill();
}
return this
}
/**
* Gets or sets the disabled state. When disabled, no button of the button group can be clicked.
*
* @member {boolean}
*/
get disabled() {
return this._disabled
}
set disabled(value) {
this._disabled = value;
this.buttons.forEach(it => it.disabled = value);
}
/**
* Searches all buttons of the button group and returns the maximum width of one button.
*
* @private
* @return {number} The maximum with of a button of the button group.
*/
getMaxButtonWidth() {
let widths = this.buttons.map(it => it.width);
return Math.max(...widths)
}
/**
* Shows the button group (sets his alpha value to 1).
*
* @return {ButtonGroup} A reference to the button group for chaining.
*/
show() {
this.alpha = 1;
return this
}
/**
* Hides the button group (sets his alpha value to 0).
*
* @return {ButtonGroup} A reference to the button group for chaining.
*/
hide() {
this.alpha = 0;
return this
}
}
/**
* Class that represents a PixiJS InteractivePopup.
* The class is used for various other Popup-like classes
* like Popup, Message...
*
* @class
* @abstract
* @extends AbstractPopup
*/
class InteractivePopup extends AbstractPopup {
/**
* Creates an instance of an InteractivePopup (only for internal use).
*
* @constructor
* @param {object} [opts] - An options object to specify to style and behaviour of the popup.
* @param {boolean} [opts.closeOnPopup=false] - Should the popup be closed when the user clicks on the popup?
* @param {boolean} [opts.closeButton=true] - Should a close button be displayed on the upper right corner?
* @param {object} [opts.button] - A Button object to be display on the lower right corner.
* @param {object} [opts.buttonGroup] - A ButtonGroup object to be displayed on the lower right corner.
*/
constructor(opts = {}) {
opts = Object.assign({}, {
closeOnPopup: false,
closeButton: true,
button: null,
buttonGroup: null
}, opts);
super(opts);
this._closeButton = null;
this._buttons = null;
// padding
this.smallPadding = this.opts.padding / 2;
// setup
//-----------------
this.setup();
// layout
//-----------------
this.layout();
}
/**
* Creates the framework and instantiates everything.
*
* @private
* @return {AbstractPopup} A reference to the popup for chaining.
*/
setup() {
super.setup();
// interaction
//-----------------
this.on('pointerup', e => {
if (this.opts.closeOnPopup) {
this.hide();
} else {
e.stopPropagation();
}
});
// closeButton
//-----------------
if (this.opts.closeButton) {
let closeButton = PIXI.Sprite.fromImage('../../assets/icons/png/flat/close.png', true);
closeButton.width = this.headerStyle.fontSize;
closeButton.height = closeButton.width;
closeButton.tint = this.theme.color2;
// This is needed, because the closeButton belongs to the content. The popup must resize with the closeButton.
if (this._header) {
closeButton.x = this._header.width + this.innerPadding;
} else if (this._content) {
closeButton.x = this._content.width + this.innerPadding;
}
closeButton.interactive = true;
closeButton.buttonMode = true;
closeButton.on('pointerdown', e => {
this.hide();
});
this._closeButton = closeButton;
this.addChild(closeButton);
// maxWidth is set and a closeButton should be displayed
//-----------------
if (this.opts.maxWidth) {
const wordWrapWidth = this.opts.maxWidth - (2 * this.opts.padding) - this.smallPadding - this._closeButton.width;
if (this._header) {
this.headerStyle.wordWrapWidth = wordWrapWidth;
} else if (this._content) {
this.textStyle.wordWrapWidth = wordWrapWidth;
}
}
}
// buttons
//-----------------
if (this.opts.button || this.opts.buttonGroup) {
if (this.opts.button) {
this._buttons = new Button(Object.assign({textStyle: this.theme.textStyleSmall}, this.opts.button));
} else {
this._buttons = new ButtonGroup(Object.assign({textStyle: this.theme.textStyleSmall}, this.opts.buttonGroup));
}
this.addChild(this._buttons);
this._buttons.y = this.innerPadding + this.sy;
}
return this
}
/**
* Should be called to refresh the layout of the popup. Can be used after resizing.
*
* @return {AbstractPopup} A reference to the popup for chaining.
*/
layout() {
super.layout();
// closeButton
//-----------------
if (this.opts.closeButton) {
this._closeButton.x = this.wantedWidth - this.smallPadding - this._closeButton.width;
this._closeButton.y = this.smallPadding;
}
// buttons
//-----------------
if (this._buttons) {
this._buttons.x = this.wantedWidth - this.opts.padding - this._buttons.width;
this._buttons.y = this.wantedHeight - this.opts.padding - this._buttons.height;
}
return this
}
/**
* Calculates the size of the children of the AbstractPopup.
* Cannot use getBounds() because it is not updated when children
* are removed.
*
* @private
* @override
* @returns {object} An JavaScript object width the keys width and height.
*/
getInnerSize() {
let size = super.getInnerSize();
if (this._closeButton) {
size.width += this.smallPadding + this._closeButton.width;
}
if (this._buttons) {
size.width = Math.max(size.width, this._buttons.x + this._buttons.width);
size.height += this.innerPadding + this._buttons.height;
}
return size
}
}
/**
* Class that represents a PixiJS Popup.
*
* @example
* // Create the popup
* const popup = new Popup({
* header: 'Goethe',
* content: 'Man kann die Erfahrung nicht früh genug machen, wie entbehrlich man in der Welt ist.'
* })
*
* // Add the popup to a DisplayObject
* app.scene.addChild(popup)
*
* @class
* @extends InteractivePopup
* @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/popup.html|DocTest}
*/
class Popup extends InteractivePopup {
/**
* Creates an instance of a Popup.
*
* @constructor
* @param {object} [opts] - An options object to specify to style and behaviour of the popup.
* @param {boolean} [opts.closeButton=false] - Should a close button be displayed on the upper right corner?
* @param {number} [opts.minWidth=0] - The minimum width of the popup.
* @param {number} [opts.minHeight=0] - The minimum height of the popup.
*/
constructor(opts = {}) {
opts = Object.assign({}, {
closeButton: false,
minWidth: 0,
minHeight: 0
}, opts);
super(opts);
}
}
/**
* Class that represents a PixiJS Modal.
*
* @example
* // Create the button and the modal when clicked
* const button = new Button({
* label: 'Show Modal',
* action: e => {
* const modal = new Modal({
* app: app,
* header: 'This is the header',
* content: 'This is the text.'
* })
* app.scene.addChild(modal)
* }
* })
*
* // Add the button to a DisplayObject
* app.scene.addChild(button)
*
* @class
* @extends PIXI.Container
* @extends InteractivePopup
* @see {@link http://pixijs.download/dev/docs/PIXI.Container.html|PIXI.Container}
* @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/modal.html|DocTest}
*/
class Modal extends PIXI.Container {
/**
* Creates an instance of a Modal.
*
* @constructor
* @param {object} [opts] - An options object to specify to style and behaviour of the modal.
* @param {number} [opts.id=auto generated] - The id of the modal.
* @param {PIXIApp} [opts.app=window.app] - The app where the modal belongs to.
* @param {number} [opts.backgroundFill=Theme.background] - The color of the background.
* @param {number} [opts.backgroundFillAlpha=0.6] - The opacity of the background.
* @param {boolean} [opts.closeOnBackground=true] - Should the modal be closed when the user clicks the
* background?
* @param {boolean} [opts.visible=true] - Is the modal initially visible (property visible)?
*/
constructor(opts = {}) {
super();
const theme = Theme.fromString(opts.theme);
this.theme = theme;
this.opts = Object.assign({}, {
id: PIXI.utils.uid(),
app: window.app,
backgroundFill: theme.background,
backgroundFillAlpha: .6,
closeOnBackground: true,
visible: true
}, opts);
this.id = this.opts.id;
this.background = null;
this.popup = null;
this.alpha = 0;
this.visible = this.opts.visible;
// setup
//-----------------
this.setup();
// layout
//-----------------
this.layout();
}
/**
* Creates children and instantiates everything.
*
* @private
* @return {Modal} A reference to the modal for chaining.
*/
setup() {
// interaction
//-----------------
this.interactive = true;
this.on('added', e => {
if (this.visible) {
this.show();
}
});
// background
//-----------------
let background = new PIXI.Graphics();
this.background = background;
this.addChild(this.background);
if (this.opts.closeOnBackground) {
background.interactive = true;
background.on('pointerup', e => {
this.hide();
});
}
// popup
//-----------------
const popupOpts = Object.assign({}, this.opts, {
visible: true,
onHidden: () => {
this.hide();
}
});
let popup = new InteractivePopup(popupOpts);
this.popup = popup;
this.addChild(popup);
popup.show();
return this
}
/**
* Should be called to refresh the layout of the modal. Can be used after resizing.
*
* @return {Modal} A reference to the modal for chaining.
*/
layout() {
const width = this.opts.app.size.width;
const height = this.opts.app.size.height;
// background
//-----------------
this.background.clear();
this.background.beginFill(this.opts.backgroundFill, this.opts.backgroundFillAlpha);
this.background.drawRect(0, 0, width, height);
this.background.endFill();
// position
this.popup.x = width / 2 - this.popup.width / 2;
this.popup.y = height / 2 - this.popup.height / 2;
return this
}
/**
* Shows the modal (sets his alpha values to 1).
*
* @return {Modal} A reference to the modal for chaining.
*/
show() {
TweenLite.to(this, this.theme.fast, {alpha: 1, onStart: () => this.visible = true});
return this
}
/**
* Hides the modal (sets his alpha values to 0).
*
* @return {Modal} A reference to the modal for chaining.
*/
hide() {
TweenLite.to(this, this.theme.fast, {alpha: 0, onComplete: () => this.visible = false});
return this
}
/**
* Sets or gets the header. The getter always returns a PIXI.Text object. The setter can receive
* a string or a PIXI.Text object.
*
* @member {string|PIXI.Text}
*/
get header() {
return this.popup.header
}
set header(value) {
this.opts.header = value;
this.background.destroy();
this.popup.destroy();
this.setup().layout();
}
/**
* Sets or gets the content. The getter always returns an PIXI.DisplayObject. The setter can receive
* a string or a PIXI.DisplayObject.
*
* @member {string|PIXI.DisplayObject}
*/
get content() {
return this.popup.content
}
set content(value) {
this.opts.content = value;
this.background.destroy();
this.popup.destroy();
this.setup().layout();
}
}
/**
* Class that represents a Message. A message pops up and disappears after a specific amount of time.
*
* @example
* // Create the PixiJS App
* const app = new PIXIApp({
* view: canvas,
* width: 900,
* height: 250
* }).setup().run()
*
* // Create a button
* let button = new Button({
* label: 'Click me',
* action: e => {
* const message = new Message({
* app: app,
* header: 'Header',
* content: 'Text.'
* })
* app.scene.addChild(message)
* }
* })
*
* // Add the button to the scene
* app.scene.addChild(button)
*
* @class
* @extends InteractivePopup
* @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/message.html|DocTest}
*/
class Message extends InteractivePopup {
/**
* Creates an instance of a Message.
*
* @constructor
* @param {object} [opts] - An options object to specify to style and behaviour of the message.
* @param {PIXIApp} [opts.app=window.app] - The PIXIApp where this message belongs to.
* @param {boolean} [opts.closeButton=false] - Should a close button be displayed in the upper right corner?
* @param {number} [opts.minWidth=280] - The minimum width of the message box. Automatically expands with the content.
* @param {number} [opts.minHeight=100] - The minimum height of the message box. Automatically expands with the content.
* @param {number} [opts.margin=Theme.margin] - The outer spacing of the message box.
* @param {string} [opts.align=right] - The horizontal position of the message box relative to the app. Possible
* values are left, center, right.
* @param {string} [opts.verticalAlign=top] - The vertical position of the message box relative to the app. Possible
* values are top, middle, bottom.
* @param {number} [opts.duration=5] - The duration in seconds when the message box should disappear.
* @param {boolean} [opts.autoClose=true] - Should the message box be closed automatically?
* @param {number} [opts.closeDuration=Theme.fast] - The duration in seconds of the closing of the message box.
*/
constructor(opts = {}) {
const theme = Theme.fromString(opts.theme);
opts = Object.assign({}, {
app: window.app,
closeButton: false,
minWidth: 280,
minHeight: 100,
margin: theme.margin,
align: 'right', // left, center, right
verticalAlign: 'top', // top, middle, bottom
duration: 5,
autoClose: true,
closeDuration: theme.fast
}, opts);
super(opts);
}
/**
* Relayouts the position of the message box.
*
* @return {Message} Returns the message box for chaining.
*/
layout() {
super.layout();
// horizontal
switch (this.opts.align) {
case 'left':
this.x = this.opts.margin;
break
case 'center':
this.x = (this.opts.app.size.width / 2) - (this.width / 2);
break
case 'right':
this.x = this.opts.app.size.width - this.opts.margin - this.width;
break
}
// vertical
switch (this.opts.verticalAlign) {
case 'top':
this.y = this.opts.margin;
break
case 'middle':
this.y = (this.opts.app.size.height / 2) - (this.height / 2);
break
case 'bottom':
this.y = this.opts.app.size.height - this.opts.margin - this.height;
break
}
}
/**
* Shows the message box.
*
* @private
*/
show() {
super.show();
if (this.opts.autoClose) {
window.setTimeout(() => {
this.hide();
}, this.opts.duration * 1000);
}
}
}
/* globals WebKitPoint */
/** Tests whether an object is empty
* @param {Object} obj - the object to be tested
* @return {boolean}
*/
function isEmpty(obj) {
// > isEmpty({})
// true
for (let i in obj) {
return false
}
return true
}
function lerp(start, stop, amt) {
return amt * (stop - start) + start
}
// Returns a function, that, as long as it continues to be invoked, will not
// be triggered. The function will be called after it stops being called for
// N milliseconds. If `immediate` is passed, trigger the function on the
// leading edge, instead of the trailing.
// Taken from: https://davidwalsh.name/essential-javascript-functions
function debounce(func, wait, immediate) {
let timeout;
return function () {
let context = this,
args = arguments;
let later = function () {
timeout = null;
if (!immediate) func.apply(context, args);
};
let callNow = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (callNow) func.apply(context, args);
}
}
/** Returns an id that is guaranteed to be unique within the livetime of the
* application
* @return {string}
*/
let _idGenerator = 0;
function getId() {
return 'id' + _idGenerator++
}
class Dates {
static create(fullYear, month, day) {
return new Date(Date.UTC(fullYear, month, day))
}
static daysInMonth(date) {
return new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate()
}
static startYearRange(date) {
return new Date(Date.UTC(date.getFullYear() - 1, 11, 31, 23, 59, 59, 999))
}
static endYearRange(date) {
return new Date(Date.UTC(date.getFullYear() + 1, 0, 1))
}
static prevYear(date, offset = 1) {
return this.create(date.getFullYear() - offset, 0, 1)
}
static nextYear(date, offset = 1) {
return this.create(date.getFullYear() + offset, 0, 1)
}
static nextMonth(date) {
return this.create(date.getFullYear(), date.getMonth() + 1, 1)
}
static nextDay(date) {
return this.create(
date.getFullYear(),
date.getMonth(),
date.getDate() + 1
)
}
static nextHour(date) {
// See http://stackoverflow.com/questions/1050720/adding-hours-to-javascript-date-object
return new Date(date.getTime() + 60 * 60 * 1000)
}
static nextMinute(date) {
// See above
return new Date(date.getTime() + 60 * 1000)
}
static nextSecond(date) {
// See above
return new Date(date.getTime() + 1000)
}
static nextMillisecond(date) {
// See above
return new Date(date.getTime() + 1)
}
static *iterYears(start, end) {
let date = this.create(start.getFullYear(), 0, 1);
while (date <= end) {
yield date;
date = this.nextYear(date);
}
yield date;
}
static *iterMonths(year, limit = 12) {
let month = 0;
while (month < limit) {
let date = this.create(year.getFullYear(), month, 1);
yield date;
month += 1;
}
}
static *iterMonthsOfYears(years) {
for (let year of years) {
for (let month of this.iterMonths(year)) {
yield month;
}
}
}
static *iterDays(month) {
let day = 1;
let limit = Dates.daysInMonth(month);
while (day <= limit) {
let date = this.create(month.getFullYear(), month.getMonth(), day);
yield date;
day += 1;
}
}
static *iterDaysOfMonths(months) {
for (let month of months) {
for (let day of this.iterDays(month)) {
yield day;
}
}
}
}
/* Color conversion functions */
class Colors {
// http://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb
static rgb2num(red, green, blue) {
let rgb = blue | (green << 8) | (red << 16);
return 0x000000 + rgb
}
static rgb2hex(red, green, blue) {
let rgb = blue | (green << 8) | (red << 16);
return '#' + (0x1000000 + rgb).toString(16).slice(1)
}
static hex2rgb(hex) {
// long version
let r = hex.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i);
if (r) {
return r.slice(1, 4).map(x => {
return parseInt(x, 16)
})
}
// short version
r = hex.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);
if (r) {
return r.slice(1, 4).map(x => {
return 0x11 * parseInt(x, 16)
})
}
return null
}
static rgb(r, g, b) {
return { r, g, b }
}
static string2hex(str) {
return parseInt('0x' + str.slice(1))
}
static lerp(rgb1, rgb2, amount) {
return {
r: Math.round(lerp(rgb1.r, rgb2.r, amount)),
g: Math.round(lerp(rgb1.g, rgb2.g, amount)),
b: Math.round(lerp(rgb1.b, rgb2.b, amount))
}
}
static get violet() {
return Colors.rgb2num(89, 34, 131)
}
static get steelblue() {
return Colors.rgb2num(0, 130, 164)
}
static get ochre() {
return Colors.rgb2num(181, 157, 0)
}
static get turquoise() {
return Colors.rgb2num(34, 164, 131)
}
static get eminence() {
return Colors.rgb2num(150, 60, 134)
}
static random() {
let r = Math.round(Math.random() * 255);
let g = Math.round(Math.random() * 255);
let b = Math.round(Math.random() * 255);
return Colors.rgb2num(r, g, b)
}
}
class Cycle extends Array {
constructor(...items) {
super();
for (let item of items) {
this.push(item);
}
this.index = 0;
}
next() {
if (this.index == this.length) {
this.index = 0;
}
return this[this.index++]
}
current() {
if (this.index === this.length) {
this.index = 0;
}
return this[this.index]
}
}
/** Static methods to compute 2D points with x and y coordinates.
*/
class Points {
static length(a) {
return Math.sqrt(a.x * a.x + a.y * a.y)
}
static normalize(p) {
let len = this.length(p);
return this.multiplyScalar(p, 1 / len)
}
static mean(a, b) {
return { x: (a.x + b.x) / 2, y: (a.y + b.y) / 2 }
}
static subtract(a, b) {
return { x: a.x - b.x, y: a.y - b.y }
}
static multiply(a, b) {
return { x: a.x * b.x, y: a.y * b.y }
}
static divide(a, b) {
return { x: a.x / b.x, y: a.y / b.y }
}
static multiplyScalar(a, b) {
return { x: a.x * b, y: a.y * b }
}
static add(a, b) {
return { x: a.x + b.x, y: a.y + b.y }
}
static negate(p) {
return { x: -p.x, y: -p.y }
}
static angle(p1, p2) {
return Math.atan2(p1.y - p2.y, p1.x - p2.x)
}
static normalizedAngle(p1, p2) {
return Angle.normalize(this.angle(p1, p2))
}
static normalized2Angle(p1, p2) {
return Angle.normalize2(this.angle(p1, p2))
}
static arc(p, alpha, radius) {
return {
x: p.x + radius * Math.cos(alpha),
y: p.y + radius * Math.sin(alpha)
}
}
static distance(a, b) {
let dx = a.x - b.x;
let dy = a.y - b.y;
return Math.sqrt(dx * dx + dy * dy)
}
static fromPageToNode(element, p) {
// if (window.webkitConvertPointFromPageToNode) {
// return window.webkitConvertPointFromPageToNode(element,
// new WebKitPoint(p.x, p.y))
// }
return window.convertPointFromPageToNode(element, p.x, p.y)
}
static fromNodeToPage(element, p) {
// if (window.webkitConvertPointFromNodeToPage) {
// return window.webkitConvertPointFromNodeToPage(element,
// new WebKitPoint(p.x, p.y))
// }
return window.convertPointFromNodeToPage(element, p.x, p.y)
}
}
/** Static methods to compute angles.
*/
class Angle {
static normalize(angle) {
let TAU = Math.PI * 2.0;
while (angle > Math.PI) {
angle -= TAU;
}
while (angle < -Math.PI) {
angle += TAU;
}
return angle
}
static normalize2(angle) {
let TAU = Math.PI * 2.0;
while (angle > TAU) {
angle -= TAU;
}
while (angle < 0) {
angle += TAU;
}
return angle
}
static normalizeDegree(angle) {
let full = 360.0;
while (angle > 180.0) {
angle -= full;
}
while (angle < -180.0) {
angle += full;
}
return angle
}
static normalizedDiff(a, b) {
return this.normalize(this.diff(a, b))
}
static normalized2Diff(a, b) {
return this.normalize2(this.diff(a, b))
}
static diff(a, b) {
return Math.atan2(Math.sin(a - b), Math.cos(a - b))
}
static degree2radian(degree) {
return Math.PI * degree / 180.0
}
static radian2degree(rad) {
return 180.0 / Math.PI * rad
}
}
class Elements$1 {
static setStyle(element, styles) {
for (let key in styles) {
element.style[key] = styles[key];
}
}
static addClass(element, cssClass) {
element.classList.add(cssClass);
}
static removeClass(element, cssClass) {
element.classList.remove(cssClass);
}
static toggleClass(element, cssClass) {
element.classList.toggle(cssClass);
}
static hasClass(element, cssClass) {
return element.classList.contains(cssClass)
}
}
class MapProxy {
/* This class is needed if we want to use the interaction classes
in Firefox 45.8 and modern Browsers.
A workaround for https://github.com/babel/babel/issues/2334
*/
constructor() {
this.map = new Map();
}
get size() {
return this.map.size
}
get(key) {
return this.map.get(key)
}
set(key, value) {
return this.map.set(key, value)
}
delete(key) {
return this.map.delete(key)
}
clear() {
return this.map.clear()
}
has(key) {
return this.map.has(key)
}
keys() {
return this.map.keys()
}
values() {
return this.map.values()
}
entries() {
return this.map.entries()
}
forEach(func) {
this.map.forEach(func);
}
}
/* Based om https://gist.github.com/cwleonard/e124d63238bda7a3cbfa */
class Polygon {
/*
* This is the Polygon constructor. All points are center-relative.
*/
constructor(center) {
this.points = new Array();
this.center = center;
}
/*
* Point x and y values should be relative to the center.
*/
addPoint(p) {
this.points.push(p);
}
/*
* Point x and y values should be absolute coordinates.
*/
addAbsolutePoint(p) {
this.points.push({ x: p.x - this.center.x, y: p.y - this.center.y });
}
/*
* Returns the number of sides. Equal to the number of vertices.
*/
getNumberOfSides() {
return this.points.length
}
/*
* rotate the polygon by a number of radians
*/
rotate(rads) {
for (let i = 0; i < this.points.length; i++) {
let x = this.points[i].x;
let y = this.points[i].y;
this.points[i].x = Math.cos(rads) * x - Math.sin(rads) * y;
this.points[i].y = Math.sin(rads) * x + Math.cos(rads) * y;
}
}
/*
* The draw function takes as a parameter a Context object from
* a Canvas element and draws the polygon on it.
*/
draw(context, { lineWidth = 2, stroke = '#000000', fill = null } = {}) {
context.beginPath();
context.moveTo(
this.points[0].x + this.center.x,
this.points[0].y + this.center.y
);
for (let i = 1; i < this.points.length; i++) {
context.lineTo(
this.points[i].x + this.center.x,
this.points[i].y + this.center.y
);
}
context.closePath();
context.lineWidth = lineWidth;
if (stroke) {
context.strokeStyle = stroke;
context.stroke();
}
if (fill) {
context.fillStyle = fill;
context.fill();
}
}
absolutePoints() {
let result = new Array();
for (let p of this.points) {
result.push(Points.add(p, this.center));
}
return result
}
flatAbsolutePoints() {
let result = new Array();
for (let p of this.points) {
let a = Points.add(p, this.center);
result.push(a.x);
result.push(a.y);
}
return result
}
/*
* This function returns true if the given point is inside the polygon,
* and false otherwise.
*/
containsPoint(pnt) {
let nvert = this.points.length;
let testx = pnt.x;
let testy = pnt.y;
let vertx = new Array();
for (let q = 0; q < this.points.length; q++) {
vertx.push(this.points[q].x + this.center.x);
}
let verty = new Array();
for (let w = 0; w < this.points.length; w++) {
verty.push(this.points[w].y + this.center.y);
}
let i,
j = 0;
let c = false;
for (i = 0, j = nvert - 1; i < nvert; j = i++) {
if (
verty[i] > testy != verty[j] > testy &&
testx <
(vertx[j] - vertx[i]) *
(testy - verty[i]) /
(verty[j] - verty[i]) +
vertx[i]
)
c = !c;
}
return c
}
multiplyScalar(scale) {
let center = Points.multiplyScalar(this.center, scale);
let clone = new Polygon(center);
for (let p of this.points) {
clone.addPoint(Points.multiplyScalar(p, scale));
}
return clone
}
/*
* To detect intersection with another Polygon object, this
* function uses the Separating Axis Theorem. It returns false
* if there is no intersection, or an object if there is. The object
* contains 2 fields, overlap and axis. Moving the polygon by overlap
* on axis will get the polygons out of intersection.
*/
intersectsWith(other) {
let axis = { x: 0, y: 0 };
let tmp, minA, maxA, minB, maxB;
let side, i;
let smallest = null;
let overlap = 99999999;
/* test polygon A's sides */
for (side = 0; side < this.getNumberOfSides(); side++) {
/* get the axis that we will project onto */
if (side == 0) {
axis.x =
this.points[this.getNumberOfSides() - 1].y -
this.points[0].y;
axis.y =
this.points[0].x -
this.points[this.getNumberOfSides() - 1].x;
} else {
axis.x = this.points[side - 1].y - this.points[side].y;
axis.y = this.points[side].x - this.points[side - 1].x;
}
/* normalize the axis */
tmp = Math.sqrt(axis.x * axis.x + axis.y * axis.y);
axis.x /= tmp;
axis.y /= tmp;
/* project polygon A onto axis to determine the min/max */
minA = maxA = this.points[0].x * axis.x + this.points[0].y * axis.y;
for (i = 1; i < this.getNumberOfSides(); i++) {
tmp = this.points[i].x * axis.x + this.points[i].y * axis.y;
if (tmp > maxA) maxA = tmp;
else if (tmp < minA) minA = tmp;
}
/* correct for offset */
tmp = this.center.x * axis.x + this.center.y * axis.y;
minA += tmp;
maxA += tmp;
/* project polygon B onto axis to determine the min/max */
minB = maxB =
other.points[0].x * axis.x + other.points[0].y * axis.y;
for (i = 1; i < other.getNumberOfSides(); i++) {
tmp = other.points[i].x * axis.x + other.points[i].y * axis.y;
if (tmp > maxB) maxB = tmp;
else if (tmp < minB) minB = tmp;
}
/* correct for offset */
tmp = other.center.x * axis.x + other.center.y * axis.y;
minB += tmp;
maxB += tmp;
/* test if lines intersect, if not, return false */
if (maxA < minB || minA > maxB) {
return false
} else {
let o = maxA > maxB ? maxB - minA : maxA - minB;
if (o < overlap) {
overlap = o;
smallest = { x: axis.x, y: axis.y };
}
}
}
/* test polygon B's sides */
for (side = 0; side < other.getNumberOfSides(); side++) {
/* get the axis that we will project onto */
if (side == 0) {
axis.x =
other.points[other.getNumberOfSides() - 1].y -
other.points[0].y;
axis.y =
other.points[0].x -
other.points[other.getNumberOfSides() - 1].x;
} else {
axis.x = other.points[side - 1].y - other.points[side].y;
axis.y = other.points[side].x - other.points[side - 1].x;
}
/* normalize the axis */
tmp = Math.sqrt(axis.x * axis.x + axis.y * axis.y);
axis.x /= tmp;
axis.y /= tmp;
/* project polygon A onto axis to determine the min/max */
minA = maxA = this.points[0].x * axis.x + this.points[0].y * axis.y;
for (i = 1; i < this.getNumberOfSides(); i++) {
tmp = this.points[i].x * axis.x + this.points[i].y * axis.y;
if (tmp > maxA) maxA = tmp;
else if (tmp < minA) minA = tmp;
}
/* correct for offset */
tmp = this.center.x * axis.x + this.center.y * axis.y;
minA += tmp;
maxA += tmp;
/* project polygon B onto axis to determine the min/max */
minB = maxB =
other.points[0].x * axis.x + other.points[0].y * axis.y;
for (i = 1; i < other.getNumberOfSides(); i++) {
tmp = other.points[i].x * axis.x + other.points[i].y * axis.y;
if (tmp > maxB) maxB = tmp;
else if (tmp < minB) minB = tmp;
}
/* correct for offset */
tmp = other.center.x * axis.x + other.center.y * axis.y;
minB += tmp;
maxB += tmp;
/* test if lines intersect, if not, return false */
if (maxA < minB || minA > maxB) {
return false
} else {
let o = maxA > maxB ? maxB - minA : maxA - minB;
if (o < overlap) {
overlap = o;
smallest = { x: axis.x, y: axis.y };
}
}
}
return { overlap: overlap + 0.001, axis: smallest }
}
static fromPoints(points) {
let min = { x: Number.MAX_VALUE, y: Number.MAX_VALUE };
let max = { x: Number.MIN_VALUE, y: Number.MIN_VALUE };
for (let p of points) {
min.x = Math.min(p.x, min.x);
max.x = Math.max(p.x, max.x);
min.y = Math.min(p.y, min.y);
max.y = Math.max(p.y, max.y);
}
let center = Points.mean(min, max);
let polygon = new Polygon(center);
for (let p of points) {
polygon.addAbsolutePoint(p);
}
return polygon
}
}
/* global apollo, subscriptions, gql */
/**
* A special InteractionManager for fullscreen apps, which may
* go beyond the limits of WebGL drawing buffers. On Safari and Chrome
* the drawing buffers are limited to 4096 in width (Safari) or 4096x4096
* in total buffer size (Chrome). The original InteractionManager.mapPositionToPoint
* does not work with these extreme sizes which mainly occur if large
* retina displays (>= 4K) are used with devicePixelRatio > 1.
*
* @private
* @class
* @extends PIXI.interaction.InteractionManager
* @see {@link http://pixijs.download/dev/docs/PIXI.interaction.InteractionManager.html|PIXI.interaction.InteractionManager}
* @see {@link https://stackoverflow.com/questions/29710696/webgl-drawing-buffer-size-does-not-equal-canvas-size}
*/
class FullscreenInteractionManager extends PIXI.interaction.InteractionManager {
mapPositionToPoint(point, x, y) {
let resolution = this.renderer.resolution;
let extendWidth = 1.0;
let extendHeight = 1.0;
let dy = 0;
let canvas = this.renderer.view;
let context = canvas.getContext('webgl');
if (context.drawingBufferWidth < canvas.width ||
context.drawingBufferHeight < canvas.height) {
extendWidth = context.drawingBufferWidth / canvas.width;
extendHeight = context.drawingBufferHeight / canvas.height;
//dx = wantedWidth - context.drawingBufferWidth
dy = (canvas.height - context.drawingBufferHeight) / resolution;
}
x *= extendWidth;
y *= extendHeight;
super.mapPositionToPoint(point, x, y + dy);
}
}
/**
* The class PixiApp extends the class PIXI.Application
* by several functions and makes meaningful pre-assumptions.
*
* @example
* // Create the app
* const app = new PIXIApp({
* view: canvas,
* width: 450,
* height: 150,
* fpsLogging: true,
* theme: 'light',
* transparent: false
* }).setup().run()
*
* @class
* @extends PIXI.Application
* @see {@link http://pixijs.download/dev/docs/PIXI.Application.html|PIXI.Application}
*/
class PIXIApp extends PIXI.Application {
/**
* Creates an instance of a PixiApp.
*
* @constructor
* @param {object} [opts={}] - An options object. The following options can be set:
* @param {number} [opts.width] - The width of the renderer. If no set, the application will run in fullscreen.
* @param {number} [opts.height] - The height of the renderer. If no set, the application will run in fullscreen.
* @param {HTMLElement} [opts.view] - The canvas HTML element. If not set, a render-element is added inside the body.
* @param {boolean} [opts.transparent=true] - Should the render view be transparent?
* @param {boolean} [opts.antialias=true] - Sets antialias (only applicable in chrome at the moment).
* @param {number} [opts.resolution=window.devicePixelRatio | 1] - The resolution / device pixel ratio of the renderer, retina would be 2.
* @param {boolean} [opts.autoResize=true] - Should the canvas-element be resized automatically if the resolution was set?
* @param {number} [opts.backgroundColor=0x282828] - The color of the background.
* @param {string|Theme} [opts.theme=dark] - The name of the theme (dark, light, red) or a Theme object to use for styling.
* @param {boolean} [opts.fpsLogging=false] - If set to true, the current frames per second are displayed in the upper left corner.
* @param {object} [opts.progress={}] - Can be used to add options to the progress bar. See class Progress for more informations.
* @param {boolean} [opts.forceCanvas=false] - Prevents selection of WebGL renderer, even if such is present.
* @param {boolean} [opts.roundPixels=true] - Align PIXI.DisplayObject coordinates to screen resolution.
* @param {boolean} [opts.monkeyPatchMapping=true] - Monkey patch for canvas fullscreen support on large displays.
* @param {boolean} [opts.adaptive=true] - Adds Graphics adaptive calculation of quadratic curve and arc subdivision.
*/
constructor({
width = null, height = null, view = null,
transparent = true, backgroundColor = 0x282828, theme = 'dark',
antialias = true, resolution = window.devicePixelRatio || 1, autoResize = true,
fpsLogging = false, progress = {}, forceCanvas = false, roundPixels = true, monkeyPatchMapping = true, adaptive = true,
graphql = false }) {
const fullScreen = !width || !height;
if (fullScreen) {
width = window.innerWidth;
height = window.innerHeight;
}
super({
view: view,
width: width,
height: height,
transparent: transparent,
antialias: antialias,
resolution: resolution,
autoResize: autoResize,
backgroundColor: backgroundColor,
roundPixels: roundPixels,
forceCanvas: forceCanvas
});
this.width = width;
this.height = height;
this.theme = Theme.fromString(theme);
this.fpsLogging = fpsLogging;
this.progressOpts = progress;
this.fullScreen = fullScreen;
this.orient = null;
this.originalMapPositionToPoint = null;
this.monkeyPatchMapping = monkeyPatchMapping;
PIXI.Graphics.CURVES.adaptive = adaptive;
this.graphql = graphql;
if (fullScreen || autoResize) {
console.log('App is in fullScreen mode or autoResize mode');
const resizeDebounced = debounce(event => this.resize(event), 50);
window.addEventListener('resize', resizeDebounced);
document.body.addEventListener('orientationchange', this.checkOrientation.bind(this));
}
if (monkeyPatchMapping) {
console.log('Using monkey patched coordinate mapping');
// Pluggin the specializtion does not work. Monkey patching does
// this.renderer.plugins.interaction = new FullscreenInteractionManager(this.renderer)
this.monkeyPatchPixiMapping();
}
}
/**
* Extra setup method to construct complex scenes, etc...
* Overwrite this method if you need additonal views and components.
*
* @return {PIXIApp} A reference to the PIXIApp for chaining.
*/
setup() {
this.scene = this.sceneFactory();
this.stage.addChild(this.scene);
// fpsLogging
if (this.fpsLogging) {
this.addFpsDisplay();
}
// GraphQL
if (this.graphql && typeof apollo !== 'undefined') {
const networkInterface = apollo.createNetworkInterface({
uri: '/graphql'
});
const wsClient = new subscriptions.SubscriptionClient(`wss://${location.hostname}/subscriptions`, {
reconnect: true,
connectionParams: {}
});
const networkInterfaceWithSubscriptions = subscriptions.addGraphQLSubscriptions(
networkInterface,
wsClient
);
this.apolloClient = new apollo.ApolloClient({
networkInterface: networkInterfaceWithSubscriptions
});
}
// progress
this._progress = new Progress(Object.assign({ theme: this.theme }, this.progressOpts, { app: this }));
this._progress.visible = false;
this.stage.addChild(this._progress);
return this
}
/**
* Tests whether the width is larger than the height of the application.
*
* @return {boolean} Returns true if app is in landscape mode.
*/
orientation() {
return this.width > this.height
}
/**
* Checks orientation and adapts view size if necessary. Implements a
* handler for the orientationchange event.
*
* @param {event=} - orientationchange event
*/
checkOrientation(event) {
var value = this.orientation();
if (value != this.orient) {
setTimeout(100, function () {
this.orientationChanged(true);
}.bind(this));
this.orient = value;
}
}
/**
* Called if checkOrientation detects an orientation change event.
*
* @param {boolean=} [force=false] - Called if checkOrientation detects an orientation change event.
*/
orientationChanged(force = false) {
if (this.expandRenderer() || force) {
this.layout();
}
}
/**
* Called after a resize. Empty method but can be overwritten to
* adapt their layout to the new app size.
*
* @param {number} [width] - The width of the app.
* @param {number} [height] - The height of the app.
*/
layout(width, height) {
}
/**
* Draws the display tree of the app. Typically this can be delegated
* to the layout method.
*
*/
draw() {
this.layout(this.width, this.height);
}
/*
* Run the application. Override this method with everything
* that is needed to maintain your App, e.g. setup calls, main loops, etc.
*
*/
run() {
return this
}
/*
* Overwrite this factory method if your application needs a special
* scene object.
*
* @returns {PIXI.Container} - A new PIXI Container for use as a scene.
*/
sceneFactory() {
return new PIXI.Container()
}
/**
* Adds the display of the frames per second to the renderer in the upper left corner.
*
* @return {PIXIApp} - Returns the PIXIApp for chaining.
*/
addFpsDisplay() {
const fpsDisplay = new FpsDisplay(this);
this.stage.addChild(fpsDisplay);
return this
}
/**
* Returns the size of the renderer as an object with the keys width and height.
*
* @readonly
* @member {object}
*/
get size() {
return { width: this.width, height: this.height }
}
/**
* Returns the center of the renderer as an object with the keys x and y.
*
* @readonly
* @member {object}
*/
get center() {
return { x: this.width / 2, y: this.height / 2 }
}
/**
* Resizes the renderer to fit into the window or given width and height.
*
* @param {object} [event] - The event.
* @param {object=} [opts={}] - The event.
* @param {number} [opts.width=window.innerWidth] - The width of the app to resize to.
* @param {number} [opts.height=window.innerHeight] - The height of the app to resize to.
* @return {PIXIApp} - Returns the PIXIApp for chaining.
*/
resize(event, { width = window.innerWidth, height = window.innerHeight } = {}) {
this.width = width;
this.height = height;
this.expandRenderer();
this.layout(width, height);
//console.log("App.resize", width, height, window.innerWidth, window.innerHeight )
// if (this.scene) {
// console.log("gl.drawingBufferWidth", this.renderer.view.getContext('webgl').drawingBufferWidth)
// console.log("scene", this.scene.scale, this.renderer, this.renderer.autoResize, this.renderer.resolution)
// }
return this
}
/**
* @todo Write the documentation.
*
* @private
*/
monkeyPatchPixiMapping() {
if (this.originalMapPositionToPoint === null) {
let interactionManager = this.renderer.plugins.interaction;
this.originalMapPositionToPoint = interactionManager.mapPositionToPoint;
interactionManager.mapPositionToPoint = (point, x, y) => {
return this.fixedMapPositionToPoint(point, x, y)
};
}
}
/**
* In some browsers the canvas is distorted if the screen resolution and
* overall size of the canvas exceeds the internal limits (e.g. 4096 x 4096 pixels).
* To compensate these distortions we need to fix the mapping to the actual
* drawing buffer coordinates.
* @private
* @param {any} local
* @param {number} x
* @param {number} y
* @return {} interactionManager.mapPositionToPoint
*/
fixedMapPositionToPoint(local, x, y) {
let resolution = this.renderer.resolution;
let interactionManager = this.renderer.plugins.interaction;
let extendWidth = 1.0;
let extendHeight = 1.0;
let dy = 0;
let canvas = this.renderer.view;
let context = canvas.getContext('webgl');
if (context !== null && (context.drawingBufferWidth < canvas.width ||
context.drawingBufferHeight < canvas.height)) {
extendWidth = context.drawingBufferWidth / canvas.width;
extendHeight = context.drawingBufferHeight / canvas.height;
//dx = wantedWidth - context.drawingBufferWidth
dy = (canvas.height - context.drawingBufferHeight) / resolution;
}
x *= extendWidth;
y *= extendHeight;
return this.originalMapPositionToPoint.call(interactionManager, local, x, y + dy)
}
/**
* Expand the renderer step-wise on resize.
*
* @param {number} [expand] - The amount of additional space for the renderer [px].
* @return {boolean} true if the renderer was resized.
*/
expandRenderer(expand = 256) {
let renderer = this.renderer;
let resolution = this.renderer.resolution;
let ww = this.width;
let hh = this.height;
let sw = this.screen.width;
let sh = this.screen.height;
if (ww > sw || hh > sh) {
//console.log('App.expandRenderer')
renderer.resize(ww + expand, hh + expand);
return true
}
renderer.resize(ww, hh);
return false
}
/**
* Set the loading progress of the application. If called for the first time, display the progress bar.
*
* @param {number} [value] - Should be a value between 0 and 100. If 100, the progress bar will disappear.
* @return {PIXIApp|Progress} The PixiApp object for chaining or the Progress object when the method was
* called without a parameter.
*/
progress(value) {
if (typeof value === 'undefined') {
return this._progress
}
this._progress.visible = true;
this._progress.progress = value;
return this
}
/**
* Opens a new Modal object binded to this app.
*
* @param {object} [opts] - An options object for the Modal object.
* @return {Modal} Returns the Modal object.
*/
modal(opts = {}) {
let modal = new Modal(Object.assign({ theme: this.theme }, opts, { app: this }));
this.scene.addChild(modal);
return modal
}
/**
* Opens a new Message object binded to this app.
*
* @param {object} [opts] - An options object for the Message object.
* @return {Message} Returns the Message object.
*/
message(opts = {}) {
let message = new Message(Object.assign({ theme: this.theme }, opts, { app: this }));
this.scene.addChild(message);
return message
}
/**
* Loads sprites, e.g. images into the PIXI TextureCache.
*
* @param {string|string[]} resources - A String or an Array of urls to the images to load.
* @param {function} [loaded] - A callback which is executed after all resources has been loaded.
* Receives one paramter, a Map of sprites where the key is the path of the image which was
* loaded and the value is the PIXI.Sprite object.
* @param {object} [opts] - An options object for more specific parameters.
* @param {boolean} [opts.resolutionDependent=true] - Should the sprites be loaded dependent of the
* renderer resolution?
* @param {boolean} [opts.progress=false] - Should a progress bar display the loading status?
* @return {PIXIApp} The PIXIApp object for chaining.
*/
loadSprites(resources, loaded = null, { resolutionDependent = true, progress = false } = {}) {
this.loadTextures(resources, textures => {
let sprites = new Map();
for (let [key, texture] of textures) {
sprites.set(key, new PIXI.Sprite(texture));
}
if (loaded) {
loaded.call(this, sprites);
}
}, { resolutionDependent, progress });
return this
}
/**
* Loads textures, e.g. images into the PIXI TextureCache.
*
* @param {string|string[]} resources - A String or an Array of urls to the images to load.
* @param {function} [loaded] - A callback which is executed after all resources has been loaded.
* Receives one paramter, a Map of textures where the key is the path of the image which was
* loaded and the value is the PIXI.Texture object.
* @param {object} [opts] - An options object for more specific parameters.
* @param {boolean} [opts.resolutionDependent=true] - Should the textures be loaded dependent of the
* renderer resolution?
* @param {boolean} [opts.progress=false] - Should a progress bar display the loading status?
* @return {PIXIApp} The PIXIApp object for chaining.
*/
loadTextures(resources, loaded = null, { resolutionDependent = true, progress = false } = {}) {
if (!Array.isArray(resources)) {
resources = [resources];
}
const loader = this.loader;
for (let resource of resources) {
if (!loader.resources[resource]) {
if (resolutionDependent) {
let resolution = Math.round(this.renderer.resolution);
switch (resolution) {
case 2:
loader.add(resource, resource.replace(/\.([^.]*)$/, '@2x.$1'));
break
case 3:
loader.add(resource, resource.replace(/\.([^.]*)$/, '@3x.$1'));
break
default:
loader.add(resource);
break
}
} else {
loader.add(resource);
}
}
}
if (progress) {
loader.on('progress', e => {
this.progress(e.progress);
});
}
loader.load((loader, resources) => {
const textures = new Map();
for (let key in resources) {
textures.set(key, resources[key].texture);
}
if (loaded) {
loaded.call(this, textures);
}
});
return this
}
/**
* Queries the GraphQL endpoint.
*
* @param {string} [query] - The GraphQL query string.
* @param {object} [opts={}] - An options object. The following options can be set:
* http://dev.apollodata.com/core/apollo-client-api.html#ApolloClient.query
* @return {Promise} Returns a Promise which is either resolved with the resulting data or
* rejected with an error.
*/
query(query, opts = {}) {
if (typeof query === 'string') {
opts = Object.assign({}, opts, { query });
} else {
opts = Object.assign({}, query);
}
opts.query = opts.query.trim();
if (!opts.query.startsWith('query')) {
if (opts.query.startsWith('{')) {
opts.query = `query ${opts.query}`;
} else {
opts.query = `query {${opts.query}}`;
}
}
opts.query = gql(opts.query);
return this.apolloClient.query(opts)
}
/**
* Mutate the GraphQL endpoint.
*
* @param {string} [mutation] - The GraphQL mutation string.
* @param {object} [opts={}] - An options object. The following options can be set:
* http://dev.apollodata.com/core/apollo-client-api.html#ApolloClient.mutate
* @return {Promise} Returns a Promise which is either resolved with the resulting data or
* rejected with an error.
*/
mutate(mutation, opts = {}) {
if (typeof mutation === 'string') {
opts = Object.assign({}, opts, { mutation });
} else {
opts = Object.assign({}, mutation);
}
opts.mutation = opts.mutation.trim();
if (!opts.mutation.startsWith('mutation')) {
if (opts.mutation.startsWith('{')) {
opts.mutation = `mutation ${opts.mutation}`;
} else {
opts.mutation = `mutation {${opts.mutation}}`;
}
}
opts.mutation = gql(opts.mutation);
return this.apolloClient.mutate(opts)
}
/**
* Subscribe the GraphQL endpoint.
*
* @param {string} [subscription] - The GraphQL subscription.
* @param {object} [opts={}] - An options object. The following options can be set:
* http://dev.apollodata.com/core/apollo-client-api.html#ApolloClient.query
* @return {Promise} Returns a Promise which is either resolved with the resulting data or
* rejected with an error.
*/
subscribe(subscription, opts = {}) {
if (typeof subscription === 'string') {
opts = Object.assign({}, opts, { subscription });
} else {
opts = Object.assign({}, subscription);
}
opts.subscription = opts.subscription.trim();
if (!opts.subscription.startsWith('subscription')) {
if (opts.subscription.startsWith('{')) {
opts.subscription = `subscription ${opts.subscription}`;
} else {
opts.subscription = `subscription {${opts.subscription}}`;
}
}
opts.query = gql(opts.subscription);
delete opts.subscription;
return this.apolloClient.subscribe(opts)
}
/**
* Supports the page as a global coordinate system and converts browser page coordinates
* to local DisplayObject coordinates.
*
* @param {DisplayObject} displayObject - The PIXI displayObject.
* @param {number} x - The x coordinate.
* @param {number} y - The y coordinate.
*
* @return {PIXI.Point} Returns a PIXI.Point.
*/
convertPointFromPageToNode(displayObject, x, y) {
let resolution = this.renderer.resolution;
console.log("resolution", resolution);
let pixiGlobal = window.convertPointFromPageToNode(app.view, x, y);
pixiGlobal.x /= resolution;
pixiGlobal.y /= resolution;
return displayObject.toLocal(new PIXI.Point(pixiGlobal.x, pixiGlobal.y))
}
/**
* Supports the page as a global coordinate system and converts local DisplayObject coordinates
* to browser page coordinates.
*
* @param {DisplayObject} displayObject - The PIXI displayObject.
* @param {number} x - The x coordinate.
* @param {number} y - The y coordinate.
*
* @return {Point} Returns a DOM Point.
*/
convertPointFromNodeToPage(displayObject, x, y) {
let resolution = this.renderer.resolution;
let pixiGlobal = displayObject.toGlobal(new PIXI.Point(x, y));
pixiGlobal.x *= resolution;
pixiGlobal.y *= resolution;
// console.log("app.convertPointFromNodeToPage", pixiGlobal)
return window.convertPointFromNodeToPage(app.view, pixiGlobal.x, pixiGlobal.y)
}
}
/**
* The class fpsdisplay shows in the upper left corner
* of the renderer the current image refresh rate.
*
* @private
* @class
* @extends PIXI.Graphics
* @see {@link http://pixijs.download/dev/docs/PIXI.Graphics.html|PIXI.Graphics}
*/
class FpsDisplay extends PIXI.Graphics {
/**
* Creates an instance of a FpsDisplay.
*
* @constructor
* @param {PIXIApp} app - The PIXIApp where the frames per second should be displayed.
*/
constructor(app) {
super();
this.app = app;
this.lineStyle(3, 0x434f4f, 1)
.beginFill(0x434f4f, .6)
.drawRoundedRect(0, 0, 68, 32, 5)
.endFill()
.position.set(20, 20);
this.text = new PIXI.Text(this.fps, new PIXI.TextStyle({
fontFamily: 'Arial',
fontSize: 14,
fontWeight: 'bold',
fill: '#f6f6f6',
stroke: '#434f4f',
strokeThickness: 3
}));
this.text.position.set(6, 6);
this.addChild(this.text);
this.refreshFps();
window.setInterval(this.refreshFps.bind(this), 1000);
}
/**
* Refreshes fps numer.
*
* @return {PIXIApp} Returns the PIXIApp object for chaining.
*/
refreshFps() {
this.text.text = `${(this.app.ticker.FPS).toFixed(1)} fps`;
return this
}
}
/**
* A Gaussian blur filter. With this filter, you can blur an area of a PIXI.DisplayObject. This cannot
* be done with the PIXI.filters.BlurFilter (when you use the PIXI.filters.BlurFilter with
* an filter area, all pixels outside of the area are not displayed). Attention: The area of
* the filter is always in global scope, NOT relative to the PIXI.DisplayObject the filter
* is assigned to!
*
* @example
* // Create the app
* const app = new PIXIApp({
* view: canvas,
* width: 480,
* height: 270,
* transparent: false
* }).setup().run()
*
* // Add a video sprite
* const sprite = new PIXI.Sprite(PIXI.Texture.fromVideo("assets/blurfilter.mp4"))
* sprite.width = app.size.width
* sprite.height = app.size.height
* app.scene.addChild(sprite)
*
* // Create the filter and assign it to the scene
* const blurFilter = new BlurFilter(new PIXI.Rectangle(20, 20, 80, 60))
* app.scene.filters = [blurFilter]
*
* @class
* @extends PIXI.Filter
* @param {PIXI.Rectangle|PIXI.Circle|PIXI.DisplayObject} shape The area where the blur effect should be applied to. Relative to the
* canvas, NOT relative to the PIXI.DisplayObject where the blur effect is assigned to!
* @param {number} [blur=50] The strength of the blur.
*/
class BlurFilter extends PIXI.Filter {
constructor(shape, blur = 50) {
super();
const normalized = this.normalize(shape);
this.tiltShiftXFilter = new TiltShiftXFilter(normalized, blur);
this.tiltShiftYFilter = new TiltShiftYFilter(normalized, blur);
}
apply(filterManager, input, output) {
let renderTarget = filterManager.getRenderTarget(true);
this.tiltShiftXFilter.apply(filterManager, input, renderTarget);
this.tiltShiftYFilter.apply(filterManager, renderTarget, output);
filterManager.returnRenderTarget(renderTarget);
}
/**
* The strength of the blur.
*
* @member {number}
*/
get blur() {
return this.tiltShiftXFilter.blur
}
set blur(value) {
this.tiltShiftXFilter.blur = this.tiltShiftYFilter.blur = value;
}
/**
* The blur shape.
*
* @member {PIXI.Rectangle|PIXI.Circle|PIXI.DisplayObject}
*/
get shape() {
return this.tiltShiftXFilter.shape
}
set shape(value) {
this.tiltShiftXFilter.shape = this.tiltShiftYFilter.shape = this.normalize(value);
}
/**
*
* @private
* @param {PIXI.Rectangle|PIXI.Circle|PIXI.DisplayObject} value
* @returns {Object}
*/
normalize(value) {
let shape = null;
if (value instanceof PIXI.Circle) {
shape = {type: 'circle', x: value.x, y: value.y, r: value.radius};
} else if (value instanceof PIXI.Rectangle) {
shape = {type: 'rectangle', x: value.x, y: value.y, width: value.width, height: value.height};
} else {
const bounds = value.getBounds();
shape = {type: 'rectangle', x: bounds.x, y: bounds.y, width: bounds.width, height: bounds.height};
}
return shape
}
}
/**
* A TiltShiftAxisFilter.
*
* @class
* @extends PIXI.Filter
* @abstract
* @private
*/
class TiltShiftAxisFilter extends PIXI.Filter {
constructor(shape, blur){
const vertex = `
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
varying vec2 vTextureCoord;
void main(void) {
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = aTextureCoord;
}
`;
const fragment = `
varying vec2 vTextureCoord;
uniform vec4 filterArea;
uniform sampler2D uSampler;
uniform int shape;
uniform vec4 rectangle;
uniform vec3 circle;
uniform float blur;
uniform vec2 delta;
uniform vec2 texSize;
float random(vec3 scale, float seed) {
return fract(sin(dot(gl_FragCoord.xyz + seed, scale)) * 43758.5453 + seed);
}
void main(void) {
// textureCoord to pixelCoord
vec2 pixelCoord = vTextureCoord * filterArea.xy - vec2(4.0, 4.0); // FIXME: There's a shift of 4 * 4 pixels, don't know why...
bool inside = false;
if (shape == 1) {
inside = distance(pixelCoord, circle.xy) <= circle.z;
} else if (shape == 2) {
inside = pixelCoord.x >= rectangle.x && pixelCoord.x <= rectangle.z && pixelCoord.y >= rectangle.y && pixelCoord.y <= rectangle.w;
}
if (inside) {
vec4 color = vec4(0.0);
float total = 0.0;
float offset = random(vec3(12.9898, 78.233, 151.7182), 0.0);
for (float t = -30.0; t <= 30.0; t++) {
float percent = (t + offset - 0.5) / 30.0;
float weight = 1.0 - abs(percent);
vec4 sample = texture2D(uSampler, vTextureCoord + delta / texSize * percent * blur);
sample.rgb *= sample.a;
color += sample * weight;
total += weight;
}
gl_FragColor = color / total;
gl_FragColor.rgb /= gl_FragColor.a + 0.00001;
} else {
gl_FragColor = texture2D(uSampler, vec2(vTextureCoord.s, vTextureCoord.t));
}
}
`;
super(vertex, fragment);
if (shape.type === 'circle') {
this.uniforms.shape = 1;
this.uniforms.circle = [shape.x, shape.y, shape.r];
} else {
this.uniforms.shape = 2;
this.uniforms.rectangle = [shape.x, shape.y, shape.x + shape.width, shape.y + shape.height];
}
this.uniforms.blur = blur;
this.uniforms.delta = new PIXI.Point(0, 0);
this.uniforms.texSize = new PIXI.Point(480, 270);
this.updateDelta();
}
/**
* The strength of the blur.
*
* @member {number}
* @memberof PIXI.filters.TiltShiftAxisFilter#
*/
get blur() {
return this.uniforms.blur
}
set blur(value) {
this.uniforms.blur = value;
}
/**
* The blur shape.
*
* @member {PIXI.Rectangle}
* @memberof PIXI.filters.TiltShiftAxisFilter#
*/
get shape() {
if (this.uniforms.shape === 1) {
const circle = this.uniforms.circle;
return new PIXI.Circle(circle[0], circle[1], circle[2])
} else {
const rectangle = this.uniforms.rectangle;
return new PIXI.Rectangle(rectangle[0], rectangle[1], rectangle[2], rectangle[3])
}
}
set shape(value) {
if (value.type === 'circle') {
this.uniforms.shape = 1;
this.uniforms.circle = [value.x, value.y, value.r];
} else {
this.uniforms.shape = 2;
this.uniforms.rectangle = [value.x, value.y, value.x + value.width, value.y + value.height];
}
}
}
/**
* A TiltShiftXFilter.
*
* @class
* @extends PIXI.TiltShiftAxisFilter
* @private
*/
class TiltShiftXFilter extends TiltShiftAxisFilter {
/**
* Updates the filter delta values.
*/
updateDelta() {
this.uniforms.delta.x = 0.1;
this.uniforms.delta.y = 0;
}
}
/**
* A TiltShiftYFilter.
*
* @class
* @extends PIXI.TiltShiftAxisFilter
* @private
*/
class TiltShiftYFilter extends TiltShiftAxisFilter {
/**
* Updates the filter delta values.
*/
updateDelta() {
this.uniforms.delta.x = 0;
this.uniforms.delta.y = 0.1;
}
}
// In order to test this interface implementation run jsc interface.js
class Interface {
// Abstract interface that should be extended in interface subclasses.
// By convention all interfaces should start with an upper 'I'
static implementationError(klass) {
let interfaceKeys = Reflect.ownKeys(this.prototype);
let classKeys = Reflect.ownKeys(klass.prototype);
for(let key of interfaceKeys) {
let interfaceDesc = this.prototype[key];
let classDesc = klass.prototype[key];
if (typeof(classDesc) == 'undefined')
return 'Missing ' + key
}
return null
}
static implementedBy(klass) {
// In the first step only checks whether the methods of this
// interface are all implemented by the given class
let error = this.implementationError(klass);
return error == null
}
// TODO: Specify optional methods
// static optionalMethods() {
// return [this.onMouseWheel]
// }
}
/* globals Hammer, propagating */
/** Interaction patterns
See interaction.html for explanation
*/
class IInteractionTarget extends Interface {
capture(event) {
return typeof true
}
onStart(event, interaction) { }
onMove(event, interaction) { }
onEnd(event, interaction) { }
onMouseWheel(event) { }
}
class IInteractionMapperTarget extends Interface {
capture(event) {
return typeof true
}
findTarget(event, local, global) {
return IInteractionTarget
}
}
class PointMap extends MapProxy {
// Collects touch points, mouse coordinates, etc. as key value pairs.
// Keys are pointer and touch ids, the special "mouse" key.
// Values are points, i.e. all objects with numeric x and y properties.
constructor(points = {}) {
super();
for (let key in points) {
this.set(key, points[key]);
}
}
toString() {
let points = [];
for (let key of this.keys()) {
let value = this.get(key);
points.push(`${key}:{x:${value.x}, y:${value.y}}`);
}
let attrs = points.join(', ');
return `[PointMap ${attrs}]`
}
clone() {
let result = new PointMap();
for (let key of this.keys()) {
let value = this.get(key);
result.set(key, { x: value.x, y: value.y });
}
return result
}
keyOf(value) {
for (let key of this.keys()) {
let p = this.get(key);
if (p.x == value.x && p.y == value.y) {
return key
}
}
return null
}
firstKey() {
for (let key of this.keys()) {
return key
}
return null
}
first() {
for (let key of this.keys()) {
return this.get(key)
}
return null
}
farthests() {
if (this.size == 0) {
return null
}
let pairs = [];
for (let key of this.keys()) {
let p = this.get(key);
p.key = key;
for (let k of this.keys()) {
let q = this.get(k);
q.key = k;
pairs.push([p, q]);
}
}
let sorted = pairs.sort((a, b) => {
return Points.distance(b[0], b[1]) - Points.distance(a[0], a[1])
});
return sorted[0]
}
mean() {
if (this.size == 0) {
return null
}
let x = 0.0,
y = 0.0;
for (let p of this.values()) {
x += p.x;
y += p.y;
}
return { x: x / this.size, y: y / this.size }
}
}
class InteractionDelta {
constructor(x, y, zoom, rotate, about) {
this.x = x;
this.y = y;
this.zoom = zoom;
this.rotate = rotate;
this.about = about;
}
toString() {
let values = [];
for (let key of Object.keys(this)) {
let value = this[key];
if (key == 'about') {
values.push(`${key}:{x:${value.x}, y:${value.y}}`);
} else {
values.push(`${key}:${value}`);
}
}
let attrs = values.join(', ');
return `[InteractionDelta ${attrs}]`
}
}
class InteractionPoints {
constructor(parent = null) {
this.parent = parent;
this.current = new PointMap();
this.previous = new PointMap();
this.start = new PointMap();
this.ended = new PointMap();
this.timestamps = new Map();
}
moved(key) {
let current = this.current.get(key);
let previous = this.previous.get(key);
return Points.subtract(current, previous)
}
move() {
let current = this.current.mean();
let previous = this.previous.mean();
return Points.subtract(current, previous)
}
/**
* Computes the delta between previous and current angles. Corrects
* value that are larger than 45°
* @param {*} a
* @param {*} b
* @returns delta
*/
diffAngle(a, b) {
let alpha = Math.atan2(Math.sin(a - b), Math.cos(a - b));
if (Math.abs(alpha) > Math.PI / 4) {
alpha -= Math.PI;
}
return alpha
}
/**
* Computes the delta between interaction points at t and t+1.
*
* @returns InteractionDelta
* @memberof InteractionPoints
*/
delta() {
let csize = this.current.size;
let psize = this.previous.size;
if (csize >= 2 && csize == psize) {
// Reduce to the two farthests points
let current = this.current.farthests();
let c1 = current[0];
let c2 = current[1];
let p1 = this.previous.get(c1.key);
let p2 = this.previous.get(c2.key);
//let p1 = previous[0]
//let p2 = previous[1]
let d1 = Points.subtract(c1, p1);
let d2 = Points.subtract(c2, p2);
let cm = Points.mean(c1, c2);
//let pm = Points.mean(p1, p2)
// UO: Using the mean lead to jumps between time slices with 3 and 2 fingers
// We use the mean of deltas instead
let delta = Points.mean(d1, d2); //Points.subtract(cm, pm)
let zoom = 1.0;
let distance1 = Points.distance(p1, p2);
let distance2 = Points.distance(c1, c2);
if (distance1 != 0 && distance2 != 0) {
zoom = distance2 / distance1;
}
let currentAngle = Points.angle(c1, c2);
let previousAngle = Points.angle(p1, p2);
let alpha = this.diffAngle(currentAngle, previousAngle);
return new InteractionDelta(delta.x, delta.y, zoom, alpha, cm)
} else if (csize == 1 && psize == 1 && this.current.firstKey() == this.previous.firstKey()) {
// We need to ensure that the keys are the same
let current = this.current.first();
let previous = this.previous.first();
let delta = Points.subtract(current, previous);
return new InteractionDelta(delta.x, delta.y, 1.0, 0.0, current)
}
return null
}
started(key, point) {
this.current.set(key, point);
this.start.set(key, point);
this.previous.set(key, point);
this.timestamps.set(key, performance.now());
}
update(key, point) {
// Returns true iff the key is new
this.current.set(key, point);
if (!this.start.has(key)) {
this.start.set(key, point);
this.previous.set(key, point);
this.timestamps.set(key, performance.now());
return true
}
return false
}
updatePrevious() {
for (let key of this.current.keys()) {
this.previous.set(key, this.current.get(key));
}
}
stop(key, point) {
if (this.current.has(key)) {
this.current.delete(key);
this.previous.delete(key);
this.ended.set(key, point);
}
}
finish(key, point) {
this.current.delete(key);
this.previous.delete(key);
this.start.delete(key);
this.timestamps.delete(key);
this.ended.delete(key);
}
isFinished() {
return this.current.size == 0
}
isNoLongerTwoFinger() {
return this.previous.size > 1 && this.current.size < 2
}
isTap(key) {
return this.parent.isTap(key)
}
isDoubleTap(key) {
return this.parent.isDoubleTap(key)
}
isLongPress(key) {
return this.parent.isLongPress(key)
}
}
class Interaction extends InteractionPoints {
constructor(tapDistance = 10, tapDuration = 250.0, longPressTime = 500.0) {
super();
this.tapDistance = tapDistance;
this.tapCounts = new Map();
this.tapPositions = new Map();
this.tapTimestamps = new Map();
this.tapDuration = tapDuration;
this.longPressTime = longPressTime;
this.targets = new Map();
this.subInteractions = new Map(); // target:Object : InteractionPoints
}
stop(key, point) {
super.stop(key, point);
for (let points of this.subInteractions.values()) {
points.stop(key, point);
}
}
addTarget(key, target) {
this.targets.set(key, target);
this.subInteractions.set(target, new InteractionPoints(this));
}
removeTarget(key) {
let target = this.targets.get(key);
this.targets.delete(key);
// Only remove target if no keys are refering to the target
let remove = true;
for (let t of this.targets.values()) {
if (target === t) {
remove = false;
}
}
if (remove) {
this.subInteractions.delete(target);
}
}
finish(key, point) {
super.finish(key, point);
this.removeTarget(key);
}
mapInteraction(points, aspects, mappingFunc) {
// Map centrally registered points to target interactions
// Returns an array of [target, updated subInteraction] pairs
let result = new Map();
for (let key in points) {
if (this.targets.has(key)) {
let target = this.targets.get(key);
if (this.subInteractions.has(target)) {
let interaction = this.subInteractions.get(target);
for (let aspect of aspects) {
let pointMap = this[aspect];
let point = pointMap.get(key);
let mapped = mappingFunc(point, target);
interaction[aspect].set(key, mapped);
}
result.set(target, interaction);
}
}
}
return result
}
registerTap(key, point) {
if (this.tapCounts.has(key)) {
let count = this.tapCounts.get(key);
this.tapCounts.set(key, count+1);
}
else {
this.tapCounts.set(key, 1);
}
this.tapPositions.set(key, point);
this.tapTimestamps.set(key, performance.now());
}
unregisterTap(key) {
this.tapCounts.delete(key);
this.tapPositions.delete(key);
this.tapTimestamps.delete(key);
}
isTap(key) {
let ended = this.ended.get(key);
let start = this.start.get(key);
if (
start &&
ended &&
Points.distance(ended, start) < this.tapDistance
) {
let t1 = this.timestamps.get(key);
let tookLong = performance.now() > t1 + this.longPressTime;
if (tookLong) {
return false
}
return true
}
return false
}
isDoubleTap(key) {
let ended = this.ended.get(key);
if (this.tapCounts.has(key) && this.tapCounts.get(key) > 2) {
this.unregisterTap(key);
}
if (this.tapPositions.has(key)) {
let pos = this.tapPositions.get(key);
if (Points.distance(ended, pos) > this.tapDistance) {
this.unregisterTap(key);
}
}
if (this.tapTimestamps.has(key) && performance.now() > this.tapTimestamps.get(key) + this.tapDuration) {
//console.log("tap too long")
this.unregisterTap(key);
}
let result = false;
if (this.isTap(key)) {
this.registerTap(key, ended);
result = this.tapCounts.get(key) == 2;
}
else {
this.unregisterTap(key);
}
//console.log("isDoubleTap", this.tapCounts.get(key), result)
return result
}
isAnyTap() {
for (let key of this.ended.keys()) {
if (this.isTap(key)) return true
}
return false
}
isLongPress(key) {
let ended = this.ended.get(key);
let start = this.start.get(key);
if (
start &&
ended &&
Points.distance(ended, start) < this.tapDistance
) {
let t1 = this.timestamps.get(key);
let tookLong = performance.now() > t1 + this.longPressTime;
if (tookLong) {
return true
}
return false
}
return false
}
isAnyLongPress() {
for (let key of this.ended.keys()) {
if (this.isLongPress(key)) return true
}
return false
}
isStylus(key) {
return key === 'stylus'
}
}
/**
* This class implements the main delegate functionality: All necessary event handlers are registered for the
* given element. Uses PointerEvents if available or TouchEvents on iOS. The fallback is on mouse events.
* Collects the events if the interaction target captures the start event (i.e. declares that
* the target wants the start event as well as all following move and end evcents.)
*
* @export
* @class InteractionDelegate
*/
class InteractionDelegate {
// Long press: http://stackoverflow.com/questions/1930895/how-long-is-the-event-onlongpress-in-the-android
// Stylus support: https://w3c.github.io/touch-events/
/**
* Creates an instance of InteractionDelegate.
* @param {any} element
* @param {any} target
* @param {any} [{ mouseWheelElement = null, useCapture = true, capturePointerEvents = true, debug = false }={}]
* @memberof InteractionDelegate
*/
constructor(
element,
target,
{ mouseWheelElement = null, useCapture = true, capturePointerEvents = true, cancelOnWindowOut = true, debug = false } = {}
) {
this.debug = debug;
this.interaction = new Interaction();
this.element = element;
this.mouseWheelElement = mouseWheelElement || element;
this.target = target;
this.useCapture = useCapture;
this.capturePointerEvents = capturePointerEvents;
this.cancelOnWindowOut = cancelOnWindowOut;
this.setupInteraction();
}
setupInteraction() {
if (this.debug) {
let error = this.targetInterface.implementationError(
this.target.constructor
);
if (error != null) {
throw new Error('Expected IInteractionTarget: ' + error)
}
}
this.setupTouchInteraction();
this.setupMouseWheelInteraction();
}
get targetInterface() {
return IInteractionTarget
}
setupTouchInteraction() {
let element = this.element;
let useCapture = this.useCapture;
if (window.PointerEvent) {
if (this.debug) console.log('Pointer API' + window.PointerEvent);
element.addEventListener(
'pointerdown',
e => {
if (this.debug) console.log('pointerdown', e.pointerId);
if (this.capture(e)) {
if (this.capturePointerEvents) {
try {
element.setPointerCapture(e.pointerId);
} catch (e) { }
}
this.onStart(e);
}
},
useCapture
);
element.addEventListener(
'pointermove',
e => {
if (this.debug) console.log('pointermove', e.pointerId);
if (
e.pointerType == 'touch' ||
(e.pointerType == 'mouse' && Events$1.isMouseDown(e))
) {
// this.capture(e) &&
if (this.debug)
console.log('pointermove captured', e.pointerId);
this.onMove(e);
}
},
useCapture
);
element.addEventListener(
'pointerup',
e => {
if (this.debug) console.log('pointerup');
this.onEnd(e);
if (this.capturePointerEvents) {
try {
element.releasePointerCapture(e.pointerId);
} catch (e) { }
}
},
useCapture
);
element.addEventListener(
'pointercancel',
e => {
if (this.debug) console.log('pointercancel');
this.onEnd(e);
if (this.capturePointerEvents)
element.releasePointerCapture(e.pointerId);
},
useCapture
);
if (!this.capturePointerEvents) {
element.addEventListener(
'pointerleave',
e => {
if (this.debug) console.log('pointerleave');
if (e.target == element) this.onEnd(e);
},
useCapture
);
}
if (!this.capturePointerEvents) {
element.addEventListener(
'pointerout',
e => {
if (this.debug) console.log('pointerout');
if (e.target == element) this.onEnd(e);
},
useCapture
);
}
if (this.cancelOnWindowOut) {
window.addEventListener(
'pointerout',
e => {
if (e.target == element) {
this.onEnd(e);
}
},
useCapture);
}
} else if (window.TouchEvent) {
if (this.debug) console.log('Touch API');
element.addEventListener(
'touchstart',
e => {
if (this.debug)
console.log('touchstart', this.touchPoints(e));
if (this.capture(e)) {
for (let touch of e.changedTouches) {
this.onStart(touch);
}
}
},
useCapture
);
element.addEventListener(
'touchmove',
e => {
if (this.debug)
console.log('touchmove', this.touchPoints(e), e);
for (let touch of e.changedTouches) {
this.onMove(touch);
}
for (let touch of e.targetTouches) {
this.onMove(touch);
}
},
useCapture
);
element.addEventListener(
'touchend',
e => {
if (this.debug) console.log('touchend', this.touchPoints(e));
for (let touch of e.changedTouches) {
this.onEnd(touch);
}
},
useCapture
);
element.addEventListener(
'touchcancel',
e => {
if (this.debug)
console.log(
'touchcancel',
e.targetTouches.length,
e.changedTouches.length
);
for (let touch of e.changedTouches) {
this.onEnd(touch);
}
},
useCapture
);
} else {
if (this.debug) console.log('Mouse API');
element.addEventListener(
'mousedown',
e => {
if (this.debug) console.log('mousedown', e);
if (this.capture(e)) {
this.onStart(e);
}
},
useCapture
);
element.addEventListener(
'mousemove',
e => {
// Dow we only use move events if the mouse is down?
// HOver effects have to be implemented by other means
// && Events.isMouseDown(e))
if (Events$1.isMouseDown(e)) {
if (this.debug)
console.log('mousemove', e);
this.onMove(e);
}
},
useCapture
);
element.addEventListener(
'mouseup',
e => {
if (this.debug) console.log('mouseup', e);
this.onEnd(e);
},
true
);
if (!this.capturePointerEvents) {
element.addEventListener(
'mouseout',
e => {
if (e.target == element) {
this.onEnd(e);
console.warn("Shouldn't happen: mouseout ends interaction");
}
},
useCapture
);
}
if (this.cancelOnWindowOut) {
window.addEventListener(
'mouseout',
e => {
if (e.target == element) {
this.onEnd(e);
}
},
useCapture);
}
}
}
isDescendant(parent, child) {
if (parent == child) return true
let node = child.parentNode;
while (node != null) {
if (node == parent) {
return true
}
node = node.parentNode;
}
return false
}
touchPoints(event) {
let result = [];
for (let touch of event.changedTouches) {
result.push(this.extractPoint(touch));
}
return result
}
setupMouseWheelInteraction() {
this.mouseWheelElement.addEventListener(
'mousewheel',
this.onMouseWheel.bind(this),
true
);
this.mouseWheelElement.addEventListener(
'DOMMouseScroll',
this.onMouseWheel.bind(this),
true
);
}
onMouseWheel(event) {
if (this.capture(event) && this.target.onMouseWheel) {
this.target.onMouseWheel(event);
}
}
onStart(event) {
let extracted = this.extractPoint(event);
this.startInteraction(event, extracted);
this.target.onStart(event, this.interaction);
}
onMove(event) {
let extracted = this.extractPoint(event, 'all');
this.updateInteraction(event, extracted);
this.target.onMove(event, this.interaction);
this.interaction.updatePrevious();
}
onEnd(event) {
let extracted = this.extractPoint(event, 'changedTouches');
this.endInteraction(event, extracted);
this.target.onEnd(event, this.interaction);
this.finishInteraction(event, extracted);
}
/**
* Asks the target whether the event should be captured
*
* @param {any} event
* @returns {bool}
* @memberof InteractionDelegate
*/
capture(event) {
if (Events$1.isCaptured(event)) {
return false
}
let captured = this.target.capture(event);
return captured
}
getPosition(event) {
return { x: event.clientX, y: event.clientY }
}
extractPoint(event, touchEventKey = 'all') {
// 'targetTouches'
let result = {};
switch (event.constructor.name) {
case 'MouseEvent':
let buttons = event.buttons || event.which;
if (buttons) result['mouse'] = this.getPosition(event);
break
case 'PointerEvent':
result[event.pointerId.toString()] = this.getPosition(event);
break
case 'Touch':
let id =
event.touchType === 'stylus'
? 'stylus'
: event.identifier.toString();
result[id] = this.getPosition(event);
break
// case 'TouchEvent':
// // Needs to be observed: Perhaps changedTouches are all we need. If so
// // we can remove the touchEventKey default parameter
// if (touchEventKey == 'all') {
// for(let t of event.targetTouches) {
// result[t.identifier.toString()] = this.getPosition(t)
// }
// for(let t of event.changedTouches) {
// result[t.identifier.toString()] = this.getPosition(t)
// }
// }
// else {
// for(let t of event.changedTouches) {
// result[t.identifier.toString()] = this.getPosition(t)
// }
// }
// break
default:
break
}
return result
}
interactionStarted(event, key, point) {
// Callback: can be overwritten
}
interactionEnded(event, key, point) {
// Callback: can be overwritten
}
interactionFinished(event, key, point) { }
startInteraction(event, extracted) {
for (let key in extracted) {
let point = extracted[key];
this.interaction.started(key, point);
this.interactionStarted(event, key, point);
}
}
updateInteraction(event, extracted) {
for (let key in extracted) {
let point = extracted[key];
let updated = this.interaction.update(key, point);
if (updated) {
console.warn("new pointer in updateInteraction shouldn't happen");
this.interactionStarted(event, key, point);
}
}
}
endInteraction(event, ended) {
for (let key in ended) {
let point = ended[key];
this.interaction.stop(key, point);
this.interactionEnded(event, key, point);
}
}
finishInteraction(event, ended) {
for (let key in ended) {
let point = ended[key];
this.interaction.finish(key, point);
this.interactionFinished(event, key, point);
}
}
}
/**
* A special InteractionDelegate that maps events to specific parts of
* the interaction target. The InteractionTarget must implement a findTarget
* method that returns an object implementing the IInteractionTarget interface.
*
* If the InteractionTarget also implements a mapPositionToPoint method this
* is used to map the points to the local coordinate space of the the target.
*
* This makes it easier to lookup elements and relate events to local
* positions.
*
* @export
* @class InteractionMapper
* @extends {InteractionDelegate}
*/
class InteractionMapper$1 extends InteractionDelegate {
constructor(
element,
target,
{ tapDistance = 10, longPressTime = 500.0, useCapture = true, mouseWheelElement = null } = {}
) {
super(element, target, { tapDistance, useCapture, longPressTime, mouseWheelElement });
}
get targetInterface() {
return IInteractionMapperTarget
}
mapPositionToPoint(point, element = null) {
if (this.target.mapPositionToPoint) {
return this.target.mapPositionToPoint(point, element)
}
return point
}
interactionStarted(event, key, point) {
if (this.target.findTarget) {
let local = this.mapPositionToPoint(point);
let found = this.target.findTarget(event, local, point);
if (found != null) {
this.interaction.addTarget(key, found);
}
}
}
onMouseWheel(event) {
if (this.capture(event)) {
if (this.target.findTarget) {
let point = this.getPosition(event);
let local = this.mapPositionToPoint(point);
let found = this.target.findTarget(event, local, point);
if (found != null && found.onMouseWheel) {
found.onMouseWheel(event);
return
}
}
if (this.target.onMouseWheel) {
this.target.onMouseWheel(event);
}
}
}
onStart(event) {
let extracted = this.extractPoint(event);
this.startInteraction(event, extracted);
let mapped = this.interaction.mapInteraction(
extracted,
['current', 'start'],
this.mapPositionToPoint.bind(this)
);
for (let [target, interaction] of mapped.entries()) {
target.onStart(event, interaction);
}
}
onMove(event) {
let extracted = this.extractPoint(event, 'all');
this.updateInteraction(event, extracted);
let mapped = this.interaction.mapInteraction(
extracted,
['current', 'previous'],
this.mapPositionToPoint.bind(this)
);
for (let [target, interaction] of mapped.entries()) {
target.onMove(event, interaction);
interaction.updatePrevious();
}
this.interaction.updatePrevious();
}
onEnd(event) {
let extracted = this.extractPoint(event, 'changedTouches');
this.endInteraction(event, extracted);
let mapped = this.interaction.mapInteraction(
extracted,
['ended'],
this.mapPositionToPoint.bind(this)
);
for (let [target, interaction] of mapped.entries()) {
target.onEnd(event, interaction);
}
this.finishInteraction(event, extracted);
}
/**
*
*
* @static
* @param {string|array} types - An event type, an array of event types or event types seperated by a space sign. The following
* events are possible:
* pan, panstart, panmove, panend, pancancel, panleft, panright, panup, pandown
* pinch, pinchstart, pinchmove, pinchend, pinchcancel, pinchin, pinchout
* press, pressup
* rotate, rotatestart, rotatemove, rotateend, rotatecancel
* swipe, swipeleft, swiperight, swipeup, swipedown
* tap
* @param {HTMLElement|HTMLElement[]} elements - An HTML element or an array of HTML elements.
* @param {function} [cb] - The callback. A function which is executed after the event occurs. Receives the event object as the
* first paramter
* @param {object} [opts] - An options object. See the hammer documentation for more details.
*/
static on(types, elements, cb, opts = {}) {
opts = Object.assign({}, {
}, opts);
if (typeof Hammer === 'undefined') {
console.error('Hammer.js not found!');
return this
}
// convert to array
types = Array.isArray(types) ? types : types.split(/\s/);
if (elements instanceof NodeList || elements instanceof HTMLCollection) {
elements = Array.from(elements);
}
elements = Array.isArray(elements) ? elements : [elements];
for (let i = 0; i < types.length; i++) {
const type = types[i].toLowerCase();
// list of hammer events
const useHammer = /^(tap|doubletap|press|pan|swipe|pinch|rotate).*$/.test(type);
// if it is a hammer event
if (useHammer) {
for (let j = 0; j < elements.length; j++) {
// if(elements[j].tagName == "svg") return false;
let hammer = new Hammer(elements[j], opts);
if (window.propagating !== 'undefined') {
hammer = propagating(hammer);
}
// recognizers
if (type.startsWith('pan')) {
hammer.get('pan').set(Object.assign({ direction: Hammer.DIRECTION_ALL }, opts));
} else if (type.startsWith('pinch')) {
hammer.get('pinch').set(Object.assign({ enable: true }, opts));
} else if (type.startsWith('press')) {
hammer.get('press').set(opts);
} else if (type.startsWith('rotate')) {
hammer.get('rotate').set(Object.assign({ enable: true }, opts));
} else if (type.startsWith('swipe')) {
hammer.get('swipe').set(Object.assign({ direction: Hammer.DIRECTION_ALL }, opts));
} else if (type.startsWith('tap')) {
hammer.get('tap').set(opts);
}
hammer.on(type, event => {
cb(event);
});
}
} else {
for (let j = 0; j < elements.length; j++) {
Hammer.on(elements[j], type, event => {
cb(event);
});
}
}
}
return this
}
}
window.InteractionMapper = InteractionMapper$1;
/** Report capabilities with guaranteed values.
*/
class Capabilities {
/** Returns the browser userAgent.
@return {string}
*/
static get userAgent() {
return navigator.userAgent || 'Unknown Agent'
}
/** Tests whether the app is running on a mobile device.
Implemented as a readonly attribute.
@return {boolean}
*/
static get isMobile() {
return (/Mobi/.test(navigator.userAgent))
}
/** Tests whether the app is running on a iOS device.
Implemented as a readonly attribute.
@return {boolean}
*/
static get isIOS() {
return (/iPad|iPhone|iPod/.test(navigator.userAgent)) && !window.MSStream
}
/** Tests whether the app is running in a Safari environment.
See https://stackoverflow.com/questions/7944460/detect-safari-browser
Implemented as a readonly attribute.
@return {boolean}
*/
static get isSafari() {
return navigator.vendor && navigator.vendor.indexOf('Apple') > -1 && navigator.userAgent && !navigator.userAgent.match('CriOS')
}
/**
* Distincts if the app is running inside electron or not.
*
* source: https://discuss.atom.io/t/detect-electron-or-web-page-running/33180/3
*/
static get isElectron() {
return typeof process != 'undefined' && process.versions && process.versions.electron !== undefined
}
/** Returns the display resolution. Necessary for retina displays.
@return {number}
*/
static get devicePixelRatio() {
return window.devicePixelRatio || 1
}
/** Returns true if the device is a multi-touch table. This method is currently not universal usable and not sure!
@return {boolean}
*/
static get isMultiTouchTable() {
return Capabilities.devicePixelRatio > 2 && Capabilities.isMobile === false && /Windows/i.test(Capabilities.userAgent)
}
/** Returns true if mouse events are supported
@return {boolean}
*/
static supportsMouseEvents() {
return typeof(window.MouseEvent) != 'undefined'
}
/** Returns true if touch events are supported
@return {boolean}
*/
static supportsTouchEvents() {
return typeof(window.TouchEvent) != 'undefined'
}
/** Returns true if pointer events are supported
@return {boolean}
*/
static supportsPointerEvents() {
return typeof(window.PointerEvent) != 'undefined'
}
/** Returns true if DOM templates are supported
@return {boolean}
*/
static supportsTemplate() {
return 'content' in document.createElement('template');
}
}
/** Basic tests for Capabilities.
*/
class CapabilitiesTests {
static testConfirm() {
let bool = confirm('Please confirm');
document.getElementById('demo').innerHTML = (bool) ? 'Confirmed' : 'Not confirmed';
}
static testPrompt() {
let person = prompt('Please enter your name', 'Harry Potter');
if (person != null) {
demo.innerHTML =
'Hello ' + person + '! How are you today?';
}
}
static testUserAgent() {
let agent = 'User-agent: ' + Capabilities.userAgent;
user_agent.innerHTML = agent;
}
static testDevicePixelRatio() {
let value = 'Device Pixel Ratio: ' + Capabilities.devicePixelRatio;
device_pixel_ratio.innerHTML = value;
}
static testMultiTouchTable() {
let value = 'Is the device a multi-touch table? ' + Capabilities.isMultiTouchTable;
multi_touch_table.innerHTML = value;
}
static testSupportedEvents() {
let events = [];
if (Capabilities.supportsMouseEvents()) {
events.push('MouseEvents');
}
if (Capabilities.supportsTouchEvents()) {
events.push('TouchEvents');
}
if (Capabilities.supportsPointerEvents()) {
events.push('PointerEvents');
}
supported_events.innerHTML = 'Supported Events: ' + events.join(', ');
}
static testAll() {
this.testUserAgent();
this.testDevicePixelRatio();
this.testMultiTouchTable();
this.testSupportedEvents();
}
}
/* Optional global variables, needed in DocTests. */
window.Capabilities = Capabilities;
window.CapabilitiesTests = CapabilitiesTests;
/**
* A base class for scatter specific events.
*
* @constructor
* @param {name} String - The name of the event
* @param {target} Object - The target of the event
*/
class BaseEvent {
constructor(name, target) {
this.name = name;
this.target = target;
}
}
// Event types
const START = 'onStart';
const UPDATE = 'onUpdate';
const END = 'onEnd';
/**
* A scatter event that describes how the scatter has changed.
*
* @constructor
* @param {target} Object - The target scatter of the event
* @param {optional} Object - Optional parameter
*/
class ScatterEvent extends BaseEvent {
constructor(
target,
{
translate = { x: 0, y: 0 },
scale = null,
rotate = 0,
about = null,
fast = false,
type = null
} = {}
) {
super('scatterTransformed', { target: target });
this.translate = translate;
this.scale = scale;
this.rotate = rotate;
this.about = about;
this.fast = fast;
this.type = type;
}
toString() {
return (
"Event('scatterTransformed', scale: " +
this.scale +
' about: ' +
this.about.x +
', ' +
this.about.y +
')'
)
}
}
/**
* A scatter resize event that describes how the scatter has changed.
*
* @constructor
* @param {target} Object - The target scatter of the event
* @param {optional} Object - Optional parameter
*/
class ResizeEvent extends BaseEvent {
constructor(target, { width = 0, height = 0 } = {}) {
super('scatterResized', { width: width, height: height });
this.width = width;
this.height = height;
}
toString() {
return (
'Event(scatterResized width: ' +
this.width +
'height: ' +
this.height +
')'
)
}
}
/**
* A abstract base class that implements the throwable behavior of a scatter
* object.
*
* @constructor
*/
class Throwable {
constructor({
movableX = true,
movableY = true,
throwVisibility = 44,
throwDamping = 0.95,
autoThrow = true,
onThrowFinished = null
} = {}) {
this.movableX = movableX;
this.movableY = movableY;
this.throwVisibility = throwVisibility;
this.throwDamping = throwDamping;
this.autoThrow = autoThrow;
this.velocities = [];
this.velocity = null;
this.timestamp = null;
this.onThrowFinished = onThrowFinished;
//console.log("onThrowFinished", onThrowFinished)
}
observeVelocity() {
this.lastframe = performance.now();
}
addVelocity(delta, buffer = 5) {
let t = performance.now();
let dt = t - this.lastframe;
this.lastframe = t;
if (dt > 0) {
// Avoid division by zero errors later on
let velocity = { t: t, dt: dt, dx: delta.x, dy: delta.y };
this.velocities.push(velocity);
while (this.velocities.length > buffer) {
this.velocities.shift();
}
}
}
meanVelocity(milliseconds = 30) {
this.addVelocity({ x: 0, y: 0 });
let sum = { x: 0, y: 0 };
let count = 0;
let t = 0;
for (let i = this.velocities.length - 1; i > 0; i--) {
let v = this.velocities[i];
t += v.dt;
let nv = { x: v.dx / v.dt, y: v.dy / v.dt };
sum = Points.add(sum, nv);
count += 1;
if (t > milliseconds) {
break
}
}
if (count === 0) return sum // empty vector
return Points.multiplyScalar(sum, 1 / count)
}
killAnimation() {
this.velocity = null;
this.velocities = [];
}
startThrow() {
this.velocity = this.meanVelocity();
if (this.velocity != null) {
// Call next velocity to ansure that specializations
// that use keepOnStage are called
this.velocity = this.nextVelocity(this.velocity);
if (this.autoThrow) this.animateThrow(performance.now());
} else {
this.onDragComplete();
}
}
animateThrow(time) {
if (this.velocity != null) {
let t = performance.now();
let dt = t - this.lastframe;
this.lastframe = t;
// console.log("animateThrow", dt)
let next = this.nextVelocity(this.velocity);
let prevLength = Points.length(this.velocity);
let nextLength = Points.length(next);
if (nextLength > prevLength) {
let factor = nextLength / prevLength;
next = Points.multiplyScalar(next, 1 / factor);
console.log('Prevent acceleration', factor, this.velocity, next);
}
this.velocity = next;
let d = Points.multiplyScalar(this.velocity, dt);
this._move(d);
this.onDragUpdate(d);
if (dt == 0 || this.needsAnimation()) {
requestAnimationFrame(this.animateThrow.bind(this));
return
} else {
if (this.isOutside()) {
requestAnimationFrame(this.animateThrow.bind(this));
return
}
}
}
this.onDragComplete();
if (this.onThrowFinished != null) {
this.onThrowFinished();
}
}
needsAnimation() {
if (this.velocity == null) {
return false
}
return Points.length(this.velocity) > 0.01
}
nextVelocity(velocity) {
// Must be overwritten: computes the changed velocity. Implement
// damping, collison detection, etc. here
let next = Points.multiplyScalar(velocity, this.throwDamping);
return {
x: (this.movableX) ? next.x : 0,
y: (this.movableY) ? next.y : 0
}
}
_move(delta) {
// Overwrite if necessary
}
onDragComplete() {
// Overwrite if necessary
}
onDragUpdate(delta) {
// Overwrite if necessary
}
}
class AbstractScatter extends Throwable {
constructor({
minScale = 0.1,
maxScale = 1.0,
startScale = 1.0,
autoBringToFront = true,
autoThrow = true,
translatable = true,
scalable = true,
rotatable = true,
resizable = false,
movableX = true,
movableY = true,
throwVisibility = 44,
throwDamping = 0.95,
overdoScaling = 1,
mouseZoomFactor = 1.1,
rotationDegrees = null,
rotation = null,
onTransform = null,
interactive = true,
onClose = null,
onThrowFinished = null,
scaleAutoClose = false,
scaleCloseThreshold = 0.10,
scaleCloseBuffer = 0.05
} = {}) {
if (rotationDegrees != null && rotation != null) {
throw new Error('Use rotationDegrees or rotation but not both')
} else if (rotation != null) {
rotationDegrees = Angle.radian2degree(rotation);
} else if (rotationDegrees == null) {
rotationDegrees = 0;
}
super({
movableX,
movableY,
throwVisibility,
throwDamping,
autoThrow,
onThrowFinished
});
/**
* Closes the card when the minScale is reached and the
* card is released. Card can be saved by scaling it up again.
*/
this.scaleAutoClose = scaleAutoClose;
this.scaleCloseThreshold = scaleCloseThreshold;
this.scaleCloseBuffer = scaleCloseBuffer;
this.scaleAutoCloseTimeout = null;
this.interactive = interactive;
this.startRotationDegrees = rotationDegrees;
this.startScale = startScale; // Needed to reset object
this.minScale = minScale;
this.maxScale = maxScale;
this.overdoScaling = overdoScaling;
this.translatable = translatable;
if (!translatable) {
this.movableX = false;
this.movableY = false;
}
this.scalable = scalable;
this.rotatable = rotatable;
this.resizable = resizable;
this.mouseZoomFactor = mouseZoomFactor;
this.autoBringToFront = autoBringToFront;
this.dragging = false;
this.onTransform = onTransform != null ? [onTransform] : null;
this.onClose = onClose != null ? [onClose] : null;
}
addCloseEventCallback(callback) {
if (this.onClose == null) {
this.onClose = [];
}
this.onClose.push(callback);
}
addTransformEventCallback(callback) {
if (this.onTransform == null) {
this.onTransform = [];
}
this.onTransform.push(callback);
}
startGesture(interaction) {
this.bringToFront();
this.killAnimation();
this.observeVelocity();
return true
}
close() {
if (this.onClose) {
this.onClose.forEach(callback => callback(this));
}
}
gesture(interaction) {
let delta = interaction.delta();
//console.log("gesture", delta)
if (delta != null) {
this.addVelocity(delta);
this.transform(delta, delta.zoom, delta.rotate, delta.about);
if (delta.zoom != 1) this.interactionAnchor = delta.about;
}
}
get polygon() {
let w2 = this.width * this.scale / 2;
let h2 = this.height * this.scale / 2;
let center = this.center;
let polygon = new Polygon(center);
polygon.addPoint({ x: -w2, y: -h2 });
polygon.addPoint({ x: w2, y: -h2 });
polygon.addPoint({ x: w2, y: h2 });
polygon.addPoint({ x: -w2, y: h2 });
polygon.rotate(this.rotation);
return polygon
}
isOutside() {
let stagePolygon = this.containerPolygon;
if (stagePolygon == null)
return false
let polygon = this.polygon;
if (polygon == null)
return false
let result = stagePolygon.intersectsWith(polygon);
return result === false || result.overlap < this.throwVisibility
}
recenter() {
// Return a small vector that guarantees that the scatter is moving
// towards the center of the stage
let center = this.center;
let target = this.container.center;
let delta = Points.subtract(target, center);
return Points.normalize(delta)
}
nextVelocity(velocity) {
return this.keepOnStage(velocity)
}
bouncing() {
// Implements the bouncing behavior of the scatter. Moves the scatter
// to the center of the stage if the scatter is outside the stage or
// not within the limits of the throwVisibility.
let stagePolygon = this.containerPolygon;
let polygon = this.polygon;
let result = stagePolygon.intersectsWith(polygon);
if (result === false || result.overlap < this.throwVisibility) {
let cv = this.recenter();
let recentered = false;
while (result === false || result.overlap < this.throwVisibility) {
polygon.center.x += cv.x;
polygon.center.y += cv.y;
this._move(cv);
result = stagePolygon.intersectsWith(polygon);
recentered = true;
}
return recentered
}
return false
}
keepOnStage(velocity, collision = 0.5) {
let stagePolygon = this.containerPolygon;
if (!stagePolygon) return
let polygon = this.polygon;
let bounced = this.bouncing();
if (bounced) {
let stage = this.containerBounds;
let x = this.center.x;
let y = this.center.y;
let dx = this.movableX ? velocity.x : 0;
let dy = this.movableY ? velocity.y : 0;
let factor = this.throwDamping;
// if (recentered) {
if (x < 0) {
dx = -dx;
factor = collision;
}
if (x > stage.width) {
dx = -dx;
factor = collision;
}
if (y < 0) {
dy = -dy;
factor = collision;
}
if (y > stage.height) {
dy = -dy;
factor = collision;
}
// }
return Points.multiplyScalar({ x: dx, y: dy }, factor)
}
return super.nextVelocity(velocity)
}
endGesture(interaction) {
this.startThrow();
this._checkAutoClose();
}
_checkAutoClose() {
if (this.scaleAutoClose)
if (this.scale < this.minScale + this.scaleCloseThreshold - this.scaleCloseBuffer) {
this.zoom(this.minScale, { animate: 0.2, onComplete: this.close.bind(this) });
} else if (this.scale < this.minScale + this.scaleCloseThreshold) {
this.zoom(this.minScale + this.scaleCloseThreshold, { animate: 0.4 });
}
}
rotateDegrees(degrees, anchor) {
let rad = Angle.degree2radian(degrees);
this.rotate(rad, anchor);
}
rotate(rad, anchor) {
this.transform({ x: 0, y: 0 }, 1.0, rad, anchor);
}
move(d, { animate = 0 } = {}) {
if (this.translatable) {
if (animate > 0) {
let startPos = this.position;
TweenLite.to(this, animate, {
x: '+=' + d.x,
y: '+=' + d.y,
/* scale: scale, uo: not defined, why was this here? */
onUpdate: e => {
let p = this.position;
let dx = p.x - startPos.x;
let dy = p.x - startPos.y;
this.onMoved(dx, dy);
}
});
} else {
this._move(d);
this.onMoved(d.x, d.y);
}
}
}
moveTo(p, { animate = 0 } = {}) {
let c = this.origin;
let delta = Points.subtract(p, c);
this.move(delta, { animate: animate });
}
centerAt(p, { animate = 0 } = {}) {
let c = this.center;
let delta = Points.subtract(p, c);
this.move(delta, { animate: animate });
}
zoom(
scale,
{
animate = 0,
about = null,
delay = 0,
x = null,
y = null,
onComplete = null
} = {}
) {
let anchor = about || this.center;
if (scale != this.scale) {
if (animate > 0) {
TweenLite.to(this, animate, {
scale: scale,
delay: delay,
onComplete: onComplete,
onUpdate: this.onZoomed.bind(this)
});
} else {
this.scale = scale;
this.onZoomed(anchor);
}
}
}
_move(delta) {
this.x += this.movableX ? delta.x : 0;
this.y += this.movableX ? delta.y : 0;
}
transform(translate, zoom, rotate, anchor) {
let delta = {
x: this.movableX ? translate.x : 0,
y: this.movableY ? translate.y : 0
};
if (this.resizable) var vzoom = zoom;
if (!this.translatable) delta = { x: 0, y: 0 };
if (!this.rotatable) rotate = 0;
if (!this.scalable) zoom = 1.0;
if (zoom == 1.0 && rotate == 0) {
this._move(delta);
if (this.onTransform != null) {
let event = new ScatterEvent(this, {
translate: delta,
scale: this.scale,
rotate: 0,
about: anchor,
fast: false,
type: UPDATE
});
this.onTransform.forEach(function (f) {
f(event);
});
}
return
}
let origin = this.rotationOrigin;
let beta = Points.angle(origin, anchor);
let distance = Points.distance(origin, anchor);
let { scale: newScale, zoom: thresholdedZoom } = this.calculateScale(zoom);
let newOrigin = Points.arc(anchor, beta + rotate, distance * thresholdedZoom);
let extra = Points.subtract(newOrigin, origin);
let offset = Points.subtract(anchor, origin);
this._move(offset);
this.scale = newScale;
this.rotation += rotate;
offset = Points.negate(offset);
offset = Points.add(offset, extra);
offset = Points.add(offset, translate);
this._move(offset);
delta.x += extra.x;
delta.y += extra.y;
if (this.onTransform != null) {
let event = new ScatterEvent(this, {
translate: delta,
scale: newScale,
rotate: rotate,
about: anchor
});
this.onTransform.forEach(function (f) {
f(event);
});
}
if (this.resizable) {
this.resizeAfterTransform(vzoom);
}
}
/**
* For a given zoom, a new scale is calculated, taking
* min and max scale into account.
*
* @param {number} zoom - The zoom factor, to scale the object with.
* @returns {object} - Returns an object containing the a value for a valid scale and the corrected zoom factor.
*/
calculateScale(zoom) {
let scale = this.scale * zoom;
let minScale = this.minScale / this.overdoScaling;
let maxScale = this.maxScale * this.overdoScaling;
if (scale < minScale) {
scale = minScale;
zoom = scale / this.scale;
}
if (scale > maxScale) {
scale = maxScale;
zoom = scale / this.scale;
}
if (this.scaleAutoClose)
this._updateTransparency();
return { zoom, scale }
}
_updateTransparency() {
if (this.scale < this.minScale + this.scaleCloseThreshold) {
let transparency = this.calculateScaleTransparency();
this.element.style.opacity = transparency;
} else this.element.style.opacity = 1;
}
calculateScaleTransparency() {
let transparency = (this.scale - this.minScale) / this.scaleCloseThreshold;
transparency = (transparency > 1) ? 1 : (transparency < 0) ? 0 : transparency;
return transparency
}
resizeAfterTransform(zoom) {
// Overwrite this in subclasses.
}
validScale(scale) {
scale = Math.max(scale, this.minScale);
scale = Math.min(scale, this.maxScale);
return scale
}
animateZoomBounce(dt = 1) {
if (this.zoomAnchor != null) {
let zoom = 1;
let amount = Math.min(0.01, 0.3 * dt / 100000.0);
if (this.scale < this.minScale) zoom = 1 + amount;
if (this.scale > this.maxScale) zoom = 1 - amount;
if (zoom != 1) {
this.transform({ x: 0, y: 0 }, zoom, 0, this.zoomAnchor);
requestAnimationFrame(dt => {
this.animateZoomBounce(dt);
});
return
}
this.zoomAnchor = null;
}
}
checkScaling(about, delay = 0) {
this.zoomAnchor = about;
clearTimeout(this.animateZoomBounce.bind(this));
setTimeout(this.animateZoomBounce.bind(this), delay);
}
onMouseWheel(event) {
if (event.claimedByScatter) {
if (event.claimedByScatter != this) return
}
this.killAnimation();
this.targetScale = null;
let direction = event.detail < 0 || event.wheelDelta > 0;
let globalPoint = { x: event.clientX, y: event.clientY };
let centerPoint = this.mapPositionToContainerPoint(globalPoint);
if (event.shiftKey) {
let degrees = direction ? 5 : -5;
let rad = Angle.degree2radian(degrees);
return this.transform({ x: 0, y: 0 }, 1.0, rad, centerPoint)
}
const zoomFactor = this.mouseZoomFactor;
let zoom = direction ? zoomFactor : 1 / zoomFactor;
this.transform({ x: 0, y: 0 }, zoom, 0, centerPoint);
this.checkScaling(centerPoint, 200);
if (this.scaleAutoClose) {
if (this.scale <= this.minScale + this.scaleCloseThreshold) {
if (this.scaleAutoCloseTimeout) clearTimeout(this.scaleAutoCloseTimeout);
this.scaleAutoCloseTimeout = setTimeout(() => {
this._checkAutoClose();
}, 600);
}
this._updateTransparency();
}
//
// if (this.onTransform != null) {
// let event = new ScatterEvent(this, {
// translate: {x: 0, y: 0},
// scale: this.scale,
// rotate: 0,
// about: null,
// fast: false,
// type: ZOOM
// })
// this.onTransform.forEach(function(f) {
// f(event)
// })
// }
}
onStart(event, interaction) {
if (this.startGesture(interaction)) {
this.dragging = true;
this.interactionAnchor = null;
}
if (this.onTransform != null) {
let event = new ScatterEvent(this, {
translate: { x: 0, y: 0 },
scale: this.scale,
rotate: 0,
about: null,
fast: false,
type: START
});
this.onTransform.forEach(function (f) {
f(event);
});
}
}
onMove(event, interaction) {
/** As long as mouseout && mouseleave interrupt we cannot be sure that
* dragging remains correct.
*/
if (this.dragging) {
this.gesture(interaction);
}
}
onEnd(event, interaction) {
//console.log("Scatter.onEnd", this.dragging)
if (interaction.isFinished()) {
this.endGesture(interaction);
this.dragging = false;
for (let key of interaction.ended.keys()) {
if (interaction.isTap(key)) {
let point = interaction.ended.get(key);
this.onTap(event, interaction, point);
}
}
if (this.onTransform != null) {
let event = new ScatterEvent(this, {
translate: { x: 0, y: 0 },
scale: this.scale,
rotate: 0,
about: null,
fast: false,
type: END
});
this.onTransform.forEach(function (f) {
f(event);
});
}
}
let about = this.interactionAnchor;
if (about != null) {
this.checkScaling(about, 100);
}
}
onTap(event, interaction, point) { }
onDragUpdate(delta) {
if (this.onTransform != null) {
let event = new ScatterEvent(this, {
fast: true,
translate: delta,
scale: this.scale,
about: this.currentAbout,
type: null
});
this.onTransform.forEach(function (f) {
f(event);
});
}
}
onDragComplete() {
if (this.onTransform) {
let event = new ScatterEvent(this, {
scale: this.scale,
about: this.currentAbout,
fast: false,
type: null
});
this.onTransform.forEach(function (f) {
f(event);
});
}
}
onMoved(dx, dy, about) {
if (this.onTransform != null) {
let event = new ScatterEvent(this, {
translate: { x: dx, y: dy },
about: about,
fast: true,
type: null
});
this.onTransform.forEach(function (f) {
f(event);
});
}
}
onResizing() {
if (this.onTransform != null) {
let event = new ScatterEvent(this, {
scale: this.scale,
fast: false,
type: null
});
this.onTransform.forEach(function (f) {
f(event);
});
}
}
onZoomed(about) {
if (this.scaleAutoClose)
this._updateTransparency();
if (this.onTransform != null) {
let event = new ScatterEvent(this, {
scale: this.scale,
about: about,
fast: false,
type: null
});
this.onTransform.forEach(function (f) {
f(event);
});
}
}
}
class DOMScatter extends AbstractScatter {
constructor(
element,
container,
{
startScale = 1.0,
minScale = 0.1,
maxScale = 1.0,
overdoScaling = 1.5,
autoBringToFront = true,
translatable = true,
scalable = true,
rotatable = true,
movableX = true,
movableY = true,
rotationDegrees = null,
rotation = null,
onTransform = null,
transformOrigin = 'center center',
// extras which are in part needed
x = 0,
y = 0,
width = null, // required
height = null, // required
resizable = false,
simulateClick = false,
verbose = true,
onResize = null,
touchAction = 'none',
throwVisibility = 44,
throwDamping = 0.95,
autoThrow = true,
scaleAutoClose = false,
onClose = null,
scaleCloseThreshold = 0.10,
scaleCloseBuffer = 0.05
} = {}
) {
super({
minScale,
maxScale,
startScale,
overdoScaling,
autoBringToFront,
translatable,
scalable,
rotatable,
movableX,
movableY,
resizable,
rotationDegrees,
rotation,
onTransform,
throwVisibility,
throwDamping,
autoThrow,
scaleAutoClose,
scaleCloseThreshold,
scaleCloseBuffer,
onClose
});
if (container == null || width == null || height == null) {
throw new Error('Invalid value: null')
}
element.scatter = this;
this.element = element;
this.x = x;
this.y = y;
this.oldX = 0;
this.oldY = 0;
this.meanX = x;
this.meanY = y;
this.width = width;
this.height = height;
this.throwVisibility = Math.min(width, height, throwVisibility);
this.container = container;
this.simulateClick = simulateClick;
this.scale = startScale;
this.rotationDegrees = this.startRotationDegrees;
this.transformOrigin = transformOrigin;
this.initialValues = {
x: x,
y: y,
width: width,
height: height,
scale: startScale,
rotation: this.startRotationDegrees,
transformOrigin: transformOrigin
};
// For tweenlite we need initial values in _gsTransform
TweenLite.set(element, this.initialValues);
this.onResize = onResize;
this.verbose = verbose;
if (touchAction !== null) {
Elements$1.setStyle(element, { touchAction });
}
this.resizeButton = null;
if (resizable) {
let button = document.createElement("div");
button.style.position = "absolute";
button.style.right = "0px";
button.style.bottom = "0px";
button.style.width = "50px";
button.style.height = "50px";
// button.style.borderRadius = "100% 0px 0px 0px";
// button.style.background = this.element.style.backgroundColor
button.className = "interactiveElement";
this.element.appendChild(button);
button.addEventListener('pointerdown', (e) => {
this.startResize(e);
});
button.addEventListener('pointermove', (e) => {
this.resize(e);
});
button.addEventListener('pointerup', (e) => {
this.stopResize(e);
});
this.resizeButton = button;
}
container.add(this);
}
/** Returns geometry data as object. **/
getState() {
return {
scale: this.scale,
x: this.x,
y: this.y,
rotation: this.rotation
}
}
close() {
super.close();
let parent = this.element.parentNode;
if (parent) parent.removeChild(this.element);
}
get rotationOrigin() {
return this.center
}
get x() {
return this._x
}
get y() {
return this._y
}
set x(value) {
this._x = value;
TweenLite.set(this.element, { x: value });
}
set y(value) {
this._y = value;
TweenLite.set(this.element, { y: value });
}
get position() {
let transform = this.element._gsTransform;
let x = transform.x;
let y = transform.y;
return { x, y }
}
get origin() {
let p = this.fromNodeToPage(0, 0);
return Points.fromPageToNode(this.container.element, p)
}
get bounds() {
let stage = this.container.element.getBoundingClientRect();
let rect = this.element.getBoundingClientRect();
return {
top: rect.top - stage.top,
left: rect.left - stage.left,
width: rect.width,
height: rect.height
}
}
get center() {
let r = this.bounds;
let w2 = r.width / 2;
let h2 = r.height / 2;
// if (this.resizable) {
// w2 *= this.scale
// h2 *= this.scale
// }
var x = r.left + w2;
var y = r.top + h2;
return { x, y }
}
set rotation(radians) {
let rad = radians; // Angle.normalize(radians)
let degrees = Angle.radian2degree(rad);
TweenLite.set(this.element, { rotation: degrees });
this._rotation = rad;
}
set rotationDegrees(degrees) {
let deg = degrees; // Angle.normalizeDegree(degrees)
TweenLite.set(this.element, { rotation: deg });
this._rotation = Angle.degree2radian(deg);
}
get rotation() {
return this._rotation
}
get rotationDegrees() {
return this._rotation
}
set scale(scale) {
TweenLite.set(this.element, {
scale: scale,
transformOrigin: this.transformOrigin
});
this._scale = scale;
}
get scale() {
return this._scale
}
get containerBounds() {
return this.container.bounds
}
get containerPolygon() {
return this.container.polygon
}
mapPositionToContainerPoint(point) {
return this.container.mapPositionToPoint(point)
}
capture(event) {
return true
}
reset() {
TweenLite.set(this.element, this.initialValues);
}
hide() {
TweenLite.to(this.element, 0.1, {
display: 'none',
onComplete: e => {
this.element.parentNode.removeChild(this.element);
}
});
}
show() {
TweenLite.set(this.element, { display: 'block' });
}
showAt(p, rotationDegrees) {
TweenLite.set(this.element, {
display: 'block',
x: p.x,
y: p.y,
rotation: rotationDegrees,
transformOrigin: this.transformOrigin
});
}
bringToFront() {
// this.element.parentNode.appendChild(this.element)
// uo: On Chome and Electon appendChild leads to flicker
TweenLite.set(this.element, { zIndex: DOMScatter.zIndex++ });
}
toggleVideo(element) {
if (element.paused) {
element.play();
} else {
element.pause();
}
}
onTap(event, interaction, point) {
if (this.simulateClick) {
let p = Points.fromPageToNode(this.element, point);
let iframe = this.element.querySelector('iframe');
if (iframe) {
let doc = iframe.contentWindow.document;
let element = doc.elementFromPoint(p.x, p.y);
if (element == null) {
return
}
switch (element.tagName) {
case 'VIDEO':
console.log(element.currentSrc);
if (PopupMenu) {
PopupMenu.open(
{
Fullscreen: () =>
window.open(element.currentSrc),
Play: () => element.play()
},
{ x, y }
);
} else {
this.toggleVideo(element);
}
break
default:
element.click();
}
}
}
}
isDescendant(parent, child) {
let node = child.parentNode;
while (node != null) {
if (node == parent) {
return true
}
node = node.parentNode;
}
return false
}
fromPageToNode(x, y) {
return Points.fromPageToNode(this.element, { x, y })
}
fromNodeToPage(x, y) {
return Points.fromNodeToPage(this.element, { x, y })
}
_move(delta) {
// UO: We need to keep TweenLite's _gsTransform and the private
// _x and _y attributes aligned
let x = this.element._gsTransform.x;
let y = this.element._gsTransform.y;
if (this.movableX) {
x += delta.x;
}
if (this.movableY) {
y += delta.y;
}
this._x = x;
this._y = y;
TweenLite.set(this.element, { x: x, y: y });
}
resizeAfterTransform(zoom) {
// let w = this.width * this.scale
// let h = this.height * this.scale
// TweenLite.set(this.element, { width: w, height: h })
if (this.onResize) {
let event = new ResizeEvent(this, { width: w, height: h });
this.onResize(event);
}
if (this.resizeButton != null) ;
}
startResize(e) {
e.preventDefault();
let event = new CustomEvent('resizeStarted');
let oldPostition = { x: $(this.element).position().left, y: $(this.element).position().top };
this.bringToFront();
this.element.style.transformOrigin = "0% 0%";
let newPostition = { x: $(this.element).position().left, y: $(this.element).position().top };
let offset = Points.subtract(oldPostition, newPostition);
this.oldX = e.clientX;
this.oldY = e.clientY;
e.target.setAttribute('resizing', "true");
e.target.setPointerCapture(e.pointerId);
TweenLite.to(this.element, 0, { css: { left: "+=" + offset.x + "px" } });
TweenLite.to(this.element, 0, { css: { top: "+=" + offset.y + "px" } });
this.element.dispatchEvent(event);
}
resize(e) {
e.preventDefault();
let rotation = Angle.radian2degree(this.rotation);
rotation = (rotation + 360) % 360;
let event = new CustomEvent('resized');
if (e.target.getAttribute('resizing') == "true") {
let deltaX = (e.clientX - this.oldX);
let deltaY = (e.clientY - this.oldY);
let r = Math.sqrt(Math.pow(deltaX, 2) + Math.pow(deltaY, 2));
let phi = Angle.radian2degree(Math.atan2(deltaX, deltaY));
phi = ((phi) + 630) % 360;
let rot = ((rotation + 90) + 630) % 360;
let diffAngle = ((0 + rot) + 360) % 360;
let phiCorrected = (phi + diffAngle + 360) % 360;
let resizeW = r * Math.cos(Angle.degree2radian(phiCorrected));
let resizeH = -r * Math.sin(Angle.degree2radian(phiCorrected));
if (this.element.offsetWidth + resizeW / this.scale > this.width * 0.3 && this.element.offsetHeight + resizeH / this.scale > this.height * 0.3) TweenLite.to(this.element, 0, { width: this.element.offsetWidth + resizeW / this.scale, height: this.element.offsetHeight + resizeH / this.scale });
this.oldX = e.clientX;
this.oldY = e.clientY;
this.onResizing();
this.element.dispatchEvent(event);
}
}
stopResize(e) {
e.preventDefault();
let event = new CustomEvent('resizeEnded');
let oldPostition = { x: $(this.element).position().left, y: $(this.element).position().top };
this.element.style.transformOrigin = "50% 50%";
let newPostition = { x: $(this.element).position().left, y: $(this.element).position().top };
let offset = Points.subtract(oldPostition, newPostition);
TweenLite.to(this.element, 0, { css: { left: "+=" + offset.x + "px" } });
TweenLite.to(this.element, 0, { css: { top: "+=" + offset.y + "px" } });
e.target.setAttribute('resizing', "false");
this.element.dispatchEvent(event);
}
}
DOMScatter.zIndex = 1000;
class CardLoader {
constructor(
src,
{
x = 0,
y = 0,
width = 1000,
height = 800,
maxWidth = null,
maxHeight = null,
scale = 1,
minScale = 0.5,
maxScale = 1.5,
rotation = 0
} = {}
) {
this.src = src;
this.x = x;
this.y = y;
this.scale = scale;
this.rotation = 0;
this.maxScale = maxScale;
this.minScale = minScale;
this.wantedWidth = width;
this.wantedHeight = height;
this.maxWidth = maxWidth != null ? maxWidth : window.innerWidth;
this.maxHeight = maxHeight != null ? maxHeight : window.innerHeight;
this.addedNode = null;
console.log({
width,
height,
maxWidth,
maxHeight,
});
}
unload() {
if (this.addedNode) {
this.addedNode.remove();
this.addedNode = null;
}
}
}
class DOMFlip {
constructor(
domScatterContainer,
flipTemplate,
frontLoader,
backLoader,
{
closeOnMinScale = false,
flipDuration = 1,
fadeDuration = 0.2,
overdoScaling = 1,
autoLoad = false,
center = null,
preloadBack = false,
translatable = true,
scalable = true,
rotatable = true,
onFront = null,
onBack = null,
onClose = null,
onUpdate = null,
onRemoved = null,
onLoaded = null
} = {}
) {
this.domScatterContainer = domScatterContainer;
this.id = getId();
this.flipDuration = flipDuration;
this.fadeDuration = fadeDuration;
this.closeOnMinScale = closeOnMinScale;
this.flipTemplate = flipTemplate;
this.frontLoader = frontLoader;
this.backLoader = backLoader;
this.translatable = translatable;
this.scalable = scalable;
this.rotatable = rotatable;
this.onFrontFlipped = onFront;
this.onBackFlipped = onBack;
this.onClose = onClose;
this.onRemoved = onRemoved;
this.onUpdate = onUpdate;
this.onLoaded = onLoaded;
this.center = center;
this.preloadBack = preloadBack;
this.overdoScaling = overdoScaling;
if (autoLoad) {
this.load();
}
}
load() {
return new Promise((resolve, reject) => {
let t = this.flipTemplate;
let dom = this.domScatterContainer.element;
let wrapper = t.content.querySelector('.flipWrapper');
wrapper.id = this.id;
let clone = document.importNode(t.content, true);
dom.appendChild(clone);
// We cannot use the document fragment itself because it
// is not part of the main dom tree. After the appendChild
// call we can access the new dom element by id
this.cardWrapper = dom.querySelector('#' + this.id);
let front = this.cardWrapper.querySelector('.front');
this.frontLoader.load(front).then(loader => {
this.frontLoaded(loader).then((obj) => {
if (this.onLoaded) this.onLoaded();
resolve(this);
});
});
})
}
frontLoaded(loader) {
return new Promise((resolve, reject) => {
let scatter = new DOMScatter(
this.cardWrapper,
this.domScatterContainer,
{
x: loader.x,
y: loader.y,
startScale: loader.scale,
scale: loader.scale,
maxScale: loader.maxScale,
minScale: loader.minScale,
width: loader.wantedWidth,
height: loader.wantedHeight,
rotation: loader.rotation,
translatable: this.translatable,
scalable: this.scalable,
rotatable: this.rotatable,
overdoScaling: this.overdoScaling
}
);
if (this.center) {
scatter.centerAt(this.center);
}
if (this.closeOnMinScale) {
const removeOnMinScale = function () {
if (scatter.scale <= scatter.minScale) {
this.flippable.close();
// 'Disable' overdoscaling to avoid weird jumps on close.
scatter.minScale /= scatter.overdoScaling;
scatter.overdoScaling = 1;
//Remove callback
if (scatter.onTransform) {
let callbackIdx = scatter.onTransform.indexOf(removeOnMinScale);
scatter.onTransform.splice(callbackIdx, 1);
}
}
}.bind(this);
scatter.addTransformEventCallback(removeOnMinScale);
}
let flippable = new DOMFlippable(this.cardWrapper, scatter, this);
let back = this.cardWrapper.querySelector('.back');
if (this.preloadBack) {
this.backLoader.load(back).then(loader => {
this.setupFlippable(flippable, loader);
});
}
this.flippable = flippable;
resolve(this);
})
}
centerAt(p) {
this.center = p;
this.flippable.centerAt(p);
}
zoom(scale) {
this.flippable.zoom(scale);
}
setupFlippable(flippable, loader) {
flippable.wantedWidth = loader.wantedWidth;
flippable.wantedHeight = loader.wantedHeight;
flippable.wantedScale = loader.scale;
flippable.minScale = loader.minScale;
flippable.maxScale = loader.maxScale;
flippable.scaleButtons();
}
start({ targetCenter = null } = {}) {
console.log('DOMFlip.start', targetCenter);
if (this.preloadBack) this.flippable.start({ duration: this.flipDuration, targetCenter });
else {
let back = this.cardWrapper.querySelector('.back');
let flippable = this.flippable;
this.backLoader.load(back).then(loader => {
this.setupFlippable(flippable, loader);
flippable.start({ duration: this.flipDuration, targetCenter });
});
}
}
fadeOutAndRemove() {
TweenLite.to(this.cardWrapper, this.fadeDuration, {
opacity: 0,
onComplete: () => {
this.cardWrapper.remove();
}
});
}
closed() {
this.unload();
}
unload() {
if (!this.preloadBack) {
this.backLoader.unload();
}
}
}
class DOMFlippable {
constructor(element, scatter, flip) {
// Set log to console.log or a custom log function
// define data structures to store our touchpoints in
this.element = element;
this.flip = flip;
this.card = element.querySelector('.flipCard');
this.front = element.querySelector('.front');
this.back = element.querySelector('.back');
this.flipped = false;
this.scatter = scatter;
this.onFrontFlipped = flip.onFrontFlipped;
this.onBackFlipped = flip.onBackFlipped;
this.onClose = flip.onClose;
this.onRemoved = flip.onRemoved;
this.onUpdate = flip.onUpdate;
this.flipDuration = flip.flipDuration;
this.fadeDuration = flip.fadeDuration;
scatter.addTransformEventCallback(this.scatterTransformed.bind(this));
console.log('lib.DOMFlippable', 5000);
TweenLite.set(this.element, { perspective: 5000 });
TweenLite.set(this.card, { transformStyle: 'preserve-3d' });
TweenLite.set(this.back, { rotationY: -180 });
TweenLite.set([this.back, this.front], {
backfaceVisibility: 'hidden',
perspective: 5000
});
TweenLite.set(this.front, { visibility: 'visible' });
this.infoBtn = element.querySelector('.infoBtn');
this.backBtn = element.querySelector('.backBtn');
this.closeBtn = element.querySelector('.closeBtn');
/* Buttons are not guaranteed to exist. */
if (this.infoBtn) {
InteractionMapper$1.on('tap', this.infoBtn, event => this.flip.start());
this.enable(this.infoBtn);
}
if (this.backBtn) {
InteractionMapper$1.on('tap', this.backBtn, event => this.start());
}
if (this.closeBtn) {
InteractionMapper$1.on('tap', this.closeBtn, event => this.close());
this.enable(this.closeBtn);
}
this.scaleButtons();
this.bringToFront();
}
close() {
this.disable(this.infoBtn);
this.disable(this.closeBtn);
if (this.onClose) {
this.onClose(this);
this.flip.closed();
} else {
this.scatter.zoom(0.1, {
animate: this.fadeDuration,
onComplete: () => {
this.element.remove();
this.flip.closed();
if (this.onRemoved) {
this.onRemoved.call(this);
}
}
});
}
}
showFront() {
TweenLite.set(this.front, { visibility: 'visible' });
}
centerAt(p) {
this.scatter.centerAt(p);
}
zoom(scale) {
this.scatter.zoom(scale);
}
get buttonScale() {
let iscale = 1.0;
if (this.scatter != null) {
let scale = this.scatter.scale || 1;
iscale = 1.0 / scale;
}
return iscale
}
scaleButtons() {
//This also works for svgs.
// if (this.infoBtn)
// this.infoBtn.style.transform = "scale(" + this.buttonScale + ")"
// if (this.backBtn)
// this.backBtn.style.transform = "scale(" + this.buttonScale + ")"
// if (this.closeBtn)
// this.closeBtn.style.transform = "scale(" + this.buttonScale + ")"
console.log(this.buttonScale);
//// This did not work with svgs!
TweenLite.set([this.infoBtn, this.backBtn, this.closeBtn], {
scale: this.buttonScale
});
}
bringToFront() {
this.scatter.bringToFront();
TweenLite.set(this.element, { zIndex: DOMScatter.zIndex++ });
}
clickInfo() {
this.bringToFront();
this.infoBtn.click();
}
scatterTransformed(event) {
this.scaleButtons();
}
targetRotation(alpha) {
let ortho = 90;
let rest = alpha % ortho;
let delta = 0.0;
if (rest > ortho / 2.0) {
delta = ortho - rest;
} else {
delta = -rest;
}
return delta
}
infoValues(info) {
let startX = this.element._gsTransform.x;
let startY = this.element._gsTransform.y;
let startAngle = this.element._gsTransform.rotation;
let startScale = this.element._gsTransform.scaleX;
let w = this.element.style.width;
let h = this.element.style.height;
console.log(info, startX, startY, startAngle, startScale, w, h);
}
show(element, duration = 0, alpha = 1) {
if (element) {
TweenLite.to(element, duration, { autoAlpha: alpha }); // visibility: 'visible', display: 'initial'})
}
}
hide(element, duration = 0, alpha = 0) {
if (element) {
TweenLite.to(element, duration, { autoAlpha: alpha }); // {visibility: 'hidden', display: 'none'})
}
}
enable(button) {
this.show(button, this.fadeDuration);
if (button) {
TweenLite.set(button, { pointerEvents: 'auto' });
}
}
disable(button) {
this.hide(button, this.fadeDuration);
if (button) {
TweenLite.set(button, { pointerEvents: 'none' });
}
}
start({ targetCenter = null } = {}) {
this.bringToFront();
if (!this.flipped) {
this.startX = this.element._gsTransform.x;
this.startY = this.element._gsTransform.y;
this.startAngle = this.element._gsTransform.rotation;
this.startScale = this.element._gsTransform.scaleX;
this.startWidth = this.element.style.width;
this.startHeight = this.element.style.height;
this.scatterStartWidth = this.scatter.width;
this.scatterStartHeight = this.scatter.height;
this.show(this.back);
this.disable(this.infoBtn);
this.disable(this.closeBtn);
} else {
this.show(this.front, this.fadeDuration);
this.disable(this.backBtn);
}
let { scalable, translatable, rotatable } = this.scatter;
this.saved = { scalable, translatable, rotatable };
this.scatter.scalable = false;
this.scatter.translatable = false;
this.scatter.rotatable = false;
this.scatter.killAnimation();
this.flipped = !this.flipped;
let targetY = this.flipped ? 180 : 0;
let targetZ = this.flipped
? this.startAngle + this.targetRotation(this.startAngle)
: this.startAngle;
let targetScale = this.flipped ? this.wantedScale : this.startScale;
let w = this.flipped ? this.wantedWidth : this.startWidth;
let h = this.flipped ? this.wantedHeight : this.startHeight;
let dw = this.wantedWidth - this.scatter.width;
let dh = this.wantedHeight - this.scatter.height;
let tc = targetCenter;
let xx = tc != null ? tc.x - w / 2 : this.startX - dw / 2;
let yy = tc != null ? tc.y - h / 2 : this.startY - dh / 2;
let x = this.flipped ? xx : this.startX;
let y = this.flipped ? yy : this.startY;
console.log("DOMFlippable.start", this.flipped, targetCenter, x, y, this.saved);
let onUpdate = this.onUpdate !== null ? () => this.onUpdate(this) : null;
console.log(this.flipDuration);
TweenLite.to(this.card, this.flipDuration, {
rotationY: targetY,
ease: Power1.easeOut,
transformOrigin: '50% 50%',
onUpdate,
onComplete: e => {
if (this.flipped) {
//this.hide(this.front)
this.enable(this.backBtn);
this.show(this.backBtn);
if (this.onFrontFlipped) {
this.onFrontFlipped(this);
}
} else {
if (this.onBackFlipped == null) {
this.enable(this.infoBtn, this.fadeDuration);
this.enable(this.closeBtn, this.fadeDuration);
} else {
this.onBackFlipped(this);
}
this.flip.unload();
}
this.scatter.scale = targetScale;
this.scaleButtons();
this.scatter.rotationDegrees = targetZ;
this.scatter.width = this.flipped ? w : this.scatterStartWidth;
this.scatter.height = this.flipped ? h : this.scatterStartHeight;
let { scalable, translatable, rotatable } = this.saved;
this.scatter.scalable = scalable;
this.scatter.translatable = translatable;
this.scatter.rotatable = rotatable;
},
force3D: true
});
// See https://greensock.com/forums/topic/7997-rotate-the-shortest-way/
TweenLite.to(this.element, this.flipDuration / 2, {
scale: targetScale,
ease: Power1.easeOut,
rotationZ: targetZ + '_short',
transformOrigin: '50% 50%',
width: w,
height: h,
x: x,
y: y,
onComplete: e => {
if (this.flipped) {
this.hide(this.front);
// this.hide(this.infoBtn)
} else {
this.hide(this.back);
// this.show(this.infoBtn)
}
}
});
}
}
const deepZoomTileCache = new Map();
/** The current Tile implementation simply uses PIXI.Sprites.
*
* BTW: PIXI.extras.TilingSprite is not appropriate. It should be used for
* repeating patterns.
**/
class Tile extends PIXI.Sprite {
constructor(texture, url) {
super(texture);
this.url = url;
this.register(url);
}
static fromImage(imageId, crossorigin, scaleMode) {
return new Tile(PIXI.Texture.fromImage(imageId, crossorigin, scaleMode), imageId)
}
/**
* Registers the tile in the global reference counter for textures
*
* @param {*} url
* @param {boolean} [debug=false]
* @memberof Tile
*/
register(url, debug = false) {
if (deepZoomTileCache.has(url)) {
let tiles = deepZoomTileCache.get(url);
tiles.add(this);
if (debug) console.log("Tile.register", url, tiles.size);
}
else {
deepZoomTileCache.set(url, new Set([this]));
if (debug) console.log("Tile.register", url, 1);
}
}
/**
* Unregisters the rile in the global reference counter for textures
*
* @returns {number} The number of how often a texture is used.
* @memberof Tile
*/
unregister() {
let tiles = deepZoomTileCache.get(this.url);
tiles.delete(this);
if (tiles.size == 0) {
deepZoomTileCache.delete(this.url);
}
return tiles.size
}
/**
* Destroys this sprite and optionally its texture and children
*
* @param {*} options Part of the PIXI API, but ignored in the implementation
* @memberof Tile
*/
destroy(options, debug = false) {
if (this.parent != null) ;
let count = this.unregister();
if (count <= 0) {
let opts = { children: true, texture: true, baseTexture: true };
super.destroy(opts);
if (debug) console.log("Tile.destroy", deepZoomTileCache.size, opts);
}
else {
let opts = { children: true, texture: false, baseTexture: false };
if (debug) console.log("Tile.destroy", deepZoomTileCache.size, opts);
super.destroy(opts);
}
}
}
/**
* A Tile Loader component that can be plugged into a Tiles Layer.
*/
class TileLoader {
constructor(tiles) {
this.debug = false;
this.tiles = tiles;
this.setup();
}
/** Setup collections and instance vars. */
setup() {
this.map = new Map(); // Map {url : [ col, row]}
this.loading = new Set(); // Set url
this.loaded = new Map(); // Map {url : sprite }
this.loadQueue = [];
}
/** Schedules a tile url for loading. The loading itself must be triggered
by a call to loadOneTile or loadAll
* @param {String} url - the url of the texture / tile
* @param {Number} col - the tile col
* @param {Number} row - the tile row
**/
schedule(url, col, row) {
if (this.loaded.has(url)) return false
if (this.loading.has(url)) return false
this.map.set(url, [col, row]);
this.loading.add(url);
this.loadQueue.push(url);
return true
}
unschedule(url) {
if (this.loaded.has(url)) this.loaded.delete(url);
if (this.loading.has(url)) this.loading.delete(url);
this.loadQueue = this.loadQueue.filter(item => item != url);
}
/** Cancels loading by clearing the load queue **/
cancel() {
this.loadQueue = [];
this.loading.clear();
}
/** Destroys alls collections. **/
destroy() {
this.setup();
}
/** Private method. Informs the tile layer about a texture for a given url.
* Creates the sprite for the loaded texture and informs the tile layer.
* @param {String} url - the url
* @param {Object} texture - the loaded resource
**/
_textureAvailable(url, col, row, texture) {
let tile = this.loaded.get(url);
if (tile != null) {
console.warn("Tile already loaded");
tile.unregister();
}
tile = new Tile(texture, url);
this.loaded.set(url, tile);
this.tiles.tileAvailable(tile, col, row, url);
}
}
/**
* Uses the PIXI Loader but can be replaced with othe loaders implementing
* the public methods without underscore.
* Calls the Tiles.tileAvailable method if the texture is available.
**/
class PIXITileLoader extends TileLoader {
constructor(tiles, compression) {
super(tiles);
this.destroyed = false;
this.loader = new PIXI.loaders.Loader();
this.loader.on('load', this._onLoaded.bind(this));
this.loader.on('error', this._onError.bind(this));
if (compression) {
this.loader.pre(PIXI.compressedTextures.imageParser());
}
}
schedule(url, col, row) {
// Overwritten schedule to avoid BaseTexture and Texture already loaded errors.
if (this.loaded.has(url)) return false
if (this.loading.has(url)) return false
if (deepZoomTileCache.has(url)) {
let tiles = deepZoomTileCache.get(url);
for (let tile of tiles.values()) {
//console.log("Reusing cached texture", tile.parent)
let texture = tile.texture;
this._textureAvailable(url, col, row, texture);
return false
}
}
let texture = PIXI.utils.TextureCache[url];
if (texture) {
if (this.debug) console.log('Texture already loaded', texture);
this._textureAvailable(url, col, row, texture);
return false
}
let base = PIXI.utils.BaseTextureCache[url];
if (base) {
if (this.debug) console.log('BaseTexture already loaded', base);
let texture = new PIXI.Texture(base);
this._textureAvailable(url, col, row, texture);
return false
}
return super.schedule(url, col, row)
}
/** Load one and only one of the scheduled tiles **/
loadOneTile() {
if (this.destroyed)
return
this._loadOneTile();
}
/** Load all scheduled tiles **/
loadAll() {
if (this.destroyed)
return
this._loadAllTiles();
}
/** Destroys the loader completly **/
destroy() {
this.destroyed = true;
super.destroy();
try {
this.loader.reset();
} catch (error) {
console.warn("Error while resetting loader", error);
}
}
_onError(loader, error) {
console.warn('Cannot load', error);
}
/** Private method. Called by the PIXI loader after each successfull
* loading of a single tile.
* Creates the sprite for the loaded texture and informs the tile layer.
* @param {Object} loader - the loader instance
* @param {Object} resource - the loaded resource with url and texture attr
**/
_onLoaded(loader, resource) {
if (this.destroyed) {
let texture = resource.texture;
let destroyBase = !deepZoomTileCache.has(resource.url);
texture.destroy(destroyBase);
console.warn("Received resource after destroy", texture);
return
}
try {
let [col, row] = this.map.get(resource.url);
this._textureAvailable(resource.url, col, row, resource.texture);
}
catch (err) {
console.warn("Texture unavailable: " + err.message);
}
}
/** Private method: loads one tile from the queue. **/
_loadOneTile(retry = 1) {
//console.log("_loadOneTile")
if (this.destroyed) {
//console.warn("_loadOneTile after destroy")
return
}
if (this.loader.loading) {
setTimeout(() => {
this._loadOneTile();
}, retry);
return
}
if (this.loadQueue.length > 0) {
let url = this.loadQueue.pop();
this.loader.add(url, url);
this.loader.load();
}
}
/** Private method: loads all tiles from the queue in batches. Batches are
helpfull to avoid loading tiles that are no longer needed because the
user has already zoomed to a different level.**/
_loadAllTiles(batchSize = 8, retry = 16) {
if (this.destroyed) {
return
}
if (this.loadQueue.length > 0) {
if (this.loader.loading) {
//console.log("Loader busy", this.loadQueue.length)
setTimeout(() => {
this._loadAllTiles();
}, retry);
return
}
let i = 0;
let urls = [];
while (i < batchSize && this.loadQueue.length > 0) {
let url = this.loadQueue.pop();
if (!this.loaded.has(url)) {
let resource = this.loader.resources[url];
if (resource) {
console.log("Resource already added", url);
}
else {
urls.push(url);
i += 1;
}
}
}
this.loader.add(urls).load(() => {
this._loadAllTiles();
});
}
}
}
/**
* Uses Workers but can be replaced with other loaders implementing
* the public methods without underscore.
* Calls the Tiles.tileAvailable method if the texture is available.
**/
class WorkerTileLoader extends TileLoader {
constructor(tiles) {
super(tiles);
let worker = this.worker = new Worker("../../lib/pixi/deepzoom/tileloader.js");
worker.onmessage = (event) => {
if (event.data.success) {
let { url, col, row, buffer } = event.data;
//console.log("WorkerTileLoader.loaded", url, buffer)
let CompressedImage = PIXI.compressedTextures.CompressedImage;
let compressed = CompressedImage.loadFromArrayBuffer(buffer, url);
let base = new PIXI.BaseTexture(compressed);
let texture = new PIXI.Texture(base);
this._textureAvailable(url, col, row, texture);
}
};
}
loadOne() {
if (this.loadQueue.length > 0) {
let url = this.loadQueue.pop();
let [col, row] = this.map.get(url);
let tile = [col, row, url];
this.worker.postMessage({ command: "load", tiles: [tile] });
}
}
loadAll() {
let tiles = [];
while (this.loadQueue.length > 0) {
let url = this.loadQueue.pop();
let [col, row] = this.map.get(url);
tiles.push([col, row, url]);
}
this.worker.postMessage({ command: "load", tiles });
}
cancel() {
super.cancel();
this.worker.postMessage({ command: "abort" });
}
destroy() {
this.worker.postMessage({ command: "abort" });
this.worker.terminate();
this.worker = null;
super.destroy();
}
}
/**
* A layer of tiles that represents a zoom level of a DeepZoomImage as a grid
* of sprites.
* @constructor
* @param {number} level - the zoom level of the tile layer
* @param {DeepZoomImage} view - the zoomable image the layer belongs to
* @param {number} scale - the scale of the tile layer
* @param {number} cols - the number of columns of the layer
* @param {number} rows - the number of rows of the layer
* @param {number} width - the width of the layer in pixel
* @param {number} height - the height of the layer in pixel
* @param {number} tileSize - the size of a single tile in pixel
* @param {number} overlap - the overlap of the tiles in pixel
* @param {number} fadeInTime - time needed to fade in tiles if TweenLite is set
**/
class Tiles extends PIXI.Container {
constructor(
level,
view,
scale,
cols,
rows,
width,
height,
tileSize,
overlap,
fadeInTime = 0.33
) {
super();
this.debug = false;
this.showGrid = false;
this.view = view;
this.level = level;
this.cols = cols;
this.rows = rows;
this.pixelWidth = width;
this.pixelHeight = height;
this.tileSize = tileSize;
this.overlap = overlap;
this.needed = new Map(); // url as key, [col, row] as value
this.requested = new Set();
this.available = new Map();
this.scale.set(scale, scale);
this.tileScale = scale;
this.fadeInTime = fadeInTime;
this.keep = false;
if (this.view.preferWorker && view.info.compression.length > 0)
this.loader = new WorkerTileLoader(this);
else
this.loader = new PIXITileLoader(this, view.info.compression);
this.interactive = false;
this._highlight = null;
this._info = null;
this._centerPoint = null;
this._boundsRect = null;
this.infoColor = Colors.random();
this.pprint();
this.destroyed = false;
}
/** Tests whether all tiles are loaded. **/
isComplete() {
return this.cols * this.rows === this.children.length
}
/** Returns the highligh graphics layer for debugging purposes.
**/
get highlight() {
if (this._highlight == null) {
let graphics = new PIXI.Graphics();
graphics.beginFill(0xffff00, 0.1);
graphics.lineStyle(2, 0xffff00);
graphics.drawRect(1, 1, this.tileSize - 2, this.tileSize - 2);
graphics.endFill();
graphics.interactive = false;
this._highlight = graphics;
}
return this._highlight
}
/** Returns the highligh graphics layer for debugging purposes.
**/
get info() {
if (this._info == null) {
let graphics = new PIXI.Graphics();
graphics.lineStyle(4, 0xff0000);
graphics.interactive = false;
this._info = graphics;
this.addChild(this._info);
}
return this._info
}
/** Helper method pretty printing debug information. **/
pprint() {
if (this.debug)
console.log(
'Tiles level: ' +
this.level +
' scale: ' +
this.scale.x +
' cols: ' +
this.cols +
' rows: ' +
this.rows +
' w: ' +
this.pixelWidth +
' h: ' +
this.pixelHeight +
' tsize:' +
this.tileSize
);
}
/** Computes the tile position and obeys the overlap.
* @param {number} col - The column of the tile
* @param {number} row - The row of the tile
* @returns {PIXI.Point} obj
**/
tilePosition(col, row) {
let x = col * this.tileSize;
let y = row * this.tileSize;
let overlap = this.overlap;
if (col != 0) {
x -= overlap;
}
if (row != 0) {
y -= overlap;
}
return new PIXI.Point(x, y)
}
/** Computes the tile size without overlap
* @param {number} col - The column of the tile
* @param {number} row - The row of the tile
* @returns {PIXI.Point} obj
**/
tileDimensions(col, row) {
let w = this.tileSize;
let h = this.tileSize;
let pos = this.tilePosition(col, row);
if (col == this.cols - 1) {
w = this.pixelWidth - pos.x;
}
if (row == this.rows - 1) {
h = this.pixelHeight - pos.y;
}
return new PIXI.Point(w, h)
}
/** Method to support debugging. Highlights the specified tile at col, row **/
highlightTile(col, row) {
if (col > -1 && row > -1 && col < this.cols && row < this.rows) {
let graphics = this.highlight;
let dim = this.tileDimensions(col, row);
graphics.position = this.tilePosition(col, row);
graphics.clear();
graphics.beginFill(0xff00ff, 0.1);
graphics.lineStyle(2, 0xffff00);
graphics.drawRect(1, 1, dim.x - 2, dim.y - 2);
graphics.endFill();
this.addChild(this.highlight);
} else {
this.removeChild(this.highlight);
}
}
/** Loads the tiles for the given urls and adds the tiles as sprites.
* @param {array} urlpos - An array of URL, pos pairs
* @param {boolean} onlyone - Loads only on tile at a time if true
**/
loadTiles(urlpos, onlyone, refCol, refRow) {
if (this.showGrid) {
this.highlightTile(refCol, refRow);
}
urlpos.forEach(d => {
let [url, col, row] = d;
if (this.loader.schedule(url, col, row)) {
if (onlyone) {
return this.loader.loadOneTile()
}
}
});
this.loader.loadAll();
}
/** Private method: add a red border to a tile for debugging purposes. **/
_addTileBorder(tile, col, row) {
let dim = this.tileDimensions(col, row);
let graphics = new PIXI.Graphics();
graphics.beginFill(0, 0);
graphics.lineStyle(2, 0xff0000);
graphics.drawRect(1, 1, dim.x - 2, dim.y - 2);
graphics.endFill();
tile.addChild(graphics);
}
/** Adds a tile. **/
addTile(tile, col, row, url) {
if (this.available.has(url)) {
console.warn('Trying to add available tile');
return
}
this.addChildAt(tile, 0);
this.available.set(url, tile);
if (this.destroyed) {
console.warn('Adding to destroyed tiles layer');
}
// this._addTileBorder(tile, col, row)
}
/** Called by the loader after each successfull loading of a single tile.
* Adds the sprite to the tile layer.
* @param {Object} tile - the loaded tile sprite
* @param {Number} col - the col position
* @param {Number} row - the rowposition
**/
tileAvailable(tile, col, row, url) {
let pos = this.tilePosition(col, row);
if (this.showGrid) {
this._addTileBorder(tile, col, row);
}
tile.position = pos;
tile.interactive = false;
if (TweenLite) {
tile.alpha = 0;
TweenLite.to(tile, this.fadeInTime, { alpha: this.alpha });
}
this.addTile(tile, col, row, url);
}
/** Destroys the tiles layer and destroys the loader. Async load calls are
* cancelled.
**/
destroy() {
this.destroyed = true;
this.loader.destroy();
super.destroy({ children: true }); // Calls destroyChildren
this.available.clear();
this.requested.clear();
this.needed.clear();
}
destroyTile(url, tile) {
this.loader.unschedule(url);
this.removeChild(tile);
tile.destroy();
this.available.delete(url);
}
destroyTileByUrl(url) {
if (this.available.has(url)) {
let tile = this.available.get(url);
this.destroyTile(url, tile);
}
}
/* Destroys the tiles which are not with the bounds of the app to free
* memory.
**/
destroyTiles(quadTrees) {
let count = 0;
for (let [url, tile] of this.available.entries()) {
if (!quadTrees.has(url)) {
this.destroyTile(url, tile);
count += 1;
}
}
if (count && this.debug)
console.log('destroyTiles', this.level, count);
}
destroyUnneededTiles() {
let count = 0;
for (let [url, tile] of this.available.entries()) {
if (!this.needed.has(url)) {
this.destroyTile(url, tile);
count += 1;
}
}
if (count && this.debug)
console.log('destroyUnneededTiles', this.level, count);
}
highlightInfos() {
let graphics = this.info;
let color = this.infoColor;
graphics.clear();
graphics.lineStyle(2, color);
for (let [col, row] of this.needed.values()) {
let dim = this.tileDimensions(col, row);
let pos = this.tilePosition(col, row);
graphics.beginFill(color, 0.2);
graphics.drawRect(pos.x + 1, pos.y + 1, dim.x - 2, dim.y - 2);
graphics.endFill();
}
let r = this._boundsRect;
if (r != null) {
graphics.lineStyle(20, color);
graphics.drawRect(r.x, r.y, r.width, r.height);
graphics.moveTo(r.x, r.y);
graphics.lineTo(r.x + r.width, r.y + r.height);
graphics.moveTo(r.x, r.y + r.height);
graphics.lineTo(r.x + r.width, r.y);
}
let p = this._centerPoint;
if (p != null) {
graphics.drawCircle(p.x, p.y, 20);
}
}
tintTiles(quadTrees) {
for (let [url, tile] of this.available.entries()) {
if (!quadTrees.has(url)) tile.tint = 0xff0000;
}
}
untintTiles() {
for (let [url, tile] of this.available.entries()) {
tile.tint = 0xffffff;
}
}
}
function isEven(n) {
return n % 2 == 0
}
function printTileCacheInfos() {
let references = new Map();
let multiples = 0;
for (let [url, tiles] of deepZoomTileCache.entries()) {
let count = tiles.size;
references.set(url, count);
if (count > 1) {
multiples += 1;
}
}
console.log({ multiples, references });
}
/**
* A utility class that holds information typically provided by DZI files, i.e.
* height and width of the overall image, overlap, and image type.
*
* @constructor
* @param {obj} attrs - A JSON-Object holding the listed keys and values
* @example
* {
* "tileSize": 1024,
* "format": "jpeg",
* "overlap": 1,
* "height": 4794,
* "width": 4095,
* "clip": { "minLevel": 12, "maxLevel": 20, "startCol": 301436, "startRow": 354060 },
* // optional: minLevel and maxLevel define the level bounds
* // startCol: first col at maxLevel
* // startRow: first row at maxLevel
* "path": "var/Vermeer/Vermeer_files",
* "type": "dzi", // optional: dzi (default) or map
* "urlTileTemplate": "{path}/{level}/{column}/{row}.{format}"
* // optional: {path}/{level}/{column}_{row}.{format} (default) or
* // a template String with the format of the URL
* }
*/
class DeepZoomInfo {
constructor(attrs) {
for (let key in attrs) {
this[key] = attrs[key];
}
this.maxLevel = 0; // The highest level number, typically corresponds to the
// number in the file system for the folder with tiles
this.clip = this.clip || null; // e.g. { level: 12, col: 301436, row: 354060 }
this.type = this.type || 'dzi';
this.urlTileTemplate =
this.urlTileTemplate || '{path}/{level}/{column}_{row}.{format}';
this.setupDimensions();
}
/* Computes the needed number of layers from the width and height
* of the image. Note that this includes the level 0, i.e. 0 ... 4
* means that 5 levels exist.
**/
numLevels() {
let maxDimension = Math.max(this.width, this.height);
let boundary = this.type === 'dzi' ? 1 : this.tileSize;
let numLevels = 0;
while (maxDimension >= boundary) {
maxDimension /= 2;
numLevels++;
}
return numLevels
}
/** Computes the scale at the given level.
* @param {number} level - The level of the wanted layer
* @returns {number} scale
**/
getScale(level) {
let scale = 1;
if (this.type === 'dzi') {
scale = Math.pow(0.5, this.maxLevel - level + 1);
} else {
scale = Math.pow(0.5, this.maxLevel - level);
}
return scale
}
/** Computes the scaled width and height of the given level.
* @param {number} level - The level of the wanted layer
* @returns {array} size - The width and height
**/
getDimensions(level) {
let scale = this.getScale(level);
let w = Math.ceil(this.width * scale);
let h = Math.ceil(this.height * scale);
return [w, h]
}
/** Computes the number of cols and rows of tiles.
* @param {number} level - The level of the wanted layer
* @returns {array} size - The cols and rows
**/
getNumTiles(level) {
let dim = this.getDimensions(level);
let cols = Math.ceil(dim[0] / this.tileSize);
let rows = Math.ceil(dim[1] / this.tileSize);
if (this.clip) {
let rest = this.rests[level];
if (rest) {
if (rest.restCol) {
cols += 1;
}
if (rest.restRows) {
rows += 1;
}
}
}
return [cols, rows]
}
setupDimensions(loadBaseImage = false) {
/** Setup instance variables and load the base image, i.e. the largest
image that can be represented as a single tile.
@private
**/
let ww = this.width;
let hh = this.height;
let scale = 1.0;
let level = 0;
let single = 0;
const tsize = this.tileSize;
if (this.clip) {
this.baseLevel = this.clip.minLevel;
this.maxLevel = this.clip.maxLevel;
this.baseImage = null;
this.size = this.getDimensions(this.baseLevel);
this.offsets = {};
this.rests = {};
let startCol = this.clip.startCol;
let startRow = this.clip.startRow;
let floatStartCol = startCol;
let floatStartRow = startRow;
for (let i = this.maxLevel; i >= this.baseLevel; i--) {
this.offsets[i] = { startCol, startRow };
let restCol = floatStartCol % 1;
let restRow = floatStartRow % 1;
this.rests[i] = { restCol, restRow };
startCol = Math.floor(startCol / 2);
startRow = Math.floor(startRow / 2);
floatStartCol /= 2;
floatStartRow /= 2;
}
} else {
const boundary = this.type === 'dzi' ? 1.0 : tsize;
while (ww > boundary && hh > boundary) {
if (ww >= tsize && hh >= tsize) {
single += 1;
}
scale = scale / 2.0;
ww = Math.ceil(this.width * scale);
hh = Math.ceil(this.height * scale);
level += 1;
}
this.baseLevel = level - single;
this.maxLevel = this.numLevels() - 1;
this.baseURL = this.urlForTile(this.baseLevel, 0, 0, false);
if (loadBaseImage) {
this.imageForURL(this.baseURL, e => {
this.size = [e.target.naturalWidth, e.target.naturalHeight];
this.baseImage = e.target;
});
} else {
this.baseImage = null;
this.size = this.getDimensions(this.baseLevel);
}
}
}
get maxLoadableLevel() {
if (this.clip) {
return this.maxLevel
}
return this.type === 'dzi' ? this.maxLevel : this.maxLevel
}
/** Computes the url for the given level, column and and row.
* @param {number} level - The level of the wanted layer
* @param {number} column - The column of the tile
* @param {number} row - The row of the tile
* @returns {string} url
**/
urlForTile(level, column, row, compressed = true) {
let format = this.format;
if (compressed && this.compression) {
let supported = Capabilities.isIOS ? 'pvr' : 'dds';
if (this.compression.indexOf(supported) >= 0) {
format = supported;
}
}
if (this.clip) {
let offset = this.offsets[level];
if (offset) {
let { startCol, startRow } = offset;
column += startCol;
row += startRow;
}
}
let url = this.urlTileTemplate
.replace(/\{path\}/g, this.path)
.replace(/\{level\}/g, level)
.replace(/\{row\}/g, row)
.replace(/\{column\}/g, column)
.replace(/\{format\}/g, format);
return url
}
/** Loads the image for the given url and executes a callback function
on completion.
* @param {string} url - The url of the tile
* @param {function} complete - The callback function
* @returns {Image} obj
**/
imageForURL(url, complete) {
let img = new Image();
img.onload = complete.bind(this);
img.src = url;
return img
}
/** Computes the columns and rows as well as scaled width and height.
* @param {number} level - The level of the wanted layer
* @returns {array} [cols, rows, width, height]
**/
dimensions(level) {
let dim = this.getDimensions(level);
let tiles = this.getNumTiles(level);
return [tiles[0], tiles[1], dim[0], dim[1]]
}
test() {
//console.log("w=" + this.width + " h=" + this.height + " maxlevel=" + this.maxLevel + " base=" + this.baseLevel)
for (let i = 0; i <= this.maxLevel; i++) {
console.log(
' ' +
i +
' -> ' +
this.getScale(i) +
' [' +
this.dimensions(i) +
']'
);
}
console.log(this.urlForTile(this.baseLevel, 0, 0));
}
}
/**
* A utility class that describes a quad tree of tiles. Each tile on a given
* level has up to four corresponding tiles on the next level. A TileQuadNode
* uses the attributes nw (i.e. northwest), ne, sw, se to link to the
* quad nodes on the next level. The previous attributes links to the quad
* one level below that holds the given quad as nw, ne, sw, or se.
* We use this node class because we need a representation of tiles that are
* needed but not loaded yet to compute tiles which can be abandoned to reduce
* the memory pressure.
*
* @constructor
* @param {level} Number - The level the quad node belongs to
* @param {col} Number - The col of the quad
* @param {row} Number - The level the quad node belongs to
* @param {url} String - The level the quad node belongs to
*/
class TileQuadNode {
constructor(level, col, row, url) {
this.level = level;
this.col = col;
this.row = row;
this.url = url;
this.nw = null;
this.ne = null;
this.sw = null;
this.se = null;
this.previous = null;
}
/** Return True if this node has no successors and can be used as
an indicator of tiles to free.
**/
noQuads() {
if (this.previous === null) return false
return (
this.nw === null &&
this.ne === null &&
this.sw === null &&
this.se === null
)
}
/** Unlink the given quad node
* @param {node} TileQuadNode - The TileQuadNode to remove
**/
unlink(node) {
if (this.nw === node) this.nw = null;
if (this.ne === node) this.ne = null;
if (this.sw === node) this.sw = null;
if (this.se === node) this.se = null;
}
/** Link this quad node to the given previous node. Use the north
* and west flags to address nw, ne, sw, and se.
* @param {node} TileQuadNode - The TileQuadNode to remove
* @param {north} Boolean - Link to north (true) or south (false)
* @param {west} Boolean - Link to west (true) or east (false)
**/
link(north, west, previous) {
this.previous = previous;
if (north) {
if (west) {
previous.nw = this;
} else {
previous.ne = this;
}
} else {
if (west) {
previous.sw = this;
} else {
previous.se = this;
}
}
}
}
/**
* The main class of a deeply zoomable image that is represented by a hierarchy
* of tile layers for each zoom level. This gives the user the impression that
* even huge pictures (up to gigapixel-images) can be zoomed instantaneously,
* since the tiles at smaller levels are scaled immediately and overloaded by
* more detailed tiles at the larger level as fast as possible.
* @constructor
* @param {DeepZoomInfo} deepZoomInfo - Information extracted from a JSON-Object
*/
class DeepZoomImage extends PIXI.Container {
constructor(
deepZoomInfo,
{
debug = false,
shadow = false,
center = false,
world = null, // Defines the world bounds the images lives in
highResolution = true,
autoLoadTiles = true,
preferWorker = false,
minimumLevel = 0,
alpha = 1,
app = window.app
} = {}
) {
super();
this.app = app;
this.debug = debug;
this.shadow = shadow;
this.world = world;
this.preferWorker = preferWorker;
this.resolution = highResolution
? Math.round(window.devicePixelRatio)
: 1;
this.alpha = alpha;
this.fastLoads = 0;
this.autoLoadTiles = autoLoadTiles;
this.minimumLevel = minimumLevel;
this.quadTrees = new Map(); // url as keys, TileQuadNodes as values
this.setup(deepZoomInfo, center);
}
get point() {
if (this._point == null) {
let graphics = new PIXI.Graphics();
graphics.lineStyle(2, 0x00ff00);
graphics.drawCircle(0, 0, 2);
graphics.interactive = false;
this._point = graphics;
}
return this._point
}
/** Reads the DeepZoomInfo object and initializes all tile layers.
* Called by the constructor.
* Creates the sprite for the loaded texture and add the sprite to the tile
* layer.
* @param {Object} deepZoomInfo - the DeepZoomInfo instance
* @param {boolean} center - If true ensures that the pivot is set to the center
**/
setup(deepZoomInfo, center) {
this.info = deepZoomInfo;
this.interactive = true;
this.tileLayers = {};
this._foreground = null;
this.tileContainer = new PIXI.Container();
this.tileContainer.interactive = false;
let [w, h] = this.baseSize;
if (this.shadow) {
this.filters = [new PIXI.filters.DropShadowFilter(45, 3)];
}
this.addChild(this.tileContainer);
if (deepZoomInfo.clip) {
let mask = new PIXI.Graphics();
mask.beginFill(1, 1);
mask.drawRect(0, 0, w, h);
mask.endFill();
this.mask = mask;
mask.alpha = 0;
this.addChild(mask);
this.minimumLevel = deepZoomInfo.baseLevel;
}
this.currentLevel = Math.max(this.minimumLevel, deepZoomInfo.baseLevel);
console.log("autoLoadTiles", this.autoLoadTiles);
if (this.autoLoadTiles) {
this.setupTiles(center);
}
}
/** Default setup method for tiles. Loads all tiles of the current level.
Can be overwritten in subclasses.
@param {boolean} center - If true ensures that the pivot is set to the center
**/
setupTiles(center = false) {
// First load background tile
let tiles = this.ensureAllTiles(this.currentLevel);
if (center) {
this.pivot.set(w / 2, h / 2);
}
let scaleLevel = this.levelForScale(1);
this.ensureAllTiles(scaleLevel);
}
removeTileQuadNode(level, col, row, url) {
if (this.quadTrees.has(url)) {
let quad = this.quadTrees.get(url);
this.tileQuadRemoved(quad);
this.quadTrees.delete(url);
}
}
addTileQuadNode(level, col, row, url) {
if (this.quadTrees.has(url)) return this.quadTrees.get(url)
let quad = new TileQuadNode(level, col, row, url);
this.quadTrees.set(url, quad);
this.tileQuadAdded(quad);
return quad
}
tileQuadRemoved(quad) {
let below = quad.previous;
// if (this.debug) console.log("tileQuadRemoved", quad)
if (below) {
below.unlink(quad);
if (below.noQuads()) {
if (this.debug) console.log('Removed tile below');
let levelBelow = quad.level - 1;
if (levelBelow < this.minimumLevel) return
let c = Math.floor(quad.col / 2);
let r = Math.floor(quad.row / 2);
let urlBelow = this.info.urlForTile(levelBelow, c, r);
if (this.quadTrees.has(urlBelow)) {
this.removeTileQuadNode(levelBelow, c, r, urlBelow);
}
}
}
}
tileQuadAdded(quad) {
let levelBelow = quad.level - 1;
if (levelBelow < this.minimumLevel) return
//if (this.debug) console.log("tileQuadAdded", quad)
let c = Math.floor(quad.col / 2);
let r = Math.floor(quad.row / 2);
let urlBelow = this.info.urlForTile(levelBelow, c, r);
let below = null;
if (!this.quadTrees.has(urlBelow)) {
below = this.addTileQuadNode(levelBelow, c, r, urlBelow);
quad.link(isEven(quad.row), isEven(quad.col), below);
}
}
/** Returns the tile layer level that corresponds to the given scale.
* @param {number} scale - the scale factor
**/
levelForScale(scale) {
let level = Math.round(Math.log2(scale * this.resolution)); // Math.floor(Math.log2(event.scale))+1
let newLevel = this.info.baseLevel + Math.max(level, 0);
return Math.min(newLevel, this.info.maxLoadableLevel)
}
/** Returns the tile layer level that corresponds to the given scale.
* @param {number} scale - the scale factor
**/
levelAndAlphaForScale(scale) {
let value = Math.log2(scale * this.resolution);
let level = Math.round(value);
let newLevel = this.info.baseLevel + Math.max(level, 0);
return { level: Math.min(newLevel, this.info.maxLoadableLevel), alpha: value - level }
}
/** Adds a tile layer to the DeepZoomImage.
* @param {string} key - the access key
* @param {Tiles} tiles - the tile layer object
**/
addTiles(key, tiles) {
if (key in this.tileLayers) {
console.warn('Tiles already availabl', key);
}
this.tileContainer.addChild(tiles);
this.tileLayers[key] = tiles;
}
destroyTiles(key) {
let tiles = this.tileLayers[key];
this.tileContainer.removeChild(tiles);
tiles.destroy();
delete this.tileLayers[key];
}
/** Getter for PIXI.Container foreground layer.
* Adds a PIXI.Container if necessary.
**/
get foreground() {
if (this._foreground == null) {
this._foreground = new PIXI.Container();
this.addChild(this._foreground);
}
return this._foreground
}
/** Getter for the DeepZoomInfo base level size.
**/
get baseSize() {
return this.info.getDimensions(this.info.baseLevel)
}
/** Getter for the current scaled size in pixels.
**/
get pixelSize() {
let [w, h] = this.baseSize;
return [w * this.scale.x, h * this.scale.y]
}
/** Getter for the max scale factor.
**/
get maxScale() {
let delta = this.info.maxLevel - this.info.baseLevel;
return Math.pow(2, delta) / this.resolution * 2
}
/** Getter for the current width.
**/
get width() {
return this.pixelSize[0]
}
/** Getter for the current height.
**/
get height() {
return this.pixelSize[1]
}
/* Overrides PIXI.Container.hitArea()
* Allows to optimize the hit testing. Container with hit areas are directly
* hit tested without consideration of children.
*/
get hitArea() {
// Defining the hitArea resulted hitting the scatter in masked area
// when a mask was used (@Tüsch[submaps]). Removing the hitArea() altogether
// broke the interaction in other projects (@googleart).
// Fix: When masked, the hitArea is ignored by returning null.
// TODO: test if childs are hittested, without setting interactiveChildren.
// Opel, 03-05-2018
if (this.mask) {
return null
}
return this
}
/* Overrides PIXI.Container.contains()
* Allows to optimize the hit testing.
*/
contains(x, y) {
let [w, h] = this.baseSize;
return x >= 0 && x <= w && y >= 0 && y <= h
}
/** Overrides PIXI.Container._calculateBounds()
* Only considers the base size and reduces the calculation to a single
* rect.
*/
_calculateBounds() {
let [w, h] = this.baseSize;
this._bounds.addFrame(this.transform, 0, 0, w, h);
}
/** Overrides PIXI.Container.calculateBounds()
* Skips the children and only considers the deep zoom base size. Calls
* the also overwritten _calculateBounds method.
*/
calculateBounds() {
this._bounds.clear();
this._calculateBounds();
this._lastBoundsID = this._boundsID;
}
/** Returns a single sprite that can be used a thumbnail representation of
* large images.
* @return {Sprite} sprite - A sprite with a single tile texture
*/
thumbnail() {
return new PIXI.Sprite.fromImage(this.info.baseURL)
}
/** Returns a list of all tiles of a given level.
* @param {Tiles} tiles - the grid of tiles
* @param {number} level - The zoom level of the grid
* @return {Array[]} - An array of [url, col, row] arrays
**/
allTiles(tiles, level) {
let result = [];
for (let col = 0; col < tiles.cols; col++) {
for (let row = 0; row < tiles.rows; row++) {
let url = this.info.urlForTile(level, col, row);
result.push([url, col, row]);
}
}
return result
}
worldBounds() {
let viewBounds = this.app.scene.bounds;
// Using getBounds extends visible scope after loading tiles and leads
// to excessive loading
if (this.world != null) {
let bounds = this.world.bounds;
let x = Math.max(-bounds.width, bounds.x);
let y = Math.max(-bounds.height, bounds.y);
let width = Math.min(viewBounds.width, bounds.width);
let height = Math.min(viewBounds.height, bounds.height);
//console.log("worldBounds new", { x, y, width, height })
return { x, y, width, height }
}
//console.log("worldBounds old", viewBounds)
return viewBounds
}
/** Loads all tiles that are needed to fill the app bounds.
* @param {Tiles} tiles - the grid of tiles
* @param {number} level - The zoom level of the grid
* @param {boolean} debug
* @return {Array[]} - An array of [url, col, row] arrays
*/
neededTiles(tiles, level, debug = false) {
let needed = [];
let tsize = tiles.tileSize;
let worldBounds = this.worldBounds();
let maxWidth = worldBounds.width;
let maxHeight = worldBounds.height;
let pointInWindow = new PIXI.Point();
let worldTopLeft = new PIXI.Point(worldBounds.x, worldBounds.y);
let worldBottomRight = new PIXI.Point(worldBounds.x + maxWidth, worldBounds.y + maxHeight);
let worldCenter = new PIXI.Point(worldBounds.x + maxWidth / 2, worldBounds.y + maxHeight / 2);
let tilesCenter = tiles.toLocal(worldCenter);
let topLeft = tiles.toLocal(worldTopLeft);
let bottomRight = tiles.toLocal(worldBottomRight);
tiles._centerPoint = tilesCenter;
let bounds = new PIXI.Rectangle(
topLeft.x,
topLeft.y,
bottomRight.x - topLeft.x,
bottomRight.y - topLeft.y);
tiles._boundsRect = bounds;
/* UO: we need a toLocal call here since the transform may need an update
which is guaranteed by the toLocal method. */
let centerCol = Math.floor(tilesCenter.x / tsize);
let centerRow = Math.floor(tilesCenter.y / tsize);
// Expand because we want to test for included centers
bounds.x -= tsize / 2;
bounds.y -= tsize / 2;
bounds.width += tsize;
bounds.height += tsize;
try {
let maxTilesWidth = Math.ceil(maxWidth / tsize);
let maxTilesHeight = Math.ceil(maxHeight / tsize);
maxTilesWidth += 2;
maxTilesHeight += 2;
let startCol = Math.max(0, centerCol - maxTilesWidth);
let endCol = Math.min(tiles.cols, centerCol + maxTilesWidth);
let startRow = Math.max(0, centerRow - maxTilesHeight);
let endRow = Math.min(tiles.rows, centerRow + maxTilesHeight);
for (let col = startCol; col < endCol; col++) {
let cx = (col + 0.5) * tsize;
for (let row = startRow; row < endRow; row++) {
let cy = (row + 0.5) * tsize;
let tileCenter = new PIXI.Point(cx, cy);
if (bounds.contains(tileCenter.x, tileCenter.y)) {
let url = this.info.urlForTile(level, col, row);
needed.push([url, col, row]);
}
}
}
} catch (error) {
console.warn(error.message);
}
return { centerCol, centerRow, needed }
}
/** Returns all changed tiles for a given level.
* @param {Tiles} tiles - the grid of tiles
* @param {number} level - The zoom level of the grid
* @return {object} - An object with the keys added and removed which values are [url, col, row] arrays
*/
changedTiles(tiles, level) {
if (this.debug) console.time('changedTiles');
let changed = { added: [], removed: [] };
let newNeeded = new Map();
let { centerCol, centerRow, needed } = this.neededTiles(tiles, level);
needed.forEach(d => {
let [url, col, row] = d;
newNeeded.set(url, [col, row]);
if (!tiles.requested.has(url)) {
changed.added.push(d);
}
});
for (let url of tiles.needed.keys()) {
if (!newNeeded.has(url)) {
let [col, row] = tiles.needed.get(url);
changed.removed.push([url, col, row]);
}
}
tiles.needed = newNeeded;
if (this.debug) console.log(newNeeded);
if (this.debug) console.timeEnd('changedTiles');
return { centerCol, centerRow, changed }
}
/** Populates all tiles for a given level.
* @param {Tiles} tiles - the grid of tiles
* @param {number} level - The zoom level of the grid
*/
populateAllTiles(tiles, level) {
let all = this.allTiles(tiles, level);
for (let [url, col, row] of all) {
this.addTileQuadNode(level, col, row, url);
}
tiles.loadTiles(all, false, 0, 0);
}
/** Loads all tiles that are needed to fill the browser window.
* If the optional about parameter is provided (as a point with col as x,
* and row as y attr) the tiles are sorted by the distance to this point.
*
* @param {Tiles} tiles - the grid of tiles
* @param {number} level - The zoom level of the grid
* Optional parameter:
* @param {boolean} onlyone - if true only one tile is loaded
* @param {PIXI.Point} about - point of interaction
*/
populateTiles(tiles, level, { onlyone = false, about = null } = {}) {
if (tiles.isComplete())
return
let referenceCol = -1;
let referenceRow = -1;
let { centerCol, centerRow, changed } = this.changedTiles(tiles, level);
if (about != null) {
// We want to load tiles in the focus of the user first, therefore
// we sort according to the distance of the focus of interaction
let refPoint = this.toLocal(about);
let scaledTileSize = tiles.tileSize * tiles.tileScale;
referenceCol = Math.floor(refPoint.x / scaledTileSize);
referenceRow = Math.floor(refPoint.y / scaledTileSize);
}
else {
referenceCol = centerCol;
referenceRow = centerRow;
}
referenceCol = centerCol;
referenceRow = centerRow;
let removed = changed.removed;
for (let [url, col, row] of removed) {
this.removeTileQuadNode(level, col, row, url);
}
let added = changed.added;
if (added.length == 0) return
for (let [url, col, row] of added) {
this.addTileQuadNode(level, col, row, url);
}
let ref = new PIXI.Point(referenceCol, referenceRow);
// Note: The array must be sorted in a way that the nearest tiles
// are at the end of the array since the load queue uses Array.push
// Array.pop
added.sort((a, b) => {
let aa = new PIXI.Point(a[1], a[2]);
let bb = new PIXI.Point(b[1], b[2]);
let da = Points.distance(aa, ref);
let db = Points.distance(bb, ref);
return db - da
});
tiles.loadTiles(added, onlyone, referenceCol, referenceRow);
}
/** Private method: creates all tiles for a given level.
* @param {number} level - The zoom level of the grid
* @return {Tiles} - tiles
*/
_createTiles(key, level) {
let [cols, rows, w, h] = this.info.dimensions(level);
let increasedLevels = level - this.info.baseLevel;
let invScale = Math.pow(0.5, increasedLevels);
let tiles = new Tiles(
level,
this,
invScale,
cols,
rows,
w,
h,
this.info.tileSize,
this.info.overlap
);
this.addTiles(key, tiles);
if (this.info.clip) {
let rest = this.info.rests[level];
if (rest) {
let x = rest.restCol * this.info.tileSize * invScale;
let y = rest.restRow * this.info.tileSize * invScale;
tiles.x = -x;
tiles.y = -y;
}
}
return tiles
}
/** Ensures that all needed tiles of a given level are loaded. Creates
* a new Tiles layer if necessary
* @param {number} level - The zoom level of the grid
* @return {Tiles} tiles
*/
ensureTiles(level, about) {
let key = level.toString();
if (key in this.tileLayers) {
let tiles = this.tileLayers[key];
this.populateTiles(tiles, level, { about: about });
return tiles
}
let tiles = this._createTiles(key, level);
this.populateTiles(tiles, level, { about: about });
//console.log("ensureTiles", level)
return tiles
}
untintTiles(level) {
let key = level.toString();
if (key in this.tileLayers) {
let tiles = this.tileLayers[key];
}
}
/** Ensures that all tiles of a given level are loaded.
* @param {number} level - The zoom level of the grid
*/
ensureAllTiles(level) {
let key = level.toString();
if (key in this.tileLayers) {
let tiles = this.tileLayers[key];
this.populateAllTiles(tiles, level);
tiles.keep = true;
return
}
let tiles = this._createTiles(key, level);
this.populateAllTiles(tiles, level);
tiles.keep = true;
return tiles
}
hideTilesAboveLevel(level) {
Object.keys(this.tileLayers).forEach(key => {
let tiles = this.tileLayers[key];
if (tiles.level > level) {
tiles.visible = false;
}
});
}
/** Destroys all tiles above a given level to ensure that the memory can
* be reused.
* @param {number} level - The zoom level of the grid
*/
destroyTilesAboveLevel(level) {
Object.keys(this.tileLayers).forEach(key => {
let tiles = this.tileLayers[key];
if (tiles.level > level && !tiles.keep) {
for (let url of tiles.available.keys()) {
let quad = this.quadTrees.get(url);
if (quad) this.removeTileQuadNode(quad);
}
this.destroyTiles(key);
}
});
}
destroyAllTiles() {
Object.keys(this.tileLayers).forEach(key => {
this.destroyTiles(key);
});
}
/**
* Tint tiles in all layers that are no longer needed
*
* @memberof DeepZoomImage
*/
tintObsoleteTiles() {
Object.keys(this.tileLayers).forEach(key => {
let tiles = this.tileLayers[key];
tiles.untintTiles();
if (!tiles.keep) {
tiles.tintObsoleteTiles();
}
});
}
/**
* Destroy tiles in all layers that are no longer needed
*
* @memberof DeepZoomImage
*/
destroyUnneededTiles() {
Object.keys(this.tileLayers).forEach(key => {
let tiles = this.tileLayers[key];
if (!tiles.keep) {
tiles.destroyUnneededTiles();
}
});
}
/**
* Destroy tiles in all layers that are no longer needed
*
* @memberof DeepZoomImage
*/
destroyObsoleteTiles() {
Object.keys(this.tileLayers).forEach(key => {
let tiles = this.tileLayers[key];
if (!tiles.keep) {
tiles.destroyObsoleteTiles();
}
});
}
/**
* Destroy tiles in all layers that are not part of the
* visible quadTrees
*
* @memberof DeepZoomImage
*/
destroyTiles() {
Object.keys(this.tileLayers).forEach(key => {
let tiles = this.tileLayers[key];
if (!tiles.keep) {
tiles.destroyTiles(this.quadTrees);
}
});
}
/* Tint all tiles
* @param {number} level - The zoom level of the grid
*/
tintTilesBelowLevel(level) {
Object.keys(this.tileLayers).forEach(key => {
let tiles = this.tileLayers[key];
if (tiles.level < level) {
tiles.tintTiles(this.quadTrees);
}
});
}
/**
* Ensure that the given tiles layer is the topmost one and visible.
* @param {*} tiles
*/
bringTilesToFront(tiles) {
this.tileContainer.addChild(tiles);
tiles.visible = true;
}
/** A callback function that can be used by a Scatter view to inform
* the zoomable image that it has been moved, rotated or scaled, and should
* load tiles accordingly.
* @param {PIXI.Point} translated - the movement of the scatter
* @param {number} scale - the zoom factor
* @param {PIXI.Point} about - the anchor point of the zoom
* @param {boolean} fast - informs the callback to return as fast as possible,
* i.e. after loading a single tile
* @param {boolean} debug - log debug infos
*/
transformed(event) {
let key = this.currentLevel.toString();
let currentTiles = this.tileLayers[key];
if (typeof currentTiles == 'undefined') {
return
}
if (event.fast) {
this.fastLoads += 1;
this.populateTiles(currentTiles, this.currentLevel, {
onlyone: false,
about: event.about
});
if (this.fastLoads == 3) {
this.fastLoads = 0;
}
else {
return
}
}
if (event.scale == null) {
this.ensureTiles(this.currentLevel, event.about);
return
}
let level = this.levelForScale(event.scale);
let newLevel = Math.max(level, this.minimumLevel);
if (newLevel != this.currentLevel) {
if (!currentTiles.keep) {
currentTiles.loader.cancel();
}
this.hideTilesAboveLevel(newLevel);
currentTiles = this.ensureTiles(newLevel, event.about);
this.currentLevel = newLevel;
} else {
this.ensureTiles(this.currentLevel, event.about);
}
this.bringTilesToFront(currentTiles);
if (this._foreground) {
this.addChild(this._foreground);
}
}
/**
*Activates the textures on the DeepZoomImage.
*
* @memberof DeepZoomImage
*/
activate() {
this.destroyTilesAboveLevel(this.currentLevel);
this.ensureTiles(this.currentLevel, null);
//console.log("Activate Textures!", this.currentLevel)
}
/**
*Dectivates the textures on the DeepZoomImage.
*
* @memberof DeepZoomImage
*/
deactivate() {
this.destroyAllTiles();
Object.keys(this.tileLayers).forEach(key => {
this.destroyTiles(key);
});
this.tileContainer.destroy({ children: true });
printTileCacheInfos();
}
throwFinished() {
console.log("throwFinished");
let key = this.currentLevel.toString();
let currentTiles = this.tileLayers[key];
if (typeof currentTiles == 'undefined') {
return
}
this.ensureTiles(this.currentLevel);
// let all = new Set()
// for (let tile of currentTiles.children) {
// all.add(tile.url)
// }
// let { centerCol, centerRow, needed } = this.neededTiles(currentTiles, this.currentLevel)
// for (let [url, col, row] of needed) {
// all.delete(url)
// }
// for (let url of all) {
// currentTiles.destroyTileByUrl(url)
// }
// currentTiles.loader.loader.reset()
}
}
let globalScatterLoaderCanvas = null;
class ScatterLoader extends CardLoader {
get scatter() {
return this.src
}
unscaledSize() {
let displayObject = this.scatter.displayObject;
let w = displayObject.width;
let h = displayObject.height;
return [w / displayObject.scale.x, h / displayObject.scale.y]
}
scaledSize() {
let displayObject = this.scatter.displayObject;
let w = displayObject.width;
let h = displayObject.height;
return [w, h]
}
cloneScatterImage() {
let w = this.scatter.width;
let h = this.scatter.height;
let isSprite = this.scatter.displayObject instanceof PIXI.Sprite;
let isDeepZoom = this.scatter.displayObject instanceof DeepZoomImage;
let resolution = app.renderer.resolution;
if (isSprite) {
w = this.scatter.displayObject.texture.width;
h = this.scatter.displayObject.texture.height;
}
else if (isDeepZoom) {
let [ww, hh] = this.scatter.displayObject.baseSize;
w = ww;
h = hh;
}
if (globalScatterLoaderCanvas === null) {
globalScatterLoaderCanvas = document.createElement('canvas');
}
let canvas = globalScatterLoaderCanvas;
canvas.width = w;
canvas.height = h;
let renderer = new PIXI.WebGLRenderer(w, h, {
view: canvas,
resolution: resolution});
let displayObject = this.scatter.displayObject;
let x = displayObject.x;
let y = displayObject.y;
let rot = displayObject.rotation;
let sx = displayObject.scale.x;
let sy = displayObject.scale.y;
displayObject.rotation = 0;
// The Safari WebGLRenderer wants everything flipped
// See https://github.com/pixijs/pixi.js/issues/2283
displayObject.x = 0;
if (Capabilities.isSafari) {
displayObject.y = h;
displayObject.scale.set(1, -1); // sx, -sy)
}
else {
displayObject.y = 0;
displayObject.scale.set(1, 1);
}
if (isSprite) {
displayObject.width = w;
displayObject.height = h;
}
renderer.render(displayObject);
displayObject.rotation = rot;
displayObject.x = x;
displayObject.y = y;
displayObject.scale.set(sx, sy);
let url = canvas.toDataURL();
return [x, y, w, h, url]
}
load(domNode) {
return new Promise((resolve, reject) => {
let isImage = domNode instanceof HTMLImageElement;
let isSprite = this.scatter.displayObject instanceof PIXI.Sprite;
let image = (isImage) ? domNode : document.createElement("img");
let [x, y, w, h, cloneURL] = this.cloneScatterImage();
let [ww, hh] = this.unscaledSize();
image.onload = (e) => {
if (!isImage)
domNode.appendChild(image);
this.x = x;
this.y = y;
this.wantedWidth = ww;
this.wantedHeight = hh;
this.scale = 1;
this.rotation = this.scatter.rotation;
resolve(this);
};
image.onerror = (e) => {
reject(this);
};
image.src = cloneURL;
})
}
}
class FlipEffect {
constructor(scatter, domScatterContainer, flipTemplate, backLoader) {
this.flipped = false;
this.scatter = scatter;
this.backLoader = backLoader;
this.scatterLoader = new ScatterLoader(scatter);
this.domFlip = new DOMFlip(domScatterContainer, flipTemplate,
this.scatterLoader,
backLoader, {
onBack: this.backCardClosed.bind(this)
});
this.setupInfoButton();
}
startFlip() {
let center = this.flipCenter();
let loader = this.backLoader;
this.domFlip.load().then((domFlip) => {
this.scatter.displayObject.visible = false;
domFlip.centerAt(center);
domFlip.zoom(this.scatter.scale);
let target = this.constraintFlipCenter(center, loader);
console.log("FlipEffect.startFlip", target, loader);
domFlip.start({targetCenter: target});
});
}
unscaledSize() {
return this.scatterLoader.unscaledSize()
}
flipCenter() {
let isSprite = this.scatter.displayObject instanceof PIXI.Sprite;
let resolution = (isSprite) ? app.renderer.resolution : 1;
let center = this.scatter.center;
let canvas = app.renderer.view;
let domNode = this.domFlip.domScatterContainer.element;
let page = window.convertPointFromNodeToPage(canvas,
center.x*resolution,
center.y*resolution);
let local = window.convertPointFromPageToNode(domNode, page.x, page.y);
return local
}
constraintFlipCenter(center, loader) {
let w = loader.wantedWidth;
let h = loader.wantedHeight;
console.log("constraintFlipCenter", w, h);
let canvas = app.renderer.view;
let x = center.x;
let y = center.y;
if (x < w/2)
x = w/2;
if (y < h/2)
y = h/2;
if (x > canvas.width)
x = canvas.width - w/2;
if (y > canvas.height)
y = canvas.height - h/2;
return { x, y }
}
setupInfoButton() {
let iscale = 1.0 / this.scatter.scale;
this.infoBtn = new PIXI.Graphics();
this.infoBtn.beginFill(0x333333);
this.infoBtn.lineStyle(4, 0xFFFFFF);
this.infoBtn.drawCircle(0, 0, 22);
this.infoBtn.endFill();
this.infoBtn.beginFill(0xFFFFFF);
this.infoBtn.lineStyle(0);
this.infoBtn.drawCircle(0, -8, 4);
this.infoBtn.endFill();
this.infoBtn.lineStyle(6, 0xFFFFFF);
this.infoBtn.moveTo(0, -2);
this.infoBtn.lineTo(0, 14);
this.infoBtn.endFill();
this.infoBtn.on('click', (e) => { this.infoSelected(); });
this.infoBtn.on('tap', (e) => { this.infoSelected(); });
this.infoBtn.interactive = true;
this.infoBtn.width = 44;
this.infoBtn.height = 44;
this.infoBtn.pivot.x = 30;
this.infoBtn.pivot.y = 30;
let displayObject = this.scatter.displayObject;
let [w, h] = this.unscaledSize();
this.infoBtn.position = new PIXI.Point(w, h);
if (displayObject.foreground) {
this.infoBtn.scale.x = iscale;
this.infoBtn.scale.y = iscale;
displayObject.foreground.addChild(this.infoBtn);
}
else {
displayObject.addChild(this.infoBtn);
}
this.scatter.addTransformEventCallback(e => {
let displayObject = this.scatter.displayObject;
if (displayObject.foreground) {
if (e.scale) {
let iscale = 1.0 / e.scale;
this.infoBtn.scale.x = iscale;
this.infoBtn.scale.y = iscale;
}
}
});
}
setupButton(url) {
let svgImage = new Image();
let canvas = document.createElement('canvas');
canvas.width = 88 * 4;
canvas.height = 44 * 4;
svgImage.onload = e => {
let displayObject = this.scatter.displayObject;
canvas.getContext ('2d').drawImage(svgImage, 0, 0,
canvas.width, canvas.height);
let texure = new PIXI.Texture(new PIXI.BaseTexture(canvas));
this.infoBtn = new PIXI.Sprite(texure);
this.infoBtn.anchor.set(0.5, 0.5);
if (displayObject.foreground) {
displayObject.foreground.addChild(this.infoBtn);
}
else {
displayObject.addChild(this.infoBtn);
}
this.infoBtn.scale.set(0.5, 0.5);
let [w, h] = this.unscaledSize();
this.infoBtn.position = new PIXI.Point(w, h);
this.infoBtn.interactive = true;
this.infoBtn.updateTransform();
this.infoBtn.on('click', (e) => { this.infoSelected(); });
this.infoBtn.on('tap', (e) => { this.infoSelected(); });
};
svgImage.src = url;
}
infoSelected() {
this.startFlip();
}
backSelected() {
this.domFlip.start();
}
backCardClosed() {
/*** The flip effect should now be in it's initial state again. All
memory should be freed. ***/
let displayObject = this.scatter.displayObject;
displayObject.visible = true;
this.domFlip.fadeOutAndRemove();
this.flipped = false;
}
targetRotation(alpha) {
let ortho = 90;
let rest = alpha % ortho;
let delta = 0.0;
if (rest > (ortho / 2.0)) {
delta = ortho - rest;
}
else {
delta = -rest;
}
return delta
}
}
/* globals Power2, Sine */
/*eslint no-console: ["error", { allow: ["log", "info", "error"] }]*/
/**
* Callback for the flippable onStart function.
*
* @callback onStartCallback
* @param {Flippable} flippable - A reference to the flippable (also this refers to the flippable).
*/
/**
* Callback for the flippable onUpdate function.
*
* @callback onUpdateCallback
* @param {Flippable} flippable - A reference to the flippable (also this refers to the flippable).
*/
/**
* Callback for the flippable onComplete function.
*
* @callback onCompleteCallback
* @param {Flippable} flippable - A reference to the flippable (also this refers to the flippable).
*/
/**
* Class that represents a PixiJS Flippable.
*
* @example
* const front = PIXI.Sprite.fromImage('./assets/front.jpg')
* const back = PIXI.Sprite.fromImage('./assets/back.jpg')
* app.scene.addChild(front)
*
* // Create the flippable
* const flippable = new Flippable(front, back, app.renderer)
*
* front.interactive = true
* front.on('click', event => flippable.toggle())
*
* @class
* @extends PIXI.projection.Camera3d
* @see {@link https://github.com/pixijs/pixi-projection|PixiJS Projection}
* @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/flippable.html|DocTest}
*/
class Flippable extends PIXI.projection.Camera3d {
/**
* Creates an instance of a Flippable.
*
* @constructor
* @param {PIXI.DisplayObject} front - The object to show initially. Should have been added to the scene.
* @param {PIXI.DisplayObject} back - The object to show on the backside. Should have not been added to the scene.
* @param {PIXI.WebGLRenderer|PIXI.CanvasRenderer} renderer - The renderer of the application.
* @param {object} [opts] - An options object which can contain the following properties.
* @param {number} [opts.duration=1] - The duration of the flip animation in seconds.
* @param {GSAP.Ease} [opts.ease=Power2.easeOut] - The ease of the flip animation.
* @param {boolean} [opts.shadow=false] - Should be a shadow been display during the animation?
* @param {numer} [opts.eulerX=0] - The shift of the x-axis during the animation.
* @param {numer} [opts.eulerY=0] - The shift of the y-axis during the animation.
* @param {GSAP.Ease} [opts.eulerEase=Sine.easeOut] - The ease of the shift.
* @param {boolean} [opts.useBackTransforms=false] - When set to true, the flip animation also animates to the transform parameters of the back-object.
* @param {GSAP.Ease} [opts.transformEase=Power2.easeOut] - The ease of the transform.
* @param {numer} [opts.focus=800] - The value of the focus of the 3D camera (see pixi-projection).
* @param {numer} [opts.near=10] - The near value of the 3D camera (see pixi-projection).
* @param {numer} [opts.far=10000] - The far value of the 3D camera (see pixi-projection).
* @param {boolean} [opts.orthographic=false] - Should the flip animation be an orthographic animation?
* @param {function} [opts.onStart=null] - A callback executed on start of the flip animation.
* @param {function} [opts.onUpdate=null] - A callback executed on each step of the flip animation.
* @param {function} [opts.onComplete=null] - A callback executed when the flip animation is finished.
*/
constructor(front, back, renderer, opts = {}) {
super();
this.opts = Object.assign({}, {
front,
back,
renderer,
duration: 1,
ease: Power2.easeOut,
shadow: false,
eulerX: 0,
eulerY: 0,
eulerEase: Sine.easeOut,
useBackTransforms: false,
transformEase: Power2.easeOut,
focus: 800,
near: 10,
far: 10000,
orthographic: false
}, opts);
// planes
//--------------------
this.setPlanes(this.opts.focus, this.opts.near, this.opts.far, this.opts.orthographic);
// flipped
//--------------------
this._flipped = false;
// objects
//--------------------
this.objects = {};
// setup
//--------------------
this.setup();
}
/**
* Creates children and instantiates everything.
*
* @private
* @return {Flippable} A reference to the flippable for chaining.
*/
setup() {
const scale = .5;
// filters
//--------------------
const blurFilter = new PIXI.filters.BlurFilter();
blurFilter.blur = 0.2;
this.objects.blurFilter = blurFilter;
// outer
//--------------------
const outer = new PIXI.projection.Container3d();
outer.scale3d.set(scale);
this.addChild(outer);
this.objects.outer = outer;
// shadow
//--------------------
const shadow = new PIXI.projection.Sprite3d(PIXI.Texture.fromImage('../../assets/images/shadow.png'));
shadow.renderable = false;
shadow.anchor.set(0.5);
shadow.scale3d.set(.98);
shadow.alpha = 0.7;
shadow.filters = [blurFilter];
shadow.visible = this.opts.shadow;
outer.addChild(shadow);
this.objects.shadow = shadow;
// inner
//--------------------
const inner = new PIXI.projection.Container3d();
inner.euler.y = Math.PI;
outer.addChild(inner);
this.objects.inner = inner;
// front
//--------------------
const front = new PIXI.projection.Sprite3d(PIXI.Texture.EMPTY);
front.scale.set(-1 / scale, 1 / scale);
front.renderable = true;
front.anchor.set(.5);
inner.addChild(front);
this.objects.front = front;
// back
//--------------------
const back = new PIXI.projection.Sprite3d(PIXI.Texture.EMPTY);
back.scale.set(1 / scale, 1 / scale);
back.renderable = false;
back.anchor.set(.5);
inner.addChild(back);
this.objects.back = back;
return this
}
/**
* Gets or sets the flipped state.
*
* @member {boolean}
*/
get flipped() {
return this._flipped
}
set flipped(toBack) {
this._flipped = toBack;
// references
//--------------------
const front = this.objects.front;
const back = this.objects.back;
const inner = this.objects.inner;
const shadow = this.objects.shadow;
const blurFilter = this.objects.blurFilter;
const half = this.opts.duration / 2;
const ease = this.opts.eulerEase;
const fromObject = toBack ? this.opts.front : this.opts.back;
const toObject = toBack ? this.opts.back : this.opts.front;
// set textures for virtual front and virtual back
//--------------------
front.texture = this.generateTexture(this.opts.front);
back.texture = this.generateTexture(this.opts.back);
// switch objects and set params for virtual objects
//--------------------
const fromCenter = this.anchorToCenter(fromObject);
const toCenter = this.anchorToCenter(toObject);
// from values
//--------------------
this.x = fromCenter.x;
this.y = fromCenter.y;
front.width = fromObject.width * 2;
front.height = fromObject.height * 2;
back.width = fromObject.width * 2;
back.height = fromObject.height * 2;
this.rotation = fromObject.rotation;
this.skew.x = fromObject.skew.x;
this.skew.y = fromObject.skew.y;
// calculate to values
//--------------------
const to = {
x: this.opts.useBackTransforms ? toCenter.x : fromCenter.x,
y: this.opts.useBackTransforms ? toCenter.y : fromCenter.y,
anchorX: this.opts.useBackTransforms ? toObject.x : fromObject.x,
anchorY: this.opts.useBackTransforms ? toObject.y : fromObject.y,
width: this.opts.useBackTransforms ? toObject.width * 2 : fromObject.width * 2,
height: this.opts.useBackTransforms ? toObject.height * 2 : fromObject.height * 2,
rotation: this.opts.useBackTransforms ? toObject.rotation : fromObject.rotation,
skewX: this.opts.useBackTransforms ? toObject.skew.x : fromObject.skew.x,
skewY: this.opts.useBackTransforms ? toObject.skew.y : fromObject.skew.y
};
// set toObject end values
//--------------------
toObject.x = to.anchorX;
toObject.y = to.anchorY;
toObject.width = to.width / 2;
toObject.height = to.height / 2;
toObject.rotation = to.rotation;
toObject.skew.x = to.skewX;
toObject.skew.y = to.skewY;
// flip
//--------------------
TweenLite.to(inner.euler, this.opts.duration, {
y: toBack ? 0 : Math.PI,
ease: this.opts.ease,
onStart: () => {
this.switchDisplayObject(fromObject, this);
shadow.renderable = true;
if (this.opts.onStart) {
this.opts.onStart(this, this);
}
},
onUpdate: () => {
this.layout();
if (this.opts.onUpdate) {
this.opts.onUpdate(this, this);
}
},
onComplete: () => {
this.switchDisplayObject(this, toObject);
shadow.renderable = false;
if (this.opts.onComplete) {
this.opts.onComplete(this, this);
}
}
});
// x & y
//--------------------
TweenLite.to(this, this.opts.duration, {
x: to.x,
y: to.y,
ease: this.opts.transformEase
});
// width & height
//--------------------
TweenLite.to([front, back], this.opts.duration, {
width: to.width,
height: to.height,
ease: this.opts.transformEase
});
// rotation
//--------------------
TweenLite.to(this, this.opts.duration, {
directionalRotation: {
rotation: `${to.rotation}_short`,
useRadians: true
},
ease: this.opts.transformEase
});
// skewX & skewY
//--------------------
TweenLite.to(this.skew, this.opts.duration, {
x: to.skewX,
y: to.skewY,
ease: this.opts.transformEase
});
// camera
//--------------------
new TimelineMax()
.to(this.euler, half, {x: this.opts.eulerX, y: this.opts.eulerY, ease})
.to(this.euler, half, {x: 0, y: 0, ease});
// shadow
//--------------------
new TimelineMax()
.to(shadow, half, {alpha: .3, ease})
.to(shadow, half, {alpha: .7, ease});
// blurfilter
//--------------------
new TimelineMax()
.to(blurFilter, half, {blur: 6, ease})
.to(blurFilter, half, {blur: .2, ease});
}
/**
* Should be called to refresh the layout of the camera.
*
* @return {Flippable} A reference to the flippable for chaining.
*/
layout() {
const front = this.objects.front;
const back = this.objects.back;
const shadow = this.objects.shadow;
const inner = this.objects.inner;
inner.position3d.z = -Math.sin(inner.euler.y) * front.texture.baseTexture.width * 2;
//this.objects.shadow.euler = this.objects.inner.euler
shadow.euler.x = -inner.euler.x;
shadow.euler.y = -inner.euler.y;
if (this.frontSideInFront) {
front.renderable = true;
back.renderable = false;
shadow.width = front.width;
shadow.height = front.height;
} else {
front.renderable = false;
back.renderable = true;
shadow.width = back.width;
shadow.height = back.height;
}
return this
}
/**
* Toggles the flippable. Switches the sides.
*
* @private
* @return {Flippable} A reference to the flippable for chaining.
*/
toggle() {
this.flipped = !this.flipped;
return this
}
/**
* Gets the alignment state. true if the front side is in front, false otherwise.
*
* @member {boolean}
*/
get frontSideInFront() {
return !this.objects.inner.isFrontFace()
}
/**
* Calculates the center point of an PIXI.DisplayObject.
*
* @private
* @param {PIXI.DisplayObject} displayObject - The DisplayObject from which to calculate the center.
* @return {object} Return an object with x and y.
*/
anchorToCenter(displayObject) {
const bounds = displayObject.getBounds();
return {
x: bounds.x + bounds.width / 2,
y: bounds.y + bounds.height / 2
}
}
/**
* Creates children and instantiates everything.
*
* @private
* @param {PIXI.DisplayObject} displayObject - The DisplayObject from which to generate the texture.
* @return {PIXI.Texture} The generated PIXI.Texture.
*/
generateTexture(displayObject) {
// renderTexture
//--------------------
const renderTexture = PIXI.RenderTexture.create(displayObject.width, displayObject.height);
// save position
const transform = [displayObject.x, displayObject.y, displayObject.scale.x, displayObject.scale.y, displayObject.rotation, displayObject.skew.x, displayObject.skew.y, displayObject.pivot.x, displayObject.pivot.y];
displayObject.position.set(0, 0);
displayObject.skew.set(0, 0);
displayObject.rotation = 0;
// render
//--------------------
this.opts.renderer.render(displayObject, renderTexture);
// restore position
displayObject.setTransform(...transform);
return renderTexture
}
/**
* Removed the first DisplayObject and adds the second one at the exactly same position.
*
* @private
* @param {PIXI.DisplayObject} first - The old DisplayObject.
* @param {PIXI.DisplayObject} second - The new DisplayObject.
* @return {Flippable} A reference to the flippable for chaining.
*/
switchDisplayObject(first, second) {
if (first && second && first.parent) {
const parent = first.parent;
const index = parent.getChildIndex(first);
parent.addChildAt(second, index);
parent.removeChild(first);
}
return this
}
}
/**
*
*/
class Popover extends PIXI.Graphics {
constructor({title = null, text = null, x = 0, y = 0, placement = 'top', width = 250, titleStyle = {}, textStyle = {fontSize: '1.6em'}} = {}) {
super();
this.opts = {title, text, x, y, placement, width, titleStyle, textStyle};
this.padding = 12;
let style = {
fontFamily: 'Arial',
fontSize: '2em',
stroke: '#f6f6f6',
strokeThickness: 3,
wordWrap: true,
wordWrapWidth: width - (this.padding * 2)
};
this.titleTextStyle = new PIXI.TextStyle(Object.assign({}, style, titleStyle));
this.textTextStyle = new PIXI.TextStyle(Object.assign({}, style, textStyle));
if (title || text) {
this.setup();
this.draw();
this.positioning();
}
}
setup() {
this.removeChildren();
if (this.opts.title) {
this.titleText = new PIXI.Text(this.opts.title, this.titleTextStyle);
this.titleText.position.set(this.padding, this.padding);
this.addChild(this.titleText);
}
this.titleY = this.titleText ? this.titleText.y : 0;
this.titleHeight = this.titleText ? this.titleText.height : 0;
if (this.opts.text) {
this.textText = new PIXI.Text(this.opts.text, this.textTextStyle);
this.textText.position.set(this.padding, this.titleY + this.titleHeight + this.padding);
this.addChild(this.textText);
}
this.textY = this.textText ? this.textText.y : 0;
this.textHeight = this.textText ? this.textText.height : 0;
}
close() {
this.parent.removeChild(this);
}
draw() {
this.clear();
this.beginFill(0xffffff, 1);
this.lineStyle(1, 0x282828, .5);
// Draw rounded rectangle
const height = this.height + this.padding;
this.drawRoundedRect(0, 0, this.opts.width, height, 8);
// Draw anchor
this.drawAnchor(this.opts.placement);
// Draw title background
if (this.opts.title) {
this.lineStyle(0);
this.beginFill(0xf7f7f7, 1);
let x = 1;
let y = this.titleText.x + this.titleText.height + (this.padding / 2);
this.moveTo(x, y);
y = 9;
this.lineTo(x, y);
this.quadraticCurveTo(x, y - 8, x + 8, y - 8);
x += this.opts.width - 7;
y -= 8;
this.lineTo(x, y);
this.quadraticCurveTo(x + 5, y, x + 5, y + 8);
x += 5;
y += this.titleText.x + this.titleText.height + (this.padding / 2);
this.lineTo(x, y);
if (this.opts.text) {
x = 1;
this.lineTo(x, y);
} else {
this.quadraticCurveTo(x, y, x - 5, y + 4);
x = 6;
y += 4;
this.lineTo(x, y);
this.quadraticCurveTo(x, y, x - 5, y - 4);
}
}
this.endFill();
}
drawAnchor(placement) {
let x = 0;
let y = 0;
switch (placement) {
case 'bottom':
if (this.opts.title) {
this.beginFill(0xf7f7f7, 1);
}
x = (this.width / 2) - 10;
y = 1;
this.moveTo(x, y);
x += 10;
y -= 10;
this.lineTo(x, y);
x += 10;
y += 10;
this.lineTo(x, y);
break
case 'right':
x = 1;
y = (this.height / 2) - 10;
if (this.titleY + this.titleHeight > y) {
this.beginFill(0xf7f7f7, 1);
}
this.moveTo(x, y);
x -= 10;
y += 10;
this.lineTo(x, y);
x += 10;
y += 10;
this.lineTo(x, y);
break
case 'left':
x = this.width - 2;
y = (this.height / 2) - 10;
if (this.titleY + this.titleHeight > y) {
this.beginFill(0xf7f7f7, 1);
}
this.moveTo(x, y);
x += 10;
y += 10;
this.lineTo(x, y);
x -= 10;
y += 10;
this.lineTo(x, y);
break
default:
x = (this.width / 2) - 10;
y = this.height - 2;
this.moveTo(x, y);
x += 10;
y += 10;
this.lineTo(x, y);
x += 10;
y -= 10;
this.lineTo(x, y);
break
}
}
positioning() {
const x = this.opts.x;
const y = this.opts.y;
switch (this.opts.placement) {
case 'bottom':
this.position.set(x - (this.width / 2), y + 10);
break
case 'right':
this.position.set(x, y - (this.height / 2));
break
case 'left':
this.position.set(x - this.width, y - (this.height / 2));
break
default:
this.position.set(x - (this.width / 2), y - this.height);
break
}
}
}
/** A container for scatter objects, which uses a single InteractionMapper
* for all children. This reduces the number of registered event handlers
* and covers the common use case that multiple objects are scattered
* on the same level.
*/
class ScatterContainer extends PIXI.Graphics {
/**
* @constructor
* @param {PIXI.Renderer} renderer - PIXI renderer, needed for hit testing
* @param {Bool} stopEvents - Whether events should be stopped or propagated
* @param {Bool} claimEvents - Whether events should be marked as claimed
* if findTarget return as non-null value.
* @param {PIXI.Container} container - A container for the scatter
* @param {Bool} showBounds - Show bounds for debugging purposes.
* @param {Bool} showTouches - Show touches and pointer for debugging purposes.
* @param {Color} backgroundColor - Set background color if specified.
* @param {PIXIApp} app - Needed if showBounds is true to register
* update handler.
*/
constructor(renderer, {
stopEvents = true,
claimEvents = true,
container = null,
showBounds = false,
showPolygon = false,
showTouches = false,
backgroundColor = null,
app = window.app
} = {}) {
super();
this.container = container;
if (this.container)
this.containerDimensions = {
x: this.container.width,
y: this.container.height
};
this.backgroundWidth = null;
this.backgroundHeight = null;
this.app = app;
this.renderer = renderer;
this.stopEvents = stopEvents;
this.claimEvents = claimEvents;
this.delegate = new InteractionMapper$1(this.eventReceiver, this);
this.showBounds = showBounds;
this.showTouches = showTouches;
this.showPolygon = showPolygon;
this.backgroundColor = backgroundColor;
if (showBounds || showTouches || showPolygon) {
//console.log("Show TOUCHES!!!")
this.app.ticker.add((delta) => this.update(delta), this);
}
if (backgroundColor) {
this.updateBackground();
}
}
updateBackground() {
this.clear();
let rect = this.bounds;
this.beginFill(this.backgroundColor, 1);
this.drawRect(0, 0, rect.width, rect.height);
this.endFill();
}
get eventReceiver() {
return this.renderer.plugins.interaction.interactionDOMElement
}
get bounds() {
let x = 0;
let y = 0;
// @container: We need to call the constant values, as the container
// gets resized, when a child moves outside the original boundaries.
let w = (this.container) ? this.containerDimensions.x : (this.backgroundWidth || this.app.width);
let h = (this.container) ? this.containerDimensions.y : (this.backgroundHeight || this.app.height);
if (this.app.fullscreen && this.app.monkeyPatchMapping) {
let fixed = this.mapPositionToPoint({ x: w, y: 0 });
if (fixed.x < w) {
w = fixed.x;
}
if (fixed.y > 0) {
y += fixed.y;
h -= fixed.y;
}
}
return new PIXI.Rectangle(x, y, w, h)
}
get center() {
let r = this.bounds;
return { x: r.width / 2, y: r.height / 2 }
}
get polygon() {
let r = this.bounds;
let w2 = r.width / 2;
let h2 = r.height / 2;
let center = { x: w2, y: h2 };
let polygon = new Polygon(center);
polygon.addPoint({ x: -w2, y: -h2 });
polygon.addPoint({ x: w2, y: -h2 });
polygon.addPoint({ x: w2, y: h2 });
polygon.addPoint({ x: -w2, y: h2 });
return polygon
}
update(dt) {
this.clear();
this.lineStyle(1, 0x0000FF);
if (this.showBounds) {
for (let child of this.children) {
if (child.scatter) {
//let {x, y, width, height} = child.scatter.throwBounds()
// new PIXI.Rectangle(x, y, width, height)
this.drawShape(child.scatter.bounds);
let center = child.scatter.center;
this.drawCircle(center.x, center.y, 4);
this.drawCircle(child.scatter.x, child.scatter.y, 4);
}
}
this.lineStyle(2, 0x0000FF);
this.drawShape(this.bounds);
}
if (this.showPolygon) {
this.lineStyle(2, 0xFF0000);
for (let child of this.children) {
if (child.scatter) {
let polygon = child.scatter.polygon;
let shape = new PIXI.Polygon(polygon.flatAbsolutePoints());
shape.close();
this.drawShape(shape);
}
}
}
if (this.showTouches) {
let current = this.delegate.interaction.current;
for (let [key, point] of current.entries()) {
let local = this.mapPositionToPoint(point);
this.drawCircle(local.x, local.y, 12);
}
}
}
capture(event) {
if (this.stopEvents)
Events$1.stop(event);
return true
}
fakeInteractionEvent(point, key) {
return { data: { global: point, key: key } }
}
findHitScatter(data, displayObject, hit) {
// if (hit) {
// console.log("findHitScatter", displayObject)
// }
if (hit && this.hitScatter === null && typeof (displayObject) != undefined) {
this.hitScatter = (displayObject.scatter) ? displayObject.scatter : null;
}
}
mapPositionToPoint(point, element = null) {
// In case of nested scatters we get an additional parameter that
// contains the found scatter
let local = new PIXI.Point();
let interactionManager = this.renderer.plugins.interaction;
interactionManager.mapPositionToPoint(local, point.x, point.y);
if (element instanceof DisplayObjectScatter && element.displayObject.parent != null) {
return element.displayObject.parent.toLocal(local)
}
return local
}
/**
* New method hitTest implemented (in InteractionManager, since 4.5.0).
* See https://github.com/pixijs/pixi.js/pull/3878
*/
findTarget(event, local, global) {
if (event.claimedByScatter) {
return null
}
this.hitScatter = null;
let interactionManager = this.renderer.plugins.interaction;
let fakeEvent = this.fakeInteractionEvent(local);
interactionManager.processInteractive(fakeEvent,
this,
this.findHitScatter.bind(this), true);
if (this.claimEvents)
event.claimedByScatter = this.hitScatter;
return this.hitScatter
}
findTargetNew(event, local, global) {
// UO: still problematic. Does not find non interactive elements
// which are needed for some stylus applications
if (event.claimedByScatter) {
return null
}
this.hitScatter = null;
let interactionManager = this.renderer.plugins.interaction;
let displayObject = interactionManager.hitTest(local, this);
if (displayObject != null && displayObject.scatter != null)
this.hitScatter = displayObject.scatter;
if (this.claimEvents)
event.claimedByScatter = this.hitScatter;
return this.hitScatter
}
onStart(event, interaction) {
}
onMove(event, interaction) {
}
onEnd(event, interaction) {
for (let key of interaction.ended.keys()) {
let point = interaction.ended.get(key);
if (interaction.isLongPress(key)) {
this.onLongPress(key, point);
}
if (interaction.isTap(key)) {
this.onTap(key, point);
}
}
}
onTap(key, point) {
console.info('ScatterContainer.onTap');
}
onLongPress(key, point) {
console.info('ScatterContainer.onLongPress');
}
bringToFront(displayObject) {
this.addChild(displayObject);
}
layout(width, height) {
this.backgroundWidth = width;
this.backgroundHeight = height;
if (this.backgroundColor) {
this.updateBackground();
}
}
}
/** A wrapper for child elements of a ScatterContainer. Can be used
* to combine scattered objects with non-scattered objects. Any
* PIXI.DisplayObject can be wrapped.
*/
class DisplayObjectScatter extends AbstractScatter {
constructor(displayObject, renderer,
{ x = null, y = null,
minScale = 0.1,
maxScale = 1.0,
startScale = 1.0,
autoBringToFront = true,
translatable = true, scalable = true, rotatable = true, resizable = false,
movableX = true,
movableY = true,
throwVisibility = 44,
throwDamping = 0.95,
autoThrow = true,
rotationDegrees = null,
rotation = null,
overdoScaling = 1.5,
onTransform = null,
onThrowFinished = null } = {}) {
// For the simulation of named parameters,
// see: http://exploringjs.com/es6/ch_parameter-handling.html
super({
overdoScaling,
minScale, maxScale,
startScale,
autoBringToFront,
translatable, scalable, rotatable, resizable,
movableX, movableY, throwVisibility, throwDamping,
autoThrow,
onThrowFinished,
rotationDegrees, rotation,
onTransform
});
this.displayObject = displayObject;
this.displayObject.scatter = this;
this.renderer = renderer;
this.scale = startScale;
this.rotationDegrees = this.startRotationDegrees;
// Only set x and y if they are specified.
// Otherwise the displayobject gets corrupted.
if (x != null) this.x = x;
if (y != null) this.y = y;
}
getWorldScatter() {
return this
}
/** Returns geometry data as object. **/
getState() {
return {
scale: this.scale,
x: this.x,
y: this.y,
rotation: this.rotation
}
}
setup() {
this.setupMouseWheelInteraction();
}
roundPixel(value) {
// UO: Should be obsolete because Renderer supports roundPixels by default
return value
let res = this.renderer.resolution;
return Math.round(value * res) / res
}
get container() {
// return this.displayObject.parent
let obj = this.displayObject;
while (obj.parent != null && !(obj.parent instanceof ScatterContainer))
obj = obj.parent;
return obj.parent
}
get x() {
return this.position.x
}
set x(value) {
this.position.x = value;
}
get y() {
return this.position.y
}
set y(value) {
this.position.y = value;
}
get polygon() {
let polygon = new Polygon(this.center);
let w2 = this.width / 2;
let h2 = this.height / 2;
polygon.addPoint({ x: -w2, y: -h2 });
polygon.addPoint({ x: w2, y: -h2 });
polygon.addPoint({ x: w2, y: h2 });
polygon.addPoint({ x: -w2, y: h2 });
polygon.rotate(this.rotation);
return polygon
}
get containerBounds() {
return this.container.bounds
}
get containerPolygon() {
let container = this.container;
if (container == null) return null
return container.polygon
}
get position() {
return this.displayObject.position
}
set position(value) {
this.displayObject.position = value;
}
get scale() {
return this.displayObject.scale.x
}
set scale(value) {
this.displayObject.scale.x = value;
this.displayObject.scale.y = value;
}
get width() {
return this.displayObject.width
}
get height() {
return this.displayObject.height
}
get bounds() {
return this.displayObject.getBounds()
}
get pivot() {
return this.displayObject.pivot
}
get rotation() {
return this.displayObject.rotation
}
set rotation(value) {
this.displayObject.rotation = value;
}
get rotationDegrees() {
return Angle.radian2degree(this.displayObject.rotation)
}
set rotationDegrees(value) {
this.displayObject.rotation = Angle.degree2radian(value);
}
get center() {
let w2 = this.width / 2;
let h2 = this.height / 2;
let dist = Math.sqrt(w2 * w2 + h2 * h2);
let angle = Points.angle({ x: w2, y: h2 }, { x: 0, y: 0 });
let p = this.displayObject.x;
let c = Points.arc(this.position, this.rotation + angle, dist);
return c // Points.subtract(c, this.pivot)
}
get rotationOrigin() {
// In PIXI the default rotation and scale origin is the position
return this.position // Points.add(this.position, this.pivot)
}
mapPositionToContainerPoint(point) {
// UO: We need the coordinates related to this scatter in case
// of nested scatters
if (this.container != null)
return this.container.mapPositionToPoint(point, this)
return point
}
capture(event) {
return true
}
bringToFront() {
if (this.autoBringToFront) {
if (this.displayObject.parent instanceof ScatterContainer) {
let scatterContainer = this.displayObject.parent;
scatterContainer.bringToFront(this.displayObject);
} else if (this.displayObject.parent != null && this.displayObject.parent.scatter) {
this.displayObject.parent.scatter.toFront(this.displayObject);
}
}
}
toFront(displayObject) {
this.displayObject.addChild(displayObject);
}
validScale(scale) {
scale = Math.max(scale, this.minScale);
scale = Math.min(scale, this.maxScale);
return scale
}
}
/**
*
*/
class Command extends PIXI.Graphics {
/*** Abstract base class for record, play, and stop commands. ***/
constructor(tools, selectedColor, shape) {
super();
this.tools = tools;
this.shape = shape;
this.selected = false;
this.disabled = false;
this.selectedColor = selectedColor;
this.draw();
this.setup();
}
setup() {
}
draw() {
this.clear();
var color = (this.selected) ? this.selectedColor : 0xFFFFFF;
this.lineStyle(0);
this.beginFill(color, 1);
this.drawShape(this.shape);
this.endFill();
}
select() {
this.selected = true;
this.draw();
}
deselect() {
this.selected = false;
this.draw();
}
toggle() {
this.selected = !this.selected;
this.draw();
}
stop() {
this.selected = false;
this.draw();
}
}
class RecordCommand extends Command {
/*** Records events for later replay. ***/
setup() {
this.recorder = new EventRecorder();
}
toggle() {
super.toggle();
if (!this.selected) {
this.recorder.stopRecording();
}
}
recordEvent(event) {
this.recorder.record(event);
}
normalize(value, limit) {
return value / limit
}
normalizeX(value) {
return this.normalize(value, window.innerWidth)
}
normalizeY(value) {
return this.normalize(value, window.innerHeight)
}
whileNotStopped() {
return this.tools.play.selected
}
startReplay() {
let whileCondition = this.whileNotStopped.bind(this);
this.recorder.startReplay(whileCondition, () => this.tools.play.stop());
}
}
class PlayCommand extends Command {
/*** Plays recorded events. ***/
toggle() {
super.toggle();
if (this.selected && this.tools.record.recorder.recorded.length > 0) {
this.tools.startReplay();
}
}
}
class StopCommand extends Command {
/*** Stops recording and playing. ***/
toggle() {
super.toggle();
this.tools.record.stop();
this.tools.play.stop();
setTimeout(this.deselect.bind(this), 500);
}
}
class RecorderTools extends PIXI.Container {
constructor(renderer) {
super(renderer);
this.renderer = renderer;
this.setupToolbar();
this.replayRate = 100.0;
this.onReset = null;
this.touchGraphics = new PIXI.Graphics();
this.showTouches();
}
setup(container) {
// Since this delegate might shadow another delegate, we mus avoid
// capturing PointerEvents.
this.delegate = new InteractionMapper(container, this, { capturePointerEvents: false });
}
findTarget(event, local, global) {
return this
}
setupToolbar() {
this.toolbar = new PIXI.Graphics();
this.record = new RecordCommand(this, 0xCC0000, new PIXI.Circle(0, 0, 16));
this.play = new PlayCommand(this, 0x0000CC, new PIXI.Polygon(0, 16,
32, 16 + 16,
0, 16 + 32,
0, 16));
this.stop = new StopCommand(this, 0x0000CC,
new PIXI.Rectangle(0, 0, 32, 32));
this.toolbar.addChild(this.record).position.set(44, 48);
this.toolbar.addChild(this.play).position.set(44 + 44, 16);
this.toolbar.addChild(this.stop).position.set(44 + 44 + 44 + 16, 32);
this.updateToolbar();
this.addChild(this.toolbar);
}
updateToolbar() {
var graphics = this.toolbar;
graphics.clear();
graphics.beginFill(0x000000, 0.5);
graphics.lineStyle(2, 0xFFFFFF, 1);
graphics.drawRoundedRect(16, 16, 44 * 4 + 8, 64, 8);
graphics.endFill();
}
onMouseWheel(event) {
console.log('onMouseWheel missing');
}
onPress(point) {
if (this.record.containsPoint(point)) {
this.record.toggle();
}
if (this.play.containsPoint(point)) {
this.play.toggle();
}
if (this.stop.containsPoint(point)) {
this.stop.toggle();
if (this.onReset) {
this.onReset();
}
}
}
mapPositionToPoint(point) {
let local = new PIXI.Point();
this.renderer.plugins.interaction.mapPositionToPoint(local, point.x, point.y);
return local
}
extractLocal(event) {
return this.mapPositionToPoint(Events.extractPoint(event))
}
capture(event) {
if (typeof event.mouseDownSubstitute != 'undefined')
return false
return true
}
startReplay() {
if (this.onReset) {
this.onReset();
}
this.record.startReplay();
}
showTouches() {
this.addChild(this.touchGraphics);
}
recordEvent(event) {
if (this.record.selected) {
this.record.recordEvent(event);
}
}
onStart(event, interaction) {
let local = this.extractLocal(event);
if (!this.toolbar.containsPoint(local)) {
this.recordEvent(event);
this.updateTouchGraphics(interaction);
}
}
onMove(event, interaction) {
let local = this.extractLocal(event);
if (!this.toolbar.containsPoint(local)) {
this.recordEvent(event);
this.updateTouchGraphics(interaction);
}
}
onEnd(event, interaction) {
let local = this.extractLocal(event);
if (this.toolbar.containsPoint(local)) {
this.onPress(local);
}
else {
this.recordEvent(event);
this.updateTouchGraphics(interaction);
}
}
updateTouchGraphics(interaction) {
let current = interaction.current;
let graphics = this.touchGraphics;
if (graphics != null) {
graphics.clear();
for (let key of current.keys()) {
if (interaction.ended.has(key)) {
continue
}
let p = current.get(key);
if (key == 'mouse') {
graphics.beginFill(0xCC0000, 0.5);
} else {
graphics.beginFill(0xCCCCCC, 0.5);
}
graphics.drawCircle(p.x, p.y, 20);
}
graphics.endFill();
}
}
}
class AppTest extends PIXIApp {
constructor(canvas, container) {
super({ view: canvas, backgroundColor: 0x000000 });
this.container = container;
}
sceneFactory() {
return new RecorderTools(this.renderer)
}
setup() {
super.setup();
this.scene.setup(this.container);
}
run(reset = null) {
this.scene.onReset = reset;
console.log('Running AppTest');
return this
}
}
/**
* Defines usefull default text styles.
*/
class FontInfo {
static get small() {
return app.theme.textStyleSmall
}
static get normal() {
return app.theme.textStyle
}
static get centered() {
return Object.assign({}, app.theme.textStyle, { align: 'center' })
}
}
/**
* Static methods to support hyphenation of lines.
*
* @class Hypenate
*/
class Hypenate {
static splitPart(part) {
let parts = part.split('-');
if (parts.length == 1)
return [part]
let result = [];
let last = parts.pop();
for (let p of parts) {
result.push(p + '-');
}
result.push(last);
return result.filter(p => p.length > 0)
}
static splitWord(word) {
if (typeof (language) == 'undefined') {
if (word.indexOf('-') > -1) {
return word.split('-')
}
return [word]
}
let parts = language.hyphenate(word);
let result = [];
for (let part of parts) {
for (let splitted of this.splitPart(part)) {
result.push(splitted);
}
}
return result
}
static abbreviateLine(label, style, width) {
const pixiStyle = new PIXI.TextStyle(style);
let metrics = PIXI.TextMetrics.measureText(label, pixiStyle);
while(metrics.width > width && label.length > 3) {
label = label.slice(0, label.length-1);
metrics = PIXI.TextMetrics.measureText(label, pixiStyle);
}
label = label.slice(0, label.length-1);
return label + '…'
}
static splitLine(line, pixiStyle, width, space, minus) {
let x = 0;
let result = '';
let words = line.split(' ');
for (let word of words) {
let wordMetrics = PIXI.TextMetrics.measureText(word, pixiStyle);
if (x + wordMetrics.width >= width) {
let parts = this.splitWord(word);
let newWord = '';
if (parts.length == 1) {
newWord += '\n' + word + ' ';
x = wordMetrics.width + space.width;
}
else {
let first = true;
let lastPart = '';
for (let part of parts) {
let partMetrics = PIXI.TextMetrics.measureText(part, pixiStyle);
if (x + partMetrics.width + space.width > width) {
newWord += ((first || lastPart.endsWith('-')) ? '\n' : '-\n') + part;
x = partMetrics.width;
}
else {
newWord += part;
x += partMetrics.width;
}
lastPart = part;
first = false;
}
x += space.width;
}
result += newWord + ' ';
}
else {
result += word + ' ';
x += wordMetrics.width + space.width;
}
}
return result
}
/**
* Main method and entry point for text hyphenation
*
* @static
* @param {*} text
* @param {*} style
* @param {*} width
* @returns
* @memberof Hypenate
*/
static splitLines(text, style, width) {
const pixiStyle = new PIXI.TextStyle(style);
const lines = text.split('\n');
const space = PIXI.TextMetrics.measureText(' ', pixiStyle);
const minus = PIXI.TextMetrics.measureText('-', pixiStyle);
let result = [];
for (let line of lines) {
result.push(this.splitLine(line, pixiStyle, width, space, minus));
}
return result.join('\n')
}
}
/**
* A specialization of the PIXI.Graphics class that allows to
* resuse and place labels across different layout variants
*
* @export
* @class LabeledGraphics
* @extends {PIXI.Graphics}
*/
class LabeledGraphics extends PIXI.Graphics {
/**
* Creates an instance of LabeledGraphics and defines a local label cache.
*
* @memberof LabeledGraphics
*/
constructor() {
super();
this.labels = new Map();
}
_createText(label, fontInfo) {
return new PIXI.Text(label, fontInfo)
}
/**
* Main additional method. Ensures that a text object is created that is cached
* under the given key.
*
* @param {*} key - The cache key
* @param {*} label - The label to show
* @param {*} [attrs={}] - Defines attributes of the text object.
* align: 'right', 'left', or 'center'
* justify: 'top', 'bottom', or 'center'
* maxLines: {integer} truncates the text and adds ellipsis
* maxHeight: {number} truncates text that needs more space and adds ellipsis
* maxWidth: {number} word wraps text using hyphenation if possible
* @param {*} [fontInfo=FontInfo.normal] - Defines PIXI.TextStyle attributes
* @returns {PIXI.Text} instance
* @memberof LabeledGraphics
*/
ensureLabel(key, label, attrs = {}, fontInfo = FontInfo.normal) {
if (attrs.maxWidth && attrs.maxLines == 1) {
label = Hypenate.abbreviateLine(label, fontInfo, attrs.maxWidth);
}
else {
if (attrs.maxWidth) {
label = Hypenate.splitLines(label, fontInfo, attrs.maxWidth);
}
if (attrs.maxLines) {
label = this.truncateLabel(label, fontInfo, attrs.maxLines);
}
if (attrs.maxHeight) {
let styleInfo = new PIXI.TextStyle(fontInfo);
let metrics = PIXI.TextMetrics.measureText(label, styleInfo);
let maxLines = Math.max(attrs.maxHeight / metrics.lineHeight, 1);
label = this.truncateLabel(label, fontInfo, maxLines);
}
}
if (!this.labels.has(key)) {
let text = this._createText(label, fontInfo);
this.labels.set(key, text);
this.addChild(text);
}
let text = this.labels.get(key);
for (let k in attrs) {
text[k] = attrs[k];
}
if (label != text.text)
text.text = label;
// We do not follow the flexbox jargon and use align for x and justify for y axis
// This deviation is needed to ensure backward compatability
switch (attrs.justify || null) {
case 'top':
text.anchor.y = 0;
break
case 'bottom':
text.anchor.x = 1;
break
default:
text.anchor.y = 0.5;
break
}
switch (attrs.align) {
case 'right':
text.anchor.x = 1;
break
case 'center':
text.anchor.x = 0.5;
break
default:
text.anchor.x = 0;
break
}
text.visible = true;
return text
}
/**
* Private method that truncates the text and adds an ellipsis if there are more lines
* than wanted
*
* @param {*} text
* @param {*} style
* @param {*} [maxLines=Infinity]
* @returns
* @memberof LabeledGraphics
*/
truncateLabel(text, style, maxLines = Infinity) {
if (maxLines === Infinity) {
return text
}
const { wordWrapWidth } = style;
const pixiStyle = new PIXI.TextStyle(style);
const { lines } = PIXI.TextMetrics.measureText(text, pixiStyle);
let newText = text;
if (lines.length > maxLines) {
const truncatedLines = lines.slice(0, maxLines);
const lastLine = truncatedLines[truncatedLines.length - 1];
const words = lastLine.split(' ');
const wordMetrics = PIXI.TextMetrics.measureText(`\u00A0\n...\n${words.join('\n')}`, pixiStyle);
const [spaceLength, dotsLength, ...wordLengths] = wordMetrics.lineWidths;
const { text: newLastLine } = wordLengths.reduce((data, wordLength, i) => {
if (data.length + wordLength + spaceLength >= wordWrapWidth) {
return { ...data, length: wordWrapWidth }
}
return {
text: `${data.text}${i > 0 ? ' ' : ''}${words[i]}`,
length: data.length + wordLength + spaceLength,
};
}, { text: '', length: dotsLength });
truncatedLines[truncatedLines.length - 1] = `${newLastLine}...`;
newText = truncatedLines.join('\n');
}
return newText
}
/**
* Returns the label for the given key.
*
* @param {*} key
* @returns
* @memberof LabeledGraphics
*/
getLabel(key) {
return this.labels.get(key)
}
/**
* Hides the label with the given key.
* @param {*} key
* @memberof LabeledGraphics
*/
hideLabel(key) {
let label = this.labels.get(key);
if (label) {
label.visible = false;
}
}
/**
* Removes the label with the given key.
* @param {*} key
* @memberof LabeledGraphics
*/
removeLabel(key) {
let label = this.labels.get(key);
this.labels.delete(key);
label.destroy();
}
/**
* Ensures that labels are hidden on clear.
*
* @memberof LabeledGraphics
*/
clear() {
super.clear();
for (let key of this.labels.keys()) {
this.hideLabel(key);
}
}
/**
* Logs debugging infos
*
* @memberof LabeledGraphics
*/
debugInfos() {
console.log({ size: this.labels.size, labels: this.labels });
}
}
const labelCache = new Map();
function getTexture(label, fontInfo = FontInfo.normal) {
let key = label + fontInfo.fontFamily + fontInfo.fontSize;
if (labelCache.has(key)) {
return labelCache.get(key)
}
let expandedFont = Object.assign({}, fontInfo);
expandedFont.fontSize *= window.devicePixelRatio;
let text = new PIXI.Text(label, expandedFont);
text.updateText();
labelCache.set(key, text.texture);
return text.texture
}
class SpriteLabel extends PIXI.Sprite {
constructor(label, fontInfo) {
let texture = getTexture(label, fontInfo);
super(texture);
this.label = label;
this.fontInfo = fontInfo;
this.scale.set(0.8 / window.devicePixelRatio);
}
set text(label) {
this.label = label;
this.texture = getTexture(label, this.fontInfo);
}
get text() {
return this.label
}
}
class BitmapLabeledGraphics extends LabeledGraphics {
_createText(label, fontInfo) {
let texture = getTexture(label, fontInfo);
return new SpriteLabel(texture)
}
}
class Ticks {
get reservedPrefixes() {
return ['decade', 'year', 'month', 'day', 'hour', 'minute', 'second']
}
get minWidth() {
return 10
}
format(available) {
return { year: '2-digit', timeZone: 'UTC' }
}
get minLabelWidth() {
return 44
}
get formatKey() {
return this.key
}
dateKey(date) {
return this.key + date.getFullYear()
}
*iter(start, end) {
let date = this.iterStart(start);
while (date <= end) {
yield date;
date = this.next(date);
}
yield date;
}
*iterRanges(range) {
for (let date of this.iter(range.start, range.end)) {
let next = this.next(date);
yield { start: date, end: next };
}
}
selectedRange(timeline, info) {
let first = null;
let last = null;
let visibleFirst = null;
let visibleLast = null;
let units = 0;
for (let { start, end } of this.iterRanges(info)) {
if (timeline.visibleRange(start, end)) {
if (first == null) {
first = start;
}
last = end;
}
if (timeline.visibleDate(start) && timeline.visibleDate(end)) {
units += 1;
if (visibleFirst == null) {
visibleFirst = start;
}
visibleLast = end;
}
}
if (first == null)
return info
return { start: first, end: last, visibleStart: visibleFirst, visibleEnd: visibleLast, units: units }
}
drawTick(timeline, x, y, date) {
let visible = date > timeline.start && date < timeline.end;
if (!visible)
return false
timeline.drawTick(x);
return true
}
toLocaleString(date, format) {
return date.toLocaleDateString('de', format)
}
draw(timeline, range, width, height, available, format, nextFormat, level) {
let first = null;
let last = null;
let keyedFormat = (format) ? format[this.formatKey] : null;
let keyedNextFormat = (nextFormat) ? nextFormat[this.formatKey] : null;
let redundant = (nextFormat) ? this.formatKey in nextFormat : false;
let fullyRedundant = keyedFormat != null && keyedFormat == keyedNextFormat;
let y = timeline.getY();
for (let { start, end } of this.iterRanges(range)) {
let x = timeline.toX(start);
let xx = x;
let yy = y + timeline.tickLabelOffset(-1);
if (this.drawTick(timeline, x, y, start) && format) {
let key = this.dateKey(start);
let text = this.toLocaleString(start, format);
let align = 'center';
let downTick = false;
if (nextFormat) {
yy = y + timeline.tickLabelOffset(-1, 1);
align = 'left';
timeline.drawTick(x, 4.2);
let nextX = timeline.toX(end) - 100;
if (x < 0 && nextX > -100 && !redundant) {
xx = Math.min(4, nextX);
}
else {
xx -= 2;
}
downTick = true;
}
else if (level > 0) {
xx = x + available / 2;
}
else {
downTick = true;
}
if (!fullyRedundant) {
timeline.ensureLabel(key, text,
{ x: xx, y: yy, align },
FontInfo.small);
}
if (downTick) timeline.drawTick(x, -1);
}
if (timeline.visibleRange(start, end)) {
if (first == null)
first = start;
last = end;
}
}
if (first == null)
return null
return { start: first, end: last }
}
}
class DecadeTicks extends Ticks {
get milliseconds() {
return 10 * 365 * 24 * 60 * 60 * 1000
}
format(available) {
return { year: 'numeric', timeZone: 'UTC' }
}
selection(timeline, dates, selected) {
return dates
}
get key() {
return 'decade'
}
get formatKey() {
return 'year'
}
iterStart(start) {
let modulo = start.getFullYear() % 10;
let year = start.getFullYear() - modulo;
return Dates.create(year, 0, 1)
}
next(decade) {
return Dates.nextYear(decade, 10)
}
}
class YearTicks extends Ticks {
get milliseconds() {
return 365 * 24 * 60 * 60 * 1000
}
format(available) {
if (available < 44)
return { year: '2-digit', timeZone: 'UTC' }
return { year: 'numeric', timeZone: 'UTC' }
}
get minLabelWidth() {
return 22
}
get key() {
return 'year'
}
iterStart(start) {
return Dates.create(start.getFullYear(), 0, 1)
}
next(year) {
return Dates.nextYear(year)
}
}
class MonthTicks extends Ticks {
get milliseconds() {
return (365 / 12) * 24 * 60 * 60 * 1000
}
format(available) {
let format = { month: 'narrow', timeZone: 'UTC' };
if (available > 44)
format.month = 'short';
if (available > 66)
format.year = '2-digit';
if (available > 100) {
format.month = 'long';
format.year = 'numeric';
}
return format
}
get minLabelWidth() {
return 32
}
get key() {
return 'month'
}
dateKey(date) {
return this.key + date.getFullYear() + date.getMonth()
}
iterStart(start) {
return Dates.create(start.getFullYear(), start.getMonth(), 1)
}
next(month) {
return Dates.nextMonth(month)
}
}
class DayTicks extends Ticks {
get milliseconds() {
return 24 * 60 * 60 * 1000
}
format(available) {
let format = { day: 'numeric', timeZone: 'UTC' };
if (available > 44)
format.month = 'short';
if (available > 100) {
format.month = 'long';
format.year = '2-digit';
}
if (available > 150) {
format.weekday = 'short';
}
if (available > 200) {
format.year = 'numeric';
format.weekday = 'long';
}
return format
}
get key() {
return 'day'
}
dateKey(date) {
return this.key + date.getFullYear() + date.getMonth() + date.getDate()
}
iterStart(start) {
return Dates.create(start.getFullYear(), start.getMonth(), start.getDate())
}
next(date) {
return Dates.nextDay(date)
}
}
class TimeTicks {
constructor(...ticks) {
this.ticks = ticks;
}
selectedRange(timeline) {
let info = { start: timeline.start, end: timeline.end, units: 0 };
for (let ticks of this.ticks) {
info = ticks.selectedRange(timeline, info);
if (info.units > 1) {
timeline.selection = [info.visibleStart, info.visibleEnd];
return
}
}
timeline.selection = [info.start, info.end];
}
draw(timeline, width, height) {
let range = timeline;
let start = timeline.toX(range.start);
let end = timeline.toX(range.end);
let size = end - start;
let duration = timeline.end - timeline.start;
let formats = new Map();
let nextFormats = new Map();
let availables = new Map();
let previous = null;
let visible = [];
for (let ticks of this.ticks) {
let amount = ticks.milliseconds / duration;
let available = amount * size;
availables.set(ticks, available);
if (available < ticks.minWidth)
break
formats.set(ticks, (available < ticks.minLabelWidth) ? null : ticks.format(available));
nextFormats.set(previous, formats.get(ticks));
previous = ticks;
visible.push(ticks);
}
let level = 0;
for (let ticks of visible) {
if (range == null)
return
range = ticks.draw(timeline, range, width, height,
availables.get(ticks),
formats.get(ticks),
nextFormats.get(ticks), level);
level += 1;
}
}
}
class ColorRanges {
constructor(label, color, ranges) {
this.label = label;
this.color = color;
this.ranges = ranges;
}
draw(timeline, width, height, size = 12) {
let minimum = 1 / Capabilities.devicePixelRatio;
let h2 = size;
timeline.lineStyle(size, this.color);
for (let range of this.ranges) {
if (range.to === null) {
range.to = Dates.nextDay(range.from);
}
let start = timeline.toX(range.from);
let end = timeline.toX(range.to);
if (end < start + minimum) {
end = start + minimum;
}
timeline.moveTo(start, h2);
timeline.lineTo(end, h2);
}
}
}
class Timeline extends BitmapLabeledGraphics {
constructor(width, height, { ticks = null,
baseLine = 0.5, showRange = true } = {}) {
super();
this.wantedWidth = width;
this.wantedHeight = height;
this.extraLeft = 0;
this.extraRight = 0;
this.inset = 5;
this.showRange = showRange;
this.baseLine = baseLine;
this.tickHeight = 4;
this.zoom = 1;
this.minZoom = 1;
this.maxZoom = 12000;
this.scroll = 0;
this.deltas = [];
this.labelDates = [];
this.colorRanges = [];
this.rangeColors = new Cycle(Colors.eminence,
Colors.steelblue,
Colors.ochre,
Colors.turquoise);
this.callbacks = [];
this.onTapCallbacks = [];
this.onDoubleTapCallbacks = [];
this.onLongPressCallbacks = [];
this.progress = null;
this.start = null;
this.end = null;
this.selection = null;
this.autoScroll = false;
this.direction = -1;
this.timeticks = ticks || new TimeTicks(new DecadeTicks(),
new YearTicks(),
new MonthTicks(),
new DayTicks());
this.labelPrefix = '__';
}
updateSelection() {
if (this.visibleDate(this.start) && this.visibleDate(this.end)) {
this.selection = [this.start, this.end];
}
else {
this.timeticks.selectedRange(this);
}
return this.selection
}
addCallback(callback) {
this.callbacks.push(callback);
}
addTabCallback(callback) {
this.onTapCallbacks.push(callback);
}
addDoubleTapCallback(callback) {
this.onDoubleTapCallbacks.push(callback);
}
addLongPressCallback(callback) {
this.onLongPressCallbacks.push(callback);
}
addLabels(labels) {
this.labelDates = labels;
}
range(start, end) {
this.start = start;
this.end = end;
}
draw(width, height) {
this.wantedWidth = width;
this.wantedHeight = height;
this.redraw();
}
updateColorRanges(w, h) {
let xx = w - this.inset;
let size = FontInfo.small.fontSize;
let yy = h - size;
for (let i = this.colorRanges.length - 1; i >= 0; i--) {
let cr = this.colorRanges[i];
let label = cr.label;
cr.draw(this, w, h);
let current = this.ensureLabel('colorRange:' + label, label,
{ x: xx, y: yy, align: 'right' }, FontInfo.small);
let r = current.getBounds();
xx -= r.width + 16;
this.lineStyle(size, cr.color);
this.moveTo(xx, yy);
this.lineTo(xx + size, yy);
xx -= size + 4;
}
}
drawSelectedRamge(selected) {
this.lineStyle(2, app.theme.primaryColor);
let start = this.toX(selected[0]);
let end = this.toX(selected[1]);
this.moveTo(start, 0);
this.lineTo(end, 0);
this.drawTick(start, -1.5, 0);
this.drawTick(end, -1.5, 0);
}
redraw() {
this.clear();
let h = this.wantedHeight;
let w = this.wantedWidth;
let y = this.getY();
this.prepareLabels();
this.updateColorRanges(w, h);
this.lineStyle(2, 0xFFFFFF);
if (this.start != null && this.end != null) {
this.moveTo(this.toX(this.start), y);
this.lineTo(this.toX(this.end), y);
this.updateTicksAndLabels(w, h);
this.updateSelection();
let selected = this.selection;
if (selected[0] != this.start && selected[1] != this.end) {
if (this.showRange)
this.drawSelectedRamge(selected);
}
for (let callback of this.callbacks) {
callback(this.scroll, this.zoom, this.selection);
}
}
else {
this.moveTo(this.inset, y);
this.lineTo(w - this.inset, y);
}
if (this.progress != null && this.progress < 1) {
this.lineStyle(2, 0xCCCCFF);
this.moveTo(this.inset, y);
this.lineTo((w - this.inset) * this.progress, y);
}
}
totalWidth(bounded = false) {
let w = this.wantedWidth - (2 * this.inset);
return w * this.validZoom(this.zoom, bounded)
}
validZoom(zoom, bounded = true) {
let overshoot = (bounded) ? 1.0 : 2.0;
zoom = Math.max(zoom, this.minZoom / overshoot);
zoom = Math.min(zoom, this.maxZoom * overshoot);
return zoom
}
getY() {
return this.wantedHeight * this.baseLine
}
toX(date) {
let total = this.end - this.start;
let offset = this.inset + this.scroll;
let width = this.totalWidth();
let delta = date - this.start;
let ratio = delta / total;
return offset + ratio * width
}
fromX(value) {
let total = this.end - this.start;
let offset = this.inset + this.scroll;
let width = this.totalWidth();
let ratio = (value - offset) / width;
let time = this.start.getTime() + total * ratio;
let date = new Date(time);
return date
}
drawTick(x, direction = 1, y = null) {
if (y == null) {
y = this.getY();
}
this.moveTo(x, y);
this.lineTo(x, y - (this.tickHeight * direction * this.direction));
}
prepareLabels() {
for (let key of this.labels.keys()) {
if (!key.startsWith(this.labelPrefix))
this.labels.get(key).visible = false;
}
}
updateTicksAndLabels(width, height) {
this.drawTick(this.toX(this.start));
this.drawTick(this.toX(this.end));
this.timeticks.draw(this, width, height);
this.updateLabels(width, height);
}
visibleDate(date, offset = 0) {
if (date >= this.start && date <= this.end) {
let x = this.toX(date) + offset;
return (x > 0 && x < this.wantedWidth)
}
return false
}
visibleRange(start, end) {
let x = this.toX(start);
if (x > this.wantedWidth)
return false
x = this.toX(end);
if (x < 0)
return false
return true
}
tickLabelOffset(direction = 1, level = 0) {
let fs = FontInfo.small.fontSize;
let dh = fs + (level * (fs + 2));
return this.direction * direction * dh
}
updateLabels(width, height) {
let h2 = height / 2;
if (this.labelDates) {
let last = null;
let y = h2 + this.tickLabelOffset();
for (let i = this.labelDates.length - 1; i >= 0; i--) {
let [label, date] = this.labelDates[i];
let align = 'center'; // (last == null) ? 'right' : 'left'
let x = this.toX(date);
let current = this.ensureLabel(this.labelPrefix + label, label,
{
x: x, y: y,
align
},
FontInfo.small);
let r = current.getBounds();
current.visible = !(last != null && r.x + r.width > last.x);
if (current.visible) {
this.drawTick(x, -1);
last = r;
}
}
}
else {
let start = this.start.toLocaleDateString('de', { year: 'numeric', month: 'numeric', day: 'numeric' });
let end = this.end.toLocaleDateString('de', { year: 'numeric', month: 'numeric', day: 'numeric' });
this.ensureLabel(this.labelPrefix + 'start', start, { x: this.toX(this.start), y: h2 });
this.ensureLabel(this.labelPrefix + 'end', end, { x: this.toX(this.end), y: h2, align: 'right' });
}
}
onZoom(zoom, anchor) {
let date = this.fromX(anchor.x);
let newZoom = this.validZoom(this.zoom * zoom, false);
this.zoom = newZoom;
let newX = this.toX(date);
this.scroll += anchor.x - newX;
}
onStart(event, interaction) {
this.killTweens();
this.deltas = [];
this.validScroll();
ThrowPropsPlugin.track(this, 'delta');
}
onMove(event, interaction) {
let delta = interaction.delta();
this.scroll += delta.x;
while (this.deltas.length > 10) {
this.deltas.pop(0);
}
this.deltas.push(delta.x);
if (interaction.current.size > 1) {
this.onZoom(delta.zoom, delta.about);
}
this.redraw();
}
onEnd(event, interaction) {
let vel = ThrowPropsPlugin.getVelocity(this, 'delta');
ThrowPropsPlugin.untrack(this);
this.killTweens();
this.redraw();
let delta = 0;
for (let d of this.deltas) {
delta += d;
}
if (this.deltas.length > 0) {
delta /= this.deltas.length;
}
this.autoScroll = true;
let anchor = interaction.current.mean();
this.keepInBounds(delta, anchor);
for(let key of interaction.ended.keys()) {
if (interaction.isDoubleTap(key)) {
this.onDoubleTap(event, interaction, key);
}
else if (interaction.isTap(key)) {
this.onTap(event, interaction, key);
}
else if (interaction.isLongPress(key)) {
this.onLongPress(event, interaction, key);
}
}
}
onLongPress(event, interaction, key) {
for(let callback of this.onLongPressCallbacks) {
callback(event, interaction, key);
}
}
onTap(event, interaction, key) {
for(let callback of this.onTapCallbacks) {
callback(event, interaction, key);
}
}
onDoubleTap(event, interaction, key) {
for(let callback of this.onDoubleTapCallbacks) {
callback(event, interaction, key);
}
}
_scrollMinimum(bounded) {
let total = this.totalWidth(bounded);
return -total + this.wantedWidth - 2 * this.inset
}
_scrollMaximum(bounded) {
let total = this.totalWidth(bounded);
let limit = this.wantedWidth;
if (total > limit)
return 0
let w = limit - 2 * this.inset;
return (w - total) / 2
}
scrollMinimum(bounded) {
return this._scrollMinimum(bounded) - this.extraRight
}
scrollMaximum(bounded) {
return this._scrollMaximum(bounded) + this.extraLeft
}
killTweens() {
TweenLite.killTweensOf(this);
this.autoScroll = false;
}
validScroll(bounded = true) {
let minimum = this.scrollMinimum(bounded);
let maximum = this.scrollMaximum(bounded);
if (this.scroll < minimum) {
this.scroll = minimum;
}
if (this.scroll > maximum) {
this.scroll = maximum;
}
}
keepInBounds(delta, anchor) {
let bounded = true;
let minimum = this.scrollMinimum(bounded);
let maximum = this.scrollMaximum(bounded);
let tweens = {};
if (this.zoom > this.maxZoom) {
tweens.zoom = this.maxZoom;
let date = this.fromX(anchor.x);
let oldZoom = this.zoom;
this.zoom = this.maxZoom;
let newX = this.toX(date);
tweens.scroll = this.scroll + anchor.x - newX;
this.zoom = oldZoom;
}
else {
if (this.zoom < this.minZoom) {
tweens.zoom = this.minZoom;
}
if (this.scroll > maximum) {
tweens.scroll = maximum;
}
if (this.scroll < minimum) {
tweens.scroll = minimum;
}
}
if (!isEmpty(tweens)) {
tweens.onUpdate = () => { this.redraw(); };
TweenLite.to(this, 0.5, tweens).delay(0.1);
return
}
this.scroll += delta;
delta *= 0.985;
this.redraw();
if (Math.abs(delta) > 1 && this.autoScroll) {
setTimeout(() => this.keepInBounds(delta, anchor), 1000 / 100);
}
}
onMouseWheel(event) {
this.killTweens();
let direction = event.detail < 0 || event.wheelDelta > 0;
let anchor = { x: event.clientX, y: event.clientY };
const zoomFactor = 1.5;
this.onZoom((direction) ? zoomFactor : 1 / zoomFactor, anchor);
this.redraw();
this.keepInBounds(0, anchor);
}
showRanges(ranges, label = "Untitled", color = null) {
for (let cr of this.colorRanges) {
if (cr.label == label)
return
}
while (this.colorRanges.length >= this.rangeColors.length) {
this.colorRanges.shift();
}
this.colorRanges.push(new ColorRanges(label, color, ranges));
this.redraw();
}
}
/**
* Callback for the slider action onStart.
*
* @callback onStartCallback
* @param {object} event - The event object.
* @param {Slider} slider - A reference to the slider (also this refers to the slider).
*/
/**
* Callback for the slider action onUpdate.
*
* @callback onUpdateCallback
* @param {object} event - The event object.
* @param {Slider} slider - A reference to the slider (also this refers to the slider).
*/
/**
* Callback for the slider action onComplete.
*
* @callback onCompleteCallback
* @param {object} event - The event object.
* @param {Slider} slider - A reference to the slider (also this refers to the slider).
*/
/**
* Class that represents a PixiJS Slider.
*
* @example
* // Create the app
* const app = new PIXIApp({
* view: canvas,
* width: 900,
* height: 250
* }).setup().run()
*
* // Create the slider
* const slider = new Slider({
* x: 10,
* y: 20
* })
*
* // Add the slider to a DisplayObject
* app.scene.addChild(slider)
*
* @class
* @extends PIXI.Container
* @see {@link http://pixijs.download/dev/docs/PIXI.Container.html|PIXI.Container}
* @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/slider.html|DocTest}
*/
class Slider extends PIXI.Container {
/**
* Creates an instance of a Slider.
*
* @constructor
* @param {object} [opts] - An options object to specify to style and behaviour of the slider.
* @param {number} [opts.id=auto generated] - The id of the slider.
* @param {number} [opts.x=0] - The x position of the slider. Can be also set after creation with slider.x = 0.
* @param {number} [opts.y=0] - The y position of the slider. Can be also set after creation with slider.y = 0.
* @param {string|Theme} [opts.theme=dark] - The theme to use for this slider. Possible values are dark, light, red
* or a Theme object.
* @param {number} [opts.width=250] - The width of the slider.
* @param {number} [opts.height=2] - The height of the slider.
* @param {PIXI.DisplayObject} [opts.container=window.app|object] - The container where the slider events should be attached to.
* @param {number} [opts.fill=Theme.fill] - The color of the slider background as a hex value.
* @param {number} [opts.fillAlpha=Theme.fillAlpha] - The alpha value of the background.
* @param {number} [opts.stroke=Theme.stroke] - The color of the border as a hex value.
* @param {number} [opts.strokeWidth=Theme.strokeWidth] - The width of the border in pixel.
* @param {number} [opts.strokeAlpha=Theme.strokeAlpha] - The alpha value of the border.
* @param {number} [opts.controlFill=Theme.stroke] - The color of the slider control background as a hex value.
* @param {number} [opts.controlFillAlpha=Theme.strokeAlpha] - The alpha value of the background.
* @param {number} [opts.controlStroke=Theme.stroke] - The color of the border as a hex value.
* @param {number} [opts.controlStrokeWidth=Theme.strokeWidth * 0.8] - The width of the border in pixel.
* @param {number} [opts.controlStrokeAlpha=Theme.strokeAlpha] - The alpha value of the border.
* @param {number} [opts.controlRadius=16] - The radius of the slider control.
* @param {boolean} [opts.disabled=false] - Is the slider disabled? When disabled, the slider has a lower alpha value
* and cannot be clicked (interactive is set to false).
* @param {onStartCallback} [opts.onStart] - Executed when the slider control starts to move.
* @param {onUpdateCallback} [opts.onUpdate] - Executed when the slider control is moved.
* @param {onCompleteCallback} [opts.onComplete] - Executed when the slider control was dropped.
* @param {string|object} [opts.tooltip] - A string for the label of the tooltip or an object to configure the tooltip
* to display.
* @param {boolean} [opts.visible=true] - Is the slider initially visible (property visible)?
*/
constructor(opts = {}) {
super();
const theme = Theme.fromString(opts.theme);
this.theme = theme;
this.opts = Object.assign({}, {
id: PIXI.utils.uid(),
x: 0,
y: 0,
width: 250,
height: 2,
container: null,
fill: theme.fill,
fillAlpha: theme.fillAlpha,
stroke: theme.stroke,
strokeWidth: theme.strokeWidth,
strokeAlpha: theme.strokeAlpha,
controlFill: theme.fill,
controlFillAlpha: .5,
controlStroke: theme.primaryColor,
controlStrokeWidth: 2,
controlStrokeAlpha: theme.strokeAlpha,
controlRadius: 16,
orientation: 'horizontal',
min: 0,
max: 100,
value: 0,
disabled: false,
onStart: null,
onUpdate: null,
onComplete: null,
tooltip: null,
visible: true
}, opts);
this.opts.container = this.opts.container || this;
// Validation
//-----------------
if (this.opts.height > this.opts.width) {
this.opts.height = this.opts.width;
}
if (this.opts.value < this.opts.min) {
this.opts.value = this.opts.min;
}
if (this.opts.value > this.opts.max) {
this.opts.value = this.opts.max;
}
// Properties
//-----------------
this.id = this.opts.id;
this.radius = this.opts.height / 2;
this._value = this.opts.value;
this._disabled = null;
this.sliderObj = null;
this.control = null;
this.tooltip = null;
this.visible = this.opts.visible;
// setup
//-----------------
this.setup();
// layout
//-----------------
this.layout();
}
/**
* Creates children and instantiates everything.
*
* @private
* @return {Slider} A reference to the slider for chaining.
*/
setup() {
// Container events
//-----------------
const container = this.opts.container;
this.on('pointermove', e => {
if (this.control.dragging) {
const moveX = this.control.event.data.getLocalPosition(this.control.parent).x;
this._value = this.pixelToValue(moveX - this.control.delta - this.opts.controlRadius);
let x = this.valueToPixel(this._value) + this.opts.controlRadius;
this.control.x = x;
if (this.opts.onUpdate) {
this.opts.onUpdate.call(this, e, this);
}
}
});
if (container instanceof Element) {
container.addEventListener('pointerup', e => this.onEnd(e), false);
container.addEventListener('pointercancel', e => this.onEnd(e), false);
container.addEventListener('pointerleave', e => this.onEnd(e), false);
container.addEventListener('pointerout', e => this.onEnd(e), false);
container.addEventListener('mouseup', e => this.onEnd(e), false);
container.addEventListener('mousecancel', e => this.onEnd(e), false);
container.addEventListener('mouseleave', e => this.onEnd(e), false);
container.addEventListener('mouseout', e => this.onEnd(e), false);
} else {
container.interactive = true;
container.on('pointerup', e => this.onEnd(e));
container.on('pointercancel', e => this.onEnd(e));
container.on('pointerleave', e => this.onEnd(e));
container.on('pointerout', e => this.onEnd(e));
}
// Slider
//-----------------
let sliderObj = new PIXI.Graphics();
this.sliderObj = sliderObj;
this.addChild(sliderObj);
// Control
//-----------------
let control = new PIXI.Graphics();
control.x = this.opts.controlRadius + this.valueToPixel(this.opts.value);
control.y = this.opts.controlRadius;
// pointerdown on the control for dragndrop
control.on('pointerdown', e => {
control.event = e;
control.delta = e.data.getLocalPosition(this.control).x;
control.dragging = true;
if (this.opts.onStart) {
this.opts.onStart.call(this, e, this);
}
});
this.control = control;
this.addChild(this.control);
// interaction
//-----------------
this.sliderObj.on('pointerover', e => {
TweenLite.to(this.control, this.theme.fast, {alpha: .83});
});
this.sliderObj.on('pointerout', e => {
TweenLite.to(this.control, this.theme.fast, {alpha: 1});
});
this.sliderObj.on('pointerdown', e => {
this.sliderObj.pointerdowned = true;
TweenLite.to(this.control, this.theme.fast, {alpha: .7});
});
// Click on the slider bar
this.sliderObj.on('pointerup', e => {
if (this.sliderObj.pointerdowned) {
this.sliderObj.pointerdowned = false;
const position = e.data.getLocalPosition(this.control.parent);
this.value = this.pixelToValue(position.x - this.opts.controlRadius);
TweenLite.to(this.control, this.theme.fast, {alpha: .83});
}
});
// disabled
//-----------------
this.disabled = this.opts.disabled;
// tooltip
//-----------------
if (this.opts.tooltip) {
if (typeof this.opts.tooltip === 'string') {
this.tooltip = new Tooltip({
object: this,
content: this.opts.tooltip
});
} else {
this.opts.tooltip.object = this;
this.tooltip = new Tooltip(this.opts.tooltip);
}
}
return this
}
/**
* Should be called to refresh the layout of the slider. Can be used after resizing.
*
* @return {Slider} A reference to the slider for chaining.
*/
layout() {
// set position
//-----------------
this.position.set(this.opts.x, this.opts.y);
// draw
//-----------------
this.draw();
return this
}
/**
* Draws the slider to the canvas.
*
* @private
* @return {Slider} A reference to the slider for chaining.
*/
draw() {
const r = this.radius;
const cr = this.opts.controlRadius;
const w = this.opts.width;
const h = this.opts.height;
const x = cr + r;
const y = cr + r - h;
this.sliderObj.clear();
this.sliderObj.beginFill(0xffffff, 0);
this.sliderObj.drawRect(0, 0, x + w + cr, cr * 2);
this.sliderObj.lineStyle(this.opts.strokeWidth, this.opts.stroke, this.opts.strokeAlpha);
this.sliderObj.beginFill(this.opts.fill, this.opts.fillAlpha);
this.sliderObj.moveTo(x, y);
this.sliderObj.lineTo(x + w, y);
this.sliderObj.arcTo(x + w + r, y, x + w + r, y + r, r);
this.sliderObj.lineTo(x + w + r, y + r + 1); // BUGFIX: If not specified, there is a small area without a stroke.
this.sliderObj.arcTo(x + w + r, y + h, x + w, y + h, r);
this.sliderObj.lineTo(x, y + h);
this.sliderObj.arcTo(x - r, y + h, x - r, y + r, r);
this.sliderObj.arcTo(x - r, y, x, y, r);
this.sliderObj.endFill();
// Draw control
this.control.clear();
this.control.lineStyle(this.opts.controlStrokeWidth, this.opts.controlStroke, this.opts.controlStrokeAlpha);
this.control.beginFill(this.opts.controlFill, this.opts.controlFillAlpha);
this.control.drawCircle(0, 0, cr - 1);
this.control.beginFill(this.opts.controlStroke, this.opts.controlStrokeAlpha);
this.control.drawCircle(0, 0, cr / 6);
this.control.endFill();
return this
}
/**
* Executed, when the slider control movement ended.
*
* @private
* @return {Slider} A reference to the slider for chaining.
*/
onEnd(e) {
if (this.control.dragging) {
this.control.event = null;
this.control.dragging = false;
if (this.opts.onComplete) {
this.opts.onComplete.call(this, e, this);
}
}
return this
}
/**
* Calculates the value for a given pixel.
*
* @private
* @param {number} value
* @returns {number} The calucalted pixel.
*/
valueToPixel(value) {
if (value < this.opts.min) {
value = this.opts.min;
} else if (value > this.opts.max) {
value = this.opts.max;
}
return this.opts.width * (value - this.opts.min) / (this.opts.max - this.opts.min)
}
/**
* Calculates the pixel for a given value.
*
* @private
* @param {number} pixel
* @returns {number} The calucalted value.
*/
pixelToValue(pixel) {
if (pixel < 0) {
pixel = 0;
} else if (pixel > this.opts.width) {
pixel = this.opts.width;
}
return this.opts.min + ((this.opts.max - this.opts.min) * pixel / this.opts.width)
}
/**
* Gets or sets the value.
*
* @member {number}
*/
get value() {
return Math.round(this._value)
}
set value(value) {
if (value < this.opts.min) {
value = this.opts.min;
} else if (value > this.opts.max) {
value = this.opts.max;
}
this._value = value;
const x = this.valueToPixel(value) + this.opts.controlRadius;
TweenLite.to(this.control, this.theme.fast, {x});
}
/**
* Gets or sets the disabled state. When disabled, the slider cannot be clicked.
*
* @member {boolean}
*/
get disabled() {
return this._disabled
}
set disabled(value) {
this._disabled = value;
if (this._disabled) {
this.interactive = false;
this.sliderObj.interactive = false;
this.control.interactive = false;
this.control.buttonMode = false;
this.alpha = .5;
} else {
this.interactive = true;
this.sliderObj.interactive = true;
this.control.interactive = true;
this.control.buttonMode = true;
this.alpha = 1;
}
}
/**
* Shows the slider (sets his alpha values to 1).
*
* @return {Slider} A reference to the slider for chaining.
*/
show() {
this.opts.strokeAlpha = 1;
this.opts.fillAlpha = 1;
this.opts.controlStrokeAlpha = 1;
this.opts.controlFillAlpha = 1;
this.layout();
return this
}
/**
* Hides the slider (sets his alpha values to 1).
*
* @return {Slider} A reference to the slider for chaining.
*/
hide() {
this.opts.strokeAlpha = 0;
this.opts.fillAlpha = 0;
this.opts.controlStrokeAlpha = 0;
this.opts.controlFillAlpha = 0;
this.layout();
return this
}
}
/**
* Callback for the switch action.
*
* @callback actionCallback
* @param {object} event - The event object.
* @param {Switch} switch - A reference to the switch (also this refers to the switch).
*/
/**
* Callback for the switch action.
*
* @callback actionActiveCallback
* @param {object} event - The event object.
* @param {Switch} switch - A reference to the switch (also this refers to the switch).
*/
/**
* Callback for the switch beforeAction.
*
* @callback beforeActionCallback
* @param {object} event - The event object.
* @param {Switch} switch - A reference to the switch (also this refers to the switch).
*/
/**
* Callback for the switch afterAction.
*
* @callback afterActionCallback
* @param {object} event - The event object.
* @param {Switch} switch - A reference to the switch (also this refers to the switch).
*/
/**
* Class that represents a PixiJS Switch.
*
* @example
* // Create the app
* const app = new PIXIApp({
* view: canvas,
* width: 900,
* height: 250
* }).setup().run()
*
* // Create the switch
* const switch1 = new Switch({
* x: 10,
* y: 20
* })
*
* // Add the switch to a DisplayObject
* app.scene.addChild(switch1)
*
* @class
* @extends PIXI.Container
* @see {@link http://pixijs.download/dev/docs/PIXI.Container.html|PIXI.Container}
* @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/switch.html|DocTest}
*/
class Switch extends PIXI.Container {
/**
* Creates an instance of a Switch.
*
* @constructor
* @param {object} [opts] - An options object to specify to style and behaviour of the switch.
* @param {number} [opts.id=auto generated] - The id of the switch.
* @param {number} [opts.x=0] - The x position of the switch. Can be also set after creation with switch.x = 0.
* @param {number} [opts.y=0] - The y position of the switch. Can be also set after creation with switch.y = 0.
* @param {string|Theme} [opts.theme=dark] - The theme to use for this switch. Possible values are dark, light, red
* or a Theme object.
* @param {number} [opts.width=44] - The width of the switch.
* @param {number} [opts.height=28] - The height of the switch.
* @param {number} [opts.fill=Theme.fill] - The color of the switch background as a hex value.
* @param {number} [opts.fillAlpha=Theme.fillAlpha] - The alpha value of the background.
* @param {number} [opts.fillActive=Theme.fillActive] - The color of the switch background when activated.
* @param {number} [opts.fillActiveAlpha=Theme.fillActiveAlpha] - The alpha value of the background when activated.
* @param {number} [opts.stroke=Theme.stroke] - The color of the border as a hex value.
* @param {number} [opts.strokeWidth=Theme.strokeWidth] - The width of the border in pixel.
* @param {number} [opts.strokeAlpha=Theme.strokeAlpha] - The alpha value of the border.
* @param {number} [opts.strokeActive=Theme.strokeActive] - The color of the border when activated.
* @param {number} [opts.strokeActiveWidth=Theme.strokeActiveWidth] - The width of the border in pixel when activated.
* @param {number} [opts.strokeActiveAlpha=Theme.strokeActiveAlpha] - The alpha value of the border when activated.
* @param {number} [opts.controlFill=Theme.stroke] - The color of the switch control background as a hex value.
* @param {number} [opts.controlFillAlpha=Theme.strokeAlpha] - The alpha value of the background.
* @param {number} [opts.controlFillActive=Theme.stroke] - The color of the switch control background when activated.
* @param {number} [opts.controlFillActiveAlpha=Theme.strokeAlpha] - The alpha value of the background when activated.
* @param {number} [opts.controlStroke=Theme.stroke] - The color of the border as a hex value.
* @param {number} [opts.controlStrokeWidth=Theme.strokeWidth * 0.8] - The width of the border in pixel.
* @param {number} [opts.controlStrokeAlpha=Theme.strokeAlpha] - The alpha value of the border.
* @param {number} [opts.controlStrokeActive=Theme.stroke] - The color of the border when activated.
* @param {number} [opts.controlStrokeActiveWidth=Theme.strokeActiveWidth * 0.8] - The width of the border in pixel when activated.
* @param {number} [opts.controlStrokeActiveAlpha=Theme.strokeActiveAlpha] - The alpha value of the border when activated.
* @param {number} [opts.duration=Theme.fast] - The duration of the animation when the switch gets activated in seconds.
* @param {number} [opts.durationActive=Theme.fast] - The duration of the animation when the switch gets deactivated in seconds.
* @param {boolean} [opts.disabled=false] - Is the switch disabled? When disabled, the switch has a lower alpha value
* and cannot be clicked (interactive is set to false).
* @param {boolean} [opts.active=false] - Is the button initially active?
* @param {actionCallback} [opts.action] - Executed when the switch was triggered in inactive state (by pointerup).
* @param {actionActiveCallback} [opts.actionActive] - Executed when the button was triggered in active state (by pointerup).
* @param {beforeActionCallback} [opts.beforeAction] - Executed before an action is triggered.
* @param {afterActionCallback} [opts.afterAction] - Executed after an action was triggered.
* @param {string|object} [opts.tooltip] - A string for the label of the tooltip or an object to configure the tooltip
* to display.
* @param {boolean} [opts.visible=true] - Is the switch initially visible (property visible)?
*/
constructor(opts = {}) {
super();
const theme = Theme.fromString(opts.theme);
this.theme = theme;
this.opts = Object.assign({}, {
id: PIXI.utils.uid(),
x: 0,
y: 0,
width: 44,
height: 28,
fill: theme.fill,
fillAlpha: theme.fillAlpha,
fillActive: theme.primaryColor,
fillActiveAlpha: theme.fillActiveAlpha,
stroke: theme.stroke,
strokeWidth: theme.strokeWidth,
strokeAlpha: theme.strokeAlpha,
strokeActive: theme.primaryColor,
strokeActiveWidth: theme.strokeActiveWidth,
strokeActiveAlpha: theme.strokeActiveAlpha,
controlFill: theme.stroke,
controlFillAlpha: theme.strokeAlpha,
controlFillActive: theme.stroke,
controlFillActiveAlpha: theme.strokeAlpha,
controlStroke: theme.stroke,
controlStrokeWidth: theme.strokeWidth * .8,
controlStrokeAlpha: theme.strokeAlpha,
controlStrokeActive: theme.stroke,
controlStrokeActiveWidth: theme.strokeActiveWidth * .8,
controlStrokeActiveAlpha: theme.strokeActiveAlpha,
duration: theme.fast,
durationActive: theme.fast,
disabled: false,
active: false,
action: null,
actionActive: null,
beforeAction: null,
afterAction: null,
tooltip: null,
visible: true
}, opts);
this.opts.controlRadius = this.opts.controlRadius || (this.opts.height / 2);
this.opts.controlRadiusActive = this.opts.controlRadiusActive || this.opts.controlRadius;
// Validation
//-----------------
if (this.opts.height > this.opts.width) {
this.opts.height = this.opts.width;
}
// Properties
//-----------------
this.id = this.opts.id;
this.radius = this.opts.height / 2;
this._active = null;
this._disabled = null;
this.switchObj = null;
this.control = null;
this.tooltip = null;
this.visible = this.opts.visible;
// animated
//-----------------
this.tempAnimated = {
fill: this.opts.fill,
fillAlpha: this.opts.fillAlpha,
stroke: this.opts.stroke,
strokeWidth: this.opts.strokeWidth,
strokeAlpha: this.opts.strokeAlpha,
controlFill: this.opts.controlFill,
controlFillAlpha: this.opts.controlFillAlpha,
controlStroke: this.opts.controlStroke,
controlStrokeWidth: this.opts.controlStrokeWidth,
controlStrokeAlpha: this.opts.controlStrokeAlpha,
controlRadius: this.opts.controlRadius
};
// setup
//-----------------
this.setup();
// layout
//-----------------
this.layout();
}
/**
* Creates children and instantiates everything.
*
* @private
* @return {Switch} A reference to the switch for chaining.
*/
setup() {
// Switch
//-----------------
let switchObj = new PIXI.Graphics();
this.switchObj = switchObj;
this.addChild(switchObj);
// Control
//-----------------
this.xInactive = this.opts.controlRadius;
this.xActive = this.opts.width - this.opts.controlRadiusActive;
let control = new PIXI.Graphics();
control.x = this.opts.active ? this.xActive : this.xInactive;
control.y = this.opts.height / 2;
this.control = control;
this.addChild(this.control);
// interaction
//-----------------
this.switchObj.on('pointerover', e => {
TweenLite.to(this.control, this.theme.fast, {alpha: .83});
});
this.switchObj.on('pointerout', e => {
TweenLite.to(this.control, this.theme.fast, {alpha: 1});
});
this.switchObj.on('pointerdown', e => {
TweenLite.to(this.control, this.theme.fast, {alpha: .7});
});
this.switchObj.on('pointerup', e => {
if (this.opts.beforeAction) {
this.opts.beforeAction.call(this, e, this);
}
this.active = !this.active;
if (this.active) {
if (this.opts.action) {
this.opts.action.call(this, e, this);
}
} else {
if (this.opts.actionActive) {
this.opts.actionActive.call(this, e, this);
}
}
TweenLite.to(this.control, this.theme.fast, {alpha: .83});
if (this.opts.afterAction) {
this.opts.afterAction.call(this, e, this);
}
});
// disabled
//-----------------
this.disabled = this.opts.disabled;
// active
//-----------------
this.active = this.opts.active;
// tooltip
//-----------------
if (this.opts.tooltip) {
if (typeof this.opts.tooltip === 'string') {
this.tooltip = new Tooltip({
object: this,
content: this.opts.tooltip
});
} else {
this.opts.tooltip.object = this;
this.tooltip = new Tooltip(this.opts.tooltip);
}
}
return this
}
/**
* Should be called to refresh the layout of the switch. Can be used after resizing.
*
* @return {Switch} A reference to the switch for chaining.
*/
layout() {
// set position
//-----------------
this.position.set(this.opts.x, this.opts.y);
// draw
//-----------------
this.draw();
return this
}
/**
* Draws the switch to the canvas.
*
* @private
* @return {Switch} A reference to the switch for chaining.
*/
draw() {
this.switchObj.clear();
if (this.active) {
this.switchObj.lineStyle(this.opts.strokeActiveWidth, this.opts.strokeActive, this.opts.strokeActiveAlpha);
this.switchObj.beginFill(this.opts.fillActive, this.opts.fillActiveAlpha);
} else {
this.switchObj.lineStyle(this.opts.strokeWidth, this.opts.stroke, this.opts.strokeAlpha);
this.switchObj.beginFill(this.opts.fill, this.opts.fillAlpha);
}
this.switchObj.moveTo(this.radius, 0);
this.switchObj.lineTo(this.opts.width - this.radius, 0);
this.switchObj.arcTo(this.opts.width, 0, this.opts.width, this.radius, this.radius);
this.switchObj.lineTo(this.opts.width, this.radius + 1); // BUGFIX: If not specified, there is a small area without a stroke.
this.switchObj.arcTo(this.opts.width, this.opts.height, this.opts.width - this.radius, this.opts.height, this.radius);
this.switchObj.lineTo(this.radius, this.opts.height);
this.switchObj.arcTo(0, this.opts.height, 0, this.radius, this.radius);
this.switchObj.arcTo(0, 0, this.radius, 0, this.radius);
this.switchObj.endFill();
// Draw control
this.control.clear();
if (this.active) {
this.control.lineStyle(this.opts.controlStrokeActiveWidth, this.opts.controlStrokeActive, this.opts.controlStrokeActiveAlpha);
this.control.beginFill(this.opts.controlFillActive, this.opts.controlFillActiveAlpha);
this.control.drawCircle(0, 0, this.opts.controlRadiusActive - 1);
} else {
this.control.lineStyle(this.opts.controlStrokeWidth, this.opts.controlStroke, this.opts.controlStrokeAlpha);
this.control.beginFill(this.opts.controlFill, this.opts.controlFillAlpha);
this.control.drawCircle(0, 0, this.opts.controlRadius - 1);
}
this.control.endFill();
return this
}
/**
* Draws the animation.
*
* @private
* @return {Switch} A reference to the switch for chaining.
*/
drawAnimated() {
this.switchObj.clear();
this.switchObj.lineStyle(this.tempAnimated.strokeWidth, this.tempAnimated.stroke, this.tempAnimated.strokeAlpha);
this.switchObj.beginFill(this.tempAnimated.fill, this.tempAnimated.fillAlpha);
this.switchObj.moveTo(this.radius, 0);
this.switchObj.lineTo(this.opts.width - this.radius, 0);
this.switchObj.arcTo(this.opts.width, 0, this.opts.width, this.radius, this.radius);
this.switchObj.lineTo(this.opts.width, this.radius + 1); // BUGFIX: If not specified, there is a small area without a stroke.
this.switchObj.arcTo(this.opts.width, this.opts.height, this.opts.width - this.radius, this.opts.height, this.radius);
this.switchObj.lineTo(this.radius, this.opts.height);
this.switchObj.arcTo(0, this.opts.height, 0, this.radius, this.radius);
this.switchObj.arcTo(0, 0, this.radius, 0, this.radius);
this.switchObj.endFill();
this.control.clear();
this.control.lineStyle(this.tempAnimated.controlStrokeWidth, this.tempAnimated.controlStroke, this.tempAnimated.controlStrokeAlpha);
this.control.beginFill(this.tempAnimated.controlFill, this.tempAnimated.controlFillAlpha);
this.control.drawCircle(0, 0, this.tempAnimated.controlRadius - 1);
this.control.endFill();
return this
}
/**
* Gets or sets the active state.
*
* @member {boolean}
*/
get active() {
return this._active
}
set active(value) {
this._active = value;
if (this._active) {
TweenLite.to(this.control, this.opts.duration, {x: this.xActive});
TweenLite.to(this.tempAnimated, this.opts.duration, {
colorProps: {
fill: this.opts.fillActive,
stroke: this.opts.strokeActive,
controlFill: this.opts.controlFillActive,
controlStroke: this.opts.controlStrokeActive,
format: 'number'
},
fillAlpha: this.opts.fillActiveAlpha,
strokeWidth: this.opts.strokeActiveWidth,
strokeAlpha: this.opts.strokeActiveAlpha,
controlFillAlpha: this.opts.controlFillActiveAlpha,
controlStrokeWidth: this.opts.controlStrokeActiveWidth,
controlStrokeAlpha: this.opts.controlStrokeActiveAlpha,
controlRadius: this.opts.controlRadiusActive,
onUpdate: () => this.drawAnimated(),
onComplete: () => this.draw()
});
} else {
TweenLite.to(this.control, this.opts.durationActive, {x: this.xInactive});
TweenLite.to(this.tempAnimated, this.opts.durationActive, {
colorProps: {
fill: this.opts.fill,
stroke: this.opts.stroke,
controlFill: this.opts.controlFill,
controlStroke: this.opts.controlStroke,
format: 'number'
},
fillAlpha: this.opts.fillAlpha,
strokeWidth: this.opts.strokeWidth,
strokeAlpha: this.opts.strokeAlpha,
controlFillAlpha: this.opts.controlFillAlpha,
controlStrokeWidth: this.opts.controlStrokeWidth,
controlStrokeAlpha: this.opts.controlStrokeAlpha,
controlRadius: this.opts.controlRadius,
onUpdate: () => this.drawAnimated(),
onComplete: () => this.draw()
});
}
}
/**
* Gets or sets the disabled state. When disabled, the switch cannot be clicked.
*
* @member {boolean}
*/
get disabled() {
return this._disabled
}
set disabled(value) {
this._disabled = value;
if (this._disabled) {
this.switchObj.interactive = false;
this.switchObj.buttonMode = false;
this.switchObj.alpha = .5;
this.control.alpha = .5;
} else {
this.switchObj.interactive = true;
this.switchObj.buttonMode = true;
this.switchObj.alpha = 1;
this.control.alpha = 1;
}
}
/**
* Shows the switch (sets his alpha values to 1).
*
* @return {Switch} A reference to the switch for chaining.
*/
show() {
this.opts.strokeAlpha = 1;
this.opts.strokeActiveAlpha = 1;
this.opts.fillAlpha = 1;
this.opts.fillActiveAlpha = 1;
this.opts.controlStrokeAlpha = 1;
this.opts.controlStrokeActiveAlpha = 1;
this.opts.controlFillAlpha = 1;
this.opts.controlFillActiveAlpha = 1;
this.layout();
return this
}
/**
* Hides the switch (sets his alpha values to 1).
*
* @return {Switch} A reference to the switch for chaining.
*/
hide() {
this.opts.strokeAlpha = 0;
this.opts.strokeActiveAlpha = 0;
this.opts.fillAlpha = 0;
this.opts.fillActiveAlpha = 0;
this.opts.controlStrokeAlpha = 0;
this.opts.controlStrokeActiveAlpha = 0;
this.opts.controlFillAlpha = 0;
this.opts.controlFillActiveAlpha = 0;
this.layout();
return this
}
}
/**
* Class that represents a PixiJS PopupMenu.
*
* @example
* // Create the button and the modal when clicked
* const button = new Button({
* label: 'Show PopupMenu',
* action: e => {
* const popupmenu = new PopupMenu({
* items: [
* {label: 'Save', action: () => alert('Saved')},
* {label: 'Edit', action: () => alert('Edited')},
* {label: 'Delete', action: () => alert('Deleted')}
* ]
* })
* app.scene.addChild(popupmenu)
* }
* })
*
* // Add the button to a DisplayObject
* app.scene.addChild(button)
*
* @class
* @extends Popup
* @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/popupmenu.html|DocTest}
*/
class PopupMenu$1 extends Popup {
/**
* Creates an instance of a PopupMenu.
*
* @constructor
* @param {object} [opts] - An options object to specify to style and behaviour of the modal.
* @param {object[]} [opts.items=[]] - A list of the menu items. Each item must be of type object.
* If an object has a label property, a PIXI.Text object is created (using the textStyle property).
* If an object hasn't a label property, it must contain a content property which has to be a
* PIXI.DisplayObject.
* @param {number} [opts.margin=Theme.margin / 2] - The app where the modal belongs to.
* @param {object} [opts.textStyle=Theme.textStyle] - The color of the background.
* @param {boolean} [opts.closeOnPopup=true] - The opacity of the background.
*/
constructor(opts = {}) {
const theme = Theme.fromString(opts.theme);
opts = Object.assign({}, {
items: [],
margin: theme.margin / 2,
textStyle: theme.textStyle,
closeOnPopup: true
}, opts);
super(opts);
}
/**
* Creates children and instantiates everything.
*
* @private
* @return {PopupMenu} A reference to the popupmenu for chaining.
*/
setup() {
// content
//-----------------
const content = new PIXI.Container();
let y = 0;
for (let item of this.opts.items) {
let object = null;
if (item.label) {
object = new PIXI.Text(item.label, item.textStyle || this.opts.textStyle);
} else {
object = item.content;
}
object.y = y;
if (item.action) {
if (item.disabled) {
object.alpha = .5;
} else {
object.interactive = true;
object.buttonMode = true;
}
object.on('pointerover', e => {
TweenLite.to(object, this.theme.fast, {alpha: .83, overwrite: 'none'});
});
object.on('pointerout', e => {
TweenLite.to(object, this.theme.fast, {alpha: 1, overwrite: 'none'});
});
object.on('pointerup', e => {
item.action.call(object, e, object);
if (this.opts.closeOnAction) {
this.hide();
}
});
}
content.addChild(object);
y += object.height + this.opts.margin;
}
this.opts.content = content;
super.setup();
}
}
/* global Quad */
/**
* Class that represents a PixiJS Volatile.
*
* @example
* const app = new PIXIApp({
* view: canvas,
* width: 900,
* height: 250
* }).setup().run()
*
* const button = new Button({
* label: 'Volatile!',
* action: () => {
* new Volatile({
* object: button,
* direction: 'right',
* destroyOnComplete: false
* })
* }
* })
*
* app.scene.addChild(button)
*
* @class
* @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/volatile.html|DocTest}
*/
class Volatile {
/**
* Creates an instance of a Volatile.
*
* @constructor
* @param {object} [opts] - An options object to specify to style and behaviour of the modal.
* @param {number} [opts.id=auto generated] - The id of the tooltip.
* @param {PIXI.DisplayObject|PIXI.DisplayObject[]} opts.object - The object where the volatile should be applied to.
* @param {string} [opts.direction=top] - The animation direction. Possible values: top, right, bottom, left.
* @param {function} [opts.onStart] - A function which is executed when the volatile animation starts.
* @param {function} [opts.onComplete] - A function which is executed when the volatile animation finishes.
* @param {number} [opts.distance=160] - The animation distance.
* @param {number} [opts.duration=1.5] - The duration of the animation in seconds.
* @param {object} [opts.ease=Quad.easeOut] - The easing of the animation, see {@link https://greensock.com/docs/Easing}
* @param {boolean} [opts.destroyOnComplete=true] - Should the object be destroyed after the volatile animation?
*/
constructor(opts = {}) {
const theme = Theme.fromString(opts.theme);
this.theme = theme;
this.opts = Object.assign({}, {
id: PIXI.utils.uid(),
object: null,
direction: 'top', // top, right, bottom, left
onStart: null,
onComplete: null,
distance: 160,
duration: 1.5,
ease: Quad.easeOut,
destroyOnComplete: true
}, opts);
this.id = this.opts.id;
if (!Array.isArray(this.opts.object)) {
this.opts.object = [this.opts.object];
}
this.objects = this.opts.object;
// setup
//-----------------
this.setup();
// layout
//-----------------
this.layout();
// run
//-----------------
this.run();
}
/**
* Creates children and instantiates everything.
*
* @private
* @return {Volatile} A reference to the volatile for chaining.
*/
setup() {
return this
}
/**
* Should be called to refresh the layout of the volatile. Can be used after resizing.
*
* @return {Volatile} A reference to the volatile for chaining.
*/
layout() {
return this
}
/**
* Starts the volatile animation.
*
* @private
* @return {Volatile} A reference to the volatile for chaining.
*/
run() {
for (let object of this.objects) {
let x = object.x;
let y = object.y;
switch (this.opts.direction) {
case 'top':
y -= this.opts.distance;
break
case 'right':
x += this.opts.distance;
break
case 'bottom':
y += this.opts.distance;
break
case 'left':
x -= this.opts.distance;
break
}
TweenLite.to(object, this.opts.duration, {
x,
y,
alpha: 0,
ease: this.opts.ease,
overwrite: 'all',
onStart: () => {
if (this.opts.onStart) {
this.opts.onStart.call(object, object);
}
},
onComplete: () => {
if (this.opts.onComplete) {
this.opts.onComplete.call(object, object);
}
if (this.opts.destroyOnComplete) {
object.destroy({children: true});
}
}
});
}
return this
}
}
/* globals */
/**
* Class that represents a PixiJS List.
*
* @example
* const elephant1 = PIXI.Sprite.fromImage('./assets/elephant-1.jpg')
* const elephant2 = PIXI.Sprite.fromImage('./assets/elephant-2.jpg')
*
* // Create the list
* const list = new List([elephant1, elephant2])
*
* app.scene.addChild(list)
*
* @class
* @extends PIXI.Container
* @see {@link http://pixijs.download/dev/docs/PIXI.Container.html|PixiJS Container}
* @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/list.html|DocTest}
*/
class List extends PIXI.Container {
/**
* Creates an instance of a Flippable.
*
* @constructor
* @param {PIXI.DisplayObject[]} items - An array of PIXI.DisplayObjects.
* @param {object} [opts] - An options object which can contain the following properties.
* @param {number} [opts.width] - The width of the list. If the items are larger than this width, the overflow
* will be hidden.
* @param {number} [opts.height] - The height of the list. If the items are larger than this height, the overflow
* will be hidden.
* @param {number} [opts.padding=10] - The inner spacing (distance from one item to the previous/next item).
* @param {number} [opts.margin=10] - The outer spacing (distance from one item to the border).
* @param {string} [opts.orientation=vertical] - The orientation of the button group. Can be horizontal or vertical.
* @param {string} [opts.align=left] - The horizontal position of the items. Possible values are
* left, center and right.
* @param {string} [opts.verticalAlign=middle] - The vertical position of the items. Possible values are
* top, middle and bottom.
*/
constructor(items = [], opts = {}) {
super();
this.opts = Object.assign({}, {
padding: 10,
margin: 10,
orientation: 'vertical',
align: 'left',
verticalAlign: 'middle',
width: null,
height: null
}, opts);
this.__items = items;
this.__dragging = false;
// setup
//--------------------
this.setup();
}
/**
* Creates children and instantiates everything.
*
* @private
* @return {List} A reference to the list for chaining.
*/
setup() {
// inner container
//--------------------
const container = new PIXI.Container();
this.addChild(container);
this.container = container;
// mask
//--------------------
const mask = new PIXI.Graphics();
this.addChild(mask);
this.__mask = mask;
// add items
//--------------------
for(let item of this.__items) {
container.addChild(item);
}
// interaction
//--------------------
this.interactive = this.opts.width || this.opts.height;
this.on('pointerdown', this.onStart.bind(this));
this.on('pointermove', this.onMove.bind(this));
this.on('pointerup', this.onEnd.bind(this));
this.on('pointercancel', this.onEnd.bind(this));
this.on('pointerout', this.onEnd.bind(this));
this.on('pointerupoutside', this.onEnd.bind(this));
this.layout();
return this
}
/**
* Replaces the existing items and relayouts the list.
*
* @param {PIXI.DisplayObject[]} items - An array of PIXI.DisplayObjects.
* @return {List} A reference to the list for chaining.
*/
setItems(items) {
this.container.removeChildren();
this.__items = items;
for(let item of this.__items) {
this.container.addChild(item);
}
this.layout();
}
/**
* Should be called to refresh the layout of the list (the width or the height).
*
* @return {List} A reference to the list for chaining.
*/
layout() {
const margin = this.opts.margin;
let x = margin;
let y = margin;
for (let item of this.__items) {
item.x = x;
item.y = y;
if (this.opts.orientation === 'vertical') {
y += item.height + this.opts.padding;
} else {
x += item.width + this.opts.padding;
}
}
// vertical
//--------------------
if (this.opts.orientation === 'vertical') {
switch (this.opts.align) {
case 'center':
this.__items.forEach(it => it.x = margin + this.width / 2 - it.width / 2);
break
case 'right':
this.__items.forEach(it => it.x = margin + this.width - it.width);
break
default:
this.__items.forEach(it => it.x = margin);
break
}
if (this.opts.height) {
const mask = this.__mask;
mask.clear();
mask.beginFill(0x000);
mask.drawRect(0, 0, this.width + 2 * margin, this.opts.height);
this.mask = mask;
this.interactive = this.innerHeight > this.opts.height;
}
}
// horizontal
//--------------------
if (this.opts.orientation === 'horizontal') {
switch (this.opts.verticalAlign) {
case 'top':
this.__items.forEach(it => it.y = margin);
break
case 'bottom':
this.__items.forEach(it => it.y = margin + this.height - it.height);
break
default:
this.__items.forEach(it => it.y = margin + this.height / 2 - it.height / 2);
break
}
if (this.opts.width) {
const mask = this.__mask;
mask.clear();
mask.beginFill(0x000);
mask.drawRect(0, 0, this.opts.width, this.height + 2 * margin);
this.mask = mask;
this.interactive = this.innerWidth > this.opts.width;
}
}
return this
}
/**
*
*/
get innerWidth() {
let size = 0;
this.__items.forEach(it => size += it.width);
size += this.opts.padding * (this.__items.length - 1);
size += 2 * this.opts.margin;
return size
}
/**
*
*/
get innerHeight() {
let size = 0;
this.__items.forEach(it => size += it.height);
size += this.opts.padding * (this.__items.length - 1);
size += 2 * this.opts.margin;
return size
}
/**
* Resizes the list.
*
* @param {number} widthOrHeight - The new width (if orientation is horizontal) or height (if orientation is vertical) of the list.
*/
resize(widthOrHeight) {
if (this.opts.orientation === 'horizontal') {
this.opts.width = widthOrHeight;
} else {
this.opts.height = widthOrHeight;
}
this.layout();
}
/**
*
* @private
* @param {*} event
*/
onStart(event) {
this.__dragging = true;
this.capture(event);
this.__delta = {
x: this.container.position.x - event.data.global.x,
y: this.container.position.y - event.data.global.y
};
TweenLite.killTweensOf(this.container.position, {x: true, y: true});
ThrowPropsPlugin.track(this.container.position, 'x,y');
}
/**
*
* @private
* @param {*} event
*/
onMove(event) {
if (this.__dragging) {
this.capture(event);
if (this.opts.orientation === 'horizontal') {
this.container.position.x = event.data.global.x + this.__delta.x;
} else {
this.container.position.y = event.data.global.y + this.__delta.y;
}
}
}
/**
*
* @private
* @param {*} event
*/
onEnd(event) {
if (this.__dragging) {
this.__dragging = false;
this.capture(event);
const throwProps = {};
if (this.opts.orientation === 'horizontal') {
let min = this.opts.width - this.innerWidth;
min = min > 0 ? 0 : min;
throwProps.x = {
velocity: 'auto',
min,
max: 0
};
} else {
let min = this.opts.height - this.innerHeight;
min = min > 0 ? 0 : min;
throwProps.y = {
velocity: 'auto',
min,
max: 0
};
}
ThrowPropsPlugin.to(this.container.position, {
throwProps,
ease: Strong.easeOut,
onComplete: () => ThrowPropsPlugin.untrack(this.container.position)
}, .8, .4);
}
}
/**
* Captures an event to inform InteractionMapper about processed events.
*
* @param {event|PIXI.InteractionEvent} event - The PIXI event to capture.
*/
capture(event) {
Events$1.capturedBy(event.data.originalEvent, this);
}
}
/* Needed to ensure that rollup.js includes class definitions and the classes
are visible inside doctests.
*/
window.PIXIApp = PIXIApp;
window.BlurFilter = BlurFilter;
window.FlipEffect = FlipEffect;
window.Flippable = Flippable;
window.DeepZoomInfo = DeepZoomInfo;
window.DeepZoomImage = DeepZoomImage;
window.Popover = Popover;
window.ScatterContainer = ScatterContainer;
window.DisplayObjectScatter = DisplayObjectScatter;
window.Command = Command;
window.RecorderTools = RecorderTools;
window.Timeline = Timeline;
window.AppTest = AppTest;
window.Theme = Theme;
window.Button = Button;
window.ButtonGroup = ButtonGroup;
window.Slider = Slider;
window.Switch = Switch;
window.Popup = Popup;
window.PopupMenu = PopupMenu$1;
window.Modal = Modal;
window.Volatile = Volatile;
window.Message = Message;
window.Tooltip = Tooltip;
window.Badge = Badge;
window.Progress = Progress;
window.List = List;
window.LabeledGraphics = LabeledGraphics;
window.FontInfo = FontInfo;
}());
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxsLmpzIiwic291cmNlcyI6WyJ0aGVtZS5qcyIsInByb2dyZXNzLmpzIiwiYWJzdHJhY3Rwb3B1c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4gICAgICogQHBhcmFtIHtvYmplY3R9IFtvcHRzLnRleHRTdHlsZUxhcmdlPXRleHRTdHlsZSArIHtmb250U2l6ZTogKz0gM31dIC0gQSB0ZXh0c3R5bGUgb2JqZWN0IHdoaWNoIGlzIHVzZWQgZm9yXG4gICAgICogICAgIGxhcmdlIHRleHQuXG4gICAgICogQHBhcmFtIHtvYmplY3R9IFtvcHRzLnRleHRTdHlsZUxhcmdlQWN0aXZlPXRleHRTdHlsZUxhcmdlICsge2ZpbGw6IHByaW1hcnlDb2xvcn1dIC0gQSB0ZXh0c3R5bGUgb2JqZWN0IHdoaWNoXG4gICAgICogICAgIGlzIHVzZWQgZm9yIGxhcmdlIGFjdGl2ZWQgdGV4dC5cbiAgICAgKi9cbiAgICBjb25zdHJ1Y3RvcihvcHRzID0ge30pIHtcblxuICAgICAgICBjb25zdCBjb2xvclByaW1hcnkgPSBvcHRzLnByaW1hcnlDb2xvciAhPSBudWxsID8gb3B0cy5wcmltYXJ5Q29sb3IgOiAweDVlYzdmOCAgICAgICAgICAgICAgIC8vIGJsdWVcbiAgICAgICAgY29uc3QgY29sb3IxID0gb3B0cy5jb2xvcjEgIT0gbnVsbCA/IG9wdHMuY29sb3IxIDogMHgyODI4MjggICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBibGFja1xuICAgICAgICBjb25zdCBjb2xvcjIgPSBvcHRzLmNvbG9yMiAhPSBudWxsID8gb3B0cy5jb2xvcjIgOiAweGY2ZjZmNiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIHdoaXRlXG5cbiAgICAgICAgdGhpcy5vcHRzID0gT2JqZWN0LmFzc2lnbih7fSwge1xuICAgICAgICAgICAgbWFyZ2luOiAxMixcbiAgICAgICAgICAgIHBhZGRpbmc6IDEyLFxuICAgICAgICAgICAgcmFkaXVzOiA0LFxuICAgICAgICAgICAgZmFzdDogLjI1LFxuICAgICAgICAgICAgbm9ybWFsOiAuNSxcbiAgICAgICAgICAgIHNsb3c6IDEsXG4gICAgICAgICAgICBwcmltYXJ5Q29sb3I6IGNvbG9yUHJpbWFyeSxcbiAgICAgICAgICAgIGNvbG9yMTogY29sb3IxLFxuICAgICAgICAgICAgY29sb3IyOiBjb2xvcjIsXG4gICAgICAgICAgICBmaWxsOiBjb2xvcjEsXG4gICAgICAgICAgICBmaWxsQWxwaGE6IDEsXG4gICAgICAgICAgICBmaWxsQWN0aXZlOiBjb2xvcjEsXG4gICAgICAgICAgICBmaWxsQWN0aXZlQWxwaGE6IDEsXG4gICAgICAgICAgICBzdHJva2U6IGNvbG9yMixcbiAgICAgICAgICAgIHN0cm9rZVdpZHRoOiAuNixcbiAgICAgICAgICAgIHN0cm9rZUFscGhhOiAxLFxuICAgICAgICAgICAgc3Ryb2tlQWN0aXZlOiBjb2xvcjIsXG4gICAgICAgICAgICBzdHJva2VBY3RpdmVXaWR0aDogLjYsXG4gICAgICAgICAgICBzdHJva2VBY3RpdmVBbHBoYTogMSxcbiAgICAgICAgICAgIGljb25Db2xvcjogY29sb3IyLFxuICAgICAgICAgICAgaWNvbkNvbG9yQWN0aXZlOiBjb2xvclByaW1hcnksXG4gICAgICAgICAgICBiYWNrZ3JvdW5kOiBjb2xvcjFcbiAgICAgICAgfSwgb3B0cylcblxuICAgICAgICAvLyBTZXQgdGV4dFN0eWxlIGFuZCB2YXJpYW50c1xuICAgICAgICB0aGlzLm9wdHMudGV4dFN0eWxlID0gT2JqZWN0LmFzc2lnbih7fSwge1xuICAgICAgICAgICAgZm9udEZhbWlseTogJ1wiQXZlbmlyIE5leHRcIiwgXCJPcGVuIFNhbnNcIiwgXCJTZWdvZSBVSVwiLCBcIlJvYm90b1wiLCBcIkhlbHZldGljYSBOZXVlXCIsIC1hcHBsZS1zeXN0ZW0sIHN5c3RlbS11aSwgQmxpbmtNYWNTeXN0ZW1Gb250LCBBcmlhbCwgc2Fucy1zZXJpZiAhZGVmYXVsdCcsXG4gICAgICAgICAgICBmb250V2VpZ2h0OiAnNTAwJyx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G4gICAgICogQHBhcmFtIHtib29sZWFufSBbb3B0cy52aXNpYmxlPXRydWVdIC0gSXMgdGhlIHByb2dyZXNzIGluaXRpYWxseSB2aXNpYmxlIChwcm9wZXJ0eSB2aXNpYmxlKT9cbiAgICAgKi9cbiAgICBjb25zdHJ1Y3RvcihvcHRzID0ge30pIHtcblxuICAgICAgICBzdXBlcigpXG4gICAgICAgIFxuICAgICAgICBjb25zdCB0aGVtZSA9IFRoZW1lLmZyb21TdHJpbmcob3B0cy50aGVtZSlcbiAgICAgICAgdGhpcy50aGVtZSA9IHRoZW1lXG5cbiAgICAgICAgdGhpcy5vcHRzID0gT2JqZWN0LmFzc2lnbih7fSwge1xuICAgICAgICAgICAgaWQ6IFBJWEkudXRpbHMudWlkKCksXG4gICAgICAgICAgICBhcHA6IHdpbmRvdy5hcHAsXG4gICAgICAgICAgICB3aWR0aDogbnVsbCxcbiAgICAgICAgICAgIGhlaWdodDogMixcbiAgICAgICAgICAgIG1hcmdpbjogMTAwLFxuICAgICAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgICAgIGZpbGw6IHRoZW1lLmZpbGwsXG4gICAgICAgICAgICBmaWxsQWxwaGE6IHRoZW1lLmZpbGxBbHBoYSxcbiAgICAgICAgICAgIGZpbGxBY3RpdmU6IHRoZW1lLnByaW1hcnlDb2xvcixcbiAgICAgICAgICAgIGZpbGxBY3RpdmVBbHBoYTogdGhlbWUuZmlsbEFjdGl2ZUFscGhhLFxuICAgICAgICAgICAgc3Ryb2tlOiB0aGVtZS5zdHJva2UsXG4gICAgICAgICAgICBzdHJva2VXaWR0aDogMCxcbiAgICAgICAgICAgIHN0cm9rZUFscGhhOiB0aGVtZS5zdHJva2VBbHBoYSxcbiAgICAgICAgICAgIHN0cm9rZUFjdGl2ZTogdGhlbWUuc3Ryb2tlQWN0aXZlLFxuICAgICAgICAgICAgc3Ryb2tlQWN0aXZlV2lkdGg6IDAsXG4gICAgICAgICAgICBzdHJva2VBY3RpdmVBbHBoYT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AqL1xuICAgIGNvbnN0cnVjdG9yKG9wdHMgPSB7fSkge1xuXG4gICAgICAgIHN1cGVyKClcbiAgICAgICAgXG4gICAgICAgIGNvbnN0IHRoZW1lID0gVGhlbWUuZnJvbVN0cmluZyhvcHRzLnRoZW1lKVxuICAgICAgICB0aGlzLnRoZW1lID0gdGhlbWVcblxuICAgICAgICB0aGlzLm9wdHMgPSBPYmplY3QuYXNzaWduKHt9LCB7XG4gICAgICAgICAgICBpZDogUElYSS51dGlscy51aWQoKSxcbiAgICAgICAgICAgIHg6IDAsXG4gICAgICAgICAgICB5OiAwLFxuICAgICAgICAgICAgaGVhZGVyOiBudWxsLCAgICAgICAgICAgICAgICAgICAgICAgLy8gbnVsbCBvciBudWxsXG4gICAgICAgICAgICBjb250ZW50OiBudWxsLCAgICAgICAgICAgICAgICAgICAgICAvLyBudWxsIG9yIFN0cmluZyBvciBQSVhJLkRpc3BsYXlPYmplY3RcbiAgICAgICAgICAgIG1pbldpZHRoOiAzMjAsXG4gICAgICAgICAgICBtaW5IZWlnaHQ6IDEzMCxcbiAgICAgICAgICAgIG1heFdpZHRoOiBudWxsLFxuICAgICAgICAgICAgcGFkZGluZzogdGhlbWUucGFkZGluZyxcbiAgICAgICAgICAgIGZpbGw6IHRoZW1lLmZpbGwsXG4gICAgICAgICAgICBmaWxsQWxwaGE6IHRoZW1lLmZpbGxBbHBoYSxcbiAgICAgICAgICAgIHN0cm9rZTogdGhlbWUuc3Ryb2tlLFxuICAgICAgICAgICAgc3Ryb2tlV2lkdGg6IHRoZW1lLnN0cm9rZVdpZHRoLFxuICAgICAgICAgICAgc3Ryb2tlQWxwaGE6IHRoZW1lLnN0cm9rZUFscGhhLFxuICAgICAgICAgICAgaGVhZGVyU3R5bGU6IHRoZW1lLnRleHRTdHlsZUxhcmdlLFxuICAgICAgICAgICAgdGV4dFN0eWxlOiB0aGVtZS50ZXh0U3R5bGVTbWFsbCxcbiAgICAgICAgICAgIHJhZGl1czogdGhlbWUucmFkaXVzLFxuICAgICAgICAgICAgb25IaWRkZW46IG51bGwsXG4gICAgICAgICAgICB2aXNpYmxlOiB0cnVlLFxuICAgICAgICAgICAgb3JpZW50YXRpb246IG51bGxcbiAgICAgICAgfSwgb3B0cylcblxuICAgICAgICB0aGlzLmlkID0gdGhpcy5vcHRzLmlkXG5cbiAgICAgICAgdGhpcy5oZWFkZXJTdHlsZSA9IG5ldyBQSVhJLlRleHRTdHlsZSh0aGlzLm9wdHMuaGVhZGVyU3R5bGUpXG4gICAgICAgIHRoaXMudGV4dFN0eWxlID0gbmV3IFBJWEkuVGV4dFN0eWxlKHRoaXMub3B0cy50ZXh0U3R5bGUpXG5cbiAgICAgICAgaWYgKHRoaXMub3B0cy5tYXhXaWR0aCkge1xuICAgICAgICAgICAgdGhpcy5oZWFkZXJTdHlsZS53b3JkV3JhcCA9IHRydWVcbiAgICAgICAgICAgIHRoaXMuaGVhZGVyU3R5bGUud29yZFdyYXBXaWR0aCA9IHRoaXMub3B0cy5tYXhXaWR0aCAtICgyICogdGhpcy5vcHRzLnBhZGRpbmcpXG5cbiAgICAgICAgICAgIHRoaXMudGV4dFN0eWxlLndvcmRXcmFwID0gdHJ1ZVxuICAgICAgICAgICAgdGhpcy50ZXh0U3R5bGUud29yZFdyYXBXaWR0aCA9IHRoaXMub3B0cy5tYXhXaWR0aCAtICgyICogdGhpcy5vcHRzLnBhZGRpbmcpXG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLmFscGhhID0gMFxuICAgICAgICB0aGlzLnZpc2libGUgPSB0aGlzLm9wdHMudmlzaWJsZVxuXG4gICAgICAgIHRoaXMuX2hlYWRlciA9IG51bGxcbiAgICAgICAgdGhpcy5fY29udGVudCA9IG51bGxcblxuICAgICAgICAvLyBwb3NpdGlvblxuICAgICAgICB0aGlzLnggPSB0aGlzLm9wdHMueFxuICAgICAgICB0aGlzLnkgPSB0aGlzLm9wdHMueVxuXG4gICAgICAgIC8vIHBhZGRpbmdcbiAgICAgICAgdGhpcy5pb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uaGVhZGVyLnRvU3RyaW5nKCksIHRoaXMuaGVhZGVyU3R5bGUpXG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGhlYWRlciA9ICBuZXcgUElYSS5UZXh0KHRoaXMub3B0cy5oZWFkZXIsIHRoaXMuaGVhZGVyU3R5bGUpXG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGhlYWRlci54ID0gdGhpcy5vcHRzLnBhZGRpbmdcbiAgICAgICAgICAgIGhlYWRlci55ID0gdGhpcy5zeVxuXG4gICAgICAgICAgICB0aGlzLmFkZENoaWxkKGhlYWRlcilcblxuICAgICAgICAgICAgdGhpcy5zeSArPSBoZWFkZXIuaGVpZ2h0XG5cbiAgICAgICAgICAgIHRoaXMuX2hlYWRlciA9IGhlYWRlclxuICAgICAgICB9XG5cbiAgICAgICAgaWYgKHRoaXMub3B0cy5oZWFkZXIgJiYgdGhpcy5vcHRzLmNvbnRlbnQpIHtcbiAgICAgICAgICAgIHRoaXMuc3kgKz0gdGhpcy5pbm5lclBhZGRpbmdcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIGNvbnRlbnRcbiAgICAgICAgLy8tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAgICBpZiAodGhpcy5vcHRzLmNvbnRlbnQgIT0gbnVsbCkge1xuXG4gICAgICAgICAgICBsZXQgY29udGVudCA9IG51bGxcblxuICAgICAgICAgICAgaWYgKHR5cGVvZiB0aGlzLm9wdHMuY29udGVudCA9PT0gJ3N0cmluZycpIHtcbiAgICAgICAgICAgICAgICBjb250ZW50ID0gbmV3IFBJWEkuVGV4dCh0aGlzLm9wdHMuY29udGVudCwgdGhpcy50ZXh0U3R5bGUpXG4gICAgICAgICAgICB9IGVsc2UgaWYgKHR5cGVvZiB0aGlzLm9wdHMuY29udGVudCA9PT0gJ251bWJlcicpIHtcbiAgICAgICAgICAgICAgICBjb250ZW50ID0gbmV3IFBJWEkuVGV4dCh0aGlzLm9wdHMuY29udGVudC50b1N0cmluZygpLCB0aGlzLnRleHRTdHlsZSlcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgY29udGVudCA9IHRoaXMub3B0cy5jb250ZW50XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGNvbnRlbnQueCA9IHRoaXMub3B0cy5wYWRkaW5nXG4gICAgICAgICAgICBjb250ZW50LnkgPSB0aGlzLnN5XG5cbiAgICAgICAgICAgIHRoaXMuc3kgKz0gY29udGVudC5oZWlnaHRcblxuICAgICAgICAgICAgdGhpcy5hZGRDaGlsZChjb250ZW50KVxuXG4gICAgICAgICAgICB0aGlzLl9jb250ZW50ID0gY29udGVudFxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHRoaXNcbiAgICB9XG4gICAgXG4gICAgLyoqXG4gICAgICogU2hvdWxkIGJlIGNhbGxlZCB0byByZWZyZXNoIHRoZSBsYXlvdXQgb2YgdGhlIHBvcHVwLiBDYW4gYmUgdXNlZCBhZnRlciByZXNpemluZy5cbiAgICAgKiBcbiAgICAgKiBAcmV0dXJuIHtBYnN0cmFjdFBvcHVwfSBBIHJlZmVyZW5jZSB0byB0aGUgcG9wdXAgZm9yIGNoYWluaW5nLlxuICAgICAqL1xuICAgIGxheW91dCgpIHtcbiAgICAgICAgXG4gICAgICAgIC8vIHdhbnRlZCB3aWR0aCAmIHdhbnRlZCBoZWlnaHRcbiAgICAgICAgLy8tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAgICBjb25zdCBwYWRkaW5nID0gdGhpcy5vcHRzLnBhZGRpbmdcbiAgICAgICAgY29uc3Qgc2l6ZSA9IHRoaXMuZ2V0SW5uZXJTaXplKClcbiAgICAgICAgY29uc3Qgd2lkdGggPSBzaXplLndpZHRoICsgKDIgKiBwYWRkaW5nKVxuICAgICAgICBjb25zdCBoZWlnaHQgPSBzaXplLmhlaWdodCArICgyICogcGFkZGluZylcblxuICAgICAgICB0aGlzLndhbnRlZFdpZHRoID0gTWF0aC5tYXgod2lkdGgsIHRoaXMub3B0cy5taW5XaWR0aClcbiAgICAgICAgdGhpcy53YW50ZWRIZWlnaHQgPSBNYXRoLm1heChoZWlnaHQsIHRoaXMub3B0cy5taW5IZWlnaHQpXG4gICAgICAgIFxuICAgICAgICBpZiAodGhpcy5vcHRzLm1heFdpZHRoKSB7XG4gICAgICAgICAgICB0aGlzLndhbnRlZFdpZHRoID0gTWF0aC5taW4odGhpcy53YW50ZWRXaWR0aCwgdGhpcy5vcHRzLm1heFdpZHRoKVxuICAgICAgICB9XG5cbiAgICAgICAgaWYgKHRoaXMub3B0cy5yYWRpdXMgKiAyID4gdGhpcy53YW50ZWRXaWR0aCkge1xuICAgICAgICAgICAgdGhpcy53YW50ZWRXaWR0aCA9IHRoaXMub3B0cy5yYWRpdXMgKiAyXG4gICAgICAgIH1cblxuICAgICAgICBpZiAodGhpcy5vcHRzLnJhZGl1cyAqIDIgPiB0aGlzLndhbnRlZEhlaWdodCkge1xuICAgICAgICAgICAgdGhpcy53YW50ZWRIZWlnaHQgPSB0aGlzLm9wdHMucmFkaXVzICogMlxuICAgICAgICB9XG5cbiAgICAgICAgc3dpdGNoICh0aGlzLm9wdHMub3JpZW50YXRpb24pIHtcbiAgICAgICAgICAgIGNhc2UgJ3BvcnRyYWl0JzpcbiAgICAgICAgICAgICAgICBpZiAodGhpcy53YW50ZWRXaWR0aCA+IHRoaXMud2FudGVkSGVpZ2h0KSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMud2FudGVkSGVpZ2h0ID0gdGhpcy53YW50ZWRXaWR0aFxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBicmVha1xuICAgICAgICAgICAgY2FzZSAnbGFuZHNjYXBlJzpcbiAgICAgICAgICAgICAgICBpZiAodGhpcy53YW50ZWRIZWlnaHQgPiB0aGlzLndhbnRlZFdpZHRoKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMud2FudGVkV2lkdGggPSB0aGlzLndhbnRlZEhlaW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IG9uQ29tcGxldGU6ICgpID0+IHtcbiAgICAgICAgICAgICAgICB0aGlzLnZpc2libGUgPSBmYWxzZVxuICAgICAgICAgICAgICAgIGlmIChjYikge1xuICAgICAgICAgICAgICAgICAgICBjYi5jYWxsKHRoaXMpXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9KVxuXG4gICAgICAgIGlmICh0aGlzLm9wdHMub25IaWRkZW4pIHtcbiAgICAgICAgICAgIHRoaXMub3B0cy5vbkhpZGRlbi5jYWxsKHRoaXMsIHRoaXMpXG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gdGhpc1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFNldHMgb3IgZ2V0cyB0aGUgaGVhZGVyLiBUaGUgZ2V0dGVyIGFsd2F5cyByZXR1cm5zIGEgUElYSS5UZXh0IG9iamVjdC4gVGhlIHNldHRlciBjYW4gcmVjZWl2ZVxuICAgICAqIGEgc3RyaW5nLCBhIG51bWJlciBvciBhIFBJWEkuVGV4dCBvYmplY3QuXG4gICAgICogXG4gICAgICogQG1lbWJlciB7c3RyaW5nfG51bWJlcnxQSVhJLlRleHR9XG4gICAgICovXG4gICAgZ2V0IGhlYWRlcigpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuX2hlYWRlclxuICAgIH1cbiAgICBzZXQgaGVhZGVyKHZhbHVlKSB7XG4gICAgICAgIGlmICh0aGlzLl9oZWFkZXIpIHtcbiAgICAgICAgICAgIHRoaXMuX2hlYWRlci5kZXN0cm95KClcbiAgICAgICAgfVxuICAgICAgICB0aGlzLm9wdHMuaGVhZGVyID0gdmFsdWVcbiAgICAgICAgdGhpcy5zZXR1cCgpLmxheW91dCgpXG4gICAgfVxuICAgIFxuICAgIC8qKlxuICAgICAqIFNldHMgb3IgZ2V0cyB0aGUgY29udGVudC4gVGhlIGdldHRlciBhbHdheXMgcmV0dXJucyBhbiBQSVhJLkRpc3BsYXlPYmplY3QuIFRoZSBzZXR0ZXI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ICAgICAgICAgICAgdGhpcy5vcHRzLmNvbnRhaW5lci5yZW1vdmVDaGlsZCh0aGlzKVxuICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICB9XG4gICAgICAgIH0pXG4gICAgICAgIFxuICAgICAgICAvLyBiaW5kIGV2ZW50cyBvYmplY3RcbiAgICAgICAgLy8tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAgICBjb25zdCBvYmplY3QgPSB0aGlzLm9wdHMub2JqZWN0XG4gICAgICAgIG9iamVjdC5pbnRlcmFjdGl2ZSA9IHRydWVcblxuICAgICAgICBsZXQgbW91c2VvdmVyT2JqZWN0ID0gZmFsc2VcblxuICAgICAgICBvYmplY3Qub24oJ21vdXNlb3ZlcicsIGUgPT4ge1xuXG4gICAgICAgICAgICB0aGlzLnRpbWVvdXQgPSB3aW5kb3cuc2V0VGltZW91dCgoKSA9PiB7XG4gICAgICAgICAgICAgICAgbW91c2VvdmVyT2JqZWN0ID0gdHJ1ZVxuICAgICAgICAgICAgICAgIHRoaXMudmlzaWJsZSA9IHRydWVcbiAgICAgICAgICAgICAgICB0aGlzLm9wdHMuY29udGFpbmVyLmFkZENoaWxkKHRoaXMpXG4gICAgICAgICAgICAgICAgdGhpcy5zZXRQb3NpdGlvbihlKVxuICAgICAgICAgICAgfSwgdGhpcy5vcHRzLmRlbGF5ICogMTAwMClcbiAgICAgICAgfSlcblxuICAgICAgICBvYmplY3Qub24oJ21vdXNlbW92ZScsIGUgPT4ge1xuICAgICAgICAgICAgaWYgKG1vdXNlb3Zlck9iamVjdCkge1xuICAgICAgICAgICAgICAgIHRoaXMuc2V0UG9zaXRpb24oZSlcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSlcblxuICAgICAgICBvYmplY3Qub24oJ21vdXNlb3V0JywgZSA9PiB7XG4gICAgICAgICAgICBtb3VzZW92ZXJPYmplY3QgPSBmYWxzZVxuICAgICAgICAgICAgd2luZG93LmNsZWFyVGltZW91dCh0aGlzLnRpbWVvdXQpXG4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RcbiAgICAgICAgLy8tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAgICB0aGlzLmxheW91dCgpXG4gICAgfVxuICAgIFxuICAgIC8qKlxuICAgICAqIENyZWF0ZXMgY2hpbGRyZW4gYW5kIGluc3RhbnRpYXRlcyBldmVyeXRoaW5nLlxuICAgICAqXG4gICAgICogQHByaXZhdGVcbiAgICAgKiBAb3ZlcnJpZGVcbiAgICAgKiBAcmV0dXJuIHtCYWRnZX0gQSByZWZlcmVuY2UgdG8gdGhlIGJhZGdlIGZvciBjaGFpbmluZy5cbiAgICAgKi9cbiAgICBzZXR1cCgpIHtcblxuICAgICAgICBzdXBlci5zZXR1cCgpXG5cbiAgICAgICAgLy8gdG9vbHRpcFxuICAgICAgICAvLy0tLS0tLS0tLS0tLS0tLS0tXG4gICAgICAgIGlmICh0aGlzLm9wdHMudG9vbHRpcCkge1xuICAgICAgICAgICAgaWYgKHR5cGVvZiB0aGlzLm9wdHMudG9vbHRpcCA9PT0gJ3N0cmluZycpIHtcbiAgICAgICAgICAgICAgICB0aGlzLnRvb2x0aXAgPSBuZXcgVG9vbHRpcCh7b2JqZWN0OiB0aGlzLCBjb250ZW50OiB0aGlzLm9wdHMudG9vbHRpcH0pXG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHRoaXMub3B0cy50b29sdGlwID0gT2JqZWN0LmFzc2lnbih7fSwge29iamVjdDogdGhpc30sIHRoaXMub3B0cy50b29sdGlwKVxuICAgICAgICAgICAgICAgIHRoaXMudG9vbHRpcCA9IG5ldyBUb29sdGlwKHRoaXMub3B0cy50b29sdGlwKVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHRoaXNcbiAgICB9XG4gICAgXG4gICAgLyoqXG4gICAgICogU2hvdWxkIGJlIGNhbGxlZCB0byByZWZyZXNoIHRoZSBsYXlvdXQgb2YgdGhlIGJhZGdlLiBDYW4gYmUgdXNlZCBhZnRlciByZXNpemluZy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mhhcyhldmVudCwgJ21vdXNlRG93blN1YnN0aXR1dGUnKVxuICAgIH1cblxuICAgIHN0YXRpYyBpc01vdXNlUmlnaHRDbGljayhldmVudCkge1xuICAgICAgICByZXR1cm4gZXZlbnQuYnV0dG9ucyB8fCBldmVudC53aGljaFxuICAgIH1cblxuICAgIHN0YXRpYyBleHRyYWN0VG91Y2hlcyh0YXJnZXRzKSB7XG4gICAgICAgIGxldCB0b3VjaGVzID0gW11cbiAgICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCB0YXJnZXRzLmxlbmd0aDsgaSsrKSB7XG4gICAgICAgICAgICBsZXQgdCA9IHRhcmdldHNbaV1cbiAgICAgICAgICAgIHRvdWNoZXMucHVzaCh7XG4gICAgICAgICAgICAgICAgdGFyZ2V0U2VsZWN0b3I6IHRoaXMuc2VsZWN0b3IodC50YXJnZXQpLFxuICAgICAgICAgICAgICAgIGlkZW50aWZpZXI6IHQuaWRlbnRpZmllcixcbiAgICAgICAgICAgICAgICBzY3JlZW5YOiB0LnNjcmVlblgsXG4gICAgICAgICAgICAgICAgc2NyZWVuWTogdC5zY3JlZW5ZLFxuICAgICAgICAgICAgICAgIGNsaWVudFg6IHQuY2xpZW50WCxcbiAgICAgICAgICAgICAgICBjbGllbnRZOiB0LmNsaWVudFksXG4gICAgICAgICAgICAgICAgcGFnZVg6IHQucGFnZVgsXG4gICAgICAgICAgICAgICAgcGFnZVk6IHQucGFnZVlcbiAgICAgICAgICAgIH0pXG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHRvdWNoZXNcbiAgICB9XG5cbiAgICBzdGF0aWMgY3JlYXRlVG91Y2hMaXN0KHRhcmdldHMpIHtcbiAgICAgICAgbGV0IHRvdWNoZXMgPSBbXVxuICAgICAgICBmb3IgKGxldCBpID0gMDsgaSA8IHRhcmdldHMubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgIGxldCB0ID0gdGFyZ2V0c1tpXVxuICAgICAgICAgICAgbGV0IHRvdWNoVGFyZ2V0ID0gZG9jdW1lbnQuZWxlbWVudEZyb21Qb2ludCh0LnBhZ2VYLCB0LnBhZ2VZKVxuICAgICAgICAgICAgbGV0IHRvdWNoID0gbmV3IFRvdWNoKHVuZGVmaW5lZCwgdG91Y2hUYXJnZXQsIHQuaWRlbnRpZmllcixcbiAgICAgICAgICAgICAgICB0LnBhZ2VYLCB0LnBhZ2VZLCB0LnNjcmVlblgsIHQuc2NyZWVuWSlcbiAgICAgICAgICAgIHRvdWNoZXMucHVzaCh0b3VjaClcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gbmV3IFRvdWNoTGlzdCguLi50b3VjaGVzKVxuICAgIH1cblxuICAgIHN0YXRpYyBleHRyYWN0RXZlbnQodGltZXN0YW1wLCBldmVudCkge1xuICAgICAgICBsZXQgdGFyZ2V0U2VsZWN0b3IgPSB0aGlzLnNlbGVjdG9yKGV2ZW50LnRhcmdldClcbiAgICAgICAgbGV0IGluZm9zID0ge1xuICAgICAgICAgICAgdHlwZTogZXZlbnQudHlwZSxcbiAgICAgICAgICAgIHRpbWU6IHRpbWVzdGFtcCxcbiAgICAgICAgICAgIGNvbnN0cnVjdG9yOiBldmVudC5jb25zdHJ1Y3RvcixcbiAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAgICB0YXJnZXRTZWxlY3RvcjogdGFyZ2V0U2VsZWN0b3IsXG4gICAgICAgICAgICAgICAgdmlldzogZXZlbnQudmlldyxcbiAgICAgICAgICAgICAgICBtb3VzZURvd25TdWJzdGl0dXRlOiBldmVudC5idXR0b25zIHx8IGV2ZW50LndoaWNoLCAvLyB3aGljaCBjYW5ub3QgYmUgY2xvbmVkIGRpcmVjdGx5XG4gICAgICAgICAgICAgICAgYnViYmxlczogZXZlbnQuYnViYmxlcyxcbiAgICAgICAgICAgICAgICBjYW5jZWxhYmxlOiBldmVudC5jYW5jZWxhYmxlLFxuICAgICAgICAgICAgICAgIHNjcmVlblg6IGV2ZW50LnNjcmVlblgsXG4gICAgICAgICAgICAgICAgc2NyZWVuWTogZXZlbnQuc2NyZWVuWSxcbiAgICAgICAgICAgICAgICBjbGllbnRYOiBldmVudC5jbGllbnRYLFxuICAgICAgICAgICAgICAgIGNsaWVudFk6IGV2ZW50LmNsaWVudFksXG4gICAgICAgICAgICAgICAgbGF5ZXJYOiBldmVudC5sYXllclgsXG4gICAgICAgICAgICAgICAgbGF5ZXJZOiBldmVudC5sYXllclksXG4gICAgICAgICAgICAgICAgcGFnZVg6IGV2ZW50LnBhZ2VYLFxuICAgICAgICAgICAgICAgIHBhZ2VZOiBldmVudC5wYWdlWSxcbiAgICAgICAgICAgICAgICBjdHJsS2V5OiBldmVudC5jdHJsS2V5LFxuICAgICAgICAgICAgICAgIGFsdEtleTogZXZlbnQuYWx0S2V5LFxuICAgICAgICAgICAgICAgIHNoaWZ0S2V5OiBldmVudC5zaGlmdEtleSxcbiAgICAgICAgICAgICAgICBtZXRhS2V5OiBldmVudC5tZXRhS2V5XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgaWYgKGV2ZW50LnR5cGUuc3RhcnRzV2l0aCgndG91Y2gnKSkge1xuICAgICAgICAgICAgLy8gT24gU2FmYXJpLVdlYktpdCB0aGUgVG91Y2hFdmVudCBoYXMgbGF5ZXJYLCBsYXllclkgY29vcmRpbmF0ZXNcbiAgICAgICAgICAgIGxldCBkYXRhID0gaW5mb3MuZGF0YVxuICAgICAgICAgICAgZGF0YS50YXJnZXRUb3VjaGVzID0gdGhpcy5leHRyYWN0VG91Y2hlcyhldmVudC50YXJnZXRUb3VjaGVzKVxuICAgICAgICAgICAgZGF0YS5jaGFuZ2VkVG91Y2hlcyA9IHRoaXMuZXh0cmFjdFRvdWNoZXMoZXZlbnQuY2hhbmdlZFRvdWNoZXMpXG4gICAgICAgICAgICBkYXRhLnRvdWNoZXMgPSB0aGlzLmV4dHJhY3RUb3VjaGVzKGV2ZW50LnRvdWNoZXMpXG4gICAgICAgIH1cbiAgICAgICAgaW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mVudC50eXBlXG4gICAgICAgIGxldCBzZWxlY3RvciA9IHRoaXMuc2VsZWN0b3IoZXZlbnQudGFyZ2V0KVxuICAgICAgICByZXN1bHQgKz0gJyBzZWxlY3RvcjogJyArIHNlbGVjdG9yXG4gICAgICAgIGlmIChldmVudC50YXJnZXQgIT0gZG9jdW1lbnQucXVlcnlTZWxlY3RvcihzZWxlY3RvcikpXG4gICAgICAgICAgICBjb25zb2xlLmxvZygnQ2Fubm90IHJlc29sdmUnLCBzZWxlY3RvcilcbiAgICAgICAgbGV0IGtleXMgPSBbJ2xheWVyWCcsICdsYXllclknLCAncGFnZVgnLCAncGFnZVknLCAnY2xpZW50WCcsICdjbGllbnRZJ11cbiAgICAgICAgZm9yIChsZXQga2V5IG9mIGtleXMpIHtcbiAgICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICAgICAgcmVzdWx0ICs9ICcgJyArIGtleSArICc6JyArIGV2ZW50W2tleV1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGNhdGNoIChlKSB7XG4gICAgICAgICAgICAgICAgY29uc29sZS5sb2coJ0ludmFsaWQga2V5OiAnICsga2V5KVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiByZXN1bHRcbiAgICB9XG5cbiAgICBzdGF0aWMgY29tcGFyZUV4dHJhY3RlZFdpdGhTaW11bGF0ZWQoKSB7XG4gICAgICAgIHZhciBkaWZmcyA9IDBcbiAgICAgICAgaWYgKHRoaXMuZXh0cmFjdGVkLmxlbmd0aCAhPSB0aGlzLnNpbXVsYXRlZC5sZW5ndGgpIHtcbiAgICAgICAgICAgIGFsZXJ0KCdVbmVxdWFsIGxlbmd0aCBvZiBleHRyYWN0ZWQgWycgKyB0aGlzLmV4dHJhY3RlZC5sZW5ndGggK1xuICAgICAgICAgICAgICAgICddIGFuZCBzaW11bGF0ZWQgZXZlbnRzIFsnICsgdGhpcy5zaW11bGF0ZWQubGVuZ3RoICsgJ10uJylcbiAgICAgICAgICAgIGRpZmZzICs9IDFcbiAgICAgICAgfVxuICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgIGZvciAobGV0IGkgPSAwOyBpIDwgdGhpcy5leHRyYWN0ZWQubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgICAgICB2YXIgZXh0cmFjdGVkID0gdGhpcy5leHRyYWN0ZWRbaV1cbiAgICAgICAgICAgICAgICB2YXIgc2ltdWxhdGVkID0gdGhpcy5zaW11bGF0ZWRbaV1cbiAgICAgICAgICAgICAgICBpZiAoZXh0cmFjdGVkICE9IHNpbXVsYXRlZCkge1xuICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZygnRXZlbnRzIGRpZmZlcjonICsgZXh0cmFjdGVkICsgJ3wnICsgc2ltdWxhdGVkKVxuICAgICAgICAgICAgICAgICAgICBkaWZmcyArPSAxXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgc3RhdGljIHNlbGVjdG9yKGNvbnRleHQpIHtcbiAgICAgICAgcmV0dXJuIE9wdGltYWxTZWxlY3Quc2VsZWN0KGNvbnRleHQpXG4gICAgfVxuXG4gICAgc3RhdGljIHJlc2V0KCkge1xuICAgICAgICB0aGlzLmV4dHJhY3RlZCA9IFtdXG4gICAgICAgIHRoaXMuc2ltdWxhdGVkID0gW11cbiAgICB9XG5cbiAgICBzdGF0aWMgcmVzZXRTaW11bGF0ZWQoKSB7XG4gICAgICAgIHRoaXMuc2ltdWxhdGVkID0gW11cbiAgICB9XG5cbiAgICBzdGF0aWMgc2hvd0V4dHJhY3RlZEV2ZW50cyhldmVudCkge1xuICAgICAgICBpZiAoIWV2ZW50LnNoaWZ0S2V5KSB7XG4gICAgICAgICAgICByZXR1cm5cbiAgICAgICAgfVxuICAgICAgICBpZiAodGhpcy5wb3B1cCA9PSBudWxsKSB7XG4gICAgICAgICAgICBsZXQgZWxlbWVudCA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ2RpdicpXG4gICAgICAgICAgICBFbGVtZW50cy5zZXRTdHlsZShlbGVtZW50LCB7XG4gICAgICAgICAgICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICAgICAgICAgICAgd2lkdGg6ICc0ODBweCcsXG4gICAgICAgICAgICAgICAgaGVpZ2h0OiAnNjQwcHgnLFxuICAgICAgICAgICAgICAgIG92ZXJmbG93OiAnYXV0bycsXG4gICAgICAgICAgICAgICAgYmFja2dyb3VuZENvbG9yOiAnbGlnaHRncmF5J1xuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIGRvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoZWxlbWVudClcbiAgICAgICAgICAgIHRoaXMucG9wdXAgPSBlbGVtZW50XG4gICAgICAgIH1cbiAgICAgICAgdGhpcy5wb3B1cC5pbm5lckhUTUwgPSAnJ1xuICAgICAgICBmb3IgKGxldCBsaW5lIG9mIHRoaXMuZXh0cmFjdGVkKSB7XG4gICAgICAgICAgICBsZXQgZGl2ID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnZGl2JylcbiAgICAgICAgICAgIGRpdi5pbm5lckhUTUwgPSBsaW5lXG4gICAgICAgICAgICB0aGlzLnBvcHVwLmFwcGVuZENoaWxkKGRpdilcbiAgICAgICAgfVxuICAgICAgICBsZXQgZGl2ID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnZGl2JylcbiAgICAgICAgZGl2LmlubmVySFRNTCA9ICctLS0tLS0tLS0tLS0gU2ltdWxhdGVkIC0tLS0tLS0tLS0tJ1xuICAgICAgICB0aGlzLnBvcHVwLmFwcGVuZENoaWxkKGRpdilcbiAgICAgICAgZm9yIChsZXQgbGluZSBvZiB0aGlzLnNpbXVsYXRlZCkge1xuICAgICAgICAgICAgbGV0IGRpdiA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ2RpdicpXG4gICAgICAgICAgICBkaXYuaW5uZXJIVE1MID0gbGluZVxuICAgICA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lmICh0aGlzLnN0ZXAgPCB0aGlzLnJlY29yZGVkLmxlbmd0aCkge1xuICAgICAgICAgICAgICAgIHZhciBuZXh0ID0gdGhpcy5yZWNvcmRlZFt0aGlzLnN0ZXBdXG4gICAgICAgICAgICAgICAgZHQgPSBuZXh0LnRpbWUgLSB0aW1lXG4gICAgICAgICAgICAgICAgaWYgKGR0IDwgMCkge1xuICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZygnd2FybmluZzogd3JvbmcgdGVtcG9yYWwgb3JkZXInKVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmICh3aGlsZUNvbmRpdGlvbiA9PSBudWxsIHx8IHdoaWxlQ29uZGl0aW9uKCkpIHtcbiAgICAgICAgICAgICAgICBsZXQgZGVsdGEgPSBNYXRoLnJvdW5kKGR0KVxuICAgICAgICAgICAgICAgIHNldFRpbWVvdXQoKCkgPT4gdGhpcy5yZXBsYXkod2hpbGVDb25kaXRpb24sIG9uQ29tcGxldGUpLCBkZWx0YSlcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgIGNvbnNvbGUubG9nKCdQbGF5ZWQgJyArIHRoaXMuc3RlcCArICcgZXZlbnRzJyArIG9uQ29tcGxldGUpXG4gICAgICAgICAgICBFdmVudHMuc2ltdWxhdGlvblJ1bm5pbmcgPSBmYWxzZVxuICAgICAgICAgICAgaWYgKG9uQ29tcGxldGUgIT0gbnVsbCkge1xuICAgICAgICAgICAgICAgIG9uQ29tcGxldGUoKVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgLy9FdmVudHMuY29tcGFyZUV4dHJhY3RlZFdpdGhTaW11bGF0ZWQoKVxuICAgICAgICB9XG4gICAgfVxufVxuXG4iLCJpbXBvcnQgVGhlbWUgZnJvbSAnLi90aGVtZS5qcydcbmltcG9ydCBUb29sdGlwIGZyb20gJy4vdG9vbHRpcC5qcydcbmltcG9ydCBC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cbiAgICAgICAgdGhpcy5hZGRDaGlsZChidXR0b24pXG5cbiAgICAgICAgLy8gQ29udGVudFxuICAgICAgICAvLy0tLS0tLS0tLS0tLS0tLS0tXG4gICAgICAgIGxldCBjb250ZW50ID0gbmV3IFBJWEkuQ29udGFpbmVyKClcbiAgICAgICAgdGhpcy5jb250ZW50ID0gY29udGVudFxuICAgICAgICB0aGlzLmFkZENoaWxkKGNvbnRlbnQpXG5cbiAgICAgICAgLy8gVGV4dFxuICAgICAgICAvLy0tLS0tLS0tLS0tLS0tLS0tXG4gICAgICAgIGlmICh0aGlzLm9wdHMubGFiZWwpIHtcbiAgICAgICAgICAgIHRoaXMudGV4dCA9IG5ldyBQSVhJLlRleHQodGhpcy5vcHRzLmxhYmVsLCB0aGlzLm9wdHMudGV4dFN0eWxlKVxuICAgICAgICB9XG5cbiAgICAgICAgLy8gSWNvblxuICAgICAgICAvLy0tLS0tLS0tLS0tLS0tLS0tXG4gICAgICAgIGlmICh0aGlzLm9wdHMuaWNvbikge1xuICAgICAgICAgICAgdGhpcy5pY29uSW5hY3RpdmUgPSB0aGlzLmxvYWRJY29uKHRoaXMub3B0cy5pY29uLCB0aGlzLm9wdHMuaWNvbkNvbG9yKVxuICAgICAgICB9XG5cbiAgICAgICAgaWYgKHRoaXMub3B0cy5pY29uQWN0aXZlKSB7XG4gICAgICAgICAgICB0aGlzLmljb25BY3RpdmUgPSB0aGlzLmxvYWRJY29uKHRoaXMub3B0cy5pY29uQWN0aXZlLCB0aGlzLm9wdHMuaWNvbkNvbG9yQWN0aXZlKVxuICAgICAgICB9XG5cbiAgICAgICAgLy8gaW50ZXJhY3Rpb25cbiAgICAgICAgLy8tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAgICB0aGlzLmJ1dHRvbi5vbigncG9pbnRlcm92ZXInLCBlID0+IHtcbiAgICAgICAgICAgIHRoaXMuY2FwdHVyZShlKVxuICAgICAgICAgICAgVHdlZW5MaXRlLnRvKFt0aGlzLmJ1dHRvbiw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HRoaXMpXG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIFR3ZWVuTGl0ZS50byhbdGhpcy5idXR0b24sIHRoaXMuY29udGVudF0sIHRoaXMudGhlbWUuZmFzdCwge2FscGhhOiAuODMsIG92ZXJ3cml0ZTogJ25vbmUnfSlcblxuICAgICAgICAgICAgaWYgKHRoaXMub3B0cy50eXBlID09PSAnY2hlY2tib3gnKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5hY3RpdmUgPSAhdGhpcy5hY3RpdmVcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYgKHRoaXMub3B0cy5hZnRlckFjdGlvbikge1xuICAgICAgICAgICAgICAgIHRoaXMub3B0cy5hZnRlckFjdGlvbi5jYWxsKHRoaXMsIGUsIHRoaXMpXG4gICAgICAgICAgICB9XG4gICAgICAgIH0pXG5cbiAgICAgICAgLy8gZGlzYWJsZWRcbiAgICAgICAgLy8tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAgICB0aGlzLmRpc2FibGVkID0gdGhpcy5vcHRzLmRpc2FibGVkXG5cbiAgICAgICAgLy8gYWN0aXZlXG4gICAgICAgIC8vLS0tLS0tLS0tLS0tLS0tLS1cbiAgICAgICAgdGhpcy5hY3RpdmUgPSB0aGlzLm9wdHMuYWN0aXZlICAgICAgLy8gY2FsbHMgLmxheW91dCgpXG5cbiAgICAgICAgLy8gdG9vbHRpcFxuICAgICAgICAvLy0tLS0tLS0tLS0tLS0tLS0tXG4gICAgICAgIGlmICh0aGlzLm9wdHMudG9vbHRpcCkge1xuICAgICAgICAgICAgaWYgKHR5cGVvZiB0aGlzLm9wdHMudG9vbHRpcCA9PT0gJ3N0cmluZycpIHtcbiAgICAgICAgICAgICAgICB0aGlzLnRvb2x0aXAgPSBuZXcgVG9vbHRpcCh7b2JqZWN0OiB0aGlzLCBjb250ZW50OiB0aGlzLm9wdHMudG9vbHRpcH0pXG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHRoaXMub3B0cy50b29sdGlwID0gT2JqZWN0LmFzc2lnbih7fSwge29iamVjdDogdGhpc30sIHRoaXMub3B0cy50b29sdGlwKVxuICAgICAgICAgICAgICAgIHRoaXMudG9vbHRpcCA9IG5ldyBUb29sdGlwKHRoaXMub3B0cy50b29sdGlwKVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgLy8gYmFkZ2VcbiAgICAgICAgLy8tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAgICBpZiAodGhpcy5vcHRzLmJhZGdlKSB7XG4gICAgICAgICAgICBsZXQgb3B0cyA9IE9iamVjdC5hc3NpZ24oe30sIHtcbiAgICAgICAgICAgICAgICBhbGlnbjogJ3JpZ2h0JyxcbiAgICAgICAgICAgICAgICB2ZXJ0aWNhbEFsaWduOiAndG9wJyxcbiAgICAgICAgICAgICAgICBvZmZzZXRMZWZ0OiAwLFxuICAgICAgICAgICAgICAgIG9mZnNldFRvcDogMFxuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIGlmICh0eXBlb2YgdGhpcy5vcHRzLmJhZGdlID09PSAnc3RyaW5nJykge1xuICAgICAgICAgICAgICAgIG9wdHMgPSBPYmplY3QuYXNzaWduKG9wdHMsIHtjb250ZW50OiB0aGlzLm9wdHMuYmFkZ2V9KVxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBvcHRzID0gT2JqZWN0LmFzc2lnbihvcHRzLCB0aGlzLm9wdHMuYmFkZ2UpXG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGNvbnN0IGJhZGdlID0gbmV3IEJhZGdlKG9wdHMpXG5cbiAgICAgICAgICAgIHN3aXRjaCAob3B0cy5hbGlnbikge1xuICAgICAgICAgICAgICAgIGNhc2UgJ2xlZnQnOlxuICAgICAgICAgICAgICAgICAgICBiYWRnZS54ID0gdGhpcy54IC0gYmFkZ2Uud2lkdGggLyAyICsgb3B0cy5vZmZzZXRMZWZ0XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICAgICAgY2FzZSAnY2VudGVyJzpcbiAgICAgICAgICAgICAgICAgICAgYmFkZ2UueCA9IHRoaXMueCArIHRoaXMud2lkdGggLyAyIC0gYmFkZ2Uud2lkdGggLyAyICsgb3B0cy5vZmZzZXRMZWZ0XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICAgICAgY2FzZSAncmlnaHQnOlxuICAgICAgICAgICAgICAgICAgICBiYWRnZS54ID0gdGhpcy54ICsgdGhpcy53aWR0aCAtIGJhZGdlLndpZHRoIC8gMiArIG9wdHMub2Zmc2V0TGVmdFxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBzd2l0Y2ggKG9wdHMudmVydGljYWxBbGlnbikge1xuICAgICAgICAgICAgICAgIGNhc2UgJ3RvcCc6XG4gICAgICAgICAgICAgICAgICAgIGJhZGdlLnkgPSB0aGlzLnkgLSBiYWRnZS5oZWlnaHQgLyAyICsgb3B0cy5vZmZzZXRUb3BcbiAgICAgICAgICAgICAgICAgICAgYnJlYWtcbiAgICAgICAgICAgICAgICBjYXNlICdtaWRkbGUnOlxuICAgICAgICAgICAgICAgICAgICBiYWRnZS55ID0gdGhpcy55ICsgdGhpcy5oZWlnaHQgLyAyIC0gYmFkZ2UuaGVpZ2h0IC8gMiArIG9wdHMub2Zmc2V0VG9wXG4gICAgICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICAgICAgY2FzZSAnYm90dG9tJzpcbiAgICAgICAgICAgICAgICAgICAgYmFkZ2UueSA9IHRoaXMueSArIHRoaXMuaGVpZ2h0IC0gYmFkZ2UuaGVpZ2h0IC8gMiArIG9wdHMub2Zmc2V0VG9wXG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHRoaXMuYWRkQ2hpbGQoYmFkZ2UpXG5cbiAgICAgICAgICAgIHRoaXMuYmFkZ2UgPSBiYWRnZVxuICAgICAgICB9XG5cbiAgICAgICAgLy8gc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gICAgICAgaWYgKHRoaXMudGV4dCkge1xuICAgICAgICAgICAgdGhpcy50ZXh0LnBvc2l0aW9uLnNldCgwLCAwKVxuICAgICAgICB9XG5cbiAgICAgICAgLy8gV2lkdGggYW5kIEhlaWdodFxuICAgICAgICAvLy0tLS0tLS0tLS0tLS0tLS0tXG4gICAgICAgIGxldCB3aWR0aCA9IDBcbiAgICAgICAgaWYgKGljb24gJiYgdGhpcy50ZXh0KSB7XG4gICAgICAgICAgICB3aWR0aCA9IGljb24ud2lkdGggKyB0aGlzLnRleHQud2lkdGggKyAzICogdGhpcy5vcHRzLnBhZGRpbmdcbiAgICAgICAgfSBlbHNlIGlmIChpY29uKSB7XG4gICAgICAgICAgICB3aWR0aCA9IGljb24ud2lkdGggKyAyICogdGhpcy5vcHRzLnBhZGRpbmdcbiAgICAgICAgfSBlbHNlIGlmICh0aGlzLnRleHQpIHtcbiAgICAgICAgICAgIHdpZHRoID0gdGhpcy50ZXh0LndpZHRoICsgMiAqIHRoaXMub3B0cy5wYWRkaW5nXG4gICAgICAgIH1cblxuICAgICAgICBpZiAod2lkdGggPCB0aGlzLm9wdHMubWluV2lkdGgpIHtcbiAgICAgICAgICAgIHdpZHRoID0gdGhpcy5vcHRzLm1pbldpZHRoXG4gICAgICAgIH1cblxuICAgICAgICBsZXQgaGVpZ2h0ID0gMFxuICAgICAgICBpZiAoaWNvbikge1xuICAgICAgICAgICAgaGVpZ2h0ID0gaWNvbi5oZWlnaHQgKyAyICogdGhpcy5vcHRzLnBhZGRpbmdcbiAgICAgICAgfSBlbHNlIGlmICh0aGlzLnRleHQpIHtcbiAgICAgICAgICAgIGhlaWdodCA9IHRoaXMudGV4dC5oZWlnaHQgKyAyICogdGhpcy5vcHRzLnBhZGRpbmdcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChoZWlnaHQgPCB0aGlzLm9wdHMubWluSGVpZ2h0KSB7XG4gICAgICAgICAgICBoZWlnaHQgPSB0aGlzLm9wdHMubWluSGVpZ2h0XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLl93aWR0aCA9IHdpZHRoXG4gICAgICAgIHRoaXMuX2hlaWdodCA9IGhlaWdodFxuXG4gICAgICAgIC8vIFBvc2l0aW9uIGljb24gYW5kIHRleHRcbiAgICAgICAgLy8tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAgICBpZiAoaWNvbiAmJiB0aGlzLnRleHQpIHtcbiAgICAgICAgICAgIGlmICh0aGlzLm9wdHMuaWNvblBvc2l0aW9uID09PSAncmlnaHQnKSB7XG4gICAgICAgICAgICAgICAgaWNvbi54ID0gdGhpcy50ZXh0LndpZHRoICsgdGhpcy5vcHRzLnBhZGRpbmdcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdGhpcy50ZXh0LnggPSBpY29uLndpZHRoICsgdGhpcy5vcHRzLnBhZGRpbmdcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHRoaXMuY29udGVudC5hZGRDaGlsZChpY29uLCB0aGlzLnRleHQpXG4gICAgICAgIH0gZWxzZSBpZiAoaWNvbikge1xuICAgICAgICAgICAgdGhpcy5jb250ZW50LmFkZENoaWxkKGljb24pXG4gICAgICAgIH0gZWxzZSBpZiAodGhpcy50ZXh0KSB7XG4gICAgICAgICAgICB0aGlzLmNvbnRlbnQuYWRkQ2hpbGQodGhpcy50ZXh0KVxuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5sYXlvdXRJbm5lckNvbnRlbnQoKVxuICAgICAgICB0aGlzLmxheW91dENvbnRlbnQoKVxuXG4gICAgICAgIHRoaXMuaWNvbiA9IGljb25cblxuICAgICAgICAvLyBkcmF3XG4gICAgICAgIC8vLS0tLS0tLS0tLS0tLS0tLS1cbiAgICAgICAgdGhpcy5kcmF3KClcblxuICAgICAgICByZXR1cm4gdGhpc1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIENhbGN1bGF0ZXMgdGhlIHBvc2l0aW9ucyBvZiB0aGUgY29udGVudCBjaGlsZHJlbiAoaWNvbiBhbmQvb3IgdGV4dCkuXG4gICAgICpcbiAgICAgKiBAcHJpdmF0ZVxuICAgICAqIEByZXR1cm4ge0J1dHRvbn0gQSByZWZlcmVuY2UgdG8gdGhlIGJ1dHRvbiBmb3IgY2hhaW5pbmcuXG4gICAgICovXG4gICAgbGF5b3V0SW5uZXJDb250ZW50KCkge1xuXG4gICAgICAgIGZvciAobGV0IGNoaWxkIG9mIHRoaXMuY29udGVudC5jaGlsZHJlbikge1xuICAgICAgICAgICAgc3dpdGNoICh0aGlzLm9wdHMudmVydGljYWxBbGlnbikge1xuICAgICAgICAgICAgICAgIGNhc2UgJ3RvcCc6XG4gICAgICAgICAgICAgICAgICAgIGNoaWxkLnkgPSAwXG4gICAgICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICAgICAgY2FzZSAnbWlkZGxlJzpcbiAgICAgICAgICAgICAgICAgICAgY2hpbGQueSA9IHRoaXMuY29udGVudC5oZWlnaHQgLyAyIC0gY2hpbGQuaGVpZ2h0IC8gMlxuICAgICAgICAgICAgICAgICAgICBicmVha1xuICAgICAgICAgICAgICAgIGNhc2UgJ2JvdHRvbSc6XG4gICAgICAgICAgICAgICAgICAgIGNoaWxkLnkgPSB0aGlzLmNvbnRlbnQuaGVpZ2h0IC0gY2hpbGQuaGVpZ2h0XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gdGhpc1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFNldHMgdGhlIGhvcml6b250YWwgYW5kIHZlcnRpY2FsIHBvc2l0aW9uIG9mIHRoZSBjb250ZW50LlxuICAgICAqIFVzZXMgdGhlIG9wdGlvbiBrZXlzIFwiYWxpZ25cIiBhbmQgXCJ2ZXJ0aWNhbEFsaWduXCIuXG4gICAgICpcbiAgICAgKiBAcHJpdmF0ZVxuICAgICAqIEByZXR1cm4ge0J1dHRvbn0gQSByZWZlcmVuY2UgdG8gdGhlIGJ1dHRvbiBmb3IgY2hhaW5pbmcuXG4gICAgICovXG4gICAgbGF5b3V0Q29udGVudCgpIHtcblxuICAgICAgICBzd2l0Y2ggKHRoaXMub3B0cy5hbGlnbikge1xuICAgICAgICAgICAgY2FzZSAnbGVmdCc6XG4gICAgICAgICAgICAgICAgdGhpcy5jb250ZW50LnggPSB0aGlzLm9wdHMucGFkZGluZ1xuICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICBjYXNlICdjZW50ZXInOlxuICAgICAgICAgICAgICAgIHRoaXMuY29udGVudC54ID0gKCh0aGlzLl93aWR0aCAtIHRoaXMuY29udGVudC53aWR0aCkgLyAyKVxuICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICBjYXNlICdyaWdodCc6XG4gICAgICAgICAgICAgICAgdGhpcy5jb250ZW50LnggPSB0aGlzLl93aWR0aCAtIHRoaXMub3B0cy5wYWRkaW5nIC0gdGhpcy5jb250ZW50LndpZHRoXG4gICAgICAgICAgICAgICAgYnJlYWtcbiAgICAgICAgfVxuXG4gICAgICAgIHN3aXRjaCAodGhpcy5vcHRzLnZlcnRpY2FsQWxpZ24pIHtcbiAgICAgICAgICAgIGNhc2UgJ3RvcCc6XG4gICAgICAgICAgICAgICAgdGhpcy5jb250ZW50LnkgPSB0aGlzLm9wdHMucGFkZGluZ1xuICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICBjYXNlICdtaWRkbGUnOlxuICAgICAgICAgICAgICAgIHRoaXMuY29udGVudC55ID0gKHRoaXMuX2hlaWdodCAtIHRoaXMuY29udGVudC5oZWlnaHQpIC8gMlxuICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICBjYXNlICdib3R0b20nOlxuICAgICAgICAgICAgICAgIHRoaXMuY29udGVudC55ID0gdGhpcy5faGVpZ2h0IC0gdGhpcy5vcHRzLnBhZGRpbmcgLSB0aGlzLmNvbnRlbnQuaGVpZ2h0XG4gIC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xzZVxuICAgICAgICAgICAgdGhpcy5idXR0b24uYnV0dG9uTW9kZSA9IGZhbHNlXG4gICAgICAgICAgICB0aGlzLmJ1dHRvbi5hbHBoYSA9IC41XG4gICAgICAgICAgICBpZiAodGhpcy5pY29uKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5pY29uLmFscGhhID0gLjVcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmICh0aGlzLnRleHQpIHtcbiAgICAgICAgICAgICAgICB0aGlzLnRleHQuYWxwaGEgPSAuNVxuICAgICAgICAgICAgfVxuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdGhpcy5idXR0b24uaW50ZXJhY3RpdmUgPSB0cnVlXG4gICAgICAgICAgICB0aGlzLmJ1dHRvbi5idXR0b25Nb2RlID0gdHJ1ZVxuICAgICAgICAgICAgdGhpcy5idXR0b24uYWxwaGEgPSAxXG4gICAgICAgICAgICBpZiAodGhpcy5pY29uKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5pY29uLmFscGhhID0gMVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKHRoaXMudGV4dCkge1xuICAgICAgICAgICAgICAgIHRoaXMudGV4dC5hbHBoYSA9IDFcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFNob3dzIHRoZSBidXR0b24gKHNldHMgaGlzIGFscGhhIHZhbHVlcyB0byAxKS5cbiAgICAgKlxuICAgICAqIEByZXR1cm4ge0J1dHRvbn0gQSByZWZlcmVuY2UgdG8gdGhlIGJ1dHRvbiBmb3IgY2hhaW5pbmcuXG4gICAgICovXG4gICAgc2hvdygpIHtcblxuICAgICAgICB0aGlzLm9wdHMuc3Ryb2tlQWxwaGEgPSAxXG4gICAgICAgIHRoaXMub3B0cy5zdHJva2VBY3RpdmVBbHBoYSA9IDFcbiAgICAgICAgdGhpcy5vcHRzLmZpbGxBbHBoYSA9IDFcbiAgICAgICAgdGhpcy5vcHRz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VvZiBQSVhJLkRpc3BsYXlPYmplY3QpIHtcbiAgICAgICAgICAgIGRpc3BsYXlPYmplY3QgPSBpY29uXG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBsZXQgc2l6ZSA9IDE3XG4gICAgICAgICAgICBpZiAodGhpcy50ZXh0KSB7XG4gICAgICAgICAgICAgICAgc2l6ZSA9IHRoaXMudGV4dC5oZWlnaHRcbiAgICAgICAgICAgIH0gZWxzZSBpZiAodGhpcy5vcHRzLm1pbkhlaWdodCkge1xuICAgICAgICAgICAgICAgIHNpemUgPSB0aGlzLm9wdHMubWluSGVpZ2h0IC0gKDIgKiB0aGlzLm9wdHMucGFkZGluZylcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgY29uc3QgdXJsID0gQnV0dG9uLmljb25Jc1VybChpY29uKSA/IGljb24gOiBgLi4vLi4vYXNzZXRzL2ljb25zL3BuZy9mbGF0LyR7aWNvbn0ucG5nYFxuICAgICAgICAgICAgY29uc3QgaWNvblRleHR1cmUgPSBQSVhJLlRleHR1cmUuZnJvbUltYWdlKHVybCwgdHJ1ZSlcblxuICAgICAgICAgICAgY29uc3Qgc3ByaXRlID0gbmV3IFBJWEkuU3ByaXRlKGljb25UZXh0dXJlKVxuICAgICAgICAgICAgc3ByaXRlLnRpbnQgPSBjb2xvclxuICAgICAgICAgICAgc3ByaXRlLndpZHRoID0gc2l6ZVxuICAgICAgICAgICAgc3ByaXRlLmhlaWdodCA9IHNpemVcblxuICAgICAgICAgICAgZGlzcGxheU9iamVjdCA9IHNwcml0ZVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGRpc3BsYXlPYmplY3RcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBUZXN0cyBpZiBhbiBpY29uIHN0cmluZyBpcyBhbiB1cmwuXG4gICAgICpcbiAgICAgKiBAcHJpdmF0ZVxuICAgICAqIEBzdGF0aWNcbiAgICAgKiBAcGFyYW0ge3N0cmluZ30gdXJsIC0gVGhlI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ICAgICAgICBzdHJva2VBY3RpdmVBbHBoYTogdGhlbWUuc3Ryb2tlQWN0aXZlQWxwaGEsXG4gICAgICAgICAgICB0ZXh0U3R5bGU6IHRoZW1lLnRleHRTdHlsZSxcbiAgICAgICAgICAgIHRleHRTdHlsZUFjdGl2ZTogdGhlbWUudGV4dFN0eWxlQWN0aXZlLFxuICAgICAgICAgICAgc3R5bGU6ICdkZWZhdWx0JyxcbiAgICAgICAgICAgIHJhZGl1czogdGhlbWUucmFkaXVzLFxuICAgICAgICAgICAgZGlzYWJsZWQ6IG51bGwsXG4gICAgICAgICAgICB0eXBlOiAnZGVmYXVsdCcsICAgICAgICAgICAgICAgICAgIC8vIGRlZmF1bHQsIGNoZWNrYm94LCByYWRpb1xuICAgICAgICAgICAgb3JpZW50YXRpb246ICdob3Jpem9udGFsJyxcbiAgICAgICAgICAgIGFsaWduOiAnY2VudGVyJywgICAgICAgICAgICAgICAgICAgLy8gbGVmdCwgY2VudGVyLCByaWdodFxuICAgICAgICAgICAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsICAgICAgICAgICAvLyB0b3AsIG1pZGRsZSwgYm90dG9tXG4gICAgICAgICAgICB2aXNpYmxlOiB0cnVlXG4gICAgICAgIH0sIG9wdHMpXG5cbiAgICAgICAgdGhpcy5idXR0b25zID0gW11cblxuICAgICAgICB0aGlzLl9kaXNhYmxlZCA9IG51bGxcbiAgICAgICAgXG4gICAgICAgIHRoaXMudmlzaWJsZSA9IHRoaXMub3B0cy52aXNpYmxlXG5cbiAgICAgICAgLy8gc2V0dXBcbiAgICAgICAgLy8tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAgICB0aGlzLnNldHVwKClcblxuICAgICAgICAvLyBsYXlvdXRcbiAgICAgICAgLy8tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAgICB0aGlzLmxheW91dCgpXG4gICAgfVxuICAgIFxuICAgIC8qKlxuICAgICAqIENyZWF0ZXMgY2hpbGRyZW4gYW5kIGluc3RhbnRpYXRlcyBldmVyeXRoaW5nLlxuICAgICAqIFxuICAgICAqIEBwcml2YXRlXG4gICAgICogQHJldHVybiB7QnV0dG9uR3JvdXB9IEEgcmVmZXJlbmNlIHRvIHRoZSBidXR0b24gZ3JvdXAgZm9yIGNoYWluaW5nLlxuICAgICAqL1xuICAgIHNldHVwKCkge1xuXG4gICAgICAgIC8vIEJ1dHRvbnNcbiAgICAgICAgLy8tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAgICBsZXQgcG9zaXRpb24gPSAwXG5cbiAgICAgICAgZm9yIChsZXQgaXQgb2YgdGhpcy5vcHRzLmJ1dHRvbnMpIHtcblxuICAgICAgICAgICAgZGVsZXRlIGl0LnhcbiAgICAgICAgICAgIGRlbGV0ZSBpdC55XG5cbiAgICAgICAgICAgIGlmICh0aGlzLm9wdHMub3JpZW50YXRpb24gPT09ICdob3Jpem9udGFsJykge1xuICAgICAgICAgICAgICAgIGl0LnggPSBwb3NpdGlvblxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBpdC55ID0gcG9zaXRpb25cbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaXQudGhlbWUgPSBpdC50aGVtZSB8fCB0aGlzLm9wdHMudGhlbWVcbiAgICAgICAgICAgIGl0Lm1pbldpZHRoID0gaXQubWluV2lkdGggfHwgdGhpcy5vcHRzLm1pbldpZHRoXG4gICAgICAgICAgICBpdC5taW5IZWlnaHQgPSBpdC5taW5IZWlnaHQgfHwgdGhpcy5vcHRzLm1pbkhlaWdodFxuICAgICAgICAgICAgaXQucGFkZGluZyA9IGl0LnBhZGRpbmcgfHwgdGhpcy5vcHRzLnBhZGRpbmdcbiAgICAgICAgICAgIGl0Lmljb25Qb3NpdGlvbiA9IGl0Lmljb25Qb3NpdGlvbiB8fCB0aGlzLm9wdHMuaWNvblBvc2l0aW9uXG4gICAgICAgICAgICBpdC5pY29uQ29sb3IgPSBpdC5pY29uQ29sb3IgfHwgdGhpcy5vcHRzLmljb25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UFscGhhID0gaXQuc3Ryb2tlQWN0aXZlQWxwaGEgIT0gbnVsbCA/IGl0LnN0cm9rZUFjdGl2ZUFscGhhIDogdGhpcy5vcHRzLnN0cm9rZUFjdGl2ZUFscGhhXG4gICAgICAgICAgICBpdC50ZXh0U3R5bGUgPSBpdC50ZXh0U3R5bGUgfHwgdGhpcy5vcHRzLnRleHRTdHlsZVxuICAgICAgICAgICAgaXQudGV4dFN0eWxlQWN0aXZlID0gaXQudGV4dFN0eWxlQWN0aXZlIHx8IHRoaXMub3B0cy50ZXh0U3R5bGVBY3RpdmVcbiAgICAgICAgICAgIGl0LnN0eWxlID0gaXQuc3R5bGUgfHwgdGhpcy5vcHRzLnN0eWxlXG4gICAgICAgICAgICBpdC5yYWRpdXMgPSBpdC5yYWRpdXMgIT0gbnVsbCA/IGl0LnJhZGl1cyA6IHRoaXMub3B0cy5yYWRpdXNcbiAgICAgICAgICAgIGlmICghaXQudHlwZSkge1xuICAgICAgICAgICAgICAgIHN3aXRjaCAodGhpcy5vcHRzLnR5cGUpIHtcbiAgICAgICAgICAgICAgICAgICAgY2FzZSAnY2hlY2tib3gnOlxuICAgICAgICAgICAgICAgICAgICAgICAgaXQudHlwZSA9IHRoaXMub3B0cy50eXBlXG4gICAgICAgICAgICAgICAgICAgICAgICBicmVha1xuICAgICAgICAgICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgICAgICAgICAgaXQudHlwZSA9ICdkZWZhdWx0J1xuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICAvL2l0LnR5cGUgPSBpdC50eXBlIHx8IHRoaXMub3B0cy50eXBlIHx8ICdkZWZhdWx0J1xuICAgICAgICAgICAgaXQuYWxpZ24gPSBpdC5hbGlnbiB8fCB0aGlzLm9wdHMuYWxpZ25cbiAgICAgICAgICAgIGl0LnZlcnRpY2FsQWxpZ24gPSBpdC52ZXJ0aWNhbEFsaWduIHx8IHRoaXMub3B0cy52ZXJ0aWNhbEFsaWduXG4gICAgICAgICAgICBpdC5hZnRlckFjdGlvbiA9IChldmVudCwgYnV0dG9uKSA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMub3B0cy50eXBlID09PSAncmFkaW8nICYmIGJ1dHRvbi5vcHRzLnR5cGUgPT09ICdkZWZhdWx0Jykge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmJ1dHRvbnMuZm9yRWFjaChpdCA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoaXQub3B0cy50eXBlID09PSAnZGVmYXVsdCcpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpdC5hY3RpdmUgPSBmYWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9KVxuXG4gICAgICAgICAgICAgICAgICAgIGlmIChidXR0b24ub3B0cy50eXBlID09PSAnZGVmYXVsdCcpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGJ1dHRvbi5hY3RpdmUgPSB0cnVlXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmIChpdC50b29sdGlwKSB7XG4gICAgICAgICAgICAgICAgaWYgKHR5cGVvZiBpdC50b29sdGlwID09PSAnc3RyaW5nJykge1xuICAgICAgICAgICAgICAgICAgICBpdC50b29sdGlwID0ge2NvbnRlbnQ6IGl0LnRvb2x0aXAsIGNvbnRhaW5lcjogdGhpc31cbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBpdC50b29sdGlwID0gT2JqZWN0LmFzc2lnbih7fSwge2NvbnRhaW5lcjogdGhpc30sIGl0LnRvb2x0aXApXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgXG4gICAgICAgICAgICBsZXQgYnV0dG9uID0gbmV3IEJ1dHRvbihpdClcblxuICAgICAgICAgICAgdGhpcy5hZGRDaGlsZChidXR0b24pXG4gICAgICAgICAgICB0aGlzLmJ1dHRvbnMucHVzaChidXR0b24pXG5cbiAgICAgICAgICAgIHBvc2l0aW9uICs9ICh0aGlzLm9wdHMub3JpZW50YXRpb24gPT09ICdob3Jpem9udGFsJyA/IGJ1dHRvbi53aWR0aCA6IGJ1dHRvbi5oZWlnaHQpICsgdGhpcy5vcHRzLm1hcmdpblxuICAgICAgICB9XG5cbiAgICAgICAgaWYgKHRoaXMub3B0cy5vcmllbnRhdGlvbiA9PT0gJ3ZlcnRpY2FsJykge1xuICAgICAgICAgICAgY29uc3QgbWF4V2lkdGggPSB0aGlzLmdldE1heEJ1dHRvbldpZHRoKClcblxuICAgICAgICAgICAgdGhpcy5idXR0b25zLmZvckVhY2goaXQgPT4ge1xuICAgICAgICAgICAgICAgIGl0Lm9wdHMubWluV2lkdGggPSBtYXhXaWR0aFxuICAgICAgICAgICAgICAgIGl0LmxheW91dCgpXG4gICAgICAgICAgICB9KVxuICAgICAgICB9XG5cbiAgICAgICAgLy8gZGlzYWJsZWRcbiAgICAgICAgLy8tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAgICBpZiAodGhpcy5vcHRzLmRpc2FibGVkICE9IG51bGwpIHtcbiAgICAgICAgICAgIHRoaXMuZGlzYWJsZWQgPSB0aGlzLm9wdHMuZGlzYWJsZWRcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiB0aGlzXG4gICAgfVxuICAgIFxuICAgIC8qKlxuICAgICAqIFNob3VsZCBiZSBjYWxsZWQgdG8gcmVmcmVzaCB0aGUgbGF5b3V0IG9mIHRoZSBidXR0b24gZ3JvdXAuIENhbiBiZSB1c2VkIGFmdGVyIHJlc2l6aW5nLlxuICAgICAqIFxuICAgICAqIEByZXR1cm4ge0J1dHRvbkdyb3VwfSBBIHJlZmVyZW5jZSB0byB0aGUgYnV0dG9uIGdyb3VwIGZvciBjaGFpbmluZy5cb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vcHRzLnN0cm9rZVdpZHRoLCB0aGlzLm9wdHMuc3Ryb2tlLCB0aGlzLm9wdHMuc3Ryb2tlQWxwaGEgLyAyKVxuXG4gICAgICAgICAgICB0aGlzLmJ1dHRvbnMuZm9yRWFjaCgoaXQsIGkpID0+IHtcbiAgICAgICAgICAgICAgICBpZiAoaSA+IDApIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5tb3ZlVG8oaXQueCwgaXQueSlcblxuICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5vcHRzLm9yaWVudGF0aW9uID09PSAnaG9yaXpvbnRhbCcpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMubGluZVRvKGl0LngsIGl0LmhlaWdodClcbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMubGluZVRvKGl0LndpZHRoLCBpdC55KVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIFxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pXG5cbiAgICAgICAgICAgIHRoaXMuZW5kRmlsbCgpXG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gdGhpc1xuICAgIH1cbiAgICBcbiAgICAvKipcbiAgICAgKiBHZXRzIG9yIHNldHMgdGhlIGRpc2FibGVkIHN0YXRlLiBXaGVuIGRpc2FibGVkLCBubyBidXR0b24gb2YgdGhlIGJ1dHRvbiBncm91cCBjYW4gYmUgY2xpY2tlZC5cbiAgICAgKiBcbiAgICAgKiBAbWVtYmVyIHtib29sZWFufVxuICAgICAqL1xuICAgIGdldCBkaXNhYmxlZCgpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuX2Rpc2FibGVkXG4gICAgfVxuXG4gICAgc2V0IGRpc2FibGVkKHZhbHVlKSB7XG5cbiAgICAgICAgdGhpcy5fZGlzYWJsZWQgPSB2YWx1ZVxuXG4gICAgICAgIHRoaXMuYnV0dG9ucy5mb3J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wJywgZSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5oaWRlKClcbiAgICAgICAgICAgIH0pXG4gICAgICAgIH1cblxuICAgICAgICAvLyBwb3B1cFxuICAgICAgICAvLy0tLS0tLS0tLS0tLS0tLS0tXG4gICAgICAgIGNvbnN0IHBvcHVwT3B0cyA9IE9iamVjdC5hc3NpZ24oe30sIHRoaXMub3B0cywge1xuICAgICAgICAgICAgdmlzaWJsZTogdHJ1ZSxcbiAgICAgICAgICAgIG9uSGlkZGVuOiAoKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5oaWRlKClcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSlcbiAgICAgICAgbGV0IHBvcHVwID0gbmV3IEludGVyYWN0aXZlUG9wdXAocG9wdXBPcHRzKVxuICAgICAgICB0aGlzLnBvcHVwID0gcG9wdXBcbiAgICAgICAgdGhpcy5hZGRDaGlsZChwb3B1cClcbiAgICAgICAgcG9wdXAuc2hvdygpXG5cbiAgICAgICAgcmV0dXJuIHRoaXNcbiAgICB9XG4gICAgXG4gICAgLyoqXG4gICAgICogU2hvdWxkIGJlIGNhbGxlZCB0byByZWZyZXNoIHRoZSBsYXlvdXQgb2YgdGhlIG1vZGFsLiBDYW4gYmUgdXNlZCBhZnRlciByZXNpemluZy5cbiAgICAgKiBcbiAgICAgKiBAcmV0dXJuIHtNb2RhbH0gQSByZWZlcmVuY2UgdG8gdGhlIG1vZGFsIGZvciBjaGFpbmluZy5cbiAgICAgKi9cbiAgICBsYXlvdXQoKSB7XG5cbiAgICAgICAgY29uc3Qgd2lkdGggPSB0aGlzLm9wdHMuYXBwLnNpemUud2lkdGhcbiAgICAgICAgY29uc3QgaGVpZ2h0ID0gdGhpcy5vcHRzLmFwcC5zaXplLmhlaWdodFxuXG4gICAgICAgIC8vIGJhY2tncm91bmRcbiAgICAgICAgLy8tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAgICB0aGlzLmJhY2tncm91bmQuY2xlYXIoKVxuICAgIC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bWVzc2FnZSBib3guXG4gICAgICovXG4gICAgY29uc3RydWN0b3Iob3B0cyA9IHt9KSB7XG4gICAgICAgIFxuICAgICAgICBjb25zdCB0aGVtZSA9IFRoZW1lLmZyb21TdHJpbmcob3B0cy50aGVtZSlcblxuICAgICAgICBvcHRzID0gT2JqZWN0LmFzc2lnbih7fSwge1xuICAgICAgICAgICAgYXBwOiB3aW5kb3cuYXBwLFxuICAgICAgICAgICAgY2xvc2VCdXR0b246IGZhbHNlLFxuICAgICAgICAgICAgbWluV2lkdGg6IDI4MCxcbiAgICAgICAgICAgIG1pbkhlaWdodDogMTAwLFxuICAgICAgICAgICAgbWFyZ2luOiB0aGVtZS5tYXJnaW4sXG4gICAgICAgICAgICBhbGlnbjogJ3JpZ2h0JywgICAgICAgICAgICAgICAgICAgICAvLyBsZWZ0LCBjZW50ZXIsIHJpZ2h0XG4gICAgICAgICAgICB2ZXJ0aWNhbEFsaWduOiAndG9wJywgICAgICAgICAgICAgICAvLyB0b3AsIG1pZGRsZSwgYm90dG9tXG4gICAgICAgICAgICBkdXJhdGlvbjogNSxcbiAgICAgICAgICAgIGF1dG9DbG9zZTogdHJ1ZSxcbiAgICAgICAgICAgIGNsb3NlRHVyYXRpb246IHRoZW1lLmZhc3RcbiAgICAgICAgfSwgb3B0cylcblxuICAgICAgICBzdXBlcihvcHRzKVxuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFJlbGF5b3V0cyB0aGUgcG9zaXRpb24gb2YgdGhlIG1lc3NhZ2UgYm94LlxuICAgICAqIFxuICAgICAqIEByZXR1cm4ge01lc3NhZ2V9IFJldHVybnMgdGhlIG1lc3NhZ2UgYm94IGZvciBjaGFpbmluZy5cbiAgICAgKi9cbiAgICBsYXlvdXQoKSB7XG5cbiAgICAgICAgc3VwZXIubGF5b3V0KClcblxuICAgICAgICAvLyBob3Jpem9udGFsXG4gICAgICAgIHN3aXRjaCAodGhpcy5vcHRzLmFsaWduKSB7XG4gICAgICAgICAgICBjYXNlICdsZWZ0JzpcbiAgICAgICAgICAgICAgICB0aGlzLnggPSB0aGlzLm9wdHMubWFyZ2luXG4gICAgICAgICAgICAgICAgYnJlYWtcbiAgICAgICAgICAgIGNhc2UgJ2NlbnRlcic6XG4gICAgICAgICAgICAgICAgdGhpcy54ID0gKHRoaXMub3B0cy5hcHAuc2l6ZS53aWR0aCAvIDIpIC0gKHRoaXMud2lkdGggLyAyKVxuICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICBjYXNlICdyaWdodCc6XG4gICAgICAgICAgICAgICAgdGhpcy54ID0gdGhpcy5vcHRzLmFwcC5zaXplLndpZHRoIC0gdGhpcy5vcHRzLm1hcmdpbiAtIHRoaXMud2lkdGhcbiAgICAgICAgICAgICAgICBicmVha1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gdmVydGljYWxcbiAgICAgICAgc3dpdGNoICh0aGlzLm9wdHMudmVydGljYWxBbGlnbikge1xuICAgICAgICAgICAgY2FzZSAndG9wJzpcbiAgICAgICAgICAgICAgICB0aGlzLnkgPSB0aGlzLm9wdHMubWFyZ2luXG4gICAgICAgICAgICAgICAgYnJlYWtcbiAgICAgICAgICAgIGNhc2UgJ21pZGRsZSc6XG4gICAgICAgICAgICAgICAgdGhpcy55ID0gKHRoaXMub3B0cy5hcHAuc2l6ZS5oZWlnaHQgLyAyKSAtICh0aGlzLmhlaWdodCAvIDIpXG4gICAgICAgICAgICAgICAgYnJlYWtcbiAgICAgICAgICAgIGNhc2UgJ2JvdHRvbSc6XG4gICAgICAgICAgICAgICAgdGhpcy55ID0gdGhpcy5vcHRzLmFwcC5zaXplLmhlaWdodCAtIHRoaXMub3B0cy5tYXJnaW4gLSB0aGlzLmhlaWdodFxuICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgIH1cbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBTaG93cyB0aGUgbWVzc2FnZSBib3guXG4gICAgICogXG4gICAgICogQHByaXZhdGVcbiAgICAgKi9cbiAgICBz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mQpIHtcbiAgICAgICAgICAgIHlpZWxkIGRhdGVcbiAgICAgICAgICAgIGRhdGUgPSB0aGlzLm5leHRZZWFyKGRhdGUpXG4gICAgICAgIH1cbiAgICAgICAgeWllbGQgZGF0ZVxuICAgIH1cblxuICAgIHN0YXRpYyAqaXRlck1vbnRocyh5ZWFyLCBsaW1pdCA9IDEyKSB7XG4gICAgICAgIGxldCBtb250aCA9IDBcbiAgICAgICAgd2hpbGUgKG1vbnRoIDwgbGltaXQpIHtcbiAgICAgICAgICAgIGxldCBkYXRlID0gdGhpcy5jcmVhdGUoeWVhci5nZXRGdWxsWWVhcigpLCBtb250aCwgMSlcbiAgICAgICAgICAgIHlpZWxkIGRhdGVcbiAgICAgICAgICAgIG1vbnRoICs9IDFcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHN0YXRpYyAqaXRlck1vbnRoc09mWWVhcnMoeWVhcnMpIHtcbiAgICAgICAgZm9yIChsZXQgeWVhciBvZiB5ZWFycykge1xuICAgICAgICAgICAgZm9yIChsZXQgbW9udGggb2YgdGhpcy5pdGVyTW9udGhzKHllYXIpKSB7XG4gICAgICAgICAgICAgICAgeWllbGQgbW9udGhcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIHN0YXRpYyAqaXRlckRheXMobW9udGgpIHtcbiAgICAgICAgbGV0IGRheSA9IDFcbiAgICAgICAgbGV0IGxpbWl0ID0gRGF0ZXMuZGF5c0luTW9udGgobW9udGgpXG4gICAgICAgIHdoaWxlIChkYXkgPD0gbGltaXQpIHtcbiAgICAgICAgICAgIGxldCBkYXRlID0gdGhpcy5jcmVhdGUobW9udGguZ2V0RnVsbFllYXIoKSwgbW9udGguZ2V0TW9udGgoKSwgZGF5KVxuICAgICAgICAgICAgeWllbGQgZGF0ZVxuICAgICAgICAgICAgZGF5ICs9IDFcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHN0YXRpYyAqaXRlckRheXNPZk1vbnRocyhtb250aHMpIHtcbiAgIC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G4gICAgICAgIC8vIHNob3J0IHZlcnNpb25cbiAgICAgICAgciA9IGhleC5tYXRjaCgvXiMoWzAtOWEtZl0pKFswLTlhLWZdKShbMC05YS1mXSkkL2kpXG4gICAgICAgIGlmIChyKSB7XG4gICAgICAgICAgICByZXR1cm4gci5zbGljZSgxLCA0KS5tYXAoeCA9PiB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIDB4MTEgKiBwYXJzZUludCh4LCAxNilcbiAgICAgICAgICAgIH0pXG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIG51bGxcbiAgICB9XG5cbiAgICBzdGF0aWMgcmdiKHIsIGcsIGIpIHtcbiAgICAgICAgcmV0dXJuIHsgciwgZywgYiB9XG4gICAgfVxuXG4gICAgc3RhdGljIHN0cmluZzJoZXgoc3RyKSB7XG4gICAgICAgIHJldHVybiBwYXJzZUludCgnMHgnICsgc3RyLnNsaWNlKDEpKVxuICAgIH1cblxuICAgIHN0YXRpYyBsZXJwKHJnYjEsIHJnYjIsIGFtb3VudCkge1xuICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgcjogTWF0aC5yb3VuZChsZXJwKHJnYjEuciwgcmdiMi5yLCBhbW91bnQpKSxcbiAgICAgICAgICAgIGc6IE1hdGgucm91bmQobGVycChyZ2IxLmcsIHJnYjIuZywgYW1vdW50KSksXG4gICAgICAgICAgICBiOiBNYXRoLnJvdW5kKGxlcnAocmdiMS5iLCByZ2IyLmIsIGFtb3VudCkpXG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBzdGF0aWMgZ2V0IHZpb2xldCgpIHtcbiAgICAgICAgcmV0dXJuIENvbG9ycy5yZ2IybnVtKDg5LCAzNCwgMTMxKVxuICAgIH1cblxuICAgIHN0YXRpYyBnZXQgc3RlZWxibHVlKCkge1xuICAgICAgICByZXR1cm4gQ29sb3JzLnJnYjJudW0oMCwgMTMwLCAxNjQpXG4gICAgfVxuXG4gICAgc3RhdGljIGdldCBvY2hyZSgpIHtcbiAgICAgICA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yBiLngsIHk6IGEueSArIGIueSB9XG4gICAgfVxuXG4gICAgc3RhdGljIG5lZ2F0ZShwKSB7XG4gICAgICAgIHJldHVybiB7IHg6IC1wLngsIHk6IC1wLnkgfVxuICAgIH1cblxuICAgIHN0YXRpYyBhbmdsZShwMSwgcDIpIHtcbiAgICAgICAgcmV0dXJuIE1hdGguYXRhbjIocDEueSAtIHAyLnksIHAxLnggLSBwMi54KVxuICAgIH1cblxuICAgIHN0YXRpYyBub3JtYWxpemVkQW5nbGUocDEsIHAyKSB7XG4gICAgICAgIHJldHVybiBBbmdsZS5ub3JtYWxpemUodGhpcy5hbmdsZShwMSwgcDIpKVxuICAgIH1cblxuICAgIHN0YXRpYyBub3JtYWxpemVkMkFuZ2xlKHAxLCBwMikge1xuICAgICAgICByZXR1cm4gQW5nbGUubm9ybWFsaXplMih0aGlzLmFuZ2xlKHAxLCBwMikpXG4gICAgfVxuXG4gICAgc3RhdGljIGFyYyhwLCBhbHBoYSwgcmFkaXVzKSB7XG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICB4OiBwLnggKyByYWRpdXMgKiBNYXRoLmNvcyhhbHBoYSksXG4gICAgICAgICAgICB5OiBwLnkgKyByYWRpdXMgKiBNYXRoLnNpbihhbHBoYSlcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHN0YXRpYyBkaXN0YW5jZShhLCBiKSB7XG4gICAgICAgIGxldCBkeCA9IGEueCAtIGIueFxuICAgICAgICBsZXQgZHkgPSBhLnkgLSBiLnlcbiAgICAgICAgcmV0dXJuIE1hdGguc3FydChkeCAqIGR4ICsgZHkgKiBkeSlcbiAgICB9XG5cbiAgICBzdGF0aWMgZnJvbVBhZ2VUb05vZGUoZWxlbWVudCwgcCkge1xuICAgICAgICAvLyAgICBpZiAod2luZG93LndlYmtpdENvbnZlcnRQb2ludEZyb21QYWdlVG9Ob2RlKSB7XG4gICAgICAgIC8vICAgICAgICAgICAgIHJldHVybiB3aW5kb3cud2Via2l0Q29udmVydFBvaW50RnJvbVBhZ2VUb05vZGUoZWxlbWVudCxcbiAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBXZWJLaXRQb2ludChwLngsIHAueSkpXG4gICAgICAgIC8vICAgICAgICAgfVxuICAgICAgICByZXR1cm4gd2luZG93LmNvbnZlcnRQb2ludEZyb21QYWdlVG9Ob2RlKGVsZW1lbnQsIHAueCwgcC55KVxuICAgIH1cblxuICAgIHN0YXRpYyBmcm9tTm9kZVRvUGFnZShlbGVtZW50LCBwKSB7XG4gICAgICAgIC8vICBpZiAod2luZG93LndlYmtpdENvbnZlcnRQb2ludEZyb21Ob2RlVG9QYWdlKSB7XG4gICAgICAgIC8vICAgICAgICAgICAgIHJldHVybiB3aW5kb3cud2Via2l0Q29udmVydFBvaW50RnJvbU5vZGVUb1BhZ2UoZWxlbWVudCxcbiAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBXZWJLaXRQb2ludChwLngsIHAueSkpXG4gICAgICAgIC8vICAgICAgICAgfVxuICAgICAgICByZXR1cm4gd2luZG93LmNvbnZlcnRQb2ludEZyb21Ob2RlVG9QYWdlKGVsZW1lbnQsIHAueCwgcC55KVxuICAgIH1cbn1cblxuLyoqXG4gKiBBIGhlbHBlciBjbGFzcyBmb3IgY29tbW9uIHNldCBvcGVyYXRpb25zLlxuICpcbiAqIEBleHBvcnRcbiAqIEBjbGFzcyBTZXRzXG4gKi9cbmV4cG9ydCBjbGFzcyBTZXRzIHtcblxuICAgIC8qKlxuICAgICAqIFJldHVybnMgdGhlIGludGVyc2VjdGlvbiBvZiBhbGwgc2V0c1xuICAgICAqIGh0dHBzOi8vc3RhY2tvdmVyZmxvdy5jb20vcXVlc3Rpb25zLzMxOTMwODk0L2phdmFzY3JpcHQtc2V0LWRhdGEtc3RydWN0dXJlLWludGVyc2VjdFxuICAgICAqIEBzdGF0aWNcbiAgICAgKiBAcGFyYW0geyp9IHNldHNcbiAgICAgKiBAcmV0dXJuc1xuICAgICAqIEBtZW1iZXJvZiBTZXRzXG4gICAgICovXG4gICAgc3RhdGljIGludGVyc2VjdCguLi5zZXRzKSB7XG4gICAgICAgIGlmICghc2V0cy5sZW5ndGgpIHJldHVybiBuZXcgU2V0KClcbiAgICAgICAgY29uc3QgaSA9IHNldHMucmVkdWNlKChtLCBzLCBpKSA9PiBzLnNpemUgPCBzZXRzW21dLnNpemUgPyBpIDogbSwgMClcbiAgICAgICAgY29uc3QgW3NtYWxsZXN0XSA9IHNldHMuc3BsaWNlKGksIDEpXG4gICAgICAgIGNvbnN0IHJlcyA9IG5ldyBTZXQoKVxuICAgICAgICBmb3IgKGxldCB2YWwgb2Ygc21hbGxlc3QpXG4gICAgICAgICAgICBpZiAoc2V0cy5ldmVyeShzID0+IHMuaGFzKHZhbCkpKVxuICAgICAgICAgICAgICAgIHJlcy5hZGQodmFsKVxuICAgICAgICByZXR1cm4gcmVzXG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUmV0dXJucyB0aGUgdW5pb24gb2YgYWxsIHNldHNcbiAgICAgKlxuICAgICAqIEBzdGF0aWNcbiAgICAgKiBAcGFyYW0geyp9IHNldHNcbiAgICAgKiBAcmV0dXJuc1xuICAgICAqIEBtZW1iZXJvZiBTZXRzXG4gICAgICovXG4gICAgc3RhdGljIHVuaW9uKC4uLnNldHMpIHtcbiAgICAgICAgbGV0IHJlc3VsdCA9IG5ldyBTZXQoKVxuICAgICAgICBmb3IgKGxldCBzZXQgb2Ygc2V0cykge1xuICAgICAgICAgICAgZm9yIChsZXQgbSBvZiBzZXQpIHtcbiAgICAgICAgICAgICAgICByZXN1bHQuYWRkKG0pXG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHJlc3VsdFxuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFJldHVybnMgdGhlIGRpZmZlcmVuY2Ugb2YgdG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ueVxuICAgICAgICAgICAgdGhpcy5wb2ludHNbaV0ueCA9IE1hdGguY29zKHJhZHMpICogeCAtIE1hdGguc2luKHJhZHMpICogeVxuICAgICAgICAgICAgdGhpcy5wb2ludHNbaV0ueSA9IE1hdGguc2luKHJhZHMpICogeCArIE1hdGguY29zKHJhZHMpICogeVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgLypcbiAgICAgKiAgVGhlIGRyYXcgZnVuY3Rpb24gdGFrZXMgYXMgYSBwYXJhbWV0ZXIgYSBDb250ZXh0IG9iamVjdCBmcm9tXG4gICAgICogIGEgQ2FudmFzIGVsZW1lbnQgYW5kIGRyYXdzIHRoZSBwb2x5Z29uIG9uIGl0LlxuICAgICAqL1xuICAgIGRyYXcoY29udGV4dCwgeyBsaW5lV2lkdGggPSAyLCBzdHJva2UgPSAnIzAwMDAwMCcsIGZpbGwgPSBudWxsIH0gPSB7fSkge1xuICAgICAgICBjb250ZXh0LmJlZ2luUGF0aCgpXG4gICAgICAgIGNvbnRleHQubW92ZVRvKFxuICAgICAgICAgICAgdGhpcy5wb2ludHNbMF0ueCArIHRoaXMuY2VudGVyLngsXG4gICAgICAgICAgICB0aGlzLnBvaW50c1swXS55ICsgdGhpcy5jZW50ZXIueVxuICAgICAgICApXG4gICAgICAgIGZvciAobGV0IGkgPSAxOyBpIDwgdGhpcy5wb2ludHMubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgIGNvbnRleHQubGluZVRvKFxuICAgICAgICAgICAgICAgIHRoaXMucG9pbnRzW2ldLnggKyB0aGlzLmNlbnRlci54LFxuICAgICAgICAgICAgICAgIHRoaXMucG9pbnRzW2ldLnkgKyB0aGlzLmNlbnRlci55XG4gICAgICAgICAgICApXG4gICAgICAgIH1cbiAgICAgICAgY29udGV4dC5jbG9zZVBhdGgoKVxuICAgICAgICBjb250ZXh0LmxpbmVXaWR0aCA9IGxpbmVXaWR0aFxuICAgICAgICBpZiAoc3Ryb2tlKSB7XG4gICAgICAgICAgICBjb250ZXh0LnN0cm9rZVN0eWxlID0gc3Ryb2tlXG4gICAgICAgICAgICBjb250ZXh0LnN0cm9rZSgpXG4gICAgICAgIH1cbiAgICAgICAgaWYgKGZpbGwpIHtcbiAgICAgICAgICAgIGNvbnRleHQuZmlsbFN0eWxlID0gZmlsbFxuICAgICAgICAgICAgY29udGV4dC5maWxsKClcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGFic29sdXRlUG9pbnRzKCkge1xuICAgICAgICBsZXQgcmVzdWx0ID0gbmV3IEFycmF5KClcbiAgICAgICAgZm9yIChsZXQgcCBvZiB0aGlzLnBvaW50cykge1xuICAgICAgICAgICAgcmVzdWx0LnB1c2goUG9pbnRzLmFkZChwLCB0aGlzLmNlbnRlcikpXG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHJlc3VsdFxuICAgIH1cblxuICAgIGZsYXRBYnNvbHV0ZVBvaW50cygpIHtcbiAgICAgICAgbGV0IHJlc3VsdCA9IG5ldyBBcnJheSgpXG4gICAgICAgIGZvciAobGV0IHAgb2YgdGhpcy5wb2ludHMpIHtcbiAgICAgICAgICAgIGxldCBhID0gUG9pbnRzLmFkZChwLCB0aGlzLmNlbnRlcilcbiAgICAgICAgICAgIHJlc3VsdC5wdXNoKGEueClcbiAgICAgICAgICAgIHJlc3VsdC5wdXNoKGEueSlcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gcmVzdWx0XG4gICAgfVxuXG4gICAgLypcbiAgICAgKiAgVGhpcyBmdW5jdGlvbiByZXR1cm5zIHRydWUgaWYgdGhlIGdpdmVuIHBvaW50IGlzIGluc2lkZSB0aGUgcG9seWdvbixcbiAgICAgKiAgYW5kIGZhbHNlIG90aGVyd2lzZS5cbiAgICAgKi9cbiAgICBjb250YWluc1BvaW50KHBudCkge1xuICAgICAgICBsZXQgbnZlcnQgPSB0aGlzLnBvaW50cy5sZW5ndGhcbiAgICAgICAgbGV0IHRlc3R4ID0gcG50LnhcbiAgICAgICAgbGV0IHRlc3R5ID0gcG50LnlcblxuICAgICAgICBsZXQgdmVydHggPSBuZXcgQXJyYXkoKVxuICAgICAgICBmb3IgKGxldCBxID0gMDsgcSA8IHRoaXMucG9pbnRzLmxlbmd0aDsgcSsrKSB7XG4gICAgICAgICAgICB2ZXJ0eC5wdXNoKHRoaXMucG9pbnRzW3FdLnggKyB0aGlzLmNlbnRlci54KVxuICAgICAgICB9XG5cbiAgICAgICAgbGV0IHZlcnR5ID0gbmV3IEFycmF5KClcbiAgICAgICAgZm9yIChsZXQgdyA9IDA7IHcgPCB0aGlzLnBvaW50cy5sZW5ndGg7IHcrKykge1xuICAgICAgICAgICAgdmVydHkucHVzaCh0aGlzLnBvaW50c1t3XS55ICsgdGhpcy5jZW50ZXIueSlcbiAgICAgICAgfVxuXG4gICAgICAgIGxldCBpLFxuICAgICAgICAgICAgaiA9IDBcbiAgICAgICAgbGV0IGMgPSBmYWxzZVxuICAgICAgICBmb3IgKGkgPSAwLCBqID0gbnZlcnQgLSAxOyBpIDwgbnZlcnQ7IGogPSBpKyspIHtcbiAgICAgICAgICAgIGlmIChcbiAgICAgICAgICAgICAgICB2ZXJ0eVtpXSA+IHRlc3R5ICE9IHZlcnR5W2pdID4gdGVzdHkgJiZcbiAgICAgICAgICAgICAgICB0ZXN0eCA8XG4gICAgICAgICAgICAgICAgKHZlcnR4W2pdIC0gdmVydHhbaV0pICpcbiAgICAgICAgICAgICAgICAodGVzdHkgLSB2ZXJ0eVtpXSkgL1xuICAgICAgICAgICAgICAgICh2ZXJ0eVtqXSAtIHZlcnR5W2ldKSArXG4gICAgICAgICAgICAgICAgdmVydHhbaV1cbiAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICBjID0gIWNcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gY1xuICAgIH1cblxuICAgIG11bHRpcGx5U2NhbGFyKHNjYWxlKSB7XG4gICAgICAgIGxldCBjZW50ZXIgPSBQb2ludHMubXVsdGlwbHlTY2FsYXIodGhpcy5jZW50ZXIsIH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T2ZTaWRlcygpOyBzaWRlKyspIHtcbiAgICAgICAgICAgIC8qIGdldCB0aGUgYXhpcyB0aGF0IHdlIHdpbGwgcHJvamVjdCBvbnRvICovXG4gICAgICAgICAgICBpZiAoc2lkZSA9PSAwKSB7XG4gICAgICAgICAgICAgICAgYXhpcy54ID1cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5wb2ludHNbdGhpcy5nZXROdW1iZXJPZlNpZGVzKCkgLSAxXS55IC1cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5wb2ludHNbMF0ueVxuICAgICAgICAgICAgICAgIGF4aXMueSA9XG4gICAgICAgICAgICAgICAgICAgIHRoaXMucG9pbnRzWzBdLnggLVxuICAgICAgICAgICAgICAgICAgICB0aGlzLnBvaW50c1t0aGlzLmdldE51bWJlck9mU2lkZXMoKSAtIDFdLnhcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgYXhpcy54ID0gdGhpcy5wb2ludHNbc2lkZSAtIDFdLnkgLSB0aGlzLnBvaW50c1tzaWRlXS55XG4gICAgICAgICAgICAgICAgYXhpcy55ID0gdGhpcy5wb2ludHNbc2lkZV0ueCAtIHRoaXMucG9pbnRzW3NpZGUgLSAxXS54XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIC8qIG5vcm1hbGl6ZSB0aGUgYXhpcyAqL1xuICAgICAgICAgICAgdG1wID0gTWF0aC5zcXJ0KGF4aXMueCAqIGF4aXMueCArIGF4aXMueSAqIGF4aXMueSlcbiAgICAgICAgICAgIGF4aXMueCAvPSB0bXBcbiAgICAgICAgICAgIGF4aXMueSAvPSB0bXBcblxuICAgICAgICAgICAgLyogcHJvamVjdCBwb2x5Z29uIEEgb250byBheGlzIHRvIGRldGVybWluZSB0aGUgbWluL21heCAqL1xuICAgICAgICAgICAgbWluQSA9IG1heEEgPSB0aGlzLnBvaW50c1swXS54ICogYXhpcy54ICsgdGhpcy5wb2ludHNbMF0ueSAqIGF4aXMueVxuICAgICAgICAgICAgZm9yIChpID0gMTsgaSA8IHRoaXMuZ2V0TnVtYmVyT2ZTaWRlcygpOyBpKyspIHtcbiAgICAgICAgICAgICAgICB0bXAgPSB0aGlzLnBvaW50c1tpXS54ICogYXhpcy54ICsgdGhpcy5wb2ludHNbaV0ueSAqIGF4aXMueVxuICAgICAgICAgICAgICAgIGlmICh0bXAgPiBtYXhBKSBtYXhBID0gdG1wXG4gICAgICAgICAgICAgICAgZWxzZSBpZiAodG1wIDwgbWluQSkgbWluQSA9IHRtcFxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgLyogY29ycmVjdCBmb3Igb2Zmc2V0ICovXG4gICAgICAgICAgICB0bXAgPSB0aGlzLmNlbnRlci54ICogYXhpcy54ICsgdGhpcy5jZW50ZXIueSAqIGF4aXMueVxuICAgICAgICAgICAgbWluQSArPSB0bXBcbiAgICAgICAgICAgIG1heEEgKz0gdG1wXG5cbiAgICAgICAgICAgIC8qIHByb2plY3QgcG9seWdvbiBCIG9udG8gYXhpcyB0byBkZXRlcm1pbmUgdGhlIG1pbi9tYXggKi9cbiAgICAgICAgICAgIG1pbkIgPSBtYXhCID1cbiAgICAgICAgICAgICAgICBvdGhlci5wb2ludHNbMF0ueCAqIGF4aXMueCArIG90aGVyLnBvaW50c1swXS55ICogYXhpcy55XG4gICAgICAgICAgICBmb3IgKGkgPSAxOyBpIDwgb3RoZXIuZ2V0TnVtYmVyT2ZTaWRlcygpOyBpKyspIHtcbiAgICAgICAgICAgICAgICB0bXAgPSBvdGhlci5wb2ludHNbaV0ueCAqIGF4aXMueCArIG90aGVyLnBvaW50c1tpXS55ICogYXhpcy55XG4gICAgICAgICAgICAgICAgaWYgKHRtcCA+IG1heEIpIG1heEIgPSB0bXBcbiAgICAgICAgICAgICAgICBlbHNlIGlmICh0bXAgPCBtaW5CKSBtaW5CID0gdG1wXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICAvKiBjb3JyZWN0IGZvciBvZmZzZXQgKi9cbiAgICAgICAgICAgIHRtcCA9IG90aGVyLmNlbnRlci54ICogYXhpcy54ICsgb3RoZXIuY2VudGVyLnkgKiBheGlzLnlcbiAgICAgICAgICAgIG1pbkIgKz0gdG1wXG4gICAgICAgICAgICBtYXhCICs9IHRtcFxuXG4gICAgICAgICAgICAvKiB0ZXN0IGlmIGxpbmVzIGludGVyc2VjdCwgaWYgbm90LCByZXR1cm4gZmFsc2UgKi9cbiAgICAgICAgICAgIGlmIChtYXhBIDwgbWluQiB8fCBtaW5BID4gbWF4Qikge1xuICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZVxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBsZXQgbyA9IG1heEEgPiBtYXhCID8gbWF4QiAtIG1pbkEgOiBtYXhBIC0gbWluQlxuICAgICAgICAgICAgICAgIGlmIChvIDwgb3ZlcmxhcCkge1xuICAgICAgICAgICAgICAgICAgICBvdmVybGFwID0gb1xuICAgICAgICAgICAgICAgICAgICBzbWFsbGVzdCA9IHsgeDogYXhpcy54LCB5OiBheGlzLnkgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIC8qIHRlc3QgcG9seWdvbiBCJ3Mgc2lkZXMgKi9cbiAgICAgICAgZm9yIChzaWRlID0gMDsgc2lkZSA8IG90aGVyLmdldE51bWJlck9mU2lkZXMoKTsgc2lkZSsrKSB7XG4gICAgICAgICAgICAvKiBnZXQgdGhlIGF4aXMgdGhhdCB3ZSB3aWxsIHByb2plY3Qgb250byAqL1xuICAgICAgICAgICAgaWYgKHNpZGUgPT0gMCkge1xuICAgICAgICAgICAgICAgIGF4aXMueCA9XG4gICAgICAgICAgICAgICAgICAgIG90aGVyLnBvaW50c1tvdGhlci5nZXROdW1iZXJPZlNpZGVzKCkgLSAxXS55IC1cbiAgICAgICAgICAgICAgICAgICAgb3RoZXIucG9pbnRzWzBdLnlcbiAgICAgICAgICAgICAgICBheGlzLnkgPVxuICAgICAgICAgICAgICAgICAgICBvdGhlci5wb2ludHNbMF0ueCAtXG4gICAgICAgICAgICAgICAgICAgIG90aGVyLnBvaW50c1tvdGhlci5nZXROdW1iZXJPZlNpZGVzKCkgLSAxXS54XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGF4aXMueCA9IG90aGVyLnBvaW50c1tzaWRlIC0gMV0ueSAtIG90aGVyLnBvaW50c1tzaWRlXS55XG4gICAgICAgICAgICAgICAgYXhpcy55ID0gb3RoZXIucG9pbnRzW3NpZGVdLnggLSBvdGhlci5wb2ludHNbc2lkZSAtIDFdLnhcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgLyogbm9ybWFsaXplIHRoZSBheGlzICovXG4gICAgICAgICAgICB0bXAgPSBNYXRoLnNxcnQoYXhpcy54ICogYXhpcy54ICsgYXhpcy55ICogYXhpcy55KVxuICAgICAgICAgICAgYXhpcy54IC89IHRtcFxuICAgICAgICAgICAgYXhpcy55IC89IHRtcFxuXG4gICAgICAgICAgICAvKiBwcm9qZWN0IHBvbHlnb24gQSBvbnRvIGF4aXMgdG8gZGV0ZXJtaW5lIHRoZSBtaW4vbWF4ICovXG4gICAgICAgICAgICBtaW5BID0gbWF4QSA9IHRoaXMucG9pbnRzWzBdLnggKiBheGlzLnggKyB0aGlzLnBvaW50c1swXS55ICogYXhpcy55XG4gICAgICAgICAgICBmb3IgKGkgPSAxOyBpIDwgdGhpcy5nZXROdW1iZXJPZlNpZGVzKCk7IGkrKykge1xuICAgICAgICAgICAgICAgIHRtcCA9IHRoaXMucG9pbnRzW2ldLnggKiBheGlzLnggKyB0aGlzLnBvaW50c1tpXS55ICogYXhpcy55XG4gICAgICAgICAgICAgICAgaWYgKHRtcCA+IG1heEEpIG1heEEgPSB0bXBcbiAgICAgICAgICAgICAgICBlbHNlIGlmICh0bXAgPCBtaW5BKSBtaW5BID0gdG1wXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICAvKiBjb3JyZWN0IGZvciBvZmZzZXQgKi9cbiAgICAgICAgICAgIHRtcCA9IHRoaXMuY2VudGVyLnggKiBheGlzLnggKyB0aGlzLmNlbnRlci55ICogYXhpcy55XG4gICAgICAgICAgICBtaW5BICs9IHRtcFxuICAgICAgICAgICAgbWF4QSArPSB0bXBcblxuICAgICAgICAgICAgLyogcHJvamVjdCBwb2x5Z29uIEIgb250byBheGlzIHRvIGRldGVybWluZSB0aGUgbWluL21heCAqL1xuICAgICAgICAgICAgbWluQiA9IG1heEIgPVxuICAgICAgICAgICAgICAgIG90aGVyLnBvaW50c1swXS54ICogYXhpcy54ICsgb3RoZXIucG9pbnRzWzBdLnkgKiBheGlzLnlcbiAgICAgICAgICAgIGZvciAoaSA9IDE7IGkgPCBvdGhlci5nZXROdW1iZXJPZlNpZGVzKCk7IGkrKykge1xuICAgICAgICAgICAgICAgIHRtcCA9IG90aGVyLnBvaW50c1tpXS54ICogYXhpcy54ICsgb3RoZXIucG9pbnRzW2ldLnkgKiBheGlzLnlcbiAgICAgICAgICAgICAgICBpZiAodG1wID4gbWF4QikgbWF4QiA9IHRtcFxuICAgICAgICAgICAgICAgIGVsc2UgaWYgKHRtcCA8IG1pbkIpIG1pbkIgPSB0bXBcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIC8qIGNvcnJlY3QgZm9yIG9mZnNldCAqL1xuICAgICAgICAgICAgdG1wID0gb3RoZXIuY2VudGVyLnggKiBheGlzLnggKyBvdGhlci5jZW50ZXIueSAqIGF4aXMueVxuICAgICAgICAgICAgbWluQiArPSB0bXBcbiAgICAgICAgICAgIG1heEIgKz0gdG1wXG5cbiAgICAgICAgICAgIC8qIHRlc3QgaWYgbGluZXMgaW50ZXJzZWN0LCBpZiBub3QsIHJldHVybiBmYWxzZSAqL1xuICAgICAgICAgICAgaWYgKG1heEEgPCBtaW5CIHx8IG1pbkEgPiBtYXhCKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlXG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGxldCBvID0gbWF4QSA+IG1heEIgPyBtYXhCIC0gbWluQSA6IG1heEEgLSBtaW5CXG4gICAgICAgICAgICAgICAgaWYgKG8gPCBvdmVybGFwKSB7XG4gICAgICAgICAgICAgICAgICAgIG92ZXJsYXAgPSBvXG4gICAgICAgICAgICAgICAgICAgIHNtYWxsZXN0ID0geyB4OiBheGlzLngsIHk6IGF4aXMueSB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiB7IG92ZXJsYXA6IG92ZXJsYXAgKyAwLjAwMSwgYXhpczogc21hbGxlc3QgfVxuICAgIH1cblxuICAgIHN0YXRpYyBmcm9tUG9pbnRzKHBvaW50cykge1xuICAgICAgICBsZXQgbWluID0geyB4OiBOdW1iZXIuTUFYX1ZBTFVFLCB5OiBOdW1iZXIuTUFYX1ZBTFVFIH1cbiAgICAgICAgbGV0IG1heCA9IHsgeDogTnVtYmVyLk1JTl9WQUxVRSwgeTogTnVtYmVyLk1JTl9WQUxVRSB9XG4gICAgICAgIGZvciAobGV0IHAgb2YgcG9pbnRzKSB7XG4gICAgICAgICAgICBtaW4ueCA9IE1hdGgubWluKHAueCwgbWluLngpXG4gICAgICAgICAgICBtYXgueCA9IE1hdGgubWF4KHAueCwgbWF4LngpXG4gICAgICAgICAgICBtaW4ueSA9IE1hdGgubWluKHAueSwgbWluLnkpXG4gICAgICAgICAgICBtYXgueSA9IE1hdGgubWF4KHAueSwgbWF4LnkpXG4gICAgICAgIH1cbiAgICAgICAgbGV0IGNlbnRlciA9IFBvaW50cy5tZWFuKG1pbiwgbWF4KVxuICAgICAgICBsZXQgcG9seWdvbiA9IG5ldyBQb2x5Z29uKGNlbnRlcilcbiAgICAgICAgZm9yIChsZXQgcCBvZiBwb2ludHMpIHtcbiAgICAgICAgICAgIHBvbHlnb24uYWRkQWJzb2x1dGVQb2ludChwKVxuICAgICAgICB9XG4gICAgICAgIHJldHVyb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ZGVyXG5cbiAgICAgICAgZm9yIChsZXQgcmVzb3VyY2Ugb2YgcmVzb3VyY2VzKSB7XG5cbiAgICAgICAgICAgIGlmICghbG9hZGVyLnJlc291cmNlc1tyZXNvdXJjZV0pIHtcblxuICAgICAgICAgICAgICAgIGlmIChyZXNvbHV0aW9uRGVwZW5kZW50KSB7XG4gICAgICAgICAgICAgICAgICAgIGxldCByZXNvbHV0aW9uID0gTWF0aC5yb3VuZCh0aGlzLnJlbmRlcmVyLnJlc29sdXRpb24pXG4gICAgICAgICAgICAgICAgICAgIHN3aXRjaCAocmVzb2x1dGlvbikge1xuICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSAyOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxvYWRlci5hZGQocmVzb3VyY2UsIHJlc291cmNlLnJlcGxhY2UoL1xcLihbXi5dKikkLywgJ0AyeC4kMScpKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICAgICAgICAgICAgICBjYXNlIDM6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbG9hZGVyLmFkZChyZXNvdXJjZSwgcmVzb3VyY2UucmVwbGFjZSgvXFwuKFteLl0qKSQvLCAnQDN4LiQxJykpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWtcbiAgICAgICAgICAgICAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbG9hZGVyLmFkZChyZXNvdXJjZSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVha1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgbG9hZGVyLmFkZChyZXNvdXJjZSlcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBpZiAocHJvZ3Jlc3MpIHtcbiAgICAgICAgICAgIGxvYWRlci5vbigncH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nN0cnVjdG9yKGFwcCkge1xuXG4gICAgICAgIHN1cGVyKClcblxuICAgICAgICB0aGlzLmFwcCA9IGFwcFxuXG4gICAgICAgIHRoaXMubGluZVN0eWxlKDMsIDB4NDM0ZjRmLCAxKVxuICAgICAgICAgICAgLmJlZ2luRmlsbCgweDQzNGY0ZiwgLjYpXG4gICAgICAgICAgICAuZHJhd1JvdW5kZWRSZWN0KDAsIDAsIDY4LCAzMiwgNSlcbiAgICAgICAgICAgIC5lbmRGaWxsKClcbiAgICAgICAgICAgIC5wb3NpdGlvbi5zZXQoMjAsIDIwKVxuXG4gICAgICAgIHRoaXMudGV4dCA9IG5ldyBQSVhJLlRleHQodGhpcy5mcHMsIG5ldyBQSVhJLlRleHRTdHlsZSh7XG4gICAgICAgICAgICBmb250RmFtaWx5OiAnQXJpYWwnLFxuICAgICAgICAgICAgZm9udFNpemU6IDE0LFxuICAgICAgICAgICAgZm9udFdlaWdodDogJ2JvbGQnLFxuICAgICAgICAgICAgZmlsbDogJyNmNmY2ZjYnLFxuICAgICAgICAgICAgc3Ryb2tlOiAnIzQzNGY0ZicsXG4gICAgICAgICAgICBzdHJva2VUaGlja25lc3M6IDNcbiAgICAgICAgfSkpXG4gICAgICAgIHRoaXMudGV4dC5wb3NpdGlvbi5zZXQoNiwgNilcblxuICAgICAgICB0aGlzLmFkZENoaWxkKHRoaXMudGV4dClcblxuICAgICAgICB0aGlzLnJlZnJlc2hGcHMoKVxuXG4gICAgICAgIHdpbmRvdy5zZXRJbnRlcnZhbCh0aGlzLnJlZnJlc2hGcHMuYmluZCh0aGlzKSwgMTAwMClcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBSZWZyZXNoZXMgZnBzIG51bWVyLlxuICAgICAqXG4gICAgICogQHJldHVybiB7UElYSUFwcH0gUmV0dXJucyB0aGUgUElYSUFwcCBvYmplY3QgZm9yIGNoYWluaW5nLlxuICAgICAqL1xuICAgIHJlZnJlc2hGcHMoKSB7XG4gICAgICAgIHRoaXMud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mQueCA8PSByZWN0YW5nbGUueiAmJiBwaXhlbENvb3JkLnkgPj0gcmVjdGFuZ2xlLnkgJiYgcGl4ZWxDb29yZC55IDw9IHJlY3RhbmdsZS53O1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGlmIChpbnNpZGUpIHtcbiAgICAgICAgICAgICAgICAgICAgdmVjNCBjb2xvciA9IHZlYzQoMC4wKTtcbiAgICAgICAgICAgICAgICAgICAgZmxvYXQgdG90YWwgPSAwLjA7XG5cbiAgICAgICAgICAgICAgICAgICAgZmxvYXQgb2Zmc2V0ID0gcmFuZG9tKHZlYzMoMTIuOTg5OCwgNzguMjMzLCAxNTEuNzE4MiksIDAuMCk7XG5cbiAgICAgICAgICAgICAgICAgICAgZm9yIChmbG9hdCB0ID0gLTMwLjA7IHQgPD0gMzAuMDsgdCsrKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBmbG9hdCBwZXJjZW50ID0gKHQgKyBvZmZzZXQgLSAwLjUpIC8gMzAuMDtcbiAgICAgICAgICAgICAgICAgICAgICAgIGZsb2F0IHdlaWdodCA9IDEuMCAtIGFicyhwZXJjZW50KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZlYzQgc2FtcGxlID0gdGV4dHVyZTJEKHVTYW1wbGVyLCB2VGV4dHVyZUNvb3JkICsgZGVsdGEgLyB0ZXhTaXplICogcGVyY2VudCAqIGJsdXIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgc2FtcGxlLnJnYiAqPSBzYW1wbGUuYTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbG9yICs9IHNhbXBsZSAqIHdlaWdodDtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRvdGFsICs9IHdlaWdodDtcbiAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgIGdsX0ZyYWdDb2xvciA9IGNvbG9yIC8gdG90YWw7XG4gICAgICAgICAgICAgICAgICAgIGdsX0ZyYWdDb2xvci5yZ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ApXG4gICAgICAgIH1cbiAgICAgICAgbGV0IGF0dHJzID0gcG9pbnRzLmpvaW4oJywgJylcbiAgICAgICAgcmV0dXJuIGBbUG9pbnRNYXAgJHthdHRyc31dYFxuICAgIH1cblxuICAgIGNsb25lKCkge1xuICAgICAgICBsZXQgcmVzdWx0ID0gbmV3IFBvaW50TWFwKClcbiAgICAgICAgZm9yIChsZXQga2V5IG9mIHRoaXMua2V5cygpKSB7XG4gICAgICAgICAgICBsZXQgdmFsdWUgPSB0aGlzLmdldChrZXkpXG4gICAgICAgICAgICByZXN1bHQuc2V0KGtleSwgeyB4OiB2YWx1ZS54LCB5OiB2YWx1ZS55IH0pXG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHJlc3VsdFxuICAgIH1cblxuICAgIGtleU9mKHZhbHVlKSB7XG4gICAgICAgIGZvciAobGV0IGtleSBvZiB0aGlzLmtleXMoKSkge1xuICAgICAgICAgICAgbGV0IHAgPSB0aGlzLmdldChrZXkpXG4gICAgICAgICAgICBpZiAocC54ID09IHZhbHVlLnggJiYgcC55ID09IHZhbHVlLnkpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4ga2V5XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIG51bGxcbiAgICB9XG5cbiAgICBmaXJzdEtleSgpIHtcbiAgICAgICAgZm9yIChsZXQga2V5IG9mIHRoaXMua2V5cygpKSB7XG4gICAgICAgICAgICByZXR1cm4ga2V5XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIG51bGxcbiAgICB9XG5cbiAgICBmaXJzdCgpIHtcbiAgICAgICAgZm9yIChsZXQga2V5IG9mIHRoaXMua2V5cygpKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5nZXQoa2V5KVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiBudWxsXG4gICAgfVxuXG4gICAgZmFydGhlc3RzKCkge1xuICAgICAgICBpZiAodGhpcy5zaXplID09IDApIHtcbiAgICAgICAgICAgIHJldHVybiBudWxsXG4gICAgICAgIH1cbiAgICAgICAgbGV0IHBhaXJzID0gW11cbiAgICAgICAgZm9yIChsZXQga2V5IG9mIHRoaXMua2V5cygpKSB7XG4gICAgICAgICAgICBsZXQgcCA9IHRoaXMuZ2V0KGtleSlcbiAgICAgICAgICAgIHAua2V5ID0ga2V5XG4gICAgICAgICAgICBmb3IgKGxldCBrIG9mIHRoaXMua2V5cygpKSB7XG4gICAgICAgICAgICAgICAgbGV0IHEgPSB0aGlzLmdldChrKVxuICAgICAgICAgICAgICAgIHEua2V5ID0ga1xuICAgICAgICAgICAgICAgIHBhaXJzLnB1c2goW3AsIHFdKVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGxldCBzb3J0ZWQgPSBwYWlycy5zb3J0KChhLCBiKSA9PiB7XG4gICAgICAgICAgICByZXR1cm4gUG9pbnRzLmRpc3RhbmNlKGJbMF0sIGJbMV0pIC0gUG9pbnRzLmRpc3RhbmNlKGFbMF0sIGFbMV0pXG4gICAgICAgIH0pXG4gICAgICAgIHJldHVybiBzb3J0ZWRbMF1cbiAgICB9XG5cbiAgICBtZWFuKCkge1xuICAgICAgICBpZiAodGhpcy5zaXplID09IDApIHtcbiAgICAgICAgICAgIHJldHVybiBudWxsXG4gICAgICAgIH1cbiAgICAgICAgbGV0IHggPSAwLjAsXG4gICAgICAgICAgICB5ID0gMC4wXG4gICAgICAgIGZvciAobGV0IHAgb2YgdGhpcy52YWx1ZXMoKSkge1xuICAgICAgICAgICAgeCArPSBwLnhcbiAgICAgICAgICAgIHkgKz0gcC55XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHsgeDogeCAvIHRoaXMuc2l6ZSwgeTogeSAvIHRoaXMuc2l6ZSB9XG4gICAgfVxufVxuXG5leHBvcnQgY2xhc3MgSW50ZXJhY3Rpb25EZWx0YSB7XG4gICAgY29uc3RydWN0b3IoeCwgeSwgem9vbSwgcm90YXRlLCBhYm91dCkge1xuICAgICAgICB0aGlzLnggPSB4XG4gICAgICAgIHRoaXMueSA9IHlcbiAgICAgICAgdGhpcy56b29tID0gem9vbVxuICAgICAgICB0aGlzLnJvdGF0ZSA9IHJvdGF0ZVxuICAgICAgICB0aGlzLmFib3V0ID0gYWJvdXRcbiAgICB9XG5cbiAgICB0b1N0cmluZygpIHtcbiAgICAgICAgbGV0IHZhbHVlcyA9IFtdXG4gICAgICAgIGZvciAobGV0IGtleSBvZiBPYmplY3Qua2V5cyh0aGlzKSkge1xuICAgICAgICAgICAgbGV0IHZhbHVlID0gdGhpc1trZXldXG4gICAgICAgICAgICBpZiAoa2V5ID09ICdhYm91dCcpIHtcbiAgICAgICAgICAgICAgICB2YWx1ZXMucHVzaChgJHtrZXl9Ont4OiR7dmFsdWUueH0sIHk6JHt2YWx1ZS55fX1gKVxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB2YWx1ZXMucHVzaChgJHtrZXl9OiR7dmFsdWV9YClcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBsZXQgYXR0cnMgPSB2YWx1ZXMuam9pbignLCAnKVxuICAgICAgICByZXR1cm4gYFtJbnRlcmFjdGlvbkRlbHRhICR7YXR0cnN9XWBcbiAgICB9XG59XG5cbmV4cG9ydCBjbGFzcyBJbnRlcmFjdGlvblBvaW50cyB7XG4gICAgY29uc3RydWN0b3IocGFyZW50ID0gbnVsbCkge1xuICAgICAgICB0aGlzLnBhcmVudCA9IHBhcmVudFxuICAgICAgICB0aGlzLmN1cnJlbnQgPSBuZXcgUG9pbnRNYXAoKVxuICAgICAgICB0aGlzLnByZXZpb3VzID0gbmV3IFBvaW50TWFwKClcbiAgICAgICAgdGhpcy5zdGFydCA9IG5ldyBQb2ludE1hcCgpXG4gICAgICAgIHRoaXMuZW5kZWQgPSBuZXcgUG9pbnRNYXAoKVxuICAgICAgICB0aGlzLnRpbWVzdGFtcHMgPSBuZXcgTWFwKClcbiAgICB9XG5cbiAgICBtb3Zl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JhY3Rpb25EZWx0YVxuICAgICAqIEBtZW1iZXJvZiBJbnRlcmFjdGlvblBvaW50c1xuICAgICAqL1xuICAgIGRlbHRhKCkge1xuICAgICAgICBsZXQgY3NpemUgPSB0aGlzLmN1cnJlbnQuc2l6ZVxuICAgICAgICBsZXQgcHNpemUgPSB0aGlzLnByZXZpb3VzLnNpemVcbiAgICAgICAgaWYgKGNzaXplID49IDIgJiYgY3NpemUgPT0gcHNpemUpIHtcbiAgICAgICAgICAgIC8vIFJlZHVjZSB0byB0aGUgdHdvIGZhcnRoZXN0cyBwb2ludHNcbiAgICAgICAgICAgIGxldCBjdXJyZW50ID0gdGhpcy5jdXJyZW50LmZhcnRoZXN0cygpXG5cbiAgICAgICAgICAgIGxldCBjMSA9IGN1cnJlbnRbMF1cbiAgICAgICAgICAgIGxldCBjMiA9IGN1cnJlbnRbMV1cblxuICAgICAgICAgICAgbGV0IHAxID0gdGhpcy5wcmV2aW91cy5nZXQoYzEua2V5KVxuICAgICAgICAgICAgbGV0IHAyID0gdGhpcy5wcmV2aW91cy5nZXQoYzIua2V5KVxuXG4gICAgICAgICAgICAvL2xldCBwMSA9IHByZXZpb3VzWzBdXG4gICAgICAgICAgICAvL2xldCBwMiA9IHByZXZpb3VzWzFdXG5cbiAgICAgICAgICAgIGxldCBkMSA9IFBvaW50cy5zdWJ0cmFjdChjMSwgcDEpXG4gICAgICAgICAgICBsZXQgZDIgPSBQb2ludHMuc3VidHJhY3QoYzIsIHAyKVxuICAgICAgICAgICAgbGV0IGNtID0gUG9pbnRzLm1lYW4oYzEsIGMyKVxuICAgICAgICAgICAgLy9sZXQgcG0gPSBQb2ludHMubWVhbihwMSwgcDIpXG4gICAgICAgICAgICAvLyBVTzogVXNpbmcgdGhlIG1lYW4gbGVhZCB0byBqdW1wcyBiZXR3ZWVuIHRpbWUgc2xpY2VzIHdpdGggMyBhbmQgMiBmaW5nZXJzXG4gICAgICAgICAgICAvLyBXZSB1c2UgdGhlIG1lYW4gb2YgZG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oKVxuICAgICAgICAgICAgbGV0IGRlbHRhID0gUG9pbnRzLnN1YnRyYWN0KGN1cnJlbnQsIHByZXZpb3VzKVxuICAgICAgICAgICAgcmV0dXJuIG5ldyBJbnRlcmFjdGlvbkRlbHRhKGRlbHRhLngsIGRlbHRhLnksIDEuMCwgMC4wLCBjdXJyZW50KVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiBudWxsXG4gICAgfVxuXG4gICAgc3RhcnRlZChrZXksIHBvaW50KSB7XG4gICAgICAgIHRoaXMuY3VycmVudC5zZXQoa2V5LCBwb2ludClcbiAgICAgICAgdGhpcy5zdGFydC5zZXQoa2V5LCBwb2ludClcbiAgICAgICAgdGhpcy5wcmV2aW91cy5zZXQoa2V5LCBwb2ludClcbiAgICAgICAgdGhpcy50aW1lc3RhbXBzLnNldChrZXksIHBlcmZvcm1hbmNlLm5vdygpKVxuICAgIH1cblxuICAgIHVwZGF0ZShrZXksIHBvaW50KSB7XG4gICAgICAgIC8vIFJldHVybnMgdHJ1ZSBpZmYgdGhlIGtleSBpcyBuZXdcbiAgICAgICAgdGhpcy5jdXJyZW50LnNldChrZXksIHBvaW50KVxuICAgICAgICBpZiAoIXRoaXMuc3RhcnQuaGFzKGtleSkpIHtcbiAgICAgICAgICAgIHRoaXMuc3RhcnQuc2V0KGtleSwgcG9pbnQpXG4gICAgICAgICAgICB0aGlzLnByZXZpb3VzLnNldChrZXksIHBvaW50KVxuICAgICAgICAgICAgdGhpcy50aW1lc3RhbXBzLnNldChrZXksIHBlcmZvcm1hbmNlLm5vdygpKVxuICAgICAgICAgICAgcmV0dXJuIHRydWVcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gZmFsc2VcbiAgICB9XG5cbiAgICB1cGRhdGVQcmV2aW91cygpIHtcbiAgICAgICAgZm9yIChsZXQga2V5IG9mIHRoaXMuY3VycmVudC5rZXlzKCkpIHtcbiAgICAgICAgICAgIHRoaXMucHJldmlvdXMuc2V0KGtleSwgdGhpcy5jdXJyZW50LmdldChrZXkpKVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgc3RvcChrZXksIHBvaW50KSB7XG4gICAgICAgIGlmICh0aGlzLmN1cnJlbnQuaGFzKGtleSkpIHtcbiAgICAgICAgICAgIHRoaXMuY3VycmVudC5kZWxldGUoa2V5KVxuICAgICAgICAgICAgdGhpcy5wcmV2aW91cy5kZWxldGUoa2V5KVxuICAgICAgICAgICAgdGhpcy5lbmRlZC5zZXQoa2V5LCBwb2ludClcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGZpbmlzaChrZXksIHBvaW50KSB7XG4gICAgICAgIHRoaXMuY3VycmVudC5kZWxldGUoa2V5KVxuICAgICAgICB0aGlzLnByZXZpb3VzLmRlbGV0ZShrZXkpXG4gICAgICAgIHRoaXMuc3RhcnQuZGVsZXRlKGtleSlcbiAgICAgICAgdGhpcy50aW1lc3RhbXBzLmRlbGV0ZShrZXkpXG4gICAgICAgIHRoaXMuZW5kZWQuZGVsZXRlKGtleSlcbiAgICB9XG5cbiAgICBpc0ZpbmlzaGVkKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5jdXJyZW50LnNpemUgPT0gMFxuICAgIH1cblxuICAgIGlzTm9Mb25nZXJUd29GaW5nZXIoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLnByZXZpb3VzLnNpemUgPiAxICYmIHRoaXMuY3VycmVudC5zaXplIDwgMlxuICAgIH1cblxuICAgIGlzVGFwKGtleSkge1xuICAgICAgICByZXR1cm4gdGhpcy5wYXJlbnQuaXNUYXAoa2V5KVxuICAgIH1cblxuICAgIGlzRG91YmxlVGFwKGtleSkge1xuICAgICAgICByZXR1cm4gdGhpcy5wYXJlbnQuaXNEb3VibGVUYXAoa2V5KVxuICAgIH1cblxuICAgIGlzTG9uZ1ByZXNzKGtleSkge1xuICAgICAgICByZXR1cm4gdGhpcy5wYXJlbnQuaXNMb25nUHJlc3Moa2V5KVxuICAgIH1cbn1cblxuZXhwb3J0IGNsYXNzIEludGVyYWN0aW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hpcy50YXJnZXRzLmdldChrZXkpXG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuc3ViSW50ZXJhY3Rpb25zLmhhcyh0YXJnZXQpKSB7XG4gICAgICAgICAgICAgICAgICAgIGxldCBpbnRlcmFjdGlvbiA9IHRoaXMuc3ViSW50ZXJhY3Rpb25zLmdldCh0YXJnZXQpXG4gICAgICAgICAgICAgICAgICAgIGZvciAobGV0IGFzcGVjdCBvZiBhc3BlY3RzKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBsZXQgcG9pbnRNYXAgPSB0aGlzW2FzcGVjdF1cbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCBwb2ludCA9IHBvaW50TWFwLmdldChrZXkpXG4gICAgICAgICAgICAgICAgICAgICAgICBsZXQgbWFwcGVkID0gbWFwcGluZ0Z1bmMocG9pbnQsIHRhcmdldClcbiAgICAgICAgICAgICAgICAgICAgICAgIGludGVyYWN0aW9uW2FzcGVjdF0uc2V0KGtleSwgbWFwcGVkKVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIHJlc3VsdC5zZXQodGFyZ2V0LCBpbnRlcmFjdGlvbilcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHJlc3VsdFxuICAgIH1cblxuICAgIHJlZ2lzdGVyVGFwKGtleSwgcG9pbnQpIHtcbiAgICAgICAgaWYgKHRoaXMudGFwQ291bnRzLmhhcyhrZXkpKSB7XG4gICAgICAgICAgICBsZXQgY291bnQgPSB0aGlzLnRhcENvdW50cy5nZXQoa2V5KVxuICAgICAgICAgICAgdGhpcy50YXBDb3VudHMuc2V0KGtleSwgY291bnQrMSlcbiAgICAgICAgfVxuICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgIHRoaXMudGFwQ291bnRzLnNldChrZXksIDEpXG4gICAgICAgIH1cbiAgICAgICAgdGhpcy50YXBQb3NpdGlvbnMuc2V0KGtleSwgcG9pbnQpXG4gICAgICAgIHRoaXMudGFwVGltZXN0YW1wcy5zZXQoa2V5LCBwZXJmb3JtYW5jZS5ub3coKSlcbiAgICB9XG5cbiAgICB1bnJlZ2lzdGVyVGFwKGtleSkge1xuICAgICAgICB0aGlzLnRhcENvdW50cy5kZWxldGUoa2V5KVxuICAgICAgICB0aGlzLnRhcFBvc2l0aW9ucy5kZWxldGUoa2V5KVxuICAgICAgICB0aGlzLnRhcFRpbWVzdGFtcHMuZGVsZXRlKGtleSlcbiAgICB9XG5cbiAgICBpc1RhcChrZXkpIHtcbiAgICAgICAgbGV0IGVuZGVkID0gdGhpcy5lbmRlZC5nZXQoa2V5KVxuICAgICAgICBsZXQgc3RhcnQgPSB0aGlzLnN0YXJ0LmdldChrZXkpXG4gICAgICAgIGlmIChcbiAgICAgICAgICAgIHN0YXJ0ICYmXG4gICAgICAgICAgICBlbmRlZCAmJlxuICAgICAgICAgICAgUG9pbnRzLmRpc3RhbmNlKGVuZGVkLCBzdGFydCkgPCB0aGlzLnRhcERpc3RhbmNlXG4gICAgICAgICkge1xuICAgICAgICAgICAgbGV0IHQxID0gdGhpcy50aW1lc3RhbXBzLmdldChrZXkpXG4gICAgICAgICAgICBsZXQgdG9va0xvbmcgPSBwZXJmb3JtYW5jZS5ub3coKSA+IHQxICsgdGhpcy5sb25nUHJlc3NUaW1lXG4gICAgICAgICAgICBpZiAodG9va0xvbmcpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2VcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHJldHVybiB0cnVlXG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIGZhbHNlXG4gICAgfVxuXG4gICAgaXNEb3VibGVUYXAoa2V5KSB7XG4gICAgICAgIGxldCBlbmRlZCA9IHRoaXMuZW5kZWQuZ2V0KGtleSlcbiAgICAgICAgaWYgKHRoaXMudGFwQ291bnRzLmhhcyhrZXkpICYmIHRoaXMudGFwQ291bnRzLmdldChrZXkpID4gMikge1xuICAgICAgICAgICAgdGhpcy51bnJlZ2lzdGVyVGFwKGtleSlcbiAgICAgICAgfVxuICAgICAgICBpZiAodGhpcy50YXBQb3NpdGlvbnMuaGFzKGtleSkpIHtcbiAgICAgICAgICAgIGxldCBwb3MgPSB0aGlzLnRhcFBvc2l0aW9ucy5nZXQoa2V5KVxuICAgICAgICAgICAgaWYgKFBvaW50cy5kaXN0YW5jZShlbmRlZCwgcG9zKSA+IHRoaXMudGFwRGlzdGFuY2UpIHtcbiAgICAgICAgICAgICAgICB0aGlzLnVucmVnaXN0ZXJUYXAoa2V5KVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGlmICh0aGlzLnRhcFRpbWVzdGFtcHMuaGFzKGtleSkgJiYgcGVyZm9ybWFuY2Uubm93KCkgPiB0aGlzLnRhcFRpbWVzdGFtcHMuZ2V0KGtleSkgKyB0aGlzLnRhcER1cmF0aW9uKSB7XG4gICAgICAgICAgICAvL2NvbnNvbGUubG9nKFwidGFwIHRvbyBsb25nXCIpXG4gICAgICAgICAgICB0aGlzLnVucmVnaXN0ZXJUYXAoa2V5KVxuICAgICAgICB9XG4gICAgICAgIGxldCByZXN1bHQgPSBmYWxzZVxuICAgICAgICBpZiAodGhpcy5pc1RhcChrZXkpKSB7XG4gICAgICAgICAgICBcbiAgICAgICAgICAgIHRoaXMucmVnaXN0ZXJUYXAoa2V5LCBlbmRlZClcbiAgICAgICAgICAgIHJlc3VsdCA9IHRoaXMudGFwQ291bnRzLmdldChrZXkpID09IDJcbiAgICAgICAgfVxuICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgIHRoaXMudW5yZWdpc3RlclRhcChrZXkpXG4gICAgICAgIH1cbiAgICAgICAgLy9jb25zb2xlLmxvZyhcImlzRG91YmxlVGFwXCIsIHRoaXMudGFwQ291bnRzLmdldChrZXkpLCByZXN1bHQpXG4gICAgICAgIHJldHVybiByZXN1bHRcbiAgICB9XG5cbiAgICBpc0FueVRhcCgpIHtcbiAgICAgICAgZm9yIChsZXQga2V5IG9mIHRoaXMuZW5kZWQua2V5cygpKSB7XG4gICAgICAgICAgICBpZiAodGhpcy5pc1RhcChrZXkpKSByZXR1cm4gdHJ1ZVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiBmYWxzZVxuICAgIH1cblxuICAgIGlzTG9uZ1ByZXNzKGtleSkge1xuICAgICAgICBsZXQgZW5kZWQgPSB0aGlzLmVuZGVkLmdldChrZXkpXG4gICAgICAgIGxldCBzdGFydCA9IHRoaXMuc3RhcnQuZ2V0KGtleSlcbiAgICAgICAgaWYgKFxuICAgICAgICAgICAgc3RhcnQgJiZcbiAgICAgICAgICAgIGVuZGVkICYmXG4gICAgICAgICAgICBQb2ludHMuZGlzdGFuY2UoZW5kZWQsIHN0YXJ0KSA8IHRoaXMudGFwRGlzdGFuY2VcbiAgICAgICAgKSB7XG4gICAgICAgICAgICBsZXQgdDEgPSB0aGlzLnRpbWVzdGFtcHMuZ2V0KGtleSlcbiAgICAgICAgICAgIGxldCB0b29rTG9uZyA9IHBlcmZvcm1hbmNlLm5vdygpID4gdDEgKyB0aGlzLmxvbmdQcmVzc1RpbWVcbiAgICAgICAgICAgIGlmICh0b29rTG9uZykge1xuICAgICAgICAgICAgICAgIHJldHVybiB0cnVlXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZXR1cm4gZmFsc2VcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gZmFsc2VcbiAgICB9XG5cbiAgICBpc0FueUxvbmdQcmVzcygpIHtcbiAgICAgICAgZm9yIChsZXQga2V5IG9mIHRoaXMuZW5kZWQua2V5cygpKSB7XG4gICAgICAgICAgICBpZiAodGhpcy5pc0xvbmdQcmVzcyhrZXkpKSByZXR1cm4gdHJ1ZVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiBmYWxzZVxuICAgIH1cblxuICAgIGlzU3R5bHVzKGtleSkge1xuICAgICAgICByZXR1cm4ga2V5ID09PSAnc3R5bHVzJ1xuICAgIH1cbn1cblx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tZW50YXRpb25FcnJvcihcbiAgICAgICAgICAgICAgICB0aGlzLnRhcmdldC5jb25zdHJ1Y3RvclxuICAgICAgICAgICAgKVxuICAgICAgICAgICAgaWYgKGVycm9yICE9IG51bGwpIHtcbiAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoJ0V4cGVjdGVkIElJbnRlcmFjdGlvblRhcmdldDogJyArIGVycm9yKVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHRoaXMuc2V0dXBUb3VjaEludGVyYWN0aW9uKClcbiAgICAgICAgdGhpcy5zZXR1cE1vdXNlV2hlZWxJbnRlcmFjdGlvbigpXG4gICAgfVxuXG4gICAgZ2V0IHRhcmdldEludGVyZmFjZSgpIHtcbiAgICAgICAgcmV0dXJuIElJbnRlcmFjdGlvblRhcmdldFxuICAgIH1cblxuICAgIHNldHVwVG91Y2hJbnRlcmFjdGlvbigpIHtcbiAgICAgICAgbGV0IGVsZW1lbnQgPSB0aGlzLmVsZW1lbnRcbiAgICAgICAgbGV0IHVzZUNhcHR1cmUgPSB0aGlzLnVzZUNhcHR1cmVcbiAgICAgICAgaWYgKHdpbmRvdy5Qb2ludGVyRXZlbnQpIHtcbiAgICAgICAgICAgIGlmICh0aGlzLmRlYnVnKSBjb25zb2xlLmxvZygnUG9pbnRlciBBUEknICsgd2luZG93LlBvaW50ZXJFdmVudClcbiAgICAgICAgICAgIGVsZW1lbnQuYWRkRXZlbnRMaXN0ZW5lcihcbiAgICAgICAgICAgICAgICAncG9pbnRlcmRvd24nLFxuICAgICAgICAgICAgICAgIGUgPT4ge1xuICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5kZWJ1ZykgY29uc29sZS5sb2coJ3BvaW50ZXJkb3duJywgZS5wb2ludGVySWQpXG4gICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmNhcHR1cmUoZSkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmNhcHR1cmVQb2ludGVyRXZlbnRzKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZWxlbWVudC5zZXRQb2ludGVyQ2FwdHVyZShlLnBvaW50ZXJJZClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9IGNhdGNoIChlKSB7IH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMub25TdGFydChlKVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICB1c2VDYXB0dXJlXG4gICAgICAgICAgICApXG4gICAgICAgICAgICBlbGVtZW50LmFkZEV2ZW50TGlzdGVuZXIoXG4gICAgICAgICAgICAgICAgJ3BvaW50ZXJtb3ZlJyxcbiAgICAgICAgICAgICAgICBlID0+IHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMuZGVidWcpIGNvbnNvbGUubG9nKCdwb2ludGVybW92ZScsIGUucG9pbnRlcklkKVxuXG4gICAgICAgICAgICAgICAgICAgIGlmIChcbiAgICAgICAgICAgICAgICAgICAgICAgIGUucG9pbnRlclR5cGUgPT0gJ3RvdWNoJyB8fFxuICAgICAgICAgICAgICAgICAgICAgICAgKGUucG9pbnRlclR5cGUgPT0gJ21vdXNlJyAmJiBFdmVudHMuaXNNb3VzZURvd24oZSkpXG4gICAgICAgICAgICAgICAgICAgICkge1xuICAgICAgICAgICAgICAgICAgICAgICAgLy8gdGhpcy5jYXB0dXJlKGUpICYmXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5kZWJ1ZylcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZygncG9pbnRlcm1vdmUgY2FwdHVyZWQnLCBlLnBvaW50ZXJJZClcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMub25Nb3ZlKGUpXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHVzZUNhcHR1cmVcbiAgICAgICAgICAgIClcbiAgICAgICAgICAgIGVsZW1lbnQuYWRkRXZlbnRMaXN0ZW5lcihcbiAgICAgICAgICAgICAgICAncG9pbnRlcnVwJyxcbiAgICAgICAgICAgICAgICBlID0+IHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMuZGVidWcpIGNvbnNvbGUubG9nKCdwb2ludGVydXAnKVxuICAgICAgICAgICAgICAgICAgICB0aGlzLm9uRW5kKGUpXG4gICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmNhcHR1cmVQb2ludGVyRXZlbnRzKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0cnkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVsZW1lbnQucmVsZWFzZVBvaW50ZXJDYXB0dXJlKGUucG9pbnRlcklkKVxuICAgICAgICAgICAgICAgICAgICAgICAgfSBjYXRjaCAoZSkgeyB9XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHVzZUNhcHR1cmVcbiAgICAgICAgICAgIClcbiAgICAgICAgICAgIGVsZW1lbnQuYWRkRXZlbnRMaXN0ZW5lcihcbiAgICAgICAgICAgICAgICAncG9pbnRlcmNhbmNlbCcsXG4gICAgICAgICAgICAgICAgZSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmRlYnVnKSBjb25zb2xlLmxvZygncG9pbnRlcmNhbmNlbCcpXG4gICAgICAgICAgICAgICAgICAgIHRoaXMub25FbmQoZSlcbiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMuY2FwdHVyZVBvaW50ZXJFdmVudHMpXG4gICAgICAgICAgICAgICAgICAgICAgICBlbGVtZW50LnJlbGVhc2VQb2ludGVyQ2FwdHVyZShlLnBvaW50ZXJJZClcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHVzZUNhcHR1cmVcbiAgICAgICAgICAgIClcblxuICAgICAgICAgICAgaWYgKCF0aGlzLmNhcHR1cmVQb2ludGVyRXZlbnRzKSB7XG4gICAgICAgICAgICAgICAgZWxlbWVudC5hZGRFdmVudExpc3RlbmVyKFxuICAgICAgICAgICAgICAgICAgICAncG9pbnRlcmxlYXZlJyxcbiAgICAgICAgICAgICAgICAgICAgZSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5kZWJ1ZykgY29uc29sZS5sb2coJ3BvaW50ZXJsZWF2ZScpXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoZS50YXJnZXQgPT0gZWxlbWVudCkgdGhpcy5vbkVuZChlKVxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICB1c2VDYXB0dXJlXG4gICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBpZiAoIXRoaXMuY2FwdHVyZVBvaW50ZXJFdmVudHMpIHtcbiAgICAgICAgICAgICAgICBlbGVtZW50LmFkZEV2ZW50TGlzdGVuZXIoXG4gICAgICAgICAgICAgICAgICAgICdwb2ludGVyb3V0JyxcbiAgICAgICAgICAgICAgICAgICAgZSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5kZWJ1ZykgY29uc29sZS5sb2coJ3BvaW50ZXJvdXQnKVxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGUudGFyZ2V0ID09IGVsZW1lbnQpIHRoaXMub25FbmQoZSlcbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgdXNlQ2FwdHVyZVxuICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYgKHRoaXMuY2FuY2VsT25XaW5kb3dPdXQpIHtcbiAgICAgICAgICAgICAgICB3aW5kb3cuYWRkRXZlbnRMaXN0ZW5lcihcbiAgICAgICAgICAgICAgICAgICAgJ3BvaW50ZXJvdXQnLFxuICAgICAgICAgICAgICAgICAgICBlID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChlLnRhcmdldCA9PSBlbGVtZW50KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5vbkVuZChlKVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICB1c2VDYXB0dXJlKVxuICAgICAgICAgICAgfVxuXG4gICAgICAgIH0gZWxzZSBpZiAod2luZG93LlRvdWNoRXZlbnQpIHtcbiAgICAgICAgICAgIGlmICh0aGlzLmRlYnVnKSBjb25zb2xlLmxvZygnVG91Y2ggQVBJJylcbiAgICAgICAgICAgIGVsZW1lbnQuYWRkRXZlbnRMaXN0ZW5lcihcbiAgICAgICAgICAgICAgICAndG91Y2hzdGFydCcsXG4gICAgICAgICAgICAgICAgZSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmRlYnVnKVxuICAgICAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2coJ3RvdWNoc3RhcnQnLCB0aGlzLnRvdWNoUG9pbnRzKGUpKVxuICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5jYXB0dXJlKGUpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBmb3IgKGxldCB0b3VjaCBvZiBlLmNoYW5nZWRUb3VjaGVzKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5vblN0YXJ0KHRvdWNoKVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICB1c2VDYXB0dXJlXG4gICAgICAgICAgICApXG4gICAgICAgICAgICBlbGVtZW50LmFkZEV2ZW50TGlzdGVuZXIoXG4gICAgICAgICAgICAgICAgJ3RvdWNobW92ZScsXG4gICAgICAgICAgICAgICAgZSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmRlYnVnKVxuICAgICAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2coJ3RvdWNobW92ZScsIHRoaXMudG91Y2hQb2ludHMoZSksIGUpXG4gICAgICAgICAgICAgICAgICAgIGZvciAobGV0IHRvdWNoIG9mIGUuY2hhbmdlZFRvdWNoZXMpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMub25Nb3ZlKHRvdWNoKVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGZvciAobGV0IHRvdWNoIG9mIGUudGFyZ2V0VG91Y2hlcykge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5vbk1vdmUodG91Y2gpXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHVzZUNhcHR1cmVcbiAgICAgICAgICAgIClcbiAgICAgICAgICAgIGVsZW1lbnQuYWRkRXZlbnRMaXN0ZW5lcihcbiAgICAgICAgICAgICAgICAndG91Y2hlbmQnLFxuICAgICAgICAgICAgICAgIGUgPT4ge1xuICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5kZWJ1ZykgY29uc29sZS5sb2coJ3RvdWNoZW5kJywgdGhpcy50b3VjaFBvaW50cyhlKSlcbiAgICAgICAgICAgICAgICAgICAgZm9yIChsZXQgdG91Y2ggb2YgZS5jaGFuZ2VkVG91Y2hlcykge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5vbkVuZCh0b3VjaClcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgdXNlQ2FwdHVyZVxuICAgICAgICAgICAgKVxuICAgICAgICAgICAgZWxlbWVudC5hZGRFdmVudExpc3RlbmVyKFxuICAgICAgICAgICAgICAgICd0b3VjaGNhbmNlbCcsXG4gICAgICAgICAgICAgICAgZSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmRlYnVnKVxuICAgICAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2coXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgJ3RvdWNoY2FuY2VsJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBlLnRhcmdldFRvdWNoZXMubGVuZ3RoLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGUuY2hhbmdlZFRvdWNoZXMubGVuZ3RoXG4gICAgICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICAgIGZvciAobGV0IHRvdWNoIG9mIGUuY2hhbmdlZFRvdWNoZXMpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMub25FbmQodG91Y2gpXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHVzZUNhcHR1cmVcbiAgICAgICAgICAgIClcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGlmICh0aGlzLmRlYnVnKSBjb25zb2xlLmxvZygnTW91c2UgQVBJJylcblxuICAgICAgICAgICAgZWxlbWVudC5hZGRFdmVudExpc3RlbmVyKFxuICAgICAgICAgICAgICAgICdtb3VzZWRvd24nLFxuICAgICAgICAgICAgICAgIGUgPT4ge1xuICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5kZWJ1ZykgY29uc29sZS5sb2coJ21vdXNlZG93bicsIGUpXG4gICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmNhcHR1cmUoZSkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMub25TdGFydChlKVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICB1c2VDYXB0dXJlXG4gICAgICAgICAgICApXG4gICAgICAgICAgICBlbGVtZW50LmFkZEV2ZW50TGlzdGVuZXIoXG4gICAgICAgICAgICAgICAgJ21vdXNlbW92ZScsXG4gICAgICAgICAgICAgICAgZSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIC8vIERvdyB3ZSBvbmx5IHVzZSBtb3ZlIGV2ZW50cyBpZiB0aGUgbW91c2UgaXMgZG93bj9cbiAgICAgICAgICAgICAgICAgICAgLy8gSE92ZXIgZWZmZWN0cyBoYXZlIHRvIGJlIGltcGxlbWVudGVkIGJ5IG90aGVyIG1lYW5zXG4gICAgICAgICAgICAgICAgICAgIC8vICYmIEV2ZW50cy5pc01vdXNlRG93bihlKSlcblxuICAgICAgICAgICAgICAgICAgICBpZiAoRXZlbnRzLmlzTW91c2VEb3duKGUpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5kZWJ1ZylcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZygnbW91c2Vtb3ZlJywgZSlcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMub25Nb3ZlKGUpXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHVzZUNhcHR1cmVcbiAgICAgICAgICAgIClcbiAgICAgICAgICAgIGVsZW1lbnQuYWRkRXZlbnRMaXN0ZW5lcihcbiAgICAgICAgICAgICAgICAnbW91c2V1cCcsXG4gICAgICAgICAgICAgICAgZSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmRlYnVnKSBjb25zb2xlLmxvZygnbW91c2V1cCcsIGUpXG4gICAgICAgICAgICAgICAgICAgIHRoaXMub25FbmQoZSlcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHRydWVcbiAgICAgICAgICAgIClcblxuICAgICAgICAgICAgaWYgKCF0aGlzLmNhcHR1cmVQb2ludGVyRXZlbnRzKSB7XG4gICAgICAgICAgICAgICAgZWxlbWVudC5hZGRFdmVudExpc3RlbmVyKFxuICAgICAgICAgICAgICAgICAgICAnbW91c2VvdXQnLFxuICAgICAgICAgICAgICAgICAgICBlID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChlLnRhcmdldCA9PSBlbGVtZW50KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5vbkVuZChlKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnNvbGUud2FybihcIlNob3VsZG4ndCBoYXBwZW46IG1vdXNlb3V0IGVuZHMgaW50ZXJhY3Rpb25cIilcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICB1c2VDYXB0dXJlXG4gICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKHRoaXMuY2FuY2VsT25XaW5kb3dPdXQpIHtcbiAgICAgICAgICAgICAgICB3aW5kb3cuYWRkRXZlbnRMaXN0ZW5lcihcbiAgICAgICAgICAgICAgICAgICAgJ21vdXNlb3V0JyxcbiAgICAgICAgICAgICAgICAgICAgZSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoZS50YXJnZXQgPT0gZWxlbWVudCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMub25FbmQoZSlcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgdXNlQ2FwdHVyZSlcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIGlzRGVzY2VuZGFudChwYXJlbnQsIGNoaWxkKSB7XG4gICAgICAgIGlmIChwYXJlbnQgPT0gY2hpbGQpIHJldHVybiB0cnVlXG4gICAgICAgIGxldCBub2RlID0gY2hpbGQucGFyZW50Tm9kZVxuICAgICAgICB3aGlsZSAobm9kZSAhPSBudWxsKSB7XG4gICAgICAgICAgICBpZiAobm9kZSA9PSBwYXJlbnQpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgbm9kZSA9IG5vZGUucGFyZW50Tm9kZVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiBmYWxzZVxuICAgIH1cblxuICAgIHRvdWNoUG9pbnRzKGV2ZW50KSB7XG4gICAgICAgIGxldCByZXN1bHQgPSBbXVxuICAgICAgICBmb3IgKGxldCB0b3VjaCBvZiBldmVudC5jaGFuZ2VkVG91Y2hlcykge1xuICAgICAgICAgICAgcmVzdWx0LnB1c2godGhpcy5leHRyYWN0UG9pbnQodG91Y2gpKVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiByZXN1bHRcbiAgICB9XG5cbiAgICBzZXR1cE1vdXNlV2hlZWxJbnRlcmFjdGlvbigpIHtcbiAgICAgICAgdGhpcy5tb3VzZVdoZWVsRWxlbWVudC5hZGRFdmVudExpc3RlbmVyKFxuICAgICAgICAgICAgJ21vdXNld2hlZWwnLFxuICAgICAgICAgICAgdGhpcy5vbk1vdXNlV2hlZWwuYmluZCh0aGlzKSxcbiAgICAgICAgICAgIHRydWVcbiAgICAgICAgKVxuICAgICAgICB0aGlzLm1vdXNlV2hlZWxFbGVtZW50LmFkZEV2ZW50TGlzdGVuZXIoXG4gICAgICAgICAgICAnRE9NTW91c2VTY3JvbGwnLFxuICAgICAgICAgICAgdGhpcy5vbk1vdXNlV2hlZWwuYmluZCh0aGlzKSxcbiAgICAgICAgICAgIHRydWVcbiAgICAgICAgKVxuICAgIH1cblxuICAgIG9uTW91c2VXaGVlbChldmVudCkge1xuICAgICAgICBpZiAodGhpcy5jYXB0dXJlKGV2ZW50KSAmJiB0aGlzLnRhcmdldC5vbk1vdXNlV2hlZWwpIHtcbiAgICAgICAgICAgIHRoaXMudGFyZ2V0Lm9uTW91c2VXaGVlbChldmVudClcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIC8vY29uc29sZS53YXJuKCdUYXJnZXQgaGFzIG5vIG9uTW91c2VXaGVlbCBjYWxsYmFjaycpXG4gICAgICAgI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ZXJhY3Rpb25EZWxlZ2F0ZVxuICAgICAqL1xuICAgIGNhcHR1cmUoZXZlbnQpIHtcbiAgICAgICAgaWYgKEV2ZW50cy5pc0NhcHR1cmVkKGV2ZW50KSkge1xuICAgICAgICAgICAgcmV0dXJuIGZhbHNlXG4gICAgICAgIH1cbiAgICAgICAgbGV0IGNhcHR1cmVkID0gdGhpcy50YXJnZXQuY2FwdHVyZShldmVudClcbiAgICAgICAgcmV0dXJuIGNhcHR1cmVkXG4gICAgfVxuXG4gICAgZ2V0UG9zaXRpb24oZXZlbnQpIHtcbiAgICAgICAgcmV0dXJuIHsgeDogZXZlbnQuY2xpZW50WCwgeTogZXZlbnQuY2xpZW50WSB9XG4gICAgfVxuXG4gICAgZXh0cmFjdFBvaW50KGV2ZW50LCB0b3VjaEV2ZW50S2V5ID0gJ2FsbCcpIHtcbiAgICAgICAgLy8gJ3RhcmdldFRvdWNoZXMnXG4gICAgICAgIGxldCByZXN1bHQgPSB7fVxuICAgICAgICBzd2l0Y2ggKGV2ZW50LmNvbnN0cnVjdG9yLm5hbWUpIHtcbiAgICAgICAgICAgIGNhc2UgJ01vdXNlRXZlbnQnOlxuICAgICAgICAgICAgICAgIGxldCBidXR0b25zID0gZXZlbnQuYnV0dG9ucyB8fCBldmVudC53aGljaFxuICAgICAgICAgICAgICAgIGlmIChidXR0b25zKSByZXN1bHRbJ21vdXNlJ10gPSB0aGlzLmdldFBvc2l0aW9uKGV2ZW50KVxuICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICBjYXNlICdQb2ludGVyRXZlbnQnOlxuICAgICAgICAgICAgICAgIHJlc3VsdFtldmVudC5wb2ludGVySWQudG9TdHJpbmcoKV0gPSB0aGlzLmdldFBvc2l0aW9uKGV2ZW50KVxuICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICBjYXNlICdUb3VjaCc6XG4gICAgICAgICAgICAgICAgbGV0IGlkID1cbiAgICAgICAgICAgICAgICAgICAgZXZlbnQudG91Y2hUeXBlID09PSAnc3R5bHVzJ1xuICAgICAgICAgICAgICAgICAgICAgICAgPyAnc3R5bHVzJ1xuICAgICAgICAgICAgICAgICAgICAgICAgOiBldmVudC5pZGVudGlmaWVyLnRvU3RyaW5nKClcbiAgICAgICAgICAgICAgICByZXN1bHRbaWRdID0gdGhpcy5nZXRQb3NpdGlvbihldmVudClcbiAgICAgICAgICAgICAgICBicmVha1xuICAgICAgICAgICAgLy8gICAgICAgICAgICAgY2FzZSAnVG91Y2hFdmVudCc6XG4gICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgLy8gTmVlZHMgdG8gYmUgb2JzZXJ2ZWQ6IFBlcmhhcHMgY2hhbmdlZFRvdWNoZXMgYXJlIGFsbCB3ZSBuZWVkLiBJZiBzb1xuICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgIC8vIHdlIGNhbiByZW1vdmUgdGhlIHRvdWNoRXZlbnRLZXkgZGVmYXVsdCBwYXJhbWV0ZXJcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICBpZiAodG91Y2hFdmVudEtleSA9PSAnYWxsJykge1xuICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgICBmb3IobGV0IHQgb2YgZXZlbnQudGFyZ2V0VG91Y2hlcykge1xuICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgICAgICAgcmVzdWx0W3QuaWRlbnRpZmllci50b1N0cmluZygpXSA9IHRoaXMuZ2V0UG9zaXRpb24odClcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgICBmb3IobGV0IHQgb2YgZXZlbnQuY2hhbmdlZFRvdWNoZXMpIHtcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgICAgIHJlc3VsdFt0LmlkZW50aWZpZXIudG9TdHJpbmcoKV0gPSB0aGlzLmdldFBvc2l0aW9uKHQpXG4gICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgICAgIGZvcihsZXQgdCBvZiBldmVudC5jaGFuZ2VkVG91Y2hlcykge1xuICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgICAgICAgcmVzdWx0W3QuaWRlbnRpZmllci50b1N0cmluZygpXSA9IHRoaXMuZ2V0UG9zaXRpb24odClcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICBicmVha1xuICAgICAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgICAgICBicmVha1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiByZXN1bHRcbiAgICB9XG5cbiAgICBpbnRlcmFjdGlvblN0YXJ0ZWQoZXZlbnQsIGtleSwgcG9pbnQpIHtcbiAgICAgICAgLy8gQ2FsbGJhY2s6IGNhbiBiZSBvdmVyd3JpdHRlblxuICAgIH1cblxuICAgIGludGVyYWN0aW9uRW5kZWQoZXZlbnQsIGtleSwgcG9pbnQpIHtcbiAgICAgICAgLy8gQ2FsbGJhY2s6IGNhbiBiZSBvdmVyd3JpdHRlblxuICAgIH1cblxuICAgIGludGVyYWN0aW9uRmluaXNoZWQoZXZlbnQsIGtleSwgcG9pbnQpIHsgfVxuXG4gICAgc3RhcnRJbnRlcmFjdGlvbihldmVudCwgZXh0cmFjdGVkKSB7XG4gICAgICAgIGZvciAobGV0IGtleSBpbiBleHRyYWN0ZWQpIHtcbiAgICAgICAgICAgIGxldCBwb2ludCA9IGV4dHJhY3RlZFtrZXldXG4gICAgICAgICAgICB0aGlzLmludGVyYWN0aW9uLnN0YXJ0ZWQoa2V5LCBwb2ludClcbiAgICAgICAgICAgIHRoaXMuaW50ZXJhY3Rpb25TdGFydGVkKGV2ZW50LCBrZXksIHBvaW50KVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgdXBkYXRlSW50ZXJhY3Rpb24oZXZlbnQsIGV4dHJhY3RlZCkge1xuICAgICAgICBmb3IgKGxldCBrZXkgaW4gZXh0cmFjdGVkKSB7XG4gICAgICAgICAgICBsZXQgcG9pbnQgPSBleHRyYWN0ZWRba2V5XVxuICAgICAgICAgICAgbGV0IHVwZGF0ZWQgPSB0aGlzLmludGVyYWN0aW9uLnVwZGF0ZShrZXksIHBvaW50KVxuICAgICAgICAgICAgaWYgKHVwZGF0ZWQpIHtcbiAgICAgICAgICAgICAgICBjb25zb2xlLndhcm4oXCJuZXcgcG9pbnRlciBpbiB1cGRhdGVJbnRlcmFjdGlvbiBzaG91bGRuJ3QgaGFwcGVuXCIpXG4gICAgICAgICAgICAgICAgdGhpcy5pbnRlcmFjdGlvblN0YXJ0ZWQoZXZlbnQsIGtleSwgcG9pbnQpXG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBlbmRJbnRlcmFjdGlvbihldmVudCwgZW5kZWQpIHtcbiAgICAgICAgZm9yIChsZXQga2V5IGluIGVuZGVkKSB7XG4gICAgICAgICAgICBsZXQgcG9pbnQgPSBlbmRlZFtrZXldXG4gICAgICAgICAgICB0aGlzLmludGVyYWN0aW9uLnN0b3Aoa2V5LCBwb2ludClcbiAgICAgICAgICAgIHRoaXMuaW50ZXJhY3Rpb25FbmRlZChldmVudCwga2V5LCBwb2ludClcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGZpbmlzaEludGVyYWN0aW9uKGV2ZW50LCBlbmRlZCkge1xuICAgICAgICBmb3IgKGxldCBrZXkgaW4gZW5kZWQpIHtcbiAgICAgICAgICAgIGxldCBwb2ludCA9IGVuZGVkW2tleV1cbiAgICAgICAgICAgIHRoaXMuaW50ZXJhY3Rpb24uZmluaXNoKGtleSwgcG9pbnQpXG4gICAgICAg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tcbiAgICAgICAgICAgIGlmICh0aGlzLnRhcmdldC5maW5kVGFyZ2V0KSB7XG4gICAgICAgICAgICAgICAgbGV0IHBvaW50ID0gdGhpcy5nZXRQb3NpdGlvbihldmVudClcbiAgICAgICAgICAgICAgICBsZXQgbG9jYWwgPSB0aGlzLm1hcFBvc2l0aW9uVG9Qb2ludChwb2ludClcbiAgICAgICAgICAgICAgICBsZXQgZm91bmQgPSB0aGlzLnRhcmdldC5maW5kVGFyZ2V0KGV2ZW50LCBsb2NhbCwgcG9pbnQpXG4gICAgICAgICAgICAgICAgaWYgKGZvdW5kICE9IG51bGwgJiYgZm91bmQub25Nb3VzZVdoZWVsKSB7XG4gICAgICAgICAgICAgICAgICAgIGZvdW5kLm9uTW91c2VXaGVlbChldmVudClcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKHRoaXMudGFyZ2V0Lm9uTW91c2VXaGVlbCkge1xuICAgICAgICAgICAgICAgIHRoaXMudGFyZ2V0Lm9uTW91c2VXaGVlbChldmVudClcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgLy9jb25zb2xlLndhcm4oJ1RhcmdldCBoYXMgbm8gb25Nb3VzZVdoZWVsIGNhbGxiYWNrJywgdGhpcy50YXJnZXQpXG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvblN0YXJ0KGV2ZW50KSB7XG4gICAgICAgIGxldCBleHRyYWN0ZWQgPSB0aGlzLmV4dHJhY3RQb2ludChldmVudClcbiAgICAgICAgdGhpcy5zdGFydEludGVyYWN0aW9uKGV2ZW50LCBleHRyYWN0ZWQpXG4gICAgICAgIGxldCBtYXBwZWQgPSB0aGlzLmludGVyYWN0aW9uLm1hcEludGVyYWN0aW9uKFxuICAgICAgICAgICAgZXh0cmFjdGVkLFxuICAgICAgICAgICAgWydjdXJyZW50JywgJ3N0YXJ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ZiBOb2RlTGlzdCB8fCBlbGVtZW50cyBpbnN0YW5jZW9mIEhUTUxDb2xsZWN0aW9uKSB7XG4gICAgICAgICAgICBlbGVtZW50cyA9IEFycmF5LmZyb20oZWxlbWVudHMpXG4gICAgICAgIH1cbiAgICAgICAgZWxlbWVudHMgPSBBcnJheS5pc0FycmF5KGVsZW1lbnRzKSA/IGVsZW1lbnRzIDogW2VsZW1lbnRzXVxuXG4gICAgICAgIGZvciAobGV0IGkgPSAwOyBpIDwgdHlwZXMubGVuZ3RoOyBpKyspIHtcblxuICAgICAgICAgICAgY29uc3QgdHlwZSA9IHR5cGVzW2ldLnRvTG93ZXJDYXNlKClcblxuICAgICAgICAgICAgLy8gbGlzdCBvZiBoYW1tZXIgZXZlbnRzXG4gICAgICAgICAgICBjb25zdCB1c2VIYW1tZXIgPSAvXih0YXB8ZG91YmxldGFwfHByZXNzfHBhbnxzd2lwZXxwaW5jaHxyb3RhdGUpLiokLy50ZXN0KHR5cGUpXG5cbiAgICAgICAgICAgIC8vIGlmIGl0IGlzIGEgaGFtbWVyIGV2ZW50XG4gICAgICAgICAgICBpZiAodXNlSGFtbWVyKSB7XG5cbiAgICAgICAgICAgICAgICBmb3IgKGxldCBqID0gMDsgaiA8IGVsZW1lbnRzLmxlbmd0aDsgaisrKSB7XG5cbiAgICAgICAgICAgICAgICAgICAgLy8gaWYoZWxlbWVudHNbal0udGFnTmFtZSA9PSBcInN2Z1wiKSByZXR1cm4gZmFsc2U7XG5cbiAgICAgICAgICAgICAgICAgICAgbGV0IGhhbW1lciA9IG5ldyBIYW1tZXIoZWxlbWVudHNbal0sIG9wdHMpXG5cbiAgICAgICAgICAgICAgICAgICAgaWYgKHdpbmRvdy5wcm9wYWdhdGluZyAhPT0gJ3VuZGVmaW5lZCcpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGhhbW1lciA9IHByb3BhZ2F0aW5nKGhhbW1lcilcbiAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgIC8vIHJlY29nbml6ZXJzXG4gICAgICAgICAgICAgICAgICAgIGlmICh0eXBlLnN0YXJ0c1dpdGgoJ3BhbicpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBoYW1tZXIuZ2V0KCdwYW4nKS5zZXQoT2JqZWN0LmFzc2lnbih7IGRpcmVjdGlvbjogSGFtbWVyLkRJUkVDVElPTl9BTEwgfSwgb3B0cykpXG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAodHlwZS5zdGFydHNXaXRoKCdwaW5jaCcpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBoYW1tZXIuZ2V0KCdwaW5jaCcpLnNldChPYmplY3QuYXNzaWduKHsgZW5hYmxlOiB0cnVlIH0sIG9wdHMpKVxuICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKHR5cGUuc3RhcnRzV2l0aCgncHJlc3MnKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgaGFtbWVyLmdldCgncHJlc3MnKS5zZXQob3B0cylcbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmICh0eXBlLnN0YXJ0c1dpdGgoJ3JvdGF0ZScpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBoYW1tZXIuZ2V0KCdyb3RhdGUnKS5zZXQoT2JqZWN0LmFzc2lnbih7IGVuYWJsZTogdHJ1ZSB9LCBvcHRzKSlcbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmICh0eXBlLnN0YXJ0c1dpdGgoJ3N3aXBlJykpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGhhbW1lci5nZXQoJ3N3aXBlJykuc2V0KE9iamVjdC5hc3NpZ24oeyBkaXJlY3Rpb246IEhhbW1lci5ESVJFQ1RJT05fQUxMIH0sIG9wdHMpKVxuICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKHR5cGUuc3RhcnRzV2l0aCgndGFwJykpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGhhbW1lci5nZXQoJ3RhcCcpLnNldChvcHRzKVxuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgaGFtbWVyLm9uKHR5cGUsIGV2ZW50ID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNiKGV2ZW50KVxuICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgfSBlbHNlIHtcblxuICAgICAgICAgICAgICAgIGZvciAobGV0IGogPSAwOyBqIDwgZWxlbWVudHMubGVuZ3RoOyBqKyspIHtcbiAgICAgICAgICAgICAgICAgICAgSGFtbWVyLm9uKGVsZW1lbnRzW2pdLCB0eXBlLCBldmVudCA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjYihldmVudClcbiAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gdGhpc1xuICAgIH1cbn1cblxud2luZG93LkludGVyYWN0aW9uTWFwcGVyID0gSW50ZXJhY3Rpb25NYXBwZXJcbiIsIi8qKiBSZXBvcnQgY2FwYWJpbGl0aWVzIHdpdGggZ3VhcmFudGVlZCB2YWx1ZXMuXG4gKi9cbmV4cG9ydCBjbGFzcyBDYXBhYmlsaXRpZXMge1xuXG4gICAgLyoqIFJldHVybnMgdGhlIGJyb3dzZXIgdXNlckFnZW50LlxuICAgIEByZXR1cm4ge3N0cmluZ31cbiAgICAqL1xuICAgIHN0YXRpYyBnZXQgdXNlckFnZW50KCkge1xuICAgICAgICByZXR1cm4gbmF2aWdhdG9yLnVzZXJBZ2VudCB8fCAnVW5rbm93biBBZ2VudCdcbiAgICB9XG5cbiAgICAvKiogVGVzdHMgd2hldGhlciB0aGUgYXBwIGlzIHJ1bm5pbmcgb24gYSBtb2JpbGUgZGV2aWNlLlxuICAgIEltcGxlbWVudGVkIGFzIGEgcmVhZG9ubHkgYXR0cmlidXRlLlxuIC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sfSBPYmplY3QgLSBPcHRpb25hbCBwYXJhbWV0ZXJcbiAqL1xuZXhwb3J0IGNsYXNzIFNjYXR0ZXJFdmVudCBleHRlbmRzIEJhc2VFdmVudCB7XG4gICAgY29uc3RydWN0b3IoXG4gICAgICAgIHRhcmdldCxcbiAgICAgICAge1xuICAgICAgICAgICAgdHJhbnNsYXRlID0geyB4OiAwLCB5OiAwIH0sXG4gICAgICAgICAgICBzY2FsZSA9IG51bGwsXG4gICAgICAgICAgICByb3RhdGUgPSAwLFxuICAgICAgICAgICAgYWJvdXQgPSBudWxsLFxuICAgICAgICAgICAgZmFzdCA9IGZhbHNlLFxuICAgICAgICAgICAgdHlwZSA9IG51bGxcbiAgICAgICAgfSA9IHt9XG4gICAgKSB7XG4gICAgICAgIHN1cGVyKCdzY2F0dGVyVHJhbnNmb3JtZWQnLCB7IHRhcmdldDogdGFyZ2V0IH0pXG4gICAgICAgIHRoaXMudHJhbnNsYXRlID0gdHJhbnNsYXRlXG4gICAgICAgIHRoaXMuc2NhbGUgPSBzY2FsZVxuICAgICAgICB0aGlzLnJvdGF0ZSA9IHJvdGF0ZVxuICAgICAgICB0aGlzLmFib3V0ID0gYWJvdXRcbiAgICAgICAgdGhpcy5mYXN0ID0gZmFzdFxuICAgICAgICB0aGlzLnR5cGUgPSB0eXBlXG4gICAgfVxuXG4gICAgdG9TdHJpbmcoKSB7XG4gICAgICAgIHJldHVybiAoXG4gICAgICAgICAgICBcIkV2ZW50KCdzY2F0dGVyVHJhbnNmb3JtZWQnLCBzY2FsZTogXCIgK1xuICAgICAgICAgICAgdGhpcy5zY2FsZSArXG4gICAgICAgICAgICAnIGFib3V0OiAnICtcbiAgICAgICAgICAgIHRoaXMuYWJvdXQueCArXG4gICAgICAgICAgICAnLCAnICtcbiAgICAgICAgICAgIHRoaXMuYWJvdXQueSArXG4gICAgICAgICAgICAnKSdcbiAgICAgICAgKVxuICAgIH1cbn1cblxuLyoqXG4gKiBBIHNjYXR0ZXIgcmVzaXpl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Npb24gYnkgemVybyBlcnJvcnMgbGF0ZXIgb25cbiAgICAgICAgICAgIGxldCB2ZWxvY2l0eSA9IHsgdDogdCwgZHQ6IGR0LCBkeDogZGVsdGEueCwgZHk6IGRlbHRhLnkgfVxuICAgICAgICAgICAgdGhpcy52ZWxvY2l0aWVzLnB1c2godmVsb2NpdHkpXG4gICAgICAgICAgICB3aGlsZSAodGhpcy52ZWxvY2l0aWVzLmxlbmd0aCA+IGJ1ZmZlcikge1xuICAgICAgICAgICAgICAgIHRoaXMudmVsb2NpdGllcy5zaGlmdCgpXG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBtZWFuVmVsb2NpdHkobWlsbGlzZWNvbmRzID0gMzApIHtcbiAgICAgICAgdGhpcy5hZGRWZWxvY2l0eSh7IHg6IDAsIHk6IDAgfSlcbiAgICAgICAgbGV0IHN1bSA9IHsgeDogMCwgeTogMCB9XG4gICAgICAgIGxldCBjb3VudCA9IDBcbiAgICAgICAgbGV0IHQgPSAwXG4gICAgICAgIGZvciAobGV0IGkgPSB0aGlzLnZlbG9jaXRpZXMubGVuZ3RoIC0gMTsgaSA+IDA7IGktLSkge1xuICAgICAgICAgICAgbGV0IHYgPSB0aGlzLnZlbG9jaXRpZXNbaV1cbiAgICAgICAgICAgIHQgKz0gdi5kdFxuICAgICAgICAgICAgbGV0IG52ID0geyB4OiB2LmR4IC8gdi5kdCwgeTogdi5keSAvIHYuZHQgfVxuICAgICAgICAgICAgc3VtID0gUG9pbnRzLmFkZChzdW0sIG52KVxuICAgICAgICAgICAgY291bnQgKz0gMVxuICAgICAgICAgICAgaWYgKHQgPiBtaWxsaXNlY29uZHMpIHtcbiAgICAgICAgICAgICAgICBicmVha1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGlmIChjb3VudCA9PT0gMCkgcmV0dXJuIHN1bSAvLyBlbXB0eSB2ZWN0b3JcbiAgICAgICAgcmV0dXJuIFBvaW50cy5tdWx0aXBseVN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gICAgICAgbGV0IHByZXZMZW5ndGggPSBQb2ludHMubGVuZ3RoKHRoaXMudmVsb2NpdHkpXG4gICAgICAgICAgICBsZXQgbmV4dExlbmd0aCA9IFBvaW50cy5sZW5ndGgobmV4dClcbiAgICAgICAgICAgIGlmIChuZXh0TGVuZ3RoID4gcHJldkxlbmd0aCkge1xuICAgICAgICAgICAgICAgIGxldCBmYWN0b3IgPSBuZXh0TGVuZ3RoIC8gcHJldkxlbmd0aFxuICAgICAgICAgICAgICAgIG5leHQgPSBQb2ludHMubXVsdGlwbHlTY2FsYXIobmV4dCwgMSAvIGZhY3RvcilcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZygnUHJldmVudCBhY2NlbGVyYXRpb24nLCBmYWN0b3IsIHRoaXMudmVsb2NpdHksIG5leHQpXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB0aGlzLnZlbG9jaXR5ID0gbmV4dFxuICAgICAgICAgICAgbGV0IGQgPSBQb2ludHMubXVsdGlwbHlTY2FsYXIodGhpcy52ZWxvY2l0eSwgZHQpXG4gICAgICAgICAgICB0aGlzLl9tb3ZlKGQpXG5cbiAgICAgICAgICAgIHRoaXMub25EcmFnVXBkYXRlKGQpXG4gICAgICAgICAgICBpZiAoZHQgPT0gMCB8fCB0aGlzLm5lZWRzQW5pbWF0aW9uKCkpIHtcbiAgICAgICAgICAgICAgICByZXF1ZXN0QW5pbWF0aW9uRnJhbWUodGhpcy5hbmltYXRlVGhyb3cuYmluZCh0aGlzKSlcbiAgICAgICAgICAgICAgICByZXR1cm5cbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuaXNPdXRzaWRlKCkpIHtcbiAgICAgICAgICAgICAgICAgICAgcmVxdWVzdEFuaW1hdGlvbkZyYW1lKHRoaXMuYW5pbWF0ZVRocm93LmJpbmQodGhpcykpXG4gICAgICAgICAgICAgICAgICAgIHJldHVyblxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgIC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RlbHRhLnpvb20sIGRlbHRhLnJvdGF0ZSwgZGVsdGEuYWJvdXQpXG4gICAgICAgICAgICBpZiAoZGVsdGEuem9vbSAhPSAxKSB0aGlzLmludGVyYWN0aW9uQW5jaG9yID0gZGVsdGEuYWJvdXRcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGdldCBwb2x5Z29uKCkge1xuICAgICAgICBsZXQgdzIgPSB0aGlzLndpZHRoICogdGhpcy5zY2FsZSAvIDJcbiAgICAgICAgbGV0IGgyID0gdGhpcy5oZWlnaHQgKiB0aGlzLnNjYWxlIC8gMlxuICAgICAgICBsZXQgY2VudGVyID0gdGhpcy5jZW50ZXJcbiAgICAgICAgbGV0IHBvbHlnb24gPSBuZXcgUG9seWdvbihjZW50ZXIpXG4gICAgICAgIHBvbHlnb24uYWRkUG9pbnQoeyB4OiAtdzIsIHk6IC1oMiB9KVxuICAgICAgICBwb2x5Z29uLmFkZFBvaW50KHsgeDogdzIsIHk6IC1oMiB9KVxuICAgICAgICBwb2x5Z29uLmFkZFBvaW50KHsgeDogdzIsIHk6IGgyIH0pXG4gICAgICAgIHBvbHlnb24uYWRkUG9pbnQoeyB4OiAtdzIsIHk6IGgyIH0pXG4gICAgICAgIHBvbHlnb24ucm90YXRlKHRoaXMucm90YXRpb24pXG4gICAgICAgIHJldHVybiBwb2x5Z29uXG4gICAgfVxuXG4gICAgaXNPdXRzaWRlKCkge1xuICAgICAgICBsZXQgc3RhZ2VQb2x5Z29uID0gdGhpcy5jb250YWluZXJQb2x5Z29uXG4gICAgICAgIGlmIChzdGFnZVBvbHlnb24gPT0gbnVsbClcbiAgICAgICAgICAgIHJldHVybiBmYWxzZVxuICAgICAgICBsZXQgcG9seWdvbiA9IHRoaXMucG9seWdvblxuICAgICAgICBpZiAocG9seWdvbiA9PSBudWxsKVxuICAgICAgICAgICAgcmV0dXJuIGZhbHNlXG4gICAgICAgIGxldCByZXN1bHQgPSBzdGFnZVBvbHlnb24uaW50ZXJzZWN0c1dpdGgoc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IGxldCByZXN1bHQgPSBzdGFnZVBvbHlnb24uaW50ZXJzZWN0c1dpdGgocG9seWdvbilcbiAgICAgICAgaWYgKHJlc3VsdCA9PT0gZmFsc2UgfHwgcmVzdWx0Lm92ZXJsYXAgPCB0aGlzLnRocm93VmlzaWJpbGl0eSkge1xuICAgICAgICAgICAgbGV0IGN2ID0gdGhpcy5yZWNlbnRlcigpXG4gICAgICAgICAgICBsZXQgcmVjZW50ZXJlZCA9IGZhbHNlXG4gICAgICAgICAgICB3aGlsZSAocmVzdWx0ID09PSBmYWxzZSB8fCByZXN1bHQub3ZlcmxhcCA8IHRoaXMudGhyb3dWaXNpYmlsaXR5KSB7XG4gICAgICAgICAgICAgICAgcG9seWdvbi5jZW50ZXIueCArPSBjdi54XG4gICAgICAgICAgICAgICAgcG9seWdvbi5jZW50ZXIueSArPSBjdi55XG4gICAgICAgICAgICAgICAgdGhpcy5fbW92ZShjdilcbiAgICAgICAgICAgICAgICByZXN1bHQgPSBzdGFnZVBvbHlnb24uaW50ZXJzZWN0c1dpdGgocG9seWdvbilcbiAgICAgICAgICAgICAgICByZWNlbnRlcmVkID0gdHJ1ZVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmV0dXJuIHJlY2VudGVyZWRcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gZmFsc2VcbiAgICB9XG5cbiAgICBrZWVwT25TdGFnZSh2ZWxvY2l0eSwgY29sbGlzaW9uID0gMC41KSB7XG4gICAgICAgIGxldCBzdGFnZVBvbHlnb24gPSB0aGlzLmNvbnRhaW5lclBvbHlnb25cbiAgICAgICAgaWYgKCFzdGFnZVBvbHlnb24pIHJldHVyblxuICAgICAgICBsZXQgcG9seWdvbiA9IHRoaXMucG9seWdvblxuICAgICAgICBsZXQgYm91bmNlZCA9IHRoaXMuYm91bmNpbmcoKVxuICAgICAgICBpZiAoYm91bmNlZCkge1xuICAgICAgICAgICAgbGV0IHN0YWdlID0gdGhpcy5jb250YWluZXJCb3VuZHNcbiAgICAgICAgICAgIGxldCB4ID0gdGhpcy5jZW50ZXIueFxuICAgICAgICAgICAgbGV0IHkgPSB0aGlzLmNlbnRlci55XG4gICAgICAgICAgICBsZXQgZHggPSB0aGlzLm1vdmFibGVYID8gdmVsb2NpdHkueCA6IDBcbiAgICAgICAgICAgIGxldCBkeSA9IHRoaXMubW92YWJsZVkgPyB2ZWxvY2l0eS55IDogMFxuICAgICAgICAgICAgbGV0IGZhY3RvciA9IHRoaXMudGhyb3dEYW1waW5nXG4gICAgICAgICAgICAvLyBpZiAocmVjZW50ZXJlZCkge1xuICAgICAgICAgICAgaWYgKHggPCAwKSB7XG4gICAgICAgICAgICAgICAgZHggPSAtZHhcbiAgICAgICAgICAgICAgICBmYWN0b3IgPSBjb2xsaXNpb25cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmICh4ID4gc3RhZ2Uud2lkdGgpIHtcbiAgICAgICAgICAgICAgICBkeCA9IC1keFxuICAgICAgICAgICAgICAgIGZhY3RvciA9IGNvbGxpc2lvblxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKHkgPCAwKSB7XG4gICAgICAgICAgICAgICAgZHkgPSAtZHlcbiAgICAgICAgICAgICAgICBmYWN0b3IgPSBjb2xsaXNpb25cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmICh5ID4gc3RhZ2UuaGVpZ2h0KSB7XG4gICAgICAgICAgICAgICAgZHkgPSAtZHlcbiAgICAgICAgICAgICAgICBmYWN0b3IgPSBjb2xsaXNpb25cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIC8vIH1cbiAgICAgICAgICAgIHJldHVybiBQb2ludHMubXVsdGlwbHlTY2FsYXIoeyB4OiBkeCwgeTogZHkgfSwgZmFjdG9yKVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiBzdXBlci5uZXh0VmVsb2NpdHkodmVsb2NpdHkpXG4gICAgfVxuXG4gICAgZW5kR2VzdHVyZShpbnRlcmFjdGlvbikge1xuICAgICA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DApIHtcbiAgICAgICAgICAgICAgICBsZXQgc3RhcnRQb3MgPSB0aGlzLnBvc2l0aW9uXG4gICAgICAgICAgICAgICAgVHdlZW5MaXRlLnRvKHRoaXMsIGFuaW1hdGUsIHtcbiAgICAgICAgICAgICAgICAgICAgeDogJys9JyArIGQueCxcbiAgICAgICAgICAgICAgICAgICAgeTogJys9JyArIGQueSxcbiAgICAgICAgICAgICAgICAgICAgLyogc2NhbGU6IHNjYWxlLCB1bzogbm90IGRlZmluZWQsIHdoeSB3YXMgdGhpcyBoZXJlPyAqL1xuICAgICAgICAgICAgICAgICAgICBvblVwZGF0ZTogZSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBsZXQgcCA9IHRoaXMucG9zaXRpb25cbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCBkeCA9IHAueCAtIHN0YXJ0UG9zLnhcbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCBkeSA9IHAueCAtIHN0YXJ0UG9zLnlcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMub25Nb3ZlZChkeCwgZHkpXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aGlzLl9tb3ZlKGQpXG4gICAgICAgICAgICAgICAgdGhpcy5vbk1vdmVkKGQueCwgZC55KVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgbW92ZVRvKHAsIHsgYW5pbWF0ZSA9IDAgfSA9IHt9KSB7XG4gICAgICAgIGxldCBjID0gdGhpcy5vcmlnaW5cbiAgICAgICAgbGV0IGRlbHRhID0gUG9pbnRzLnN1YnRyYWN0KHAsIGMpXG4gICAgICAgIHRoaXMubW92ZShkZWx0YSwgeyBhbmltYXRlOiBhbmltYXRlIH0pXG4gICAgfVxuXG4gICAgY2VudGVyQXQocCwgeyBhbmltYXRlID0gMCB9ID0ge30pIHtcbiAgICAgICAgbGV0IGMgPSB0aGlzLmNlbnRlclxuICAgICAgICBsZXQgZGVsdGEgPSBQb2ludHMuc3VidHJhY3QocCwgYylcbiAgICAgICAgdGhpcy5tb3ZlKGRlbHRhLCB7IGFuaW1hdGU6IGFuaW1hdGUgfSlcbiAgICB9XG5cbiAgICB6b29tKFxuICAgICAgICBzY2FsZSxcbiAgICAgICAge1xuICAgICAgICAgICAgYW5pbWF0ZSA9IDAsXG4gICAgICAgICAgICBhYm91dCA9IG51bGwsXG4gICAgICAgICAgICBkZWxheSA9IDAsXG4gICAgICAgICAgICB4ID0gbnVsbCxcbiAgICAgICAgICAgIHkgPSBudWxsLFxuICAgICAgICAgICAgb25Db21wbGV0ZSA9IG51bGxcbiAgICAgICAgfSA9IHt9XG4gICAgKSB7XG4gICAgICAgIGxldCBhbmNob3IgPSBhYm91dCB8fCB0aGlzLmNlbnRlclxuICAgICAgICBpZiAoc2NhbGUgIT0gdGhpcy5zY2FsZSkge1xuICAgICAgICAgICAgaWYgKGFuaW1hdGUgPiAwKSB7XG4gICAgICAgICAgICAgICAgVHdlZW5MaXRlLnRvKHRoaXMsIGFuaW1hdGUsIHtcbiAgICAgICAgICAgICAgICAgICAgc2NhbGU6IHNjYWxlLFxuICAgICAgICAgICAgICAgICAgICBkZWxheTogZGVsYXksXG4gICAgICAgICAgICAgICAgICAgIG9uQ29tcGxldGU6IG9uQ29tcGxldGUsXG4gICAgICAgICAgICAgICAgICAgIG9uVXBkYXRlOiB0aGlzLm9uWm9vbWVkLmJpbmQodGhpcylcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aGlzLnNjYWxlID0gc2NhbGVcbiAgICAgICAgICAgICAgICB0aGlzLm9uWm9vbWVkKGFuY2hvcilcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIF9tb3ZlKGRlbHRhKSB7XG4gICAgICAgIHRoaXMueCArPSB0aGlzLm1vdmFibGVYID8gZGVsdGEueCA6IDBcbiAgICAgICAgdGhpcy55ICs9IHRoaXMubW92YWJsZVggPyBkZWx0YS55IDogMFxuICAgIH1cblxuICAgIHRyYW5zZm9ybSh0cmFuc2xhdGUsIHpvb20sIHJvdGF0ZSwgYW5jaG9yKSB7XG4gICAgICAgIGxldCBkZWx0YSA9IHtcbiAgICAgICAgICAgIHg6IHRoaXMubW92YWJsZVggPyB0cmFuc2xhdGUueCA6IDAsXG4gICAgICAgICAgICB5OiB0aGlzLm1vdmFibGVZID8gdHJhbnNsYXRlLnkgOiAwXG4gICAgICAgIH1cbiAgICAgICAgaWYgKHRoaXMucmVzaXphYmxlKSB2YXIgdnpvb20gPSB6b29tXG4gICAgICAgIGlmICghdGhpcy50cmFuc2xhdGFibGUpIGRlbHRhID0geyB4OiAwLCB5OiAwIH1cbiAgICAgICAgaWYgKCF0aGlzLnJvdGF0YWJsZSkgcm90YXRlID0gMFxuICAgICAgICBpZiAoIXRoaXMuc2NhbGFibGUpIHpvb20gPSAxLjBcbiAgICAgICAgaWYgKHpvb20gPT0gMS4wICYmIHJvdGF0ZSA9PSAwKSB7XG4gICAgICAgICAgICB0aGlzLl9tb3ZlKGRlbHRhKVxuICAgICAgICAgICAgaWYgKHRoaXMub25UcmFuc2Zvcm0gIT0gbnVsbCkge1xuICAgICAgICAgICAgICAgIGxldCBldmVudCA9IG5ldyBTY2F0dGVyRXZlbnQodGhpcywge1xuICAgICAgICAgICAgICAgICAgICB0cmFuc2xhdGU6IGRlbHRhLFxuICAgICAgICAgICAgICAgICAgICBzY2FsZTogdGhpcy5zY2FsZSxcbiAgICAgICAgICAgICAgICAgICAgcm90YXRlOiAwLFxuICAgICAgICAgICAgICAgICAgICBhYm91dDogYW5jaG9yLFxuICAgICAgICAgICAgICAgICAgICBmYXN0OiBmYWxzZSxcbiAgICAgICAgICAgICAgICAgICAgdHlwZTogVVBEQVRFXG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICB0aGlzLm9uV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ICAgICAgIGRlbHRhLnkgKz0gZXh0cmEueVxuICAgICAgICBpZiAodGhpcy5vblRyYW5zZm9ybSAhPSBudWxsKSB7XG4gICAgICAgICAgICBsZXQgZXZlbnQgPSBuZXcgU2NhdHRlckV2ZW50KHRoaXMsIHtcbiAgICAgICAgICAgICAgICB0cmFuc2xhdGU6IGRlbHRhLFxuICAgICAgICAgICAgICAgIHNjYWxlOiBuZXdTY2FsZSxcbiAgICAgICAgICAgICAgICByb3RhdGU6IHJvdGF0ZSxcbiAgICAgICAgICAgICAgICBhYm91dDogYW5jaG9yXG4gICAgICAgICAgICB9KVxuICAgICAgICAgICAgdGhpcy5vblRyYW5zZm9ybS5mb3JFYWNoKGZ1bmN0aW9uIChmKSB7XG4gICAgICAgICAgICAgICAgZihldmVudClcbiAgICAgICAgICAgIH0pXG4gICAgICAgIH1cbiAgICAgICAgaWYgKHRoaXMucmVzaXphYmxlKSB7XG4gICAgICAgICAgICB0aGlzLnJlc2l6ZUFmdGVyVHJhbnNmb3JtKHZ6b29tKVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogRm9yIGEgZ2l2ZW4gem9vbSwgYSBuZXcgc2NhbGUgaXMgY2FsY3VsYXRlZCwgdGFraW5nXG4gICAgICogbWluIGFuZCBtYXggc2NhbGUgaW50byBhY2NvdW50LlxuICAgICAqIFxuICAgICAqIEBwYXJhbSB7bnVtYmVyfSB6b29tIC0gVGhlIHpvb20gZmFjdG9yLCB0byBzY2FsZSB0aGUgb2JqZWN0IHdpdGguXG4gICAgICogQHJldHVybnMge29iamVjdH0gLSBSZXR1cm5zIGFuIG9iamVjdCBjb250YWluaW5nIHRoZSBhIHZhbHVlIGZvciBhIHZhbGlkIHNjYWxlIGFuZCB0aGUgY29ycmVjdGVkIHpvb20gZmFjdG9yLlxuICAgICAqL1xuICAgIGNhbGN1bGF0ZVNjYWxlKHpvb20pIHtcbiAgICAgICAgbGV0IHNjYWxlID0gdGhpcy5zY2FsZSAqIHp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T4ge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmFuaW1hdGVab29tQm91bmNlKGR0KVxuICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgcmV0dXJuXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB0aGlzLnpvb21BbmNob3IgPSBudWxsXG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBjaGVja1NjYWxpbmcoYWJvdXQsIGRlbGF5ID0gMCkge1xuICAgICAgICB0aGlzLnpvb21BbmNob3IgPSBhYm91dFxuICAgICAgICBjbGVhclRpbWVvdXQodGhpcy5hbmltYXRlWm9vbUJvdW5jZS5iaW5kKHRoaXMpKVxuICAgICAgICBzZXRUaW1lb3V0KHRoaXMuYW5pbWF0ZVpvb21Cb3VuY2UuYmluZCh0aGlzKSwgZGVsYXkpXG4gICAgfVxuXG4gICAgb25Nb3VzZVdoZWVsKGV2ZW50KSB7XG4gICAgICAgIGlmIChldmVudC5jbGFpbWVkQnlTY2F0dGVyKSB7XG4gICAgICAgICAgICBpZiAoZXZlbnQuY2xhaW1lZEJ5U2NhdHRlciAhPSB0aGlzKSByZXR1cm5cbiAgICAgICAgfVxuICAgICAgICB0aGlzLmtpbGxBbmltYXRpb24oKVxuICAgICAgICB0aGlzLnRhcmdldFNjYWxlID0gbnVsbFxuICAgICAgICBsZXQgZGlyZWN0aW9uID0gZXZlbnQuZGV0YWlsIDwgMCB8fCBldmVudC53aGVlbERlbHRhID4gMFxuICAgICAgICBsZXQgZ2xvYmFsUG9pbnQgPSB7IHg6IGV2ZW50LmNsaWVudFgsIHk6IGV2ZW50LmNsaWVudFkgfVxuICAgICAgICBsZXQgY2VudGVyUG9pbnQgPSB0aGlzLm1hcFBvc2l0aW9uVG9Db250YWluZXJQb2ludChnbG9iYWxQb2ludClcbiAgICAgICAgaWYgKGV2ZW50LnNoaWZ0S2V5KSB7XG4gICAgICAgICAgICBsZXQgZGVncmVlcyA9IGRpcmVjdGlvbiA/IDUgOiAtNVxuICAg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AgICBsZXQgZXZlbnQgPSBuZXcgU2NhdHRlckV2ZW50KHRoaXMsIHtcbiAgICAgICAgLy8gICAgICAgICAgICAgICAgIHRyYW5zbGF0ZToge3g6IDAsIHk6IDB9LFxuICAgICAgICAvLyAgICAgICAgICAgICAgICAgc2NhbGU6IHRoaXMuc2NhbGUsXG4gICAgICAgIC8vICAgICAgICAgICAgICAgICByb3RhdGU6IDAsXG4gICAgICAgIC8vICAgICAgICAgICAgICAgICBhYm91dDogbnVsbCxcbiAgICAgICAgLy8gICAgICAgICAgICAgICAgIGZhc3Q6IGZhbHNlLFxuICAgICAgICAvLyAgICAgICAgICAgICAgICAgdHlwZTogWk9PTVxuICAgICAgICAvLyAgICAgICAgICAgICB9KVxuICAgICAgICAvLyAgICAgICAgICAgICB0aGlzLm9uVHJhbnNmb3JtLmZvckVhY2goZnVuY3Rpb24oZikge1xuICAgICAgICAvLyAgICAgICAgICAgICAgICAgZihldmVudClcbiAgICAgICAgLy8gICAgICAgICAgICAgfSlcbiAgICAgICAgLy8gICAgICAgICB9XG4gICAgfVxuXG4gICAgb25TdGFydChldmVudCwgaW50ZXJhY3Rpb24pIHtcblxuICAgICAgICBpZiAodGhpcy5zdGFydEdlc3R1cmUoaW50ZXJhY3Rpb24pKSB7XG4gICAgICAgICAgICB0aGlzLmRyYWdnaW5nID0gdHJ1ZVxuICAgICAgICAgICAgdGhpcy5pbnRlcmFjdGlvbkFuY2hvciA9IG51bGxcbiAgICAgICAgfVxuICAgICAgICBpZiAodGhpcy5vblRyYW5zZm9ybSAhPSBudWxsKSB7XG4gICAgICAgICAgICBsZXQgZXZlbnQgPSBuZXcgU2NhdHRlckV2ZW50KHRoaXMsIHtcbiAgICAgICAgICAgICAgICB0cmFuc2xhdGU6IHsgeDogMCwgeTogMCB9LFxuICAgICAgICAgICAgICAgIHNjYWxlOiB0aGlzLnNjYWxlLFxuICAgICAgICAgICAgICAgIHJvdGF0ZTogMCxcbiAgICAgICAgICAgICAgICBhYm91dDogbnVsbCxcbiAgICAgICAgICAgICAgICBmYXN0OiBmYWxzZSxcbiAgICAgICAgICAgICAgICB0eXBlOiBTVEFSVFxuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIHRoaXMub25UcmFuc2Zvcm0uZm9yRWFjaChmdW5jdGlvbiAoZikge1xuICAgICAgICAgICAgICAgIGYoZXZlbnQpXG4gICAgICAgICAgICB9KVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgb25Nb3ZlKGV2ZW50LCBpbnRlcmFjdGlvbikge1xuICAgICAgICAvKiogQXMgbG9uZyBhcyBtb3VzZW91dCAmJiBtb3VzZWxlYXZlIGludGVycnVwdCB3ZSBjYW5ub3QgYmUgc3VyZSB0aGF0XG4gICAgICAgICAqIGRyYWdnaW5nIHJlbWFpbnMgY29ycmVjdC5cbiAgICAgICAgICovXG4gICAgICAgIGlmICh0aGlzLmRyYWdnaW5nKSB7XG4gICAgICAgICAgICB0aGlzLmdlc3R1cmUoaW50ZXJhY3Rpb24pXG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvbkVuZChldmVudCwgaW50ZXJhY3Rpb24pIHtcbiAgICAgICAgLy9jb25zb2xlLmxvZyhcIlNjYXR0ZXIub25FbmRcIiwgdGhpcy5kcmFnZ2luZylcbiAgICAgICAgaWYgKGludGVyYWN0aW9uLmlzRmluaXNoZWQoKSkge1xuICAgICAgICAgICAgdGhpcy5lbmRHZXN0dXJlKGludGVyYWN0aW9uKVxuICAgICAgICAgICAgdGhpcy5kcmFnZ2luZyA9IGZhbHNlXG4gICAgICAgICAgICBmb3IgKGxldCBrZXkgb2YgaW50ZXJhY3Rpb24uZW5kZWQua2V5cygpKSB7XG4gICAgICAgICAgICAgICAgaWYgKGludGVyYWN0aW9uLmlzVGFwKGtleSkpIHtcbiAgICAgICAgICAgICAgICAgICAgbGV0IHBvaW50ID0gaW50ZXJhY3Rpb24uZW5kZWQuZ2V0KGtleSlcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5vblRhcChldmVudCwgaW50ZXJhY3Rpb24sIHBvaW50KVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmICh0aGlzLm9uVHJhbnNmb3JtICE9IG51bGwpIHtcbiAgICAgICAgICAgICAgICBsZXQgZXZlbnQgPSBuZXcgU2NhdHRlckV2ZW50KHRoaXMsIHtcbiAgICAgICAgICAgICAgICAgICAgdHJhbnNsYXRlOiB7IHg6IDAsIHk6IDAgfSxcbiAgICAgICAgICAgICAgICAgICAgc2NhbGU6IHRoaXMuc2NhbGUsXG4gICAgICAgICAgICAgICAgICAgIHJvdGF0ZTogMCxcbiAgICAgICAgICAgICAgICAgICAgYWJvdXQ6IG51bGwsXG4gICAgICAgICAgICAgICAgICAgIGZhc3Q6IGZhbHNlLFxuICAgICAgICAgICAgICAgICAgICB0eXBlOiBFTkRcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgIHRoaXMub25UcmFuc2Zvcm0uZm9yRWFjaChmdW5jdGlvbiAoZikge1xuICAgICAgICAgICAgICAgICAgICBmKGV2ZW50KVxuICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgbGV0IGFib3V0ID0gdGhpcy5pbnRlcmFjdGlvbkFuY2hvclxuICAgICAgICBpZiAoYWJvdXQgIT0gbnVsbCkge1xuICAgICAgICAgICAgdGhpcy5jaGVja1NjYWxpbmcoYWJvdXQsIDEwMClcbiAgICAgICAgfVxuICAgIH1cblxuICAgIG9uVGFwKGV2ZW50LCBpbnRlcmFjdGlvbiwgcG9pbnQpIHsgfVxuXG4gICAgb25EcmFnVXBkYXRlKGRlbHRhKSB7XG4gICAgICAgIGlmICh0aGlzLm9uVHJhbnNmb3JtICE9IG51bGwpIHtcbiAgICAgICAgICAgIGxldCBldmVudCA9IG5ldyBTY2F0dGVyRXZlbnQodGhpcywge1xuICAgICAgICAgICAgICAgIGZhc3Q6IHRydWUsXG4gICAgICAgICAgICAgICAgdHJhbnNsYXRlOiBkZWx0YSxcbiAgICAgICAgICAgICAgICBzY2FsZTogdGhpcy5zY2FsZSxcbiAgICAgICAgICAgICAgICBhYm91dDogdGhpcy5jdXJyZW50QWJvdXQsXG4gICAgICAgICAgICAgICAgdHlwZTogbnVsbFxuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIHRoaXMub25UcmFuc2Zvcm0uZm9yRWFjaChmdW5jdGlvbiAoZikge1xuICAgICAgICAgICAgICAgIGYoZXZlbnQpXG4gICAgICAgICAgICB9KVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgb25EcmFnQ29tcGxldGUoKSB7XG4gICAgICAgIGlmICh0aGlzLm9uVHJhbnNmb3JtKSB7XG4gICAgICAgICAgICBsZXQgZXZlbnQgPSBuZXcgU2NhdHRlckV2ZW50KHRoaXMsIHtcbiAgICAgICAgICAgICAgICBzY2FsZTogdGhpcy5zY2FsZSxcbiAgICAgICAgICAgICAgICBhYm91dDogdGhpcy5jdXJyZW50QWJvdXQsXG4gICAgICAgICAgICAgICAgZmFzdDogZmFsc2UsXG4gICAgICAgICAgICAgICAgdHlwZTogbnVsbFxuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIHRoaXMub25UcmFuc2Zvcm0uZm9yRWFjaChmdW5jdGlvbiAoZikge1xuICAgICAgICAgICAgICAgIGYoZXZlbnQpXG4gICAgICAgICAgICB9KVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgb25Nb3ZlZChkeCwgZHksIGFib3V0KSB7XG4gICAgICAgIGlmICh0aGlzLm9uVHJhbnNmb3JtICE9IG51bGwpIHtcbiAgICAgICAgICAgIGxldCBldmVudCA9IG5ldyBTY2F0dGVyRXZlbnQodGhpcywge1xuICAgICAgICAgICAgICAgIHRyYW5zbGF0ZTogeyB4OiBkeCwgeTogZHkgfSxcbiAgICAgICAgICAgICAgICBhYm91dDogYWJvdXQsXG4gICAgICAgICAgICAgICAgZmFzdDogdHJ1ZSxcbiAgICAgICAgICAgICAgICB0eXBlOiBudWxsXG4gICAgICAgICAgICB9KVxuICAgICAgICAgICAgdGhpcy5vblRyYW5zZm9ybS5mb3JFYWNoKGZ1bmN0aW9uIChmKSB7XG4gICAgICAgICAgICAgICAgZihldmVudClcbiAgICAgICAgICAgIH0pXG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvblJlc2l6aW5nKCkge1xuICAgICAgICBpZiAodGhpcy5vblRyYW5zZm9ybSAhPSBudWxsKSB7XG4gICAgICAgICAgICBsZXQgZXZlbnQgPSBuZXcgU2NhdHRlckV2ZW50KHRoaXMsIHtcbiAgICAgICAgICAgICAgICBzY2FsZTogdGhpcy5zY2FsZSxcbiAgICAgICAgICAgICAgICBmYXN0OiBmYWxzZSxcbiAgICAgICAgICAgICAgICB0eXBlOiBudWxsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIHRoaXMub25UcmFuc2Zvcm0uZm9yRWFjaChmdW5jdGlvbiAoZikge1xuICAgICAgICAgICAgICAgIGYoZXZlbnQpO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvblpvb21lZChhYm91dCkge1xuXG4gICAgICAgIGlmICh0aGlzLnNjYWxlQXV0b0Nsb3NlKVxuICAgICAgICAgICAgdGhpcy5fdXBkYXRlVHJhbnNwYXJlbmN5KClcblxuICAgICAgICBpZiAodGhpcy5vblRyYW5zZm9ybSAhPSBudWxsKSB7XG4gICAgICAgICAgICBsZXQgZXZlbnQgPSBuZXcgU2NhdHRlckV2ZW50KHRoaXMsIHtcbiAgICAgICAgICAgICAgICBzY2FsZTogdGhpcy5zY2FsZSxcbiAgICAgICAgICAgICAgICBhYm91dDogYWJvdXQsXG4gICAgICAgICAgICAgICAgZmFzdDogZmFsc2UsXG4gICAgICAgICAgICAgICAgdHlwZTogbnVsbFxuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIHRoaXMub25UcmFuc2Zvcm0uZm9yRWFjaChmdW5jdGlvbiAoZikge1xuICA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mNlbCBldmVudHMuIFVzZSBudWxsIGlmIHRoZVxuICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhlIHRvdWNoIGFjdGlvbiBzaG91bGQgbm90IGJlIHNldC5cbiAgICAgKi9cbiAgICBjb25zdHJ1Y3RvcihcbiAgICAgICAgZWxlbWVudCxcbiAgICAgICAgeyBzdG9wRXZlbnRzID0gJ2F1dG8nLCBjbGFpbUV2ZW50cyA9IHRydWUsIHVzZUNhcHR1cmUgPSB0cnVlLCB0b3VjaEFjdGlvbiA9ICdub25lJyB9ID0ge31cbiAgICApIHtcbiAgICAgICAgdGhpcy5vbkNhcHR1cmUgPSBudWxsXG4gICAgICAgIHRoaXMuZWxlbWVudCA9IGVsZW1lbnRcbiAgICAgICAgaWYgKHN0b3BFdmVudHMgPT09ICdhdXRvJykge1xuICAgICAgICAgICAgaWYgKENhcGFiaWxpdGllcy5pc1NhZmFyaSkge1xuICAgICAgICAgICAgICAgIGRvY3VtZW50LmFkZEV2ZW50TGlzdGVuZXIoXG4gICAgICAgICAgICAgICAgICAgICd0b3VjaG1vdmUnLFxuICAgICAgICAgICAgICAgICAgICBldmVudCA9PiB0aGlzLnByZXZlbnRQaW5jaChldmVudCksXG4gICAgICAgICAgICAgICAgICAgIGZhbHNlXG4gICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgIHN0b3BFdmVudHMgPSBmYWxzZVxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBzdG9wRXZlbnRzID0gdHJ1ZVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHRoaXMuc3RvcEV2ZW50cyA9IHN0b3BFdmVudHNcbiAgICAgICAgdGhpcy5jbGFpbUV2ZW50cyA9IGNsYWltRXZlbnRzXG4gICAgICAgIGlmICh0b3VjaEFjdGlvbiAhPT0gbnVsbCkge1xuICAgICAgICAgICAgRWxlbWVudHMuc2V0U3R5bGUoZWxlbWVudCwgeyB0b3VjaEFjdG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MoKSkge1xuICAgICAgICAgICAgbGV0IGxvY2FsID0gcG9pbnRcbiAgICAgICAgICAgIGNvbnRleHQuYmVnaW5QYXRoKClcbiAgICAgICAgICAgIGNvbnRleHQuYXJjKFxuICAgICAgICAgICAgICAgIGxvY2FsLnggKiByZXNvbHV0aW9uLFxuICAgICAgICAgICAgICAgIGxvY2FsLnkgKiByZXNvbHV0aW9uLFxuICAgICAgICAgICAgICAgIHJhZGl1cyxcbiAgICAgICAgICAgICAgICAwLFxuICAgICAgICAgICAgICAgIDIgKiBNYXRoLlBJLFxuICAgICAgICAgICAgICAgIGZhbHNlXG4gICAgICAgICAgICApXG4gICAgICAgICAgICBjb250ZXh0LmZpbGwoKVxuICAgICAgICAgICAgY29udGV4dC5zdHJva2UoKVxuICAgICAgICB9XG4gICAgICAgIHJlcXVlc3RBbmltYXRpb25GcmFtZShkdCA9PiB7XG4gICAgICAgICAgICB0aGlzLnNob3dUb3VjaGVzKGR0KVxuICAgICAgICB9KVxuICAgIH1cblxuICAgIHByZXZlbnRQaW5jaChldmVudCkge1xuICAgICAgICBldmVudCA9IGV2ZW50Lm9yaWdpbmFsRXZlbnQgfHwgZXZlbnRcbiAgICAgICAgaWYgKGV2ZW50LnNjYWxlICE9PSAxKSB7XG4gICAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpXG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBhZGQoc2NhdHRlcikge1xuICAgICAgICB0aGlzLnNjYXR0ZXIuc2V0KHNjYXR0ZXIuZWxlbWVudCwgc2NhdHRlcilcbiAgICB9XG5cbiAgICBjYXB0dXJlKGV2ZW50KSB7XG4gICAgICAgIGlmICh0aGlzLm9uQ2FwdHVyZSkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMub25DYXB0dXJlKGV2ZW50KVxuICAgICAgICB9XG4gICAgICAgIGlmIChldmVudC50YXJnZXQgPT0gdGhpcy5lbGVtZW50ICYmIHRoaXMuc3RvcEV2ZW50cykge1xuICAgIC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b24oY2VudGVyKVxuICAgICAgICBwb2x5Z29uLmFkZFBvaW50KHsgeDogLXcyLCB5OiAtaDIgfSlcbiAgICAgICAgcG9seWdvbi5hZGRQb2ludCh7IHg6IHcyLCB5OiAtaDIgfSlcbiAgICAgICAgcG9seWdvbi5hZGRQb2ludCh7IHg6IHcyLCB5OiBoMiB9KVxuICAgICAgICBwb2x5Z29uLmFkZFBvaW50KHsgeDogLXcyLCB5OiBoMiB9KVxuICAgICAgICByZXR1cm4gcG9seWdvblxuICAgIH1cbn1cblxuXG5leHBvcnQgY2xhc3MgRE9NU2NhdHRlciBleHRlbmRzIEFic3RyYWN0U2NhdHRlciB7XG4gICAgY29uc3RydWN0b3IoXG4gICAgICAgIGVsZW1lbnQsXG4gICAgICAgIGNvbnRhaW5lcixcbiAgICAgICAge1xuICAgICAgICAgICAgc3RhcnRTY2FsZSA9IDEuMCxcbiAgICAgICAgICAgIG1pblNjYWxlID0gMC4xLFxuICAgICAgICAgICAgbWF4U2NhbGUgPSAxLjAsXG4gICAgICAgICAgICBvdmVyZG9TY2FsaW5nID0gMS41LFxuICAgICAgICAgICAgYXV0b0JyaW5nVG9Gcm9udCA9IHRydWUsXG4gICAgICAgICAgICB0cmFuc2xhdGFibGUgPSB0cnVlLFxuICAgICAgICAgICAgc2NhbGFibGUgPSB0cnVlLFxuICAgICAgICAgICAgcm90YXRhYmxlID0gdHJ1ZSxcbiAgICAgICAgICAgIG1vdmFibGVYID0gdHJ1ZSxcbiAgICAgICAgICAgIG1vdmFibGVZID0gdHJ1ZSxcbiAgICAgICAgICAgIHJvdGF0aW9uRGVncmVlcyA9IG51bGwsXG4gICAgICAgICAgICByb3RhdGlvbiA9IG51bGwsXG4gICAgICAgICAgICBvblRyYW5zZm9ybSA9IG51bGwsXG4gICAgICAgICAgICB0cmFuc2Zvcm1PcmlnaW4gPSAnY2VudGVyIGNlbnRlcicsXG4gICAgICAgICAgICAvLyBleHRyYXMgd2hpY2ggYXJlIGluIHBhcnQgbmVlZGVkXG4gICAgICAgICAgICB4ID0gMCxcbiAgICAgICAgICAgIHkgPSAwLFxuICAgICAgICAgICAgd2lkdGggPSBudWxsLCAvLyByZXF1aXJlZFxuICAgICAgICAgICAgaGVpZ2h0ID0gbnVsbCwgIC8vIHJlcXVpcmVkXG4gICAgICAgICAgICByZXNpemFibGUgPSBmYWxzZSxcbiAgICAgICAgICAgIHNpbXVsYXRlQ2xpY2sgPSBmYWxzZSxcbiAgICAgICAgICAgIHZlcmJvc2UgPSB0cnVlLFxuICAgICAgICAgICAgb25SZXNpemUgPSBudWxsLFxuICAgICAgICAgICAgdG91Y2hBY3Rpb24gPSAnbm9uZScsXG4gICAgICAgICAgICB0aHJvd1Zpc2liaWxpdHkgPSA0NCxcbiAgICAgICAgICAgIHRocm93RGFtcGluZyA9IDAuOTUsXG4gICAgICAgICAgICBhdXRvVGhyb3cgPSB0cnVlLFxuICAgICAgICAgICAgc2NhbGVBdXRvQ2xvc2UgPSBmYWxzZSxcbiAgICAgICAgICAgIG9uQ2xvc2UgPSBudWxsLFxuICAgICAgICAgICAgc2NhbGVDbG9zZVRocmVzaG9sZCA9IDAuMTAsXG4gICAgICAgICAgICBzY2FsZUNsb3NlQnVmZmVyID0gMC4wNVxuICAgICAgICB9ID0ge31cbiAgICApIHtcbiAgICAgICAgc3VwZXIoe1xuICAgICAgICAgICAgbWluU2NhbGUsXG4gICAgICAgICAgICBtYXhTY2FsZSxcbiAgICAgICAgICAgIHN0YXJ0U2NhbGUsXG4gICAgICAgICAgICBvdmVyZG9TY2FsaW5nLFxuICAgICAgICAgICAgYXV0b0JyaW5nVG9Gcm9udCxcbiAgICAgICAgICAgIHRyYW5zbGF0YWJsZSxcbiAgICAgICAgICAgIHNjYWxhYmxlLFxuICAgICAgICAgICAgcm90YXRhYmxlLFxuICAgICAgICAgICAgbW92YWJsZVgsXG4gICAgICAgICAgICBtb3ZhYmxlWSxcbiAgICAgICAgICAgIHJlc2l6YWJsZSxcbiAgICAgICAgICAgIHJvdGF0aW9uRGVncmVlcyxcbiAgICAgICAgICAgIHJvdGF0aW9uLFxuICAgICAgICAgICAgb25UcmFuc2Zvcm0sXG4gICAgICAgICAgICB0aHJvd1Zpc2liaWxpdHksXG4gICAgICAgICAgICB0aHJvd0RhbXBpbmcsXG4gICAgICAgICAgICBhdXRvVGhyb3csXG4gICAgICAgICAgICBzY2FsZUF1dG9DbG9zZSxcbiAgICAgICAgICAgIHNjYWxlQ2xvc2VUaHJlc2hvbGQsXG4gICAgICAgICAgICBzY2FsZUNsb3NlQnVmZmVyLFxuICAgICAgICAgICAgb25DbG9zZVxuICAgICAgICB9KVxuICAgICAgICBpZiAoY29udGFpbmVyID09IG51bGwgfHwgd2lkdGggPT0gbnVsbCB8fCBoZWlnaHQgPT0gbnVsbCkge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdJbnZhbGlkIHZhbHVlOiBudWxsJylcbiAgICAgICAgfVxuICAgICAgICBlbGVtZW50LnNjYXR0ZXIgPSB0aGlzXG4gICAgICAgIHRoaXMuZWxlbWVudCA9IGVsZW1lbnRcbiAgICAgICAgdGhpcy54ID0geFxuICAgICAgICB0aGlzLnkgPSB5XG4gICAgICAgIHRoaXMub2xkWCA9IDBcbiAgICAgICAgdGhpcy5vbGRZID0gMFxuICAgICAgICB0aGlzLm1lYW5YID0geFxuICAgICAgICB0aGlzLm1lYW5ZID0geVxuICAgICAgICB0aGlzLndpZHRoID0gd2lkdGhcbiAgICAgICAgdGhpcy5oZWlnaHQgPSBoZWlnaHRcbiAgICAgICAgdGhpcy50aHJvd1Zpc2liaWxpdHkgPSBNYXRoLm1pbih3aWR0aCwgaGVpZ2h0LCB0aHJvd1Zpc2liaWxpdHkpXG4gICAgICAgIHRoaXMuY29udGFpbmVyID0gY29udGFpbmVyXG4gICAgICAgIHRoaXMuc2ltdWxhdGVDbGljayA9IHNpbXVsYXRlQ2xpY2tcbiAgICAgICAgdGhpcy5zY2FsZSA9IHN0YXJ0U2NhbGVcbiA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ngsXG4gICAgICAgICAgICB5OiBwLnksXG4gICAgICAgICAgICByb3RhdGlvbjogcm90YXRpb25EZWdyZWVzLFxuICAgICAgICAgICAgdHJhbnNmb3JtT3JpZ2luOiB0aGlzLnRyYW5zZm9ybU9yaWdpblxuICAgICAgICB9KVxuICAgIH1cblxuICAgIGJyaW5nVG9Gcm9udCgpIHtcbiAgICAgICAgLy8gdGhpcy5lbGVtZW50LnBhcmVudE5vZGUuYXBwZW5kQ2hpbGQodGhpcy5lbGVtZW50KVxuICAgICAgICAvLyB1bzogT24gQ2hvbWUgYW5kIEVsZWN0b24gYXBwZW5kQ2hpbGQgbGVhZHMgdG8gZmxpY2tlclxuICAgICAgICBUd2VlbkxpdGUuc2V0KHRoaXMuZWxlbWVudCwgeyB6SW5kZXg6IERPTVNjYXR0ZXIuekluZGV4KysgfSlcbiAgICB9XG5cbiAgICB0b2dnbGVWaWRlbyhlbGVtZW50KSB7XG4gICAgICAgIGlmIChlbGVtZW50LnBhdXNlZCkge1xuICAgICAgICAgICAgZWxlbWVudC5wbGF5KClcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGVsZW1lbnQucGF1c2UoKVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgb25UYXAoZXZlbnQsIGludGVyYWN0aW9uLCBwb2ludCkge1xuICAgICAgICBpZiAodGhpcy5zaW11bGF0ZUNsaWNrKSB7XG4gICAgICAgICAgICBsZXQgcCA9IFBvaW50cy5mcm9tUGFnZVRvTm9kZSh0aGlzLmVsZW1lbnQsIHBvaW50KVxuICAgICAgICAgICAgbGV0IGlmcmFtZSA9IHRoaXMuZWxlbWVudC5xdWVyeVNlbGVjdG9yKCdpZnJhbWUnKVxuICAgICAgICAgICAgaWYgKGlmcmFtZSkge1xuICAgICAgICAgICAgICAgIGxldCBkb2MgPSBpZnJhbWUuY29udGVudFdpbmRvdy5kb2N1bWVudFxuICAgICAgICAgICAgICAgIGxldCBlbGVtZW50ID0gZG9jLmVsZW1lbnRGcm9tUG9pbnQocC54LCBwLnkpXG4gICAgICAgICAgICAgICAgaWYgKGVsZW1lbnQgPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm5cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgc3dpdGNoIChlbGVtZW50LnRhZ05hbWUpIHtcbiAgICAgICAgICAgICAgICAgICAgY2FzZSAnVklERU8nOlxuICAgICAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2coZWxlbWVudC5jdXJyZW50U3JjKVxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKFBvcHVwTWVudSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFBvcHVwTWVudS5vcGVuKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBGdWxsc2NyZWVuOiAoKSA9PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdpbmRvdy5vcGVuKGVsZW1lbnQuY3VycmVudFNyYyksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBQbGF5OiAoKSA9PiBlbGVtZW50LnBsYXkoKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7IHgsIHkgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy50b2dnbGVWaWRlbyhlbGVtZW50KVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWtcbiAgICAgICAgICAgICAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgICAgICAgICAgICAgIGVsZW1lbnQuY2xpY2soKVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgf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lzLnkgPSB5XG4gICAgICAgIHRoaXMuc2NhbGUgPSBzY2FsZVxuICAgICAgICB0aGlzLnJvdGF0aW9uID0gMFxuICAgICAgICB0aGlzLm1heFNjYWxlID0gbWF4U2NhbGVcbiAgICAgICAgdGhpcy5taW5TY2FsZSA9IG1pblNjYWxlXG4gICAgICAgIHRoaXMud2FudGVkV2lkdGggPSB3aWR0aFxuICAgICAgICB0aGlzLndhbnRlZEhlaWdodCA9IGhlaWdodFxuICAgICAgICB0aGlzLm1heFdpZHRoID0gbWF4V2lkdGggIT0gbnVsbCA/IG1heFdpZHRoIDogd2luZG93LmlubmVyV2lkdGhcbiAgICAgICAgdGhpcy5tYXhIZWlnaHQgPSBtYXhIZWlnaHQgIT0gbnVsbCA/IG1heEhlaWdodCA6IHdpbmRvdy5pbm5lckhlaWdodFxuICAgICAgICB0aGlzLmFkZGVkTm9kZSA9IG51bGxcbiAgICAgICAgY29uc29sZS5sb2coe1xuICAgICAgICAgXG4gICAgICAgICAgICB3aWR0aCxcbiAgICAgICAgICAgIGhlaWdodCxcbiAgICAgICAgICAgIG1heFdpZHRoLFxuICAgICAgICAgICAgbWF4SGVpZ2h0LFxuICAgICAgICAgICBcbiAgICAgICAgfSlcbiAgICB9XG5cbiAgICB1bmxvYWQoKSB7XG4gICAgICAgIGlmICh0aGlzLmFkZGVkTm9kZSkge1xuICAgICAgICAgICAgdGhpcy5hZGRlZE5vZGUucmVtb3ZlKClcbiAgICAgICAgICAgIHRoaXMuYWRkZWROb2RlID0gbnVsbFxuICAgICAgICB9XG4gICAgfVxufVxuXG5leHBvcnQgY2xhc3MgUERGTG9hZGVyIGV4dGVuZHMgQ2FyZExvYWRlciB7XG4gICAgY29uc3RydWN0b3Ioc3JjLCB7IHdpZHRoID0gMTY0MCwgaGVpZ2h0ID0gODAwLCBzY2FsZSA9IDEgfSA9IHt9KSB7XG4gICAgICAgIHN1cGVyKHNyYywgeyB3aWR0aCwgaGVpZ2h0LCBzY2FsZSB9KVxuICAgICAgICBpZiAodHlwZW9mIFBERkpTID09ICd1bmRlZmluZWQnKSB7XG4gICAgICAgICAgICBhbGVydCgnUERGLmpzIG5lZWRlZCcpXG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBsb2FkKGRvbU5vZGUpIHtcbiAgICAgICAgcmV0dXJuIG5ldyBQcm9taXNlKChyZXNvbHZlLCByZWplY3QpID0+IHtcbiAgICAgICAgICAgIFBERkpTLmdldERvY3VtZW50KHRoaXMuc3JjKS50aGVuKHBkZiA9PiB7XG4gICAgICAgICAgICAgICAgcGRmLmdldFBhZ2UoMSkudGhlbihwYWdlID0+IHtcbiAgICAgICAgICAgICAgICAgICAgbGV0IHNjYWxlID0gdGhpcy5zY2FsZSAqIGFwcC5yZW5kZXJlci5yZXNvbHV0aW9uXG4gICAgICAgICAgICAgICAgICAgIGxldCBpbnZTY2FsZSA9IDEgLyBzY2FsZVxuICAgICAgICAgICAgICAgICAgICBsZXQgdmlld3BvcnQgPSBwYWdlLmdldFZpZXdwb3J0KHNjYWxlKVxuXG4gICAgICAgICAgICAgICAgICAgIC8vIFByZXBhcmUgY2FudmFzIHVzaW5nIFBERiBwYWdlIGRpbWVuc2lvbnMuXG4gICAgICAgICAgICAgICAgICAgIGxldCBjYW52YXMgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCdjYW52YXMnKVxuICAgICAgICAgICAgICAgICAgICBsZXQgY29udGV4dCA9IGNhbnZhcy5nZXRDb250ZXh0KCcyZCcpXG4gICAgICAgICAgICAgICAgICAgIGNhbnZhcy5oZWlnaHQgPSB2aWV3cG9ydC5oZWlnaHRcbiAgICAgICAgICAgICAgICAgICAgY2FudmFzLndpZHRoID0gdmlld3BvcnQud2lkdGhcblxuICAgICAgICAgICAgICAgICAgICAvLyBSZW5kZXIgUERGIHBhZ2UgaW50byBjYW52YXMgY29udGV4dC5cbiAgICAgICAgICAgICAgICAgICAgbGV0IHJlbmRlckNvbnRleHQgPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjYW52YXNDb250ZXh0OiBjb250ZXh0LFxuICAgICAgICAgICAgICAgICAgICAgICAgdmlld3BvcnQ6IHZpZXdwb3J0XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgcGFnZS5yZW5kZXIocmVuZGVyQ29udGV4dClcbiAgICAgICAgICAgICAgICAgICAgZG9tTm9kZS5hcHBlbmRDaGlsZChjYW52YXMpXG4gICAgICAgICAgICAgICAgICAgIHRoaXMud2FudGVkV2lkdGggPSBjYW52YXMud2lkdGhcbiAgICAgICAgICAgICAgICAgICAgdGhpcy53YW50ZWRIZWlnaHQgPSBjYW52YXMuaGVpZ2h0XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2NhbGUgPSBpbnZTY2FsZVxuICAgICAgICAgICAgICAgICAgICB0aGlzLmFkZGVkTm9kZSA9IGNhbnZhc1xuICAgICAgICAgICAgICAgICAgICByZXNvbHZlKHRoaXMpXG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIH0pXG4gICAgICAgIH0pXG4gICAgfVxufVxuXG5leHBvcnQgY2xhc3MgSW1hZ2VMb2FkZXIgZXh0ZW5kcyBDYXJkTG9hZGVyIHtcbiAgICBsb2FkKGRvbU5vZGUpIHtcbiAgICAgICAgcmV0dXJuIG5ldyBQcm9taXNlKChyZXNvbHZlLCByZWplY3QpID0+IHtcbiAgICAgICAgICAgIGxldCBpc0ltYWdlID0gZG9tTm9kZSBpbnN0YW5jZW9mIEhUTUxJbWFnZUVsZW1lbnRcbiAgICAgICAgICAgIGxldCBpbWFnZSA9IGlzSW1hZ2UgPyBkb21Ob2RlIDogZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnaW1nJylcbiAgICAgICAgICAgIGltYWdlLm9ubG9hZCA9IGUgPT4ge1xuICAgICAgICAgICAgICAgIGlmICghaXNJbWFnZSkge1xuICAgICAgICAgICAgICAgICAgICBkb21Ob2RlLmFwcGVuZENoaWxkKGltYWdlKVxuICAgICAgICAgICAgICAgICAgICB0aGlzLmFkZGVkTm9kZSA9IGltYWdlXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHRoaXMud2FudGVkV2lkdGggPSBpbWFnZS5uYXR1cmFsV2lkdGhcbiAgICAgICAgICAgICAgICB0aGlzLndhbnRlZEhlaWdodCA9IGltYWdlLm5hdHVyYWxIZWlnaHRcblxuICAgICAgICAgICAgICAgIGxldCBzY2FsZVcgPSB0aGlzLm1heFdpZHRoIC8gaW1hZ2UubmF0dXJhbFdpZHRoXG4gICAgICAgICAgICAgICAgbGV0IHNjYWxlSCA9IHRoaXMubWF4SGVpZ2h0IC8gaW1hZ2UubmF0dXJhbEhlaWdodFxuICAgICAgICAgICAgICAgIHRoaXMuc2NhbGUgPSBNYXRoLm1pbih0aGlzLm1heFNjYWxlLCBNYXRoLm1pbihzY2FsZVcsIHNjYWxlSCkpXG4gICAgICAgICAgICAgICAgaW1hZ2Uuc2V0QXR0cmlidXRlKCdkcmFnZ2FibGUnLCBmYWxzZSlcbiAgICAgICAgICAgICAgICBpbWFnZS53aWR0aCA9IGltYWdlLm5hdHVyYWxXaWR0aFxuICAgICAgICAgICAgICAgIGltYWdlLmhlaWdodCA9IGltYWdlLm5hdHVyYWxIZWlnaHRcbiAgICAgICAgICAgICAgICByZXNvbHZlKHRoaXMpXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpbWFnZS5vbmVycm9yID0gZSA9PiB7XG4gICAgICAgICAgICAgICAgcmVqZWN0KHRoaXMpXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpbWFnZS5zcmMgPSB0aGlzLnNyY1xuICAgICAgICB9KVxuICAgIH1cbn1cblxuZXhwb3J0IGNsYXNzIEZyYW1lTG9hZGVyIGV4dGVuZHMgQ2FyZExvYWRlciB7XG4gICAgbG9hZChkb21Ob2RlKSB7XG4gICAgICAgIHJldHVybiBuZXcgUHJvbWlzZSgocmVzb2x2ZSwgcmVqZWN0KSA9PiB7XG4gICAgICAgIC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vYWRlciBleHRlbmRzIENhcmRMb2FkZXIge1xuICAgIGxvYWQoZG9tTm9kZSkge1xuICAgICAgICByZXR1cm4gbmV3IFByb21pc2UoKHJlc29sdmUsIHJlamVjdCkgPT4ge1xuICAgICAgICAgICAgbGV0IHhociA9IG5ldyBYTUxIdHRwUmVxdWVzdCgpXG4gICAgICAgICAgICB4aHIub3BlbignR0VUJywgdGhpcy5zcmMsIGZhbHNlKVxuICAgICAgICAgICAgeGhyLm9ubG9hZCA9IGUgPT4ge1xuICAgICAgICAgICAgICAgIGRvbU5vZGUuaW5uZXJIVE1MID0geGhyLnJlc3BvbnNlXG4gICAgICAgICAgICAgICAgdGhpcy5hZGRlZE5vZGUgPSBkb21Ob2RlLmZpcnN0RWxlbWVudENoaWxkXG4gICAgICAgICAgICAgICAgbGV0IHsgd2lkdGgsIGhlaWdodCB9ID0gdGhpcy5zaXplKHRoaXMuYWRkZWROb2RlKVxuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKFwiSFRNTExvYWRlci5sb2FkXCIsIHsgYWRkZWQ6IHRoaXMuYWRkZWROb2RlLCB3aWR0aCwgaGVpZ2h0IH0pXG4gICAgICAgICAgICAgICAgaWYgKHdpZHRoKVxuICAgICAgICAgICAgICAgICAgICB0aGlzLndhbnRlZFdpZHRoID0gd2lkdGggfHwgdGhpcy53YW50ZWRXaWR0aFxuICAgICAgICAgICAgICAgIGlmIChoZWlnaHQpXG4gICAgICAgICAgICAgICAgICAgIHRoaXMud2FudGVkSGVpZ2h0ID0gaGVpZ2h0IHx8IHRoaXMud2FudGVkSGVpZ2h0XG4gICAgICAgICAgICAgICAgcmVzb2x2ZSh0aGlzKVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgeGhyLm9uZXJyb3IgPSBlID0+IHtcbiAgICAgICAgICAgICAgICByZWplY3QodGhpcylcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHhoci5zZW5kKClcbiAgICAgICAgfSlcbiAgICB9XG5cbiAgICAvKipc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JhY2sgPSBmYWxzZSxcbiAgICAgICAgICAgIHRyYW5zbGF0YWJsZSA9IHRydWUsXG4gICAgICAgICAgICBzY2FsYWJsZSA9IHRydWUsXG4gICAgICAgICAgICByb3RhdGFibGUgPSB0cnVlLFxuICAgICAgICAgICAgb25Gcm9udCA9IG51bGwsXG4gICAgICAgICAgICBvbkJhY2sgPSBudWxsLFxuICAgICAgICAgICAgb25DbG9zZSA9IG51bGwsXG4gICAgICAgICAgICBvblVwZGF0ZSA9IG51bGwsXG4gICAgICAgICAgICBvblJlbW92ZWQgPSBudWxsLFxuICAgICAgICAgICAgb25Mb2FkZWQgPSBudWxsXG4gICAgICAgIH0gPSB7fVxuICAgICkge1xuICAgICAgICB0aGlzLmRvbVNjYXR0ZXJDb250YWluZXIgPSBkb21TY2F0dGVyQ29udGFpbmVyXG4gICAgICAgIHRoaXMuaWQgPSBnZXRJZCgpXG4gICAgICAgIHRoaXMuZmxpcER1cmF0aW9uID0gZmxpcER1cmF0aW9uXG4gICAgICAgIHRoaXMuZmFkZUR1cmF0aW9uID0gZmFkZUR1cmF0aW9uXG4gICAgICAgIHRoaXMuY2xvc2VPbk1pblNjYWxlID0gY2xvc2VPbk1pblNjYWxlXG4gICAgICAgIHRoaXMuZmxpcFRlbXBsYXRlID0gZmxpcFRlbXBsYXRlXG4gICAgICAgIHRoaXMuZnJvbnRMb2FkZXIgPSBmcm9udExvYWRlclxuICAgICAgICB0aGlzLmJhY2tMb2FkZXIgPSBiYWNrTG9hZGVyXG4gICAgICAgIHRoaXMudHJhbnNsYXRhYmxlID0gdHJhbnNsYXRhYmxlXG4gICAgICAgIHRoaXMuc2NhbGFibGUgPSBzY2FsYWJsZVxuICAgICAgICB0aGlzLnJvdGF0YWJsZSA9IHJvdGF0YWJsZVxuICAgICAgICB0aGlzLm9uRnJvbnRGbGlwcGVkID0gb25Gcm9udFxuICAgICAgICB0aGlzLm9uQmFja0ZsaXBwZWQgPSBvbkJhY2tcbiAgICAgICAgdGhpcy5v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gYWNjZXNzIHRoZSBuZXcgZG9tIGVsZW1lbnQgYnkgaWRcbiAgICAgICAgICAgIHRoaXMuY2FyZFdyYXBwZXIgPSBkb20ucXVlcnlTZWxlY3RvcignIycgKyB0aGlzLmlkKVxuICAgICAgICAgICAgbGV0IGZyb250ID0gdGhpcy5jYXJkV3JhcHBlci5xdWVyeVNlbGVjdG9yKCcuZnJvbnQnKVxuICAgICAgICAgICAgdGhpcy5mcm9udExvYWRlci5sb2FkKGZyb250KS50aGVuKGxvYWRlciA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5mcm9udExvYWRlZChsb2FkZXIpLnRoZW4oKG9iaikgPT4ge1xuICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5vbkxvYWRlZCkgdGhpcy5vbkxvYWRlZCgpXG4gICAgICAgICAgICAgICAgICAgIHJlc29sdmUodGhpcylcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgfSlcbiAgICAgICAgfSlcbiAgICB9XG5cbiAgICBmcm9udExvYWRlZChsb2FkZXIpIHtcbiAgICAgICAgcmV0dXJuIG5ldyBQcm9taXNlKChyZXNvbHZlLCByZWplY3QpID0+IHtcbiAgICAgICAgICAgIGxldCBzY2F0dGVyID0gbmV3IERPTVNjYXR0ZXIoXG4gICAgICAgICAgICAgICAgdGhpcy5jYXJkV3JhcHBlcixcbiAgICAgICAgICAgICAgICB0aGlzLmRvbVNjYXR0ZXJDb250YWluZXIsXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICB4OiBsb2FkZXIueCxcbiAgICAgICAgICAgICAgICAgICAgeTogbG9hZGVyLnksXG4gICAgICAgICAgICAgICAgICAgIHN0YXJ0U2NhbGU6IGxvYWRlci5zY2FsZSxcbiAgICAgICAgICAgICAgICAgICAgc2NhbGU6IGxvYWRlci5zY2FsZSxcbiAgICAgICAgICAgICAgICAgICAgbWF4U2NhbGU6IGxvYWRlci5tYXhTY2FsZSxcbiAgICAgICAgICAgICAgICAgICAgbWluU2NhbGU6IGxvYWRlci5taW5TY2FsZSxcbiAgICAgICAgICAgICAgICAgICAgd2lkdGg6IGxvYWRlci53YW50ZWRXaWR0aCxcbiAgICAgICAgICAgICAgICAgICAgaGVpZ2h0OiBsb2FkZXIud2FudGVkSGVpZ2h0LFxuICAgICAgICAgICAgICAgICAgICByb3RhdGlvbjogbG9hZGVyLnJvdGF0aW9uLFxuICAgICAgICAgICAgICAgICAgICB0cmFuc2xhdGFibGU6IHRoaXMudHJhbnNsYXRhYmxlLFxuICAgICAgICAgICAgICAgICAgICBzY2FsYWJsZTogdGhpcy5zY2FsYWJsZSxcbiAgICAgICAgICAgICAgICAgICAgcm90YXRhYmxlOiB0aGlzLnJvdGF0YWJsZSxcbiAgICAgICAgICAgICAgICAgICAgb3ZlcmRvU2NhbGluZzogdGhpcy5vdmVyZG9TY2FsaW5nXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgKVxuXG4gICAgICAgICAgICBpZiAodGhpcy5jZW50ZXIpIHtcbiAgICAgICAgICAgICAgICBzY2F0dGVyLmNlbnRlckF0KHRoaXMuY2VudGVyKVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBpZiAodGhpcy5jbG9zZU9uTWluU2NhbGUpIHtcblxuICAgICAgICAgICAgICAgIGNvbnN0IHJlbW92ZU9uTWluU2NhbGUgPSBmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgICAgICAgIGlmIChzY2F0dGVyLnNjYWxlIDw9IHNjYXR0ZXIubWluU2NhbGUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZmxpcHBhYmxlLmNsb3NlKClcblxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gJ0Rpc2FibGUnIG92ZXJkb3NjYWxpbmcgdG8gYXZvaWQgd2VpcmQganVtcHMgb24gY2xvc2UuXG4gICAgICAgICAgICAgICAgICAgICAgICBzY2F0dGVyLm1pblNjYWxlIC89IHNjYXR0ZXIub3ZlcmRvU2NhbGluZ1xuICAgICAgICAgICAgICAgICAgICAgICAgc2NhdHRlci5vdmVyZG9TY2FsaW5nID0gMVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAvL1JlbW92ZSBjYWxsYmFja1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHNjYXR0ZXIub25UcmFuc2Zvcm0pIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgY2FsbGJhY2tJZHggPSBzY2F0dGVyLm9uVHJhbnNmb3JtLmluZGV4T2YocmVtb3ZlT25NaW5TY2FsZSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzY2F0dGVyLm9uVHJhbnNmb3JtLnNwbGljZShjYWxsYmFja0lkeCwgMSlcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgfS5iaW5kKHRoaXMpXG5cblxuXG4gICAgICAgICAgICAgICAgc2NhdHRlci5hZGRUcmFuc2Zvcm1FdmVudENhbGxiYWNrKHJlbW92ZU9uTWluU2NhbGUpXG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGxldCBmbGlwcGFibGUgPSBuZXcgRE9NRmxpcHBhYmxlKHRoaXMuY2FyZFdyYXBwZXIsIHNjYXR0ZXIsIHRoaXMpXG4gICAgICAgICAgICBsZXQgYmFjayA9IHRoaXMuY2FyZFdyYXBwZXIucXVlcnlTZWxlY3RvcignLmJhY2snKVxuXG4gICAgICAgICAgICBpZiAodGhpcy5wcmVsb2FkQmFjaykge1xuICAgICAgICAgICAgICAgIHRoaXMuYmFja0xvYWRlci5sb2FkKGJhY2spLnRoZW4obG9hZGVyID0+IHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zZXR1cEZsaXBwYWJsZShmbGlwcGFibGUsIGxvYWRlcilcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgdGhpcy5mbGlwcGFibGUgPSBmbGlwcGFibGVcbi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lXG4gICAgICAgICAgICB0aGlzLmJhY2tMb2FkZXIubG9hZChiYWNrKS50aGVuKGxvYWRlciA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5zZXR1cEZsaXBwYWJsZShmbGlwcGFibGUsIGxvYWRlcilcbiAgICAgICAgICAgICAgICBmbGlwcGFibGUuc3RhcnQoeyBkdXJhdGlvbjogdGhpcy5mbGlwRHVyYXRpb24sIHRhcmdldENlbnRlciB9KVxuICAgICAgICAgICAgfSlcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGZhZGVPdXRBbmRSZW1vdmUoKSB7XG4gICAgICAgIFR3ZWVuTGl0ZS50byh0aGlzLmNhcmRXcmFwcGVyLCB0aGlzLmZhZGVEdXJhdGlvbiwge1xuICAgICAgICAgICAgb3BhY2l0eTogMCxcbiAgICAgICAgICAgIG9uQ29tcGxldGU6ICgpID0+IHtcbiAgICAgICAgICAgICAgICB0aGlzLmNhcmRXcmFwcGVyLnJlbW92ZSgpXG4gICAgICAgICAgICB9XG4gICAgICAgIH0pXG4gICAgfVxuXG4gICAgY2xvc2VkKCkge1xuICAgICAgICB0aGlzLnVubG9hZCgpXG4gICAgfVxuXG4gICAgdW5sb2FkKCkge1xuICAgICAgICBpZiAoIXRoaXMucHJlbG9hZEJhY2spIHtcbiAgICAgICAgICAgIHRoaXMuYmFja0xvYWRlci51bmxvYWQoKVxuICAgICAgICB9XG4gICAgfVxufVxuXG5leHBvcnQgY2xhc3MgRE9NRmxpcHBhYmxlIHtcbiAgICBjb25zdHJ1Y3RvcihlbGVtZW50LCBzY2F0dGVyLCBmbGlwKSB7XG4gICAgICAgIC8vIFNldCBsb2cgdG8gY29uc29sZS5sb2cgb3IgYSBjdXN0b20gbG9nIGZ1bmN0aW9uXG4gICAgICAgIC8vIGRlZmluZSBkYXRhIHN0cnVjdHVyZXMgdG8gc3RvcmUgb3VyIHRvdWNocG9pbnRzIGluXG5cbiAgICAgICAgdGhpcy5lbGVtZW50ID0gZWxlbWVudFxuICA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sIHRoaXMuY2xvc2VCdG4sIGV2ZW50ID0+IHRoaXMuY2xvc2UoKSlcbiAgICAgICAgICAgIHRoaXMuZW5hYmxlKHRoaXMuY2xvc2VCdG4pXG4gICAgICAgIH1cbiAgICAgICAgdGhpcy5zY2FsZUJ1dHRvbnMoKVxuICAgICAgICB0aGlzLmJyaW5nVG9Gcm9udCgpXG4gICAgfVxuXG4gICAgY2xvc2UoKSB7XG4gICAgICAgIHRoaXMuZGlzYWJsZSh0aGlzLmluZm9CdG4pXG4gICAgICAgIHRoaXMuZGlzYWJsZSh0aGlzLmNsb3NlQnRuKVxuICAgICAgICBpZiAodGhpcy5vbkNsb3NlKSB7XG4gICAgICAgICAgICB0aGlzLm9uQ2xvc2UodGhpcylcbiAgICAgICAgICAgIHRoaXMuZmxpcC5jbG9zZWQoKVxuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdGhpcy5zY2F0dGVyLnpvb20oMC4xLCB7XG4gICAgICAgICAgICAgICAgYW5pbWF0ZTogdGhpcy5mYWRlRHVyYXRpb24sXG4gICAgICAgICAgICAgICAgb25Db21wbGV0ZTogKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmVsZW1lbnQucmVtb3ZlKClcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5mbGlwLmNsb3NlZCgpXG4gICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLm9uUmVtb3ZlZCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5vblJlbW92ZWQuY2FsbCh0aGlzKVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSlcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHNob3dGcm9udCgpIHtcbiAgICAgICAgVHdlZW5MaXRlLnNldCh0aGlzLmZyb250LCB7IHZpc2liaWxpdHk6ICd2aXNpYmxlJyB9KVxuICAgIH1cblxuICAgIGNlbnRlckF0KHApIHtcbiAgICAgICAgdGhpcy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RhdGUsXG4gICAgICAgICAgICBvbkNvbXBsZXRlOiBlID0+IHtcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5mbGlwcGVkKSB7XG4gICAgICAgICAgICAgICAgICAgIC8vdGhpcy5oaWRlKHRoaXMuZnJvbnQpXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZW5hYmxlKHRoaXMuYmFja0J0bilcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zaG93KHRoaXMuYmFja0J0bilcblxuICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5vbkZyb250RmxpcHBlZCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5vbkZyb250RmxpcHBlZCh0aGlzKVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcblxuICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5vbkJhY2tGbGlwcGVkID09IG51bGwpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZW5hYmxlKHRoaXMuaW5mb0J0biwgdGhpcy5mYWRlRHVyYXRpb24pXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmVuYWJsZSh0aGlzLmNsb3NlQnRuLCB0aGlzLmZhZGVEdXJhdGlvbilcbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMub25CYWNrRmxpcHBlZCh0aGlzKVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZmxpcC51bmxvYWQoKVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB0aGlzLnNjYXR0ZXIuc2NhbGUgPSB0YXJnZXRTY2FsZVxuICAgICAgICAgICAgICAgIHRoaXMuc2NhbGVCdXR0b25zKClcbiAgICAgICAgICAgICAgICB0aGlzLnNjYXR0ZXIucm90YXRpb25EZWdyZWVzID0gdGFyZ2V0WlxuICAgICAgICAgICAgICAgIHRoa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4gICAgICAgIC8vY29uc29sZS5sb2coXCJfbG9hZE9uZVRpbGVcIilcbiAgICAgICAgaWYgKHRoaXMuZGVzdHJveWVkKSB7XG4gICAgICAgICAgICAvL2NvbnNvbGUud2FybihcIl9sb2FkT25lVGlsZSBhZnRlciBkZXN0cm95XCIpXG4gICAgICAgICAgICByZXR1cm5cbiAgICAgICAgfVxuICAgICAgICBpZiAodGhpcy5sb2FkZXIubG9hZGluZykge1xuICAgICAgICAgICAgc2V0VGltZW91dCgoKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5fbG9hZE9uZVRpbGUoKVxuICAgICAgICAgICAgfSwgcmV0cnkpXG4gICAgICAgICAgICByZXR1cm5cbiAgICAgICAgfVxuICAgICAgICBpZiAodGhpcy5sb2FkUXVldWUubGVuZ3RoID4gMCkge1xuICAgICAgICAgICAgbGV0IHVybCA9IHRoaXMubG9hZFF1ZXVlLnBvcCgpXG4gICAgICAgICAgICB0aGlzLmxvYWRlci5hZGQodXJsLCB1cmwpXG4gICAgICAgICAgICB0aGlzLmxvYWRlci5sb2FkKClcbiAgICAgICAgfVxuICAgIH1cblxuICAgIC8qKiBQcml2YXRlIG1ldGhvZDogbG9hZHMgYWxsIHRpbGVzIGZyb20gdGhlIHF1ZXVlIGluIGJhdGNoZXMuIEJhdGNoZXMgYXJlXG4gICAgaGVscGZ1bGwgdG8gYXZvaWQgbG9hZGluZyB0aWxlcyB0aGF0IGFyZSBubyBsb25nZXIgbmVlZGVkIGJlY2F1c2UgdGhlXG4gICAgdXNlciBoYXMgYWxyZWFkeSB6b29tZWQgdG8gYSBkaWZmZXJlbnQgbGV2ZWwuKiovXG4gICAgX2xvYWRBbGxUaWxlcyhiYXRjaFNpemUgPSA4LCByZXRyeSA9IDE2KSB7XG4gICAgICAgIGlmICh0aGlzLmRlc3Ryb3llZCkge1xuICAgICAgICAgICAgcmV0dXJuXG4gICAgICAgIH1cbiAgICAgICAgaWYgKHRoaXMubG9hZFF1ZXVlLmxlbmd0aCA+IDApIHtcbiAgICAgICAgICAgIGlmICh0aGlzLmxvYWRlci5sb2FkaW5nKSB7XG4gICAgICAgICAgICAgICAgLy9jb25zb2xlLmxvZyhcIkxvYWRlciBidXN5XCIsIHRoaXMubG9hZFF1ZXVlLmxlbmd0aClcbiAgICAgICAgICAgICAgICBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5fbG9hZEFsbFRpbGVzKClcbiAgICAgICAgICAgICAgICB9LCByZXRyeSlcbiAgICAgICAgICAgICAgICByZXR1cm5cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGxldCBpID0gMFxuICAgICAgICAgICAgbGV0IHVybHMgPSBbXVxuICAgICAgICAgICAgd2hpbGUgKGkgPCBiYXRjaFNpemUgJiYgdGhpcy5sb2FkUXVldWUubGVuZ3RoID4gMCkge1xuICAgICAgICAgICAgICAgIGxldCB1cmwgPSB0aGlzLmxvYWRRdWV1ZS5wb3AoKVxuICAgICAgICAgICAgICAgIGlmICghdGhpcy5sb2FkZWQuaGFzKHVybCkpIHtcbiAgICAgICAgICAgICAgICAgICAgbGV0IHJlc291cmNlID0gdGhpcy5sb2FkZXIucmVzb3VyY2VzW3VybF1cbiAgICAgICAgICAgICAgICAgICAgaWYgKHJlc291cmNlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhcIlJlc291cmNlIGFscmVhZHkgYWRkZWRcIiwgdXJsKVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgdXJscy5wdXNoKHVybClcbiAgICAgICAgICAgICAgICAgICAgICAgIGkgKz0gMVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgdGhpcy5sb2FkZXIuYWRkKHVybHMpLmxvYWQoKCkgPT4ge1xuICAgICAgICAgICAgICAgIHRoaXMuX2xvYWRBbGxUaWxlcygpXG4gICAgICAgICAgICB9KVxuICAgICAgICB9XG4gICAgfVxufVxuXG4vKipcbiAqIFVzZXMgWE1MSHR0cFJlcXVlc3RzIGJ1dCBjYW4gYmUgcmVwbGFjZWQgd2l0aCBvdGhlciBsb2FkZXJzIGltcGxlbWVudGluZ1xuICogdGhlIHB1YmxpYyBtZXRob2RzIHdpdGhvdXQgdW5kZXJzY29yZS5cbiAqIENhbGxzIHRoZSBUaWxlcy50aWxlQXZhaWxhYmxlIG1ldGhvZCBpZiB0aGUgdGV4dHVyZSBpcyBhdmFpbGFibGUuXG4gKiovXG5leHBvcnQgY2xhc3MgUmVxdWVzdFRpbGVMb2FkZXIgZXh0ZW5kcyBUaWxlTG9hZGVyIHtcblxuICAgIGNvbnN0cnVjdG9yKHRpbGVzLCBjb21wcmVzc2lvbikge1xuICAgICAgICBzdXBlcih0aWxlcylcbiAgICAgICAgdGhpcy5jb21wcmVzc2lvbiA9IGNvbXByZXNzaW9uXG4gICAgfVxuXG4gICAgc2NoZWR1bGUodXJsLCBjb2wsIHJvdykge1xuICAgICAgICB0aGlzLl9sb2FkKHVybCwgY29sLCByb3cpXG4gICAgICAgIHJldHVybiBzdXBlci5zY2hlZHVsZSh1cmwsIGNvbCwgcm93KVxuICAgIH1cblxuICAgIF9sb2FkKHVybCwgY29sLCByb3csIGNhbGxiYWNrID0gbnVsbCkge1xuICAgICAgICBpZiAodGhpcy5jb21wcmVzc2lvbikge1xuICAgICAgICAgICAgbGV0IHhociA9IG5ldyBYTUxIdHRwUmVxdWVzdCgpXG4gICAgICAgICAgICB4aHIub3BlbignR0VUJywgdXJsLCBmYWxzZSlcbiAgICAgICAgICAgIHhoci5yZXNwb25zZVR5cGUgPSAnYXJyYXlidWZmZXInXG4gICAgICAgICAgICB4aHIub25sb2FkID0gZSA9PiB7XG4gICAgICAgICAgICAgICAgbGV0IENvbXByZXNzZWRJbWFnZSA9IFBJWEkuY29tcHJlc3NlZFRleHR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mxvYWRlZC5oYXModXJsKSkge1xuICAgICAgICAgICAgICAgICAgICB1cmxzLnB1c2godXJsKVxuICAgICAgICAgICAgICAgICAgICBpICs9IDFcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBsZXQgdG90YWwgPSB1cmxzLmxlbmd0aFxuICAgICAgICAgICAgbGV0IGNvdW50ID0gMFxuICAgICAgICAgICAgZm9yIChsZXQgdXJsIG9mIHVybHMpIHtcbiAgICAgICAgICAgICAgICBsZXQgW2NvbCwgcm93XSA9IHRoaXMubWFwLmdldCh1cmwpXG4gICAgICAgICAgICAgICAgdGhpcy5fbG9hZCh1cmwsIGNvbCwgcm93LCAoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGNvdW50KytcbiAgICAgICAgICAgICAgICAgICAgaWYgKGNvdW50ID09IHRvdGFsKSB0aGlzLl9sb2FkQWxsVGlsZXMoKVxuICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG59XG5cblxuLyoqXG4gKiBVc2VzIFdvcmtlcnMgYnV0IGNhbiBiZSByZXBsYWNlZCB3aXRoIG90aGVyIGxvYWRlcnMgaW1wbGVtZW50aW5nXG4gKiB0aGUgcHVibGljIG1ldGhvZHMgd2l0aG91dCB1bmRlcnNjb3JlLlxuICogQ2FsbHMgdGhlIFRpbGVzLnRpbGVBdmFpbGFibGUgbWV0aG9kIGlmIHRoZSB0ZXh0dXJlIGlzIGF2YWlsYWJsZS5cbiAqKi9cbmV4cG9ydCBjbGFzcyBXb3JrZXJUaWxlTG9hZGVyIGV4dGVuZHMgVGlsZUxvYWRlciB7XG5cbiAgICBjb25zdHJ1Y3Rvcih0aWxlcykge1xuICAgICAgICBzdXBlcih0aWxlcylcbiAgICAgICAgbGV0IHdvcmtlciA9IHRoaXMud29ya2VyID0gbmV3IFdvcmtlcihcIi4uLy4uL2xpYi9waXhpL2RlZXB6b29tL3RpbGVsb2FkZXIuanNcIilcbiAgICAgICAgd29ya2VyLm9ubWVzc2FnZSA9IChldmVudCkgPT4ge1xuICAgICAgICAgICAgaWYgKGV2ZW50LmRhdGEuc3VjY2Vzcykge1xuICAgICAgICAgICAgICAgIGxldCB7IHVybCwgY29sLCByb3csIGJ1ZmZlciB9ID0gZXZlbnQuZGF0YVxuICAgICAgICAgICAgICAgIC8vY29uc29sZS5sb2coXCJXb3JrZXJUaWxlTG9hZGVyLmxvYWRlZFwiLCB1cmwsIGJ1ZmZlcilcbiAgICAgICAgICAgICAgICBsZXQgQ29tcHJlc3NlZEltYWdlID0gUElYSS5jb21wcmVzc2VkVGV4dHVyZXMuQ29tcHJlc3NlZEltYWdlXG4gICAgICAgICAgICAgICAgbGV0IGNvbXByZXNzZWQgPSBDb21wcmVzc2VkSW1hZ2UubG9hZEZyb21BcnJheUJ1ZmZlcihidWZmZXIsIHVybClcbiAgICAgICAgICAgICAgICBsZXQgYmFzZSA9IG5ldyBQSVhJLkJhc2VUZXh0dXJlKGNvbXByZXNzZWQpXG4gICAgICAgICAgICAgICAgbGV0IHRleHR1cmUgPSBuZXcgUElYSS5UZXh0dXJlKGJhc2UpXG4gICAgICAgICAgICAgICAgdGhpcy5fdGV4dHVyZUF2YWlsYWJsZSh1cmwsIGNvbCwgcm93LCB0ZXh0dXJlKVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgbG9hZE9uZSgpIHtcbiAgICAgICAgaWYgKHRoaXMubG9hZFF1ZXVlLmxlbmd0aCA+IDApIHtcbiAgICAgICAgICAgIGxldCB1cmwgPSB0aGlzLmxvYWRRdWV1ZS5wb3AoKVxuICAgICAgICAgICAgbGV0IFtjb2wsIHJvd10gPSB0aGlzLm1hcC5nZXQodXJsKVxuICAgICAgICAgICAgbGV0IHRpbGUgPSBbY29sLCByb3csIHVybF1cbiAgICAgICAgICAgIHRoaXMud29ya2VyLnBvc3RNZXNzYWdlKHsgY29tbWFuZDogXCJsb2FkXCIsIHRpbG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dpZHRoLFxuICAgICAgICBoZWlnaHQsXG4gICAgICAgIHRpbGVTaXplLFxuICAgICAgICBvdmVybGFwLFxuICAgICAgICBmYWRlSW5UaW1lID0gMC4zM1xuICAgICkge1xuICAgICAgICBzdXBlcigpXG4gICAgICAgIHRoaXMuZGVidWcgPSBmYWxzZVxuICAgICAgICB0aGlzLnNob3dHcmlkID0gZmFsc2VcbiAgICAgICAgdGhpcy52aWV3ID0gdmlld1xuICAgICAgICB0aGlzLmxldmVsID0gbGV2ZWxcbiAgICAgICAgdGhpcy5jb2xzID0gY29sc1xuICAgICAgICB0aGlzLnJvd3MgPSByb3dzXG4gICAgICAgIHRoaXMucGl4ZWxXaWR0aCA9IHdpZHRoXG4gICAgICAgIHRoaXMucGl4ZWxIZWlnaHQgPSBoZWlnaHRcbiAgICAgICAgdGhpcy50aWxlU2l6ZSA9IHRpbGVTaXplXG4gICAgICAgIHRoaXMub3ZlcmxhcCA9IG92ZXJsYXBcbiAgICAgICAgdGhpcy5uZWVkZWQgPSBuZXcgTWFwKCkgLy8gdXJsIGFzIGtleSwgW2NvbCwgcm93XSBhcyB2YWx1ZVxuICAgICAgICB0aGlzLnJlcXVlc3RlZCA9IG5ldyBTZXQoKVxuICAgICAgICB0aGlzLmF2YWlsYWJsZSA9IG5ldyBNYXAoKVxuICAgICAgICB0aGlzLnNjYWxlLnNldChzY2FsZSwgc2NhbGUpXG4gICAgICAgIHRoaXMudGlsZVNjYWxlID0gc2NhbGVcbiAgICAgICAgdGhpcy5mYWRlSW5UaW1lID0gZmFkZUluVGltZVxuICAgICAgICB0aGlzLmtlZXAgPSBmYWxzZVxuICAgICAgICBpZiAodGhpcy52aWV3LnByZWZlcldvcmtlciAmJiB2aWV3LmluZm8uY29tcHJlc3Npb24ubGVuZ3RoID4gMClcbiAgICAgICAgICAgIHRoaXMubG9hZGVyID0gbmV3IFdvcmtlclRpbGVMb2FkZXIodGhpcylcbiAgICAgICAgZWxzZVxuICAgICAgICAgICAgdGhpcy5s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ICAgICAgICAgICAgZ3JhcGhpY3MuZW5kRmlsbCgpXG4gICAgICAgICAgICBncmFwaGljcy5pbnRlcmFjdGl2ZSA9IGZhbHNlXG4gICAgICAgICAgICB0aGlzLl9oaWdobGlnaHQgPSBncmFwaGljc1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiB0aGlzLl9oaWdobGlnaHRcbiAgICB9XG5cbiAgICAvKiogUmV0dXJucyB0aGUgaGlnaGxpZ2ggZ3JhcGhpY3MgbGF5ZXIgZm9yIGRlYnVnZ2luZyBwdXJwb3Nlcy5cbiAgICAgKiovXG4gICAgZ2V0IGluZm8oKSB7XG4gICAgICAgIGlmICh0aGlzLl9pbmZvID09IG51bGwpIHtcbiAgICAgICAgICAgIGxldCBncmFwaGljcyA9IG5ldyBQSVhJLkdyYXBoaWNzKClcbiAgICAgICAgICAgIGdyYXBoaWNzLmxpbmVTdHlsZSg0LCAweGZmMDAwMClcbiAgICAgICAgICAgIGdyYXBoaWNzLmludGVyYWN0aXZlID0gZmFsc2VcbiAgICAgICAgICAgIHRoaXMuX2luZm8gPSBncmFwaGljc1xuICAgICAgICAgICAgdGhpcy5hZGRDaGlsZCh0aGlzLl9pbmZvKVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiB0aGlzLl9pbmZvXG4gICAgfVxuXG4gICAgLyoqIEhlbHBlciBtZXRob2QgcHJldHR5IHByaW50aW5nIGRlYnVnIGluZm9ybWF0aW9uLiAqKi9cbiAgICBwcHJpbnQoKSB7XG4gICAgICAgIGlmICh0aGlzLmRlYnVnKVxuICAgICAgICAgICAgY29uc29sZS5sb2coXG4gICAgICAgICAgICAgICAgJ1RpbGVzIGxldmVsOiAnICtcbiAgICAgICAgICAgICAgICB0aGlzLmxldmVsICtcbiAgICAgICAgICAgICAgICAnIHNjYWxlOiAnICtcbiAgICAgICAgICAgICAgICB0aGlzLnNjYWxlLnggK1xuICAgICAgICAgICAgICAgICcgY29sczogJyArXG4gICAgICAgICAgICAgICAgdGhpcy5jb2xzICtcbiAgICAgICAgICAgICAgICAnIHJvd3M6ICcgK1xuICAgICAgICAgICAgICAgIHRoaXMucm93cyArXG4gICAgICAgICAgICAgICAgJyB3OiAnICtcbiAgICAgICAgICAgICAgICB0aGlzLnBpeGVsV2lkdGggK1xuICAgICAgICAgICAgICAgICcgaDogJyArXG4gICAgICAgICAgICAgICAgdGhpcy5waXhlbEhlaWdodCArXG4gICAgICAgICAgICAgICAgJyB0c2l6ZTonICtcbiAgICAgICAgICAgICAgICB0aGlzLnRpbGVTaXplXG4gICAgICAgICAgICApXG4gICAgfVxuXG4gICAgLyoqIENvbXB1dGVzIHRoZSB0aWxlIHBvc2l0aW9uIGFuZCBvYmV5cyB0aGUgb3ZlcmxhcC5cbiAgICAgKiBAcGFyYW0ge251bWJlcn0gY29sIC0gVGhlIGNvbHVtbiBvZiB0aGUgdGlsZVxuICAgICAqIEBwYXJhbSB7bnVtYmVyfSByb3cgLSBUaGUgcm93IG9mIHRoZSB0aWxlXG4gICAgICogQHJldHVybnMge1BJWEkuUG9pbnR9IG9ialxuICAgICAqKi9cbiAgICB0aWxlUG9zaXRpb24oY29sLCByb3cpIHtcbiAgICAgICAgbGV0IHggPSBjb2wgKiB0aGlzLnRpbGVTaXplXG4gICAgICAgIGxldCB5ID0gcm93ICogdGhpcy50aWxlU2l6ZVxuICAgICAgICBsZXQgb3ZlcmxhcCA9IHRoaXMub3ZlcmxhcFxuICAgICAgICBpZiAoY29sICE9IDApIHtcbiAgICAgICAgICAgIHggLT0gb3ZlcmxhcFxuICAgICAgICB9XG4gICAgICAgIGlmIChyb3cgIT0gMCkge1xuICAgICAgICAgICAgeSAtPSBvdmVybGFwXG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIG5ldyBQSVhJLlBvaW50KHgsIHkpXG4gICAgfVxuXG4gICAgLyoqIENvbXB1dGVzIHRoZSB0aWxlIHNpemUgd2l0aG91dCBvdmVybGFwXG4gICAgICogQHBhcmFtIHtudW1iZXJ9IGNvbCAtIF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ovXG4gICAgZGVzdHJveVRpbGVzKHF1YWRUcmVlcykge1xuICAgICAgICBsZXQgY291bnQgPSAwXG4gICAgICAgIGZvciAobGV0IFt1cmwsIHRpbGVdIG9mIHRoaXMuYXZhaWxhYmxlLmVudHJpZXMoKSkge1xuICAgICAgICAgICAgaWYgKCFxdWFkVHJlZXMuaGFzKHVybCkpIHtcbiAgICAgICAgICAgICAgICB0aGlzLmRlc3Ryb3lUaWxlKHVybCwgdGlsZSlcbiAgICAgICAgICAgICAgICBjb3VudCArPSAxXG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgaWYgKGNvdW50ICYmIHRoaXMuZGVidWcpXG4gICAgICAgICAgICBjb25zb2xlLmxvZygnZGVzdHJveVRpbGVzJywgdGhpcy5sZXZlbCwgY291bnQpXG4gICAgfVxuXG4gICAgZGVzdHJveVVubmVlZGVkVGlsZXMoKSB7XG4gICAgICAgIGxldCBjb3VudCA9IDBcbiAgICAgICAgZm9yIChsZXQgW3VybCwgdGlsZV0gb2YgdGhpcy5hdmFpbGFibGUuZW50cmllcygpKSB7XG4gICAgICAgICAgICBpZiAoIXRoaXMubmVlZGVkLmhhcyh1cmwpKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5kZXN0cm95VGlsZSh1cmwsIHRpbGUpXG4gICAgICAgICAgICAgICAgY291bnQgKz0gMVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGlmIChjb3VudCAmJiB0aGlzLmRlYnVnKVxuICAgICAgICAgICAgY29uc29sZS5sb2coJ2Rlc3Ryb3lVbm5lZWRlZFRpbGVzJywgdGhpcy5sZXZlbCwgY291bnQpXG4gICAgfVxuXG4gICAgaGlnaGxpZ2h0SW5mb3MoKSB7XG4gICAgICAgIGxldCBncmFwaGljcyA9IHRoaXMuaW5mb1xuICAgICAgICBsZXQgY29sb3IgPSB0aGlzLmluZm9Db2xvclxuICAgICAgICBncmFwaGljcy5jbGVhcigpXG4gICAgICAgIGdyYXBoaWNzLmxpbmVTdHlsZSgyLCBjb2xvcilcbiAgICAgICAgZm9yIChsZXQgW2NvbCwgcm93XSBvZiB0aGlzLm5lZWRlZC52YWx1ZXMoKSkge1xuICAgICAgICAgICAgbGV0IGRpbSA9IHRoaXMudGlsZURpbWVuc2lvbnMoY29sLCByb3cpXG4gICAgICAgICAgICBsZXQgcG9zID0gdGhpcy50aWxlUG9zaXRpb24oY29sLCByb3cpXG4gICAgICAgICAgICBncmFwaGljcy5iZWdpbkZpbGwoY29sb3IsIDAuMilcbiAgICAgICAgICAgIGdyYXBoaWNzLmRyYXdSZWN0KHBvcy54ICsgMSwgcG9zLnkgKyAxLCBkaW0ueCAtIDIsIGRpbS55IC0gMilcbiAgICAgICAgICAgIGdyYXBoaWNzLmVuZEZpbGwoKVxuICAgICAgICB9XG4gICAgICAgIGxldCByID0gdGhpcy5fYm91bmRzUmVjdFxuICAgICAgICBpZiAociAhPSBudWxsKSB7XG4gICAgICAgICAgICBncmFwaGljcy5saW5lU3R5bGUoMjAsIGNvbG9yKVxuICAgICAgICAgICAgZ3JhcGhpY3MuZHJhd1JlY3Qoci54LCByLnksIHIud2lkdGgsIHIuaGVpZ2h0KVxuICAgICAgICAgICAgZ3JhcGhpY3MubW92ZVRvKHIueCwgci55KVxuICAgICAgICAgICAgZ3JhcGhpY3MubGluZVRvKHIueCArIHIud2lkdGgsIHIueSArIHIuaGVpZ2h0KVxuXG4gICAgICAgICAgICBncmFwaGljcy5tb3ZlVG8oci54LCByLnkgKyByLmhlaWdodClcbiAgICAgICAgICAgIGdyYXBoaWNzLmxpbmVUbyhyLnggKyByLndpZHRoLCByLnkpXG4gICAgICAgIH1cblxuICAgICAgICBsZXQgcCA9IHRoaXMuX2NlbnRlclBvaW50XG4gICAgICAgIGlmIChwICE9IG51bGwpIHtcbiAgICAgICAgICAgIGdyYXBoaWNzLmRyYXdDaXJjbGUocC54LCBwLnksIDIwKVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgdGludFRpbGVzKHF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2VpbChkaW1bMV0gLyB0aGlzLnRpbGVTaXplKVxuICAgICAgICBpZiAodGhpcy5jbGlwKSB7XG4gICAgICAgICAgICBsZXQgcmVzdCA9IHRoaXMucmVzdHNbbGV2ZWxdXG4gICAgICAgICAgICBpZiAocmVzdCkge1xuICAgICAgICAgICAgICAgIGlmIChyZXN0LnJlc3RDb2wpIHtcbiAgICAgICAgICAgICAgICAgICAgY29scyArPSAxXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGlmIChyZXN0LnJlc3RSb3dzKSB7XG4gICAgICAgICAgICAgICAgICAgIHJvd3MgKz0gMVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gW2NvbHMsIHJvd3NdXG4gICAgfVxuXG4gICAgc2V0dXBEaW1lbnNpb25zKGxvYWRCYXNlSW1hZ2UgPSBmYWxzZSkge1xuICAgICAgICAvKiogU2V0dXAgaW5zdGFuY2UgdmFyaWFibGVzIGFuZCBsb2FkIHRoZSBiYXNlIGltYWdlLCBpLmUuIHRoZSBsYXJnZXN0XG4gICAgICAgIGltYWdlIHRoYXQgY2FuIGJlIHJlcHJlc2VudGVkIGFzIGEgc2luZ2xlIHRpbGUuXG4gICAgICAgIEBwcml2YXRlXG4gICAgICAgICoqL1xuICAgICAgICBsZXQgd3cgPSB0aGlzLndpZHRoXG4gICAgICAgIGxldCBoaCA9IHRoaXMuaGVpZ2h0XG4gICAgICAgIGxldCBzY2FsZSA9IDEuMFxuICAgICAgICBsZXQgbGV2ZWwgPSAwXG4gICAgICAgIGxldCBzaW5nbGUgPSAwXG4gICAgICAgIGNvbnN0IHRzaXplID0gdGhpcy50aWxlU2l6ZVxuXG4gICAgICAgIGlmICh0aGlzLmNsaXApIHtcbiAgICAgICAgICAgIHRoaXMuYmFzZUxldmVsID0gdGhpcy5jbGlwLm1pbkxldmVsXG4gICAgICAgICAgICB0aGlzLm1heExldmVsID0gdGhpcy5jbGlwLm1heExldmVsXG4gICAgICAgICAgICB0aGlzLmJhc2VJbWFnZSA9IG51bGxcbiAgICAgICAgICAgIHRoaXMuc2l6ZSA9IHRoaXMuZ2V0RGltZW5zaW9ucyh0aGlzLmJhc2VMZXZlbClcbiAgICAgICAgICAgIHRoaXMub2Zmc2V0cyA9IHt9XG4gICAgICAgICAgICB0aGlzLnJlc3RzID0ge31cbiAgICAgICAgICAgIGxldCBzdGFydENvbCA9IHRoaXMuY2xpcC5zdGFydENvbFxuICAgICAgICAgICAgbGV0IHN0YXJ0Um93ID0gdGhpcy5jbGlwLnN0YXJ0Um93XG4gICAgICAgICAgICBsZXQgZmxvYXRTdGFydENvbCA9IHN0YXJ0Q29sXG4gICAgICAgICAgICBsZXQgZmxvYXRTdGFydFJvdyA9IHN0YXJ0Um93XG4gICAgICAgICAgICBmb3IgKGxldCBpID0gdGhpcy5tYXhMZXZlbDsgaSA+PSB0aGlzLmJhc2VMZXZlbDsgaS0tKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5vZmZzZXRzW2ldID0geyBzdGFydENvbCwgc3RhcnRSb3cgfVxuICAgICAgICAgICAgICAgIGxldCByZXN0Q29sID0gZmxvYXRTdGFydENvbCAlIDFcbiAgICAgICAgICAgICAgICBsZXQgcmVzdFJvdyA9IGZsb2F0U3RhcnRSb3cgJSAxXG4gICAgICAgICAgICAgICAgdGhpcy5yZXN0c1tpXSA9IHsgcmVzdENvbCwgcmVzdFJvdyB9XG4gICAgICAgICAgICAgICAgc3RhcnRDb2wgPSBNYXRoLmZsb29yKHN0YXJ0Q29sIC8gMilcbiAgICAgICAgICAgICAgICBzdGFydFJvdyA9IE1hdGguZmxvb3Ioc3RhcnRSb3cgLyAyKVxuICAgICAgICAgICAgICAgIGZsb2F0U3RhcnRDb2wgLz0gMlxuICAgICAgICAgICAgICAgIGZsb2F0U3RhcnRSb3cgLz0gMlxuICAgICAgICAgICAgfVxuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgY29uc3QgYm91bmRhcnkgPSB0aGlzLnR5cGUgPT09ICdkemknID8gMS4wIDogdHNpemVcbiAgICAgICAgICAgIHdoaWxlICh3dyA+IGJvdW5kYXJ5ICYmIGhoID4gYm91bmRhcnkpIHtcbiAgICAgICAgICAgICAgICBpZiAod3cgPj0gdHNpemUgJiYgaGggPj0gdHNpemUpIHtcbiAgICAgICAgICAgICAgICAgICAgc2luZ2xlICs9IDFcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgc2NhbGUgPSBzY2FsZSAvIDIuMFxuICAgICAgICAgICAgICAgIHd3ID0gTWF0aC5jZWlsKHRoaXMud2lkdGggKiBzY2FsZSlcbiAgICAgICAgICAgICAgICBoaCA9IE1hdGguY2VpbCh0aGlzLmhlaWdodCAqIHNjYWxlKVxuICAgICAgICAgICAgICAgIGxldmVsICs9IDFcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHRoaXMuYmFzZUxldmVsID0gbGV2ZWwgLSBzaW5nbGVcbiAgICAgICAgICAgIHRoaXMubWF4TGV2ZWwgPSB0aGlzLm51bUxldmVscygpIC0gMVxuICAgICAgICAgICAgdGhpcy5iYXNlVVJMID0gdGhpcy51cmxGb3JUaWxlKHRoaXMuYmFzZUxldmVsLCAwLCAwLCBmYWxzZSlcblxuICAgICAgICAgICAgaWYgKGxvYWRCYXNlSW1hZ2UpIHtcbiAgICAgICAgICAgICAgICB0aGlzLmltYWdlRm9yVVJMKHRoaXMuYmFzZVVSTCwgZSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2l6ZSA9IFtlLnRhcmdldC5uYXR1cmFsV2lkdGgsIGUudGFyZ2V0Lm5hdHVyYWxIZWlnaHRdXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuYmFzZUltYWdlID0gZS50YXJnZXRcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aGlzLmJhc2VJbWFnZSA9IG51bGxcb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Rm9yVVJMKHVybCwgY29tcGxldGUpIHtcbiAgICAgICAgbGV0IGltZyA9IG5ldyBJbWFnZSgpXG4gICAgICAgIGltZy5vbmxvYWQgPSBjb21wbGV0ZS5iaW5kKHRoaXMpXG4gICAgICAgIGltZy5zcmMgPSB1cmxcbiAgICAgICAgcmV0dXJuIGltZ1xuICAgIH1cblxuICAgIC8qKiBDb21wdXRlcyB0aGUgY29sdW1ucyBhbmQgcm93cyBhcyB3ZWxsIGFzIHNjYWxlZCB3aWR0aCBhbmQgaGVpZ2h0LlxuICAgICAqIEBwYXJhbSB7bnVtYmVyfSBsZXZlbCAtIFRoZSBsZXZlbCBvZiB0aGUgd2FudGVkIGxheWVyXG4gICAgICogQHJldHVybnMge2FycmF5fSBbY29scywgcm93cywgd2lkdGgsIGhlaWdodF1cbiAgICAgKiovXG4gICAgZGltZW5zaW9ucyhsZXZlbCkge1xuICAgICAgICBsZXQgZGltID0gdGhpcy5nZXREaW1lbnNpb25zKGxldmVsKVxuICAgICAgICBsZXQgdGlsZXMgPSB0aGlzLmdldE51bVRpbGVzKGxldmVsKVxuICAgICAgICByZXR1cm4gW3RpbGVzWzBdLCB0aWxlc1sxXSwgZGltWzBdLCBkaW1bMV1dXG4gICAgfVxuXG4gICAgdGVzdCgpIHtcbiAgICAgICAgLy9jb25zb2xlLmxvZyhcInc9XCIgKyB0aGlzLndpZHRoICsgXCIgaD1cIiArIHRoaXMuaGVpZ2h0ICsgXCIgbWF4bGV2ZWw9XCIgKyB0aGlzLm1heExldmVsICsgXCIgYmFzZT1cIiArIHRoaXMuYmFzZUxldmVsKVxuICAgICAgICBmb3IgKGxldCBpID0gMDsgaSA8PSB0aGlzLm1heExldmVsOyBpKyspIHtcbiAgICAgICAgICAgIGNvbnNvbGUubG9nKFxuICAgICAgICAgICAgICAgICcgJyArXG4gICAgICAgICAgICAgICAgaSArXG4gICAgICAgICAgICAgICAgJyAtPiAnICtcbiAgICAgICAgICAgICAgICB0aGlzLmdldFNjYWxlKG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sXG4gICAgICAgIHtcbiAgICAgICAgICAgIGRlYnVnID0gZmFsc2UsXG4gICAgICAgICAgICBzaGFkb3cgPSBmYWxzZSxcbiAgICAgICAgICAgIGNlbnRlciA9IGZhbHNlLFxuICAgICAgICAgICAgd29ybGQgPSBudWxsLCAgICAgICAgICAgICAgIC8vIERlZmluZXMgdGhlIHdvcmxkIGJvdW5kcyB0aGUgaW1hZ2VzIGxpdmVzIGluXG4gICAgICAgICAgICBoaWdoUmVzb2x1dGlvbiA9IHRydWUsXG4gICAgICAgICAgICBhdXRvTG9hZFRpbGVzID0gdHJ1ZSxcbiAgICAgICAgICAgIHByZWZlcldvcmtlciA9IGZhbHNlLFxuICAgICAgICAgICAgbWluaW11bUxldmVsID0gMCxcbiAgICAgICAgICAgIGFscGhhID0gMSxcbiAgICAgICAgICAgIGFwcCA9IHdpbmRvdy5hcHBcbiAgICAgICAgfSA9IHt9XG4gICAgKSB7XG4gICAgICAgIHN1cGVyKClcbiAgICAgICAgdGhpcy5hcHAgPSBhcHBcbiAgICAgICAgdGhpcy5kZWJ1ZyA9IGRlYnVnXG4gICAgICAgIHRoaXMuc2hhZG93ID0gc2hhZG93XG4gICAgICAgIHRoaXMud29ybGQgPSB3b3JsZFxuICAgICAgICB0aGlzLnByZWZlcldvcmtlciA9IHByZWZlcldvcmtlclxuICAgICAgICB0aGlzLnJlc29sdXRpb24gPSBoaWdoUmVzb2x1dGlvblxuICAgICAgICAgICAgPyBNYXRoLnJvdW5kKHdpbmRvdy5kZXZpY2VQaXhlbFJhdGlvKVxuICAgICAgICAgICAgOiAxXG4gICAgICAgIHRoaXMuYWxwaGEgPSBhbHBoYVxuICAgICAgICB0aGlzLmZhc3RMb2FkcyA9IDBcbiAgICAgICAgdGhpcy5hdXRvTG9hZFRpbGVzID0gYXV0b0xvYWRUaWxlc1xuICAgICAgICB0aGlzLm1pbmltdW1MZXZlbCA9IG1pbmltdW1MZXZlbFxuICAgICAgICB0aGlzLnF1YWRUcmVlcyA9IG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ZlZChxdWFkKVxuICAgICAgICAgICAgdGhpcy5xdWFkVHJlZXMuZGVsZXRlKHVybClcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGFkZFRpbGVRdWFkTm9kZShsZXZlbCwgY29sLCByb3csIHVybCkge1xuICAgICAgICBpZiAodGhpcy5xdWFkVHJlZXMuaGFzKHVybCkpIHJldHVybiB0aGlzLnF1YWRUcmVlcy5nZXQodXJsKVxuICAgICAgICBsZXQgcXVhZCA9IG5ldyBUaWxlUXVhZE5vZGUobGV2ZWwsIGNvbCwgcm93LCB1cmwpXG4gICAgICAgIHRoaXMucXVhZFRyZWVzLnNldCh1cmwsIHF1YWQpXG4gICAgICAgIHRoaXMudGlsZVF1YWRBZGRlZChxdWFkKVxuICAgICAgICByZXR1cm4gcXVhZFxuICAgIH1cblxuICAgIHRpbGVRdWFkUmVtb3ZlZChxdWFkKSB7XG4gICAgICAgIGxldCBiZWxvdyA9IHF1YWQucHJldmlvdXNcbiAgICAgICAgLy8gaWYgKHRoaXMuZGVidWcpIGNvbnNvbGUubG9nKFwidGlsZVF1YWRSZW1vdmVkXCIsIHF1YWQpXG4gICAgICAgIGlmIChiZWxvdykge1xuICAgICAgICAgICAgYmVsb3cudW5saW5rKHF1YWQpXG4gICAgICAgICAgICBpZiAoYmVsb3cubm9RdWFkcygpKSB7XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuZGVidWcpIGNvbnNvbGUubG9nKCdSZW1vdmVkIHRpbGUgYmVsb3cnKVxuICAgICAgICAgICAgICAgIGxldCBsZXZlbEJlbG93ID0gcXVhZC5sZXZlbCAtIDFcbiAgICAgICAgICAgICAgICBpZiAobGV2ZWxCZWxvdyA8IHRoaXMubWluaW11bUxldmVsKSByZXR1cm5cbiAgICAgICAgICAgICAgICBsZXQgYyA9IE1hdGguZmxvb3IocXVhZC5jb2wgLyAyKVxuICAgICAgICAgICAgICAgIGxldCByID0gTWF0aC5mbG9vcihxdWFkLnJvdyAvIDIpXG4gICAgICAgICAgICAgICAgbGV0IHVybEJlbG93ID0gdGhpcy5pbmZvLnVybEZvclRpbGUobGV2ZWxCZWxvdywgYywgcilcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5xdWFkVHJlZXMuaGFzKHVybEJlbG93KSkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnJlbW92ZVRpbGVRdWFkTm9kZShsZXZlbEJlbG93LCBjLCByLCB1cmxCZWxvdylcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICB0aWxlUXVhZEFkZGVkKHF1YWQpIHtcbiAgICAgICAgbGV0IGxldmVsQmVsb3cgPSBxdWFkLmxldmVsIC0gMVxuICAgICAgICBpZiAobGV2ZWxCZWxvdyA8IHRoaXMubWluaW11bUxldmVsKSByZXR1cm5cbiAgICAgICAgLy9pZiAodGhpcy5kZWJ1ZykgY29uc29sZS5sb2coXCJ0aWxlUXVhZEFkZGVkXCIsIHF1YWQpXG4gICAgICAgIGxldCBjID0gTWF0aC5mbG9vcihxdWFkLmNvbCAvIDIpXG4gICAgICAgIGxldCByID0gTWF0aC5mbG9vcihxdWFkLnJvdyAvIDIpXG4gICAgICAgIGxldCB1cmxCZWxvdyA9IHRoaXMuaW5mby51cmxGb3JUaWxlKGxldmVsQmVsb3csIGMsIHIpXG4gICAgICAgIGxldCBiZWxvdyA9IG51bGxcbiAgICAgICAgaWYgKCF0aGlzLnF1YWRUcmVlcy5oYXModXJsQmVsb3cpKSB7XG4gICAgICAgICAgICBiZWxvdyA9IHRoaXMuYWRkVGlsZVF1YWROb2RlKGxldmVsQmVsb3csIGMsIHIsIHVybEJlbG93KVxuICAgICAgICAgICAgcXVhZC5saW5rKGlzRXZlbihxdWFkLnJvdyksIGlzRXZlbihxdWFkLmNvbCksIGJlbG93KVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgLyoqIFJldHVybnMgdGhlIHRpbGUgbGF5ZXIgbGV2ZWwgdGhhdCBjb3JyZXNwb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ArPSAyXG4gICAgICAgICAgICBtYXhUaWxlc0hlaWdodCArPSAyXG5cbiAgICAgICAgICAgIGxldCBzdGFydENvbCA9IE1hdGgubWF4KDAsIGNlbnRlckNvbCAtIG1heFRpbGVzV2lkdGgpXG4gICAgICAgICAgICBsZXQgZW5kQ29sID0gTWF0aC5taW4odGlsZXMuY29scywgY2VudGVyQ29sICsgbWF4VGlsZXNXaWR0aClcblxuICAgICAgICAgICAgbGV0IHN0YXJ0Um93ID0gTWF0aC5tYXgoMCwgY2VudGVyUm93IC0gbWF4VGlsZXNIZWlnaHQpXG4gICAgICAgICAgICBsZXQgZW5kUm93ID0gTWF0aC5taW4odGlsZXMucm93cywgY2VudGVyUm93ICsgbWF4VGlsZXNIZWlnaHQpXG5cbiAgICAgICAgICAgIGZvciAobGV0IGNvbCA9IHN0YXJ0Q29sOyBjb2wgPCBlbmRDb2w7IGNvbCsrKSB7XG4gICAgICAgICAgICAgICAgbGV0IGN4ID0gKGNvbCArIDAuNSkgKiB0c2l6ZVxuICAgICAgICAgICAgICAgIGZvciAobGV0IHJvdyA9IHN0YXJ0Um93OyByb3cgPCBlbmRSb3c7IHJvdysrKSB7XG4gICAgICAgICAgICAgICAgICAgIGxldCBjeSA9IChyb3cgKyAwLjUpICogdHNpemVcbiAgICAgICAgICAgICAgICAgICAgbGV0IHRpbGVDZW50ZXIgPSBuZXcgUElYSS5Qb2ludChjeCwgY3kpXG4gICAgICAgICAgICAgICAgICAgIGlmIChib3VuZHMuY29udGFpbnModGlsZUNlbnRlci54LCB0aWxlQ2VudGVyLnkpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBsZXQgdXJsID0gdGhpcy5pbmZvLnVybEZvclRpbGUobGV2ZWwsIGNvbCwgcm93KVxuICAgICAgICAgICAgICAgICAgICAgICAgbmVlZGVkLnB1c2goW3VybCwgY29sLCByb3ddKVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICA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gICAgICAgICAgY2hhbmdlZC5hZGRlZC5wdXNoKGQpXG4gICAgICAgICAgICB9XG4gICAgICAgIH0pXG4gICAgICAgIGZvciAobGV0IHVybCBvZiB0aWxlcy5uZWVkZWQua2V5cygpKSB7XG4gICAgICAgICAgICBpZiAoIW5ld05lZWRlZC5oYXModXJsKSkge1xuICAgICAgICAgICAgICAgIGxldCBbY29sLCByb3ddID0gdGlsZXMubmVlZGVkLmdldCh1cmwpXG4gICAgICAgICAgICAgICAgY2hhbmdlZC5yZW1vdmVkLnB1c2goW3VybCwgY29sLCByb3ddKVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHRpbGVzLm5lZWRlZCA9IG5ld05lZWRlZFxuICAgICAgICBpZiAodGhpcy5kZWJ1ZykgY29uc29sZS5sb2cobmV3TmVlZGVkKVxuICAgICAgICBpZiAodGhpcy5kZWJ1ZykgY29uc29sZS50aW1lRW5kKCdjaGFuZ2VkVGlsZXMnKVxuICAgICAgICByZXR1cm4geyBjZW50ZXJDb2wsIGNlbnRlclJvdywgY2hhbmdlZCB9XG4gICAgfVxuXG4gICAgLyoqIFBvcHVsYXRlcyBhbGwgdGlsZXMgZm9yIGEgZ2l2ZW4gbGV2ZWwuXG4gICAgICogQHBhcmFtIHtUaWxlc30gdGlsZXMgLSB0aGUgZ3JpZCBvZiB0aWxlc1xuICAgICAqIEBwYXJhbSB7bnVtYmVyfSBsZXZlbCAtIFRoZSB6b29tIGxldmVsIG9mIHRoZSBncmlkXG4gICAgICovXG4gICAgcG9wdWxhdGVBbGxUaWxlcyh0aWxlcywgbGV2ZWwpIHtcbiAgICAgICAgbGV0IGFsbCA9IHRoaXMuYWxsVGlsZXModGlsZXMsIGxldmVsKVxuICAgICAgICBmb3IgKGxldCBbdXJsLCBjb2wsIHJvd10gb2YgYWxsKSB7XG4gICAgICAgICAgICB0aGlzLmFkZFRpbGVRdWFkTm9kZShsZXZlbCwgY29sLCByb3csIHVybClcbiAgICAgICAgfVxuICAgIC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0aGUgZ3JpZFxuICAgICAqIEByZXR1cm4ge1RpbGVzfSAtIHRpbGVzXG4gICAgICovXG4gICAgX2NyZWF0ZVRpbGVzKGtleSwgbGV2ZWwpIHtcbiAgICAgICAgbGV0IFtjb2xzLCByb3dzLCB3LCBoXSA9IHRoaXMuaW5mby5kaW1lbnNpb25zKGxldmVsKVxuICAgICAgICBsZXQgaW5jcmVhc2VkTGV2ZWxzID0gbGV2ZWwgLSB0aGlzLmluZm8uYmFzZUxldmVsXG4gICAgICAgIGxldCBpbnZTY2FsZSA9IE1hdGgucG93KDAuNSwgaW5jcmVhc2VkTGV2ZWxzKVxuICAgICAgICBsZXQgdGlsZXMgPSBuZXcgVGlsZXMoXG4gICAgICAgICAgICBsZXZlbCxcbiAgICAgICAgICAgIHRoaXMsXG4gICAgICAgICAgICBpbnZTY2FsZSxcbiAgICAgICAgICAgIGNvbHMsXG4gICAgICAgICAgICByb3dzLFxuICAgICAgICAgICAgdyxcbiAgICAgICAgICAgIGgsXG4gICAgICAgICAgICB0aGlzLmluZm8udGlsZVNpemUsXG4gICAgICAgICAgICB0aGlzLmluZm8ub3ZlcmxhcFxuICAgICAgICApXG4gICAgICAgIHRoaXMuYWRkVGlsZXMoa2V5LCB0aWxlcylcbiAgICAgICAgaWYgKHRoaXMuaW5mby5jbGlwKSB7XG4gICAgICAgICAgICBsZXQgcmVzdCA9IHRoaXMuaW5mby5yZXN0c1tsZXZlbF1cbiAgICAgICAgICAgIGlmIChyZXN0KSB7XG4gICAgICAgICAgICAgICAgbGV0IHggPSByZXN0LnJlc3RDb2wgKiB0aGlzLmluZm8udGlsZVNpemUgKiBpbnZTY2FsZVxuICAgICAgICAgICAgICAgIGxldCB5ID0gcmVzdC5yZXN0Um93ICogdGhpcy5pbmZvLnRpbGVTaXplICogaW52U2NhbGVcbiAgICAgICAgICAgICAgICB0aWxlcy54ID0gLXhcbiAgICAgICAgICAgICAgICB0aWxlcy55ID0gLXlcbiAgICAgICAgICAgIH1cbiAgICA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3lzIGFsbCB0aWxlcyBhYm92ZSBhIGdpdmVuIGxldmVsIHRvIGVuc3VyZSB0aGF0IHRoZSBtZW1vcnkgY2FuXG4gICAgICogYmUgcmV1c2VkLlxuICAgICAqIEBwYXJhbSB7bnVtYmVyfSBsZXZlbCAtIFRoZSB6b29tIGxldmVsIG9mIHRoZSBncmlkXG4gICAgICovXG4gICAgZGVzdHJveVRpbGVzQWJvdmVMZXZlbChsZXZlbCkge1xuICAgICAgICBPYmplY3Qua2V5cyh0aGlzLnRpbGVMYXllcnMpLmZvckVhY2goa2V5ID0+IHtcbiAgICAgICAgICAgIGxldCB0aWxlcyA9IHRoaXMudGlsZUxheWVyc1trZXldXG4gICAgICAgICAgICBpZiAodGlsZXMubGV2ZWwgPiBsZXZlbCAmJiAhdGlsZXMua2VlcCkge1xuICAgICAgICAgICAgICAgIGZvciAobGV0IHVybCBvZiB0aWxlcy5hdmFpbGFibGUua2V5cygpKSB7XG4gICAgICAgICAgICAgICAgICAgIGxldCBxdWFkID0gdGhpcy5xdWFkVHJlZXMuZ2V0KHVybClcbiAgICAgICAgICAgICAgICAgICAgaWYgKHF1YWQpIHRoaXMucmVtb3ZlVGlsZVF1YWROb2RlKHF1YWQpXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHRoaXMuZGVzdHJveVRpbGVzKGtleSlcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSlcbiAgICB9XG5cbiAgICBkZXN0cm95QWxsVGlsZXMoKSB7XG4gICAgICAgIE9iamVjdC5rZXlzKHRoaXMudGlsZUxheWVycykuZm9yRWFjaChrZXkgPT4ge1xuICAgICAgICAgICAgdGhpcy5kZXN0cm95VGlsZXMoa2V5KVxuICAgICAgICB9KVxuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFRpbnQgdGlsZXMgaW4gYWxsIGxheWVycyB0aGF0IGFyZSBubyBsb25nZXIgbmVlZGVkXG4gICAgICpcbiAgICAgKiBAbWVtYmVyb2YgRGVlcFpvb21JbWFnZVxuICAgICAqL1xuICAgIHRpbnRPYnNvbGV0ZVRpbGVzKCkge1xuICAgICAgICBPYmplY3Qua2V5cyh0aGlzLnRpbGVMYXllcnMpLmZvckVhY2goa2V5ID0+IHtcbiAgICAgICAgICAgIGxldCB0aWxlcyA9IHRoaXMudGlsZUxheWVyc1trZXldXG4gICAgICAgICAgICB0aWxlcy51bnRpbnRUaWxlcygpXG4gICAgICAgICAgICBpZiAoIXRpbGVzLmtlZXApIHtcbiAgICAgICAgICAgICAgICB0aWxlcy50aW50T2Jzb2xldGVUaWxlcygpXG4gICAgICAgICAgICB9XG4gICAgICAgIH0pXG4gICAgfVxuXG5cbiAgICAvKipcbiAgICAgKiBEZXN0cm95IHRpbGVzIGluIGFsbCBsYXllcnMgdGhhdCBhcmUgbm8gbG9uZ2VyIG5lZWRlZFxuICAgICAqXG4gICAgICogQG1lbWJlcm9mIERlZXBab29tSW1hZ2VcbiAgICAgKi9cbiAgICBkZXN0cm95VW5uZWVkZWRUaWxlcygpIHtcbiAgICAgICAgT2JqZWN0LmtleXModGhpcy50aWxlTGF5ZXJzKS5mb3JFYWNoKGtleSA9PiB7XG4gICAgICAgICAgICBsZXQgdGlsZXMgPSB0aGlzLnRpbGVMYXllcnNba2V5XVxuICAgICAgICAgICAgaWYgKCF0aWxlcy5rZWVwKSB7XG4gICAgICAgICAgICAgICAgdGlsZXMuZGVzdHJveVVubmVlZGVkVGlsZXMoKVxuICAgICAgICAgICAgfVxuICAgICAgICB9KVxuICAgIH1cblxuICAgIC8qKlxuICAgICAqIERlc3Ryb3kgdGlsZXMgaW4gYWxsIGxheWVycyB0aGF0IGFyZSBubyBsb25nZXIgbmVlZGVkXG4gICAgICpcbiAgICAgKiBAbWVtYmVyb2YgRGVlcFpvb21JbWFnZVxuICAgICAqL1xuICAgIGRlc3Ryb3lPYnNvbGV0ZVRpbGVzKCkge1xuICAgICAgICBPYmplY3Qua2V5cyh0aGlzLnRpbGVMYXllcnMpLmZvckVhY2goa2V5ID0+IHtcbiAgICAgICAgICAgIGxldCB0aWxlcyA9IHRoaXMudGlsZUxheWVyc1trZXldXG4gICAgICAgICAgICBpZiAoIXRpbGVzLmtlZXApIHtcbiAgICAgICAgICAgICAgICB0aWxlcy5kZXN0cm95T2Jzb2xldGVUaWxlcygpXG4gICAgICAgICAgICB9XG4gICAgICAgIH0pXG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogRGVzdHJveSB0aWxlcyBpbiBhbGwgbGF5ZXJzIHRoYXQgYXJlIG5vdCBwYXJ0IG9mIHRoZVxuICAgICAqIHZpc2libGUgcXVhZFRyZWVzXG4gICAgICpcbiAgICAgKiBAbWVtYmVyb2YgRGVlcFpvb21JbWFnZVxuICAgICAqL1xuICAgIGRlc3Ryb3lUaWxlcygpIHtcbiAgICAgICAgT2JqZWN0LmtleXModGhpcy50aWxlTGF5ZXJzKS5mb3JFYWNoKGtleSA9PiB7XG4gICAgICAgICAgICBsZXQgdGlsZXMgPSB0aGlzLnRpbGVMYXllcnNba2V5XVxuICAgICAgICAgICAgaWYgKCF0aWxlcy5rZWVwKSB7XG4gICAgICAgICAgICAgICAgdGlsZXMuZGVzdHJveVRpbGVzKHRoaXMucXVhZFRyZWVzKVxuICAgICAgICAgICAgfVxuICAgICAgICB9KVxuICAgIH1cblxuICAgIC8qIFRpbnQgYWxsIHRpbGVzXG4gICAgKiBAcGFyYW0ge251bWJlcn0gbGV2ZWwgLSBUaGUgem9vbSBsZXZlbCBvZiB0aGUgZ3JpZFxuICAgICovXG4gICAgdGludFRpbGVzQmVsb3dMZXZlbChsZXZlbCkge1xuICAgICAgICBPYmplY3Qua2V5cyh0aGlzLnRpbGVMYXllcnMpLmZvckVhY2goa2V5ID0+IHtcbiAgICAgICAgICAgIGxldCB0aWxlcyA9IHRoaXMudGlsZUxheWVyc1trZXldXG4gICAgICAgICAgICBpZiAodGlsZXMubGV2ZWwgPCBsZXZlbCkge1xuICAgICAgICAgICAgICAgIHRpbGVzLnRpbnRUaWxlc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bn0gZGVidWcgLSBsb2cgZGVidWcgaW5mb3NcbiAgICAgKi9cbiAgICB0cmFuc2Zvcm1lZChldmVudCkge1xuICAgICAgICBsZXQga2V5ID0gdGhpcy5jdXJyZW50TGV2ZWwudG9TdHJpbmcoKVxuICAgICAgICBsZXQgY3VycmVudFRpbGVzID0gdGhpcy50aWxlTGF5ZXJzW2tleV1cbiAgICAgICAgaWYgKHR5cGVvZiBjdXJyZW50VGlsZXMgPT0gJ3VuZGVmaW5lZCcpIHtcbiAgICAgICAgICAgIHJldHVyblxuICAgICAgICB9XG4gICAgICAgIGlmIChldmVudC5mYXN0KSB7XG4gICAgICAgICAgICB0aGlzLmZhc3RMb2FkcyArPSAxXG4gICAgICAgICAgICB0aGlzLnBvcHVsYXRlVGlsZXMoY3VycmVudFRpbGVzLCB0aGlzLmN1cnJlbnRMZXZlbCwge1xuICAgICAgICAgICAgICAgIG9ubHlvbmU6IGZhbHNlLFxuICAgICAgICAgICAgICAgIGFib3V0OiBldmVudC5hYm91dFxuICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIGlmICh0aGlzLmZhc3RMb2FkcyA9PSAzKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5mYXN0TG9hZHMgPSAwXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICByZXR1cm5cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBpZiAoZXZlbnQuc2NhbGUgPT0gbnVsbCkge1xuICAgICAgICAgICAgdGhpcy5lbnN1cmVUaWxlcyh0aGlzLmN1cnJlbnRMZXZlbCwgZXZlbnQuYWJvdXQpXG4gICAgICAgICAgICByZXR1cm5cbiAgICAgICAgfVxuICAgICAgICBcbiAgICAgICAgbGV0IGxldmVsID0gdGhpcy5sZXZlbEZvclNjYWxlKGV2ZW50LnNjYWxlKVxuICAgICAgICBsZXQgbmV3TGV2ZWwgPSBNYXRoLm1heChsZXZlbCwgdGhpcy5taW5pbXVt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c3BsYXlPYmplY3QuYmFzZVNpemVcbiAgICAgICAgICAgIHcgPSB3d1xuICAgICAgICAgICAgaCA9IGhoXG4gICAgICAgIH1cbiAgICAgICAgaWYgKGdsb2JhbFNjYXR0ZXJMb2FkZXJDYW52YXMgPT09IG51bGwpIHtcbiAgICAgICAgICAgIGdsb2JhbFNjYXR0ZXJMb2FkZXJDYW52YXMgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCdjYW52YXMnKVxuICAgICAgICB9XG4gICAgICAgIGxldCBjYW52YXMgPSBnbG9iYWxTY2F0dGVyTG9hZGVyQ2FudmFzXG4gICAgICAgIGNhbnZhcy53aWR0aCA9IHdcbiAgICAgICAgY2FudmFzLmhlaWdodCA9IGhcbiAgICAgICAgbGV0IHJlbmRlcmVyID0gbmV3IFBJWEkuV2ViR0xSZW5kZXJlcih3LCBoLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2aWV3OiBjYW52YXMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXNvbHV0aW9uOiByZXNvbHV0aW9ufSlcblxuICAgICAgICBsZXQgZGlzcGxheU9iamVjdCA9IHRoaXMuc2NhdHRlci5kaXNwbGF5T2JqZWN0XG4gICAgICAgIGxldCB4ID0gZGlzcGxheU9iamVjdC54XG4gICAgICAgIGxldCB5ID0gZGlzcGxheU9iamVjdC55XG4gICAgICAgIGxldCByb3QgPSBkaXNwbGF5T2JqZWN0LnJvdGF0aW9uXG4gICAgICAgIGxldCBzeCA9IGRpc3BsYXlPYmplY3Quc2NhbGUueFxuICAgICAgICBsZXQgc3kgPSBkaXNwbGF5T2JqZWN0LnNjYWxlLnlcbiAgICAgICAgZGlzcGxheU9iamVjdC5yb3RhdGlvbiA9IDBcbiAgICAgICAgLy8gVGhlIFNhZmFyaSBXZWJHTFJlbmRlcmVyIHdhbnRzIGV2ZXJ5dGhpbmcgZmxpcHBlZFxuICAgICAgICAvLyBTZWUgaHR0cHM6Ly9naXRodWIuY29tL3BpeGlqcy9waXhpLmpzL2lzc3Vlcy8yMjgzXG4gICAgICAgIGRpc3BsYXlPYmplY3QueCA9IDBcbiAgICAgICAgaWYgKENhcGFiaWxpdGllcy5pc1NhZmFyaSkge1xuICAgICAgICAgICAgZGlzcGxheU9iamVjdC55ID0gaFxuICAgICAgICAgICAgZGlzcGxheU9iamVjdC5zY2FsZS5zZXQoMSwgLTEpIC8vIHN4LCAtc3kpXG4gICAgICAgIH1cbiAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICBkaXNwbGF5T2JqZWN0LnkgPSAwXG4gICAgICAgICAgICBkaXNwbGF5T2JqZWN0LnNjYWxlLnNldCgxLCAxKVxuICAgICAgICB9XG4gICAgICAgIGlmIChpc1Nwcml0ZSkge1xuICAgICAgICAgICAgZGlzcGxheU9iamVjdC53aWR0aCA9IHdcbiAgICAgICAgICAgIGRpc3BsYXlPYmplY3QuaGVpZ2h0ID0gaFxuICAgICAgICB9XG4gICAgICAgIHJlbmRlcmVyLnJlbmRlcihkaXNwbGF5T2JqZWN0KVxuICAgICAgICBkaXNwbGF5T2JqZWN0LnJvdGF0aW9uID0gcm90XG4gICAgICAgIGRpc3BsYXlPYmplY3QueCA9IHhcbiAgICAgICAgZGlzcGxheU9iamVjdC55ID0geVxuICAgICAgICBkaXNwbGF5T2JqZWN0LnNjYWxlLnNldChzeCwgc3kpXG5cbiAgICAgICAgbGV0IHVybCA9IGNhbnZhcy50b0RhdGFVUkwoKVxuICAgICAgICByZXR1cm4gW3gsIHksIHcsIGgsIHVybF1cbiAgICB9XG5cbiAgICBsb2FkKGRvbU5vZGUpIHtcbiAgICAgICAgcmV0dXJuIG5ldyBQcm9taXNlKChyZXNvbHZlLCByZWplY3QpID0+IHtcbiAgICAgICAgICAgIGxldCBpc0ltYWdlID0gZG9tTm9kZSBpbnN0YW5jZW9mIEhUTUxJbWFnZUVsZW1lbnRcbiAgICAgICAgICAgIGxldCBpc1Nwcml0ZSA9IHRoaXMuc2NhdHRlci5kaXNwbGF5T2JqZWN0IGluc3RhbmNlb2YgUElYSS5TcHJpdGVcbiAgICAgICAgICAgIGxldCBpbWFnZSA9IChpc0ltYWdlKSA/IGRvbU5vZGUgOiBkb2N1bWVudC5jcmVhdGVFbGVtZW50KFwiaW1nXCIpXG4gICAgICAgICAgICBsZXQgW3gsIHksIHcsIGgsIGNsb25lVVJMXSA9IHRoaXMuY2xvbmVTY2F0dGVySW1hZ2UoKVxuICAgICAgICAgICAgbGV0IFt3dywgaGhdID0gdGhpcy51bnNjYWxlZFNpemUoKVxuICAgICAgICAgICAgaW1hZ2Uub25sb2FkID0gKGUpID0+IHtcbiAgICAgICAgICAgICAgICBpZiAoIWlzSW1hZ2UpXG4gICAgICAgICAgICAgICAgICAgIGRvbU5vZGUuYXBwZW5kQ2hpbGQoaW1hZ2UpXG4gICAgICAgICAgICAgICAgdGhpcy54ID0geFxuICAgICAgICAgICAgICAgIHRoaXMueSA9IHlcbiAgICAgICAgICAgICAgICB0aGlzLndhbnRlZFdpZHRoID0gd3dcbiAgICAgICAgICAgICAgICB0aGlzLndhbnRlZEhlaWdodCA9IGhoXG4gICAgICAgICAgICAgICAgdGhpcy5zY2FsZSA9IDFcbiAgICAgICAgICAgICAgICB0aGlzLnJvdGF0aW9uID0gdGhpcy5zY2F0dGVyLnJvdGF0aW9uXG4gICAgICAgICAgICAgICAgcmVzb2x2ZSh0aGlzKVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaW1hZ2Uub25lcnJvciA9IChlKSA9PiB7XG4gICAgICAgICAgICAgICAgcmVqZWN0KHRoaXMpXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpbWFnZS5zcmMgPSBjbG9uZVVSTFxuICAgICAgICAgICAgfSlcbiAgICB9XG5cbn1cblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgRmxpcEVmZmVjdCB7XG5cbiAgICBjb25zdHJ1Y3RvcihzY2F0dGVyLCBkb21TY2F0dGVyQ29udGFpbmVyLCBmbGlwVGVtcGxhdGUsIGJhY2tMb2FkZXIpIHtcbiAgICAgICAgdGhpcy5mbGlwcGVkID0gZmFsc2VcbiAgICAgICAgdGhpcy5zY2F0dGVyID0gc2NhdHRlclxuICAgICAgICB0aGlzLmJhY2tMb2FkZXIgPSBiYWNrTG9hZGVyXG4gICAgICAgIHRoaXMuc2NhdHRlckxvYWRlciA9IG5ldyBTY2F0dGVyTG9hZGVyKHNjYXR0ZXIpXG4gICAgICAgIHRoaXMuZG9tRmxpcCA9IG5ldyBET01GbGlwKGRvbVNjYXR0ZXJDb250YWluZXIsIGZsaXBUZW1wbGF0ZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuc2NhdHRlckxvYWRlcixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJhY2tMb2FkZXIsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvbkJhY2s6IHRoaXMuYmFja0NhcmRDbG9zZWQuYmluZCh0aGlzKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgdGhpcy5zZXR1cEluZm9CdXR0b24oKVxuICAgIH1cblxuICAgIHN0YXJ0RmxpcCgpIHtcbiAgICAgICAgbGV0IGNlbnRlciA9IHRoaXMuZmxpcENlbnRlcigpXG4gICAgICAgIGxldCBsb2FkZXIgPSB0aGlzLmJhY2tMb2FkZXJcbiAgICAgICAgdGhpcy5kb21GbGlwLmxvYWQoKS50aGVuKChkb21GbGlwKSA9PiB7XG4gICAgICAgICAgICB0aGlzLnNjYXR0ZXIuZGlzcGxheU9iamVjdC52aXNpYmxlID0gZmFsc2VcbiAgICAgICAgICAgIGRvbUZsaXAuY2VudGVyQXQoY2VudGVyKVxuICAgICAgICAgICAgZG9tRmxpcC56b29tKHRoaXMuc2NhdHRlci5zY2FsZSlcbiAgICAgICAgICAgIGxldCB0YXJnZXQgPSB0aGlzLmNvbnN0cmFpbnRGbGlwQ2VudGVyKGNlbnRlciwgbG9hZGVyKVxuICAgICAgICAgICAgY29uc29sZS5sb2coXCJGbGlwRWZmZWN0LnN0YXJ0RmxpcFwiLCB0YXJnZXQsIGxvYWRlcilcbiAgICAgICAgICAgIGRvbUZsaXAuc3RhcnQoe3RhcmdldENlbnRlcjogdGFyZ2V0fSlcbiAgICAgICAgfSlcbiAgICB9XG5cbiAgICB1bnNjYWxlZFNpemUoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLnNjYXR0ZXJMb2FkZXIudW5zY2FsZWRTaXplKClcbiAgICB9XG5cbiAgICBmbGlwQ2VudGVyKCkge1xuICAgICAgICBsZXQgaXNTcHJpdGUgPSB0aGlzLnNjYXR0ZXIuZGlzcGxheU9iamVjdCBpbnN0YW5jZW9mIFBJWEkuU3ByaXRlXG4gICAgICAgIGxldCByZXNvbHV0aW9uID0gKGlzU3ByaXRlKSA/IGFwcC5yZW5kZXJlci5yZXNvbHV0aW9uIDogMVxuICAgICAgICBsZXQgY2VudGVyID0gdGhpcy5zY2F0dGVyLmNlbnRlclxuICAgICAgICBsZXQgY2FudmFzID0gYXBwLnJlbmRlcmVyLnZpZXdcbiAgICAgICAgbGV0IGRvbU5vZGUgPSB0aGlzLmRvbUZsaXAuZG9tU2NhdHRlckNvbnRhaW5lci5lbGVtZW50XG4gICAgICAgIGxldCBwYWdlID0gd2luZG93LmNvbnZlcnRQb2ludEZyb21Ob2RlVG9QYWdlKGNhbnZhcyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2VudGVyLngqcmVzb2x1dGlvbixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2VudGVyLnkqcmVzb2x1dGlvbilcbiAgICAgICAgbGV0IGxvY2FsID0gd2luZG93LmNvbnZlcnRQb2ludEZyb21QYWdlVG9Ob2RlKGRvbU5vZGUsIHBhZ2UueCwgcGFnZS55KVxuICAgICAgICByZXR1cm4gbG9jYWxcbiAgICB9XG5cbiAgICBjb25zdHJhaW50RmxpcENlbnRlcihjZW50ZXIsIGxvYWRlcikge1xuICAgICAgICBsZXQgdyA9IGxvYWRlci53YW50ZWRXaWR0aFxuICAgICAgICBsZXQgaCA9IGxvYWRlci53YW50ZWRIZWlnaHRcbiAgICAgICAgY29uc29sZS5sb2coXCJjb25zdHJhaW50RmxpcENlbnRlclwiLCB3LCBoKVxuICAgICAgICBsZXQgY2FudmFzID0gYXBwLnJlbmRlcmVyLnZpZXdcbiAgICAgICAgbGV0IHggPSBjZW50ZXIueFxuICAgICAgICBsZXQgeSA9IGNlbnRlci55XG4gICAgICAgIGlmICh4IDwgdy8yKVxuICAgICAgICAgICAgeCA9IHcvMlxuICAgICAgICBpZiAoeSA8IGgvMilcbiAgICAgICAgICAgeSA9IGgvMlxuICAgICAgICBpZiAoeCA+IGNhbnZhcy53aWR0aClcbiAgICAgICAgICAgIHggPSBjYW52YXMud2lkdGggLSB3LzJcbiAgICAgICAgaWYgKHkgPiBjYW52YXMuaGVpZ2h0KVxuICAgICAgICAgICAgeSA9IGNhbnZhcy5oZWlnaHQgLSBoLzJcbiAgICAgICAgcmV0dXJuIHsgeCwgeSB9XG4gICAgfVxuXG4gICAgc2V0dXBJbmZvQnV0dG9uKCkge1xuICAgICAgICBsZXQgaXNjYWxlID0gMS4wIC8gdGhpcy5zY2F0dGVyLnNjYWxlXG4gICAgICAgIHRoaXMuaW5mb0J0biA9IG5ldyBQSVhJLkdyYXBoaWNzKClcbiAgICAgICAgdGhpcy5pbmZvQnRuLmJlZ2luRmlsbCgweDMzMzMzMylcbiAgICAgICAgdGhpcy5pbmZvQnRuLmxpbmVTdHlsZSg0LCAweEZGRkZGRilcbiAgICAgICAgdGhpcy5pbmZvQnRuLmRyYXdDaXJjbGUoMCwgMCwgMjIpXG4gICAgICAgIHRoaXMuaW5mb0J0bi5lbmRGaWxsKClcblxuICAgICAgICB0aGlzLmluZm9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PSBpc2NhbGVcbiAgICAgICAgICAgIHRoaXMuaW5mb0J0bi5zY2FsZS55ID0gaXNjYWxlXG4gICAgICAgICAgICBkaXNwbGF5T2JqZWN0LmZvcmVncm91bmQuYWRkQ2hpbGQodGhpcy5pbmZvQnRuKVxuICAgICAgICB9XG4gICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgZGlzcGxheU9iamVjdC5hZGRDaGlsZCh0aGlzLmluZm9CdG4pXG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLnNjYXR0ZXIuYWRkVHJhbnNmb3JtRXZlbnRDYWxsYmFjayhlID0+IHtcbiAgICAgICAgICAgIGxldCBkaXNwbGF5T2JqZWN0ID0gdGhpcy5zY2F0dGVyLmRpc3BsYXlPYmplY3RcbiAgICAgICAgICAgIGlmIChkaXNwbGF5T2JqZWN0LmZvcmVncm91bmQpIHtcbiAgICAgICAgICAgICAgICBpZiAoZS5zY2FsZSkge1xuICAgICAgICAgICAgICAgICAgICBsZXQgaXNjYWxlID0gMS4wIC8gZS5zY2FsZVxuICAgICAgICAgICAgICAgICAgICB0aGlzLmluZm9CdG4uc2NhbGUueCA9IGlzY2FsZVxuICAgICAgICAgICAgICAgICAgICB0aGlzLmluZm9CdG4uc2NhbGUueSA9IGlzY2FsZVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfSlcbiAgICB9XG5cbiAgICBzZXR1cEJ1dHRvbih1cmwpIHtcbiAgICAgICAgbGV0IHN2Z0ltYWdlID0gbmV3IEltYWdlKClcbiAgICAgICAgbGV0IGNhbnZhcyA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ2NhbnZhcycpXG4gICAgICAgIGNhbnZhcy53aWR0aCA9IDg4ICogNFxuICAgICAgICBjYW52YXMuaGVpZ2h0ID0gNDQgKiA0XG4gICAgICAgIHN2Z0ltYWdlLm9ubG9hZCA9IGUgPT4ge1xuICAgICAgICAgICAgbGV0IGRpc3BsYXlPYmplY3QgPSB0aGlzLnNjYXR0ZXIuZGlzcGxheU9iamVjdFxuICAgICAgICAgICAgY2FudmFzLmdldENvbnRleHQgKCcyZCcpLmRyYXdJbWFnZShzdmdJbWFnZSwgMCwgMCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FudmFzLndpZHRoLCBjYW52YXMuaGVpZ2h0KVxuICAgICAgICAgICAgbGV0IHRleHVyZSA9IG5ldyBQSVhJLlRleHR1cmUobmV3IFBJWEkuQmFzZVRleHR1cmUoY2FudmFzKSlcbiAgICAgICAgICAgIHRoaXMuaW5mb0J0biA9IG5ldyBQSVhJLlNwcml0ZSh0ZXh1cmUpXG4gICAgICAgICAgICB0aGlzLmluZm9CdG4uYW5jaG9yLnNldCgwLjUsIDAuNSlcbiAgICAgICAgICAgIGlmIChkaXNwbGF5T2JqZWN0LmZvcmVncm91bmQpIHtcbiAgICAgICAgICAgICAgICBkaXNwbGF5T2JqZWN0LmZvcmVncm91bmQuYWRkQ2hpbGQodGhpcy5pbmZvQnRuKVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgZGlzcGxheU9iamVjdC5hZGRDaGlsZCh0aGlzLmluZm9CdG4pXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB0aGlzLmluZm9CdG4uc2NhbGUuc2V0KDAuNSwgMC41KVxuXG4gICAgICAgICAgICBsZXQgW3csIGhdID0gdGhpcy51bnNjYWxlZFNpemUoKVxuICAgICAgICAgICAgdGhpcy5pbmZvQnRuLnBvc2l0aW9uID0gbmV3IFBJWEkuUG9pbnQodywgaClcbiAgICAgICAgICAgIHRoaXMuaW5mb0J0bi5pbnRlcmFjdGl2ZSA9IHRydWVcbiAgICAgICAgICAgIHRoaXMuaW5mb0J0bi51cGRhdGVUcmFuc2Zvcm0oKVxuICAgICAgICAgICAgdGhpcy5pbmZvQnRuLm9uKCdjbGljaycsIChlKSA9PiB7IHRoaXMuaW5mb1NlbGV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IoZnJvbU9iamVjdClcbiAgICAgICAgY29uc3QgdG9DZW50ZXIgPSB0aGlzLmFuY2hvclRvQ2VudGVyKHRvT2JqZWN0KVxuXG4gICAgICAgIC8vIGZyb20gdmFsdWVzXG4gICAgICAgIC8vLS0tLS0tLS0tLS0tLS0tLS0tLS1cbiAgICAgICAgdGhpcy54ID0gZnJvbUNlbnRlci54XG4gICAgICAgIHRoaXMueSA9IGZyb21DZW50ZXIueVxuICAgICAgICBmcm9udC53aWR0aCA9IGZyb21PYmplY3Qud2lkdGggKiAyXG4gICAgICAgIGZyb250LmhlaWdodCA9IGZyb21PYmplY3QuaGVpZ2h0ICogMlxuICAgICAgICBiYWNrLndpZHRoID0gZnJvbU9iamVjdC53aWR0aCAqIDJcbiAgICAgICAgYmFjay5oZWlnaHQgPSBmcm9tT2JqZWN0LmhlaWdodCAqIDJcbiAgICAgICAgdGhpcy5yb3RhdGlvbiA9IGZyb21PYmplY3Qucm90YXRpb25cbiAgICAgICAgdGhpcy5za2V3LnggPSBmcm9tT2JqZWN0LnNrZXcueFxuICAgICAgICB0aGlzLnNrZXcueSA9IGZyb21PYmplY3Quc2tldy55XG5cbiAgICAgICAgLy8gY2FsY3VsYXRlIHRvIHZhbHVlc1xuICAgICAgICAvLy0tLS0tLS0tLS0tLS0tLS0tLS0tXG4gICAgICAgIGNvbnN0IHRvID0ge1xuICAgICAgICAgICAgeDogdGhpcy5vcHRzLnVzZUJhY2tUcmFuc2Zvcm1zID8gdG9DZW50ZXIueCA6IGZyb21DZW50ZXIueCxcbiAgICAgICAgICAgIHk6IHRoaXMub3B0cy51c2VCYWNrVHJhbnNmb3JtcyA/IHRvQ2VudGVyLnkgOiBmcm9tQ2VudGVyLnksXG4gICAgICAgICAgICBhbmNob3JYOiB0aGlzLm9wdHMudXNlQmFja1RyYW5zZm9ybXMgPyB0b09iamVjdC54IDogZnJvbU9iamVjdC54LFxuICAgICAgICAgICAgYW5jaG9yWTogdGhpcy5vcHRzLnVzZUJhY2tU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ICAgLy8gZmxpcFxuICAgICAgICAvLy0tLS0tLS0tLS0tLS0tLS0tLS0tXG4gICAgICAgIFR3ZWVuTGl0ZS50byhpbm5lci5ldWxlciwgdGhpcy5vcHRzLmR1cmF0aW9uLCB7XG4gICAgICAgICAgICB5OiB0b0JhY2sgPyAwIDogTWF0aC5QSSxcbiAgICAgICAgICAgIGVhc2U6IHRoaXMub3B0cy5lYXNlLFxuICAgICAgICAgICAgb25TdGFydDogKCkgPT4ge1xuICAgICAgICAgICAgICAgIHRoaXMuc3dpdGNoRGlzcGxheU9iamVjdChmcm9tT2JqZWN0LCB0aGlzKVxuICAgICAgICAgICAgICAgIHNoYWRvdy5yZW5kZXJhYmxlID0gdHJ1ZVxuICAgICAgICAgICAgICAgIGlmICh0aGlzLm9wdHMub25TdGFydCkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLm9wdHMub25TdGFydCh0aGlzLCB0aGlzKVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBvblVwZGF0ZTogKCkgPT4ge1xuICAgICAgICAgICAgICAgIHRoaXMubGF5b3V0KClcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5vcHRzLm9uVXBkYXRlKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMub3B0cy5vblVwZGF0ZSh0aGlzLCB0aGlzKVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBvbkNvbXBsZXRlOiAoKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5zd2l0Y2hEaXNwbGF5T2JqZWN0KHRoaXMsIHRvT2JqZWN0KVxuICAgICAgICAgICAgICAgIHNoYWRvdy5yZW5kZXJhYmxlID0gZmFsc2VcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5vcHRzLm9uQ29tcGxldGUpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5vcHRzLm9uQ29tcGxldGUodGhpcywgdGhpcylcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pXG5cbiAgICAgICAgLy8geCAmIHlcbiAgICAgICAgLy8tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAgICBUd2VlbkxpdGUudG8odGhpcywgdGhpcy5vcHRzLmR1cmF0aW9uLCB7XG4gICAgICAgICAgICB4OiB0by54LFxuICAgICAgICAgICAgeTogdG8ueSxcbiAgICAgICAgICAgIGVhc2U6IHRoaXMub3B0cy50cmFuc2Zvcm1FYXNlXG4gICAgICAgIH0pXG5cbiAgICAgICAgLy8gd2lkdGggJiBoZWlnaHRcbiAgICAgICAgLy8tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAgICBUd2VlbkxpdGUudG8oW2Zyb250LCBiYWNrXSwgdGhpcy5vcHRzLmR1cmF0aW9uLCB7XG4gICAgICAgICAgICB3aWR0aDogdG8ud2lkdGgsXG4gICAgICAgICAgICBoZWlnaHQ6IHRvLmhlaWdodCxcbiAgICAgICAgICAgIGVhc2U6IHRoaXMub3B0cy50cmFuc2Zvcm1FYXNlXG4gICAgICAgIH0pXG5cbiAgICAgICAgLy8gcm90YXRpb25cbiAgICAgICAgLy8tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAgICBUd2VlbkxpdGUudG8odGhpcywgdGhpcy5vcHRzLmR1cmF0aW9uLCB7XG4gICAgICAgICAgICBkaXJlY3Rpb25hbFJvdGF0aW9uOiB7XG4gICAgICAgICAgICAgICAgcm90YXRpb246IGAke3RvLnJvdGF0aW9ufV9zaG9ydGAsXG4gICAgICAgICAgICAgICAgdXNlUmFkaWFuczogdHJ1ZVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGVhc2U6IHRoaXMub3B0cy50cmFuc2Zvcm1FYXNlXG4gICAgICAgIH0pXG5cbiAgICAgICAgLy8gc2tld1ggJiBza2V3WVxuICAgICAgICAvLy0tLS0tLS0tLS0tLS0tLS0tLS0tXG4gICAgICAgIFR3ZWVuTGl0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m4ge0ZsaXBwYWJsZX0gQSByZWZlcmVuY2UgdG8gdGhlIGZsaXBwYWJsZSBmb3IgY2hhaW5pbmcuXG4gICAgICovXG4gICAgbGF5b3V0KCkge1xuXG4gICAgICAgIGNvbnN0IGZyb250ID0gdGhpcy5vYmplY3RzLmZyb250XG4gICAgICAgIGNvbnN0IGJhY2sgPSB0aGlzLm9iamVjdHMuYmFja1xuICAgICAgICBjb25zdCBzaGFkb3cgPSB0aGlzLm9iamVjdHMuc2hhZG93XG4gICAgICAgIGNvbnN0IGlubmVyID0gdGhpcy5vYmplY3RzLmlubmVyXG4gICAgICAgIFxuICAgICAgICBpbm5lci5wb3NpdGlvbjNkLnogPSAtTWF0aC5zaW4oaW5uZXIuZXVsZXIueSkgKiBmcm9udC50ZXh0dXJlLmJhc2VUZXh0dXJlLndpZHRoICogMlxuXG4gICAgICAgIC8vdGhpcy5vYmplY3RzLnNoYWRvdy5ldWxlciA9IHRoaXMub2JqZWN0cy5pbm5lci5ldWxlclxuICAgICAgICBzaGFkb3cuZXVsZXIueCA9IC1pbm5lci5ldWxlci54XG4gICAgICAgIHNoYWRvdy5ldWxlci55ID0gLWlubmVyLmV1bGVyLnlcbiAgICAgICAgXG4gICAgICAgIGlmICh0aGlzLmZyb250U2lkZUluRnJvbnQpIHtcbiAgICAgICAgICAgIGZyb250LnJlbmRlcmFibGUgPSB0cnVlXG4gICAgICAgICAgICBiYWNrLnJlbmRlcmFibGUgPSBmYWxzZVxuICAgICAgICAgICAgc2hhZG93LndpZHRoID0gZnJvbnQud2lkdGhcbiAgICAgICAgICAgIHNoYWRvdy5oZWlnaHQgPSBmcm9udC5oZWlnaHRcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGZyb250LnJlbmRlcmFibGUgPSBmYWxzZVxuICAgICAgICAgICAgYmFjay5yZW5kZXJhYmxlID0gdHJ1ZVxuICAgICAgICAgICAgc2hhZG93LndpZHRoID0gYmFjay53aWR0aFxuICAgICAgICAgICAgc2hh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MubGluZVN0eWxlKDApXG4gICAgICAgICAgICB0aGlzLmJlZ2luRmlsbCgweGY3ZjdmNywgMSlcbiAgICAgICAgICAgIGxldCB4ID0gMVxuICAgICAgICAgICAgbGV0IHkgPSB0aGlzLnRpdGxlVGV4dC54ICsgdGhpcy50aXRsZVRleHQuaGVpZ2h0ICsgKHRoaXMucGFkZGluZyAvIDIpXG4gICAgICAgICAgICB0aGlzLm1vdmVUbyh4LCB5KVxuICAgICAgICAgICAgeSA9IDlcbiAgICAgICAgICAgIHRoaXMubGluZVRvKHgsIHkpXG4gICAgICAgICAgICB0aGlzLnF1YWRyYXRpY0N1cnZlVG8oeCwgeSAtIDgsIHggKyA4LCB5IC0gOClcbiAgICAgICAgICAgIHggKz0gdGhpcy5vcHRzLndpZHRoIC0gN1xuICAgICAgICAgICAgeSAtPSA4XG4gICAgICAgICAgICB0aGlzLmxpbmVUbyh4LCB5KVxuICAgICAgICAgICAgdGhpcy5xdWFkcmF0aWNDdXJ2ZVRvKHggKyA1LCB5LCB4ICsgNSwgeSArIDgpXG4gICAgICAgICAgICB4ICs9IDVcbiAgICAgICAgICAgIHkgKz0gdGhpcy50aXRsZVRleHQueCArIHRoaXMudGl0bGVUZXh0LmhlaWdodCArICh0aGlzLnBhZGRpbmcgLyAyKVxuICAgICAgICAgICAgdGhpcy5saW5lVG8oeCwgeSlcbiAgICAgICAgICAgIGlmICh0aGlzLm9wdHMudGV4dCkge1xuICAgICAgICAgICAgICAgIHggPSAxXG4gICAgICAgICAgICAgICAgdGhpcy5saW5lVG8oeCwgeSlcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdGhpcy5xdWFkcmF0aWNDdXJ2ZVRvKHgsIHksIHggLSA1LCB5ICsgNClcbiAgICAgICAgICAgICAgICB4ID0gNlxuICAgICAgICAgICAgICAgIHkgKz0gNFxuICAgICAgICAgICAgICAgIHRoaXMubGluZVRvKHgsIHkpXG4gICAgICAgICAgICAgICAgdGhpcy5xdWFkcmF0aWNDdXJ2ZVRvKHgsIHksIHggLSA1LCB5IC0gNClcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuZW5kRmlsbCgpXG4gICAgfVxuXG4gICAgZHJhd0FuY2hvcihwbGFjZW1lbnQpIHtcblxuICAgICAgICBsZXQgeCA9IDBcbiAgICAgICAgbGV0IHkgPSAwXG5cbiAgICAgICAgc3dpdGNoIChwbGFjZW1lbnQpIHtcbiAgICAgICAgICAgIGNhc2UgJ2JvdHRvbSc6XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMub3B0cy50aXRsZSkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmJlZ2luRmlsbCgweGY3ZjdmNywgMSlcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgeCA9ICh0aGlzLndpZHRoIC8gMikgLSAxMFxuICAgICAgICAgICAgICAgIHkgPSAxXG4gICAgICAgICAgICAgICAgdGhpcy5tb3ZlVG8oeCwgeSlcbiAgICAgICAgICAgICAgICB4ICs9IDEwXG4gICAgICAgICAgICAgICAgeSAtPSAxMFxuICAgICAgICAgICAgICAgIHRoaXMubGluZVRvKHgsIHkpXG4gICAgICAgICAgICAgICAgeCArPSAxMFxuICAgICAgICAgICAgICAgIHkgKz0gMTBcbiAgICAgICAgICAgICAgICB0aGlzLmxpbmVUbyh4LCB5KVxuICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICBjYXNlICdyaWdodCc6XG4gICAgICAgICAgICAgICAgeCA9IDFcbiAgICAgICAgICAgICAgICB5ID0gKHRoaXMuaGVpZ2h0IC8gMikgLSAxMFxuICAgICAgICAgICAgICAgIGlmICh0aGlzLnRpdGxlWSArIHRoaXMudGl0bGVIZWlnaHQgPiB5KSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuYmVnaW5GaWxsKDB4ZjdmN2Y3LCAxKVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB0aGlzLm1vdmVUbyh4LCB5KVxuICAgICAgICAgICAgICAgIHggLT0gMTBcbiAgICAgICAgICAgICAgICB5ICs9IDEwXG4gICAgICAgICAgICAgICAgdGhpcy5saW5lVG8oeCwgeSlcbiAgICAgICAgICAgICAgICB4ICs9IDEwXG4gICAgICAgICAgICAgICAgeSArPSAxMFxuICAgICAgICAgICAgICAgIHRoaXMubGluZVRvKHgsIHkpXG4gICAgICAgICAgICAgICAgYnJlYWtcbiAgICAgICAgICAgIGNhc2UgJ2xlZnQnOlxuICAgICAgICAgICAgICAgIHggPSB0aGlzLndpZHRoIC0gMlxuICAgICAgICAgICAgICAgIHkgPSAodGhpcy5oZWlnaHQgLyAyKSAtIDEwXG4gICAgICAgICAgICAgICAgaWYgKHRoaXMudGl0bGVZICsgdGhpcy50aXRsZUhlaWdodCA+IHkpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5iZWdpbkZpbGwoMHhmN2Y3ZjcsIDEpXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHRoaXMubW92ZVRvKHgsIHkpXG4gICAgICAgICAgICAgICAgeCArPSAxMFxuICAgICAgICAgICAgICAgIHkgKz0gMTBcbiAgICAgICAgICAgICAgICB0aGlzLmxpbmVUbyh4LCB5KVxuICAgICAgICAgICAgICAgIHggLT0gMTBcbiAgICAgICAgICAgICAgICB5ICs9IDEwXG4gICAgICAgICAgICAgICAgdGhpcy5saW5lVG8oeCwgeSlcbiAgICAgICAgICAgICAgICBicmVha1xuICAgICAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgICAgICB4ID0gKHRoaXMud2lkdGggLyAyKSAtIDEwXG4gICAgICAgICAgICAgICAgeSA9IHRoaXMuaGVpZ2h0IC0gMlxuICAgICAgICAgICAgICAgIHRoaXMubW92ZVRvKHgsIHkpXG4gICAgICAgICAgICAgICAgeCArPSAxMFxuICAgICAgICAgICAgICAgIHkgKz0gMTBcbiAgICAgICAgICAgICAgICB0aGlzLmxpbmVUbyh4LCB5KVxuICAgICAgICAgICAgICAgIHggKz0gMTBcbiAgICAgICAgICAgICAgICB5IC09IDEwXG4gICAgICAgICAgICAgICAgdGhpcy5saW5lVG8oeCwgeSlcbiAgICAgICAgICAgICAgICBicmVha1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcG9zaXRpb25pbmcoKSB7XG5cbiAgICAgICAgY29uc3QgeCA9IHRoaXMub3B0cy54XG4gICAgICAgIGNvbnN0IHkgPSB0aGlzLm9wdHMueVxuXG4gICAgICAgIHN3aXRjaCAodGhpcy5vcHRzLnBsYWNlbWVudCkge1xuICAgICAgICAgICAgY2FzZSAnYm90dG9tJzpcbiAgICAgICAgICAgICAgICB0aGlzLnBvc2l0aW9uLnNldCh4IC0gKHRoaXMud2lkdGggLyAyKSwgeSArIDEwKVxuICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICBjYXNlICdyaWdodCc6XG4gICAgICAgICAgICAgICAgdGhpcy5wb3NpdGlvbi5zZXQoeCwgeSAtICh0aGlzLmhlaWdodCAvIDIpKVxuICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICBjYXNlICdsZWZ0JzpcbiAgICAgICAgICAgICAgICB0aGlzLnBvc2l0aW9uLnNldCh4IC0gdGhpcy53aWR0aCwgeSAtICh0aGlzLmhlaWdodCAvIDIpKVxuICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgIHRoaXMucG9zaXRpb24uc2V0KHggLSAodGhpcy53aWR0aCAvIDIpLCB5IC0gdGhpcy5oZWlnaHQpXG4gICAgICAgICAgICAgICAgYnJlYWtcbiAgICAgICAgfVxuICAgIH1cbn1cbiIsImltcG9ydCBFdmVudHMgZnJvbSAnLi4vZXZlbnRzLmpzJ1xuaW1wb3J0IHsgQWJzdHJhY3RTY2F0dGVyIH0gZnJvbSAnLi4vc2NhdHRlci5qcydcbmltcG9ydCB7IEFuZ2xlLCBQb2ludHMsIFBv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ICAgICAgICAgIHcgPSBmaXhlZC54XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAoZml4ZWQueSA+IDApIHtcbiAgICAgICAgICAgICAgICB5ICs9IGZpeGVkLnlcbiAgICAgICAgICAgICAgICBoIC09IGZpeGVkLnlcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gbmV3IFBJWEkuUmVjdGFuZ2xlKHgsIHksIHcsIGgpXG4gICAgfVxuXG4gICAgZ2V0IGNlbnRlcigpIHtcbiAgICAgICAgbGV0IHIgPSB0aGlzLmJvdW5kc1xuICAgICAgICByZXR1cm4geyB4OiByLndpZHRoIC8gMiwgeTogci5oZWlnaHQgLyAyIH1cbiAgICB9XG5cbiAgICBnZXQgcG9seWdvbigpIHtcbiAgICAgICAgbGV0IHIgPSB0aGlzLmJvdW5kc1xuICAgICAgICBsZXQgdzIgPSByLndpZHRoIC8gMlxuICAgICAgICBsZXQgaDIgPSByLmhlaWdodCAvIDJcbiAgICAgICAgbGV0IGNlbnRlciA9IHsgeDogdzIsIHk6IGgyIH1cbiAgICAgICAgbGV0IHBvbHlnb24gPSBuZXcgUG9seWdvbihjZW50ZXIpXG4gICAgICAgIHBvbHlnb24uYWRkUG9pbnQoeyB4OiAtdzIsIHk6IC1oMiB9KVxuICAgICAgICBwb2x5Z29uLmFkZFBvaW50KHsgeDogdzIsIHk6IC1oMiB9KVxuICAgICAgICBwb2x5Z29uLmFkZFBvaW50KHsgeDogdzIsIHk6IGgyIH0pXG4gICAgICAgIHBvbHlnb24uYWRkUG9pbnQoeyB4OiAtdzIsIHk6IGgyIH0pXG4gICAgICAgIHJldHVybiBwb2x5Z29uXG4gICAgfVxuXG4gICAgdXBkYXRlKGR0KSB7XG4gICAgICAgIHRoaXMuY2xlYXIoKVxuICAgICAgICB0aGlzLmxpbmVTdHlsZSgxLCAweDAwMDBGRilcbiAgICAgICAgaWYgKHRoaXMuc2hvd0JvdW5kcykge1xuICAgICAgICAgICAgZm9yIChsZXQgY2hpbGQgb2YgdGhpcy5jaGlsZHJlbikge1xuICAgICAgICAgICAgICAgIGlmIChjaGlsZC5zY2F0dGVyKSB7XG4gICAgICAgICAgICAgICAgICAgIC8vbGV0IHt4LCB5LCB3aWR0aCwgaGVpZ2h0fSA9IGNoaWxkLnNjYXR0ZXIudGhyb3dCb3VuZHMoKVxuICAgICAgICAgICAgICAgICAgICAvLyBuZXcgUElYSS5SZWN0YW5nbGUoeCwgeSwgd2lkdGgsIGhlaWdodClcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5kcmF3U2hhcGUoY2hpbGQuc2NhdHRlci5ib3VuZHMpXG4gICAgICAgICAgICAgICAgICAgIGxldCBjZW50ZXIgPSBjaGlsZC5zY2F0dGVyLmNlbnRlclxuICAgICAgICAgICAgICAgICAgICB0aGlzLmRyYXdDaXJjbGUoY2VudGVyLngsIGNlbnRlci55LCA0KVxuICAgICAgICAgICAgICAgICAgICB0aGlzLmRyYXdDaXJjbGUoY2hpbGQuc2NhdHRlci54LCBjaGlsZC5zY2F0dGVyLnksIDQpXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgdGhpcy5saW5lU3R5bGUoMiwgMHgwMDAwRkYpXG4gICAgICAgICAgICB0aGlzLmRyYXdTaGFwZSh0aGlzLmJvdW5kcylcbiAgICAgICAgfVxuICAgICAgICBpZiAodGhpcy5zaG93UG9seWdvbikge1xuICAgICAgICAgICAgdGhpcy5saW5lU3R5bGUoMiwgMHhGRjAwMDApXG4gICAgICAgICAgICBmb3IgKGxldCBjaGlsZCBvZiB0aGlzLmNoaWxkcmVuKSB7XG4gICAgICAgICAgICAgICAgaWYgKGNoaWxkLnNjYXR0ZXIpIHtcbiAgICAgICAgICAgICAgICAgICAgbGV0IHBvbHlnb24gPSBjaGlsZC5zY2F0dGVyLnBvbHlnb25cbiAgICAgICAgICAgICAgICAgICAgbGV0IHNoYXBlID0gbmV3IFBJWEkuUG9seWdvbihwb2x5Z29uLmZsYXRBYnNvbHV0ZVBvaW50cygpKVxuICAgICAgICAgICAgICAgICAgICBzaGFwZS5jbG9zZSgpXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZHJhd1NoYXBlKHNoYXBlKVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBpZiAodGhpcy5zaG93VG91Y2hlcykge1xuICAgICAgICAgICAgbGV0IGN1cnJlbnQgPSB0aGlzLmRlbGVnYXRlLmludGVyYWN0aW9uLmN1cnJlbnRcbiAgICAgICAgICAgIGZvciAobGV0IFtrZXksIHBvaW50XSBvZiBjdXJyZW50LmVudHJpZXMoKSkge1xuICAgICAgICAgICAgICAgIGxldCBsb2NhbCA9IHRoaXMubWFwUG9zaXRpb25Ub1BvaW50KHBvaW50KVxuICAgICAgICAgICAgICAgIHRoaXMuZHJhd0NpcmNsZShsb2NhbC54LCBsb2NhbC55LCAxMilcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIGNhcHR1cmUoZXZlbnQpIHtcbiAgICAgICAgaWYgKHRoaXMuc3RvcEV2ZW50cylcbiAgICAgICAgICAgIEV2ZW50cy5zdG9wKGV2ZW50KVxuICAgICAgICByZXR1cm4gdHJ1ZVxuICAgIH1cblxuICAgIGZha2VJbnRlcmFjdGlvbkV2ZW50KHBvaW50LCBrZXkpIHtcbiAgICAgICAgcmV0dXJuIHsgZGF0YTogeyBnbG9iYWw6IHBvaW50LCBrZXk6IGtleSB9IH1cbiAgICB9XG5cbiAgICBmaW5kSGl0U2NhdHRlcihkYXRhLCBkaXNwbGF5T2JqZWN0LCBoaXQpIHtcbiAgICAgICAgLy8gICAgIGlmIChoaXQpIHtcbiAgICAgICAgLy8gICAgICAgICAgICAgY29uc29sZS5sb2coXCJmaW5kSGl0U2NhdHRlclwiLCBkaXNwbGF5T2JqZWN0KVxuICAgICAgICAvLyAgICAgICAgIH1cbiAgICAgICAgaWYgKGhpd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FxuICAgICAgICAgICAgcm90YXRpb246IHRoaXMucm90YXRpb25cbiAgICAgICAgfVxuICAgIH1cblxuICAgIHNldHVwKCkge1xuICAgICAgICB0aGlzLnNldHVwTW91c2VXaGVlbEludGVyYWN0aW9uKClcbiAgICB9XG5cbiAgICByb3VuZFBpeGVsKHZhbHVlKSB7XG4gICAgICAgIC8vIFVPOiBTaG91bGQgYmUgb2Jzb2xldGUgYmVjYXVzZSBSZW5kZXJlciBzdXBwb3J0cyByb3VuZFBpeGVscyBieSBkZWZhdWx0XG4gICAgICAgIHJldHVybiB2YWx1ZVxuICAgICAgICBsZXQgcmVzID0gdGhpcy5yZW5kZXJlci5yZXNvbHV0aW9uXG4gICAgICAgIHJldHVybiBNYXRoLnJvdW5kKHZhbHVlICogcmVzKSAvIHJlc1xuICAgIH1cblxuICAgIGdldCBjb250YWluZXIoKSB7XG4gICAgICAgIC8vIHJldHVybiB0aGlzLmRpc3BsYXlPYmplY3QucGFyZW50XG4gICAgICAgIGxldCBvYmogPSB0aGlzLmRpc3BsYXlPYmplY3RcbiAgICAgICAgd2hpbGUgKG9iai5wYXJlbnQgIT0gbnVsbCAmJiAhKG9iai5wYXJlbnQgaW5zdGFuY2VvZiBTY2F0dGVyQ29udGFpbmVyKSlcbiAgICAgICAgICAgIG9iaiA9IG9iai5wYXJlbnRcbiAgICAgICAgcmV0dXJuIG9iai5wYXJlbnRcbiAgICB9XG5cbiAgICBnZXQgeCgpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMucG9zaXRpb24ueFxuICAgIH1cblxuICAgIHNldCB4KHZhbHVlKSB7XG4gICAgICAgIHRoaXMucG9zaXRpb24ueCA9IHZhbHVlXG4gICAgfVxuXG4gICAgZ2V0IHkoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLnBvc2l0aW9uLnlcbiAgICB9XG5cbiAgICBzZXQgeSh2YWx1ZSkge1xuICAgICAgICB0aGlzLnBvc2l0aW9uLnkgPSB2YWx1ZVxuICAgIH1cblxuICAgIGdldCBwb2x5Z29uKCkge1xuICAgICAgICBsZXQgcG9seWdvbiA9IG5ldyBQb2x5Z29uKHRoaXMuY2VudGVyKVxuICAgICAgICBsZXQgdzIgPSB0aGlzLndpZHRoIC8gMlxuICAgICAgICBsZXQgaDIgPSB0aGlzLmhlaWdodCAvIDJcbiAgICAgICAgcG9seWdvbi5hZGRQb2ludCh7IHg6IC13MiwgeTogLWgyIH0pXG4gICAgICAgIHBvbHlnb24uYWRkUG9pbnQoeyB4OiB3MiwgeTogLWgyIH0pXG4gICAgICAgIHBvbHlnb24uYWRkUG9pbnQoeyB4OiB3MiwgeTogaDIgfSlcbiAgICAgICAgcG9seWdvbi5hZGRQb2ludCh7IHg6IC13MiwgeTogaDIgfSlcbiAgICAgICAgcG9seWdvbi5yb3RhdGUodGhpcy5yb3RhdGlvbilcbiAgICAgICAgcmV0dXJuIHBvbHlnb25cbiAgICB9XG5cbiAgICBnZXQgY29udGFpbmVyQm91bmRzKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5jb250YWluZXIuYm91bmRzXG4gICAgfVxuXG4gICAgZ2V0IGNvbnRhaW5lclBvbHlnb24oKSB7XG4gICAgICAgIGxldCBjb250YWluZXIgPSB0aGlzLmNvbnRhaW5lclxuICAgICAgICBpZiAoY29udGFpbmVyID09IG51bGwpIHJldHVybiBudWxsXG4gICAgICAgIHJldHVybiBjb250YWluZXIucG9seWdvblxuICAgIH1cblxuICAgIGdldCBwb3NpdGlvbigpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuZGlzcGxheU9iamVjdC5wb3NpdGlvblxuICAgIH1cblxuICAgIHNldCBwb3NpdGlvbih2YWx1ZSkge1xuICAgICAgICB0aGlzLmRpc3BsYXlPYmplY3QucG9zaXRpb24gPSB2YWx1ZVxuICAgIH1cblxuICAgIGdldCBzY2FsZSgpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuZGlzcGxheU9iamVjdC5zY2FsZS54XG4gICAgfVxuXG4gICAgc2V0IHNjYW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xheS50b2dnbGUoKVxuICAgICAgICB9XG4gICAgICAgIGlmICh0aGlzLnN0b3AuY29udGFpbnNQb2ludChwb2ludCkpIHtcbiAgICAgICAgICAgIHRoaXMuc3RvcC50b2dnbGUoKVxuICAgICAgICAgICAgaWYgKHRoaXMub25SZXNldCkge1xuICAgICAgICAgICAgICAgIHRoaXMub25SZXNldCgpXG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBtYXBQb3NpdGlvblRvUG9pbnQocG9pbnQpIHtcbiAgICAgICAgbGV0IGxvY2FsID0gbmV3IFBJWEkuUG9pbnQoKVxuICAgICAgICB0aGlzLnJlbmRlcmVyLnBsdWdpbnMuaW50ZXJhY3Rpb24ubWFwUG9zaXRpb25Ub1BvaW50KGxvY2FsLCBwb2ludC54LCBwb2ludC55KVxuICAgICAgICByZXR1cm4gbG9jYWxcbiAgICB9XG5cbiAgICBleHRyYWN0TG9jYWwoZXZlbnQpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMubWFwUG9zaXRpb25Ub1BvaW50KEV2ZW50cy5leHRyYWN0UG9pbnQoZXZlbnQpKVxuICAgIH1cblxuICAgIGNhcHR1cmUoZXZlbnQpIHtcbiAgICAgICAgaWYgKHR5cGVvZiBldmVudC5tb3VzZURvd25TdWJzdGl0dXRlICE9ICd1bmRlZmluZWQnKVxuICAgICAgICAgICAgcmV0dXJuIGZhbHNlXG4gICAgICAgIHJldHVybiB0cnVlXG4gICAgfVxuXG4gICAgc3RhcnRSZXBsYXkoKSB7XG4gICAgICAgIGlmICh0aGlzLm9uUmVzZXQpIHtcbiAgICAgICAgICAgIHRoaXMub25SZXNldCgpXG4gICAgICAgIH1cbiAgICAgICAgdGhpcy5yZWNvcmQuc3RhcnRSZXBsYXkoKVxuICAgIH1cblxuICAgIHNob3dUb3VjaGVzKCkge1xuICAgICAgICB0aGlzLmFkZENoaWxkKHRoaXMudG91Y2hHcmFwaGljcylcbiAgICB9XG5cbiAgICByZWNvcmRFdmVudChldmVudCkge1xuICAgICAgICBpZiAodGhpcy5yZWNvcmQuc2VsZWN0ZWQpIHtcbiAgICAgICAgICAgIHRoaXMucmVjb3JkLnJlY29yZEV2ZW50KGV2ZW50KVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgb25TdGFydChldmVudCwgaW50ZXJhY3Rpb24pIHtcbiAgICAgICAgbGV0IGxvY2FsID0gdGhpcy5leHRyYWN0TG9jYWwoZXZlbnQpXG4gICAgICAgIGlmICghdGhpcy50b29sYmFyLmNvbnRhaW5zUG9pbnQobG9jYWwpKSB7XG4gICAgICAgICAgICB0aGlzLnJlY29yZEV2ZW50KGV2ZW50KVxuICAgICAgICAgICAgdGhpcy51cGRhdGVUb3VjaEdyYXBoaWNzKGludGVyYWN0aW9uKVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgb25Nb3ZlKGV2ZW50LCBpbnRlcmFjdGlvbikge1xuICAgICAgICBsZXQgbG9jYWwgPSB0aGlzLmV4dHJhY3RMb2NhbChldmVudClcbiAgICAgICAgaWYgKCF0aGlzLnRvb2xiYXIuY29udGFpbnNQb2ludChsb2NhbCkpIHtcbiAgICAgICAgICAgIHRoaXMucmVjb3JkRXZlbnQoZXZlbnQpXG4gICAgICAgICAgICB0aGlzLnVwZGF0ZVRvdWNoR3JhcGhpY3MoaW50ZXJhY3Rpb24pXG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvbkVuZChldmVudCwgaW50ZXJhY3Rpb24pIHtcbiAgICAgICAgbGV0IGxvY2FsID0gdGhpcy5leHRyYWN0TG9jYWwoZXZlbnQpXG4gICAgICAgIGlmICh0aGlzLnRvb2xiYXIuY29udGFpbnNQb2ludChsb2NhbCkpIHtcbiAgICAgICAgICAgIHRoaXMub25QcmVzcyhsb2NhbClcbiAgICAgICAgfVxuICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgIHRoaXMucmVjb3JkRXZlbnQoZXZlbnQpXG4gICAgICAgICAgICB0aGlzLnVwZGF0ZVRvdWNoR3JhcGhpY3MoaW50ZXJhY3Rpb24pXG4gICAgICAgIH1cbiAgICB9XG5cbiAgICB1cGRhdGVUb3VjaEdyYXBoaWNzKGludGVyYWN0aW9uKSB7XG4gICAgICAgIGxldCBjdXJyZW50ID0gaW50ZXJhY3Rpb24uY3VycmVudFxuICAgICAgICBsZXQgZ3JhcGhpY3MgPSB0aGlzLnRvdWNoR3JhcGhpY3NcbiAgICAgICAgaWYgKGdyYXBoaWNzICE9IG51bGwpIHtcbiAgICAgICAgICAgIGdyYXBoaWNzLmNsZWFyKClcbiAgICAgICAgICAgIGZvciAobGV0IGtleSBvZiBjdXJyZW50LmtleXMoKSkge1xuICAgICAgICAgICAgICAgIGlmIChpbnRlcmFjdGlvbi5lbmRlZC5oYXMoa2V5KSkge1xuICAgICAgICAgICAgICAgICAgICBjb250aW51ZVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBsZXQgcCA9IGN1cnJlbnQuZ2V0KGtleSlcbiAgICAgICAgICAgICAgICBpZiAoa2V5ID09ICdtb3VzZScpIHtcbiAgICAgICAgICAgICAgICAgICAgZ3JhcGhpY3MuYmVnaW5GaWxsKDB4Q0MwMDAwLCAwLjUpXG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgZ3JhcGhpY3MuYmVnaW5GaWxsKDB4Q0NDQ0NDLCAwLjUpXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGdyYXBoaWNzLmRyYXdDaXJjbGUocC54LCBwLnksIDIwKVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZ3JhcGhpY3MuZW5kRmlsbCgpXG4gICAgICAgIH1cbiAgICB9XG59XG5cbmV4cG9ydCBjbGFzcyBBcHBUZXN0IGV4dGVuZHMgUElYSUFwcCB7XG5cbiAgICBjb25zdHJ1Y3RvcihjYW52YXMsIGNvbnRhaW5lcikge1xuICAgICAgICBzdXBlcih7IHZpZXc6IGNhbnZhcywgYmFja2dy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lwZW5hdGUge1xuXG4gICAgc3RhdGljIHNwbGl0UGFydChwYXJ0KSB7XG4gICAgICAgIGxldCBwYXJ0cyA9IHBhcnQuc3BsaXQoJy0nKVxuICAgICAgICBpZiAocGFydHMubGVuZ3RoID09IDEpXG4gICAgICAgICAgICByZXR1cm4gW3BhcnRdXG4gICAgICAgIGxldCByZXN1bHQgPSBbXVxuICAgICAgICBsZXQgbGFzdCA9IHBhcnRzLnBvcCgpXG4gICAgICAgIGZvciAobGV0IHAgb2YgcGFydHMpIHtcbiAgICAgICAgICAgIHJlc3VsdC5wdXNoKHAgKyAnLScpXG4gICAgICAgIH1cbiAgICAgICAgcmVzdWx0LnB1c2gobGFzdClcbiAgICAgICAgcmV0dXJuIHJlc3VsdC5maWx0ZXIocCA9PiBwLmxlbmd0aCA+IDApXG4gICAgfVxuXG4gICAgc3RhdGljIHNwbGl0V29yZCh3b3JkKSB7XG4gICAgICAgIGlmICh0eXBlb2YgKGxhbmd1YWdlKSA9PSAndW5kZWZpbmVkJykge1xuICAgICAgICAgICAgaWYgKHdvcmQuaW5kZXhPZignLScpID4gLTEpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gd29yZC5zcGxpdCgnLScpXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZXR1cm4gW3dvcmRdXG4gICAgICAgIH1cbiAgICAgICAgbGV0IHBhcnRzID0gbGFuZ3VhZ2UuaHlwaGVuYXRlKHdvcmQpXG4gICAgICAgIGxldCByZXN1bHQgPSBbXVxuICAgICAgICBmb3IgKGxldCBwYXJ0IG9mIHBhcnRzKSB7XG4gICAgICAgICAgICBmb3IgKGxldCBzcGxpdHRlZCBvZiB0aGlzLnNwbGl0UGFydChwYXJ0KSkge1xuICAgICAgICAgICAgICAgIHJlc3VsdC5wdXNoKHNwbGl0dGVkKVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiByZXN1bHRcbiAgICB9XG5cbiAgICBzdGF0aWMgYWJicmV2aWF0Z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gICAgICBpZiAocGFydHMubGVuZ3RoID09IDEpIHtcbiAgICAgICAgICAgICAgICAgICAgbmV3V29yZCArPSAnXFxuJyArIHdvcmQgKyAnICdcbiAgICAgICAgICAgICAgICAgICAgeCA9IHdvcmRNZXRyaWNzLndpZHRoICsgc3BhY2Uud2lkdGhcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIGxldCBmaXJzdCA9IHRydWVcbiAgICAgICAgICAgICAgICAgICAgbGV0IGxhc3RQYXJ0ID0gJydcbiAgICAgICAgICAgICAgICAgICAgZm9yIChsZXQgcGFydCBvZiBwYXJ0cykge1xuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHBhcnRNZXRyaWNzID0gUElYSS5UZXh0TWV0cmljcy5tZWFzdXJlVGV4dChwYXJ0LCBwaXhpU3R5bGUpXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoeCArIHBhcnRNZXRyaWNzLndpZHRoICsgc3BhY2Uud2lkdGggPiB3aWR0aCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ld1dvcmQgKz0gKChmaXJzdCB8fCBsYXN0UGFydC5lbmRzV2l0aCgnLScpKSA/ICdcXG4nIDogJy1cXG4nKSArIHBhcnRcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB4ID0gcGFydE1ldHJpY3Mud2lkdGhcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5ld1dvcmQgKz0gcGFydFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHggKz0gcGFydE1ldHJpY3Mud2lkdGhcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIGxhc3RQYXJ0ID0gcGFydFxuICAgICAgICAgICAgICAgICAgICAgICAgZmlyc3QgPSBmYWxzZVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIHggKz0gc3BhY2Uud2lkdGhcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgcmVzdWx0ICs9IG5ld1dvcmQgKyAnICdcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgIHJlc3VsdCArPSB3b3JkICsgJyAnXG4gICAgICAgICAgICAgICAgeCArPSB3b3JkTWV0cmljcy53aWR0aCArIHNwYWNlLndpZHRoXG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHJlc3VsdFxuICAgIH1cblxuICAgIC8qKlxuICAgICAqICBNYWluIG1ldGhvZCBhbmQgZW50cnkgcG9pbnQgZm9yIHRleHQgaHlwaGVuYXRpb24gXG4gICAgICpcbiAgICAgKiBAc3RhdGljXG4gICAgICogQHBhcmFtIHsqfSB0ZXh0XG4gICAgICogQHBhcmFtIHsqfSBzdHlsZVxuICAgICAqIEBwYXJhbSB7Kn0gd2lkdGhcbiAgICAgKiBAcmV0dXJuc1xuICAgICAqIEBtZW1iZXJvZiBIeXBlbmF0ZVxuICAgICAqL1xuICAgIHN0YXRpYyBzcGxpdExpbmVzKHRleHQsIHN0eWxlLCB3aWR0aCkge1xuICAgICAgICBjb25zdCBwaXhpU3R5bGUgPSBuZXcgUElYSS5UZXh0U3R5bGUoc3R5bGUpXG4gICAgICAgIGNvbnN0IGxpbmVzID0gdGV4dC5zcGxpdCgnXFxuJylcbiAgICAgICAgY29uc3Qgc3BhY2UgPSBQSVhJLlRleHRNZXRyaWNzLm1lYXN1cmVUZXh0KCcgJywgcGl4aVN0eWxlKVxuICAgICAgICBjb25zdCBtaW51cyA9IFBJWEkuVGV4dE1ldHJpY3MubWVhc3VyZVRleHQoJy0nLCBwaXhpU3R5bGUpXG4gICAgICAgIGxldCByZXN1bHQgPSBbXVxuICAgICAgICBmb3IgKGxldCBsaW5lIG9mIGxpbmVzK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PSB7fSwgZm9udEluZm8gPSBGb250SW5mby5ub3JtYWwpIHtcblxuICAgICAgICBpZiAoYXR0cnMubWF4V2lkdGggJiYgYXR0cnMubWF4TGluZXMgPT0gMSkge1xuICAgICAgICAgICAgbGFiZWwgPSBIeXBlbmF0ZS5hYmJyZXZpYXRlTGluZShsYWJlbCwgZm9udEluZm8sIGF0dHJzLm1heFdpZHRoKVxuICAgICAgICB9XG4gICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgaWYgKGF0dHJzLm1heFdpZHRoKSB7XG4gICAgICAgICAgICAgICAgbGFiZWwgPSBIeXBlbmF0ZS5zcGxpdExpbmVzKGxhYmVsLCBmb250SW5mbywgYXR0cnMubWF4V2lkdGgpXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAoYXR0cnMubWF4TGluZXMpIHtcbiAgICAgICAgICAgICAgICBsYWJlbCA9IHRoaXMudHJ1bmNhdGVMYWJlbChsYWJlbCwgZm9udEluZm8sIGF0dHJzLm1heExpbmVzKVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKGF0dHJzLm1heEhlaWdodCkge1xuICAgICAgICAgICAgICAgIGxldCBzdHlsZUluZm8gPSBuZXcgUElYSS5UZXh0U3R5bGUoZm9udEluZm8pXG4gICAgICAgICAgICAgICAgbGV0IG1ldHJpY3MgPSBQSVhJLlRleHRNZXRyaWNzLm1lYXN1cmVUZXh0KGxhYmVsLCBzdHlsZUluZm8pXG4gICAgICAgICAgICAgICAgbGV0IG1heExpbmVzID0gTWF0aC5tYXgoYXR0cnMubWF4SGVpZ2h0IC8gbWV0cmljcy5saW5lSGVpZ2h0LCAxKVxuICAgICAgICAgICAgICAgIGxhYmVsID0gdGhpcy50cnVuY2F0ZUxhYmVsKGxhYmVsLCBmb250SW5mbywgbWF4TGluZXMpXG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICBcbiAgICAgICAgaWYgKCF0aGlzLmxhYmVscy5oYXMoa2V5KSkge1xuICAgICAgICAgICAgbGV0IHRleHQgPSB0aGlzLl9jcmVhdGVUZXh0KGxhYmVsLCBmb250SW5mbylcbiAgICAgICAgICAgIHRoaXMubGFiZWxzLnNldChrZXksIHRleHQpXG4gICAgICAgICAgICB0aGlzLmFkZENoaWxkKHRleHQpXG4gICAgICAgIH1cbiAgICAgICAgbGV0IHRleHQgPSB0aGlzLmxhYmVscy5nZXQoa2V5KVxuICAgICAgICBmb3IgKGxldCBrIGluIGF0dHJzKSB7XG4gICAgICAgICAgICB0ZXh0W2tdID0gYXR0cnNba11cbiAgICAgICAgfVxuICAgICAgICBpZiAobGFiZWwgIT0gdGV4dC50ZXh0KVxuICAgICAgICAgICAgdGV4dC50ZXh0ID0gbGFiZWxcbiAgICAgICAgLy8gV2UgZG8gbm90IGZvbGxvdyB0aGUgZmxleGJveCBqYXJnb24gYW5kIHVzZSBhbGlnbiBmb3IgeCBhbmQganVzdGlmeSBmb3IgeSBheGlzXG4gICAgICAgIC8vIFRoaXMgZGV2aWF0aW9uIGlzIG5lZWRlZCB0byBlbnN1cmUgYmFja3dhcmQgY29tcGF0YWJpbGl0eVxuICAgICAgICBzd2l0Y2ggKGF0dHJzLmp1c3RpZnkgfHwgbnVsbCkge1xuICAgICAgICAgICAgY2FzZSAndG9wJzpcbiAgICAgICAgICAgICAgICB0ZXh0LmFuY2hvci55ID0gMFxuICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICBjYXNlICdib3R0b20nOlxuICAgICAgICAgICAgICAgIHRleHQuYW5jaG9yLnggPSAxXG4gICAgICAgICAgICAgICAgYnJlYWtcbiAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgdGV4dC5hbmNob3IueSA9IDAuNVxuICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgIH1cbiAgICAgICAgc3dpdGNoIChhdHRycy5hbGlnbikge1xuICAgICAgICAgICAgY2FzZSAncmlnaHQnOlxuICAgICAgICAgICAgICAgIHRleHQuYW5jaG9yLnggPSAxXG4gICAgICAgICAgICAgICAgYnJlYWtcbiAgICAgICAgICAgIGNhc2UgJ2NlbnRlcic6XG4gICAgICAgICAgICAgICAgdGV4dC5hbmNob3IueCA9IDAuNVxuICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgIHRleHQuYW5jaG9yLnggPSAwXG4gICAgICAgICAgICAgICAgYnJlYWtcbiAgICAgICAgfVxuICAgICAgICB0ZXh0LnZpc2libGUgPSB0cnVlXG4gICAgICAgIHJldHVybiB0ZXh0XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUHJpdmF0ZSBtZXRob2QgdGhhdCB0cnVuY2F0ZXMgdGhlIHRleHQgYW5kIGFkZHMgYW4gZWxsaXBzaXMgaWYgdGhlcmUgYXJlIG1vcmUgbGluZXNcbiAgICAgKiB0aGFuIHdhbnRlZFxuICAgICAqXG4gICAgICogQHBhcmFtIHsqfSB0ZXh0XG4gICAgICogQHBhcmFtIHsqfSBzdHlsZVxuICAgICAqIEBwYXJhbSB7Kn0gW21heExpbmVzPUluZmluaXR5XVxuICAgICAqIEByZXR1cm5zXG4gICAgICogQG1lbWJlcm9mIExhYmVsZWRHcmFwaGljc1xuICAgICAqL1xuICAgIHRydW5jYXRlTGFiZWwodGV4dCwgc3R5bGUsIG1heExpbmVzID0gSW5maW5pdHkpIHtcbiAgICAgICAgaWYgKG1heExpbmVzID09PSBJbmZpbml0eSkge1xuICAgICAgICAgICAgcmV0dXJuIHRleHRcbiAgICAgICAgfVxuICAgICAgICBjb25zdCB7IHdvcmRXcmFwV2lkdGggfSA9IHN0eWxlXG4gICAgICAgIGNvbnN0IHBpeGlTdHlsZSA9IG5ldyBQSVhJLlRleHRTdHlsZShzdHlsZSlcbiAgICAgICAgY29uc3QgeyBsaW5lcyB9ID0gUElYSS5UZXh0TWV0cmljcy5tZWFzdXJlVGV4dCh0ZXh0LCBwaXhpU3R5bGUpXG4gICAgICAgIGx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gICAgICAgICB5aWVsZCBkYXRlXG4gICAgICAgICAgICBkYXRlID0gdGhpcy5uZXh0KGRhdGUpXG4gICAgICAgIH1cbiAgICAgICAgeWllbGQgZGF0ZVxuICAgIH1cblxuICAgICppdGVyUmFuZ2VzKHJhbmdlKSB7XG4gICAgICAgIGZvciAobGV0IGRhdGUgb2YgdGhpcy5pdGVyKHJhbmdlLnN0YXJ0LCByYW5nZS5lbmQpKSB7XG4gICAgICAgICAgICBsZXQgbmV4dCA9IHRoaXMubmV4dChkYXRlKVxuICAgICAgICAgICAgeWllbGQgeyBzdGFydDogZGF0ZSwgZW5kOiBuZXh0IH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIHNlbGVjdGVkUmFuZ2UodGltZWxpbmUsIGluZm8pIHtcbiAgICAgICAgbGV0IGZpcnN0ID0gbnVsbFxuICAgICAgICBsZXQgbGFzdCA9IG51bGxcbiAgICAgICAgbGV0IHZpc2libGVGaXJzdCA9IG51bGxcbiAgICAgICAgbGV0IHZpc2libGVMYXN0ID0gbnVsbFxuICAgICAgICBsZXQgdW5pdHMgPSAwXG4gICAgICAgIGZvciAobGV0IHsgc3RhcnQsIGVuZCB9IG9mIHRoaXMuaXRlclJhbmdlcyhpbmZvKSkge1xuICAgICAgICAgICAgaWYgKHRpbWVsaW5lLnZpc2libGVSYW5nZShzdGFydCwgZW5kKSkge1xuICAgICAgICAgICAgICAgIGlmIChmaXJzdCA9PSBudWxsKSB7XG4gICAgICAgICAgICAgICAgICAgIGZpcnN0ID0gc3RhcnRcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgbGFzdCA9IGVuZFxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKHRpbWVsaW5lLnZpc2libGVEYXRlKHN0YXJ0KSAmJiB0aW1lbGluZS52aXNpYmxlRGF0ZShlbmQpKSB7XG4gICAgICAgICAgICAgICAgdW5pdHMgKz0gMVxuICAgICAgICAgICAgICAgIGlmICh2aXNpYmxlRmlyc3Qg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ICAgICAgdGltZWxpbmUuZHJhd1RpY2soeCwgNC4yKVxuICAgICAgICAgICAgICAgICAgICBsZXQgbmV4dFggPSB0aW1lbGluZS50b1goZW5kKSAtIDEwMFxuICAgICAgICAgICAgICAgICAgICBpZiAoeCA8IDAgJiYgbmV4dFggPiAtMTAwICYmICFyZWR1bmRhbnQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHh4ID0gTWF0aC5taW4oNCwgbmV4dFgpXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB4eCAtPSAyXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgZG93blRpY2sgPSB0cnVlXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2UgaWYgKGxldmVsID4gMCkge1xuICAgICAgICAgICAgICAgICAgICB4eCA9IHggKyBhdmFpbGFibGUgLyAyXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBkb3duVGljayA9IHRydWVcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgaWYgKCFmdWxseVJlZHVuZGFudCkge1xuICAgICAgICAgICAgICAgICAgICB0aW1lbGluZS5lbnN1cmVMYWJlbChrZXksIHRleHQsXG4gICAgICAgICAgICAgICAgICAgICAgICB7IHg6IHh4LCB5OiB5eSwgYWxpZ24gfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIEZvbnRJbmZvLnNtYWxsKVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBpZiAoZG93blRpY2spIHRpbWVsaW5lLmRyYXdUaWNrKHgsIC0xKVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKHRpbWVsaW5lLnZpc2libGVSYW5nZShzdGFydCwgZW5kKSkge1xuICAgICAgICAgICAgICAgIGlmIChmaXJzdCA9P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3Nob3J0J1xuICAgICAgICBpZiAoYXZhaWxhYmxlID4gNjYpXG4gICAgICAgICAgICBmb3JtYXQueWVhciA9ICcyLWRpZ2l0J1xuICAgICAgICBpZiAoYXZhaWxhYmxlID4gMTAwKSB7XG4gICAgICAgICAgICBmb3JtYXQubW9udGggPSAnbG9uZydcbiAgICAgICAgICAgIGZvcm1hdC55ZWFyID0gJ251bWVyaWMnXG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIGZvcm1hdFxuICAgIH1cblxuICAgIGdldCBtaW5MYWJlbFdpZHRoKCkge1xuICAgICAgICByZXR1cm4gMzJcbiAgICB9XG5cbiAgICBnZXQga2V5KCkge1xuICAgICAgICByZXR1cm4gJ21vbnRoJ1xuICAgIH1cblxuICAgIGRhdGVLZXkoZGF0ZSkge1xuICAgICAgICByZXR1cm4gdGhpcy5rZXkgKyBkYXRlLmdldEZ1bGxZZWFyKCkgKyBkYXRlLmdldE1vbnRoKClcbiAgICB9XG5cbiAgICBpdGVyU3RhcnQoc3RhcnQpIHtcbiAgICAgICAgcmV0dXJuIERhdGVzLmNyZWF0ZShzdGFydC5nZXRGdWxsWWVhcigpLCBzdGFydC5nZXRNb250aCgpLCAxKVxuICAgIH1cblxuICAgIG5leHQobW9udGgpIHtcbiAgICAgICAgcmV0dXJuIERhdGVzLm5leHRNb250aChtb250aClcbiAgICB9XG59XG5cbmV4cG9ydCBjbGFzcyBEYXlUaWNrcyBleHRlbmRzIFRpY2tzIHtcblxuICAgIGdldCBtaWxsaXNlY29uZHMoKSB7XG4gICAgICAgIHJldHVybiAyNCAqIDYwICogNjAgKiAxMDAwXG4gICAgfVxuXG4gICAgZm9ybWF0KGF2YWlsYWJsZSkge1xuICAgICAgICBsZXQgZm9ybWF0ID0geyBkYXk6ICdudW1lcmljJywgdGltZVpvbmU6ICdVVEMnIH1cbiAgICAgICAgaWYgKGF2YWlsYWJsZSA+IDQ0KVxuICAgICAgICAgICAgZm9ybWF0Lm1vbnRoID0gJ3Nob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CBmb3JtYXQgPSB7fVxuICAgICAgICBpZiAoYXZhaWxhYmxlID4gNDQpIHtcbiAgICAgICAgICAgIGZvcm1hdC5ob3VyID0gJzItZGlnaXQnXG4gICAgICAgIH1cbiAgICAgICAgaWYgKGF2YWlsYWJsZSA+IDEwMCkge1xuICAgICAgICAgICAgZm9ybWF0LmRheSA9ICcyLWRpZ2l0J1xuICAgICAgICAgICAgZm9ybWF0Lm1vbnRoID0gJzItZGlnaXQnXG4gICAgICAgICAgICBmb3JtYXQueWVhciA9ICcyLWRpZ2l0J1xuICAgICAgICB9XG4gICAgICAgIGlmIChhdmFpbGFibGUgPiAxNTApIHtcbiAgICAgICAgICAgIGZvcm1hdC53ZWVrZGF5ID0gJ3Nob3J0J1xuICAgICAgICAgICAgZm9ybWF0Lm1vbnRoID0gJ3Nob3J0J1xuICAgICAgICB9XG4gICAgICAgIGlmIChhdmFpbGFibGUgPiAyMDApIHtcbiAgICAgICAgICAgIGZvcm1hdC5kYXkgPSAnbnVtZXJpYydcbiAgICAgICAgICAgIGZvcm1hdC55ZWFyID0gJ251bWVyaWMnXG4gICAgICAgICAgICBmb3JtYXQubW9udGggPSAnbG9uZydcbiAgICAgICAgICAgIGZvcm1hdC53ZWVrZGF5ID0gJ2xvbmcnXG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIGZvcm1hdFxuICAgIH1cblxuICAgIGdldCBrZXkoKSB7XG4gICAgICAgIHJldHVybiAnaG91cidcbiAgICB9XG5cbiAgICBkYXRlS2V5KGRhdGUpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMua2V5ICsgZGF0ZS5nZXRGdWxsWWVhcigpXG4gICAgICAgICAgICArIGRhdGUuZ2V0TW9udGgoKVxuICAgICAgICAgICAgKyBkYXRlLmdldERhdGUoKVxuICAgICAgICAgICAgKyBkYXRlLmdldEhvdXJzKClcbiAgICB9XG5cbiAgICBpdGVyU3RhcnQoc3RhcnQpIHtcbiAgICAgICAgcmV0dXJuIERhdGVzLmNyZWF0ZShzdGFydC5nZXRGdWxsWWVhcigpLFxuICAgICAgICAgICAgc3RhcnQuZ2V0TW9udGgoKSxcbiAgICAgICAgICAgIHN0YXJ0LmdldERhdGUoKSxcbiAgICAgICAgICAgIHN0YXJ0LmdldEhvdXJzKCkpXG4gICAgfVxuXG4gICAgbmV4dChkYXRlKSB7XG4gICAgICAgIHJldHVybiBEYXRlcy5uZXh0SG91cihkYXRlKVxuICAgIH1cblxuICAgIHRvTG9jYWxlU3RyaW5nKGRhdGUsIGZvcm1hdCkge1xuICAgICAgICByZXR1cm4gZGF0ZS50b0xvY2FsZVRpbWVTdHJpbmcoJ2RlJywgZm9ybWF0KVxuICAgIH1cbn1cblxuZXhwb3J0IGNsYXNzIE1pbnV0ZVRpY2tzIGV4dGVuZHMgVGlja3Mge1xuXG4gICAgZ2V0IG1pbGxpc2Vjb25kcygpIHtcbiAgICAgICAgcmV0dXJuIDYwICogMTAwMFxuICAgIH1cblxuICAgIGZvcm1hdChhdmFpbGFibGUpIHtcbiAgICAgICAgbGV0IGZvcm1hdCA9IHsgbWludXRlOiAnbnVtZXJpYycsIHRpbWVab25lOiAnVVRDJyB9XG4gICAgICAgIGlmIChhdmFpbGFibGUgPiA0NCkge1xuICAgICAgICAgICAgZm9ybWF0LmhvdXIgPSAnbnVtZXJpYydcbiAgICAgICAgICAgIGZvcm1hdC5taW51dGUgPSAnbnVtZXJpYydcbiAgICAgICAgfVxuICAgICAgICBpZiAoYXZhaWxhYmxlID4gMTAwKSB7XG4gICAgICAgICAgICBmb3JtYXQubW9udGggPSAnc2hvcnQnXG4gICAgICAgICAgICBmb3JtYXQueWVhciA9ICcyLWRpZ2l0J1xuICAgICAgICB9XG4gICAgICAgIGlmIChhdmFpbGFibGUgPiAxNTApIHtcbiAgICAgICAgICAgIGZvcm1hdC53ZWVrZGF5ID0gJ3Nob3J0J1xuICAgICAgICB9XG4gICAgICAgIGlmIChhdmFpbGFibGUgPiAyMDApIHtcbiAgICAgICAgICAgIGZvcm1hdC55ZWFyID0gJ251bWVyaWMnXG4gICAgICAgICAgICBmb3JtYXQud2Vla2RheSA9ICdsb25nJ1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBmb3JtYXRcbiAgICB9XG5cbiAgICBnZXQga2V5KCkge1xuICAgICAgICByZXR1cm4gJ21pbnV0ZSdcbiAgICB9XG5cbiAgICBkYXRlS2V5KGRhdGUpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMua2V5ICsgZGF0ZS5nZXRGdWxsWWVhcigpXG4gICAgICAgICAgICArIGRhdGUuZ2V0TW9udGgoKVxuICAgICAgICAgICAgKyBkYXRlLmdldERhdGUoKVxuICAgICAgICAgICAgKyBkYXRlLmdldEhvdXJzKClcbiAgICAgICAgICAgICsgZGF0ZS5nZXRNaW51dGVzKClcbiAgICB9XG5cbiAgICBpdGVyU3RhcnQoc3RhcnQpIHtcbiAgICAgICAgcmV0dXJuIERhdGVzLmNyZWF0ZShzdGFydC5nZXRGdWxsWWVhcigpLFxuICAgICAgICAgICAgc3RhcnQuZ2V0TW9udGgoKSxcbiAgICAgICAgICAgIHN0YXJ0LmdldERhdGUoKSxcbiAgICAgICAgICAgIHN0YXJ0LmdldEhvdXJzKCksXG4gICAgICAgICAgICBzdGFydC5nZXRNaW51dGVzKCkpXG4gICAgfVxuXG4gICAgbmV4dChkYXRlKSB7XG4gICAgICAgIHJldHVybiBEYXRlcy5uZXh0TWludXRlKGRhdGUpXG4gICAgfVxuXG4gICAgdG9Mb2NhbGVTdHJpbmcoZGF0ZSwgZm9ybWF0KSB7XG4gICAgICAgIHJldHVybiBkYXRlLnRvTG9jYWxlVGltZVN0cmluZygnZGUnLCBmb3JtYXQpXG4gICAgfVxufVxuXG5leHBvcnQgY2xhc3MgVGltZVRpY2tzIHtcblxuICAgIGNvbnN0cnVjdG9yKC4uLnRpY2tzKSB7XG4gICAgICAgIHRoaXMudGlja3MgPSB0aWNrc1xuICAgIH1cblxuICAgIHNlbGVjdGVkUmFuZ2UodGltZW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WNrcykge1xuICAgICAgICAgICAgbGV0IGFtb3VudCA9IHRpY2tzLm1pbGxpc2Vjb25kcyAvIGR1cmF0aW9uXG4gICAgICAgICAgICBsZXQgYXZhaWxhYmxlID0gYW1vdW50ICogc2l6ZVxuICAgICAgICAgICAgYXZhaWxhYmxlcy5zZXQodGlja3MsIGF2YWlsYWJsZSlcbiAgICAgICAgICAgIGlmIChhdmFpbGFibGUgPCB0aWNrcy5taW5XaWR0aClcbiAgICAgICAgICAgICAgICBicmVha1xuICAgICAgICAgICAgZm9ybWF0cy5zZXQodGlja3MsIChhdmFpbGFibGUgPCB0aWNrcy5taW5MYWJlbFdpZHRoKSA/IG51bGwgOiB0aWNrcy5mb3JtYXQoYXZhaWxhYmxlKSlcbiAgICAgICAgICAgIG5leHRGb3JtYXRzLnNldChwcmV2aW91cywgZm9ybWF0cy5nZXQodGlja3MpKVxuICAgICAgICAgICAgcHJldmlvdXMgPSB0aWNrc1xuICAgICAgICAgICAgdmlzaWJsZS5wdXNoKHRpY2tzKVxuICAgICAgICB9XG4gICAgICAgIGxldCBsZXZlbCA9IDBcbiAgICAgICAgZm9yIChsZXQgdGlja3Mgb2YgdmlzaWJsZSkge1xuICAgICAgICAgICAgaWYgKHJhbmdlID09IG51bGwpXG4gICAgICAgICAgICAgICAgcmV0dXJuXG4gICAgICAgICAgICByYW5nZSA9IHRpY2tzLmRyYXcodGltZWxpbmUsIHJhbmdlLCB3aWR0aCwgaGVpZ2h0LFxuICAgICAgICAgICAgICAgIGF2YWlsYWJsZXMuZ2V0KHRpY2tzKSxcbiAgICAgICAgICAgICAgICBmb3JtYXRzLmdldCh0aWNrcyksXG4gICAgICAgICAgICAgICAgbmV4dEZvcm1hdHMuZ2V0KHRpY2tzKSwgbGV2ZWwpXG4gICAgICAgICAgICBsZXZlbCArPSAxXG4gICAgICAgIH1cbiAgICB9XG59XG5cbmV4cG9ydCBjbGFzcyBDb2xvclJhbmdlcyB7XG5cbiAgICBjb25zdHJ1Y3RvcihsYWJlbCwgY29sb3IsIHJhbmdlcykge1xuICAgICAgICB0aGlzLmxhYmVsID0gbGFiZWxcbiAgICAgICAgdGhpcy5jb2xvciA9IGNvbG9yXG4gICAgICAgIHRoaXMucmFuZ2VzID0gcmFuZ2VzXG4gICAgfVxuXG4gICAgZHJhdyh0aW1lbGluZSwgd2lkdGgsIGhlaWdodCwgc2l6ZSA9IDEyKSB7XG4gICAgICAgIGxldCBtaW5pbXVtID0gMSAvIENhcGFiaWxpdGllcy5kZXZpY2VQaXhlbFJhdGlvXG4gICAgICAgIGxldCBoMiA9IHNpemVcbiAgICAgICAgdGltZWxpbmUubGluZVN0eWxlKHNpemUsIHRoaXMuY29sb3IpXG4gICAgICAgIGZvciAobGV0IHJhbmdlIG9mIHRoaXMucmFuZ2VzKSB7XG4gICAgICAgICAgICBpZiAocmFuZ2UudG8gPT09IG51bGwpIHtcbiAgICAgICAgICAgICAgICByYW5nZS50byA9IERhdGVzLm5leHREYXkocmFuZ2UuZnJvbSlcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGxldCBzdGFydCA9IHRpbWVsaW5lLnRvWChyYW5nZS5mcm9tKVxuICAgICAgICAgICAgbGV0IGVuZCA9IHRpbWVsaW5lLnRvWChyYW5nZS50bylcbiAgICAgICAgICAgIGlmIChlbmQgPCBzdGFydCArIG1pbmltdW0pIHtcbiAgICAgICAgICAgICAgICBlbmQgPSBzdGFydCArIG1pbmltdW1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHRpbWVsaW5lLm1vdmVUbyhzdGFydCwgaDIpXG4gICAgICAgICAgICB0aW1lbGluZS5saW5lVG8oZW5kLCBoMilcbiAgICAgICAgfVxuICAgIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgVGltZWxpbmUgZXh0ZW5kcyBCaXRtYXBMYWJlbGVkR3JhcGhpY3Mge1xuXG4gICAgY29uc3RydWN0b3Iod2lkdGgsIGhlaWdodCwgeyB0aWNrcyA9IG51bGwsXG4g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3MucHVzaChjYWxsYmFjaylcbiAgICB9XG5cbiAgICBhZGRMb25nUHJlc3NDYWxsYmFjayhjYWxsYmFjaykge1xuICAgICAgICB0aGlzLm9uTG9uZ1ByZXNzQ2FsbGJhY2tzLnB1c2goY2FsbGJhY2spXG4gICAgfVxuXG4gICAgYWRkTGFiZWxzKGxhYmVscykge1xuICAgICAgICB0aGlzLmxhYmVsRGF0ZXMgPSBsYWJlbHNcbiAgICB9XG5cbiAgICByYW5nZShzdGFydCwgZW5kKSB7XG4gICAgICAgIHRoaXMuc3RhcnQgPSBzdGFydFxuICAgICAgICB0aGlzLmVuZCA9IGVuZFxuICAgIH1cblxuICAgIGRyYXcod2lkdGgsIGhlaWdodCkge1xuICAgICAgICB0aGlzLndhbnRlZFdpZHRoID0gd2lkdGhcbiAgICAgICAgdGhpcy53YW50ZWRIZWlnaHQgPSBoZWlnaHRcbiAgICAgICAgdGhpcy5yZWRyYXcoKVxuICAgIH1cblxuICAgIHVwZGF0ZUNvbG9yUmFuZ2VzKHcsIGgpIHtcbiAgICAgICAgbGV0IHh4ID0gdyAtIHRoaXMuaW5zZXRcbiAgICAgICAgbGV0IHNpemUgPSBGb250SW5mby5zbWFsbC5mb250U2l6ZVxuICAgICAgICBsZXQgeXkgPSBoIC0gc2l6ZVxuICAgICAgICBmb3IgKGxldCBpID0gdGhpcy5jb2xvclJhbmdlcy5sZW5ndGggLSAxOyBpID49IDA7IGktLSkge1xuICAgICAgICAgICAgbGV0IGNyID0gdGhpcy5jb2xvclJhbmdlc1tpXVxuICAgICAgICAgICAgbGV0IGxhYmVsID0gY3IubGFiZWxcbiAgICAgICAgICAgIGNyLmRyYXcodGhpcywgdywgaClcbiAgICAgICAgICAgIGxldCBjdXJyZW50ID0gdGhpcy5lbnN1cmVMYWJlbCgnY29sb3JSYW5nZTonICsgbGFiZWwsIGxhYmVsLFxuICAgICAgICAgICAgICAgIHsgeDogeHgsIHk6IHl5LCBhbGlnbjogJ3JpZ2h0JyB9LCBGb250SW5mby5zbWFsbClcbiAgICAgICAgICAgIGxldCByID0gY3VycmVudC5nZXRCb3VuZHMoKVxuICAgICAgICAgICAgeHggLT0gci53aWR0aCArIDE2XG5cbiAgICAgICAgICAgIHRoaXMubGluZVN0eWxlKHNpemUsIGNyLmNvbG9yKVxuICAgICAgICAgICAgdGhpcy5tb3ZlVG8oeHgsIHl5KVxuICAgICAgICAgICAgdGhpcy5saW5lVG8oeHggKyBzaXplLCB5eSlcbiAgICAgICAgICAgIHh4IC09IHNpemUgKyA0XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBkcmF3U2VsZWN0ZWRSYW1nZShzZWxlY3RlZCkge1xuICAgICAgICB0aGlzLmxpbmVTdHlsZSgyLCBhcHAudGhlbWUucHJpbWFyeUNvbG9yKVxuICAgICAgICBsZXQgc3RhcnQgPSB0aGlzLnRvWChzZWxlY3RlZFswXSlcbiAgICAgICAgbGV0IGVuZCA9IHRoaXMudG9YKHNlbGVjdGVkWzFdKVxuICAgICAgICB0aGlzLm1vdmVUbyhzdGFydCwgMClcbiAgICAgICAgdGhpcy5saW5lVG8oZW5kLCAwKVxuICAgICAgICB0aGlzLmRyYXdUaWNrKHN0YXJ0LCAtMS41LCAwKVxuICAgICAgICB0aGlzLmRyYXdUaWNrKGVuZCwgLTEuNSwgMClcbiAgICB9XG5cbiAgICByZWRyYXcoKSB7XG4gICAgICAgIHRoaXMuY2xlYXIoKVxuICAgICAgICBsZXQgaCA9IHRoaXMud2FudGVkSGVpZ2h0XG4gICAgICAgIGxldCB3ID0gdGhpcy53YW50ZWRXaWR0aFxuICAgICAgICBsZXQgeSA9IHRoaXMuZ2V0WSgpXG4gICAgICAgIHRoaXMucHJlcGFyZUxhYmVscygpXG4gICAgICAgIHRoaXMudXBkYXRlQ29sb3JSYW5nZXModywgaClcblxuICAgICAgICB0aGlzLmxpbmVTdHlsZSgyLCAweEZGRkZGRilcbiAgICAgICAgaWYgKHRoaXMuc3RhcnQgIT0gbnVsbCAmJiB0aGlzLmVuZCAhPSBudWxsKSB7XG4gICAgICAgICAgICB0aGlzLm1vdmVUbyh0aGlzLnRvWCh0aGlzLnN0YXJ0KSwgeSlcbiAgICAgICAgICAgIHRoaXMubGluZVRvKHRoaXMudG9YKHRoaXMuZW5kKSwgeSlcbiAgICAgICAgICAgIHRoaXMudXBkYXRlVGlja3NBbmRMYWJlbHModywgaClcbiAgICAgICAgICAgIHRoaXMudXBkYXRlU2VsZWN0aW9uKClcbiAgICAgICAgICAgIGxldCBzZWxlY3RlZCA9IHRoaXMuc2VsZWN0aW9uXG4gICAgICAgICAgICBpZiAoc2VsZWN0ZWRbMF0gIT0gdGhpcy5zdGFydCAmJiBzZWxlY3RlZFsxXSAhPSB0aGlzLmVuZCkge1xuICAgICAgICAgICAgICAgIGlmICh0aGlzLnNob3dSYW5nZSlcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5kcmF3U2VsZWN0ZWRSYW1nZShzZWxlY3RlZClcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGZvciAobGV0IGNhbGxiYWNrIG9mIHRoaXMuY2FsbGJhY2tzKSB7XG4gICAgICAgICAgICAgICAgY2FsbGJhY2sodGhpcy5zY3JvbGwsIHRoaXMuem9vbSwgdGhpcy5zZWxlY3Rpb24pXG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICB0aGlzLm1vdmVUbyh0aGlzLmluc2V0LCB5KVxuICAgICAgICAgICAgdGhpcy5saW5lVG8odyAtIHRoaXMuaW5zZXQsIHkpXG4gICAgICAgIH1cblxuICAgICAgICBpZiAodGhpcy5wcm9ncmVzcyAhPSBudWxsICYmIHRoaXMucHJvZ3Jlc3MgPCAxKSB7XG4gICAgICAgICAgICB0aGlzLmxpbmVTdHlsZSgyLCAweENDQ0NGRilcbiAgICAgICAgICAgIHRoaXMubW92ZVRvKHRoaXMuaW5zZXQsIHkpXG4gICAgICAgICAgICB0aGlzLmxpbmVUbygodyAtIHRo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LmRyYXcodGhpcywgd2lkdGgsIGhlaWdodClcbiAgICAgICAgdGhpcy51cGRhdGVMYWJlbHMod2lkdGgsIGhlaWdodClcbiAgICB9XG5cbiAgICB2aXNpYmxlRGF0ZShkYXRlLCBvZmZzZXQgPSAwKSB7XG4gICAgICAgIGlmIChkYXRlID49IHRoaXMuc3RhcnQgJiYgZGF0ZSA8PSB0aGlzLmVuZCkge1xuICAgICAgICAgICAgbGV0IHggPSB0aGlzLnRvWChkYXRlKSArIG9mZnNldFxuICAgICAgICAgICAgcmV0dXJuICh4ID4gMCAmJiB4IDwgdGhpcy53YW50ZWRXaWR0aClcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gZmFsc2VcbiAgICB9XG5cbiAgICB2aXNpYmxlUmFuZ2Uoc3RhcnQsIGVuZCkge1xuICAgICAgICBsZXQgeCA9IHRoaXMudG9YKHN0YXJ0KVxuICAgICAgICBpZiAoeCA+IHRoaXMud2FudGVkV2lkdGgpXG4gICAgICAgICAgICByZXR1cm4gZmFsc2VcbiAgICAgICAgeCA9IHRoaXMudG9YKGVuZClcbiAgICAgICAgaWYgKHggPCAwKVxuICAgICAgICAgICAgcmV0dXJuIGZhbHNlXG4gICAgICAgIHJldHVybiB0cnVlXG4gICAgfVxuXG4gICAgdGlja0xhYmVsT2Zmc2V0KGRpcmVjdGlvbiA9IDEsIGxldmVsID0gMCkge1xuICAgICAgICBsZXQgZnMgPSBGb250SW5mby5zbWFsbC5mb250U2l6ZVxuICAgICAgICBsZXQgZGggPSBmcyArIChsZXZlbCAqIChmcyArIDIpKVxuICAgICAgICByZXR1cm4gdGhpcy5kaXJlY3Rpb24gKiBkaXJlY3Rpb24gKiBkaFxuICAgIH1cblxuICAgIHVwZGF0ZUxhYmVscyh3aWR0aCwgaGVpZ2h0KSB7XG4gICAgICAgIGxldCBoMiA9IGhlaWdodCAvIDJcbiAgICAgICAgaWYgKHRoaXMubGFiZWxEYXRlcykge1xuICAgICAgICAgICAgbGV0IGxhc3QgPSBudWxsXG4gICAgICAgICAgICBsZXQgeSA9IGgyICsgdGhpcy50aWNrTGFiZWxPZmZzZXQoKVxuICAgICAgICAgICAgZm9yIChsZXQgaSA9IHRoaXMubGFiZWxEYXRlcy5sZW5ndGggLSAxOyBpID49IDA7IGktLSkge1xuICAgICAgICAgICAgICAgIGxldCBbbGFiZWwsIGRhdGVdID0gdGhpcy5sYWJlbERhdGVzW2ldXG4gICAgICAgICAgICAgICAgbGV0IGFsaWduID0gJ2NlbnRlcicgLy8gKGxhc3QgPT0gbnVsbCkgPyAncmlnaHQnIDogJ2xlZnQnXG4gICAgICAgICAgICAgICAgbGV0IHggPSB0aGlzLnRvWChkYXRlKVxuICAgICAgICAgICAgICAgIGxldCBjdXJyZW50ID0gdGhpcy5lbnN1cmVMYWJlbCh0aGlzLmxhYmVsUHJlZml4ICsgbGFiZWwsIGxhYmVsLFxuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICB4OiB4LCB5OiB5LFxuICAgICAgICAgICAgICAgICAgICAgICAgYWxpZ25cbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgRm9udEluZm8uc21hbGwpXG4gICAgICAgICAgICAgICAgbGV0IHIgPSBjdXJyZW50LmdldEJvdW5kcygpXG4gICAgICAgICAgICAgICAgY3VycmVudC52aXNpYmxlID0gIShsYXN0ICE9IG51bGwgJiYgci54ICsgci53aWR0aCA+IGxhc3QueClcbiAgICAgICAgICAgICAgICBpZiAoY3VycmVudC52aXNpYmxlKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZHJhd1RpY2soeCwgLTEpXG4gICAgICAgICAgICAgICAgICAgIGxhc3QgPSByXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgbGV0IHN0YXJ0ID0gdGhpcy5zdGFydC50b0xvY2FsZURhdGVTdHJpbmcoJ2RlJywg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uICAgICAgICBmb3IobGV0IGtleSBvZiBpbnRlcmFjdGlvbi5lbmRlZC5rZXlzKCkpIHtcbiAgICAgICAgICAgIGlmIChpbnRlcmFjdGlvbi5pc0RvdWJsZVRhcChrZXkpKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5vbkRvdWJsZVRhcChldmVudCwgaW50ZXJhY3Rpb24sIGtleSlcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2UgaWYgKGludGVyYWN0aW9uLmlzVGFwKGtleSkpIHtcbiAgICAgICAgICAgICAgICB0aGlzLm9uVGFwKGV2ZW50LCBpbnRlcmFjdGlvbiwga2V5KVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSBpZiAoaW50ZXJhY3Rpb24uaXNMb25nUHJlc3Moa2V5KSkge1xuICAgICAgICAgICAgICAgIHRoaXMub25Mb25nUHJlc3MoZXZlbnQsIGludGVyYWN0aW9uLCBrZXkpXG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBvbkxvbmdQcmVzcyhldmVudCwgaW50ZXJhY3Rpb24sIGtleSkge1xuICAgICAgICBmb3IobGV0IGNhbGxiYWNrIG9mIHRoaXMub25Mb25nUHJlc3NDYWxsYmFja3MpIHtcbiAgICAgICAgICAgIGNhbGxiYWNrKGV2ZW50LCBpbnRlcmFjdGlvbiwga2V5KVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgb25UYXAoZXZlbnQsIGludGVyYWN0aW9uLCBrZXkpIHtcbiAgICAgICAgZm9yKGxldCBjYWxsYmFjayBvZiB0aGlzLm9uVGFwQ2FsbGJhY2tzKSB7XG4gICAgICAgICAgICBjYWxsYmFjayhldmVudCwgaW50ZXJhY3Rpb24sIGtleSlcbiAgICAgICAgfVxuICAgIH1cblxuICAgIG9uRG91YmxlVGFwKGV2ZW50LCBpbnRlcmFjdGlvbiwga2V5KSB7XG4gICAgICAgIGZvcihsZXQgY2FsbGJhY2sgb2YgdGhpcy5vbkRvdWJsZVRhcENhbGxiYWNrcykge1xuICAgICAgICAgICAgY2FsbGJhY2soZXZlbnQsIGludGVyYWN0aW9uLCBrZXkpXG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBfc2Nyb2xsTWluaW11bShib3VuZGVkKSB7XG4gICAgICAgIGxldCB0b3RhbCA9IHRoaXMudG90YWxXaWR0aChib3VuZGVkKVxuICAgICAgICByZXR1cm4gLXRvdGFsICsgdGhpcy53YW50ZWRXaWR0aCAtIDIgKiB0aGlzLmluc2V0XG4gICAgfVxuXG4gICAgX3Njcm9sbE1heGltdW0oYm91bmRlZCkge1xuICAgICAgICBsZXQgdG90YWwgPSB0aGlzLnRvdGFsV2lkdGgoYm91bmRlZClcbiAgICAgICAgbGV0IGxpbWl0ID0gdGhpcy53YW50ZWRXaWR0aFxuICAgICAgICBpZiAodG90YWwgPiBsaW1pdClcbiAgICAgICAgICAgIHJldHVybiAwXG4gICAgICAgIGxldCB3ID0gbGltaXQgLSAyICogdGhpcy5pbnNldFxuICAgICAgICByZXR1cm4gKHcgLSB0b3RhbCkgLyAyXG4gICAgfVxuXG4gICAgc2Nyb2xsTWluaW11bShib3VuZGVkKSB7XG4gICAgICAgIHJldHVybiB0aGlzLl9zY3JvbGxNaW5pbXVtKGJvdW5kZWQpIC0gdGhpcy5leHRyYVJpZ2h0XG4gICAgfVxuXG4gICAgc2Nyb2xsTWF4aW11bShib3VuZGVkKSB7XG4gICAgICAgIHJldHVybiB0aGlzLl9zY3JvbGxNYXhpbXVtKGJvdW5kZWQpICsgdGhpcy5leHRyYUxlZnRcbiAgICB9XG5cbiAgICBraWxsVHdlZW5zKCkge1xuICAgICAgICBUd2VlbkxpdGUua2lsbFR3ZWVuc09mKHRoaXMpXG4gICAgICAgIHRoaXMuYXV0b1Njcm9sbCA9IGZhbHNlXG4gICAgfVxuXG5cbiAgICB2YWxpZFNjcm9sbChib3VuZGVkID0gdHJ1ZSkge1xuICAgICAgICBsZXQgbWluaW11bSA9IHRoaXMuc2Nyb2xsTWluaW11bShib3VuZGVkKVxuICAgICAgICBsZXQgbWF4aW11bSA9IHRoaXMuc2Nyb2xsTWF4aW11bShib3VuZGVkKVxuICAgICAgICBpZiAodGhpcy5zY3JvbGwgPCBtaW5pbXVtKSB7XG4gICAgICAgICAgICB0aGlzLnNjcm9sbCA9IG1pbmltdW1cbiAgICAgICAgfVxuICAgICAgICBpZiAodGhpcy5zY3JvbGwgPiBtYXhpbXVtKSB7XG4gICAgICAgICAgICB0aGlzLnNjcm9sbCA9IG1heGltdW1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIGtlZXBJbkJvdW5kcyhkZWx0YSwgYW5jaG9yKSB7XG4gICAgICAgIGxldCBib3VuZGVkID0gdHJ1ZVxuICAgICAgICBsZXQgbWluaW11bSA9IHRoaXMuc2Nyb2xsTWluaW11bShib3VuZGVkKVxuICAgICAgICBsZXQgbWF4aW11bSA9IHRoaXMuc2Nyb2xsTWF4aW11bShib3VuZGVkKVxuICAgICAgICBsZXQgdHdlZW5zID0ge31cbiAgICAgICAgaWYgKHRoaXMuem9vbSA+IHRoaXMubWF4Wm9vbSkge1xuICAgICAgICAgICAgdHdlZW5zLnpvb20gPSB0aGlzLm1heFpvb21cbiAgICAgICAgICAgIGxldCBkYXRlID0gdGhpcy5mcm9tWChhbmNob3IueClcbiAgICAgICAgICAgIGxldCBvbGRab29tID0gdGhpcy56b29tXG4gICAgICAgICAgICB0aGlzLnpvb20gPSB0aGlzLm1heFpvb21cbiAgICAgICAgICAgIGxldCBuZXdYID0gdGhpcy50b1goZGF0ZSlcbiAgICAgICAgICAgIHR3ZWVucy5zY3JvbGwgPSB0aGlzLnNjcm9sbCArIGFuY2hvci54IC0gbmV3WFxuICAgICAgICAgICAgdGhpcy56b29tID0gb2xkWm9vbVxuICAgICAgICB9XG4gICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgaWYgKHRoaXMuem9vbSA8IHRoaXMubWluWm9vbSkge1xuICAgICAgICAgICAgICAgIHR3ZWVucy56b29tID0gdGhpcy5taW5ab29tXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAodGhpcy5zY3JvbGwgPiBtYXhpbXVtKSB7XG4gICAgICAgICAgICAgICAgdHdlZW5zLnNjcm9sbCA9IG1heGltdW1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmICh0aGlzLnNjcm9sbCA8IG1pbmltdW0pIHtcbiAgICAgICAgICAgICAgICB0d2VlbnMuc2Nyb2xsID0gbWluaW11bVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGlmICghaXNFbXB0eSh0d2VlbnMpKSB7XG4gICAgICAgICAgICB0d2VlbnMub25VcGRhdGUgPSAoKSA9PiB7IHRoaXMucmVkcmF3KCkgfVxuICAgICAgICAgICAgVHdlZW5MaXRlLnRvKHRoaXMsIDAuNSwgdHdlZW5zKS5kZWxheSgwLjEpXG4gICAgICAgICAgICByZXR1cm5cbiAgICAgICAgfVxuICAgICAgICB0aGlzLnNjcm9sbCArPSBkZWx0YVxuICAgICAgICBkZWx0YSAqPSAwLjk4NVxuICAgICAgICB0aGlzLnJlZHJhdygpXG4gICAgICAgIGlmIChNYXRoLmFicyhkZWx0YSkgPiAxICYmIHRoaXMuYXV0b1Njcm9sbCkge1xuICAgICAgICAgICAgc2V0VGltZW91dCgoKSA9PiB0aGlzLmtlZXBJbkJvdW5kcyhkZWx0YSwgYW5jaG9yKSwgMTAwMCAvIDEwMClcbiAgICAgICAgfVxuICAgIH1cblxuICAgIG9uTW91c2VXaGVlbChldmVudCkge1xuICAgICAgICB0aGlzLmtpbGxUd2VlbnMoKVxuICAgICAgICBsZXQgZGlyZWN0aW9uID0gZXZlbnQuZGV0YWlsIDwgMCB8fCBldmVudC53aGVlbERlbHRhID4gMFxuICAgICAgICBsZXQgYW5jaG9yID0geyB4OiBldmVudC5jbGllbnRYLCB5OiBldmVudC5jbGllbnRZIH1cbiAgICAgICAgY29uc3Qgem9vbUZhY3RvciA9IDEuNVxuICAg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SBPYmplY3QuYXNzaWduKHt9LCB7XG4gICAgICAgICAgICBpZDogUElYSS51dGlscy51aWQoKSxcbiAgICAgICAgICAgIHg6IDAsXG4gICAgICAgICAgICB5OiAwLFxuICAgICAgICAgICAgd2lkdGg6IDI1MCxcbiAgICAgICAgICAgIGhlaWdodDogMixcbiAgICAgICAgICAgIGNvbnRhaW5lcjogbnVsbCxcbiAgICAgICAgICAgIGZpbGw6IHRoZW1lLmZpbGwsXG4gICAgICAgICAgICBmaWxsQWxwaGE6IHRoZW1lLmZpbGxBbHBoYSxcbiAgICAgICAgICAgIHN0cm9rZTogdGhlbWUuc3Ryb2tlLFxuICAgICAgICAgICAgc3Ryb2tlV2lkdGg6IHRoZW1lLnN0cm9rZVdpZHRoLFxuICAgICAgICAgICAgc3Ryb2tlQWxwaGE6IHRoZW1lLnN0cm9rZUFscGhhLFxuICAgICAgICAgICAgY29udHJvbEZpbGw6IHRoZW1lLmZpbGwsXG4gICAgICAgICAgICBjb250cm9sRmlsbEFscGhhOiAuNSxcbiAgICAgICAgICAgIGNvbnRyb2xTdHJva2U6IHRoZW1lLnByaW1hcnlDb2xvcixcbiAgICAgICAgICAgIGNvbnRyb2xTdHJva2VXaWR0aDogMixcbiAgICAgICAgICAgIGNvbnRyb2xTdHJva2VBbHBoYTogdGhlbWUuc3Ryb2tlQWxwaGEsXG4gICAgICAgICAgICBjb250cm9sUmFkaXVzOiAxNixcbiAgICAgICAgICAgIG9yaWVudGF0aW9uOiAnaG9yaXpvbnRhbCcsXG4gICAgICAgICAgICBtaW46IDAsXG4gICAgICAgICAgICBtYXg6IDEwMCxcbiAgICAgICAgICAgIHZhbHVlOiAwLFxuICAgICAgICAgICAgZGlzYWJsZWQ6IGZhbHNlLFxuICAgICAgICAgICAgb25TdGFydDogbnVsbCxcbiAgICAgICAgICAgIG9uVXBkYXRlOiBudWxsLFxuICAgICAgICAgICAgb25Db21wbGV0ZTogbnVsbCxcbiAgICAgICAgICAgIHRvb2x0aXA6IG51bGwsXG4gICAgICAgICAgICB2aXNpYmxlOiB0cnVlXG4gICAgICAgIH0sIG9wdHMpXG4gICAgICAgIFxuICAgICAgICB0aGlzLm9wdHMuY29udGFpbmVyID0gdGhpcy5vcHRzLmNvbnRhaW5lciB8fCB0aGlzXG5cbiAgICAgICAgLy8gVmFsaWRhdGlvblxuICAgICAgICAvLy0tLS0tLS0tLS0tLS0tLS0tXG4gICAgICAgIGlmICh0aGlzLm9wdHMuaGVpZ2h0ID4gdGhpcy5vcHRzLndpZHRoKSB7XG4gICAgICAgICAgICB0aGlzLm9wdHMuaGVpZ2h0ID0gdGhpcy5vcHRzLndpZHRoXG4gICAgICAgIH1cblxuICAgICAgICBpZiAodGhpcy5vcHRzLnZhbHVlIDwgdGhpcy5vcHRzLm1pbikge1xuICAgICAgICAgICAgdGhpcy5vcHRzLnZhbHVlID0gdGhpcy5vcHRzLm1pblxuICAgICAgICB9XG5cbiAgICAgICAgaWYgKHRoaXMub3B0cy52YWx1ZSA+IHRoaXMub3B0cy5tYXgpIHtcbiAgICAgICAgICAgIHRoaXMub3B0cy52YWx1ZSA9IHRoaXMub3B0cy5tYXhcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIFByb3BlcnRpZXNcbiAgICAgICAgLy8tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAgICB0aGlzLmlkID0gdGhpcy5vcHRzLmlkXG4gICAgICAgIHRoaXMucmFkaXVzID0gdGhpcy5vcHRzLmhlaWdodCAvIDJcblxuICAgICAgICB0aGlzLl92YWx1ZSA9IHRoaXMub3B0cy52YWx1ZVxuICAgICAgICB0aGlzLl9kaXNhYmxlZCA9IG51bGxcblxuICAgICAgICB0aGlzLnNsaWRlck9iaiA9IG51bGxcbiAgICAgICAgdGhpcy5jb250cm9sID0gbnVsbFxuICAgICAgICB0aGlzLnRvb2x0aXAgPSBudWxsXG4gICAgICAgIFxuICAgICAgICB0aGlzLnZpc2libGUgPSB0aGlzLm9wdHMudmlzaWJsZVxuXG4gICAgICA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ICAgICAgICAgICAgICAgIGlmICh0aGlzLm9wdHMub25VcGRhdGUpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5vcHRzLm9uVXBkYXRlLmNhbGwodGhpcywgZSwgdGhpcylcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pXG5cbiAgICAgICAgaWYgKGNvbnRhaW5lciBpbnN0YW5jZW9mIEVsZW1lbnQpIHtcbiAgICAgICAgICAgIGNvbnRhaW5lci5hZGRFdmVudExpc3RlbmVyKCdwb2ludGVydXAnLCBlID0+IHRoaXMub25FbmQoZSksIGZhbHNlKVxuICAgICAgICAgICAgY29udGFpbmVyLmFkZEV2ZW50TGlzdGVuZXIoJ3BvaW50ZXJjYW5jZWwnLCBlID0+IHRoaXMub25FbmQoZSksIGZhbHNlKVxuICAgICAgICAgICAgY29udGFpbmVyLmFkZEV2ZW50TGlzdGVuZXIoJ3BvaW50ZXJsZWF2ZScsIGUgPT4gdGhpcy5vbkVuZChlKSwgZmFsc2UpXG4gICAgICAgICAgICBjb250YWluZXIuYWRkRXZlbnRMaXN0ZW5lcigncG9pbnRlcm91dCcsIGUgPT4gdGhpcy5vbkVuZChlKSwgZmFsc2UpXG4gICAgICAgICAgICBjb250YWluZXIuYWRkRXZlbnRMaXN0ZW5lcignbW91c2V1cCcsIGUgPT4gdGhpcy5vbkVuZChlKSwgZmFsc2UpXG4gICAgICAgICAgICBjb250YWluZXIuYWRkRXZlbnRMaXN0ZW5lcignbW91c2VjYW5jZWwnLCBlID0+IHRoaXMub25FbmQoZSksIGZhbHNlKVxuICAgICAgICAgICAgY29udGFpbmVyLmFkZEV2ZW50TGlzdGVuZXIoJ21vdXNlbGVhdmUnLCBlID0+IHRoaXMub25FbmQoZSksIGZhbHNlKVxuICAgICAgICAgICAgY29udGFpbmVyLmFkZEV2ZW50TGlzdGVuZXIoJ21vdXNlb3V0JywgZSA9PiB0aGlzLm9uRW5kKGUpLCBmYWxzZSlcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGNvbnRhaW5lci5pbnRlcmFjdGl2ZSA9IHRydWVcbiAgICAgICAgICAgIGNvbnRhaW5lci5vbigncG9pbnRlcnVwJywgZSA9PiB0aGlzLm9uRW5kKGUpKVxuICAgICAgICAgICAgY29udGFpbmVyLm9uKCdwb2ludGVyY2FuY2VsJywgZSA9PiB0aGlzLm9uRW5kKGUpKVxuICAgICAgICAgICAgY29udGFpbmVyLm9uKCdwb2ludGVybGVhdmUnLCBlID0+IHRoaXMub25FbmQoZSkpXG4gICAgICAgICAgICBjb250YWluZXIub24oJ3BvaW50ZXJvdXQnLCBlID0+IHRoaXMub25FbmQoZSkpXG4gICAgICAgIH1cblxuICAgICAgICAvLyBTbGlkZXJcbiAgICAgICAgLy8tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAgICBsZXQgc2xpZGVyT2JqID0gbmV3IFBJWEkuR3JhcGhpY3MoKVxuICAgICAgICB0aGlzLnNsaWRlck9iaiA9IHNsaWRlck9ialxuICAgICAgICB0aGlzLmFkZENoaWxkKHNsaWRlck9iailcblxuICAgICAgICAvLyBDb250cm9sXG4gICAgICAgIC8vLS0tLS0tLS0tLS0tLS0tLS1cbiAgICAgICAgbGV0IGNvbnRyb2wgPSBuZXcgUElYSS5HcmFwaGljcygpXG4gICAgICAgIGNvbnRyb2wueCA9IHRoaXMub3B0cy5jb250cm9sUmFkaXVzICsgdGhpcy52YWx1ZVRvUGl4ZWwodGhpcy5vcHRzLnZhbHVlKVxuICAgICAgICBjb250cm9sLnkgPSB0aGlzLm9wdHMuY29udHJvbFJhZGl1c1xuXG4gICAgICAgIC8vIHBvaW50ZXJkb3duIG9uIHRoZSBjb250cm9sIGZvciBkcmFnbmRyb3BcbiAgICAgICAgY29udHJvbC5vbigncG9pbnRlcmRvd24nLCBlID0+IHtcbiAgICAgICAgICAgIGNvbnRyb2wuZXZlbnQgPSBlXG4gICAgICAgICAgICBjb250cm9sLmRlbHRhID0gZS5kYXRhLmdldExvY2FsUG9zaXRpb24odGhpcy5jb250cm9sKS54XG4gICAgICAgICAgICBjb250cm9sLmRyYWdnaW5nID0gdHJ1ZVxuICAgICAgICAgICAgXG4gICAgICAgICAgICBpZiAodGhpcy5vcHRzLm9uU3RhcnQpIHtcbiAgICAgICAgICAgICAgICB0aGlzLm9wdHMub25TdGFydC5jYWxsKHRoaXMsIGUsIHRoaXMpXG4gICAgICAgICAgICB9XG4gICAgICAgIH0pXG5cbiAgICAgICAgdGhpcy5jb250cm9sID0gY29udHJvbFxuXG4gICAgICAgIHRoaXMuYWRkQ2hpbGQodGhpcy5jb250cm9sKVxuICAgICAgICBcbiAgICAgICAgLy8gaW50ZXJhY3Rpb25cbiAgICAgICAgLy8tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAgICB0aGlzLnNsaWRlck9iai5vbigncG9pbnRlcm92ZXInLCBlID0+IHtcbiAgICAgICAgICAgIFR3ZWVuTGl0ZS50byh0aGlzLmNvbnRyb2wsIHRoaXMudGhlbWUuZmFzdCwge2FscGhhOiAuODN9KVxuICAgICAgICB9KVxuXG4gICAgICAgIHRoaXMuc2xpZGVyT2JqLm9uKCdwb2ludGVyb3V0JywgZSA9PiB7XG4gICAgICAgICAgICBUd2VlbkxpdGUudG8odGhpcy5jb250cm9sLCB0aGlzLnRoZW1lLmZhc3QsIHthbHBoYTogMX0pXG4gICAgICAgIH0pXG5cbiAgICAgICAgdGhpcy5zbGlkZXJPYmoub24oJ3BvaW50ZXJkb3duJywgZSA9PiB7XG4gICAgICAgICAgICB0aGlzLnNsaWRlck9iai5wb2ludGVyZG93bmVkID0gdHJ1ZVxuICAgICAgICAgICAgVHdlZW5MaXRlLnRvKHRoaXMuY29udHJvbCwgdGhpcy50aGVtZS5mYXN0LCB7YWxwaGE6IC43fSlcbiAgICAgICAgfSlcblxuICAgICAgICAvLyBDbGljayBvbiB0aGUgc2xpZGVyIGJhclxuICAgICAgICB0aGlzLnNsaWRlck9iai5vbigncG9pbnRlcnVwJywgZSA9PiB7XG4gICAgICAgICAgICBpZiAodGhpcy5zbGlkZXJPYmoucG9pbnRlcmRvd25lZCkge1xuICAgICAgICAgICAgICAgIHRoaXMuc2xpZGVyT2JqLnBvaW50ZXJkb3duZWQgPSBmYWxzZVxuICAgICAgICAgICAgICAgIGNvbnN0IHBvc2l0aW9uID0gZS5kYXRhLmdldExvY2FsUG9zaXRpb24odGhpcy5jb250cm9sLnBhcmVudClcbiAgICAgICAgICAgICAgICB0aGlzLnZhbHVlID0gdGhpcy5waXhlbFRvVmFsdWUocG9zaXRpb24ueCAtIHRoaXMub3B0cy5jb250cm9sUmFkaXVzKVxuICAgICAgICAgICAgICAgIFR3ZWVuTGl0ZS50byh0aGlzLmNvbnRyb2wsIHRoaXMudGhlbWUuZmFzdCwge2FscGhhOiAuODN9KVxuICAgICAgICAgICAgfVxuICAgICAgICB9KVxuXG4gICAgICAgIC8vIGRpc2FibGVkXG4gICAgICAgIC8vLS0tLS0tLS0tLS0tLS0tLS1cbiAgICAgICAgdGhpcy5kaXNhYmxlZCA9IHRoaXMub3B0cy5kaXNhYmxlZFxuICAgICAgICBcbiAgICAgICAgLy8gdG9vbHRpcFxuICAgICAgICAvLy0tLS0tLS0tLS0tLS0tLS0tXG4gICAgICAgIGlmICh0aGlzLm9wdHMudG9vbHRpcCkge1xuICAgICAgICAgICAgaWYgKHR5cGVvZiB0aGlzLm9wdHMudG9vbHRpcCA9PT0gJ3N0cmluZycpIHtcbiAgICAgICAgICAgICAgICB0aGlzLnRvb2x0aXAgPSBuZXcgVG9vbHRpcCh7XG4gICAgICAgICAgICAgICAgICAgIG9iamVjdDogdGhpcyxcbiAgICAgICAgICAgICAgICAgICAgY29udGVudDogdGhpcy5vcHRzLnRvb2x0aXBcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aGlzLm9wdHMudG9vbHRpcC5vYmplY3QgPSB0aGlzXG4gICAgICAgICAgICAgICAgdGhpcy50b29sdGlwID0gbmV3IFRvb2x0aXAodGhpcy5vcHRzLnRvb2x0aXApXG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gdGhpc1xuICAgIH1cbiAgICBcbiAgICAvKipcbiAgICAgKiBTaG91bGQgYmUgY2FsbGVkIHRvIHJlZnJlc2ggdGhlIGxheW91dCBvZiB0aGUgc2xpZGVyLiBDYW4gYmUgdXNlZCBhZnRlciByZXNpemluZy5cbiAgICAgKiBcbiAgICAgKiBAcmV0dXJuIHtTbGlkZXJ9IEEgcmVmZXJlbmNlIHRvIHRoZSBzbGlkZXIgZm9yIGNoYWluaW5nLlxuICAgICAqL1xuICAgIGxheW91dCgpIHtcbiAgICAgICAgXG4gICAgICAgIC8vIHNldCBwb3NpdGlvblxuICAgICAgICAvLy0tLS0tLS0tLS0tLS0tLS0tXG4gICAgICAgIHRoaXMucG9zaXRpb24uc2V0KHRoaXMub3B0cy54LCB0aGlzLm9wdHMueSlcblxuICAgICAgICAvLyBkcmF3XG4gICAgICAgIC8vLS0tLS0tLS0tLS0tLS0tLS1cbiAgICAgICAgdGhpcy5kcmF3KClcblxuICAgICAgICByZXR1cm4gdGhpc1xuICAgIH1cbiAgICBcbiAgICAvKipcbiAgICAgKiBEcmF3cyB0aGUgc2xpZGVyIHRvIHRoZSBjYW52YXMuXG4gICAgICogXG4gICAgICogQHByaXZhdGVcbiAgICAgKiBAcmV0dXJuIHtTbGlkZXJ9IEEgcmVmZXJlbmNlIHRvIHRoZSBzbGlkZXIgZm9yIGNoYWluaW5nLlxuICAgICAqL1xuICAgIGRyYXcoKSB7XG5cbiAgICAgICAgY29uc3QgciA9IHRoaXMucmFkaXVzXG4gICAgICAgIGNvbnN0IGNyID0gdGhpcy5vcHRzLmNvbnRyb2xSYWRpdXNcbiAgICAgICAgY29uc3QgdyA9IHRoaXMub3B0cy53aWR0aFxuICAgICAgICBjb25zdCBoID0gdGhpcy5vcHRzLmhlaWdodFxuICAgIC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9sLCB0aGlzLnRoZW1lLmZhc3QsIHthbHBoYTogMX0pXG4gICAgICAgIH0pXG5cbiAgICAgICAgdGhpcy5zd2l0Y2hPYmoub24oJ3BvaW50ZXJkb3duJywgZSA9PiB7XG4gICAgICAgICAgICBUd2VlbkxpdGUudG8odGhpcy5jb250cm9sLCB0aGlzLnRoZW1lLmZhc3QsIHthbHBoYTogLjd9KVxuICAgICAgICB9KVxuXG4gICAgICAgIHRoaXMuc3dpdGNoT2JqLm9uKCdwb2ludGVydXAnLCBlID0+IHtcblxuICAgICAgICAgICAgaWYgKHRoaXMub3B0cy5iZWZvcmVBY3Rpb24pIHtcbiAgICAgICAgICAgICAgICB0aGlzLm9wdHMuYmVmb3JlQWN0aW9uLmNhbGwodGhpcywgZSwgdGhpcylcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgdGhpcy5hY3RpdmUgPSAhdGhpcy5hY3RpdmVcblxuICAgICAgICAgICAgaWYgKHRoaXMuYWN0aXZlKSB7XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMub3B0cy5hY3Rpb24pIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5vcHRzLmFjdGlvbi5jYWxsKHRoaXMsIGUsIHRoaXMpXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5vcHRzLmFjdGlvbkFjdGl2ZSkge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLm9wdHMuYWN0aW9uQWN0aXZlLmNhbGwodGhpcywgZSwgdGhpcylcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIFR3ZWVuTGl0ZS50byh0aGlzLmNvbnRyb2wsIHRoaXMudGhlbWUuZmFzdCwge2FscGhhOiAuODN9KVxuXG4gICAgICAgICAgICBpZiAodGhpcy5vcHRzLmFmdGVyQWN0aW9uKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5vcHRzLmFmdGVyQWN0aW9uLmNhbGwodGhpcywgZSwgdGhpcylcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSlcblxuICAgICAgICAvLyBkaXNhYmxlZFxuICAgICAgICAvLy0tLS0tLS0tLS0tLS0tLS0tXG4gICAgICAgIHRoaXMuZGlzYWJsZWQgPSB0aGlzLm9wdHMuZGlzYWJsZWRcblxuICAgICAgICAvLyBhY3RpdmVcbiAgICAgICAgLy8tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAgICB0aGlzLmFjdGl2ZSA9IHRoaXMub3B0cy5hY3RpdmVcbiAgICAgICAgXG4gICAgICAgIC8vIHRvb2x0aXBcbiAgICAgICAgLy8tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAgICBpZiAodGhpcy5vcHRzLnRvb2x0aXApIHtcbiAgICAgICAgICAgIGlmICh0eXBlb2YgdGhpcy5vcHRzLnRvb2x0aXAgPT09ICdzdHJpbmcnKSB7XG4gICAgICAgICAgICAgICAgdGhpcy50b29sdGlwID0gbmV3IFRvb2x0aXAoe1xuICAgICAgICAgICAgICAgICAgICBvYmplY3Q6IHRoaXMsXG4gICAgICAgICAgICAgICAgICAgIGNvbnRlbnQ6IHRoaXMub3B0cy50b29sdGlwXG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdGhpcy5vcHRzLnRvb2x0aXAub2JqZWN0ID0gdGhpc1xuICAgICAgICAgICAgICAgIHRoaXMudG9vbHRpcCA9IG5ldyBUb29sdGlwKHRoaXMub3B0cy50b29sdGlwKVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHRoaXNcbiAgICB9XG4gICAgXG4gICAgLyoqXG4gICAgICogU2hvdWxkIGJlIGNhbGxlZCB0byByZWZyZXNoIHRoZSBsYXlvdXQgb2YgdGhlIHN3aXRjaC4gQ2FuIGJlIHVzZWQgYWZ0ZXIgcmVzaXppbmcuXG4gICAgICogXG4gIC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cbiAgICBnZXQgYWN0aXZlKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5fYWN0aXZlXG4gICAgfVxuXG4gICAgc2V0IGFjdGl2ZSh2YWx1ZSkge1xuXG4gICAgICAgIHRoaXMuX2FjdGl2ZSA9IHZhbHVlXG5cbiAgICAgICAgaWYgKHRoaXMuX2FjdGl2ZSkge1xuXG4gICAgICAgICAgICBUd2VlbkxpdGUudG8odGhpcy5jb250cm9sLCB0aGlzLm9wdHMuZHVyYXRpb24sIHt4OiB0aGlzLnhBY3RpdmV9KVxuICAgICAgICAgICAgVHdlZW5MaXRlLnRvKHRoaXMudGVtcEFuaW1hdGVkLCB0aGlzLm9wdHMuZHVyYXRpb24sIHtcbiAgICAgICAgICAgICAgICBjb2xvclByb3BzOiB7XG4gICAgICAgICAgICAgICAgICAgIGZpbGw6IHRoaXMub3B0cy5maWxsQWN0aXZlLFxuICAgICAgICAgICAgICAgICAgICBzdHJva2U6IHRoaXMub3B0cy5zdHJva2VBY3RpdmUsXG4gICAgICAgICAgICAgICAgICAgIGNvbnRyb2xGaWxsOiB0aGlzLm9wdHMuY29udHJvbEZpbGxBY3RpdmUsXG4gICAgICAgICAgICAgICAgICAgIGNvbnRyb2xTdHJva2U6IHRoaXMub3B0cy5jb250cm9sU3Ryb2tlQWN0aXZlLFxuICAgICAgICAgICAgICAgICAgICBmb3JtYXQ6ICdudW1iZXInXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBmaWxsQWxwaGE6IHRoaXMub3B0cy5maWxsQWN0aXZlQWxwaGEsXG4gICAgICAgICAgICAgICAgc3Ryb2tlV2lkdGg6IHRoaXMub3B0cy5zdHJva2VBY3RpdmVXaWR0aCxcbiAgICAgICAgICAgICAgICBzdHJva2VBbHBoYTogdGhpcy5vcHRzLnN0cm9rZUFjdGl2ZUFscGhhLFxuICAgICAgICAgICAgICAgIGNvbnRyb2xGaWxsQWxwaGE6IHRoaXMub3B0cy5jb250cm9sRmlsbEFjdGl2ZUFscGhhLFxuICAgICAgICAgICAgICAgIGNvbnRyb2xTdHJva2VXaWR0aDogdGhpcy5vcHRzLmNvbnRyb2xTdHJva2VBY3RpdmVXaWR0aCxcbiAgICAgICAgICAgICAgICBjb250cm9sU3Ryb2tlQWxwaGE6IHRoaXMub3B0cy5jb250cm9sU3Ryb2tlQWN0aXZlQWxwaGEsXG4gICAgICAgICAgICAgICAgY29udHJvbFJhZGl1czogdGhpcy5vcHRzLmNvbnRyb2xSYWRpdXNBY3RpdmUsXG4gICAgICAgICAgICAgICAgb25VcGRhdGU6ICgpID0+IHRoaXMuZHJhd0FuaW1hdGVkKCksXG4gICAgICAgICAgICAgICAgb25Db21wbGV0ZTogKCkgPT4gdGhpcy5kcmF3KClcbiAgICAgICAgICAgIH0pXG5cblxuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgVHdlZW5MaXRlLnRvKHRoaXMuY29udHJvbCwgdGhpcy5vcHRzLmR1cmF0aW9uQWN0aXZlLCB7eDogdGhpcy54SW5hY3RpdmV9KVxuICAgICAgICAgICAgVHdlZW5MaXRlLnRvKHRoaXMudGVtcEFuaW1hdGVkLCB0aGlzLm9wdHMuZHVyYXRpb25BY3RpdmUsIHtcbiAgICAgICAgICAgICAgICBjb2xvclByb3BzOiB7XG4gICAgICAgICAgICAgICAgICAgIGZpbGw6IHRoaXMub3B0cy5maWxsLFxuICAgICAgICAgICAgICAgICAgICBzdHJva2U6IHRoaXMub3B0cy5zdHJva2UsXG4gICAgICAgICAgICAgICAgICAgIGNvbnRyb2xGaWxsOiB0aGlzLm9wdHMuY29udHJvbEZpbGwsXG4gICAgICAgICAgICAgICAgICAgIGNvbnRyb2xTdHJva2U6IHRoaXMub3B0cy5jb250cm9sU3Ryb2tlLFxuICAgICAgICAgICAgICAgICAgICBmb3JtYXQ6ICdudW1iZXInXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBmaWxsQWxwaGE6IHRoaXMub3B0cy5maWxsQWxwaGE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gICAgICAgIG1hcmdpbjogdGhlbWUubWFyZ2luIC8gMixcbiAgICAgICAgICAgIHRleHRTdHlsZTogdGhlbWUudGV4dFN0eWxlLFxuICAgICAgICAgICAgY2xvc2VPblBvcHVwOiB0cnVlXG4gICAgICAgIH0sIG9wdHMpXG5cbiAgICAgICAgc3VwZXIob3B0cylcbiAgICB9XG4gICAgXG4gICAgLyoqXG4gICAgICogQ3JlYXRlcyBjaGlsZHJlbiBhbmQgaW5zdGFudGlhdGVzIGV2ZXJ5dGhpbmcuXG4gICAgICogXG4gICAgICogQHByaXZhdGVcbiAgICAgKiBAcmV0dXJuIHtQb3B1cE1lbnV9IEEgcmVmZXJlbmNlIHRvIHRoZSBwb3B1cG1lbnUgZm9yIGNoYWluaW5nLlxuICAgICAqL1xuICAgIHNldHVwKCkge1xuXG4gICAgICAgIC8vIGNvbnRlbnRcbiAgICAgICAgLy8tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAgICBjb25zdCBjb250ZW50ID0gbmV3IFBJWEkuQ29udGFpbmVyKClcbiAgICAgICAgXG4gICAgICAgIGxldCB5ID0gMFxuICAgICAgICBmb3IgKGxldCBpdGVtIG9mIHRoaXMub3B0cy5pdGVtcykge1xuXG4gICAgICAgICAgICBsZXQgb2JqZWN0ID0gbnVsbFxuXG4gICAgICAgICAgICBpZiAoaXRlbS5sYWJlbCkge1xuICAgICAgICAgICAgICAgIG9iamVjdCA9IG5ldyBQSVhJLlRleHQoaXRlbS5sYWJlbCwgaXRlbS50ZXh0U3R5bGUgfHwgdGhpcy5vcHRzLnRleHRTdHlsZSlcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgb2JqZWN0ID0gaXRlbS5jb250ZW50XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIG9iamVjdC55ID0geVxuXG4gICAgICAgICAgICBpZiAoaXRlbS5hY3Rpb24pIHtcbiAgICAgICAgICAgICAgICBpZiAoaXRlbS5kaXNhYmxlZCkge1xuICAgICAgICAgICAgICAgICAgICBvYmplY3QuYWxwaGEgPSAuNVxuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIG9iamVjdC5pbnRlcmFjdGl2ZSA9IHRydWVcbiAgICAgICAgICAgICAgICAgICAgb2JqZWN0LmJ1dHRvbk1vZGUgPSB0cnVlXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIG9iamVjdC5vbigncG9pbnRlcm92ZXInLCBlID0+IHtcbiAgICAgICAgICAgICAgICAgICAgVHdlZW5MaXRlLnRvKG9iamVjdCwgdGhpcy50aGVtZS5mYXN0LCB7YWxwaGE6IC44Mywgb3ZlcndyaXRlOiAnbm9uZSd9KVxuICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgb2JqZWN0Lm9uKCdwb2ludGVyb3V0JywgZSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIFR3ZWVuTGl0ZS50byhvYmplY3QsIHRoaXMudGhlbWUuZmFzdCwge2FscGhhOiAxLCBvdmVyd3JpdGU6ICdub25lJ30pXG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICBvYmplY3Qub24oJ3BvaW50ZXJ1cCcsIGUgPT4ge1xuICAgICAgICAgICAgICAgICAgICBpdGVtLmFjdGlvbi5jYWxsKG9iamVjdCwgZSwgb2JqZWN0KVxuICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5vcHRzLmNsb3NlT25BY3Rpb24pIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuaGlkZSgpXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBjb250ZW50LmFkZENoaWxkKG9iamVjdClcblxuICAgICAgICAgICAgeSArPSBvYmplY3QuaGVpZ2h0ICsgdGhpcy5vcHRzLm1hcmdpblxuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5vcHRzLmNvbnRl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Bwcml2YXRlXG4gICAgICogQHJldHVybiB7Vm9sYXRpbGV9IEEgcmVmZXJlbmNlIHRvIHRoZSB2b2xhdGlsZSBmb3IgY2hhaW5pbmcuXG4gICAgICovXG4gICAgcnVuKCkge1xuXG4gICAgICAgIGZvciAobGV0IG9iamVjdCBvZiB0aGlzLm9iamVjdHMpIHtcblxuICAgICAgICAgICAgbGV0IHggPSBvYmplY3QueFxuICAgICAgICAgICAgbGV0IHkgPSBvYmplY3QueVxuXG4gICAgICAgICAgICBzd2l0Y2ggKHRoaXMub3B0cy5kaXJlY3Rpb24pIHtcbiAgICAgICAgICAgICAgICBjYXNlICd0b3AnOlxuICAgICAgICAgICAgICAgICAgICB5IC09IHRoaXMub3B0cy5kaXN0YW5jZVxuICAgICAgICAgICAgICAgICAgICBicmVha1xuICAgICAgICAgICAgICAgIGNhc2UgJ3JpZ2h0JzpcbiAgICAgICAgICAgICAgICAgICAgeCArPSB0aGlzLm9wdHMuZGlzdGFuY2VcbiAgICAgICAgICAgICAgICAgICAgYnJlYWtcbiAgICAgICAgICAgICAgICBjYXNlICdib3R0b20nOlxuICAgICAgICAgICAgICAgICAgICB5ICs9IHRoaXMub3B0cy5kaXN0YW5jZVxuICAgICAgICAgICAgICAgICAgICBicmVha1xuICAgICAgICAgICAgICAgIGNhc2UgJ2xlZnQnOlxuICAgICAgICAgICAgICAgICAgICB4IC09IHRoaXMub3B0cy5kaXN0YW5jZVxuICAgICAgICAgICAgICAgICAgICBicmVha1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBUd2VlbkxpdGUudG8ob2JqZWN0LCB0aGlzLm9wdHMuZHVyYXRpb24sIHtcbiAgICAgICAgICAgICAgICB4LFxuICAgICAgICAgICAgICAgIHksXG4gICAgICAgICAgICAgICAgYWxwaGE6IDAsXG4gICAgICAgICAgICAgICAgZWFzZTogdGhpcy5vcHRzLmVhc2UsXG4gICAgICAgICAgICAgICAgb3ZlcndyaXRlOiAnYWxsJyxcbiAgICAgICAgICAgICAgICBvblN0YXJ0OiAoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLm9wdHMub25TdGFydCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5vcHRzLm9uU3RhcnQuY2FsbChvYmplY3QsIG9iamVjdClcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgb25Db21wbGV0ZTogKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBcbiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMub3B0cy5vbkNvbXBsZXRlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm9wdHMub25Db21wbGV0ZS5jYWxsKG9iamVjdCwgb2JqZWN0KVxuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgaWYgKHRoaXMub3B0cy5kZXN0cm95T25Db21wbGV0ZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgb2JqZWN0LmRlc3Ryb3koe2NoaWxkcmVuOiB0cnVlfSlcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pXG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gdGhpc1xuICAgIH1cbn1cbiIsIi8qIGdsb2JhbHMgKi9cblxuLyogSW1wb3J0cyAqL1xuaW1wb3J0IEV2ZW50cyBmcm9tICcuLi9ldmVudHMuanMnXG5cbi8qKlxuICogQ2xhc3MgdGhhdCByZXByZXNlbnRzIGEgUGl4aUpTIExpc3QuXG4gKlxuICogQGV4YW1wbGVcbiAqIGNvbnN0IGVsZXBoYW50MSA9IFBJWEkuU3ByaXRlLmZyb21JbWFnZSgnLi9hc3NldHMvZWxlcGhhbnQtMS5qcGcnKVxuICogY29uc3QgZWxlcGhhbnQyID0gUElYSS5TcHJpdGUuZnJvbUltYWdlKCcuL2Fzc2V0cy9lbGVwaGFudC0yLmpwZycpXG4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KClcblxuICAgICAgICB0aGlzLm9wdHMgPSBPYmplY3QuYXNzaWduKHt9LCB7XG4gICAgICAgICAgICBwYWRkaW5nOiAxMCxcbiAgICAgICAgICAgIG1hcmdpbjogMTAsXG4gICAgICAgICAgICBvcmllbnRhdGlvbjogJ3ZlcnRpY2FsJyxcbiAgICAgICAgICAgIGFsaWduOiAnbGVmdCcsXG4gICAgICAgICAgICB2ZXJ0aWNhbEFsaWduOiAnbWlkZGxlJyxcbiAgICAgICAgICAgIHdpZHRoOiBudWxsLFxuICAgICAgICAgICAgaGVpZ2h0OiBudWxsXG4gICAgICAgIH0sIG9wdHMpXG5cbiAgICAgICAgdGhpcy5fX2l0ZW1zID0gaXRlbXNcbiAgICAgICAgdGhpcy5fX2RyYWdnaW5nID0gZmFsc2VcblxuICAgICAgICAvLyBzZXR1cFxuICAgICAgICAvLy0tLS0tLS0tLS0tLS0tLS0tLS0tXG4gICAgICAgIHRoaXMuc2V0dXAoKVxuICAgIH1cblxuICAgIC8qKlxuICAgICAqIENyZWF0ZXMgY2hpbGRyZW4gYW5kIGluc3RhbnRpYXRlcyBldmVyeXRoaW5nLlxuICAgICAqXG4gICAgICogQHByaXZhdGVcbiAgICAgKiBAcmV0dXJuIHtMaXN0fSBBIHJlZmVyZW5jZSB0byB0aGUgbGlzdCBmb3IgY2hhaW5pbmcuXG4gICAgICovXG4gICAgc2V0dXAoKSB7XG5cbiAgICAgICAgLy8gaW5uZXIgY29udGFpbmVyXG4gICAgICAgIC8vLS0tLS0tLS0tLS0tLS0tLS0tLS1cbiAgICAgICAgY29uc3QgY29udGFpbmVyID0gbmV3IFBJWEkuQ29udGFpbmVyKClcbiAgICAgICAgdGhpcy5hZGRDaGlsZChjb250YWluZXIpXG4gICAgICAgIHRoaXMuY29udGFpbmVyID0gY29udGFpbmVyXG5cbiAgICAgICAgLy8gbWFza1xuICAgICAgICAvLy0tLS0tLS0tLS0tLS0tLS0tLS0tXG4gICAgICAgIGNvbnN0IG1hc2sgPSBu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gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgeCArPSBpdGVtLndpZHRoICsgdGhpcy5vcHRzLnBhZGRpbmdcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIC8vIHZlcnRpY2FsXG4gICAgICAgIC8vLS0tLS0tLS0tLS0tLS0tLS0tLS1cbiAgICAgICAgaWYgKHRoaXMub3B0cy5vcmllbnRhdGlvbiA9PT0gJ3ZlcnRpY2FsJykge1xuICAgICAgICAgICAgc3dpdGNoICh0aGlzLm9wdHMuYWxpZ24pIHtcbiAgICAgICAgICAgICAgICBjYXNlICdjZW50ZXInOlxuICAgICAgICAgICAgICAgICAgICB0aGlzLl9faXRlbXMuZm9yRWFjaChpdCA9PiBpdC54ID0gbWFyZ2luICsgdGhpcy53aWR0aCAvIDIgLSBpdC53aWR0aCAvIDIpXG4gICAgICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICAgICAgY2FzZSAncmlnaHQnOlxuICAgICAgICAgICAgICAgICAgICB0aGlzLl9faXRlbXMuZm9yRWFjaChpdCA9PiBpdC54ID0gbWFyZ2luICsgdGhpcy53aWR0aCAtIGl0LndpZHRoKVxuICAgICAgICAgICAgICAgICAgICBicmVha1xuICAgICAgICAgICAgICAgIGRlZmF1bHQ6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuX19pdGVtcy5mb3JFYWNoKGl0ID0+IGl0LnggPSBtYXJnaW4pXG4gICAgICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmICh0aGlzLm9wdHMuaGVpZ2h0KSB7XG4gICAgICAgICAgICAgICAgY29uc3QgbWFzayA9IHRoaXMuX19tYXNrXG4gICAgICAgICAgICAgICAgbWFzay5jbGVhcigpXG4gICAgICAgICAgICAgICAgbWFzay5iZWdpbkZpbGwoMHgwMDApXG4gICAgICAgICAgICAgICAgbWFzay5kcmF3UmVjdCgwLCAwLCB0aGlzLndpZHRoICsgMiAqIG1hcmdpbiwgdGhpcy5vcHRzLmhlaWdodClcbiAgICAgICAgICAgICAgICB0aGlzLm1hc2sgPSBtYXNrXG5cbiAgICAgICAgICAgICAgICB0aGlzLmludGVyYWN0aXZlID0gdGhpcy5pbm5lckhlaWdodCA+IHRoaXMub3B0cy5oZWlnaHRcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIC8vIGhvcml6b250YWxcbiAgICAgICAgLy8tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAgICBpZiAodGhpcy5vcHRzLm9yaWVudGF0aW9uID09PSAnaG9yaXpvbnRhbCcpIHtcbiAgICAgICAgICAgIHN3aXRjaCAodGhpcy5vcHRzLnZlcnRpY2FsQWxpZ24pIHtcbiAgICAgICAgICAgICAgICBjYXNlICd0b3AnOlxuICAgICAgICAgICAgICAgICAgICB0aGlzLl9faXRlbXMuZm9yRWFjaChpdCA9PiBpdC55ID0gbWFyZ2luKVxuICAgICAgICAgICAgICAgICAgICBicmVha1xuICAgICAgICAgICAgICAgIGNhc2UgJ2JvdHRvbSc6XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuX19pdGVtcy5mb3JFYWNoKGl0ID0+IGl0LnkgPSBtYXJnaW4gKyB0aGlzLmhlaWdodCAtIGl0LmhlaWdodClcbiAgICAgICAgICAgICAgICAgICAgYnJlYWtcbiAgICAgICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgICAgICB0aGlzLl9faXRlbXMuZm9yRWFjaChpdCA9PiBpdC55ID0gbWFyZ2luICsgdGhpcy5oZWlnaHQgLyAyIC0gaXQuaGVpZ2h0IC8gMilcbiAgICAgICAgICAgICAgICAgICAgYnJlYWtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYgKHRoaXMub3B0cy53aWR0aCkge1xuICAgICAgICAgICAgICAgIGNvbnN0IG1hc2sgPSB0aGlzLl9fbWFza1xuICAgICAgICAgICAgICAgIG1hc2suY2xlYXI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IGxpc3QuXG4gICAgICogXG4gICAgICogQHBhcmFtIHtudW1iZXJ9IHdpZHRoT3JIZWlnaHQgLSBUaGUgbmV3IHdpZHRoIChpZiBvcmllbnRhdGlvbiBpcyBob3Jpem9udGFsKSBvciBoZWlnaHQgKGlmIG9yaWVudGF0aW9uIGlzIHZlcnRpY2FsKSBvZiB0aGUgbGlzdC5cbiAgICAgKi9cbiAgICByZXNpemUod2lkdGhPckhlaWdodCkge1xuXG4gICAgICAgIGlmICh0aGlzLm9wdHMub3JpZW50YXRpb24gPT09ICdob3Jpem9udGFsJykge1xuICAgICAgICAgICAgdGhpcy5vcHRzLndpZHRoID0gd2lkdGhPckhlaWdodFxuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdGhpcy5vcHRzLmhlaWdodCA9IHdpZHRoT3JIZWlnaHRcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMubGF5b3V0KClcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBcbiAgICAgKiBAcHJpdmF0ZVxuICAgICAqIEBwYXJhbSB7Kn0gZXZlbnQgXG4gICAgICovXG4gICAgb25TdGFydChldmVudCkge1xuXG4gICAgICAgIHRoaXMuX19kcmFnZ2luZyA9IHRydWVcblxuICAgICAgICB0aGlzLmNhcHR1cmUoZXZlbnQpXG5cbiAgICAgICAgdGhpcy5fX2RlbHRhID0ge1xuICAgICAgICAgICAgeDogdGhpcy5jb250YWluZXIucG9zaXRpb24ueCAtIGV2ZW50LmRhdGEuZ2xvYmFsLngsXG4gICAgICAgICAgICB5OiB0aGlzLmNvbnRhaW5lci5wb3NpdGlvbi55IC0gZXZlbnQuZGF0YS5nbG9iYWwueVxuICAgICAgICB9XG5cbiAgICAgICAgVHdlZW5MaXRlLmtpbGxUd2VlbnNPZih0aGlzLmNvbnRhaW5lci5wb3NpdGlvbiwge3g6IHRydWUsIHk6IHRydWV9KVxuICAgICAgICBUaHJvd1Byb3BzUGx1Z2luLnRyYWNrKHRoaXMuY29udGFpbmVyLnBvc2l0aW9uLCAneCx5JylcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBcbiAgICAgKiBAcHJpdmF0ZVxuICAgICAqIEBwYXJhbSB7Kn0gZXZlbnQgXG4gICAgICovXG4gICAgb25Nb3ZlKGV2ZW50KSB7XG5cbiAgICAgICAgaWYgKHRoaXMuX19kcmFnZ2luZykge1xuICAgICAgICBcbiAgICAgICAgICAgIHRoaXMuY2FwdHVyZShldmVudClcblxuICAgICAgICAgICAgaWYgKHRoaXMub3B0cy5vcmllbnRhdGlvbiA9PT0gJ2hvcml6b250YWwnKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5jb250YWluZXIucG9zaXRpb24ueCA9IGV2ZW50LmRhdGEuZ2xvYmFsLnggKyB0aGlzLl9fZGVsdGEueFxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aGlzLmNvbnRhaW5lci5wb3NpdGlvbi55ID0gZXZlbnQuZGF0YS5nbG9iYWwueSArIHRoaXMuX19kZWx0YS55XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBcbiAgICAgKiBAcHJpdmF0ZVxuICAgICAqIEBwYXJhbSB7Kn0gZXZlbnQgXG4gICAgICovXG4gICAgb25FbmQoZXZlbnQpIHtcblxuICAgICAgICBpZiAodGhpcy5fX2RyYWdnaW5nKSB7XG4gICAgICAgICAgICB0aGlzLl9fZHJhZ2dpbmcgPSBmYWxzZVxuXG4gICAgICAgICAgICB0aGlzLmNhcHR1cmUoZXZlbnQpXG5cbiAgICAgICAgICAgIGNvbnN0IHRocm93UHJvcHMgPSB7fVxuICAgICAgICAgICAgXG4gICAgICAgICAgICBpZiAodGhpcy5vcHRzLm9yaWVudGF0aW9uID09PSAnaG9yaXpvbnRhbCcpIHtcbiAgICAgICAgICAgICAgICBsZXQgbWluID0gdGhpcy5vcHRzLndpZHRoIC0gdGhpcy5pbm5lcldpZHRoXG4gICAgICAgICAgICAgICAgbWluID0gbWluID4gMCA/IDAgOiBtaW5cbiAgICAgICAgICAgICAgICB0aHJvd1Byb3BzLnggPSB7XG4gICAgICAgICAgICAgICAgICAgIHZlbG9jaXR5OiAnYXV0bycsXG4gICAgICAgICAgICAgICAgICAgIG1pbixcbiAgICAgICAgICAgICAgICAgICAgbWF4OiAwXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBsZXQgbWluID0gdGhpcy5vcHRzLmhlaWdodCAtIHRoaXMuaW5uZXJIZWlnaHRcbiAgICAgICAgICAgICAgICBtaW4gPSBtaW4gPiAwID8gMCA6IG1pblxuICAgICAgICAgICAgICAgIHRocm93UHJvcHMueSA9IHtcbiAgICAgICAgICAgICAgICAgICAgdmVsb2NpdHk6ICdhdXRvJyxcbiAgICAgICAgICAgICAgICAgICAgbWluLFxuICAgICAgICAgICAgICAgICAgICBtYXg6IDBcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIFRocm93UHJvcHNQbHVnaW4udG8odGhpcy5jb250YWluZXIucG9zaXRpb24sIHtcbiAgICAgICAgICAgICAgICB0aHJvd1Byb3BzLFxuICAgICAgICAgICAgICAgIGVhc2U6IFN0cm9uZy5lYXNlT3V0LFxuICAgICAgICAgICAgICAgIG9uQ29tcGxldGU6ICgpID0+IFRocm93UHJvcHNQbHVnaW4udW50cmFjayh0aGlzLmNvbnRhaW5lci5wb3NpdGlvbilcbiAgICAgICAgICAgIH0sIC44LCAuNClcbiAgICAgICAgfVxuICAgIH1cblxuICAgIC8qKlxuICAgICAqIENhcHR1cmVzIGFuIGV2ZW50IHRvIGluZm9ybSBJbnRlcmFjdGlvbk1hcHBlciBhYm91dCBwcm9jZXNzZWQgZXZlbnRzLlxuICAgICAqXG4gICAgICogQHBhcmFtIHtldmVudHxQSVhJLkludGVyYWN0aW9uRXZlbnR9IGV2ZW50IC0gVGhlIFBJWEkgZXZlbn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