Skip to content

Instantly share code, notes, and snippets.

Created June 9, 2017 14:28
Show Gist options
  • Save anonymous/a1d2d3027660e7dc0f0ee053afb48c63 to your computer and use it in GitHub Desktop.
Save anonymous/a1d2d3027660e7dc0f0ee053afb48c63 to your computer and use it in GitHub Desktop.

PhosphorJS Kitchen Sink Build

While not recommended, it might useful for prototyping to have a standalone build.

yarn
yarn build
name: phosphor-foo
channels:
- defaults
- anaconda-platform
- conda-forge
dependencies:
- yarnpkg
- python
@import "~@phosphor/dragdrop/style/index.css";
@import "~@phosphor/widgets/style/index.css";
import * as algorithm from "@phosphor/algorithm";
import * as application from "@phosphor/application";
import * as collections from "@phosphor/collections";
import * as commands from "@phosphor/commands";
import * as coreutils from "@phosphor/coreutils";
import * as disposable from "@phosphor/disposable";
import * as domutils from "@phosphor/domutils";
import * as dragdrop from "@phosphor/dragdrop";
import * as keyboard from "@phosphor/keyboard";
import * as messaging from "@phosphor/messaging";
import * as properties from "@phosphor/properties";
import * as signaling from "@phosphor/signaling";
import * as virtualdom from "@phosphor/virtualdom";
import * as widgets from "@phosphor/widgets";
import "./index.css";
export { algorithm, application, collections, commands, coreutils, disposable, domutils, dragdrop, keyboard, messaging, properties, signaling, virtualdom, widgets };
<!DOCTYPE html>
<html>
<body>
<style>
@import "https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css";
@import "./phosphor.min.css";
body {
display: flex;
flex-direction: column;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: 0;
padding: 0;
overflow: hidden;
}
#menuBar {
flex: 0 0 auto;
}
#main {
flex: 1 1 auto;
}
#palette {
min-width: 300px;
border-right: 1px solid #DDDDDD;
}
#dock {
padding: 4px;
}
.p-DockPanel-overlay {
background: rgba(255, 255, 255, 0.6);
border: 1px dashed black;
transition-property: top, left, right, bottom;
transition-duration: 150ms;
transition-timing-function: ease;
}
.p-TabBar {
min-height: 24px;
max-height: 24px;
}
.p-TabBar-content {
min-width: 0;
min-height: 0;
align-items: flex-end;
border-bottom: 1px solid #C0C0C0;
}
.p-TabBar-tab {
padding: 0px 10px;
background: #E5E5E5;
border: 1px solid #C0C0C0;
border-bottom: none;
font: 12px Helvetica, Arial, sans-serif;
flex: 0 1 125px;
min-height: 20px;
max-height: 20px;
min-width: 35px;
margin-left: -1px;
line-height: 20px;
}
.p-TabBar-tab.p-mod-current {
background: white;
}
.p-TabBar-tab:hover:not(.p-mod-current) {
background: #F0F0F0;
}
.p-TabBar-tab:first-child {
margin-left: 0;
}
.p-TabBar-tab.p-mod-current {
min-height: 23px;
max-height: 23px;
transform: translateY(1px);
}
.p-TabBar-tabIcon,
.p-TabBar-tabLabel,
.p-TabBar-tabCloseIcon {
display: inline-block;
}
.p-TabBar-tab.p-mod-closable > .p-TabBar-tabCloseIcon {
margin-left: 4px;
}
.p-TabBar-tab.p-mod-closable > .p-TabBar-tabCloseIcon:before {
content: '\f00d';
font-family: FontAwesome;
}
.p-TabBar-tab.p-mod-drag-image {
min-height: 23px;
max-height: 23px;
min-width: 125px;
border: none;
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
transform: translateX(-40%) translateY(-58%);
}
.p-MenuBar {
padding-left: 5px;
background: #FAFAFA;
color: rgba(0, 0, 0, 0.87);
border-bottom: 1px solid #DDDDDD;
font: 13px Helvetica, Arial, sans-serif;
}
.p-MenuBar-menu {
transform: translateY(-1px);
}
.p-MenuBar-item {
padding: 4px 8px;
border-left: 1px solid transparent;
border-right: 1px solid transparent;
}
.p-MenuBar-item.p-mod-active {
background: #E5E5E5;
}
.p-MenuBar.p-mod-active .p-MenuBar-item.p-mod-active {
z-index: 10001;
background: white;
border-left: 1px solid #C0C0C0;
border-right: 1px solid #C0C0C0;
box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
}
.p-Menu {
padding: 3px 0px;
background: white;
color: rgba(0, 0, 0, 0.87);
border: 1px solid #C0C0C0;
font: 12px Helvetica, Arial, sans-serif;
box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.2);
}
.p-Menu-item.p-mod-active {
background: #E5E5E5;
}
.p-Menu-item.p-mod-disabled {
color: rgba(0, 0, 0, 0.25);
}
.p-Menu-itemIcon {
width: 21px;
padding: 4px 2px;
}
.p-Menu-itemLabel {
padding: 4px 35px 4px 2px;
}
.p-Menu-itemMnemonic {
text-decoration: underline;
}
.p-Menu-itemShortcut {
padding: 4px 0px;
}
.p-Menu-itemSubmenuIcon {
width: 16px;
padding: 4px 0px;
}
.p-Menu-item[data-type='separator'] > div {
padding: 0;
height: 9px;
}
.p-Menu-item[data-type='separator'] > div::after {
content: '';
display: block;
position: relative;
top: 4px;
border-top: 1px solid #DDDDDD;
}
.p-Menu-itemIcon::before,
.p-Menu-itemSubmenuIcon::before {
font-family: FontAwesome;
}
.p-Menu-item.p-mod-toggled > .p-Menu-itemIcon::before {
content: '\f00c';
}
.p-Menu-item[data-type='submenu'] > .p-Menu-itemSubmenuIcon::before {
content: '\f0da';
}
.content {
min-width: 50px;
min-height: 50px;
display: flex;
flex-direction: column;
padding: 8px;
border: 1px solid #C0C0C0;
border-top: none;
background: white;
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.content > div {
flex: 1 1 auto;
border: 1px solid #505050;
overflow: auto;
}
.content input {
margin: 8px;
}
.p-CommandPalette {
font-family: sans-serif;
background: #F5F5F5;
}
.p-CommandPalette-search {
padding: 8px;
}
.p-CommandPalette-wrapper {
padding: 4px 6px;
background: white;
border: 1px solid #E0E0E0;
}
.p-CommandPalette-input {
width: 100%;
border: none;
outline: none;
font-size: 16px;
}
.p-CommandPalette-header {
padding: 4px;
color: #757575;
font-size: 12px;
font-weight: 600;
background: #E1E1E1;
cursor: pointer;
}
.p-CommandPalette-header:hover::before {
content: '\2026'; /* ellipsis */
float: right;
margin-right: 4px;
}
.p-CommandPalette-header > mark {
background-color: transparent;
font-weight: bold;
}
.p-CommandPalette-item {
padding: 4px 8px;
color: #757575;
font-size: 13px;
font-weight: 500;
}
.p-CommandPalette-emptyMessage {
padding: 4px;
color: #757575;
font-size: 12px;
font-weight: 600;
text-align: center;
}
.p-CommandPalette-item.p-mod-disabled {
color: rgba(0, 0, 0, 0.25);
}
.p-CommandPalette-item.p-mod-active {
background: #7FDBFF;
}
.p-CommandPalette-item:hover:not(.p-mod-active):not(.p-mod-disabled) {
background: #E5E5E5;
}
.p-CommandPalette-itemLabel > mark {
background-color: transparent;
font-weight: bold;
}
.p-CommandPalette-item.p-mod-disabled mark {
color: rgba(0, 0, 0, 0.4);
}
.p-CommandPalette-itemCaption {
color: #9E9E9E;
font-size: 11px;
font-weight: 400;
}
</style>
<script src="./phosphor.min.js" charset="utf-8"/></script>
<script>
;(function(){
function createMenu(commands) {
let root = new phosphor.widgets.Menu({ commands });
root.addItem({ command: 'example:quit' });
return root;
}
function main(){
var commands = new phosphor.commands.CommandRegistry();
commands.addCommand('example:quit', {
label: 'Quit',
mnemonic: 'q',
iconClass: 'fa fa-close',
execute: function() {
window.prompt("are you sure?");
}
});
let menu1 = createMenu(commands);
menu1.title.label = 'File';
menu1.title.mnemonic = 0;
let bar = new phosphor.widgets.MenuBar();
bar.addMenu(menu1);
bar.id = 'menuBar';
let palette = new phosphor.widgets.CommandPalette({ commands });
palette.addItem({ command: 'example:quit', category: 'File' });
palette.id = 'palette';
var dock = new phosphor.widgets.DockPanel();
dock.id = 'dock';
for(var i=0; i < 10; i++) {
var widget = new phosphor.widgets.Widget();
widget.title.label = 'Widget ' + i;
widget.addClass('content');
dock.addWidget(widget);
}
phosphor.widgets.BoxPanel.setStretch(dock, 1);
let main = new phosphor.widgets.BoxPanel({ direction: 'left-to-right', spacing: 0 });
main.id = 'main';
main.addWidget(palette);
main.addWidget(dock);
window.onresize = function () { main.update(); };
phosphor.widgets.Widget.attach(bar, document.body);
phosphor.widgets.Widget.attach(main, document.body);
}
this.onload = main;
}).call(this);
</script>
</body>
</html>
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var algorithm = require("@phosphor/algorithm");
exports.algorithm = algorithm;
var application = require("@phosphor/application");
exports.application = application;
var collections = require("@phosphor/collections");
exports.collections = collections;
var commands = require("@phosphor/commands");
exports.commands = commands;
var coreutils = require("@phosphor/coreutils");
exports.coreutils = coreutils;
var disposable = require("@phosphor/disposable");
exports.disposable = disposable;
var domutils = require("@phosphor/domutils");
exports.domutils = domutils;
var dragdrop = require("@phosphor/dragdrop");
exports.dragdrop = dragdrop;
var keyboard = require("@phosphor/keyboard");
exports.keyboard = keyboard;
var messaging = require("@phosphor/messaging");
exports.messaging = messaging;
var properties = require("@phosphor/properties");
exports.properties = properties;
var signaling = require("@phosphor/signaling");
exports.signaling = signaling;
var virtualdom = require("@phosphor/virtualdom");
exports.virtualdom = virtualdom;
var widgets = require("@phosphor/widgets");
exports.widgets = widgets;
require("./index.css");
import * as algorithm from "@phosphor/algorithm";
import * as application from "@phosphor/application";
import * as collections from "@phosphor/collections";
import * as commands from "@phosphor/commands";
import * as coreutils from "@phosphor/coreutils";
import * as disposable from "@phosphor/disposable";
import * as domutils from "@phosphor/domutils";
import * as dragdrop from "@phosphor/dragdrop";
import * as keyboard from "@phosphor/keyboard";
import * as messaging from "@phosphor/messaging";
import * as properties from "@phosphor/properties";
import * as signaling from "@phosphor/signaling";
import * as virtualdom from "@phosphor/virtualdom";
import * as widgets from "@phosphor/widgets";
import "./index.css";
export {
algorithm,
application,
collections,
commands,
coreutils,
disposable,
domutils,
dragdrop,
keyboard,
messaging,
properties,
signaling,
virtualdom,
widgets,
}
{
"name": "phosphor-kitchen-sink",
"version": "1.0.0",
"main": "lib/index.js",
"license": "MIT",
"dependencies": {
"@phosphor/algorithm": "*",
"@phosphor/application": "*",
"@phosphor/collections": "*",
"@phosphor/commands": "*",
"@phosphor/coreutils": "*",
"@phosphor/disposable": "*",
"@phosphor/domutils": "*",
"@phosphor/dragdrop": "*",
"@phosphor/keyboard": "*",
"@phosphor/messaging": "*",
"@phosphor/properties": "*",
"@phosphor/signaling": "*",
"@phosphor/virtualdom": "*",
"@phosphor/widgets": "*"
},
"devDependencies": {
"typescript": "^2.3.4",
"webpack": "^2.6.1",
"css-loader": "^0.28.4",
"extract-text-webpack-plugin": "^2.1.2",
"style-loader": "^0.18.2"
},
"scripts": {
"build": "yarn build:tsc && yarn build:webpack",
"build:tsc": "tsc",
"build:webpack": "webpack -p"
}
}
body.p-mod-override-cursor *{cursor:inherit!important}.p-Widget{box-sizing:border-box;position:relative;overflow:hidden;cursor:default}.p-Widget.p-mod-hidden{display:none!important}.p-CommandPalette{display:flex;flex-direction:column;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.p-CommandPalette-search{flex:0 0 auto}.p-CommandPalette-content{flex:1 1 auto;margin:0;padding:0;min-height:0;overflow:auto;list-style-type:none}.p-CommandPalette-header{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.p-CommandPalette-itemShortcut{float:right}.p-CommandPalette-itemLabel{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.p-DockPanel,.p-DockPanel-widget{z-index:0}.p-DockPanel-tabBar{z-index:1}.p-DockPanel-handle{z-index:2}.p-DockPanel-handle.p-mod-hidden{display:none!important}.p-DockPanel-handle:after{position:absolute;top:0;left:0;width:100%;height:100%;content:""}.p-DockPanel-handle[data-orientation=horizontal]{cursor:ew-resize}.p-DockPanel-handle[data-orientation=vertical]{cursor:ns-resize}.p-DockPanel-handle[data-orientation=horizontal]:after{left:50%;min-width:8px;transform:translateX(-50%)}.p-DockPanel-handle[data-orientation=vertical]:after{top:50%;min-height:8px;transform:translateY(-50%)}.p-DockPanel-overlay{z-index:3;box-sizing:border-box;pointer-events:none}.p-DockPanel-overlay.p-mod-hidden{display:none!important}.p-Menu{z-index:10000;position:absolute;white-space:nowrap;overflow-x:hidden;overflow-y:auto;outline:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.p-Menu-content{margin:0;padding:0;display:table;list-style-type:none}.p-Menu-item{display:table-row}.p-Menu-item.p-mod-collapsed,.p-Menu-item.p-mod-hidden{display:none!important}.p-Menu-itemIcon,.p-Menu-itemSubmenuIcon{display:table-cell;text-align:center}.p-Menu-itemLabel{display:table-cell;text-align:left}.p-Menu-itemShortcut{display:table-cell;text-align:right}.p-MenuBar{outline:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.p-MenuBar-content{margin:0;padding:0;display:flex;flex-direction:row;list-style-type:none}.p-MenuBar-item{box-sizing:border-box}.p-MenuBar-itemIcon,.p-MenuBar-itemLabel{display:inline-block}.p-SplitPanel-child{z-index:0}.p-SplitPanel-handle{z-index:1}.p-SplitPanel-handle.p-mod-hidden{display:none!important}.p-SplitPanel-handle:after{position:absolute;top:0;left:0;width:100%;height:100%;content:""}.p-SplitPanel[data-orientation=horizontal]>.p-SplitPanel-handle{cursor:ew-resize}.p-SplitPanel[data-orientation=vertical]>.p-SplitPanel-handle{cursor:ns-resize}.p-SplitPanel[data-orientation=horizontal]>.p-SplitPanel-handle:after{left:50%;min-width:8px;transform:translateX(-50%)}.p-SplitPanel[data-orientation=vertical]>.p-SplitPanel-handle:after{top:50%;min-height:8px;transform:translateY(-50%)}.p-TabBar{display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.p-TabBar[data-orientation=horizontal]{flex-direction:row}.p-TabBar[data-orientation=vertical]{flex-direction:column}.p-TabBar-content{margin:0;padding:0;display:flex;flex:1 1 auto;list-style-type:none}.p-TabBar[data-orientation=horizontal]>.p-TabBar-content{flex-direction:row}.p-TabBar[data-orientation=vertical]>.p-TabBar-content{flex-direction:column}.p-TabBar-tab{display:flex;flex-direction:row;box-sizing:border-box;overflow:hidden}.p-TabBar-tabCloseIcon,.p-TabBar-tabIcon{flex:0 0 auto}.p-TabBar-tabLabel{flex:1 1 auto;overflow:hidden;white-space:nowrap}.p-TabBar-tab.p-mod-hidden{display:none!important}.p-TabBar.p-mod-dragging .p-TabBar-tab{position:relative}.p-TabBar.p-mod-dragging[data-orientation=horizontal] .p-TabBar-tab{left:0;transition:left .15s ease}.p-TabBar.p-mod-dragging[data-orientation=vertical] .p-TabBar-tab{top:0;transition:top .15s ease}.p-TabBar.p-mod-dragging .p-TabBar-tab.p-mod-dragging{transition:none}.p-TabPanel-tabBar{z-index:1}.p-TabPanel-stackedPanel{z-index:0}
/*# sourceMappingURL=phosphor.min.css.map*/
{"version":3,"sources":[],"names":[],"mappings":"","file":"./phosphor.min.css","sourceRoot":""}
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.phosphor=e():t.phosphor=e()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=30)}([function(t,e,n){"use strict";function i(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),i(n(31)),i(n(32)),i(n(33)),i(n(34)),i(n(35)),i(n(5)),i(n(36)),i(n(37)),i(n(38)),i(n(39)),i(n(40)),i(n(41)),i(n(42)),i(n(43)),i(n(44)),i(n(45))},function(t,e,n){"use strict";function i(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),i(n(51)),i(n(52)),i(n(53))},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(3),s=n(7),a=n(4),c=n(19),u=function(){function t(t){void 0===t&&(t={}),this._flags=0,this._layout=null,this._parent=null,this._disposed=new a.Signal(this),this.node=d.createNode(t),this.addClass("p-Widget")}return t.prototype.dispose=function(){this.isDisposed||(this.setFlag(t.Flag.IsDisposed),this._disposed.emit(void 0),this.parent?this.parent=null:this.isAttached&&t.detach(this),this._layout&&(this._layout.dispose(),this._layout=null),a.Signal.clearData(this),o.MessageLoop.clearData(this),s.AttachedProperty.clearData(this))},Object.defineProperty(t.prototype,"disposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDisposed",{get:function(){return this.testFlag(t.Flag.IsDisposed)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAttached",{get:function(){return this.testFlag(t.Flag.IsAttached)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isHidden",{get:function(){return this.testFlag(t.Flag.IsHidden)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.testFlag(t.Flag.IsVisible)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return d.titleProperty.get(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.node.id},set:function(t){this.node.id=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataset",{get:function(){return this.node.dataset},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},set:function(e){if(this._parent!==e){if(e&&this.contains(e))throw new Error("Invalid parent widget.");if(this._parent&&!this._parent.isDisposed){var n=new t.ChildMessage("child-removed",this);o.MessageLoop.sendMessage(this._parent,n)}if(this._parent=e,this._parent&&!this._parent.isDisposed){var n=new t.ChildMessage("child-added",this);o.MessageLoop.sendMessage(this._parent,n)}o.MessageLoop.sendMessage(this,t.Msg.ParentChanged)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layout",{get:function(){return this._layout},set:function(e){if(this._layout!==e){if(this.testFlag(t.Flag.DisallowLayout))throw new Error("Cannot set widget layout.");if(this._layout)throw new Error("Cannot change widget layout.");if(e.parent)throw new Error("Cannot change layout parent.");this._layout=e,e.parent=this}},enumerable:!0,configurable:!0}),t.prototype.children=function(){return this._layout?this._layout.iter():r.empty()},t.prototype.contains=function(t){for(var e=t;e;e=e._parent)if(e===this)return!0;return!1},t.prototype.hasClass=function(t){return this.node.classList.contains(t)},t.prototype.addClass=function(t){this.node.classList.add(t)},t.prototype.removeClass=function(t){this.node.classList.remove(t)},t.prototype.toggleClass=function(t,e){return!0===e?(this.node.classList.add(t),!0):!1===e?(this.node.classList.remove(t),!1):this.node.classList.toggle(t)},t.prototype.update=function(){o.MessageLoop.postMessage(this,t.Msg.UpdateRequest)},t.prototype.fit=function(){o.MessageLoop.postMessage(this,t.Msg.FitRequest)},t.prototype.activate=function(){o.MessageLoop.postMessage(this,t.Msg.ActivateRequest)},t.prototype.close=function(){o.MessageLoop.sendMessage(this,t.Msg.CloseRequest)},t.prototype.show=function(){if(this.testFlag(t.Flag.IsHidden)&&(!this.isAttached||this.parent&&!this.parent.isVisible||o.MessageLoop.sendMessage(this,t.Msg.BeforeShow),this.clearFlag(t.Flag.IsHidden),this.removeClass("p-mod-hidden"),!this.isAttached||this.parent&&!this.parent.isVisible||o.MessageLoop.sendMessage(this,t.Msg.AfterShow),this.parent)){var e=new t.ChildMessage("child-shown",this);o.MessageLoop.sendMessage(this.parent,e)}},t.prototype.hide=function(){if(!this.testFlag(t.Flag.IsHidden)&&(!this.isAttached||this.parent&&!this.parent.isVisible||o.MessageLoop.sendMessage(this,t.Msg.BeforeHide),this.setFlag(t.Flag.IsHidden),this.addClass("p-mod-hidden"),!this.isAttached||this.parent&&!this.parent.isVisible||o.MessageLoop.sendMessage(this,t.Msg.AfterHide),this.parent)){var e=new t.ChildMessage("child-hidden",this);o.MessageLoop.sendMessage(this.parent,e)}},t.prototype.setHidden=function(t){t?this.hide():this.show()},t.prototype.testFlag=function(t){return 0!=(this._flags&t)},t.prototype.setFlag=function(t){this._flags|=t},t.prototype.clearFlag=function(t){this._flags&=~t},t.prototype.processMessage=function(e){switch(e.type){case"resize":this.notifyLayout(e),this.onResize(e);break;case"update-request":this.notifyLayout(e),this.onUpdateRequest(e);break;case"before-show":this.notifyLayout(e),this.onBeforeShow(e);break;case"after-show":this.setFlag(t.Flag.IsVisible),this.notifyLayout(e),this.onAfterShow(e);break;case"before-hide":this.notifyLayout(e),this.onBeforeHide(e);break;case"after-hide":this.clearFlag(t.Flag.IsVisible),this.notifyLayout(e),this.onAfterHide(e);break;case"before-attach":this.notifyLayout(e),this.onBeforeAttach(e);break;case"after-attach":this.isHidden||this.parent&&!this.parent.isVisible||this.setFlag(t.Flag.IsVisible),this.setFlag(t.Flag.IsAttached),this.notifyLayout(e),this.onAfterAttach(e);break;case"before-detach":this.notifyLayout(e),this.onBeforeDetach(e);break;case"after-detach":this.clearFlag(t.Flag.IsVisible),this.clearFlag(t.Flag.IsAttached),this.notifyLayout(e),this.onAfterDetach(e);break;case"activate-request":this.notifyLayout(e),this.onActivateRequest(e);break;case"close-request":this.notifyLayout(e),this.onCloseRequest(e);break;case"child-added":this.notifyLayout(e),this.onChildAdded(e);break;case"child-removed":this.notifyLayout(e),this.onChildRemoved(e);break;default:this.notifyLayout(e)}},t.prototype.notifyLayout=function(t){this._layout&&this._layout.processParentMessage(t)},t.prototype.onCloseRequest=function(e){this.parent?this.parent=null:this.isAttached&&t.detach(this)},t.prototype.onResize=function(t){},t.prototype.onUpdateRequest=function(t){},t.prototype.onActivateRequest=function(t){},t.prototype.onBeforeShow=function(t){},t.prototype.onAfterShow=function(t){},t.prototype.onBeforeHide=function(t){},t.prototype.onAfterHide=function(t){},t.prototype.onBeforeAttach=function(t){},t.prototype.onAfterAttach=function(t){},t.prototype.onBeforeDetach=function(t){},t.prototype.onAfterDetach=function(t){},t.prototype.onChildAdded=function(t){},t.prototype.onChildRemoved=function(t){},t}();e.Widget=u,function(t){function e(e,n,i){if(void 0===i&&(i=null),e.parent)throw new Error("Cannot attach a child widget.");if(e.isAttached||document.body.contains(e.node))throw new Error("Widget is already attached.");if(!document.body.contains(n))throw new Error("Host is not attached.");o.MessageLoop.sendMessage(e,t.Msg.BeforeAttach),n.insertBefore(e.node,i),o.MessageLoop.sendMessage(e,t.Msg.AfterAttach)}function n(e){if(e.parent)throw new Error("Cannot detach a child widget.");if(!e.isAttached||!document.body.contains(e.node))throw new Error("Widget is not attached.");o.MessageLoop.sendMessage(e,t.Msg.BeforeDetach),e.node.parentNode.removeChild(e.node),o.MessageLoop.sendMessage(e,t.Msg.AfterDetach)}!function(t){t[t.IsDisposed=1]="IsDisposed",t[t.IsAttached=2]="IsAttached",t[t.IsHidden=4]="IsHidden",t[t.IsVisible=8]="IsVisible",t[t.DisallowLayout=16]="DisallowLayout"}(t.Flag||(t.Flag={}));!function(t){t.BeforeShow=new o.Message("before-show"),t.AfterShow=new o.Message("after-show"),t.BeforeHide=new o.Message("before-hide"),t.AfterHide=new o.Message("after-hide"),t.BeforeAttach=new o.Message("before-attach"),t.AfterAttach=new o.Message("after-attach"),t.BeforeDetach=new o.Message("before-detach"),t.AfterDetach=new o.Message("after-detach"),t.ParentChanged=new o.Message("parent-changed"),t.UpdateRequest=new o.ConflatableMessage("update-request"),t.FitRequest=new o.ConflatableMessage("fit-request"),t.ActivateRequest=new o.ConflatableMessage("activate-request"),t.CloseRequest=new o.ConflatableMessage("close-request")}(t.Msg||(t.Msg={}));var r=function(t){function e(e,n){var i=t.call(this,e)||this;return i.child=n,i}return i(e,t),e}(o.Message);t.ChildMessage=r;var s=function(t){function e(e,n){var i=t.call(this,"resize")||this;return i.width=e,i.height=n,i}return i(e,t),e}(o.Message);t.ResizeMessage=s,function(t){t.UnknownSize=new t(-1,-1)}(s=t.ResizeMessage||(t.ResizeMessage={})),t.attach=e,t.detach=n}(u=e.Widget||(e.Widget={})),e.Widget=u;var d;!function(t){function e(t){return t.node||document.createElement("div")}t.titleProperty=new s.AttachedProperty({name:"title",create:function(t){return new c.Title({owner:t})}}),t.createNode=e}(d||(d={}))},function(t,e,n){"use strict";(function(t,i){var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),s=n(21),a=function(){function t(t){this.type=t}return Object.defineProperty(t.prototype,"isConflatable",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.conflate=function(t){return!1},t}();e.Message=a;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),Object.defineProperty(e.prototype,"isConflatable",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.conflate=function(t){return!0},e}(a);e.ConflatableMessage=c;!function(e){function n(t,e){var n=M.get(t);if(!n||0===n.length)return void f(t,e);o.every(o.retro(n),function(n){return!n||p(n,t,e)})&&f(t,e)}function r(t,e){if(!e.isConflatable)return void m(t,e);o.some(x,function(n){return n.handler===t&&(!!n.msg&&(n.msg.type===e.type&&(!!n.msg.isConflatable&&n.msg.conflate(e))))})||m(t,e)}function a(t,e){var n=M.get(t);n&&-1!==n.indexOf(e)||(n?n.push(e):M.set(t,[e]))}function c(t,e){var n=M.get(t);if(n){var i=n.indexOf(e);-1!==i&&(n[i]=null,g(n))}}function u(t){var e=M.get(t);e&&e.length>0&&(o.ArrayExt.fill(e,null),g(e)),o.each(x,function(e){e.handler===t&&(e.handler=null,e.msg=null)})}function d(){A||0===P||(C(P),A=!0,v(),A=!1)}function h(){return E}function l(t){var e=E;return E=t,e}function p(t,e,n){var i=!0;try{i="function"==typeof t?t(e,n):t.messageHook(e,n)}catch(t){E(t)}return i}function f(t,e){try{t.processMessage(e)}catch(t){E(t)}}function m(t,e){x.addLast({handler:t,msg:e}),0===P&&(P=L(v))}function v(){if(P=0,!x.isEmpty){var t={handler:null,msg:null};for(x.addLast(t);;){var e=x.removeFirst();if(e===t)return;e.handler&&e.msg&&n(e.handler,e.msg)}}}function g(t){0===w.size&&L(y),w.add(t)}function y(){w.forEach(_),w.clear()}function _(t){o.ArrayExt.removeAllWhere(t,b)}function b(t){return null===t}e.sendMessage=n,e.postMessage=r,e.installMessageHook=a,e.removeMessageHook=c,e.clearData=u,e.flush=d,e.getExceptionHandler=h,e.setExceptionHandler=l;var x=new s.LinkedList,M=new WeakMap,w=new Set,E=console.error,P=0,A=!1,L=function(){return"function"==typeof requestAnimationFrame?requestAnimationFrame:t}(),C=function(){return"function"==typeof cancelAnimationFrame?cancelAnimationFrame:i}()}(e.MessageLoop||(e.MessageLoop={}))}).call(e,n(20).setImmediate,n(20).clearImmediate)},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=function(){function t(t){this.sender=t}return t.prototype.connect=function(t,e){return o.connect(this,t,e)},t.prototype.disconnect=function(t,e){return o.disconnect(this,t,e)},t.prototype.emit=function(t){o.emit(this,t)},t}();e.Signal=r,function(t){function e(t,e){o.disconnectBetween(t,e)}function n(t){o.disconnectSender(t)}function i(t){o.disconnectReceiver(t)}function r(t){o.disconnectAll(t)}function s(t){o.disconnectAll(t)}function a(){return o.exceptionHandler}function c(t){var e=o.exceptionHandler;return o.exceptionHandler=t,e}t.disconnectBetween=e,t.disconnectSender=n,t.disconnectReceiver=i,t.disconnectAll=r,t.clearData=s,t.getExceptionHandler=a,t.setExceptionHandler=c}(r=e.Signal||(e.Signal={})),e.Signal=r;var o;!function(e){function n(t,e,n){n=n||void 0;var i=v.get(t.sender);if(i||(i=[],v.set(t.sender,i)),d(i,t,e,n))return!1;var r=n||e,o=g.get(r);o||(o=[],g.set(r,o));var s={signal:t,slot:e,thisArg:n};return i.push(s),o.push(s),!0}function r(t,e,n){n=n||void 0;var i=v.get(t.sender);if(!i||0===i.length)return!1;var r=d(i,t,e,n);if(!r)return!1;var o=n||e,s=g.get(o);return r.signal=null,l(i),l(s),!0}function o(t,e){var n=v.get(t);if(n&&0!==n.length){var r=g.get(e);r&&0!==r.length&&(i.each(r,function(e){e.signal&&e.signal.sender===t&&(e.signal=null)}),l(n),l(r))}}function s(t){var e=v.get(t);e&&0!==e.length&&(i.each(e,function(t){if(t.signal){var e=t.thisArg||t.slot;t.signal=null,l(g.get(e))}}),l(e))}function a(t){var e=g.get(t);e&&0!==e.length&&(i.each(e,function(t){if(t.signal){var e=t.signal.sender;t.signal=null,l(v.get(e))}}),l(e))}function c(t){var e=v.get(t);e&&e.length>0&&(i.each(e,function(t){t.signal=null}),l(e));var n=g.get(t);n&&n.length>0&&(i.each(n,function(t){t.signal=null}),l(n))}function u(t,e){var n=v.get(t.sender);if(n&&0!==n.length)for(var i=0,r=n.length;i<r;++i){var o=n[i];o.signal===t&&h(o,e)}}function d(t,e,n,r){return i.find(t,function(t){return t.signal===e&&t.slot===n&&t.thisArg===r})}function h(t,n){var i=t.signal,r=t.slot,o=t.thisArg;try{r.call(o,i.sender,n)}catch(t){e.exceptionHandler(t)}}function l(t){0===y.size&&_(p),y.add(t)}function p(){y.forEach(f),y.clear()}function f(t){i.ArrayExt.removeAllWhere(t,m)}function m(t){return null===t.signal}e.exceptionHandler=console.error,e.connect=n,e.disconnect=r,e.disconnectBetween=o,e.disconnectSender=s,e.disconnectReceiver=a,e.disconnectAll=c,e.emit=u;var v=new WeakMap,g=new WeakMap,y=new Set,_=function(){return"function"==typeof requestAnimationFrame?requestAnimationFrame:t}()}(o||(o={}))}).call(e,n(20).setImmediate)},function(t,e,n){"use strict";function i(t){return"function"==typeof t.iter?t.iter():new c(t)}function r(t,e){for(var n,r=0,o=i(t);void 0!==(n=o.next());)if(!1===e(n,r++))return}function o(t,e){for(var n,r=0,o=i(t);void 0!==(n=o.next());)if(!e(n,r++))return!1;return!0}function s(t,e){for(var n,r=0,o=i(t);void 0!==(n=o.next());)if(e(n,r++))return!0;return!1}function a(t){for(var e,n=0,r=[],o=i(t);void 0!==(e=o.next());)r[n++]=e;return r}Object.defineProperty(e,"__esModule",{value:!0}),e.iter=i,e.each=r,e.every=o,e.some=s,e.toArray=a;var c=function(){function t(t){this._index=0,this._source=t}return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source);return e._index=this._index,e},t.prototype.next=function(){if(!(this._index>=this._source.length))return this._source[this._index++]},t}();e.ArrayIterator=c},function(t,e,n){"use strict";function i(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),i(n(47)),i(n(48)),i(n(49)),i(n(50))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){this._pid=r.nextPID(),this.name=t.name,this._create=t.create,this._coerce=t.coerce||null,this._compare=t.compare||null,this._changed=t.changed||null}return t.prototype.get=function(t){var e=r.ensureMap(t);return this._pid in e?e[this._pid]:e[this._pid]=this._createValue(t)},t.prototype.set=function(t,e){var n,i=r.ensureMap(t);n=this._pid in i?i[this._pid]:i[this._pid]=this._createValue(t);var o=this._coerceValue(t,e);this._maybeNotify(t,n,i[this._pid]=o)},t.prototype.coerce=function(t){var e,n=r.ensureMap(t);e=this._pid in n?n[this._pid]:n[this._pid]=this._createValue(t);var i=this._coerceValue(t,e);this._maybeNotify(t,e,n[this._pid]=i)},t.prototype._createValue=function(t){return(0,this._create)(t)},t.prototype._coerceValue=function(t,e){var n=this._coerce;return n?n(t,e):e},t.prototype._compareValue=function(t,e){var n=this._compare;return n?n(t,e):t===e},t.prototype._maybeNotify=function(t,e,n){var i=this._changed;i&&!this._compareValue(e,n)&&i(t,e,n)},t}();e.AttachedProperty=i,function(t){function e(t){r.ownerData.delete(t)}t.clearData=e}(i=e.AttachedProperty||(e.AttachedProperty={})),e.AttachedProperty=i;var r;!function(t){function e(e){var n=t.ownerData.get(e);return n||(n=Object.create(null),t.ownerData.set(e,n),n)}t.ownerData=new WeakMap,t.nextPID=function(){var t=0;return function(){return"pid-"+(""+Math.random()).slice(2)+"-"+t++}}(),t.ensureMap=e}(r||(r={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(1),o=n(3),s=n(7),a=n(4),c=n(2),u=function(){function t(){this._disposed=!1,this._parent=null}return t.prototype.dispose=function(){this._parent=null,this._disposed=!0,a.Signal.clearData(this),s.AttachedProperty.clearData(this)},Object.defineProperty(t.prototype,"isDisposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},set:function(t){if(this._parent!==t){if(this._parent)throw new Error("Cannot change parent widget.");if(t.layout!==this)throw new Error("Invalid parent widget.");this._parent=t,this.init()}},enumerable:!0,configurable:!0}),t.prototype.processParentMessage=function(t){switch(t.type){case"resize":this.onResize(t);break;case"update-request":this.onUpdateRequest(t);break;case"fit-request":this.onFitRequest(t);break;case"before-show":this.onBeforeShow(t);break;case"after-show":this.onAfterShow(t);break;case"before-hide":this.onBeforeHide(t);break;case"after-hide":this.onAfterHide(t);break;case"before-attach":this.onBeforeAttach(t);break;case"after-attach":this.onAfterAttach(t);break;case"before-detach":this.onBeforeDetach(t);break;case"after-detach":this.onAfterDetach(t);break;case"child-removed":this.onChildRemoved(t);break;case"child-shown":this.onChildShown(t);break;case"child-hidden":this.onChildHidden(t)}},t.prototype.init=function(){var t=this;i.each(this,function(e){e.parent=t.parent})},t.prototype.onResize=function(t){i.each(this,function(t){o.MessageLoop.sendMessage(t,c.Widget.ResizeMessage.UnknownSize)})},t.prototype.onUpdateRequest=function(t){i.each(this,function(t){o.MessageLoop.sendMessage(t,c.Widget.ResizeMessage.UnknownSize)})},t.prototype.onBeforeAttach=function(t){i.each(this,function(e){o.MessageLoop.sendMessage(e,t)})},t.prototype.onAfterAttach=function(t){i.each(this,function(e){o.MessageLoop.sendMessage(e,t)})},t.prototype.onBeforeDetach=function(t){i.each(this,function(e){o.MessageLoop.sendMessage(e,t)})},t.prototype.onAfterDetach=function(t){i.each(this,function(e){o.MessageLoop.sendMessage(e,t)})},t.prototype.onBeforeShow=function(t){i.each(this,function(e){e.isHidden||o.MessageLoop.sendMessage(e,t)})},t.prototype.onAfterShow=function(t){i.each(this,function(e){e.isHidden||o.MessageLoop.sendMessage(e,t)})},t.prototype.onBeforeHide=function(t){i.each(this,function(e){e.isHidden||o.MessageLoop.sendMessage(e,t)})},t.prototype.onAfterHide=function(t){i.each(this,function(e){e.isHidden||o.MessageLoop.sendMessage(e,t)})},t.prototype.onChildRemoved=function(t){this.removeWidget(t.child)},t.prototype.onFitRequest=function(t){},t.prototype.onChildShown=function(t){},t.prototype.onChildHidden=function(t){},t}();e.Layout=u,function(t){function e(t){return h.horizontalAlignmentProperty.get(t)}function n(t,e){h.horizontalAlignmentProperty.set(t,e)}function i(t){return h.verticalAlignmentProperty.get(t)}function r(t,e){h.verticalAlignmentProperty.set(t,e)}t.getHorizontalAlignment=e,t.setHorizontalAlignment=n,t.getVerticalAlignment=i,t.setVerticalAlignment=r}(u=e.Layout||(e.Layout={})),e.Layout=u;var d=function(){function t(t){this._top=NaN,this._left=NaN,this._width=NaN,this._height=NaN,this._minWidth=0,this._minHeight=0,this._maxWidth=1/0,this._maxHeight=1/0,this._disposed=!1,this.widget=t,this.widget.node.style.position="absolute"}return t.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this.widget.node.style;t.position="",t.top="",t.left="",t.width="",t.height=""}},Object.defineProperty(t.prototype,"minWidth",{get:function(){return this._minWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minHeight",{get:function(){return this._minHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this._maxWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxHeight",{get:function(){return this._maxHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDisposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isHidden",{get:function(){return this.widget.isHidden},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.widget.isVisible},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAttached",{get:function(){return this.widget.isAttached},enumerable:!0,configurable:!0}),t.prototype.fit=function(){var t=r.ElementExt.sizeLimits(this.widget.node);this._minWidth=t.minWidth,this._minHeight=t.minHeight,this._maxWidth=t.maxWidth,this._maxHeight=t.maxHeight},t.prototype.update=function(t,e,n,i){var r=Math.max(this._minWidth,Math.min(n,this._maxWidth)),s=Math.max(this._minHeight,Math.min(i,this._maxHeight));if(r<n)switch(u.getHorizontalAlignment(this.widget)){case"left":break;case"center":t+=(n-r)/2;break;case"right":t+=n-r;break;default:throw"unreachable"}if(s<i)switch(u.getVerticalAlignment(this.widget)){case"top":break;case"center":e+=(i-s)/2;break;case"bottom":e+=i-s;break;default:throw"unreachable"}var a=!1,d=this.widget.node.style;if(this._top!==e&&(this._top=e,d.top=e+"px"),this._left!==t&&(this._left=t,d.left=t+"px"),this._width!==r&&(a=!0,this._width=r,d.width=r+"px"),this._height!==s&&(a=!0,this._height=s,d.height=s+"px"),a){var h=new c.Widget.ResizeMessage(r,s);o.MessageLoop.sendMessage(this.widget,h)}},t}();e.LayoutItem=d;var h;!function(t){function e(t){t.parent&&t.parent.layout&&t.parent.update()}t.horizontalAlignmentProperty=new s.AttachedProperty({name:"horizontalAlignment",create:function(){return"center"},changed:e}),t.verticalAlignmentProperty=new s.AttachedProperty({name:"verticalAlignment",create:function(){return"top"},changed:e})}(h||(h={}))},function(t,e,n){"use strict";function i(t){for(var e={},n=[],i=1,r=arguments.length;i<r;++i){var a=arguments[i];"string"==typeof a?n.push(new o(a)):a instanceof o?n.push(a):a instanceof s?n.push(a):a instanceof Array?function(t,e){for(var n=0,i=e;n<i.length;n++){var r=i[n];"string"==typeof r?t.push(new o(r)):r instanceof o?t.push(r):r instanceof s&&t.push(r)}}(n,a):1===i&&a&&"object"==typeof a&&(e=a)}return new s(t,e,n)}Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=function(){function t(t){this.type="text",this.content=t}return t}();e.VirtualText=o;var s=function(){function t(t,e,n){this.type="element",this.tag=t,this.attrs=e,this.children=n}return t}();e.VirtualElement=s,e.h=i,function(t){t.a=t.bind(void 0,"a"),t.abbr=t.bind(void 0,"abbr"),t.address=t.bind(void 0,"address"),t.area=t.bind(void 0,"area"),t.article=t.bind(void 0,"article"),t.aside=t.bind(void 0,"aside"),t.audio=t.bind(void 0,"audio"),t.b=t.bind(void 0,"b"),t.bdi=t.bind(void 0,"bdi"),t.bdo=t.bind(void 0,"bdo"),t.blockquote=t.bind(void 0,"blockquote"),t.br=t.bind(void 0,"br"),t.button=t.bind(void 0,"button"),t.canvas=t.bind(void 0,"canvas"),t.caption=t.bind(void 0,"caption"),t.cite=t.bind(void 0,"cite"),t.code=t.bind(void 0,"code"),t.col=t.bind(void 0,"col"),t.colgroup=t.bind(void 0,"colgroup"),t.data=t.bind(void 0,"data"),t.datalist=t.bind(void 0,"datalist"),t.dd=t.bind(void 0,"dd"),t.del=t.bind(void 0,"del"),t.dfn=t.bind(void 0,"dfn"),t.div=t.bind(void 0,"div"),t.dl=t.bind(void 0,"dl"),t.dt=t.bind(void 0,"dt"),t.em=t.bind(void 0,"em"),t.embed=t.bind(void 0,"embed"),t.fieldset=t.bind(void 0,"fieldset"),t.figcaption=t.bind(void 0,"figcaption"),t.figure=t.bind(void 0,"figure"),t.footer=t.bind(void 0,"footer"),t.form=t.bind(void 0,"form"),t.h1=t.bind(void 0,"h1"),t.h2=t.bind(void 0,"h2"),t.h3=t.bind(void 0,"h3"),t.h4=t.bind(void 0,"h4"),t.h5=t.bind(void 0,"h5"),t.h6=t.bind(void 0,"h6"),t.header=t.bind(void 0,"header"),t.hr=t.bind(void 0,"hr"),t.i=t.bind(void 0,"i"),t.iframe=t.bind(void 0,"iframe"),t.img=t.bind(void 0,"img"),t.input=t.bind(void 0,"input"),t.ins=t.bind(void 0,"ins"),t.kbd=t.bind(void 0,"kbd"),t.label=t.bind(void 0,"label"),t.legend=t.bind(void 0,"legend"),t.li=t.bind(void 0,"li"),t.main=t.bind(void 0,"main"),t.map=t.bind(void 0,"map"),t.mark=t.bind(void 0,"mark"),t.meter=t.bind(void 0,"meter"),t.nav=t.bind(void 0,"nav"),t.noscript=t.bind(void 0,"noscript"),t.object=t.bind(void 0,"object"),t.ol=t.bind(void 0,"ol"),t.optgroup=t.bind(void 0,"optgroup"),t.option=t.bind(void 0,"option"),t.output=t.bind(void 0,"output"),t.p=t.bind(void 0,"p"),t.param=t.bind(void 0,"param"),t.pre=t.bind(void 0,"pre"),t.progress=t.bind(void 0,"progress"),t.q=t.bind(void 0,"q"),t.rp=t.bind(void 0,"rp"),t.rt=t.bind(void 0,"rt"),t.ruby=t.bind(void 0,"ruby"),t.s=t.bind(void 0,"s"),t.samp=t.bind(void 0,"samp"),t.section=t.bind(void 0,"section"),t.select=t.bind(void 0,"select"),t.small=t.bind(void 0,"small"),t.source=t.bind(void 0,"source"),t.span=t.bind(void 0,"span"),t.strong=t.bind(void 0,"strong"),t.sub=t.bind(void 0,"sub"),t.summary=t.bind(void 0,"summary"),t.sup=t.bind(void 0,"sup"),t.table=t.bind(void 0,"table"),t.tbody=t.bind(void 0,"tbody"),t.td=t.bind(void 0,"td"),t.textarea=t.bind(void 0,"textarea"),t.tfoot=t.bind(void 0,"tfoot"),t.th=t.bind(void 0,"th"),t.thead=t.bind(void 0,"thead"),t.time=t.bind(void 0,"time"),t.title=t.bind(void 0,"title"),t.tr=t.bind(void 0,"tr"),t.track=t.bind(void 0,"track"),t.u=t.bind(void 0,"u"),t.ul=t.bind(void 0,"ul"),t.var_=t.bind(void 0,"var"),t.video=t.bind(void 0,"video"),t.wbr=t.bind(void 0,"wbr")}(i=e.h||(e.h={}));!function(t){function e(t){return a.createDOMNode(t)}function n(t,e){var n=a.hostMap.get(e)||[],i=a.asContentArray(t);a.hostMap.set(e,i),a.updateContent(e,n,i)}t.realize=e,t.render=n}(e.VirtualDOM||(e.VirtualDOM={}));var a;!function(t){function e(t){return t?t instanceof Array?t:[t]:[]}function n(t){if("text"===t.type)return document.createTextNode(t.content);var e=document.createElement(t.tag);o(e,t.attrs);for(var i=0,r=t.children.length;i<r;++i)e.appendChild(n(t.children[i]));return e}function i(t,e,o){if(e!==o){for(var a=h(t,e),c=e.slice(),u=t.firstChild,d=o.length,l=0;l<d;++l)if(l>=c.length)t.appendChild(n(o[l]));else{var p=c[l],f=o[l];if(p!==f)if("text"!==p.type||"text"!==f.type)if("text"!==p.type&&"text"!==f.type){var m=f.attrs.key;if(m&&m in a){var v=a[m];v.vNode!==p&&(r.ArrayExt.move(c,c.indexOf(v.vNode,l+1),l),t.insertBefore(v.element,u),p=v.vNode,u=v.element)}if(p!==f){var g=p.attrs.key;g&&g!==m?(r.ArrayExt.insert(c,l,f),t.insertBefore(n(f),u)):p.tag===f.tag?(s(u,p.attrs,f.attrs),i(u,p.children,f.children),u=u.nextSibling):(r.ArrayExt.insert(c,l,f),t.insertBefore(n(f),u))}else u=u.nextSibling}else r.ArrayExt.insert(c,l,f),t.insertBefore(n(f),u);else u.textContent=f.content,u=u.nextSibling;else u=u.nextSibling}for(var l=c.length-d;l>0;--l)t.removeChild(t.lastChild)}}function o(t,e){for(var n in e)n in l||("on"===n.substr(0,2)?t[n]=e[n]:t.setAttribute(n,e[n]));void 0!==e.className&&t.setAttribute("class",e.className),void 0!==e.htmlFor&&t.setAttribute("for",e.htmlFor),e.dataset&&a(t,e.dataset),e.style&&u(t,e.style)}function s(t,e,n){if(e!==n){var i;for(i in e)i in l||i in n||("on"===i.substr(0,2)?t[i]=null:t.removeAttribute(i));for(i in n)i in l||e[i]===n[i]||("on"===i.substr(0,2)?t[i]=n[i]:t.setAttribute(i,n[i]));e.className!==n.className&&(void 0!==n.className?t.setAttribute("class",n.className):t.removeAttribute("class")),e.htmlFor!==n.htmlFor&&(void 0!==n.htmlFor?t.setAttribute("for",n.htmlFor):t.removeAttribute("for")),e.dataset!==n.dataset&&c(t,e.dataset||{},n.dataset||{}),e.style!==n.style&&d(t,e.style||{},n.style||{})}}function a(t,e){for(var n in e)t.setAttribute("data-"+n,e[n])}function c(t,e,n){for(var i in e)i in n||t.removeAttribute("data-"+i);for(var r in n)e[r]!==n[r]&&t.setAttribute("data-"+r,n[r])}function u(t,e){var n,i=t.style;for(n in e)i[n]=e[n]}function d(t,e,n){var i,r=t.style;for(i in e)i in n||(r[i]="");for(i in n)e[i]!==n[i]&&(r[i]=n[i])}function h(t,e){for(var n=t.firstChild,i=Object.create(null),r=0,o=e;r<o.length;r++){var s=o[r];"element"===s.type&&s.attrs.key&&(i[s.attrs.key]={vNode:s,element:n}),n=n.nextSibling}return i}t.hostMap=new WeakMap,t.asContentArray=e,t.createDOMNode=n,t.updateContent=i;var l={key:!0,className:!0,htmlFor:!0,dataset:!0,style:!0}}(a||(a={}))},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(3),s=n(8),a=n(2),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._widgets=[],e}return i(e,t),e.prototype.dispose=function(){for(;this._widgets.length>0;)this._widgets.pop().dispose();t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"widgets",{get:function(){return this._widgets},enumerable:!0,configurable:!0}),e.prototype.iter=function(){return r.iter(this._widgets)},e.prototype.addWidget=function(t){this.insertWidget(this._widgets.length,t)},e.prototype.insertWidget=function(t,e){e.parent=this.parent;var n=this._widgets.indexOf(e),i=Math.max(0,Math.min(t,this._widgets.length));if(-1===n)return r.ArrayExt.insert(this._widgets,i,e),void(this.parent&&this.attachWidget(i,e));i===this._widgets.length&&i--,n!==i&&(r.ArrayExt.move(this._widgets,n,i),this.parent&&this.moveWidget(n,i,e))},e.prototype.removeWidget=function(t){this.removeWidgetAt(this._widgets.indexOf(t))},e.prototype.removeWidgetAt=function(t){var e=r.ArrayExt.removeAt(this._widgets,t);e&&this.parent&&this.detachWidget(t,e)},e.prototype.init=function(){var e=this;t.prototype.init.call(this),r.each(this,function(t,n){e.attachWidget(n,t)})},e.prototype.attachWidget=function(t,e){var n=this.parent.node.children[t];this.parent.isAttached&&o.MessageLoop.sendMessage(e,a.Widget.Msg.BeforeAttach),this.parent.node.insertBefore(e.node,n),this.parent.isAttached&&o.MessageLoop.sendMessage(e,a.Widget.Msg.AfterAttach)},e.prototype.moveWidget=function(t,e,n){this.parent.isAttached&&o.MessageLoop.sendMessage(n,a.Widget.Msg.BeforeDetach),this.parent.node.removeChild(n.node),this.parent.isAttached&&o.MessageLoop.sendMessage(n,a.Widget.Msg.AfterDetach);var i=this.parent.node.children[e];this.parent.isAttached&&o.MessageLoop.sendMessage(n,a.Widget.Msg.BeforeAttach),this.parent.node.insertBefore(n.node,i),this.parent.isAttached&&o.MessageLoop.sendMessage(n,a.Widget.Msg.AfterAttach)},e.prototype.detachWidget=function(t,e){this.parent.isAttached&&o.MessageLoop.sendMessage(e,a.Widget.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&o.MessageLoop.sendMessage(e,a.Widget.Msg.AfterDetach)},e}(s.Layout);e.PanelLayout=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(6),o=n(12),s=n(1),a=n(14),c=n(4),u=function(){function t(){this._timerID=0,this._replaying=!1,this._keystrokes=[],this._keydownEvents=[],this._keyBindings=[],this._exactKeyMatch=null,this._commands=Object.create(null),this._commandChanged=new c.Signal(this),this._commandExecuted=new c.Signal(this),this._keyBindingChanged=new c.Signal(this)}return Object.defineProperty(t.prototype,"commandChanged",{get:function(){return this._commandChanged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"commandExecuted",{get:function(){return this._commandExecuted},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyBindingChanged",{get:function(){return this._keyBindingChanged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyBindings",{get:function(){return this._keyBindings},enumerable:!0,configurable:!0}),t.prototype.listCommands=function(){return Object.keys(this._commands)},t.prototype.hasCommand=function(t){return t in this._commands},t.prototype.addCommand=function(t,e){var n=this;if(t in this._commands)throw new Error("Command '"+t+"' already registered.");return this._commands[t]=d.createCommand(e),this._commandChanged.emit({id:t,type:"added"}),new o.DisposableDelegate(function(){delete n._commands[t],n._commandChanged.emit({id:t,type:"removed"})})},t.prototype.notifyCommandChanged=function(t){if(!(t in this._commands))throw new Error("Command '"+t+"' is not registered.");this._commandChanged.emit({id:t,type:"changed"})},t.prototype.label=function(t,e){void 0===e&&(e=r.JSONExt.emptyObject);var n=this._commands[t];return n?n.label.call(void 0,e):""},t.prototype.mnemonic=function(t,e){void 0===e&&(e=r.JSONExt.emptyObject);var n=this._commands[t];return n?n.mnemonic.call(void 0,e):-1},t.prototype.icon=function(t,e){return void 0===e&&(e=r.JSONExt.emptyObject),this.iconClass(t,e)},t.prototype.iconClass=function(t,e){void 0===e&&(e=r.JSONExt.emptyObject);var n=this._commands[t];return n?n.iconClass.call(void 0,e):""},t.prototype.iconLabel=function(t,e){void 0===e&&(e=r.JSONExt.emptyObject);var n=this._commands[t];return n?n.iconLabel.call(void 0,e):""},t.prototype.caption=function(t,e){void 0===e&&(e=r.JSONExt.emptyObject);var n=this._commands[t];return n?n.caption.call(void 0,e):""},t.prototype.usage=function(t,e){void 0===e&&(e=r.JSONExt.emptyObject);var n=this._commands[t];return n?n.usage.call(void 0,e):""},t.prototype.className=function(t,e){void 0===e&&(e=r.JSONExt.emptyObject);var n=this._commands[t];return n?n.className.call(void 0,e):""},t.prototype.dataset=function(t,e){void 0===e&&(e=r.JSONExt.emptyObject);var n=this._commands[t];return n?n.dataset.call(void 0,e):{}},t.prototype.isEnabled=function(t,e){void 0===e&&(e=r.JSONExt.emptyObject);var n=this._commands[t];return!!n&&n.isEnabled.call(void 0,e)},t.prototype.isToggled=function(t,e){void 0===e&&(e=r.JSONExt.emptyObject);var n=this._commands[t];return!!n&&n.isToggled.call(void 0,e)},t.prototype.isVisible=function(t,e){void 0===e&&(e=r.JSONExt.emptyObject);var n=this._commands[t];return!!n&&n.isVisible.call(void 0,e)},t.prototype.execute=function(t,e){void 0===e&&(e=r.JSONExt.emptyObject);var n=this._commands[t];if(!n)return Promise.reject(new Error("Command '"+t+"' not registered."));var i;try{i=n.execute.call(void 0,e)}catch(t){i=Promise.reject(t)}var o=Promise.resolve(i);return this._commandExecuted.emit({id:t,args:e,result:o}),o},t.prototype.addKeyBinding=function(t){var e=this,n=d.createKeyBinding(t);return this._keyBindings.push(n),this._keyBindingChanged.emit({binding:n,type:"added"}),new o.DisposableDelegate(function(){i.ArrayExt.removeFirstOf(e._keyBindings,n),e._keyBindingChanged.emit({binding:n,type:"removed"})})},t.prototype.processKeydownEvent=function(e){if(!this._replaying){var n=t.keystrokeForKeydownEvent(e);if(!n)return this._replayKeydownEvents(),void this._clearPendingState();this._keystrokes.push(n);var i=d.matchKeyBinding(this._keyBindings,this._keystrokes,e),r=i.exact,o=i.partial;if(!r&&!o)return this._replayKeydownEvents(),void this._clearPendingState();if(e.preventDefault(),e.stopPropagation(),r&&!o)return this._executeKeyBinding(r),void this._clearPendingState();r&&(this._exactKeyMatch=r),this._keydownEvents.push(e),this._startTimer()}},t.prototype._startTimer=function(){var t=this;this._clearTimer(),this._timerID=setTimeout(function(){t._onPendingTimeout()},d.CHORD_TIMEOUT)},t.prototype._clearTimer=function(){0!==this._timerID&&(clearTimeout(this._timerID),this._timerID=0)},t.prototype._replayKeydownEvents=function(){0!==this._keydownEvents.length&&(this._replaying=!0,this._keydownEvents.forEach(d.replayKeyEvent),this._replaying=!1)},t.prototype._executeKeyBinding=function(t){var e=t.command,n=t.args;if(!this.hasCommand(e)||!this.isEnabled(e,n)){var i=this.hasCommand(e)?"enabled":"registered",r=t.keys.join(", "),o="Cannot execute key binding '"+r+"':",s="command '"+e+"' is not "+i+".";return void console.warn(o+" "+s)}this.execute(e,n)},t.prototype._clearPendingState=function(){this._clearTimer(),this._exactKeyMatch=null,this._keystrokes.length=0,this._keydownEvents.length=0},t.prototype._onPendingTimeout=function(){this._timerID=0,this._exactKeyMatch?this._executeKeyBinding(this._exactKeyMatch):this._replayKeydownEvents(),this._clearPendingState()},t}();e.CommandRegistry=u,function(t){function e(t){for(var e="",n=!1,i=!1,r=!1,o=!1,a=0,c=t.split(/\s+/);a<c.length;a++){var u=c[a];"Accel"===u?s.Platform.IS_MAC?i=!0:r=!0:"Alt"===u?n=!0:"Cmd"===u?i=!0:"Ctrl"===u?r=!0:"Shift"===u?o=!0:u.length>0&&(e=u)}return{cmd:i,ctrl:r,alt:n,shift:o,key:e}}function n(t){var n="",i=e(t);return i.ctrl&&(n+="Ctrl "),i.alt&&(n+="Alt "),i.shift&&(n+="Shift "),i.cmd&&s.Platform.IS_MAC&&(n+="Cmd "),n+i.key}function i(t){var e=a.getKeyboardLayout().keyForKeydownEvent(t);if(!e)return"";var n="";return t.ctrlKey&&(n+="Ctrl "),t.altKey&&(n+="Alt "),t.shiftKey&&(n+="Shift "),t.metaKey&&s.Platform.IS_MAC&&(n+="Cmd "),n+e}t.parseKeystroke=e,t.normalizeKeystroke=n,t.keystrokeForKeydownEvent=i}(u=e.CommandRegistry||(e.CommandRegistry={})),e.CommandRegistry=u;var d;!function(t){function e(t){return{execute:t.execute,label:a(t.label,f),mnemonic:a(t.mnemonic,m),iconClass:a(t.iconClass||t.icon,f),iconLabel:a(t.iconLabel,f),caption:a(t.caption,f),usage:a(t.usage,f),className:a(t.className,f),dataset:a(t.dataset,y),isEnabled:t.isEnabled||v,isToggled:t.isToggled||g,isVisible:t.isVisible||v}}function n(t){return{keys:c(t),selector:d(t),command:t.command,args:t.args||r.JSONExt.emptyObject}}function i(t,e,n){for(var i=null,r=!1,o=1/0,a=0,c=0,u=t.length;c<u;++c){var d=t[c],p=h(d.keys,e);if(0!==p)if(2!==p){var f=l(d.selector,n);if(!(-1===f||f>o)){var m=s.Selector.calculateSpecificity(d.selector);(!i||f<o||m>=a)&&(i=d,o=f,a=m)}}else r||-1===l(d.selector,n)||(r=!0)}return{exact:i,partial:r}}function o(t){t.target.dispatchEvent(p(t))}function a(t,e){return void 0===t?e:"function"==typeof t?t:function(){return t}}function c(t){var e;return e=s.Platform.IS_WIN?t.winKeys||t.keys:s.Platform.IS_MAC?t.macKeys||t.keys:t.linuxKeys||t.keys,e.map(u.normalizeKeystroke)}function d(t){if(-1!==t.selector.indexOf(","))throw new Error("Selector cannot contain commas: "+t.selector);if(!s.Selector.isValid(t.selector))throw new Error("Invalid selector: "+t.selector);return t.selector}function h(t,e){if(t.length<e.length)return 0;for(var n=0,i=e.length;n<i;++n)if(t[n]!==e[n])return 0;return t.length>e.length?2:1}function l(t,e){for(var n=e.target,i=e.currentTarget,r=0;null!==n;n=n.parentElement,++r){if(s.Selector.matches(n,t))return r;if(n===i)return-1}return-1}function p(t){var e=document.createEvent("Event"),n=t.bubbles||!0,i=t.cancelable||!0;return e.initEvent(t.type||"keydown",n,i),e.key=t.key||"",e.keyCode=t.keyCode||0,e.which=t.keyCode||0,e.ctrlKey=t.ctrlKey||!1,e.altKey=t.altKey||!1,e.shiftKey=t.shiftKey||!1,e.metaKey=t.metaKey||!1,e.view=t.view||window,e}t.CHORD_TIMEOUT=1e3,t.createCommand=e,t.createKeyBinding=n,t.matchKeyBinding=i,t.replayKeyEvent=o;var f=function(){return""},m=function(){return-1},v=function(){return!0},g=function(){return!1},y=function(){return{}}}(d||(d={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=function(){function t(t){this._fn=t}return Object.defineProperty(t.prototype,"isDisposed",{get:function(){return!this._fn},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){if(this._fn){var t=this._fn;this._fn=null,t()}},t}();e.DisposableDelegate=r;var o=function(){function t(){this._disposed=!1,this._items=new Set}return Object.defineProperty(t.prototype,"isDisposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._items.forEach(function(t){t.dispose()}),this._items.clear())},t.prototype.contains=function(t){return this._items.has(t)},t.prototype.add=function(t){this._items.add(t)},t.prototype.remove=function(t){this._items.delete(t)},t.prototype.clear=function(){this._items.clear()},t}();e.DisposableSet=o,function(t){function e(e){var n=new t;return i.each(e,function(t){n.add(t)}),n}t.from=e}(o=e.DisposableSet||(e.DisposableSet={})),e.DisposableSet=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(12),r=function(){function t(t){var e=this;this._onScrollFrame=function(){if(e._scrollTarget){var t=e._scrollTarget,n=t.element,i=t.edge,r=t.distance,s=o.SCROLL_EDGE_SIZE-r,a=Math.pow(s/o.SCROLL_EDGE_SIZE,2),c=Math.max(1,Math.round(a*o.SCROLL_EDGE_SIZE));switch(i){case"top":n.scrollTop-=c;break;case"left":n.scrollLeft-=c;break;case"right":n.scrollLeft+=c;break;case"bottom":n.scrollTop+=c}requestAnimationFrame(e._onScrollFrame)}},this._disposed=!1,this._dropAction="none",this._override=null,this._currentTarget=null,this._currentElement=null,this._promise=null,this._scrollTarget=null,this._resolve=null,this.mimeData=t.mimeData,this.dragImage=t.dragImage||null,this.proposedAction=t.proposedAction||"copy",this.supportedActions=t.supportedActions||"all",this.source=t.source||null}return t.prototype.dispose=function(){if(!this._disposed){if(this._disposed=!0,this._currentTarget){var t=o.createMouseEvent("mouseup",-1,-1);o.dispatchDragLeave(this,this._currentTarget,null,t)}this._finalize("none")}},Object.defineProperty(t.prototype,"isDisposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),t.prototype.start=function(t,e){var n=this;if(this._disposed)return Promise.resolve("none");if(this._promise)return this._promise;this._addListeners(),this._attachDragImage(t,e),this._promise=new Promise(function(t,e){n._resolve=t});var i=o.createMouseEvent("mousemove",t,e);return document.dispatchEvent(i),this._promise},t.prototype.handleEvent=function(t){switch(t.type){case"mousemove":this._evtMouseMove(t);break;case"mouseup":this._evtMouseUp(t);break;case"keydown":this._evtKeyDown(t);break;default:t.preventDefault(),t.stopPropagation()}},t.prototype._evtMouseMove=function(t){t.preventDefault(),t.stopPropagation(),this._updateCurrentTarget(t),this._updateDragScroll(t),this._moveDragImage(t.clientX,t.clientY)},t.prototype._evtMouseUp=function(t){if(t.preventDefault(),t.stopPropagation(),0===t.button){if(this._updateCurrentTarget(t),!this._currentTarget)return void this._finalize("none");if("none"===this._dropAction)return o.dispatchDragLeave(this,this._currentTarget,null,t),void this._finalize("none");var e=o.dispatchDrop(this,this._currentTarget,t);this._finalize(e)}},t.prototype._evtKeyDown=function(t){t.preventDefault(),t.stopPropagation(),27===t.keyCode&&this.dispose()},t.prototype._addListeners=function(){document.addEventListener("mousedown",this,!0),document.addEventListener("mousemove",this,!0),document.addEventListener("mouseup",this,!0),document.addEventListener("mouseenter",this,!0),document.addEventListener("mouseleave",this,!0),document.addEventListener("mouseover",this,!0),document.addEventListener("mouseout",this,!0),document.addEventListener("keydown",this,!0),document.addEventListener("keyup",this,!0),document.addEventListener("keypress",this,!0),document.addEventListener("contextmenu",this,!0)},t.prototype._removeListeners=function(){document.removeEventListener("mousedown",this,!0),document.removeEventListener("mousemove",this,!0),document.removeEventListener("mouseup",this,!0),document.removeEventListener("mouseenter",this,!0),document.removeEventListener("mouseleave",this,!0),document.removeEventListener("mouseover",this,!0),document.removeEventListener("mouseout",this,!0),document.removeEventListener("keydown",this,!0),document.removeEventListener("keyup",this,!0),document.removeEventListener("keypress",this,!0),document.removeEventListener("contextmenu",this,!0)},t.prototype._updateDragScroll=function(t){var e=o.findScrollTarget(t);(this._scrollTarget||e)&&(this._scrollTarget||setTimeout(this._onScrollFrame,500),this._scrollTarget=e)},t.prototype._updateCurrentTarget=function(t){var e=this._currentTarget,n=this._currentTarget,i=this._currentElement,r=document.elementFromPoint(t.clientX,t.clientY);this._currentElement=r,r!==i&&r!==n&&o.dispatchDragExit(this,n,r,t),r!==i&&r!==n&&(n=o.dispatchDragEnter(this,r,n,t)),n!==e&&(this._currentTarget=n,o.dispatchDragLeave(this,e,n,t));var s=o.dispatchDragOver(this,n,t);this._setDropAction(s)},t.prototype._attachDragImage=function(t,e){if(this.dragImage){this.dragImage.classList.add("p-mod-drag-image");var n=this.dragImage.style;n.pointerEvents="none",n.position="fixed",n.top=e+"px",n.left=t+"px",document.body.appendChild(this.dragImage)}},t.prototype._moveDragImage=function(t,e){if(this.dragImage){var n=this.dragImage.style;n.top=e+"px",n.left=t+"px"}},t.prototype._detachDragImage=function(){if(this.dragImage){var t=this.dragImage.parentNode;t&&t.removeChild(this.dragImage)}},t.prototype._setDropAction=function(e){if(e=o.validateAction(e,this.supportedActions),!this._override||this._dropAction!==e)switch(e){case"none":this._dropAction=e,this._override=t.overrideCursor("no-drop");break;case"copy":this._dropAction=e,this._override=t.overrideCursor("copy");break;case"link":this._dropAction=e,this._override=t.overrideCursor("alias");break;case"move":this._dropAction=e,this._override=t.overrideCursor("move")}},t.prototype._finalize=function(t){var e=this._resolve;this._removeListeners(),this._detachDragImage(),this._override&&(this._override.dispose(),this._override=null),this.mimeData.clear(),this._disposed=!0,this._dropAction="none",this._currentTarget=null,this._currentElement=null,this._scrollTarget=null,this._promise=null,this._resolve=null,e&&e(t)},t}();e.Drag=r,function(t){function e(t){var e=++n;return document.body.style.cursor=t,document.body.classList.add("p-mod-override-cursor"),new i.DisposableDelegate(function(){e===n&&(document.body.style.cursor="",document.body.classList.remove("p-mod-override-cursor"))})}t.overrideCursor=e;var n=0}(r=e.Drag||(e.Drag={})),e.Drag=r;var o;!function(t){function e(t,e){return d[t]&h[e]?t:"none"}function n(t,e,n){var i=document.createEvent("MouseEvent");return i.initMouseEvent(t,!0,!0,window,0,0,0,e,n,!1,!1,!1,!1,0,null),i}function i(e){for(var n=e.clientX,i=e.clientY,r=document.elementFromPoint(n,i);r;r=r.parentElement)if(r.hasAttribute("data-p-dragscroll")){var o=0,s=0;r===document.body&&(o=window.pageXOffset,s=window.pageYOffset);var a=r.getBoundingClientRect(),c=a.top+s,u=a.left+o,d=u+a.width,h=c+a.height;if(!(n<u||n>=d||i<c||i>=h)){var l=n-u+1,p=i-c+1,f=d-n,m=h-i,v=Math.min(l,p,f,m);if(!(v>t.SCROLL_EDGE_SIZE)){var g=void 0;switch(v){case m:g="bottom";break;case p:g="top";break;case f:g="right";break;case l:g="left";break;default:throw"unreachable"}var y=r.scrollWidth-r.clientWidth,_=r.scrollHeight-r.clientHeight,b=void 0;switch(g){case"top":b=_>0&&r.scrollTop>0;break;case"left":b=y>0&&r.scrollLeft>0;break;case"right":b=y>0&&r.scrollLeft<y;break;case"bottom":b=_>0&&r.scrollTop<_;break;default:throw"unreachable"}if(b)return{element:r,edge:g,distance:v}}}}return null}function r(t,e,n,i){if(!e)return null;var r=u("p-dragenter",t,i,n);return e.dispatchEvent(r)?e===document.body?n:(r=u("p-dragenter",t,i,n),document.body.dispatchEvent(r),document.body):e}function o(t,e,n,i){if(e){var r=u("p-dragexit",t,i,n);e.dispatchEvent(r)}}function s(t,e,n,i){if(e){var r=u("p-dragleave",t,i,n);e.dispatchEvent(r)}}function a(t,e,n){if(!e)return"none";var i=u("p-dragover",t,n,null);return e.dispatchEvent(i)?"none":i.dropAction}function c(t,e,n){if(!e)return"none";var i=u("p-drop",t,n,null);return e.dispatchEvent(i)?"none":i.dropAction}function u(t,e,n,i){var r=document.createEvent("MouseEvent");return r.initMouseEvent(t,!0,!0,window,0,n.screenX,n.screenY,n.clientX,n.clientY,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey,n.button,i),r.dropAction="none",r.mimeData=e.mimeData,r.proposedAction=e.proposedAction,r.supportedActions=e.supportedActions,r.source=e.source,r}t.SCROLL_EDGE_SIZE=20,t.validateAction=e,t.createMouseEvent=n,t.findScrollTarget=i,t.dispatchDragEnter=r,t.dispatchDragExit=o,t.dispatchDragLeave=s,t.dispatchDragOver=a,t.dispatchDrop=c;var d={none:0,copy:1,link:2,move:4},h={none:d.none,copy:d.copy,link:d.link,move:d.move,"copy-link":d.copy|d.link,"copy-move":d.copy|d.move,"link-move":d.link|d.move,all:d.copy|d.link|d.move}}(o||(o={}))},function(t,e,n){"use strict";function i(){return s.keyboardLayout}function r(t){s.keyboardLayout=t}Object.defineProperty(e,"__esModule",{value:!0}),e.getKeyboardLayout=i,e.setKeyboardLayout=r;var o=function(){function t(e,n){this.name=e,this._codes=n,this._keys=t.extractKeys(n)}return t.prototype.keys=function(){return Object.keys(this._keys)},t.prototype.isValidKey=function(t){return t in this._keys},t.prototype.keyForKeydownEvent=function(t){return this._codes[t.keyCode]||""},t}();e.KeycodeLayout=o,function(t){function e(t){var e=Object.create(null);for(var n in t)e[t[n]]=!0;return e}t.extractKeys=e}(o=e.KeycodeLayout||(e.KeycodeLayout={})),e.KeycodeLayout=o,e.EN_US=new o("en-us",{8:"Backspace",9:"Tab",13:"Enter",19:"Pause",27:"Escape",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",93:"ContextMenu",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"});var s;!function(t){t.keyboardLayout=e.EN_US}(s||(s={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){this.sizeHint=0,this.minSize=0,this.maxSize=1/0,this.stretch=1,this.size=0,this.done=!1}return t}();e.BoxSizer=i;!function(t){function e(t,e){var n=t.length;if(0===n)return e;for(var i=0,r=0,o=0,s=0,a=0,c=0;c<n;++c){var u=t[c],d=u.minSize,h=u.maxSize,l=u.sizeHint;u.done=!1,u.size=Math.max(d,Math.min(l,h)),o+=u.size,i+=d,r+=h,u.stretch>0&&(s+=u.stretch,a++)}if(e===o)return 0;if(e<=i){for(var c=0;c<n;++c){var u=t[c];u.size=u.minSize}return e-i}if(e>=r){for(var c=0;c<n;++c){var u=t[c];u.size=u.maxSize}return e-r}var p=n;if(e<o){for(var f=o-e;a>0&&f>.01;)for(var m=f,v=s,c=0;c<n;++c){var u=t[c];if(!u.done&&0!==u.stretch){var g=u.stretch*m/v;u.size-g<=u.minSize?(f-=u.size-u.minSize,s-=u.stretch,u.size=u.minSize,u.done=!0,p--,a--):(f-=g,u.size-=g)}}for(;p>0&&f>.01;)for(var g=f/p,c=0;c<n;++c){var u=t[c];u.done||(u.size-g<=u.minSize?(f-=u.size-u.minSize,u.size=u.minSize,u.done=!0,p--):(f-=g,u.size-=g))}}else{for(var f=e-o;a>0&&f>.01;)for(var m=f,v=s,c=0;c<n;++c){var u=t[c];if(!u.done&&0!==u.stretch){var g=u.stretch*m/v;u.size+g>=u.maxSize?(f-=u.maxSize-u.size,s-=u.stretch,u.size=u.maxSize,u.done=!0,p--,a--):(f-=g,u.size+=g)}}for(;p>0&&f>.01;)for(var g=f/p,c=0;c<n;++c){var u=t[c];u.done||(u.size+g>=u.maxSize?(f-=u.maxSize-u.size,u.size=u.maxSize,u.done=!0,p--):(f-=g,u.size+=g))}}return 0}function n(t,e,n){0!==t.length&&0!==n&&(n>0?i(t,e,n):r(t,e,-n))}function i(t,e,n){for(var i=0,r=0;r<=e;++r){var o=t[r];i+=o.maxSize-o.size}for(var s=0,r=e+1,a=t.length;r<a;++r){var o=t[r];s+=o.size-o.minSize}n=Math.min(n,i,s);for(var c=n,r=e;r>=0&&c>0;--r){var o=t[r],u=o.maxSize-o.size;u>=c?(o.sizeHint=o.size+c,c=0):(o.sizeHint=o.size+u,c-=u)}for(var d=n,r=e+1,a=t.length;r<a&&d>0;++r){var o=t[r],u=o.size-o.minSize;u>=d?(o.sizeHint=o.size-d,d=0):(o.sizeHint=o.size-u,d-=u)}}function r(t,e,n){for(var i=0,r=e+1,o=t.length;r<o;++r){var s=t[r];i+=s.maxSize-s.size}for(var a=0,r=0;r<=e;++r){var s=t[r];a+=s.size-s.minSize}n=Math.min(n,i,a);for(var c=n,r=e+1,o=t.length;r<o&&c>0;++r){var s=t[r],u=s.maxSize-s.size;u>=c?(s.sizeHint=s.size+c,c=0):(s.sizeHint=s.size+u,c-=u)}for(var d=n,r=e;r>=0&&d>0;--r){var s=t[r],u=s.size-s.minSize;u>=d?(s.sizeHint=s.size-d,d=0):(s.sizeHint=s.size-u,d-=u)}}t.calc=e,t.adjust=n}(e.BoxEngine||(e.BoxEngine={}))},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(10),o=n(2),s=function(t){function e(e){void 0===e&&(e={});var n=t.call(this)||this;return n.addClass("p-Panel"),n.layout=a.createLayout(e),n}return i(e,t),Object.defineProperty(e.prototype,"widgets",{get:function(){return this.layout.widgets},enumerable:!0,configurable:!0}),e.prototype.addWidget=function(t){this.layout.addWidget(t)},e.prototype.insertWidget=function(t,e){this.layout.insertWidget(t,e)},e}(o.Widget);e.Panel=s;var a;!function(t){function e(t){return t.layout||new r.PanelLayout}t.createLayout=e}(a||(a={}))},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),s=n(3),a=n(7),c=n(15),u=n(8),d=n(10),h=n(2),l=function(t){function e(e){void 0===e&&(e={});var n=t.call(this)||this;return n._fixed=0,n._spacing=4,n._dirty=!1,n._sizers=[],n._items=[],n._box=null,n._alignment="start",n._direction="top-to-bottom",void 0!==e.direction&&(n._direction=e.direction),void 0!==e.alignment&&(n._alignment=e.alignment),void 0!==e.spacing&&(n._spacing=p.clampSpacing(e.spacing)),n}return i(e,t),e.prototype.dispose=function(){r.each(this._items,function(t){t.dispose()}),this._box=null,this._items.length=0,this._sizers.length=0,t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"direction",{get:function(){return this._direction},set:function(t){this._direction!==t&&(this._direction=t,this.parent&&(this.parent.dataset.direction=t,this.parent.fit()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignment",{get:function(){return this._alignment},set:function(t){this._alignment!==t&&(this._alignment=t,this.parent&&(this.parent.dataset.alignment=t,this.parent.update()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){return this._spacing},set:function(t){t=p.clampSpacing(t),this._spacing!==t&&(this._spacing=t,this.parent&&this.parent.fit())},enumerable:!0,configurable:!0}),e.prototype.init=function(){this.parent.dataset.direction=this.direction,this.parent.dataset.alignment=this.alignment,t.prototype.init.call(this)},e.prototype.attachWidget=function(t,e){r.ArrayExt.insert(this._items,t,new u.LayoutItem(e)),r.ArrayExt.insert(this._sizers,t,new c.BoxSizer),this.parent.isAttached&&s.MessageLoop.sendMessage(e,h.Widget.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&s.MessageLoop.sendMessage(e,h.Widget.Msg.AfterAttach),this.parent.fit()},e.prototype.moveWidget=function(t,e,n){r.ArrayExt.move(this._items,t,e),r.ArrayExt.move(this._sizers,t,e),this.parent.update()},e.prototype.detachWidget=function(t,e){var n=r.ArrayExt.removeAt(this._items,t);r.ArrayExt.removeAt(this._sizers,t),this.parent.isAttached&&s.MessageLoop.sendMessage(e,h.Widget.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&s.MessageLoop.sendMessage(e,h.Widget.Msg.AfterDetach),n.dispose(),this.parent.fit()},e.prototype.onBeforeShow=function(e){t.prototype.onBeforeShow.call(this,e),this.parent.update()},e.prototype.onBeforeAttach=function(e){t.prototype.onBeforeAttach.call(this,e),this.parent.fit()},e.prototype.onChildShown=function(t){this.parent.fit()},e.prototype.onChildHidden=function(t){this.parent.fit()},e.prototype.onResize=function(t){this.parent.isVisible&&this._update(t.width,t.height)},e.prototype.onUpdateRequest=function(t){this.parent.isVisible&&this._update(-1,-1)},e.prototype.onFitRequest=function(t){this.parent.isAttached&&this._fit()},e.prototype._fit=function(){for(var t=0,n=0,i=this._items.length;n<i;++n)t+=+!this._items[n].isHidden;this._fixed=this._spacing*Math.max(0,t-1);for(var r=p.isHorizontal(this._direction),a=r?this._fixed:0,c=r?0:this._fixed,n=0,i=this._items.length;n<i;++n){var u=this._items[n],d=this._sizers[n];u.isHidden?(d.minSize=0,d.maxSize=0):(u.fit(),d.sizeHint=e.getSizeBasis(u.widget),d.stretch=e.getStretch(u.widget),r?(d.minSize=u.minWidth,d.maxSize=u.maxWidth,a+=u.minWidth,c=Math.max(c,u.minHeight)):(d.minSize=u.minHeight,d.maxSize=u.maxHeight,c+=u.minHeight,a=Math.max(a,u.minWidth)))}var l=this._box=o.ElementExt.boxSizing(this.parent.node);a+=l.horizontalSum,c+=l.verticalSum;var f=this.parent.node.style;f.minWidth=a+"px",f.minHeight=c+"px",this._dirty=!0,this.parent.parent&&s.MessageLoop.sendMessage(this.parent.parent,h.Widget.Msg.FitRequest),this._dirty&&s.MessageLoop.sendMessage(this.parent,h.Widget.Msg.UpdateRequest)},e.prototype._update=function(t,e){this._dirty=!1;for(var n=0,i=0,r=this._items.length;i<r;++i)n+=+!this._items[i].isHidden;if(0!==n){t<0&&(t=this.parent.node.offsetWidth),e<0&&(e=this.parent.node.offsetHeight),this._box||(this._box=o.ElementExt.boxSizing(this.parent.node));var s,a=this._box.paddingTop,u=this._box.paddingLeft,d=t-this._box.horizontalSum,h=e-this._box.verticalSum;switch(this._direction){case"left-to-right":s=c.BoxEngine.calc(this._sizers,Math.max(0,d-this._fixed));break;case"top-to-bottom":s=c.BoxEngine.calc(this._sizers,Math.max(0,h-this._fixed));break;case"right-to-left":s=c.BoxEngine.calc(this._sizers,Math.max(0,d-this._fixed)),u+=d;break;case"bottom-to-top":s=c.BoxEngine.calc(this._sizers,Math.max(0,h-this._fixed)),a+=h;break;default:throw"unreachable"}var l=0,p=0;if(s>0)switch(this._alignment){case"start":break;case"center":l=0,p=s/2;break;case"end":l=0,p=s;break;case"justify":l=s/n,p=0;break;default:throw"unreachable"}for(var i=0,r=this._items.length;i<r;++i){var f=this._items[i];if(!f.isHidden){var m=this._sizers[i].size;switch(this._direction){case"left-to-right":f.update(u+p,a,m+l,h),u+=m+l+this._spacing;break;case"top-to-bottom":f.update(u,a+p,d,m+l),a+=m+l+this._spacing;break;case"right-to-left":f.update(u-p-m-l,a,m+l,h),u-=m+l+this._spacing;break;case"bottom-to-top":f.update(u,a-p-m-l,d,m+l),a-=m+l+this._spacing;break;default:throw"unreachable"}}}}},e}(d.PanelLayout);e.BoxLayout=l,function(t){function e(t){return p.stretchProperty.get(t)}function n(t,e){p.stretchProperty.set(t,e)}function i(t){return p.sizeBasisProperty.get(t)}function r(t,e){p.sizeBasisProperty.set(t,e)}t.getStretch=e,t.setStretch=n,t.getSizeBasis=i,t.setSizeBasis=r}(l=e.BoxLayout||(e.BoxLayout={})),e.BoxLayout=l;var p;!function(t){function e(t){return"left-to-right"===t||"right-to-left"===t}function n(t){return Math.max(0,Math.floor(t))}function i(t){t.parent&&t.parent.layout instanceof l&&t.parent.fit()}t.stretchProperty=new a.AttachedProperty({name:"stretch",create:function(){return 0},coerce:function(t,e){return Math.max(0,Math.floor(e))},changed:i}),t.sizeBasisProperty=new a.AttachedProperty({name:"sizeBasis",create:function(){return 0},coerce:function(t,e){return Math.max(0,Math.floor(e))},changed:i}),t.isHorizontal=e,t.clampSpacing=n}(p||(p={}))},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),s=n(13),a=n(3),c=n(4),u=n(9),d=n(19),h=n(2),l=function(t){function e(n){void 0===n&&(n={});var i=t.call(this,{node:p.createNode()})||this;return i._currentIndex=-1,i._titles=[],i._previousTitle=null,i._dragData=null,i._tabMoved=new c.Signal(i),i._currentChanged=new c.Signal(i),i._tabCloseRequested=new c.Signal(i),i._tabDetachRequested=new c.Signal(i),i._tabActivateRequested=new c.Signal(i),i.addClass("p-TabBar"),i.setFlag(h.Widget.Flag.DisallowLayout),i.tabsMovable=n.tabsMovable||!1,i.allowDeselect=n.allowDeselect||!1,i.insertBehavior=n.insertBehavior||"select-tab-if-needed",i.removeBehavior=n.removeBehavior||"select-tab-after",i.renderer=n.renderer||e.defaultRenderer,i._orientation=n.orientation||"horizontal",i.dataset.orientation=i._orientation,i}return i(e,t),e.prototype.dispose=function(){this._releaseMouse(),this._titles.length=0,this._previousTitle=null,t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"currentChanged",{get:function(){return this._currentChanged},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabMoved",{get:function(){return this._tabMoved},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabActivateRequested",{get:function(){return this._tabActivateRequested},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabCloseRequested",{get:function(){return this._tabCloseRequested},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabDetachRequested",{get:function(){return this._tabDetachRequested},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentTitle",{get:function(){return this._titles[this._currentIndex]||null},set:function(t){this.currentIndex=t?this._titles.indexOf(t):-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentIndex",{get:function(){return this._currentIndex},set:function(t){if((t<0||t>=this._titles.length)&&(t=-1),this._currentIndex!==t){var e=this._currentIndex,n=this._titles[e]||null,i=t,r=this._titles[i]||null;this._currentIndex=i,this._previousTitle=n,this.update(),this._currentChanged.emit({previousIndex:e,previousTitle:n,currentIndex:i,currentTitle:r})}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this._orientation},set:function(t){this._orientation!==t&&(this._releaseMouse(),this._orientation=t,this.dataset.orientation=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"titles",{get:function(){return this._titles},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentNode",{get:function(){return this.node.getElementsByClassName("p-TabBar-content")[0]},enumerable:!0,configurable:!0}),e.prototype.addTab=function(t){return this.insertTab(this._titles.length,t)},e.prototype.insertTab=function(t,e){this._releaseMouse();var n=p.asTitle(e),i=this._titles.indexOf(n),o=Math.max(0,Math.min(t,this._titles.length));return-1===i?(r.ArrayExt.insert(this._titles,o,n),n.changed.connect(this._onTitleChanged,this),this.update(),this._adjustCurrentForInsert(o,n),n):(o===this._titles.length&&o--,i===o?n:(r.ArrayExt.move(this._titles,i,o),this.update(),this._adjustCurrentForMove(i,o),n))},e.prototype.removeTab=function(t){this.removeTabAt(this._titles.indexOf(t))},e.prototype.removeTabAt=function(t){this._releaseMouse();var e=r.ArrayExt.removeAt(this._titles,t);e&&(e.changed.disconnect(this._onTitleChanged,this),e===this._previousTitle&&(this._previousTitle=null),this.update(),this._adjustCurrentForRemove(t,e))},e.prototype.clearTabs=function(){if(0!==this._titles.length){this._releaseMouse();for(var t=0,e=this._titles;t<e.length;t++){e[t].changed.disconnect(this._onTitleChanged,this)}var n=this.currentIndex,i=this.currentTitle;this._currentIndex=-1,this._previousTitle=null,this._titles.length=0,this.update(),-1!==n&&this._currentChanged.emit({previousIndex:n,previousTitle:i,currentIndex:-1,currentTitle:null})}},e.prototype.releaseMouse=function(){this._releaseMouse()},e.prototype.handleEvent=function(t){switch(t.type){case"mousedown":this._evtMouseDown(t);break;case"mousemove":this._evtMouseMove(t);break;case"mouseup":this._evtMouseUp(t);break;case"keydown":this._evtKeyDown(t);break;case"contextmenu":t.preventDefault(),t.stopPropagation()}},e.prototype.onBeforeAttach=function(t){this.node.addEventListener("mousedown",this)},e.prototype.onAfterDetach=function(t){this.node.removeEventListener("mousedown",this),this._releaseMouse()},e.prototype.onUpdateRequest=function(t){for(var e=this._titles,n=this.renderer,i=this.currentTitle,r=new Array(e.length),o=0,s=e.length;o<s;++o){var a=e[o],c=a===i,d=c?s:s-o-1;r[o]=n.renderTab({title:a,current:c,zIndex:d})}u.VirtualDOM.render(r,this.contentNode)},e.prototype._evtKeyDown=function(t){t.preventDefault(),t.stopPropagation(),27===t.keyCode&&this._releaseMouse()},e.prototype._evtMouseDown=function(t){if((0===t.button||1===t.button)&&!this._dragData){var e=this.contentNode.children,n=r.ArrayExt.findFirstIndex(e,function(e){return o.ElementExt.hitTest(e,t.clientX,t.clientY)});if(-1!==n&&(t.preventDefault(),t.stopPropagation(),this._dragData={tab:e[n],index:n,pressX:t.clientX,pressY:t.clientY,tabPos:-1,tabSize:-1,tabPressPos:-1,targetIndex:-1,tabLayout:null,contentRect:null,override:null,dragActive:!1,dragAborted:!1,detachRequested:!1},document.addEventListener("mouseup",this,!0),1!==t.button)){var i=e[n].querySelector(this.renderer.closeIconSelector);i&&i.contains(t.target)||(this.tabsMovable&&(document.addEventListener("mousemove",this,!0),document.addEventListener("keydown",this,!0),document.addEventListener("contextmenu",this,!0)),this.allowDeselect&&this.currentIndex===n?this.currentIndex=-1:this.currentIndex=n,-1!==this.currentIndex&&this._tabActivateRequested.emit({index:this.currentIndex,title:this.currentTitle}))}}},e.prototype._evtMouseMove=function(t){var e=this._dragData;if(e){t.preventDefault(),t.stopPropagation();var n=this.contentNode.children;if(e.dragActive||p.dragExceeded(e,t)){if(!e.dragActive){var i=e.tab.getBoundingClientRect();"horizontal"===this._orientation?(e.tabPos=e.tab.offsetLeft,e.tabSize=i.width,e.tabPressPos=e.pressX-i.left):(e.tabPos=e.tab.offsetTop,e.tabSize=i.height,e.tabPressPos=e.pressY-i.top),e.tabLayout=p.snapTabLayout(n,this._orientation),e.contentRect=this.contentNode.getBoundingClientRect(),e.override=s.Drag.overrideCursor("default"),e.tab.classList.add("p-mod-dragging"),this.addClass("p-mod-dragging"),e.dragActive=!0}if(!e.detachRequested&&p.detachExceeded(e,t)){e.detachRequested=!0;var r=e.index,o=t.clientX,a=t.clientY,c=n[r],u=this._titles[r];if(this._tabDetachRequested.emit({index:r,title:u,tab:c,clientX:o,clientY:a}),e.dragAborted)return}p.layoutTabs(n,e,t,this._orientation)}}},e.prototype._evtMouseUp=function(t){var e=this;if(0===t.button||1===t.button){var n=this._dragData;if(n)if(t.preventDefault(),t.stopPropagation(),document.removeEventListener("mousemove",this,!0),document.removeEventListener("mouseup",this,!0),document.removeEventListener("keydown",this,!0),document.removeEventListener("contextmenu",this,!0),n.dragActive){if(0===t.button){p.finalizeTabPosition(n,this._orientation),n.tab.classList.remove("p-mod-dragging");var i=p.parseTransitionDuration(n.tab);setTimeout(function(){if(!n.dragAborted){e._dragData=null,p.resetTabPositions(e.contentNode.children,e._orientation),n.override.dispose(),e.removeClass("p-mod-dragging");var t=n.index,i=n.targetIndex;-1!==i&&t!==i&&(r.ArrayExt.move(e._titles,t,i),e._adjustCurrentForMove(t,i),e._tabMoved.emit({fromIndex:t,toIndex:i,title:e._titles[i]}),a.MessageLoop.sendMessage(e,h.Widget.Msg.UpdateRequest))}},i)}}else{this._dragData=null;var s=this.contentNode.children,c=r.ArrayExt.findFirstIndex(s,function(e){return o.ElementExt.hitTest(e,t.clientX,t.clientY)});if(c!==n.index)return;var u=this._titles[c];if(!u.closable)return;if(1===t.button)return void this._tabCloseRequested.emit({index:c,title:u});var d=s[c].querySelector(this.renderer.closeIconSelector);if(d&&d.contains(t.target))return void this._tabCloseRequested.emit({index:c,title:u})}}},e.prototype._releaseMouse=function(){var t=this._dragData;t&&(this._dragData=null,document.removeEventListener("mousemove",this,!0),document.removeEventListener("mouseup",this,!0),document.removeEventListener("keydown",this,!0),document.removeEventListener("contextmenu",this,!0),t.dragAborted=!0,t.dragActive&&(p.resetTabPositions(this.contentNode.children,this._orientation),t.override.dispose(),t.tab.classList.remove("p-mod-dragging"),this.removeClass("p-mod-dragging")))},e.prototype._adjustCurrentForInsert=function(t,e){var n=this.currentTitle,i=this._currentIndex,r=this.insertBehavior;if("select-tab"===r||"select-tab-if-needed"===r&&-1===i)return this._currentIndex=t,this._previousTitle=n,void this._currentChanged.emit({previousIndex:i,previousTitle:n,currentIndex:t,currentTitle:e});i>=t&&this._currentIndex++},e.prototype._adjustCurrentForMove=function(t,e){this._currentIndex===t?this._currentIndex=e:this._currentIndex<t&&this._currentIndex>=e?this._currentIndex++:this._currentIndex>t&&this._currentIndex<=e&&this._currentIndex--},e.prototype._adjustCurrentForRemove=function(t,e){var n=this._currentIndex,i=this.removeBehavior;return n!==t?void(n>t&&this._currentIndex--):0===this._titles.length?(this._currentIndex=-1,void this._currentChanged.emit({previousIndex:t,previousTitle:e,currentIndex:-1,currentTitle:null})):"select-tab-after"===i?(this._currentIndex=Math.min(t,this._titles.length-1),void this._currentChanged.emit({previousIndex:t,previousTitle:e,currentIndex:this._currentIndex,currentTitle:this.currentTitle})):"select-tab-before"===i?(this._currentIndex=Math.max(0,t-1),void this._currentChanged.emit({previousIndex:t,previousTitle:e,currentIndex:this._currentIndex,currentTitle:this.currentTitle})):"select-previous-tab"===i?(this._previousTitle?(this._currentIndex=this._titles.indexOf(this._previousTitle),this._previousTitle=null):this._currentIndex=Math.min(t,this._titles.length-1),void this._currentChanged.emit({previousIndex:t,previousTitle:e,currentIndex:this._currentIndex,currentTitle:this.currentTitle})):(this._currentIndex=-1,void this._currentChanged.emit({previousIndex:t,previousTitle:e,currentIndex:-1,currentTitle:null}))},e.prototype._onTitleChanged=function(t){this.update()},e}(h.Widget);e.TabBar=l,function(t){var e=function(){function t(){this.closeIconSelector=".p-TabBar-tabCloseIcon",this._tabID=0,this._tabKeys=new WeakMap}return t.prototype.renderTab=function(t){var e=t.title.caption,n=this.createTabKey(t),i=this.createTabStyle(t),r=this.createTabClass(t),o=this.createTabDataset(t);return u.h.li({key:n,className:r,title:e,style:i,dataset:o},this.renderIcon(t),this.renderLabel(t),this.renderCloseIcon(t))},t.prototype.renderIcon=function(t){var e=this.createIconClass(t);return u.h.div({className:e},t.title.iconLabel)},t.prototype.renderLabel=function(t){return u.h.div({className:"p-TabBar-tabLabel"},t.title.label)},t.prototype.renderCloseIcon=function(t){return u.h.div({className:"p-TabBar-tabCloseIcon"})},t.prototype.createTabKey=function(t){var e=this._tabKeys.get(t.title);return void 0===e&&(e="tab-key-"+this._tabID++,this._tabKeys.set(t.title,e)),e},t.prototype.createTabStyle=function(t){return{zIndex:""+t.zIndex}},t.prototype.createTabClass=function(t){var e="p-TabBar-tab";return t.title.className&&(e+=" "+t.title.className),t.title.closable&&(e+=" p-mod-closable"),t.current&&(e+=" p-mod-current"),e},t.prototype.createTabDataset=function(t){return t.title.dataset},t.prototype.createIconClass=function(t){var e="p-TabBar-tabIcon",n=t.title.iconClass;return n?e+" "+n:e},t}();t.Renderer=e,t.defaultRenderer=new e}(l=e.TabBar||(e.TabBar={})),e.TabBar=l;var p;!function(t){function e(){var t=document.createElement("div"),e=document.createElement("ul");return e.className="p-TabBar-content",t.appendChild(e),t}function n(t){return t instanceof d.Title?t:new d.Title(t)}function i(t){var e=window.getComputedStyle(t);return 1e3*(parseFloat(e.transitionDuration)||0)}function o(t,e){for(var n=new Array(t.length),i=0,r=t.length;i<r;++i){var o=t[i],s=window.getComputedStyle(o);n[i]="horizontal"===e?{pos:o.offsetLeft,size:o.offsetWidth,margin:parseFloat(s.marginLeft)||0}:{pos:o.offsetTop,size:o.offsetHeight,margin:parseFloat(s.marginTop)||0}}return n}function s(e,n){var i=Math.abs(n.clientX-e.pressX),r=Math.abs(n.clientY-e.pressY);return i>=t.DRAG_THRESHOLD||r>=t.DRAG_THRESHOLD}function a(e,n){var i=e.contentRect;return n.clientX<i.left-t.DETACH_THRESHOLD||n.clientX>=i.right+t.DETACH_THRESHOLD||n.clientY<i.top-t.DETACH_THRESHOLD||n.clientY>=i.bottom+t.DETACH_THRESHOLD}function c(t,e,n,i){var r,o,s,a;"horizontal"===i?(r=e.pressX,o=n.clientX-e.contentRect.left,s=n.clientX,a=e.contentRect.width):(r=e.pressY,o=n.clientY-e.contentRect.top,s=n.clientY,a=e.contentRect.height);for(var c=e.index,u=o-e.tabPressPos,d=u+e.tabSize,h=0,l=t.length;h<l;++h){var p=void 0,f=e.tabLayout[h],m=f.pos+(f.size>>1);if(h<e.index&&u<m)p=e.tabSize+e.tabLayout[h+1].margin+"px",c=Math.min(c,h);else if(h>e.index&&d>m)p=-e.tabSize-f.margin+"px",c=Math.max(c,h);else if(h===e.index){var v=s-r,g=a-(e.tabPos+e.tabSize);p=Math.max(-e.tabPos,Math.min(v,g))+"px"}else p="";"horizontal"===i?t[h].style.left=p:t[h].style.top=p}e.targetIndex=c}function u(t,e){var n;n="horizontal"===e?t.contentRect.width:t.contentRect.height;var i;if(t.targetIndex===t.index)i=0;else if(t.targetIndex>t.index){var r=t.tabLayout[t.targetIndex];i=r.pos+r.size-t.tabSize-t.tabPos}else{var r=t.tabLayout[t.targetIndex];i=r.pos-t.tabPos}var o=n-(t.tabPos+t.tabSize),s=Math.max(-t.tabPos,Math.min(i,o));"horizontal"===e?t.tab.style.left=s+"px":t.tab.style.top=s+"px"}function h(t,e){r.each(t,function(t){"horizontal"===e?t.style.left="":t.style.top=""})}t.DRAG_THRESHOLD=5,t.DETACH_THRESHOLD=20,t.createNode=e,t.asTitle=n,t.parseTransitionDuration=i,t.snapTabLayout=o,t.dragExceeded=s,t.detachExceeded=a,t.layoutTabs=c,t.finalizeTabPosition=u,t.resetTabPositions=h}(p||(p={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),r=function(){function t(t){this._label="",this._caption="",this._mnemonic=-1,this._iconClass="",this._iconLabel="",this._className="",this._closable=!1,this._changed=new i.Signal(this),this.owner=t.owner,void 0!==t.label&&(this._label=t.label),void 0!==t.mnemonic&&(this._mnemonic=t.mnemonic),void 0!==t.icon&&(this._iconClass=t.icon),void 0!==t.iconClass&&(this._iconClass=t.iconClass),void 0!==t.iconLabel&&(this._iconLabel=t.iconLabel),void 0!==t.caption&&(this._caption=t.caption),void 0!==t.className&&(this._className=t.className),void 0!==t.closable&&(this._closable=t.closable),this._dataset=t.dataset||{}}return Object.defineProperty(t.prototype,"changed",{get:function(){return this._changed},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){return this._label},set:function(t){this._label!==t&&(this._label=t,this._changed.emit(void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mnemonic",{get:function(){return this._mnemonic},set:function(t){this._mnemonic!==t&&(this._mnemonic=t,this._changed.emit(void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"icon",{get:function(){return this.iconClass},set:function(t){this.iconClass=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconClass",{get:function(){return this._iconClass},set:function(t){this._iconClass!==t&&(this._iconClass=t,this._changed.emit(void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconLabel",{get:function(){return this._iconLabel},set:function(t){this._iconLabel!==t&&(this._iconLabel=t,this._changed.emit(void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"caption",{get:function(){return this._caption},set:function(t){this._caption!==t&&(this._caption=t,this._changed.emit(void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return this._className},set:function(t){this._className!==t&&(this._className=t,this._changed.emit(void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"closable",{get:function(){return this._closable},set:function(t){this._closable!==t&&(this._closable=t,this._changed.emit(void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataset",{get:function(){return this._dataset},set:function(t){this._dataset!==t&&(this._dataset=t,this._changed.emit(void 0))},enumerable:!0,configurable:!0}),t}();e.Title=r},function(t,e,n){function i(t,e){this._id=t,this._clearFn=e}var r=Function.prototype.apply;e.setTimeout=function(){return new i(r.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new i(r.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(63),e.setImmediate=setImmediate,e.clearImmediate=clearImmediate},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(46))},function(t,e,n){"use strict";function i(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),i(n(15)),i(n(17)),i(n(54)),i(n(55)),i(n(56)),i(n(23)),i(n(57)),i(n(58)),i(n(8)),i(n(24)),i(n(59)),i(n(16)),i(n(10)),i(n(25)),i(n(60)),i(n(26)),i(n(27)),i(n(18)),i(n(61)),i(n(19)),i(n(2))},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),s=n(3),a=n(15),c=n(8),u=n(2),d=function(t){function e(e){var n=t.call(this)||this;return n._spacing=4,n._dirty=!1,n._root=null,n._box=null,n._items=new Map,n.renderer=e.renderer,void 0!==e.spacing&&(n._spacing=h.clampSpacing(e.spacing)),n}return i(e,t),e.prototype.dispose=function(){var e=this.iter();this._items.forEach(function(t){t.dispose()}),this._box=null,this._root=null,this._items.clear(),r.each(e,function(t){t.dispose()}),t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"spacing",{get:function(){return this._spacing},set:function(t){t=h.clampSpacing(t),this._spacing!==t&&(this._spacing=t,this.parent&&this.parent.fit())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return null===this._root},enumerable:!0,configurable:!0}),e.prototype.iter=function(){return this._root?this._root.iterAllWidgets():r.empty()},e.prototype.widgets=function(){return this._root?this._root.iterUserWidgets():r.empty()},e.prototype.selectedWidgets=function(){return this._root?this._root.iterSelectedWidgets():r.empty()},e.prototype.tabBars=function(){return this._root?this._root.iterTabBars():r.empty()},e.prototype.handles=function(){return this._root?this._root.iterHandles():r.empty()},e.prototype.moveHandle=function(t,e,n){if(this._root&&!t.classList.contains("p-mod-hidden")){var i=this._root.findSplitNode(t);if(i){var r;r="horizontal"===i.node.orientation?e-t.offsetLeft:n-t.offsetTop,0!==r&&(i.node.holdSizes(),a.BoxEngine.adjust(i.node.sizers,i.index,r),this.parent&&this.parent.update())}}},e.prototype.saveLayout=function(){return this._root?(this._root.holdAllSizes(),{main:this._root.createConfig()}):{main:null}},e.prototype.restoreLayout=function(t){var e,n=this,i=new Set;e=t.main?h.normalizeAreaConfig(t.main,i):null;var o=this.widgets(),s=this.tabBars(),a=this.handles();this._root=null,r.each(o,function(t){i.has(t)||(t.parent=null)}),r.each(s,function(t){t.dispose()}),r.each(a,function(t){t.parentNode&&t.parentNode.removeChild(t)}),i.forEach(function(t){t.parent=n.parent}),this._root=e?h.realizeAreaConfig(e,{createTabBar:function(){return n._createTabBar()},createHandle:function(){return n._createHandle()}}):null,this.parent&&(i.forEach(function(t){n.attachWidget(t)}),this.parent.fit())},e.prototype.addWidget=function(t,e){void 0===e&&(e={});var n=e.ref||null,i=e.mode||"tab-after",r=null;if(this._root&&n&&(r=this._root.findTabNode(n)),n&&!r)throw new Error("Reference widget is not in the layout.");switch(t.parent=this.parent,i){case"tab-after":this._insertTab(t,n,r,!0);break;case"tab-before":this._insertTab(t,n,r,!1);break;case"split-top":this._insertSplit(t,n,r,"vertical",!1);break;case"split-left":this._insertSplit(t,n,r,"horizontal",!1);break;case"split-right":this._insertSplit(t,n,r,"horizontal",!0);break;case"split-bottom":this._insertSplit(t,n,r,"vertical",!0)}this.parent&&(this.attachWidget(t),this.parent.fit())},e.prototype.removeWidget=function(t){this._removeWidget(t),this.parent&&(this.detachWidget(t),this.parent.fit())},e.prototype.hitTestTabAreas=function(t,e){if(!this._root||!this.parent||!this.parent.isVisible)return null;this._box||(this._box=o.ElementExt.boxSizing(this.parent.node));var n=this.parent.node.getBoundingClientRect(),i=t-n.left-this._box.borderLeft,r=e-n.top-this._box.borderTop,s=this._root.hitTestTabNodes(i,r);if(!s)return null;var a=s.tabBar,c=s.top,u=s.left,d=s.width,h=s.height,l=this._box.borderLeft+this._box.borderRight,p=this._box.borderTop+this._box.borderBottom;return{tabBar:a,x:i,y:r,top:c,left:u,right:n.width-l-(u+d),bottom:n.height-p-(c+h),width:d,height:h}},e.prototype.init=function(){var e=this;t.prototype.init.call(this),r.each(this,function(t){e.attachWidget(t)}),r.each(this.handles(),function(t){e.parent.node.appendChild(t)}),this.parent.fit()},e.prototype.attachWidget=function(t){this.parent.node!==t.node.parentNode&&(this._items.set(t,new c.LayoutItem(t)),this.parent.isAttached&&s.MessageLoop.sendMessage(t,u.Widget.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.isAttached&&s.MessageLoop.sendMessage(t,u.Widget.Msg.AfterAttach))},e.prototype.detachWidget=function(t){if(this.parent.node===t.node.parentNode){this.parent.isAttached&&s.MessageLoop.sendMessage(t,u.Widget.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&s.MessageLoop.sendMessage(t,u.Widget.Msg.AfterDetach);var e=this._items.get(t);e&&(this._items.delete(t),e.dispose())}},e.prototype.onBeforeShow=function(e){t.prototype.onBeforeShow.call(this,e),this.parent.update()},e.prototype.onBeforeAttach=function(e){t.prototype.onBeforeAttach.call(this,e),this.parent.fit()},e.prototype.onChildShown=function(t){this.parent.fit()},e.prototype.onChildHidden=function(t){this.parent.fit()},e.prototype.onResize=function(t){this.parent.isVisible&&this._update(t.width,t.height)},e.prototype.onUpdateRequest=function(t){this.parent.isVisible&&this._update(-1,-1)},e.prototype.onFitRequest=function(t){this.parent.isAttached&&this._fit()},e.prototype._removeWidget=function(t){if(this._root){var e=this._root.findTabNode(t);if(e){if(e.tabBar.titles.length>1)return void e.tabBar.removeTab(t.title);if(e.tabBar.dispose(),this._root===e)return void(this._root=null);this._root.holdAllSizes();var n=e.parent;e.parent=null;var i=r.ArrayExt.removeFirstOf(n.children,e),o=r.ArrayExt.removeAt(n.handles,i);if(r.ArrayExt.removeAt(n.sizers,i),o.parentNode&&o.parentNode.removeChild(o),n.children.length>1)return void n.syncHandles();var s=n.parent;n.parent=null;var a=n.children[0],c=n.handles[0];if(n.children.length=0,n.handles.length=0,n.sizers.length=0,c.parentNode&&c.parentNode.removeChild(c),this._root===n)return a.parent=null,void(this._root=a);var u=s,d=u.children.indexOf(n);if(a instanceof h.TabLayoutNode)return a.parent=u,void(u.children[d]=a);var l=r.ArrayExt.removeAt(u.handles,d);r.ArrayExt.removeAt(u.children,d),r.ArrayExt.removeAt(u.sizers,d),l.parentNode&&l.parentNode.removeChild(l);for(var p=0,f=a.children.length;p<f;++p){var m=a.children[p],v=a.handles[p],g=a.sizers[p];r.ArrayExt.insert(u.children,d+p,m),r.ArrayExt.insert(u.handles,d+p,v),r.ArrayExt.insert(u.sizers,d+p,g),m.parent=u}a.children.length=0,a.handles.length=0,a.sizers.length=0,a.parent=null,u.syncHandles()}}},e.prototype._insertTab=function(t,e,n,i){if(t!==e){if(!this._root){var r=new h.TabLayoutNode(this._createTabBar());return r.tabBar.addTab(t.title),void(this._root=r)}n||(n=this._root.findFirstTabNode()),-1===n.tabBar.titles.indexOf(t.title)&&(this._removeWidget(t),t.hide());var o;o=e?n.tabBar.titles.indexOf(e.title):n.tabBar.currentIndex,n.tabBar.insertTab(o+(i?1:0),t.title)}},e.prototype._insertSplit=function(t,e,n,i,o){if(t!==e||!n||1!==n.tabBar.titles.length){this._removeWidget(t);var s=new h.TabLayoutNode(this._createTabBar());if(s.tabBar.addTab(t.title),!this._root)return void(this._root=s);if(!n||!n.parent){var a=this._splitRoot(i),c=o?a.children.length:0;a.normalizeSizes();var u=h.createSizer(n?1:h.GOLDEN_RATIO);return r.ArrayExt.insert(a.children,c,s),r.ArrayExt.insert(a.sizers,c,u),r.ArrayExt.insert(a.handles,c,this._createHandle()),s.parent=a,a.normalizeSizes(),void a.syncHandles()}var d=n.parent;if(d.orientation===i){var l=d.children.indexOf(n);d.normalizeSizes();var p=d.sizers[l].sizeHint/=2,f=l+(o?1:0);return r.ArrayExt.insert(d.children,f,s),r.ArrayExt.insert(d.sizers,f,h.createSizer(p)),r.ArrayExt.insert(d.handles,f,this._createHandle()),s.parent=d,void d.syncHandles()}var m=r.ArrayExt.removeFirstOf(d.children,n),v=new h.SplitLayoutNode(i);v.normalized=!0,v.children.push(n),v.sizers.push(h.createSizer(.5)),v.handles.push(this._createHandle()),n.parent=v;var g=o?1:0;r.ArrayExt.insert(v.children,g,s),r.ArrayExt.insert(v.sizers,g,h.createSizer(.5)),r.ArrayExt.insert(v.handles,g,this._createHandle()),s.parent=v,v.syncHandles(),r.ArrayExt.insert(d.children,m,v),v.parent=d}},e.prototype._splitRoot=function(t){var e=this._root;if(e instanceof h.SplitLayoutNode&&e.orientation===t)return e;var n=this._root=new h.SplitLayoutNode(t);return e&&(n.children.push(e),n.sizers.push(h.createSizer(0)),n.handles.push(this._createHandle()),e.parent=n),n},e.prototype._fit=function(){var t=0,e=0;if(this._root){var n=this._root.fit(this._spacing,this._items);t=n.minWidth,e=n.minHeight}var i=this._box=o.ElementExt.boxSizing(this.parent.node);t+=i.horizontalSum,e+=i.verticalSum;var r=this.parent.node.style;r.minWidth=t+"px",r.minHeight=e+"px",this._dirty=!0,this.parent.parent&&s.MessageLoop.sendMessage(this.parent.parent,u.Widget.Msg.FitRequest),this._dirty&&s.MessageLoop.sendMessage(this.parent,u.Widget.Msg.UpdateRequest)},e.prototype._update=function(t,e){if(this._dirty=!1,this._root){t<0&&(t=this.parent.node.offsetWidth),e<0&&(e=this.parent.node.offsetHeight),this._box||(this._box=o.ElementExt.boxSizing(this.parent.node));var n=this._box.paddingTop,i=this._box.paddingLeft,r=t-this._box.horizontalSum,s=e-this._box.verticalSum;this._root.update(n,i,r,s,this._spacing,this._items)}},e.prototype._createTabBar=function(){var t=this.renderer.createTabBar();return t.orientation="horizontal",this.parent&&(t.parent=this.parent,this.attachWidget(t)),t},e.prototype._createHandle=function(){var t=this.renderer.createHandle(),e=t.style;return e.position="absolute",e.top="0",e.left="0",e.width="0",e.height="0",this.parent&&this.parent.node.appendChild(t),t},e}(c.Layout);e.DockLayout=d;var h;!function(t){function e(t){return Math.max(0,Math.floor(t))}function n(t){var e=new a.BoxSizer;return e.sizeHint=t,e.size=t,e}function i(t,e){return"tab-area"===t.type?s(t,e):c(t,e)}function o(t,e){return"tab-area"===t.type?u(t,e):d(t,e)}function s(t,e){if(0===t.widgets.length)return null;var n=[];if(r.each(t.widgets,function(t){e.has(t)||(e.add(t),n.push(t))}),0===n.length)return null;var i=t.currentIndex;return-1!==i&&(i<0||i>=n.length)&&(i=0),{type:"tab-area",widgets:n,currentIndex:i}}function c(t,e){for(var n=t.orientation,r=[],o=[],s=0,a=t.children.length;s<a;++s){var c=i(t.children[s],e);c&&("tab-area"===c.type||c.orientation!==n?(r.push(c),o.push(Math.abs(t.sizes[s]||0))):(r.push.apply(r,c.children),o.push.apply(o,c.sizes)))}return 0===r.length?null:1===r.length?r[0]:{type:"split-area",orientation:n,children:r,sizes:o}}function u(t,e){var n=e.createTabBar();return r.each(t.widgets,function(t){t.hide(),n.addTab(t.title)}),n.currentIndex=t.currentIndex,new h(n)}function d(t,e){var i=new l(t.orientation);return r.each(t.children,function(r,s){var a=o(r,e),c=n(t.sizes[s]),u=e.createHandle();i.children.push(a),i.handles.push(u),i.sizers.push(c),a.parent=i}),i.syncHandles(),i.normalizeSizes(),i}t.GOLDEN_RATIO=.618,t.clampSpacing=e,t.createSizer=n,t.normalizeAreaConfig=i,t.realizeAreaConfig=o;var h=function(){function t(t){this.parent=null,this._top=0,this._left=0,this._width=0,this._height=0;var e=new a.BoxSizer,n=new a.BoxSizer;e.stretch=0,n.stretch=1,this.tabBar=t,this.sizers=[e,n]}return Object.defineProperty(t.prototype,"top",{get:function(){return this._top},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return this._left},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},enumerable:!0,configurable:!0}),t.prototype.iterAllWidgets=function(){return r.chain(r.once(this.tabBar),this.iterUserWidgets())},t.prototype.iterUserWidgets=function(){return r.map(this.tabBar.titles,function(t){return t.owner})},t.prototype.iterSelectedWidgets=function(){var t=this.tabBar.currentTitle;return t?r.once(t.owner):r.empty()},t.prototype.iterTabBars=function(){return r.once(this.tabBar)},t.prototype.iterHandles=function(){return r.empty()},t.prototype.findTabNode=function(t){return-1!==this.tabBar.titles.indexOf(t.title)?this:null},t.prototype.findSplitNode=function(t){return null},t.prototype.findFirstTabNode=function(){return this},t.prototype.hitTestTabNodes=function(t,e){return t<this._left||t>=this._left+this._width?null:e<this._top||e>=this._top+this._height?null:this},t.prototype.createConfig=function(){return{type:"tab-area",widgets:this.tabBar.titles.map(function(t){return t.owner}),currentIndex:this.tabBar.currentIndex}},t.prototype.holdAllSizes=function(){},t.prototype.fit=function(t,e){var n=0,i=0,r=e.get(this.tabBar),o=this.tabBar.currentTitle,s=o?e.get(o.owner):void 0,a=this.sizers,c=a[0],u=a[1];return r&&r.fit(),s&&s.fit(),r&&!r.isHidden?(n=Math.max(n,r.minWidth),i+=r.minHeight,c.minSize=r.minHeight,c.maxSize=r.maxHeight):(c.minSize=0,c.maxSize=0),s&&!s.isHidden?(n=Math.max(n,s.minWidth),i+=s.minHeight,u.minSize=s.minHeight,u.maxSize=1/0):(u.minSize=0,u.maxSize=1/0),{minWidth:n,minHeight:i,maxWidth:1/0,maxHeight:1/0}},t.prototype.update=function(t,e,n,i,r,o){this._top=e,this._left=t,this._width=n,this._height=i;var s=o.get(this.tabBar),c=this.tabBar.currentTitle,u=c?o.get(c.owner):void 0;if(a.BoxEngine.calc(this.sizers,i),s&&!s.isHidden){var d=this.sizers[0].size;s.update(t,e,n,d),e+=d}if(u&&!u.isHidden){var d=this.sizers[1].size;u.update(t,e,n,d)}},t}();t.TabLayoutNode=h;var l=function(){function t(t){this.parent=null,this.normalized=!1,this.children=[],this.sizers=[],this.handles=[],this.orientation=t}return t.prototype.iterAllWidgets=function(){var t=r.map(this.children,function(t){return t.iterAllWidgets()});return new r.ChainIterator(t)},t.prototype.iterUserWidgets=function(){var t=r.map(this.children,function(t){return t.iterUserWidgets()});return new r.ChainIterator(t)},t.prototype.iterSelectedWidgets=function(){var t=r.map(this.children,function(t){return t.iterSelectedWidgets()});return new r.ChainIterator(t)},t.prototype.iterTabBars=function(){var t=r.map(this.children,function(t){return t.iterTabBars()});return new r.ChainIterator(t)},t.prototype.iterHandles=function(){var t=r.map(this.children,function(t){return t.iterHandles()});return r.chain(this.handles,new r.ChainIterator(t))},t.prototype.findTabNode=function(t){for(var e=0,n=this.children.length;e<n;++e){var i=this.children[e].findTabNode(t);if(i)return i}return null},t.prototype.findSplitNode=function(t){var e=this.handles.indexOf(t);if(-1!==e)return{index:e,node:this};for(var n=0,i=this.children.length;n<i;++n){var r=this.children[n].findSplitNode(t);if(r)return r}return null},t.prototype.findFirstTabNode=function(){return 0===this.children.length?null:this.children[0].findFirstTabNode()},t.prototype.hitTestTabNodes=function(t,e){for(var n=0,i=this.children.length;n<i;++n){var r=this.children[n].hitTestTabNodes(t,e);if(r)return r}return null},t.prototype.createConfig=function(){var t=this.orientation,e=this.createNormalizedSizes();return{type:"split-area",orientation:t,children:this.children.map(function(t){return t.createConfig()}),sizes:e}},t.prototype.syncHandles=function(){var t=this;r.each(this.handles,function(e,n){e.setAttribute("data-orientation",t.orientation),n===t.handles.length-1?e.classList.add("p-mod-hidden"):e.classList.remove("p-mod-hidden")})},t.prototype.holdSizes=function(){r.each(this.sizers,function(t){t.sizeHint=t.size})},t.prototype.holdAllSizes=function(){r.each(this.children,function(t){return t.holdAllSizes()}),this.holdSizes()},t.prototype.normalizeSizes=function(){var t=this.sizers.length;if(0!==t){this.holdSizes();var e=r.reduce(this.sizers,function(t,e){return t+e.sizeHint},0);0===e?r.each(this.sizers,function(e){e.size=e.sizeHint=1/t}):r.each(this.sizers,function(t){t.size=t.sizeHint/=e}),this.normalized=!0}},t.prototype.createNormalizedSizes=function(){var t=this.sizers.length;if(0===t)return[];var e=this.sizers.map(function(t){return t.size}),n=r.reduce(e,function(t,e){return t+e},0);return 0===n?r.each(e,function(n,i){e[i]=1/t}):r.each(e,function(t,i){e[i]=t/n}),e},t.prototype.fit=function(t,e){for(var n="horizontal"===this.orientation,i=Math.max(0,this.children.length-1)*t,r=n?i:0,o=n?0:i,s=0,a=this.children.length;s<a;++s){var c=this.children[s].fit(t,e);n?(o=Math.max(o,c.minHeight),r+=c.minWidth,this.sizers[s].minSize=c.minWidth):(r=Math.max(r,c.minWidth),o+=c.minHeight,this.sizers[s].minSize=c.minHeight)}return{minWidth:r,minHeight:o,maxWidth:1/0,maxHeight:1/0}},t.prototype.update=function(t,e,n,i,o,s){var c="horizontal"===this.orientation,u=Math.max(0,this.children.length-1)*o,d=Math.max(0,(c?n:i)-u);this.normalized&&(r.each(this.sizers,function(t){t.sizeHint*=d}),this.normalized=!1),a.BoxEngine.calc(this.sizers,d);for(var h=0,l=this.children.length;h<l;++h){var p=this.children[h],f=this.sizers[h].size,m=this.handles[h].style;c?(p.update(t,e,f,i,o,s),t+=f,m.top=e+"px",m.left=t+"px",m.width=o+"px",m.height=i+"px",t+=o):(p.update(t,e,n,f,o,s),e+=f,m.top=e+"px",m.left=t+"px",m.width=n+"px",m.height=o+"px",e+=o)}},t}();t.SplitLayoutNode=l}(h||(h={}))},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=this&&this.__assign||Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t};Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),s=n(11),a=n(6),c=n(1),u=n(14),d=n(3),h=n(4),l=n(9),p=n(2),f=function(t){function e(n){var i=t.call(this,{node:m.createNode()})||this;return i._childIndex=-1,i._activeIndex=-1,i._openTimerID=0,i._closeTimerID=0,i._items=[],i._childMenu=null,i._parentMenu=null,i._aboutToClose=new h.Signal(i),i._menuRequested=new h.Signal(i),i.addClass("p-Menu"),i.setFlag(p.Widget.Flag.DisallowLayout),i.commands=n.commands,i.renderer=n.renderer||e.defaultRenderer,i}return i(e,t),e.prototype.dispose=function(){this.close(),this._items.length=0,t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"aboutToClose",{get:function(){return this._aboutToClose},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"menuRequested",{get:function(){return this._menuRequested},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentMenu",{get:function(){return this._parentMenu},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childMenu",{get:function(){return this._childMenu},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rootMenu",{get:function(){for(var t=this;t._parentMenu;)t=t._parentMenu;return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leafMenu",{get:function(){for(var t=this;t._childMenu;)t=t._childMenu;return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentNode",{get:function(){return this.node.getElementsByClassName("p-Menu-content")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeItem",{get:function(){return this._items[this._activeIndex]||null},set:function(t){this.activeIndex=t?this._items.indexOf(t):-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeIndex",{get:function(){return this._activeIndex},set:function(t){(t<0||t>=this._items.length)&&(t=-1),-1===t||m.canActivate(this._items[t])||(t=-1),this._activeIndex!==t&&(this._activeIndex=t,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this._items},enumerable:!0,configurable:!0}),e.prototype.activateNextItem=function(){var t=this._items.length,e=this._activeIndex,n=e<t-1?e+1:0,i=0===n?t-1:n-1;this.activeIndex=o.ArrayExt.findFirstIndex(this._items,m.canActivate,n,i)},e.prototype.activatePreviousItem=function(){var t=this._items.length,e=this._activeIndex,n=e<=0?t-1:e-1,i=n===t-1?0:n+1;this.activeIndex=o.ArrayExt.findLastIndex(this._items,m.canActivate,n,i)},e.prototype.triggerActiveItem=function(){if(this.isAttached){var t=this.activeItem;if(t){if(this._cancelOpenTimer(),this._cancelCloseTimer(),"submenu"===t.type)return void this._openChildMenu(!0);this.rootMenu.close();var e=t.command,n=t.args;this.commands.isEnabled(e,n)?this.commands.execute(e,n):console.log("Command '"+e+"' is disabled.")}}},e.prototype.addItem=function(t){return this.insertItem(this._items.length,t)},e.prototype.insertItem=function(t,e){this.isAttached&&this.close(),this.activeIndex=-1;var n=Math.max(0,Math.min(t,this._items.length)),i=m.createItem(this,e);return o.ArrayExt.insert(this._items,n,i),this.update(),i},e.prototype.removeItem=function(t){this.removeItemAt(this._items.indexOf(t))},e.prototype.removeItemAt=function(t){this.isAttached&&this.close(),this.activeIndex=-1,o.ArrayExt.removeAt(this._items,t)&&this.update()},e.prototype.clearItems=function(){this.isAttached&&this.close(),this.activeIndex=-1,0!==this._items.length&&(this._items.length=0,this.update())},e.prototype.open=function(t,e,n){if(void 0===n&&(n={}),!this.isAttached){var i=n.forceX||!1,r=n.forceY||!1;m.openRootMenu(this,t,e,i,r),this.activate()}},e.prototype.handleEvent=function(t){switch(t.type){case"keydown":this._evtKeyDown(t);break;case"mouseup":this._evtMouseUp(t);break;case"mousemove":this._evtMouseMove(t);break;case"mouseenter":this._evtMouseEnter(t);break;case"mouseleave":this._evtMouseLeave(t);break;case"mousedown":this._evtMouseDown(t);break;case"contextmenu":t.preventDefault(),t.stopPropagation()}},e.prototype.onBeforeAttach=function(t){this.node.addEventListener("keydown",this),this.node.addEventListener("mouseup",this),this.node.addEventListener("mousemove",this),this.node.addEventListener("mouseenter",this),this.node.addEventListener("mouseleave",this),this.node.addEventListener("contextmenu",this),document.addEventListener("mousedown",this,!0)},e.prototype.onAfterDetach=function(t){this.node.removeEventListener("keydown",this),this.node.removeEventListener("mouseup",this),this.node.removeEventListener("mousemove",this),this.node.removeEventListener("mouseenter",this),this.node.removeEventListener("mouseleave",this),this.node.removeEventListener("contextmenu",this),document.removeEventListener("mousedown",this,!0)},e.prototype.onActivateRequest=function(t){this.isAttached&&this.node.focus()},e.prototype.onUpdateRequest=function(t){for(var e=this._items,n=this.renderer,i=this._activeIndex,r=m.computeCollapsed(e),o=new Array(e.length),s=0,a=e.length;s<a;++s){var c=e[s],u=s===i,d=r[s];o[s]=n.renderItem({item:c,active:u,collapsed:d})}l.VirtualDOM.render(o,this.contentNode)},e.prototype.onCloseRequest=function(e){this._cancelOpenTimer(),this._cancelCloseTimer(),this.activeIndex=-1;var n=this._childMenu;n&&(this._childIndex=-1,this._childMenu=null,n._parentMenu=null,n.close());var i=this._parentMenu;i&&(this._parentMenu=null,i._childIndex=-1,i._childMenu=null,i.activate()),this.isAttached&&this._aboutToClose.emit(void 0),t.prototype.onCloseRequest.call(this,e)},e.prototype._evtKeyDown=function(t){t.preventDefault(),t.stopPropagation();var e=t.keyCode;if(13===e)return void this.triggerActiveItem();if(27===e)return void this.close();if(37===e)return void(this._parentMenu?this.close():this._menuRequested.emit("previous"));if(38===e)return void this.activatePreviousItem();if(39===e){var n=this.activeItem;return void(n&&"submenu"===n.type?this.triggerActiveItem():this.rootMenu._menuRequested.emit("next"))}if(40===e)return void this.activateNextItem();var i=u.getKeyboardLayout().keyForKeydownEvent(t);if(i){var r=this._activeIndex+1,o=m.findMnemonic(this._items,i,r);-1===o.index||o.multiple?-1!==o.index?this.activeIndex=o.index:-1!==o.auto&&(this.activeIndex=o.auto):(this.activeIndex=o.index,this.triggerActiveItem())}},e.prototype._evtMouseUp=function(t){0===t.button&&(t.preventDefault(),t.stopPropagation(),this.triggerActiveItem())},e.prototype._evtMouseMove=function(t){var e=o.ArrayExt.findFirstIndex(this.contentNode.children,function(e){return c.ElementExt.hitTest(e,t.clientX,t.clientY)});if(e!==this._activeIndex){if(this.activeIndex=e,(e=this.activeIndex)===this._childIndex)return this._cancelOpenTimer(),void this._cancelCloseTimer();-1!==this._childIndex&&this._startCloseTimer(),this._cancelOpenTimer();var n=this.activeItem;n&&"submenu"===n.type&&n.submenu&&this._startOpenTimer()}},e.prototype._evtMouseEnter=function(t){for(var e=this._parentMenu;e;e=e._parentMenu)e._cancelOpenTimer(),e._cancelCloseTimer(),e.activeIndex=e._childIndex},e.prototype._evtMouseLeave=function(t){if(this._cancelOpenTimer(),!this._childMenu)return void(this.activeIndex=-1);var e=t.clientX,n=t.clientY;if(c.ElementExt.hitTest(this._childMenu.node,e,n))return void this._cancelCloseTimer();this.activeIndex=-1,this._startCloseTimer()},e.prototype._evtMouseDown=function(t){this._parentMenu||(m.hitTestMenus(this,t.clientX,t.clientY)?(t.preventDefault(),t.stopPropagation()):this.close())},e.prototype._openChildMenu=function(t){void 0===t&&(t=!1);var e=this.activeItem;if(!e||"submenu"!==e.type||!e.submenu)return void this._closeChildMenu();var n=e.submenu;if(n!==this._childMenu){this._closeChildMenu(),this._childMenu=n,this._childIndex=this._activeIndex,n._parentMenu=this,d.MessageLoop.sendMessage(this,p.Widget.Msg.UpdateRequest);var i=this.contentNode.children[this._activeIndex];m.openSubmenu(n,i),t&&(n.activeIndex=-1,n.activateNextItem()),n.activate()}},e.prototype._closeChildMenu=function(){this._childMenu&&this._childMenu.close()},e.prototype._startOpenTimer=function(){var t=this;0===this._openTimerID&&(this._openTimerID=setTimeout(function(){t._openTimerID=0,t._openChildMenu()},m.TIMER_DELAY))},e.prototype._startCloseTimer=function(){var t=this;0===this._closeTimerID&&(this._closeTimerID=setTimeout(function(){t._closeTimerID=0,t._closeChildMenu()},m.TIMER_DELAY))},e.prototype._cancelOpenTimer=function(){0!==this._openTimerID&&(clearTimeout(this._openTimerID),this._openTimerID=0)},e.prototype._cancelCloseTimer=function(){0!==this._closeTimerID&&(clearTimeout(this._closeTimerID),this._closeTimerID=0)},e}(p.Widget);e.Menu=f,function(t){var e=function(){function t(){}return t.prototype.renderItem=function(t){var e=this.createItemClass(t),n=this.createItemDataset(t);return l.h.li({className:e,dataset:n},this.renderIcon(t),this.renderLabel(t),this.renderShortcut(t),this.renderSubmenu(t))},t.prototype.renderIcon=function(t){var e=this.createIconClass(t);return l.h.div({className:e},t.item.iconLabel)},t.prototype.renderLabel=function(t){var e=this.formatLabel(t);return l.h.div({className:"p-Menu-itemLabel"},e)},t.prototype.renderShortcut=function(t){var e=this.formatShortcut(t);return l.h.div({className:"p-Menu-itemShortcut"},e)},t.prototype.renderSubmenu=function(t){return l.h.div({className:"p-Menu-itemSubmenuIcon"})},t.prototype.createItemClass=function(t){var e="p-Menu-item";t.item.isEnabled||(e+=" p-mod-disabled"),t.item.isToggled&&(e+=" p-mod-toggled"),t.item.isVisible||(e+=" p-mod-hidden"),t.active&&(e+=" p-mod-active"),t.collapsed&&(e+=" p-mod-collapsed");var n=t.item.className;return n&&(e+=" "+n),e},t.prototype.createItemDataset=function(t){var e=t.item,n=e.type,i=e.command,o=e.dataset;return"command"===n?r({},o,{type:n,command:i}):r({},o,{type:n})},t.prototype.createIconClass=function(t){var e="p-Menu-itemIcon",n=t.item.iconClass;return n?e+" "+n:e},t.prototype.formatLabel=function(t){var e=t.item,n=e.label,i=e.mnemonic;if(i<0||i>=n.length)return n;var r=n.slice(0,i),o=n.slice(i+1),s=n[i];return[r,l.h.span({className:"p-Menu-itemMnemonic"},s),o]},t.prototype.formatShortcut=function(t){var e=t.item.keyBinding;return e?e.keys.map(m.formatKeystroke).join(", "):null},t}();t.Renderer=e,t.defaultRenderer=new e}(f=e.Menu||(e.Menu={})),e.Menu=f;var m;!function(t){function e(){var t=document.createElement("div"),e=document.createElement("ul");return e.className="p-Menu-content",t.appendChild(e),t.tabIndex=-1,t}function n(t){return"separator"!==t.type&&t.isEnabled&&t.isVisible}function i(t,e){return new v(t.commands,e)}function r(t){var e="",n=s.CommandRegistry.parseKeystroke(t);return c.Platform.IS_MAC?(n.ctrl&&(e+="⌃ "),n.alt&&(e+="⌥ "),n.shift&&(e+="⇧ "),n.cmd&&(e+="⌘ ")):(n.ctrl&&(e+="Ctrl+"),n.alt&&(e+="Alt+"),n.shift&&(e+="Shift+")),e+n.key}function u(t,e,n){for(var i=t;i;i=i.childMenu)if(c.ElementExt.hitTest(i.node,e,n))return!0;return!1}function h(t){var e=new Array(t.length);o.ArrayExt.fill(e,!1);for(var n=0,i=t.length;n<i;++n){var r=t[n];if(r.isVisible){if("separator"!==r.type)break;e[n]=!0}}for(var s=i-1;s>=0;--s){var r=t[s];if(r.isVisible){if("separator"!==r.type)break;e[s]=!0}}for(var a=!1;++n<s;){var r=t[n];r.isVisible&&("separator"!==r.type?a=!1:a?e[n]=!0:a=!0)}return e}function l(t,e,n,i,r){d.MessageLoop.sendMessage(t,p.Widget.Msg.UpdateRequest);var o=window.pageXOffset,s=window.pageYOffset,a=document.documentElement.clientWidth,c=document.documentElement.clientHeight,u=c-(r?n:0),h=t.node,l=h.style;l.top="",l.left="",l.width="",l.height="",l.visibility="hidden",l.maxHeight=u+"px",p.Widget.attach(t,document.body);var f=h.getBoundingClientRect(),m=f.width,v=f.height;!i&&e+m>o+a&&(e=o+a-m),!r&&n+v>s+c&&(n>s+c?n=s+c-v:n-=v),l.top=Math.max(0,n)+"px",l.left=Math.max(0,e)+"px",l.visibility=""}function f(e,n){d.MessageLoop.sendMessage(e,p.Widget.Msg.UpdateRequest);var i=window.pageXOffset,r=window.pageYOffset,o=document.documentElement.clientWidth,s=document.documentElement.clientHeight,a=s,u=e.node,h=u.style;h.top="",h.left="",h.width="",h.height="",h.visibility="hidden",h.maxHeight=a+"px",p.Widget.attach(e,document.body);var l=u.getBoundingClientRect(),f=l.width,m=l.height,v=c.ElementExt.boxSizing(e.node),g=n.getBoundingClientRect(),y=g.right-t.SUBMENU_OVERLAP;y+f>i+o&&(y=g.left+t.SUBMENU_OVERLAP-f);var _=g.top-v.borderTop-v.paddingTop;_+m>r+s&&(_=g.bottom+v.borderBottom+v.paddingBottom-m),h.top=Math.max(0,_)+"px",h.left=Math.max(0,y)+"px",h.visibility=""}function m(t,e,i){for(var r=-1,o=-1,s=!1,a=e.toUpperCase(),c=0,u=t.length;c<u;++c){var d=(c+i)%u,h=t[d];if(n(h)){var l=h.label;if(0!==l.length){var p=h.mnemonic;p>=0&&p<l.length?l[p].toUpperCase()===a&&(-1===r?r=d:s=!0):-1===o&&l[0].toUpperCase()===a&&(o=d)}}}return{index:r,multiple:s,auto:o}}t.TIMER_DELAY=300,t.SUBMENU_OVERLAP=3,t.createNode=e,t.canActivate=n,t.createItem=i,t.formatKeystroke=r,t.hitTestMenus=u,t.computeCollapsed=h,t.openRootMenu=l,t.openSubmenu=f,t.findMnemonic=m;var v=function(){function t(t,e){this._commands=t,this.type=e.type||"command",this.command=e.command||"",this.args=e.args||a.JSONExt.emptyObject,this.submenu=e.submenu||null}return Object.defineProperty(t.prototype,"label",{get:function(){return"command"===this.type?this._commands.label(this.command,this.args):"submenu"===this.type&&this.submenu?this.submenu.title.label:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mnemonic",{get:function(){return"command"===this.type?this._commands.mnemonic(this.command,this.args):"submenu"===this.type&&this.submenu?this.submenu.title.mnemonic:-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"icon",{get:function(){return this.iconClass},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconClass",{get:function(){return"command"===this.type?this._commands.iconClass(this.command,this.args):"submenu"===this.type&&this.submenu?this.submenu.title.iconClass:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconLabel",{get:function(){return"command"===this.type?this._commands.iconLabel(this.command,this.args):"submenu"===this.type&&this.submenu?this.submenu.title.iconLabel:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"caption",{get:function(){return"command"===this.type?this._commands.caption(this.command,this.args):"submenu"===this.type&&this.submenu?this.submenu.title.caption:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return"command"===this.type?this._commands.className(this.command,this.args):"submenu"===this.type&&this.submenu?this.submenu.title.className:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataset",{get:function(){return"command"===this.type?this._commands.dataset(this.command,this.args):"submenu"===this.type&&this.submenu?this.submenu.title.dataset:{}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEnabled",{get:function(){return"command"===this.type?this._commands.isEnabled(this.command,this.args):"submenu"!==this.type||null!==this.submenu},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isToggled",{get:function(){return"command"===this.type&&this._commands.isToggled(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return"command"===this.type?this._commands.isVisible(this.command,this.args):"submenu"!==this.type||null!==this.submenu},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyBinding",{get:function(){if("command"===this.type){var t=this,e=t.command,n=t.args;return o.ArrayExt.findLastValue(this._commands.keyBindings,function(t){return t.command===e&&a.JSONExt.deepEqual(t.args,n)})||null}return null},enumerable:!0,configurable:!0}),t}()}(m||(m={}))},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),s=n(3),a=n(7),c=n(15),u=n(8),d=n(10),h=n(2),l=function(t){function e(e){var n=t.call(this)||this;return n._fixed=0,n._spacing=4,n._dirty=!1,n._hasNormedSizes=!1,n._sizers=[],n._items=[],n._handles=[],n._box=null,n._alignment="start",n._orientation="horizontal",n.renderer=e.renderer,void 0!==e.orientation&&(n._orientation=e.orientation),void 0!==e.alignment&&(n._alignment=e.alignment),void 0!==e.spacing&&(n._spacing=p.clampSpacing(e.spacing)),n}return i(e,t),e.prototype.dispose=function(){r.each(this._items,function(t){t.dispose()}),this._box=null,this._items.length=0,this._sizers.length=0,this._handles.length=0,t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"orientation",{get:function(){return this._orientation},set:function(t){this._orientation!==t&&(this._orientation=t,this.parent&&(this.parent.dataset.orientation=t,this.parent.fit()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignment",{get:function(){return this._alignment},set:function(t){this._alignment!==t&&(this._alignment=t,this.parent&&(this.parent.dataset.alignment=t,this.parent.update()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){return this._spacing},set:function(t){t=p.clampSpacing(t),this._spacing!==t&&(this._spacing=t,this.parent&&this.parent.fit())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"handles",{get:function(){return this._handles},enumerable:!0,configurable:!0}),e.prototype.relativeSizes=function(){return p.normalize(this._sizers.map(function(t){return t.size}))},e.prototype.setRelativeSizes=function(t){for(var e=this._sizers.length,n=t.slice(0,e);n.length<e;)n.push(0);for(var i=p.normalize(n),r=0;r<e;++r){var o=this._sizers[r];o.sizeHint=i[r],o.size=i[r]}this._hasNormedSizes=!0,this.parent&&this.parent.update()},e.prototype.moveHandle=function(t,e){var n=this._handles[t];if(n&&!n.classList.contains("p-mod-hidden")){var i;if(0!==(i="horizontal"===this._orientation?e-n.offsetLeft:e-n.offsetTop)){for(var r=0,o=this._sizers;r<o.length;r++){var s=o[r];s.size>0&&(s.sizeHint=s.size)}c.BoxEngine.adjust(this._sizers,t,i),this.parent&&this.parent.update()}}},e.prototype.init=function(){this.parent.dataset.orientation=this.orientation,this.parent.dataset.alignment=this.alignment,t.prototype.init.call(this)},e.prototype.attachWidget=function(t,e){var n=new u.LayoutItem(e),i=p.createHandle(this.renderer),o=p.averageSize(this._sizers),a=p.createSizer(o);r.ArrayExt.insert(this._items,t,n),r.ArrayExt.insert(this._sizers,t,a),r.ArrayExt.insert(this._handles,t,i),this.parent.isAttached&&s.MessageLoop.sendMessage(e,h.Widget.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.node.appendChild(i),this.parent.isAttached&&s.MessageLoop.sendMessage(e,h.Widget.Msg.AfterAttach),this.parent.fit()},e.prototype.moveWidget=function(t,e,n){r.ArrayExt.move(this._items,t,e),r.ArrayExt.move(this._sizers,t,e),r.ArrayExt.move(this._handles,t,e),this.parent.fit()},e.prototype.detachWidget=function(t,e){var n=r.ArrayExt.removeAt(this._items,t),i=r.ArrayExt.removeAt(this._handles,t);r.ArrayExt.removeAt(this._sizers,t),this.parent.isAttached&&s.MessageLoop.sendMessage(e,h.Widget.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.node.removeChild(i),this.parent.isAttached&&s.MessageLoop.sendMessage(e,h.Widget.Msg.AfterDetach),n.dispose(),this.parent.fit()},e.prototype.onBeforeShow=function(e){t.prototype.onBeforeShow.call(this,e),this.parent.update()},e.prototype.onBeforeAttach=function(e){t.prototype.onBeforeAttach.call(this,e),this.parent.fit()},e.prototype.onChildShown=function(t){this.parent.fit()},e.prototype.onChildHidden=function(t){this.parent.fit()},e.prototype.onResize=function(t){this.parent.isVisible&&this._update(t.width,t.height)},e.prototype.onUpdateRequest=function(t){this.parent.isVisible&&this._update(-1,-1)},e.prototype.onFitRequest=function(t){this.parent.isAttached&&this._fit()},e.prototype._fit=function(){for(var t=0,n=-1,i=0,r=this._items.length;i<r;++i)this._items[i].isHidden?this._handles[i].classList.add("p-mod-hidden"):(this._handles[i].classList.remove("p-mod-hidden"),n=i,t++);-1!==n&&this._handles[n].classList.add("p-mod-hidden"),this._fixed=this._spacing*Math.max(0,t-1);for(var a="horizontal"===this._orientation,c=a?this._fixed:0,u=a?0:this._fixed,i=0,r=this._items.length;i<r;++i){var d=this._items[i],l=this._sizers[i];l.size>0&&(l.sizeHint=l.size),d.isHidden?(l.minSize=0,l.maxSize=0):(d.fit(),l.stretch=e.getStretch(d.widget),a?(l.minSize=d.minWidth,l.maxSize=d.maxWidth,c+=d.minWidth,u=Math.max(u,d.minHeight)):(l.minSize=d.minHeight,l.maxSize=d.maxHeight,u+=d.minHeight,c=Math.max(c,d.minWidth)))}var p=this._box=o.ElementExt.boxSizing(this.parent.node);c+=p.horizontalSum,u+=p.verticalSum;var f=this.parent.node.style;f.minWidth=c+"px",f.minHeight=u+"px",this._dirty=!0,this.parent.parent&&s.MessageLoop.sendMessage(this.parent.parent,h.Widget.Msg.FitRequest),this._dirty&&s.MessageLoop.sendMessage(this.parent,h.Widget.Msg.UpdateRequest)},e.prototype._update=function(t,e){this._dirty=!1;for(var n=0,i=0,r=this._items.length;i<r;++i)n+=+!this._items[i].isHidden;if(0!==n){t<0&&(t=this.parent.node.offsetWidth),e<0&&(e=this.parent.node.offsetHeight),this._box||(this._box=o.ElementExt.boxSizing(this.parent.node));var s,a=this._box.paddingTop,u=this._box.paddingLeft,d=t-this._box.horizontalSum,h=e-this._box.verticalSum,l="horizontal"===this._orientation;if(s=l?Math.max(0,d-this._fixed):Math.max(0,h-this._fixed),this._hasNormedSizes){for(var p=0,f=this._sizers;p<f.length;p++){f[p].sizeHint*=s}this._hasNormedSizes=!1}var m=c.BoxEngine.calc(this._sizers,s),v=0,g=0;if(m>0)switch(this._alignment){case"start":break;case"center":v=0,g=m/2;break;case"end":v=0,g=m;break;case"justify":v=m/n,g=0;break;default:throw"unreachable"}for(var i=0,r=this._items.length;i<r;++i){var y=this._items[i];if(!y.isHidden){var _=this._sizers[i].size,b=this._handles[i].style;l?(y.update(u+g,a,_+v,h),u+=_+v,b.top=a+"px",b.left=u+g+"px",b.width=this._spacing+"px",b.height=h+"px",u+=this._spacing):(y.update(u,a+g,d,_+v),a+=_+v,b.top=a+g+"px",b.left=u+"px",b.width=d+"px",b.height=this._spacing+"px",a+=this._spacing)}}}},e}(d.PanelLayout);e.SplitLayout=l,function(t){function e(t){return p.stretchProperty.get(t)}function n(t,e){p.stretchProperty.set(t,e)}t.getStretch=e,t.setStretch=n}(l=e.SplitLayout||(e.SplitLayout={})),e.SplitLayout=l;var p;!function(t){function e(t){var e=new c.BoxSizer;return e.sizeHint=Math.floor(t),e}function n(t){var e=t.createHandle();return e.style.position="absolute",e}function i(t){return Math.max(0,Math.floor(t))}function r(t){return t.reduce(function(t,e){return t+e.size},0)/t.length||0}function o(t){var e=t.length;if(0===e)return[];var n=t.reduce(function(t,e){return t+Math.abs(e)},0);return 0===n?t.map(function(t){return 1/e}):t.map(function(t){return t/n})}function s(t){t.parent&&t.parent.layout instanceof l&&t.parent.fit()}t.stretchProperty=new a.AttachedProperty({name:"stretch",create:function(){return 0},coerce:function(t,e){return Math.max(0,Math.floor(e))},changed:s}),t.createSizer=e,t.createHandle=n,t.clampSpacing=i,t.averageSize=r,t.normalize=o}(p||(p={}))},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),s=n(3),a=n(8),c=n(10),u=n(2),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._dirty=!1,e._items=[],e._box=null,e}return i(e,t),e.prototype.dispose=function(){r.each(this._items,function(t){t.dispose()}),this._box=null,this._items.length=0,t.prototype.dispose.call(this)},e.prototype.attachWidget=function(t,e){r.ArrayExt.insert(this._items,t,new a.LayoutItem(e)),this.parent.isAttached&&s.MessageLoop.sendMessage(e,u.Widget.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&s.MessageLoop.sendMessage(e,u.Widget.Msg.AfterAttach),this.parent.fit()},e.prototype.moveWidget=function(t,e,n){r.ArrayExt.move(this._items,t,e),this.parent.update()},e.prototype.detachWidget=function(t,e){var n=r.ArrayExt.removeAt(this._items,t);this.parent.isAttached&&s.MessageLoop.sendMessage(e,u.Widget.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&s.MessageLoop.sendMessage(e,u.Widget.Msg.AfterDetach),n.widget.node.style.zIndex="",n.dispose(),this.parent.fit()},e.prototype.onBeforeShow=function(e){t.prototype.onBeforeShow.call(this,e),this.parent.update()},e.prototype.onBeforeAttach=function(e){t.prototype.onBeforeAttach.call(this,e),this.parent.fit()},e.prototype.onChildShown=function(t){this.parent.fit()},e.prototype.onChildHidden=function(t){this.parent.fit()},e.prototype.onResize=function(t){this.parent.isVisible&&this._update(t.width,t.height)},e.prototype.onUpdateRequest=function(t){this.parent.isVisible&&this._update(-1,-1)},e.prototype.onFitRequest=function(t){this.parent.isAttached&&this._fit()},e.prototype._fit=function(){for(var t=0,e=0,n=0,i=this._items.length;n<i;++n){var r=this._items[n];r.isHidden||(r.fit(),t=Math.max(t,r.minWidth),e=Math.max(e,r.minHeight))}var a=this._box=o.ElementExt.boxSizing(this.parent.node);t+=a.horizontalSum,e+=a.verticalSum;var c=this.parent.node.style;c.minWidth=t+"px",c.minHeight=e+"px",this._dirty=!0,this.parent.parent&&s.MessageLoop.sendMessage(this.parent.parent,u.Widget.Msg.FitRequest),this._dirty&&s.MessageLoop.sendMessage(this.parent,u.Widget.Msg.UpdateRequest)},e.prototype._update=function(t,e){this._dirty=!1;for(var n=0,i=0,r=this._items.length;i<r;++i)n+=+!this._items[i].isHidden;if(0!==n){t<0&&(t=this.parent.node.offsetWidth),e<0&&(e=this.parent.node.offsetHeight),this._box||(this._box=o.ElementExt.boxSizing(this.parent.node));for(var s=this._box.paddingTop,a=this._box.paddingLeft,c=t-this._box.horizontalSum,u=e-this._box.verticalSum,i=0,r=this._items.length;i<r;++i){var d=this._items[i];d.isHidden||(d.widget.node.style.zIndex=""+i,d.update(a,s,c,u))}}},e}(c.PanelLayout);e.StackedLayout=d},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),o=n(16),s=n(26),a=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,{layout:c.createLayout(e)})||this;return n._widgetRemoved=new r.Signal(n),n.addClass("p-StackedPanel"),n}return i(e,t),Object.defineProperty(e.prototype,"widgetRemoved",{get:function(){return this._widgetRemoved},enumerable:!0,configurable:!0}),e.prototype.onChildAdded=function(t){t.child.addClass("p-StackedPanel-child")},e.prototype.onChildRemoved=function(t){t.child.removeClass("p-StackedPanel-child"),this._widgetRemoved.emit(t.child)},e}(o.Panel);e.StackedPanel=a;var c;!function(t){function e(t){return t.layout||new s.StackedLayout}t.createLayout=e}(c||(c={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(11),r=n(6),o=n(22),s=function(){function t(t){this._started=!1,this._pluginMap=a.createPluginMap(),this._serviceMap=a.createServiceMap(),this._delegate=new r.PromiseDelegate;var e=new i.CommandRegistry,n=t.contextMenuRenderer,s=new o.ContextMenu({commands:e,renderer:n});this.commands=e,this.contextMenu=s,this.shell=t.shell}return Object.defineProperty(t.prototype,"started",{get:function(){return this._delegate.promise},enumerable:!0,configurable:!0}),t.prototype.hasPlugin=function(t){return t in this._pluginMap},t.prototype.listPlugins=function(){return Object.keys(this._pluginMap)},t.prototype.registerPlugin=function(t){if(t.id in this._pluginMap)throw new Error("Plugin '"+t.id+"' is already registered.");var e=a.createPluginData(t);a.ensureNoCycle(e,this._pluginMap,this._serviceMap),e.provides&&this._serviceMap.set(e.provides,e.id),this._pluginMap[e.id]=e},t.prototype.registerPlugins=function(t){for(var e=0,n=t;e<n.length;e++){var i=n[e];this.registerPlugin(i)}},t.prototype.activatePlugin=function(t){var e=this,n=this._pluginMap[t];if(!n)return Promise.reject(new Error("Plugin '"+t+"' is not registered."));if(n.activated)return Promise.resolve(void 0);if(n.promise)return n.promise;var i=n.requires.map(function(t){return e.resolveRequiredService(t)}),r=n.optional.map(function(t){return e.resolveOptionalService(t)}),o=i.concat(r);return n.promise=Promise.all(o).then(function(t){return n.activate.apply(void 0,[e].concat(t))}).then(function(t){n.service=t,n.activated=!0,n.promise=null}).catch(function(t){throw n.promise=null,t}),n.promise},t.prototype.resolveRequiredService=function(t){var e=this._serviceMap.get(t);if(!e)return Promise.reject(new Error("No provider for: "+t.name+"."));var n=this._pluginMap[e];return n.activated?Promise.resolve(n.service):this.activatePlugin(e).then(function(){return n.service})},t.prototype.resolveOptionalService=function(t){var e=this._serviceMap.get(t);if(!e)return Promise.resolve(null);var n=this._pluginMap[e];return n.activated?Promise.resolve(n.service):this.activatePlugin(e).then(function(){return n.service}).catch(function(t){return console.error(t),null})},t.prototype.start=function(t){var e=this;if(void 0===t&&(t={}),this._started)return this._delegate.promise;this._started=!0;var n=t.hostID||"",i=a.collectStartupPlugins(this._pluginMap,t),r=i.map(function(t){return e.activatePlugin(t).catch(function(e){console.error("Plugin '"+t+"' failed to activate."),console.error(e)})});return Promise.all(r).then(function(){e.attachShell(n),e.addEventListeners(),e._delegate.resolve(void 0)}),this._delegate.promise},t.prototype.handleEvent=function(t){switch(t.type){case"resize":this.evtResize(t);break;case"keydown":this.evtKeydown(t);break;case"contextmenu":this.evtContextMenu(t)}},t.prototype.attachShell=function(t){o.Widget.attach(this.shell,document.getElementById(t)||document.body)},t.prototype.addEventListeners=function(){document.addEventListener("contextmenu",this),document.addEventListener("keydown",this,!0),window.addEventListener("resize",this)},t.prototype.evtKeydown=function(t){this.commands.processKeydownEvent(t)},t.prototype.evtContextMenu=function(t){t.shiftKey||this.contextMenu.open(t)&&(t.preventDefault(),t.stopPropagation())},t.prototype.evtResize=function(t){this.shell.update()},t}();e.Application=s;var a;!function(t){function e(){return Object.create(null)}function n(){return new Map}function i(t){return{id:t.id,service:null,promise:null,activated:!1,activate:t.activate,provides:t.provides||null,autoStart:t.autoStart||!1,requires:t.requires?t.requires.slice():[],optional:t.optional?t.optional.slice():[]}}function r(t,e,n){function i(o){if(o===t.provides)return!0;var s=n.get(o);if(!s)return!1;var a=e[s];return 0!==a.requires.length&&(r.push(s),!!a.requires.some(i)||(r.pop(),!1))}if(t.provides&&0!==t.requires.length){var r=[t.id];if(t.requires.some(i))throw new Error("Cycle detected: "+r.join(" -> ")+".")}}function o(t,e){var n=Object.create(null);for(var i in t)t[i].autoStart&&(n[i]=!0);if(e.startPlugins)for(var r=0,o=e.startPlugins;r<o.length;r++){var i=o[r];n[i]=!0}if(e.ignorePlugins)for(var s=0,a=e.ignorePlugins;s<a.length;s++){var i=a[s];delete n[i]}return Object.keys(n)}t.createPluginMap=e,t.createServiceMap=n,t.createPluginData=i,t.ensureNoCycle=r,t.collectStartupPlugins=o}(a||(a={}))},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0);e.algorithm=i;var r=n(28);e.application=r;var o=n(21);e.collections=o;var s=n(11);e.commands=s;var a=n(6);e.coreutils=a;var c=n(12);e.disposable=c;var u=n(1);e.domutils=u;var d=n(13);e.dragdrop=d;var h=n(14);e.keyboard=h;var l=n(3);e.messaging=l;var p=n(7);e.properties=p;var f=n(4);e.signaling=f;var m=n(9);e.virtualdom=m;var v=n(22);e.widgets=v,n(29)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});!function(t){function e(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=-1);var r=t.length;if(0===r)return-1;n=n<0?Math.max(0,n+r):Math.min(n,r-1),i=i<0?Math.max(0,i+r):Math.min(i,r-1);var o;o=i<n?i+1+(r-n):i-n+1;for(var s=0;s<o;++s){var a=(n+s)%r;if(t[a]===e)return a}return-1}function n(t,e,n,i){void 0===n&&(n=-1),void 0===i&&(i=0);var r=t.length;if(0===r)return-1;n=n<0?Math.max(0,n+r):Math.min(n,r-1),i=i<0?Math.max(0,i+r):Math.min(i,r-1);var o;o=n<i?n+1+(r-i):n-i+1;for(var s=0;s<o;++s){var a=(n-s+r)%r;if(t[a]===e)return a}return-1}function i(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=-1);var r=t.length;if(0===r)return-1;n=n<0?Math.max(0,n+r):Math.min(n,r-1),i=i<0?Math.max(0,i+r):Math.min(i,r-1);var o;o=i<n?i+1+(r-n):i-n+1;for(var s=0;s<o;++s){var a=(n+s)%r;if(e(t[a],a))return a}return-1}function r(t,e,n,i){void 0===n&&(n=-1),void 0===i&&(i=0);var r=t.length;if(0===r)return-1;n=n<0?Math.max(0,n+r):Math.min(n,r-1),i=i<0?Math.max(0,i+r):Math.min(i,r-1);var o;o=n<i?n+1+(r-i):n-i+1;for(var s=0;s<o;++s){var a=(n-s+r)%r;if(e(t[a],a))return a}return-1}function o(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=-1);var o=i(t,e,n,r);return-1!==o?t[o]:void 0}function s(t,e,n,i){void 0===n&&(n=-1),void 0===i&&(i=0);var o=r(t,e,n,i);return-1!==o?t[o]:void 0}function a(t,e,n,i,r){void 0===i&&(i=0),void 0===r&&(r=-1);var o=t.length;if(0===o)return 0;i=i<0?Math.max(0,i+o):Math.min(i,o-1),r=r<0?Math.max(0,r+o):Math.min(r,o-1);for(var s=i,a=r-i+1;a>0;){var c=a>>1,u=s+c;n(t[u],e)<0?(s=u+1,a-=c+1):a=c}return s}function c(t,e,n,i,r){void 0===i&&(i=0),void 0===r&&(r=-1);var o=t.length;if(0===o)return 0;i=i<0?Math.max(0,i+o):Math.min(i,o-1),r=r<0?Math.max(0,r+o):Math.min(r,o-1);for(var s=i,a=r-i+1;a>0;){var c=a>>1,u=s+c;n(t[u],e)>0?a=c:(s=u+1,a-=c+1)}return s}function u(t,e,n){var i=t.length;if(!(i<=1)&&(e=e<0?Math.max(0,e+i):Math.min(e,i-1),n=n<0?Math.max(0,n+i):Math.min(n,i-1),e!==n)){for(var r=t[e],o=e<n?1:-1,s=e;s!==n;s+=o)t[s]=t[s+o];t[n]=r}}function d(t,e,n){void 0===e&&(e=0),void 0===n&&(n=-1);var i=t.length;if(!(i<=1))for(e=e<0?Math.max(0,e+i):Math.min(e,i-1),n=n<0?Math.max(0,n+i):Math.min(n,i-1);e<n;){var r=t[e],o=t[n];t[e++]=o,t[n--]=r}}function h(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=-1);var r=t.length;if(!(r<=1||(n=n<0?Math.max(0,n+r):Math.min(n,r-1),i=i<0?Math.max(0,i+r):Math.min(i,r-1),n>=i))){var o=i-n+1;if(e>0?e%=o:e<0&&(e=(e%o+o)%o),0!==e){var s=n+e;d(t,n,s-1),d(t,s,i),d(t,n,i)}}}function l(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=-1);var r=t.length;if(0!==r){n=n<0?Math.max(0,n+r):Math.min(n,r-1),i=i<0?Math.max(0,i+r):Math.min(i,r-1);var o;o=i<n?i+1+(r-n):i-n+1;for(var s=0;s<o;++s)t[(n+s)%r]=e}}function p(t,e,n){var i=t.length;e=e<0?Math.max(0,e+i):Math.min(e,i);for(var r=i;r>e;--r)t[r]=t[r-1];t[e]=n}function f(t,e){var n=t.length;if(e<0&&(e+=n),!(e<0||e>=n)){for(var i=t[e],r=e+1;r<n;++r)t[r-1]=t[r];return t.length=n-1,i}}function m(t,n,i,r){void 0===i&&(i=0),void 0===r&&(r=-1);var o=e(t,n,i,r);return-1!==o&&f(t,o),o}function v(t,e,i,r){void 0===i&&(i=-1),void 0===r&&(r=0);var o=n(t,e,i,r);return-1!==o&&f(t,o),o}function g(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=-1);var r=t.length;if(0===r)return 0;n=n<0?Math.max(0,n+r):Math.min(n,r-1),i=i<0?Math.max(0,i+r):Math.min(i,r-1);for(var o=0,s=0;s<r;++s)n<=i&&s>=n&&s<=i&&t[s]===e?o++:i<n&&(s<=i||s>=n)&&t[s]===e?o++:o>0&&(t[s-o]=t[s]);return o>0&&(t.length=r-o),o}function y(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=-1);var o,s=i(t,e,n,r);return-1!==s&&(o=f(t,s)),{index:s,value:o}}function _(t,e,n,i){void 0===n&&(n=-1),void 0===i&&(i=0);var o,s=r(t,e,n,i);return-1!==s&&(o=f(t,s)),{index:s,value:o}}function b(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=-1);var r=t.length;if(0===r)return 0;n=n<0?Math.max(0,n+r):Math.min(n,r-1),i=i<0?Math.max(0,i+r):Math.min(i,r-1);for(var o=0,s=0;s<r;++s)n<=i&&s>=n&&s<=i&&e(t[s],s)?o++:i<n&&(s<=i||s>=n)&&e(t[s],s)?o++:o>0&&(t[s-o]=t[s]);return o>0&&(t.length=r-o),o}t.firstIndexOf=e,t.lastIndexOf=n,t.findFirstIndex=i,t.findLastIndex=r,t.findFirstValue=o,t.findLastValue=s,t.lowerBound=a,t.upperBound=c,t.move=u,t.reverse=d,t.rotate=h,t.fill=l,t.insert=p,t.removeAt=f,t.removeFirstOf=m,t.removeLastOf=v,t.removeAllOf=g,t.removeFirstWhere=y,t.removeLastWhere=_,t.removeAllWhere=b}(e.ArrayExt||(e.ArrayExt={}))},function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new o(r.iter(t.map(r.iter)))}Object.defineProperty(e,"__esModule",{value:!0});var r=n(5);e.chain=i;var o=function(){function t(t){this._cloned=!1,this._source=t,this._active=void 0}return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source.clone());return e._active=this._active&&this._active.clone(),e._cloned=!0,this._cloned=!0,e},t.prototype.next=function(){if(void 0===this._active){var t=this._source.next();if(void 0===t)return;this._active=this._cloned?t.clone():t}var e=this._active.next();return void 0!==e?e:(this._active=void 0,this.next())},t}();e.ChainIterator=o},function(t,e,n){"use strict";function i(){return new r}Object.defineProperty(e,"__esModule",{value:!0}),e.empty=i;var r=function(){function t(){}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t},t.prototype.next=function(){},t}();e.EmptyIterator=r},function(t,e,n){"use strict";function i(t,e){return new o(r.iter(t),e)}Object.defineProperty(e,"__esModule",{value:!0});var r=n(5);e.filter=i;var o=function(){function t(t,e){this._index=0,this._source=t,this._fn=e}return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source.clone(),this._fn);return e._index=this._index,e},t.prototype.next=function(){for(var t,e=this._fn,n=this._source;void 0!==(t=n.next());)if(e(t,this._index++))return t},t}();e.FilterIterator=o},function(t,e,n){"use strict";function i(t,e){for(var n,i=0,r=a.iter(t);void 0!==(n=r.next());)if(e(n,i++))return n}function r(t,e){var n=a.iter(t),i=n.next();if(void 0!==i){for(var r=i;void 0!==(i=n.next());)e(i,r)<0&&(r=i);return r}}function o(t,e){var n=a.iter(t),i=n.next();if(void 0!==i){for(var r=i;void 0!==(i=n.next());)e(i,r)>0&&(r=i);return r}}function s(t,e){var n=a.iter(t),i=n.next();if(void 0!==i){for(var r=i,o=i;void 0!==(i=n.next());)e(i,r)<0?r=i:e(i,o)>0&&(o=i);return[r,o]}}Object.defineProperty(e,"__esModule",{value:!0});var a=n(5);e.find=i,e.min=r,e.max=o,e.minmax=s},function(t,e,n){"use strict";function i(t,e){return new o(r.iter(t),e)}Object.defineProperty(e,"__esModule",{value:!0});var r=n(5);e.map=i;var o=function(){function t(t,e){this._index=0,this._source=t,this._fn=e}return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source.clone(),this._fn);return e._index=this._index,e},t.prototype.next=function(){var t=this._source.next();if(void 0!==t)return this._fn.call(void 0,t,this._index++)},t}();e.MapIterator=o},function(t,e,n){"use strict";function i(t,e,n){return void 0===e?new r(0,t,1):void 0===n?new r(t,e,1):new r(t,e,n)}Object.defineProperty(e,"__esModule",{value:!0}),e.range=i;var r=function(){function t(t,e,n){this._index=0,this._start=t,this._stop=e,this._step=n,this._length=o.rangeLength(t,e,n)}return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._start,this._stop,this._step);return e._index=this._index,e},t.prototype.next=function(){if(!(this._index>=this._length))return this._start+this._step*this._index++},t}();e.RangeIterator=r;var o;!function(t){function e(t,e,n){return 0===n?1/0:t>e&&n>0?0:t<e&&n<0?0:Math.ceil((e-t)/n)}t.rangeLength=e}(o||(o={}))},function(t,e,n){"use strict";function i(t,e,n){var i=0,o=r.iter(t),s=o.next();if(void 0===s&&void 0===n)throw new TypeError("Reduce of empty iterable with no initial value.");if(void 0===s)return n;var a=o.next();if(void 0===a&&void 0===n)return s;if(void 0===a)return e(n,s,i++);var c;c=void 0===n?e(s,a,i++):e(e(n,s,i++),a,i++);for(var u;void 0!==(u=o.next());)c=e(c,u,i++);return c}Object.defineProperty(e,"__esModule",{value:!0});var r=n(5);e.reduce=i},function(t,e,n){"use strict";function i(t,e){return new o(t,e)}function r(t){return new o(t,1)}Object.defineProperty(e,"__esModule",{value:!0}),e.repeat=i,e.once=r;var o=function(){function t(t,e){this._value=t,this._count=e}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._value,this._count)},t.prototype.next=function(){if(!(this._count<=0))return this._count--,this._value},t}();e.RepeatIterator=o},function(t,e,n){"use strict";function i(t){return"function"==typeof t.retro?t.retro():new r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.retro=i;var r=function(){function t(t){this._source=t,this._index=t.length-1}return t.prototype.iter=function(){return this},t.prototype.clone=function(){var e=new t(this._source);return e._index=this._index,e},t.prototype.next=function(){if(!(this._index<0||this._index>=this._source.length))return this._source[this._index--]},t}();e.RetroArrayIterator=r},function(t,e,n){"use strict";function i(t){function e(t){var e=t[0],n=t[1],i=s.get(n);i?i.push(e):s.set(n,[e])}function n(t){if(!o.has(t)){o.add(t);var e=s.get(t);e&&e.forEach(n),i.push(t)}}var i=[],o=new Set,s=new Map;return r.each(t,e),s.forEach(function(t,e){n(e)}),i}Object.defineProperty(e,"__esModule",{value:!0});var r=n(5);e.topologicSort=i},function(t,e,n){"use strict";function i(t,e){return new o(r.iter(t),e)}Object.defineProperty(e,"__esModule",{value:!0});var r=n(5);e.stride=i;var o=function(){function t(t,e){this._source=t,this._step=e}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._source.clone(),this._step)},t.prototype.next=function(){for(var t=this._source.next(),e=this._step-1;e>0;--e)this._source.next();return t},t}();e.StrideIterator=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});!function(t){function e(t,e,n){void 0===n&&(n=0);for(var i=new Array(e.length),r=0,o=n,s=e.length;r<s;++r,++o){if(-1===(o=t.indexOf(e[r],o)))return null;i[r]=o}return i}function n(t,n,i){void 0===i&&(i=0);var r=e(t,n,i);if(!r)return null;for(var o=0,s=0,a=r.length;s<a;++s){var c=r[s]-i;o+=c*c}return{score:o,indices:r}}function i(t,n,i){void 0===i&&(i=0);var r=e(t,n,i);if(!r)return null;for(var o=0,s=i-1,a=0,c=r.length;a<c;++a){var u=r[a];o+=u-s-1,s=u}return{score:o,indices:r}}function r(t,e,n){for(var i=[],r=0,o=0,s=e.length;r<s;){for(var a=e[r],c=e[r];++r<s&&e[r]===c+1;)c++;o<a&&i.push(t.slice(o,a)),a<c+1&&i.push(n(t.slice(a,c+1))),o=c+1}return o<t.length&&i.push(t.slice(o)),i}t.findIndices=e,t.matchSumOfSquares=n,t.matchSumOfDeltas=i,t.highlight=r}(e.StringExt||(e.StringExt={}))},function(t,e,n){"use strict";function i(t,e){return new o(r.iter(t),e)}Object.defineProperty(e,"__esModule",{value:!0});var r=n(5);e.take=i;var o=function(){function t(t,e){this._source=t,this._count=e}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._source.clone(),this._count)},t.prototype.next=function(){if(!(this._count<=0)){var t=this._source.next();if(void 0!==t)return this._count--,t}},t}();e.TakeIterator=o},function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new o(t.map(r.iter))}Object.defineProperty(e,"__esModule",{value:!0});var r=n(5);e.zip=i;var o=function(){function t(t){this._source=t}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._source.map(function(t){return t.clone()}))},t.prototype.next=function(){for(var t=new Array(this._source.length),e=0,n=this._source.length;e<n;++e){var i=this._source[e].next();if(void 0===i)return;t[e]=i}return t},t}();e.ZipIterator=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=function(){function t(){this._first=null,this._last=null,this._length=0}return Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this._length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._first?this._first.value:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._last?this._last.value:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstNode",{get:function(){return this._first},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lastNode",{get:function(){return this._last},enumerable:!0,configurable:!0}),t.prototype.iter=function(){return new t.ForwardValueIterator(this._first)},t.prototype.retro=function(){return new t.RetroValueIterator(this._last)},t.prototype.nodes=function(){return new t.ForwardNodeIterator(this._first)},t.prototype.retroNodes=function(){return new t.RetroNodeIterator(this._last)},t.prototype.addFirst=function(t){var e=new o.LinkedListNode(this,t);return this._first?(e.next=this._first,this._first.prev=e,this._first=e):(this._first=e,this._last=e),this._length++,e},t.prototype.addLast=function(t){var e=new o.LinkedListNode(this,t);return this._last?(e.prev=this._last,this._last.next=e,this._last=e):(this._first=e,this._last=e),this._length++,e},t.prototype.insertBefore=function(t,e){if(!e||e===this._first)return this.addFirst(t);if(!(e instanceof o.LinkedListNode)||e.list!==this)throw new Error("Reference node is not owned by the list.");var n=new o.LinkedListNode(this,t),i=e,r=i.prev;return n.next=i,n.prev=r,i.prev=n,r.next=n,this._length++,n},t.prototype.insertAfter=function(t,e){if(!e||e===this._last)return this.addLast(t);if(!(e instanceof o.LinkedListNode)||e.list!==this)throw new Error("Reference node is not owned by the list.");var n=new o.LinkedListNode(this,t),i=e,r=i.next;return n.next=r,n.prev=i,i.next=n,r.prev=n,this._length++,n},t.prototype.removeFirst=function(){var t=this._first;if(t)return t===this._last?(this._first=null,this._last=null):(this._first=t.next,this._first.prev=null),t.list=null,t.next=null,t.prev=null,this._length--,t.value},t.prototype.removeLast=function(){var t=this._last;if(t)return t===this._first?(this._first=null,this._last=null):(this._last=t.prev,this._last.next=null),t.list=null,t.next=null,t.prev=null,this._length--,t.value},t.prototype.removeNode=function(t){if(!(t instanceof o.LinkedListNode)||t.list!==this)throw new Error("Node is not owned by the list.");var e=t;e===this._first&&e===this._last?(this._first=null,this._last=null):e===this._first?(this._first=e.next,this._first.prev=null):e===this._last?(this._last=e.prev,this._last.next=null):(e.next.prev=e.prev,e.prev.next=e.next),e.list=null,e.next=null,e.prev=null,this._length--},t.prototype.clear=function(){for(var t=this._first;t;){var e=t.next;t.list=null,t.prev=null,t.next=null,t=e}this._first=null,this._last=null,this._length=0},t}();e.LinkedList=r,function(t){function e(e){var n=new t;return i.each(e,function(t){n.addLast(t)}),n}t.from=e;var n=function(){function t(t){this._node=t}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._node)},t.prototype.next=function(){if(this._node){var t=this._node;return this._node=t.next,t.value}},t}();t.ForwardValueIterator=n;var r=function(){function t(t){this._node=t}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._node)},t.prototype.next=function(){if(this._node){var t=this._node;return this._node=t.prev,t.value}},t}();t.RetroValueIterator=r;var o=function(){function t(t){this._node=t}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._node)},t.prototype.next=function(){if(this._node){var t=this._node;return this._node=t.next,t}},t}();t.ForwardNodeIterator=o;var s=function(){function t(t){this._node=t}return t.prototype.iter=function(){return this},t.prototype.clone=function(){return new t(this._node)},t.prototype.next=function(){if(this._node){var t=this._node;return this._node=t.prev,t}},t}();t.RetroNodeIterator=s}(r=e.LinkedList||(e.LinkedList={})),e.LinkedList=r;var o;!function(t){var e=function(){function t(t,e){this.list=null,this.next=null,this.prev=null,this.list=t,this.value=e}return t}();t.LinkedListNode=e}(o||(o={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});!function(t){function e(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t}function n(t){return Array.isArray(t)}function i(t){return!e(t)&&!n(t)}function r(t,i){if(t===i)return!0;if(e(t)||e(i))return!1;var r=n(t),o=n(i);return r===o&&(r&&o?s(t,i):a(t,i))}function o(t){return e(t)?t:n(t)?c(t):u(t)}function s(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(var n=0,i=t.length;n<i;++n)if(!r(t[n],e[n]))return!1;return!0}function a(t,e){if(t===e)return!0;for(var n in t)if(!(n in e))return!1;for(var n in e)if(!(n in t))return!1;for(var n in t)if(!r(t[n],e[n]))return!1;return!0}function c(t){for(var e=new Array(t.length),n=0,i=t.length;n<i;++n)e[n]=o(t[n]);return e}function u(t){var e={};for(var n in t)e[n]=o(t[n]);return e}t.emptyObject=Object.freeze({}),t.emptyArray=Object.freeze([]),t.isPrimitive=e,t.isArray=n,t.isObject=i,t.deepEqual=r,t.deepCopy=o}(e.JSONExt||(e.JSONExt={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){this._types=[],this._values=[]}return t.prototype.types=function(){return this._types.slice()},t.prototype.hasData=function(t){return-1!==this._types.indexOf(t)},t.prototype.getData=function(t){var e=this._types.indexOf(t);return-1!==e?this._values[e]:void 0},t.prototype.setData=function(t,e){this.clearData(t),this._types.push(t),this._values.push(e)},t.prototype.clearData=function(t){var e=this._types.indexOf(t);-1!==e&&(this._types.splice(e,1),this._values.splice(e,1))},t.prototype.clear=function(){this._types.length=0,this._values.length=0},t}();e.MimeData=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){var t=this;this.promise=new Promise(function(e,n){t._resolve=e,t._reject=n})}return t.prototype.resolve=function(t){(0,this._resolve)(t)},t.prototype.reject=function(t){(0,this._reject)(t)},t}();e.PromiseDelegate=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){this.name=t,this._tokenStructuralPropertyT=null}return t}();e.Token=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});!function(t){function e(t){var e=window.getComputedStyle(t),n=parseFloat(e.borderTopWidth)||0,i=parseFloat(e.borderLeftWidth)||0,r=parseFloat(e.borderRightWidth)||0,o=parseFloat(e.borderBottomWidth)||0,s=parseFloat(e.paddingTop)||0,a=parseFloat(e.paddingLeft)||0,c=parseFloat(e.paddingRight)||0,u=parseFloat(e.paddingBottom)||0;return{borderTop:n,borderLeft:i,borderRight:r,borderBottom:o,paddingTop:s,paddingLeft:a,paddingRight:c,paddingBottom:u,horizontalSum:i+a+c+r,verticalSum:n+s+u+o}}function n(t){var e=window.getComputedStyle(t),n=parseFloat(e.minWidth)||0,i=parseFloat(e.minHeight)||0,r=parseFloat(e.maxWidth)||1/0,o=parseFloat(e.maxHeight)||1/0;return r=Math.max(n,r),o=Math.max(i,o),{minWidth:n,minHeight:i,maxWidth:r,maxHeight:o}}function i(t,e,n){var i=t.getBoundingClientRect();return e>=i.left&&e<i.right&&n>=i.top&&n<i.bottom}function r(t,e){var n=t.getBoundingClientRect(),i=e.getBoundingClientRect();if(!(i.top<=n.top&&i.bottom>=n.bottom))return i.top<n.top&&i.height<=n.height?void(t.scrollTop-=n.top-i.top):i.bottom>n.bottom&&i.height>=n.height?void(t.scrollTop-=n.top-i.top):i.top<n.top&&i.height>n.height?void(t.scrollTop-=n.bottom-i.bottom):i.bottom>n.bottom&&i.height<n.height?void(t.scrollTop-=n.bottom-i.bottom):void 0}t.boxSizing=e,t.sizeLimits=n,t.hitTest=i,t.scrollIntoViewIfNeeded=r}(e.ElementExt||(e.ElementExt={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});!function(t){t.IS_MAC=!!navigator.platform.match(/Mac/i),t.IS_WIN=!!navigator.platform.match(/Win/i),t.IS_IE=/Trident/.test(navigator.userAgent),t.IS_EDGE=/Edge/.test(navigator.userAgent)}(e.Platform||(e.Platform={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});!function(t){function e(t){if(t in i.specificityCache)return i.specificityCache[t];var e=i.calculateSingle(t);return i.specificityCache[t]=e}function n(t){if(t in i.validityCache)return i.validityCache[t];var e=!0;try{i.testElem.querySelector(t)}catch(t){e=!1}return i.validityCache[t]=e}function r(t,e){return i.protoMatchFunc.call(t,e)}t.calculateSpecificity=e,t.isValid=n,t.matches=r}(e.Selector||(e.Selector={}));var i;!function(t){function e(t){function e(e){var n=t.match(e);return null!==n&&(t=t.slice(n[0].length),!0)}t=t.split(",",1)[0];var d=0,h=0,l=0;for(t=t.replace(u," $1 ");t.length>0;)if(e(n))d++;else if(e(i))h++;else if(e(r))h++;else if(e(s))l++;else if(e(a))h++;else if(e(o))l++;else if(!e(c))return 0;return d=Math.min(d,255),h=Math.min(h,255),l=Math.min(l,255),d<<16|h<<8|l}t.specificityCache=Object.create(null),t.validityCache=Object.create(null),t.testElem=document.createElement("div"),t.protoMatchFunc=function(){var t=Element.prototype;return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector||function(t){var e=this,n=e.ownerDocument.querySelectorAll(t);return-1!==Array.prototype.indexOf.call(n,e)}}(),t.calculateSingle=e;var n=/^#[^\s\+>~#\.\[:]+/,i=/^\.[^\s\+>~#\.\[:]+/,r=/^\[[^\]]+\]/,o=/^[^\s\+>~#\.\[:]+/,s=/^(::[^\s\+>~#\.\[:]+|:first-line|:first-letter|:before|:after)/,a=/^:[^\s\+>~#\.\[:]+/,c=/^[\s\+>~\*]+/,u=/:not\(([^\)]+)\)/g}(i||(i={}))},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),o=n(16),s=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,{layout:a.createLayout(e)})||this;return n.addClass("p-BoxPanel"),n}return i(e,t),Object.defineProperty(e.prototype,"direction",{get:function(){return this.layout.direction},set:function(t){this.layout.direction=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignment",{get:function(){return this.layout.alignment},set:function(t){this.layout.alignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){return this.layout.spacing},set:function(t){this.layout.spacing=t},enumerable:!0,configurable:!0}),e.prototype.onChildAdded=function(t){t.child.addClass("p-BoxPanel-child")},e.prototype.onChildRemoved=function(t){t.child.removeClass("p-BoxPanel-child")},e}(o.Panel);e.BoxPanel=s,function(t){function e(t){return r.BoxLayout.getStretch(t)}function n(t,e){r.BoxLayout.setStretch(t,e)}function i(t){return r.BoxLayout.getSizeBasis(t)}function o(t,e){r.BoxLayout.setSizeBasis(t,e)}t.getStretch=e,t.setStretch=n,t.getSizeBasis=i,t.setSizeBasis=o}(s=e.BoxPanel||(e.BoxPanel={})),e.BoxPanel=s;var a;!function(t){function e(t){return t.layout||new r.BoxLayout(t)}t.createLayout=e}(a||(a={}))},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=this&&this.__assign||Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t};Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),s=n(6),a=n(11),c=n(1),u=n(9),d=n(2),h=function(t){function e(n){var i=t.call(this,{node:l.createNode()})||this;return i._activeIndex=-1,i._items=[],i._results=null,i.addClass("p-CommandPalette"),i.setFlag(d.Widget.Flag.DisallowLayout),i.commands=n.commands,i.renderer=n.renderer||e.defaultRenderer,i.commands.commandChanged.connect(i._onGenericChange,i),i.commands.keyBindingChanged.connect(i._onGenericChange,i),i}return i(e,t),e.prototype.dispose=function(){this._items.length=0,this._results=null,t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"searchNode",{get:function(){return this.node.getElementsByClassName("p-CommandPalette-search")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputNode",{get:function(){return this.node.getElementsByClassName("p-CommandPalette-input")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentNode",{get:function(){return this.node.getElementsByClassName("p-CommandPalette-content")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this._items},enumerable:!0,configurable:!0}),e.prototype.addItem=function(t){var e=l.createItem(this.commands,t);return this._items.push(e),this.refresh(),e},e.prototype.removeItem=function(t){this.removeItemAt(this._items.indexOf(t))},e.prototype.removeItemAt=function(t){o.ArrayExt.removeAt(this._items,t)&&this.refresh()},e.prototype.clearItems=function(){0!==this._items.length&&(this._items.length=0,this.refresh())},e.prototype.refresh=function(){this._results=null,this.update()},e.prototype.handleEvent=function(t){switch(t.type){case"click":this._evtClick(t);break;case"keydown":this._evtKeyDown(t);break;case"input":this.refresh();break;case"focus":case"blur":this._toggleFocused()}},e.prototype.onBeforeAttach=function(t){this.node.addEventListener("click",this),this.node.addEventListener("keydown",this),this.node.addEventListener("input",this),this.node.addEventListener("focus",this,!0),this.node.addEventListener("blur",this,!0)},e.prototype.onAfterDetach=function(t){this.node.removeEventListener("click",this),this.node.removeEventListener("keydown",this),this.node.removeEventListener("input",this),this.node.removeEventListener("focus",this,!0),this.node.removeEventListener("blur",this,!0)},e.prototype.onActivateRequest=function(t){if(this.isAttached){var e=this.inputNode;e.focus(),e.select()}},e.prototype.onUpdateRequest=function(t){var e=this.inputNode.value,n=this.contentNode,i=this._results;if(i||(i=this._results=l.search(this._items,e),this._activeIndex=e?o.ArrayExt.findFirstIndex(i,l.canActivate):-1),!e&&0===i.length)return void u.VirtualDOM.render(null,n);if(e&&0===i.length){var r=this.renderer.renderEmptyMessage({query:e});return void u.VirtualDOM.render(r,n)}for(var s=this.renderer,a=this._activeIndex,d=new Array(i.length),h=0,p=i.length;h<p;++h){var f=i[h];if("header"===f.type){var m=f.indices,v=f.category;d[h]=s.renderHeader({category:v,indices:m})}else{var g=f.item,m=f.indices,y=h===a;d[h]=s.renderItem({item:g,indices:m,active:y})}}if(u.VirtualDOM.render(d,n),a<0||a>=i.length)n.scrollTop=0;else{var _=n.children[a];c.ElementExt.scrollIntoViewIfNeeded(n,_)}},e.prototype._evtClick=function(t){if(0===t.button){var e=o.ArrayExt.findFirstIndex(this.contentNode.children,function(e){return e.contains(t.target)});-1!==e&&(t.preventDefault(),t.stopPropagation(),this._execute(e))}},e.prototype._evtKeyDown=function(t){if(!(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey))switch(t.keyCode){case 13:t.preventDefault(),t.stopPropagation(),this._execute(this._activeIndex);break;case 38:t.preventDefault(),t.stopPropagation(),this._activatePreviousItem();break;case 40:t.preventDefault(),t.stopPropagation(),this._activateNextItem()}},e.prototype._activateNextItem=function(){if(this._results&&0!==this._results.length){var t=this._activeIndex,e=this._results.length,n=t<e-1?t+1:0,i=0===n?e-1:n-1;this._activeIndex=o.ArrayExt.findFirstIndex(this._results,l.canActivate,n,i),this.update()}},e.prototype._activatePreviousItem=function(){if(this._results&&0!==this._results.length){var t=this._activeIndex,e=this._results.length,n=t<=0?e-1:t-1,i=n===e-1?0:n+1;this._activeIndex=o.ArrayExt.findLastIndex(this._results,l.canActivate,n,i),this.update()}},e.prototype._execute=function(t){if(this._results){var e=this._results[t];if(e){if("header"===e.type){var n=this.inputNode;return n.value=e.category.toLowerCase()+" ",n.focus(),void this.refresh()}e.item.isEnabled&&(this.commands.execute(e.item.command,e.item.args),this.inputNode.value="",this.refresh())}}},e.prototype._toggleFocused=function(){var t=document.activeElement===this.inputNode;this.toggleClass("p-mod-focused",t)},e.prototype._onGenericChange=function(){this.refresh()},e}(d.Widget);e.CommandPalette=h,function(t){var e=function(){function t(){}return t.prototype.renderHeader=function(t){var e=this.formatHeader(t);return u.h.li({className:"p-CommandPalette-header"},e)},t.prototype.renderItem=function(t){var e=this.createItemClass(t),n=this.createItemDataset(t);return u.h.li({className:e,dataset:n},this.renderItemShortcut(t),this.renderItemLabel(t),this.renderItemCaption(t))},t.prototype.renderEmptyMessage=function(t){var e=this.formatEmptyMessage(t);return u.h.li({className:"p-CommandPalette-emptyMessage"},e)},t.prototype.renderItemShortcut=function(t){var e=this.formatItemShortcut(t);return u.h.div({className:"p-CommandPalette-itemShortcut"},e)},t.prototype.renderItemLabel=function(t){var e=this.formatItemLabel(t);return u.h.div({className:"p-CommandPalette-itemLabel"},e)},t.prototype.renderItemCaption=function(t){var e=this.formatItemCaption(t);return u.h.div({className:"p-CommandPalette-itemCaption"},e)},t.prototype.createItemClass=function(t){var e="p-CommandPalette-item";t.item.isEnabled||(e+=" p-mod-disabled"),t.item.isToggled&&(e+=" p-mod-toggled"),t.active&&(e+=" p-mod-active");var n=t.item.className;return n&&(e+=" "+n),e},t.prototype.createItemDataset=function(t){return r({},t.item.dataset,{command:t.item.command})},t.prototype.formatHeader=function(t){return t.indices&&0!==t.indices.length?o.StringExt.highlight(t.category,t.indices,u.h.mark):t.category},t.prototype.formatEmptyMessage=function(t){return"No commands found that match '"+t.query+"'"},t.prototype.formatItemShortcut=function(t){var e=t.item.keyBinding;return e?e.keys.map(l.formatKeystroke).join(", "):null},t.prototype.formatItemLabel=function(t){return t.indices&&0!==t.indices.length?o.StringExt.highlight(t.item.label,t.indices,u.h.mark):t.item.label},t.prototype.formatItemCaption=function(t){return t.item.caption},t}();t.Renderer=e,t.defaultRenderer=new e}(h=e.CommandPalette||(e.CommandPalette={})),e.CommandPalette=h;var l;!function(t){function e(){var t=document.createElement("div"),e=document.createElement("div"),n=document.createElement("div"),i=document.createElement("input"),r=document.createElement("ul");return e.className="p-CommandPalette-search",n.className="p-CommandPalette-wrapper",i.className="p-CommandPalette-input",r.className="p-CommandPalette-content",i.spellcheck=!1,n.appendChild(i),e.appendChild(n),t.appendChild(e),t.appendChild(r),t}function n(t,e){return new v(t,e)}function i(t){var e="",n=a.CommandRegistry.parseKeystroke(t);return c.Platform.IS_MAC?(n.ctrl&&(e+="⌃ "),n.alt&&(e+="⌥ "),n.shift&&(e+="⇧ "),n.cmd&&(e+="⌘ ")):(n.ctrl&&(e+="Ctrl+"),n.alt&&(e+="Alt+"),n.shift&&(e+="Shift+")),e+n.key}function r(t,e){var n=l(t,e);return n.sort(f),m(n)}function u(t){return"item"===t.type&&t.item.isEnabled}function d(t){return t.trim().replace(/\s+/g," ")}function h(t){return t.replace(/\s+/g,"").toLowerCase()}function l(t,e){e=h(e);for(var n=[],i=0,r=t.length;i<r;++i){var o=t[i];if(o.isVisible)if(e){var s=p(o,e);s&&(o.isEnabled||(s.score+=1e3),n.push(s))}else n.push({matchType:3,categoryIndices:null,labelIndices:null,score:0,item:o})}return n}function p(t,e){for(var n=t.category.toLowerCase(),i=t.label.toLowerCase(),r=n+" "+i,s=1/0,a=null,c=/\b\w/g;;){var u=c.exec(r);if(!u)break;var d=o.StringExt.matchSumOfDeltas(r,e,u.index);if(!d)break;d&&d.score<=s&&(s=d.score,a=d.indices)}if(!a||s===1/0)return null;for(var h=n.length+1,l=o.ArrayExt.lowerBound(a,h,function(t,e){return t-e}),p=a.slice(0,l),f=a.slice(l),m=0,v=f.length;m<v;++m)f[m]-=h;return 0===p.length?{matchType:0,categoryIndices:null,labelIndices:f,score:s,item:t}:0===f.length?{matchType:1,categoryIndices:p,labelIndices:null,score:s,item:t}:{matchType:2,categoryIndices:p,labelIndices:f,score:s,item:t}}function f(t,e){var n=t.matchType-e.matchType;if(0!==n)return n;var i=t.score-e.score;if(0!==i)return i;var r=0,o=0;switch(t.matchType){case 0:r=t.labelIndices[0],o=e.labelIndices[0];break;case 1:case 2:r=t.categoryIndices[0],o=e.categoryIndices[0]}if(r!==o)return r-o;var s=t.item.category.localeCompare(e.item.category);if(0!==s)return s;var a=t.item.rank,c=e.item.rank;return a!==c?a<c?-1:1:t.item.label.localeCompare(e.item.label)}function m(t){var e=new Array(t.length);o.ArrayExt.fill(e,!1);for(var n=[],i=0,r=t.length;i<r;++i)if(!e[i]){var s=t[i],a=s.item,c=s.categoryIndices,u=a.category;n.push({type:"header",category:u,indices:c});for(var d=i;d<r;++d)if(!e[d]){var h=t[d],l=h.item,p=h.labelIndices;l.category===u&&(n.push({type:"item",item:l,indices:p}),e[d]=!0)}}return n}t.createNode=e,t.createItem=n,t.formatKeystroke=i,t.search=r,t.canActivate=u;var v=function(){function t(t,e){this._commands=t,this.category=d(e.category),this.command=e.command,this.args=e.args||s.JSONExt.emptyObject,this.rank=void 0!==e.rank?e.rank:1/0}return Object.defineProperty(t.prototype,"label",{get:function(){return this._commands.label(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"caption",{get:function(){return this._commands.caption(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return this._commands.className(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataset",{get:function(){return this._commands.dataset(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEnabled",{get:function(){return this._commands.isEnabled(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isToggled",{get:function(){return this._commands.isToggled(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._commands.isVisible(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyBinding",{get:function(){var t=this,e=t.command,n=t.args;return o.ArrayExt.findLastValue(this._commands.keyBindings,function(t){return t.command===e&&s.JSONExt.deepEqual(t.args,n)})||null},enumerable:!0,configurable:!0}),t}()}(l||(l={}))},function(t,e,n){"use strict";var i=this&&this.__assign||Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t};Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(12),s=n(1),a=n(24),c=function(){function t(t){this._idTick=0,this._items=[],this.menu=new a.Menu(t)}return t.prototype.addItem=function(t){var e=this,n=u.createItem(t,this._idTick++);return this._items.push(n),new o.DisposableDelegate(function(){r.ArrayExt.removeFirstOf(e._items,n)})},t.prototype.open=function(t){var e=this;if(this.menu.clearItems(),0===this._items.length)return!1;var n=u.matchItems(this._items,t);return!(!n||0===n.length)&&(r.each(n,function(t){e.menu.addItem(t)}),this.menu.open(t.clientX,t.clientY),!0)},t}();e.ContextMenu=c;var u;!function(t){function e(t,e){var n=r(t.selector),o=void 0!==t.rank?t.rank:1/0;return i({},t,{selector:n,rank:o,id:e})}function n(t,e){var n=e.target;if(!n)return null;var i=e.currentTarget;if(!i)return null;if(!(i.contains(n)||(n=document.elementFromPoint(e.clientX,e.clientY))&&i.contains(n)))return null;for(var r=[],a=t.slice();null!==n;){for(var c=[],u=0,d=a.length;u<d;++u){var h=a[u];h&&(s.Selector.matches(n,h.selector)&&(c.push(h),a[u]=null))}if(0!==c.length&&(c.sort(o),r.push.apply(r,c)),n===i)break;n=n.parentElement}return r}function r(t){if(-1!==t.indexOf(","))throw new Error("Selector cannot contain commas: "+t);if(!s.Selector.isValid(t))throw new Error("Invalid selector: "+t);return t}function o(t,e){var n=s.Selector.calculateSpecificity(t.selector),i=s.Selector.calculateSpecificity(e.selector);if(n!==i)return i-n;var r=t.rank,o=e.rank;return r!==o?r<o?-1:1:t.id-e.id}t.createItem=e,t.matchItems=n}(u||(u={}))},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(6),s=n(1),a=n(13),c=n(3),u=n(7),d=n(4),h=n(23),l=n(18),p=n(2),f=function(t){function e(n){void 0===n&&(n={});var i=t.call(this)||this;i._drag=null,i._pressData=null,i._layoutModified=new d.Signal(i),i.addClass("p-DockPanel"),i._mode=n.mode||"multiple-document",i._renderer=n.renderer||e.defaultRenderer,i.dataset.mode=i._mode;var r={createTabBar:function(){return i._createTabBar()},createHandle:function(){return i._createHandle()}};return i.layout=new h.DockLayout({renderer:r,spacing:n.spacing}),i.overlay=n.overlay||new e.Overlay,i.node.appendChild(i.overlay.node),i}return i(e,t),e.prototype.dispose=function(){this._releaseMouse(),this.overlay.hide(0),this._drag&&this._drag.dispose(),t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"layoutModified",{get:function(){return this._layoutModified},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return this.layout.renderer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){return this.layout.spacing},set:function(t){this.layout.spacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mode",{get:function(){return this._mode},set:function(t){if(this._mode!==t){this._mode=t,this.dataset.mode=t;var e=this.layout;switch(t){case"multiple-document":r.each(e.tabBars(),function(t){t.show()});break;case"single-document":e.restoreLayout(m.createSingleDocumentConfig(this));break;default:throw"unreachable"}c.MessageLoop.postMessage(this,m.LayoutModified)}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return this.layout.isEmpty},enumerable:!0,configurable:!0}),e.prototype.widgets=function(){return this.layout.widgets()},e.prototype.selectedWidgets=function(){return this.layout.selectedWidgets()},e.prototype.tabBars=function(){return this.layout.tabBars()},e.prototype.handles=function(){return this.layout.handles()},e.prototype.selectWidget=function(t){var e=r.find(this.tabBars(),function(e){return-1!==e.titles.indexOf(t.title)});if(!e)throw new Error("Widget is not contained in the dock panel.");e.currentTitle=t.title},e.prototype.activateWidget=function(t){this.selectWidget(t),t.activate()},e.prototype.saveLayout=function(){return this.layout.saveLayout()},e.prototype.restoreLayout=function(t){this._mode="multiple-document",this.layout.restoreLayout(t),(s.Platform.IS_EDGE||s.Platform.IS_IE)&&c.MessageLoop.flush(),c.MessageLoop.postMessage(this,m.LayoutModified)},e.prototype.addWidget=function(t,e){void 0===e&&(e={}),"single-document"===this._mode?this.layout.addWidget(t):this.layout.addWidget(t,e),c.MessageLoop.postMessage(this,m.LayoutModified)},e.prototype.processMessage=function(e){"layout-modified"===e.type?this._layoutModified.emit(void 0):t.prototype.processMessage.call(this,e)},e.prototype.handleEvent=function(t){switch(t.type){case"p-dragenter":this._evtDragEnter(t);break;case"p-dragleave":this._evtDragLeave(t);break;case"p-dragover":this._evtDragOver(t);break;case"p-drop":this._evtDrop(t);break;case"mousedown":this._evtMouseDown(t);break;case"mousemove":this._evtMouseMove(t);break;case"mouseup":this._evtMouseUp(t);break;case"keydown":this._evtKeyDown(t);break;case"contextmenu":t.preventDefault(),t.stopPropagation()}},e.prototype.onBeforeAttach=function(t){this.node.addEventListener("p-dragenter",this),this.node.addEventListener("p-dragleave",this),this.node.addEventListener("p-dragover",this),this.node.addEventListener("p-drop",this),this.node.addEventListener("mousedown",this)},e.prototype.onAfterDetach=function(t){this.node.removeEventListener("p-dragenter",this),this.node.removeEventListener("p-dragleave",this),this.node.removeEventListener("p-dragover",this),this.node.removeEventListener("p-drop",this),this.node.removeEventListener("mousedown",this),this._releaseMouse()},e.prototype.onChildAdded=function(t){m.isGeneratedTabBarProperty.get(t.child)||t.child.addClass("p-DockPanel-widget")},e.prototype.onChildRemoved=function(t){m.isGeneratedTabBarProperty.get(t.child)||(t.child.removeClass("p-DockPanel-widget"),c.MessageLoop.postMessage(this,m.LayoutModified))},e.prototype._evtDragEnter=function(t){t.mimeData.hasData("application/vnd.phosphor.widget-factory")&&(t.preventDefault(),t.stopPropagation())},e.prototype._evtDragLeave=function(t){t.preventDefault(),t.stopPropagation();var e=t.relatedTarget;e&&this.node.contains(e)||this.overlay.hide(0)},e.prototype._evtDragOver=function(t){t.preventDefault(),t.stopPropagation(),"invalid"===this._showOverlay(t.clientX,t.clientY)?t.dropAction="none":t.dropAction=t.proposedAction},e.prototype._evtDrop=function(t){if(t.preventDefault(),t.stopPropagation(),this.overlay.hide(0),"none"===t.proposedAction)return void(t.dropAction="none");var e=t.clientX,n=t.clientY,i=m.findDropTarget(this,e,n),r=i.zone,o=i.target;if("invalid"===r)return void(t.dropAction="none");var s=t.mimeData,a=s.getData("application/vnd.phosphor.widget-factory");if("function"!=typeof a)return void(t.dropAction="none");var c=a();if(!(c instanceof p.Widget))return void(t.dropAction="none");if(c.contains(this))return void(t.dropAction="none");var u=o?m.getDropRef(o.tabBar):null;switch(r){case"root-all":this.addWidget(c);break;case"root-top":this.addWidget(c,{mode:"split-top"});break;case"root-left":this.addWidget(c,{mode:"split-left"});break;case"root-right":this.addWidget(c,{mode:"split-right"});break;case"root-bottom":this.addWidget(c,{mode:"split-bottom"});break;case"widget-all":this.addWidget(c,{mode:"tab-after",ref:u});break;case"widget-top":this.addWidget(c,{mode:"split-top",ref:u});break;case"widget-left":this.addWidget(c,{mode:"split-left",ref:u});break;case"widget-right":this.addWidget(c,{mode:"split-right",ref:u});break;case"widget-bottom":this.addWidget(c,{mode:"split-bottom",ref:u});break;default:throw"unreachable"}t.dropAction=t.proposedAction,this.activateWidget(c)},e.prototype._evtKeyDown=function(t){t.preventDefault(),t.stopPropagation(),27===t.keyCode&&(this._releaseMouse(),c.MessageLoop.postMessage(this,m.LayoutModified))},e.prototype._evtMouseDown=function(t){if(0===t.button){var e=this.layout,n=t.target,i=r.find(e.handles(),function(t){return t.contains(n)});if(i){t.preventDefault(),t.stopPropagation(),document.addEventListener("keydown",this,!0),document.addEventListener("mouseup",this,!0),document.addEventListener("mousemove",this,!0),document.addEventListener("contextmenu",this,!0);var o=i.getBoundingClientRect(),s=t.clientX-o.left,c=t.clientY-o.top,u=window.getComputedStyle(i),d=a.Drag.overrideCursor(u.cursor);this._pressData={handle:i,deltaX:s,deltaY:c,override:d}}}},e.prototype._evtMouseMove=function(t){if(this._pressData){t.preventDefault(),t.stopPropagation();var e=this.node.getBoundingClientRect(),n=t.clientX-e.left-this._pressData.deltaX,i=t.clientY-e.top-this._pressData.deltaY;this.layout.moveHandle(this._pressData.handle,n,i)}},e.prototype._evtMouseUp=function(t){0===t.button&&(t.preventDefault(),t.stopPropagation(),this._releaseMouse(),c.MessageLoop.postMessage(this,m.LayoutModified))},e.prototype._releaseMouse=function(){this._pressData&&(this._pressData.override.dispose(),this._pressData=null,document.removeEventListener("keydown",this,!0),document.removeEventListener("mouseup",this,!0),document.removeEventListener("mousemove",this,!0),document.removeEventListener("contextmenu",this,!0))},e.prototype._showOverlay=function(t,e){var n=m.findDropTarget(this,t,e),i=n.zone,r=n.target;if("invalid"===i)return this.overlay.hide(100),i;var o,a,c,u,d=s.ElementExt.boxSizing(this.node),h=this.node.getBoundingClientRect();switch(i){case"root-all":o=d.paddingTop,a=d.paddingLeft,c=d.paddingRight,u=d.paddingBottom;break;case"root-top":o=d.paddingTop,a=d.paddingLeft,c=d.paddingRight,u=h.height*m.GOLDEN_RATIO;break;case"root-left":o=d.paddingTop,a=d.paddingLeft,c=h.width*m.GOLDEN_RATIO,u=d.paddingBottom;break;case"root-right":o=d.paddingTop,a=h.width*m.GOLDEN_RATIO,c=d.paddingRight,u=d.paddingBottom;break;case"root-bottom":o=h.height*m.GOLDEN_RATIO,a=d.paddingLeft,c=d.paddingRight,u=d.paddingBottom;break;case"widget-all":o=r.top,a=r.left,c=r.right,u=r.bottom;break;case"widget-top":o=r.top,a=r.left,c=r.right,u=r.bottom+r.height/2;break;case"widget-left":o=r.top,a=r.left,c=r.right+r.width/2,u=r.bottom;break;case"widget-right":o=r.top,a=r.left+r.width/2,c=r.right,u=r.bottom;break;case"widget-bottom":o=r.top+r.height/2,a=r.left,c=r.right,u=r.bottom;break;default:throw"unreachable"}return this.overlay.show({top:o,left:a,right:c,bottom:u}),i},e.prototype._createTabBar=function(){var t=this._renderer.createTabBar();return m.isGeneratedTabBarProperty.set(t,!0),"single-document"===this._mode&&t.hide(),t.tabsMovable=!0,t.allowDeselect=!1,t.removeBehavior="select-previous-tab",t.insertBehavior="select-tab-if-needed",t.tabMoved.connect(this._onTabMoved,this),t.currentChanged.connect(this._onCurrentChanged,this),t.tabCloseRequested.connect(this._onTabCloseRequested,this),t.tabDetachRequested.connect(this._onTabDetachRequested,this),t.tabActivateRequested.connect(this._onTabActivateRequested,this),t},e.prototype._createHandle=function(){return this._renderer.createHandle()},e.prototype._onTabMoved=function(){c.MessageLoop.postMessage(this,m.LayoutModified)},e.prototype._onCurrentChanged=function(t,e){var n=e.previousTitle,i=e.currentTitle;n&&n.owner.hide(),i&&i.owner.show(),(s.Platform.IS_EDGE||s.Platform.IS_IE)&&c.MessageLoop.flush(),c.MessageLoop.postMessage(this,m.LayoutModified)},e.prototype._onTabActivateRequested=function(t,e){e.title.owner.activate()},e.prototype._onTabCloseRequested=function(t,e){e.title.owner.close()},e.prototype._onTabDetachRequested=function(t,e){var n=this;if(!this._drag){t.releaseMouse();var i=e.title,r=e.tab,s=e.clientX,c=e.clientY,u=new o.MimeData,d=function(){return i.owner};u.setData("application/vnd.phosphor.widget-factory",d);var h=r.cloneNode(!0);this._drag=new a.Drag({mimeData:u,dragImage:h,proposedAction:"move",supportedActions:"move"}),r.classList.add("p-mod-hidden");var l=function(){n._drag=null,r.classList.remove("p-mod-hidden")};this._drag.start(s,c).then(l)}},e}(p.Widget);e.DockPanel=f,function(t){var e=function(){function t(){this._timer=-1,this._hidden=!0,this.node=document.createElement("div"),this.node.classList.add("p-DockPanel-overlay"),this.node.classList.add("p-mod-hidden"),this.node.style.position="absolute"}return t.prototype.show=function(t){var e=this.node.style;e.top=t.top+"px",e.left=t.left+"px",e.right=t.right+"px",e.bottom=t.bottom+"px",clearTimeout(this._timer),this._timer=-1,this._hidden&&(this._hidden=!1,this.node.classList.remove("p-mod-hidden"))},t.prototype.hide=function(t){var e=this;if(!this._hidden)return t<=0?(clearTimeout(this._timer),this._timer=-1,this._hidden=!0,void this.node.classList.add("p-mod-hidden")):void(-1===this._timer&&(this._timer=setTimeout(function(){e._timer=-1,e._hidden=!0,e.node.classList.add("p-mod-hidden")},t)))},t}();t.Overlay=e;var n=function(){function t(){}return t.prototype.createTabBar=function(){var t=new l.TabBar;return t.addClass("p-DockPanel-tabBar"),t},t.prototype.createHandle=function(){var t=document.createElement("div");return t.className="p-DockPanel-handle",t},t}();t.Renderer=n,t.defaultRenderer=new n}(f=e.DockPanel||(e.DockPanel={})),e.DockPanel=f;var m;!function(t){function e(t){if(t.isEmpty)return{main:null};var e=r.toArray(t.widgets()),n=t.selectedWidgets().next();return{main:{type:"tab-area",widgets:e,currentIndex:n?e.indexOf(n):-1}}}function n(e,n,i){if(!s.ElementExt.hitTest(e.node,n,i))return{zone:"invalid",target:null};var r=e.layout;if(r.isEmpty)return{zone:"root-all",target:null};if("multiple-document"===e.mode){var o=e.node.getBoundingClientRect(),a=n-o.left+1,c=i-o.top+1,u=o.right-n,d=o.bottom-i,h=Math.min(a,c,u,d);if(h<=t.EDGE_SIZE){var l;switch(h){case a:l="root-left";break;case c:l="root-top";break;case u:l="root-right";break;case d:l="root-bottom";break;default:throw"unreachable"}return{zone:l,target:null}}}var p=r.hitTestTabAreas(n,i);if(!p)return{zone:"invalid",target:null};if("single-document"===e.mode)return{zone:"widget-all",target:p};var f=p.x-p.left+1,m=p.y-p.top+1,v=p.left+p.width-p.x,g=p.top+p.height-p.y,y=Math.round(p.width/3),_=Math.round(p.height/3);if(f>y&&v>y&&m>_&&g>_)return{zone:"widget-all",target:p};f/=y,m/=_,v/=y,g/=_;var b,x=Math.min(f,m,v,g);switch(x){case f:b="widget-left";break;case m:b="widget-top";break;case v:b="widget-right";break;case g:b="widget-bottom";break;default:throw"unreachable"}return{zone:b,target:p}}function i(t){return 0===t.titles.length?null:t.currentTitle?t.currentTitle.owner:t.titles[t.titles.length-1].owner}t.GOLDEN_RATIO=.618,t.EDGE_SIZE=40,t.LayoutModified=new c.ConflatableMessage("layout-modified"),t.isGeneratedTabBarProperty=new u.AttachedProperty({name:"isGeneratedTabBar",create:function(){return!1}}),t.createSingleDocumentConfig=e,t.findDropTarget=n,t.getDropRef=i}(m||(m={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(4),o=function(){function t(){this._counter=0,this._widgets=[],this._activeWidget=null,this._currentWidget=null,this._numbers=new Map,this._nodes=new Map,this._activeChanged=new r.Signal(this),this._currentChanged=new r.Signal(this)}return t.prototype.dispose=function(){var t=this;this._counter<0||(this._counter=-1,r.Signal.clearData(this),i.each(this._widgets,function(e){e.node.removeEventListener("focus",t,!0),e.node.removeEventListener("blur",t,!0)}),this._activeWidget=null,this._currentWidget=null,this._nodes.clear(),this._numbers.clear(),this._widgets.length=0)},Object.defineProperty(t.prototype,"currentChanged",{get:function(){return this._currentChanged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeChanged",{get:function(){return this._activeChanged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDisposed",{get:function(){return this._counter<0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentWidget",{get:function(){return this._currentWidget},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeWidget",{get:function(){return this._activeWidget},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"widgets",{get:function(){return this._widgets},enumerable:!0,configurable:!0}),t.prototype.focusNumber=function(t){var e=this._numbers.get(t);return void 0===e?-1:e},t.prototype.has=function(t){return this._numbers.has(t)},t.prototype.add=function(t){if(!this._numbers.has(t)){var e=t.node.contains(document.activeElement),n=e?this._counter++:-1;this._widgets.push(t),this._numbers.set(t,n),this._nodes.set(t.node,t),t.node.addEventListener("focus",this,!0),t.node.addEventListener("blur",this,!0),t.disposed.connect(this._onWidgetDisposed,this),e&&this._setWidgets(t,t)}},t.prototype.remove=function(t){var e=this;if(this._numbers.has(t)&&(t.disposed.disconnect(this._onWidgetDisposed,this),t.node.removeEventListener("focus",this,!0),t.node.removeEventListener("blur",this,!0),i.ArrayExt.removeFirstOf(this._widgets,t),this._nodes.delete(t.node),this._numbers.delete(t),this._currentWidget===t)){var n=i.filter(this._widgets,function(t){return-1!==e._numbers.get(t)}),r=i.max(n,function(t,n){return e._numbers.get(t)-e._numbers.get(n)})||null;this._setWidgets(r,null)}},t.prototype.handleEvent=function(t){switch(t.type){case"focus":this._evtFocus(t);break;case"blur":this._evtBlur(t)}},t.prototype._setWidgets=function(t,e){var n=this._currentWidget;this._currentWidget=t;var i=this._activeWidget;this._activeWidget=e,n!==t&&this._currentChanged.emit({oldValue:n,newValue:t}),i!==e&&this._activeChanged.emit({oldValue:i,newValue:e})},t.prototype._evtFocus=function(t){var e=this._nodes.get(t.currentTarget);e!==this._currentWidget&&this._numbers.set(e,this._counter++),this._setWidgets(e,e)},t.prototype._evtBlur=function(t){var e=this._nodes.get(t.currentTarget),n=t.relatedTarget;return n?e.node.contains(n)?void 0:i.find(this._widgets,function(t){return t.node.contains(n)})?void 0:void this._setWidgets(this._currentWidget,null):void this._setWidgets(this._currentWidget,null)},t.prototype._onWidgetDisposed=function(t){this.remove(t)},t}();e.FocusTracker=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(1),s=n(14),a=n(3),c=n(9),u=n(2),d=function(t){function e(n){void 0===n&&(n={});var i=t.call(this,{node:h.createNode()})||this;return i._activeIndex=-1,i._menus=[],i._childMenu=null,i.addClass("p-MenuBar"),i.setFlag(u.Widget.Flag.DisallowLayout),i.renderer=n.renderer||e.defaultRenderer,i}return i(e,t),e.prototype.dispose=function(){this._closeChildMenu(),this._menus.length=0,t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"childMenu",{get:function(){return this._childMenu},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentNode",{get:function(){return this.node.getElementsByClassName("p-MenuBar-content")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeMenu",{get:function(){return this._menus[this._activeIndex]||null},set:function(t){this.activeIndex=t?this._menus.indexOf(t):-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeIndex",{get:function(){return this._activeIndex},set:function(t){(t<0||t>=this._menus.length)&&(t=-1),this._activeIndex!==t&&(this._activeIndex=t,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"menus",{get:function(){return this._menus},enumerable:!0,configurable:!0}),e.prototype.openActiveMenu=function(){-1!==this._activeIndex&&(this._openChildMenu(),this._childMenu&&(this._childMenu.activeIndex=-1,this._childMenu.activateNextItem()))},e.prototype.addMenu=function(t){this.insertMenu(this._menus.length,t)},e.prototype.insertMenu=function(t,e){this._closeChildMenu();var n=this._menus.indexOf(e),i=Math.max(0,Math.min(t,this._menus.length));if(-1===n)return r.ArrayExt.insert(this._menus,i,e),e.addClass("p-MenuBar-menu"),e.aboutToClose.connect(this._onMenuAboutToClose,this),e.menuRequested.connect(this._onMenuMenuRequested,this),e.title.changed.connect(this._onTitleChanged,this),void this.update();i===this._menus.length&&i--,n!==i&&(r.ArrayExt.move(this._menus,n,i),this.update())},e.prototype.removeMenu=function(t){this.removeMenuAt(this._menus.indexOf(t))},e.prototype.removeMenuAt=function(t){this._closeChildMenu();var e=r.ArrayExt.removeAt(this._menus,t);e&&(e.aboutToClose.disconnect(this._onMenuAboutToClose,this),e.menuRequested.disconnect(this._onMenuMenuRequested,this),e.title.changed.disconnect(this._onTitleChanged,this),e.removeClass("p-MenuBar-menu"),this.update())},e.prototype.clearMenus=function(){if(0!==this._menus.length){this._closeChildMenu();for(var t=0,e=this._menus;t<e.length;t++){var n=e[t];n.aboutToClose.disconnect(this._onMenuAboutToClose,this),n.menuRequested.disconnect(this._onMenuMenuRequested,this),n.title.changed.disconnect(this._onTitleChanged,this),n.removeClass("p-MenuBar-menu")}this._menus.length=0,this.update()}},e.prototype.handleEvent=function(t){switch(t.type){case"keydown":this._evtKeyDown(t);break;case"mousedown":this._evtMouseDown(t);break;case"mousemove":this._evtMouseMove(t);break;case"mouseleave":this._evtMouseLeave(t);break;case"contextmenu":t.preventDefault(),t.stopPropagation()}},e.prototype.onBeforeAttach=function(t){this.node.addEventListener("keydown",this),this.node.addEventListener("mousedown",this),this.node.addEventListener("mousemove",this),this.node.addEventListener("mouseleave",this),this.node.addEventListener("contextmenu",this)},e.prototype.onAfterDetach=function(t){this.node.removeEventListener("keydown",this),this.node.removeEventListener("mousedown",this),this.node.removeEventListener("mousemove",this),this.node.removeEventListener("mouseleave",this),this.node.removeEventListener("contextmenu",this),this._closeChildMenu()},e.prototype.onActivateRequest=function(t){this.isAttached&&this.node.focus()},e.prototype.onUpdateRequest=function(t){for(var e=this._menus,n=this.renderer,i=this._activeIndex,r=new Array(e.length),o=0,s=e.length;o<s;++o){var a=e[o].title,u=o===i;r[o]=n.renderItem({title:a,active:u})}c.VirtualDOM.render(r,this.contentNode)},e.prototype._evtKeyDown=function(t){t.preventDefault(),t.stopPropagation();var e=t.keyCode;if(13===e||38===e||40===e)return void this.openActiveMenu();if(27===e)return this._closeChildMenu(),this.activeIndex=-1,void this.node.blur();if(37===e){var n=this._activeIndex,i=this._menus.length;return void(this.activeIndex=0===n?i-1:n-1)}if(39===e){var n=this._activeIndex,i=this._menus.length;return void(this.activeIndex=n===i-1?0:n+1)}var r=s.getKeyboardLayout().keyForKeydownEvent(t);if(r){var o=this._activeIndex+1,a=h.findMnemonic(this._menus,r,o);-1===a.index||a.multiple?-1!==a.index?this.activeIndex=a.index:-1!==a.auto&&(this.activeIndex=a.auto):(this.activeIndex=a.index,this.openActiveMenu())}},e.prototype._evtMouseDown=function(t){if(o.ElementExt.hitTest(this.node,t.clientX,t.clientY)){t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation();var e=r.ArrayExt.findFirstIndex(this.contentNode.children,function(e){return o.ElementExt.hitTest(e,t.clientX,t.clientY)});if(-1===e)return void this._closeChildMenu();0===t.button&&(this._childMenu?(this._closeChildMenu(),this.activeIndex=e):(this.activeIndex=e,this._openChildMenu()))}},e.prototype._evtMouseMove=function(t){var e=r.ArrayExt.findFirstIndex(this.contentNode.children,function(e){return o.ElementExt.hitTest(e,t.clientX,t.clientY)});e!==this._activeIndex&&(-1===e&&this._childMenu||(this.activeIndex=e,this._childMenu&&this._openChildMenu()))},e.prototype._evtMouseLeave=function(t){this._childMenu||(this.activeIndex=-1)},e.prototype._openChildMenu=function(){var t=this.activeMenu;if(!t)return void this._closeChildMenu();var e=this._childMenu;if(e!==t){this._childMenu=t,e?e.close():(this.addClass("p-mod-active"),document.addEventListener("mousedown",this,!0)),a.MessageLoop.sendMessage(this,u.Widget.Msg.UpdateRequest);var n=this.contentNode.children[this._activeIndex],i=n.getBoundingClientRect(),r=i.left,o=i.bottom;t.open(r,o,{forceX:!0,forceY:!0})}},e.prototype._closeChildMenu=function(){if(this._childMenu){this.removeClass("p-mod-active"),document.removeEventListener("mousedown",this,!0);var t=this._childMenu;this._childMenu=null,t.close(),this.activeIndex=-1}},e.prototype._onMenuAboutToClose=function(t){t===this._childMenu&&(this.removeClass("p-mod-active"),document.removeEventListener("mousedown",this,!0),this._childMenu=null,this.activeIndex=-1)},e.prototype._onMenuMenuRequested=function(t,e){if(t===this._childMenu){var n=this._activeIndex,i=this._menus.length;switch(e){case"next":this.activeIndex=n===i-1?0:n+1;break;case"previous":this.activeIndex=0===n?i-1:n-1}this.openActiveMenu()}},e.prototype._onTitleChanged=function(){this.update()},e}(u.Widget);e.MenuBar=d,function(t){var e=function(){function t(){}return t.prototype.renderItem=function(t){var e=this.createItemClass(t),n=this.createItemDataset(t);return c.h.li({className:e,dataset:n},this.renderIcon(t),this.renderLabel(t))},t.prototype.renderIcon=function(t){var e=this.createIconClass(t);return c.h.div({className:e},t.title.iconLabel)},t.prototype.renderLabel=function(t){var e=this.formatLabel(t);return c.h.div({className:"p-MenuBar-itemLabel"},e)},t.prototype.createItemClass=function(t){var e="p-MenuBar-item";return t.title.className&&(e+=" "+t.title.className),t.active&&(e+=" p-mod-active"),e},t.prototype.createItemDataset=function(t){return t.title.dataset},t.prototype.createIconClass=function(t){var e="p-MenuBar-itemIcon",n=t.title.iconClass;return n?e+" "+n:e},t.prototype.formatLabel=function(t){var e=t.title,n=e.label,i=e.mnemonic;if(i<0||i>=n.length)return n;var r=n.slice(0,i),o=n.slice(i+1),s=n[i];return[r,c.h.span({className:"p-MenuBar-itemMnemonic"},s),o]},t}();t.Renderer=e,t.defaultRenderer=new e}(d=e.MenuBar||(e.MenuBar={})),e.MenuBar=d;var h;!function(t){function e(){var t=document.createElement("div"),e=document.createElement("ul");return e.className="p-MenuBar-content",t.appendChild(e),t.tabIndex=-1,t}function n(t,e,n){for(var i=-1,r=-1,o=!1,s=e.toUpperCase(),a=0,c=t.length;a<c;++a){var u=(a+n)%c,d=t[u].title;if(0!==d.label.length){var h=d.mnemonic;h>=0&&h<d.label.length?d.label[h].toUpperCase()===s&&(-1===i?i=u:o=!0):-1===r&&d.label[0].toUpperCase()===s&&(r=u)}}return{index:i,multiple:o,auto:r}}t.createNode=e,t.findMnemonic=n}(h||(h={}))},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=n(13),s=n(16),a=n(25),c=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,{layout:u.createLayout(e)})||this;return n._pressData=null,n.addClass("p-SplitPanel"),n}return i(e,t),e.prototype.dispose=function(){this._releaseMouse(),t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"orientation",{get:function(){return this.layout.orientation},set:function(t){this.layout.orientation=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignment",{get:function(){return this.layout.alignment},set:function(t){this.layout.alignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){return this.layout.spacing},set:function(t){this.layout.spacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return this.layout.renderer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"handles",{get:function(){return this.layout.handles},enumerable:!0,configurable:!0}),e.prototype.relativeSizes=function(){return this.layout.relativeSizes()},e.prototype.setRelativeSizes=function(t){this.layout.setRelativeSizes(t)},e.prototype.handleEvent=function(t){switch(t.type){case"mousedown":this._evtMouseDown(t);break;case"mousemove":this._evtMouseMove(t);break;case"mouseup":this._evtMouseUp(t);break;case"keydown":this._evtKeyDown(t);break;case"contextmenu":t.preventDefault(),t.stopPropagation()}},e.prototype.onBeforeAttach=function(t){this.node.addEventListener("mousedown",this)},e.prototype.onAfterDetach=function(t){this.node.removeEventListener("mousedown",this),this._releaseMouse()},e.prototype.onChildAdded=function(t){t.child.addClass("p-SplitPanel-child"),this._releaseMouse()},e.prototype.onChildRemoved=function(t){t.child.removeClass("p-SplitPanel-child"),this._releaseMouse()},e.prototype._evtKeyDown=function(t){t.preventDefault(),t.stopPropagation(),27===t.keyCode&&this._releaseMouse()},e.prototype._evtMouseDown=function(t){if(0===t.button){var e=this.layout,n=r.ArrayExt.findFirstIndex(e.handles,function(e){return e.contains(t.target)});if(-1!==n){t.preventDefault(),t.stopPropagation(),document.addEventListener("mouseup",this,!0),document.addEventListener("mousemove",this,!0),document.addEventListener("keydown",this,!0),document.addEventListener("contextmenu",this,!0);var i,s=e.handles[n],a=s.getBoundingClientRect();i="horizontal"===e.orientation?t.clientX-a.left:t.clientY-a.top;var c=window.getComputedStyle(s),u=o.Drag.overrideCursor(c.cursor);this._pressData={index:n,delta:i,override:u}}}},e.prototype._evtMouseMove=function(t){t.preventDefault(),t.stopPropagation();var e,n=this.layout,i=this.node.getBoundingClientRect();e="horizontal"===n.orientation?t.clientX-i.left-this._pressData.delta:t.clientY-i.top-this._pressData.delta,n.moveHandle(this._pressData.index,e)},e.prototype._evtMouseUp=function(t){0===t.button&&(t.preventDefault(),t.stopPropagation(),this._releaseMouse())},e.prototype._releaseMouse=function(){this._pressData&&(this._pressData.override.dispose(),this._pressData=null,document.removeEventListener("mouseup",this,!0),document.removeEventListener("mousemove",this,!0),document.removeEventListener("keydown",this,!0),document.removeEventListener("contextmenu",this,!0))},e}(s.Panel);e.SplitPanel=c,function(t){function e(t){return a.SplitLayout.getStretch(t)}function n(t,e){a.SplitLayout.setStretch(t,e)}var i=function(){function t(){}return t.prototype.createHandle=function(){var t=document.createElement("div");return t.className="p-SplitPanel-handle",t},t}();t.Renderer=i,t.defaultRenderer=new i,t.getStretch=e,t.setStretch=n}(c=e.SplitPanel||(e.SplitPanel={})),e.SplitPanel=c;var u;!function(t){function e(t){return t.layout||new a.SplitLayout({renderer:t.renderer||c.defaultRenderer,orientation:t.orientation,alignment:t.alignment,spacing:t.spacing})}t.createLayout=e}(u||(u={}))},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=n(3),s=n(4),a=n(17),c=n(27),u=n(18),d=n(2),h=function(t){function e(e){void 0===e&&(e={});var n=t.call(this)||this;n._currentChanged=new s.Signal(n),n.addClass("p-TabPanel"),n.tabBar=new u.TabBar(e),n.tabBar.addClass("p-TabPanel-tabBar"),n.stackedPanel=new c.StackedPanel,n.stackedPanel.addClass("p-TabPanel-stackedPanel"),n.tabBar.tabMoved.connect(n._onTabMoved,n),n.tabBar.currentChanged.connect(n._onCurrentChanged,n),n.tabBar.tabCloseRequested.connect(n._onTabCloseRequested,n),n.tabBar.tabActivateRequested.connect(n._onTabActivateRequested,n),n.stackedPanel.widgetRemoved.connect(n._onWidgetRemoved,n),n._tabPlacement=e.tabPlacement||"top";var i=l.directionFromPlacement(n._tabPlacement),r=l.orientationFromPlacement(n._tabPlacement);n.tabBar.orientation=r,n.tabBar.dataset.placement=n._tabPlacement;var o=new a.BoxLayout({direction:i,spacing:0});return a.BoxLayout.setStretch(n.tabBar,0),a.BoxLayout.setStretch(n.stackedPanel,1),o.addWidget(n.tabBar),o.addWidget(n.stackedPanel),n.layout=o,n}return i(e,t),Object.defineProperty(e.prototype,"currentChanged",{get:function(){return this._currentChanged},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentIndex",{get:function(){return this.tabBar.currentIndex},set:function(t){this.tabBar.currentIndex=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentWidget",{get:function(){var t=this.tabBar.currentTitle;return t?t.owner:null},set:function(t){this.tabBar.currentTitle=t?t.title:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabsMovable",{get:function(){return this.tabBar.tabsMovable},set:function(t){this.tabBar.tabsMovable=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabPlacement",{get:function(){return this._tabPlacement},set:function(t){if(this._tabPlacement!==t){this._tabPlacement=t;var e=l.directionFromPlacement(t),n=l.orientationFromPlacement(t);this.tabBar.orientation=n,this.tabBar.dataset.placement=t,this.layout.direction=e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgets",{get:function(){return this.stackedPanel.widgets},enumerable:!0,configurable:!0}),e.prototype.addWidget=function(t){this.insertWidget(this.widgets.length,t)},e.prototype.insertWidget=function(t,e){e!==this.currentWidget&&e.hide(),this.stackedPanel.insertWidget(t,e),this.tabBar.insertTab(t,e.title)},e.prototype._onCurrentChanged=function(t,e){var n=e.previousIndex,i=e.previousTitle,s=e.currentIndex,a=e.currentTitle,c=i?i.owner:null,u=a?a.owner:null;c&&c.hide(),u&&u.show(),this._currentChanged.emit({previousIndex:n,previousWidget:c,currentIndex:s,currentWidget:u}),(r.Platform.IS_EDGE||r.Platform.IS_IE)&&o.MessageLoop.flush()},e.prototype._onTabActivateRequested=function(t,e){e.title.owner.activate()},e.prototype._onTabCloseRequested=function(t,e){e.title.owner.close()},e.prototype._onTabMoved=function(t,e){this.stackedPanel.insertWidget(e.toIndex,e.title.owner)},e.prototype._onWidgetRemoved=function(t,e){this.tabBar.removeTab(e.title)},e}(d.Widget);e.TabPanel=h;var l;!function(t){function e(t){return i[t]}function n(t){return r[t]}t.orientationFromPlacement=e,t.directionFromPlacement=n;var i={top:"horizontal",left:"vertical",right:"vertical",bottom:"horizontal"},r={top:"top-to-bottom",left:"left-to-right",right:"right-to-left",bottom:"bottom-to-top"}}(l||(l={}))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function r(t){if(d===setTimeout)return setTimeout(t,0);if((d===n||!d)&&setTimeout)return d=setTimeout,setTimeout(t,0);try{return d(t,0)}catch(e){try{return d.call(null,t,0)}catch(e){return d.call(this,t,0)}}}function o(t){if(h===clearTimeout)return clearTimeout(t);if((h===i||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function s(){m&&p&&(m=!1,p.length?f=p.concat(f):v=-1,f.length&&a())}function a(){if(!m){var t=r(s);m=!0;for(var e=f.length;e;){for(p=f,f=[];++v<e;)p&&p[v].run();v=-1,e=f.length}p=null,m=!1,o(t)}}function c(t,e){this.fun=t,this.array=e}function u(){}var d,h,l=t.exports={};!function(){try{d="function"==typeof setTimeout?setTimeout:n}catch(t){d=n}try{h="function"==typeof clearTimeout?clearTimeout:i}catch(t){h=i}}();var p,f=[],m=!1,v=-1;l.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];f.push(new c(t,e)),1!==f.length||m||r(a)},c.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=u,l.addListener=u,l.once=u,l.off=u,l.removeListener=u,l.removeAllListeners=u,l.emit=u,l.prependListener=u,l.prependOnceListener=u,l.listeners=function(t){return[]},l.binding=function(t){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(t){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},function(t,e,n){(function(t,e){!function(t,n){"use strict";function i(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var i={callback:t,args:e};return u[c]=i,a(c),c++}function r(t){delete u[t]}function o(t){var e=t.callback,i=t.args;switch(i.length){case 0:e();break;case 1:e(i[0]);break;case 2:e(i[0],i[1]);break;case 3:e(i[0],i[1],i[2]);break;default:e.apply(n,i)}}function s(t){if(d)setTimeout(s,0,t);else{var e=u[t];if(e){d=!0;try{o(e)}finally{r(t),d=!1}}}}if(!t.setImmediate){var a,c=1,u={},d=!1,h=t.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(t);l=l&&l.setTimeout?l:t,"[object process]"==={}.toString.call(t.process)?function(){a=function(t){e.nextTick(function(){s(t)})}}():function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&s(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),a=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){s(t.data)},a=function(e){t.port2.postMessage(e)}}():h&&"onreadystatechange"in h.createElement("script")?function(){var t=h.documentElement;a=function(e){var n=h.createElement("script");n.onreadystatechange=function(){s(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():function(){a=function(t){setTimeout(s,0,t)}}(),l.setImmediate=i,l.clearImmediate=r}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,n(64),n(62))},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n}])});
//# sourceMappingURL=phosphor.min.js.map
This file has been truncated, but you can view the full file.
{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///phosphor.min.js","webpack:///webpack/bootstrap 69d9d753c0bc42fe3675","webpack:///./~/@phosphor/algorithm/lib/index.js","webpack:///./~/@phosphor/domutils/lib/index.js","webpack:///./~/@phosphor/widgets/lib/widget.js","webpack:///./~/@phosphor/messaging/lib/index.js","webpack:///./~/@phosphor/signaling/lib/index.js","webpack:///./~/@phosphor/algorithm/lib/iter.js","webpack:///./~/@phosphor/coreutils/lib/index.js","webpack:///./~/@phosphor/properties/lib/index.js","webpack:///./~/@phosphor/widgets/lib/layout.js","webpack:///./~/@phosphor/virtualdom/lib/index.js","webpack:///./~/@phosphor/widgets/lib/panellayout.js","webpack:///./~/@phosphor/commands/lib/index.js","webpack:///./~/@phosphor/disposable/lib/index.js","webpack:///./~/@phosphor/dragdrop/lib/index.js","webpack:///./~/@phosphor/keyboard/lib/index.js","webpack:///./~/@phosphor/widgets/lib/boxengine.js","webpack:///./~/@phosphor/widgets/lib/panel.js","webpack:///./~/@phosphor/widgets/lib/boxlayout.js","webpack:///./~/@phosphor/widgets/lib/tabbar.js","webpack:///./~/@phosphor/widgets/lib/title.js","webpack:///./~/timers-browserify/main.js","webpack:///./~/@phosphor/collections/lib/index.js","webpack:///./~/@phosphor/widgets/lib/index.js","webpack:///./~/@phosphor/widgets/lib/docklayout.js","webpack:///./~/@phosphor/widgets/lib/menu.js","webpack:///./~/@phosphor/widgets/lib/splitlayout.js","webpack:///./~/@phosphor/widgets/lib/stackedlayout.js","webpack:///./~/@phosphor/widgets/lib/stackedpanel.js","webpack:///./~/@phosphor/application/lib/index.js","webpack:///./index.js","webpack:///./~/@phosphor/algorithm/lib/array.js","webpack:///./~/@phosphor/algorithm/lib/chain.js","webpack:///./~/@phosphor/algorithm/lib/empty.js","webpack:///./~/@phosphor/algorithm/lib/filter.js","webpack:///./~/@phosphor/algorithm/lib/find.js","webpack:///./~/@phosphor/algorithm/lib/map.js","webpack:///./~/@phosphor/algorithm/lib/range.js","webpack:///./~/@phosphor/algorithm/lib/reduce.js","webpack:///./~/@phosphor/algorithm/lib/repeat.js","webpack:///./~/@phosphor/algorithm/lib/retro.js","webpack:///./~/@phosphor/algorithm/lib/sort.js","webpack:///./~/@phosphor/algorithm/lib/stride.js","webpack:///./~/@phosphor/algorithm/lib/string.js","webpack:///./~/@phosphor/algorithm/lib/take.js","webpack:///./~/@phosphor/algorithm/lib/zip.js","webpack:///./~/@phosphor/collections/lib/linkedlist.js","webpack:///./~/@phosphor/coreutils/lib/json.js","webpack:///./~/@phosphor/coreutils/lib/mime.js","webpack:///./~/@phosphor/coreutils/lib/promise.js","webpack:///./~/@phosphor/coreutils/lib/token.js","webpack:///./~/@phosphor/domutils/lib/element.js","webpack:///./~/@phosphor/domutils/lib/platform.js","webpack:///./~/@phosphor/domutils/lib/selector.js","webpack:///./~/@phosphor/widgets/lib/boxpanel.js","webpack:///./~/@phosphor/widgets/lib/commandpalette.js","webpack:///./~/@phosphor/widgets/lib/contextmenu.js","webpack:///./~/@phosphor/widgets/lib/dockpanel.js","webpack:///./~/@phosphor/widgets/lib/focustracker.js","webpack:///./~/@phosphor/widgets/lib/menubar.js","webpack:///./~/@phosphor/widgets/lib/splitpanel.js","webpack:///./~/@phosphor/widgets/lib/tabpanel.js","webpack:///./~/process/browser.js","webpack:///./~/setimmediate/setImmediate.js","webpack:///(webpack)/buildin/global.js"],"names":["root","factory","exports","module","define","amd","this","modules","__webpack_require__","moduleId","installedModules","i","l","call","m","c","value","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","__export","__extends","extendStatics","setPrototypeOf","__proto__","Array","b","__","constructor","create","algorithm_1","messaging_1","properties_1","signaling_1","title_1","Widget","options","_flags","_layout","_parent","_disposed","Signal","node","Private","createNode","addClass","dispose","isDisposed","setFlag","Flag","IsDisposed","emit","undefined","parent","isAttached","detach","clearData","MessageLoop","AttachedProperty","testFlag","IsAttached","IsHidden","IsVisible","titleProperty","id","set","dataset","contains","Error","msg","ChildMessage","sendMessage","Msg","ParentChanged","DisallowLayout","children","iter","empty","widget","hasClass","classList","add","removeClass","remove","toggleClass","force","toggle","update","postMessage","UpdateRequest","fit","FitRequest","activate","ActivateRequest","close","CloseRequest","show","isVisible","BeforeShow","clearFlag","AfterShow","hide","BeforeHide","AfterHide","setHidden","hidden","flag","processMessage","type","notifyLayout","onResize","onUpdateRequest","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide","onBeforeAttach","isHidden","onAfterAttach","onBeforeDetach","onAfterDetach","onActivateRequest","onCloseRequest","onChildAdded","onChildRemoved","processParentMessage","attach","host","ref","document","body","BeforeAttach","insertBefore","AfterAttach","BeforeDetach","parentNode","removeChild","AfterDetach","Message","ConflatableMessage","_super","child","_this","ResizeMessage","width","height","UnknownSize","createElement","owner","Title","setImmediate","clearImmediate","collections_1","conflate","other","apply","arguments","handler","hooks","messageHooks","length","invokeHandler","every","retro","hook","invokeHook","isConflatable","enqueueMessage","some","messageQueue","posted","installMessageHook","indexOf","push","removeMessageHook","scheduleCleanup","ArrayExt","fill","each","flush","flushGuard","loopTaskID","unschedule","runMessageLoop","getExceptionHandler","exceptionHandler","setExceptionHandler","old","result","messageHook","err","addLast","schedule","isEmpty","sentinel","removeFirst","dirtySet","size","cleanupDirtySet","forEach","cleanupHooks","clear","removeAllWhere","isNull","LinkedList","WeakMap","Set","console","error","requestAnimationFrame","cancelAnimationFrame","sender","connect","slot","thisArg","disconnect","args","disconnectBetween","receiver","disconnectSender","disconnectReceiver","disconnectAll","signal","receivers","receiversForSender","findConnection","senders","sendersForReceiver","connection","invokeSlot","connections","find","array","cleanupConnections","isDeadConnection","ArrayIterator","fn","index","it","next","toArray","source","_index","_source","clone","_pid","nextPID","_create","_coerce","coerce","_compare","compare","_changed","changed","map","ensureMap","_createValue","oldValue","newValue","_coerceValue","_maybeNotify","_compareValue","ownerData","delete","Math","random","slice","domutils_1","widget_1","Layout","layout","init","onFitRequest","onChildShown","onChildHidden","removeWidget","getHorizontalAlignment","horizontalAlignmentProperty","setHorizontalAlignment","getVerticalAlignment","verticalAlignmentProperty","setVerticalAlignment","LayoutItem","_top","NaN","_left","_width","_height","_minWidth","_minHeight","_maxWidth","Infinity","_maxHeight","style","position","top","left","limits","ElementExt","sizeLimits","minWidth","minHeight","maxWidth","maxHeight","clampW","max","min","clampH","resized","onAlignmentChanged","h","tag","attrs","arg","VirtualText","VirtualElement","values","_i","values_1","content","a","bind","abbr","address","area","article","aside","audio","bdi","bdo","blockquote","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","iframe","img","input","ins","kbd","label","legend","li","main","mark","meter","nav","noscript","ol","optgroup","option","output","param","pre","progress","q","rp","rt","ruby","samp","section","select","small","span","strong","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var_","video","wbr","VirtualDOM","realize","createDOMNode","render","oldContent","hostMap","newContent","asContentArray","updateContent","createTextNode","element","addAttrs","appendChild","oldKeyed","collectKeys","oldCopy","currElem","firstChild","newCount","oldVNode","newVNode","newKey","key","pair","vNode","move","oldKey","insert","updateAttrs","nextSibling","textContent","lastChild","name_1","specialAttrs","substr","setAttribute","className","htmlFor","addDataset","addStyle","oldAttrs","newAttrs","removeAttribute","updateDataset","updateStyle","name_2","oldDataset","newDataset","name_3","name_4","elemStyle","oldStyle","newStyle","keyMap","content_1","layout_1","PanelLayout","_widgets","pop","addWidget","insertWidget","j","attachWidget","moveWidget","removeWidgetAt","removeAt","detachWidget","fromIndex","toIndex","coreutils_1","disposable_1","keyboard_1","CommandRegistry","_timerID","_replaying","_keystrokes","_keydownEvents","_keyBindings","_exactKeyMatch","_commands","_commandChanged","_commandExecuted","_keyBindingChanged","listCommands","keys","hasCommand","addCommand","createCommand","DisposableDelegate","notifyCommandChanged","JSONExt","emptyObject","cmd","mnemonic","icon","iconClass","iconLabel","usage","isEnabled","isToggled","execute","Promise","reject","resolve","addKeyBinding","binding","createKeyBinding","removeFirstOf","processKeydownEvent","event","keystroke","keystrokeForKeydownEvent","_replayKeydownEvents","_clearPendingState","_a","matchKeyBinding","exact","partial","preventDefault","stopPropagation","_executeKeyBinding","_startTimer","_clearTimer","setTimeout","_onPendingTimeout","CHORD_TIMEOUT","clearTimeout","replayKeyEvent","command","word","join","msg1","msg2","warn","parseKeystroke","alt","ctrl","shift","split","token","Platform","IS_MAC","normalizeKeystroke","mods","parts","getKeyboardLayout","keyForKeydownEvent","ctrlKey","altKey","shiftKey","metaKey","asFunc","emptyStringFunc","negativeOneFunc","emptyDatasetFunc","trueFunc","falseFunc","normalizeKeys","selector","validateSelector","bindings","distance","specificity","sqm","matchSequence","targetDistance","sp","Selector","calculateSpecificity","target","dispatchEvent","cloneKeyboardEvent","dfault","IS_WIN","winKeys","macKeys","linuxKeys","isValid","bindKeys","userKeys","targ","curr","currentTarget","dist","parentElement","matches","createEvent","bubbles","cancelable","initEvent","keyCode","which","view","window","_fn","DisposableSet","_items","item","has","from","items","Drag","_onScrollFrame","_scrollTarget","edge","SCROLL_EDGE_SIZE","f","pow","round","scrollTop","scrollLeft","_dropAction","_override","_currentTarget","_currentElement","_promise","_resolve","mimeData","dragImage","proposedAction","supportedActions","event_1","createMouseEvent","dispatchDragLeave","_finalize","start","clientX","clientY","_addListeners","_attachDragImage","handleEvent","_evtMouseMove","_evtMouseUp","_evtKeyDown","_updateCurrentTarget","_updateDragScroll","_moveDragImage","action","dispatchDrop","addEventListener","_removeListeners","removeEventListener","findScrollTarget","prevTarget","currTarget","prevElem","elementFromPoint","dispatchDragExit","dispatchDragEnter","dispatchDragOver","_setDropAction","pointerEvents","_detachDragImage","validateAction","overrideCursor","cursor","overrideCursorID","supported","actionTable","supportedTable","initMouseEvent","x","y","hasAttribute","offsetX","offsetY","pageXOffset","pageYOffset","r","getBoundingClientRect","top_1","right","bottom","dr","db","dsw","scrollWidth","clientWidth","dsh","scrollHeight","clientHeight","shouldScroll","drag","dragEvent","createDragEvent","dropAction","related","screenX","screenY","none","copy","link","copy-link","copy-move","link-move","all","keyboardLayout","setKeyboardLayout","KeycodeLayout","codes","_codes","_keys","extractKeys","isValidKey","EN_US","8","9","13","19","27","32","33","34","35","36","37","38","39","40","45","46","48","49","50","51","52","53","54","55","56","57","59","61","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","93","96","97","98","99","100","101","102","103","104","105","106","107","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","173","186","187","188","189","190","191","192","219","220","221","222","BoxSizer","sizeHint","minSize","maxSize","stretch","done","BoxEngine","calc","sizers","space","count","totalMin","totalMax","totalSize","totalStretch","stretchCount","sizer","hint","notDoneCount","freeSpace","distSpace","distStretch","amt","adjust","delta","growSizer","shrinkSizer","growLimit","shrinkLimit","grow","limit","shrink","panellayout_1","Panel","createLayout","widgets","boxengine_1","BoxLayout","_fixed","_spacing","_dirty","_sizers","_box","_alignment","_direction","direction","alignment","spacing","clampSpacing","_update","_fit","nVisible","horz","isHorizontal","minW","minH","getSizeBasis","getStretch","box","boxSizing","horizontalSum","verticalSum","offsetWidth","offsetHeight","paddingTop","paddingLeft","extra","offset","stretchProperty","setStretch","sizeBasisProperty","setSizeBasis","dir","floor","onChildSizingChanged","dragdrop_1","virtualdom_1","TabBar","_currentIndex","_titles","_previousTitle","_dragData","_tabMoved","_currentChanged","_tabCloseRequested","_tabDetachRequested","_tabActivateRequested","tabsMovable","allowDeselect","insertBehavior","removeBehavior","renderer","defaultRenderer","_orientation","orientation","_releaseMouse","currentIndex","pi","pt","ci","ct","previousIndex","previousTitle","currentTitle","getElementsByClassName","addTab","insertTab","asTitle","_onTitleChanged","_adjustCurrentForInsert","_adjustCurrentForMove","removeTab","removeTabAt","_adjustCurrentForRemove","clearTabs","releaseMouse","_evtMouseDown","titles","current","zIndex","renderTab","contentNode","tabs","findFirstIndex","tab","hitTest","pressX","pressY","tabPos","tabSize","tabPressPos","targetIndex","tabLayout","contentRect","override","dragActive","dragAborted","detachRequested","querySelector","closeIconSelector","dragExceeded","tabRect","offsetLeft","offsetTop","snapTabLayout","detachExceeded","layoutTabs","finalizeTabPosition","duration","parseTransitionDuration","resetTabPositions","closable","bh","Renderer","_tabID","_tabKeys","createTabKey","createTabStyle","createTabClass","createTabDataset","renderIcon","renderLabel","renderCloseIcon","createIconClass","getComputedStyle","parseFloat","transitionDuration","pos","margin","marginLeft","marginTop","dx","abs","dy","DRAG_THRESHOLD","rect","DETACH_THRESHOLD","pressPos","localPos","clientPos","clientSize","targetPos","targetEnd","pxPos","threshold","ideal","tgt","final","_label","_caption","_mnemonic","_iconClass","_iconLabel","_className","_closable","_dataset","Timeout","clearFn","_id","_clearFn","Function","setInterval","clearInterval","timeout","unref","enroll","msecs","_idleTimeoutId","_idleTimeout","unenroll","_unrefActive","active","_onTimeout","DockLayout","_root","Map","iterAllWidgets","iterUserWidgets","selectedWidgets","iterSelectedWidgets","tabBars","iterTabBars","handles","iterHandles","moveHandle","handle","findSplitNode","holdSizes","saveLayout","holdAllSizes","createConfig","restoreLayout","config","mainConfig","widgetSet","normalizeAreaConfig","oldWidgets","oldTabBars","oldHandles","tabBar","realizeAreaConfig","createTabBar","_createTabBar","createHandle","_createHandle","mode","refNode","findTabNode","_insertTab","_insertSplit","_removeWidget","hitTestTabAreas","borderLeft","borderTop","tabNode","hitTestTabNodes","borderWidth","borderRight","borderHeight","borderBottom","splitNode","syncHandles","maybeParent","childNode","childHandle","TabLayoutNode","splitHandle","i_1","gChild","gHandle","gSizer","after","findFirstTabNode","_splitRoot","i_2","normalizeSizes","createSizer","GOLDEN_RATIO","i_3","j_1","SplitLayoutNode","normalized","oldRoot","newRoot","normalizeTabAreaConfig","normalizeSplitAreaConfig","realizeTabAreaConfig","realizeSplitAreaConfig","sizes","tabSizer","widgetSizer","chain","once","tabBarItem","widgetItem","tabBarSizer","ChainIterator","createNormalizedSizes","sum","reduce","v","horizontal","fixed","handleStyle","__assign","assign","t","commands_1","Menu","_childIndex","_activeIndex","_openTimerID","_closeTimerID","_childMenu","_parentMenu","_aboutToClose","_menuRequested","commands","menu","activeIndex","canActivate","activateNextItem","ai","stop","activatePreviousItem","findLastIndex","triggerActiveItem","activeItem","_cancelOpenTimer","_cancelCloseTimer","_openChildMenu","rootMenu","log","addItem","insertItem","createItem","removeItem","removeItemAt","clearItems","open","forceX","forceY","openRootMenu","_evtMouseEnter","_evtMouseLeave","focus","collapsedFlags","computeCollapsed","collapsed","renderItem","childMenu","parentMenu","kc","findMnemonic","multiple","auto","_startCloseTimer","submenu","_startOpenTimer","hitTestMenus","activateFirst","_closeChildMenu","itemNode","openSubmenu","TIMER_DELAY","createItemClass","createItemDataset","renderShortcut","renderSubmenu","formatLabel","formatShortcut","prefix","suffix","char","kb","keyBinding","formatKeystroke","tabIndex","MenuItem","temp","k1","k2","px","py","cw","documentElement","ch","visibility","itemRect","SUBMENU_OVERLAP","paddingBottom","upperKey","toUpperCase","k","mn","command_1","args_1","findLastValue","keyBindings","deepEqual","SplitLayout","_hasNormedSizes","_handles","relativeSizes","normalize","setRelativeSizes","normed","average","averageSize","lastHandleIndex","StackedLayout","panel_1","stackedlayout_1","StackedPanel","_widgetRemoved","widgets_1","Application","_started","_pluginMap","createPluginMap","_serviceMap","createServiceMap","_delegate","PromiseDelegate","contextMenuRenderer","contextMenu","ContextMenu","shell","promise","hasPlugin","listPlugins","registerPlugin","plugin","createPluginData","ensureNoCycle","provides","registerPlugins","plugins","plugins_1","activatePlugin","activated","required","requires","resolveRequiredService","optional","resolveOptionalService","promises","concat","then","services","service","catch","reason","hostID","startups","collectStartupPlugins","attachShell","addEventListeners","evtResize","evtKeydown","evtContextMenu","getElementById","autoStart","pluginMap","serviceMap","visit","trace","resultMap","startPlugins","ignorePlugins","_b","_c","algorithm","application","collections","coreutils","disposable","domutils","dragdrop","keyboard","messaging","properties","signaling","virtualdom","firstIndexOf","lastIndexOf","findFirstValue","lowerBound","begin","half","middle","upperBound","reverse","rotate","pivot","removeLastOf","removeAllOf","removeFirstWhere","removeLastWhere","objects","iter_1","_cloned","_active","EmptyIterator","filter","FilterIterator","minmax","vmin","vmax","MapIterator","range","step","RangeIterator","_start","_stop","_step","_length","rangeLength","ceil","initial","first","TypeError","second","accumulator","repeat","RepeatIterator","_value","_count","RetroArrayIterator","topologicSort","edges","addEdge","fromNode","toNode","graph","visited","sorted","stride","StrideIterator","StringExt","findIndices","query","indices","matchSumOfSquares","score","matchSumOfDeltas","last","highlight","take","TakeIterator","zip","ZipIterator","_first","_last","ForwardValueIterator","RetroValueIterator","nodes","ForwardNodeIterator","retroNodes","RetroNodeIterator","addFirst","LinkedListNode","prev","list","_ref","insertAfter","removeLast","removeNode","_node","isPrimitive","isArray","isObject","a1","a2","deepArrayEqual","deepObjectEqual","deepCopy","deepArrayCopy","deepObjectCopy","freeze","emptyArray","MimeData","_types","_values","types","hasData","mime","getData","setData","splice","_reject","Token","_tokenStructuralPropertyT","bt","borderTopWidth","bl","borderLeftWidth","borderRightWidth","bb","borderBottomWidth","pl","pr","paddingRight","pb","scrollIntoViewIfNeeded","ar","er","navigator","platform","match","IS_IE","test","userAgent","IS_EDGE","specificityCache","calculateSingle","validityCache","testElem","protoMatchFunc","re","replace","NEGATION_RE","ID_RE","CLASS_RE","ATTR_RE","PSEUDO_ELEM_RE","PSEDUO_CLASS_RE","TYPE_RE","IGNORE_RE","proto","Element","matchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","webkitMatchesSelector","elem","ownerDocument","querySelectorAll","boxlayout_1","BoxPanel","CommandPalette","_results","commandChanged","_onGenericChange","keyBindingChanged","refresh","_evtClick","_toggleFocused","inputNode","results","search","renderEmptyMessage","category","renderHeader","_execute","_activatePreviousItem","_activateNextItem","part","toLowerCase","focused","activeElement","formatHeader","renderItemShortcut","renderItemLabel","renderItemCaption","formatEmptyMessage","formatItemShortcut","formatItemLabel","formatItemCaption","wrapper","spellcheck","CommandItem","scores","matchItems","sort","scoreCmp","createResults","normalizeCategory","trim","normalizeQuery","text","fuzzySearch","matchType","categoryIndices","labelIndices","rgx","rgxMatch","exec","m1","d1","i1","i2","d2","localeCompare","r1","rank","r2","item_1","menu_1","_idTick","availableItems","itemCmp","s1","s2","docklayout_1","tabbar_1","DockPanel","_drag","_pressData","_layoutModified","_mode","_renderer","overlay","Overlay","createSingleDocumentConfig","LayoutModified","selectWidget","bar","activateWidget","_evtDragEnter","_evtDragLeave","_evtDragOver","_evtDrop","isGeneratedTabBarProperty","relatedTarget","_showOverlay","findDropTarget","zone","getDropRef","deltaX","deltaY","xPos","yPos","tabMoved","_onTabMoved","currentChanged","_onCurrentChanged","tabCloseRequested","_onTabCloseRequested","tabDetachRequested","_onTabDetachRequested","tabActivateRequested","_onTabActivateRequested","cloneNode","cleanup","_timer","_hidden","geo","delay","panel","selected","panelRect","pd","EDGE_SIZE","zone_1","al","at","ab","rx","ry","ad","FocusTracker","_counter","_activeWidget","_currentWidget","_numbers","_nodes","_activeChanged","w","focusNumber","disposed","_onWidgetDisposed","_setWidgets","valid","previous","_evtFocus","_evtBlur","oldCurrent","oldActive","focusTarget","MenuBar","_menus","openActiveMenu","addMenu","insertMenu","aboutToClose","_onMenuAboutToClose","menuRequested","_onMenuMenuRequested","removeMenu","removeMenuAt","clearMenus","menus","blur","stopImmediatePropagation","newMenu","activeMenu","oldMenu","splitlayout_1","SplitPanel","stackedpanel_1","TabPanel","stackedPanel","widgetRemoved","_onWidgetRemoved","_tabPlacement","tabPlacement","directionFromPlacement","orientationFromPlacement","currentWidget","previousWidget","plc","placementToOrientationMap","placementToDirectionMap","defaultSetTimout","defaultClearTimeout","runTimeout","fun","cachedSetTimeout","e","runClearTimeout","marker","cachedClearTimeout","cleanUpNextTick","draining","currentQueue","queue","queueIndex","drainQueue","len","run","Item","noop","process","nextTick","browser","env","argv","version","versions","on","addListener","off","removeListener","removeAllListeners","prependListener","prependOnceListener","listeners","cwd","chdir","umask","global","callback","task","tasksByHandle","nextHandle","registerImmediate","runIfPresent","currentlyRunningATask","doc","attachTo","getPrototypeOf","toString","importScripts","postMessageIsAsynchronous","oldOnMessage","onmessage","messagePrefix","onGlobalMessage","attachEvent","MessageChannel","channel","port1","port2","html","script","onreadystatechange","self","g","eval"],"mappings":"CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,IACA,kBAAAG,gB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AvmB,EAAAD,QAAAqqD","file":"./phosphor.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"phosphor\"] = factory();\n\telse\n\t\troot[\"phosphor\"] = factory();\n})(this, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"phosphor\"] = factory();\n\telse\n\t\troot[\"phosphor\"] = factory();\n})(this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// identity function for calling harmony imports with the correct context\n/******/ \t__webpack_require__.i = function(value) { return value; };\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 30);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nfunction __export(m) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/*-----------------------------------------------------------------------------\r\n| Copyright (c) 2014-2017, PhosphorJS Contributors\r\n|\r\n| Distributed under the terms of the BSD 3-Clause License.\r\n|\r\n| The full license is in the file LICENSE, distributed with this software.\r\n|----------------------------------------------------------------------------*/\r\n__export(__webpack_require__(31));\r\n__export(__webpack_require__(32));\r\n__export(__webpack_require__(33));\r\n__export(__webpack_require__(34));\r\n__export(__webpack_require__(35));\r\n__export(__webpack_require__(5));\r\n__export(__webpack_require__(36));\r\n__export(__webpack_require__(37));\r\n__export(__webpack_require__(38));\r\n__export(__webpack_require__(39));\r\n__export(__webpack_require__(40));\r\n__export(__webpack_require__(41));\r\n__export(__webpack_require__(42));\r\n__export(__webpack_require__(43));\r\n__export(__webpack_require__(44));\r\n__export(__webpack_require__(45));\r\n\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nfunction __export(m) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/*-----------------------------------------------------------------------------\r\n| Copyright (c) 2014-2017, PhosphorJS Contributors\r\n|\r\n| Distributed under the terms of the BSD 3-Clause License.\r\n|\r\n| The full license is in the file LICENSE, distributed with this software.\r\n|----------------------------------------------------------------------------*/\r\n__export(__webpack_require__(51));\r\n__export(__webpack_require__(52));\r\n__export(__webpack_require__(53));\r\n\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/*-----------------------------------------------------------------------------\r\n| Copyright (c) 2014-2017, PhosphorJS Contributors\r\n|\r\n| Distributed under the terms of the BSD 3-Clause License.\r\n|\r\n| The full license is in the file LICENSE, distributed with this software.\r\n|----------------------------------------------------------------------------*/\r\nvar algorithm_1 = __webpack_require__(0);\r\nvar messaging_1 = __webpack_require__(3);\r\nvar properties_1 = __webpack_require__(7);\r\nvar signaling_1 = __webpack_require__(4);\r\nvar title_1 = __webpack_require__(19);\r\n/**\r\n * The base class of the Phosphor widget hierarchy.\r\n *\r\n * #### Notes\r\n * This class will typically be subclassed in order to create a useful\r\n * widget. However, it can be used directly to host externally created\r\n * content.\r\n */\r\nvar Widget = (function () {\r\n /**\r\n * Construct a new widget.\r\n *\r\n * @param options - The options for initializing the widget.\r\n */\r\n function Widget(options) {\r\n if (options === void 0) { options = {}; }\r\n this._flags = 0;\r\n this._layout = null;\r\n this._parent = null;\r\n this._disposed = new signaling_1.Signal(this);\r\n this.node = Private.createNode(options);\r\n this.addClass('p-Widget');\r\n }\r\n /**\r\n * Dispose of the widget and its descendant widgets.\r\n *\r\n * #### Notes\r\n * It is unsafe to use the widget after it has been disposed.\r\n *\r\n * All calls made to this method after the first are a no-op.\r\n */\r\n Widget.prototype.dispose = function () {\r\n // Do nothing if the widget is already disposed.\r\n if (this.isDisposed) {\r\n return;\r\n }\r\n // Set the disposed flag and emit the disposed signal.\r\n this.setFlag(Widget.Flag.IsDisposed);\r\n this._disposed.emit(undefined);\r\n // Remove or detach the widget if necessary.\r\n if (this.parent) {\r\n this.parent = null;\r\n }\r\n else if (this.isAttached) {\r\n Widget.detach(this);\r\n }\r\n // Dispose of the widget layout.\r\n if (this._layout) {\r\n this._layout.dispose();\r\n this._layout = null;\r\n }\r\n // Clear the extra data associated with the widget.\r\n signaling_1.Signal.clearData(this);\r\n messaging_1.MessageLoop.clearData(this);\r\n properties_1.AttachedProperty.clearData(this);\r\n };\r\n Object.defineProperty(Widget.prototype, \"disposed\", {\r\n /**\r\n * A signal emitted when the widget is disposed.\r\n */\r\n get: function () {\r\n return this._disposed;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Widget.prototype, \"isDisposed\", {\r\n /**\r\n * Test whether the widget has been disposed.\r\n */\r\n get: function () {\r\n return this.testFlag(Widget.Flag.IsDisposed);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Widget.prototype, \"isAttached\", {\r\n /**\r\n * Test whether the widget's node is attached to the DOM.\r\n */\r\n get: function () {\r\n return this.testFlag(Widget.Flag.IsAttached);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Widget.prototype, \"isHidden\", {\r\n /**\r\n * Test whether the widget is explicitly hidden.\r\n */\r\n get: function () {\r\n return this.testFlag(Widget.Flag.IsHidden);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Widget.prototype, \"isVisible\", {\r\n /**\r\n * Test whether the widget is visible.\r\n *\r\n * #### Notes\r\n * A widget is visible when it is attached to the DOM, is not\r\n * explicitly hidden, and has no explicitly hidden ancestors.\r\n */\r\n get: function () {\r\n return this.testFlag(Widget.Flag.IsVisible);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Widget.prototype, \"title\", {\r\n /**\r\n * The title object for the widget.\r\n *\r\n * #### Notes\r\n * The title object is used by some container widgets when displaying\r\n * the widget alongside some title, such as a tab panel or side bar.\r\n *\r\n * Since not all widgets will use the title, it is created on demand.\r\n *\r\n * The `owner` property of the title is set to this widget.\r\n */\r\n get: function () {\r\n return Private.titleProperty.get(this);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Widget.prototype, \"id\", {\r\n /**\r\n * Get the id of the widget's DOM node.\r\n */\r\n get: function () {\r\n return this.node.id;\r\n },\r\n /**\r\n * Set the id of the widget's DOM node.\r\n */\r\n set: function (value) {\r\n this.node.id = value;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Widget.prototype, \"dataset\", {\r\n /**\r\n * The dataset for the widget's DOM node.\r\n */\r\n get: function () {\r\n return this.node.dataset;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Widget.prototype, \"parent\", {\r\n /**\r\n * Get the parent of the widget.\r\n */\r\n get: function () {\r\n return this._parent;\r\n },\r\n /**\r\n * Set the parent of the widget.\r\n *\r\n * #### Notes\r\n * Children are typically added to a widget by using a layout, which\r\n * means user code will not normally set the parent widget directly.\r\n *\r\n * The widget will be automatically removed from its old parent.\r\n *\r\n * This is a no-op if there is no effective parent change.\r\n */\r\n set: function (value) {\r\n if (this._parent === value) {\r\n return;\r\n }\r\n if (value && this.contains(value)) {\r\n throw new Error('Invalid parent widget.');\r\n }\r\n if (this._parent && !this._parent.isDisposed) {\r\n var msg = new Widget.ChildMessage('child-removed', this);\r\n messaging_1.MessageLoop.sendMessage(this._parent, msg);\r\n }\r\n this._parent = value;\r\n if (this._parent && !this._parent.isDisposed) {\r\n var msg = new Widget.ChildMessage('child-added', this);\r\n messaging_1.MessageLoop.sendMessage(this._parent, msg);\r\n }\r\n messaging_1.MessageLoop.sendMessage(this, Widget.Msg.ParentChanged);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Widget.prototype, \"layout\", {\r\n /**\r\n * Get the layout for the widget.\r\n */\r\n get: function () {\r\n return this._layout;\r\n },\r\n /**\r\n * Set the layout for the widget.\r\n *\r\n * #### Notes\r\n * The layout is single-use only. It cannot be changed after the\r\n * first assignment.\r\n *\r\n * The layout is disposed automatically when the widget is disposed.\r\n */\r\n set: function (value) {\r\n if (this._layout === value) {\r\n return;\r\n }\r\n if (this.testFlag(Widget.Flag.DisallowLayout)) {\r\n throw new Error('Cannot set widget layout.');\r\n }\r\n if (this._layout) {\r\n throw new Error('Cannot change widget layout.');\r\n }\r\n if (value.parent) {\r\n throw new Error('Cannot change layout parent.');\r\n }\r\n this._layout = value;\r\n value.parent = this;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * Create an iterator over the widget's children.\r\n *\r\n * @returns A new iterator over the children of the widget.\r\n *\r\n * #### Notes\r\n * The widget must have a populated layout in order to have children.\r\n *\r\n * If a layout is not installed, the returned iterator will be empty.\r\n */\r\n Widget.prototype.children = function () {\r\n return this._layout ? this._layout.iter() : algorithm_1.empty();\r\n };\r\n /**\r\n * Test whether a widget is a descendant of this widget.\r\n *\r\n * @param widget - The descendant widget of interest.\r\n *\r\n * @returns `true` if the widget is a descendant, `false` otherwise.\r\n */\r\n Widget.prototype.contains = function (widget) {\r\n for (var value = widget; value; value = value._parent) {\r\n if (value === this) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n };\r\n /**\r\n * Test whether the widget's DOM node has the given class name.\r\n *\r\n * @param name - The class name of interest.\r\n *\r\n * @returns `true` if the node has the class, `false` otherwise.\r\n */\r\n Widget.prototype.hasClass = function (name) {\r\n return this.node.classList.contains(name);\r\n };\r\n /**\r\n * Add a class name to the widget's DOM node.\r\n *\r\n * @param name - The class name to add to the node.\r\n *\r\n * #### Notes\r\n * If the class name is already added to the node, this is a no-op.\r\n *\r\n * The class name must not contain whitespace.\r\n */\r\n Widget.prototype.addClass = function (name) {\r\n this.node.classList.add(name);\r\n };\r\n /**\r\n * Remove a class name from the widget's DOM node.\r\n *\r\n * @param name - The class name to remove from the node.\r\n *\r\n * #### Notes\r\n * If the class name is not yet added to the node, this is a no-op.\r\n *\r\n * The class name must not contain whitespace.\r\n */\r\n Widget.prototype.removeClass = function (name) {\r\n this.node.classList.remove(name);\r\n };\r\n /**\r\n * Toggle a class name on the widget's DOM node.\r\n *\r\n * @param name - The class name to toggle on the node.\r\n *\r\n * @param force - Whether to force add the class (`true`) or force\r\n * remove the class (`false`). If not provided, the presence of\r\n * the class will be toggled from its current state.\r\n *\r\n * @returns `true` if the class is now present, `false` otherwise.\r\n *\r\n * #### Notes\r\n * The class name must not contain whitespace.\r\n */\r\n Widget.prototype.toggleClass = function (name, force) {\r\n if (force === true) {\r\n this.node.classList.add(name);\r\n return true;\r\n }\r\n if (force === false) {\r\n this.node.classList.remove(name);\r\n return false;\r\n }\r\n return this.node.classList.toggle(name);\r\n };\r\n /**\r\n * Post an `'update-request'` message to the widget.\r\n *\r\n * #### Notes\r\n * This is a simple convenience method for posting the message.\r\n */\r\n Widget.prototype.update = function () {\r\n messaging_1.MessageLoop.postMessage(this, Widget.Msg.UpdateRequest);\r\n };\r\n /**\r\n * Post a `'fit-request'` message to the widget.\r\n *\r\n * #### Notes\r\n * This is a simple convenience method for posting the message.\r\n */\r\n Widget.prototype.fit = function () {\r\n messaging_1.MessageLoop.postMessage(this, Widget.Msg.FitRequest);\r\n };\r\n /**\r\n * Post an `'activate-request'` message to the widget.\r\n *\r\n * #### Notes\r\n * This is a simple convenience method for posting the message.\r\n */\r\n Widget.prototype.activate = function () {\r\n messaging_1.MessageLoop.postMessage(this, Widget.Msg.ActivateRequest);\r\n };\r\n /**\r\n * Send a `'close-request'` message to the widget.\r\n *\r\n * #### Notes\r\n * This is a simple convenience method for sending the message.\r\n */\r\n Widget.prototype.close = function () {\r\n messaging_1.MessageLoop.sendMessage(this, Widget.Msg.CloseRequest);\r\n };\r\n /**\r\n * Show the widget and make it visible to its parent widget.\r\n *\r\n * #### Notes\r\n * This causes the [[isHidden]] property to be `false`.\r\n *\r\n * If the widget is not explicitly hidden, this is a no-op.\r\n */\r\n Widget.prototype.show = function () {\r\n if (!this.testFlag(Widget.Flag.IsHidden)) {\r\n return;\r\n }\r\n if (this.isAttached && (!this.parent || this.parent.isVisible)) {\r\n messaging_1.MessageLoop.sendMessage(this, Widget.Msg.BeforeShow);\r\n }\r\n this.clearFlag(Widget.Flag.IsHidden);\r\n this.removeClass('p-mod-hidden');\r\n if (this.isAttached && (!this.parent || this.parent.isVisible)) {\r\n messaging_1.MessageLoop.sendMessage(this, Widget.Msg.AfterShow);\r\n }\r\n if (this.parent) {\r\n var msg = new Widget.ChildMessage('child-shown', this);\r\n messaging_1.MessageLoop.sendMessage(this.parent, msg);\r\n }\r\n };\r\n /**\r\n * Hide the widget and make it hidden to its parent widget.\r\n *\r\n * #### Notes\r\n * This causes the [[isHidden]] property to be `true`.\r\n *\r\n * If the widget is explicitly hidden, this is a no-op.\r\n */\r\n Widget.prototype.hide = function () {\r\n if (this.testFlag(Widget.Flag.IsHidden)) {\r\n return;\r\n }\r\n if (this.isAttached && (!this.parent || this.parent.isVisible)) {\r\n messaging_1.MessageLoop.sendMessage(this, Widget.Msg.BeforeHide);\r\n }\r\n this.setFlag(Widget.Flag.IsHidden);\r\n this.addClass('p-mod-hidden');\r\n if (this.isAttached && (!this.parent || this.parent.isVisible)) {\r\n messaging_1.MessageLoop.sendMessage(this, Widget.Msg.AfterHide);\r\n }\r\n if (this.parent) {\r\n var msg = new Widget.ChildMessage('child-hidden', this);\r\n messaging_1.MessageLoop.sendMessage(this.parent, msg);\r\n }\r\n };\r\n /**\r\n * Show or hide the widget according to a boolean value.\r\n *\r\n * @param hidden - `true` to hide the widget, or `false` to show it.\r\n *\r\n * #### Notes\r\n * This is a convenience method for `hide()` and `show()`.\r\n */\r\n Widget.prototype.setHidden = function (hidden) {\r\n if (hidden) {\r\n this.hide();\r\n }\r\n else {\r\n this.show();\r\n }\r\n };\r\n /**\r\n * Test whether the given widget flag is set.\r\n *\r\n * #### Notes\r\n * This will not typically be called directly by user code.\r\n */\r\n Widget.prototype.testFlag = function (flag) {\r\n return (this._flags & flag) !== 0;\r\n };\r\n /**\r\n * Set the given widget flag.\r\n *\r\n * #### Notes\r\n * This will not typically be called directly by user code.\r\n */\r\n Widget.prototype.setFlag = function (flag) {\r\n this._flags |= flag;\r\n };\r\n /**\r\n * Clear the given widget flag.\r\n *\r\n * #### Notes\r\n * This will not typically be called directly by user code.\r\n */\r\n Widget.prototype.clearFlag = function (flag) {\r\n this._flags &= ~flag;\r\n };\r\n /**\r\n * Process a message sent to the widget.\r\n *\r\n * @param msg - The message sent to the widget.\r\n *\r\n * #### Notes\r\n * Subclasses may reimplement this method as needed.\r\n */\r\n Widget.prototype.processMessage = function (msg) {\r\n switch (msg.type) {\r\n case 'resize':\r\n this.notifyLayout(msg);\r\n this.onResize(msg);\r\n break;\r\n case 'update-request':\r\n this.notifyLayout(msg);\r\n this.onUpdateRequest(msg);\r\n break;\r\n case 'before-show':\r\n this.notifyLayout(msg);\r\n this.onBeforeShow(msg);\r\n break;\r\n case 'after-show':\r\n this.setFlag(Widget.Flag.IsVisible);\r\n this.notifyLayout(msg);\r\n this.onAfterShow(msg);\r\n break;\r\n case 'before-hide':\r\n this.notifyLayout(msg);\r\n this.onBeforeHide(msg);\r\n break;\r\n case 'after-hide':\r\n this.clearFlag(Widget.Flag.IsVisible);\r\n this.notifyLayout(msg);\r\n this.onAfterHide(msg);\r\n break;\r\n case 'before-attach':\r\n this.notifyLayout(msg);\r\n this.onBeforeAttach(msg);\r\n break;\r\n case 'after-attach':\r\n if (!this.isHidden && (!this.parent || this.parent.isVisible)) {\r\n this.setFlag(Widget.Flag.IsVisible);\r\n }\r\n this.setFlag(Widget.Flag.IsAttached);\r\n this.notifyLayout(msg);\r\n this.onAfterAttach(msg);\r\n break;\r\n case 'before-detach':\r\n this.notifyLayout(msg);\r\n this.onBeforeDetach(msg);\r\n break;\r\n case 'after-detach':\r\n this.clearFlag(Widget.Flag.IsVisible);\r\n this.clearFlag(Widget.Flag.IsAttached);\r\n this.notifyLayout(msg);\r\n this.onAfterDetach(msg);\r\n break;\r\n case 'activate-request':\r\n this.notifyLayout(msg);\r\n this.onActivateRequest(msg);\r\n break;\r\n case 'close-request':\r\n this.notifyLayout(msg);\r\n this.onCloseRequest(msg);\r\n break;\r\n case 'child-added':\r\n this.notifyLayout(msg);\r\n this.onChildAdded(msg);\r\n break;\r\n case 'child-removed':\r\n this.notifyLayout(msg);\r\n this.onChildRemoved(msg);\r\n break;\r\n default:\r\n this.notifyLayout(msg);\r\n break;\r\n }\r\n };\r\n /**\r\n * Invoke the message processing routine of the widget's layout.\r\n *\r\n * @param msg - The message to dispatch to the layout.\r\n *\r\n * #### Notes\r\n * This is a no-op if the widget does not have a layout.\r\n *\r\n * This will not typically be called directly by user code.\r\n */\r\n Widget.prototype.notifyLayout = function (msg) {\r\n if (this._layout) {\r\n this._layout.processParentMessage(msg);\r\n }\r\n };\r\n /**\r\n * A message handler invoked on a `'close-request'` message.\r\n *\r\n * #### Notes\r\n * The default implementation unparents or detaches the widget.\r\n */\r\n Widget.prototype.onCloseRequest = function (msg) {\r\n if (this.parent) {\r\n this.parent = null;\r\n }\r\n else if (this.isAttached) {\r\n Widget.detach(this);\r\n }\r\n };\r\n /**\r\n * A message handler invoked on a `'resize'` message.\r\n *\r\n * #### Notes\r\n * The default implementation of this handler is a no-op.\r\n */\r\n Widget.prototype.onResize = function (msg) { };\r\n /**\r\n * A message handler invoked on an `'update-request'` message.\r\n *\r\n * #### Notes\r\n * The default implementation of this handler is a no-op.\r\n */\r\n Widget.prototype.onUpdateRequest = function (msg) { };\r\n /**\r\n * A message handler invoked on an `'activate-request'` message.\r\n *\r\n * #### Notes\r\n * The default implementation of this handler is a no-op.\r\n */\r\n Widget.prototype.onActivateRequest = function (msg) { };\r\n /**\r\n * A message handler invoked on a `'before-show'` message.\r\n *\r\n * #### Notes\r\n * The default implementation of this handler is a no-op.\r\n */\r\n Widget.prototype.onBeforeShow = function (msg) { };\r\n /**\r\n * A message handler invoked on an `'after-show'` message.\r\n *\r\n * #### Notes\r\n * The default implementation of this handler is a no-op.\r\n */\r\n Widget.prototype.onAfterShow = function (msg) { };\r\n /**\r\n * A message handler invoked on a `'before-hide'` message.\r\n *\r\n * #### Notes\r\n * The default implementation of this handler is a no-op.\r\n */\r\n Widget.prototype.onBeforeHide = function (msg) { };\r\n /**\r\n * A message handler invoked on an `'after-hide'` message.\r\n *\r\n * #### Notes\r\n * The default implementation of this handler is a no-op.\r\n */\r\n Widget.prototype.onAfterHide = function (msg) { };\r\n /**\r\n * A message handler invoked on a `'before-attach'` message.\r\n *\r\n * #### Notes\r\n * The default implementation of this handler is a no-op.\r\n */\r\n Widget.prototype.onBeforeAttach = function (msg) { };\r\n /**\r\n * A message handler invoked on an `'after-attach'` message.\r\n *\r\n * #### Notes\r\n * The default implementation of this handler is a no-op.\r\n */\r\n Widget.prototype.onAfterAttach = function (msg) { };\r\n /**\r\n * A message handler invoked on a `'before-detach'` message.\r\n *\r\n * #### Notes\r\n * The default implementation of this handler is a no-op.\r\n */\r\n Widget.prototype.onBeforeDetach = function (msg) { };\r\n /**\r\n * A message handler invoked on an `'after-detach'` message.\r\n *\r\n * #### Notes\r\n * The default implementation of this handler is a no-op.\r\n */\r\n Widget.prototype.onAfterDetach = function (msg) { };\r\n /**\r\n * A message handler invoked on a `'child-added'` message.\r\n *\r\n * #### Notes\r\n * The default implementation of this handler is a no-op.\r\n */\r\n Widget.prototype.onChildAdded = function (msg) { };\r\n /**\r\n * A message handler invoked on a `'child-removed'` message.\r\n *\r\n * #### Notes\r\n * The default implementation of this handler is a no-op.\r\n */\r\n Widget.prototype.onChildRemoved = function (msg) { };\r\n return Widget;\r\n}());\r\nexports.Widget = Widget;\r\n/**\r\n * The namespace for the `Widget` class statics.\r\n */\r\n(function (Widget) {\r\n /**\r\n * An enum of widget bit flags.\r\n */\r\n var Flag;\r\n (function (Flag) {\r\n /**\r\n * The widget has been disposed.\r\n */\r\n Flag[Flag[\"IsDisposed\"] = 1] = \"IsDisposed\";\r\n /**\r\n * The widget is attached to the DOM.\r\n */\r\n Flag[Flag[\"IsAttached\"] = 2] = \"IsAttached\";\r\n /**\r\n * The widget is hidden.\r\n */\r\n Flag[Flag[\"IsHidden\"] = 4] = \"IsHidden\";\r\n /**\r\n * The widget is visible.\r\n */\r\n Flag[Flag[\"IsVisible\"] = 8] = \"IsVisible\";\r\n /**\r\n * A layout cannot be set on the widget.\r\n */\r\n Flag[Flag[\"DisallowLayout\"] = 16] = \"DisallowLayout\";\r\n })(Flag = Widget.Flag || (Widget.Flag = {}));\r\n /**\r\n * A collection of stateless messages related to widgets.\r\n */\r\n var Msg;\r\n (function (Msg) {\r\n /**\r\n * A singleton `'before-show'` message.\r\n *\r\n * #### Notes\r\n * This message is sent to a widget before it becomes visible.\r\n *\r\n * This message is **not** sent when the widget is being attached.\r\n */\r\n Msg.BeforeShow = new messaging_1.Message('before-show');\r\n /**\r\n * A singleton `'after-show'` message.\r\n *\r\n * #### Notes\r\n * This message is sent to a widget after it becomes visible.\r\n *\r\n * This message is **not** sent when the widget is being attached.\r\n */\r\n Msg.AfterShow = new messaging_1.Message('after-show');\r\n /**\r\n * A singleton `'before-hide'` message.\r\n *\r\n * #### Notes\r\n * This message is sent to a widget before it becomes not-visible.\r\n *\r\n * This message is **not** sent when the widget is being detached.\r\n */\r\n Msg.BeforeHide = new messaging_1.Message('before-hide');\r\n /**\r\n * A singleton `'after-hide'` message.\r\n *\r\n * #### Notes\r\n * This message is sent to a widget after it becomes not-visible.\r\n *\r\n * This message is **not** sent when the widget is being detached.\r\n */\r\n Msg.AfterHide = new messaging_1.Message('after-hide');\r\n /**\r\n * A singleton `'before-attach'` message.\r\n *\r\n * #### Notes\r\n * This message is sent to a widget before it is attached.\r\n */\r\n Msg.BeforeAttach = new messaging_1.Message('before-attach');\r\n /**\r\n * A singleton `'after-attach'` message.\r\n *\r\n * #### Notes\r\n * This message is sent to a widget after it is attached.\r\n */\r\n Msg.AfterAttach = new messaging_1.Message('after-attach');\r\n /**\r\n * A singleton `'before-detach'` message.\r\n *\r\n * #### Notes\r\n * This message is sent to a widget before it is detached.\r\n */\r\n Msg.BeforeDetach = new messaging_1.Message('before-detach');\r\n /**\r\n * A singleton `'after-detach'` message.\r\n *\r\n * #### Notes\r\n * This message is sent to a widget after it is detached.\r\n */\r\n Msg.AfterDetach = new messaging_1.Message('after-detach');\r\n /**\r\n * A singleton `'parent-changed'` message.\r\n *\r\n * #### Notes\r\n * This message is sent to a widget when its parent has changed.\r\n */\r\n Msg.ParentChanged = new messaging_1.Message('parent-changed');\r\n /**\r\n * A singleton conflatable `'update-request'` message.\r\n *\r\n * #### Notes\r\n * This message can be dispatched to supporting widgets in order to\r\n * update their content based on the current widget state. Not all\r\n * widgets will respond to messages of this type.\r\n *\r\n * For widgets with a layout, this message will inform the layout to\r\n * update the position and size of its child widgets.\r\n */\r\n Msg.UpdateRequest = new messaging_1.ConflatableMessage('update-request');\r\n /**\r\n * A singleton conflatable `'fit-request'` message.\r\n *\r\n * #### Notes\r\n * For widgets with a layout, this message will inform the layout to\r\n * recalculate its size constraints to fit the space requirements of\r\n * its child widgets, and to update their position and size. Not all\r\n * layouts will respond to messages of this type.\r\n */\r\n Msg.FitRequest = new messaging_1.ConflatableMessage('fit-request');\r\n /**\r\n * A singleton conflatable `'activate-request'` message.\r\n *\r\n * #### Notes\r\n * This message should be dispatched to a widget when it should\r\n * perform the actions necessary to activate the widget, which\r\n * may include focusing its node or descendant node.\r\n */\r\n Msg.ActivateRequest = new messaging_1.ConflatableMessage('activate-request');\r\n /**\r\n * A singleton conflatable `'close-request'` message.\r\n *\r\n * #### Notes\r\n * This message should be dispatched to a widget when it should close\r\n * and remove itself from the widget hierarchy.\r\n */\r\n Msg.CloseRequest = new messaging_1.ConflatableMessage('close-request');\r\n })(Msg = Widget.Msg || (Widget.Msg = {}));\r\n /**\r\n * A message class for child related messages.\r\n */\r\n var ChildMessage = (function (_super) {\r\n __extends(ChildMessage, _super);\r\n /**\r\n * Construct a new child message.\r\n *\r\n * @param type - The message type.\r\n *\r\n * @param child - The child widget for the message.\r\n */\r\n function ChildMessage(type, child) {\r\n var _this = _super.call(this, type) || this;\r\n _this.child = child;\r\n return _this;\r\n }\r\n return ChildMessage;\r\n }(messaging_1.Message));\r\n Widget.ChildMessage = ChildMessage;\r\n /**\r\n * A message class for `'resize'` messages.\r\n */\r\n var ResizeMessage = (function (_super) {\r\n __extends(ResizeMessage, _super);\r\n /**\r\n * Construct a new resize message.\r\n *\r\n * @param width - The **offset width** of the widget, or `-1` if\r\n * the width is not known.\r\n *\r\n * @param height - The **offset height** of the widget, or `-1` if\r\n * the height is not known.\r\n */\r\n function ResizeMessage(width, height) {\r\n var _this = _super.call(this, 'resize') || this;\r\n _this.width = width;\r\n _this.height = height;\r\n return _this;\r\n }\r\n return ResizeMessage;\r\n }(messaging_1.Message));\r\n Widget.ResizeMessage = ResizeMessage;\r\n /**\r\n * The namespace for the `ResizeMessage` class statics.\r\n */\r\n (function (ResizeMessage) {\r\n /**\r\n * A singleton `'resize'` message with an unknown size.\r\n */\r\n ResizeMessage.UnknownSize = new ResizeMessage(-1, -1);\r\n })(ResizeMessage = Widget.ResizeMessage || (Widget.ResizeMessage = {}));\r\n /**\r\n * Attach a widget to a host DOM node.\r\n *\r\n * @param widget - The widget of interest.\r\n *\r\n * @param host - The DOM node to use as the widget's host.\r\n *\r\n * @param ref - The child of `host` to use as the reference element.\r\n * If this is provided, the widget will be inserted before this\r\n * node in the host. The default is `null`, which will cause the\r\n * widget to be added as the last child of the host.\r\n *\r\n * #### Notes\r\n * This will throw an error if the widget is not a root widget, if\r\n * the widget is already attached, or if the host is not attached\r\n * to the DOM.\r\n */\r\n function attach(widget, host, ref) {\r\n if (ref === void 0) { ref = null; }\r\n if (widget.parent) {\r\n throw new Error('Cannot attach a child widget.');\r\n }\r\n if (widget.isAttached || document.body.contains(widget.node)) {\r\n throw new Error('Widget is already attached.');\r\n }\r\n if (!document.body.contains(host)) {\r\n throw new Error('Host is not attached.');\r\n }\r\n messaging_1.MessageLoop.sendMessage(widget, Widget.Msg.BeforeAttach);\r\n host.insertBefore(widget.node, ref);\r\n messaging_1.MessageLoop.sendMessage(widget, Widget.Msg.AfterAttach);\r\n }\r\n Widget.attach = attach;\r\n /**\r\n * Detach the widget from its host DOM node.\r\n *\r\n * @param widget - The widget of interest.\r\n *\r\n * #### Notes\r\n * This will throw an error if the widget is not a root widget,\r\n * or if the widget is not attached to the DOM.\r\n */\r\n function detach(widget) {\r\n if (widget.parent) {\r\n throw new Error('Cannot detach a child widget.');\r\n }\r\n if (!widget.isAttached || !document.body.contains(widget.node)) {\r\n throw new Error('Widget is not attached.');\r\n }\r\n messaging_1.MessageLoop.sendMessage(widget, Widget.Msg.BeforeDetach);\r\n widget.node.parentNode.removeChild(widget.node);\r\n messaging_1.MessageLoop.sendMessage(widget, Widget.Msg.AfterDetach);\r\n }\r\n Widget.detach = detach;\r\n})(Widget = exports.Widget || (exports.Widget = {}));\r\nexports.Widget = Widget;\r\n/**\r\n * The namespace for the module implementation details.\r\n */\r\nvar Private;\r\n(function (Private) {\r\n /**\r\n * An attached property for the widget title object.\r\n */\r\n Private.titleProperty = new properties_1.AttachedProperty({\r\n name: 'title',\r\n create: function (owner) { return new title_1.Title({ owner: owner }); },\r\n });\r\n /**\r\n * Create a DOM node for the given widget options.\r\n */\r\n function createNode(options) {\r\n return options.node || document.createElement('div');\r\n }\r\n Private.createNode = createNode;\r\n})(Private || (Private = {}));\r\n\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(setImmediate, clearImmediate) {\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/*-----------------------------------------------------------------------------\r\n| Copyright (c) 2014-2017, PhosphorJS Contributors\r\n|\r\n| Distributed under the terms of the BSD 3-Clause License.\r\n|\r\n| The full license is in the file LICENSE, distributed with this software.\r\n|----------------------------------------------------------------------------*/\r\nvar algorithm_1 = __webpack_require__(0);\r\nvar collections_1 = __webpack_require__(21);\r\n/**\r\n * A message which can be delivered to a message handler.\r\n *\r\n * #### Notes\r\n * This class may be subclassed to create complex message types.\r\n */\r\nvar Message = (function () {\r\n /**\r\n * Construct a new message.\r\n *\r\n * @param type - The type of the message.\r\n */\r\n function Message(type) {\r\n this.type = type;\r\n }\r\n Object.defineProperty(Message.prototype, \"isConflatable\", {\r\n /**\r\n * Test whether the message is conflatable.\r\n *\r\n * #### Notes\r\n * Message conflation is an advanced topic. Most message types will\r\n * not make use of this feature.\r\n *\r\n * If a conflatable message is posted to a handler while another\r\n * conflatable message of the same `type` has already been posted\r\n * to the handler, the `conflate()` method of the existing message\r\n * will be invoked. If that method returns `true`, the new message\r\n * will not be enqueued. This allows messages to be compressed, so\r\n * that only a single instance of the message type is processed per\r\n * cycle, no matter how many times messages of that type are posted.\r\n *\r\n * Custom message types may reimplement this property.\r\n *\r\n * The default implementation is always `false`.\r\n */\r\n get: function () {\r\n return false;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * Conflate this message with another message of the same `type`.\r\n *\r\n * @param other - A conflatable message of the same `type`.\r\n *\r\n * @returns `true` if the message was successfully conflated, or\r\n * `false` otherwise.\r\n *\r\n * #### Notes\r\n * Message conflation is an advanced topic. Most message types will\r\n * not make use of this feature.\r\n *\r\n * This method is called automatically by the message loop when the\r\n * given message is posted to the handler paired with this message.\r\n * This message will already be enqueued and conflatable, and the\r\n * given message will have the same `type` and also be conflatable.\r\n *\r\n * This method should merge the state of the other message into this\r\n * message as needed so that when this message is finally delivered\r\n * to the handler, it receives the most up-to-date information.\r\n *\r\n * If this method returns `true`, it signals that the other message\r\n * was successfully conflated and that message will not be enqueued.\r\n *\r\n * If this method returns `false`, the other message will be enqueued\r\n * for normal delivery.\r\n *\r\n * Custom message types may reimplement this method.\r\n *\r\n * The default implementation always returns `false`.\r\n */\r\n Message.prototype.conflate = function (other) {\r\n return false;\r\n };\r\n return Message;\r\n}());\r\nexports.Message = Message;\r\n/**\r\n * A convenience message class which conflates automatically.\r\n *\r\n * #### Notes\r\n * Message conflation is an advanced topic. Most user code will not\r\n * make use of this class.\r\n *\r\n * This message class is useful for creating message instances which\r\n * should be conflated, but which have no state other than `type`.\r\n *\r\n * If conflation of stateful messages is required, a custom `Message`\r\n * subclass should be created.\r\n */\r\nvar ConflatableMessage = (function (_super) {\r\n __extends(ConflatableMessage, _super);\r\n function ConflatableMessage() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n Object.defineProperty(ConflatableMessage.prototype, \"isConflatable\", {\r\n /**\r\n * Test whether the message is conflatable.\r\n *\r\n * #### Notes\r\n * This property is always `true`.\r\n */\r\n get: function () {\r\n return true;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * Conflate this message with another message of the same `type`.\r\n *\r\n * #### Notes\r\n * This method always returns `true`.\r\n */\r\n ConflatableMessage.prototype.conflate = function (other) {\r\n return true;\r\n };\r\n return ConflatableMessage;\r\n}(Message));\r\nexports.ConflatableMessage = ConflatableMessage;\r\n/**\r\n * The namespace for the global singleton message loop.\r\n */\r\nvar MessageLoop;\r\n(function (MessageLoop) {\r\n /**\r\n * Send a message to a message handler to process immediately.\r\n *\r\n * @param handler - The handler which should process the message.\r\n *\r\n * @param msg - The message to deliver to the handler.\r\n *\r\n * #### Notes\r\n * The message will first be sent through any installed message hooks\r\n * for the handler. If the message passes all hooks, it will then be\r\n * delivered to the `processMessage` method of the handler.\r\n *\r\n * The message will not be conflated with pending posted messages.\r\n *\r\n * Exceptions in hooks and handlers will be caught and logged.\r\n */\r\n function sendMessage(handler, msg) {\r\n // Lookup the message hooks for the handler.\r\n var hooks = messageHooks.get(handler);\r\n // Handle the common case of no installed hooks.\r\n if (!hooks || hooks.length === 0) {\r\n invokeHandler(handler, msg);\r\n return;\r\n }\r\n // Invoke the message hooks starting with the newest first.\r\n var passed = algorithm_1.every(algorithm_1.retro(hooks), function (hook) {\r\n return hook ? invokeHook(hook, handler, msg) : true;\r\n });\r\n // Invoke the handler if the message passes all hooks.\r\n if (passed) {\r\n invokeHandler(handler, msg);\r\n }\r\n }\r\n MessageLoop.sendMessage = sendMessage;\r\n /**\r\n * Post a message to a message handler to process in the future.\r\n *\r\n * @param handler - The handler which should process the message.\r\n *\r\n * @param msg - The message to post to the handler.\r\n *\r\n * #### Notes\r\n * The message will be conflated with the pending posted messages for\r\n * the handler, if possible. If the message is not conflated, it will\r\n * be queued for normal delivery on the next cycle of the event loop.\r\n *\r\n * Exceptions in hooks and handlers will be caught and logged.\r\n */\r\n function postMessage(handler, msg) {\r\n // Handle the common case of a non-conflatable message.\r\n if (!msg.isConflatable) {\r\n enqueueMessage(handler, msg);\r\n return;\r\n }\r\n // Conflate the message with an existing message if possible.\r\n var conflated = algorithm_1.some(messageQueue, function (posted) {\r\n if (posted.handler !== handler) {\r\n return false;\r\n }\r\n if (!posted.msg) {\r\n return false;\r\n }\r\n if (posted.msg.type !== msg.type) {\r\n return false;\r\n }\r\n if (!posted.msg.isConflatable) {\r\n return false;\r\n }\r\n return posted.msg.conflate(msg);\r\n });\r\n // Enqueue the message if it was not conflated.\r\n if (!conflated) {\r\n enqueueMessage(handler, msg);\r\n }\r\n }\r\n MessageLoop.postMessage = postMessage;\r\n /**\r\n * Install a message hook for a message handler.\r\n *\r\n * @param handler - The message handler of interest.\r\n *\r\n * @param hook - The message hook to install.\r\n *\r\n * #### Notes\r\n * A message hook is invoked before a message is delivered to the\r\n * handler. If the hook returns `false`, no other hooks will be\r\n * invoked and the message will not be delivered to the handler.\r\n *\r\n * The most recently installed message hook is executed first.\r\n *\r\n * If the hook is already installed, this is a no-op.\r\n */\r\n function installMessageHook(handler, hook) {\r\n // Lookup the hooks for the handler.\r\n var hooks = messageHooks.get(handler);\r\n // Bail early if the hook is already installed.\r\n if (hooks && hooks.indexOf(hook) !== -1) {\r\n return;\r\n }\r\n // Add the hook to the end, so it will be the first to execute.\r\n if (!hooks) {\r\n messageHooks.set(handler, [hook]);\r\n }\r\n else {\r\n hooks.push(hook);\r\n }\r\n }\r\n MessageLoop.installMessageHook = installMessageHook;\r\n /**\r\n * Remove an installed message hook for a message handler.\r\n *\r\n * @param handler - The message handler of interest.\r\n *\r\n * @param hook - The message hook to remove.\r\n *\r\n * #### Notes\r\n * It is safe to call this function while the hook is executing.\r\n *\r\n * If the hook is not installed, this is a no-op.\r\n */\r\n function removeMessageHook(handler, hook) {\r\n // Lookup the hooks for the handler.\r\n var hooks = messageHooks.get(handler);\r\n // Bail early if the hooks do not exist.\r\n if (!hooks) {\r\n return;\r\n }\r\n // Lookup the index of the hook and bail if not found.\r\n var i = hooks.indexOf(hook);\r\n if (i === -1) {\r\n return;\r\n }\r\n // Clear the hook and schedule a cleanup of the array.\r\n hooks[i] = null;\r\n scheduleCleanup(hooks);\r\n }\r\n MessageLoop.removeMessageHook = removeMessageHook;\r\n /**\r\n * Clear all message data associated with a message handler.\r\n *\r\n * @param handler - The message handler of interest.\r\n *\r\n * #### Notes\r\n * This will clear all posted messages and hooks for the handler.\r\n */\r\n function clearData(handler) {\r\n // Lookup the hooks for the handler.\r\n var hooks = messageHooks.get(handler);\r\n // Clear all messsage hooks for the handler.\r\n if (hooks && hooks.length > 0) {\r\n algorithm_1.ArrayExt.fill(hooks, null);\r\n scheduleCleanup(hooks);\r\n }\r\n // Clear all posted messages for the handler.\r\n algorithm_1.each(messageQueue, function (posted) {\r\n if (posted.handler === handler) {\r\n posted.handler = null;\r\n posted.msg = null;\r\n }\r\n });\r\n }\r\n MessageLoop.clearData = clearData;\r\n /**\r\n * Process the pending posted messages in the queue immediately.\r\n *\r\n * #### Notes\r\n * This function is useful when posted messages must be processed\r\n * immediately, instead of on the next animation frame.\r\n *\r\n * This function should normally not be needed, but it may be\r\n * required to work around certain browser idiosyncrasies.\r\n *\r\n * Recursing into this function is a no-op.\r\n */\r\n function flush() {\r\n // Bail if recursion is detected or if there is no pending task.\r\n if (flushGuard || loopTaskID === 0) {\r\n return;\r\n }\r\n // Unschedule the pending loop task.\r\n unschedule(loopTaskID);\r\n // Run the message loop within the recursion guard.\r\n flushGuard = true;\r\n runMessageLoop();\r\n flushGuard = false;\r\n }\r\n MessageLoop.flush = flush;\r\n /**\r\n * Get the message loop exception handler.\r\n *\r\n * @returns The current exception handler.\r\n *\r\n * #### Notes\r\n * The default exception handler is `console.error`.\r\n */\r\n function getExceptionHandler() {\r\n return exceptionHandler;\r\n }\r\n MessageLoop.getExceptionHandler = getExceptionHandler;\r\n /**\r\n * Set the message loop exception handler.\r\n *\r\n * @param handler - The function to use as the exception handler.\r\n *\r\n * @returns The old exception handler.\r\n *\r\n * #### Notes\r\n * The exception handler is invoked when a message handler or a\r\n * message hook throws an exception.\r\n */\r\n function setExceptionHandler(handler) {\r\n var old = exceptionHandler;\r\n exceptionHandler = handler;\r\n return old;\r\n }\r\n MessageLoop.setExceptionHandler = setExceptionHandler;\r\n /**\r\n * The queue of posted message pairs.\r\n */\r\n var messageQueue = new collections_1.LinkedList();\r\n /**\r\n * A mapping of handler to array of installed message hooks.\r\n */\r\n var messageHooks = new WeakMap();\r\n /**\r\n * A set of message hook arrays which are pending cleanup.\r\n */\r\n var dirtySet = new Set();\r\n /**\r\n * The message loop exception handler.\r\n */\r\n var exceptionHandler = console.error;\r\n /**\r\n * The id of the pending loop task animation frame.\r\n */\r\n var loopTaskID = 0;\r\n /**\r\n * A guard flag to prevent flush recursion.\r\n */\r\n var flushGuard = false;\r\n /**\r\n * A function to schedule an event loop callback.\r\n */\r\n var schedule = (function () {\r\n var ok = typeof requestAnimationFrame === 'function';\r\n return ok ? requestAnimationFrame : setImmediate;\r\n })();\r\n /**\r\n * A function to unschedule an event loop callback.\r\n */\r\n var unschedule = (function () {\r\n var ok = typeof cancelAnimationFrame === 'function';\r\n return ok ? cancelAnimationFrame : clearImmediate;\r\n })();\r\n /**\r\n * Invoke a message hook with the specified handler and message.\r\n *\r\n * Returns the result of the hook, or `true` if the hook throws.\r\n *\r\n * Exceptions in the hook will be caught and logged.\r\n */\r\n function invokeHook(hook, handler, msg) {\r\n var result = true;\r\n try {\r\n if (typeof hook === 'function') {\r\n result = hook(handler, msg);\r\n }\r\n else {\r\n result = hook.messageHook(handler, msg);\r\n }\r\n }\r\n catch (err) {\r\n exceptionHandler(err);\r\n }\r\n return result;\r\n }\r\n /**\r\n * Invoke a message handler with the specified message.\r\n *\r\n * Exceptions in the handler will be caught and logged.\r\n */\r\n function invokeHandler(handler, msg) {\r\n try {\r\n handler.processMessage(msg);\r\n }\r\n catch (err) {\r\n exceptionHandler(err);\r\n }\r\n }\r\n /**\r\n * Add a message to the end of the message queue.\r\n *\r\n * This will automatically schedule a run of the message loop.\r\n */\r\n function enqueueMessage(handler, msg) {\r\n // Add the posted message to the queue.\r\n messageQueue.addLast({ handler: handler, msg: msg });\r\n // Bail if a loop task is already pending.\r\n if (loopTaskID !== 0) {\r\n return;\r\n }\r\n // Schedule a run of the message loop.\r\n loopTaskID = schedule(runMessageLoop);\r\n }\r\n /**\r\n * Run an iteration of the message loop.\r\n *\r\n * This will process all pending messages in the queue. If a message\r\n * is added to the queue while the message loop is running, it will\r\n * be processed on the next cycle of the loop.\r\n */\r\n function runMessageLoop() {\r\n // Clear the task ID so the next loop can be scheduled.\r\n loopTaskID = 0;\r\n // If the message queue is empty, there is nothing else to do.\r\n if (messageQueue.isEmpty) {\r\n return;\r\n }\r\n // Add a sentinel value to the end of the queue. The queue will\r\n // only be processed up to the sentinel. Messages posted during\r\n // this cycle will execute on the next cycle.\r\n var sentinel = { handler: null, msg: null };\r\n messageQueue.addLast(sentinel);\r\n // Enter the message loop.\r\n while (true) {\r\n // Remove the first posted message in the queue.\r\n var posted = messageQueue.removeFirst();\r\n // If the value is the sentinel, exit the loop.\r\n if (posted === sentinel) {\r\n return;\r\n }\r\n // Dispatch the message if it has not been cleared.\r\n if (posted.handler && posted.msg) {\r\n sendMessage(posted.handler, posted.msg);\r\n }\r\n }\r\n }\r\n /**\r\n * Schedule a cleanup of a message hooks array.\r\n *\r\n * This will add the array to the dirty set and schedule a deferred\r\n * cleanup of the array contents. On cleanup, any `null` hook will\r\n * be removed from the array.\r\n */\r\n function scheduleCleanup(hooks) {\r\n if (dirtySet.size === 0) {\r\n schedule(cleanupDirtySet);\r\n }\r\n dirtySet.add(hooks);\r\n }\r\n /**\r\n * Cleanup the message hook arrays in the dirty set.\r\n *\r\n * This function should only be invoked asynchronously, when the\r\n * stack frame is guaranteed to not be on the path of user code.\r\n */\r\n function cleanupDirtySet() {\r\n dirtySet.forEach(cleanupHooks);\r\n dirtySet.clear();\r\n }\r\n /**\r\n * Cleanup the dirty hooks in a message hooks array.\r\n *\r\n * This will remove any `null` hook from the array.\r\n *\r\n * This function should only be invoked asynchronously, when the\r\n * stack frame is guaranteed to not be on the path of user code.\r\n */\r\n function cleanupHooks(hooks) {\r\n algorithm_1.ArrayExt.removeAllWhere(hooks, isNull);\r\n }\r\n /**\r\n * Test whether a value is `null`.\r\n */\r\n function isNull(value) {\r\n return value === null;\r\n }\r\n})(MessageLoop = exports.MessageLoop || (exports.MessageLoop = {}));\r\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(20).setImmediate, __webpack_require__(20).clearImmediate))\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(setImmediate) {\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/*-----------------------------------------------------------------------------\r\n| Copyright (c) 2014-2017, PhosphorJS Contributors\r\n|\r\n| Distributed under the terms of the BSD 3-Clause License.\r\n|\r\n| The full license is in the file LICENSE, distributed with this software.\r\n|----------------------------------------------------------------------------*/\r\nvar algorithm_1 = __webpack_require__(0);\r\n/**\r\n * A concrete implementation of `ISignal`.\r\n *\r\n * #### Example\r\n * ```typescript\r\n * import { ISignal, Signal } from '@phosphor/signaling';\r\n *\r\n * class SomeClass {\r\n *\r\n * constructor(name: string) {\r\n * this.name = name;\r\n * }\r\n *\r\n * readonly name: string;\r\n *\r\n * get valueChanged: ISignal<this, number> {\r\n * return this._valueChanged;\r\n * }\r\n *\r\n * get value(): number {\r\n * return this._value;\r\n * }\r\n *\r\n * set value(value: number) {\r\n * if (value === this._value) {\r\n * return;\r\n * }\r\n * this._value = value;\r\n * this._valueChanged.emit(value);\r\n * }\r\n *\r\n * private _value = 0;\r\n * private _valueChanged = new Signal<this, number>(this);\r\n * }\r\n *\r\n * function logger(sender: SomeClass, value: number): void {\r\n * console.log(sender.name, value);\r\n * }\r\n *\r\n * let m1 = new SomeClass('foo');\r\n * let m2 = new SomeClass('bar');\r\n *\r\n * m1.valueChanged.connect(logger);\r\n * m2.valueChanged.connect(logger);\r\n *\r\n * m1.value = 42; // logs: foo 42\r\n * m2.value = 17; // logs: bar 17\r\n * ```\r\n */\r\nvar Signal = (function () {\r\n /**\r\n * Construct a new signal.\r\n *\r\n * @param sender - The sender which owns the signal.\r\n */\r\n function Signal(sender) {\r\n this.sender = sender;\r\n }\r\n /**\r\n * Connect a slot to the signal.\r\n *\r\n * @param slot - The slot to invoke when the signal is emitted.\r\n *\r\n * @param thisArg - The `this` context for the slot. If provided,\r\n * this must be a non-primitive object.\r\n *\r\n * @returns `true` if the connection succeeds, `false` otherwise.\r\n */\r\n Signal.prototype.connect = function (slot, thisArg) {\r\n return Private.connect(this, slot, thisArg);\r\n };\r\n /**\r\n * Disconnect a slot from the signal.\r\n *\r\n * @param slot - The slot to disconnect from the signal.\r\n *\r\n * @param thisArg - The `this` context for the slot. If provided,\r\n * this must be a non-primitive object.\r\n *\r\n * @returns `true` if the connection is removed, `false` otherwise.\r\n */\r\n Signal.prototype.disconnect = function (slot, thisArg) {\r\n return Private.disconnect(this, slot, thisArg);\r\n };\r\n /**\r\n * Emit the signal and invoke the connected slots.\r\n *\r\n * @param args - The args to pass to the connected slots.\r\n *\r\n * #### Notes\r\n * Slots are invoked synchronously in connection order.\r\n *\r\n * Exceptions thrown by connected slots will be caught and logged.\r\n */\r\n Signal.prototype.emit = function (args) {\r\n Private.emit(this, args);\r\n };\r\n return Signal;\r\n}());\r\nexports.Signal = Signal;\r\n/**\r\n * The namespace for the `Signal` class statics.\r\n */\r\n(function (Signal) {\r\n /**\r\n * Remove all connections between a sender and receiver.\r\n *\r\n * @param sender - The sender object of interest.\r\n *\r\n * @param receiver - The receiver object of interest.\r\n *\r\n * #### Notes\r\n * If a `thisArg` is provided when connecting a signal, that object\r\n * is considered the receiver. Otherwise, the `slot` is considered\r\n * the receiver.\r\n */\r\n function disconnectBetween(sender, receiver) {\r\n Private.disconnectBetween(sender, receiver);\r\n }\r\n Signal.disconnectBetween = disconnectBetween;\r\n /**\r\n * Remove all connections where the given object is the sender.\r\n *\r\n * @param sender - The sender object of interest.\r\n */\r\n function disconnectSender(sender) {\r\n Private.disconnectSender(sender);\r\n }\r\n Signal.disconnectSender = disconnectSender;\r\n /**\r\n * Remove all connections where the given object is the receiver.\r\n *\r\n * @param receiver - The receiver object of interest.\r\n *\r\n * #### Notes\r\n * If a `thisArg` is provided when connecting a signal, that object\r\n * is considered the receiver. Otherwise, the `slot` is considered\r\n * the receiver.\r\n */\r\n function disconnectReceiver(receiver) {\r\n Private.disconnectReceiver(receiver);\r\n }\r\n Signal.disconnectReceiver = disconnectReceiver;\r\n /**\r\n * Remove all connections where an object is the sender or receiver.\r\n *\r\n * @param object - The object of interest.\r\n *\r\n * #### Notes\r\n * If a `thisArg` is provided when connecting a signal, that object\r\n * is considered the receiver. Otherwise, the `slot` is considered\r\n * the receiver.\r\n */\r\n function disconnectAll(object) {\r\n Private.disconnectAll(object);\r\n }\r\n Signal.disconnectAll = disconnectAll;\r\n /**\r\n * Clear all signal data associated with the given object.\r\n *\r\n * @param object - The object for which the data should be cleared.\r\n *\r\n * #### Notes\r\n * This removes all signal connections and any other signal data\r\n * associated with the object.\r\n */\r\n function clearData(object) {\r\n Private.disconnectAll(object);\r\n }\r\n Signal.clearData = clearData;\r\n /**\r\n * Get the signal exception handler.\r\n *\r\n * @returns The current exception handler.\r\n *\r\n * #### Notes\r\n * The default exception handler is `console.error`.\r\n */\r\n function getExceptionHandler() {\r\n return Private.exceptionHandler;\r\n }\r\n Signal.getExceptionHandler = getExceptionHandler;\r\n /**\r\n * Set the signal exception handler.\r\n *\r\n * @param handler - The function to use as the exception handler.\r\n *\r\n * @returns The old exception handler.\r\n *\r\n * #### Notes\r\n * The exception handler is invoked when a slot throws an exception.\r\n */\r\n function setExceptionHandler(handler) {\r\n var old = Private.exceptionHandler;\r\n Private.exceptionHandler = handler;\r\n return old;\r\n }\r\n Signal.setExceptionHandler = setExceptionHandler;\r\n})(Signal = exports.Signal || (exports.Signal = {}));\r\nexports.Signal = Signal;\r\n/**\r\n * The namespace for the module implementation details.\r\n */\r\nvar Private;\r\n(function (Private) {\r\n /**\r\n * The signal exception handler function.\r\n */\r\n Private.exceptionHandler = console.error;\r\n /**\r\n * Connect a slot to a signal.\r\n *\r\n * @param signal - The signal of interest.\r\n *\r\n * @param slot - The slot to invoke when the signal is emitted.\r\n *\r\n * @param thisArg - The `this` context for the slot. If provided,\r\n * this must be a non-primitive object.\r\n *\r\n * @returns `true` if the connection succeeds, `false` otherwise.\r\n */\r\n function connect(signal, slot, thisArg) {\r\n // Coerce a `null` `thisArg` to `undefined`.\r\n thisArg = thisArg || undefined;\r\n // Ensure the sender's array of receivers is created.\r\n var receivers = receiversForSender.get(signal.sender);\r\n if (!receivers) {\r\n receivers = [];\r\n receiversForSender.set(signal.sender, receivers);\r\n }\r\n // Bail if a matching connection already exists.\r\n if (findConnection(receivers, signal, slot, thisArg)) {\r\n return false;\r\n }\r\n // Choose the best object for the receiver.\r\n var receiver = thisArg || slot;\r\n // Ensure the receiver's array of senders is created.\r\n var senders = sendersForReceiver.get(receiver);\r\n if (!senders) {\r\n senders = [];\r\n sendersForReceiver.set(receiver, senders);\r\n }\r\n // Create a new connection and add it to the end of each array.\r\n var connection = { signal: signal, slot: slot, thisArg: thisArg };\r\n receivers.push(connection);\r\n senders.push(connection);\r\n // Indicate a successful connection.\r\n return true;\r\n }\r\n Private.connect = connect;\r\n /**\r\n * Disconnect a slot from a signal.\r\n *\r\n * @param signal - The signal of interest.\r\n *\r\n * @param slot - The slot to disconnect from the signal.\r\n *\r\n * @param thisArg - The `this` context for the slot. If provided,\r\n * this must be a non-primitive object.\r\n *\r\n * @returns `true` if the connection is removed, `false` otherwise.\r\n */\r\n function disconnect(signal, slot, thisArg) {\r\n // Coerce a `null` `thisArg` to `undefined`.\r\n thisArg = thisArg || undefined;\r\n // Lookup the list of receivers, and bail if none exist.\r\n var receivers = receiversForSender.get(signal.sender);\r\n if (!receivers || receivers.length === 0) {\r\n return false;\r\n }\r\n // Bail if no matching connection exits.\r\n var connection = findConnection(receivers, signal, slot, thisArg);\r\n if (!connection) {\r\n return false;\r\n }\r\n // Choose the best object for the receiver.\r\n var receiver = thisArg || slot;\r\n // Lookup the array of senders, which is now known to exist.\r\n var senders = sendersForReceiver.get(receiver);\r\n // Clear the connection and schedule cleanup of the arrays.\r\n connection.signal = null;\r\n scheduleCleanup(receivers);\r\n scheduleCleanup(senders);\r\n // Indicate a successful disconnection.\r\n return true;\r\n }\r\n Private.disconnect = disconnect;\r\n /**\r\n * Remove all connections between a sender and receiver.\r\n *\r\n * @param sender - The sender object of interest.\r\n *\r\n * @param receiver - The receiver object of interest.\r\n */\r\n function disconnectBetween(sender, receiver) {\r\n // If there are no receivers, there is nothing to do.\r\n var receivers = receiversForSender.get(sender);\r\n if (!receivers || receivers.length === 0) {\r\n return;\r\n }\r\n // If there are no senders, there is nothing to do.\r\n var senders = sendersForReceiver.get(receiver);\r\n if (!senders || senders.length === 0) {\r\n return;\r\n }\r\n // Clear each connection between the sender and receiver.\r\n algorithm_1.each(senders, function (connection) {\r\n // Skip connections which have already been cleared.\r\n if (!connection.signal) {\r\n return;\r\n }\r\n // Clear the connection if it matches the sender.\r\n if (connection.signal.sender === sender) {\r\n connection.signal = null;\r\n }\r\n });\r\n // Schedule a cleanup of the senders and receivers.\r\n scheduleCleanup(receivers);\r\n scheduleCleanup(senders);\r\n }\r\n Private.disconnectBetween = disconnectBetween;\r\n /**\r\n * Remove all connections where the given object is the sender.\r\n *\r\n * @param sender - The sender object of interest.\r\n */\r\n function disconnectSender(sender) {\r\n // If there are no receivers, there is nothing to do.\r\n var receivers = receiversForSender.get(sender);\r\n if (!receivers || receivers.length === 0) {\r\n return;\r\n }\r\n // Clear each receiver connection.\r\n algorithm_1.each(receivers, function (connection) {\r\n // Skip connections which have already been cleared.\r\n if (!connection.signal) {\r\n return;\r\n }\r\n // Choose the best object for the receiver.\r\n var receiver = connection.thisArg || connection.slot;\r\n // Clear the connection.\r\n connection.signal = null;\r\n // Cleanup the array of senders, which is now known to exist.\r\n scheduleCleanup(sendersForReceiver.get(receiver));\r\n });\r\n // Schedule a cleanup of the receivers.\r\n scheduleCleanup(receivers);\r\n }\r\n Private.disconnectSender = disconnectSender;\r\n /**\r\n * Remove all connections where the given object is the receiver.\r\n *\r\n * @param receiver - The receiver object of interest.\r\n */\r\n function disconnectReceiver(receiver) {\r\n // If there are no senders, there is nothing to do.\r\n var senders = sendersForReceiver.get(receiver);\r\n if (!senders || senders.length === 0) {\r\n return;\r\n }\r\n // Clear each sender connection.\r\n algorithm_1.each(senders, function (connection) {\r\n // Skip connections which have already been cleared.\r\n if (!connection.signal) {\r\n return;\r\n }\r\n // Lookup the sender for the connection.\r\n var sender = connection.signal.sender;\r\n // Clear the connection.\r\n connection.signal = null;\r\n // Cleanup the array of receivers, which is now known to exist.\r\n scheduleCleanup(receiversForSender.get(sender));\r\n });\r\n // Schedule a cleanup of the list of senders.\r\n scheduleCleanup(senders);\r\n }\r\n Private.disconnectReceiver = disconnectReceiver;\r\n /**\r\n * Remove all connections where an object is the sender or receiver.\r\n *\r\n * @param object - The object of interest.\r\n */\r\n function disconnectAll(object) {\r\n // Clear and cleanup any receiver connections.\r\n var receivers = receiversForSender.get(object);\r\n if (receivers && receivers.length > 0) {\r\n algorithm_1.each(receivers, function (connection) { connection.signal = null; });\r\n scheduleCleanup(receivers);\r\n }\r\n // Clear and cleanup any sender connections.\r\n var senders = sendersForReceiver.get(object);\r\n if (senders && senders.length > 0) {\r\n algorithm_1.each(senders, function (connection) { connection.signal = null; });\r\n scheduleCleanup(senders);\r\n }\r\n }\r\n Private.disconnectAll = disconnectAll;\r\n /**\r\n * Emit a signal and invoke its connected slots.\r\n *\r\n * @param signal - The signal of interest.\r\n *\r\n * @param args - The args to pass to the connected slots.\r\n *\r\n * #### Notes\r\n * Slots are invoked synchronously in connection order.\r\n *\r\n * Exceptions thrown by connected slots will be caught and logged.\r\n */\r\n function emit(signal, args) {\r\n // If there are no receivers, there is nothing to do.\r\n var receivers = receiversForSender.get(signal.sender);\r\n if (!receivers || receivers.length === 0) {\r\n return;\r\n }\r\n // Invoke the slots for connections with a matching signal.\r\n // Any connections added during emission are not invoked.\r\n for (var i = 0, n = receivers.length; i < n; ++i) {\r\n var connection = receivers[i];\r\n if (connection.signal === signal) {\r\n invokeSlot(connection, args);\r\n }\r\n }\r\n }\r\n Private.emit = emit;\r\n /**\r\n * A weak mapping of sender to array of receiver connections.\r\n */\r\n var receiversForSender = new WeakMap();\r\n /**\r\n * A weak mapping of receiver to array of sender connections.\r\n */\r\n var sendersForReceiver = new WeakMap();\r\n /**\r\n * A set of connection arrays which are pending cleanup.\r\n */\r\n var dirtySet = new Set();\r\n /**\r\n * A function to schedule an event loop callback.\r\n */\r\n var schedule = (function () {\r\n var ok = typeof requestAnimationFrame === 'function';\r\n return ok ? requestAnimationFrame : setImmediate;\r\n })();\r\n /**\r\n * Find a connection which matches the given parameters.\r\n */\r\n function findConnection(connections, signal, slot, thisArg) {\r\n return algorithm_1.find(connections, function (connection) { return (connection.signal === signal &&\r\n connection.slot === slot &&\r\n connection.thisArg === thisArg); });\r\n }\r\n /**\r\n * Invoke a slot with the given parameters.\r\n *\r\n * The connection is assumed to be valid.\r\n *\r\n * Exceptions in the slot will be caught and logged.\r\n */\r\n function invokeSlot(connection, args) {\r\n var signal = connection.signal, slot = connection.slot, thisArg = connection.thisArg;\r\n try {\r\n slot.call(thisArg, signal.sender, args);\r\n }\r\n catch (err) {\r\n Private.exceptionHandler(err);\r\n }\r\n }\r\n /**\r\n * Schedule a cleanup of a connection array.\r\n *\r\n * This will add the array to the dirty set and schedule a deferred\r\n * cleanup of the array contents. On cleanup, any connection with a\r\n * `null` signal will be removed from the array.\r\n */\r\n function scheduleCleanup(array) {\r\n if (dirtySet.size === 0) {\r\n schedule(cleanupDirtySet);\r\n }\r\n dirtySet.add(array);\r\n }\r\n /**\r\n * Cleanup the connection lists in the dirty set.\r\n *\r\n * This function should only be invoked asynchronously, when the\r\n * stack frame is guaranteed to not be on the path of user code.\r\n */\r\n function cleanupDirtySet() {\r\n dirtySet.forEach(cleanupConnections);\r\n dirtySet.clear();\r\n }\r\n /**\r\n * Cleanup the dirty connections in a connections array.\r\n *\r\n * This will remove any connection with a `null` signal.\r\n *\r\n * This function should only be invoked asynchronously, when the\r\n * stack frame is guaranteed to not be on the path of user code.\r\n */\r\n function cleanupConnections(connections) {\r\n algorithm_1.ArrayExt.removeAllWhere(connections, isDeadConnection);\r\n }\r\n /**\r\n * Test whether a connection is dead.\r\n *\r\n * A dead connection has a `null` signal.\r\n */\r\n function isDeadConnection(connection) {\r\n return connection.signal === null;\r\n }\r\n})(Private || (Private = {}));\r\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(20).setImmediate))\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\n/*-----------------------------------------------------------------------------\r\n| Copyright (c) 2014-2017, PhosphorJS Contributors\r\n|\r\n| Distributed under the terms of the BSD 3-Clause License.\r\n|\r\n| The full license is in the file LICENSE, distributed with this software.\r\n|----------------------------------------------------------------------------*/\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/**\r\n * Create an iterator for an iterable object.\r\n *\r\n * @param object - The iterable or array-like object of interest.\r\n *\r\n * @returns A new iterator for the given object.\r\n *\r\n * #### Notes\r\n * This function allows iteration algorithms to operate on user-defined\r\n * iterable types and builtin array-like objects in a uniform fashion.\r\n */\r\nfunction iter(object) {\r\n var it;\r\n if (typeof object.iter === 'function') {\r\n it = object.iter();\r\n }\r\n else {\r\n it = new ArrayIterator(object);\r\n }\r\n return it;\r\n}\r\nexports.iter = iter;\r\n/**\r\n * Invoke a function for each value in an iterable.\r\n *\r\n * @param object - The iterable or array-like object of interest.\r\n *\r\n * @param fn - The callback function to invoke for each value.\r\n *\r\n * #### Notes\r\n * Iteration can be terminated early by returning `false` from the\r\n * callback function.\r\n *\r\n * #### Complexity\r\n * Linear.\r\n *\r\n * #### Example\r\n * ```typescript\r\n * import { each } from '@phosphor/algorithm';\r\n *\r\n * let data = [5, 7, 0, -2, 9];\r\n *\r\n * each(data, value => { console.log(value); });\r\n * ```\r\n */\r\nfunction each(object, fn) {\r\n var index = 0;\r\n var it = iter(object);\r\n var value;\r\n while ((value = it.next()) !== undefined) {\r\n if (fn(value, index++) === false) {\r\n return;\r\n }\r\n }\r\n}\r\nexports.each = each;\r\n/**\r\n * Test whether all values in an iterable satisfy a predicate.\r\n *\r\n * @param object - The iterable or array-like object of interest.\r\n *\r\n * @param fn - The predicate function to invoke for each value.\r\n *\r\n * @returns `true` if all values pass the test, `false` otherwise.\r\n *\r\n * #### Notes\r\n * Iteration terminates on the first `false` predicate result.\r\n *\r\n * #### Complexity\r\n * Linear.\r\n *\r\n * #### Example\r\n * ```typescript\r\n * import { every } from '@phosphor/algorithm';\r\n *\r\n * let data = [5, 7, 1];\r\n *\r\n * every(data, value => value % 2 === 0); // false\r\n * every(data, value => value % 2 === 1); // true\r\n * ```\r\n */\r\nfunction every(object, fn) {\r\n var index = 0;\r\n var it = iter(object);\r\n var value;\r\n while ((value = it.next()) !== undefined) {\r\n if (!fn(value, index++)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n}\r\nexports.every = every;\r\n/**\r\n * Test whether any value in an iterable satisfies a predicate.\r\n *\r\n * @param object - The iterable or array-like object of interest.\r\n *\r\n * @param fn - The predicate function to invoke for each value.\r\n *\r\n * @returns `true` if any value passes the test, `false` otherwise.\r\n *\r\n * #### Notes\r\n * Iteration terminates on the first `true` predicate result.\r\n *\r\n * #### Complexity\r\n * Linear.\r\n *\r\n * #### Example\r\n * ```typescript\r\n * import { some } from '@phosphor/algorithm';\r\n *\r\n * let data = [5, 7, 1];\r\n *\r\n * some(data, value => value === 7); // true\r\n * some(data, value => value === 3); // false\r\n * ```\r\n */\r\nfunction some(object, fn) {\r\n var index = 0;\r\n var it = iter(object);\r\n var value;\r\n while ((value = it.next()) !== undefined) {\r\n if (fn(value, index++)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n}\r\nexports.some = some;\r\n/**\r\n * Create an array from an iterable of values.\r\n *\r\n * @param object - The iterable or array-like object of interest.\r\n *\r\n * @returns A new array of values from the given object.\r\n *\r\n * #### Example\r\n * ```typescript\r\n * import { iter, toArray } from '@phosphor/algorithm';\r\n *\r\n * let data = [1, 2, 3, 4, 5, 6];\r\n *\r\n * let stream = iter(data);\r\n *\r\n * toArray(stream); // [1, 2, 3, 4, 5, 6];\r\n * ```\r\n */\r\nfunction toArray(object) {\r\n var index = 0;\r\n var result = [];\r\n var it = iter(object);\r\n var value;\r\n while ((value = it.next()) !== undefined) {\r\n result[index++] = value;\r\n }\r\n return result;\r\n}\r\nexports.toArray = toArray;\r\n/**\r\n * An iterator for an array-like object.\r\n *\r\n * #### Notes\r\n * This iterator can be used for any builtin JS array-like object.\r\n */\r\nvar ArrayIterator = (function () {\r\n /**\r\n * Construct a new array iterator.\r\n *\r\n * @param source - The array-like object of interest.\r\n */\r\n function ArrayIterator(source) {\r\n this._index = 0;\r\n this._source = source;\r\n }\r\n /**\r\n * Get an iterator over the object's values.\r\n *\r\n * @returns An iterator which yields the object's values.\r\n */\r\n ArrayIterator.prototype.iter = function () {\r\n return this;\r\n };\r\n /**\r\n * Create an independent clone of the iterator.\r\n *\r\n * @returns A new independent clone of the iterator.\r\n */\r\n ArrayIterator.prototype.clone = function () {\r\n var result = new ArrayIterator(this._source);\r\n result._index = this._index;\r\n return result;\r\n };\r\n /**\r\n * Get the next value from the iterator.\r\n *\r\n * @returns The next value from the iterator, or `undefined`.\r\n */\r\n ArrayIterator.prototype.next = function () {\r\n if (this._index >= this._source.length) {\r\n return undefined;\r\n }\r\n return this._source[this._index++];\r\n };\r\n return ArrayIterator;\r\n}());\r\nexports.ArrayIterator = ArrayIterator;\r\n\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nfunction __export(m) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/*-----------------------------------------------------------------------------\r\n| Copyright (c) 2014-2017, PhosphorJS Contributors\r\n|\r\n| Distributed under the terms of the BSD 3-Clause License.\r\n|\r\n| The full license is in the file LICENSE, distributed with this software.\r\n|----------------------------------------------------------------------------*/\r\n__export(__webpack_require__(47));\r\n__export(__webpack_require__(48));\r\n__export(__webpack_require__(49));\r\n__export(__webpack_require__(50));\r\n\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\n/*-----------------------------------------------------------------------------\r\n| Copyright (c) 2014-2017, PhosphorJS Contributors\r\n|\r\n| Distributed under the terms of the BSD 3-Clause License.\r\n|\r\n| The full license is in the file LICENSE, distributed with this software.\r\n|----------------------------------------------------------------------------*/\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/**\r\n * A class which attaches a value to an external object.\r\n *\r\n * #### Notes\r\n * Attached properties are used to extend the state of an object with\r\n * semantic data from an unrelated class. They also encapsulate value\r\n * creation, coercion, and notification.\r\n *\r\n * Because attached property values are stored in a hash table, which\r\n * in turn is stored in a WeakMap keyed on the owner object, there is\r\n * non-trivial storage overhead involved in their use. The pattern is\r\n * therefore best used for the storage of rare data.\r\n */\r\nvar AttachedProperty = (function () {\r\n /**\r\n * Construct a new attached property.\r\n *\r\n * @param options - The options for initializing the property.\r\n */\r\n function AttachedProperty(options) {\r\n this._pid = Private.nextPID();\r\n this.name = options.name;\r\n this._create = options.create;\r\n this._coerce = options.coerce || null;\r\n this._compare = options.compare || null;\r\n this._changed = options.changed || null;\r\n }\r\n /**\r\n * Get the current value of the property for a given owner.\r\n *\r\n * @param owner - The property owner of interest.\r\n *\r\n * @returns The current value of the property.\r\n *\r\n * #### Notes\r\n * If the value has not yet been set, the default value will be\r\n * computed and assigned as the current value of the property.\r\n */\r\n AttachedProperty.prototype.get = function (owner) {\r\n var value;\r\n var map = Private.ensureMap(owner);\r\n if (this._pid in map) {\r\n value = map[this._pid];\r\n }\r\n else {\r\n value = map[this._pid] = this._createValue(owner);\r\n }\r\n return value;\r\n };\r\n /**\r\n * Set the current value of the property for a given owner.\r\n *\r\n * @param owner - The property owner of interest.\r\n *\r\n * @param value - The value for the property.\r\n *\r\n * #### Notes\r\n * If the value has not yet been set, the default value will be\r\n * computed and used as the previous value for the comparison.\r\n */\r\n AttachedProperty.prototype.set = function (owner, value) {\r\n var oldValue;\r\n var map = Private.ensureMap(owner);\r\n if (this._pid in map) {\r\n oldValue = map[this._pid];\r\n }\r\n else {\r\n oldValue = map[this._pid] = this._createValue(owner);\r\n }\r\n var newValue = this._coerceValue(owner, value);\r\n this._maybeNotify(owner, oldValue, map[this._pid] = newValue);\r\n };\r\n /**\r\n * Explicitly coerce the current property value for a given owner.\r\n *\r\n * @param owner - The property owner of interest.\r\n *\r\n * #### Notes\r\n * If the value has not yet been set, the default value will be\r\n * computed and used as the previous value for the comparison.\r\n */\r\n AttachedProperty.prototype.coerce = function (owner) {\r\n var oldValue;\r\n var map = Private.ensureMap(owner);\r\n if (this._pid in map) {\r\n oldValue = map[this._pid];\r\n }\r\n else {\r\n oldValue = map[this._pid] = this._createValue(owner);\r\n }\r\n var newValue = this._coerceValue(owner, oldValue);\r\n this._maybeNotify(owner, oldValue, map[this._pid] = newValue);\r\n };\r\n /**\r\n * Get or create the default value for the given owner.\r\n */\r\n AttachedProperty.prototype._createValue = function (owner) {\r\n var create = this._create;\r\n return create(owner);\r\n };\r\n /**\r\n * Coerce the value for the given owner.\r\n */\r\n AttachedProperty.prototype._coerceValue = function (owner, value) {\r\n var coerce = this._coerce;\r\n return coerce ? coerce(owner, value) : value;\r\n };\r\n /**\r\n * Compare the old value and new value for equality.\r\n */\r\n AttachedProperty.prototype._compareValue = function (oldValue, newValue) {\r\n var compare = this._compare;\r\n return compare ? compare(oldValue, newValue) : oldValue === newValue;\r\n };\r\n /**\r\n * Run the change notification if the given values are different.\r\n */\r\n AttachedProperty.prototype._maybeNotify = function (owner, oldValue, newValue) {\r\n var changed = this._changed;\r\n if (changed && !this._compareValue(oldValue, newValue)) {\r\n changed(owner, oldValue, newValue);\r\n }\r\n };\r\n return AttachedProperty;\r\n}());\r\nexports.AttachedProperty = AttachedProperty;\r\n/**\r\n * The namespace for the `AttachedProperty` class statics.\r\n */\r\n(function (AttachedProperty) {\r\n /**\r\n * Clear the stored property data for the given owner.\r\n *\r\n * @param owner - The property owner of interest.\r\n *\r\n * #### Notes\r\n * This will clear all property values for the owner, but it will\r\n * **not** run the change notification for any of the properties.\r\n */\r\n function clearData(owner) {\r\n Private.ownerData.delete(owner);\r\n }\r\n AttachedProperty.clearData = clearData;\r\n})(AttachedProperty = exports.AttachedProperty || (exports.AttachedProperty = {}));\r\nexports.AttachedProperty = AttachedProperty;\r\n/**\r\n * The namespace for the module implementation details.\r\n */\r\nvar Private;\r\n(function (Private) {\r\n /**\r\n * A weak mapping of property owner to property map.\r\n */\r\n Private.ownerData = new WeakMap();\r\n /**\r\n * A function which computes successive unique property ids.\r\n */\r\n Private.nextPID = (function () {\r\n var id = 0;\r\n return function () {\r\n var rand = Math.random();\r\n var stem = (\"\" + rand).slice(2);\r\n return \"pid-\" + stem + \"-\" + id++;\r\n };\r\n })();\r\n /**\r\n * Lookup the data map for the property owner.\r\n *\r\n * This will create the map if one does not already exist.\r\n */\r\n function ensureMap(owner) {\r\n var map = Private.ownerData.get(owner);\r\n if (map) {\r\n return map;\r\n }\r\n map = Object.create(null);\r\n Private.ownerData.set(owner, map);\r\n return map;\r\n }\r\n Private.ensureMap = ensureMap;\r\n})(Private || (Private = {}));\r\n\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/*-----------------------------------------------------------------------------\r\n| Copyright (c) 2014-2017, PhosphorJS Contributors\r\n|\r\n| Distributed under the terms of the BSD 3-Clause License.\r\n|\r\n| The full license is in the file LICENSE, distributed with this software.\r\n|----------------------------------------------------------------------------*/\r\nvar algorithm_1 = __webpack_require__(0);\r\nvar domutils_1 = __webpack_require__(1);\r\nvar messaging_1 = __webpack_require__(3);\r\nvar properties_1 = __webpack_require__(7);\r\nvar signaling_1 = __webpack_require__(4);\r\nvar widget_1 = __webpack_require__(2);\r\n/**\r\n * An abstract base class for creating Phosphor layouts.\r\n *\r\n * #### Notes\r\n * A layout is used to add widgets to a parent and to arrange those\r\n * widgets within the parent's DOM node.\r\n *\r\n * This class implements the base functionality which is required of\r\n * nearly all layouts. It must be subclassed in order to be useful.\r\n *\r\n * Notably, this class does not define a uniform interface for adding\r\n * widgets to the layout. A subclass should define that API in a way\r\n * which is meaningful for its intended use.\r\n */\r\nvar Layout = (function () {\r\n function Layout() {\r\n this._disposed = false;\r\n this._parent = null;\r\n }\r\n /**\r\n * Dispose of the resources held by the layout.\r\n *\r\n * #### Notes\r\n * This should be reimplemented to clear and dispose of the widgets.\r\n *\r\n * All reimplementations should call the superclass method.\r\n *\r\n * This method is called automatically when the parent is disposed.\r\n */\r\n Layout.prototype.dispose = function () {\r\n this._parent = null;\r\n this._disposed = true;\r\n signaling_1.Signal.clearData(this);\r\n properties_1.AttachedProperty.clearData(this);\r\n };\r\n Object.defineProperty(Layout.prototype, \"isDisposed\", {\r\n /**\r\n * Test whether the layout is disposed.\r\n */\r\n get: function () {\r\n return this._disposed;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Layout.prototype, \"parent\", {\r\n /**\r\n * Get the parent widget of the layout.\r\n */\r\n get: function () {\r\n return this._parent;\r\n },\r\n /**\r\n * Set the parent widget of the layout.\r\n *\r\n * #### Notes\r\n * This is set automatically when installing the layout on the parent\r\n * widget. The parent widget should not be set directly by user code.\r\n */\r\n set: function (value) {\r\n if (this._parent === value) {\r\n return;\r\n }\r\n if (this._parent) {\r\n throw new Error('Cannot change parent widget.');\r\n }\r\n if (value.layout !== this) {\r\n throw new Error('Invalid parent widget.');\r\n }\r\n this._parent = value;\r\n this.init();\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * Process a message sent to the parent widget.\r\n *\r\n * @param msg - The message sent to the parent widget.\r\n *\r\n * #### Notes\r\n * This method is called by the parent widget to process a message.\r\n *\r\n * Subclasses may reimplement this method as needed.\r\n */\r\n Layout.prototype.processParentMessage = function (msg) {\r\n switch (msg.type) {\r\n case 'resize':\r\n this.onResize(msg);\r\n break;\r\n case 'update-request':\r\n this.onUpdateRequest(msg);\r\n break;\r\n case 'fit-request':\r\n this.onFitRequest(msg);\r\n break;\r\n case 'before-show':\r\n this.onBeforeShow(msg);\r\n break;\r\n case 'after-show':\r\n this.onAfterShow(msg);\r\n break;\r\n case 'before-hide':\r\n this.onBeforeHide(msg);\r\n break;\r\n case 'after-hide':\r\n this.onAfterHide(msg);\r\n break;\r\n case 'before-attach':\r\n this.onBeforeAttach(msg);\r\n break;\r\n case 'after-attach':\r\n this.onAfterAttach(msg);\r\n break;\r\n case 'before-detach':\r\n this.onBeforeDetach(msg);\r\n break;\r\n case 'after-detach':\r\n this.onAfterDetach(msg);\r\n break;\r\n case 'child-removed':\r\n this.onChildRemoved(msg);\r\n break;\r\n case 'child-shown':\r\n this.onChildShown(msg);\r\n break;\r\n case 'child-hidden':\r\n this.onChildHidden(msg);\r\n break;\r\n }\r\n };\r\n /**\r\n * Perform layout initialization which requires the parent widget.\r\n *\r\n * #### Notes\r\n * This method is invoked immediately after the layout is installed\r\n * on the parent widget.\r\n *\r\n * The default implementation reparents all of the widgets to the\r\n * layout parent widget.\r\n *\r\n * Subclasses should reimplement this method and attach the child\r\n * widget nodes to the parent widget's node.\r\n */\r\n Layout.prototype.init = function () {\r\n var _this = this;\r\n algorithm_1.each(this, function (widget) {\r\n widget.parent = _this.parent;\r\n });\r\n };\r\n /**\r\n * A message handler invoked on a `'resize'` message.\r\n *\r\n * #### Notes\r\n * The layout should ensure that its widgets are resized according\r\n * to the specified layout space, and that they are sent a `'resize'`\r\n * message if appropriate.\r\n *\r\n * The default implementation of this method sends an `UnknownSize`\r\n * resize message to all widgets.\r\n *\r\n * This may be reimplemented by subclasses as needed.\r\n */\r\n Layout.prototype.onResize = function (msg) {\r\n algorithm_1.each(this, function (widget) {\r\n messaging_1.MessageLoop.sendMessage(widget, widget_1.Widget.ResizeMessage.UnknownSize);\r\n });\r\n };\r\n /**\r\n * A message handler invoked on an `'update-request'` message.\r\n *\r\n * #### Notes\r\n * The layout should ensure that its widgets are resized according\r\n * to the available layout space, and that they are sent a `'resize'`\r\n * message if appropriate.\r\n *\r\n * The default implementation of this method sends an `UnknownSize`\r\n * resize message to all widgets.\r\n *\r\n * This may be reimplemented by subclasses as needed.\r\n */\r\n Layout.prototype.onUpdateRequest = function (msg) {\r\n algorithm_1.each(this, function (widget) {\r\n messaging_1.MessageLoop.sendMessage(widget, widget_1.Widget.ResizeMessage.UnknownSize);\r\n });\r\n };\r\n /**\r\n * A message handler invoked on a `'before-attach'` message.\r\n *\r\n * #### Notes\r\n * The default implementation of this method forwards the message\r\n * to all widgets. It assumes all widget nodes are attached to the\r\n * parent widget node.\r\n *\r\n * This may be reimplemented by subclasses as needed.\r\n */\r\n Layout.prototype.onBeforeAttach = function (msg) {\r\n algorithm_1.each(this, function (widget) {\r\n messaging_1.MessageLoop.sendMessage(widget, msg);\r\n });\r\n };\r\n /**\r\n * A message handler invoked on an `'after-attach'` message.\r\n *\r\n * #### Notes\r\n * The default implementation of this method forwards the message\r\n * to all widgets. It assumes all widget nodes are attached to the\r\n * parent widget node.\r\n *\r\n * This may be reimplemented by subclasses as needed.\r\n */\r\n Layout.prototype.onAfterAttach = function (msg) {\r\n algorithm_1.each(this, function (widget) {\r\n messaging_1.MessageLoop.sendMessage(widget, msg);\r\n });\r\n };\r\n /**\r\n * A message handler invoked on a `'before-detach'` message.\r\n *\r\n * #### Notes\r\n * The default implementation of this method forwards the message\r\n * to all widgets. It assumes all widget nodes are attached to the\r\n * parent widget node.\r\n *\r\n * This may be reimplemented by subclasses as needed.\r\n */\r\n Layout.prototype.onBeforeDetach = function (msg) {\r\n algorithm_1.each(this, function (widget) {\r\n messaging_1.MessageLoop.sendMessage(widget, msg);\r\n });\r\n };\r\n /**\r\n * A message handler invoked on an `'after-detach'` message.\r\n *\r\n * #### Notes\r\n * The default implementation of this method forwards the message\r\n * to all widgets. It assumes all widget nodes are attached to the\r\n * parent widget node.\r\n *\r\n * This may be reimplemented by subclasses as needed.\r\n */\r\n Layout.prototype.onAfterDetach = function (msg) {\r\n algorithm_1.each(this, function (widget) {\r\n messaging_1.MessageLoop.sendMessage(widget, msg);\r\n });\r\n };\r\n /**\r\n * A message handler invoked on a `'before-show'` message.\r\n *\r\n * #### Notes\r\n * The default implementation of this method forwards the message to\r\n * all non-hidden widgets. It assumes all widget nodes are attached\r\n * to the parent widget node.\r\n *\r\n * This may be reimplemented by subclasses as needed.\r\n */\r\n Layout.prototype.onBeforeShow = function (msg) {\r\n algorithm_1.each(this, function (widget) {\r\n if (!widget.isHidden) {\r\n messaging_1.MessageLoop.sendMessage(widget, msg);\r\n }\r\n });\r\n };\r\n /**\r\n * A message handler invoked on an `'after-show'` message.\r\n *\r\n * #### Notes\r\n * The default implementation of this method forwards the message to\r\n * all non-hidden widgets. It assumes all widget nodes are attached\r\n * to the parent widget node.\r\n *\r\n * This may be reimplemented by subclasses as needed.\r\n */\r\n Layout.prototype.onAfterShow = function (msg) {\r\n algorithm_1.each(this, function (widget) {\r\n if (!widget.isHidden) {\r\n messaging_1.MessageLoop.sendMessage(widget, msg);\r\n }\r\n });\r\n };\r\n /**\r\n * A message handler invoked on a `'before-hide'` message.\r\n *\r\n * #### Notes\r\n * The default implementation of this method forwards the message to\r\n * all non-hidden widgets. It assumes all widget nodes are attached\r\n * to the parent widget node.\r\n *\r\n * This may be reimplemented by subclasses as needed.\r\n */\r\n Layout.prototype.onBeforeHide = function (msg) {\r\n algorithm_1.each(this, function (widget) {\r\n if (!widget.isHidden) {\r\n messaging_1.MessageLoop.sendMessage(widget, msg);\r\n }\r\n });\r\n };\r\n /**\r\n * A message handler invoked on an `'after-hide'` message.\r\n *\r\n * #### Notes\r\n * The default implementation of this method forwards the message to\r\n * all non-hidden widgets. It assumes all widget nodes are attached\r\n * to the parent widget node.\r\n *\r\n * This may be reimplemented by subclasses as needed.\r\n */\r\n Layout.prototype.onAfterHide = function (msg) {\r\n algorithm_1.each(this, function (widget) {\r\n if (!widget.isHidden) {\r\n messaging_1.MessageLoop.sendMessage(widget, msg);\r\n }\r\n });\r\n };\r\n /**\r\n * A message handler invoked on a `'child-removed'` message.\r\n *\r\n * #### Notes\r\n * This will remove the child widget from the layout.\r\n *\r\n * Subclasses should **not** typically reimplement this method.\r\n */\r\n Layout.prototype.onChildRemoved = function (msg) {\r\n this.removeWidget(msg.child);\r\n };\r\n /**\r\n * A message handler invoked on a `'fit-request'` message.\r\n *\r\n * #### Notes\r\n * The default implementation of this handler is a no-op.\r\n */\r\n Layout.prototype.onFitRequest = function (msg) { };\r\n /**\r\n * A message handler invoked on a `'child-shown'` message.\r\n *\r\n * #### Notes\r\n * The default implementation of this handler is a no-op.\r\n */\r\n Layout.prototype.onChildShown = function (msg) { };\r\n /**\r\n * A message handler invoked on a `'child-hidden'` message.\r\n *\r\n * #### Notes\r\n * The default implementation of this handler is a no-op.\r\n */\r\n Layout.prototype.onChildHidden = function (msg) { };\r\n return Layout;\r\n}());\r\nexports.Layout = Layout;\r\n/**\r\n * The namespace for the `Layout` class statics.\r\n */\r\n(function (Layout) {\r\n /**\r\n * Get the horizontal alignment for a widget.\r\n *\r\n * @param widget - The widget of interest.\r\n *\r\n * @returns The horizontal alignment for the widget.\r\n *\r\n * #### Notes\r\n * If the layout width allocated to a widget is larger than its max\r\n * width, the horizontal alignment controls how the widget is placed\r\n * within the extra horizontal space.\r\n *\r\n * If the allocated width is less than the widget's max width, the\r\n * horizontal alignment has no effect.\r\n *\r\n * Some layout implementations may ignore horizontal alignment.\r\n */\r\n function getHorizontalAlignment(widget) {\r\n return Private.horizontalAlignmentProperty.get(widget);\r\n }\r\n Layout.getHorizontalAlignment = getHorizontalAlignment;\r\n /**\r\n * Set the horizontal alignment for a widget.\r\n *\r\n * @param widget - The widget of interest.\r\n *\r\n * @param value - The value for the horizontal alignment.\r\n *\r\n * #### Notes\r\n * If the layout width allocated to a widget is larger than its max\r\n * width, the horizontal alignment controls how the widget is placed\r\n * within the extra horizontal space.\r\n *\r\n * If the allocated width is less than the widget's max width, the\r\n * horizontal alignment has no effect.\r\n *\r\n * Some layout implementations may ignore horizontal alignment.\r\n *\r\n * Changing the horizontal alignment will post an `update-request`\r\n * message to widget's parent, provided the parent has a layout\r\n * installed.\r\n */\r\n function setHorizontalAlignment(widget, value) {\r\n Private.horizontalAlignmentProperty.set(widget, value);\r\n }\r\n Layout.setHorizontalAlignment = setHorizontalAlignment;\r\n /**\r\n * Get the vertical alignment for a widget.\r\n *\r\n * @param widget - The widget of interest.\r\n *\r\n * @returns The vertical alignment for the widget.\r\n *\r\n * #### Notes\r\n * If the layout height allocated to a widget is larger than its max\r\n * height, the vertical alignment controls how the widget is placed\r\n * within the extra vertical space.\r\n *\r\n * If the allocated height is less than the widget's max height, the\r\n * vertical alignment has no effect.\r\n *\r\n * Some layout implementations may ignore vertical alignment.\r\n */\r\n function getVerticalAlignment(widget) {\r\n return Private.verticalAlignmentProperty.get(widget);\r\n }\r\n Layout.getVerticalAlignment = getVerticalAlignment;\r\n /**\r\n * Set the vertical alignment for a widget.\r\n *\r\n * @param widget - The widget of interest.\r\n *\r\n * @param value - The value for the vertical alignment.\r\n *\r\n * #### Notes\r\n * If the layout height allocated to a widget is larger than its max\r\n * height, the vertical alignment controls how the widget is placed\r\n * within the extra vertical space.\r\n *\r\n * If the allocated height is less than the widget's max height, the\r\n * vertical alignment has no effect.\r\n *\r\n * Some layout implementations may ignore vertical alignment.\r\n *\r\n * Changing the horizontal alignment will post an `update-request`\r\n * message to widget's parent, provided the parent has a layout\r\n * installed.\r\n */\r\n function setVerticalAlignment(widget, value) {\r\n Private.verticalAlignmentProperty.set(widget, value);\r\n }\r\n Layout.setVerticalAlignment = setVerticalAlignment;\r\n})(Layout = exports.Layout || (exports.Layout = {}));\r\nexports.Layout = Layout;\r\n/**\r\n * An object which assists in the absolute layout of widgets.\r\n *\r\n * #### Notes\r\n * This class is useful when implementing a layout which arranges its\r\n * widgets using absolute positioning.\r\n *\r\n * This class is used by nearly all of the built-in Phosphor layouts.\r\n */\r\nvar LayoutItem = (function () {\r\n /**\r\n * Construct a new layout item.\r\n *\r\n * @param widget - The widget to be managed by the item.\r\n *\r\n * #### Notes\r\n * The widget will be set to absolute positioning.\r\n */\r\n function LayoutItem(widget) {\r\n this._top = NaN;\r\n this._left = NaN;\r\n this._width = NaN;\r\n this._height = NaN;\r\n this._minWidth = 0;\r\n this._minHeight = 0;\r\n this._maxWidth = Infinity;\r\n this._maxHeight = Infinity;\r\n this._disposed = false;\r\n this.widget = widget;\r\n this.widget.node.style.position = 'absolute';\r\n }\r\n /**\r\n * Dispose of the the layout item.\r\n *\r\n * #### Notes\r\n * This will reset the positioning of the widget.\r\n */\r\n LayoutItem.prototype.dispose = function () {\r\n // Do nothing if the item is already disposed.\r\n if (this._disposed) {\r\n return;\r\n }\r\n // Mark the item as disposed.\r\n this._disposed = true;\r\n // Reset the widget style.\r\n var style = this.widget.node.style;\r\n style.position = '';\r\n style.top = '';\r\n style.left = '';\r\n style.width = '';\r\n style.height = '';\r\n };\r\n Object.defineProperty(LayoutItem.prototype, \"minWidth\", {\r\n /**\r\n * The computed minimum width of the widget.\r\n *\r\n * #### Notes\r\n * This value can be updated by calling the `fit` method.\r\n */\r\n get: function () {\r\n return this._minWidth;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(LayoutItem.prototype, \"minHeight\", {\r\n /**\r\n * The computed minimum height of the widget.\r\n *\r\n * #### Notes\r\n * This value can be updated by calling the `fit` method.\r\n */\r\n get: function () {\r\n return this._minHeight;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(LayoutItem.prototype, \"maxWidth\", {\r\n /**\r\n * The computed maximum width of the widget.\r\n *\r\n * #### Notes\r\n * This value can be updated by calling the `fit` method.\r\n */\r\n get: function () {\r\n return this._maxWidth;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(LayoutItem.prototype, \"maxHeight\", {\r\n /**\r\n * The computed maximum height of the widget.\r\n *\r\n * #### Notes\r\n * This value can be updated by calling the `fit` method.\r\n */\r\n get: function () {\r\n return this._maxHeight;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(LayoutItem.prototype, \"isDisposed\", {\r\n /**\r\n * Whether the layout item is disposed.\r\n */\r\n get: function () {\r\n return this._disposed;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(LayoutItem.prototype, \"isHidden\", {\r\n /**\r\n * Whether the managed widget is hidden.\r\n */\r\n get: function () {\r\n return this.widget.isHidden;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(LayoutItem.prototype, \"isVisible\", {\r\n /**\r\n * Whether the managed widget is visible.\r\n */\r\n get: function () {\r\n return this.widget.isVisible;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(LayoutItem.prototype, \"isAttached\", {\r\n /**\r\n * Whether the managed widget is attached.\r\n */\r\n get: function () {\r\n return this.widget.isAttached;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * Update the computed size limits of the managed widget.\r\n */\r\n LayoutItem.prototype.fit = function () {\r\n var limits = domutils_1.ElementExt.sizeLimits(this.widget.node);\r\n this._minWidth = limits.minWidth;\r\n this._minHeight = limits.minHeight;\r\n this._maxWidth = limits.maxWidth;\r\n this._maxHeight = limits.maxHeight;\r\n };\r\n /**\r\n * Update the position and size of the managed widget.\r\n *\r\n * @param left - The left edge position of the layout box.\r\n *\r\n * @param top - The top edge position of the layout box.\r\n *\r\n * @param width - The width of the layout box.\r\n *\r\n * @param height - The height of the layout box.\r\n */\r\n LayoutItem.prototype.update = function (left, top, width, height) {\r\n // Clamp the size to the computed size limits.\r\n var clampW = Math.max(this._minWidth, Math.min(width, this._maxWidth));\r\n var clampH = Math.max(this._minHeight, Math.min(height, this._maxHeight));\r\n // Ajdust the left edge for the horizontal alignment, if needed.\r\n if (clampW < width) {\r\n switch (Layout.getHorizontalAlignment(this.widget)) {\r\n case 'left':\r\n break;\r\n case 'center':\r\n left += (width - clampW) / 2;\r\n break;\r\n case 'right':\r\n left += width - clampW;\r\n break;\r\n default:\r\n throw 'unreachable';\r\n }\r\n }\r\n // Ajdust the top edge for the vertical alignment, if needed.\r\n if (clampH < height) {\r\n switch (Layout.getVerticalAlignment(this.widget)) {\r\n case 'top':\r\n break;\r\n case 'center':\r\n top += (height - clampH) / 2;\r\n break;\r\n case 'bottom':\r\n top += height - clampH;\r\n break;\r\n default:\r\n throw 'unreachable';\r\n }\r\n }\r\n // Set up the resize variables.\r\n var resized = false;\r\n var style = this.widget.node.style;\r\n // Update the top edge of the widget if needed.\r\n if (this._top !== top) {\r\n this._top = top;\r\n style.top = top + \"px\";\r\n }\r\n // Update the left edge of the widget if needed.\r\n if (this._left !== left) {\r\n this._left = left;\r\n style.left = left + \"px\";\r\n }\r\n // Update the width of the widget if needed.\r\n if (this._width !== clampW) {\r\n resized = true;\r\n this._width = clampW;\r\n style.width = clampW + \"px\";\r\n }\r\n // Update the height of the widget if needed.\r\n if (this._height !== clampH) {\r\n resized = true;\r\n this._height = clampH;\r\n style.height = clampH + \"px\";\r\n }\r\n // Send a resize message to the widget if needed.\r\n if (resized) {\r\n var msg = new widget_1.Widget.ResizeMessage(clampW, clampH);\r\n messaging_1.MessageLoop.sendMessage(this.widget, msg);\r\n }\r\n };\r\n return LayoutItem;\r\n}());\r\nexports.LayoutItem = LayoutItem;\r\n/**\r\n * The namespace for the module implementation details.\r\n */\r\nvar Private;\r\n(function (Private) {\r\n /**\r\n * The attached property for a widget horizontal alignment.\r\n */\r\n Private.horizontalAlignmentProperty = new properties_1.AttachedProperty({\r\n name: 'horizontalAlignment',\r\n create: function () { return 'center'; },\r\n changed: onAlignmentChanged\r\n });\r\n /**\r\n * The attached property for a widget vertical alignment.\r\n */\r\n Private.verticalAlignmentProperty = new properties_1.AttachedProperty({\r\n name: 'verticalAlignment',\r\n create: function () { return 'top'; },\r\n changed: onAlignmentChanged\r\n });\r\n /**\r\n * The change handler for the attached alignment properties.\r\n */\r\n function onAlignmentChanged(child) {\r\n if (child.parent && child.parent.layout) {\r\n child.parent.update();\r\n }\r\n }\r\n})(Private || (Private = {}));\r\n\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/*-----------------------------------------------------------------------------\r\n| Copyright (c) 2014-2017, PhosphorJS Contributors\r\n|\r\n| Distributed under the terms of the BSD 3-Clause License.\r\n|\r\n| The full license is in the file LICENSE, distributed with this software.\r\n|----------------------------------------------------------------------------*/\r\nvar algorithm_1 = __webpack_require__(0);\r\n/**\r\n * A virtual node which represents plain text content.\r\n *\r\n * #### Notes\r\n * User code will not typically create a `VirtualText` node directly.\r\n * Instead, the `h()` function will be used to create an element tree.\r\n */\r\nvar VirtualText = (function () {\r\n /**\r\n * Construct a new virtual text node.\r\n *\r\n * @param content - The text content for the node.\r\n */\r\n function VirtualText(content) {\r\n /**\r\n * The type of the node.\r\n *\r\n * This value can be used as a type guard for discriminating the\r\n * `VirtualNode` union type.\r\n */\r\n this.type = 'text';\r\n this.content = content;\r\n }\r\n return VirtualText;\r\n}());\r\nexports.VirtualText = VirtualText;\r\n/**\r\n * A virtual node which represents an HTML element.\r\n *\r\n * #### Notes\r\n * User code will not typically create a `VirtualElement` node directly.\r\n * Instead, the `h()` function will be used to create an element tree.\r\n */\r\nvar VirtualElement = (function () {\r\n /**\r\n * Construct a new virtual element node.\r\n *\r\n * @param tag - The element tag name.\r\n *\r\n * @param attrs - The element attributes.\r\n *\r\n * @param children - The element children.\r\n */\r\n function VirtualElement(tag, attrs, children) {\r\n /**\r\n * The type of the node.\r\n *\r\n * This value can be used as a type guard for discriminating the\r\n * `VirtualNode` union type.\r\n */\r\n this.type = 'element';\r\n this.tag = tag;\r\n this.attrs = attrs;\r\n this.children = children;\r\n }\r\n return VirtualElement;\r\n}());\r\nexports.VirtualElement = VirtualElement;\r\nfunction h(tag) {\r\n var attrs = {};\r\n var children = [];\r\n for (var i = 1, n = arguments.length; i < n; ++i) {\r\n var arg = arguments[i];\r\n if (typeof arg === 'string') {\r\n children.push(new VirtualText(arg));\r\n }\r\n else if (arg instanceof VirtualText) {\r\n children.push(arg);\r\n }\r\n else if (arg instanceof VirtualElement) {\r\n children.push(arg);\r\n }\r\n else if (arg instanceof Array) {\r\n extend(children, arg);\r\n }\r\n else if (i === 1 && arg && typeof arg === 'object') {\r\n attrs = arg;\r\n }\r\n }\r\n return new VirtualElement(tag, attrs, children);\r\n function extend(array, values) {\r\n for (var _i = 0, values_1 = values; _i < values_1.length; _i++) {\r\n var child = values_1[_i];\r\n if (typeof child === 'string') {\r\n array.push(new VirtualText(child));\r\n }\r\n else if (child instanceof VirtualText) {\r\n array.push(child);\r\n }\r\n else if (child instanceof VirtualElement) {\r\n array.push(child);\r\n }\r\n }\r\n }\r\n}\r\nexports.h = h;\r\n/**\r\n * The namespace for the `h` function statics.\r\n */\r\n(function (h) {\r\n h.a = h.bind(undefined, 'a');\r\n h.abbr = h.bind(undefined, 'abbr');\r\n h.address = h.bind(undefined, 'address');\r\n h.area = h.bind(undefined, 'area');\r\n h.article = h.bind(undefined, 'article');\r\n h.aside = h.bind(undefined, 'aside');\r\n h.audio = h.bind(undefined, 'audio');\r\n h.b = h.bind(undefined, 'b');\r\n h.bdi = h.bind(undefined, 'bdi');\r\n h.bdo = h.bind(undefined, 'bdo');\r\n h.blockquote = h.bind(undefined, 'blockquote');\r\n h.br = h.bind(undefined, 'br');\r\n h.button = h.bind(undefined, 'button');\r\n h.canvas = h.bind(undefined, 'canvas');\r\n h.caption = h.bind(undefined, 'caption');\r\n h.cite = h.bind(undefined, 'cite');\r\n h.code = h.bind(undefined, 'code');\r\n h.col = h.bind(undefined, 'col');\r\n h.colgroup = h.bind(undefined, 'colgroup');\r\n h.data = h.bind(undefined, 'data');\r\n h.datalist = h.bind(undefined, 'datalist');\r\n h.dd = h.bind(undefined, 'dd');\r\n h.del = h.bind(undefined, 'del');\r\n h.dfn = h.bind(undefined, 'dfn');\r\n h.div = h.bind(undefined, 'div');\r\n h.dl = h.bind(undefined, 'dl');\r\n h.dt = h.bind(undefined, 'dt');\r\n h.em = h.bind(undefined, 'em');\r\n h.embed = h.bind(undefined, 'embed');\r\n h.fieldset = h.bind(undefined, 'fieldset');\r\n h.figcaption = h.bind(undefined, 'figcaption');\r\n h.figure = h.bind(undefined, 'figure');\r\n h.footer = h.bind(undefined, 'footer');\r\n h.form = h.bind(undefined, 'form');\r\n h.h1 = h.bind(undefined, 'h1');\r\n h.h2 = h.bind(undefined, 'h2');\r\n h.h3 = h.bind(undefined, 'h3');\r\n h.h4 = h.bind(undefined, 'h4');\r\n h.h5 = h.bind(undefined, 'h5');\r\n h.h6 = h.bind(undefined, 'h6');\r\n h.header = h.bind(undefined, 'header');\r\n h.hr = h.bind(undefined, 'hr');\r\n h.i = h.bind(undefined, 'i');\r\n h.iframe = h.bind(undefined, 'iframe');\r\n h.img = h.bind(undefined, 'img');\r\n h.input = h.bind(undefined, 'input');\r\n h.ins = h.bind(undefined, 'ins');\r\n h.kbd = h.bind(undefined, 'kbd');\r\n h.label = h.bind(undefined, 'label');\r\n h.legend = h.bind(undefined, 'legend');\r\n h.li = h.bind(undefined, 'li');\r\n h.main = h.bind(undefined, 'main');\r\n h.map = h.bind(undefined, 'map');\r\n h.mark = h.bind(undefined, 'mark');\r\n h.meter = h.bind(undefined, 'meter');\r\n h.nav = h.bind(undefined, 'nav');\r\n h.noscript = h.bind(undefined, 'noscript');\r\n h.object = h.bind(undefined, 'object');\r\n h.ol = h.bind(undefined, 'ol');\r\n h.optgroup = h.bind(undefined, 'optgroup');\r\n h.option = h.bind(undefined, 'option');\r\n h.output = h.bind(undefined, 'output');\r\n h.p = h.bind(undefined, 'p');\r\n h.param = h.bind(undefined, 'param');\r\n h.pre = h.bind(undefined, 'pre');\r\n h.progress = h.bind(undefined, 'progress');\r\n h.q = h.bind(undefined, 'q');\r\n h.rp = h.bind(undefined, 'rp');\r\n h.rt = h.bind(undefined, 'rt');\r\n h.ruby = h.bind(undefined, 'ruby');\r\n h.s = h.bind(undefined, 's');\r\n h.samp = h.bind(undefined, 'samp');\r\n h.section = h.bind(undefined, 'section');\r\n h.select = h.bind(undefined, 'select');\r\n h.small = h.bind(undefined, 'small');\r\n h.source = h.bind(undefined, 'source');\r\n h.span = h.bind(undefined, 'span');\r\n h.strong = h.bind(undefined, 'strong');\r\n h.sub = h.bind(undefined, 'sub');\r\n h.summary = h.bind(undefined, 'summary');\r\n h.sup = h.bind(undefined, 'sup');\r\n h.table = h.bind(undefined, 'table');\r\n h.tbody = h.bind(undefined, 'tbody');\r\n h.td = h.bind(undefined, 'td');\r\n h.textarea = h.bind(undefined, 'textarea');\r\n h.tfoot = h.bind(undefined, 'tfoot');\r\n h.th = h.bind(undefined, 'th');\r\n h.thead = h.bind(undefined, 'thead');\r\n h.time = h.bind(undefined, 'time');\r\n h.title = h.bind(undefined, 'title');\r\n h.tr = h.bind(undefined, 'tr');\r\n h.track = h.bind(undefined, 'track');\r\n h.u = h.bind(undefined, 'u');\r\n h.ul = h.bind(undefined, 'ul');\r\n h.var_ = h.bind(undefined, 'var');\r\n h.video = h.bind(undefined, 'video');\r\n h.wbr = h.bind(undefined, 'wbr');\r\n})(h = exports.h || (exports.h = {}));\r\n/**\r\n * The namespace for the virtual DOM rendering functions.\r\n */\r\nvar VirtualDOM;\r\n(function (VirtualDOM) {\r\n /**\r\n * Create a real DOM element from a virtual element node.\r\n *\r\n * @param node - The virtual element node to realize.\r\n *\r\n * @returns A new DOM element for the given virtual element node.\r\n *\r\n * #### Notes\r\n * This creates a brand new *real* DOM element with a structure which\r\n * matches the given virtual DOM node.\r\n *\r\n * If virtual diffing is desired, use the `render` function instead.\r\n */\r\n function realize(node) {\r\n return Private.createDOMNode(node);\r\n }\r\n VirtualDOM.realize = realize;\r\n /**\r\n * Render virtual DOM content into a host element.\r\n *\r\n * @param content - The virtual DOM content to render.\r\n *\r\n * @param host - The host element for the rendered content.\r\n *\r\n * #### Notes\r\n * This renders the delta from the previous rendering. It assumes that\r\n * the content of the host element is not manipulated by external code.\r\n *\r\n * Providing `null` content will clear the rendering.\r\n *\r\n * Externally modifying the provided content or the host element will\r\n * result in undefined rendering behavior.\r\n */\r\n function render(content, host) {\r\n var oldContent = Private.hostMap.get(host) || [];\r\n var newContent = Private.asContentArray(content);\r\n Private.hostMap.set(host, newContent);\r\n Private.updateContent(host, oldContent, newContent);\r\n }\r\n VirtualDOM.render = render;\r\n})(VirtualDOM = exports.VirtualDOM || (exports.VirtualDOM = {}));\r\n/**\r\n * The namespace for the module implementation details.\r\n */\r\nvar Private;\r\n(function (Private) {\r\n /**\r\n * A weak mapping of host element to virtual DOM content.\r\n */\r\n Private.hostMap = new WeakMap();\r\n /**\r\n * Cast a content value to a content array.\r\n */\r\n function asContentArray(value) {\r\n if (!value) {\r\n return [];\r\n }\r\n if (value instanceof Array) {\r\n return value;\r\n }\r\n return [value];\r\n }\r\n Private.asContentArray = asContentArray;\r\n function createDOMNode(node) {\r\n // Create a text node for a virtual text node.\r\n if (node.type === 'text') {\r\n return document.createTextNode(node.content);\r\n }\r\n // Create the HTML element with the specified tag.\r\n var element = document.createElement(node.tag);\r\n // Add the attributes for the new element.\r\n addAttrs(element, node.attrs);\r\n // Recursively populate the element with child content.\r\n for (var i = 0, n = node.children.length; i < n; ++i) {\r\n element.appendChild(createDOMNode(node.children[i]));\r\n }\r\n // Return the populated element.\r\n return element;\r\n }\r\n Private.createDOMNode = createDOMNode;\r\n /**\r\n * Update a host element with the delta of the virtual content.\r\n *\r\n * This is the core \"diff\" algorithm. There is no explicit \"patch\"\r\n * phase. The host is patched at each step as the diff progresses.\r\n */\r\n function updateContent(host, oldContent, newContent) {\r\n // Bail early if the content is identical.\r\n if (oldContent === newContent) {\r\n return;\r\n }\r\n // Collect the old keyed elems into a mapping.\r\n var oldKeyed = collectKeys(host, oldContent);\r\n // Create a copy of the old content which can be modified in-place.\r\n var oldCopy = oldContent.slice();\r\n // Update the host with the new content. The diff always proceeds\r\n // forward and never modifies a previously visited index. The old\r\n // copy array is modified in-place to reflect the changes made to\r\n // the host children. This causes the stale nodes to be pushed to\r\n // the end of the host node and removed at the end of the loop.\r\n var currElem = host.firstChild;\r\n var newCount = newContent.length;\r\n for (var i = 0; i < newCount; ++i) {\r\n // If the old content is exhausted, create a new node.\r\n if (i >= oldCopy.length) {\r\n host.appendChild(createDOMNode(newContent[i]));\r\n continue;\r\n }\r\n // Lookup the old and new virtual nodes.\r\n var oldVNode = oldCopy[i];\r\n var newVNode = newContent[i];\r\n // If both elements are identical, there is nothing to do.\r\n if (oldVNode === newVNode) {\r\n currElem = currElem.nextSibling;\r\n continue;\r\n }\r\n // Handle the simplest case of in-place text update first.\r\n if (oldVNode.type === 'text' && newVNode.type === 'text') {\r\n currElem.textContent = newVNode.content;\r\n currElem = currElem.nextSibling;\r\n continue;\r\n }\r\n // If the old or new node is a text node, the other node is now\r\n // known to be an element node, so create and insert a new node.\r\n if (oldVNode.type === 'text' || newVNode.type === 'text') {\r\n algorithm_1.ArrayExt.insert(oldCopy, i, newVNode);\r\n host.insertBefore(createDOMNode(newVNode), currElem);\r\n continue;\r\n }\r\n // At this point, both nodes are known to be element nodes.\r\n // If the new elem is keyed, move an old keyed elem to the proper\r\n // location before proceeding with the diff. The search can start\r\n // at the current index, since the unmatched old keyed elems are\r\n // pushed forward in the old copy array.\r\n var newKey = newVNode.attrs.key;\r\n if (newKey && newKey in oldKeyed) {\r\n var pair = oldKeyed[newKey];\r\n if (pair.vNode !== oldVNode) {\r\n algorithm_1.ArrayExt.move(oldCopy, oldCopy.indexOf(pair.vNode, i + 1), i);\r\n host.insertBefore(pair.element, currElem);\r\n oldVNode = pair.vNode;\r\n currElem = pair.element;\r\n }\r\n }\r\n // If both elements are identical, there is nothing to do.\r\n if (oldVNode === newVNode) {\r\n currElem = currElem.nextSibling;\r\n continue;\r\n }\r\n // If the old elem is keyed and does not match the new elem key,\r\n // create a new node. This is necessary since the old keyed elem\r\n // may be matched at a later point in the diff.\r\n var oldKey = oldVNode.attrs.key;\r\n if (oldKey && oldKey !== newKey) {\r\n algorithm_1.ArrayExt.insert(oldCopy, i, newVNode);\r\n host.insertBefore(createDOMNode(newVNode), currElem);\r\n continue;\r\n }\r\n // If the tags are different, create a new node.\r\n if (oldVNode.tag !== newVNode.tag) {\r\n algorithm_1.ArrayExt.insert(oldCopy, i, newVNode);\r\n host.insertBefore(createDOMNode(newVNode), currElem);\r\n continue;\r\n }\r\n // At this point, the element can be updated in-place.\r\n // Update the element attributes.\r\n updateAttrs(currElem, oldVNode.attrs, newVNode.attrs);\r\n // Update the element content.\r\n updateContent(currElem, oldVNode.children, newVNode.children);\r\n // Step to the next sibling element.\r\n currElem = currElem.nextSibling;\r\n }\r\n // Dispose of the old nodes pushed to the end of the host.\r\n for (var i = oldCopy.length - newCount; i > 0; --i) {\r\n host.removeChild(host.lastChild);\r\n }\r\n }\r\n Private.updateContent = updateContent;\r\n /**\r\n * A set of special-cased attribute names.\r\n */\r\n var specialAttrs = {\r\n 'key': true,\r\n 'className': true,\r\n 'htmlFor': true,\r\n 'dataset': true,\r\n 'style': true,\r\n };\r\n /**\r\n * Add element attributes to a newly created HTML element.\r\n */\r\n function addAttrs(element, attrs) {\r\n // Add the inline event listeners and node attributes.\r\n for (var name_1 in attrs) {\r\n if (name_1 in specialAttrs) {\r\n continue;\r\n }\r\n if (name_1.substr(0, 2) === 'on') {\r\n element[name_1] = attrs[name_1];\r\n }\r\n else {\r\n element.setAttribute(name_1, attrs[name_1]);\r\n }\r\n }\r\n // Add the element `class` attribute.\r\n if (attrs.className !== undefined) {\r\n element.setAttribute('class', attrs.className);\r\n }\r\n // Add the element `for` attribute.\r\n if (attrs.htmlFor !== undefined) {\r\n element.setAttribute('for', attrs.htmlFor);\r\n }\r\n // Add the dataset values.\r\n if (attrs.dataset) {\r\n addDataset(element, attrs.dataset);\r\n }\r\n // Add the inline styles.\r\n if (attrs.style) {\r\n addStyle(element, attrs.style);\r\n }\r\n }\r\n /**\r\n * Update the element attributes of an HTML element.\r\n */\r\n function updateAttrs(element, oldAttrs, newAttrs) {\r\n // Do nothing if the attrs are the same object.\r\n if (oldAttrs === newAttrs) {\r\n return;\r\n }\r\n // Setup the strongly typed loop variable.\r\n var name;\r\n // Remove attributes and listeners which no longer exist.\r\n for (name in oldAttrs) {\r\n if (name in specialAttrs || name in newAttrs) {\r\n continue;\r\n }\r\n if (name.substr(0, 2) === 'on') {\r\n element[name] = null;\r\n }\r\n else {\r\n element.removeAttribute(name);\r\n }\r\n }\r\n // Add and update new and existing attributes and listeners.\r\n for (name in newAttrs) {\r\n if (name in specialAttrs || oldAttrs[name] === newAttrs[name]) {\r\n continue;\r\n }\r\n if (name.substr(0, 2) === 'on') {\r\n element[name] = newAttrs[name];\r\n }\r\n else {\r\n element.setAttribute(name, newAttrs[name]);\r\n }\r\n }\r\n // Update the element `class` attribute.\r\n if (oldAttrs.className !== newAttrs.className) {\r\n if (newAttrs.className !== undefined) {\r\n element.setAttribute('class', newAttrs.className);\r\n }\r\n else {\r\n element.removeAttribute('class');\r\n }\r\n }\r\n // Add the element `for` attribute.\r\n if (oldAttrs.htmlFor !== newAttrs.htmlFor) {\r\n if (newAttrs.htmlFor !== undefined) {\r\n element.setAttribute('for', newAttrs.htmlFor);\r\n }\r\n else {\r\n element.removeAttribute('for');\r\n }\r\n }\r\n // Update the dataset values.\r\n if (oldAttrs.dataset !== newAttrs.dataset) {\r\n updateDataset(element, oldAttrs.dataset || {}, newAttrs.dataset || {});\r\n }\r\n // Update the inline styles.\r\n if (oldAttrs.style !== newAttrs.style) {\r\n updateStyle(element, oldAttrs.style || {}, newAttrs.style || {});\r\n }\r\n }\r\n /**\r\n * Add dataset values to a newly created HTML element.\r\n */\r\n function addDataset(element, dataset) {\r\n for (var name_2 in dataset) {\r\n element.setAttribute(\"data-\" + name_2, dataset[name_2]);\r\n }\r\n }\r\n /**\r\n * Update the dataset values of an HTML element.\r\n */\r\n function updateDataset(element, oldDataset, newDataset) {\r\n for (var name_3 in oldDataset) {\r\n if (!(name_3 in newDataset)) {\r\n element.removeAttribute(\"data-\" + name_3);\r\n }\r\n }\r\n for (var name_4 in newDataset) {\r\n if (oldDataset[name_4] !== newDataset[name_4]) {\r\n element.setAttribute(\"data-\" + name_4, newDataset[name_4]);\r\n }\r\n }\r\n }\r\n /**\r\n * Add inline style values to a newly created HTML element.\r\n */\r\n function addStyle(element, style) {\r\n var elemStyle = element.style;\r\n var name;\r\n for (name in style) {\r\n elemStyle[name] = style[name];\r\n }\r\n }\r\n /**\r\n * Update the inline style values of an HTML element.\r\n */\r\n function updateStyle(element, oldStyle, newStyle) {\r\n var elemStyle = element.style;\r\n var name;\r\n for (name in oldStyle) {\r\n if (!(name in newStyle)) {\r\n elemStyle[name] = '';\r\n }\r\n }\r\n for (name in newStyle) {\r\n if (oldStyle[name] !== newStyle[name]) {\r\n elemStyle[name] = newStyle[name];\r\n }\r\n }\r\n }\r\n /**\r\n * Collect a mapping of keyed elements for the host content.\r\n */\r\n function collectKeys(host, content) {\r\n var node = host.firstChild;\r\n var keyMap = Object.create(null);\r\n for (var _i = 0, content_1 = content; _i < content_1.length; _i++) {\r\n var vNode = content_1[_i];\r\n if (vNode.type === 'element' && vNode.attrs.key) {\r\n keyMap[vNode.attrs.key] = { vNode: vNode, element: node };\r\n }\r\n node = node.nextSibling;\r\n }\r\n return keyMap;\r\n }\r\n})(Private || (Private = {}));\r\n\n\n/***/ }),\n/* 10 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/*-----------------------------------------------------------------------------\r\n| Copyright (c) 2014-2017, PhosphorJS Contributors\r\n|\r\n| Distributed under the terms of the BSD 3-Clause License.\r\n|\r\n| The full license is in the file LICENSE, distributed with this software.\r\n|----------------------------------------------------------------------------*/\r\nvar algorithm_1 = __webpack_require__(0);\r\nvar messaging_1 = __webpack_require__(3);\r\nvar layout_1 = __webpack_require__(8);\r\nvar widget_1 = __webpack_require__(2);\r\n/**\r\n * A concrete layout implementation suitable for many use cases.\r\n *\r\n * #### Notes\r\n * This class is suitable as a base class for implementing a variety of\r\n * layouts, but can also be used directly with standard CSS to layout a\r\n * collection of widgets.\r\n */\r\nvar PanelLayout = (function (_super) {\r\n __extends(PanelLayout, _super);\r\n function PanelLayout() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this._widgets = [];\r\n return _this;\r\n }\r\n /**\r\n * Dispose of the resources held by the layout.\r\n *\r\n * #### Notes\r\n * This will clear and dispose all widgets in the layout.\r\n *\r\n * All reimplementations should call the superclass method.\r\n *\r\n * This method is called automatically when the parent is disposed.\r\n */\r\n PanelLayout.prototype.dispose = function () {\r\n while (this._widgets.length > 0) {\r\n this._widgets.pop().dispose();\r\n }\r\n _super.prototype.dispose.call(this);\r\n };\r\n Object.defineProperty(PanelLayout.prototype, \"widgets\", {\r\n /**\r\n * A read-only array of the widgets in the layout.\r\n */\r\n get: function () {\r\n return this._widgets;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * Create an iterator over the widgets in the layout.\r\n *\r\n * @returns A new iterator over the widgets in the layout.\r\n */\r\n PanelLayout.prototype.iter = function () {\r\n return algorithm_1.iter(this._widgets);\r\n };\r\n /**\r\n * Add a widget to the end of the layout.\r\n *\r\n * @param widget - The widget to add to the layout.\r\n *\r\n * #### Notes\r\n * If the widget is already contained in the layout, it will be moved.\r\n */\r\n PanelLayout.prototype.addWidget = function (widget) {\r\n this.insertWidget(this._widgets.length, widget);\r\n };\r\n /**\r\n * Insert a widget into the layout at the specified index.\r\n *\r\n * @param index - The index at which to insert the widget.\r\n *\r\n * @param widget - The widget to insert into the layout.\r\n *\r\n * #### Notes\r\n * The index will be clamped to the bounds of the widgets.\r\n *\r\n * If the widget is already added to the layout, it will be moved.\r\n *\r\n * #### Undefined Behavior\r\n * An `index` which is non-integral.\r\n */\r\n PanelLayout.prototype.insertWidget = function (index, widget) {\r\n // Remove the widget from its current parent. This is a no-op\r\n // if the widget's parent is already the layout parent widget.\r\n widget.parent = this.parent;\r\n // Look up the current index of the widget.\r\n var i = this._widgets.indexOf(widget);\r\n // Clamp the insert index to the array bounds.\r\n var j = Math.max(0, Math.min(index, this._widgets.length));\r\n // If the widget is not in the array, insert it.\r\n if (i === -1) {\r\n // Insert the widget into the array.\r\n algorithm_1.ArrayExt.insert(this._widgets, j, widget);\r\n // If the layout is parented, attach the widget to the DOM.\r\n if (this.parent) {\r\n this.attachWidget(j, widget);\r\n }\r\n // There is nothing more to do.\r\n return;\r\n }\r\n // Otherwise, the widget exists in the array and should be moved.\r\n // Adjust the index if the location is at the end of the array.\r\n if (j === this._widgets.length) {\r\n j--;\r\n }\r\n // Bail if there is no effective move.\r\n if (i === j) {\r\n return;\r\n }\r\n // Move the widget to the new location.\r\n algorithm_1.ArrayExt.move(this._widgets, i, j);\r\n // If the layout is parented, move the widget in the DOM.\r\n if (this.parent) {\r\n this.moveWidget(i, j, widget);\r\n }\r\n };\r\n /**\r\n * Remove a widget from the layout.\r\n *\r\n * @param widget - The widget to remove from the layout.\r\n *\r\n * #### Notes\r\n * A widget is automatically removed from the layout when its `parent`\r\n * is set to `null`. This method should only be invoked directly when\r\n * removing a widget from a layout which has yet to be installed on a\r\n * parent widget.\r\n *\r\n * This method does *not* modify the widget's `parent`.\r\n */\r\n PanelLayout.prototype.removeWidget = function (widget) {\r\n this.removeWidgetAt(this._widgets.indexOf(widget));\r\n };\r\n /**\r\n * Remove the widget at a given index from the layout.\r\n *\r\n * @param index - The index of the widget to remove.\r\n *\r\n * #### Notes\r\n * A widget is automatically removed from the layout when its `parent`\r\n * is set to `null`. This method should only be invoked directly when\r\n * removing a widget from a layout which has yet to be installed on a\r\n * parent widget.\r\n *\r\n * This method does *not* modify the widget's `parent`.\r\n *\r\n * #### Undefined Behavior\r\n * An `index` which is non-integral.\r\n */\r\n PanelLayout.prototype.removeWidgetAt = function (index) {\r\n // Remove the widget from the array.\r\n var widget = algorithm_1.ArrayExt.removeAt(this._widgets, index);\r\n // If the layout is parented, detach the widget from the DOM.\r\n if (widget && this.parent) {\r\n this.detachWidget(index, widget);\r\n }\r\n };\r\n /**\r\n * Perform layout initialization which requires the parent widget.\r\n */\r\n PanelLayout.prototype.init = function () {\r\n var _this = this;\r\n _super.prototype.init.call(this);\r\n algorithm_1.each(this, function (widget, index) {\r\n _this.attachWidget(index, widget);\r\n });\r\n };\r\n /**\r\n * Attach a widget to the parent's DOM node.\r\n *\r\n * @param index - The current index of the widget in the layout.\r\n *\r\n * @param widget - The widget to attach to the parent.\r\n *\r\n * #### Notes\r\n * This method is called automatically by the panel layout at the\r\n * appropriate time. It should not be called directly by user code.\r\n *\r\n * The default implementation adds the widgets's node to the parent's\r\n * node at the proper location, and sends the appropriate attach\r\n * messages to the widget if the parent is attached to the DOM.\r\n *\r\n * Subclasses may reimplement this method to control how the widget's\r\n * node is added to the parent's node.\r\n */\r\n PanelLayout.prototype.attachWidget = function (index, widget) {\r\n // Look up the next sibling reference node.\r\n var ref = this.parent.node.children[index];\r\n // Send a `'before-attach'` message if the parent is attached.\r\n if (this.parent.isAttached) {\r\n messaging_1.MessageLoop.sendMessage(widget, widget_1.Widget.Msg.BeforeAttach);\r\n }\r\n // Insert the widget's node before the sibling.\r\n this.parent.node.insertBefore(widget.node, ref);\r\n // Send an `'after-attach'` message if the parent is attached.\r\n if (this.parent.isAttached) {\r\n messaging_1.MessageLoop.sendMessage(widget, widget_1.Widget.Msg.AfterAttach);\r\n }\r\n };\r\n /**\r\n * Move a widget in the parent's DOM node.\r\n *\r\n * @param fromIndex - The previous index of the widget in the layout.\r\n *\r\n * @param toIndex - The current index of the widget in the layout.\r\n *\r\n * @param widget - The widget to move in the parent.\r\n *\r\n * #### Notes\r\n * This method is called automatically by the panel layout at the\r\n * appropriate time. It should not be called directly by user code.\r\n *\r\n * The default implementation moves the widget's node to the proper\r\n * location in the parent's node and sends the appropriate attach and\r\n * detach messages to the widget if the parent is attached to the DOM.\r\n *\r\n * Subclasses may reimplement this method to control how the widget's\r\n * node is moved in the parent's node.\r\n */\r\n PanelLayout.prototype.moveWidget = function (fromIndex, toIndex, widget) {\r\n // Send a `'before-detach'` message if the parent is attached.\r\n if (this.parent.isAttached) {\r\n messaging_1.MessageLoop.sendMessage(widget, widget_1.Widget.Msg.BeforeDetach);\r\n }\r\n // Remove the widget's node from the parent.\r\n this.parent.node.removeChild(widget.node);\r\n // Send an `'after-detach'` and message if the parent is attached.\r\n if (this.parent.isAttached) {\r\n messaging_1.MessageLoop.sendMessage(widget, widget_1.Widget.Msg.AfterDetach);\r\n }\r\n // Look up the next sibling reference node.\r\n var ref = this.parent.node.children[toIndex];\r\n // Send a `'before-attach'` message if the parent is attached.\r\n if (this.parent.isAttached) {\r\n messaging_1.MessageLoop.sendMessage(widget, widget_1.Widget.Msg.BeforeAttach);\r\n }\r\n // Insert the widget's node before the sibling.\r\n this.parent.node.insertBefore(widget.node, ref);\r\n // Send an `'after-attach'` message if the parent is attached.\r\n if (this.parent.isAttached) {\r\n messaging_1.MessageLoop.sendMessage(widget, widget_1.Widget.Msg.AfterAttach);\r\n }\r\n };\r\n /**\r\n * Detach a widget from the parent's DOM node.\r\n *\r\n * @param index - The previous index of the widget in the layout.\r\n *\r\n * @param widget - The widget to detach from the parent.\r\n *\r\n * #### Notes\r\n * This method is called automatically by the panel layout at the\r\n * appropriate time. It should not be called directly by user code.\r\n *\r\n * The default implementation removes the widget's node from the\r\n * parent's node, and sends the appropriate detach messages to the\r\n * widget if the parent is attached to the DOM.\r\n *\r\n * Subclasses may reimplement this method to control how the widget's\r\n * node is removed from the parent's node.\r\n */\r\n PanelLayout.prototype.detachWidget = function (index, widget) {\r\n // Send a `'before-detach'` message if the parent is attached.\r\n if (this.parent.isAttached) {\r\n messaging_1.MessageLoop.sendMessage(widget, widget_1.Widget.Msg.BeforeDetach);\r\n }\r\n // Remove the widget's node from the parent.\r\n this.parent.node.removeChild(widget.node);\r\n // Send an `'after-detach'` message if the parent is attached.\r\n if (this.parent.isAttached) {\r\n messaging_1.MessageLoop.sendMessage(widget, widget_1.Widget.Msg.AfterDetach);\r\n }\r\n };\r\n return PanelLayout;\r\n}(layout_1.Layout));\r\nexports.PanelLayout = PanelLayout;\r\n\n\n/***/ }),\n/* 11 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/*-----------------------------------------------------------------------------\r\n| Copyright (c) 2014-2017, PhosphorJS Contributors\r\n|\r\n| Distributed under the terms of the BSD 3-Clause License.\r\n|\r\n| The full license is in the file LICENSE, distributed with this software.\r\n|----------------------------------------------------------------------------*/\r\nvar algorithm_1 = __webpack_require__(0);\r\nvar coreutils_1 = __webpack_require__(6);\r\nvar disposable_1 = __webpack_require__(12);\r\nvar domutils_1 = __webpack_require__(1);\r\nvar keyboard_1 = __webpack_require__(14);\r\nvar signaling_1 = __webpack_require__(4);\r\n/**\r\n * An object which manages a collection of commands.\r\n *\r\n * #### Notes\r\n * A command registry can be used to populate a variety of action-based\r\n * widgets, such as command palettes, menus, and toolbars.\r\n */\r\nvar CommandRegistry = (function () {\r\n /**\r\n * Construct a new command registry.\r\n */\r\n function CommandRegistry() {\r\n this._timerID = 0;\r\n this._replaying = false;\r\n this._keystrokes = [];\r\n this._keydownEvents = [];\r\n this._keyBindings = [];\r\n this._exactKeyMatch = null;\r\n this._commands = Object.create(null);\r\n this._commandChanged = new signaling_1.Signal(this);\r\n this._commandExecuted = new signaling_1.Signal(this);\r\n this._keyBindingChanged = new signaling_1.Signal(this);\r\n }\r\n Object.defineProperty(CommandRegistry.prototype, \"commandChanged\", {\r\n /**\r\n * A signal emitted when a command has changed.\r\n *\r\n * #### Notes\r\n * This signal is useful for visual representations of commands which\r\n * need to refresh when the state of a relevant command has changed.\r\n */\r\n get: function () {\r\n return this._commandChanged;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(CommandRegistry.prototype, \"commandExecuted\", {\r\n /**\r\n * A signal emitted when a command has executed.\r\n *\r\n * #### Notes\r\n * Care should be taken when consuming this signal. It is intended to\r\n * be used largely for debugging and logging purposes. It should not\r\n * be (ab)used for general purpose spying on command execution.\r\n */\r\n get: function () {\r\n return this._commandExecuted;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(CommandRegistry.prototype, \"keyBindingChanged\", {\r\n /**\r\n * A signal emitted when a key binding is changed.\r\n */\r\n get: function () {\r\n return this._keyBindingChanged;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(CommandRegistry.prototype, \"keyBindings\", {\r\n /**\r\n * A read-only array of the key bindings in the registry.\r\n */\r\n get: function () {\r\n return this._keyBindings;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * List the ids of the registered commands.\r\n *\r\n * @returns A new array of the registered command ids.\r\n */\r\n CommandRegistry.prototype.listCommands = function () {\r\n return Object.keys(this._commands);\r\n };\r\n /**\r\n * Test whether a specific command is registered.\r\n *\r\n * @param id - The id of the command of interest.\r\n *\r\n * @returns `true` if the command is registered, `false` otherwise.\r\n */\r\n CommandRegistry.prototype.hasCommand = function (id) {\r\n return id in this._commands;\r\n };\r\n /**\r\n * Add a command to the registry.\r\n *\r\n * @param id - The unique id of the command.\r\n *\r\n * @param options - The options for the command.\r\n *\r\n * @returns A disposable which will remove the command.\r\n *\r\n * @throws An error if the given `id` is already registered.\r\n */\r\n CommandRegistry.prototype.addCommand = function (id, options) {\r\n var _this = this;\r\n // Throw an error if the id is already registered.\r\n if (id in this._commands) {\r\n throw new Error(\"Command '\" + id + \"' already registered.\");\r\n }\r\n // Add the command to the registry.\r\n this._commands[id] = Private.createCommand(options);\r\n // Emit the `commandChanged` signal.\r\n this._commandChanged.emit({ id: id, type: 'added' });\r\n // Return a disposable which will remove the command.\r\n return new disposable_1.DisposableDelegate(function () {\r\n // Remove the command from the registry.\r\n delete _this._commands[id];\r\n // Emit the `commandChanged` signal.\r\n _this._commandChanged.emit({ id: id, type: 'removed' });\r\n });\r\n };\r\n /**\r\n * Notify listeners that the state of a command has changed.\r\n *\r\n * @param id - The id of the command which has changed.\r\n *\r\n * @throws An error if the given `id` is not registered.\r\n *\r\n * #### Notes\r\n * This method should be called by the command author whenever the\r\n * application state changes such that the results of the command\r\n * metadata functions may have changed.\r\n *\r\n * This will cause the `commandChanged` signal to be emitted.\r\n */\r\n CommandRegistry.prototype.notifyCommandChanged = function (id) {\r\n if (!(id in this._commands)) {\r\n throw new Error(\"Command '\" + id + \"' is not registered.\");\r\n }\r\n this._commandChanged.emit({ id: id, type: 'changed' });\r\n };\r\n /**\r\n * Get the display label for a specific command.\r\n *\r\n * @param id - The id of the command of interest.\r\n *\r\n * @param args - The arguments for the command.\r\n *\r\n * @returns The display label for the command, or an empty string\r\n * if the command is not registered.\r\n */\r\n CommandRegistry.prototype.label = function (id, args) {\r\n if (args === void 0) { args = coreutils_1.JSONExt.emptyObject; }\r\n var cmd = this._commands[id];\r\n return cmd ? cmd.label.call(undefined, args) : '';\r\n };\r\n /**\r\n * Get the mnemonic index for a specific command.\r\n *\r\n * @param id - The id of the command of interest.\r\n *\r\n * @param args - The arguments for the command.\r\n *\r\n * @returns The mnemonic index for the command, or `-1` if the\r\n * command is not registered.\r\n */\r\n CommandRegistry.prototype.mnemonic = function (id, args) {\r\n if (args === void 0) { args = coreutils_1.JSONExt.emptyObject; }\r\n var cmd = this._commands[id];\r\n return cmd ? cmd.mnemonic.call(undefined, args) : -1;\r\n };\r\n /**\r\n * @deprecated Use `iconClass()` instead.\r\n */\r\n CommandRegistry.prototype.icon = function (id, args) {\r\n if (args === void 0) { args = coreutils_1.JSONExt.emptyObject; }\r\n return this.iconClass(id, args);\r\n };\r\n /**\r\n * Get the icon class for a specific command.\r\n *\r\n * @param id - The id of the command of interest.\r\n *\r\n * @param args - The arguments for the command.\r\n *\r\n * @returns The icon class for the command, or an empty string if\r\n * the command is not registered.\r\n */\r\n CommandRegistry.prototype.iconClass = function (id, args) {\r\n if (args === void 0) { args = coreutils_1.JSONExt.emptyObject; }\r\n var cmd = this._commands[id];\r\n return cmd ? cmd.iconClass.call(undefined, args) : '';\r\n };\r\n /**\r\n * Get the icon label for a specific command.\r\n *\r\n * @param id - The id of the command of interest.\r\n *\r\n * @param args - The arguments for the command.\r\n *\r\n * @returns The icon label for the command, or an empty string if\r\n * the command is not registered.\r\n */\r\n CommandRegistry.prototype.iconLabel = function (id, args) {\r\n if (args === void 0) { args = coreutils_1.JSONExt.emptyObject; }\r\n var cmd = this._commands[id];\r\n return cmd ? cmd.iconLabel.call(undefined, args) : '';\r\n };\r\n /**\r\n * Get the short form caption for a specific command.\r\n *\r\n * @param id - The id of the command of interest.\r\n *\r\n * @param args - The arguments for the command.\r\n *\r\n * @returns The caption for the command, or an empty string if the\r\n * command is not registered.\r\n */\r\n CommandRegistry.prototype.caption = function (id, args) {\r\n if (args === void 0) { args = coreutils_1.JSONExt.emptyObject; }\r\n var cmd = this._commands[id];\r\n return cmd ? cmd.caption.call(undefined, args) : '';\r\n };\r\n /**\r\n * Get the usage help text for a specific command.\r\n *\r\n * @param id - The id of the command of interest.\r\n *\r\n * @param args - The arguments for the command.\r\n *\r\n * @returns The usage text for the command, or an empty string if\r\n * the command is not registered.\r\n */\r\n CommandRegistry.prototype.usage = function (id, args) {\r\n if (args === void 0) { args = coreutils_1.JSONExt.emptyObject; }\r\n var cmd = this._commands[id];\r\n return cmd ? cmd.usage.call(undefined, args) : '';\r\n };\r\n /**\r\n * Get the extra class name for a specific command.\r\n *\r\n * @param id - The id of the command of interest.\r\n *\r\n * @param args - The arguments for the command.\r\n *\r\n * @returns The class name for the command, or an empty string if\r\n * the command is not registered.\r\n */\r\n CommandRegistry.prototype.className = function (id, args) {\r\n if (args === void 0) { args = coreutils_1.JSONExt.emptyObject; }\r\n var cmd = this._commands[id];\r\n return cmd ? cmd.className.call(undefined, args) : '';\r\n };\r\n /**\r\n * Get the dataset for a specific command.\r\n *\r\n * @param id - The id of the command of interest.\r\n *\r\n * @param args - The arguments for the command.\r\n *\r\n * @returns The dataset for the command, or an empty dataset if\r\n * the command is not registered.\r\n */\r\n CommandRegistry.prototype.dataset = function (id, args) {\r\n if (args === void 0) { args = coreutils_1.JSONExt.emptyObject; }\r\n var cmd = this._commands[id];\r\n return cmd ? cmd.dataset.call(undefined, args) : {};\r\n };\r\n /**\r\n * Test whether a specific command is enabled.\r\n *\r\n * @param id - The id of the command of interest.\r\n *\r\n * @param args - The arguments for the command.\r\n *\r\n * @returns A boolean indicating whether the command is enabled,\r\n * or `false` if the command is not registered.\r\n */\r\n CommandRegistry.prototype.isEnabled = function (id, args) {\r\n if (args === void 0) { args = coreutils_1.JSONExt.emptyObject; }\r\n var cmd = this._commands[id];\r\n return cmd ? cmd.isEnabled.call(undefined, args) : false;\r\n };\r\n /**\r\n * Test whether a specific command is toggled.\r\n *\r\n * @param id - The id of the command of interest.\r\n *\r\n * @param args - The arguments for the command.\r\n *\r\n * @returns A boolean indicating whether the command is toggled,\r\n * or `false` if the command is not registered.\r\n */\r\n CommandRegistry.prototype.isToggled = function (id, args) {\r\n if (args === void 0) { args = coreutils_1.JSONExt.emptyObject; }\r\n var cmd = this._commands[id];\r\n return cmd ? cmd.isToggled.call(undefined, args) : false;\r\n };\r\n /**\r\n * Test whether a specific command is visible.\r\n *\r\n * @param id - The id of the command of interest.\r\n *\r\n * @param args - The arguments for the command.\r\n *\r\n * @returns A boolean indicating whether the command is visible,\r\n * or `false` if the command is not registered.\r\n */\r\n CommandRegistry.prototype.isVisible = function (id, args) {\r\n if (args === void 0) { args = coreutils_1.JSONExt.emptyObject; }\r\n var cmd = this._commands[id];\r\n return cmd ? cmd.isVisible.call(undefined, args) : false;\r\n };\r\n /**\r\n * Execute a specific command.\r\n *\r\n * @param id - The id of the command of interest.\r\n *\r\n * @param args - The arguments for the command.\r\n *\r\n * @returns A promise which resolves with the result of the command.\r\n *\r\n * #### Notes\r\n * The promise will reject if the command throws an exception,\r\n * or if the command is not registered.\r\n */\r\n CommandRegistry.prototype.execute = function (id, args) {\r\n if (args === void 0) { args = coreutils_1.JSONExt.emptyObject; }\r\n // Reject if the command is not registered.\r\n var cmd = this._commands[id];\r\n if (!cmd) {\r\n return Promise.reject(new Error(\"Command '\" + id + \"' not registered.\"));\r\n }\r\n // Execute the command and reject if an exception is thrown.\r\n var value;\r\n try {\r\n value = cmd.execute.call(undefined, args);\r\n }\r\n catch (err) {\r\n value = Promise.reject(err);\r\n }\r\n // Create the return promise which resolves the result.\r\n var result = Promise.resolve(value);\r\n // Emit the command executed signal.\r\n this._commandExecuted.emit({ id: id, args: args, result: result });\r\n // Return the result promise to the caller.\r\n return result;\r\n };\r\n /**\r\n * Add a key binding to the registry.\r\n *\r\n * @param options - The options for creating the key binding.\r\n *\r\n * @returns A disposable which removes the added key binding.\r\n *\r\n * #### Notes\r\n * If multiple key bindings are registered for the same sequence, the\r\n * binding with the highest selector specificity is executed first. A\r\n * tie is broken by using the most recently added key binding.\r\n *\r\n * Ambiguous key bindings are resolved with a timeout. As an example,\r\n * suppose two key bindings are registered: one with the key sequence\r\n * `['Ctrl D']`, and another with `['Ctrl D', 'Ctrl W']`. If the user\r\n * presses `Ctrl D`, the first binding cannot be immediately executed\r\n * since the user may intend to complete the chord with `Ctrl W`. For\r\n * such cases, a timer is used to allow the chord to be completed. If\r\n * the chord is not completed before the timeout, the first binding\r\n * is executed.\r\n */\r\n CommandRegistry.prototype.addKeyBinding = function (options) {\r\n var _this = this;\r\n // Create the binding for the given options.\r\n var binding = Private.createKeyBinding(options);\r\n // Add the key binding to the bindings array.\r\n this._keyBindings.push(binding);\r\n // Emit the `bindingChanged` signal.\r\n this._keyBindingChanged.emit({ binding: binding, type: 'added' });\r\n // Return a disposable which will remove the binding.\r\n return new disposable_1.DisposableDelegate(function () {\r\n // Remove the binding from the array.\r\n algorithm_1.ArrayExt.removeFirstOf(_this._keyBindings, binding);\r\n // Emit the `bindingChanged` signal.\r\n _this._keyBindingChanged.emit({ binding: binding, type: 'removed' });\r\n });\r\n };\r\n /**\r\n * Process a `'keydown'` event and invoke a matching key binding.\r\n *\r\n * @param event - The event object for a `'keydown'` event.\r\n *\r\n * #### Notes\r\n * This should be called in response to a `'keydown'` event in order\r\n * to invoke the command for the best matching key binding.\r\n *\r\n * The registry **does not** install its own listener for `'keydown'`\r\n * events. This allows the application full control over the nodes\r\n * and phase for which the registry processes `'keydown'` events.\r\n */\r\n CommandRegistry.prototype.processKeydownEvent = function (event) {\r\n // Bail immediately if playing back keystrokes.\r\n if (this._replaying) {\r\n return;\r\n }\r\n // Get the normalized keystroke for the event.\r\n var keystroke = CommandRegistry.keystrokeForKeydownEvent(event);\r\n // If the keystroke is not valid for the keyboard layout, replay\r\n // any suppressed events and clear the pending state.\r\n if (!keystroke) {\r\n this._replayKeydownEvents();\r\n this._clearPendingState();\r\n return;\r\n }\r\n // Add the keystroke to the current key sequence.\r\n this._keystrokes.push(keystroke);\r\n // Find the exact and partial matches for the key sequence.\r\n var _a = Private.matchKeyBinding(this._keyBindings, this._keystrokes, event), exact = _a.exact, partial = _a.partial;\r\n // If there is no exact match and no partial match, replay\r\n // any suppressed events and clear the pending state.\r\n if (!exact && !partial) {\r\n this._replayKeydownEvents();\r\n this._clearPendingState();\r\n return;\r\n }\r\n // Stop propagation of the event. If there is only a partial match,\r\n // the event will be replayed if a final exact match never occurs.\r\n event.preventDefault();\r\n event.stopPropagation();\r\n // If there is an exact match but no partial match, the exact match\r\n // can be dispatched immediately. The pending state is cleared so\r\n // the next key press starts from the default state.\r\n if (exact && !partial) {\r\n this._executeKeyBinding(exact);\r\n this._clearPendingState();\r\n return;\r\n }\r\n // If there is both an exact match and a partial match, the exact\r\n // match is stored for future dispatch in case the timer expires\r\n // before a more specific match is triggered.\r\n if (exact) {\r\n this._exactKeyMatch = exact;\r\n }\r\n // Store the event for possible playback in the future.\r\n this._keydownEvents.push(event);\r\n // (Re)start the timer to dispatch the most recent exact match\r\n // in case the partial match fails to result in an exact match.\r\n this._startTimer();\r\n };\r\n /**\r\n * Start or restart the pending timeout.\r\n */\r\n CommandRegistry.prototype._startTimer = function () {\r\n var _this = this;\r\n this._clearTimer();\r\n this._timerID = setTimeout(function () {\r\n _this._onPendingTimeout();\r\n }, Private.CHORD_TIMEOUT);\r\n };\r\n /**\r\n * Clear the pending timeout.\r\n */\r\n CommandRegistry.prototype._clearTimer = function () {\r\n if (this._timerID !== 0) {\r\n clearTimeout(this._timerID);\r\n this._timerID = 0;\r\n }\r\n };\r\n /**\r\n * Replay the keydown events which were suppressed.\r\n */\r\n CommandRegistry.prototype._replayKeydownEvents = function () {\r\n if (this._keydownEvents.length === 0) {\r\n return;\r\n }\r\n this._replaying = true;\r\n this._keydownEvents.forEach(Private.replayKeyEvent);\r\n this._replaying = false;\r\n };\r\n /**\r\n * Execute the command for the given key binding.\r\n *\r\n * If the command is missing or disabled, a warning will be logged.\r\n */\r\n CommandRegistry.prototype._executeKeyBinding = function (binding) {\r\n var command = binding.command, args = binding.args;\r\n if (!this.hasCommand(command) || !this.isEnabled(command, args)) {\r\n var word = this.hasCommand(command) ? 'enabled' : 'registered';\r\n var keys = binding.keys.join(', ');\r\n var msg1 = \"Cannot execute key binding '\" + keys + \"':\";\r\n var msg2 = \"command '\" + command + \"' is not \" + word + \".\";\r\n console.warn(msg1 + \" \" + msg2);\r\n return;\r\n }\r\n this.execute(command, args);\r\n };\r\n /**\r\n * Clear the internal pending state.\r\n */\r\n CommandRegistry.prototype._clearPendingState = function () {\r\n this._clearTimer();\r\n this._exactKeyMatch = null;\r\n this._keystrokes.length = 0;\r\n this._keydownEvents.length = 0;\r\n };\r\n /**\r\n * Handle the partial match timeout.\r\n */\r\n CommandRegistry.prototype._onPendingTimeout = function () {\r\n this._timerID = 0;\r\n if (this._exactKeyMatch) {\r\n this._executeKeyBinding(this._exactKeyMatch);\r\n }\r\n else {\r\n this._replayKeydownEvents();\r\n }\r\n this._clearPendingState();\r\n };\r\n return CommandRegistry;\r\n}());\r\nexports.CommandRegistry = CommandRegistry;\r\n/**\r\n * The namespace for the `CommandRegistry` class statics.\r\n */\r\n(function (CommandRegistry) {\r\n /**\r\n * Parse a keystroke into its constituent components.\r\n *\r\n * @param keystroke - The keystroke of interest.\r\n *\r\n * @returns The parsed components of the keystroke.\r\n *\r\n * #### Notes\r\n * The keystroke should be of the form:\r\n * `[<modifier 1> [<modifier 2> [<modifier N> ]]]<primary key>`\r\n *\r\n * The supported modifiers are: `Accel`, `Alt`, `Cmd`, `Ctrl`, and\r\n * `Shift`. The `Accel` modifier is translated to `Cmd` on Mac and\r\n * `Ctrl` on all other platforms.\r\n *\r\n * The parsing is tolerant and will not throw exceptions. Notably:\r\n * - Duplicate modifiers are ignored.\r\n * - Extra primary keys are ignored.\r\n * - The order of modifiers and primary key is irrelevant.\r\n * - The keystroke parts should be separated by whitespace.\r\n * - The keystroke is case sensitive.\r\n */\r\n function parseKeystroke(keystroke) {\r\n var key = '';\r\n var alt = false;\r\n var cmd = false;\r\n var ctrl = false;\r\n var shift = false;\r\n for (var _i = 0, _a = keystroke.split(/\\s+/); _i < _a.length; _i++) {\r\n var token = _a[_i];\r\n if (token === 'Accel') {\r\n if (domutils_1.Platform.IS_MAC) {\r\n cmd = true;\r\n }\r\n else {\r\n ctrl = true;\r\n }\r\n }\r\n else if (token === 'Alt') {\r\n alt = true;\r\n }\r\n else if (token === 'Cmd') {\r\n cmd = true;\r\n }\r\n else if (token === 'Ctrl') {\r\n ctrl = true;\r\n }\r\n else if (token === 'Shift') {\r\n shift = true;\r\n }\r\n else if (token.length > 0) {\r\n key = token;\r\n }\r\n }\r\n return { cmd: cmd, ctrl: ctrl, alt: alt, shift: shift, key: key };\r\n }\r\n CommandRegistry.parseKeystroke = parseKeystroke;\r\n /**\r\n * Normalize a keystroke into a canonical representation.\r\n *\r\n * @param keystroke - The keystroke of interest.\r\n *\r\n * @returns The normalized representation of the keystroke.\r\n *\r\n * #### Notes\r\n * This normalizes the keystroke by removing duplicate modifiers and\r\n * extra primary keys, and assembling the parts in a canonical order.\r\n *\r\n * The `Cmd` modifier is ignored on non-Mac platforms.\r\n */\r\n function normalizeKeystroke(keystroke) {\r\n var mods = '';\r\n var parts = parseKeystroke(keystroke);\r\n if (parts.ctrl) {\r\n mods += 'Ctrl ';\r\n }\r\n if (parts.alt) {\r\n mods += 'Alt ';\r\n }\r\n if (parts.shift) {\r\n mods += 'Shift ';\r\n }\r\n if (parts.cmd && domutils_1.Platform.IS_MAC) {\r\n mods += 'Cmd ';\r\n }\r\n return mods + parts.key;\r\n }\r\n CommandRegistry.normalizeKeystroke = normalizeKeystroke;\r\n /**\r\n * Create a normalized keystroke for a `'keydown'` event.\r\n *\r\n * @param event - The event object for a `'keydown'` event.\r\n *\r\n * @returns A normalized keystroke, or an empty string if the event\r\n * does not represent a valid keystroke for the given layout.\r\n */\r\n function keystrokeForKeydownEvent(event) {\r\n var key = keyboard_1.getKeyboardLayout().keyForKeydownEvent(event);\r\n if (!key) {\r\n return '';\r\n }\r\n var mods = '';\r\n if (event.ctrlKey) {\r\n mods += 'Ctrl ';\r\n }\r\n if (event.altKey) {\r\n mods += 'Alt ';\r\n }\r\n if (event.shiftKey) {\r\n mods += 'Shift ';\r\n }\r\n if (event.metaKey && domutils_1.Platform.IS_MAC) {\r\n mods += 'Cmd ';\r\n }\r\n return mods + key;\r\n }\r\n CommandRegistry.keystrokeForKeydownEvent = keystrokeForKeydownEvent;\r\n})(CommandRegistry = exports.CommandRegistry || (exports.CommandRegistry = {}));\r\nexports.CommandRegistry = CommandRegistry;\r\n/**\r\n * The namespace for the module implementation details.\r\n */\r\nvar Private;\r\n(function (Private) {\r\n /**\r\n * The timeout in ms for triggering a key binding chord.\r\n */\r\n Private.CHORD_TIMEOUT = 1000;\r\n /**\r\n * Create a normalized command from an options object.\r\n */\r\n function createCommand(options) {\r\n return {\r\n execute: options.execute,\r\n label: asFunc(options.label, emptyStringFunc),\r\n mnemonic: asFunc(options.mnemonic, negativeOneFunc),\r\n iconClass: asFunc(options.iconClass || options.icon, emptyStringFunc),\r\n iconLabel: asFunc(options.iconLabel, emptyStringFunc),\r\n caption: asFunc(options.caption, emptyStringFunc),\r\n usage: asFunc(options.usage, emptyStringFunc),\r\n className: asFunc(options.className, emptyStringFunc),\r\n dataset: asFunc(options.dataset, emptyDatasetFunc),\r\n isEnabled: options.isEnabled || trueFunc,\r\n isToggled: options.isToggled || falseFunc,\r\n isVisible: options.isVisible || trueFunc\r\n };\r\n }\r\n Private.createCommand = createCommand;\r\n /**\r\n * Create a key binding object from key binding options.\r\n */\r\n function createKeyBinding(options) {\r\n return {\r\n keys: normalizeKeys(options),\r\n selector: validateSelector(options),\r\n command: options.command,\r\n args: options.args || coreutils_1.JSONExt.emptyObject\r\n };\r\n }\r\n Private.createKeyBinding = createKeyBinding;\r\n /**\r\n * Find the key bindings which match a key sequence.\r\n *\r\n * This returns a match result which contains the best exact matching\r\n * binding, and a flag which indicates if there are partial matches.\r\n */\r\n function matchKeyBinding(bindings, keys, event) {\r\n // The current best exact match.\r\n var exact = null;\r\n // Whether a partial match has been found.\r\n var partial = false;\r\n // The match distance for the exact match.\r\n var distance = Infinity;\r\n // The specificity for the exact match.\r\n var specificity = 0;\r\n // Iterate over the bindings and search for the best match.\r\n for (var i = 0, n = bindings.length; i < n; ++i) {\r\n // Lookup the current binding.\r\n var binding = bindings[i];\r\n // Check whether the key binding sequence is a match.\r\n var sqm = matchSequence(binding.keys, keys);\r\n // If there is no match, the binding is ignored.\r\n if (sqm === 0 /* None */) {\r\n continue;\r\n }\r\n // If it is a partial match and no other partial match has been\r\n // found, ensure the selector matches and set the partial flag.\r\n if (sqm === 2 /* Partial */) {\r\n if (!partial && targetDistance(binding.selector, event) !== -1) {\r\n partial = true;\r\n }\r\n continue;\r\n }\r\n // Ignore the match if the selector doesn't match, or if the\r\n // matched node is farther away than the current best match.\r\n var td = targetDistance(binding.selector, event);\r\n if (td === -1 || td > distance) {\r\n continue;\r\n }\r\n // Get the specificity for the selector.\r\n var sp = domutils_1.Selector.calculateSpecificity(binding.selector);\r\n // Update the best match if this match is stronger.\r\n if (!exact || td < distance || sp >= specificity) {\r\n exact = binding;\r\n distance = td;\r\n specificity = sp;\r\n }\r\n }\r\n // Return the match result.\r\n return { exact: exact, partial: partial };\r\n }\r\n Private.matchKeyBinding = matchKeyBinding;\r\n /**\r\n * Replay a keyboard event.\r\n *\r\n * This synthetically dispatches a clone of the keyboard event.\r\n */\r\n function replayKeyEvent(event) {\r\n event.target.dispatchEvent(cloneKeyboardEvent(event));\r\n }\r\n Private.replayKeyEvent = replayKeyEvent;\r\n /**\r\n * A singleton empty string function.\r\n */\r\n var emptyStringFunc = function () { return ''; };\r\n /**\r\n * A singleton `-1` number function\r\n */\r\n var negativeOneFunc = function () { return -1; };\r\n /**\r\n * A singleton true boolean function.\r\n */\r\n var trueFunc = function () { return true; };\r\n /**\r\n * A singleton false boolean function.\r\n */\r\n var falseFunc = function () { return false; };\r\n /**\r\n * A singleton empty dataset function.\r\n */\r\n var emptyDatasetFunc = function () { return ({}); };\r\n /**\r\n * Cast a value or command func to a command func.\r\n */\r\n function asFunc(value, dfault) {\r\n if (value === undefined) {\r\n return dfault;\r\n }\r\n if (typeof value === 'function') {\r\n return value;\r\n }\r\n return function () { return value; };\r\n }\r\n /**\r\n * Get the platform-specific normalized keys for an options object.\r\n */\r\n function normalizeKeys(options) {\r\n var keys;\r\n if (domutils_1.Platform.IS_WIN) {\r\n keys = options.winKeys || options.keys;\r\n }\r\n else if (domutils_1.Platform.IS_MAC) {\r\n keys = options.macKeys || options.keys;\r\n }\r\n else {\r\n keys = options.linuxKeys || options.keys;\r\n }\r\n return keys.map(CommandRegistry.normalizeKeystroke);\r\n }\r\n /**\r\n * Validate the selector for an options object.\r\n *\r\n * This returns the validated selector, or throws if the selector is\r\n * invalid or contains commas.\r\n */\r\n function validateSelector(options) {\r\n if (options.selector.indexOf(',') !== -1) {\r\n throw new Error(\"Selector cannot contain commas: \" + options.selector);\r\n }\r\n if (!domutils_1.Selector.isValid(options.selector)) {\r\n throw new Error(\"Invalid selector: \" + options.selector);\r\n }\r\n return options.selector;\r\n }\r\n ;\r\n /**\r\n * Test whether a key binding sequence matches a key sequence.\r\n *\r\n * Returns a `SequenceMatch` value indicating the type of match.\r\n */\r\n function matchSequence(bindKeys, userKeys) {\r\n if (bindKeys.length < userKeys.length) {\r\n return 0 /* None */;\r\n }\r\n for (var i = 0, n = userKeys.length; i < n; ++i) {\r\n if (bindKeys[i] !== userKeys[i]) {\r\n return 0 /* None */;\r\n }\r\n }\r\n if (bindKeys.length > userKeys.length) {\r\n return 2 /* Partial */;\r\n }\r\n return 1 /* Exact */;\r\n }\r\n /**\r\n * Find the distance from the target node to the first matching node.\r\n *\r\n * This traverses the event path from `target` to `currentTarget` and\r\n * computes the distance from `target` to the first node which matches\r\n * the CSS selector. If no match is found, `-1` is returned.\r\n */\r\n function targetDistance(selector, event) {\r\n var targ = event.target;\r\n var curr = event.currentTarget;\r\n for (var dist = 0; targ !== null; targ = targ.parentElement, ++dist) {\r\n if (domutils_1.Selector.matches(targ, selector)) {\r\n return dist;\r\n }\r\n if (targ === curr) {\r\n return -1;\r\n }\r\n }\r\n return -1;\r\n }\r\n /**\r\n * Clone a keyboard event.\r\n */\r\n function cloneKeyboardEvent(event) {\r\n // A custom event is required because Chrome nulls out the\r\n // `keyCode` field in user-generated `KeyboardEvent` types.\r\n var clone = document.createEvent('Event');\r\n var bubbles = event.bubbles || true;\r\n var cancelable = event.cancelable || true;\r\n clone.initEvent(event.type || 'keydown', bubbles, cancelable);\r\n clone.key = event.key || '';\r\n clone.keyCode = event.keyCode || 0;\r\n clone.which = event.keyCode || 0;\r\n clone.ctrlKey = event.ctrlKey || false;\r\n clone.altKey = event.altKey || false;\r\n clone.shiftKey = event.shiftKey || false;\r\n clone.metaKey = event.metaKey || false;\r\n clone.view = event.view || window;\r\n return clone;\r\n }\r\n})(Private || (Private = {}));\r\n\n\n/***/ }),\n/* 12 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/*-----------------------------------------------------------------------------\r\n| Copyright (c) 2014-2017, PhosphorJS Contributors\r\n|\r\n| Distributed under the terms of the BSD 3-Clause License.\r\n|\r\n| The full license is in the file LICENSE, distributed with this software.\r\n|----------------------------------------------------------------------------*/\r\nvar algorithm_1 = __webpack_require__(0);\r\n/**\r\n * A disposable object which delegates to a callback function.\r\n */\r\nvar DisposableDelegate = (function () {\r\n /**\r\n * Construct a new disposable delegate.\r\n *\r\n * @param fn - The callback function to invoke on dispose.\r\n */\r\n function DisposableDelegate(fn) {\r\n this._fn = fn;\r\n }\r\n Object.defineProperty(DisposableDelegate.prototype, \"isDisposed\", {\r\n /**\r\n * Test whether the delegate has been disposed.\r\n */\r\n get: function () {\r\n return !this._fn;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * Dispose of the delegate and invoke the callback function.\r\n */\r\n DisposableDelegate.prototype.dispose = function () {\r\n if (!this._fn) {\r\n return;\r\n }\r\n var fn = this._fn;\r\n this._fn = null;\r\n fn();\r\n };\r\n return DisposableDelegate;\r\n}());\r\nexports.DisposableDelegate = DisposableDelegate;\r\n/**\r\n * An object which manages a collection of disposable items.\r\n */\r\nvar DisposableSet = (function () {\r\n /**\r\n * Construct a new disposable set.\r\n */\r\n function DisposableSet() {\r\n this._disposed = false;\r\n this._items = new Set();\r\n }\r\n Object.defineProperty(DisposableSet.prototype, \"isDisposed\", {\r\n /**\r\n * Test whether the set has been disposed.\r\n */\r\n get: function () {\r\n return this._disposed;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * Dispose of the set and the items it contains.\r\n *\r\n * #### Notes\r\n * Items are disposed in the order they are added to the set.\r\n */\r\n DisposableSet.prototype.dispose = function () {\r\n if (this._disposed) {\r\n return;\r\n }\r\n this._disposed = true;\r\n this._items.forEach(function (item) { item.dispose(); });\r\n this._items.clear();\r\n };\r\n /**\r\n * Test whether the set contains a specific item.\r\n *\r\n * @param item - The item of interest.\r\n *\r\n * @returns `true` if the set contains the item, `false` otherwise.\r\n */\r\n DisposableSet.prototype.contains = function (item) {\r\n return this._items.has(item);\r\n };\r\n /**\r\n * Add a disposable item to the set.\r\n *\r\n * @param item - The item to add to the set.\r\n *\r\n * #### Notes\r\n * If the item is already contained in the set, this is a no-op.\r\n */\r\n DisposableSet.prototype.add = function (item) {\r\n this._items.add(item);\r\n };\r\n /**\r\n * Remove a disposable item from the set.\r\n *\r\n * @param item - The item to remove from the set.\r\n *\r\n * #### Notes\r\n * If the item is not contained in the set, this is a no-op.\r\n */\r\n DisposableSet.prototype.remove = function (item) {\r\n this._items.delete(item);\r\n };\r\n /**\r\n * Remove all items from the set.\r\n */\r\n DisposableSet.prototype.clear = function () {\r\n this._items.clear();\r\n };\r\n return DisposableSet;\r\n}());\r\nexports.DisposableSet = DisposableSet;\r\n/**\r\n * The namespace for the `DisposableSet` class statics.\r\n */\r\n(function (DisposableSet) {\r\n /**\r\n * Create a disposable set from an iterable of items.\r\n *\r\n * @param items - The iterable or array-like object of interest.\r\n *\r\n * @returns A new disposable initialized with the given items.\r\n */\r\n function from(items) {\r\n var set = new DisposableSet();\r\n algorithm_1.each(items, function (item) { set.add(item); });\r\n return set;\r\n }\r\n DisposableSet.from = from;\r\n})(DisposableSet = exports.DisposableSet || (exports.DisposableSet = {}));\r\nexports.DisposableSet = DisposableSet;\r\n\n\n/***/ }),\n/* 13 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar disposable_1 = __webpack_require__(12);\r\n/**\r\n * An object which manages a drag-drop operation.\r\n *\r\n * A drag object dispatches four different events to drop targets:\r\n *\r\n * - `'p-dragenter'` - Dispatched when the mouse enters the target\r\n * element. This event must be canceled in order to receive any\r\n * of the other events.\r\n *\r\n * - `'p-dragover'` - Dispatched when the mouse moves over the drop\r\n * target. It must cancel the event and set the `dropAction` to one\r\n * of the supported actions in order to receive drop events.\r\n *\r\n * - `'p-dragleave'` - Dispatched when the mouse leaves the target\r\n * element. This includes moving the mouse into child elements.\r\n *\r\n * - `'p-drop'`- Dispatched when the mouse is released over the target\r\n * element when the target indicates an appropriate drop action. If\r\n * the event is canceled, the indicated drop action is returned to\r\n * the initiator through the resolved promise.\r\n *\r\n * A drag operation can be terminated at any time by pressing `Escape`\r\n * or by disposing the drag object.\r\n *\r\n * A drag object has the ability to automatically scroll a scrollable\r\n * element when the mouse is hovered near one of its edges. To enable\r\n * this, add the `data-p-dragscroll` attribute to any element which\r\n * the drag object should consider for scrolling.\r\n *\r\n * #### Notes\r\n * This class is designed to be used when dragging and dropping custom\r\n * data *within* a single application. It is *not* a replacement for\r\n * the native drag-drop API. Instead, it provides an API which allows\r\n * drag operations to be initiated programmatically and enables the\r\n * transfer of arbitrary non-string objects; features which are not\r\n * possible with the native drag-drop API.\r\n */\r\nvar Drag = (function () {\r\n /**\r\n * Construct a new drag object.\r\n *\r\n * @param options - The options for initializing the drag.\r\n */\r\n function Drag(options) {\r\n var _this = this;\r\n /**\r\n * The scroll loop handler function.\r\n */\r\n this._onScrollFrame = function () {\r\n // Bail early if there is no scroll target.\r\n if (!_this._scrollTarget) {\r\n return;\r\n }\r\n // Unpack the scroll target.\r\n var _a = _this._scrollTarget, element = _a.element, edge = _a.edge, distance = _a.distance;\r\n // Calculate the scroll delta using nonlinear acceleration.\r\n var d = Private.SCROLL_EDGE_SIZE - distance;\r\n var f = Math.pow(d / Private.SCROLL_EDGE_SIZE, 2);\r\n var s = Math.max(1, Math.round(f * Private.SCROLL_EDGE_SIZE));\r\n // Scroll the element in the specified direction.\r\n switch (edge) {\r\n case 'top':\r\n element.scrollTop -= s;\r\n break;\r\n case 'left':\r\n element.scrollLeft -= s;\r\n break;\r\n case 'right':\r\n element.scrollLeft += s;\r\n break;\r\n case 'bottom':\r\n element.scrollTop += s;\r\n break;\r\n }\r\n // Request the next cycle of the scroll loop.\r\n requestAnimationFrame(_this._onScrollFrame);\r\n };\r\n this._disposed = false;\r\n this._dropAction = 'none';\r\n this._override = null;\r\n this._currentTarget = null;\r\n this._currentElement = null;\r\n this._promise = null;\r\n this._scrollTarget = null;\r\n this._resolve = null;\r\n this.mimeData = options.mimeData;\r\n this.dragImage = options.dragImage || null;\r\n this.proposedAction = options.proposedAction || 'copy';\r\n this.supportedActions = options.supportedActions || 'all';\r\n this.source = options.source || null;\r\n }\r\n /**\r\n * Dispose of the resources held by the drag object.\r\n *\r\n * #### Notes\r\n * This will cancel the drag operation if it is active.\r\n */\r\n Drag.prototype.dispose = function () {\r\n // Do nothing if the drag object is already disposed.\r\n if (this._disposed) {\r\n return;\r\n }\r\n this._disposed = true;\r\n // If there is a current target, dispatch a drag leave event.\r\n if (this._currentTarget) {\r\n var event_1 = Private.createMouseEvent('mouseup', -1, -1);\r\n Private.dispatchDragLeave(this, this._currentTarget, null, event_1);\r\n }\r\n // Finalize the drag object with `'none'`.\r\n this._finalize('none');\r\n };\r\n Object.defineProperty(Drag.prototype, \"isDisposed\", {\r\n /**\r\n * Test whether the drag object is disposed.\r\n */\r\n get: function () {\r\n return this._disposed;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * Start the drag operation at the specified client position.\r\n *\r\n * @param clientX - The client X position for the drag start.\r\n *\r\n * @param clientY - The client Y position for the drag start.\r\n *\r\n * @returns A promise which resolves to the result of the drag.\r\n *\r\n * #### Notes\r\n * If the drag has already been started, the promise created by the\r\n * first call to `start` is returned.\r\n *\r\n * If the drag operation has ended, or if the drag object has been\r\n * disposed, the returned promise will resolve to `'none'`.\r\n *\r\n * The drag object will be automatically disposed when drag operation\r\n * completes. This means `Drag` objects are for single-use only.\r\n *\r\n * This method assumes the left mouse button is already held down.\r\n */\r\n Drag.prototype.start = function (clientX, clientY) {\r\n var _this = this;\r\n // If the drag object is already disposed, resolve to `None`.\r\n if (this._disposed) {\r\n return Promise.resolve('none');\r\n }\r\n // If the drag has already been started, return the promise.\r\n if (this._promise) {\r\n return this._promise;\r\n }\r\n // Install the document listeners for the drag object.\r\n this._addListeners();\r\n // Attach the drag image at the specified client position.\r\n this._attachDragImage(clientX, clientY);\r\n // Create the promise which will be resolved on completion.\r\n this._promise = new Promise(function (resolve, reject) {\r\n _this._resolve = resolve;\r\n });\r\n // Trigger a fake move event to kick off the drag operation.\r\n var event = Private.createMouseEvent('mousemove', clientX, clientY);\r\n document.dispatchEvent(event);\r\n // Return the pending promise for the drag operation.\r\n return this._promise;\r\n };\r\n /**\r\n * Handle the DOM events for the drag operation.\r\n *\r\n * @param event - The DOM event sent to the drag object.\r\n *\r\n * #### Notes\r\n * This method implements the DOM `EventListener` interface and is\r\n * called in response to events on the document. It should not be\r\n * called directly by user code.\r\n */\r\n Drag.prototype.handleEvent = function (event) {\r\n switch (event.type) {\r\n case 'mousemove':\r\n this._evtMouseMove(event);\r\n break;\r\n case 'mouseup':\r\n this._evtMouseUp(event);\r\n break;\r\n case 'keydown':\r\n this._evtKeyDown(event);\r\n break;\r\n default:\r\n // Stop all other events during drag-drop.\r\n event.preventDefault();\r\n event.stopPropagation();\r\n break;\r\n }\r\n };\r\n /**\r\n * Handle the `'mousemove'` event for the drag object.\r\n */\r\n Drag.prototype._evtMouseMove = function (event) {\r\n // Stop all input events during drag-drop.\r\n event.preventDefault();\r\n event.stopPropagation();\r\n // Update the current target node and dispatch enter/leave events.\r\n this._updateCurrentTarget(event);\r\n // Update the drag scroll element.\r\n this._updateDragScroll(event);\r\n // Move the drag image to the specified client position. This is\r\n // performed *after* dispatching to prevent unnecessary reflows.\r\n this._moveDragImage(event.clientX, event.clientY);\r\n };\r\n /**\r\n * Handle the `'mouseup'` event for the drag object.\r\n */\r\n Drag.prototype._evtMouseUp = function (event) {\r\n // Stop all input events during drag-drop.\r\n event.preventDefault();\r\n event.stopPropagation();\r\n // Do nothing if the left button is not released.\r\n if (event.button !== 0) {\r\n return;\r\n }\r\n // Update the current target node and dispatch enter/leave events.\r\n // This prevents a subtle issue where the DOM mutates under the\r\n // cursor after the last move event but before the drop event.\r\n this._updateCurrentTarget(event);\r\n // If there is no current target, finalize with `'none'`.\r\n if (!this._currentTarget) {\r\n this._finalize('none');\r\n return;\r\n }\r\n // If the last drop action was `'none'`, dispatch a leave event\r\n // to the current target and finalize the drag with `'none'`.\r\n if (this._dropAction === 'none') {\r\n Private.dispatchDragLeave(this, this._currentTarget, null, event);\r\n this._finalize('none');\r\n return;\r\n }\r\n // Dispatch the drop event at the current target and finalize\r\n // with the resulting drop action.\r\n var action = Private.dispatchDrop(this, this._currentTarget, event);\r\n this._finalize(action);\r\n };\r\n /**\r\n * Handle the `'keydown'` event for the drag object.\r\n */\r\n Drag.prototype._evtKeyDown = function (event) {\r\n // Stop all input events during drag-drop.\r\n event.preventDefault();\r\n event.stopPropagation();\r\n // Cancel the drag if `Escape` is pressed.\r\n if (event.keyCode === 27) {\r\n this.dispose();\r\n }\r\n };\r\n /**\r\n * Add the document event listeners for the drag object.\r\n */\r\n Drag.prototype._addListeners = function () {\r\n document.addEventListener('mousedown', this, true);\r\n document.addEventListener('mousemove', this, true);\r\n document.addEventListener('mouseup', this, true);\r\n document.addEventListener('mouseenter', this, true);\r\n document.addEventListener('mouseleave', this, true);\r\n document.addEventListener('mouseover', this, true);\r\n document.addEventListener('mouseout', this, true);\r\n document.addEventListener('keydown', this, true);\r\n document.addEventListener('keyup', this, true);\r\n document.addEventListener('keypress', this, true);\r\n document.addEventListener('contextmenu', this, true);\r\n };\r\n /**\r\n * Remove the document event listeners for the drag object.\r\n */\r\n Drag.prototype._removeListeners = function () {\r\n document.removeEventListener('mousedown', this, true);\r\n document.removeEventListener('mousemove', this, true);\r\n document.removeEventListener('mouseup', this, true);\r\n document.removeEventListener('mouseenter', this, true);\r\n document.removeEventListener('mouseleave', this, true);\r\n document.removeEventListener('mouseover', this, true);\r\n document.removeEventListener('mouseout', this, true);\r\n document.removeEventListener('keydown', this, true);\r\n document.removeEventListener('keyup', this, true);\r\n document.removeEventListener('keypress', this, true);\r\n document.removeEventListener('contextmenu', this, true);\r\n };\r\n /**\r\n * Update the drag scroll element under the mouse.\r\n */\r\n Drag.prototype._updateDragScroll = function (event) {\r\n // Find the scroll target under the mouse.\r\n var target = Private.findScrollTarget(event);\r\n // Bail if there is nothing to scroll.\r\n if (!this._scrollTarget && !target) {\r\n return;\r\n }\r\n // Start the scroll loop if needed.\r\n if (!this._scrollTarget) {\r\n setTimeout(this._onScrollFrame, 500);\r\n }\r\n // Update the scroll target.\r\n this._scrollTarget = target;\r\n };\r\n /**\r\n * Update the current target node using the given mouse event.\r\n */\r\n Drag.prototype._updateCurrentTarget = function (event) {\r\n // Fetch common local state.\r\n var prevTarget = this._currentTarget;\r\n var currTarget = this._currentTarget;\r\n var prevElem = this._currentElement;\r\n // Find the current indicated element at the given position.\r\n var currElem = document.elementFromPoint(event.clientX, event.clientY);\r\n // Update the current element reference.\r\n this._currentElement = currElem;\r\n // If the indicated element changes from the previous iteration,\r\n // and is different from the current target, dispatch the exit\r\n // event to the target.\r\n if (currElem !== prevElem && currElem !== currTarget) {\r\n Private.dispatchDragExit(this, currTarget, currElem, event);\r\n }\r\n // If the indicated element changes from the previous iteration,\r\n // and is different from the current target, dispatch the enter\r\n // event and compute the new target element.\r\n if (currElem !== prevElem && currElem !== currTarget) {\r\n currTarget = Private.dispatchDragEnter(this, currElem, currTarget, event);\r\n }\r\n // If the current target element has changed, update the current\r\n // target reference and dispatch the leave event to the old target.\r\n if (currTarget !== prevTarget) {\r\n this._currentTarget = currTarget;\r\n Private.dispatchDragLeave(this, prevTarget, currTarget, event);\r\n }\r\n // Dispatch the drag over event and update the drop action.\r\n var action = Private.dispatchDragOver(this, currTarget, event);\r\n this._setDropAction(action);\r\n };\r\n /**\r\n * Attach the drag image element at the specified location.\r\n *\r\n * This is a no-op if there is no drag image element.\r\n */\r\n Drag.prototype._attachDragImage = function (clientX, clientY) {\r\n if (!this.dragImage) {\r\n return;\r\n }\r\n this.dragImage.classList.add('p-mod-drag-image');\r\n var style = this.dragImage.style;\r\n style.pointerEvents = 'none';\r\n style.position = 'fixed';\r\n style.top = clientY + \"px\";\r\n style.left = clientX + \"px\";\r\n document.body.appendChild(this.dragImage);\r\n };\r\n /**\r\n * Move the drag image element to the specified location.\r\n *\r\n * This is a no-op if there is no drag image element.\r\n */\r\n Drag.prototype._moveDragImage = function (clientX, clientY) {\r\n if (!this.dragImage) {\r\n return;\r\n }\r\n var style = this.dragImage.style;\r\n style.top = clientY + \"px\";\r\n style.left = clientX + \"px\";\r\n };\r\n /**\r\n * Detach the drag image element from the DOM.\r\n *\r\n * This is a no-op if there is no drag image element.\r\n */\r\n Drag.prototype._detachDragImage = function () {\r\n if (!this.dragImage) {\r\n return;\r\n }\r\n var parent = this.dragImage.parentNode;\r\n if (!parent) {\r\n return;\r\n }\r\n parent.removeChild(this.dragImage);\r\n };\r\n /**\r\n * Set the internal drop action state and update the drag cursor.\r\n */\r\n Drag.prototype._setDropAction = function (action) {\r\n action = Private.validateAction(action, this.supportedActions);\r\n if (this._override && this._dropAction === action) {\r\n return;\r\n }\r\n switch (action) {\r\n case 'none':\r\n this._dropAction = action;\r\n this._override = Drag.overrideCursor('no-drop');\r\n break;\r\n case 'copy':\r\n this._dropAction = action;\r\n this._override = Drag.overrideCursor('copy');\r\n break;\r\n case 'link':\r\n this._dropAction = action;\r\n this._override = Drag.overrideCursor('alias');\r\n break;\r\n case 'move':\r\n this._dropAction = action;\r\n this._override = Drag.overrideCursor('move');\r\n break;\r\n }\r\n };\r\n /**\r\n * Finalize the drag operation and resolve the drag promise.\r\n */\r\n Drag.prototype._finalize = function (action) {\r\n // Store the resolve function as a temp variable.\r\n var resolve = this._resolve;\r\n // Remove the document event listeners.\r\n this._removeListeners();\r\n // Detach the drag image.\r\n this._detachDragImage();\r\n // Dispose of the cursor override.\r\n if (this._override) {\r\n this._override.dispose();\r\n this._override = null;\r\n }\r\n // Clear the mime data.\r\n this.mimeData.clear();\r\n // Clear the rest of the internal drag state.\r\n this._disposed = true;\r\n this._dropAction = 'none';\r\n this._currentTarget = null;\r\n this._currentElement = null;\r\n this._scrollTarget = null;\r\n this._promise = null;\r\n this._resolve = null;\r\n // Finally, resolve the promise to the given drop action.\r\n if (resolve) {\r\n resolve(action);\r\n }\r\n };\r\n return Drag;\r\n}());\r\nexports.Drag = Drag;\r\n/**\r\n * The namespace for the `Drag` class statics.\r\n */\r\n(function (Drag) {\r\n /**\r\n * Override the cursor icon for the entire document.\r\n *\r\n * @param cursor - The string representing the cursor style.\r\n *\r\n * @returns A disposable which will clear the override when disposed.\r\n *\r\n * #### Notes\r\n * The most recent call to `overrideCursor` takes precedence.\r\n * Disposing an old override has no effect on the current override.\r\n *\r\n * This utility function is used by the `Drag` class to override the\r\n * mouse cursor during a drag-drop operation, but it can also be used\r\n * by other classes to fix the cursor icon during normal mouse drags.\r\n *\r\n * #### Example\r\n * ```typescript\r\n * import { Drag } from '@phosphor/dragdrop';\r\n *\r\n * // Force the cursor to be 'wait' for the entire document.\r\n * let override = Drag.overrideCursor('wait');\r\n *\r\n * // Clear the override by disposing the return value.\r\n * override.dispose();\r\n * ```\r\n */\r\n function overrideCursor(cursor) {\r\n var id = ++overrideCursorID;\r\n document.body.style.cursor = cursor;\r\n document.body.classList.add('p-mod-override-cursor');\r\n return new disposable_1.DisposableDelegate(function () {\r\n if (id === overrideCursorID) {\r\n document.body.style.cursor = '';\r\n document.body.classList.remove('p-mod-override-cursor');\r\n }\r\n });\r\n }\r\n Drag.overrideCursor = overrideCursor;\r\n /**\r\n * The internal id for the active cursor override.\r\n */\r\n var overrideCursorID = 0;\r\n})(Drag = exports.Drag || (exports.Drag = {}));\r\nexports.Drag = Drag;\r\n/**\r\n * The namespace for the module implementation details.\r\n */\r\nvar Private;\r\n(function (Private) {\r\n /**\r\n * The size of a drag scroll edge, in pixels.\r\n */\r\n Private.SCROLL_EDGE_SIZE = 20;\r\n /**\r\n * Validate the given action is one of the supported actions.\r\n *\r\n * Returns the given action or `'none'` if the action is unsupported.\r\n */\r\n function validateAction(action, supported) {\r\n return (actionTable[action] & supportedTable[supported]) ? action : 'none';\r\n }\r\n Private.validateAction = validateAction;\r\n /**\r\n * Create a left mouse event at the given position.\r\n *\r\n * @param type - The event type for the mouse event.\r\n *\r\n * @param clientX - The client X position.\r\n *\r\n * @param clientY - The client Y position.\r\n *\r\n * @returns A newly created and initialized mouse event.\r\n */\r\n function createMouseEvent(type, clientX, clientY) {\r\n var event = document.createEvent('MouseEvent');\r\n event.initMouseEvent(type, true, true, window, 0, 0, 0, clientX, clientY, false, false, false, false, 0, null);\r\n return event;\r\n }\r\n Private.createMouseEvent = createMouseEvent;\r\n /**\r\n * Find the drag scroll target under the mouse, if any.\r\n */\r\n function findScrollTarget(event) {\r\n // Look up the client mouse position.\r\n var x = event.clientX;\r\n var y = event.clientY;\r\n // Get the element under the mouse.\r\n var element = document.elementFromPoint(x, y);\r\n // Search for a scrollable target based on the mouse position.\r\n // The null assert in third clause of for-loop is required due to:\r\n // https://github.com/Microsoft/TypeScript/issues/14143\r\n for (; element; element = element.parentElement) {\r\n // Ignore elements which are not marked as scrollable.\r\n if (!element.hasAttribute('data-p-dragscroll')) {\r\n continue;\r\n }\r\n // Set up the coordinate offsets for the element.\r\n var offsetX = 0;\r\n var offsetY = 0;\r\n if (element === document.body) {\r\n offsetX = window.pageXOffset;\r\n offsetY = window.pageYOffset;\r\n }\r\n // Get the element bounds in viewport coordinates.\r\n var r = element.getBoundingClientRect();\r\n var top_1 = r.top + offsetY;\r\n var left = r.left + offsetX;\r\n var right = left + r.width;\r\n var bottom = top_1 + r.height;\r\n // Skip the element if it's not under the mouse.\r\n if (x < left || x >= right || y < top_1 || y >= bottom) {\r\n continue;\r\n }\r\n // Compute the distance to each edge.\r\n var dl = x - left + 1;\r\n var dt = y - top_1 + 1;\r\n var dr = right - x;\r\n var db = bottom - y;\r\n // Find the smallest of the edge distances.\r\n var distance = Math.min(dl, dt, dr, db);\r\n // Skip the element if the mouse is not within a scroll edge.\r\n if (distance > Private.SCROLL_EDGE_SIZE) {\r\n continue;\r\n }\r\n // Set up the edge result variable.\r\n var edge = void 0;\r\n // Find the edge for the computed distance.\r\n switch (distance) {\r\n case db:\r\n edge = 'bottom';\r\n break;\r\n case dt:\r\n edge = 'top';\r\n break;\r\n case dr:\r\n edge = 'right';\r\n break;\r\n case dl:\r\n edge = 'left';\r\n break;\r\n default:\r\n throw 'unreachable';\r\n }\r\n // Compute how much the element can scroll in width and height.\r\n var dsw = element.scrollWidth - element.clientWidth;\r\n var dsh = element.scrollHeight - element.clientHeight;\r\n // Determine if the element should be scrolled for the edge.\r\n var shouldScroll = void 0;\r\n switch (edge) {\r\n case 'top':\r\n shouldScroll = dsh > 0 && element.scrollTop > 0;\r\n break;\r\n case 'left':\r\n shouldScroll = dsw > 0 && element.scrollLeft > 0;\r\n break;\r\n case 'right':\r\n shouldScroll = dsw > 0 && element.scrollLeft < dsw;\r\n break;\r\n case 'bottom':\r\n shouldScroll = dsh > 0 && element.scrollTop < dsh;\r\n break;\r\n default:\r\n throw 'unreachable';\r\n }\r\n // Skip the element if it should not be scrolled.\r\n if (!shouldScroll) {\r\n continue;\r\n }\r\n // Return the drag scroll target.\r\n return { element: element, edge: edge, distance: distance };\r\n }\r\n // No drag scroll target was found.\r\n return null;\r\n }\r\n Private.findScrollTarget = findScrollTarget;\r\n /**\r\n * Dispatch a drag enter event to the indicated element.\r\n *\r\n * @param drag - The drag object associated with the action.\r\n *\r\n * @param currElem - The currently indicated element, or `null`. This\r\n * is the \"immediate user selection\" from the whatwg spec.\r\n *\r\n * @param currTarget - The current drag target element, or `null`. This\r\n * is the \"current target element\" from the whatwg spec.\r\n *\r\n * @param event - The mouse event related to the action.\r\n *\r\n * @returns The element to use as the current drag target. This is the\r\n * \"current target element\" from the whatwg spec, and may be `null`.\r\n *\r\n * #### Notes\r\n * This largely implements the drag enter portion of the whatwg spec:\r\n * https://html.spec.whatwg.org/multipage/interaction.html#drag-and-drop-processing-model\r\n */\r\n function dispatchDragEnter(drag, currElem, currTarget, event) {\r\n // If the current element is null, return null as the new target.\r\n if (!currElem) {\r\n return null;\r\n }\r\n // Dispatch a drag enter event to the current element.\r\n var dragEvent = createDragEvent('p-dragenter', drag, event, currTarget);\r\n var canceled = !currElem.dispatchEvent(dragEvent);\r\n // If the event was canceled, use the current element as the new target.\r\n if (canceled) {\r\n return currElem;\r\n }\r\n // If the current element is the document body, keep the original target.\r\n if (currElem === document.body) {\r\n return currTarget;\r\n }\r\n // Dispatch a drag enter event on the document body.\r\n dragEvent = createDragEvent('p-dragenter', drag, event, currTarget);\r\n document.body.dispatchEvent(dragEvent);\r\n // Ignore the event cancellation, and use the body as the new target.\r\n return document.body;\r\n }\r\n Private.dispatchDragEnter = dispatchDragEnter;\r\n /**\r\n * Dispatch a drag exit event to the indicated element.\r\n *\r\n * @param drag - The drag object associated with the action.\r\n *\r\n * @param prevTarget - The previous target element, or `null`. This\r\n * is the previous \"current target element\" from the whatwg spec.\r\n *\r\n * @param currTarget - The current drag target element, or `null`. This\r\n * is the \"current target element\" from the whatwg spec.\r\n *\r\n * @param event - The mouse event related to the action.\r\n *\r\n * #### Notes\r\n * This largely implements the drag exit portion of the whatwg spec:\r\n * https://html.spec.whatwg.org/multipage/interaction.html#drag-and-drop-processing-model\r\n */\r\n function dispatchDragExit(drag, prevTarget, currTarget, event) {\r\n // If the previous target is null, do nothing.\r\n if (!prevTarget) {\r\n return;\r\n }\r\n // Dispatch the drag exit event to the previous target.\r\n var dragEvent = createDragEvent('p-dragexit', drag, event, currTarget);\r\n prevTarget.dispatchEvent(dragEvent);\r\n }\r\n Private.dispatchDragExit = dispatchDragExit;\r\n /**\r\n * Dispatch a drag leave event to the indicated element.\r\n *\r\n * @param drag - The drag object associated with the action.\r\n *\r\n * @param prevTarget - The previous target element, or `null`. This\r\n * is the previous \"current target element\" from the whatwg spec.\r\n *\r\n * @param currTarget - The current drag target element, or `null`. This\r\n * is the \"current target element\" from the whatwg spec.\r\n *\r\n * @param event - The mouse event related to the action.\r\n *\r\n * #### Notes\r\n * This largely implements the drag leave portion of the whatwg spec:\r\n * https://html.spec.whatwg.org/multipage/interaction.html#drag-and-drop-processing-model\r\n */\r\n function dispatchDragLeave(drag, prevTarget, currTarget, event) {\r\n // If the previous target is null, do nothing.\r\n if (!prevTarget) {\r\n return;\r\n }\r\n // Dispatch the drag leave event to the previous target.\r\n var dragEvent = createDragEvent('p-dragleave', drag, event, currTarget);\r\n prevTarget.dispatchEvent(dragEvent);\r\n }\r\n Private.dispatchDragLeave = dispatchDragLeave;\r\n /**\r\n * Dispatch a drag over event to the indicated element.\r\n *\r\n * @param drag - The drag object associated with the action.\r\n *\r\n * @param currTarget - The current drag target element, or `null`. This\r\n * is the \"current target element\" from the whatwg spec.\r\n *\r\n * @param event - The mouse event related to the action.\r\n *\r\n * @returns The `DropAction` result of the drag over event.\r\n *\r\n * #### Notes\r\n * This largely implements the drag over portion of the whatwg spec:\r\n * https://html.spec.whatwg.org/multipage/interaction.html#drag-and-drop-processing-model\r\n */\r\n function dispatchDragOver(drag, currTarget, event) {\r\n // If there is no current target, the drop action is none.\r\n if (!currTarget) {\r\n return 'none';\r\n }\r\n // Dispatch the drag over event to the current target.\r\n var dragEvent = createDragEvent('p-dragover', drag, event, null);\r\n var canceled = !currTarget.dispatchEvent(dragEvent);\r\n // If the event was canceled, return the drop action result.\r\n if (canceled) {\r\n return dragEvent.dropAction;\r\n }\r\n // Otherwise, the effective drop action is none.\r\n return 'none';\r\n }\r\n Private.dispatchDragOver = dispatchDragOver;\r\n /**\r\n * Dispatch a drop event to the indicated element.\r\n *\r\n * @param drag - The drag object associated with the action.\r\n *\r\n * @param currTarget - The current drag target element, or `null`. This\r\n * is the \"current target element\" from the whatwg spec.\r\n *\r\n * @param event - The mouse event related to the action.\r\n *\r\n * @returns The `DropAction` result of the drop event.\r\n *\r\n * #### Notes\r\n * This largely implements the drag over portion of the whatwg spec:\r\n * https://html.spec.whatwg.org/multipage/interaction.html#drag-and-drop-processing-model\r\n */\r\n function dispatchDrop(drag, currTarget, event) {\r\n // If there is no current target, the drop action is none.\r\n if (!currTarget) {\r\n return 'none';\r\n }\r\n // Dispatch the drop event to the current target.\r\n var dragEvent = createDragEvent('p-drop', drag, event, null);\r\n var canceled = !currTarget.dispatchEvent(dragEvent);\r\n // If the event was canceled, return the drop action result.\r\n if (canceled) {\r\n return dragEvent.dropAction;\r\n }\r\n // Otherwise, the effective drop action is none.\r\n return 'none';\r\n }\r\n Private.dispatchDrop = dispatchDrop;\r\n /**\r\n * A lookup table from drop action to bit value.\r\n */\r\n var actionTable = {\r\n 'none': 0x0,\r\n 'copy': 0x1,\r\n 'link': 0x2,\r\n 'move': 0x4\r\n };\r\n /**\r\n * A lookup table from supported action to drop action bit mask.\r\n */\r\n var supportedTable = {\r\n 'none': actionTable['none'],\r\n 'copy': actionTable['copy'],\r\n 'link': actionTable['link'],\r\n 'move': actionTable['move'],\r\n 'copy-link': actionTable['copy'] | actionTable['link'],\r\n 'copy-move': actionTable['copy'] | actionTable['move'],\r\n 'link-move': actionTable['link'] | actionTable['move'],\r\n 'all': actionTable['copy'] | actionTable['link'] | actionTable['move']\r\n };\r\n /**\r\n * Create a new initialized `IDragEvent` from the given data.\r\n *\r\n * @param type - The event type for the drag event.\r\n *\r\n * @param drag - The drag object to use for seeding the drag data.\r\n *\r\n * @param event - The mouse event to use for seeding the mouse data.\r\n *\r\n * @param related - The related target for the event, or `null`.\r\n *\r\n * @returns A new object which implements `IDragEvent`.\r\n */\r\n function createDragEvent(type, drag, event, related) {\r\n // Create a new mouse event to use as the drag event. Currently,\r\n // JS engines do now allow user-defined Event subclasses.\r\n var dragEvent = document.createEvent('MouseEvent');\r\n // Initialize the mouse event data.\r\n dragEvent.initMouseEvent(type, true, true, window, 0, event.screenX, event.screenY, event.clientX, event.clientY, event.ctrlKey, event.altKey, event.shiftKey, event.metaKey, event.button, related);\r\n // Forcefully add the custom drag event properties.\r\n dragEvent.dropAction = 'none';\r\n dragEvent.mimeData = drag.mimeData;\r\n dragEvent.proposedAction = drag.proposedAction;\r\n dragEvent.supportedActions = drag.supportedActions;\r\n dragEvent.source = drag.source;\r\n // Return the fully initialized drag event.\r\n return dragEvent;\r\n }\r\n})(Private || (Private = {}));\r\n\n\n/***/ }),\n/* 14 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\n/*-----------------------------------------------------------------------------\r\n| Copyright (c) 2014-2017, PhosphorJS Contributors\r\n|\r\n| Distributed under the terms of the BSD 3-Clause License.\r\n|\r\n| The full license is in the file LICENSE, distributed with this software.\r\n|----------------------------------------------------------------------------*/\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/**\r\n * Get the global application keyboard layout instance.\r\n *\r\n * @returns The keyboard layout for use by the application.\r\n *\r\n * #### Notes\r\n * The default keyboard layout is US-English.\r\n */\r\nfunction getKeyboardLayout() {\r\n return Private.keyboardLayout;\r\n}\r\nexports.getKeyboardLayout = getKeyboardLayout;\r\n/**\r\n * Set the global application keyboard layout instance.\r\n *\r\n * @param - The keyboard layout for use by the application.\r\n *\r\n * #### Notes\r\n * The keyboard layout should typically be set on application startup\r\n * to a layout which is appropriate for the user's system.\r\n */\r\nfunction setKeyboardLayout(layout) {\r\n Private.keyboardLayout = layout;\r\n}\r\nexports.setKeyboardLayout = setKeyboardLayout;\r\n/**\r\n * A concrete implementation of [[IKeyboardLayout]] based on keycodes.\r\n *\r\n * The `keyCode` property of a `'keydown'` event is a browser and OS\r\n * specific representation of the physical key (not character) which\r\n * was pressed on a keyboard. While not the most convenient API, it\r\n * is currently the only one which works reliably on all browsers.\r\n *\r\n * This class accepts a user-defined mapping of keycode to key, which\r\n * allows for reliable shortcuts tailored to the user's system.\r\n */\r\nvar KeycodeLayout = (function () {\r\n /**\r\n * Construct a new keycode layout.\r\n *\r\n * @param name - The human readable name for the layout.\r\n *\r\n * @param codes - A mapping of keycode to key value.\r\n */\r\n function KeycodeLayout(name, codes) {\r\n this.name = name;\r\n this._codes = codes;\r\n this._keys = KeycodeLayout.extractKeys(codes);\r\n }\r\n /**\r\n * Get an array of the key values supported by the layout.\r\n *\r\n * @returns A new array of the supported key values.\r\n */\r\n KeycodeLayout.prototype.keys = function () {\r\n return Object.keys(this._keys);\r\n };\r\n /**\r\n * Test whether the given key is a valid value for the layout.\r\n *\r\n * @param key - The user provided key to test for validity.\r\n *\r\n * @returns `true` if the key is valid, `false` otherwise.\r\n */\r\n KeycodeLayout.prototype.isValidKey = function (key) {\r\n return key in this._keys;\r\n };\r\n /**\r\n * Get the key for a `'keydown'` event.\r\n *\r\n * @param event - The event object for a `'keydown'` event.\r\n *\r\n * @returns The associated key value, or an empty string if\r\n * the event does not represent a valid primary key.\r\n */\r\n KeycodeLayout.prototype.keyForKeydownEvent = function (event) {\r\n return this._codes[event.keyCode] || '';\r\n };\r\n return KeycodeLayout;\r\n}());\r\nexports.KeycodeLayout = KeycodeLayout;\r\n/**\r\n * The namespace for the `KeycodeLayout` class statics.\r\n */\r\n(function (KeycodeLayout) {\r\n /**\r\n * Extract the set of keys from a code map.\r\n *\r\n * @param code - The code map of interest.\r\n *\r\n * @returns A set of the keys in the code map.\r\n */\r\n function extractKeys(codes) {\r\n var keys = Object.create(null);\r\n for (var c in codes) {\r\n keys[codes[c]] = true;\r\n }\r\n return keys;\r\n }\r\n KeycodeLayout.extractKeys = extractKeys;\r\n})(KeycodeLayout = exports.KeycodeLayout || (exports.KeycodeLayout = {}));\r\nexports.KeycodeLayout = KeycodeLayout;\r\n/**\r\n * A keycode-based keyboard layout for US English keyboards.\r\n *\r\n * This layout is valid for the following OS/Browser combinations.\r\n *\r\n * - Windows\r\n * - Chrome\r\n * - Firefox\r\n * - IE\r\n *\r\n * - OSX\r\n * - Chrome\r\n * - Firefox\r\n * - Safari\r\n *\r\n * - Linux\r\n * - Chrome\r\n * - Firefox\r\n *\r\n * Other combinations may also work, but are untested.\r\n */\r\nexports.EN_US = new KeycodeLayout('en-us', {\r\n 8: 'Backspace',\r\n 9: 'Tab',\r\n 13: 'Enter',\r\n 19: 'Pause',\r\n 27: 'Escape',\r\n 32: 'Space',\r\n 33: 'PageUp',\r\n 34: 'PageDown',\r\n 35: 'End',\r\n 36: 'Home',\r\n 37: 'ArrowLeft',\r\n 38: 'ArrowUp',\r\n 39: 'ArrowRight',\r\n 40: 'ArrowDown',\r\n 45: 'Insert',\r\n 46: 'Delete',\r\n 48: '0',\r\n 49: '1',\r\n 50: '2',\r\n 51: '3',\r\n 52: '4',\r\n 53: '5',\r\n 54: '6',\r\n 55: '7',\r\n 56: '8',\r\n 57: '9',\r\n 59: ';',\r\n 61: '=',\r\n 65: 'A',\r\n 66: 'B',\r\n 67: 'C',\r\n 68: 'D',\r\n 69: 'E',\r\n 70: 'F',\r\n 71: 'G',\r\n 72: 'H',\r\n 73: 'I',\r\n 74: 'J',\r\n 75: 'K',\r\n 76: 'L',\r\n 77: 'M',\r\n 78: 'N',\r\n 79: 'O',\r\n 80: 'P',\r\n 81: 'Q',\r\n 82: 'R',\r\n 83: 'S',\r\n 84: 'T',\r\n 85: 'U',\r\n 86: 'V',\r\n 87: 'W',\r\n 88: 'X',\r\n 89: 'Y',\r\n 90: 'Z',\r\n 93: 'ContextMenu',\r\n 96: '0',\r\n 97: '1',\r\n 98: '2',\r\n 99: '3',\r\n 100: '4',\r\n 101: '5',\r\n 102: '6',\r\n 103: '7',\r\n 104: '8',\r\n 105: '9',\r\n 106: '*',\r\n 107: '+',\r\n 109: '-',\r\n 110: '.',\r\n 111: '/',\r\n 112: 'F1',\r\n 113: 'F2',\r\n 114: 'F3',\r\n 115: 'F4',\r\n 116: 'F5',\r\n 117: 'F6',\r\n 118: 'F7',\r\n 119: 'F8',\r\n 120: 'F9',\r\n 121: 'F10',\r\n 122: 'F11',\r\n 123: 'F12',\r\n 173: '-',\r\n 186: ';',\r\n 187: '=',\r\n 188: ',',\r\n 189: '-',\r\n 190: '.',\r\n 191: '/',\r\n 192: '`',\r\n 219: '[',\r\n 220: '\\\\',\r\n 221: ']',\r\n 222: '\\''\r\n});\r\n/**\r\n * The namespace for the module implementation details.\r\n */\r\nvar Private;\r\n(function (Private) {\r\n /**\r\n * The global keyboard layout instance.\r\n */\r\n Private.keyboardLayout = exports.EN_US;\r\n})(Private || (Private = {}));\r\n\n\n/***/ }),\n/* 15 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\n/*-----------------------------------------------------------------------------\r\n| Copyright (c) 2014-2017, PhosphorJS Contributors\r\n|\r\n| Distributed under the terms of the BSD 3-Clause License.\r\n|\r\n| The full license is in the file LICENSE, distributed with this software.\r\n|----------------------------------------------------------------------------*/\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/**\r\n * A sizer object for use with the box engine layout functions.\r\n *\r\n * #### Notes\r\n * A box sizer holds the geometry information for an object along an\r\n * arbitrary layout orientation.\r\n *\r\n * For best performance, this class should be treated as a raw data\r\n * struct. It should not typically be subclassed.\r\n */\r\nvar BoxSizer = (function () {\r\n function BoxSizer() {\r\n /**\r\n * The preferred size for the sizer.\r\n *\r\n * #### Notes\r\n * The sizer will be given this initial size subject to its size\r\n * bounds. The sizer will not deviate from this size unless such\r\n * deviation is required to fit into the available layout space.\r\n *\r\n * There is no limit to this value, but it will be clamped to the\r\n * bounds defined by [[minSize]] and [[maxSize]].\r\n *\r\n * The default value is `0`.\r\n */\r\n this.sizeHint = 0;\r\n /**\r\n * The minimum size of the sizer.\r\n *\r\n * #### Notes\r\n * The sizer will never be sized less than this value, even if\r\n * it means the sizer will overflow the available layout space.\r\n *\r\n * It is assumed that this value lies in the range `[0, Infinity)`\r\n * and that it is `<=` to [[maxSize]]. Failure to adhere to this\r\n * constraint will yield undefined results.\r\n *\r\n * The default value is `0`.\r\n */\r\n this.minSize = 0;\r\n /**\r\n * The maximum size of the sizer.\r\n *\r\n * #### Notes\r\n * The sizer will never be sized greater than this value, even if\r\n * it means the sizer will underflow the available layout space.\r\n *\r\n * It is assumed that this value lies in the range `[0, Infinity]`\r\n * and that it is `>=` to [[minSize]]. Failure to adhere to this\r\n * constraint will yield undefined results.\r\n *\r\n * The default value is `Infinity`.\r\n */\r\n this.maxSize = Infinity;\r\n /**\r\n * The stretch factor for the sizer.\r\n *\r\n * #### Notes\r\n * This controls how much the sizer stretches relative to its sibling\r\n * sizers when layout space is distributed. A stretch factor of zero\r\n * is special and will cause the sizer to only be resized after all\r\n * other sizers with a stretch factor greater than zero have been\r\n * resized to their limits.\r\n *\r\n * It is assumed that this value is an integer that lies in the range\r\n * `[0, Infinity)`. Failure to adhere to this constraint will yield\r\n * undefined results.\r\n *\r\n * The default value is `1`.\r\n */\r\n this.stretch = 1;\r\n /**\r\n * The computed size of the sizer.\r\n *\r\n * #### Notes\r\n * This value is the output of a call to [[boxCalc]]. It represents\r\n * the computed size for the object along the layout orientation,\r\n * and will always lie in the range `[minSize, maxSize]`.\r\n *\r\n * This value is output only.\r\n *\r\n * Changing this value will have no effect.\r\n */\r\n this.size = 0;\r\n /**\r\n * An internal storage property for the layout algorithm.\r\n *\r\n * #### Notes\r\n * This value is used as temporary storage by the layout algorithm.\r\n *\r\n * Changing this value will have no effect.\r\n */\r\n this.done = false;\r\n }\r\n return BoxSizer;\r\n}());\r\nexports.BoxSizer = BoxSizer;\r\n/**\r\n * The namespace for the box engine layout functions.\r\n */\r\nvar BoxEngine;\r\n(function (BoxEngine) {\r\n /**\r\n * Calculate the optimal layout sizes for a sequence of box sizers.\r\n *\r\n * This distributes the available layout space among the box sizers\r\n * according to the following algorithm:\r\n *\r\n * 1. Initialize the sizers's size to its size hint and compute the\r\n * sums for each of size hint, min size, and max size.\r\n *\r\n * 2. If the total size hint equals the available space, return.\r\n *\r\n * 3. If the available space is less than the total min size, set all\r\n * sizers to their min size and return.\r\n *\r\n * 4. If the available space is greater than the total max size, set\r\n * all sizers to their max size and return.\r\n *\r\n * 5. If the layout space is less than the total size hint, distribute\r\n * the negative delta as follows:\r\n *\r\n * a. Shrink each sizer with a stretch factor greater than zero by\r\n * an amount proportional to the negative space and the sum of\r\n * stretch factors. If the sizer reaches its min size, remove\r\n * it and its stretch factor from the computation.\r\n *\r\n * b. If after adjusting all stretch sizers there remains negative\r\n * space, distribute the space equally among the sizers with a\r\n * stretch factor of zero. If a sizer reaches its min size,\r\n * remove it from the computation.\r\n *\r\n * 6. If the layout space is greater than the total size hint,\r\n * distribute the positive delta as follows:\r\n *\r\n * a. Expand each sizer with a stretch factor greater than zero by\r\n * an amount proportional to the postive space and the sum of\r\n * stretch factors. If the sizer reaches its max size, remove\r\n * it and its stretch factor from the computation.\r\n *\r\n * b. If after adjusting all stretch sizers there remains positive\r\n * space, distribute the space equally among the sizers with a\r\n * stretch factor of zero. If a sizer reaches its max size,\r\n * remove it from the computation.\r\n *\r\n * 7. return\r\n *\r\n * @param sizers - The sizers for a particular layout line.\r\n *\r\n * @param space - The available layout space for the sizers.\r\n *\r\n * @returns The delta between the provided available space and the\r\n * actual consumed space. This value will be zero if the sizers\r\n * can be adjusted to fit, negative if the available space is too\r\n * small, and positive if the available space is too large.\r\n *\r\n * #### Notes\r\n * The [[size]] of each sizer is updated with the computed size.\r\n *\r\n * This function can be called at any time to recompute the layout for\r\n * an existing sequence of sizers. The previously computed results will\r\n * have no effect on the new output. It is therefore not necessary to\r\n * create new sizer objects on each resize event.\r\n */\r\n function calc(sizers, space) {\r\n // Bail early if there is nothing to do.\r\n var count = sizers.length;\r\n if (count === 0) {\r\n return space;\r\n }\r\n // Setup the size and stretch counters.\r\n var totalMin = 0;\r\n var totalMax = 0;\r\n var totalSize = 0;\r\n var totalStretch = 0;\r\n var stretchCount = 0;\r\n // Setup the sizers and compute the totals.\r\n for (var i = 0; i < count; ++i) {\r\n var sizer = sizers[i];\r\n var min = sizer.minSize;\r\n var max = sizer.maxSize;\r\n var hint = sizer.sizeHint;\r\n sizer.done = false;\r\n sizer.size = Math.max(min, Math.min(hint, max));\r\n totalSize += sizer.size;\r\n totalMin += min;\r\n totalMax += max;\r\n if (sizer.stretch > 0) {\r\n totalStretch += sizer.stretch;\r\n stretchCount++;\r\n }\r\n }\r\n // If the space is equal to the total size, return early.\r\n if (space === totalSize) {\r\n return 0;\r\n }\r\n // If the space is less than the total min, minimize each sizer.\r\n if (space <= totalMin) {\r\n for (var i = 0; i < count; ++i) {\r\n var sizer = sizers[i];\r\n sizer.size = sizer.minSize;\r\n }\r\n return space - totalMin;\r\n }\r\n // If the space is greater than the total max, maximize each sizer.\r\n if (space >= totalMax) {\r\n for (var i = 0; i < count; ++i) {\r\n var sizer = sizers[i];\r\n sizer.size = sizer.maxSize;\r\n }\r\n return space - totalMax;\r\n }\r\n // The loops below perform sub-pixel precision sizing. A near zero\r\n // value is used for compares instead of zero to ensure that the\r\n // loop terminates when the subdivided space is reasonably small.\r\n var nearZero = 0.01;\r\n // A counter which is decremented each time a sizer is resized to\r\n // its limit. This ensures the loops terminate even if there is\r\n // space remaining to distribute.\r\n var notDoneCount = count;\r\n // Distribute negative delta space.\r\n if (space < totalSize) {\r\n // Shrink each stretchable sizer by an amount proportional to its\r\n // stretch factor. If a sizer reaches its min size it's marked as\r\n // done. The loop progresses in phases where each sizer is given\r\n // a chance to consume its fair share for the pass, regardless of\r\n // whether a sizer before it reached its limit. This continues\r\n // until the stretchable sizers or the free space is exhausted.\r\n var freeSpace = totalSize - space;\r\n while (stretchCount > 0 && freeSpace > nearZero) {\r\n var distSpace = freeSpace;\r\n var distStretch = totalStretch;\r\n for (var i = 0; i < count; ++i) {\r\n var sizer = sizers[i];\r\n if (sizer.done || sizer.stretch === 0) {\r\n continue;\r\n }\r\n var amt = sizer.stretch * distSpace / distStretch;\r\n if (sizer.size - amt <= sizer.minSize) {\r\n freeSpace -= sizer.size - sizer.minSize;\r\n totalStretch -= sizer.stretch;\r\n sizer.size = sizer.minSize;\r\n sizer.done = true;\r\n notDoneCount--;\r\n stretchCount--;\r\n }\r\n else {\r\n freeSpace -= amt;\r\n sizer.size -= amt;\r\n }\r\n }\r\n }\r\n // Distribute any remaining space evenly among the non-stretchable\r\n // sizers. This progresses in phases in the same manner as above.\r\n while (notDoneCount > 0 && freeSpace > nearZero) {\r\n var amt = freeSpace / notDoneCount;\r\n for (var i = 0; i < count; ++i) {\r\n var sizer = sizers[i];\r\n if (sizer.done) {\r\n continue;\r\n }\r\n if (sizer.size - amt <= sizer.minSize) {\r\n freeSpace -= sizer.size - sizer.minSize;\r\n sizer.size = sizer.minSize;\r\n sizer.done = true;\r\n notDoneCount--;\r\n }\r\n else {\r\n freeSpace -= amt;\r\n sizer.size -= amt;\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n // Expand each stretchable sizer by an amount proportional to its\r\n // stretch factor. If a sizer reaches its max size it's marked as\r\n // done. The loop progresses in phases where each sizer is given\r\n // a chance to consume its fair share for the pass, regardless of\r\n // whether a sizer before it reached its limit. This continues\r\n // until the stretchable sizers or the free space is exhausted.\r\n var freeSpace = space - totalSize;\r\n while (stretchCount > 0 && freeSpace > nearZero) {\r\n var distSpace = freeSpace;\r\n var distStretch = totalStretch;\r\n for (var i = 0; i < count; ++i) {\r\n var sizer = sizers[i];\r\n if (sizer.done || sizer.stretch === 0) {\r\n continue;\r\n }\r\n var amt = sizer.stretch * distSpace / distStretch;\r\n if (sizer.size + amt >= sizer.maxSize) {\r\n freeSpace -= sizer.maxSize - sizer.size;\r\n totalStretch -= sizer.stretch;\r\n sizer.size = sizer.maxSize;\r\n sizer.done = true;\r\n notDoneCount--;\r\n stretchCount--;\r\n }\r\n else {\r\n freeSpace -= amt;\r\n sizer.size += amt;\r\n }\r\n }\r\n }\r\n // Distribute any remaining space evenly among the non-stretchable\r\n // sizers. This progresses in phases in the same manner as above.\r\n while (notDoneCount > 0 && freeSpace > nearZero) {\r\n var amt = freeSpace / notDoneCount;\r\n for (var i = 0; i < count; ++i) {\r\n var sizer = sizers[i];\r\n if (sizer.done) {\r\n continue;\r\n }\r\n if (sizer.size + amt >= sizer.maxSize) {\r\n freeSpace -= sizer.maxSize - sizer.size;\r\n sizer.size = sizer.maxSize;\r\n sizer.done = true;\r\n notDoneCount--;\r\n }\r\n else {\r\n freeSpace -= amt;\r\n sizer.size += amt;\r\n }\r\n }\r\n }\r\n }\r\n // Indicate that the consumed space equals the available space.\r\n return 0;\r\n }\r\n BoxEngine.calc = calc;\r\n /**\r\n * Adjust a sizer by a delta and update its neighbors accordingly.\r\n *\r\n * @param sizers - The sizers which should be adjusted.\r\n *\r\n * @param index - The index of the sizer to grow.\r\n *\r\n * @param delta - The amount to adjust the sizer, positive or negative.\r\n *\r\n * #### Notes\r\n * This will adjust the indicated sizer by the specified amount, along\r\n * with the sizes of the appropriate neighbors, subject to the limits\r\n * specified by each of the sizers.\r\n *\r\n * This is useful when implementing box layouts where the boundaries\r\n * between the sizers are interactively adjustable by the user.\r\n */\r\n function adjust(sizers, index, delta) {\r\n // Bail early when there is nothing to do.\r\n if (sizers.length === 0 || delta === 0) {\r\n return;\r\n }\r\n // Dispatch to the proper implementation.\r\n if (delta > 0) {\r\n growSizer(sizers, index, delta);\r\n }\r\n else {\r\n shrinkSizer(sizers, index, -delta);\r\n }\r\n }\r\n BoxEngine.adjust = adjust;\r\n /**\r\n * Grow a sizer by a positive delta and adjust neighbors.\r\n */\r\n function growSizer(sizers, index, delta) {\r\n // Compute how much the items to the left can expand.\r\n var growLimit = 0;\r\n for (var i = 0; i <= index; ++i) {\r\n var sizer = sizers[i];\r\n growLimit += sizer.maxSize - sizer.size;\r\n }\r\n // Compute how much the items to the right can shrink.\r\n var shrinkLimit = 0;\r\n for (var i = index + 1, n = sizers.length; i < n; ++i) {\r\n var sizer = sizers[i];\r\n shrinkLimit += sizer.size - sizer.minSize;\r\n }\r\n // Clamp the delta adjustment to the limits.\r\n delta = Math.min(delta, growLimit, shrinkLimit);\r\n // Grow the sizers to the left by the delta.\r\n var grow = delta;\r\n for (var i = index; i >= 0 && grow > 0; --i) {\r\n var sizer = sizers[i];\r\n var limit = sizer.maxSize - sizer.size;\r\n if (limit >= grow) {\r\n sizer.sizeHint = sizer.size + grow;\r\n grow = 0;\r\n }\r\n else {\r\n sizer.sizeHint = sizer.size + limit;\r\n grow -= limit;\r\n }\r\n }\r\n // Shrink the sizers to the right by the delta.\r\n var shrink = delta;\r\n for (var i = index + 1, n = sizers.length; i < n && shrink > 0; ++i) {\r\n var sizer = sizers[i];\r\n var limit = sizer.size - sizer.minSize;\r\n if (limit >= shrink) {\r\n sizer.sizeHint = sizer.size - shrink;\r\n shrink = 0;\r\n }\r\n else {\r\n sizer.sizeHint = sizer.size - limit;\r\n shrink -= limit;\r\n }\r\n }\r\n }\r\n /**\r\n * Shrink a sizer by a positive delta and adjust neighbors.\r\n */\r\n function shrinkSizer(sizers, index, delta) {\r\n // Compute how much the items to the right can expand.\r\n var growLimit = 0;\r\n for (var i = index + 1, n = sizers.length; i < n; ++i) {\r\n var sizer = sizers[i];\r\n growLimit += sizer.maxSize - sizer.size;\r\n }\r\n // Compute how much the items to the left can shrink.\r\n var shrinkLimit = 0;\r\n for (var i = 0; i <= index; ++i) {\r\n var sizer = sizers[i];\r\n shrinkLimit += sizer.size - sizer.minSize;\r\n }\r\n // Clamp the delta adjustment to the limits.\r\n delta = Math.min(delta, growLimit, shrinkLimit);\r\n // Grow the sizers to the right by the delta.\r\n var grow = delta;\r\n for (var i = index + 1, n = sizers.length; i < n && grow > 0; ++i) {\r\n var sizer = sizers[i];\r\n var limit = sizer.maxSize - sizer.size;\r\n if (limit >= grow) {\r\n sizer.sizeHint = sizer.size + grow;\r\n grow = 0;\r\n }\r\n else {\r\n sizer.sizeHint = sizer.size + limit;\r\n grow -= limit;\r\n }\r\n }\r\n // Shrink the sizers to the left by the delta.\r\n var shrink = delta;\r\n for (var i = index; i >= 0 && shrink > 0; --i) {\r\n var sizer = sizers[i];\r\n var limit = sizer.size - sizer.minSize;\r\n if (limit >= shrink) {\r\n sizer.sizeHint = sizer.size - shrink;\r\n shrink = 0;\r\n }\r\n else {\r\n sizer.sizeHint = sizer.size - limit;\r\n shrink -= limit;\r\n }\r\n }\r\n }\r\n})(BoxEngine = exports.BoxEngine || (exports.BoxEngine = {}));\r\n\n\n/***/ }),\n/* 16 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/*-----------------------------------------------------------------------------\r\n| Copyright (c) 2014-2017, PhosphorJS Contributors\r\n|\r\n| Distributed under the terms of the BSD 3-Clause License.\r\n|\r\n| The full license is in the file LICENSE, distributed with this software.\r\n|----------------------------------------------------------------------------*/\r\nvar panellayout_1 = __webpack_require__(10);\r\nvar widget_1 = __webpack_require__(2);\r\n/**\r\n * A simple and convenient panel widget class.\r\n *\r\n * #### Notes\r\n * This class is suitable as a base class for implementing a variety of\r\n * convenience panel widgets, but can also be used directly with CSS to\r\n * arrange a collection of widgets.\r\n *\r\n * This class provides a convenience wrapper around a [[PanelLayout]].\r\n */\r\nvar Panel = (function (_super) {\r\n __extends(Panel, _super);\r\n /**\r\n * Construct a new panel.\r\n *\r\n * @param options - The options for initializing the panel.\r\n */\r\n function Panel(options) {\r\n if (options === void 0) { options = {}; }\r\n var _this = _super.call(this) || this;\r\n _this.addClass('p-Panel');\r\n _this.layout = Private.createLayout(options);\r\n return _this;\r\n }\r\n Object.defineProperty(Panel.prototype, \"widgets\", {\r\n /**\r\n * A read-only array of the widgets in the panel.\r\n */\r\n get: function () {\r\n return this.layout.widgets;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * Add a widget to the end of the panel.\r\n *\r\n * @param widget - The widget to add to the panel.\r\n *\r\n * #### Notes\r\n * If the widget is already contained in the panel, it will be moved.\r\n */\r\n Panel.prototype.addWidget = function (widget) {\r\n this.layout.addWidget(widget);\r\n };\r\n /**\r\n * Insert a widget at the specified index.\r\n *\r\n * @param index - The index at which to insert the widget.\r\n *\r\n * @param widget - The widget to insert into to the panel.\r\n *\r\n * #### Notes\r\n * If the widget is already contained in the panel, it will be moved.\r\n */\r\n Panel.prototype.insertWidget = function (index, widget) {\r\n this.layout.insertWidget(index, widget);\r\n };\r\n return Panel;\r\n}(widget_1.Widget));\r\nexports.Panel = Panel;\r\n/**\r\n * The namespace for the module implementation details.\r\n */\r\nvar Private;\r\n(function (Private) {\r\n /**\r\n * Create a panel layout for the given panel options.\r\n */\r\n function createLayout(options) {\r\n return options.layout || new panellayout_1.PanelLayout();\r\n }\r\n Private.createLayout = createLayout;\r\n})(Private || (Private = {}));\r\n\n\n/***/ }),\n/* 17 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/*-----------------------------------------------------------------------------\r\n| Copyright (c) 2014-2017, PhosphorJS Contributors\r\n|\r\n| Distributed under the terms of the BSD 3-Clause License.\r\n|\r\n| The full license is in the file LICENSE, distributed with this software.\r\n|----------------------------------------------------------------------------*/\r\nvar algorithm_1 = __webpack_require__(0);\r\nvar domutils_1 = __webpack_require__(1);\r\nvar messaging_1 = __webpack_require__(3);\r\nvar properties_1 = __webpack_require__(7);\r\nvar boxengine_1 = __webpack_require__(15);\r\nvar layout_1 = __webpack_require__(8);\r\nvar panellayout_1 = __webpack_require__(10);\r\nvar widget_1 = __webpack_require__(2);\r\n/**\r\n * A layout which arranges its widgets in a single row or column.\r\n */\r\nvar BoxLayout = (function (_super) {\r\n __extends(BoxLayout, _super);\r\n /**\r\n * Construct a new box layout.\r\n *\r\n * @param options - The options for initializing the layout.\r\n */\r\n function BoxLayout(options) {\r\n if (options === void 0) { options = {}; }\r\n var _this = _super.call(this) || this;\r\n _this._fixed = 0;\r\n _this._spacing = 4;\r\n _this._dirty = false;\r\n _this._sizers = [];\r\n _this._items = [];\r\n _this._box = null;\r\n _this._alignment = 'start';\r\n _this._direction = 'top-to-bottom';\r\n if (options.direction !== undefined) {\r\n _this._direction = options.direction;\r\n }\r\n if (options.alignment !== undefined) {\r\n _this._alignment = options.alignment;\r\n }\r\n if (options.spacing !== undefined) {\r\n _this._spacing = Private.clampSpacing(options.spacing);\r\n }\r\n return _this;\r\n }\r\n /**\r\n * Dispose of the resources held by the layout.\r\n */\r\n BoxLayout.prototype.dispose = function () {\r\n // Dispose of the layout items.\r\n algorithm_1.each(this._items, function (item) { item.dispose(); });\r\n // Clear the layout state.\r\n this._box = null;\r\n this._items.length = 0;\r\n this._sizers.length = 0;\r\n // Dispose of the rest of the layout.\r\n _super.prototype.dispose.call(this);\r\n };\r\n Object.defineProperty(BoxLayout.prototype, \"direction\", {\r\n /**\r\n * Get the layout direction for the box layout.\r\n */\r\n get: function () {\r\n return this._direction;\r\n },\r\n /**\r\n * Set the layout direction for the box layout.\r\n */\r\n set: function (value) {\r\n if (this._direction === value) {\r\n return;\r\n }\r\n this._direction = value;\r\n if (!this.parent) {\r\n return;\r\n }\r\n this.parent.dataset['direction'] = value;\r\n this.parent.fit();\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(BoxLayout.prototype, \"alignment\", {\r\n /**\r\n * Get the content alignment for the box layout.\r\n *\r\n * #### Notes\r\n * This is the alignment of the widgets in the layout direction.\r\n *\r\n * The alignment has no effect if the widgets can expand to fill the\r\n * entire box layout.\r\n */\r\n get: function () {\r\n return this._alignment;\r\n },\r\n /**\r\n * Set the content alignment for the box layout.\r\n *\r\n * #### Notes\r\n * This is the alignment of the widgets in the layout direction.\r\n *\r\n * The alignment has no effect if the widgets can expand to fill the\r\n * entire box layout.\r\n */\r\n set: function (value) {\r\n if (this._alignment === value) {\r\n return;\r\n }\r\n this._alignment = value;\r\n if (!this.parent) {\r\n return;\r\n }\r\n this.parent.dataset['alignment'] = value;\r\n this.parent.update();\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(BoxLayout.prototype, \"spacing\", {\r\n /**\r\n * Get the inter-element spacing for the box layout.\r\n */\r\n get: function () {\r\n return this._spacing;\r\n },\r\n /**\r\n * Set the inter-element spacing for the box layout.\r\n */\r\n set: function (value) {\r\n value = Private.clampSpacing(value);\r\n if (this._spacing === value) {\r\n return;\r\n }\r\n this._spacing = value;\r\n if (!this.parent) {\r\n return;\r\n }\r\n this.parent.fit();\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * Perform layout initialization which requires the parent widget.\r\n */\r\n BoxLayout.prototype.init = function () {\r\n this.parent.dataset['direction'] = this.direction;\r\n this.parent.dataset['alignment'] = this.alignment;\r\n _super.prototype.init.call(this);\r\n };\r\n /**\r\n * Attach a widget to the parent's DOM node.\r\n *\r\n * @param index - The current index of the widget in the layout.\r\n *\r\n * @param widget - The widget to attach to the parent.\r\n *\r\n * #### Notes\r\n * This is a reimplementation of the superclass method.\r\n */\r\n BoxLayout.prototype.attachWidget = function (index, widget) {\r\n // Create and add a new layout item for the widget.\r\n algorithm_1.ArrayExt.insert(this._items, index, new layout_1.LayoutItem(widget));\r\n // Create and add a new sizer for the widget.\r\n algorithm_1.ArrayExt.insert(this._sizers, index, new boxengine_1.BoxSizer());\r\n // Send a `'before-attach'` message if the parent is attached.\r\n if (this.parent.isAttached) {\r\n messaging_1.MessageLoop.sendMessage(widget, widget_1.Widget.Msg.BeforeAttach);\r\n }\r\n // Add the widget's node to the parent.\r\n this.parent.node.appendChild(widget.node);\r\n // Send an `'after-attach'` message if the parent is attached.\r\n if (this.parent.isAttached) {\r\n messaging_1.MessageLoop.sendMessage(widget, widget_1.Widget.Msg.AfterAttach);\r\n }\r\n // Post a fit request for the parent widget.\r\n this.parent.fit();\r\n };\r\n /**\r\n * Move a widget in the parent's DOM node.\r\n *\r\n * @param fromIndex - The previous index of the widget in the layout.\r\n *\r\n * @param toIndex - The current index of the widget in the layout.\r\n *\r\n * @param widget - The widget to move in the parent.\r\n *\r\n * #### Notes\r\n * This is a reimplementation of the superclass method.\r\n */\r\n BoxLayout.prototype.moveWidget = function (fromIndex, toIndex, widget) {\r\n // Move the layout item for the widget.\r\n algorithm_1.ArrayExt.move(this._items, fromIndex, toIndex);\r\n // Move the sizer for the widget.\r\n algorithm_1.ArrayExt.move(this._sizers, fromIndex, toIndex);\r\n // Post an update request for the parent widget.\r\n this.parent.update();\r\n };\r\n /**\r\n * Detach a widget from the parent's DOM node.\r\n *\r\n * @param index - The previous index of the widget in the layout.\r\n *\r\n * @param widget - The widget to detach from the parent.\r\n *\r\n * #### Notes\r\n * This is a reimplementation of the superclass method.\r\n */\r\n BoxLayout.prototype.detachWidget = function (index, widget) {\r\n // Remove the layout item for the widget.\r\n var item = algorithm_1.ArrayExt.removeAt(this._items, index);\r\n // Remove the sizer for the widget.\r\n algorithm_1.ArrayExt.removeAt(this._sizers, index);\r\n // Send a `'before-detach'` message if the parent is attached.\r\n if (this.parent.isAttached) {\r\n messaging_1.MessageLoop.sendMessage(widget, widget_1.Widget.Msg.BeforeDetach);\r\n }\r\n // Remove the widget's node from the parent.\r\n this.parent.node.removeChild(widget.node);\r\n // Send an `'after-detach'` message if the parent is attached.\r\n if (this.parent.isAttached) {\r\n messaging_1.MessageLoop.sendMessage(widget, widget_1.Widget.Msg.AfterDetach);\r\n }\r\n // Dispose of the layout item.\r\n item.dispose();\r\n // Post a fit request for the parent widget.\r\n this.parent.fit();\r\n };\r\n /**\r\n * A message handler invoked on a `'before-show'` message.\r\n */\r\n BoxLayout.prototype.onBeforeShow = function (msg) {\r\n _super.prototype.onBeforeShow.call(this, msg);\r\n this.parent.update();\r\n };\r\n /**\r\n * A message handler invoked on a `'before-attach'` message.\r\n */\r\n BoxLayout.prototype.onBeforeAttach = function (msg) {\r\n _super.prototype.onBeforeAttach.call(this, msg);\r\n this.parent.fit();\r\n };\r\n /**\r\n * A message handler invoked on a `'child-shown'` message.\r\n */\r\n BoxLayout.prototype.onChildShown = function (msg) {\r\n this.parent.fit();\r\n };\r\n /**\r\n * A message handler invoked on a `'child-hidden'` message.\r\n */\r\n BoxLayout.prototype.onChildHidden = function (msg) {\r\n this.parent.fit();\r\n };\r\n /**\r\n * A message handler invoked on a `'resize'` message.\r\n */\r\n BoxLayout.prototype.onResize = function (msg) {\r\n if (this.parent.isVisible) {\r\n this._update(msg.width, msg.height);\r\n }\r\n };\r\n /**\r\n * A message handler invoked on an `'update-request'` message.\r\n */\r\n BoxLayout.prototype.onUpdateRequest = function (msg) {\r\n if (this.parent.isVisible) {\r\n this._update(-1, -1);\r\n }\r\n };\r\n /**\r\n * A message handler invoked on a `'fit-request'` message.\r\n */\r\n BoxLayout.prototype.onFitRequest = function (msg) {\r\n if (this.parent.isAttached) {\r\n this._fit();\r\n }\r\n };\r\n /**\r\n * Fit the layout to the total size required by the widgets.\r\n */\r\n BoxLayout.prototype._fit = function () {\r\n // Compute the visible item count.\r\n var nVisible = 0;\r\n for (var i = 0, n = this._items.length; i < n; ++i) {\r\n nVisible += +!this._items[i].isHidden;\r\n }\r\n // Update the fixed space for the visible items.\r\n this._fixed = this._spacing * Math.max(0, nVisible - 1);\r\n // Setup the computed minimum size.\r\n var horz = Private.isHorizontal(this._direction);\r\n var minW = horz ? this._fixed : 0;\r\n var minH = horz ? 0 : this._fixed;\r\n // Update the sizers and computed minimum size.\r\n for (var i = 0, n = this._items.length; i < n; ++i) {\r\n // Fetch the item and corresponding box sizer.\r\n var item = this._items[i];\r\n var sizer = this._sizers[i];\r\n // If the item is hidden, it should consume zero size.\r\n if (item.isHidden) {\r\n sizer.minSize = 0;\r\n sizer.maxSize = 0;\r\n continue;\r\n }\r\n // Update the size limits for the item.\r\n item.fit();\r\n // Update the size basis and stretch factor.\r\n sizer.sizeHint = BoxLayout.getSizeBasis(item.widget);\r\n sizer.stretch = BoxLayout.getStretch(item.widget);\r\n // Update the sizer limits and computed min size.\r\n if (horz) {\r\n sizer.minSize = item.minWidth;\r\n sizer.maxSize = item.maxWidth;\r\n minW += item.minWidth;\r\n minH = Math.max(minH, item.minHeight);\r\n }\r\n else {\r\n sizer.minSize = item.minHeight;\r\n sizer.maxSize = item.maxHeight;\r\n minH += item.minHeight;\r\n minW = Math.max(minW, item.minWidth);\r\n }\r\n }\r\n // Update the box sizing and add it to the computed min size.\r\n var box = this._box = domutils_1.ElementExt.boxSizing(this.parent.node);\r\n minW += box.horizontalSum;\r\n minH += box.verticalSum;\r\n // Update the parent's min size constraints.\r\n var style = this.parent.node.style;\r\n style.minWidth = minW + \"px\";\r\n style.minHeight = minH + \"px\";\r\n // Set the dirty flag to ensure only a single update occurs.\r\n this._dirty = true;\r\n // Notify the ancestor that it should fit immediately. This may\r\n // cause a resize of the parent, fulfilling the required update.\r\n if (this.parent.parent) {\r\n messaging_1.MessageLoop.sendMessage(this.parent.parent, widget_1.Widget.Msg.FitRequest);\r\n }\r\n // If the dirty flag is still set, the parent was not resized.\r\n // Trigger the required update on the parent widget immediately.\r\n if (this._dirty) {\r\n messaging_1.MessageLoop.sendMessage(this.parent, widget_1.Widget.Msg.UpdateRequest);\r\n }\r\n };\r\n /**\r\n * Update the layout position and size of the widgets.\r\n *\r\n * The parent offset dimensions should be `-1` if unknown.\r\n */\r\n BoxLayout.prototype._update = function (offsetWidth, offsetHeight) {\r\n // Clear the dirty flag to indicate the update occurred.\r\n this._dirty = false;\r\n // Compute the visible item count.\r\n var nVisible = 0;\r\n for (var i = 0, n = this._items.length; i < n; ++i) {\r\n nVisible += +!this._items[i].isHidden;\r\n }\r\n // Bail early if there are no visible items to layout.\r\n if (nVisible === 0) {\r\n return;\r\n }\r\n // Measure the parent if the offset dimensions are unknown.\r\n if (offsetWidth < 0) {\r\n offsetWidth = this.parent.node.offsetWidth;\r\n }\r\n if (offsetHeight < 0) {\r\n offsetHeight = this.parent.node.offsetHeight;\r\n }\r\n // Ensure the parent box sizing data is computed.\r\n if (!this._box) {\r\n this._box = domutils_1.ElementExt.boxSizing(this.parent.node);\r\n }\r\n // Compute the layout area adjusted for border and padding.\r\n var top = this._box.paddingTop;\r\n var left = this._box.paddingLeft;\r\n var width = offsetWidth - this._box.horizontalSum;\r\n var height = offsetHeight - this._box.verticalSum;\r\n // Distribute the layout space and adjust the start position.\r\n var delta;\r\n switch (this._direction) {\r\n case 'left-to-right':\r\n delta = boxengine_1.BoxEngine.calc(this._sizers, Math.max(0, width - this._fixed));\r\n break;\r\n case 'top-to-bottom':\r\n delta = boxengine_1.BoxEngine.calc(this._sizers, Math.max(0, height - this._fixed));\r\n break;\r\n case 'right-to-left':\r\n delta = boxengine_1.BoxEngine.calc(this._sizers, Math.max(0, width - this._fixed));\r\n left += width;\r\n break;\r\n case 'bottom-to-top':\r\n delta = boxengine_1.BoxEngine.calc(this._sizers, Math.max(0, height - this._fixed));\r\n top += height;\r\n break;\r\n default:\r\n throw 'unreachable';\r\n }\r\n // Setup the variables for justification and alignment offset.\r\n var extra = 0;\r\n var offset = 0;\r\n // Account for alignment if there is extra layout space.\r\n if (delta > 0) {\r\n switch (this._alignment) {\r\n case 'start':\r\n break;\r\n case 'center':\r\n extra = 0;\r\n offset = delta / 2;\r\n break;\r\n case 'end':\r\n extra = 0;\r\n offset = delta;\r\n break;\r\n case 'justify':\r\n extra = delta / nVisible;\r\n offset = 0;\r\n break;\r\n default:\r\n throw 'unreachable';\r\n }\r\n }\r\n // Layout the items using the computed box sizes.\r\n for (var i = 0, n = this._items.length; i < n; ++i) {\r\n // Fetch the item.\r\n var item = this._items[i];\r\n // Ignore hidden items.\r\n if (item.isHidden) {\r\n continue;\r\n }\r\n // Fetch the computed size for the widget.\r\n var size = this._sizers[i].size;\r\n // Update the widget geometry and advance the relevant edge.\r\n switch (this._direction) {\r\n case 'left-to-right':\r\n item.update(left + offset, top, size + extra, height);\r\n left += size + extra + this._spacing;\r\n break;\r\n case 'top-to-bottom':\r\n item.update(left, top + offset, width, size + extra);\r\n top += size + extra + this._spacing;\r\n break;\r\n case 'right-to-left':\r\n item.update(left - offset - size - extra, top, size + extra, height);\r\n left -= size + extra + this._spacing;\r\n break;\r\n case 'bottom-to-top':\r\n item.update(left, top - offset - size - extra, width, size + extra);\r\n top -= size + extra + this._spacing;\r\n break;\r\n default:\r\n throw 'unreachable';\r\n }\r\n }\r\n };\r\n return BoxLayout;\r\n}(panellayout_1.PanelLayout));\r\nexports.BoxLayout = BoxLayout;\r\n/**\r\n * The namespace for the `BoxLayout` class statics.\r\n */\r\n(function (BoxLayout) {\r\n /**\r\n * Get the box layout stretch factor for the given widget.\r\n *\r\n * @param widget - The widget of interest.\r\n *\r\n * @returns The box layout stretch factor for the widget.\r\n */\r\n function getStretch(widget) {\r\n return Private.stretchProperty.get(widget);\r\n }\r\n BoxLayout.getStretch = getStretch;\r\n /**\r\n * Set the box layout stretch factor for the given widget.\r\n *\r\n * @param widget - The widget of interest.\r\n *\r\n * @param value - The value for the stretch factor.\r\n */\r\n function setStretch(widget, value) {\r\n Private.stretchProperty.set(widget, value);\r\n }\r\n BoxLayout.setStretch = setStretch;\r\n /**\r\n * Get the box layout size basis for the given widget.\r\n *\r\n * @param widget - The widget of interest.\r\n *\r\n * @returns The box layout size basis for the widget.\r\n */\r\n function getSizeBasis(widget) {\r\n return Private.sizeBasisProperty.get(widget);\r\n }\r\n BoxLayout.getSizeBasis = getSizeBasis;\r\n /**\r\n * Set the box layout size basis for the given widget.\r\n *\r\n * @param widget - The widget of interest.\r\n *\r\n * @param value - The value for the size basis.\r\n */\r\n function setSizeBasis(widget, value) {\r\n Private.sizeBasisProperty.set(widget, value);\r\n }\r\n BoxLayout.setSizeBasis = setSizeBasis;\r\n})(BoxLayout = exports.BoxLayout || (exports.BoxLayout = {}));\r\nexports.BoxLayout = BoxLayout;\r\n/**\r\n * The namespace for the module implementation details.\r\n */\r\nvar Private;\r\n(function (Private) {\r\n /**\r\n * The property descriptor for a widget stretch factor.\r\n */\r\n Private.stretchProperty = new properties_1.AttachedProperty({\r\n name: 'stretch',\r\n create: function () { return 0; },\r\n coerce: function (owner, value) { return Math.max(0, Math.floor(value)); },\r\n changed: onChildSizingChanged\r\n });\r\n /**\r\n * The property descriptor for a widget size basis.\r\n */\r\n Private.sizeBasisProperty = new properties_1.AttachedProperty({\r\n name: 'sizeBasis',\r\n create: function () { return 0; },\r\n coerce: function (owner, value) { return Math.max(0, Math.floor(value)); },\r\n changed: onChildSizingChanged\r\n });\r\n /**\r\n * Test whether a direction has horizontal orientation.\r\n */\r\n function isHorizontal(dir) {\r\n return dir === 'left-to-right' || dir === 'right-to-left';\r\n }\r\n Private.isHorizontal = isHorizontal;\r\n /**\r\n * Clamp a spacing value to an integer >= 0.\r\n */\r\n function clampSpacing(value) {\r\n return Math.max(0, Math.floor(value));\r\n }\r\n Private.clampSpacing = clampSpacing;\r\n /**\r\n * The change handler for the attached sizing properties.\r\n */\r\n function onChildSizingChanged(child) {\r\n if (child.parent && child.parent.layout instanceof BoxLayout) {\r\n child.parent.fit();\r\n }\r\n }\r\n})(Private || (Private = {}));\r\n\n\n/***/ }),\n/* 18 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/*-----------------------------------------------------------------------------\r\n| Copyright (c) 2014-2017, PhosphorJS Contributors\r\n|\r\n| Distributed under the terms of the BSD 3-Clause License.\r\n|\r\n| The full license is in the file LICENSE, distributed with this software.\r\n|----------------------------------------------------------------------------*/\r\nvar algorithm_1 = __webpack_require__(0);\r\nvar domutils_1 = __webpack_require__(1);\r\nvar dragdrop_1 = __webpack_require__(13);\r\nvar messaging_1 = __webpack_require__(3);\r\nvar signaling_1 = __webpack_require__(4);\r\nvar virtualdom_1 = __webpack_require__(9);\r\nvar title_1 = __webpack_require__(19);\r\nvar widget_1 = __webpack_require__(2);\r\n/**\r\n * A widget which displays titles as a single row or column of tabs.\r\n *\r\n * #### Notes\r\n * If CSS transforms are used to rotate nodes for vertically oriented\r\n * text, then tab dragging will not work correctly. The `tabsMovable`\r\n * property should be set to `false` when rotating nodes from CSS.\r\n */\r\nvar TabBar = (function (_super) {\r\n __extends(TabBar, _super);\r\n /**\r\n * Construct a new tab bar.\r\n *\r\n * @param options - The options for initializing the tab bar.\r\n */\r\n function TabBar(options) {\r\n if (options === void 0) { options = {}; }\r\n var _this = _super.call(this, { node: Private.createNode() }) || this;\r\n _this._currentIndex = -1;\r\n _this._titles = [];\r\n _this._previousTitle = null;\r\n _this._dragData = null;\r\n _this._tabMoved = new signaling_1.Signal(_this);\r\n _this._currentChanged = new signaling_1.Signal(_this);\r\n _this._tabCloseRequested = new signaling_1.Signal(_this);\r\n _this._tabDetachRequested = new signaling_1.Signal(_this);\r\n _this._tabActivateRequested = new signaling_1.Signal(_this);\r\n _this.addClass('p-TabBar');\r\n _this.setFlag(widget_1.Widget.Flag.DisallowLayout);\r\n _this.tabsMovable = options.tabsMovable || false;\r\n _this.allowDeselect = options.allowDeselect || false;\r\n _this.insertBehavior = options.insertBehavior || 'select-tab-if-needed';\r\n _this.removeBehavior = options.removeBehavior || 'select-tab-after';\r\n _this.renderer = options.renderer || TabBar.defaultRenderer;\r\n _this._orientation = options.orientation || 'horizontal';\r\n _this.dataset['orientation'] = _this._orientation;\r\n return _this;\r\n }\r\n /**\r\n * Dispose of the resources held by the widget.\r\n */\r\n TabBar.prototype.dispose = function () {\r\n this._releaseMouse();\r\n this._titles.length = 0;\r\n this._previousTitle = null;\r\n _super.prototype.dispose.call(this);\r\n };\r\n Object.defineProperty(TabBar.prototype, \"currentChanged\", {\r\n /**\r\n * A signal emitted when the current tab is changed.\r\n *\r\n * #### Notes\r\n * This signal is emitted when the currently selected tab is changed\r\n * either through user or programmatic interaction.\r\n *\r\n * Notably, this signal is not emitted when the index of the current\r\n * tab changes due to tabs being inserted, removed, or moved. It is\r\n * only emitted when the actual current tab node is changed.\r\n */\r\n get: function () {\r\n return this._currentChanged;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TabBar.prototype, \"tabMoved\", {\r\n /**\r\n * A signal emitted when a tab is moved by the user.\r\n *\r\n * #### Notes\r\n * This signal is emitted when a tab is moved by user interaction.\r\n *\r\n * This signal is not emitted when a tab is moved programmatically.\r\n */\r\n get: function () {\r\n return this._tabMoved;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TabBar.prototype, \"tabActivateRequested\", {\r\n /**\r\n * A signal emitted when a tab is clicked by the user.\r\n *\r\n * #### Notes\r\n * If the clicked tab is not the current tab, the clicked tab will be\r\n * made current and the `currentChanged` signal will be emitted first.\r\n *\r\n * This signal is emitted even if the clicked tab is the current tab.\r\n */\r\n get: function () {\r\n return this._tabActivateRequested;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TabBar.prototype, \"tabCloseRequested\", {\r\n /**\r\n * A signal emitted when a tab close icon is clicked.\r\n *\r\n * #### Notes\r\n * This signal is not emitted unless the tab title is `closable`.\r\n */\r\n get: function () {\r\n return this._tabCloseRequested;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TabBar.prototype, \"tabDetachRequested\", {\r\n /**\r\n * A signal emitted when a tab is dragged beyond the detach threshold.\r\n *\r\n * #### Notes\r\n * This signal is emitted when the user drags a tab with the mouse,\r\n * and mouse is dragged beyond the detach threshold.\r\n *\r\n * The consumer of the signal should call `releaseMouse` and remove\r\n * the tab in order to complete the detach.\r\n *\r\n * This signal is only emitted once per drag cycle.\r\n */\r\n get: function () {\r\n return this._tabDetachRequested;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TabBar.prototype, \"currentTitle\", {\r\n /**\r\n * Get the currently selected title.\r\n *\r\n * #### Notes\r\n * This will be `null` if no tab is selected.\r\n */\r\n get: function () {\r\n return this._titles[this._currentIndex] || null;\r\n },\r\n /**\r\n * Set the currently selected title.\r\n *\r\n * #### Notes\r\n * If the title does not exist, the title will be set to `null`.\r\n */\r\n set: function (value) {\r\n this.currentIndex = value ? this._titles.indexOf(value) : -1;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TabBar.prototype, \"currentIndex\", {\r\n /**\r\n * Get the index of the currently selected tab.\r\n *\r\n * #### Notes\r\n * This will be `-1` if no tab is selected.\r\n */\r\n get: function () {\r\n return this._currentIndex;\r\n },\r\n /**\r\n * Set the index of the currently selected tab.\r\n *\r\n * #### Notes\r\n * If the value is out of range, the index will be set to `-1`.\r\n */\r\n set: function (value) {\r\n // Adjust for an out of range index.\r\n if (value < 0 || value >= this._titles.length) {\r\n value = -1;\r\n }\r\n // Bail early if the index will not change.\r\n if (this._currentIndex === value) {\r\n return;\r\n }\r\n // Look up the previous index and title.\r\n var pi = this._currentIndex;\r\n var pt = this._titles[pi] || null;\r\n // Look up the current index and title.\r\n var ci = value;\r\n var ct = this._titles[ci] || null;\r\n // Update the current index and previous title.\r\n this._currentIndex = ci;\r\n this._previousTitle = pt;\r\n // Schedule an update of the tabs.\r\n this.update();\r\n // Emit the current changed signal.\r\n this._currentChanged.emit({\r\n previousIndex: pi, previousTitle: pt,\r\n currentIndex: ci, currentTitle: ct\r\n });\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TabBar.prototype, \"orientation\", {\r\n /**\r\n * Get the orientation of the tab bar.\r\n *\r\n * #### Notes\r\n * This controls whether the tabs are arranged in a row or column.\r\n */\r\n get: function () {\r\n return this._orientation;\r\n },\r\n /**\r\n * Set the orientation of the tab bar.\r\n *\r\n * #### Notes\r\n * This controls whether the tabs are arranged in a row or column.\r\n */\r\n set: function (value) {\r\n // Do nothing if the orientation does not change.\r\n if (this._orientation === value) {\r\n return;\r\n }\r\n // Release the mouse before making any changes.\r\n this._releaseMouse();\r\n // Toggle the orientation values.\r\n this._orientation = value;\r\n this.dataset['orientation'] = value;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TabBar.prototype, \"titles\", {\r\n /**\r\n * A read-only array of the titles in the tab bar.\r\n */\r\n get: function () {\r\n return this._titles;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TabBar.prototype, \"contentNode\", {\r\n /**\r\n * The tab bar content node.\r\n *\r\n * #### Notes\r\n * This is the node which holds the tab nodes.\r\n *\r\n * Modifying this node directly can lead to undefined behavior.\r\n */\r\n get: function () {\r\n return this.node.getElementsByClassName('p-TabBar-content')[0];\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * Add a tab to the end of the tab bar.\r\n *\r\n * @param value - The title which holds the data for the tab,\r\n * or an options object to convert to a title.\r\n *\r\n * @returns The title object added to the tab bar.\r\n *\r\n * #### Notes\r\n * If the title is already added to the tab bar, it will be moved.\r\n */\r\n TabBar.prototype.addTab = function (value) {\r\n return this.insertTab(this._titles.length, value);\r\n };\r\n /**\r\n * Insert a tab into the tab bar at the specified index.\r\n *\r\n * @param index - The index at which to insert the tab.\r\n *\r\n * @param value - The title which holds the data for the tab,\r\n * or an options object to convert to a title.\r\n *\r\n * @returns The title object added to the tab bar.\r\n *\r\n * #### Notes\r\n * The index will be clamped to the bounds of the tabs.\r\n *\r\n * If the title is already added to the tab bar, it will be moved.\r\n */\r\n TabBar.prototype.insertTab = function (index, value) {\r\n // Release the mouse before making any changes.\r\n this._releaseMouse();\r\n // Coerce the value to a title.\r\n var title = Private.asTitle(value);\r\n // Look up the index of the title.\r\n var i = this._titles.indexOf(title);\r\n // Clamp the insert index to the array bounds.\r\n var j = Math.max(0, Math.min(index, this._titles.length));\r\n // If the title is not in the array, insert it.\r\n if (i === -1) {\r\n // Insert the title into the array.\r\n algorithm_1.ArrayExt.insert(this._titles, j, title);\r\n // Connect to the title changed signal.\r\n title.changed.connect(this._onTitleChanged, this);\r\n // Schedule an update of the tabs.\r\n this.update();\r\n // Adjust the current index for the insert.\r\n this._adjustCurrentForInsert(j, title);\r\n // Return the title added to the tab bar.\r\n return title;\r\n }\r\n // Otherwise, the title exists in the array and should be moved.\r\n // Adjust the index if the location is at the end of the array.\r\n if (j === this._titles.length) {\r\n j--;\r\n }\r\n // Bail if there is no effective move.\r\n if (i === j) {\r\n return title;\r\n }\r\n // Move the title to the new location.\r\n algorithm_1.ArrayExt.move(this._titles, i, j);\r\n // Schedule an update of the tabs.\r\n this.update();\r\n // Adjust the current index for the move.\r\n this._adjustCurrentForMove(i, j);\r\n // Return the title added to the tab bar.\r\n return title;\r\n };\r\n /**\r\n * Remove a tab from the tab bar.\r\n *\r\n * @param title - The title for the tab to remove.\r\n *\r\n * #### Notes\r\n * This is a no-op if the title is not in the tab bar.\r\n */\r\n TabBar.prototype.removeTab = function (title) {\r\n this.removeTabAt(this._titles.indexOf(title));\r\n };\r\n /**\r\n * Remove the tab at a given index from the tab bar.\r\n *\r\n * @param index - The index of the tab to remove.\r\n *\r\n * #### Notes\r\n * This is a no-op if the index is out of range.\r\n */\r\n TabBar.prototype.removeTabAt = function (index) {\r\n // Release the mouse before making any changes.\r\n this._releaseMouse();\r\n // Remove the title from the array.\r\n var title = algorithm_1.ArrayExt.removeAt(this._titles, index);\r\n // Bail if the index is out of range.\r\n if (!title) {\r\n return;\r\n }\r\n // Disconnect from the title changed signal.\r\n title.changed.disconnect(this._onTitleChanged, this);\r\n // Clear the previous title if it's being removed.\r\n if (title === this._previousTitle) {\r\n this._previousTitle = null;\r\n }\r\n // Schedule an update of the tabs.\r\n this.update();\r\n // Adjust the current index for the remove.\r\n this._adjustCurrentForRemove(index, title);\r\n };\r\n /**\r\n * Remove all tabs from the tab bar.\r\n */\r\n TabBar.prototype.clearTabs = function () {\r\n // Bail if there is nothing to remove.\r\n if (this._titles.length === 0) {\r\n return;\r\n }\r\n // Release the mouse before making any changes.\r\n this._releaseMouse();\r\n // Disconnect from the title changed signals.\r\n for (var _i = 0, _a = this._titles; _i < _a.length; _i++) {\r\n var title = _a[_i];\r\n title.changed.disconnect(this._onTitleChanged, this);\r\n }\r\n // Get the current index and title.\r\n var pi = this.currentIndex;\r\n var pt = this.currentTitle;\r\n // Reset the current index and previous title.\r\n this._currentIndex = -1;\r\n this._previousTitle = null;\r\n // Clear the title array.\r\n this._titles.length = 0;\r\n // Schedule an update of the tabs.\r\n this.update();\r\n // If no tab was selected, there's nothing else to do.\r\n if (pi === -1) {\r\n return;\r\n }\r\n // Emit the current changed signal.\r\n this._currentChanged.emit({\r\n previousIndex: pi, previousTitle: pt,\r\n currentIndex: -1, currentTitle: null\r\n });\r\n };\r\n /**\r\n * Release the mouse and restore the non-dragged tab positions.\r\n *\r\n * #### Notes\r\n * This will cause the tab bar to stop handling mouse events and to\r\n * restore the tabs to their non-dragged positions.\r\n */\r\n TabBar.prototype.releaseMouse = function () {\r\n this._releaseMouse();\r\n };\r\n /**\r\n * Handle the DOM events for the tab bar.\r\n *\r\n * @param event - The DOM event sent to the tab bar.\r\n *\r\n * #### Notes\r\n * This method implements the DOM `EventListener` interface and is\r\n * called in response to events on the tab bar's DOM node.\r\n *\r\n * This should not be called directly by user code.\r\n */\r\n TabBar.prototype.handleEvent = function (event) {\r\n switch (event.type) {\r\n case 'mousedown':\r\n this._evtMouseDown(event);\r\n break;\r\n case 'mousemove':\r\n this._evtMouseMove(event);\r\n break;\r\n case 'mouseup':\r\n this._evtMouseUp(event);\r\n break;\r\n case 'keydown':\r\n this._evtKeyDown(event);\r\n break;\r\n case 'contextmenu':\r\n event.preventDefault();\r\n event.stopPropagation();\r\n break;\r\n }\r\n };\r\n /**\r\n * A message handler invoked on a `'before-attach'` message.\r\n */\r\n TabBar.prototype.onBeforeAttach = function (msg) {\r\n this.node.addEventListener('mousedown', this);\r\n };\r\n /**\r\n * A message handler invoked on an `'after-detach'` message.\r\n */\r\n TabBar.prototype.onAfterDetach = function (msg) {\r\n this.node.removeEventListener('mousedown', this);\r\n this._releaseMouse();\r\n };\r\n /**\r\n * A message handler invoked on an `'update-request'` message.\r\n */\r\n TabBar.prototype.onUpdateRequest = function (msg) {\r\n var titles = this._titles;\r\n var renderer = this.renderer;\r\n var currentTitle = this.currentTitle;\r\n var content = new Array(titles.length);\r\n for (var i = 0, n = titles.length; i < n; ++i) {\r\n var title = titles[i];\r\n var current = title === currentTitle;\r\n var zIndex = current ? n : n - i - 1;\r\n content[i] = renderer.renderTab({ title: title, current: current, zIndex: zIndex });\r\n }\r\n virtualdom_1.VirtualDOM.render(content, this.contentNode);\r\n };\r\n /**\r\n * Handle the `'keydown'` event for the tab bar.\r\n */\r\n TabBar.prototype._evtKeyDown = function (event) {\r\n // Stop all input events during drag.\r\n event.preventDefault();\r\n event.stopPropagation();\r\n // Release the mouse if `Escape` is pressed.\r\n if (event.keyCode === 27) {\r\n this._releaseMouse();\r\n }\r\n };\r\n /**\r\n * Handle the `'mousedown'` event for the tab bar.\r\n */\r\n TabBar.prototype._evtMouseDown = function (event) {\r\n // Do nothing if it's not a left or middle mouse press.\r\n if (event.button !== 0 && event.button !== 1) {\r\n return;\r\n }\r\n // Do nothing if a drag is in progress.\r\n if (this._dragData) {\r\n return;\r\n }\r\n // Lookup the tab nodes.\r\n var tabs = this.contentNode.children;\r\n // Find the index of the pressed tab.\r\n var index = algorithm_1.ArrayExt.findFirstIndex(tabs, function (tab) {\r\n return domutils_1.ElementExt.hitTest(tab, event.clientX, event.clientY);\r\n });\r\n // Do nothing if the press is not on a tab.\r\n if (index === -1) {\r\n return;\r\n }\r\n // Pressing on a tab stops the event propagation.\r\n event.preventDefault();\r\n event.stopPropagation();\r\n // Initialize the non-measured parts of the drag data.\r\n this._dragData = {\r\n tab: tabs[index],\r\n index: index,\r\n pressX: event.clientX,\r\n pressY: event.clientY,\r\n tabPos: -1,\r\n tabSize: -1,\r\n tabPressPos: -1,\r\n targetIndex: -1,\r\n tabLayout: null,\r\n contentRect: null,\r\n override: null,\r\n dragActive: false,\r\n dragAborted: false,\r\n detachRequested: false\r\n };\r\n // Add the document mouse up listener.\r\n document.addEventListener('mouseup', this, true);\r\n // Do nothing else if the middle button is clicked.\r\n if (event.button === 1) {\r\n return;\r\n }\r\n // Do nothing else if the close icon is clicked.\r\n var icon = tabs[index].querySelector(this.renderer.closeIconSelector);\r\n if (icon && icon.contains(event.target)) {\r\n return;\r\n }\r\n // Add the extra listeners if the tabs are movable.\r\n if (this.tabsMovable) {\r\n document.addEventListener('mousemove', this, true);\r\n document.addEventListener('keydown', this, true);\r\n document.addEventListener('contextmenu', this, true);\r\n }\r\n // Update the current index as appropriate.\r\n if (this.allowDeselect && this.currentIndex === index) {\r\n this.currentIndex = -1;\r\n }\r\n else {\r\n this.currentIndex = index;\r\n }\r\n // Do nothing else if there is no current tab.\r\n if (this.currentIndex === -1) {\r\n return;\r\n }\r\n // Emit the tab activate request signal.\r\n this._tabActivateRequested.emit({\r\n index: this.currentIndex, title: this.currentTitle\r\n });\r\n };\r\n /**\r\n * Handle the `'mousemove'` event for the tab bar.\r\n */\r\n TabBar.prototype._evtMouseMove = function (event) {\r\n // Do nothing if no drag is in progress.\r\n var data = this._dragData;\r\n if (!data) {\r\n return;\r\n }\r\n // Suppress the event during a drag.\r\n event.preventDefault();\r\n event.stopPropagation();\r\n // Lookup the tab nodes.\r\n var tabs = this.contentNode.children;\r\n // Bail early if the drag threshold has not been met.\r\n if (!data.dragActive && !Private.dragExceeded(data, event)) {\r\n return;\r\n }\r\n // Activate the drag if necessary.\r\n if (!data.dragActive) {\r\n // Fill in the rest of the drag data measurements.\r\n var tabRect = data.tab.getBoundingClientRect();\r\n if (this._orientation === 'horizontal') {\r\n data.tabPos = data.tab.offsetLeft;\r\n data.tabSize = tabRect.width;\r\n data.tabPressPos = data.pressX - tabRect.left;\r\n }\r\n else {\r\n data.tabPos = data.tab.offsetTop;\r\n data.tabSize = tabRect.height;\r\n data.tabPressPos = data.pressY - tabRect.top;\r\n }\r\n data.tabLayout = Private.snapTabLayout(tabs, this._orientation);\r\n data.contentRect = this.contentNode.getBoundingClientRect();\r\n data.override = dragdrop_1.Drag.overrideCursor('default');\r\n // Add the dragging style classes.\r\n data.tab.classList.add('p-mod-dragging');\r\n this.addClass('p-mod-dragging');\r\n // Mark the drag as active.\r\n data.dragActive = true;\r\n }\r\n // Emit the detach requested signal if the threshold is exceeded.\r\n if (!data.detachRequested && Private.detachExceeded(data, event)) {\r\n // Only emit the signal once per drag cycle.\r\n data.detachRequested = true;\r\n // Setup the arguments for the signal.\r\n var index = data.index;\r\n var clientX = event.clientX;\r\n var clientY = event.clientY;\r\n var tab = tabs[index];\r\n var title = this._titles[index];\r\n // Emit the tab detach requested signal.\r\n this._tabDetachRequested.emit({ index: index, title: title, tab: tab, clientX: clientX, clientY: clientY });\r\n // Bail if the signal handler aborted the drag.\r\n if (data.dragAborted) {\r\n return;\r\n }\r\n }\r\n // Update the positions of the tabs.\r\n Private.layoutTabs(tabs, data, event, this._orientation);\r\n };\r\n /**\r\n * Handle the `'mouseup'` event for the document.\r\n */\r\n TabBar.prototype._evtMouseUp = function (event) {\r\n var _this = this;\r\n // Do nothing if it's not a left or middle mouse release.\r\n if (event.button !== 0 && event.button !== 1) {\r\n return;\r\n }\r\n // Do nothing if no drag is in progress.\r\n var data = this._dragData;\r\n if (!data) {\r\n return;\r\n }\r\n // Stop the event propagation.\r\n event.preventDefault();\r\n event.stopPropagation();\r\n // Remove the extra mouse event listeners.\r\n document.removeEventListener('mousemove', this, true);\r\n document.removeEventListener('mouseup', this, true);\r\n document.removeEventListener('keydown', this, true);\r\n document.removeEventListener('contextmenu', this, true);\r\n // Handle a release when the drag is not active.\r\n if (!data.dragActive) {\r\n // Clear the drag data.\r\n this._dragData = null;\r\n // Lookup the tab nodes.\r\n var tabs = this.contentNode.children;\r\n // Find the index of the released tab.\r\n var index = algorithm_1.ArrayExt.findFirstIndex(tabs, function (tab) {\r\n return domutils_1.ElementExt.hitTest(tab, event.clientX, event.clientY);\r\n });\r\n // Do nothing if the release is not on the original pressed tab.\r\n if (index !== data.index) {\r\n return;\r\n }\r\n // Ignore the release if the title is not closable.\r\n var title = this._titles[index];\r\n if (!title.closable) {\r\n return;\r\n }\r\n // Emit the close requested signal if the middle button is released.\r\n if (event.button === 1) {\r\n this._tabCloseRequested.emit({ index: index, title: title });\r\n return;\r\n }\r\n // Emit the close requested signal if the close icon was released.\r\n var icon = tabs[index].querySelector(this.renderer.closeIconSelector);\r\n if (icon && icon.contains(event.target)) {\r\n this._tabCloseRequested.emit({ index: index, title: title });\r\n return;\r\n }\r\n // Otherwise, there is nothing left to do.\r\n return;\r\n }\r\n // Do nothing if the left button is not released.\r\n if (event.button !== 0) {\r\n return;\r\n }\r\n // Position the tab at its final resting position.\r\n Private.finalizeTabPosition(data, this._orientation);\r\n // Remove the dragging class from the tab so it can be transitioned.\r\n data.tab.classList.remove('p-mod-dragging');\r\n // Parse the transition duration for releasing the tab.\r\n var duration = Private.parseTransitionDuration(data.tab);\r\n // Complete the release on a timer to allow the tab to transition.\r\n setTimeout(function () {\r\n // Do nothing if the drag has been aborted.\r\n if (data.dragAborted) {\r\n return;\r\n }\r\n // Clear the drag data reference.\r\n _this._dragData = null;\r\n // Reset the positions of the tabs.\r\n Private.resetTabPositions(_this.contentNode.children, _this._orientation);\r\n // Clear the cursor grab.\r\n data.override.dispose();\r\n // Remove the remaining dragging style.\r\n _this.removeClass('p-mod-dragging');\r\n // If the tab was not moved, there is nothing else to do.\r\n var i = data.index;\r\n var j = data.targetIndex;\r\n if (j === -1 || i === j) {\r\n return;\r\n }\r\n // Move the title to the new locations.\r\n algorithm_1.ArrayExt.move(_this._titles, i, j);\r\n // Adjust the current index for the move.\r\n _this._adjustCurrentForMove(i, j);\r\n // Emit the tab moved signal.\r\n _this._tabMoved.emit({\r\n fromIndex: i, toIndex: j, title: _this._titles[j]\r\n });\r\n // Update the tabs immediately to prevent flicker.\r\n messaging_1.MessageLoop.sendMessage(_this, widget_1.Widget.Msg.UpdateRequest);\r\n }, duration);\r\n };\r\n /**\r\n * Release the mouse and restore the non-dragged tab positions.\r\n */\r\n TabBar.prototype._releaseMouse = function () {\r\n // Do nothing if no drag is in progress.\r\n var data = this._dragData;\r\n if (!data) {\r\n return;\r\n }\r\n // Clear the drag data reference.\r\n this._dragData = null;\r\n // Remove the extra mouse listeners.\r\n document.removeEventListener('mousemove', this, true);\r\n document.removeEventListener('mouseup', this, true);\r\n document.removeEventListener('keydown', this, true);\r\n document.removeEventListener('contextmenu', this, true);\r\n // Indicate the drag has been aborted. This allows the mouse\r\n // event handlers to return early when the drag is canceled.\r\n data.dragAborted = true;\r\n // If the drag is not active, there's nothing more to do.\r\n if (!data.dragActive) {\r\n return;\r\n }\r\n // Reset the tabs to their non-dragged positions.\r\n Private.resetTabPositions(this.contentNode.children, this._orientation);\r\n // Clear the cursor override.\r\n data.override.dispose();\r\n // Clear the dragging style classes.\r\n data.tab.classList.remove('p-mod-dragging');\r\n this.removeClass('p-mod-dragging');\r\n };\r\n /**\r\n * Adjust the current index for a tab insert operation.\r\n *\r\n * This method accounts for the tab bar's insertion behavior when\r\n * adjusting the current index and emitting the changed signal.\r\n */\r\n TabBar.prototype._adjustCurrentForInsert = function (i, title) {\r\n // Lookup commonly used variables.\r\n var ct = this.currentTitle;\r\n var ci = this._currentIndex;\r\n var bh = this.insertBehavior;\r\n // Handle the behavior where the new tab is always selected,\r\n // or the behavior where the new tab is selected if needed.\r\n if (bh === 'select-tab' || (bh === 'select-tab-if-needed' && ci === -1)) {\r\n this._currentIndex = i;\r\n this._previousTitle = ct;\r\n this._currentChanged.emit({\r\n previousIndex: ci, previousTitle: ct,\r\n currentIndex: i, currentTitle: title\r\n });\r\n return;\r\n }\r\n // Otherwise, silently adjust the current index if needed.\r\n if (ci >= i) {\r\n this._currentIndex++;\r\n }\r\n };\r\n /**\r\n * Adjust the current index for a tab move operation.\r\n *\r\n * This method will not cause the actual current tab to change.\r\n * It silently adjusts the index to account for the given move.\r\n */\r\n TabBar.prototype._adjustCurrentForMove = function (i, j) {\r\n if (this._currentIndex === i) {\r\n this._currentIndex = j;\r\n }\r\n else if (this._currentIndex < i && this._currentIndex >= j) {\r\n this._currentIndex++;\r\n }\r\n else if (this._currentIndex > i && this._currentIndex <= j) {\r\n this._currentIndex--;\r\n }\r\n };\r\n /**\r\n * Adjust the current index for a tab remove operation.\r\n *\r\n * This method accounts for the tab bar's remove behavior when\r\n * adjusting the current index and emitting the changed signal.\r\n */\r\n TabBar.prototype._adjustCurrentForRemove = function (i, title) {\r\n // Lookup commonly used variables.\r\n var ci = this._currentIndex;\r\n var bh = this.removeBehavior;\r\n // Silently adjust the index if the current tab is not removed.\r\n if (ci !== i) {\r\n if (ci > i) {\r\n this._currentIndex--;\r\n }\r\n return;\r\n }\r\n // No tab gets selected if the tab bar is empty.\r\n if (this._titles.length === 0) {\r\n this._currentIndex = -1;\r\n this._currentChanged.emit({\r\n previousIndex: i, previousTitle: title,\r\n currentIndex: -1, currentTitle: null\r\n });\r\n return;\r\n }\r\n // Handle behavior where the next sibling tab is selected.\r\n if (bh === 'select-tab-after') {\r\n this._currentIndex = Math.min(i, this._titles.length - 1);\r\n this._currentChanged.emit({\r\n previousIndex: i, previousTitle: title,\r\n currentIndex: this._currentIndex, currentTitle: this.currentTitle\r\n });\r\n return;\r\n }\r\n // Handle behavior where the previous sibling tab is selected.\r\n if (bh === 'select-tab-before') {\r\n this._currentIndex = Math.max(0, i - 1);\r\n this._currentChanged.emit({\r\n previousIndex: i, previousTitle: title,\r\n currentIndex: this._currentIndex, currentTitle: this.currentTitle\r\n });\r\n return;\r\n }\r\n // Handle behavior where the previous history tab is selected.\r\n if (bh === 'select-previous-tab') {\r\n if (this._previousTitle) {\r\n this._currentIndex = this._titles.indexOf(this._previousTitle);\r\n this._previousTitle = null;\r\n }\r\n else {\r\n this._currentIndex = Math.min(i, this._titles.length - 1);\r\n }\r\n this._currentChanged.emit({\r\n previousIndex: i, previousTitle: title,\r\n currentIndex: this._currentIndex, currentTitle: this.currentTitle\r\n });\r\n return;\r\n }\r\n // Otherwise, no tab gets selected.\r\n this._currentIndex = -1;\r\n this._currentChanged.emit({\r\n previousIndex: i, previousTitle: title,\r\n currentIndex: -1, currentTitle: null\r\n });\r\n };\r\n /**\r\n * Handle the `changed` signal of a title object.\r\n */\r\n TabBar.prototype._onTitleChanged = function (sender) {\r\n this.update();\r\n };\r\n return TabBar;\r\n}(widget_1.Widget));\r\nexports.TabBar = TabBar;\r\n/**\r\n * The namespace for the `TabBar` class statics.\r\n */\r\n(function (TabBar) {\r\n /**\r\n * The default implementation of `IRenderer`.\r\n *\r\n * #### Notes\r\n * Subclasses are free to reimplement rendering methods as needed.\r\n */\r\n var Renderer = (function () {\r\n /**\r\n * Construct a new renderer.\r\n */\r\n function Renderer() {\r\n /**\r\n * A selector which matches the close icon node in a tab.\r\n */\r\n this.closeIconSelector = '.p-TabBar-tabCloseIcon';\r\n this._tabID = 0;\r\n this._tabKeys = new WeakMap();\r\n }\r\n /**\r\n * Render the virtual element for a tab.\r\n *\r\n * @param data - The data to use for rendering the tab.\r\n *\r\n * @returns A virtual element representing the tab.\r\n */\r\n Renderer.prototype.renderTab = function (data) {\r\n var title = data.title.caption;\r\n var key = this.createTabKey(data);\r\n var style = this.createTabStyle(data);\r\n var className = this.createTabClass(data);\r\n var dataset = this.createTabDataset(data);\r\n return (virtualdom_1.h.li({ key: key, className: className, title: title, style: style, dataset: dataset }, this.renderIcon(data), this.renderLabel(data), this.renderCloseIcon(data)));\r\n };\r\n /**\r\n * Render the icon element for a tab.\r\n *\r\n * @param data - The data to use for rendering the tab.\r\n *\r\n * @returns A virtual element representing the tab icon.\r\n */\r\n Renderer.prototype.renderIcon = function (data) {\r\n var className = this.createIconClass(data);\r\n return virtualdom_1.h.div({ className: className }, data.title.iconLabel);\r\n };\r\n /**\r\n * Render the label element for a tab.\r\n *\r\n * @param data - The data to use for rendering the tab.\r\n *\r\n * @returns A virtual element representing the tab label.\r\n */\r\n Renderer.prototype.renderLabel = function (data) {\r\n return virtualdom_1.h.div({ className: 'p-TabBar-tabLabel' }, data.title.label);\r\n };\r\n /**\r\n * Render the close icon element for a tab.\r\n *\r\n * @param data - The data to use for rendering the tab.\r\n *\r\n * @returns A virtual element representing the tab close icon.\r\n */\r\n Renderer.prototype.renderCloseIcon = function (data) {\r\n return virtualdom_1.h.div({ className: 'p-TabBar-tabCloseIcon' });\r\n };\r\n /**\r\n * Create a unique render key for the tab.\r\n *\r\n * @param data - The data to use for the tab.\r\n *\r\n * @returns The unique render key for the tab.\r\n *\r\n * #### Notes\r\n * This method caches the key against the tab title the first time\r\n * the key is generated. This enables efficient rendering of moved\r\n * tabs and avoids subtle hover style artifacts.\r\n */\r\n Renderer.prototype.createTabKey = function (data) {\r\n var key = this._tabKeys.get(data.title);\r\n if (key === undefined) {\r\n key = \"tab-key-\" + this._tabID++;\r\n this._tabKeys.set(data.title, key);\r\n }\r\n return key;\r\n };\r\n /**\r\n * Create the inline style object for a tab.\r\n *\r\n * @param data - The data to use for the tab.\r\n *\r\n * @returns The inline style data for the tab.\r\n */\r\n Renderer.prototype.createTabStyle = function (data) {\r\n return { zIndex: \"\" + data.zIndex };\r\n };\r\n /**\r\n * Create the class name for the tab.\r\n *\r\n * @param data - The data to use for the tab.\r\n *\r\n * @returns The full class name for the tab.\r\n */\r\n Renderer.prototype.createTabClass = function (data) {\r\n var name = 'p-TabBar-tab';\r\n if (data.title.className) {\r\n name += \" \" + data.title.className;\r\n }\r\n if (data.title.closable) {\r\n name += ' p-mod-closable';\r\n }\r\n if (data.current) {\r\n name += ' p-mod-current';\r\n }\r\n return name;\r\n };\r\n /**\r\n * Create the dataset for a tab.\r\n *\r\n * @param data - The data to use for the tab.\r\n *\r\n * @returns The dataset for the tab.\r\n */\r\n Renderer.prototype.createTabDataset = function (data) {\r\n return data.title.dataset;\r\n };\r\n /**\r\n * Create the class name for the tab icon.\r\n *\r\n * @param data - The data to use for the tab.\r\n *\r\n * @returns The full class name for the tab icon.\r\n */\r\n Renderer.prototype.createIconClass = function (data) {\r\n var name = 'p-TabBar-tabIcon';\r\n var extra = data.title.iconClass;\r\n return extra ? name + \" \" + extra : name;\r\n };\r\n return Renderer;\r\n }());\r\n TabBar.Renderer = Renderer;\r\n /**\r\n * The default `Renderer` instance.\r\n */\r\n TabBar.defaultRenderer = new Renderer();\r\n})(TabBar = exports.TabBar || (exports.TabBar = {}));\r\nexports.TabBar = TabBar;\r\n/**\r\n * The namespace for the module implementation details.\r\n */\r\nvar Private;\r\n(function (Private) {\r\n /**\r\n * The start drag distance threshold.\r\n */\r\n Private.DRAG_THRESHOLD = 5;\r\n /**\r\n * The detach distance threshold.\r\n */\r\n Private.DETACH_THRESHOLD = 20;\r\n /**\r\n * Create the DOM node for a tab bar.\r\n */\r\n function createNode() {\r\n var node = document.createElement('div');\r\n var content = document.createElement('ul');\r\n content.className = 'p-TabBar-content';\r\n node.appendChild(content);\r\n return node;\r\n }\r\n Private.createNode = createNode;\r\n /**\r\n * Coerce a title or options into a real title.\r\n */\r\n function asTitle(value) {\r\n return value instanceof title_1.Title ? value : new title_1.Title(value);\r\n }\r\n Private.asTitle = asTitle;\r\n /**\r\n * Parse the transition duration for a tab node.\r\n */\r\n function parseTransitionDuration(tab) {\r\n var style = window.getComputedStyle(tab);\r\n return 1000 * (parseFloat(style.transitionDuration) || 0);\r\n }\r\n Private.parseTransitionDuration = parseTransitionDuration;\r\n /**\r\n * Get a snapshot of the current tab layout values.\r\n */\r\n function snapTabLayout(tabs, orientation) {\r\n var layout = new Array(tabs.length);\r\n for (var i = 0, n = tabs.length; i < n; ++i) {\r\n var node = tabs[i];\r\n var style = window.getComputedStyle(node);\r\n if (orientation === 'horizontal') {\r\n layout[i] = {\r\n pos: node.offsetLeft,\r\n size: node.offsetWidth,\r\n margin: parseFloat(style.marginLeft) || 0\r\n };\r\n }\r\n else {\r\n layout[i] = {\r\n pos: node.offsetTop,\r\n size: node.offsetHeight,\r\n margin: parseFloat(style.marginTop) || 0\r\n };\r\n }\r\n }\r\n return layout;\r\n }\r\n Private.snapTabLayout = snapTabLayout;\r\n /**\r\n * Test if the event exceeds the drag threshold.\r\n */\r\n function dragExceeded(data, event) {\r\n var dx = Math.abs(event.clientX - data.pressX);\r\n var dy = Math.abs(event.clientY - data.pressY);\r\n return dx >= Private.DRAG_THRESHOLD || dy >= Private.DRAG_THRESHOLD;\r\n }\r\n Private.dragExceeded = dragExceeded;\r\n /**\r\n * Test if the event exceeds the drag detach threshold.\r\n */\r\n function detachExceeded(data, event) {\r\n var rect = data.contentRect;\r\n return ((event.clientX < rect.left - Private.DETACH_THRESHOLD) ||\r\n (event.clientX >= rect.right + Private.DETACH_THRESHOLD) ||\r\n (event.clientY < rect.top - Private.DETACH_THRESHOLD) ||\r\n (event.clientY >= rect.bottom + Private.DETACH_THRESHOLD));\r\n }\r\n Private.detachExceeded = detachExceeded;\r\n /**\r\n * Update the relative tab positions and computed target index.\r\n */\r\n function layoutTabs(tabs, data, event, orientation) {\r\n // Compute the orientation-sensitive values.\r\n var pressPos;\r\n var localPos;\r\n var clientPos;\r\n var clientSize;\r\n if (orientation === 'horizontal') {\r\n pressPos = data.pressX;\r\n localPos = event.clientX - data.contentRect.left;\r\n clientPos = event.clientX;\r\n clientSize = data.contentRect.width;\r\n }\r\n else {\r\n pressPos = data.pressY;\r\n localPos = event.clientY - data.contentRect.top;\r\n clientPos = event.clientY;\r\n clientSize = data.contentRect.height;\r\n }\r\n // Compute the target data.\r\n var targetIndex = data.index;\r\n var targetPos = localPos - data.tabPressPos;\r\n var targetEnd = targetPos + data.tabSize;\r\n // Update the relative tab positions.\r\n for (var i = 0, n = tabs.length; i < n; ++i) {\r\n var pxPos = void 0;\r\n var layout = data.tabLayout[i];\r\n var threshold = layout.pos + (layout.size >> 1);\r\n if (i < data.index && targetPos < threshold) {\r\n pxPos = data.tabSize + data.tabLayout[i + 1].margin + \"px\";\r\n targetIndex = Math.min(targetIndex, i);\r\n }\r\n else if (i > data.index && targetEnd > threshold) {\r\n pxPos = -data.tabSize - layout.margin + \"px\";\r\n targetIndex = Math.max(targetIndex, i);\r\n }\r\n else if (i === data.index) {\r\n var ideal = clientPos - pressPos;\r\n var limit = clientSize - (data.tabPos + data.tabSize);\r\n pxPos = Math.max(-data.tabPos, Math.min(ideal, limit)) + \"px\";\r\n }\r\n else {\r\n pxPos = '';\r\n }\r\n if (orientation === 'horizontal') {\r\n tabs[i].style.left = pxPos;\r\n }\r\n else {\r\n tabs[i].style.top = pxPos;\r\n }\r\n }\r\n // Update the computed target index.\r\n data.targetIndex = targetIndex;\r\n }\r\n Private.layoutTabs = layoutTabs;\r\n /**\r\n * Position the drag tab at its final resting relative position.\r\n */\r\n function finalizeTabPosition(data, orientation) {\r\n // Compute the orientation-sensitive client size.\r\n var clientSize;\r\n if (orientation === 'horizontal') {\r\n clientSize = data.contentRect.width;\r\n }\r\n else {\r\n clientSize = data.contentRect.height;\r\n }\r\n // Compute the ideal final tab position.\r\n var ideal;\r\n if (data.targetIndex === data.index) {\r\n ideal = 0;\r\n }\r\n else if (data.targetIndex > data.index) {\r\n var tgt = data.tabLayout[data.targetIndex];\r\n ideal = tgt.pos + tgt.size - data.tabSize - data.tabPos;\r\n }\r\n else {\r\n var tgt = data.tabLayout[data.targetIndex];\r\n ideal = tgt.pos - data.tabPos;\r\n }\r\n // Compute the tab position limit.\r\n var limit = clientSize - (data.tabPos + data.tabSize);\r\n var final = Math.max(-data.tabPos, Math.min(ideal, limit));\r\n // Set the final orientation-sensitive position.\r\n if (orientation === 'horizontal') {\r\n data.tab.style.left = final + \"px\";\r\n }\r\n else {\r\n data.tab.style.top = final + \"px\";\r\n }\r\n }\r\n Private.finalizeTabPosition = finalizeTabPosition;\r\n /**\r\n * Reset the relative positions of the given tabs.\r\n */\r\n function resetTabPositions(tabs, orientation) {\r\n algorithm_1.each(tabs, function (tab) {\r\n if (orientation === 'horizontal') {\r\n tab.style.left = '';\r\n }\r\n else {\r\n tab.style.top = '';\r\n }\r\n });\r\n }\r\n Private.resetTabPositions = resetTabPositions;\r\n})(Private || (Private = {}));\r\n\n\n/***/ }),\n/* 19 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/*-----------------------------------------------------------------------------\r\n| Copyright (c) 2014-2017, PhosphorJS Contributors\r\n|\r\n| Distributed under the terms of the BSD 3-Clause License.\r\n|\r\n| The full license is in the file LICENSE, distributed with this software.\r\n|----------------------------------------------------------------------------*/\r\nvar signaling_1 = __webpack_require__(4);\r\n/**\r\n * An object which holds data related to an object's title.\r\n *\r\n * #### Notes\r\n * A title object is intended to hold the data necessary to display a\r\n * header for a particular object. A common example is the `TabPanel`,\r\n * which uses the widget title to populate the tab for a child widget.\r\n */\r\nvar Title = (function () {\r\n /**\r\n * Construct a new title.\r\n *\r\n * @param options - The options for initializing the title.\r\n */\r\n function Title(options) {\r\n this._label = '';\r\n this._caption = '';\r\n this._mnemonic = -1;\r\n this._iconClass = '';\r\n this._iconLabel = '';\r\n this._className = '';\r\n this._closable = false;\r\n this._changed = new signaling_1.Signal(this);\r\n this.owner = options.owner;\r\n if (options.label !== undefined) {\r\n this._label = options.label;\r\n }\r\n if (options.mnemonic !== undefined) {\r\n this._mnemonic = options.mnemonic;\r\n }\r\n if (options.icon !== undefined) {\r\n this._iconClass = options.icon;\r\n }\r\n if (options.iconClass !== undefined) {\r\n this._iconClass = options.iconClass;\r\n }\r\n if (options.iconLabel !== undefined) {\r\n this._iconLabel = options.iconLabel;\r\n }\r\n if (options.caption !== undefined) {\r\n this._caption = options.caption;\r\n }\r\n if (options.className !== undefined) {\r\n this._className = options.className;\r\n }\r\n if (options.closable !== undefined) {\r\n this._closable = options.closable;\r\n }\r\n this._dataset = options.dataset || {};\r\n }\r\n Object.defineProperty(Title.prototype, \"changed\", {\r\n /**\r\n * A signal emitted when the state of the title changes.\r\n */\r\n get: function () {\r\n return this._changed;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Title.prototype, \"label\", {\r\n /**\r\n * Get the label for the title.\r\n *\r\n * #### Notes\r\n * The default value is an empty string.\r\n */\r\n get: function () {\r\n return this._label;\r\n },\r\n /**\r\n * Set the label for the title.\r\n */\r\n set: function (value) {\r\n if (this._label === value) {\r\n return;\r\n }\r\n this._label = value;\r\n this._changed.emit(undefined);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Title.prototype, \"mnemonic\", {\r\n /**\r\n * Get the mnemonic index for the title.\r\n *\r\n * #### Notes\r\n * The default value is `-1`.\r\n */\r\n get: function () {\r\n return this._mnemonic;\r\n },\r\n /**\r\n * Set the mnemonic index for the title.\r\n */\r\n set: function (value) {\r\n if (this._mnemonic === value) {\r\n return;\r\n }\r\n this._mnemonic = value;\r\n this._changed.emit(undefined);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Title.prototype, \"icon\", {\r\n /**\r\n * @deprecated Use `iconClass` instead.\r\n */\r\n get: function () {\r\n return this.iconClass;\r\n },\r\n /**\r\n * @deprecated Use `iconClass` instead.\r\n */\r\n set: function (value) {\r\n this.iconClass = value;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Title.prototype, \"iconClass\", {\r\n /**\r\n * Get the icon class name for the title.\r\n *\r\n * #### Notes\r\n * The default value is an empty string.\r\n */\r\n get: function () {\r\n return this._iconClass;\r\n },\r\n /**\r\n * Set the icon class name for the title.\r\n *\r\n * #### Notes\r\n * Multiple class names can be separated with whitespace.\r\n */\r\n set: function (value) {\r\n if (this._iconClass === value) {\r\n return;\r\n }\r\n this._iconClass = value;\r\n this._changed.emit(undefined);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Title.prototype, \"iconLabel\", {\r\n /**\r\n * Get the icon label for the title.\r\n *\r\n * #### Notes\r\n * The default value is an empty string.\r\n */\r\n get: function () {\r\n return this._iconLabel;\r\n },\r\n /**\r\n * Set the icon label for the title.\r\n *\r\n * #### Notes\r\n * Multiple class names can be separated with whitespace.\r\n */\r\n set: function (value) {\r\n if (this._iconLabel === value) {\r\n return;\r\n }\r\n this._iconLabel = value;\r\n this._changed.emit(undefined);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Title.prototype, \"caption\", {\r\n /**\r\n * Get the caption for the title.\r\n *\r\n * #### Notes\r\n * The default value is an empty string.\r\n */\r\n get: function () {\r\n return this._caption;\r\n },\r\n /**\r\n * Set the caption for the title.\r\n */\r\n set: function (value) {\r\n if (this._caption === value) {\r\n return;\r\n }\r\n this._caption = value;\r\n this._changed.emit(undefined);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Title.prototype, \"className\", {\r\n /**\r\n * Get the extra class name for the title.\r\n *\r\n * #### Notes\r\n * The default value is an empty string.\r\n */\r\n get: function () {\r\n return this._className;\r\n },\r\n /**\r\n * Set the extra class name for the title.\r\n *\r\n * #### Notes\r\n * Multiple class names can be separated with whitespace.\r\n */\r\n set: function (value) {\r\n if (this._className === value) {\r\n return;\r\n }\r\n this._className = value;\r\n this._changed.emit(undefined);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Title.prototype, \"closable\", {\r\n /**\r\n * Get the closable state for the title.\r\n *\r\n * #### Notes\r\n * The default value is `false`.\r\n */\r\n get: function () {\r\n return this._closable;\r\n },\r\n /**\r\n * Set the closable state for the title.\r\n *\r\n * #### Notes\r\n * This controls the presence of a close icon when applicable.\r\n */\r\n set: function (value) {\r\n if (this._closable === value) {\r\n return;\r\n }\r\n this._closable = value;\r\n this._changed.emit(undefined);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Title.prototype, \"dataset\", {\r\n /**\r\n * Get the dataset for the title.\r\n *\r\n * #### Notes\r\n * The default value is an empty dataset.\r\n */\r\n get: function () {\r\n return this._dataset;\r\n },\r\n /**\r\n * Set the dataset for the title.\r\n *\r\n * #### Notes\r\n * This controls the data attributes when applicable.\r\n */\r\n set: function (value) {\r\n if (this._dataset === value) {\r\n return;\r\n }\r\n this._dataset = value;\r\n this._changed.emit(undefined);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return Title;\r\n}());\r\nexports.Title = Title;\r\n\n\n/***/ }),\n/* 20 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar apply = Function.prototype.apply;\n\n// DOM APIs, for completeness\n\nexports.setTimeout = function() {\n return new Timeout(apply.call(setTimeout, window, arguments), clearTimeout);\n};\nexports.setInterval = function() {\n return new Timeout(apply.call(setInterval, window, arguments), clearInterval);\n};\nexports.clearTimeout =\nexports.clearInterval = function(timeout) {\n if (timeout) {\n timeout.close();\n }\n};\n\nfunction Timeout(id, clearFn) {\n this._id = id;\n this._clearFn = clearFn;\n}\nTimeout.prototype.unref = Timeout.prototype.ref = function() {};\nTimeout.prototype.close = function() {\n this._clearFn.call(window, this._id);\n};\n\n// Does not start the time, just sets up the members needed.\nexports.enroll = function(item, msecs) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = msecs;\n};\n\nexports.unenroll = function(item) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = -1;\n};\n\nexports._unrefActive = exports.active = function(item) {\n clearTimeout(item._idleTimeoutId);\n\n var msecs = item._idleTimeout;\n if (msecs >= 0) {\n item._idleTimeoutId = setTimeout(function onTimeout() {\n if (item._onTimeout)\n item._onTimeout();\n }, msecs);\n }\n};\n\n// setimmediate attaches itself to the global object\n__webpack_require__(63);\nexports.setImmediate = setImmediate;\nexports.clearImmediate = clearImmediate;\n\n\n/***/ }),\n/* 21 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nfunction __export(m) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/*-----------------------------------------------------------------------------\r\n| Copyright (c) 2014-2017, PhosphorJS Contributors\r\n|\r\n| Distributed under the terms of the BSD 3-Clause License.\r\n|\r\n| The full license is in the file LICENSE, distributed with this software.\r\n|----------------------------------------------------------------------------*/\r\n__export(__webpack_require__(46));\r\n\n\n/***/ }),\n/* 22 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nfunction __export(m) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/*-----------------------------------------------------------------------------\r\n| Copyright (c) 2014-2017, PhosphorJS Contributors\r\n|\r\n| Distributed under the terms of the BSD 3-Clause License.\r\n|\r\n| The full license is in the file LICENSE, distributed with this software.\r\n|----------------------------------------------------------------------------*/\r\n__export(__webpack_require__(15));\r\n__export(__webpack_require__(17));\r\n__export(__webpack_require__(54));\r\n__export(__webpack_require__(55));\r\n__export(__webpack_require__(56));\r\n__export(__webpack_require__(23));\r\n__export(__webpack_require__(57));\r\n__export(__webpack_require__(58));\r\n__export(__webpack_require__(8));\r\n__export(__webpack_require__(24));\r\n__export(__webpack_require__(59));\r\n__export(__webpack_require__(16));\r\n__export(__webpack_require__(10));\r\n__export(__webpack_require__(25));\r\n__export(__webpack_require__(60));\r\n__export(__webpack_require__(26));\r\n__export(__webpack_require__(27));\r\n__export(__webpack_require__(18));\r\n__export(__webpack_require__(61));\r\n__export(__webpack_require__(19));\r\n__export(__webpack_require__(2));\r\n\n\n/***/ }),\n/* 23 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/*-----------------------------------------------------------------------------\r\n| Copyright (c) 2014-2017, PhosphorJS Contributors\r\n|\r\n| Distributed under the terms of the BSD 3-Clause License.\r\n|\r\n| The full license is in the file LICENSE, distributed with this software.\r\n|----------------------------------------------------------------------------*/\r\nvar algorithm_1 = __webpack_require__(0);\r\nvar domutils_1 = __webpack_require__(1);\r\nvar messaging_1 = __webpack_require__(3);\r\nvar boxengine_1 = __webpack_require__(15);\r\nvar layout_1 = __webpack_require__(8);\r\nvar widget_1 = __webpack_require__(2);\r\n/**\r\n * A layout which provides a flexible docking arrangement.\r\n *\r\n * #### Notes\r\n * The consumer of this layout is repsonsible for handling all signals\r\n * from the generated tab bars and managing the visibility of widgets\r\n * and tab bars as needed.\r\n */\r\nvar DockLayout = (function (_super) {\r\n __extends(DockLayout, _super);\r\n /**\r\n * Construct a new dock layout.\r\n *\r\n * @param options - The options for initializing the layout.\r\n */\r\n function DockLayout(options) {\r\n var _this = _super.call(this) || this;\r\n _this._spacing = 4;\r\n _this._dirty = false;\r\n _this._root = null;\r\n _this._box = null;\r\n _this._items = new Map();\r\n _this.renderer = options.renderer;\r\n if (options.spacing !== undefined) {\r\n _this._spacing = Private.clampSpacing(options.spacing);\r\n }\r\n return _this;\r\n }\r\n /**\r\n * Dispose of the resources held by the layout.\r\n *\r\n * #### Notes\r\n * This will clear and dispose all widgets in the layout.\r\n */\r\n DockLayout.prototype.dispose = function () {\r\n // Get an iterator over the widgets in the layout.\r\n var widgets = this.iter();\r\n // Dispose of the layout items.\r\n this._items.forEach(function (item) { item.dispose(); });\r\n // Clear the layout state before disposing the widgets.\r\n this._box = null;\r\n this._root = null;\r\n this._items.clear();\r\n // Dispose of the widgets contained in the old layout root.\r\n algorithm_1.each(widgets, function (widget) { widget.dispose(); });\r\n // Dispose of the base class.\r\n _super.prototype.dispose.call(this);\r\n };\r\n Object.defineProperty(DockLayout.prototype, \"spacing\", {\r\n /**\r\n * Get the inter-element spacing for the dock layout.\r\n */\r\n get: function () {\r\n return this._spacing;\r\n },\r\n /**\r\n * Set the inter-element spacing for the dock layout.\r\n */\r\n set: function (value) {\r\n value = Private.clampSpacing(value);\r\n if (this._spacing === value) {\r\n return;\r\n }\r\n this._spacing = value;\r\n if (!this.parent) {\r\n return;\r\n }\r\n this.parent.fit();\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DockLayout.prototype, \"isEmpty\", {\r\n /**\r\n * Whether the dock layout is empty.\r\n */\r\n get: function () {\r\n return this._root === null;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * Create an iterator over all widgets in the layout.\r\n *\r\n * @returns A new iterator over the widgets in the layout.\r\n *\r\n * #### Notes\r\n * This iterator includes the generated tab bars.\r\n */\r\n DockLayout.prototype.iter = function () {\r\n return this._root ? this._root.iterAllWidgets() : algorithm_1.empty();\r\n };\r\n /**\r\n * Create an iterator over the user widgets in the layout.\r\n *\r\n * @returns A new iterator over the user widgets in the layout.\r\n *\r\n * #### Notes\r\n * This iterator does not include the generated tab bars.\r\n */\r\n DockLayout.prototype.widgets = function () {\r\n return this._root ? this._root.iterUserWidgets() : algorithm_1.empty();\r\n };\r\n /**\r\n * Create an iterator over the selected widgets in the layout.\r\n *\r\n * @returns A new iterator over the selected user widgets.\r\n *\r\n * #### Notes\r\n * This iterator yields the widgets corresponding to the current tab\r\n * of each tab bar in the layout.\r\n */\r\n DockLayout.prototype.selectedWidgets = function () {\r\n return this._root ? this._root.iterSelectedWidgets() : algorithm_1.empty();\r\n };\r\n /**\r\n * Create an iterator over the tab bars in the layout.\r\n *\r\n * @returns A new iterator over the tab bars in the layout.\r\n *\r\n * #### Notes\r\n * This iterator does not include the user widgets.\r\n */\r\n DockLayout.prototype.tabBars = function () {\r\n return this._root ? this._root.iterTabBars() : algorithm_1.empty();\r\n };\r\n /**\r\n * Create an iterator over the handles in the layout.\r\n *\r\n * @returns A new iterator over the handles in the layout.\r\n */\r\n DockLayout.prototype.handles = function () {\r\n return this._root ? this._root.iterHandles() : algorithm_1.empty();\r\n };\r\n /**\r\n * Move a handle to the given offset position.\r\n *\r\n * @param handle - The handle to move.\r\n *\r\n * @param offsetX - The desired offset X position of the handle.\r\n *\r\n * @param offsetY - The desired offset Y position of the handle.\r\n *\r\n * #### Notes\r\n * If the given handle is not contained in the layout, this is no-op.\r\n *\r\n * The handle will be moved as close as possible to the desired\r\n * position without violating any of the layout constraints.\r\n *\r\n * Only one of the coordinates is used depending on the orientation\r\n * of the handle. This method accepts both coordinates to make it\r\n * easy to invoke from a mouse move event without needing to know\r\n * the handle orientation.\r\n */\r\n DockLayout.prototype.moveHandle = function (handle, offsetX, offsetY) {\r\n // Bail early if there is no root or if the handle is hidden.\r\n if (!this._root || handle.classList.contains('p-mod-hidden')) {\r\n return;\r\n }\r\n // Lookup the split node for the handle.\r\n var data = this._root.findSplitNode(handle);\r\n if (!data) {\r\n return;\r\n }\r\n // Compute the desired delta movement for the handle.\r\n var delta;\r\n if (data.node.orientation === 'horizontal') {\r\n delta = offsetX - handle.offsetLeft;\r\n }\r\n else {\r\n delta = offsetY - handle.offsetTop;\r\n }\r\n // Bail if there is no handle movement.\r\n if (delta === 0) {\r\n return;\r\n }\r\n // Prevent sibling resizing unless needed.\r\n data.node.holdSizes();\r\n // Adjust the sizers to reflect the handle movement.\r\n boxengine_1.BoxEngine.adjust(data.node.sizers, data.index, delta);\r\n // Update the layout of the widgets.\r\n if (this.parent) {\r\n this.parent.update();\r\n }\r\n };\r\n /**\r\n * Save the current configuration of the dock layout.\r\n *\r\n * @returns A new config object for the current layout state.\r\n *\r\n * #### Notes\r\n * The return value can be provided to the `restoreLayout` method\r\n * in order to restore the layout to its current configuration.\r\n */\r\n DockLayout.prototype.saveLayout = function () {\r\n // Bail early if there is no root.\r\n if (!this._root) {\r\n return { main: null };\r\n }\r\n // Hold the current sizes in the layout tree.\r\n this._root.holdAllSizes();\r\n // Return the layout config.\r\n return { main: this._root.createConfig() };\r\n };\r\n /**\r\n * Restore the layout to a previously saved configuration.\r\n *\r\n * @param config - The layout configuration to restore.\r\n *\r\n * #### Notes\r\n * Widgets which currently belong to the layout but which are not\r\n * contained in the config will be unparented.\r\n */\r\n DockLayout.prototype.restoreLayout = function (config) {\r\n var _this = this;\r\n // Create the widget set for validating the config.\r\n var widgetSet = new Set();\r\n // Normalize the main area config and collect the widgets.\r\n var mainConfig;\r\n if (config.main) {\r\n mainConfig = Private.normalizeAreaConfig(config.main, widgetSet);\r\n }\r\n else {\r\n mainConfig = null;\r\n }\r\n // Create iterators over the old content.\r\n var oldWidgets = this.widgets();\r\n var oldTabBars = this.tabBars();\r\n var oldHandles = this.handles();\r\n // Clear the root before removing the old content.\r\n this._root = null;\r\n // Unparent the old widgets which are not in the new config.\r\n algorithm_1.each(oldWidgets, function (widget) {\r\n if (!widgetSet.has(widget)) {\r\n widget.parent = null;\r\n }\r\n });\r\n // Dispose of the old tab bars.\r\n algorithm_1.each(oldTabBars, function (tabBar) {\r\n tabBar.dispose();\r\n });\r\n // Remove the old handles.\r\n algorithm_1.each(oldHandles, function (handle) {\r\n if (handle.parentNode) {\r\n handle.parentNode.removeChild(handle);\r\n }\r\n });\r\n // Reparent the new widgets to the current parent.\r\n widgetSet.forEach(function (widget) {\r\n widget.parent = _this.parent;\r\n });\r\n // Create the root node for the new config.\r\n if (mainConfig) {\r\n this._root = Private.realizeAreaConfig(mainConfig, {\r\n createTabBar: function () { return _this._createTabBar(); },\r\n createHandle: function () { return _this._createHandle(); }\r\n });\r\n }\r\n else {\r\n this._root = null;\r\n }\r\n // If there is no parent, there is nothing more to do.\r\n if (!this.parent) {\r\n return;\r\n }\r\n // Attach the new widgets to the parent.\r\n widgetSet.forEach(function (widget) {\r\n _this.attachWidget(widget);\r\n });\r\n // Post a fit request to the parent.\r\n this.parent.fit();\r\n };\r\n /**\r\n * Add a widget to the dock layout.\r\n *\r\n * @param widget - The widget to add to the dock layout.\r\n *\r\n * @param options - The additional options for adding the widget.\r\n *\r\n * #### Notes\r\n * The widget will be moved if it is already contained in the layout.\r\n *\r\n * An error will be thrown if the reference widget is invalid.\r\n */\r\n DockLayout.prototype.addWidget = function (widget, options) {\r\n if (options === void 0) { options = {}; }\r\n // Parse the options.\r\n var ref = options.ref || null;\r\n var mode = options.mode || 'tab-after';\r\n // Find the tab node which holds the reference widget.\r\n var refNode = null;\r\n if (this._root && ref) {\r\n refNode = this._root.findTabNode(ref);\r\n }\r\n // Throw an error if the reference widget is invalid.\r\n if (ref && !refNode) {\r\n throw new Error('Reference widget is not in the layout.');\r\n }\r\n // Reparent the widget to the current layout parent.\r\n widget.parent = this.parent;\r\n // Insert the widget according to the insert mode.\r\n switch (mode) {\r\n case 'tab-after':\r\n this._insertTab(widget, ref, refNode, true);\r\n break;\r\n case 'tab-before':\r\n this._insertTab(widget, ref, refNode, false);\r\n break;\r\n case 'split-top':\r\n this._insertSplit(widget, ref, refNode, 'vertical', false);\r\n break;\r\n case 'split-left':\r\n this._insertSplit(widget, ref, refNode, 'horizontal', false);\r\n break;\r\n case 'split-right':\r\n this._insertSplit(widget, ref, refNode, 'horizontal', true);\r\n break;\r\n case 'split-bottom':\r\n this._insertSplit(widget, ref, refNode, 'vertical', true);\r\n break;\r\n }\r\n // Do nothing else if there is no parent widget.\r\n if (!this.parent) {\r\n return;\r\n }\r\n // Ensure the widget is attached to the parent widget.\r\n this.attachWidget(widget);\r\n // Post a fit request for the parent widget.\r\n this.parent.fit();\r\n };\r\n /**\r\n * Remove a widget from the layout.\r\n *\r\n * @param widget - The widget to remove from the layout.\r\n *\r\n * #### Notes\r\n * A widget is automatically removed from the layout when its `parent`\r\n * is set to `null`. This method should only be invoked directly when\r\n * removing a widget from a layout which has yet to be installed on a\r\n * parent widget.\r\n *\r\n * This method does *not* modify the widget's `parent`.\r\n */\r\n DockLayout.prototype.removeWidget = function (widget) {\r\n // Remove the widget from its current layout location.\r\n this._removeWidget(widget);\r\n // Do nothing else if there is no parent widget.\r\n if (!this.parent) {\r\n return;\r\n }\r\n // Detach the widget from the parent widget.\r\n this.detachWidget(widget);\r\n // Post a fit request for the parent widget.\r\n this.parent.fit();\r\n };\r\n /**\r\n * Find the tab area which contains the given client position.\r\n *\r\n * @param clientX - The client X position of interest.\r\n *\r\n * @param clientY - The client Y position of interest.\r\n *\r\n * @returns The geometry of the tab area at the given position, or\r\n * `null` if there is no tab area at the given position.\r\n */\r\n DockLayout.prototype.hitTestTabAreas = function (clientX, clientY) {\r\n // Bail early if hit testing cannot produce valid results.\r\n if (!this._root || !this.parent || !this.parent.isVisible) {\r\n return null;\r\n }\r\n // Ensure the parent box sizing data is computed.\r\n if (!this._box) {\r\n this._box = domutils_1.ElementExt.boxSizing(this.parent.node);\r\n }\r\n // Convert from client to local coordinates.\r\n var rect = this.parent.node.getBoundingClientRect();\r\n var x = clientX - rect.left - this._box.borderLeft;\r\n var y = clientY - rect.top - this._box.borderTop;\r\n // Find the tab layout node at the local position.\r\n var tabNode = this._root.hitTestTabNodes(x, y);\r\n // Bail if a tab layout node was not found.\r\n if (!tabNode) {\r\n return null;\r\n }\r\n // Extract the data from the tab node.\r\n var tabBar = tabNode.tabBar, top = tabNode.top, left = tabNode.left, width = tabNode.width, height = tabNode.height;\r\n // Compute the right and bottom edges of the tab area.\r\n var borderWidth = this._box.borderLeft + this._box.borderRight;\r\n var borderHeight = this._box.borderTop + this._box.borderBottom;\r\n var right = rect.width - borderWidth - (left + width);\r\n var bottom = rect.height - borderHeight - (top + height);\r\n // Return the hit test results.\r\n return { tabBar: tabBar, x: x, y: y, top: top, left: left, right: right, bottom: bottom, width: width, height: height };\r\n };\r\n /**\r\n * Perform layout initialization which requires the parent widget.\r\n */\r\n DockLayout.prototype.init = function () {\r\n var _this = this;\r\n // Perform superclass initialization.\r\n _super.prototype.init.call(this);\r\n // Attach each widget to the parent.\r\n algorithm_1.each(this, function (widget) { _this.attachWidget(widget); });\r\n // Attach each handle to the parent.\r\n algorithm_1.each(this.handles(), function (handle) { _this.parent.node.appendChild(handle); });\r\n // Post a fit request for the parent widget.\r\n this.parent.fit();\r\n };\r\n /**\r\n * Attach the widget to the layout parent widget.\r\n *\r\n * @param widget - The widget to attach to the parent.\r\n *\r\n * #### Notes\r\n * This is a no-op if the widget is already attached.\r\n */\r\n DockLayout.prototype.attachWidget = function (widget) {\r\n // Do nothing if the widget is already attached.\r\n if (this.parent.node === widget.node.parentNode) {\r\n return;\r\n }\r\n // Create the layout item for the widget.\r\n this._items.set(widget, new layout_1.LayoutItem(widget));\r\n // Send a `'before-attach'` message if the parent is attached.\r\n if (this.parent.isAttached) {\r\n messaging_1.MessageLoop.sendMessage(widget, widget_1.Widget.Msg.BeforeAttach);\r\n }\r\n // Add the widget's node to the parent.\r\n this.parent.node.appendChild(widget.node);\r\n // Send an `'after-attach'` message if the parent is attached.\r\n if (this.parent.isAttached) {\r\n messaging_1.MessageLoop.sendMessage(widget, widget_1.Widget.Msg.AfterAttach);\r\n }\r\n };\r\n /**\r\n * Detach the widget from the layout parent widget.\r\n *\r\n * @param widget - The widget to detach from the parent.\r\n *\r\n * #### Notes\r\n * This is a no-op if the widget is not attached.\r\n */\r\n DockLayout.prototype.detachWidget = function (widget) {\r\n // Do nothing if the widget is not attached.\r\n if (this.parent.node !== widget.node.parentNode) {\r\n return;\r\n }\r\n // Send a `'before-detach'` message if the parent is attached.\r\n if (this.parent.isAttached) {\r\n messaging_1.MessageLoop.sendMessage(widget, widget_1.Widget.Msg.BeforeDetach);\r\n }\r\n // Remove the widget's node from the parent.\r\n this.parent.node.removeChild(widget.node);\r\n // Send an `'after-detach'` message if the parent is attached.\r\n if (this.parent.isAttached) {\r\n messaging_1.MessageLoop.sendMessage(widget, widget_1.Widget.Msg.AfterDetach);\r\n }\r\n // Delete the layout item for the widget.\r\n var item = this._items.get(widget);\r\n if (item) {\r\n this._items.delete(widget);\r\n item.dispose();\r\n }\r\n };\r\n /**\r\n * A message handler invoked on a `'before-show'` message.\r\n */\r\n DockLayout.prototype.onBeforeShow = function (msg) {\r\n _super.prototype.onBeforeShow.call(this, msg);\r\n this.parent.update();\r\n };\r\n /**\r\n * A message handler invoked on a `'before-attach'` message.\r\n */\r\n DockLayout.prototype.onBeforeAttach = function (msg) {\r\n _super.prototype.onBeforeAttach.call(this, msg);\r\n this.parent.fit();\r\n };\r\n /**\r\n * A message handler invoked on a `'child-shown'` message.\r\n */\r\n DockLayout.prototype.onChildShown = function (msg) {\r\n this.parent.fit();\r\n };\r\n /**\r\n * A message handler invoked on a `'child-hidden'` message.\r\n */\r\n DockLayout.prototype.onChildHidden = function (msg) {\r\n this.parent.fit();\r\n };\r\n /**\r\n * A message handler invoked on a `'resize'` message.\r\n */\r\n DockLayout.prototype.onResize = function (msg) {\r\n if (this.parent.isVisible) {\r\n this._update(msg.width, msg.height);\r\n }\r\n };\r\n /**\r\n * A message handler invoked on an `'update-request'` message.\r\n */\r\n DockLayout.prototype.onUpdateRequest = function (msg) {\r\n if (this.parent.isVisible) {\r\n this._update(-1, -1);\r\n }\r\n };\r\n /**\r\n * A message handler invoked on a `'fit-request'` message.\r\n */\r\n DockLayout.prototype.onFitRequest = function (msg) {\r\n if (this.parent.isAttached) {\r\n this._fit();\r\n }\r\n };\r\n /**\r\n * Remove the specified widget from the layout structure.\r\n *\r\n * #### Notes\r\n * This is a no-op if the widget is not in the layout tree.\r\n *\r\n * This does not detach the widget from the parent node.\r\n */\r\n DockLayout.prototype._removeWidget = function (widget) {\r\n // Bail early if there is no layout root.\r\n if (!this._root) {\r\n return;\r\n }\r\n // Find the tab node which contains the given widget.\r\n var tabNode = this._root.findTabNode(widget);\r\n // Bail early if the tab node is not found.\r\n if (!tabNode) {\r\n return;\r\n }\r\n // If there are multiple tabs, just remove the widget's tab.\r\n if (tabNode.tabBar.titles.length > 1) {\r\n tabNode.tabBar.removeTab(widget.title);\r\n return;\r\n }\r\n // Otherwise, the tab node needs to be removed...\r\n // Dispose the tab bar.\r\n tabNode.tabBar.dispose();\r\n // Handle the case where the tab node is the root.\r\n if (this._root === tabNode) {\r\n this._root = null;\r\n return;\r\n }\r\n // Otherwise, remove the tab node from its parent...\r\n // Prevent widget resizing unless needed.\r\n this._root.holdAllSizes();\r\n // Clear the parent reference on the tab node.\r\n var splitNode = tabNode.parent;\r\n tabNode.parent = null;\r\n // Remove the tab node from its parent split node.\r\n var i = algorithm_1.ArrayExt.removeFirstOf(splitNode.children, tabNode);\r\n var handle = algorithm_1.ArrayExt.removeAt(splitNode.handles, i);\r\n algorithm_1.ArrayExt.removeAt(splitNode.sizers, i);\r\n // Remove the handle from its parent DOM node.\r\n if (handle.parentNode) {\r\n handle.parentNode.removeChild(handle);\r\n }\r\n // If there are multiple children, just update the handles.\r\n if (splitNode.children.length > 1) {\r\n splitNode.syncHandles();\r\n return;\r\n }\r\n // Otherwise, the split node also needs to be removed...\r\n // Clear the parent reference on the split node.\r\n var maybeParent = splitNode.parent;\r\n splitNode.parent = null;\r\n // Lookup the remaining child node and handle.\r\n var childNode = splitNode.children[0];\r\n var childHandle = splitNode.handles[0];\r\n // Clear the split node data.\r\n splitNode.children.length = 0;\r\n splitNode.handles.length = 0;\r\n splitNode.sizers.length = 0;\r\n // Remove the child handle from its parent node.\r\n if (childHandle.parentNode) {\r\n childHandle.parentNode.removeChild(childHandle);\r\n }\r\n // Handle the case where the split node is the root.\r\n if (this._root === splitNode) {\r\n childNode.parent = null;\r\n this._root = childNode;\r\n return;\r\n }\r\n // Otherwise, move the child node to the parent node...\r\n var parentNode = maybeParent;\r\n // Lookup the index of the split node.\r\n var j = parentNode.children.indexOf(splitNode);\r\n // Handle the case where the child node is a tab node.\r\n if (childNode instanceof Private.TabLayoutNode) {\r\n childNode.parent = parentNode;\r\n parentNode.children[j] = childNode;\r\n return;\r\n }\r\n // Remove the split data from the parent.\r\n var splitHandle = algorithm_1.ArrayExt.removeAt(parentNode.handles, j);\r\n algorithm_1.ArrayExt.removeAt(parentNode.children, j);\r\n algorithm_1.ArrayExt.removeAt(parentNode.sizers, j);\r\n // Remove the handle from its parent node.\r\n if (splitHandle.parentNode) {\r\n splitHandle.parentNode.removeChild(splitHandle);\r\n }\r\n // The child node and the split parent node will have the same\r\n // orientation. Merge the grand-children with the parent node.\r\n for (var i_1 = 0, n = childNode.children.length; i_1 < n; ++i_1) {\r\n var gChild = childNode.children[i_1];\r\n var gHandle = childNode.handles[i_1];\r\n var gSizer = childNode.sizers[i_1];\r\n algorithm_1.ArrayExt.insert(parentNode.children, j + i_1, gChild);\r\n algorithm_1.ArrayExt.insert(parentNode.handles, j + i_1, gHandle);\r\n algorithm_1.ArrayExt.insert(parentNode.sizers, j + i_1, gSizer);\r\n gChild.parent = parentNode;\r\n }\r\n // Clear the child node.\r\n childNode.children.length = 0;\r\n childNode.handles.length = 0;\r\n childNode.sizers.length = 0;\r\n childNode.parent = null;\r\n // Sync the handles on the parent node.\r\n parentNode.syncHandles();\r\n };\r\n /**\r\n * Insert a widget next to an existing tab.\r\n *\r\n * #### Notes\r\n * This does not attach the widget to the parent widget.\r\n */\r\n DockLayout.prototype._insertTab = function (widget, ref, refNode, after) {\r\n // Do nothing if the tab is inserted next to itself.\r\n if (widget === ref) {\r\n return;\r\n }\r\n // Create the root if it does not exist.\r\n if (!this._root) {\r\n var tabNode = new Private.TabLayoutNode(this._createTabBar());\r\n tabNode.tabBar.addTab(widget.title);\r\n this._root = tabNode;\r\n return;\r\n }\r\n // Use the first tab node as the ref node if needed.\r\n if (!refNode) {\r\n refNode = this._root.findFirstTabNode();\r\n }\r\n // If the widget is not contained in the ref node, ensure it is\r\n // removed from the layout and hidden before being added again.\r\n if (refNode.tabBar.titles.indexOf(widget.title) === -1) {\r\n this._removeWidget(widget);\r\n widget.hide();\r\n }\r\n // Lookup the target index for inserting the tab.\r\n var index;\r\n if (ref) {\r\n index = refNode.tabBar.titles.indexOf(ref.title);\r\n }\r\n else {\r\n index = refNode.tabBar.currentIndex;\r\n }\r\n // Insert the widget's tab relative to the target index.\r\n refNode.tabBar.insertTab(index + (after ? 1 : 0), widget.title);\r\n };\r\n /**\r\n * Insert a widget as a new split area.\r\n *\r\n * #### Notes\r\n * This does not attach the widget to the parent widget.\r\n */\r\n DockLayout.prototype._insertSplit = function (widget, ref, refNode, orientation, after) {\r\n // Do nothing if there is no effective split.\r\n if (widget === ref && refNode && refNode.tabBar.titles.length === 1) {\r\n return;\r\n }\r\n // Ensure the widget is removed from the current layout.\r\n this._removeWidget(widget);\r\n // Create the tab layout node to hold the widget.\r\n var tabNode = new Private.TabLayoutNode(this._createTabBar());\r\n tabNode.tabBar.addTab(widget.title);\r\n // Set the root if it does not exist.\r\n if (!this._root) {\r\n this._root = tabNode;\r\n return;\r\n }\r\n // If the ref node parent is null, split the root.\r\n if (!refNode || !refNode.parent) {\r\n // Ensure the root is split with the correct orientation.\r\n var root = this._splitRoot(orientation);\r\n // Determine the insert index for the new tab node.\r\n var i_2 = after ? root.children.length : 0;\r\n // Normalize the split node.\r\n root.normalizeSizes();\r\n // Create the sizer for new tab node.\r\n var sizer = Private.createSizer(refNode ? 1 : Private.GOLDEN_RATIO);\r\n // Insert the tab node sized to the golden ratio.\r\n algorithm_1.ArrayExt.insert(root.children, i_2, tabNode);\r\n algorithm_1.ArrayExt.insert(root.sizers, i_2, sizer);\r\n algorithm_1.ArrayExt.insert(root.handles, i_2, this._createHandle());\r\n tabNode.parent = root;\r\n // Re-normalize the split node to maintain the ratios.\r\n root.normalizeSizes();\r\n // Finally, synchronize the visibility of the handles.\r\n root.syncHandles();\r\n return;\r\n }\r\n // Lookup the split node for the ref widget.\r\n var splitNode = refNode.parent;\r\n // If the split node already had the correct orientation,\r\n // the widget can be inserted into the split node directly.\r\n if (splitNode.orientation === orientation) {\r\n // Find the index of the ref node.\r\n var i_3 = splitNode.children.indexOf(refNode);\r\n // Normalize the split node.\r\n splitNode.normalizeSizes();\r\n // Consume half the space for the insert location.\r\n var s = splitNode.sizers[i_3].sizeHint /= 2;\r\n // Insert the tab node sized to the other half.\r\n var j_1 = i_3 + (after ? 1 : 0);\r\n algorithm_1.ArrayExt.insert(splitNode.children, j_1, tabNode);\r\n algorithm_1.ArrayExt.insert(splitNode.sizers, j_1, Private.createSizer(s));\r\n algorithm_1.ArrayExt.insert(splitNode.handles, j_1, this._createHandle());\r\n tabNode.parent = splitNode;\r\n // Finally, synchronize the visibility of the handles.\r\n splitNode.syncHandles();\r\n return;\r\n }\r\n // Remove the ref node from the split node.\r\n var i = algorithm_1.ArrayExt.removeFirstOf(splitNode.children, refNode);\r\n // Create a new normalized split node for the children.\r\n var childNode = new Private.SplitLayoutNode(orientation);\r\n childNode.normalized = true;\r\n // Add the ref node sized to half the space.\r\n childNode.children.push(refNode);\r\n childNode.sizers.push(Private.createSizer(0.5));\r\n childNode.handles.push(this._createHandle());\r\n refNode.parent = childNode;\r\n // Add the tab node sized to the other half.\r\n var j = after ? 1 : 0;\r\n algorithm_1.ArrayExt.insert(childNode.children, j, tabNode);\r\n algorithm_1.ArrayExt.insert(childNode.sizers, j, Private.createSizer(0.5));\r\n algorithm_1.ArrayExt.insert(childNode.handles, j, this._createHandle());\r\n tabNode.parent = childNode;\r\n // Synchronize the visibility of the handles.\r\n childNode.syncHandles();\r\n // Finally, add the new child node to the original split node.\r\n algorithm_1.ArrayExt.insert(splitNode.children, i, childNode);\r\n childNode.parent = splitNode;\r\n };\r\n /**\r\n * Ensure the root is a split node with the given orientation.\r\n */\r\n DockLayout.prototype._splitRoot = function (orientation) {\r\n // Bail early if the root already meets the requirements.\r\n var oldRoot = this._root;\r\n if (oldRoot instanceof Private.SplitLayoutNode) {\r\n if (oldRoot.orientation === orientation) {\r\n return oldRoot;\r\n }\r\n }\r\n // Create a new root node with the specified orientation.\r\n var newRoot = this._root = new Private.SplitLayoutNode(orientation);\r\n // Add the old root to the new root.\r\n if (oldRoot) {\r\n newRoot.children.push(oldRoot);\r\n newRoot.sizers.push(Private.createSizer(0));\r\n newRoot.handles.push(this._createHandle());\r\n oldRoot.parent = newRoot;\r\n }\r\n // Return the new root as a convenience.\r\n return newRoot;\r\n };\r\n /**\r\n * Fit the layout to the total size required by the widgets.\r\n */\r\n DockLayout.prototype._fit = function () {\r\n // Set up the computed minimum size.\r\n var minW = 0;\r\n var minH = 0;\r\n // Update the size limits for the layout tree.\r\n if (this._root) {\r\n var limits = this._root.fit(this._spacing, this._items);\r\n minW = limits.minWidth;\r\n minH = limits.minHeight;\r\n }\r\n // Update the box sizing and add it to the computed min size.\r\n var box = this._box = domutils_1.ElementExt.boxSizing(this.parent.node);\r\n minW += box.horizontalSum;\r\n minH += box.verticalSum;\r\n // Update the parent's min size constraints.\r\n var style = this.parent.node.style;\r\n style.minWidth = minW + \"px\";\r\n style.minHeight = minH + \"px\";\r\n // Set the dirty flag to ensure only a single update occurs.\r\n this._dirty = true;\r\n // Notify the ancestor that it should fit immediately. This may\r\n // cause a resize of the parent, fulfilling the required update.\r\n if (this.parent.parent) {\r\n messaging_1.MessageLoop.sendMessage(this.parent.parent, widget_1.Widget.Msg.FitRequest);\r\n }\r\n // If the dirty flag is still set, the parent was not resized.\r\n // Trigger the required update on the parent widget immediately.\r\n if (this._dirty) {\r\n messaging_1.MessageLoop.sendMessage(this.parent, widget_1.Widget.Msg.UpdateRequest);\r\n }\r\n };\r\n /**\r\n * Update the layout position and size of the widgets.\r\n *\r\n * The parent offset dimensions should be `-1` if unknown.\r\n */\r\n DockLayout.prototype._update = function (offsetWidth, offsetHeight) {\r\n // Clear the dirty flag to indicate the update occurred.\r\n this._dirty = false;\r\n // Bail early if there is no root layout node.\r\n if (!this._root) {\r\n return;\r\n }\r\n // Measure the parent if the offset dimensions are unknown.\r\n if (offsetWidth < 0) {\r\n offsetWidth = this.parent.node.offsetWidth;\r\n }\r\n if (offsetHeight < 0) {\r\n offsetHeight = this.parent.node.offsetHeight;\r\n }\r\n // Ensure the parent box sizing data is computed.\r\n if (!this._box) {\r\n this._box = domutils_1.ElementExt.boxSizing(this.parent.node);\r\n }\r\n // Compute the actual layout bounds adjusted for border and padding.\r\n var x = this._box.paddingTop;\r\n var y = this._box.paddingLeft;\r\n var width = offsetWidth - this._box.horizontalSum;\r\n var height = offsetHeight - this._box.verticalSum;\r\n // Update the geometry of the layout tree.\r\n this._root.update(x, y, width, height, this._spacing, this._items);\r\n };\r\n /**\r\n * Create a new tab bar for use by the dock layout.\r\n *\r\n * #### Notes\r\n * The tab bar will be attached to the parent if it exists.\r\n */\r\n DockLayout.prototype._createTabBar = function () {\r\n // Create the tab bar using the renderer.\r\n var tabBar = this.renderer.createTabBar();\r\n // Enforce necessary tab bar behavior.\r\n tabBar.orientation = 'horizontal';\r\n // Reparent and attach the tab bar to the parent if possible.\r\n if (this.parent) {\r\n tabBar.parent = this.parent;\r\n this.attachWidget(tabBar);\r\n }\r\n // Return the initialized tab bar.\r\n return tabBar;\r\n };\r\n /**\r\n * Create a new handle for the dock layout.\r\n *\r\n * #### Notes\r\n * The handle will be attached to the parent if it exists.\r\n */\r\n DockLayout.prototype._createHandle = function () {\r\n // Create the handle using the renderer.\r\n var handle = this.renderer.createHandle();\r\n // Initialize the handle layout behavior.\r\n var style = handle.style;\r\n style.position = 'absolute';\r\n style.top = '0';\r\n style.left = '0';\r\n style.width = '0';\r\n style.height = '0';\r\n // Attach the handle to the parent if it exists.\r\n if (this.parent) {\r\n this.parent.node.appendChild(handle);\r\n }\r\n // Return the initialized handle.\r\n return handle;\r\n };\r\n return DockLayout;\r\n}(layout_1.Layout));\r\nexports.DockLayout = DockLayout;\r\n/**\r\n * The namespace for the module implementation details.\r\n */\r\nvar Private;\r\n(function (Private) {\r\n /**\r\n * A fraction used for sizing root panels; ~= `1 / golden_ratio`.\r\n */\r\n Private.GOLDEN_RATIO = 0.618;\r\n /**\r\n * Clamp a spacing value to an integer >= 0.\r\n */\r\n function clampSpacing(value) {\r\n return Math.max(0, Math.floor(value));\r\n }\r\n Private.clampSpacing = clampSpacing;\r\n /**\r\n * Create a box sizer with an initial size hint.\r\n */\r\n function createSizer(hint) {\r\n var sizer = new boxengine_1.BoxSizer();\r\n sizer.sizeHint = hint;\r\n sizer.size = hint;\r\n return sizer;\r\n }\r\n Private.createSizer = createSizer;\r\n /**\r\n * Normalize an area config object and collect the visited widgets.\r\n */\r\n function normalizeAreaConfig(config, widgetSet) {\r\n var result;\r\n if (config.type === 'tab-area') {\r\n result = normalizeTabAreaConfig(config, widgetSet);\r\n }\r\n else {\r\n result = normalizeSplitAreaConfig(config, widgetSet);\r\n }\r\n return result;\r\n }\r\n Private.normalizeAreaConfig = normalizeAreaConfig;\r\n /**\r\n * Convert a normalized area config into a layout tree.\r\n */\r\n function realizeAreaConfig(config, renderer) {\r\n var node;\r\n if (config.type === 'tab-area') {\r\n node = realizeTabAreaConfig(config, renderer);\r\n }\r\n else {\r\n node = realizeSplitAreaConfig(config, renderer);\r\n }\r\n return node;\r\n }\r\n Private.realizeAreaConfig = realizeAreaConfig;\r\n /**\r\n * A layout node which holds the data for a tabbed area.\r\n */\r\n var TabLayoutNode = (function () {\r\n /**\r\n * Construct a new tab layout node.\r\n *\r\n * @param tabBar - The tab bar to use for the layout node.\r\n */\r\n function TabLayoutNode(tabBar) {\r\n /**\r\n * The parent of the layout node.\r\n */\r\n this.parent = null;\r\n this._top = 0;\r\n this._left = 0;\r\n this._width = 0;\r\n this._height = 0;\r\n var tabSizer = new boxengine_1.BoxSizer();\r\n var widgetSizer = new boxengine_1.BoxSizer();\r\n tabSizer.stretch = 0;\r\n widgetSizer.stretch = 1;\r\n this.tabBar = tabBar;\r\n this.sizers = [tabSizer, widgetSizer];\r\n }\r\n Object.defineProperty(TabLayoutNode.prototype, \"top\", {\r\n /**\r\n * The most recent value for the `top` edge of the layout box.\r\n */\r\n get: function () {\r\n return this._top;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TabLayoutNode.prototype, \"left\", {\r\n /**\r\n * The most recent value for the `left` edge of the layout box.\r\n */\r\n get: function () {\r\n return this._left;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TabLayoutNode.prototype, \"width\", {\r\n /**\r\n * The most recent value for the `width` of the layout box.\r\n */\r\n get: function () {\r\n return this._width;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(TabLayoutNode.prototype, \"height\", {\r\n /**\r\n * The most recent value for the `height` of the layout box.\r\n */\r\n get: function () {\r\n return this._height;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * Create an iterator for all widgets in the layout tree.\r\n */\r\n TabLayoutNode.prototype.iterAllWidgets = function () {\r\n return algorithm_1.chain(algorithm_1.once(this.tabBar), this.iterUserWidgets());\r\n };\r\n /**\r\n * Create an iterator for the user widgets in the layout tree.\r\n */\r\n TabLayoutNode.prototype.iterUserWidgets = function () {\r\n return algorithm_1.map(this.tabBar.titles, function (title) { return title.owner; });\r\n };\r\n /**\r\n * Create an iterator for the selected widgets in the layout tree.\r\n */\r\n TabLayoutNode.prototype.iterSelectedWidgets = function () {\r\n var title = this.tabBar.currentTitle;\r\n return title ? algorithm_1.once(title.owner) : algorithm_1.empty();\r\n };\r\n /**\r\n * Create an iterator for the tab bars in the layout tree.\r\n */\r\n TabLayoutNode.prototype.iterTabBars = function () {\r\n return algorithm_1.once(this.tabBar);\r\n };\r\n /**\r\n * Create an iterator for the handles in the layout tree.\r\n */\r\n TabLayoutNode.prototype.iterHandles = function () {\r\n return algorithm_1.empty();\r\n };\r\n /**\r\n * Find the tab layout node which contains the given widget.\r\n */\r\n TabLayoutNode.prototype.findTabNode = function (widget) {\r\n return this.tabBar.titles.indexOf(widget.title) !== -1 ? this : null;\r\n };\r\n /**\r\n * Find the split layout node which contains the given handle.\r\n */\r\n TabLayoutNode.prototype.findSplitNode = function (handle) {\r\n return null;\r\n };\r\n /**\r\n * Find the first tab layout node in a layout tree.\r\n */\r\n TabLayoutNode.prototype.findFirstTabNode = function () {\r\n return this;\r\n };\r\n /**\r\n * Find the tab layout node which contains the local point.\r\n */\r\n TabLayoutNode.prototype.hitTestTabNodes = function (x, y) {\r\n if (x < this._left || x >= this._left + this._width) {\r\n return null;\r\n }\r\n if (y < this._top || y >= this._top + this._height) {\r\n return null;\r\n }\r\n return this;\r\n };\r\n /**\r\n * Create a configuration object for the layout tree.\r\n */\r\n TabLayoutNode.prototype.createConfig = function () {\r\n var widgets = this.tabBar.titles.map(function (title) { return title.owner; });\r\n var currentIndex = this.tabBar.currentIndex;\r\n return { type: 'tab-area', widgets: widgets, currentIndex: currentIndex };\r\n };\r\n /**\r\n * Recursively hold all of the sizes in the layout tree.\r\n *\r\n * This ignores the sizers of tab layout nodes.\r\n */\r\n TabLayoutNode.prototype.holdAllSizes = function () {\r\n return;\r\n };\r\n /**\r\n * Fit the layout tree.\r\n */\r\n TabLayoutNode.prototype.fit = function (spacing, items) {\r\n // Set up the limit variables.\r\n var minWidth = 0;\r\n var minHeight = 0;\r\n var maxWidth = Infinity;\r\n var maxHeight = Infinity;\r\n // Lookup the tab bar layout item.\r\n var tabBarItem = items.get(this.tabBar);\r\n // Lookup the widget layout item.\r\n var current = this.tabBar.currentTitle;\r\n var widgetItem = current ? items.get(current.owner) : undefined;\r\n // Lookup the tab bar and widget sizers.\r\n var _a = this.sizers, tabBarSizer = _a[0], widgetSizer = _a[1];\r\n // Update the tab bar limits.\r\n if (tabBarItem) {\r\n tabBarItem.fit();\r\n }\r\n // Update the widget limits.\r\n if (widgetItem) {\r\n widgetItem.fit();\r\n }\r\n // Update the results and sizer for the tab bar.\r\n if (tabBarItem && !tabBarItem.isHidden) {\r\n minWidth = Math.max(minWidth, tabBarItem.minWidth);\r\n minHeight += tabBarItem.minHeight;\r\n tabBarSizer.minSize = tabBarItem.minHeight;\r\n tabBarSizer.maxSize = tabBarItem.maxHeight;\r\n }\r\n else {\r\n tabBarSizer.minSize = 0;\r\n tabBarSizer.maxSize = 0;\r\n }\r\n // Update the results and sizer for the current widget.\r\n if (widgetItem && !widgetItem.isHidden) {\r\n minWidth = Math.max(minWidth, widgetItem.minWidth);\r\n minHeight += widgetItem.minHeight;\r\n widgetSizer.minSize = widgetItem.minHeight;\r\n widgetSizer.maxSize = Infinity;\r\n }\r\n else {\r\n widgetSizer.minSize = 0;\r\n widgetSizer.maxSize = Infinity;\r\n }\r\n // Return the computed size limits for the layout node.\r\n return { minWidth: minWidth, minHeight: minHeight, maxWidth: maxWidth, maxHeight: maxHeight };\r\n };\r\n /**\r\n * Update the layout tree.\r\n */\r\n TabLayoutNode.prototype.update = function (left, top, width, height, spacing, items) {\r\n // Update the layout box values.\r\n this._top = top;\r\n this._left = left;\r\n this._width = width;\r\n this._height = height;\r\n // Lookup the tab bar layout item.\r\n var tabBarItem = items.get(this.tabBar);\r\n // Lookup the widget layout item.\r\n var current = this.tabBar.currentTitle;\r\n var widgetItem = current ? items.get(current.owner) : undefined;\r\n // Distribute the layout space to the sizers.\r\n boxengine_1.BoxEngine.calc(this.sizers, height);\r\n // Update the tab bar item using the computed size.\r\n if (tabBarItem && !tabBarItem.isHidden) {\r\n var size = this.sizers[0].size;\r\n tabBarItem.update(left, top, width, size);\r\n top += size;\r\n }\r\n // Layout the widget using the computed size.\r\n if (widgetItem && !widgetItem.isHidden) {\r\n var size = this.sizers[1].size;\r\n widgetItem.update(left, top, width, size);\r\n }\r\n };\r\n return TabLayoutNode;\r\n }());\r\n Private.TabLayoutNode = TabLayoutNode;\r\n /**\r\n * A layout node which holds the data for a split area.\r\n */\r\n var SplitLayoutNode = (function () {\r\n /**\r\n * Construct a new split layout node.\r\n *\r\n * @param orientation - The orientation of the node.\r\n */\r\n function SplitLayoutNode(orientation) {\r\n /**\r\n * The parent of the layout node.\r\n */\r\n this.parent = null;\r\n /**\r\n * Whether the sizers have been normalized.\r\n */\r\n this.normalized = false;\r\n /**\r\n * The child nodes for the split node.\r\n */\r\n this.children = [];\r\n /**\r\n * The box sizers for the layout children.\r\n */\r\n this.sizers = [];\r\n /**\r\n * The handles for the layout children.\r\n */\r\n this.handles = [];\r\n this.orientation = orientation;\r\n }\r\n /**\r\n * Create an iterator for all widgets in the layout tree.\r\n */\r\n SplitLayoutNode.prototype.iterAllWidgets = function () {\r\n var children = algorithm_1.map(this.children, function (child) { return child.iterAllWidgets(); });\r\n return new algorithm_1.ChainIterator(children);\r\n };\r\n /**\r\n * Create an iterator for the user widgets in the layout tree.\r\n */\r\n SplitLayoutNode.prototype.iterUserWidgets = function () {\r\n var children = algorithm_1.map(this.children, function (child) { return child.iterUserWidgets(); });\r\n return new algorithm_1.ChainIterator(children);\r\n };\r\n /**\r\n * Create an iterator for the selected widgets in the layout tree.\r\n */\r\n SplitLayoutNode.prototype.iterSelectedWidgets = function () {\r\n var children = algorithm_1.map(this.children, function (child) { return child.iterSelectedWidgets(); });\r\n return new algorithm_1.ChainIterator(children);\r\n };\r\n /**\r\n * Create an iterator for the tab bars in the layout tree.\r\n */\r\n SplitLayoutNode.prototype.iterTabBars = function () {\r\n var children = algorithm_1.map(this.children, function (child) { return child.iterTabBars(); });\r\n return new algorithm_1.ChainIterator(children);\r\n };\r\n /**\r\n * Create an iterator for the handles in the layout tree.\r\n */\r\n SplitLayoutNode.prototype.iterHandles = function () {\r\n var children = algorithm_1.map(this.children, function (child) { return child.iterHandles(); });\r\n return algorithm_1.chain(this.handles, new algorithm_1.ChainIterator(children));\r\n };\r\n /**\r\n * Find the tab layout node which contains the given widget.\r\n */\r\n SplitLayoutNode.prototype.findTabNode = function (widget) {\r\n for (var i = 0, n = this.children.length; i < n; ++i) {\r\n var result = this.children[i].findTabNode(widget);\r\n if (result) {\r\n return result;\r\n }\r\n }\r\n return null;\r\n };\r\n /**\r\n * Find the split layout node which contains the given handle.\r\n */\r\n SplitLayoutNode.prototype.findSplitNode = function (handle) {\r\n var index = this.handles.indexOf(handle);\r\n if (index !== -1) {\r\n return { index: index, node: this };\r\n }\r\n for (var i = 0, n = this.children.length; i < n; ++i) {\r\n var result = this.children[i].findSplitNode(handle);\r\n if (result) {\r\n return result;\r\n }\r\n }\r\n return null;\r\n };\r\n /**\r\n * Find the first tab layout node in a layout tree.\r\n */\r\n SplitLayoutNode.prototype.findFirstTabNode = function () {\r\n if (this.children.length === 0) {\r\n return null;\r\n }\r\n return this.children[0].findFirstTabNode();\r\n };\r\n /**\r\n * Find the tab layout node which contains the local point.\r\n */\r\n SplitLayoutNode.prototype.hitTestTabNodes = function (x, y) {\r\n for (var i = 0, n = this.children.length; i < n; ++i) {\r\n var result = this.children[i].hitTestTabNodes(x, y);\r\n if (result) {\r\n return result;\r\n }\r\n }\r\n return null;\r\n };\r\n /**\r\n * Create a configuration object for the layout tree.\r\n */\r\n SplitLayoutNode.prototype.createConfig = function () {\r\n var orientation = this.orientation;\r\n var sizes = this.createNormalizedSizes();\r\n var children = this.children.map(function (child) { return child.createConfig(); });\r\n return { type: 'split-area', orientation: orientation, children: children, sizes: sizes };\r\n };\r\n /**\r\n * Sync the visibility and orientation of the handles.\r\n */\r\n SplitLayoutNode.prototype.syncHandles = function () {\r\n var _this = this;\r\n algorithm_1.each(this.handles, function (handle, i) {\r\n handle.setAttribute('data-orientation', _this.orientation);\r\n if (i === _this.handles.length - 1) {\r\n handle.classList.add('p-mod-hidden');\r\n }\r\n else {\r\n handle.classList.remove('p-mod-hidden');\r\n }\r\n });\r\n };\r\n /**\r\n * Hold the current sizes of the box sizers.\r\n *\r\n * This sets the size hint of each sizer to its current size.\r\n */\r\n SplitLayoutNode.prototype.holdSizes = function () {\r\n algorithm_1.each(this.sizers, function (sizer) { sizer.sizeHint = sizer.size; });\r\n };\r\n /**\r\n * Recursively hold all of the sizes in the layout tree.\r\n *\r\n * This ignores the sizers of tab layout nodes.\r\n */\r\n SplitLayoutNode.prototype.holdAllSizes = function () {\r\n algorithm_1.each(this.children, function (child) { return child.holdAllSizes(); });\r\n this.holdSizes();\r\n };\r\n /**\r\n * Normalize the sizes of the split layout node.\r\n */\r\n SplitLayoutNode.prototype.normalizeSizes = function () {\r\n // Bail early if the sizers are empty.\r\n var n = this.sizers.length;\r\n if (n === 0) {\r\n return;\r\n }\r\n // Hold the current sizes of the sizers.\r\n this.holdSizes();\r\n // Compute the sum of the sizes.\r\n var sum = algorithm_1.reduce(this.sizers, function (v, sizer) { return v + sizer.sizeHint; }, 0);\r\n // Normalize the sizes based on the sum.\r\n if (sum === 0) {\r\n algorithm_1.each(this.sizers, function (sizer) {\r\n sizer.size = sizer.sizeHint = 1 / n;\r\n });\r\n }\r\n else {\r\n algorithm_1.each(this.sizers, function (sizer) {\r\n sizer.size = sizer.sizeHint /= sum;\r\n });\r\n }\r\n // Mark the sizes as normalized.\r\n this.normalized = true;\r\n };\r\n /**\r\n * Snap the normalized sizes of the split layout node.\r\n */\r\n SplitLayoutNode.prototype.createNormalizedSizes = function () {\r\n // Bail early if the sizers are empty.\r\n var n = this.sizers.length;\r\n if (n === 0) {\r\n return [];\r\n }\r\n // Grab the current sizes of the sizers.\r\n var sizes = this.sizers.map(function (sizer) { return sizer.size; });\r\n // Compute the sum of the sizes.\r\n var sum = algorithm_1.reduce(sizes, function (v, size) { return v + size; }, 0);\r\n // Normalize the sizes based on the sum.\r\n if (sum === 0) {\r\n algorithm_1.each(sizes, function (size, i) { sizes[i] = 1 / n; });\r\n }\r\n else {\r\n algorithm_1.each(sizes, function (size, i) { sizes[i] = size / sum; });\r\n }\r\n // Return the normalized sizes.\r\n return sizes;\r\n };\r\n /**\r\n * Fit the layout tree.\r\n */\r\n SplitLayoutNode.prototype.fit = function (spacing, items) {\r\n // Compute the required fixed space.\r\n var horizontal = this.orientation === 'horizontal';\r\n var fixed = Math.max(0, this.children.length - 1) * spacing;\r\n // Set up the limit variables.\r\n var minWidth = horizontal ? fixed : 0;\r\n var minHeight = horizontal ? 0 : fixed;\r\n var maxWidth = Infinity;\r\n var maxHeight = Infinity;\r\n // Fit the children and update the limits.\r\n for (var i = 0, n = this.children.length; i < n; ++i) {\r\n var limits = this.children[i].fit(spacing, items);\r\n if (horizontal) {\r\n minHeight = Math.max(minHeight, limits.minHeight);\r\n minWidth += limits.minWidth;\r\n this.sizers[i].minSize = limits.minWidth;\r\n }\r\n else {\r\n minWidth = Math.max(minWidth, limits.minWidth);\r\n minHeight += limits.minHeight;\r\n this.sizers[i].minSize = limits.minHeight;\r\n }\r\n }\r\n // Return the computed limits for the layout node.\r\n return { minWidth: minWidth, minHeight: minHeight, maxWidth: maxWidth, maxHeight: maxHeight };\r\n };\r\n /**\r\n * Update the layout tree.\r\n */\r\n SplitLayoutNode.prototype.update = function (left, top, width, height, spacing, items) {\r\n // Compute the available layout space.\r\n var horizontal = this.orientation === 'horizontal';\r\n var fixed = Math.max(0, this.children.length - 1) * spacing;\r\n var space = Math.max(0, (horizontal ? width : height) - fixed);\r\n // De-normalize the sizes if needed.\r\n if (this.normalized) {\r\n algorithm_1.each(this.sizers, function (sizer) { sizer.sizeHint *= space; });\r\n this.normalized = false;\r\n }\r\n // Distribute the layout space to the sizers.\r\n boxengine_1.BoxEngine.calc(this.sizers, space);\r\n // Update the geometry of the child nodes and handles.\r\n for (var i = 0, n = this.children.length; i < n; ++i) {\r\n var child = this.children[i];\r\n var size = this.sizers[i].size;\r\n var handleStyle = this.handles[i].style;\r\n if (horizontal) {\r\n child.update(left, top, size, height, spacing, items);\r\n left += size;\r\n handleStyle.top = top + \"px\";\r\n handleStyle.left = left + \"px\";\r\n handleStyle.width = spacing + \"px\";\r\n handleStyle.height = height + \"px\";\r\n left += spacing;\r\n }\r\n else {\r\n child.update(left, top, width, size, spacing, items);\r\n top += size;\r\n handleStyle.top = top + \"px\";\r\n handleStyle.left = left + \"px\";\r\n handleStyle.width = width + \"px\";\r\n handleStyle.height = spacing + \"px\";\r\n top += spacing;\r\n }\r\n }\r\n };\r\n return SplitLayoutNode;\r\n }());\r\n Private.SplitLayoutNode = SplitLayoutNode;\r\n /**\r\n * Normalize a tab area config and collect the visited widgets.\r\n */\r\n function normalizeTabAreaConfig(config, widgetSet) {\r\n // Bail early if there is no content.\r\n if (config.widgets.length === 0) {\r\n return null;\r\n }\r\n // Setup the filtered widgets array.\r\n var widgets = [];\r\n // Filter the config for unique widgets.\r\n algorithm_1.each(config.widgets, function (widget) {\r\n if (!widgetSet.has(widget)) {\r\n widgetSet.add(widget);\r\n widgets.push(widget);\r\n }\r\n });\r\n // Bail if there are no effective widgets.\r\n if (widgets.length === 0) {\r\n return null;\r\n }\r\n // Normalize the current index.\r\n var index = config.currentIndex;\r\n if (index !== -1 && (index < 0 || index >= widgets.length)) {\r\n index = 0;\r\n }\r\n // Return a normalized config object.\r\n return { type: 'tab-area', widgets: widgets, currentIndex: index };\r\n }\r\n /**\r\n * Normalize a split area config and collect the visited widgets.\r\n */\r\n function normalizeSplitAreaConfig(config, widgetSet) {\r\n // Set up the result variables.\r\n var orientation = config.orientation;\r\n var children = [];\r\n var sizes = [];\r\n // Normalize the config children.\r\n for (var i = 0, n = config.children.length; i < n; ++i) {\r\n // Normalize the child config.\r\n var child = normalizeAreaConfig(config.children[i], widgetSet);\r\n // Ignore an empty child.\r\n if (!child) {\r\n continue;\r\n }\r\n // Add the child or hoist its content as appropriate.\r\n if (child.type === 'tab-area' || child.orientation !== orientation) {\r\n children.push(child);\r\n sizes.push(Math.abs(config.sizes[i] || 0));\r\n }\r\n else {\r\n children.push.apply(children, child.children);\r\n sizes.push.apply(sizes, child.sizes);\r\n }\r\n }\r\n // Bail if there are no effective children.\r\n if (children.length === 0) {\r\n return null;\r\n }\r\n // If there is only one effective child, return that child.\r\n if (children.length === 1) {\r\n return children[0];\r\n }\r\n // Return a normalized config object.\r\n return { type: 'split-area', orientation: orientation, children: children, sizes: sizes };\r\n }\r\n /**\r\n * Convert a normalized tab area config into a layout tree.\r\n */\r\n function realizeTabAreaConfig(config, renderer) {\r\n // Create the tab bar for the layout node.\r\n var tabBar = renderer.createTabBar();\r\n // Hide each widget and add it to the tab bar.\r\n algorithm_1.each(config.widgets, function (widget) {\r\n widget.hide();\r\n tabBar.addTab(widget.title);\r\n });\r\n // Set the current index of the tab bar.\r\n tabBar.currentIndex = config.currentIndex;\r\n // Return the new tab layout node.\r\n return new TabLayoutNode(tabBar);\r\n }\r\n /**\r\n * Convert a normalized split area config into a layout tree.\r\n */\r\n function realizeSplitAreaConfig(config, renderer) {\r\n // Create the split layout node.\r\n var node = new SplitLayoutNode(config.orientation);\r\n // Add each child to the layout node.\r\n algorithm_1.each(config.children, function (child, i) {\r\n // Create the child data for the layout node.\r\n var childNode = realizeAreaConfig(child, renderer);\r\n var sizer = createSizer(config.sizes[i]);\r\n var handle = renderer.createHandle();\r\n // Add the child data to the layout node.\r\n node.children.push(childNode);\r\n node.handles.push(handle);\r\n node.sizers.push(sizer);\r\n // Update the parent for the child node.\r\n childNode.parent = node;\r\n });\r\n // Synchronize the handle state for the layout node.\r\n node.syncHandles();\r\n // Normalize the sizes for the layout node.\r\n node.normalizeSizes();\r\n // Return the new layout node.\r\n return node;\r\n }\r\n})(Private || (Private = {}));\r\n\n\n/***/ }),\n/* 24 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __extends = (this && this.__extends) || (function () {\r\n var extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return function (d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n };\r\n})();\r\nvar __assign = (this && this.__assign) || Object.assign || function(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\r\n t[p] = s[p];\r\n }\r\n return t;\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/*-----------------------------------------------------------------------------\r\n| Copyright (c) 2014-2017, PhosphorJS Contributors\r\n|\r\n| Distributed under the terms of the BSD 3-Clause License.\r\n|\r\n| The full license is in the file LICENSE, distributed with this software.\r\n|----------------------------------------------------------------------------*/\r\nvar algorithm_1 = __webpack_require__(0);\r\nvar commands_1 = __webpack_require__(11);\r\nvar coreutils_1 = __webpack_require__(6);\r\nvar domutils_1 = __webpack_require__(1);\r\nvar keyboard_1 = __webpack_require__(14);\r\nvar messaging_1 = __webpack_require__(3);\r\nvar signaling_1 = __webpack_require__(4);\r\nvar virtualdom_1 = __webpack_require__(9);\r\nvar widget_1 = __webpack_require__(2);\r\n/**\r\n * A widget which displays items as a canonical menu.\r\n */\r\nvar Menu = (function (_super) {\r\n __extends(Menu, _super);\r\n /**\r\n * Construct a new menu.\r\n *\r\n * @param options - The options for initializing the menu.\r\n */\r\n function Menu(options) {\r\n var _this = _super.call(this, { node: Private.createNode() }) || this;\r\n _this._childIndex = -1;\r\n _this._activeIndex = -1;\r\n _this._openTimerID = 0;\r\n _this._closeTimerID = 0;\r\n _this._items = [];\r\n _this._childMenu = null;\r\n _this._parentMenu = null;\r\n _this._aboutToClose = new signaling_1.Signal(_this);\r\n _this._menuRequested = new signaling_1.Signal(_this);\r\n _this.addClass('p-Menu');\r\n _this.setFlag(widget_1.Widget.Flag.DisallowLayout);\r\n _this.commands = options.commands;\r\n _this.renderer = options.renderer || Menu.defaultRenderer;\r\n return _this;\r\n }\r\n /**\r\n * Dispose of the resources held by the menu.\r\n */\r\n Menu.prototype.dispose = function () {\r\n this.close();\r\n this._items.length = 0;\r\n _super.prototype.dispose.call(this);\r\n };\r\n Object.defineProperty(Menu.prototype, \"aboutToClose\", {\r\n /**\r\n * A signal emitted just before the menu is closed.\r\n *\r\n * #### Notes\r\n * This signal is emitted when the menu receives a `'close-request'`\r\n * message, just before it removes itself from the DOM.\r\n *\r\n * This signal is not emitted if the menu is already detached from\r\n * the DOM when it receives the `'close-request'` message.\r\n */\r\n get: function () {\r\n return this._aboutToClose;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Menu.prototype, \"menuRequested\", {\r\n /**\r\n * A signal emitted when a new menu is requested by the user.\r\n *\r\n * #### Notes\r\n * This signal is emitted whenever the user presses the right or left\r\n * arrow keys, and a submenu cannot be opened or closed in response.\r\n *\r\n * This signal is useful when implementing menu bars in order to open\r\n * the next or previous menu in response to a user key press.\r\n *\r\n * This signal is only emitted for the root menu in a hierarchy.\r\n */\r\n get: function () {\r\n return this._menuRequested;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Menu.prototype, \"parentMenu\", {\r\n /**\r\n * The parent menu of the menu.\r\n *\r\n * #### Notes\r\n * This is `null` unless the menu is an open submenu.\r\n */\r\n get: function () {\r\n return this._parentMenu;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Menu.prototype, \"childMenu\", {\r\n /**\r\n * The child menu of the menu.\r\n *\r\n * #### Notes\r\n * This is `null` unless the menu has an open submenu.\r\n */\r\n get: function () {\r\n return this._childMenu;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Menu.prototype, \"rootMenu\", {\r\n /**\r\n * The root menu of the menu hierarchy.\r\n */\r\n get: function () {\r\n var menu = this;\r\n while (menu._parentMenu) {\r\n menu = menu._parentMenu;\r\n }\r\n return menu;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Menu.prototype, \"leafMenu\", {\r\n /**\r\n * The leaf menu of the menu hierarchy.\r\n */\r\n get: function () {\r\n var menu = this;\r\n while (menu._childMenu) {\r\n menu = menu._childMenu;\r\n }\r\n return menu;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Menu.prototype, \"contentNode\", {\r\n /**\r\n * The menu content node.\r\n *\r\n * #### Notes\r\n * This is the node which holds the menu item nodes.\r\n *\r\n * Modifying this node directly can lead to undefined behavior.\r\n */\r\n get: function () {\r\n return this.node.getElementsByClassName('p-Menu-content')[0];\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Menu.prototype, \"activeItem\", {\r\n /**\r\n * Get the currently active menu item.\r\n */\r\n get: function () {\r\n return this._items[this._activeIndex] || null;\r\n },\r\n /**\r\n * Set the currently active menu item.\r\n *\r\n * #### Notes\r\n * If the item cannot be activated, the item will be set to `null`.\r\n */\r\n set: function (value) {\r\n this.activeIndex = value ? this._items.indexOf(value) : -1;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Menu.prototype, \"activeIndex\", {\r\n /**\r\n * Get the index of the currently active menu item.\r\n *\r\n * #### Notes\r\n * This will be `-1` if no menu item is active.\r\n */\r\n get: function () {\r\n return this._activeIndex;\r\n },\r\n /**\r\n * Set the index of the currently active menu item.\r\n *\r\n * #### Notes\r\n * If the item cannot be activated, the index will be set to `-1`.\r\n */\r\n set: function (value) {\r\n // Adjust the value for an out of range index.\r\n if (value < 0 || value >= this._items.length) {\r\n value = -1;\r\n }\r\n // Ensure the item can be activated.\r\n if (value !== -1 && !Private.canActivate(this._items[value])) {\r\n value = -1;\r\n }\r\n // Bail if the index will not change.\r\n if (this._activeIndex === value) {\r\n return;\r\n }\r\n // Update the active index.\r\n this._activeIndex = value;\r\n // schedule an update of the items.\r\n this.update();\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Menu.prototype, \"items\", {\r\n /**\r\n * A read-only array of the menu items in the menu.\r\n */\r\n get: function () {\r\n return this._items;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * Activate the next selectable item in the menu.\r\n *\r\n * #### Notes\r\n * If no item is selectable, the index will be set to `-1`.\r\n */\r\n Menu.prototype.activateNextItem = function () {\r\n var n = this._items.length;\r\n var ai = this._activeIndex;\r\n var start = ai < n - 1 ? ai + 1 : 0;\r\n var stop = start === 0 ? n - 1 : start - 1;\r\n this.activeIndex = algorithm_1.ArrayExt.findFirstIndex(this._items, Private.canActivate, start, stop);\r\n };\r\n /**\r\n * Activate the previous selectable item in the menu.\r\n *\r\n * #### Notes\r\n * If no item is selectable, the index will be set to `-1`.\r\n */\r\n Menu.prototype.activatePreviousItem = function () {\r\n var n = this._items.length;\r\n var ai = this._activeIndex;\r\n var start = ai <= 0 ? n - 1 : ai - 1;\r\n var stop = start === n - 1 ? 0 : start + 1;\r\n this.activeIndex = algorithm_1.ArrayExt.findLastIndex(this._items, Private.canActivate, start, stop);\r\n };\r\n /**\r\n * Trigger the active menu item.\r\n *\r\n * #### Notes\r\n * If the active item is a submenu, it will be opened and the first\r\n * item will be activated.\r\n *\r\n * If the active item is a command, the command will be executed.\r\n *\r\n * If the menu is not attached, this is a no-op.\r\n *\r\n * If there is no active item, this is a no-op.\r\n */\r\n Menu.prototype.triggerActiveItem = function () {\r\n // Bail if the menu is not attached.\r\n if (!this.isAttached) {\r\n return;\r\n }\r\n // Bail if there is no active item.\r\n var item = this.activeItem;\r\n if (!item) {\r\n return;\r\n }\r\n // Cancel the pending timers.\r\n this._cancelOpenTimer();\r\n this._cancelCloseTimer();\r\n // If the item is a submenu, open it.\r\n if (item.type === 'submenu') {\r\n this._openChildMenu(true);\r\n return;\r\n }\r\n // Close the root menu before executing the command.\r\n this.rootMenu.close();\r\n // Execute the command for the item.\r\n var command = item.command, args = item.args;\r\n if (this.commands.isEnabled(command, args)) {\r\n this.commands.execute(command, args);\r\n }\r\n else {\r\n console.log(\"Command '\" + command + \"' is disabled.\");\r\n }\r\n };\r\n /**\r\n * Add a menu item to the end of the menu.\r\n *\r\n * @param options - The options for creating the menu item.\r\n *\r\n * @returns The menu item added to the menu.\r\n */\r\n Menu.prototype.addItem = function (options) {\r\n return this.insertItem(this._items.length, options);\r\n };\r\n /**\r\n * Insert a menu item into the menu at the specified index.\r\n *\r\n * @param index - The index at which to insert the item.\r\n *\r\n * @param options - The options for creating the menu item.\r\n *\r\n * @returns The menu item added to the menu.\r\n *\r\n * #### Notes\r\n * The index will be clamped to the bounds of the items.\r\n */\r\n Menu.prototype.insertItem = function (index, options) {\r\n // Close the menu if it's attached.\r\n if (this.isAttached) {\r\n this.close();\r\n }\r\n // Reset the active index.\r\n this.activeIndex = -1;\r\n // Clamp the insert index to the array bounds.\r\n var i = Math.max(0, Math.min(index, this._items.length));\r\n // Create the item for the options.\r\n var item = Private.createItem(this, options);\r\n // Insert the item into the array.\r\n algorithm_1.ArrayExt.insert(this._items, i, item);\r\n // Schedule an update of the items.\r\n this.update();\r\n // Return the item added to the menu.\r\n return item;\r\n };\r\n /**\r\n * Remove an item from the menu.\r\n *\r\n * @param item - The item to remove from the menu.\r\n *\r\n * #### Notes\r\n * This is a no-op if the item is not in the menu.\r\n */\r\n Menu.prototype.removeItem = function (item) {\r\n this.removeItemAt(this._items.indexOf(item));\r\n };\r\n /**\r\n * Remove the item at a given index from the menu.\r\n *\r\n * @param index - The index of the item to remove.\r\n *\r\n * #### Notes\r\n * This is a no-op if the index is out of range.\r\n */\r\n Menu.prototype.removeItemAt = function (index) {\r\n // Close the menu if it's attached.\r\n if (this.isAttached) {\r\n this.close();\r\n }\r\n // Reset the active index.\r\n this.activeIndex = -1;\r\n // Remove the item from the array.\r\n var item = algorithm_1.ArrayExt.removeAt(this._items, index);\r\n // Bail if the index is out of range.\r\n if (!item) {\r\n return;\r\n }\r\n // Schedule an update of the items.\r\n this.update();\r\n };\r\n /**\r\n * Remove all menu items from the menu.\r\n */\r\n Menu.prototype.clearItems = function () {\r\n // Close the menu if it's attached.\r\n if (this.isAttached) {\r\n this.close();\r\n }\r\n // Reset the active index.\r\n this.activeIndex = -1;\r\n // Bail if there is nothing to remove.\r\n if (this._items.length === 0) {\r\n return;\r\n }\r\n // Clear the items.\r\n this._items.length = 0;\r\n // Schedule an update of the items.\r\n this.update();\r\n };\r\n /**\r\n * Open the menu at the specified location.\r\n *\r\n * @param x - The client X coordinate of the menu location.\r\n *\r\n * @param y - The client Y coordinate of the menu location.\r\n *\r\n * @param options - The additional options for opening the menu.\r\n *\r\n * #### Notes\r\n * The menu will be opened at the given location unless it will not\r\n * fully fit on the screen. If it will not fit, it will be adjusted\r\n * to fit naturally on the screen.\r\n *\r\n * This is a no-op if the menu is already attached to the DOM.\r\n */\r\n Menu.prototype.open = function (x, y, options) {\r\n if (options === void 0) { options = {}; }\r\n // Bail early if the menu is already attached.\r\n if (this.isAttached) {\r\n return;\r\n }\r\n // Extract the position options.\r\n var forceX = options.forceX || false;\r\n var forceY = options.forceY || false;\r\n // Open the menu as a root menu.\r\n Private.openRootMenu(this, x, y, forceX, forceY);\r\n // Activate the menu to accept keyboard input.\r\n this.activate();\r\n };\r\n /**\r\n * Handle the DOM events for the menu.\r\n *\r\n * @param event - The DOM event sent to the menu.\r\n *\r\n * #### Notes\r\n * This method implements the DOM `EventListener` interface and is\r\n * called in response to events on the menu's DOM nodes. It should\r\n * not be called directly by user code.\r\n */\r\n Menu.prototype.handleEvent = function (event) {\r\n switch (event.type) {\r\n case 'keydown':\r\n this._evtKeyDown(event);\r\n break;\r\n case 'mouseup':\r\n this._evtMouseUp(event);\r\n break;\r\n case 'mousemove':\r\n this._evtMouseMove(event);\r\n break;\r\n case 'mouseenter':\r\n this._evtMouseEnter(event);\r\n break;\r\n case 'mouseleave':\r\n this._evtMouseLeave(event);\r\n break;\r\n case 'mousedown':\r\n this._evtMouseDown(event);\r\n break;\r\n case 'contextmenu':\r\n event.preventDefault();\r\n event.stopPropagation();\r\n break;\r\n }\r\n };\r\n /**\r\n * A message handler invoked on a `'before-attach'` message.\r\n */\r\n Menu.prototype.onBeforeAttach = function (msg) {\r\n this.node.addEventListener('keydown', this);\r\n this.node.addEventListener('mouseup', this);\r\n this.node.addEventListener('mousemove', this);\r\n this.node.addEventListener('mouseenter', this);\r\n this.node.addEventListener('mouseleave', this);\r\n this.node.addEventListener('contextmenu', this);\r\n document.addEventListener('mousedown', this, true);\r\n };\r\n /**\r\n * A message handler invoked on an `'after-detach'` message.\r\n */\r\n Menu.prototype.onAfterDetach = function (msg) {\r\n this.node.removeEventListener('keydown', this);\r\n this.node.removeEventListener('mouseup', this);\r\n this.node.removeEventListener('mousemove', this);\r\n this.node.removeEventListener('mouseenter', this);\r\n this.node.removeEventListener('mouseleave', this);\r\n this.node.removeEventListener('contextmenu', this);\r\n document.removeEventListener('mousedown', this, true);\r\n };\r\n /**\r\n * A message handler invoked on an `'activate-request'` message.\r\n */\r\n Menu.prototype.onActivateRequest = function (msg) {\r\n if (this.isAttached) {\r\n this.node.focus();\r\n }\r\n };\r\n /**\r\n * A message handler invoked on an `'update-request'` message.\r\n */\r\n Menu.prototype.onUpdateRequest = function (msg) {\r\n var items = this._items;\r\n var renderer = this.renderer;\r\n var activeIndex = this._activeIndex;\r\n var collapsedFlags = Private.computeCollapsed(items);\r\n var content = new Array(items.length);\r\n for (var i = 0, n = items.length; i < n; ++i) {\r\n var item = items[i];\r\n var active = i === activeIndex;\r\n var collapsed = collapsedFlags[i];\r\n content[i] = renderer.renderItem({ item: item, active: active, collapsed: collapsed });\r\n }\r\n virtualdom_1.VirtualDOM.render(content, this.contentNode);\r\n };\r\n /**\r\n * A message handler invoked on a `'close-request'` message.\r\n */\r\n Menu.prototype.onCloseRequest = function (msg) {\r\n // Cancel the pending timers.\r\n this._cancelOpenTimer();\r\n this._cancelCloseTimer();\r\n // Reset the active index.\r\n this.activeIndex = -1;\r\n // Close any open child menu.\r\n var childMenu = this._childMenu;\r\n if (childMenu) {\r\n this._childIndex = -1;\r\n this._childMenu = null;\r\n childMenu._parentMenu = null;\r\n childMenu.close();\r\n }\r\n // Remove this menu from its parent and activate the parent.\r\n var parentMenu = this._parentMenu;\r\n if (parentMenu) {\r\n this._parentMenu = null;\r\n parentMenu._childIndex = -1;\r\n parentMenu._childMenu = null;\r\n parentMenu.activate();\r\n }\r\n // Emit the `aboutToClose` signal if the menu is attached.\r\n if (this.isAttached) {\r\n this._aboutToClose.emit(undefined);\r\n }\r\n // Finish closing the menu.\r\n _super.prototype.onCloseRequest.call(this, msg);\r\n };\r\n /**\r\n * Handle the `'keydown'` event for the menu.\r\n *\r\n * #### Notes\r\n * This listener is attached to the menu node.\r\n */\r\n Menu.prototype._evtKeyDown = function (event) {\r\n // A menu handles all keydown events.\r\n event.preventDefault();\r\n event.stopPropagation();\r\n // Fetch the key code for the event.\r\n var kc = event.keyCode;\r\n // Enter\r\n if (kc === 13) {\r\n this.triggerActiveItem();\r\n return;\r\n }\r\n // Escape\r\n if (kc === 27) {\r\n this.close();\r\n return;\r\n }\r\n // Left Arrow\r\n if (kc === 37) {\r\n if (this._parentMenu) {\r\n this.close();\r\n }\r\n else {\r\n this._menuRequested.emit('previous');\r\n }\r\n return;\r\n }\r\n // Up Arrow\r\n if (kc === 38) {\r\n this.activatePreviousItem();\r\n return;\r\n }\r\n // Right Arrow\r\n if (kc === 39) {\r\n var item = this.activeItem;\r\n if (item && item.type === 'submenu') {\r\n this.triggerActiveItem();\r\n }\r\n else {\r\n this.rootMenu._menuRequested.emit('next');\r\n }\r\n return;\r\n }\r\n // Down Arrow\r\n if (kc === 40) {\r\n this.activateNextItem();\r\n return;\r\n }\r\n // Get the pressed key character.\r\n var key = keyboard_1.getKeyboardLayout().keyForKeydownEvent(event);\r\n // Bail if the key is not valid.\r\n if (!key) {\r\n return;\r\n }\r\n // Search for the next best matching mnemonic item.\r\n var start = this._activeIndex + 1;\r\n var result = Private.findMnemonic(this._items, key, start);\r\n // Handle the requested mnemonic based on the search results.\r\n // If exactly one mnemonic is matched, that item is triggered.\r\n // Otherwise, the next mnemonic is activated if available,\r\n // followed by the auto mnemonic if available.\r\n if (result.index !== -1 && !result.multiple) {\r\n this.activeIndex = result.index;\r\n this.triggerActiveItem();\r\n }\r\n else if (result.index !== -1) {\r\n this.activeIndex = result.index;\r\n }\r\n else if (result.auto !== -1) {\r\n this.activeIndex = result.auto;\r\n }\r\n };\r\n /**\r\n * Handle the `'mouseup'` event for the menu.\r\n *\r\n * #### Notes\r\n * This listener is attached to the menu node.\r\n */\r\n Menu.prototype._evtMouseUp = function (event) {\r\n if (event.button !== 0) {\r\n return;\r\n }\r\n event.preventDefault();\r\n event.stopPropagation();\r\n this.triggerActiveItem();\r\n };\r\n /**\r\n * Handle the `'mousemove'` event for the menu.\r\n *\r\n * #### Notes\r\n * This listener is attached to the menu node.\r\n */\r\n Menu.prototype._evtMouseMove = function (event) {\r\n // Hit test the item nodes for the item under the mouse.\r\n var index = algorithm_1.ArrayExt.findFirstIndex(this.contentNode.children, function (node) {\r\n return domutils_1.ElementExt.hitTest(node, event.clientX, event.clientY);\r\n });\r\n // Bail early if the mouse is already over the active index.\r\n if (index === this._activeIndex) {\r\n return;\r\n }\r\n // Update and coerce the active index.\r\n this.activeIndex = index;\r\n index = this.activeIndex;\r\n // If the index is the current child index, cancel the timers.\r\n if (index === this._childIndex) {\r\n this._cancelOpenTimer();\r\n this._cancelCloseTimer();\r\n return;\r\n }\r\n // If a child menu is currently open, start the close timer.\r\n if (this._childIndex !== -1) {\r\n this._startCloseTimer();\r\n }\r\n // Cancel the open timer to give a full delay for opening.\r\n this._cancelOpenTimer();\r\n // Bail if the active item is not a valid submenu item.\r\n var item = this.activeItem;\r\n if (!item || item.type !== 'submenu' || !item.submenu) {\r\n return;\r\n }\r\n // Start the open timer to open the active item submenu.\r\n this._startOpenTimer();\r\n };\r\n /**\r\n * Handle the `'mouseenter'` event for the menu.\r\n *\r\n * #### Notes\r\n * This listener is attached to the menu node.\r\n */\r\n Menu.prototype._evtMouseEnter = function (event) {\r\n // Synchronize the active ancestor items.\r\n for (var menu = this._parentMenu; menu; menu = menu._parentMenu) {\r\n menu._cancelOpenTimer();\r\n menu._cancelCloseTimer();\r\n menu.activeIndex = menu._childIndex;\r\n }\r\n };\r\n /**\r\n * Handle the `'mouseleave'` event for the menu.\r\n *\r\n * #### Notes\r\n * This listener is attached to the menu node.\r\n */\r\n Menu.prototype._evtMouseLeave = function (event) {\r\n // Cancel any pending submenu opening.\r\n this._cancelOpenTimer();\r\n // If there is no open child menu, just reset the active index.\r\n if (!this._childMenu) {\r\n this.activeIndex = -1;\r\n return;\r\n }\r\n // If the mouse is over the child menu, cancel the close timer.\r\n var clientX = event.clientX, clientY = event.clientY;\r\n if (domutils_1.ElementExt.hitTest(this._childMenu.node, clientX, clientY)) {\r\n this._cancelCloseTimer();\r\n return;\r\n }\r\n // Otherwise, reset the active index and start the close timer.\r\n this.activeIndex = -1;\r\n this._startCloseTimer();\r\n };\r\n /**\r\n * Handle the `'mousedown'` event for the menu.\r\n *\r\n * #### Notes\r\n * This listener is attached to the document node.\r\n */\r\n Menu.prototype._evtMouseDown = function (event) {\r\n // Bail if the menu is not a root menu.\r\n if (this._parentMenu) {\r\n return;\r\n }\r\n // The mouse button which is pressed is irrelevant. If the press\r\n // is not on a menu, the entire hierarchy is closed and the event\r\n // is allowed to propagate. This allows other code to act on the\r\n // event, such as focusing the clicked element.\r\n if (Private.hitTestMenus(this, event.clientX, event.clientY)) {\r\n event.preventDefault();\r\n event.stopPropagation();\r\n }\r\n else {\r\n this.close();\r\n }\r\n };\r\n /**\r\n * Open the child menu at the active index immediately.\r\n *\r\n * If a different child menu is already open, it will be closed,\r\n * even if the active item is not a valid submenu.\r\n */\r\n Menu.prototype._openChildMenu = function (activateFirst) {\r\n if (activateFirst === void 0) { activateFirst = false; }\r\n // If the item is not a valid submenu, close the child menu.\r\n var item = this.activeItem;\r\n if (!item || item.type !== 'submenu' || !item.submenu) {\r\n this._closeChildMenu();\r\n return;\r\n }\r\n // Do nothing if the child menu will not change.\r\n var submenu = item.submenu;\r\n if (submenu === this._childMenu) {\r\n return;\r\n }\r\n // Ensure the current child menu is closed.\r\n this._closeChildMenu();\r\n // Update the private child state.\r\n this._childMenu = submenu;\r\n this._childIndex = this._activeIndex;\r\n // Set the parent menu reference for the child.\r\n submenu._parentMenu = this;\r\n // Ensure the menu is updated and lookup the item node.\r\n messaging_1.MessageLoop.sendMessage(this, widget_1.Widget.Msg.UpdateRequest);\r\n var itemNode = this.contentNode.children[this._activeIndex];\r\n // Open the submenu at the active node.\r\n Private.openSubmenu(submenu, itemNode);\r\n // Activate the first item if desired.\r\n if (activateFirst) {\r\n submenu.activeIndex = -1;\r\n submenu.activateNextItem();\r\n }\r\n // Activate the child menu.\r\n submenu.activate();\r\n };\r\n /**\r\n * Close the child menu immediately.\r\n *\r\n * This is a no-op if a child menu is not open.\r\n */\r\n Menu.prototype._closeChildMenu = function () {\r\n if (this._childMenu) {\r\n this._childMenu.close();\r\n }\r\n };\r\n /**\r\n * Start the open timer, unless it is already pending.\r\n */\r\n Menu.prototype._startOpenTimer = function () {\r\n var _this = this;\r\n if (this._openTimerID === 0) {\r\n this._openTimerID = setTimeout(function () {\r\n _this._openTimerID = 0;\r\n _this._openChildMenu();\r\n }, Private.TIMER_DELAY);\r\n }\r\n };\r\n /**\r\n * Start the close timer, unless it is already pending.\r\n */\r\n Menu.prototype._startCloseTimer = function () {\r\n var _this = this;\r\n if (this._closeTimerID === 0) {\r\n this._closeTimerID = setTimeout(function () {\r\n _this._closeTimerID = 0;\r\n _this._closeChildMenu();\r\n }, Private.TIMER_DELAY);\r\n }\r\n };\r\n /**\r\n * Cancel the open timer, if the timer is pending.\r\n */\r\n Menu.prototype._cancelOpenTimer = function () {\r\n if (this._openTimerID !== 0) {\r\n clearTimeout(this._openTimerID);\r\n this._openTimerID = 0;\r\n }\r\n };\r\n /**\r\n * Cancel the close timer, if the timer is pending.\r\n */\r\n Menu.prototype._cancelCloseTimer = function () {\r\n if (this._closeTimerID !== 0) {\r\n clearTimeout(this._closeTimerID);\r\n this._closeTimerID = 0;\r\n }\r\n };\r\n return Menu;\r\n}(widget_1.Widget));\r\nexports.Menu = Menu;\r\n/**\r\n * The namespace for the `Menu` class statics.\r\n */\r\n(function (Menu) {\r\n /**\r\n * The default implementation of `IRenderer`.\r\n *\r\n * #### Notes\r\n * Subclasses are free to reimplement rendering methods as needed.\r\n */\r\n var Renderer = (function () {\r\n /**\r\n * Construct a new renderer.\r\n */\r\n function Renderer() {\r\n }\r\n /**\r\n * Render the virtual element for a menu item.\r\n *\r\n * @param data - The data to use for rendering the item.\r\n *\r\n * @returns A virtual element representing the item.\r\n */\r\n Renderer.prototype.renderItem = function (data) {\r\n var className = this.createItemClass(data);\r\n var dataset = this.createItemDataset(data);\r\n return (virtualdom_1.h.li({ className: className, dataset: dataset }, this.renderIcon(data), this.renderLabel(data), this.renderShortcut(data), this.renderSubmenu(data)));\r\n };\r\n /**\r\n * Render the icon element for a menu item.\r\n *\r\n * @param data - The data to use for rendering the icon.\r\n *\r\n * @returns A virtual element representing the item icon.\r\n */\r\n Renderer.prototype.renderIcon = function (data) {\r\n var className = this.createIconClass(data);\r\n return virtualdom_1.h.div({ className: className }, data.item.iconLabel);\r\n };\r\n /**\r\n * Render the label element for a menu item.\r\n *\r\n * @param data - The data to use for rendering the label.\r\n *\r\n * @returns A virtual element representing the item label.\r\n */\r\n Renderer.prototype.renderLabel = function (data) {\r\n var content = this.formatLabel(data);\r\n return virtualdom_1.h.div({ className: 'p-Menu-itemLabel' }, content);\r\n };\r\n /**\r\n * Render the shortcut element for a menu item.\r\n *\r\n * @param data - The data to use for rendering the shortcut.\r\n *\r\n * @returns A virtual element representing the item shortcut.\r\n */\r\n Renderer.prototype.renderShortcut = function (data) {\r\n var content = this.formatShortcut(data);\r\n return virtualdom_1.h.div({ className: 'p-Menu-itemShortcut' }, content);\r\n };\r\n /**\r\n * Render the submenu icon element for a menu item.\r\n *\r\n * @param data - The data to use for rendering the submenu icon.\r\n *\r\n * @returns A virtual element representing the submenu icon.\r\n */\r\n Renderer.prototype.renderSubmenu = function (data) {\r\n return virtualdom_1.h.div({ className: 'p-Menu-itemSubmenuIcon' });\r\n };\r\n /**\r\n * Create the class name for the menu item.\r\n *\r\n * @param data - The data to use for the class name.\r\n *\r\n * @returns The full class name for the menu item.\r\n */\r\n Renderer.prototype.createItemClass = function (data) {\r\n // Setup the initial class name.\r\n var name = 'p-Menu-item';\r\n // Add the boolean state classes.\r\n if (!data.item.isEnabled) {\r\n name += ' p-mod-disabled';\r\n }\r\n if (data.item.isToggled) {\r\n name += ' p-mod-toggled';\r\n }\r\n if (!data.item.isVisible) {\r\n name += ' p-mod-hidden';\r\n }\r\n if (data.active) {\r\n name += ' p-mod-active';\r\n }\r\n if (data.collapsed) {\r\n name += ' p-mod-collapsed';\r\n }\r\n // Add the extra class.\r\n var extra = data.item.className;\r\n if (extra) {\r\n name += \" \" + extra;\r\n }\r\n // Return the complete class name.\r\n return name;\r\n };\r\n /**\r\n * Create the dataset for the menu item.\r\n *\r\n * @param data - The data to use for creating the dataset.\r\n *\r\n * @returns The dataset for the menu item.\r\n */\r\n Renderer.prototype.createItemDataset = function (data) {\r\n var result;\r\n var _a = data.item, type = _a.type, command = _a.command, dataset = _a.dataset;\r\n if (type === 'command') {\r\n result = __assign({}, dataset, { type: type, command: command });\r\n }\r\n else {\r\n result = __assign({}, dataset, { type: type });\r\n }\r\n return result;\r\n };\r\n /**\r\n * Create the class name for the menu item icon.\r\n *\r\n * @param data - The data to use for the class name.\r\n *\r\n * @returns The full class name for the item icon.\r\n */\r\n Renderer.prototype.createIconClass = function (data) {\r\n var name = 'p-Menu-itemIcon';\r\n var extra = data.item.iconClass;\r\n return extra ? name + \" \" + extra : name;\r\n };\r\n /**\r\n * Create the render content for the label node.\r\n *\r\n * @param data - The data to use for the label content.\r\n *\r\n * @returns The content to add to the label node.\r\n */\r\n Renderer.prototype.formatLabel = function (data) {\r\n // Fetch the label text and mnemonic index.\r\n var _a = data.item, label = _a.label, mnemonic = _a.mnemonic;\r\n // If the index is out of range, do not modify the label.\r\n if (mnemonic < 0 || mnemonic >= label.length) {\r\n return label;\r\n }\r\n // Split the label into parts.\r\n var
View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment