flexlayout-react 0.5.16 → 0.5.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ChangeLog.txt +24 -0
- package/README.md +128 -97
- package/declarations/DragDrop.d.ts +1 -0
- package/declarations/Rect.d.ts +4 -0
- package/declarations/Types.d.ts +8 -1
- package/declarations/model/BorderNode.d.ts +2 -1
- package/declarations/model/IJsonModel.d.ts +8 -0
- package/declarations/model/Model.d.ts +1 -0
- package/declarations/view/Layout.d.ts +19 -6
- package/dist/flexlayout.js +19 -19
- package/dist/flexlayout_min.js +1 -1
- package/lib/DockLocation.js +25 -11
- package/lib/DockLocation.js.map +1 -1
- package/lib/DragDrop.js +19 -3
- package/lib/DragDrop.js.map +1 -1
- package/lib/PopupMenu.js +14 -9
- package/lib/PopupMenu.js.map +1 -1
- package/lib/Rect.js +3 -0
- package/lib/Rect.js.map +1 -1
- package/lib/Types.js +7 -0
- package/lib/Types.js.map +1 -1
- package/lib/model/BorderNode.js +61 -14
- package/lib/model/BorderNode.js.map +1 -1
- package/lib/model/BorderSet.js +33 -19
- package/lib/model/BorderSet.js.map +1 -1
- package/lib/model/Model.js +23 -3
- package/lib/model/Model.js.map +1 -1
- package/lib/model/RowNode.js +19 -5
- package/lib/model/RowNode.js.map +1 -1
- package/lib/model/TabNode.js +10 -0
- package/lib/model/TabNode.js.map +1 -1
- package/lib/model/TabSetNode.js +34 -19
- package/lib/model/TabSetNode.js.map +1 -1
- package/lib/view/BorderButton.js +17 -6
- package/lib/view/BorderButton.js.map +1 -1
- package/lib/view/BorderTabSet.js +17 -6
- package/lib/view/BorderTabSet.js.map +1 -1
- package/lib/view/Layout.js +232 -57
- package/lib/view/Layout.js.map +1 -1
- package/lib/view/Splitter.js +35 -4
- package/lib/view/Splitter.js.map +1 -1
- package/lib/view/Tab.js +2 -2
- package/lib/view/Tab.js.map +1 -1
- package/lib/view/TabButton.js +16 -7
- package/lib/view/TabButton.js.map +1 -1
- package/lib/view/TabFloating.js +24 -12
- package/lib/view/TabFloating.js.map +1 -1
- package/lib/view/TabSet.js +49 -24
- package/lib/view/TabSet.js.map +1 -1
- package/package.json +11 -6
- package/src/DockLocation.ts +30 -9
- package/src/DragDrop.ts +26 -3
- package/src/PopupMenu.tsx +32 -11
- package/src/Rect.ts +6 -2
- package/src/Types.ts +7 -0
- package/src/model/BorderNode.ts +57 -15
- package/src/model/BorderSet.ts +32 -19
- package/src/model/IJsonModel.ts +8 -0
- package/src/model/Model.ts +30 -3
- package/src/model/RowNode.ts +8 -5
- package/src/model/TabNode.ts +11 -0
- package/src/model/TabSetNode.ts +33 -19
- package/src/view/BorderButton.tsx +34 -6
- package/src/view/BorderTabSet.tsx +25 -5
- package/src/view/Layout.tsx +299 -82
- package/src/view/Splitter.tsx +53 -4
- package/src/view/Tab.tsx +8 -2
- package/src/view/TabButton.tsx +31 -7
- package/src/view/TabFloating.tsx +42 -20
- package/src/view/TabSet.tsx +70 -18
- package/style/_base.scss +78 -51
- package/style/dark.css +94 -68
- package/style/dark.css.map +1 -1
- package/style/dark.scss +20 -20
- package/style/gray.css +94 -68
- package/style/gray.css.map +1 -1
- package/style/gray.scss +20 -20
- package/style/light.css +94 -68
- package/style/light.css.map +1 -1
- package/style/light.scss +18 -18
- package/yarn-error.log +0 -11828
package/dist/flexlayout_min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.FlexLayout=e(require("react"),require("react-dom")):t.FlexLayout=e(t.React,t.ReactDOM)}(window,(function(t,e){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=15)}([function(e,i){e.exports=t},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this._name=t}return t.flip=function(e){return e===t.HORZ?t.VERT:t.HORZ},t.prototype.getName=function(){return this._name},t.prototype.toString=function(){return this._name},t.HORZ=new t("horz"),t.VERT=new t("vert"),t}();e.default=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),o=function(){function t(t,e,i,n){this.x=t,this.y=e,this.width=i,this.height=n}return t.empty=function(){return new t(0,0,0,0)},t.fromElement=function(e){var i=e.getBoundingClientRect();return new t(i.x,i.y,i.width,i.height)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.equals=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.getBottom=function(){return this.y+this.height},t.prototype.getRight=function(){return this.x+this.width},t.prototype.positionElement=function(t,e){this.styleWithPosition(t.style,e)},t.prototype.styleWithPosition=function(t,e){return void 0===e&&(e="absolute"),t.left=this.x+"px",t.top=this.y+"px",t.width=Math.max(0,this.width)+"px",t.height=Math.max(0,this.height)+"px",t.position=e,t},t.prototype.contains=function(t,e){return this.x<=t&&t<=this.getRight()&&this.y<=e&&e<=this.getBottom()},t.prototype.removeInsets=function(e){return new t(this.x+e.left,this.y+e.top,Math.max(0,this.width-e.left-e.right),Math.max(0,this.height-e.top-e.bottom))},t.prototype.centerInRect=function(t){this.x=(t.width-this.width)/2,this.y=(t.height-this.height)/2},t.prototype._getSize=function(t){var e=this.width;return t===n.default.VERT&&(e=this.height),e},t.prototype.toString=function(){return"(Rect: x="+this.x+", y="+this.y+", width="+this.width+", height="+this.height+")"},t}();e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CLASSES=void 0,function(t){t.FLEXLAYOUT__BORDER="flexlayout__border",t.FLEXLAYOUT__BORDER_="flexlayout__border_",t.FLEXLAYOUT__BORDER_BUTTON="flexlayout__border_button",t.FLEXLAYOUT__BORDER_BUTTON_="flexlayout__border_button_",t.FLEXLAYOUT__BORDER_BUTTON_CONTENT="flexlayout__border_button_content",t.FLEXLAYOUT__BORDER_BUTTON_LEADING="flexlayout__border_button_leading",t.FLEXLAYOUT__BORDER_BUTTON_TRAILING="flexlayout__border_button_trailing",t.FLEXLAYOUT__BORDER_BUTTON__SELECTED="flexlayout__border_button--selected",t.FLEXLAYOUT__BORDER_BUTTON__UNSELECTED="flexlayout__border_button--unselected",t.FLEXLAYOUT__BORDER_INNER="flexlayout__border_inner",t.FLEXLAYOUT__BORDER_INNER_="flexlayout__border_inner_",t.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER="flexlayout__border_inner_tab_container",t.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER_="flexlayout__border_inner_tab_container_",t.FLEXLAYOUT__BORDER_SIZER="flexlayout__border_sizer",t.FLEXLAYOUT__BORDER_TOOLBAR="flexlayout__border_toolbar",t.FLEXLAYOUT__BORDER_TOOLBAR_="flexlayout__border_toolbar_",t.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON="flexlayout__border_toolbar_button",t.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_FLOAT="flexlayout__border_toolbar_button-float",t.FLEXLAYOUT__DRAG_RECT="flexlayout__drag_rect",t.FLEXLAYOUT__EDGE_RECT="flexlayout__edge_rect",t.FLEXLAYOUT__ERROR_BOUNDARY_CONTAINER="flexlayout__error_boundary_container",t.FLEXLAYOUT__ERROR_BOUNDARY_CONTENT="flexlayout__error_boundary_content",t.FLEXLAYOUT__FLOATING_WINDOW_CONTENT="flexlayout__floating_window_content",t.FLEXLAYOUT__FLOATING_WINDOW_TAB="flexlayout__floating_window_tab",t.FLEXLAYOUT__LAYOUT="flexlayout__layout",t.FLEXLAYOUT__OUTLINE_RECT="flexlayout__outline_rect",t.FLEXLAYOUT__SPLITTER="flexlayout__splitter",t.FLEXLAYOUT__SPLITTER_="flexlayout__splitter_",t.FLEXLAYOUT__SPLITTER_BORDER="flexlayout__splitter_border",t.FLEXLAYOUT__SPLITTER_DRAG="flexlayout__splitter_drag",t.FLEXLAYOUT__TAB="flexlayout__tab",t.FLEXLAYOUT__TABSET="flexlayout__tabset",t.FLEXLAYOUT__TABSET_HEADER="flexlayout__tabset_header",t.FLEXLAYOUT__TABSET_HEADER_SIZER="flexlayout__tabset_header_sizer",t.FLEXLAYOUT__TABSET_HEADER_CONTENT="flexlayout__tabset_header_content",t.FLEXLAYOUT__TABSET_MAXIMIZED="flexlayout__tabset-maximized",t.FLEXLAYOUT__TABSET_SELECTED="flexlayout__tabset-selected",t.FLEXLAYOUT__TABSET_SIZER="flexlayout__tabset_sizer",t.FLEXLAYOUT__TABSET_TABBAR_INNER="flexlayout__tabset_tabbar_inner",t.FLEXLAYOUT__TABSET_TABBAR_INNER_="flexlayout__tabset_tabbar_inner_",t.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER="flexlayout__tabset_tabbar_inner_tab_container",t.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER_="flexlayout__tabset_tabbar_inner_tab_container_",t.FLEXLAYOUT__TABSET_TABBAR_OUTER="flexlayout__tabset_tabbar_outer",t.FLEXLAYOUT__TABSET_TABBAR_OUTER_="flexlayout__tabset_tabbar_outer_",t.FLEXLAYOUT__TAB_BORDER="flexlayout__tab_border",t.FLEXLAYOUT__TAB_BORDER_="flexlayout__tab_border_",t.FLEXLAYOUT__TAB_BUTTON="flexlayout__tab_button",t.FLEXLAYOUT__TAB_BUTTON_CONTENT="flexlayout__tab_button_content",t.FLEXLAYOUT__TAB_BUTTON_LEADING="flexlayout__tab_button_leading",t.FLEXLAYOUT__TAB_BUTTON_OVERFLOW="flexlayout__tab_button_overflow",t.FLEXLAYOUT__TAB_BUTTON_TEXTBOX="flexlayout__tab_button_textbox",t.FLEXLAYOUT__TAB_BUTTON_TRAILING="flexlayout__tab_button_trailing",t.FLEXLAYOUT__TAB_FLOATING="flexlayout__tab_floating",t.FLEXLAYOUT__TAB_FLOATING_INNER="flexlayout__tab_floating_inner",t.FLEXLAYOUT__TAB_TOOLBAR="flexlayout__tab_toolbar",t.FLEXLAYOUT__TAB_TOOLBAR_BUTTON="flexlayout__tab_toolbar_button",t.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_="flexlayout__tab_toolbar_button-",t.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_FLOAT="flexlayout__tab_toolbar_button-float",t.FLEXLAYOUT__TAB_TOOLBAR_STICKY_BUTTONS_CONTAINER="flexlayout__tab_toolbar_sticky_buttons_container",t.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_CLOSE="flexlayout__tab_toolbar_button-close"}(e.CLASSES||(e.CLASSES={}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(19),o=function(){function t(){}return t.addNode=function(e,i,o,r,a){return new n.default(t.ADD_NODE,{json:e,toNode:i,location:o.getName(),index:r,select:a})},t.moveNode=function(e,i,o,r,a){return new n.default(t.MOVE_NODE,{fromNode:e,toNode:i,location:o.getName(),index:r,select:a})},t.deleteTab=function(e){return new n.default(t.DELETE_TAB,{node:e})},t.deleteTabset=function(e){return new n.default(t.DELETE_TABSET,{node:e})},t.renameTab=function(e,i){return new n.default(t.RENAME_TAB,{node:e,text:i})},t.selectTab=function(e){return new n.default(t.SELECT_TAB,{tabNode:e})},t.setActiveTabset=function(e){return new n.default(t.SET_ACTIVE_TABSET,{tabsetNode:e})},t.adjustSplit=function(e){var i=e.node1Id,o=e.node2Id;return new n.default(t.ADJUST_SPLIT,{node1:i,weight1:e.weight1,pixelWidth1:e.pixelWidth1,node2:o,weight2:e.weight2,pixelWidth2:e.pixelWidth2})},t.adjustBorderSplit=function(e,i){return new n.default(t.ADJUST_BORDER_SPLIT,{node:e,pos:i})},t.maximizeToggle=function(e){return new n.default(t.MAXIMIZE_TOGGLE,{node:e})},t.updateModelAttributes=function(e){return new n.default(t.UPDATE_MODEL_ATTRIBUTES,{json:e})},t.updateNodeAttributes=function(e,i){return new n.default(t.UPDATE_NODE_ATTRIBUTES,{node:e,json:i})},t.floatTab=function(e){return new n.default(t.FLOAT_TAB,{node:e})},t.unFloatTab=function(e){return new n.default(t.UNFLOAT_TAB,{node:e})},t.ADD_NODE="FlexLayout_AddNode",t.MOVE_NODE="FlexLayout_MoveNode",t.DELETE_TAB="FlexLayout_DeleteTab",t.DELETE_TABSET="FlexLayout_DeleteTabset",t.RENAME_TAB="FlexLayout_RenameTab",t.SELECT_TAB="FlexLayout_SelectTab",t.SET_ACTIVE_TABSET="FlexLayout_SetActiveTabset",t.ADJUST_SPLIT="FlexLayout_AdjustSplit",t.ADJUST_BORDER_SPLIT="FlexLayout_AdjustBorderSplit",t.MAXIMIZE_TOGGLE="FlexLayout_MaximizeToggle",t.UPDATE_MODEL_ATTRIBUTES="FlexLayout_UpdateModelAttributes",t.UPDATE_NODE_ATTRIBUTES="FlexLayout_UpdateNodeAttributes",t.FLOAT_TAB="FlexLayout_FloatTab",t.UNFLOAT_TAB="FlexLayout_UnFloatTab",t}();e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),o=i(2),r=function(){function t(e,i,n){this._name=e,this._orientation=i,this._indexPlus=n,t.values[this._name]=this}return t.getByName=function(e){return t.values[e]},t.getLocation=function(e,i,n){return i<e.x+e.width/4?t.LEFT:i>e.getRight()-e.width/4?t.RIGHT:n<e.y+e.height/4?t.TOP:n>e.getBottom()-e.height/4?t.BOTTOM:t.CENTER},t.prototype.getName=function(){return this._name},t.prototype.getOrientation=function(){return this._orientation},t.prototype.getDockRect=function(e){return this===t.TOP?new o.default(e.x,e.y,e.width,e.height/2):this===t.BOTTOM?new o.default(e.x,e.getBottom()-e.height/2,e.width,e.height/2):this===t.LEFT?new o.default(e.x,e.y,e.width/2,e.height):this===t.RIGHT?new o.default(e.getRight()-e.width/2,e.y,e.width/2,e.height):e.clone()},t.prototype.split=function(e,i){return this===t.TOP?{start:new o.default(e.x,e.y,e.width,i),end:new o.default(e.x,e.y+i,e.width,e.height-i)}:this===t.LEFT?{start:new o.default(e.x,e.y,i,e.height),end:new o.default(e.x+i,e.y,e.width-i,e.height)}:this===t.RIGHT?{start:new o.default(e.getRight()-i,e.y,i,e.height),end:new o.default(e.x,e.y,e.width-i,e.height)}:{start:new o.default(e.x,e.getBottom()-i,e.width,i),end:new o.default(e.x,e.y,e.width,e.height-i)}},t.prototype.reflect=function(){return this===t.TOP?t.BOTTOM:this===t.LEFT?t.RIGHT:this===t.RIGHT?t.LEFT:t.TOP},t.prototype.toString=function(){return"(DockLocation: name="+this._name+", orientation="+this._orientation+")"},t.values={},t.TOP=new t("top",n.default.VERT,0),t.BOTTOM=new t("bottom",n.default.VERT,1),t.LEFT=new t("left",n.default.HORZ,0),t.RIGHT=new t("right",n.default.HORZ,1),t.CENTER=new t("center",n.default.VERT,0),t}();e.default=r},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=i(9),a=i(10),s=i(5),d=i(13),l=i(1),u=i(2),c=i(11),h=i(18),_=i(12),f=i(17),p=function(t){function e(i,n){var o=t.call(this,i)||this;return e._attributeDefinitions.fromJson(n,o._attributes),i._addNode(o),o.calculatedTabBarHeight=0,o.calculatedHeaderBarHeight=0,o}return o(e,t),e._fromJson=function(t,i){var n=new e(i,t);return null!=t.children&&t.children.forEach((function(t){var e=_.default._fromJson(t,i);n._addChild(e)})),t.maximized&&!0===t.maximized&&i._setMaximizedTabset(n),t.active&&!0===t.active&&i._setActiveTabset(n),n},e._createAttributeDefinitions=function(){var t=new a.default;return t.add("type",e.TYPE,!0).setType(r.default.STRING).setFixed(),t.add("id",void 0).setType(r.default.STRING),t.add("weight",100).setType(r.default.NUMBER),t.add("width",void 0).setType(r.default.NUMBER),t.add("height",void 0).setType(r.default.NUMBER),t.add("selected",0).setType(r.default.NUMBER),t.add("name",void 0).setType(r.default.STRING),t.add("config",void 0).setType("any"),t.addInherited("enableDeleteWhenEmpty","tabSetEnableDeleteWhenEmpty"),t.addInherited("enableDrop","tabSetEnableDrop"),t.addInherited("enableDrag","tabSetEnableDrag"),t.addInherited("enableDivide","tabSetEnableDivide"),t.addInherited("enableMaximize","tabSetEnableMaximize"),t.addInherited("enableClose","tabSetEnableClose"),t.addInherited("classNameTabStrip","tabSetClassNameTabStrip"),t.addInherited("classNameHeader","tabSetClassNameHeader"),t.addInherited("enableTabStrip","tabSetEnableTabStrip"),t.addInherited("borderInsets","tabSetBorderInsets"),t.addInherited("marginInsets","tabSetMarginInsets"),t.addInherited("minWidth","tabSetMinWidth"),t.addInherited("minHeight","tabSetMinHeight"),t.addInherited("headerHeight","tabSetHeaderHeight"),t.addInherited("tabStripHeight","tabSetTabStripHeight"),t.addInherited("tabLocation","tabSetTabLocation"),t.addInherited("autoSelectTab","tabSetAutoSelectTab").setType(r.default.BOOLEAN),t},e.prototype.getName=function(){return this._getAttr("name")},e.prototype.getSelected=function(){var t=this._attributes.selected;return void 0!==t?t:-1},e.prototype.getSelectedNode=function(){var t=this.getSelected();if(-1!==t)return this._children[t]},e.prototype.getWeight=function(){return this._getAttr("weight")},e.prototype.getWidth=function(){return this._getAttr("width")},e.prototype.getMinWidth=function(){return this._getAttr("minWidth")},e.prototype.getHeight=function(){return this._getAttr("height")},e.prototype.getMinHeight=function(){return this._getAttr("minHeight")},e.prototype.getMinSize=function(t){return t===l.default.HORZ?this.getMinWidth():this.getMinHeight()},e.prototype.getConfig=function(){return this._attributes.config},e.prototype.isMaximized=function(){return this._model.getMaximizedTabset()===this},e.prototype.isActive=function(){return this._model.getActiveTabset()===this},e.prototype.isEnableDeleteWhenEmpty=function(){return this._getAttr("enableDeleteWhenEmpty")},e.prototype.isEnableDrop=function(){return this._getAttr("enableDrop")},e.prototype.isEnableDrag=function(){return this._getAttr("enableDrag")},e.prototype.isEnableDivide=function(){return this._getAttr("enableDivide")},e.prototype.isEnableMaximize=function(){return this._getAttr("enableMaximize")},e.prototype.isEnableClose=function(){return this._getAttr("enableClose")},e.prototype.canMaximize=function(){return!!this.isEnableMaximize()&&(this.getModel().getMaximizedTabset()===this||(this.getParent()!==this.getModel().getRoot()||1!==this.getModel().getRoot().getChildren().length))},e.prototype.isEnableTabStrip=function(){return this._getAttr("enableTabStrip")},e.prototype.isAutoSelectTab=function(){return this._getAttr("autoSelectTab")},e.prototype.getClassNameTabStrip=function(){return this._getAttr("classNameTabStrip")},e.prototype.getClassNameHeader=function(){return this._getAttr("classNameHeader")},e.prototype.calculateHeaderBarHeight=function(t){var e=this._getAttr("headerHeight");this.calculatedHeaderBarHeight=0!==e?e:t.headerBarSize},e.prototype.calculateTabBarHeight=function(t){var e=this._getAttr("tabStripHeight");this.calculatedTabBarHeight=0!==e?e:t.tabBarSize},e.prototype.getHeaderHeight=function(){return this.calculatedHeaderBarHeight},e.prototype.getTabStripHeight=function(){return this.calculatedTabBarHeight},e.prototype.getTabLocation=function(){return this._getAttr("tabLocation")},e.prototype._setWeight=function(t){this._attributes.weight=t},e.prototype._setSelected=function(t){this._attributes.selected=t},e.prototype.canDrop=function(t,e,i){var n;if(t===this){var o=s.default.CENTER,r=this._tabHeaderRect;n=new d.default(this,r,o,-1,"flexlayout__outline_rect")}else if(this._contentRect.contains(e,i)){r=(o=s.default.getLocation(this._contentRect,e,i)).getDockRect(this._rect);n=new d.default(this,r,o,-1,"flexlayout__outline_rect")}else if(this._children.length>0&&null!=this._tabHeaderRect&&this._tabHeaderRect.contains(e,i)){for(var a=this._children[0],l=a.getTabRect(),c=l.y,h=l.height,_=this._tabHeaderRect.x,f=0,p=0;p<this._children.length;p++){if(f=(l=(a=this._children[p]).getTabRect()).x+l.width/2,e>=_&&e<f){o=s.default.CENTER,r=new u.default(l.x-2,c,3,h);n=new d.default(this,r,o,p,"flexlayout__outline_rect");break}_=f}if(null==n){o=s.default.CENTER,r=new u.default(l.getRight()-2,c,3,h);n=new d.default(this,r,o,this._children.length,"flexlayout__outline_rect")}}if(t._canDockInto(t,n))return n},e.prototype._layout=function(t,e){var i=this;this.calculateHeaderBarHeight(e),this.calculateTabBarHeight(e),this.isMaximized()&&(t=this._model.getRoot().getRect()),t=t.removeInsets(this._getAttr("marginInsets")),this._rect=t,t=t.removeInsets(this._getAttr("borderInsets"));var n=0,o=0;void 0!==this.getName()&&(n+=this.calculatedHeaderBarHeight,o+=this.calculatedHeaderBarHeight),this.isEnableTabStrip()&&("top"===this.getTabLocation()?this._tabHeaderRect=new u.default(t.x,t.y+n,t.width,this.calculatedTabBarHeight):this._tabHeaderRect=new u.default(t.x,t.y+t.height-this.calculatedTabBarHeight,t.width,this.calculatedTabBarHeight),o+=this.calculatedTabBarHeight,"top"===this.getTabLocation()&&(n+=this.calculatedTabBarHeight)),this._contentRect=new u.default(t.x,t.y+n,t.width,t.height-o),this._children.forEach((function(t,n){t._layout(i._contentRect,e),t._setVisible(n===i.getSelected())}))},e.prototype._delete=function(){this._parent._removeChild(this)},e.prototype._remove=function(t){var e=this._removeChild(t);this._model._tidy(),f.adjustSelectedIndex(this,e)},e.prototype.drop=function(t,i,n,o){var r=this,a=i;if(this!==t){var d=t.getParent(),l=0;if(void 0!==d&&(l=d._removeChild(t),f.adjustSelectedIndex(d,l)),t.getType()===_.default.TYPE&&d===this&&l<n&&n>0&&n--,a===s.default.CENTER){var u=n;-1===u&&(u=this._children.length),t.getType()===_.default.TYPE?(this._addChild(t,u),(o||!1!==o&&this.isAutoSelectTab())&&this._setSelected(u)):t.getChildren().forEach((function(t,e){r._addChild(t,u),u++})),this._model._setActiveTabset(this)}else{var c=void 0;if(t instanceof _.default){var p=this._model._getOnCreateTabSet();(c=new e(this._model,p?p(t):{}))._addChild(t),d=c}else c=t;var g=this._parent,T=g.getChildren().indexOf(this);if(g.getOrientation()===a._orientation)c._setWeight(this.getWeight()/2),this._setWeight(this.getWeight()/2),g._addChild(c,T+a._indexPlus);else{var v=new h.default(this._model,{});v._setWeight(this.getWeight()),v._addChild(this),this._setWeight(50),c._setWeight(50),v._addChild(c,a._indexPlus),g._removeChild(this),g._addChild(v,T)}this._model._setActiveTabset(c)}this._model._tidy()}},e.prototype.toJson=function(){var t={};return e._attributeDefinitions.toJson(t,this._attributes),t.children=this._children.map((function(t){return t.toJson()})),this.isActive()&&(t.active=!0),this.isMaximized()&&(t.maximized=!0),t},e.prototype._updateAttrs=function(t){e._attributeDefinitions.update(t,this._attributes)},e.prototype._getAttributeDefinitions=function(){return e._attributeDefinitions},e.prototype._getPrefSize=function(t){var e=this.getWidth();return t===l.default.VERT&&(e=this.getHeight()),e},e.getAttributeDefinitions=function(){return e._attributeDefinitions},e.TYPE="tabset",e._attributeDefinitions=e._createAttributeDefinitions(),e}(c.default);e.default=p},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.I18nLabel=void 0,function(t){t.Close_Tab="Close",t.Close_Tabset="Close tabset",t.Move_Tab="Move: ",t.Move_Tabset="Move tabset",t.Maximize="Maximize tabset",t.Restore="Restore tabset",t.Float_Tab="Show selected tab in floating window",t.Overflow_Menu_Tooltip="Hidden tabs",t.Floating_Window_Message="This panel is shown in a floating window",t.Floating_Window_Show_Window="Show window",t.Floating_Window_Dock_Window="Dock window",t.Error_rendering_component="Error rendering component"}(e.I18nLabel||(e.I18nLabel={}))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=i(9),a=i(10),s=i(5),d=i(13),l=i(1),u=i(2),c=i(11),h=i(14),_=i(12),f=i(17),p=function(t){function e(i,n,o){var r=t.call(this,o)||this;return r._adjustedSize=0,r._calculatedBorderBarSize=0,r._location=i,r._drawChildren=[],r._attributes.id="border_"+i.getName(),e._attributeDefinitions.fromJson(n,r._attributes),o._addNode(r),r}return o(e,t),e._fromJson=function(t,i){var n=new e(s.default.getByName(t.location),t,i);return t.children&&(n._children=t.children.map((function(t){var e=_.default._fromJson(t,i);return e._setParent(n),e}))),n},e._createAttributeDefinitions=function(){var t=new a.default;return t.add("type",e.TYPE,!0).setType(r.default.STRING).setFixed(),t.add("selected",-1).setType(r.default.NUMBER),t.add("show",!0).setType(r.default.BOOLEAN),t.add("config",void 0).setType("any"),t.addInherited("barSize","borderBarSize").setType(r.default.NUMBER),t.addInherited("enableDrop","borderEnableDrop").setType(r.default.BOOLEAN),t.addInherited("className","borderClassName").setType(r.default.STRING),t.addInherited("autoSelectTabWhenOpen","borderAutoSelectTabWhenOpen").setType(r.default.BOOLEAN),t.addInherited("autoSelectTabWhenClosed","borderAutoSelectTabWhenClosed").setType(r.default.BOOLEAN),t.addInherited("size","borderSize").setType(r.default.NUMBER),t.addInherited("minSize","borderMinSize").setType(r.default.NUMBER),t},e.prototype.getLocation=function(){return this._location},e.prototype.getTabHeaderRect=function(){return this._tabHeaderRect},e.prototype.getRect=function(){return this._tabHeaderRect},e.prototype.getContentRect=function(){return this._contentRect},e.prototype.isEnableDrop=function(){return this._getAttr("enableDrop")},e.prototype.isAutoSelectTab=function(t){return null==t&&(t=-1!==this.getSelected()),t?this._getAttr("autoSelectTabWhenOpen"):this._getAttr("autoSelectTabWhenClosed")},e.prototype.getClassName=function(){return this._getAttr("className")},e.prototype.calcBorderBarSize=function(t){var e=this._getAttr("barSize");this._calculatedBorderBarSize=0!==e?e:t.borderBarSize},e.prototype.getBorderBarSize=function(){return this._calculatedBorderBarSize},e.prototype.getSize=function(){return this._getAttr("size")},e.prototype.getMinSize=function(){return this._getAttr("minSize")},e.prototype.getSelected=function(){return this._attributes.selected},e.prototype.getSelectedNode=function(){if(-1!==this.getSelected())return this._children[this.getSelected()]},e.prototype.getOrientation=function(){return this._location.getOrientation()},e.prototype.getConfig=function(){return this._attributes.config},e.prototype.isMaximized=function(){return!1},e.prototype.isShowing=function(){return this._attributes.show},e.prototype._setSelected=function(t){this._attributes.selected=t},e.prototype._setSize=function(t){this._attributes.size=t},e.prototype._updateAttrs=function(t){e._attributeDefinitions.update(t,this._attributes)},e.prototype._getDrawChildren=function(){return this._drawChildren},e.prototype._setAdjustedSize=function(t){this._adjustedSize=t},e.prototype._getAdjustedSize=function(){return this._adjustedSize},e.prototype._layoutBorderOuter=function(t,e){this.calcBorderBarSize(e);var i=this._location.split(t,this.getBorderBarSize());return this._tabHeaderRect=i.start,i.end},e.prototype._layoutBorderInner=function(t,e){var i=this;this._drawChildren=[];var n=this._location,o=n.split(t,this._adjustedSize+this._model.getSplitterSize()),r=n.reflect().split(o.start,this._model.getSplitterSize());if(this._contentRect=r.end,this._children.forEach((function(t,n){t._layout(i._contentRect,e),t._setVisible(n===i.getSelected()),i._drawChildren.push(t)})),-1===this.getSelected())return t;var a=new h.default(this._model);return a._setParent(this),a._setRect(r.start),this._drawChildren.push(a),o.end},e.prototype._remove=function(t){var e=this._removeChild(t);-1!==this.getSelected()&&f.adjustSelectedIndex(this,e)},e.prototype.canDrop=function(t,e,i){if(t.getType()===_.default.TYPE){var n,o=s.default.CENTER;if(this._tabHeaderRect.contains(e,i)){if(this._location._orientation===l.default.VERT)if(this._children.length>0){for(var r=(g=this._children[0].getTabRect()).y,a=g.height,c=this._tabHeaderRect.x,h=0,f=0;f<this._children.length;f++){if(h=(g=this._children[f].getTabRect()).x+g.width/2,e>=c&&e<h){var p=new u.default(g.x-2,r,3,a);n=new d.default(this,p,o,f,"flexlayout__outline_rect");break}c=h}if(null==n){p=new u.default(g.getRight()-2,r,3,a);n=new d.default(this,p,o,this._children.length,"flexlayout__outline_rect")}}else{p=new u.default(this._tabHeaderRect.x+1,this._tabHeaderRect.y+2,3,18);n=new d.default(this,p,o,0,"flexlayout__outline_rect")}else if(this._children.length>0){var g,T=(g=this._children[0].getTabRect()).x,v=g.width;for(c=this._tabHeaderRect.y,h=0,f=0;f<this._children.length;f++){if(h=(g=this._children[f].getTabRect()).y+g.height/2,i>=c&&i<h){p=new u.default(T,g.y-2,v,3);n=new d.default(this,p,o,f,"flexlayout__outline_rect");break}c=h}if(null==n){p=new u.default(T,g.getBottom()-2,v,3);n=new d.default(this,p,o,this._children.length,"flexlayout__outline_rect")}}else{p=new u.default(this._tabHeaderRect.x+2,this._tabHeaderRect.y+1,18,3);n=new d.default(this,p,o,0,"flexlayout__outline_rect")}if(!t._canDockInto(t,n))return}else if(-1!==this.getSelected()&&this._contentRect.contains(e,i)){p=this._contentRect;if(n=new d.default(this,p,o,-1,"flexlayout__outline_rect"),!t._canDockInto(t,n))return}return n}},e.prototype.drop=function(t,e,i,n){var o=0,r=t.getParent();void 0!==r&&(o=r._removeChild(t),f.adjustSelectedIndex(r,o)),t.getType()===_.default.TYPE&&r===this&&o<i&&i>0&&i--;var a=i;-1===a&&(a=this._children.length),t.getType()===_.default.TYPE&&this._addChild(t,a),(n||!1!==n&&this.isAutoSelectTab())&&this._setSelected(a),this._model._tidy()},e.prototype.toJson=function(){var t={};return e._attributeDefinitions.toJson(t,this._attributes),t.location=this._location.getName(),t.children=this._children.map((function(t){return t.toJson()})),t},e.prototype._getSplitterBounds=function(t,e){void 0===e&&(e=!1);var i=[0,0],n=e?this.getMinSize():0,o=this._model._getOuterInnerRects().outer,r=this._model._getOuterInnerRects().inner;return this._location===s.default.TOP?(i[0]=o.y+n,i[1]=r.getBottom()-t.getHeight()):this._location===s.default.LEFT?(i[0]=o.x+n,i[1]=r.getRight()-t.getWidth()):this._location===s.default.BOTTOM?(i[0]=r.y,i[1]=o.getBottom()-t.getHeight()-n):this._location===s.default.RIGHT&&(i[0]=r.x,i[1]=o.getRight()-t.getWidth()-n),i},e.prototype._calculateSplit=function(t,e){var i=this._getSplitterBounds(t);return this._location===s.default.BOTTOM||this._location===s.default.RIGHT?Math.max(0,i[1]-e):Math.max(0,e-i[0])},e.prototype._getAttributeDefinitions=function(){return e._attributeDefinitions},e.getAttributeDefinitions=function(){return e._attributeDefinitions},e.TYPE="border",e._attributeDefinitions=e._createAttributeDefinitions(),e}(c.default);e.default=p},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,i,n){this.name=t,this.modelName=e,this.defaultValue=i,this.alwaysWriteJson=n,this.required=!1,this.fixed=!1,this.type="any"}return t.prototype.setType=function(t){return this.type=t,this},t.prototype.setRequired=function(){return this.required=!0,this},t.prototype.setFixed=function(){return this.fixed=!0,this},t.NUMBER="number",t.STRING="string",t.BOOLEAN="boolean",t}();e.default=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(9),o=function(){function t(){this.attributes=[],this.nameToAttribute={}}return t.prototype.addWithAll=function(t,e,i,o){var r=new n.default(t,e,i,o);return this.attributes.push(r),this.nameToAttribute[t]=r,r},t.prototype.addInherited=function(t,e){return this.addWithAll(t,e,void 0,!1)},t.prototype.add=function(t,e,i){return this.addWithAll(t,void 0,e,i)},t.prototype.getAttributes=function(){return this.attributes},t.prototype.getModelName=function(t){var e=this.nameToAttribute[t];if(void 0!==e)return e.modelName},t.prototype.toJson=function(t,e){this.attributes.forEach((function(i){var n=e[i.name];(i.alwaysWriteJson||n!==i.defaultValue)&&(t[i.name]=n)}))},t.prototype.fromJson=function(t,e){this.attributes.forEach((function(i){var n=t[i.name];e[i.name]=void 0===n?i.defaultValue:n}))},t.prototype.update=function(t,e){this.attributes.forEach((function(i){var n=t[i.name];void 0!==n&&(e[i.name]=n)}))},t.prototype.setDefaults=function(t){this.attributes.forEach((function(e){t[e.name]=e.defaultValue}))},t.prototype.toTypescriptInterface=function(t,e){var i=[],n=this.attributes.sort((function(t,e){return t.name.localeCompare(e.name)}));i.push("export interface I"+t+"Attributes {");for(var o=0;o<n.length;o++){var r=n[o],a=r.type,s=void 0,d=r,l=void 0;void 0!==d.defaultValue?s=d.defaultValue:void 0!==d.modelName&&void 0!==e&&void 0!==e.nameToAttribute[d.modelName]&&(l=d.modelName,s=(d=e.nameToAttribute[d.modelName]).defaultValue,a=d.type);var u=JSON.stringify(s),c=d.required||d.fixed?"":"?";if(r.fixed)i.push("\t"+r.name+": "+u+";");else{var h=(void 0!==s?"default: "+u:"")+(void 0!==l?" - inherited from global "+l:"");i.push("\t"+r.name+c+": "+a+";"+(h.length>0?" // "+h:""))}}return i.push("}"),i.join("\n")},t}();e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(5),o=i(1),r=i(2),a=function(){function t(t){this._dirty=!1,this._tempSize=0,this._model=t,this._attributes={},this._children=[],this._fixed=!1,this._rect=r.default.empty(),this._visible=!1,this._listeners={}}return t.prototype.getId=function(){var t=this._attributes.id;return void 0!==t||(t=this._model._nextUniqueId(),this._setId(t)),t},t.prototype.getModel=function(){return this._model},t.prototype.getType=function(){return this._attributes.type},t.prototype.getParent=function(){return this._parent},t.prototype.getChildren=function(){return this._children},t.prototype.getRect=function(){return this._rect},t.prototype.isVisible=function(){return this._visible},t.prototype.getOrientation=function(){return void 0===this._parent?this._model.isRootOrientationVertical()?o.default.VERT:o.default.HORZ:o.default.flip(this._parent.getOrientation())},t.prototype.setEventListener=function(t,e){this._listeners[t]=e},t.prototype.removeEventListener=function(t){delete this._listeners[t]},t.prototype._setId=function(t){this._attributes.id=t},t.prototype._fireEvent=function(t,e){void 0!==this._listeners[t]&&this._listeners[t](e)},t.prototype._getAttr=function(t){var e=this._attributes[t];if(void 0===e){var i=this._getAttributeDefinitions().getModelName(t);void 0!==i&&(e=this._model._getAttribute(i))}return e},t.prototype._forEachNode=function(t,e){t(this,e),e++,this._children.forEach((function(i){i._forEachNode(t,e)}))},t.prototype._setVisible=function(t){t!==this._visible&&(this._fireEvent("visibility",{visible:t}),this._visible=t)},t.prototype._getDrawChildren=function(){return this._children},t.prototype._setParent=function(t){this._parent=t},t.prototype._setRect=function(t){this._rect=t},t.prototype._setWeight=function(t){this._attributes.weight=t},t.prototype._setSelected=function(t){this._attributes.selected=t},t.prototype._isFixed=function(){return this._fixed},t.prototype._layout=function(t,e){this._rect=t},t.prototype._findDropTargetNode=function(t,e,i){var n;if(this._rect.contains(e,i)&&void 0===(n=this.canDrop(t,e,i))&&0!==this._children.length)for(var o=0,r=this._children;o<r.length;o++){if(void 0!==(n=r[o]._findDropTargetNode(t,e,i)))break}return n},t.prototype.canDrop=function(t,e,i){},t.prototype._canDockInto=function(t,e){if(null!=e){if(e.location===n.default.CENTER&&!1===e.node.isEnableDrop())return!1;if(e.location===n.default.CENTER&&"tabset"===t.getType()&&void 0!==t.getName())return!1;if(e.location!==n.default.CENTER&&!1===e.node.isEnableDivide())return!1;if(this._model._getOnAllowDrop())return this._model._getOnAllowDrop()(t,e)}return!0},t.prototype._removeChild=function(t){var e=this._children.indexOf(t);return-1!==e&&this._children.splice(e,1),this._dirty=!0,e},t.prototype._addChild=function(t,e){return null!=e?this._children.splice(e,0,t):(this._children.push(t),e=this._children.length-1),t._parent=this,this._dirty=!0,e},t.prototype._removeAll=function(){this._children=[],this._dirty=!0},t.prototype._styleWithPosition=function(t){return null==t&&(t={}),this._rect.styleWithPosition(t)},t.prototype._getTempSize=function(){return this._tempSize},t.prototype._setTempSize=function(t){this._tempSize=t},t.prototype.isEnableDivide=function(){return!0},t.prototype._toAttributeString=function(){return JSON.stringify(this._attributes,void 0,"\t")},t}();e.default=a},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=i(9),a=i(10),s=function(t){function e(i,n,o){void 0===o&&(o=!0);var r=t.call(this,i)||this;return r._extra={},e._attributeDefinitions.fromJson(n,r._attributes),!0===o&&i._addNode(r),r}return o(e,t),e._fromJson=function(t,i,n){return void 0===n&&(n=!0),new e(i,t,n)},e._createAttributeDefinitions=function(){var t=new a.default;return t.add("type",e.TYPE,!0).setType(r.default.STRING),t.add("id",void 0).setType(r.default.STRING),t.add("name","[Unnamed Tab]").setType(r.default.STRING),t.add("helpText",void 0).setType(r.default.STRING),t.add("component",void 0).setType(r.default.STRING),t.add("config",void 0).setType("any"),t.add("floating",!1).setType(r.default.BOOLEAN),t.addInherited("enableClose","tabEnableClose").setType(r.default.BOOLEAN),t.addInherited("closeType","tabCloseType").setType("ICloseType"),t.addInherited("enableDrag","tabEnableDrag").setType(r.default.BOOLEAN),t.addInherited("enableRename","tabEnableRename").setType(r.default.BOOLEAN),t.addInherited("className","tabClassName").setType(r.default.STRING),t.addInherited("icon","tabIcon").setType(r.default.STRING),t.addInherited("enableRenderOnDemand","tabEnableRenderOnDemand").setType(r.default.BOOLEAN),t.addInherited("enableFloat","tabEnableFloat").setType(r.default.BOOLEAN),t},e.prototype.getWindow=function(){return this._window},e.prototype.getTabRect=function(){return this._tabRect},e.prototype._setTabRect=function(t){this._tabRect=t},e.prototype._setRenderedName=function(t){this._renderedName=t},e.prototype._getRenderedName=function(){return this._renderedName},e.prototype.getName=function(){return this._getAttr("name")},e.prototype.getHelpText=function(){return this._getAttr("helpText")},e.prototype.getComponent=function(){return this._getAttr("component")},e.prototype.getConfig=function(){return this._attributes.config},e.prototype.getExtraData=function(){return this._extra},e.prototype.isFloating=function(){return this._getAttr("floating")},e.prototype.getIcon=function(){return this._getAttr("icon")},e.prototype.isEnableClose=function(){return this._getAttr("enableClose")},e.prototype.getCloseType=function(){return this._getAttr("closeType")},e.prototype.isEnableFloat=function(){return this._getAttr("enableFloat")},e.prototype.isEnableDrag=function(){return this._getAttr("enableDrag")},e.prototype.isEnableRename=function(){return this._getAttr("enableRename")},e.prototype.getClassName=function(){return this._getAttr("className")},e.prototype.isEnableRenderOnDemand=function(){return this._getAttr("enableRenderOnDemand")},e.prototype._setName=function(t){this._attributes.name=t,this._window&&this._window.document&&(this._window.document.title=t)},e.prototype._setFloating=function(t){this._attributes.floating=t},e.prototype._layout=function(t,e){t.equals(this._rect)||this._fireEvent("resize",{rect:t}),this._rect=t},e.prototype._delete=function(){this._parent._remove(this),this._fireEvent("close",{})},e.prototype.toJson=function(){var t={};return e._attributeDefinitions.toJson(t,this._attributes),t},e.prototype._updateAttrs=function(t){e._attributeDefinitions.update(t,this._attributes)},e.prototype._getAttributeDefinitions=function(){return e._attributeDefinitions},e.prototype._setWindow=function(t){this._window=t},e.getAttributeDefinitions=function(){return e._attributeDefinitions},e.TYPE="tab",e._attributeDefinitions=e._createAttributeDefinitions(),e}(i(11).default);e.default=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e,i,n,o){this.node=t,this.rect=e,this.location=i,this.index=n,this.className=o};e.default=n},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=i(10),a=i(1),s=function(t){function e(i){var n=t.call(this,i)||this;return n._fixed=!0,n._attributes.type=e.TYPE,i._addNode(n),n}return o(e,t),e.prototype.getWidth=function(){return this._model.getSplitterSize()},e.prototype.getMinWidth=function(){return this.getOrientation()===a.default.VERT?this._model.getSplitterSize():0},e.prototype.getHeight=function(){return this._model.getSplitterSize()},e.prototype.getMinHeight=function(){return this.getOrientation()===a.default.HORZ?this._model.getSplitterSize():0},e.prototype.getMinSize=function(t){return t===a.default.HORZ?this.getMinWidth():this.getMinHeight()},e.prototype.getWeight=function(){return 0},e.prototype._setWeight=function(t){},e.prototype._getPrefSize=function(t){return this._model.getSplitterSize()},e.prototype._updateAttrs=function(t){},e.prototype._getAttributeDefinitions=function(){return new r.default},e.prototype.toJson=function(){},e.TYPE="splitter",e}(i(11).default);e.default=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Rect=e.DropInfo=e.DragDrop=e.Orientation=e.DockLocation=e.BorderSet=e.BorderNode=e.TabSetNode=e.TabNode=e.SplitterNode=e.RowNode=e.Node=e.Model=e.Action=e.Actions=e.I18nLabel=e.Layout=void 0;var n=i(5);e.DockLocation=n.default;var o=i(16);e.DragDrop=o.default;var r=i(13);e.DropInfo=r.default;var a=i(7);Object.defineProperty(e,"I18nLabel",{enumerable:!0,get:function(){return a.I18nLabel}});var s=i(19);e.Action=s.default;var d=i(4);e.Actions=d.default;var l=i(8);e.BorderNode=l.default;var u=i(20);e.BorderSet=u.default;var c=i(26);e.Model=c.default;var h=i(11);e.Node=h.default;var _=i(18);e.RowNode=_.default;var f=i(14);e.SplitterNode=f.default;var p=i(12);e.TabNode=p.default;var g=i(6);e.TabSetNode=g.default;var T=i(1);e.Orientation=T.default;var v=i(2);e.Rect=v.default;var y=i(27);e.Layout=y.default,e.default={Layout:y.default,I18nLabel:a.I18nLabel,Actions:d.default,Action:s.default,Model:c.default,Node:h.default,RowNode:_.default,SplitterNode:f.default,TabNode:p.default,TabSetNode:g.default,BorderNode:l.default,BorderSet:u.default,DockLocation:n.default,Orientation:T.default,DragDrop:o.default,DropInfo:r.default,Rect:v.default}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),o=!("undefined"==typeof window||!window.document||!window.document.createElement),r=function(){function t(){this._manualGlassManagement=!1,this._startX=0,this._startY=0,this._dragDepth=0,this._glassShowing=!1,this._dragging=!1,this._active=!1,o&&(this._glass=document.createElement("div"),this._glass.style.zIndex="998",this._glass.style.backgroundColor="transparent",this._glass.style.outline="none"),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onKeyPress=this._onKeyPress.bind(this),this._onDragCancel=this._onDragCancel.bind(this),this._onDragEnter=this._onDragEnter.bind(this),this._onDragLeave=this._onDragLeave.bind(this),this.resizeGlass=this.resizeGlass.bind(this),this._lastClick=0,this._clickX=0,this._clickY=0}return t.prototype.addGlass=function(t){var e;this._glassShowing?this._manualGlassManagement=!0:(this._document||(this._document=window.document),this._rootElement||(this._rootElement=this._document.body),this.resizeGlass(),null===(e=this._document.defaultView)||void 0===e||e.addEventListener("resize",this.resizeGlass),this._document.body.appendChild(this._glass),this._glass.tabIndex=-1,this._glass.focus(),this._glass.addEventListener("keydown",this._onKeyPress),this._glass.addEventListener("dragenter",this._onDragEnter,{passive:!1}),this._glass.addEventListener("dragover",this._onMouseMove,{passive:!1}),this._glass.addEventListener("dragleave",this._onDragLeave,{passive:!1}),this._glassShowing=!0,this._fDragCancel=t,this._manualGlassManagement=!1)},t.prototype.resizeGlass=function(){n.default.fromElement(this._rootElement).positionElement(this._glass,"fixed")},t.prototype.hideGlass=function(){var t;this._glassShowing&&(this._document.body.removeChild(this._glass),null===(t=this._document.defaultView)||void 0===t||t.removeEventListener("resize",this.resizeGlass),this._glassShowing=!1,this._document=void 0,this._rootElement=void 0)},t.prototype.startDrag=function(t,e,i,n,o,r,a,s,d){if(!(t&&this._lastEvent&&this._lastEvent.type.startsWith("touch")&&t.type.startsWith("mouse")&&t.timeStamp-this._lastEvent.timeStamp<500)){this._lastEvent=t,this._document=s||window.document,this._rootElement=d||this._document.body;var l=this._getLocationEvent(t);this.addGlass(o),this._dragging&&console.warn("this._dragging true on startDrag should never happen"),t?(this._startX=l.clientX,this._startY=l.clientY,window.matchMedia&&!window.matchMedia("(pointer: fine)").matches||(this._glass.style.cursor=getComputedStyle(t.target).cursor),this._stopPropagation(t),this._preventDefault(t)):(this._startX=0,this._startY=0,this._glass.style.cursor="default"),this._dragging=!1,this._fDragStart=e,this._fDragMove=i,this._fDragEnd=n,this._fDragCancel=o,this._fClick=r,this._fDblClick=a,this._active=!0,"dragenter"===(null==t?void 0:t.type)?(this._dragDepth=1,this._rootElement.addEventListener("dragenter",this._onDragEnter,{passive:!1}),this._rootElement.addEventListener("dragover",this._onMouseMove,{passive:!1}),this._rootElement.addEventListener("dragleave",this._onDragLeave,{passive:!1}),this._document.addEventListener("dragend",this._onDragCancel,{passive:!1}),this._document.addEventListener("drop",this._onMouseUp,{passive:!1})):(this._document.addEventListener("mouseup",this._onMouseUp,{passive:!1}),this._document.addEventListener("mousemove",this._onMouseMove,{passive:!1}),this._document.addEventListener("touchend",this._onMouseUp,{passive:!1}),this._document.addEventListener("touchmove",this._onMouseMove,{passive:!1}))}},t.prototype.isDragging=function(){return this._dragging},t.prototype.isActive=function(){return this._active},t.prototype.toString=function(){return"(DragDrop: startX="+this._startX+", startY="+this._startY+", dragging="+this._dragging+")"},t.prototype._onKeyPress=function(t){27===t.keyCode&&this._onDragCancel()},t.prototype._onDragCancel=function(){this._rootElement.removeEventListener("dragenter",this._onDragEnter),this._rootElement.removeEventListener("dragover",this._onMouseMove),this._rootElement.removeEventListener("dragleave",this._onDragLeave),this._document.removeEventListener("dragend",this._onDragCancel),this._document.removeEventListener("drop",this._onMouseUp),this._document.removeEventListener("mousemove",this._onMouseMove),this._document.removeEventListener("mouseup",this._onMouseUp),this._document.removeEventListener("touchend",this._onMouseUp),this._document.removeEventListener("touchmove",this._onMouseMove),this.hideGlass(),void 0!==this._fDragCancel&&this._fDragCancel(this._dragging),this._dragging=!1,this._active=!1},t.prototype._getLocationEvent=function(t){var e=t;return t&&t.touches&&(e=t.touches[0]),e},t.prototype._getLocationEventEnd=function(t){var e=t;return t.changedTouches&&(e=t.changedTouches[0]),e},t.prototype._stopPropagation=function(t){t.stopPropagation&&t.stopPropagation()},t.prototype._preventDefault=function(t){return t.preventDefault&&t.cancelable&&t.preventDefault(),t},t.prototype._onMouseMove=function(t){this._lastEvent=t;var e=this._getLocationEvent(t);return this._stopPropagation(t),this._preventDefault(t),!this._dragging&&(Math.abs(this._startX-e.clientX)>5||Math.abs(this._startY-e.clientY)>5)&&(this._dragging=!0,this._fDragStart&&(this._glass.style.cursor="move",this._dragging=this._fDragStart({clientX:this._startX,clientY:this._startY}))),this._dragging&&this._fDragMove&&this._fDragMove(e),!1},t.prototype._onMouseUp=function(t){this._lastEvent=t;var e=this._getLocationEventEnd(t);if(this._stopPropagation(t),this._preventDefault(t),this._active=!1,this._rootElement.removeEventListener("dragenter",this._onDragEnter),this._rootElement.removeEventListener("dragover",this._onMouseMove),this._rootElement.removeEventListener("dragleave",this._onDragLeave),this._document.removeEventListener("dragend",this._onDragCancel),this._document.removeEventListener("drop",this._onMouseUp),this._document.removeEventListener("mousemove",this._onMouseMove),this._document.removeEventListener("mouseup",this._onMouseUp),this._document.removeEventListener("touchend",this._onMouseUp),this._document.removeEventListener("touchmove",this._onMouseMove),this._manualGlassManagement||this.hideGlass(),this._dragging)this._dragging=!1,this._fDragEnd&&this._fDragEnd(t);else if(this._fDragCancel&&this._fDragCancel(this._dragging),Math.abs(this._startX-e.clientX)<=5&&Math.abs(this._startY-e.clientY)<=5){var i=(new Date).getTime();Math.abs(this._clickX-e.clientX)<=5&&Math.abs(this._clickY-e.clientY)<=5&&i-this._lastClick<500&&this._fDblClick&&this._fDblClick(t),this._fClick&&this._fClick(t),this._lastClick=i,this._clickX=e.clientX,this._clickY=e.clientY}return!1},t.prototype._onDragEnter=function(t){return this._preventDefault(t),this._stopPropagation(t),this._dragDepth++,!1},t.prototype._onDragLeave=function(t){return this._preventDefault(t),this._stopPropagation(t),this._dragDepth--,this._dragDepth<=0&&this._onDragCancel(),!1},t.instance=new t,t}();e.default=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adjustSelectedIndex=e.adjustSelectedIndexAfterDock=e.adjustSelectedIndexAfterFloat=void 0;var n=i(6),o=i(8);e.adjustSelectedIndexAfterFloat=function(t){var e=t.getParent();if(null!==e)if(e instanceof n.default){for(var i=!1,r=0,a=e.getChildren(),s=0;s<a.length;s++){var d=a[s];if(d===t)i=!0;else if(!d.isFloating()&&(r=s,i))break}e._setSelected(r)}else e instanceof o.default&&e._setSelected(-1)},e.adjustSelectedIndexAfterDock=function(t){var e=t.getParent();if(null!==e&&(e instanceof n.default||e instanceof o.default))for(var i=e.getChildren(),r=0;r<i.length;r++){if(i[r]===t)return void e._setSelected(r)}},e.adjustSelectedIndex=function(t,e){if(void 0!==t&&(t.getType()===n.default.TYPE||t.getType()===o.default.TYPE)){var i=t.getSelected();-1!==i&&(e===i&&t.getChildren().length>0?e>=t.getChildren().length&&t._setSelected(t.getChildren().length-1):e<i?t._setSelected(i-1):e>i||t._setSelected(-1))}}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=i(9),a=i(10),s=i(5),d=i(13),l=i(1),u=i(2),c=i(8),h=i(11),_=i(14),f=i(6),p=function(t){function e(i,n){var o=t.call(this,i)||this;return o._dirty=!0,o._drawChildren=[],o.minHeight=0,o.minWidth=0,e._attributeDefinitions.fromJson(n,o._attributes),i._addNode(o),o}return o(e,t),e._fromJson=function(t,i){var n=new e(i,t);if(null!=t.children)for(var o=0,r=t.children;o<r.length;o++){var a=r[o];if(a.type===f.default.TYPE){var s=f.default._fromJson(a,i);n._addChild(s)}else{s=e._fromJson(a,i);n._addChild(s)}}return n},e._createAttributeDefinitions=function(){var t=new a.default;return t.add("type",e.TYPE,!0).setType(r.default.STRING).setFixed(),t.add("id",void 0).setType(r.default.STRING),t.add("weight",100).setType(r.default.NUMBER),t.add("width",void 0).setType(r.default.NUMBER),t.add("height",void 0).setType(r.default.NUMBER),t},e.prototype.getWeight=function(){return this._attributes.weight},e.prototype.getWidth=function(){return this._getAttr("width")},e.prototype.getHeight=function(){return this._getAttr("height")},e.prototype._setWeight=function(t){this._attributes.weight=t},e.prototype._layout=function(e,i){t.prototype._layout.call(this,e,i);for(var n=this._rect._getSize(this.getOrientation()),o=0,r=0,a=0,s=0,d=this._getDrawChildren(),c=0,h=d;c<h.length;c++){var f=(x=h[c])._getPrefSize(this.getOrientation());x._isFixed()?void 0!==f&&(r+=f):void 0===f?o+=x.getWeight():(a+=f,s+=x.getWeight())}var p=!1,g=n-r-a;g<0&&(g=n-r,p=!0,o+=s);for(var T=0,v=0,y=0,b=d;y<b.length;y++){f=(x=b[y])._getPrefSize(this.getOrientation());if(x._isFixed())void 0!==f&&x._setTempSize(f);else if(null==f||p){if(0===o)x._setTempSize(0);else{var E=x.getMinSize(this.getOrientation()),m=Math.floor(g*(x.getWeight()/o));x._setTempSize(Math.max(E,m))}v+=x._getTempSize()}else x._setTempSize(f);T+=x._getTempSize()}if(v>0){for(;T<n;)for(var S=0,A=d;S<A.length;S++){if(!((x=A[S])instanceof _.default)){f=x._getPrefSize(this.getOrientation());!x._isFixed()&&(void 0===f||p)&&T<n&&(x._setTempSize(x._getTempSize()+1),T++)}}for(;T>n;){for(var L=!1,O=0,R=d;O<R.length;O++){if(!((x=R[O])instanceof _.default)){E=x.getMinSize(this.getOrientation());(m=x._getTempSize())>E&&T>n&&(x._setTempSize(x._getTempSize()-1),T--,L=!0)}}if(!L)break}for(;T>n;){L=!1;for(var D=0,N=d;D<N.length;D++){if(!((x=N[D])instanceof _.default))(m=x._getTempSize())>0&&T>n&&(x._setTempSize(x._getTempSize()-1),T--,L=!0)}if(!L)break}}for(var w=0,B=0,C=d;B<C.length;B++){var x=C[B];this.getOrientation()===l.default.HORZ?x._layout(new u.default(this._rect.x+w,this._rect.y,x._getTempSize(),this._rect.height),i):x._layout(new u.default(this._rect.x,this._rect.y+w,this._rect.width,x._getTempSize()),i),w+=x._getTempSize()}return!0},e.prototype._getSplitterBounds=function(t,e){void 0===e&&(e=!1);var i=[0,0],n=this._getDrawChildren(),o=n.indexOf(t),r=n[o-1],a=n[o+1];if(this.getOrientation()===l.default.HORZ){var s=e?r.getMinWidth():0,d=e?a.getMinWidth():0;i[0]=r.getRect().x+s,i[1]=a.getRect().getRight()-t.getWidth()-d}else{s=e?r.getMinHeight():0,d=e?a.getMinHeight():0;i[0]=r.getRect().y+s,i[1]=a.getRect().getBottom()-t.getHeight()-d}return i},e.prototype._calculateSplit=function(t,e){var i,n=this._getDrawChildren(),o=n.indexOf(t),r=this._getSplitterBounds(t),a=n[o-1].getWeight()+n[o+1].getWeight(),s=Math.max(0,e-r[0]),d=Math.max(0,r[1]-e);if(s+d>0){var l=s*a/(s+d),u=d*a/(s+d);i={node1Id:n[o-1].getId(),weight1:l,pixelWidth1:s,node2Id:n[o+1].getId(),weight2:u,pixelWidth2:d}}return i},e.prototype._getDrawChildren=function(){if(this._dirty){this._drawChildren=[];for(var t=0;t<this._children.length;t++){var e=this._children[t];if(0!==t){var i=new _.default(this._model);i._setParent(this),this._drawChildren.push(i)}this._drawChildren.push(e)}this._dirty=!1}return this._drawChildren},e.prototype.getMinSize=function(t){return t===l.default.HORZ?this.getMinWidth():this.getMinHeight()},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMinHeight=function(){return this.minHeight},e.prototype.calcMinSize=function(){var t=this;this.minHeight=0,this.minWidth=0;var i=!0;this._children.forEach((function(n){var o=n;o instanceof e&&o.calcMinSize(),t.getOrientation()===l.default.VERT?(t.minHeight+=o.getMinHeight(),i||(t.minHeight+=t._model.getSplitterSize()),t.minWidth=Math.max(t.minWidth,o.getMinWidth())):(t.minWidth+=o.getMinWidth(),i||(t.minWidth+=t._model.getSplitterSize()),t.minHeight=Math.max(t.minHeight,o.getMinHeight())),i=!1}))},e.prototype._tidy=function(){for(var t=0;t<this._children.length;){if((c=this._children[t])instanceof e){c._tidy();var i=c.getChildren();if(0===i.length)this._removeChild(c);else if(1===i.length){var n=i[0];if(this._removeChild(c),n instanceof e){for(var o=0,r=n.getChildren(),a=0,s=r;a<s.length;a++){o+=(l=s[a]).getWeight()}for(var d=0;d<r.length;d++){var l;(l=r[d])._setWeight(c.getWeight()*l.getWeight()/o),this._addChild(l,t+d)}}else n._setWeight(c.getWeight()),this._addChild(n,t)}else t++}else c instanceof f.default&&0===c.getChildren().length&&c.isEnableDeleteWhenEmpty()?(this._removeChild(c),c===this._model.getMaximizedTabset()&&this._model._setMaximizedTabset(void 0)):t++}if(this===this._model.getRoot()&&0===this._children.length){var u=this._model._getOnCreateTabSet(),c=new f.default(this._model,u?u():{});this._model._setActiveTabset(c),this._addChild(c)}},e.prototype.canDrop=function(t,e,i){var n,o=i-this._rect.y,r=e-this._rect.x,a=this._rect.width,l=this._rect.height;if(this._model.isEnableEdgeDock()&&void 0===this._parent){if(e<this._rect.x+10&&o>l/2-50&&o<l/2+50)(c=(u=s.default.LEFT).getDockRect(this._rect)).width=c.width/2,n=new d.default(this,c,u,-1,"flexlayout__outline_rect_edge");else if(e>this._rect.getRight()-10&&o>l/2-50&&o<l/2+50){(c=(u=s.default.RIGHT).getDockRect(this._rect)).width=c.width/2,c.x+=c.width,n=new d.default(this,c,u,-1,"flexlayout__outline_rect_edge")}else if(i<this._rect.y+10&&r>a/2-50&&r<a/2+50){(c=(u=s.default.TOP).getDockRect(this._rect)).height=c.height/2,n=new d.default(this,c,u,-1,"flexlayout__outline_rect_edge")}else if(i>this._rect.getBottom()-10&&r>a/2-50&&r<a/2+50){var u,c;(c=(u=s.default.BOTTOM).getDockRect(this._rect)).height=c.height/2,c.y+=c.height,n=new d.default(this,c,u,-1,"flexlayout__outline_rect_edge")}if(void 0!==n&&!t._canDockInto(t,n))return}return n},e.prototype.drop=function(t,i,n){var o,r=i,a=t.getParent();if(a&&a._removeChild(t),void 0!==a&&a.getType()===f.default.TYPE&&a._setSelected(0),void 0!==a&&a.getType()===c.default.TYPE&&a._setSelected(-1),t instanceof f.default)o=t;else{var d=this._model._getOnCreateTabSet();(o=new f.default(this._model,d?d(t):{}))._addChild(t)}var l=this._children.reduce((function(t,e){return t+e.getWeight()}),0);0===l&&(l=100),o._setWeight(l/3);var u=!this._model.isRootOrientationVertical();if(u&&r===s.default.LEFT||!u&&r===s.default.TOP)this._addChild(o,0);else if(u&&r===s.default.RIGHT||!u&&r===s.default.BOTTOM)this._addChild(o);else if(u&&r===s.default.TOP||!u&&r===s.default.LEFT){var h=new e(this._model,{}),_=new e(this._model,{});_._setWeight(75),o._setWeight(25),this._children.forEach((function(t){_._addChild(t)})),this._removeAll(),h._addChild(o),h._addChild(_),this._addChild(h)}else if(u&&r===s.default.BOTTOM||!u&&r===s.default.RIGHT){h=new e(this._model,{});var p=new e(this._model,{});p._setWeight(75),o._setWeight(25),this._children.forEach((function(t){p._addChild(t)})),this._removeAll(),h._addChild(p),h._addChild(o),this._addChild(h)}this._model._setActiveTabset(o),this._model._tidy()},e.prototype.toJson=function(){var t={};return e._attributeDefinitions.toJson(t,this._attributes),t.children=[],this._children.forEach((function(e){t.children.push(e.toJson())})),t},e.prototype.isEnableDrop=function(){return!0},e.prototype._getPrefSize=function(t){var e=this.getWidth();return t===l.default.VERT&&(e=this.getHeight()),e},e.prototype._getAttributeDefinitions=function(){return e._attributeDefinitions},e.prototype._updateAttrs=function(t){e._attributeDefinitions.update(t,this._attributes)},e.getAttributeDefinitions=function(){return e._attributeDefinitions},e.TYPE="row",e._attributeDefinitions=e._createAttributeDefinitions(),e}(h.default);e.default=p},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){this.type=t,this.data=e};e.default=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(1),o=i(8),r=function(){function t(t){this._model=t,this._borders=[]}return t._fromJson=function(e,i){var n=new t(i);return n._borders=e.map((function(t){return o.default._fromJson(t,i)})),n},t.prototype.getBorders=function(){return this._borders},t.prototype._forEachNode=function(t){this._borders.forEach((function(e){t(e,0),e.getChildren().forEach((function(e){e._forEachNode(t,1)}))}))},t.prototype._toJson=function(){return this._borders.map((function(t){return t.toJson()}))},t.prototype._layoutBorder=function(t,e){for(var i=t.outer,o=i.height,r=i.width,a=0,s=0,d=0,l=0,u=this._borders.filter((function(t){return t.isShowing()})),c=0,h=u;c<h.length;c++){if((p=h[c]).isShowing()){p._setAdjustedSize(p.getSize());var _=-1!==p.getSelected();p.getLocation().getOrientation()===n.default.HORZ?(s+=p.getBorderBarSize()+this._model.getSplitterSize(),_&&(s+=p.getSize(),l+=p.getSize())):(a+=p.getBorderBarSize()+this._model.getSplitterSize(),_&&(a+=p.getSize(),d+=p.getSize()))}}for(var f=0;s>r&&l>0||a>o&&d>0;){var p;if(-1!==(p=u[f]).getSelected()){var g=p._getAdjustedSize();s>r&&l>0&&p.getLocation().getOrientation()===n.default.HORZ&&g>0?(p._setAdjustedSize(g-1),s--,l--):a>o&&d>0&&p.getLocation().getOrientation()===n.default.VERT&&g>0&&(p._setAdjustedSize(g-1),a--,d--)}f=(f+1)%u.length}return u.forEach((function(i){t.outer=i._layoutBorderOuter(t.outer,e)})),t.inner=t.outer,u.forEach((function(i){t.inner=i._layoutBorderInner(t.inner,e)})),t},t.prototype._findDropTargetNode=function(t,e,i){for(var n=0,o=this._borders;n<o.length;n++){var r=o[n];if(r.isShowing()){var a=r.canDrop(t,e,i);if(void 0!==a)return a}}},t}();e.default=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ICloseType=void 0,function(t){t[t.Visible=1]="Visible",t[t.Always=2]="Always",t[t.Selected=3]="Selected"}(e.ICloseType||(e.ICloseType={}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showPopup=void 0;var n=i(0),o=i(23);e.showPopup=function(t,e,i,a,s){var d=e.ownerDocument,l=e.getBoundingClientRect(),u=t.getBoundingClientRect(),c=d.createElement("div");c.className=s("flexlayout__popup_menu_container"),l.left<u.left+u.width/2?c.style.left=l.left-u.left+"px":c.style.right=u.right-l.right+"px",l.top<u.top+u.height/2?c.style.top=l.top-u.top+"px":c.style.bottom=u.bottom-l.bottom+"px",t.appendChild(c);var h=function(){t.removeChild(c),o.unmountComponentAtNode(c),c.removeEventListener("mouseup",_),d.removeEventListener("mouseup",f)},_=function(t){t.stopPropagation()},f=function(t){h()};c.addEventListener("mouseup",_),d.addEventListener("mouseup",f),o.render(n.createElement(r,{currentDocument:d,onSelect:a,onHide:h,items:i,classNameMapper:s}),c)};var r=function(t){var e=t.items,i=t.onHide,o=t.onSelect,r=t.classNameMapper,a=e.map((function(t){return n.createElement("div",{key:t.index,className:r("flexlayout__popup_menu_item"),onClick:function(e){return function(t,e){o(t),i(),e.stopPropagation()}(t,e)},title:t.node.getHelpText()},t.node._getRenderedName())}));return n.createElement("div",{className:r("flexlayout__popup_menu")},a)}},function(t,i){t.exports=e},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useTabOverflow=void 0;var n=i(0),o=i(2),r=i(6),a=i(1);e.useTabOverflow=function(t,e,i,s){var d=n.useRef(!0),l=n.useRef(!1),u=n.useRef(new o.default(0,0,0,0)),c=n.useRef(null),h=n.useState(0),_=h[0],f=h[1],p=n.useRef(!1),g=n.useState([]),T=g[0],v=g[1];n.useLayoutEffect((function(){p.current=!1}),[t.getSelectedNode(),t.getRect().width,t.getRect().height]),n.useLayoutEffect((function(){S()})),n.useEffect((function(){var t=c.current;return t.addEventListener("wheel",y),function(){t.removeEventListener("wheel",y)}}),[]);var y=function(t){t.preventDefault()},b=function(t){return e===a.default.HORZ?t.x:t.y},E=function(t){return e===a.default.HORZ?t.getRight():t.getBottom()},m=function(t){return e===a.default.HORZ?t.width:t.height},S=function(){!0===d.current&&(l.current=!1);var n=t instanceof r.default?t.getRect():t.getTabHeaderRect(),o=t.getChildren()[t.getChildren().length-1],c=null===s.current?0:m(s.current.getBoundingClientRect());if(!0===d.current||n.width!==u.current.width||n.height!==u.current.height){u.current=n;var h=!(t instanceof r.default)||!0===t.isEnableTabStrip(),g=E(n)-c;if(null!==i.current&&(g-=m(i.current.getBoundingClientRect())),h&&t.getChildren().length>0){if(0===T.length&&0===_&&E(o.getTabRect())+2<g)return;g-=T.length>0?e===a.default.HORZ?10:0:45;var y=0,S=t.getSelectedNode();if(S&&!p.current){var A=S.getTabRect(),L=b(A)-2,O=E(A)+2;m(A)+4>=g-b(n)?y=b(n)-L:(O>g||L<b(n))&&(L<b(n)&&(y=b(n)-L),O+y>g&&(y=g-O))}for(var R=Math.max(0,g-(E(o.getTabRect())+2+y)),D=Math.min(0,_+y+R),N=D-_,w=[],B=0;B<t.getChildren().length;B++){var C=t.getChildren()[B];(b(C.getTabRect())+N<b(n)||E(C.getTabRect())+N>g)&&w.push({node:C,index:B})}w.length>0&&(l.current=!0),d.current=!1,v(w),f(D)}}else d.current=!0};return{selfRef:c,position:_,userControlledLeft:p,hiddenTabs:T,onMouseWheel:function(t){var e=0;e=Math.abs(t.deltaX)>Math.abs(t.deltaY)?-t.deltaX:-t.deltaY,1===t.deltaMode&&(e*=40),f(_+e),p.current=!0,t.stopPropagation()},tabsTruncated:l.current}}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorBoundary=void 0;var r=i(0),a=i(3),s=function(t){function e(e){var i=t.call(this,e)||this;return i.state={hasError:!1},i}return o(e,t),e.getDerivedStateFromError=function(t){return{hasError:!0}},e.prototype.componentDidCatch=function(t,e){console.debug(t),console.debug(e)},e.prototype.render=function(){return this.state.hasError?r.createElement("div",{className:a.CLASSES.FLEXLAYOUT__ERROR_BOUNDARY_CONTAINER},r.createElement("div",{className:a.CLASSES.FLEXLAYOUT__ERROR_BOUNDARY_CONTENT},this.props.message)):this.props.children},e}(r.Component);e.ErrorBoundary=s},function(t,e,i){"use strict";var n=this&&this.__spreadArray||function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t};Object.defineProperty(e,"__esModule",{value:!0});var o=i(9),r=i(10),a=i(5),s=i(1),d=i(2),l=i(4),u=i(8),c=i(20),h=i(18),_=i(12),f=i(6),p=i(17),g=i(37),T=function(){function t(){this._borderRects={inner:d.default.empty(),outer:d.default.empty()},this._attributes={},this._idMap={},this._borders=new c.default(this),this._pointerFine=!0}return t.fromJson=function(e){var i=new t;return t._attributeDefinitions.fromJson(e.global,i._attributes),e.borders&&(i._borders=c.default._fromJson(e.borders,i)),i._root=h.default._fromJson(e.layout,i),i._tidy(),i},t._createAttributeDefinitions=function(){var t=new r.default;return t.add("splitterSize",-1).setType(o.default.NUMBER),t.add("enableEdgeDock",!0).setType(o.default.BOOLEAN),t.add("rootOrientationVertical",!1).setType(o.default.BOOLEAN),t.add("marginInsets",{top:0,right:0,bottom:0,left:0}).setType("IInsets"),t.add("tabEnableClose",!0).setType(o.default.BOOLEAN),t.add("tabCloseType",1).setType("ICloseType"),t.add("tabEnableFloat",!1).setType(o.default.BOOLEAN),t.add("tabEnableDrag",!0).setType(o.default.BOOLEAN),t.add("tabEnableRename",!0).setType(o.default.BOOLEAN),t.add("tabClassName",void 0).setType(o.default.STRING),t.add("tabIcon",void 0).setType(o.default.STRING),t.add("tabEnableRenderOnDemand",!0).setType(o.default.BOOLEAN),t.add("tabDragSpeed",.3).setType(o.default.NUMBER),t.add("tabSetEnableDeleteWhenEmpty",!0).setType(o.default.BOOLEAN),t.add("tabSetEnableDrop",!0).setType(o.default.BOOLEAN),t.add("tabSetEnableDrag",!0).setType(o.default.BOOLEAN),t.add("tabSetEnableDivide",!0).setType(o.default.BOOLEAN),t.add("tabSetEnableMaximize",!0).setType(o.default.BOOLEAN),t.add("tabSetEnableClose",!1).setType(o.default.BOOLEAN),t.add("tabSetAutoSelectTab",!0).setType(o.default.BOOLEAN),t.add("tabSetClassNameTabStrip",void 0).setType(o.default.STRING),t.add("tabSetClassNameHeader",void 0).setType(o.default.STRING),t.add("tabSetEnableTabStrip",!0).setType(o.default.BOOLEAN),t.add("tabSetHeaderHeight",0).setType(o.default.NUMBER),t.add("tabSetTabStripHeight",0).setType(o.default.NUMBER),t.add("tabSetMarginInsets",{top:0,right:0,bottom:0,left:0}).setType("IInsets"),t.add("tabSetBorderInsets",{top:0,right:0,bottom:0,left:0}).setType("IInsets"),t.add("tabSetTabLocation","top").setType("ITabLocation"),t.add("tabSetMinWidth",0).setType(o.default.NUMBER),t.add("tabSetMinHeight",0).setType(o.default.NUMBER),t.add("borderSize",200).setType(o.default.NUMBER),t.add("borderMinSize",0).setType(o.default.NUMBER),t.add("borderBarSize",0).setType(o.default.NUMBER),t.add("borderEnableDrop",!0).setType(o.default.BOOLEAN),t.add("borderAutoSelectTabWhenOpen",!0).setType(o.default.BOOLEAN),t.add("borderAutoSelectTabWhenClosed",!1).setType(o.default.BOOLEAN),t.add("borderClassName",void 0).setType(o.default.STRING),t},t.prototype._setChangeListener=function(t){this._changeListener=t},t.prototype.getActiveTabset=function(){return this._activeTabSet&&this.getNodeById(this._activeTabSet.getId())?this._activeTabSet:void 0},t.prototype._setActiveTabset=function(t){this._activeTabSet=t},t.prototype.getMaximizedTabset=function(){return this._maximizedTabSet},t.prototype._setMaximizedTabset=function(t){this._maximizedTabSet=t},t.prototype.getRoot=function(){return this._root},t.prototype.isRootOrientationVertical=function(){return this._attributes.rootOrientationVertical},t.prototype.getBorderSet=function(){return this._borders},t.prototype._getOuterInnerRects=function(){return this._borderRects},t.prototype._getPointerFine=function(){return this._pointerFine},t.prototype._setPointerFine=function(t){this._pointerFine=t},t.prototype.visitNodes=function(t){this._borders._forEachNode(t),this._root._forEachNode(t,0)},t.prototype.getNodeById=function(t){return this._idMap[t]},t.prototype.doAction=function(t){var e=void 0;switch(t.type){case l.default.ADD_NODE:var i=new _.default(this,t.data.json,!0);((o=this._idMap[t.data.toNode])instanceof f.default||o instanceof u.default||o instanceof h.default)&&(o.drop(i,a.default.getByName(t.data.location),t.data.index,t.data.select),e=i);break;case l.default.MOVE_NODE:var o,r=this._idMap[t.data.fromNode];if(r instanceof _.default||r instanceof f.default)((o=this._idMap[t.data.toNode])instanceof f.default||o instanceof u.default||o instanceof h.default)&&o.drop(r,a.default.getByName(t.data.location),t.data.index,t.data.select);break;case l.default.DELETE_TAB:(y=this._idMap[t.data.node])instanceof _.default&&y._delete();break;case l.default.DELETE_TABSET:if((y=this._idMap[t.data.node])instanceof f.default)n([],y.getChildren()).forEach((function(t,e){t._delete()})),y._delete(),this._tidy();break;case l.default.FLOAT_TAB:(y=this._idMap[t.data.node])instanceof _.default&&(y._setFloating(!0),p.adjustSelectedIndexAfterFloat(y));break;case l.default.UNFLOAT_TAB:(y=this._idMap[t.data.node])instanceof _.default&&(y._setFloating(!1),p.adjustSelectedIndexAfterDock(y));break;case l.default.RENAME_TAB:(y=this._idMap[t.data.node])instanceof _.default&&y._setName(t.data.text);break;case l.default.SELECT_TAB:var s=this._idMap[t.data.tabNode];if(s instanceof _.default){var d=s.getParent(),c=d.getChildren().indexOf(s);d instanceof u.default?d.getSelected()===c?d._setSelected(-1):d._setSelected(c):d instanceof f.default&&(d.getSelected()!==c&&d._setSelected(c),this._activeTabSet=d)}break;case l.default.SET_ACTIVE_TABSET:var g=this._idMap[t.data.tabsetNode];g instanceof f.default&&(this._activeTabSet=g);break;case l.default.ADJUST_SPLIT:var T=this._idMap[t.data.node1],v=this._idMap[t.data.node2];(T instanceof f.default||T instanceof h.default)&&(v instanceof f.default||v instanceof h.default)&&(this._adjustSplitSide(T,t.data.weight1,t.data.pixelWidth1),this._adjustSplitSide(v,t.data.weight2,t.data.pixelWidth2));break;case l.default.ADJUST_BORDER_SPLIT:(y=this._idMap[t.data.node])instanceof u.default&&y._setSize(t.data.pos);break;case l.default.MAXIMIZE_TOGGLE:(y=this._idMap[t.data.node])instanceof f.default&&(y===this._maximizedTabSet?this._maximizedTabSet=void 0:(this._maximizedTabSet=y,this._activeTabSet=y));break;case l.default.UPDATE_MODEL_ATTRIBUTES:this._updateAttrs(t.data.json);break;case l.default.UPDATE_NODE_ATTRIBUTES:var y;(y=this._idMap[t.data.node])._updateAttrs(t.data.json)}return this._updateIdMap(),void 0!==this._changeListener&&this._changeListener(),e},t.prototype._updateIdMap=function(){var t=this;this._idMap={},this.visitNodes((function(e){return t._idMap[e.getId()]=e}))},t.prototype._adjustSplitSide=function(t,e,i){t._setWeight(e),null!=t.getWidth()&&t.getOrientation()===s.default.VERT?t._updateAttrs({width:i}):null!=t.getHeight()&&t.getOrientation()===s.default.HORZ&&t._updateAttrs({height:i})},t.prototype.toJson=function(){var e={};return t._attributeDefinitions.toJson(e,this._attributes),this.visitNodes((function(t){t._fireEvent("save",void 0)})),{global:e,borders:this._borders._toJson(),layout:this._root.toJson()}},t.prototype.getSplitterSize=function(){var t=this._attributes.splitterSize;return-1===t&&(t=this._pointerFine?8:12),t},t.prototype.isEnableEdgeDock=function(){return this._attributes.enableEdgeDock},t.prototype._addNode=function(t){var e=t.getId();if(void 0!==this._idMap[e])throw new Error("Error: each node must have a unique id, duplicate id:"+t.getId());"splitter"!==t.getType()&&(this._idMap[e]=t)},t.prototype._layout=function(t,e){var i;return this._borderRects=this._borders._layoutBorder({outer:t,inner:t},e),t=this._borderRects.inner.removeInsets(this._getAttribute("marginInsets")),null===(i=this._root)||void 0===i||i.calcMinSize(),this._root._layout(t,e),t},t.prototype._findDropTargetNode=function(t,e,i){var n=this._root._findDropTargetNode(t,e,i);return void 0===n&&(n=this._borders._findDropTargetNode(t,e,i)),n},t.prototype._tidy=function(){this._root._tidy()},t.prototype._updateAttrs=function(e){t._attributeDefinitions.update(e,this._attributes)},t.prototype._nextUniqueId=function(){return"#"+g.v4()},t.prototype._getAttribute=function(t){return this._attributes[t]},t.prototype.setOnAllowDrop=function(t){this._onAllowDrop=t},t.prototype._getOnAllowDrop=function(){return this._onAllowDrop},t.prototype.setOnCreateTabSet=function(t){this._onCreateTabSet=t},t.prototype._getOnCreateTabSet=function(){return this._onCreateTabSet},t.toTypescriptInterfaces=function(){console.log(t._attributeDefinitions.toTypescriptInterface("Global",void 0)),console.log(h.default.getAttributeDefinitions().toTypescriptInterface("Row",t._attributeDefinitions)),console.log(f.default.getAttributeDefinitions().toTypescriptInterface("TabSet",t._attributeDefinitions)),console.log(_.default.getAttributeDefinitions().toTypescriptInterface("Tab",t._attributeDefinitions)),console.log(u.default.getAttributeDefinitions().toTypescriptInterface("Border",t._attributeDefinitions))},t.prototype.toString=function(){return JSON.stringify(this.toJson())},t._attributeDefinitions=t._createAttributeDefinitions(),t}();e.default=T},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.Layout=void 0;var r=i(0),a=i(5),s=i(16),d=i(4),l=i(8),u=i(14),c=i(12),h=i(6),_=i(2),f=i(3),p=i(28),g=i(30),T=i(31),v=i(32),y=i(34),b=i(35),E=i(36),m="undefined"!=typeof window&&(window.document.documentMode||/Edge\//.test(window.navigator.userAgent)),S="undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(hover: hover) and (pointer: fine)").matches&&!m,A=function(t){function e(e){var i=t.call(this,e)||this;return i.firstMove=!1,i.dragDivText="",i.edgeRectLength=100,i.edgeRectWidth=10,i.edgesShown=!1,i.onModelChange=function(){i.forceUpdate(),i.props.onModelChange&&i.props.onModelChange(i.props.model)},i.updateRect=function(t){void 0===t&&(t=i.getDomRect());var e=new _.default(0,0,t.width,t.height);e.equals(i.state.rect)||0===e.width||0===e.height||i.setState({rect:e})},i.updateLayoutMetrics=function(){if(i.findHeaderBarSizeRef.current){var t=i.findHeaderBarSizeRef.current.getBoundingClientRect().height;t!==i.state.calculatedHeaderBarSize&&i.setState({calculatedHeaderBarSize:t})}if(i.findTabBarSizeRef.current){var e=i.findTabBarSizeRef.current.getBoundingClientRect().height;e!==i.state.calculatedTabBarSize&&i.setState({calculatedTabBarSize:e})}if(i.findBorderBarSizeRef.current){var n=i.findBorderBarSizeRef.current.getBoundingClientRect().height;n!==i.state.calculatedBorderBarSize&&i.setState({calculatedBorderBarSize:n})}},i.getClassName=function(t){return void 0===i.props.classNameMapper?t:i.props.classNameMapper(t)},i.onCloseWindow=function(t){i.doAction(d.default.unFloatTab(t));try{i.props.model.getNodeById(t)._setWindow(void 0)}catch(t){}},i.onSetWindow=function(t,e){i.props.model.getNodeById(t)._setWindow(e)},i.onCancelAdd=function(){i.selfRef.current.removeChild(i.dragDiv),i.dragDiv=void 0,null!=i.fnNewNodeDropped&&(i.fnNewNodeDropped(),i.fnNewNodeDropped=void 0),s.default.instance.hideGlass(),i.newTabJson=void 0},i.onCancelDrag=function(t){if(t){var e=i.selfRef.current;try{e.removeChild(i.outlineDiv)}catch(t){}try{e.removeChild(i.dragDiv)}catch(t){}i.dragDiv=void 0,i.hideEdges(e),null!=i.fnNewNodeDropped&&(i.fnNewNodeDropped(),i.fnNewNodeDropped=void 0),s.default.instance.hideGlass(),i.newTabJson=void 0}},i.onDragDivMouseDown=function(t){t.preventDefault(),i.dragStart(t,i.dragDivText,c.default._fromJson(i.newTabJson,i.props.model,!1),!0,void 0,void 0)},i.dragStart=function(t,e,n,o,r,a){void 0===i.props.model.getMaximizedTabset()&&o?(i.dragNode=n,i.dragDivText=e,s.default.instance.startDrag(t,i.onDragStart,i.onDragMove,i.onDragEnd,i.onCancelDrag,r,a,i.currentDocument,i.selfRef.current)):s.default.instance.startDrag(t,void 0,void 0,void 0,void 0,r,a,i.currentDocument,i.selfRef.current)},i.onDragStart=function(){i.dropInfo=void 0,i.customDrop=void 0;var t=i.selfRef.current;return i.outlineDiv=i.currentDocument.createElement("div"),i.outlineDiv.className=i.getClassName(f.CLASSES.FLEXLAYOUT__OUTLINE_RECT),i.outlineDiv.style.visibility="hidden",t.appendChild(i.outlineDiv),null==i.dragDiv&&(i.dragDiv=i.currentDocument.createElement("div"),i.dragDiv.className=i.getClassName(f.CLASSES.FLEXLAYOUT__DRAG_RECT),i.dragDiv.innerHTML=i.dragDivText,t.appendChild(i.dragDiv)),i.showEdges(t),void 0!==i.dragNode&&i.dragNode instanceof c.default&&void 0!==i.dragNode.getTabRect()&&i.dragNode.getTabRect().positionElement(i.outlineDiv),i.firstMove=!0,!0},i.onDragMove=function(t){if(!1===i.firstMove){var e=i.props.model._getAttribute("tabDragSpeed");i.outlineDiv.style.transition="top "+e+"s, left "+e+"s, width "+e+"s, height "+e+"s"}i.firstMove=!1;var n=i.selfRef.current.getBoundingClientRect(),o={x:t.clientX-n.left,y:t.clientY-n.top};i.dragDiv.style.left=o.x-i.dragDiv.getBoundingClientRect().width/2+"px",i.dragDiv.style.top=o.y+5+"px";var r=i.props.model._findDropTargetNode(i.dragNode,o.x,o.y);if(r){i.customDrop=void 0;var a=i.newTabJson||(i.dragNode instanceof c.default?i.dragNode:void 0);if(a&&(r.node instanceof h.default||r.node instanceof l.default)&&-1===r.index){var s=r.node.getSelectedNode(),d=null==s?void 0:s.getRect();if(s&&(null==d?void 0:d.contains(o.x,o.y))){var u=void 0;try{var f=i.onTabDrag(a,s,o.x-d.x,o.y-d.y,r.location);f&&(u={rect:new _.default(f.x+d.x,f.y+d.y,f.width,f.height),callback:f.callback,dragging:a,over:s,x:o.x-d.x,y:o.y-d.y,location:r.location})}catch(t){console.error(t)}i.customDrop=u}}i.dropInfo=r,i.outlineDiv.className=i.getClassName(i.customDrop?"flexlayout__outline_rect":r.className),i.customDrop?i.customDrop.rect.positionElement(i.outlineDiv):r.rect.positionElement(i.outlineDiv),i.outlineDiv.style.visibility="visible"}},i.onDragEnd=function(t){var e=i.selfRef.current;if(e.removeChild(i.outlineDiv),e.removeChild(i.dragDiv),i.dragDiv=void 0,i.hideEdges(e),s.default.instance.hideGlass(),i.dropInfo)if(i.customDrop){i.newTabJson=void 0;try{var n=i.customDrop;(0,n.callback)(n.dragging,n.over,n.x,n.y,n.location)}catch(t){console.error(t)}}else if(void 0!==i.newTabJson){var o=i.doAction(d.default.addNode(i.newTabJson,i.dropInfo.node.getId(),i.dropInfo.location,i.dropInfo.index));null!=i.fnNewNodeDropped&&(i.fnNewNodeDropped(o,t),i.fnNewNodeDropped=void 0),i.newTabJson=void 0}else void 0!==i.dragNode&&i.doAction(d.default.moveNode(i.dragNode.getId(),i.dropInfo.node.getId(),i.dropInfo.location,i.dropInfo.index))},i.props.model._setChangeListener(i.onModelChange),i.tabIds=[],i.selfRef=r.createRef(),i.findHeaderBarSizeRef=r.createRef(),i.findTabBarSizeRef=r.createRef(),i.findBorderBarSizeRef=r.createRef(),i.supportsPopout=void 0!==e.supportsPopout?e.supportsPopout:S,i.popoutURL=e.popoutURL?e.popoutURL:"popout.html",i.icons=e.closeIcon?Object.assign({close:e.closeIcon},e.icons):e.icons,i.firstRender=!0,i.state={rect:new _.default(0,0,0,0),calculatedHeaderBarSize:25,calculatedTabBarSize:26,calculatedBorderBarSize:30,editingTab:void 0},i.onDragEnter=i.onDragEnter.bind(i),i}return o(e,t),e.prototype.styleFont=function(t){return this.props.font&&(this.props.font.size&&(t.fontSize=this.props.font.size),this.props.font.family&&(t.fontFamily=this.props.font.family),this.props.font.style&&(t.fontStyle=this.props.font.style),this.props.font.weight&&(t.fontWeight=this.props.font.weight)),t},e.prototype.doAction=function(t){if(void 0!==this.props.onAction){var e=this.props.onAction(t);return void 0!==e?this.props.model.doAction(e):void 0}return this.props.model.doAction(t)},e.prototype.componentDidMount=function(){var t=this;this.updateRect(),this.updateLayoutMetrics(),this.currentDocument=this.selfRef.current.ownerDocument,this.currentWindow=this.currentDocument.defaultView,this.resizeObserver=new ResizeObserver((function(e){t.updateRect(e[0].contentRect)})),this.resizeObserver.observe(this.selfRef.current)},e.prototype.componentDidUpdate=function(){this.updateLayoutMetrics(),this.props.model!==this.previousModel&&(void 0!==this.previousModel&&this.previousModel._setChangeListener(void 0),this.props.model._setChangeListener(this.onModelChange),this.previousModel=this.props.model)},e.prototype.getCurrentDocument=function(){return this.currentDocument},e.prototype.getDomRect=function(){return this.selfRef.current.getBoundingClientRect()},e.prototype.getRootDiv=function(){return this.selfRef.current},e.prototype.isSupportsPopout=function(){return this.supportsPopout},e.prototype.isRealtimeResize=function(){var t;return null!==(t=this.props.realtimeResize)&&void 0!==t&&t},e.prototype.onTabDrag=function(t,e,i,n,o){var r,a;return null===(a=(r=this.props).onTabDrag)||void 0===a?void 0:a.call(r,t,e,i,n,o)},e.prototype.getPopoutURL=function(){return this.popoutURL},e.prototype.componentWillUnmount=function(){var t;null===(t=this.resizeObserver)||void 0===t||t.unobserve(this.selfRef.current)},e.prototype.setEditingTab=function(t){this.setState({editingTab:t})},e.prototype.getEditingTab=function(){return this.state.editingTab},e.prototype.render=function(){var t=this;if(this.firstRender)return this.firstRender=!1,r.createElement("div",{ref:this.selfRef,className:this.getClassName(f.CLASSES.FLEXLAYOUT__LAYOUT)},this.metricsElements());this.props.model._setPointerFine(window&&window.matchMedia&&window.matchMedia("(pointer: fine)").matches);var e=[],i=[],n=[],o={},a=[],s={headerBarSize:this.state.calculatedHeaderBarSize,tabBarSize:this.state.calculatedTabBarSize,borderBarSize:this.state.calculatedBorderBarSize};this.centerRect=this.props.model._layout(this.state.rect,s),this.renderBorder(this.props.model.getBorderSet(),e,o,n,a),this.renderChildren(this.props.model.getRoot(),i,o,n,a),this.edgesShown&&this.repositionEdges(this.state.rect);var d=[],l={};return this.tabIds.forEach((function(t){o[t]&&(d.push(t),l[t]=t)})),this.tabIds=d,Object.keys(o).forEach((function(e){l[e]||t.tabIds.push(e)})),r.createElement("div",{ref:this.selfRef,className:this.getClassName(f.CLASSES.FLEXLAYOUT__LAYOUT),onDragEnter:this.props.onExternalDrag?this.onDragEnter:void 0},i,this.tabIds.map((function(t){return o[t]})),e,a,n,this.metricsElements())},e.prototype.metricsElements=function(){var t=this.styleFont({visibility:"hidden"});return r.createElement(r.Fragment,null,r.createElement("div",{key:"findHeaderBarSize",ref:this.findHeaderBarSizeRef,style:t,className:this.getClassName(f.CLASSES.FLEXLAYOUT__TABSET_HEADER_SIZER)},"FindHeaderBarSize"),r.createElement("div",{key:"findTabBarSize",ref:this.findTabBarSizeRef,style:t,className:this.getClassName(f.CLASSES.FLEXLAYOUT__TABSET_SIZER)},"FindTabBarSize"),r.createElement("div",{key:"findBorderBarSize",ref:this.findBorderBarSizeRef,style:t,className:this.getClassName(f.CLASSES.FLEXLAYOUT__BORDER_SIZER)},"FindBorderBarSize"))},e.prototype.renderBorder=function(t,e,i,n,o){for(var a=0,s=t.getBorders();a<s.length;a++){var d=s[a];if(d.isShowing()){e.push(r.createElement(p.BorderTabSet,{key:"border_"+d.getLocation().getName(),border:d,layout:this,iconFactory:this.props.iconFactory,titleFactory:this.props.titleFactory,icons:this.icons}));for(var l=0,h=0,_=d._getDrawChildren();h<_.length;h++){var f=_[h];if(f instanceof u.default)o.push(r.createElement(g.Splitter,{key:f.getId(),layout:this,node:f}));else if(f instanceof c.default)if(this.supportsPopout&&f.isFloating()){var v=this._getScreenRect(f);n.push(r.createElement(y.FloatingWindow,{key:f.getId(),url:this.popoutURL,rect:v,title:f.getName(),id:f.getId(),onSetWindow:this.onSetWindow,onCloseWindow:this.onCloseWindow},r.createElement(b.FloatingWindowTab,{layout:this,node:f,factory:this.props.factory}))),i[f.getId()]=r.createElement(E.TabFloating,{key:f.getId(),layout:this,node:f,selected:l===d.getSelected()})}else i[f.getId()]=r.createElement(T.Tab,{key:f.getId(),layout:this,node:f,selected:l===d.getSelected(),factory:this.props.factory});l++}}}},e.prototype.renderChildren=function(t,e,i,n,o){for(var a=0,s=t._getDrawChildren();a<s.length;a++){var d=s[a];if(d instanceof u.default)o.push(r.createElement(g.Splitter,{key:d.getId(),layout:this,node:d}));else if(d instanceof h.default)e.push(r.createElement(v.TabSet,{key:d.getId(),layout:this,node:d,iconFactory:this.props.iconFactory,titleFactory:this.props.titleFactory,icons:this.icons})),this.renderChildren(d,e,i,n,o);else if(d instanceof c.default){var l=d.getParent().getChildren()[d.getParent().getSelected()];if(void 0===l&&console.warn("undefined selectedTab should not happen"),this.supportsPopout&&d.isFloating()){var _=this._getScreenRect(d);n.push(r.createElement(y.FloatingWindow,{key:d.getId(),url:this.popoutURL,rect:_,title:d.getName(),id:d.getId(),onSetWindow:this.onSetWindow,onCloseWindow:this.onCloseWindow},r.createElement(b.FloatingWindowTab,{layout:this,node:d,factory:this.props.factory}))),i[d.getId()]=r.createElement(E.TabFloating,{key:d.getId(),layout:this,node:d,selected:d===l})}else i[d.getId()]=r.createElement(T.Tab,{key:d.getId(),layout:this,node:d,selected:d===l,factory:this.props.factory})}else this.renderChildren(d,e,i,n,o)}},e.prototype._getScreenRect=function(t){var e=t.getRect().clone(),i=this.selfRef.current.getBoundingClientRect(),n=Math.min(80,this.currentWindow.outerHeight-this.currentWindow.innerHeight),o=Math.min(80,this.currentWindow.outerWidth-this.currentWindow.innerWidth);return e.x=e.x+i.x+this.currentWindow.screenX+o,e.y=e.y+i.y+this.currentWindow.screenY+n,e},e.prototype.addTabToTabSet=function(t,e){void 0!==this.props.model.getNodeById(t)&&this.doAction(d.default.addNode(e,t,a.default.CENTER,-1))},e.prototype.addTabToActiveTabSet=function(t){var e=this.props.model.getActiveTabset();void 0!==e&&this.doAction(d.default.addNode(t,e.getId(),a.default.CENTER,-1))},e.prototype.addTabWithDragAndDrop=function(t,e,i){this.fnNewNodeDropped=i,this.newTabJson=e,this.dragStart(void 0,t,c.default._fromJson(e,this.props.model,!1),!0,void 0,void 0)},e.prototype.addTabWithDragAndDropIndirect=function(t,e,i){this.fnNewNodeDropped=i,this.newTabJson=e,s.default.instance.addGlass(this.onCancelAdd),this.dragDivText=t,this.dragDiv=this.currentDocument.createElement("div"),this.dragDiv.className=this.getClassName("flexlayout__drag_rect"),this.dragDiv.innerHTML=this.dragDivText,this.dragDiv.addEventListener("mousedown",this.onDragDivMouseDown),this.dragDiv.addEventListener("touchstart",this.onDragDivMouseDown);var n=new _.default(10,10,150,50);n.centerInRect(this.state.rect),this.dragDiv.style.left=n.x+"px",this.dragDiv.style.top=n.y+"px",this.selfRef.current.appendChild(this.dragDiv)},e.prototype.onDragEnter=function(t){if(!s.default.instance.isDragging()){var e=this.props.onExternalDrag(t);e&&(this.fnNewNodeDropped=e.onDrop,this.newTabJson=e.json,this.dragStart(t,e.dragText,c.default._fromJson(e.json,this.props.model,!1),!0,void 0,void 0))}},e.prototype.showEdges=function(t){if(this.props.model.isEnableEdgeDock()){var e=this.edgeRectLength+"px",i=this.edgeRectWidth+"px";this.edgeTopDiv=this.currentDocument.createElement("div"),this.edgeTopDiv.className=this.getClassName(f.CLASSES.FLEXLAYOUT__EDGE_RECT),this.edgeTopDiv.style.width=e,this.edgeTopDiv.style.height=i,this.edgeTopDiv.style.borderBottomLeftRadius="50px",this.edgeTopDiv.style.borderBottomRightRadius="50px",this.edgeLeftDiv=this.currentDocument.createElement("div"),this.edgeLeftDiv.className=this.getClassName(f.CLASSES.FLEXLAYOUT__EDGE_RECT),this.edgeLeftDiv.style.width=i,this.edgeLeftDiv.style.height=e,this.edgeLeftDiv.style.borderTopRightRadius="50px",this.edgeLeftDiv.style.borderBottomRightRadius="50px",this.edgeBottomDiv=this.currentDocument.createElement("div"),this.edgeBottomDiv.className=this.getClassName(f.CLASSES.FLEXLAYOUT__EDGE_RECT),this.edgeBottomDiv.style.width=e,this.edgeBottomDiv.style.height=i,this.edgeBottomDiv.style.borderTopLeftRadius="50px",this.edgeBottomDiv.style.borderTopRightRadius="50px",this.edgeRightDiv=this.currentDocument.createElement("div"),this.edgeRightDiv.className=this.getClassName(f.CLASSES.FLEXLAYOUT__EDGE_RECT),this.edgeRightDiv.style.width=i,this.edgeRightDiv.style.height=e,this.edgeRightDiv.style.borderTopLeftRadius="50px",this.edgeRightDiv.style.borderBottomLeftRadius="50px",this.repositionEdges(this.state.rect),t.appendChild(this.edgeTopDiv),t.appendChild(this.edgeLeftDiv),t.appendChild(this.edgeBottomDiv),t.appendChild(this.edgeRightDiv),this.edgesShown=!0}},e.prototype.repositionEdges=function(t){if(this.props.model.isEnableEdgeDock()){var e=this.centerRect;this.edgeTopDiv.style.top=e.y+"px",this.edgeTopDiv.style.left=e.x+(e.width-this.edgeRectLength)/2+"px",this.edgeLeftDiv.style.top=e.y+(e.height-this.edgeRectLength)/2+"px",this.edgeLeftDiv.style.left=e.x+"px",this.edgeBottomDiv.style.bottom=t.height-e.getBottom()+"px",this.edgeBottomDiv.style.left=e.x+(e.width-this.edgeRectLength)/2+"px",this.edgeRightDiv.style.top=e.y+(e.height-this.edgeRectLength)/2+"px",this.edgeRightDiv.style.right=t.width-e.getRight()+"px"}},e.prototype.hideEdges=function(t){if(this.props.model.isEnableEdgeDock())try{t.removeChild(this.edgeTopDiv),t.removeChild(this.edgeLeftDiv),t.removeChild(this.edgeBottomDiv),t.removeChild(this.edgeRightDiv)}catch(t){}this.edgesShown=!1},e.prototype.maximize=function(t){this.doAction(d.default.maximizeToggle(t.getId()))},e.prototype.customizeTab=function(t,e){this.props.onRenderTab&&this.props.onRenderTab(t,e)},e.prototype.customizeTabSet=function(t,e){this.props.onRenderTabSet&&this.props.onRenderTabSet(t,e)},e.prototype.i18nName=function(t,e){var i;return this.props.i18nMapper&&(i=this.props.i18nMapper(t,e)),void 0===i&&(i=t+(void 0===e?"":e)),i},e}(r.Component);e.Layout=A,e.default=A},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BorderTabSet=void 0;var n=i(0),o=i(5),r=i(29),a=i(22),s=i(4),d=i(7),l=i(24),u=i(1),c=i(3);e.BorderTabSet=function(t){for(var e=t.border,i=t.layout,h=t.iconFactory,_=t.titleFactory,f=t.icons,p=n.useRef(null),g=n.useRef(null),T=n.useRef(null),v=l.useTabOverflow(e,u.default.flip(e.getOrientation()),p,T),y=v.selfRef,b=v.position,E=v.userControlledLeft,m=v.hiddenTabs,S=v.onMouseWheel,A=function(t){t.stopPropagation()},L=function(t){i.doAction(s.default.selectTab(t.node.getId())),E.current=!1},O=i.getClassName,R=e.getTabHeaderRect().styleWithPosition({}),D=[],N=function(t){var o=e.getSelected()===t,a=e.getChildren()[t];D.push(n.createElement(r.BorderButton,{layout:i,border:e.getLocation().getName(),node:a,key:a.getId(),selected:o,iconFactory:h,titleFactory:_,icons:f}))},w=0;w<e.getChildren().length;w++)N(w);var B=O(c.CLASSES.FLEXLAYOUT__BORDER)+" "+O(c.CLASSES.FLEXLAYOUT__BORDER_+e.getLocation().getName());void 0!==e.getClassName()&&(B+=" "+e.getClassName());var C,x=[],I={headerContent:{},buttons:x,stickyButtons:[],headerButtons:[]};if(i.customizeTabSet(e,I),x=I.buttons,m.length>0){var M=i.i18nName(d.I18nLabel.Overflow_Menu_Tooltip);x.push(n.createElement("button",{key:"overflowbutton",ref:g,className:O("flexlayout__border_toolbar_button_overflow")+" "+O("flexlayout__border_toolbar_button_overflow_"+e.getLocation().getName()),title:M,onClick:function(){var t=g.current;a.showPopup(i.getRootDiv(),t,m,L,i.getClassName)},onMouseDown:A,onTouchStart:A},null==f?void 0:f.more,m.length))}var U=e.getSelected();if(-1!==U){var F=e.getChildren()[U];if(void 0!==F&&i.isSupportsPopout()&&F.isEnableFloat()&&!F.isFloating()){var z=i.i18nName(d.I18nLabel.Float_Tab);x.push(n.createElement("button",{key:"float",title:z,className:O(c.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON)+" "+O(c.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_FLOAT),onClick:function(){var t=e.getChildren()[e.getSelected()];void 0!==t&&i.doAction(s.default.floatTab(t.getId()))},onMouseDown:A,onTouchStart:A}))}}C=n.createElement("div",{key:"toolbar",ref:p,className:O(c.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR)+" "+O(c.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_+e.getLocation().getName())},x),R=i.styleFont(R);var P={},Y=e.getBorderBarSize()-1;return P=e.getLocation()===o.default.LEFT?{right:Y,height:Y,top:b}:e.getLocation()===o.default.RIGHT?{left:Y,height:Y,top:b}:{height:Y,left:b},n.createElement("div",{ref:y,style:R,className:B,onWheel:S},n.createElement("div",{style:{height:Y},className:O(c.CLASSES.FLEXLAYOUT__BORDER_INNER)+" "+O(c.CLASSES.FLEXLAYOUT__BORDER_INNER_+e.getLocation().getName())},n.createElement("div",{style:P,className:O(c.CLASSES.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER)+" "+O(c.CLASSES.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER_+e.getLocation().getName())},D)),C)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BorderButton=void 0;var n=i(0),o=i(15),r=i(4),a=i(2),s=i(21),d=i(3);e.BorderButton=function(t){var e=t.layout,i=t.node,l=t.selected,u=t.border,c=t.iconFactory,h=t.titleFactory,_=t.icons,f=n.useRef(null),p=function(n){var r=e.i18nName(o.I18nLabel.Move_Tab,i.getName());t.layout.dragStart(n,r,i,i.isEnableDrag(),g,(function(t){}))},g=function(){e.doAction(r.default.selectTab(i.getId()))},T=function(t){t.stopPropagation()};n.useLayoutEffect((function(){v()}));var v=function(){var t=e.getDomRect(),n=f.current.getBoundingClientRect();i._setTabRect(new a.default(n.left-t.left,n.top-t.top,n.width,n.height))},y=e.getClassName,b=y(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON)+" "+y(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON_+u);b+=l?" "+y(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON__SELECTED):" "+y(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON__UNSELECTED),void 0!==i.getClassName()&&(b+=" "+i.getClassName());var E=c?c(i):void 0,m=i.getName(),S=i.getName();if(void 0!==h){var A=h(i);void 0!==A&&("string"==typeof A?(m=A,S=A):void 0!==A.titleContent?(m=A.titleContent,S=A.name):m=A)}void 0===typeof E&&void 0!==typeof i.getIcon()&&(E=n.createElement("img",{src:i.getIcon(),alt:"leadingContent"}));var L=[],O={leading:E,content:m,name:S,buttons:L};e.customizeTab(i,O),i._setRenderedName(O.name);var R=n.createElement("div",{className:y(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON_CONTENT)},O.content),D=n.createElement("div",{className:y(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON_LEADING)},O.leading);if(i.isEnableClose()){var N=e.i18nName(o.I18nLabel.Close_Tab);L.push(n.createElement("div",{key:"close",title:N,className:y(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON_TRAILING),onMouseDown:T,onClick:function(t){var n;n=i.getCloseType(),l||n===s.ICloseType.Always||n===s.ICloseType.Visible&&window.matchMedia&&window.matchMedia("(hover: hover) and (pointer: fine)").matches?e.doAction(r.default.deleteTab(i.getId())):g()},onTouchStart:T},null==_?void 0:_.close))}return n.createElement("div",{ref:f,style:{},className:b,onMouseDown:p,onTouchStart:p,title:i.getHelpText()},D,R,L)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Splitter=void 0;var n=i(0),o=i(16),r=i(4),a=i(8),s=i(1),d=i(3);e.Splitter=function(t){var e=t.layout,i=t.node,l=n.useRef([]),u=n.useRef(void 0),c=i.getParent(),h=function(t){o.default.instance.startDrag(t,f,p,T,_,void 0,void 0,e.getCurrentDocument(),e.getRootDiv()),l.current=c._getSplitterBounds(i,!0);var n=e.getRootDiv();u.current=e.getCurrentDocument().createElement("div"),u.current.style.position="absolute",u.current.className=e.getClassName(d.CLASSES.FLEXLAYOUT__SPLITTER_DRAG),u.current.style.cursor=i.getOrientation()===s.default.HORZ?"ns-resize":"ew-resize",i.getRect().positionElement(u.current),n.appendChild(u.current)},_=function(t){e.getRootDiv().removeChild(u.current)},f=function(){return!0},p=function(t){var n=e.getDomRect(),o=t.clientX-n.left,r=t.clientY-n.top;u&&(i.getOrientation()===s.default.HORZ?u.current.style.top=v(r-4)+"px":u.current.style.left=v(o-4)+"px"),e.isRealtimeResize()&&g()},g=function(){var t=0;if(u&&(t=i.getOrientation()===s.default.HORZ?u.current.offsetTop:u.current.offsetLeft),c instanceof a.default){var n=c._calculateSplit(i,t);e.doAction(r.default.adjustBorderSplit(i.getParent().getId(),n))}else{var o=c._calculateSplit(i,t);void 0!==o&&e.doAction(r.default.adjustSplit(o))}},T=function(){g(),e.getRootDiv().removeChild(u.current)},v=function(t){var e=l.current,i=t;return t<e[0]&&(i=e[0]),t>e[1]&&(i=e[1]),i},y=e.getClassName,b=i._styleWithPosition({cursor:i.getOrientation()===s.default.HORZ?"ns-resize":"ew-resize"}),E=y(d.CLASSES.FLEXLAYOUT__SPLITTER)+" "+y(d.CLASSES.FLEXLAYOUT__SPLITTER_+i.getOrientation().getName());return c instanceof a.default?E+=" "+y(d.CLASSES.FLEXLAYOUT__SPLITTER_BORDER):void 0!==i.getModel().getMaximizedTabset()&&(b.display="none"),n.createElement("div",{style:b,onTouchStart:h,onMouseDown:h,className:E})}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Tab=void 0;var n=i(0),o=i(0),r=i(4),a=i(6),s=i(3),d=i(25),l=i(7),u=i(15);e.Tab=function(t){var e=t.layout,i=t.selected,c=t.node,h=t.factory,_=n.useState(!t.node.isEnableRenderOnDemand()||t.selected),f=_[0],p=_[1];n.useLayoutEffect((function(){!f&&i&&p(!0)}));var g,T=function(){var t=c.getParent();t.getType()===a.default.TYPE&&(t.isActive()||e.doAction(r.default.setActiveTabset(t.getId())))},v=e.getClassName,y=c.getParent(),b=c._styleWithPosition({display:i?"block":"none"});y instanceof a.default&&(void 0===c.getModel().getMaximizedTabset()||y.isMaximized()||(b.display="none")),f&&(g=h(c));var E=v(s.CLASSES.FLEXLAYOUT__TAB);return y instanceof u.BorderNode&&(E+=" "+v(s.CLASSES.FLEXLAYOUT__TAB_BORDER),E+=" "+v(s.CLASSES.FLEXLAYOUT__TAB_BORDER_+y.getLocation().getName())),n.createElement("div",{className:E,onMouseDown:T,onTouchStart:T,style:b},n.createElement(d.ErrorBoundary,{message:t.layout.i18nName(l.I18nLabel.Error_rendering_component)},n.createElement(o.Fragment,null,g)))}},function(t,e,i){"use strict";var n=this&&this.__spreadArray||function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.TabSet=void 0;var o=i(0),r=i(7),a=i(4),s=i(22),d=i(33),l=i(24),u=i(1),c=i(3);e.TabSet=function(t){var e=t.node,i=t.layout,h=t.iconFactory,_=t.titleFactory,f=t.icons,p=o.useRef(null),g=o.useRef(null),T=o.useRef(null),v=o.useRef(null),y=l.useTabOverflow(e,u.default.HORZ,p,v),b=y.selfRef,E=y.position,m=y.userControlledLeft,S=y.hiddenTabs,A=y.onMouseWheel,L=y.tabsTruncated,O=function(t){i.doAction(a.default.selectTab(t.node.getId())),m.current=!1},R=function(t){var n=e.getName();if(n=void 0===n?"":": "+n,i.doAction(a.default.setActiveTabset(e.getId())),!i.getEditingTab()){var o=i.i18nName(r.I18nLabel.Move_Tabset,n);i.dragStart(t,o,e,e.isEnableDrag(),(function(t){}),N)}},D=function(t){t.stopPropagation()},N=function(t){e.canMaximize()&&i.maximize(e)},w=i.getClassName;null!==T.current&&0!==T.current.scrollLeft&&(T.current.scrollLeft=0);var B=e.getSelectedNode(),C=e._styleWithPosition();void 0===e.getModel().getMaximizedTabset()||e.isMaximized()||(C.display="none");var x=[];if(e.isEnableTabStrip())for(var I=0;I<e.getChildren().length;I++){var M=e.getChildren()[I],U=e.getSelected()===I;x.push(o.createElement(d.TabButton,{layout:i,node:M,key:M.getId(),selected:U,show:!0,height:e.getTabStripHeight(),iconFactory:h,titleFactory:_,icons:f}))}var F=void 0!==e.getName(),z=[],P=[],Y=[],W={headerContent:e.getName(),stickyButtons:z,buttons:P,headerButtons:Y};i.customizeTabSet(e,W);var H,X,k,j=W.headerContent;if(P=W.buttons,Y=W.headerButtons,(z=W.stickyButtons).length>0&&(L?P=n(n([],z),P):x.push(o.createElement("div",{ref:v,key:"sticky_buttons_container",onMouseDown:D,onTouchStart:D,onDragStart:function(t){t.preventDefault()},className:w(c.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_STICKY_BUTTONS_CONTAINER)},z))),S.length>0){var G=i.i18nName(r.I18nLabel.Overflow_Menu_Tooltip);P.push(o.createElement("button",{key:"overflowbutton",ref:g,className:w(c.CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW),title:G,onClick:function(){var t=g.current;s.showPopup(i.getRootDiv(),t,S,O,i.getClassName)},onMouseDown:D,onTouchStart:D},null==f?void 0:f.more,S.length))}if(void 0!==B&&i.isSupportsPopout()&&B.isEnableFloat()&&!B.isFloating()){var J=i.i18nName(r.I18nLabel.Float_Tab);P.push(o.createElement("button",{key:"float",title:J,className:w(c.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+w(c.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_FLOAT),onClick:function(){void 0!==B&&i.doAction(a.default.floatTab(B.getId()))},onMouseDown:D,onTouchStart:D},null==f?void 0:f.popout))}if(e.canMaximize()){var V=i.i18nName(r.I18nLabel.Restore),Z=i.i18nName(r.I18nLabel.Maximize);(F?Y:P).push(o.createElement("button",{key:"max",title:e.isMaximized()?V:Z,className:w(c.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+w(c.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_+(e.isMaximized()?"max":"min")),onClick:function(){e.canMaximize()&&i.maximize(e)},onMouseDown:D,onTouchStart:D},e.isMaximized()?null==f?void 0:f.restore:null==f?void 0:f.maximize))}if(!e.isMaximized()&&e.isEnableClose()){var q=i.i18nName(r.I18nLabel.Close_Tabset);(F?Y:P).push(o.createElement("button",{key:"close",title:q,className:w(c.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+w(c.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_CLOSE),onClick:function(){i.doAction(a.default.deleteTabset(e.getId()))},onMouseDown:D,onTouchStart:D},null==f?void 0:f.closeTabset))}H=o.createElement("div",{key:"toolbar",ref:p,className:w(c.CLASSES.FLEXLAYOUT__TAB_TOOLBAR),onMouseDown:D,onTouchStart:D,onDragStart:function(t){t.preventDefault()}},P);var K=w(c.CLASSES.FLEXLAYOUT__TABSET_TABBAR_OUTER);if(void 0!==e.getClassNameTabStrip()&&(K+=" "+e.getClassNameTabStrip()),K+=" "+c.CLASSES.FLEXLAYOUT__TABSET_TABBAR_OUTER_+e.getTabLocation(),e.isActive()&&!F&&(K+=" "+w(c.CLASSES.FLEXLAYOUT__TABSET_SELECTED)),e.isMaximized()&&!F&&(K+=" "+w(c.CLASSES.FLEXLAYOUT__TABSET_MAXIMIZED)),F){var $=o.createElement("div",{key:"toolbar",ref:p,className:w(c.CLASSES.FLEXLAYOUT__TAB_TOOLBAR),onMouseDown:D,onTouchStart:D,onDragStart:function(t){t.preventDefault()}},Y),Q=w(c.CLASSES.FLEXLAYOUT__TABSET_HEADER);e.isActive()&&(Q+=" "+w(c.CLASSES.FLEXLAYOUT__TABSET_SELECTED)),e.isMaximized()&&(Q+=" "+w(c.CLASSES.FLEXLAYOUT__TABSET_MAXIMIZED)),void 0!==e.getClassNameHeader()&&(Q+=" "+e.getClassNameHeader()),X=o.createElement("div",{className:Q,style:{height:e.getHeaderHeight()+"px"},onMouseDown:R,onTouchStart:R},o.createElement("div",{className:w(c.CLASSES.FLEXLAYOUT__TABSET_HEADER_CONTENT)},j),$)}var tt={height:e.getTabStripHeight()+"px"};if("top"===e.getTabLocation()){var et=F?e.getHeaderHeight()+"px":"0px";tt.top=et}else tt.bottom="0px";return k=o.createElement("div",{className:K,style:tt,onMouseDown:R,onTouchStart:R},o.createElement("div",{ref:T,className:w(c.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER)+" "+w(c.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER_+e.getTabLocation())},o.createElement("div",{style:{left:E},className:w(c.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER)+" "+w(c.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER_+e.getTabLocation())},x)),H),C=i.styleFont(C),o.createElement("div",{ref:b,style:C,className:w(c.CLASSES.FLEXLAYOUT__TABSET),onWheel:A},X,k)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TabButton=void 0;var n=i(0),o=i(7),r=i(4),a=i(2),s=i(21),d=i(3);e.TabButton=function(t){var e=t.layout,i=t.node,l=t.show,u=t.selected,c=t.iconFactory,h=t.titleFactory,_=t.icons,f=n.useRef(null),p=n.useRef(null),g=n.useRef(0),T=function(t){if(!e.getEditingTab()){var n=e.i18nName(o.I18nLabel.Move_Tab,i.getName());e.dragStart(t,n,i,i.isEnableDrag(),v,y)}},v=function(){e.doAction(r.default.selectTab(i.getId()))},y=function(t){i.isEnableRename()&&(e.setEditingTab(i),e.getCurrentDocument().body.addEventListener("mousedown",b),e.getCurrentDocument().body.addEventListener("touchstart",b))},b=function(t){t.target!==p.current&&(e.getCurrentDocument().body.removeEventListener("mousedown",b),e.getCurrentDocument().body.removeEventListener("touchstart",b),e.setEditingTab(void 0))},E=function(t){t.stopPropagation()};n.useLayoutEffect((function(){m(),e.getEditingTab()===i&&p.current.select()}));var m=function(){var t=e.getDomRect(),n=f.current.getBoundingClientRect();i._setTabRect(new a.default(n.left-t.left,n.top-t.top,n.width,n.height)),g.current=p.current.getBoundingClientRect().width},S=function(t){t.stopPropagation()},A=e.getClassName,L=i.getParent(),O=d.CLASSES.FLEXLAYOUT__TAB_BUTTON,R=A(O);R+=" "+A(O+"_"+L.getTabLocation()),R+=u?" "+A(O+"--selected"):" "+A(O+"--unselected"),void 0!==i.getClassName()&&(R+=" "+i.getClassName());var D=c?c(i):void 0,N=i.getName(),w=i.getName();if(void 0!==h){var B=h(i);void 0!==B&&("string"==typeof B?(N=B,w=B):void 0!==B.titleContent?(N=B.titleContent,w=B.name):N=B)}void 0===typeof D&&void 0!==typeof i.getIcon()&&(D=n.createElement("img",{src:i.getIcon(),alt:"leadingContent"}));var C=[],x={leading:D,content:N,name:w,buttons:C};e.customizeTab(i,x),i._setRenderedName(x.name);var I=n.createElement("div",{ref:p,className:A(d.CLASSES.FLEXLAYOUT__TAB_BUTTON_CONTENT)},x.content),M=n.createElement("div",{className:A(d.CLASSES.FLEXLAYOUT__TAB_BUTTON_LEADING)},x.leading);if(e.getEditingTab()===i){var U={width:g+"px"};I=n.createElement("input",{style:U,ref:p,className:A(d.CLASSES.FLEXLAYOUT__TAB_BUTTON_TEXTBOX),type:"text",autoFocus:!0,defaultValue:i.getName(),onKeyDown:function(t){27===t.keyCode?e.setEditingTab(void 0):13===t.keyCode&&(e.setEditingTab(void 0),e.doAction(r.default.renameTab(i.getId(),t.target.value)))},onMouseDown:S,onTouchStart:S})}if(i.isEnableClose()){var F=e.i18nName(o.I18nLabel.Close_Tab);C.push(n.createElement("div",{key:"close",title:F,className:A(d.CLASSES.FLEXLAYOUT__TAB_BUTTON_TRAILING),onMouseDown:E,onClick:function(t){var n;n=i.getCloseType(),u||n===s.ICloseType.Always||n===s.ICloseType.Visible&&window.matchMedia&&window.matchMedia("(hover: hover) and (pointer: fine)").matches?e.doAction(r.default.deleteTab(i.getId())):v()},onTouchStart:E},null==_?void 0:_.close))}return n.createElement("div",{ref:f,style:{visibility:l?"visible":"hidden"},className:R,onMouseDown:T,onTouchStart:T,title:i.getHelpText()},M,I,C)}},function(t,e,i){"use strict";var n=this&&this.__spreadArray||function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.FloatingWindow=void 0;var o=i(0),r=i(23),a=i(3);e.FloatingWindow=function(t){var e=t.title,i=t.id,s=t.url,d=t.rect,l=t.onCloseWindow,u=t.onSetWindow,c=t.children,h=o.useRef(null),_=o.useState(void 0),f=_[0],p=_[1];return o.useLayoutEffect((function(){var t=d,o=Array.from(window.document.styleSheets).reduce((function(t,e){try{return n(n([],t),[{href:e.href,type:e.type,rules:Array.from(e.cssRules).map((function(t){return t.cssText}))}])}catch(e){return t}}),[]);return h.current=window.open(s,i,"left="+t.x+",top="+t.y+",width="+t.width+",height="+t.height),null!==h.current?(u(i,h.current),window.addEventListener("beforeunload",(function(){h.current&&(h.current.close(),h.current=null)})),h.current.addEventListener("load",(function(){var t=h.current.document;t.title=e;var n,r,s,d,u=t.createElement("div");u.className=a.CLASSES.FLEXLAYOUT__FLOATING_WINDOW_CONTENT,t.body.appendChild(u),(n=t,r=o,s=n.head,d=[],r.forEach((function(t){if(t.href){var e=n.createElement("link");e.type=t.type,e.rel="stylesheet",e.href=t.href,s.appendChild(e),d.push(new Promise((function(t,i){e.onload=function(){return t(!0)}})))}else{var i=n.createElement("style");t.rules.forEach((function(t){return i.appendChild(n.createTextNode(t))})),s.appendChild(i)}})),Promise.all(d)).then((function(){p(u)})),h.current.addEventListener("beforeunload",(function(){l(i)}))}))):(console.warn("Unable to open window "+s),l(i)),function(){setTimeout((function(){h.current&&(h.current.close(),h.current=null)}),0)}}),[]),void 0!==f?r.createPortal(c,f):null}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FloatingWindowTab=void 0;var n=i(0),o=i(25),r=i(7),a=i(0),s=i(3);e.FloatingWindowTab=function(t){var e=t.layout,i=t.node,d=t.factory,l=e.getClassName,u=d(i);return n.createElement("div",{className:l(s.CLASSES.FLEXLAYOUT__FLOATING_WINDOW_TAB)},n.createElement(o.ErrorBoundary,{message:t.layout.i18nName(r.I18nLabel.Error_rendering_component)},n.createElement(a.Fragment,null,u)))}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TabFloating=void 0;var n=i(0),o=i(4),r=i(6),a=i(3),s=i(7);e.TabFloating=function(t){var e=t.layout,i=t.selected,d=t.node,l=function(){var t=d.getParent();t.getType()===r.default.TYPE&&(t.isActive()||e.doAction(o.default.setActiveTabset(t.getId())))},u=e.getClassName,c=d._styleWithPosition({display:i?"flex":"none"}),h=e.i18nName(s.I18nLabel.Floating_Window_Message),_=e.i18nName(s.I18nLabel.Floating_Window_Show_Window),f=e.i18nName(s.I18nLabel.Floating_Window_Dock_Window);return n.createElement("div",{className:u(a.CLASSES.FLEXLAYOUT__TAB_FLOATING),onMouseDown:l,onTouchStart:l,style:c},n.createElement("div",{className:u(a.CLASSES.FLEXLAYOUT__TAB_FLOATING_INNER)},n.createElement("div",null,h),n.createElement("div",null,n.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),d.getWindow()&&d.getWindow().focus()}},_)),n.createElement("div",null,n.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),e.doAction(o.default.unFloatTab(d.getId()))}},f))))}},function(t,e,i){"use strict";var n;i.r(e),i.d(e,"v1",(function(){return p})),i.d(e,"v3",(function(){return L})),i.d(e,"v4",(function(){return O})),i.d(e,"v5",(function(){return N})),i.d(e,"NIL",(function(){return w})),i.d(e,"version",(function(){return B})),i.d(e,"validate",(function(){return s})),i.d(e,"stringify",(function(){return h})),i.d(e,"parse",(function(){return g}));var o=new Uint8Array(16);function r(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)}var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var s=function(t){return"string"==typeof t&&a.test(t)},d=[],l=0;l<256;++l)d.push((l+256).toString(16).substr(1));var u,c,h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(d[t[e+0]]+d[t[e+1]]+d[t[e+2]]+d[t[e+3]]+"-"+d[t[e+4]]+d[t[e+5]]+"-"+d[t[e+6]]+d[t[e+7]]+"-"+d[t[e+8]]+d[t[e+9]]+"-"+d[t[e+10]]+d[t[e+11]]+d[t[e+12]]+d[t[e+13]]+d[t[e+14]]+d[t[e+15]]).toLowerCase();if(!s(i))throw TypeError("Stringified UUID is invalid");return i},_=0,f=0;var p=function(t,e,i){var n=e&&i||0,o=e||new Array(16),a=(t=t||{}).node||u,s=void 0!==t.clockseq?t.clockseq:c;if(null==a||null==s){var d=t.random||(t.rng||r)();null==a&&(a=u=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==s&&(s=c=16383&(d[6]<<8|d[7]))}var l=void 0!==t.msecs?t.msecs:Date.now(),p=void 0!==t.nsecs?t.nsecs:f+1,g=l-_+(p-f)/1e4;if(g<0&&void 0===t.clockseq&&(s=s+1&16383),(g<0||l>_)&&void 0===t.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_=l,f=p,c=s;var T=(1e4*(268435455&(l+=122192928e5))+p)%4294967296;o[n++]=T>>>24&255,o[n++]=T>>>16&255,o[n++]=T>>>8&255,o[n++]=255&T;var v=l/4294967296*1e4&268435455;o[n++]=v>>>8&255,o[n++]=255&v,o[n++]=v>>>24&15|16,o[n++]=v>>>16&255,o[n++]=s>>>8|128,o[n++]=255&s;for(var y=0;y<6;++y)o[n+y]=a[y];return e||h(o)};var g=function(t){if(!s(t))throw TypeError("Invalid UUID");var e,i=new Uint8Array(16);return i[0]=(e=parseInt(t.slice(0,8),16))>>>24,i[1]=e>>>16&255,i[2]=e>>>8&255,i[3]=255&e,i[4]=(e=parseInt(t.slice(9,13),16))>>>8,i[5]=255&e,i[6]=(e=parseInt(t.slice(14,18),16))>>>8,i[7]=255&e,i[8]=(e=parseInt(t.slice(19,23),16))>>>8,i[9]=255&e,i[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,i[11]=e/4294967296&255,i[12]=e>>>24&255,i[13]=e>>>16&255,i[14]=e>>>8&255,i[15]=255&e,i};var T=function(t,e,i){function n(t,n,o,r){if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));for(var e=[],i=0;i<t.length;++i)e.push(t.charCodeAt(i));return e}(t)),"string"==typeof n&&(n=g(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+t.length);if(a.set(n),a.set(t,n.length),(a=i(a))[6]=15&a[6]|e,a[8]=63&a[8]|128,o){r=r||0;for(var s=0;s<16;++s)o[r+s]=a[s];return o}return h(a)}try{n.name=t}catch(t){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n};function v(t){return 14+(t+64>>>9<<4)+1}function y(t,e){var i=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(i>>16)<<16|65535&i}function b(t,e,i,n,o,r){return y((a=y(y(e,t),y(n,r)))<<(s=o)|a>>>32-s,i);var a,s}function E(t,e,i,n,o,r,a){return b(e&i|~e&n,t,e,o,r,a)}function m(t,e,i,n,o,r,a){return b(e&n|i&~n,t,e,o,r,a)}function S(t,e,i,n,o,r,a){return b(e^i^n,t,e,o,r,a)}function A(t,e,i,n,o,r,a){return b(i^(e|~n),t,e,o,r,a)}var L=T("v3",48,(function(t){if("string"==typeof t){var e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(var i=0;i<e.length;++i)t[i]=e.charCodeAt(i)}return function(t){for(var e=[],i=32*t.length,n=0;n<i;n+=8){var o=t[n>>5]>>>n%32&255,r=parseInt("0123456789abcdef".charAt(o>>>4&15)+"0123456789abcdef".charAt(15&o),16);e.push(r)}return e}(function(t,e){t[e>>5]|=128<<e%32,t[v(e)-1]=e;for(var i=1732584193,n=-271733879,o=-1732584194,r=271733878,a=0;a<t.length;a+=16){var s=i,d=n,l=o,u=r;i=E(i,n,o,r,t[a],7,-680876936),r=E(r,i,n,o,t[a+1],12,-389564586),o=E(o,r,i,n,t[a+2],17,606105819),n=E(n,o,r,i,t[a+3],22,-1044525330),i=E(i,n,o,r,t[a+4],7,-176418897),r=E(r,i,n,o,t[a+5],12,1200080426),o=E(o,r,i,n,t[a+6],17,-1473231341),n=E(n,o,r,i,t[a+7],22,-45705983),i=E(i,n,o,r,t[a+8],7,1770035416),r=E(r,i,n,o,t[a+9],12,-1958414417),o=E(o,r,i,n,t[a+10],17,-42063),n=E(n,o,r,i,t[a+11],22,-1990404162),i=E(i,n,o,r,t[a+12],7,1804603682),r=E(r,i,n,o,t[a+13],12,-40341101),o=E(o,r,i,n,t[a+14],17,-1502002290),n=E(n,o,r,i,t[a+15],22,1236535329),i=m(i,n,o,r,t[a+1],5,-165796510),r=m(r,i,n,o,t[a+6],9,-1069501632),o=m(o,r,i,n,t[a+11],14,643717713),n=m(n,o,r,i,t[a],20,-373897302),i=m(i,n,o,r,t[a+5],5,-701558691),r=m(r,i,n,o,t[a+10],9,38016083),o=m(o,r,i,n,t[a+15],14,-660478335),n=m(n,o,r,i,t[a+4],20,-405537848),i=m(i,n,o,r,t[a+9],5,568446438),r=m(r,i,n,o,t[a+14],9,-1019803690),o=m(o,r,i,n,t[a+3],14,-187363961),n=m(n,o,r,i,t[a+8],20,1163531501),i=m(i,n,o,r,t[a+13],5,-1444681467),r=m(r,i,n,o,t[a+2],9,-51403784),o=m(o,r,i,n,t[a+7],14,1735328473),n=m(n,o,r,i,t[a+12],20,-1926607734),i=S(i,n,o,r,t[a+5],4,-378558),r=S(r,i,n,o,t[a+8],11,-2022574463),o=S(o,r,i,n,t[a+11],16,1839030562),n=S(n,o,r,i,t[a+14],23,-35309556),i=S(i,n,o,r,t[a+1],4,-1530992060),r=S(r,i,n,o,t[a+4],11,1272893353),o=S(o,r,i,n,t[a+7],16,-155497632),n=S(n,o,r,i,t[a+10],23,-1094730640),i=S(i,n,o,r,t[a+13],4,681279174),r=S(r,i,n,o,t[a],11,-358537222),o=S(o,r,i,n,t[a+3],16,-722521979),n=S(n,o,r,i,t[a+6],23,76029189),i=S(i,n,o,r,t[a+9],4,-640364487),r=S(r,i,n,o,t[a+12],11,-421815835),o=S(o,r,i,n,t[a+15],16,530742520),n=S(n,o,r,i,t[a+2],23,-995338651),i=A(i,n,o,r,t[a],6,-198630844),r=A(r,i,n,o,t[a+7],10,1126891415),o=A(o,r,i,n,t[a+14],15,-1416354905),n=A(n,o,r,i,t[a+5],21,-57434055),i=A(i,n,o,r,t[a+12],6,1700485571),r=A(r,i,n,o,t[a+3],10,-1894986606),o=A(o,r,i,n,t[a+10],15,-1051523),n=A(n,o,r,i,t[a+1],21,-2054922799),i=A(i,n,o,r,t[a+8],6,1873313359),r=A(r,i,n,o,t[a+15],10,-30611744),o=A(o,r,i,n,t[a+6],15,-1560198380),n=A(n,o,r,i,t[a+13],21,1309151649),i=A(i,n,o,r,t[a+4],6,-145523070),r=A(r,i,n,o,t[a+11],10,-1120210379),o=A(o,r,i,n,t[a+2],15,718787259),n=A(n,o,r,i,t[a+9],21,-343485551),i=y(i,s),n=y(n,d),o=y(o,l),r=y(r,u)}return[i,n,o,r]}(function(t){if(0===t.length)return[];for(var e=8*t.length,i=new Uint32Array(v(e)),n=0;n<e;n+=8)i[n>>5]|=(255&t[n/8])<<n%32;return i}(t),8*t.length))}));var O=function(t,e,i){var n=(t=t||{}).random||(t.rng||r)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){i=i||0;for(var o=0;o<16;++o)e[i+o]=n[o];return e}return h(n)};function R(t,e,i,n){switch(t){case 0:return e&i^~e&n;case 1:return e^i^n;case 2:return e&i^e&n^i&n;case 3:return e^i^n}}function D(t,e){return t<<e|t>>>32-e}var N=T("v5",80,(function(t){var e=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var n=unescape(encodeURIComponent(t));t=[];for(var o=0;o<n.length;++o)t.push(n.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var r=t.length/4+2,a=Math.ceil(r/16),s=new Array(a),d=0;d<a;++d){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=t[64*d+4*u]<<24|t[64*d+4*u+1]<<16|t[64*d+4*u+2]<<8|t[64*d+4*u+3];s[d]=l}s[a-1][14]=8*(t.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(t.length-1)&4294967295;for(var c=0;c<a;++c){for(var h=new Uint32Array(80),_=0;_<16;++_)h[_]=s[c][_];for(var f=16;f<80;++f)h[f]=D(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var p=i[0],g=i[1],T=i[2],v=i[3],y=i[4],b=0;b<80;++b){var E=Math.floor(b/20),m=D(p,5)+R(E,g,T,v)+y+e[E]+h[b]>>>0;y=v,v=T,T=D(g,30)>>>0,g=p,p=m}i[0]=i[0]+p>>>0,i[1]=i[1]+g>>>0,i[2]=i[2]+T>>>0,i[3]=i[3]+v>>>0,i[4]=i[4]+y>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]})),w="00000000-0000-0000-0000-000000000000";var B=function(t){if(!s(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}}])}));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.FlexLayout=e(require("react"),require("react-dom")):t.FlexLayout=e(t.React,t.ReactDOM)}(window,(function(t,e){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=12)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CLASSES=void 0,function(t){t.FLEXLAYOUT__BORDER="flexlayout__border",t.FLEXLAYOUT__BORDER_="flexlayout__border_",t.FLEXLAYOUT__BORDER_BUTTON="flexlayout__border_button",t.FLEXLAYOUT__BORDER_BUTTON_="flexlayout__border_button_",t.FLEXLAYOUT__BORDER_BUTTON_CONTENT="flexlayout__border_button_content",t.FLEXLAYOUT__BORDER_BUTTON_LEADING="flexlayout__border_button_leading",t.FLEXLAYOUT__BORDER_BUTTON_TRAILING="flexlayout__border_button_trailing",t.FLEXLAYOUT__BORDER_BUTTON__SELECTED="flexlayout__border_button--selected",t.FLEXLAYOUT__BORDER_BUTTON__UNSELECTED="flexlayout__border_button--unselected",t.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW="flexlayout__border_toolbar_button_overflow",t.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW_="flexlayout__border_toolbar_button_overflow_",t.FLEXLAYOUT__BORDER_INNER="flexlayout__border_inner",t.FLEXLAYOUT__BORDER_INNER_="flexlayout__border_inner_",t.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER="flexlayout__border_inner_tab_container",t.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER_="flexlayout__border_inner_tab_container_",t.FLEXLAYOUT__BORDER_SIZER="flexlayout__border_sizer",t.FLEXLAYOUT__BORDER_TOOLBAR="flexlayout__border_toolbar",t.FLEXLAYOUT__BORDER_TOOLBAR_="flexlayout__border_toolbar_",t.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON="flexlayout__border_toolbar_button",t.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_FLOAT="flexlayout__border_toolbar_button-float",t.FLEXLAYOUT__DRAG_RECT="flexlayout__drag_rect",t.FLEXLAYOUT__EDGE_RECT="flexlayout__edge_rect",t.FLEXLAYOUT__ERROR_BOUNDARY_CONTAINER="flexlayout__error_boundary_container",t.FLEXLAYOUT__ERROR_BOUNDARY_CONTENT="flexlayout__error_boundary_content",t.FLEXLAYOUT__FLOATING_WINDOW_CONTENT="flexlayout__floating_window_content",t.FLEXLAYOUT__FLOATING_WINDOW_TAB="flexlayout__floating_window_tab",t.FLEXLAYOUT__LAYOUT="flexlayout__layout",t.FLEXLAYOUT__OUTLINE_RECT="flexlayout__outline_rect",t.FLEXLAYOUT__OUTLINE_RECT_EDGE="flexlayout__outline_rect_edge",t.FLEXLAYOUT__SPLITTER="flexlayout__splitter",t.FLEXLAYOUT__SPLITTER_EXTRA="flexlayout__splitter_extra",t.FLEXLAYOUT__SPLITTER_="flexlayout__splitter_",t.FLEXLAYOUT__SPLITTER_BORDER="flexlayout__splitter_border",t.FLEXLAYOUT__SPLITTER_DRAG="flexlayout__splitter_drag",t.FLEXLAYOUT__TAB="flexlayout__tab",t.FLEXLAYOUT__TABSET="flexlayout__tabset",t.FLEXLAYOUT__TABSET_HEADER="flexlayout__tabset_header",t.FLEXLAYOUT__TABSET_HEADER_SIZER="flexlayout__tabset_header_sizer",t.FLEXLAYOUT__TABSET_HEADER_CONTENT="flexlayout__tabset_header_content",t.FLEXLAYOUT__TABSET_MAXIMIZED="flexlayout__tabset-maximized",t.FLEXLAYOUT__TABSET_SELECTED="flexlayout__tabset-selected",t.FLEXLAYOUT__TABSET_SIZER="flexlayout__tabset_sizer",t.FLEXLAYOUT__TABSET_TABBAR_INNER="flexlayout__tabset_tabbar_inner",t.FLEXLAYOUT__TABSET_TABBAR_INNER_="flexlayout__tabset_tabbar_inner_",t.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER="flexlayout__tabset_tabbar_inner_tab_container",t.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER_="flexlayout__tabset_tabbar_inner_tab_container_",t.FLEXLAYOUT__TABSET_TABBAR_OUTER="flexlayout__tabset_tabbar_outer",t.FLEXLAYOUT__TABSET_TABBAR_OUTER_="flexlayout__tabset_tabbar_outer_",t.FLEXLAYOUT__TAB_BORDER="flexlayout__tab_border",t.FLEXLAYOUT__TAB_BORDER_="flexlayout__tab_border_",t.FLEXLAYOUT__TAB_BUTTON="flexlayout__tab_button",t.FLEXLAYOUT__TAB_BUTTON_CONTENT="flexlayout__tab_button_content",t.FLEXLAYOUT__TAB_BUTTON_LEADING="flexlayout__tab_button_leading",t.FLEXLAYOUT__TAB_BUTTON_OVERFLOW="flexlayout__tab_button_overflow",t.FLEXLAYOUT__TAB_BUTTON_TEXTBOX="flexlayout__tab_button_textbox",t.FLEXLAYOUT__TAB_BUTTON_TRAILING="flexlayout__tab_button_trailing",t.FLEXLAYOUT__TAB_FLOATING="flexlayout__tab_floating",t.FLEXLAYOUT__TAB_FLOATING_INNER="flexlayout__tab_floating_inner",t.FLEXLAYOUT__TAB_TOOLBAR="flexlayout__tab_toolbar",t.FLEXLAYOUT__TAB_TOOLBAR_BUTTON="flexlayout__tab_toolbar_button",t.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_="flexlayout__tab_toolbar_button-",t.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_FLOAT="flexlayout__tab_toolbar_button-float",t.FLEXLAYOUT__TAB_TOOLBAR_STICKY_BUTTONS_CONTAINER="flexlayout__tab_toolbar_sticky_buttons_container",t.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_CLOSE="flexlayout__tab_toolbar_button-close",t.FLEXLAYOUT__POPUP_MENU_CONTAINER="flexlayout__popup_menu_container",t.FLEXLAYOUT__POPUP_MENU_ITEM="flexlayout__popup_menu_item",t.FLEXLAYOUT__POPUP_MENU="flexlayout__popup_menu"}(e.CLASSES||(e.CLASSES={}))},function(e,i){e.exports=t},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){this._name=t}return t.flip=function(e){return e===t.HORZ?t.VERT:t.HORZ},t.prototype.getName=function(){return this._name},t.prototype.toString=function(){return this._name},t.HORZ=new t("horz"),t.VERT=new t("vert"),t}();e.default=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),o=function(){function t(t,e,i,n){this.x=t,this.y=e,this.width=i,this.height=n}return t.empty=function(){return new t(0,0,0,0)},t.fromElement=function(e){var i=e.getBoundingClientRect();return new t(i.x,i.y,i.width,i.height)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.equals=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.getBottom=function(){return this.y+this.height},t.prototype.getRight=function(){return this.x+this.width},t.prototype.getCenter=function(){return{x:this.x+this.width/2,y:this.y+this.height/2}},t.prototype.positionElement=function(t,e){this.styleWithPosition(t.style,e)},t.prototype.styleWithPosition=function(t,e){return void 0===e&&(e="absolute"),t.left=this.x+"px",t.top=this.y+"px",t.width=Math.max(0,this.width)+"px",t.height=Math.max(0,this.height)+"px",t.position=e,t},t.prototype.contains=function(t,e){return this.x<=t&&t<=this.getRight()&&this.y<=e&&e<=this.getBottom()},t.prototype.removeInsets=function(e){return new t(this.x+e.left,this.y+e.top,Math.max(0,this.width-e.left-e.right),Math.max(0,this.height-e.top-e.bottom))},t.prototype.centerInRect=function(t){this.x=(t.width-this.width)/2,this.y=(t.height-this.height)/2},t.prototype._getSize=function(t){var e=this.width;return t===n.default.VERT&&(e=this.height),e},t.prototype.toString=function(){return"(Rect: x="+this.x+", y="+this.y+", width="+this.width+", height="+this.height+")"},t}();e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(21),o=function(){function t(){}return t.addNode=function(e,i,o,r,a){return new n.default(t.ADD_NODE,{json:e,toNode:i,location:o.getName(),index:r,select:a})},t.moveNode=function(e,i,o,r,a){return new n.default(t.MOVE_NODE,{fromNode:e,toNode:i,location:o.getName(),index:r,select:a})},t.deleteTab=function(e){return new n.default(t.DELETE_TAB,{node:e})},t.deleteTabset=function(e){return new n.default(t.DELETE_TABSET,{node:e})},t.renameTab=function(e,i){return new n.default(t.RENAME_TAB,{node:e,text:i})},t.selectTab=function(e){return new n.default(t.SELECT_TAB,{tabNode:e})},t.setActiveTabset=function(e){return new n.default(t.SET_ACTIVE_TABSET,{tabsetNode:e})},t.adjustSplit=function(e){var i=e.node1Id,o=e.node2Id;return new n.default(t.ADJUST_SPLIT,{node1:i,weight1:e.weight1,pixelWidth1:e.pixelWidth1,node2:o,weight2:e.weight2,pixelWidth2:e.pixelWidth2})},t.adjustBorderSplit=function(e,i){return new n.default(t.ADJUST_BORDER_SPLIT,{node:e,pos:i})},t.maximizeToggle=function(e){return new n.default(t.MAXIMIZE_TOGGLE,{node:e})},t.updateModelAttributes=function(e){return new n.default(t.UPDATE_MODEL_ATTRIBUTES,{json:e})},t.updateNodeAttributes=function(e,i){return new n.default(t.UPDATE_NODE_ATTRIBUTES,{node:e,json:i})},t.floatTab=function(e){return new n.default(t.FLOAT_TAB,{node:e})},t.unFloatTab=function(e){return new n.default(t.UNFLOAT_TAB,{node:e})},t.ADD_NODE="FlexLayout_AddNode",t.MOVE_NODE="FlexLayout_MoveNode",t.DELETE_TAB="FlexLayout_DeleteTab",t.DELETE_TABSET="FlexLayout_DeleteTabset",t.RENAME_TAB="FlexLayout_RenameTab",t.SELECT_TAB="FlexLayout_SelectTab",t.SET_ACTIVE_TABSET="FlexLayout_SetActiveTabset",t.ADJUST_SPLIT="FlexLayout_AdjustSplit",t.ADJUST_BORDER_SPLIT="FlexLayout_AdjustBorderSplit",t.MAXIMIZE_TOGGLE="FlexLayout_MaximizeToggle",t.UPDATE_MODEL_ATTRIBUTES="FlexLayout_UpdateModelAttributes",t.UPDATE_NODE_ATTRIBUTES="FlexLayout_UpdateNodeAttributes",t.FLOAT_TAB="FlexLayout_FloatTab",t.UNFLOAT_TAB="FlexLayout_UnFloatTab",t}();e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),o=i(3),r=function(){function t(e,i,n){this._name=e,this._orientation=i,this._indexPlus=n,t.values[this._name]=this}return t.getByName=function(e){return t.values[e]},t.getLocation=function(e,i,n){if(i=(i-e.x)/e.width,n=(n-e.y)/e.height,i>=.25&&i<.75&&n>=.25&&n<.75)return t.CENTER;var o=n>=1-i;return n>=i?o?t.BOTTOM:t.LEFT:o?t.RIGHT:t.TOP},t.prototype.getName=function(){return this._name},t.prototype.getOrientation=function(){return this._orientation},t.prototype.getDockRect=function(e){return this===t.TOP?new o.default(e.x,e.y,e.width,e.height/2):this===t.BOTTOM?new o.default(e.x,e.getBottom()-e.height/2,e.width,e.height/2):this===t.LEFT?new o.default(e.x,e.y,e.width/2,e.height):this===t.RIGHT?new o.default(e.getRight()-e.width/2,e.y,e.width/2,e.height):e.clone()},t.prototype.split=function(e,i){return this===t.TOP?{start:new o.default(e.x,e.y,e.width,i),end:new o.default(e.x,e.y+i,e.width,e.height-i)}:this===t.LEFT?{start:new o.default(e.x,e.y,i,e.height),end:new o.default(e.x+i,e.y,e.width-i,e.height)}:this===t.RIGHT?{start:new o.default(e.getRight()-i,e.y,i,e.height),end:new o.default(e.x,e.y,e.width-i,e.height)}:{start:new o.default(e.x,e.getBottom()-i,e.width,i),end:new o.default(e.x,e.y,e.width,e.height-i)}},t.prototype.reflect=function(){return this===t.TOP?t.BOTTOM:this===t.LEFT?t.RIGHT:this===t.RIGHT?t.LEFT:t.TOP},t.prototype.toString=function(){return"(DockLocation: name="+this._name+", orientation="+this._orientation+")"},t.values={},t.TOP=new t("top",n.default.VERT,0),t.BOTTOM=new t("bottom",n.default.VERT,1),t.LEFT=new t("left",n.default.HORZ,0),t.RIGHT=new t("right",n.default.HORZ,1),t.CENTER=new t("center",n.default.VERT,0),t}();e.default=r},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=i(9),a=i(10),s=i(5),d=i(14),l=i(2),u=i(3),c=i(0),h=i(11),_=i(19),f=i(13),p=i(18),g=function(t){function e(i,n){var o=t.call(this,i)||this;return e._attributeDefinitions.fromJson(n,o._attributes),i._addNode(o),o.calculatedTabBarHeight=0,o.calculatedHeaderBarHeight=0,o}return o(e,t),e._fromJson=function(t,i){var n=new e(i,t);return null!=t.children&&t.children.forEach((function(t){var e=f.default._fromJson(t,i);n._addChild(e)})),0===n._children.length&&n._setSelected(-1),t.maximized&&!0===t.maximized&&i._setMaximizedTabset(n),t.active&&!0===t.active&&i._setActiveTabset(n),n},e._createAttributeDefinitions=function(){var t=new a.default;return t.add("type",e.TYPE,!0).setType(r.default.STRING).setFixed(),t.add("id",void 0).setType(r.default.STRING),t.add("weight",100).setType(r.default.NUMBER),t.add("width",void 0).setType(r.default.NUMBER),t.add("height",void 0).setType(r.default.NUMBER),t.add("selected",0).setType(r.default.NUMBER),t.add("name",void 0).setType(r.default.STRING),t.add("config",void 0).setType("any"),t.addInherited("enableDeleteWhenEmpty","tabSetEnableDeleteWhenEmpty"),t.addInherited("enableDrop","tabSetEnableDrop"),t.addInherited("enableDrag","tabSetEnableDrag"),t.addInherited("enableDivide","tabSetEnableDivide"),t.addInherited("enableMaximize","tabSetEnableMaximize"),t.addInherited("enableClose","tabSetEnableClose"),t.addInherited("classNameTabStrip","tabSetClassNameTabStrip"),t.addInherited("classNameHeader","tabSetClassNameHeader"),t.addInherited("enableTabStrip","tabSetEnableTabStrip"),t.addInherited("borderInsets","tabSetBorderInsets"),t.addInherited("marginInsets","tabSetMarginInsets"),t.addInherited("minWidth","tabSetMinWidth"),t.addInherited("minHeight","tabSetMinHeight"),t.addInherited("headerHeight","tabSetHeaderHeight"),t.addInherited("tabStripHeight","tabSetTabStripHeight"),t.addInherited("tabLocation","tabSetTabLocation"),t.addInherited("autoSelectTab","tabSetAutoSelectTab").setType(r.default.BOOLEAN),t},e.prototype.getName=function(){return this._getAttr("name")},e.prototype.getSelected=function(){var t=this._attributes.selected;return void 0!==t?t:-1},e.prototype.getSelectedNode=function(){var t=this.getSelected();if(-1!==t)return this._children[t]},e.prototype.getWeight=function(){return this._getAttr("weight")},e.prototype.getWidth=function(){return this._getAttr("width")},e.prototype.getMinWidth=function(){return this._getAttr("minWidth")},e.prototype.getHeight=function(){return this._getAttr("height")},e.prototype.getMinHeight=function(){return this._getAttr("minHeight")},e.prototype.getMinSize=function(t){return t===l.default.HORZ?this.getMinWidth():this.getMinHeight()},e.prototype.getConfig=function(){return this._attributes.config},e.prototype.isMaximized=function(){return this._model.getMaximizedTabset()===this},e.prototype.isActive=function(){return this._model.getActiveTabset()===this},e.prototype.isEnableDeleteWhenEmpty=function(){return this._getAttr("enableDeleteWhenEmpty")},e.prototype.isEnableDrop=function(){return this._getAttr("enableDrop")},e.prototype.isEnableDrag=function(){return this._getAttr("enableDrag")},e.prototype.isEnableDivide=function(){return this._getAttr("enableDivide")},e.prototype.isEnableMaximize=function(){return this._getAttr("enableMaximize")},e.prototype.isEnableClose=function(){return this._getAttr("enableClose")},e.prototype.canMaximize=function(){return!!this.isEnableMaximize()&&(this.getModel().getMaximizedTabset()===this||(this.getParent()!==this.getModel().getRoot()||1!==this.getModel().getRoot().getChildren().length))},e.prototype.isEnableTabStrip=function(){return this._getAttr("enableTabStrip")},e.prototype.isAutoSelectTab=function(){return this._getAttr("autoSelectTab")},e.prototype.getClassNameTabStrip=function(){return this._getAttr("classNameTabStrip")},e.prototype.getClassNameHeader=function(){return this._getAttr("classNameHeader")},e.prototype.calculateHeaderBarHeight=function(t){var e=this._getAttr("headerHeight");this.calculatedHeaderBarHeight=0!==e?e:t.headerBarSize},e.prototype.calculateTabBarHeight=function(t){var e=this._getAttr("tabStripHeight");this.calculatedTabBarHeight=0!==e?e:t.tabBarSize},e.prototype.getHeaderHeight=function(){return this.calculatedHeaderBarHeight},e.prototype.getTabStripHeight=function(){return this.calculatedTabBarHeight},e.prototype.getTabLocation=function(){return this._getAttr("tabLocation")},e.prototype._setWeight=function(t){this._attributes.weight=t},e.prototype._setSelected=function(t){this._attributes.selected=t},e.prototype.canDrop=function(t,e,i){var n;if(t===this){var o=s.default.CENTER,r=this._tabHeaderRect;n=new d.default(this,r,o,-1,c.CLASSES.FLEXLAYOUT__OUTLINE_RECT)}else if(this._contentRect.contains(e,i)){r=(o=s.default.getLocation(this._contentRect,e,i)).getDockRect(this._rect);n=new d.default(this,r,o,-1,c.CLASSES.FLEXLAYOUT__OUTLINE_RECT)}else if(null!=this._tabHeaderRect&&this._tabHeaderRect.contains(e,i)){var a=void 0,l=void 0,h=void 0;if(0===this._children.length)l=(a=this._tabHeaderRect.clone()).y+3,h=a.height-4,a.width=2;else{var _=this._children[0];l=(a=_.getTabRect()).y,h=a.height;for(var f=this._tabHeaderRect.x,p=0,g=0;g<this._children.length;g++){if(p=(a=(_=this._children[g]).getTabRect()).x+a.width/2,e>=f&&e<p){o=s.default.CENTER,r=new u.default(a.x-2,l,3,h);n=new d.default(this,r,o,g,c.CLASSES.FLEXLAYOUT__OUTLINE_RECT);break}f=p}}if(null==n){o=s.default.CENTER,r=new u.default(a.getRight()-2,l,3,h);n=new d.default(this,r,o,this._children.length,c.CLASSES.FLEXLAYOUT__OUTLINE_RECT)}}if(t._canDockInto(t,n))return n},e.prototype._layout=function(t,e){var i=this;this.calculateHeaderBarHeight(e),this.calculateTabBarHeight(e),this.isMaximized()&&(t=this._model.getRoot().getRect()),t=t.removeInsets(this._getAttr("marginInsets")),this._rect=t,t=t.removeInsets(this._getAttr("borderInsets"));var n=0,o=0;void 0!==this.getName()&&(n+=this.calculatedHeaderBarHeight,o+=this.calculatedHeaderBarHeight),this.isEnableTabStrip()&&("top"===this.getTabLocation()?this._tabHeaderRect=new u.default(t.x,t.y+n,t.width,this.calculatedTabBarHeight):this._tabHeaderRect=new u.default(t.x,t.y+t.height-this.calculatedTabBarHeight,t.width,this.calculatedTabBarHeight),o+=this.calculatedTabBarHeight,"top"===this.getTabLocation()&&(n+=this.calculatedTabBarHeight)),this._contentRect=new u.default(t.x,t.y+n,t.width,t.height-o),this._children.forEach((function(t,n){t._layout(i._contentRect,e),t._setVisible(n===i.getSelected())}))},e.prototype._delete=function(){this._parent._removeChild(this)},e.prototype._remove=function(t){var e=this._removeChild(t);this._model._tidy(),p.adjustSelectedIndex(this,e)},e.prototype.drop=function(t,i,n,o){var r=this,a=i;if(this!==t){var d=t.getParent(),l=0;if(void 0!==d&&(l=d._removeChild(t),p.adjustSelectedIndex(d,l)),t.getType()===f.default.TYPE&&d===this&&l<n&&n>0&&n--,a===s.default.CENTER){var u=n;-1===u&&(u=this._children.length),t.getType()===f.default.TYPE?(this._addChild(t,u),(o||!1!==o&&this.isAutoSelectTab())&&this._setSelected(u)):t.getChildren().forEach((function(t,e){r._addChild(t,u),u++})),this._model._setActiveTabset(this)}else{var c=void 0;if(t instanceof f.default){var h=this._model._getOnCreateTabSet();(c=new e(this._model,h?h(t):{}))._addChild(t),d=c}else c=t;var g=this._parent,T=g.getChildren().indexOf(this);if(g.getOrientation()===a._orientation)c._setWeight(this.getWeight()/2),this._setWeight(this.getWeight()/2),g._addChild(c,T+a._indexPlus);else{var v=new _.default(this._model,{});v._setWeight(this.getWeight()),v._addChild(this),this._setWeight(50),c._setWeight(50),v._addChild(c,a._indexPlus),g._removeChild(this),g._addChild(v,T)}this._model._setActiveTabset(c)}this._model._tidy()}},e.prototype.toJson=function(){var t={};return e._attributeDefinitions.toJson(t,this._attributes),t.children=this._children.map((function(t){return t.toJson()})),this.isActive()&&(t.active=!0),this.isMaximized()&&(t.maximized=!0),t},e.prototype._updateAttrs=function(t){e._attributeDefinitions.update(t,this._attributes)},e.prototype._getAttributeDefinitions=function(){return e._attributeDefinitions},e.prototype._getPrefSize=function(t){var e=this.getWidth();return t===l.default.VERT&&(e=this.getHeight()),e},e.getAttributeDefinitions=function(){return e._attributeDefinitions},e.TYPE="tabset",e._attributeDefinitions=e._createAttributeDefinitions(),e}(h.default);e.default=g},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.I18nLabel=void 0,function(t){t.Close_Tab="Close",t.Close_Tabset="Close tabset",t.Move_Tab="Move: ",t.Move_Tabset="Move tabset",t.Maximize="Maximize tabset",t.Restore="Restore tabset",t.Float_Tab="Show selected tab in floating window",t.Overflow_Menu_Tooltip="Hidden tabs",t.Floating_Window_Message="This panel is shown in a floating window",t.Floating_Window_Show_Window="Show window",t.Floating_Window_Dock_Window="Dock window",t.Error_rendering_component="Error rendering component"}(e.I18nLabel||(e.I18nLabel={}))},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=i(9),a=i(10),s=i(5),d=i(14),l=i(2),u=i(3),c=i(0),h=i(11),_=i(15),f=i(13),p=i(18),g=function(t){function e(i,n,o){var r=t.call(this,o)||this;return r._adjustedSize=0,r._calculatedBorderBarSize=0,r._location=i,r._drawChildren=[],r._attributes.id="border_"+i.getName(),e._attributeDefinitions.fromJson(n,r._attributes),o._addNode(r),r}return o(e,t),e._fromJson=function(t,i){var n=new e(s.default.getByName(t.location),t,i);return t.children&&(n._children=t.children.map((function(t){var e=f.default._fromJson(t,i);return e._setParent(n),e}))),n},e._createAttributeDefinitions=function(){var t=new a.default;return t.add("type",e.TYPE,!0).setType(r.default.STRING).setFixed(),t.add("selected",-1).setType(r.default.NUMBER),t.add("show",!0).setType(r.default.BOOLEAN),t.add("config",void 0).setType("any"),t.addInherited("barSize","borderBarSize").setType(r.default.NUMBER),t.addInherited("enableDrop","borderEnableDrop").setType(r.default.BOOLEAN),t.addInherited("className","borderClassName").setType(r.default.STRING),t.addInherited("autoSelectTabWhenOpen","borderAutoSelectTabWhenOpen").setType(r.default.BOOLEAN),t.addInherited("autoSelectTabWhenClosed","borderAutoSelectTabWhenClosed").setType(r.default.BOOLEAN),t.addInherited("size","borderSize").setType(r.default.NUMBER),t.addInherited("minSize","borderMinSize").setType(r.default.NUMBER),t.addInherited("enableAutoHide","borderEnableAutoHide").setType(r.default.BOOLEAN),t},e.prototype.getLocation=function(){return this._location},e.prototype.getTabHeaderRect=function(){return this._tabHeaderRect},e.prototype.getRect=function(){return this._tabHeaderRect},e.prototype.getContentRect=function(){return this._contentRect},e.prototype.isEnableDrop=function(){return this._getAttr("enableDrop")},e.prototype.isAutoSelectTab=function(t){return null==t&&(t=-1!==this.getSelected()),t?this._getAttr("autoSelectTabWhenOpen"):this._getAttr("autoSelectTabWhenClosed")},e.prototype.getClassName=function(){return this._getAttr("className")},e.prototype.calcBorderBarSize=function(t){var e=this._getAttr("barSize");this._calculatedBorderBarSize=0!==e?e:t.borderBarSize},e.prototype.getBorderBarSize=function(){return this._calculatedBorderBarSize},e.prototype.getSize=function(){var t=this._getAttr("size"),e=this.getSelected();if(-1===e)return t;var i=this._children[e],n=this._location._orientation===l.default.HORZ?i._getAttr("borderWidth"):i._getAttr("borderHeight");return-1===n?t:n},e.prototype.getMinSize=function(){return this._getAttr("minSize")},e.prototype.getSelected=function(){return this._attributes.selected},e.prototype.getSelectedNode=function(){if(-1!==this.getSelected())return this._children[this.getSelected()]},e.prototype.getOrientation=function(){return this._location.getOrientation()},e.prototype.getConfig=function(){return this._attributes.config},e.prototype.isMaximized=function(){return!1},e.prototype.isShowing=function(){return!!this._attributes.show&&(this._model._getShowHiddenBorder()===this._location||!this.isAutoHide()||0!==this._children.length)},e.prototype.isAutoHide=function(){return this._getAttr("enableAutoHide")},e.prototype._setSelected=function(t){this._attributes.selected=t},e.prototype._setSize=function(t){var e=this.getSelected();if(-1===e)this._attributes.size=t;else{var i=this._children[e];-1===(this._location._orientation===l.default.HORZ?i._getAttr("borderWidth"):i._getAttr("borderHeight"))?this._attributes.size=t:this._location._orientation===l.default.HORZ?i._setBorderWidth(t):i._setBorderHeight(t)}},e.prototype._updateAttrs=function(t){e._attributeDefinitions.update(t,this._attributes)},e.prototype._getDrawChildren=function(){return this._drawChildren},e.prototype._setAdjustedSize=function(t){this._adjustedSize=t},e.prototype._getAdjustedSize=function(){return this._adjustedSize},e.prototype._layoutBorderOuter=function(t,e){this.calcBorderBarSize(e);var i=this._location.split(t,this.getBorderBarSize());return this._tabHeaderRect=i.start,i.end},e.prototype._layoutBorderInner=function(t,e){var i=this;this._drawChildren=[];var n=this._location,o=n.split(t,this._adjustedSize+this._model.getSplitterSize()),r=n.reflect().split(o.start,this._model.getSplitterSize());if(this._contentRect=r.end,this._children.forEach((function(t,n){t._layout(i._contentRect,e),t._setVisible(n===i.getSelected()),i._drawChildren.push(t)})),-1===this.getSelected())return t;var a=new _.default(this._model);return a._setParent(this),a._setRect(r.start),this._drawChildren.push(a),o.end},e.prototype._remove=function(t){var e=this._removeChild(t);-1!==this.getSelected()&&p.adjustSelectedIndex(this,e)},e.prototype.canDrop=function(t,e,i){if(t.getType()===f.default.TYPE){var n,o=s.default.CENTER;if(this._tabHeaderRect.contains(e,i)){if(this._location._orientation===l.default.VERT)if(this._children.length>0){for(var r=(T=this._children[0].getTabRect()).y,a=T.height,h=this._tabHeaderRect.x,_=0,p=0;p<this._children.length;p++){if(_=(T=this._children[p].getTabRect()).x+T.width/2,e>=h&&e<_){var g=new u.default(T.x-2,r,3,a);n=new d.default(this,g,o,p,c.CLASSES.FLEXLAYOUT__OUTLINE_RECT);break}h=_}if(null==n){g=new u.default(T.getRight()-2,r,3,a);n=new d.default(this,g,o,this._children.length,c.CLASSES.FLEXLAYOUT__OUTLINE_RECT)}}else{g=new u.default(this._tabHeaderRect.x+1,this._tabHeaderRect.y+2,3,18);n=new d.default(this,g,o,0,c.CLASSES.FLEXLAYOUT__OUTLINE_RECT)}else if(this._children.length>0){var T,v=(T=this._children[0].getTabRect()).x,E=T.width;for(h=this._tabHeaderRect.y,_=0,p=0;p<this._children.length;p++){if(_=(T=this._children[p].getTabRect()).y+T.height/2,i>=h&&i<_){g=new u.default(v,T.y-2,E,3);n=new d.default(this,g,o,p,c.CLASSES.FLEXLAYOUT__OUTLINE_RECT);break}h=_}if(null==n){g=new u.default(v,T.getBottom()-2,E,3);n=new d.default(this,g,o,this._children.length,c.CLASSES.FLEXLAYOUT__OUTLINE_RECT)}}else{g=new u.default(this._tabHeaderRect.x+2,this._tabHeaderRect.y+1,18,3);n=new d.default(this,g,o,0,c.CLASSES.FLEXLAYOUT__OUTLINE_RECT)}if(!t._canDockInto(t,n))return}else if(-1!==this.getSelected()&&this._contentRect.contains(e,i)){g=this._contentRect;if(n=new d.default(this,g,o,-1,c.CLASSES.FLEXLAYOUT__OUTLINE_RECT),!t._canDockInto(t,n))return}return n}},e.prototype.drop=function(t,e,i,n){var o=0,r=t.getParent();void 0!==r&&(o=r._removeChild(t),p.adjustSelectedIndex(r,o)),t.getType()===f.default.TYPE&&r===this&&o<i&&i>0&&i--;var a=i;-1===a&&(a=this._children.length),t.getType()===f.default.TYPE&&this._addChild(t,a),(n||!1!==n&&this.isAutoSelectTab())&&this._setSelected(a),this._model._tidy()},e.prototype.toJson=function(){var t={};return e._attributeDefinitions.toJson(t,this._attributes),t.location=this._location.getName(),t.children=this._children.map((function(t){return t.toJson()})),t},e.prototype._getSplitterBounds=function(t,e){void 0===e&&(e=!1);var i=[0,0],n=e?this.getMinSize():0,o=this._model._getOuterInnerRects().outer,r=this._model._getOuterInnerRects().inner,a=this._model.getRoot();return this._location===s.default.TOP?(i[0]=o.y+n,i[1]=Math.max(i[0],r.getBottom()-t.getHeight()-a.getMinHeight())):this._location===s.default.LEFT?(i[0]=o.x+n,i[1]=Math.max(i[0],r.getRight()-t.getWidth()-a.getMinWidth())):this._location===s.default.BOTTOM?(i[1]=o.getBottom()-t.getHeight()-n,i[0]=Math.min(i[1],r.y+a.getMinHeight())):this._location===s.default.RIGHT&&(i[1]=o.getRight()-t.getWidth()-n,i[0]=Math.min(i[1],r.x+a.getMinWidth())),i},e.prototype._calculateSplit=function(t,e){var i=this._getSplitterBounds(t);return this._location===s.default.BOTTOM||this._location===s.default.RIGHT?Math.max(0,i[1]-e):Math.max(0,e-i[0])},e.prototype._getAttributeDefinitions=function(){return e._attributeDefinitions},e.getAttributeDefinitions=function(){return e._attributeDefinitions},e.TYPE="border",e._attributeDefinitions=e._createAttributeDefinitions(),e}(h.default);e.default=g},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e,i,n){this.name=t,this.modelName=e,this.defaultValue=i,this.alwaysWriteJson=n,this.required=!1,this.fixed=!1,this.type="any"}return t.prototype.setType=function(t){return this.type=t,this},t.prototype.setRequired=function(){return this.required=!0,this},t.prototype.setFixed=function(){return this.fixed=!0,this},t.NUMBER="number",t.STRING="string",t.BOOLEAN="boolean",t}();e.default=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(9),o=function(){function t(){this.attributes=[],this.nameToAttribute={}}return t.prototype.addWithAll=function(t,e,i,o){var r=new n.default(t,e,i,o);return this.attributes.push(r),this.nameToAttribute[t]=r,r},t.prototype.addInherited=function(t,e){return this.addWithAll(t,e,void 0,!1)},t.prototype.add=function(t,e,i){return this.addWithAll(t,void 0,e,i)},t.prototype.getAttributes=function(){return this.attributes},t.prototype.getModelName=function(t){var e=this.nameToAttribute[t];if(void 0!==e)return e.modelName},t.prototype.toJson=function(t,e){this.attributes.forEach((function(i){var n=e[i.name];(i.alwaysWriteJson||n!==i.defaultValue)&&(t[i.name]=n)}))},t.prototype.fromJson=function(t,e){this.attributes.forEach((function(i){var n=t[i.name];e[i.name]=void 0===n?i.defaultValue:n}))},t.prototype.update=function(t,e){this.attributes.forEach((function(i){var n=t[i.name];void 0!==n&&(e[i.name]=n)}))},t.prototype.setDefaults=function(t){this.attributes.forEach((function(e){t[e.name]=e.defaultValue}))},t.prototype.toTypescriptInterface=function(t,e){var i=[],n=this.attributes.sort((function(t,e){return t.name.localeCompare(e.name)}));i.push("export interface I"+t+"Attributes {");for(var o=0;o<n.length;o++){var r=n[o],a=r.type,s=void 0,d=r,l=void 0;void 0!==d.defaultValue?s=d.defaultValue:void 0!==d.modelName&&void 0!==e&&void 0!==e.nameToAttribute[d.modelName]&&(l=d.modelName,s=(d=e.nameToAttribute[d.modelName]).defaultValue,a=d.type);var u=JSON.stringify(s),c=d.required||d.fixed?"":"?";if(r.fixed)i.push("\t"+r.name+": "+u+";");else{var h=(void 0!==s?"default: "+u:"")+(void 0!==l?" - inherited from global "+l:"");i.push("\t"+r.name+c+": "+a+";"+(h.length>0?" // "+h:""))}}return i.push("}"),i.join("\n")},t}();e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(5),o=i(2),r=i(3),a=function(){function t(t){this._dirty=!1,this._tempSize=0,this._model=t,this._attributes={},this._children=[],this._fixed=!1,this._rect=r.default.empty(),this._visible=!1,this._listeners={}}return t.prototype.getId=function(){var t=this._attributes.id;return void 0!==t||(t=this._model._nextUniqueId(),this._setId(t)),t},t.prototype.getModel=function(){return this._model},t.prototype.getType=function(){return this._attributes.type},t.prototype.getParent=function(){return this._parent},t.prototype.getChildren=function(){return this._children},t.prototype.getRect=function(){return this._rect},t.prototype.isVisible=function(){return this._visible},t.prototype.getOrientation=function(){return void 0===this._parent?this._model.isRootOrientationVertical()?o.default.VERT:o.default.HORZ:o.default.flip(this._parent.getOrientation())},t.prototype.setEventListener=function(t,e){this._listeners[t]=e},t.prototype.removeEventListener=function(t){delete this._listeners[t]},t.prototype._setId=function(t){this._attributes.id=t},t.prototype._fireEvent=function(t,e){void 0!==this._listeners[t]&&this._listeners[t](e)},t.prototype._getAttr=function(t){var e=this._attributes[t];if(void 0===e){var i=this._getAttributeDefinitions().getModelName(t);void 0!==i&&(e=this._model._getAttribute(i))}return e},t.prototype._forEachNode=function(t,e){t(this,e),e++,this._children.forEach((function(i){i._forEachNode(t,e)}))},t.prototype._setVisible=function(t){t!==this._visible&&(this._fireEvent("visibility",{visible:t}),this._visible=t)},t.prototype._getDrawChildren=function(){return this._children},t.prototype._setParent=function(t){this._parent=t},t.prototype._setRect=function(t){this._rect=t},t.prototype._setWeight=function(t){this._attributes.weight=t},t.prototype._setSelected=function(t){this._attributes.selected=t},t.prototype._isFixed=function(){return this._fixed},t.prototype._layout=function(t,e){this._rect=t},t.prototype._findDropTargetNode=function(t,e,i){var n;if(this._rect.contains(e,i)&&void 0===(n=this.canDrop(t,e,i))&&0!==this._children.length)for(var o=0,r=this._children;o<r.length;o++){if(void 0!==(n=r[o]._findDropTargetNode(t,e,i)))break}return n},t.prototype.canDrop=function(t,e,i){},t.prototype._canDockInto=function(t,e){if(null!=e){if(e.location===n.default.CENTER&&!1===e.node.isEnableDrop())return!1;if(e.location===n.default.CENTER&&"tabset"===t.getType()&&void 0!==t.getName())return!1;if(e.location!==n.default.CENTER&&!1===e.node.isEnableDivide())return!1;if(this._model._getOnAllowDrop())return this._model._getOnAllowDrop()(t,e)}return!0},t.prototype._removeChild=function(t){var e=this._children.indexOf(t);return-1!==e&&this._children.splice(e,1),this._dirty=!0,e},t.prototype._addChild=function(t,e){return null!=e?this._children.splice(e,0,t):(this._children.push(t),e=this._children.length-1),t._parent=this,this._dirty=!0,e},t.prototype._removeAll=function(){this._children=[],this._dirty=!0},t.prototype._styleWithPosition=function(t){return null==t&&(t={}),this._rect.styleWithPosition(t)},t.prototype._getTempSize=function(){return this._tempSize},t.prototype._setTempSize=function(t){this._tempSize=t},t.prototype.isEnableDivide=function(){return!0},t.prototype._toAttributeString=function(){return JSON.stringify(this._attributes,void 0,"\t")},t}();e.default=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Rect=e.DropInfo=e.DragDrop=e.Orientation=e.DockLocation=e.BorderSet=e.BorderNode=e.TabSetNode=e.TabNode=e.SplitterNode=e.RowNode=e.Node=e.Model=e.Action=e.Actions=e.I18nLabel=e.Layout=void 0;var n=i(5);e.DockLocation=n.default;var o=i(17);e.DragDrop=o.default;var r=i(14);e.DropInfo=r.default;var a=i(7);Object.defineProperty(e,"I18nLabel",{enumerable:!0,get:function(){return a.I18nLabel}});var s=i(21);e.Action=s.default;var d=i(4);e.Actions=d.default;var l=i(8);e.BorderNode=l.default;var u=i(22);e.BorderSet=u.default;var c=i(27);e.Model=c.default;var h=i(11);e.Node=h.default;var _=i(19);e.RowNode=_.default;var f=i(15);e.SplitterNode=f.default;var p=i(13);e.TabNode=p.default;var g=i(6);e.TabSetNode=g.default;var T=i(2);e.Orientation=T.default;var v=i(3);e.Rect=v.default;var E=i(28);e.Layout=E.default,e.default={Layout:E.default,I18nLabel:a.I18nLabel,Actions:d.default,Action:s.default,Model:c.default,Node:h.default,RowNode:_.default,SplitterNode:f.default,TabNode:p.default,TabSetNode:g.default,BorderNode:l.default,BorderSet:u.default,DockLocation:n.default,Orientation:T.default,DragDrop:o.default,DropInfo:r.default,Rect:v.default}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=i(9),a=i(10),s=function(t){function e(i,n,o){void 0===o&&(o=!0);var r=t.call(this,i)||this;return r._extra={},e._attributeDefinitions.fromJson(n,r._attributes),!0===o&&i._addNode(r),r}return o(e,t),e._fromJson=function(t,i,n){return void 0===n&&(n=!0),new e(i,t,n)},e._createAttributeDefinitions=function(){var t=new a.default;return t.add("type",e.TYPE,!0).setType(r.default.STRING),t.add("id",void 0).setType(r.default.STRING),t.add("name","[Unnamed Tab]").setType(r.default.STRING),t.add("helpText",void 0).setType(r.default.STRING),t.add("component",void 0).setType(r.default.STRING),t.add("config",void 0).setType("any"),t.add("floating",!1).setType(r.default.BOOLEAN),t.addInherited("enableClose","tabEnableClose").setType(r.default.BOOLEAN),t.addInherited("closeType","tabCloseType").setType("ICloseType"),t.addInherited("enableDrag","tabEnableDrag").setType(r.default.BOOLEAN),t.addInherited("enableRename","tabEnableRename").setType(r.default.BOOLEAN),t.addInherited("className","tabClassName").setType(r.default.STRING),t.addInherited("icon","tabIcon").setType(r.default.STRING),t.addInherited("enableRenderOnDemand","tabEnableRenderOnDemand").setType(r.default.BOOLEAN),t.addInherited("enableFloat","tabEnableFloat").setType(r.default.BOOLEAN),t.addInherited("borderWidth","tabBorderWidth").setType(r.default.NUMBER),t.addInherited("borderHeight","tabBorderHeight").setType(r.default.NUMBER),t},e.prototype.getWindow=function(){return this._window},e.prototype.getTabRect=function(){return this._tabRect},e.prototype._setTabRect=function(t){this._tabRect=t},e.prototype._setRenderedName=function(t){this._renderedName=t},e.prototype._getRenderedName=function(){return this._renderedName},e.prototype.getName=function(){return this._getAttr("name")},e.prototype.getHelpText=function(){return this._getAttr("helpText")},e.prototype.getComponent=function(){return this._getAttr("component")},e.prototype.getConfig=function(){return this._attributes.config},e.prototype.getExtraData=function(){return this._extra},e.prototype.isFloating=function(){return this._getAttr("floating")},e.prototype.getIcon=function(){return this._getAttr("icon")},e.prototype.isEnableClose=function(){return this._getAttr("enableClose")},e.prototype.getCloseType=function(){return this._getAttr("closeType")},e.prototype.isEnableFloat=function(){return this._getAttr("enableFloat")},e.prototype.isEnableDrag=function(){return this._getAttr("enableDrag")},e.prototype.isEnableRename=function(){return this._getAttr("enableRename")},e.prototype.getClassName=function(){return this._getAttr("className")},e.prototype.isEnableRenderOnDemand=function(){return this._getAttr("enableRenderOnDemand")},e.prototype._setName=function(t){this._attributes.name=t,this._window&&this._window.document&&(this._window.document.title=t)},e.prototype._setFloating=function(t){this._attributes.floating=t},e.prototype._layout=function(t,e){t.equals(this._rect)||this._fireEvent("resize",{rect:t}),this._rect=t},e.prototype._delete=function(){this._parent._remove(this),this._fireEvent("close",{})},e.prototype.toJson=function(){var t={};return e._attributeDefinitions.toJson(t,this._attributes),t},e.prototype._updateAttrs=function(t){e._attributeDefinitions.update(t,this._attributes)},e.prototype._getAttributeDefinitions=function(){return e._attributeDefinitions},e.prototype._setWindow=function(t){this._window=t},e.prototype._setBorderWidth=function(t){this._attributes.borderWidth=t},e.prototype._setBorderHeight=function(t){this._attributes.borderHeight=t},e.getAttributeDefinitions=function(){return e._attributeDefinitions},e.TYPE="tab",e._attributeDefinitions=e._createAttributeDefinitions(),e}(i(11).default);e.default=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e,i,n,o){this.node=t,this.rect=e,this.location=i,this.index=n,this.className=o};e.default=n},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0});var r=i(10),a=i(2),s=function(t){function e(i){var n=t.call(this,i)||this;return n._fixed=!0,n._attributes.type=e.TYPE,i._addNode(n),n}return o(e,t),e.prototype.getWidth=function(){return this._model.getSplitterSize()},e.prototype.getMinWidth=function(){return this.getOrientation()===a.default.VERT?this._model.getSplitterSize():0},e.prototype.getHeight=function(){return this._model.getSplitterSize()},e.prototype.getMinHeight=function(){return this.getOrientation()===a.default.HORZ?this._model.getSplitterSize():0},e.prototype.getMinSize=function(t){return t===a.default.HORZ?this.getMinWidth():this.getMinHeight()},e.prototype.getWeight=function(){return 0},e.prototype._setWeight=function(t){},e.prototype._getPrefSize=function(t){return this._model.getSplitterSize()},e.prototype._updateAttrs=function(t){},e.prototype._getAttributeDefinitions=function(){return new r.default},e.prototype.toJson=function(){},e.TYPE="splitter",e}(i(11).default);e.default=s},function(t,e,i){"use strict";var n=this&&this.__spreadArray||function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.isAuxMouseEvent=e.TabSet=void 0;var o=i(1),r=i(7),a=i(4),s=i(24),d=i(31),l=i(25),u=i(2),c=i(0);function h(t){var e=!1;return t.nativeEvent instanceof MouseEvent&&(0!==t.nativeEvent.button||t.ctrlKey||t.altKey||t.metaKey||t.shiftKey)&&(e=!0),e}e.TabSet=function(t){var e=t.node,i=t.layout,_=t.iconFactory,f=t.titleFactory,p=t.icons,g=t.path,T=o.useRef(null),v=o.useRef(null),E=o.useRef(null),y=o.useRef(null),b=l.useTabOverflow(e,u.default.HORZ,T,y),m=b.selfRef,S=b.position,A=b.userControlledLeft,L=b.hiddenTabs,O=b.onMouseWheel,R=b.tabsTruncated,D=function(t){i.doAction(a.default.selectTab(t.node.getId())),A.current=!1},N=function(t){if(!h(t)){var n=e.getName();if(n=void 0===n?"":": "+n,i.doAction(a.default.setActiveTabset(e.getId())),!i.getEditingTab()){var o=i.i18nName(r.I18nLabel.Move_Tabset,n);i.dragStart(t,o,e,e.isEnableDrag(),(function(t){}),x)}}},C=function(t){h(t)&&i.auxMouseClick(e,t)},w=function(t){i.showContextMenu(e,t)},B=function(t){t.stopPropagation()},x=function(t){e.canMaximize()&&i.maximize(e)},M=i.getClassName;null!==E.current&&0!==E.current.scrollLeft&&(E.current.scrollLeft=0);var I=e.getSelectedNode(),U=e._styleWithPosition();void 0===e.getModel().getMaximizedTabset()||e.isMaximized()||(U.display="none");var F=[];if(e.isEnableTabStrip())for(var z=0;z<e.getChildren().length;z++){var P=e.getChildren()[z],Y=e.getSelected()===z;F.push(o.createElement(d.TabButton,{layout:i,node:P,path:g+"/tb"+z,key:P.getId(),selected:Y,show:!0,height:e.getTabStripHeight(),iconFactory:_,titleFactory:f,icons:p}))}var H=void 0!==e.getName(),X=[],W=[],k=[],j={headerContent:e.getName(),stickyButtons:X,buttons:W,headerButtons:k};i.customizeTabSet(e,j);var G,J,V,Z=j.headerContent;if(W=j.buttons,k=j.headerButtons,(X=j.stickyButtons).length>0&&(R?W=n(n([],X),W):F.push(o.createElement("div",{ref:y,key:"sticky_buttons_container",onMouseDown:B,onTouchStart:B,onDragStart:function(t){t.preventDefault()},className:M(c.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_STICKY_BUTTONS_CONTAINER)},X))),L.length>0){var q=i.i18nName(r.I18nLabel.Overflow_Menu_Tooltip);W.push(o.createElement("button",{key:"overflowbutton","data-layout-path":g+"/button/overflow",ref:v,className:M(c.CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW),title:q,onClick:function(t){var e=v.current;s.showPopup(i.getRootDiv(),e,L,D,i.getClassName),t.stopPropagation()},onMouseDown:B,onTouchStart:B},null==p?void 0:p.more,L.length))}if(void 0!==I&&i.isSupportsPopout()&&I.isEnableFloat()&&!I.isFloating()){var K=i.i18nName(r.I18nLabel.Float_Tab);W.push(o.createElement("button",{key:"float","data-layout-path":g+"/button/float",title:K,className:M(c.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+M(c.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_FLOAT),onClick:function(t){void 0!==I&&i.doAction(a.default.floatTab(I.getId())),t.stopPropagation()},onMouseDown:B,onTouchStart:B},null==p?void 0:p.popout))}if(e.canMaximize()){var $=i.i18nName(r.I18nLabel.Restore),Q=i.i18nName(r.I18nLabel.Maximize);(H?k:W).push(o.createElement("button",{key:"max","data-layout-path":g+"/button/max",title:e.isMaximized()?$:Q,className:M(c.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+M(c.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_+(e.isMaximized()?"max":"min")),onClick:function(t){e.canMaximize()&&i.maximize(e),t.stopPropagation()},onMouseDown:B,onTouchStart:B},e.isMaximized()?null==p?void 0:p.restore:null==p?void 0:p.maximize))}if(!e.isMaximized()&&e.isEnableClose()){var tt=i.i18nName(r.I18nLabel.Close_Tabset);(H?k:W).push(o.createElement("button",{key:"close","data-layout-path":g+"/button/close",title:tt,className:M(c.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+M(c.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_CLOSE),onClick:function(t){i.doAction(a.default.deleteTabset(e.getId())),t.stopPropagation()},onMouseDown:B,onTouchStart:B},null==p?void 0:p.closeTabset))}G=o.createElement("div",{key:"toolbar",ref:T,className:M(c.CLASSES.FLEXLAYOUT__TAB_TOOLBAR),onMouseDown:B,onTouchStart:B,onDragStart:function(t){t.preventDefault()}},W);var et=M(c.CLASSES.FLEXLAYOUT__TABSET_TABBAR_OUTER);if(void 0!==e.getClassNameTabStrip()&&(et+=" "+e.getClassNameTabStrip()),et+=" "+c.CLASSES.FLEXLAYOUT__TABSET_TABBAR_OUTER_+e.getTabLocation(),e.isActive()&&!H&&(et+=" "+M(c.CLASSES.FLEXLAYOUT__TABSET_SELECTED)),e.isMaximized()&&!H&&(et+=" "+M(c.CLASSES.FLEXLAYOUT__TABSET_MAXIMIZED)),H){var it=o.createElement("div",{key:"toolbar",ref:T,className:M(c.CLASSES.FLEXLAYOUT__TAB_TOOLBAR),onMouseDown:B,onTouchStart:B,onDragStart:function(t){t.preventDefault()}},k),nt=M(c.CLASSES.FLEXLAYOUT__TABSET_HEADER);e.isActive()&&(nt+=" "+M(c.CLASSES.FLEXLAYOUT__TABSET_SELECTED)),e.isMaximized()&&(nt+=" "+M(c.CLASSES.FLEXLAYOUT__TABSET_MAXIMIZED)),void 0!==e.getClassNameHeader()&&(nt+=" "+e.getClassNameHeader()),J=o.createElement("div",{className:nt,style:{height:e.getHeaderHeight()+"px"},"data-layout-path":g+"/header",onMouseDown:N,onContextMenu:w,onClick:C,onAuxClick:C,onTouchStart:N},o.createElement("div",{className:M(c.CLASSES.FLEXLAYOUT__TABSET_HEADER_CONTENT)},Z),it)}var ot={height:e.getTabStripHeight()+"px"};if("top"===e.getTabLocation()){var rt=H?e.getHeaderHeight()+"px":"0px";ot.top=rt}else ot.bottom="0px";return V=o.createElement("div",{className:et,style:ot,"data-layout-path":g+"/tabstrip",onMouseDown:N,onContextMenu:w,onClick:C,onAuxClick:C,onTouchStart:N},o.createElement("div",{ref:E,className:M(c.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER)+" "+M(c.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER_+e.getTabLocation())},o.createElement("div",{style:{left:S},className:M(c.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER)+" "+M(c.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER_+e.getTabLocation())},F)),G),U=i.styleFont(U),o.createElement("div",{ref:m,dir:"ltr","data-layout-path":g,style:U,className:M(c.CLASSES.FLEXLAYOUT__TABSET),onWheel:O},J,V)},e.isAuxMouseEvent=h},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(3),o=!("undefined"==typeof window||!window.document||!window.document.createElement),r=function(){function t(){this._manualGlassManagement=!1,this._startX=0,this._startY=0,this._dragDepth=0,this._glassShowing=!1,this._dragging=!1,this._active=!1,o&&(this._glass=document.createElement("div"),this._glass.style.zIndex="998",this._glass.style.backgroundColor="transparent",this._glass.style.outline="none"),this._defaultGlassCursor="default",this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onKeyPress=this._onKeyPress.bind(this),this._onDragCancel=this._onDragCancel.bind(this),this._onDragEnter=this._onDragEnter.bind(this),this._onDragLeave=this._onDragLeave.bind(this),this.resizeGlass=this.resizeGlass.bind(this),this._lastClick=0,this._clickX=0,this._clickY=0}return t.prototype.addGlass=function(t){var e;this._glassShowing?this._manualGlassManagement=!0:(this._document||(this._document=window.document),this._rootElement||(this._rootElement=this._document.body),this.resizeGlass(),null===(e=this._document.defaultView)||void 0===e||e.addEventListener("resize",this.resizeGlass),this._document.body.appendChild(this._glass),this._glass.tabIndex=-1,this._glass.focus(),this._glass.addEventListener("keydown",this._onKeyPress),this._glass.addEventListener("dragenter",this._onDragEnter,{passive:!1}),this._glass.addEventListener("dragover",this._onMouseMove,{passive:!1}),this._glass.addEventListener("dragleave",this._onDragLeave,{passive:!1}),this._glassShowing=!0,this._fDragCancel=t,this._manualGlassManagement=!1)},t.prototype.resizeGlass=function(){n.default.fromElement(this._rootElement).positionElement(this._glass,"fixed")},t.prototype.hideGlass=function(){var t;this._glassShowing&&(this._document.body.removeChild(this._glass),null===(t=this._document.defaultView)||void 0===t||t.removeEventListener("resize",this.resizeGlass),this._glassShowing=!1,this._document=void 0,this._rootElement=void 0,this.setGlassCursorOverride(void 0))},t.prototype._updateGlassCursor=function(){var t;this._glass.style.cursor=null!==(t=this._glassCursorOverride)&&void 0!==t?t:this._defaultGlassCursor},t.prototype._setDefaultGlassCursor=function(t){this._defaultGlassCursor=t,this._updateGlassCursor()},t.prototype.setGlassCursorOverride=function(t){this._glassCursorOverride=t,this._updateGlassCursor()},t.prototype.startDrag=function(t,e,i,n,o,r,a,s,d){if(!(t&&this._lastEvent&&this._lastEvent.type.startsWith("touch")&&t.type.startsWith("mouse")&&t.timeStamp-this._lastEvent.timeStamp<500)){this._lastEvent=t,this._document=s||window.document,this._rootElement=d||this._document.body;var l=this._getLocationEvent(t);this.addGlass(o),this._dragging&&console.warn("this._dragging true on startDrag should never happen"),t?(this._startX=l.clientX,this._startY=l.clientY,window.matchMedia&&!window.matchMedia("(pointer: fine)").matches||this._setDefaultGlassCursor(getComputedStyle(t.target).cursor),this._stopPropagation(t),this._preventDefault(t)):(this._startX=0,this._startY=0,this._setDefaultGlassCursor("default")),this._dragging=!1,this._fDragStart=e,this._fDragMove=i,this._fDragEnd=n,this._fDragCancel=o,this._fClick=r,this._fDblClick=a,this._active=!0,"dragenter"===(null==t?void 0:t.type)?(this._dragDepth=1,this._rootElement.addEventListener("dragenter",this._onDragEnter,{passive:!1}),this._rootElement.addEventListener("dragover",this._onMouseMove,{passive:!1}),this._rootElement.addEventListener("dragleave",this._onDragLeave,{passive:!1}),this._document.addEventListener("dragend",this._onDragCancel,{passive:!1}),this._document.addEventListener("drop",this._onMouseUp,{passive:!1})):(this._document.addEventListener("mouseup",this._onMouseUp,{passive:!1}),this._document.addEventListener("mousemove",this._onMouseMove,{passive:!1}),this._document.addEventListener("touchend",this._onMouseUp,{passive:!1}),this._document.addEventListener("touchmove",this._onMouseMove,{passive:!1}))}},t.prototype.isDragging=function(){return this._dragging},t.prototype.isActive=function(){return this._active},t.prototype.toString=function(){return"(DragDrop: startX="+this._startX+", startY="+this._startY+", dragging="+this._dragging+")"},t.prototype._onKeyPress=function(t){27===t.keyCode&&this._onDragCancel()},t.prototype._onDragCancel=function(){this._rootElement.removeEventListener("dragenter",this._onDragEnter),this._rootElement.removeEventListener("dragover",this._onMouseMove),this._rootElement.removeEventListener("dragleave",this._onDragLeave),this._document.removeEventListener("dragend",this._onDragCancel),this._document.removeEventListener("drop",this._onMouseUp),this._document.removeEventListener("mousemove",this._onMouseMove),this._document.removeEventListener("mouseup",this._onMouseUp),this._document.removeEventListener("touchend",this._onMouseUp),this._document.removeEventListener("touchmove",this._onMouseMove),this.hideGlass(),void 0!==this._fDragCancel&&this._fDragCancel(this._dragging),this._dragging=!1,this._active=!1},t.prototype._getLocationEvent=function(t){var e=t;return t&&t.touches&&(e=t.touches[0]),e},t.prototype._getLocationEventEnd=function(t){var e=t;return t.changedTouches&&(e=t.changedTouches[0]),e},t.prototype._stopPropagation=function(t){t.stopPropagation&&t.stopPropagation()},t.prototype._preventDefault=function(t){return t.preventDefault&&t.cancelable&&t.preventDefault(),t},t.prototype._onMouseMove=function(t){this._lastEvent=t;var e=this._getLocationEvent(t);return this._stopPropagation(t),this._preventDefault(t),!this._dragging&&(Math.abs(this._startX-e.clientX)>5||Math.abs(this._startY-e.clientY)>5)&&(this._dragging=!0,this._fDragStart&&(this._setDefaultGlassCursor("move"),this._dragging=this._fDragStart({clientX:this._startX,clientY:this._startY}))),this._dragging&&this._fDragMove&&this._fDragMove(e),!1},t.prototype._onMouseUp=function(t){this._lastEvent=t;var e=this._getLocationEventEnd(t);if(this._stopPropagation(t),this._preventDefault(t),this._active=!1,this._rootElement.removeEventListener("dragenter",this._onDragEnter),this._rootElement.removeEventListener("dragover",this._onMouseMove),this._rootElement.removeEventListener("dragleave",this._onDragLeave),this._document.removeEventListener("dragend",this._onDragCancel),this._document.removeEventListener("drop",this._onMouseUp),this._document.removeEventListener("mousemove",this._onMouseMove),this._document.removeEventListener("mouseup",this._onMouseUp),this._document.removeEventListener("touchend",this._onMouseUp),this._document.removeEventListener("touchmove",this._onMouseMove),this._manualGlassManagement||this.hideGlass(),this._dragging)this._dragging=!1,this._fDragEnd&&this._fDragEnd(t);else if(this._fDragCancel&&this._fDragCancel(this._dragging),Math.abs(this._startX-e.clientX)<=5&&Math.abs(this._startY-e.clientY)<=5){var i=(new Date).getTime();Math.abs(this._clickX-e.clientX)<=5&&Math.abs(this._clickY-e.clientY)<=5&&i-this._lastClick<500&&this._fDblClick&&this._fDblClick(t),this._fClick&&this._fClick(t),this._lastClick=i,this._clickX=e.clientX,this._clickY=e.clientY}return!1},t.prototype._onDragEnter=function(t){return this._preventDefault(t),this._stopPropagation(t),this._dragDepth++,!1},t.prototype._onDragLeave=function(t){return this._preventDefault(t),this._stopPropagation(t),this._dragDepth--,this._dragDepth<=0&&this._onDragCancel(),!1},t.instance=new t,t}();e.default=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adjustSelectedIndex=e.adjustSelectedIndexAfterDock=e.adjustSelectedIndexAfterFloat=void 0;var n=i(6),o=i(8);e.adjustSelectedIndexAfterFloat=function(t){var e=t.getParent();if(null!==e)if(e instanceof n.default){for(var i=!1,r=0,a=e.getChildren(),s=0;s<a.length;s++){var d=a[s];if(d===t)i=!0;else if(!d.isFloating()&&(r=s,i))break}e._setSelected(r)}else e instanceof o.default&&e._setSelected(-1)},e.adjustSelectedIndexAfterDock=function(t){var e=t.getParent();if(null!==e&&(e instanceof n.default||e instanceof o.default))for(var i=e.getChildren(),r=0;r<i.length;r++){if(i[r]===t)return void e._setSelected(r)}},e.adjustSelectedIndex=function(t,e){if(void 0!==t&&(t.getType()===n.default.TYPE||t.getType()===o.default.TYPE)){var i=t.getSelected();-1!==i&&(e===i&&t.getChildren().length>0?e>=t.getChildren().length&&t._setSelected(t.getChildren().length-1):e<i?t._setSelected(i-1):e>i||t._setSelected(-1))}}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var a=i(9),s=i(10),d=i(5),l=i(14),u=i(2),c=i(3),h=i(0),_=i(8),f=i(11),p=i(15),g=i(6),T=function(t){function e(i,n){var o=t.call(this,i)||this;return o._dirty=!0,o._drawChildren=[],o.minHeight=0,o.minWidth=0,e._attributeDefinitions.fromJson(n,o._attributes),i._addNode(o),o}return o(e,t),e._fromJson=function(t,i){var n=new e(i,t);if(null!=t.children)for(var o=0,r=t.children;o<r.length;o++){var a=r[o];if(a.type===g.default.TYPE){var s=g.default._fromJson(a,i);n._addChild(s)}else{s=e._fromJson(a,i);n._addChild(s)}}return n},e._createAttributeDefinitions=function(){var t=new s.default;return t.add("type",e.TYPE,!0).setType(a.default.STRING).setFixed(),t.add("id",void 0).setType(a.default.STRING),t.add("weight",100).setType(a.default.NUMBER),t.add("width",void 0).setType(a.default.NUMBER),t.add("height",void 0).setType(a.default.NUMBER),t},e.prototype.getWeight=function(){return this._attributes.weight},e.prototype.getWidth=function(){return this._getAttr("width")},e.prototype.getHeight=function(){return this._getAttr("height")},e.prototype._setWeight=function(t){this._attributes.weight=t},e.prototype._layout=function(e,i){t.prototype._layout.call(this,e,i);for(var n=this._rect._getSize(this.getOrientation()),o=0,r=0,a=0,s=0,d=this._getDrawChildren(),l=0,h=d;l<h.length;l++){var _=(x=h[l])._getPrefSize(this.getOrientation());x._isFixed()?void 0!==_&&(r+=_):void 0===_?o+=x.getWeight():(a+=_,s+=x.getWeight())}var f=!1,g=n-r-a;g<0&&(g=n-r,f=!0,o+=s);for(var T=0,v=0,E=0,y=d;E<y.length;E++){_=(x=y[E])._getPrefSize(this.getOrientation());if(x._isFixed())void 0!==_&&x._setTempSize(_);else if(null==_||f){if(0===o)x._setTempSize(0);else{var b=x.getMinSize(this.getOrientation()),m=Math.floor(g*(x.getWeight()/o));x._setTempSize(Math.max(b,m))}v+=x._getTempSize()}else x._setTempSize(_);T+=x._getTempSize()}if(v>0){for(;T<n;)for(var S=0,A=d;S<A.length;S++){if(!((x=A[S])instanceof p.default)){_=x._getPrefSize(this.getOrientation());!x._isFixed()&&(void 0===_||f)&&T<n&&(x._setTempSize(x._getTempSize()+1),T++)}}for(;T>n;){for(var L=!1,O=0,R=d;O<R.length;O++){if(!((x=R[O])instanceof p.default)){b=x.getMinSize(this.getOrientation());(m=x._getTempSize())>b&&T>n&&(x._setTempSize(x._getTempSize()-1),T--,L=!0)}}if(!L)break}for(;T>n;){L=!1;for(var D=0,N=d;D<N.length;D++){if(!((x=N[D])instanceof p.default))(m=x._getTempSize())>0&&T>n&&(x._setTempSize(x._getTempSize()-1),T--,L=!0)}if(!L)break}}for(var C=0,w=0,B=d;w<B.length;w++){var x=B[w];this.getOrientation()===u.default.HORZ?x._layout(new c.default(this._rect.x+C,this._rect.y,x._getTempSize(),this._rect.height),i):x._layout(new c.default(this._rect.x,this._rect.y+C,this._rect.width,x._getTempSize()),i),C+=x._getTempSize()}return!0},e.prototype._getSplitterBounds=function(t,e){void 0===e&&(e=!1);var i=[0,0],n=this._getDrawChildren(),o=n.indexOf(t),r=n[o-1],a=n[o+1];if(this.getOrientation()===u.default.HORZ){var s=e?r.getMinWidth():0,d=e?a.getMinWidth():0;i[0]=r.getRect().x+s,i[1]=a.getRect().getRight()-t.getWidth()-d}else{s=e?r.getMinHeight():0,d=e?a.getMinHeight():0;i[0]=r.getRect().y+s,i[1]=a.getRect().getBottom()-t.getHeight()-d}return i},e.prototype._calculateSplit=function(t,e){var i,n=this._getDrawChildren(),o=n.indexOf(t),r=this._getSplitterBounds(t),a=n[o-1].getWeight()+n[o+1].getWeight(),s=Math.max(0,e-r[0]),d=Math.max(0,r[1]-e);if(s+d>0){var l=s*a/(s+d),u=d*a/(s+d);i={node1Id:n[o-1].getId(),weight1:l,pixelWidth1:s,node2Id:n[o+1].getId(),weight2:u,pixelWidth2:d}}return i},e.prototype._getDrawChildren=function(){if(this._dirty){this._drawChildren=[];for(var t=0;t<this._children.length;t++){var e=this._children[t];if(0!==t){var i=new p.default(this._model);i._setParent(this),this._drawChildren.push(i)}this._drawChildren.push(e)}this._dirty=!1}return this._drawChildren},e.prototype.getMinSize=function(t){return t===u.default.HORZ?this.getMinWidth():this.getMinHeight()},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMinHeight=function(){return this.minHeight},e.prototype.calcMinSize=function(){var t=this;this.minHeight=0,this.minWidth=0;var i=!0;this._children.forEach((function(n){var o=n;o instanceof e&&o.calcMinSize(),t.getOrientation()===u.default.VERT?(t.minHeight+=o.getMinHeight(),i||(t.minHeight+=t._model.getSplitterSize()),t.minWidth=Math.max(t.minWidth,o.getMinWidth())):(t.minWidth+=o.getMinWidth(),i||(t.minWidth+=t._model.getSplitterSize()),t.minHeight=Math.max(t.minHeight,o.getMinHeight())),i=!1}))},e.prototype._tidy=function(){for(var t=0;t<this._children.length;){if((_=this._children[t])instanceof e){_._tidy();var i=_.getChildren();if(0===i.length)this._removeChild(_);else if(1===i.length){var n=i[0];if(this._removeChild(_),n instanceof e){for(var o=0,a=n.getChildren(),s=0,d=a;s<d.length;s++){o+=(u=d[s]).getWeight()}for(var l=0;l<a.length;l++){var u;(u=a[l])._setWeight(_.getWeight()*u.getWeight()/o),this._addChild(u,t+l)}}else n._setWeight(_.getWeight()),this._addChild(n,t)}else t++}else _ instanceof g.default&&0===_.getChildren().length&&_.isEnableDeleteWhenEmpty()?(this._removeChild(_),_===this._model.getMaximizedTabset()&&this._model._setMaximizedTabset(void 0)):t++}if(this===this._model.getRoot()&&0===this._children.length){var c=this._model._getOnCreateTabSet(),h=c?c():{};h=r(r({},h),{selected:-1});var _=new g.default(this._model,h);this._model._setActiveTabset(_),this._addChild(_)}},e.prototype.canDrop=function(t,e,i){var n,o=i-this._rect.y,r=e-this._rect.x,a=this._rect.width,s=this._rect.height;if(this._model.isEnableEdgeDock()&&void 0===this._parent){if(e<this._rect.x+10&&o>s/2-50&&o<s/2+50)(c=(u=d.default.LEFT).getDockRect(this._rect)).width=c.width/2,n=new l.default(this,c,u,-1,h.CLASSES.FLEXLAYOUT__OUTLINE_RECT_EDGE);else if(e>this._rect.getRight()-10&&o>s/2-50&&o<s/2+50){(c=(u=d.default.RIGHT).getDockRect(this._rect)).width=c.width/2,c.x+=c.width,n=new l.default(this,c,u,-1,h.CLASSES.FLEXLAYOUT__OUTLINE_RECT_EDGE)}else if(i<this._rect.y+10&&r>a/2-50&&r<a/2+50){(c=(u=d.default.TOP).getDockRect(this._rect)).height=c.height/2,n=new l.default(this,c,u,-1,h.CLASSES.FLEXLAYOUT__OUTLINE_RECT_EDGE)}else if(i>this._rect.getBottom()-10&&r>a/2-50&&r<a/2+50){var u,c;(c=(u=d.default.BOTTOM).getDockRect(this._rect)).height=c.height/2,c.y+=c.height,n=new l.default(this,c,u,-1,h.CLASSES.FLEXLAYOUT__OUTLINE_RECT_EDGE)}if(void 0!==n&&!t._canDockInto(t,n))return}return n},e.prototype.drop=function(t,i,n){var o,r=i,a=t.getParent();if(a&&a._removeChild(t),void 0!==a&&a.getType()===g.default.TYPE&&a._setSelected(0),void 0!==a&&a.getType()===_.default.TYPE&&a._setSelected(-1),t instanceof g.default)o=t;else{var s=this._model._getOnCreateTabSet();(o=new g.default(this._model,s?s(t):{}))._addChild(t)}var l=this._children.reduce((function(t,e){return t+e.getWeight()}),0);0===l&&(l=100),o._setWeight(l/3);var u=!this._model.isRootOrientationVertical();if(u&&r===d.default.LEFT||!u&&r===d.default.TOP)this._addChild(o,0);else if(u&&r===d.default.RIGHT||!u&&r===d.default.BOTTOM)this._addChild(o);else if(u&&r===d.default.TOP||!u&&r===d.default.LEFT){var c=new e(this._model,{}),h=new e(this._model,{});h._setWeight(75),o._setWeight(25),this._children.forEach((function(t){h._addChild(t)})),this._removeAll(),c._addChild(o),c._addChild(h),this._addChild(c)}else if(u&&r===d.default.BOTTOM||!u&&r===d.default.RIGHT){c=new e(this._model,{});var f=new e(this._model,{});f._setWeight(75),o._setWeight(25),this._children.forEach((function(t){f._addChild(t)})),this._removeAll(),c._addChild(f),c._addChild(o),this._addChild(c)}this._model._setActiveTabset(o),this._model._tidy()},e.prototype.toJson=function(){var t={};return e._attributeDefinitions.toJson(t,this._attributes),t.children=[],this._children.forEach((function(e){t.children.push(e.toJson())})),t},e.prototype.isEnableDrop=function(){return!0},e.prototype._getPrefSize=function(t){var e=this.getWidth();return t===u.default.VERT&&(e=this.getHeight()),e},e.prototype._getAttributeDefinitions=function(){return e._attributeDefinitions},e.prototype._updateAttrs=function(t){e._attributeDefinitions.update(t,this._attributes)},e.getAttributeDefinitions=function(){return e._attributeDefinitions},e.TYPE="row",e._attributeDefinitions=e._createAttributeDefinitions(),e}(f.default);e.default=T},function(t,i){t.exports=e},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){this.type=t,this.data=e};e.default=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(2),o=i(8),r=function(){function t(t){this._model=t,this._borders=[]}return t._fromJson=function(e,i){var n=new t(i);return n._borders=e.map((function(t){return o.default._fromJson(t,i)})),n},t.prototype.getBorders=function(){return this._borders},t.prototype._forEachNode=function(t){this._borders.forEach((function(e){t(e,0),e.getChildren().forEach((function(e){e._forEachNode(t,1)}))}))},t.prototype._toJson=function(){return this._borders.map((function(t){return t.toJson()}))},t.prototype._layoutBorder=function(t,e){for(var i=t.outer,o=this._model.getRoot(),r=Math.max(0,i.height-o.getMinHeight()),a=Math.max(0,i.width-o.getMinWidth()),s=0,d=0,l=0,u=0,c=this._borders.filter((function(t){return t.isShowing()})),h=0,_=c;h<_.length;h++){(T=_[h])._setAdjustedSize(T.getSize());var f=-1!==T.getSelected();T.getLocation().getOrientation()===n.default.HORZ?(d+=T.getBorderBarSize(),f&&(a-=this._model.getSplitterSize(),d+=T.getSize(),u+=T.getSize())):(s+=T.getBorderBarSize(),f&&(r-=this._model.getSplitterSize(),s+=T.getSize(),l+=T.getSize()))}for(var p=0,g=!1;d>a&&u>0||s>r&&l>0;){var T;if(-1!==(T=c[p]).getSelected()){var v=T._getAdjustedSize();d>a&&u>0&&T.getLocation().getOrientation()===n.default.HORZ&&v>0&&v>T.getMinSize()?(T._setAdjustedSize(v-1),d--,u--,g=!0):s>r&&l>0&&T.getLocation().getOrientation()===n.default.VERT&&v>0&&v>T.getMinSize()&&(T._setAdjustedSize(v-1),s--,l--,g=!0)}if(0===(p=(p+1)%c.length)){if(!g)break;g=!1}}return c.forEach((function(i){t.outer=i._layoutBorderOuter(t.outer,e)})),t.inner=t.outer,c.forEach((function(i){t.inner=i._layoutBorderInner(t.inner,e)})),t},t.prototype._findDropTargetNode=function(t,e,i){for(var n=0,o=this._borders;n<o.length;n++){var r=o[n];if(r.isShowing()){var a=r.canDrop(t,e,i);if(void 0!==a)return a}}},t}();e.default=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ICloseType=void 0,function(t){t[t.Visible=1]="Visible",t[t.Always=2]="Always",t[t.Selected=3]="Selected"}(e.ICloseType||(e.ICloseType={}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showPopup=void 0;var n=i(1),o=i(20),r=i(12),a=i(0);e.showPopup=function(t,e,i,d,l){var u=e.ownerDocument,c=e.getBoundingClientRect(),h=t.getBoundingClientRect(),_=u.createElement("div");_.className=l(a.CLASSES.FLEXLAYOUT__POPUP_MENU_CONTAINER),c.left<h.left+h.width/2?_.style.left=c.left-h.left+"px":_.style.right=h.right-c.right+"px",c.top<h.top+h.height/2?_.style.top=c.top-h.top+"px":_.style.bottom=h.bottom-c.bottom+"px",r.DragDrop.instance.addGlass((function(){return f()})),r.DragDrop.instance.setGlassCursorOverride("default"),t.appendChild(_);var f=function(){r.DragDrop.instance.hideGlass(),t.removeChild(_),o.unmountComponentAtNode(_),_.removeEventListener("mousedown",p),u.removeEventListener("mousedown",g)},p=function(t){t.stopPropagation()},g=function(t){f()};_.addEventListener("mousedown",p),u.addEventListener("mousedown",g),o.render(n.createElement(s,{currentDocument:u,onSelect:d,onHide:f,items:i,classNameMapper:l}),_)};var s=function(t){var e=t.items,i=t.onHide,o=t.onSelect,r=t.classNameMapper,s=e.map((function(t,e){return n.createElement("div",{key:t.index,className:r(a.CLASSES.FLEXLAYOUT__POPUP_MENU_ITEM),"data-layout-path":"/popup-menu/tb"+e,onClick:function(e){return function(t,e){o(t),i(),e.stopPropagation()}(t,e)},title:t.node.getHelpText()},t.node._getRenderedName())}));return n.createElement("div",{className:r(a.CLASSES.FLEXLAYOUT__POPUP_MENU),"data-layout-path":"/popup-menu"},s)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useTabOverflow=void 0;var n=i(1),o=i(3),r=i(6),a=i(2);e.useTabOverflow=function(t,e,i,s){var d=n.useRef(!0),l=n.useRef(!1),u=n.useRef(new o.default(0,0,0,0)),c=n.useRef(null),h=n.useState(0),_=h[0],f=h[1],p=n.useRef(!1),g=n.useState([]),T=g[0],v=g[1];n.useLayoutEffect((function(){p.current=!1}),[t.getSelectedNode(),t.getRect().width,t.getRect().height]),n.useLayoutEffect((function(){S()})),n.useEffect((function(){var t=c.current;return t.addEventListener("wheel",E),function(){t.removeEventListener("wheel",E)}}),[]);var E=function(t){t.preventDefault()},y=function(t){return e===a.default.HORZ?t.x:t.y},b=function(t){return e===a.default.HORZ?t.getRight():t.getBottom()},m=function(t){return e===a.default.HORZ?t.width:t.height},S=function(){!0===d.current&&(l.current=!1);var n=t instanceof r.default?t.getRect():t.getTabHeaderRect(),o=t.getChildren()[t.getChildren().length-1],c=null===s.current?0:m(s.current.getBoundingClientRect());if(!0===d.current||n.width!==u.current.width||n.height!==u.current.height){u.current=n;var h=!(t instanceof r.default)||!0===t.isEnableTabStrip(),g=b(n)-c;if(null!==i.current&&(g-=m(i.current.getBoundingClientRect())),h&&t.getChildren().length>0){if(0===T.length&&0===_&&b(o.getTabRect())+2<g)return;g-=T.length>0?e===a.default.HORZ?10:0:45;var E=0,S=t.getSelectedNode();if(S&&!p.current){var A=S.getTabRect(),L=y(A)-2,O=b(A)+2;m(A)+4>=g-y(n)?E=y(n)-L:(O>g||L<y(n))&&(L<y(n)&&(E=y(n)-L),O+E>g&&(E=g-O))}for(var R=Math.max(0,g-(b(o.getTabRect())+2+E)),D=Math.min(0,_+E+R),N=D-_,C=[],w=0;w<t.getChildren().length;w++){var B=t.getChildren()[w];(y(B.getTabRect())+N<y(n)||b(B.getTabRect())+N>g)&&C.push({node:B,index:w})}C.length>0&&(l.current=!0),d.current=!1,v(C),f(D)}}else d.current=!0};return{selfRef:c,position:_,userControlledLeft:p,hiddenTabs:T,onMouseWheel:function(t){var e=0;e=Math.abs(t.deltaX)>Math.abs(t.deltaY)?-t.deltaX:-t.deltaY,1===t.deltaMode&&(e*=40),f(_+e),p.current=!0,t.stopPropagation()},tabsTruncated:l.current}}},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorBoundary=void 0;var r=i(1),a=i(0),s=function(t){function e(e){var i=t.call(this,e)||this;return i.state={hasError:!1},i}return o(e,t),e.getDerivedStateFromError=function(t){return{hasError:!0}},e.prototype.componentDidCatch=function(t,e){console.debug(t),console.debug(e)},e.prototype.render=function(){return this.state.hasError?r.createElement("div",{className:a.CLASSES.FLEXLAYOUT__ERROR_BOUNDARY_CONTAINER},r.createElement("div",{className:a.CLASSES.FLEXLAYOUT__ERROR_BOUNDARY_CONTENT},this.props.message)):this.props.children},e}(r.Component);e.ErrorBoundary=s},function(t,e,i){"use strict";var n=this&&this.__spreadArray||function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t};Object.defineProperty(e,"__esModule",{value:!0});var o=i(9),r=i(10),a=i(5),s=i(2),d=i(3),l=i(4),u=i(8),c=i(22),h=i(19),_=i(13),f=i(6),p=i(18),g=i(37),T=function(){function t(){this._borderRects={inner:d.default.empty(),outer:d.default.empty()},this._attributes={},this._idMap={},this._borders=new c.default(this),this._pointerFine=!0,this._showHiddenBorder=a.default.CENTER}return t.fromJson=function(e){var i=new t;return t._attributeDefinitions.fromJson(e.global,i._attributes),e.borders&&(i._borders=c.default._fromJson(e.borders,i)),i._root=h.default._fromJson(e.layout,i),i._tidy(),i},t._createAttributeDefinitions=function(){var t=new r.default;return t.add("splitterSize",-1).setType(o.default.NUMBER),t.add("splitterExtra",0).setType(o.default.NUMBER),t.add("enableEdgeDock",!0).setType(o.default.BOOLEAN),t.add("rootOrientationVertical",!1).setType(o.default.BOOLEAN),t.add("marginInsets",{top:0,right:0,bottom:0,left:0}).setType("IInsets"),t.add("tabEnableClose",!0).setType(o.default.BOOLEAN),t.add("tabCloseType",1).setType("ICloseType"),t.add("tabEnableFloat",!1).setType(o.default.BOOLEAN),t.add("tabEnableDrag",!0).setType(o.default.BOOLEAN),t.add("tabEnableRename",!0).setType(o.default.BOOLEAN),t.add("tabClassName",void 0).setType(o.default.STRING),t.add("tabIcon",void 0).setType(o.default.STRING),t.add("tabEnableRenderOnDemand",!0).setType(o.default.BOOLEAN),t.add("tabDragSpeed",.3).setType(o.default.NUMBER),t.add("tabBorderWidth",-1).setType(o.default.NUMBER),t.add("tabBorderHeight",-1).setType(o.default.NUMBER),t.add("tabSetEnableDeleteWhenEmpty",!0).setType(o.default.BOOLEAN),t.add("tabSetEnableDrop",!0).setType(o.default.BOOLEAN),t.add("tabSetEnableDrag",!0).setType(o.default.BOOLEAN),t.add("tabSetEnableDivide",!0).setType(o.default.BOOLEAN),t.add("tabSetEnableMaximize",!0).setType(o.default.BOOLEAN),t.add("tabSetEnableClose",!1).setType(o.default.BOOLEAN),t.add("tabSetAutoSelectTab",!0).setType(o.default.BOOLEAN),t.add("tabSetClassNameTabStrip",void 0).setType(o.default.STRING),t.add("tabSetClassNameHeader",void 0).setType(o.default.STRING),t.add("tabSetEnableTabStrip",!0).setType(o.default.BOOLEAN),t.add("tabSetHeaderHeight",0).setType(o.default.NUMBER),t.add("tabSetTabStripHeight",0).setType(o.default.NUMBER),t.add("tabSetMarginInsets",{top:0,right:0,bottom:0,left:0}).setType("IInsets"),t.add("tabSetBorderInsets",{top:0,right:0,bottom:0,left:0}).setType("IInsets"),t.add("tabSetTabLocation","top").setType("ITabLocation"),t.add("tabSetMinWidth",0).setType(o.default.NUMBER),t.add("tabSetMinHeight",0).setType(o.default.NUMBER),t.add("borderSize",200).setType(o.default.NUMBER),t.add("borderMinSize",0).setType(o.default.NUMBER),t.add("borderBarSize",0).setType(o.default.NUMBER),t.add("borderEnableDrop",!0).setType(o.default.BOOLEAN),t.add("borderAutoSelectTabWhenOpen",!0).setType(o.default.BOOLEAN),t.add("borderAutoSelectTabWhenClosed",!1).setType(o.default.BOOLEAN),t.add("borderClassName",void 0).setType(o.default.STRING),t.add("borderEnableAutoHide",!1).setType(o.default.BOOLEAN),t},t.prototype._setChangeListener=function(t){this._changeListener=t},t.prototype.getActiveTabset=function(){return this._activeTabSet&&this.getNodeById(this._activeTabSet.getId())?this._activeTabSet:void 0},t.prototype._getShowHiddenBorder=function(){return this._showHiddenBorder},t.prototype._setShowHiddenBorder=function(t){this._showHiddenBorder=t},t.prototype._setActiveTabset=function(t){this._activeTabSet=t},t.prototype.getMaximizedTabset=function(){return this._maximizedTabSet},t.prototype._setMaximizedTabset=function(t){this._maximizedTabSet=t},t.prototype.getRoot=function(){return this._root},t.prototype.isRootOrientationVertical=function(){return this._attributes.rootOrientationVertical},t.prototype.getBorderSet=function(){return this._borders},t.prototype._getOuterInnerRects=function(){return this._borderRects},t.prototype._getPointerFine=function(){return this._pointerFine},t.prototype._setPointerFine=function(t){this._pointerFine=t},t.prototype.visitNodes=function(t){this._borders._forEachNode(t),this._root._forEachNode(t,0)},t.prototype.getNodeById=function(t){return this._idMap[t]},t.prototype.doAction=function(t){var e=void 0;switch(t.type){case l.default.ADD_NODE:var i=new _.default(this,t.data.json,!0);((o=this._idMap[t.data.toNode])instanceof f.default||o instanceof u.default||o instanceof h.default)&&(o.drop(i,a.default.getByName(t.data.location),t.data.index,t.data.select),e=i);break;case l.default.MOVE_NODE:var o,r=this._idMap[t.data.fromNode];if(r instanceof _.default||r instanceof f.default)((o=this._idMap[t.data.toNode])instanceof f.default||o instanceof u.default||o instanceof h.default)&&o.drop(r,a.default.getByName(t.data.location),t.data.index,t.data.select);break;case l.default.DELETE_TAB:(E=this._idMap[t.data.node])instanceof _.default&&E._delete();break;case l.default.DELETE_TABSET:if((E=this._idMap[t.data.node])instanceof f.default)n([],E.getChildren()).forEach((function(t,e){t.isEnableClose()&&t._delete()})),0===E.getChildren().length&&E._delete(),this._tidy();break;case l.default.FLOAT_TAB:(E=this._idMap[t.data.node])instanceof _.default&&(E._setFloating(!0),p.adjustSelectedIndexAfterFloat(E));break;case l.default.UNFLOAT_TAB:(E=this._idMap[t.data.node])instanceof _.default&&(E._setFloating(!1),p.adjustSelectedIndexAfterDock(E));break;case l.default.RENAME_TAB:(E=this._idMap[t.data.node])instanceof _.default&&E._setName(t.data.text);break;case l.default.SELECT_TAB:var s=this._idMap[t.data.tabNode];if(s instanceof _.default){var d=s.getParent(),c=d.getChildren().indexOf(s);d instanceof u.default?d.getSelected()===c?d._setSelected(-1):d._setSelected(c):d instanceof f.default&&(d.getSelected()!==c&&d._setSelected(c),this._activeTabSet=d)}break;case l.default.SET_ACTIVE_TABSET:var g=this._idMap[t.data.tabsetNode];g instanceof f.default&&(this._activeTabSet=g);break;case l.default.ADJUST_SPLIT:var T=this._idMap[t.data.node1],v=this._idMap[t.data.node2];(T instanceof f.default||T instanceof h.default)&&(v instanceof f.default||v instanceof h.default)&&(this._adjustSplitSide(T,t.data.weight1,t.data.pixelWidth1),this._adjustSplitSide(v,t.data.weight2,t.data.pixelWidth2));break;case l.default.ADJUST_BORDER_SPLIT:(E=this._idMap[t.data.node])instanceof u.default&&E._setSize(t.data.pos);break;case l.default.MAXIMIZE_TOGGLE:(E=this._idMap[t.data.node])instanceof f.default&&(E===this._maximizedTabSet?this._maximizedTabSet=void 0:(this._maximizedTabSet=E,this._activeTabSet=E));break;case l.default.UPDATE_MODEL_ATTRIBUTES:this._updateAttrs(t.data.json);break;case l.default.UPDATE_NODE_ATTRIBUTES:var E;(E=this._idMap[t.data.node])._updateAttrs(t.data.json)}return this._updateIdMap(),void 0!==this._changeListener&&this._changeListener(),e},t.prototype._updateIdMap=function(){var t=this;this._idMap={},this.visitNodes((function(e){return t._idMap[e.getId()]=e}))},t.prototype._adjustSplitSide=function(t,e,i){t._setWeight(e),null!=t.getWidth()&&t.getOrientation()===s.default.VERT?t._updateAttrs({width:i}):null!=t.getHeight()&&t.getOrientation()===s.default.HORZ&&t._updateAttrs({height:i})},t.prototype.toJson=function(){var e={};return t._attributeDefinitions.toJson(e,this._attributes),this.visitNodes((function(t){t._fireEvent("save",void 0)})),{global:e,borders:this._borders._toJson(),layout:this._root.toJson()}},t.prototype.getSplitterSize=function(){var t=this._attributes.splitterSize;return-1===t&&(t=this._pointerFine?8:12),t},t.prototype.getSplitterExtra=function(){return this._attributes.splitterExtra},t.prototype.isEnableEdgeDock=function(){return this._attributes.enableEdgeDock},t.prototype._addNode=function(t){var e=t.getId();if(void 0!==this._idMap[e])throw new Error("Error: each node must have a unique id, duplicate id:"+t.getId());"splitter"!==t.getType()&&(this._idMap[e]=t)},t.prototype._layout=function(t,e){var i;return this._borderRects=this._borders._layoutBorder({outer:t,inner:t},e),t=this._borderRects.inner.removeInsets(this._getAttribute("marginInsets")),null===(i=this._root)||void 0===i||i.calcMinSize(),this._root._layout(t,e),t},t.prototype._findDropTargetNode=function(t,e,i){var n=this._root._findDropTargetNode(t,e,i);return void 0===n&&(n=this._borders._findDropTargetNode(t,e,i)),n},t.prototype._tidy=function(){this._root._tidy()},t.prototype._updateAttrs=function(e){t._attributeDefinitions.update(e,this._attributes)},t.prototype._nextUniqueId=function(){return"#"+g.v4()},t.prototype._getAttribute=function(t){return this._attributes[t]},t.prototype.setOnAllowDrop=function(t){this._onAllowDrop=t},t.prototype._getOnAllowDrop=function(){return this._onAllowDrop},t.prototype.setOnCreateTabSet=function(t){this._onCreateTabSet=t},t.prototype._getOnCreateTabSet=function(){return this._onCreateTabSet},t.toTypescriptInterfaces=function(){console.log(t._attributeDefinitions.toTypescriptInterface("Global",void 0)),console.log(h.default.getAttributeDefinitions().toTypescriptInterface("Row",t._attributeDefinitions)),console.log(f.default.getAttributeDefinitions().toTypescriptInterface("TabSet",t._attributeDefinitions)),console.log(_.default.getAttributeDefinitions().toTypescriptInterface("Tab",t._attributeDefinitions)),console.log(u.default.getAttributeDefinitions().toTypescriptInterface("Border",t._attributeDefinitions))},t.prototype.toString=function(){return JSON.stringify(this.toJson())},t._attributeDefinitions=t._createAttributeDefinitions(),t}();e.default=T},function(t,e,i){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=this&&this.__spreadArray||function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.Layout=void 0;var a=i(1),s=i(20),d=i(5),l=i(17),u=i(4),c=i(8),h=i(15),_=i(13),f=i(6),p=i(3),g=i(0),T=i(29),v=i(32),E=i(33),y=i(16),b=i(34),m=i(35),S=i(36),A=i(12),L="undefined"!=typeof window&&(window.document.documentMode||/Edge\//.test(window.navigator.userAgent)),O="undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(hover: hover) and (pointer: fine)").matches&&!L,R=function(t){function e(e){var i=t.call(this,e)||this;return i.firstMove=!1,i.dragRectRendered=!0,i.dragDivText="",i.edgeRectLength=100,i.edgeRectWidth=10,i.edgesShown=!1,i.onModelChange=function(){i.forceUpdate(),i.props.onModelChange&&i.props.onModelChange(i.props.model)},i.updateRect=function(t){void 0===t&&(t=i.getDomRect());var e=new p.default(0,0,t.width,t.height);e.equals(i.state.rect)||0===e.width||0===e.height||i.setState({rect:e})},i.updateLayoutMetrics=function(){if(i.findHeaderBarSizeRef.current){var t=i.findHeaderBarSizeRef.current.getBoundingClientRect().height;t!==i.state.calculatedHeaderBarSize&&i.setState({calculatedHeaderBarSize:t})}if(i.findTabBarSizeRef.current){var e=i.findTabBarSizeRef.current.getBoundingClientRect().height;e!==i.state.calculatedTabBarSize&&i.setState({calculatedTabBarSize:e})}if(i.findBorderBarSizeRef.current){var n=i.findBorderBarSizeRef.current.getBoundingClientRect().height;n!==i.state.calculatedBorderBarSize&&i.setState({calculatedBorderBarSize:n})}},i.getClassName=function(t){return void 0===i.props.classNameMapper?t:i.props.classNameMapper(t)},i.onCloseWindow=function(t){i.doAction(u.default.unFloatTab(t));try{i.props.model.getNodeById(t)._setWindow(void 0)}catch(t){}},i.onSetWindow=function(t,e){i.props.model.getNodeById(t)._setWindow(e)},i.onCancelAdd=function(){var t,e;i.selfRef.current.removeChild(i.dragDiv),i.dragDiv=void 0,null!=i.fnNewNodeDropped&&(i.fnNewNodeDropped(),i.fnNewNodeDropped=void 0);try{null===(e=null===(t=i.customDrop)||void 0===t?void 0:t.invalidated)||void 0===e||e.call(t)}catch(t){console.error(t)}l.default.instance.hideGlass(),i.newTabJson=void 0,i.customDrop=void 0},i.onCancelDrag=function(t){var e,n;if(t){var o=i.selfRef.current;try{o.removeChild(i.outlineDiv)}catch(t){}try{o.removeChild(i.dragDiv)}catch(t){}i.dragDiv=void 0,i.hideEdges(o),null!=i.fnNewNodeDropped&&(i.fnNewNodeDropped(),i.fnNewNodeDropped=void 0);try{null===(n=null===(e=i.customDrop)||void 0===e?void 0:e.invalidated)||void 0===n||n.call(e)}catch(t){console.error(t)}l.default.instance.hideGlass(),i.newTabJson=void 0,i.customDrop=void 0}i.setState({showHiddenBorder:d.default.CENTER})},i.onDragDivMouseDown=function(t){t.preventDefault(),i.dragStart(t,i.dragDivText,_.default._fromJson(i.newTabJson,i.props.model,!1),!0,void 0,void 0)},i.dragStart=function(t,e,n,o,r,a){void 0===i.props.model.getMaximizedTabset()&&o?(i.dragNode=n,i.dragDivText=e,l.default.instance.startDrag(t,i.onDragStart,i.onDragMove,i.onDragEnd,i.onCancelDrag,r,a,i.currentDocument,i.selfRef.current)):l.default.instance.startDrag(t,void 0,void 0,void 0,void 0,r,a,i.currentDocument,i.selfRef.current)},i.dragRectRender=function(t,e,n,o){var r=a.createElement("div",{style:{whiteSpace:"pre"}},t.replace("<br>","\n"));if(void 0!==i.props.onRenderDragRect){var d=i.props.onRenderDragRect(t,e,n);void 0!==d&&(r=d)}i.dragDiv.style.visibility="hidden",i.dragRectRendered=!1,s.render(a.createElement(D,{onRendered:function(){i.dragRectRendered=!0,null==o||o()}},r),i.dragDiv)},i.onDragStart=function(){i.dropInfo=void 0,i.customDrop=void 0;var t=i.selfRef.current;return i.outlineDiv=i.currentDocument.createElement("div"),i.outlineDiv.className=i.getClassName(g.CLASSES.FLEXLAYOUT__OUTLINE_RECT),i.outlineDiv.style.visibility="hidden",t.appendChild(i.outlineDiv),null==i.dragDiv&&(i.dragDiv=i.currentDocument.createElement("div"),i.dragDiv.className=i.getClassName(g.CLASSES.FLEXLAYOUT__DRAG_RECT),i.dragDiv.setAttribute("data-layout-path","/drag-rectangle"),i.dragRectRender(i.dragDivText,i.dragNode,i.newTabJson),t.appendChild(i.dragDiv)),i.showEdges(t),void 0!==i.dragNode&&i.dragNode instanceof _.default&&void 0!==i.dragNode.getTabRect()&&i.dragNode.getTabRect().positionElement(i.outlineDiv),i.firstMove=!0,!0},i.onDragMove=function(t){if(!1===i.firstMove){var e=i.props.model._getAttribute("tabDragSpeed");i.outlineDiv.style.transition="top "+e+"s, left "+e+"s, width "+e+"s, height "+e+"s"}i.firstMove=!1;var n=i.selfRef.current.getBoundingClientRect(),o={x:t.clientX-n.left,y:t.clientY-n.top};i.checkForBorderToShow(o.x,o.y);var r=i.dragDiv.getBoundingClientRect(),a=o.x-r.width/2;a+r.width>n.width&&(a=n.width-r.width),a=Math.max(0,a),i.dragDiv.style.left=a+"px",i.dragDiv.style.top=o.y+5+"px",i.dragRectRendered&&"hidden"===i.dragDiv.style.visibility&&(i.dragDiv.style.visibility="visible");var s=i.props.model._findDropTargetNode(i.dragNode,o.x,o.y);s&&(i.props.onTabDrag?i.handleCustomTabDrag(s,o,t):(i.dropInfo=s,i.outlineDiv.className=i.getClassName(s.className),s.rect.positionElement(i.outlineDiv),i.outlineDiv.style.visibility="visible"))},i.onDragEnd=function(t){var e=i.selfRef.current;if(e.removeChild(i.outlineDiv),e.removeChild(i.dragDiv),i.dragDiv=void 0,i.hideEdges(e),l.default.instance.hideGlass(),i.dropInfo)if(i.customDrop){i.newTabJson=void 0;try{var n=i.customDrop;(0,n.callback)(n.dragging,n.over,n.x,n.y,n.location),null!=i.fnNewNodeDropped&&(i.fnNewNodeDropped(),i.fnNewNodeDropped=void 0)}catch(t){console.error(t)}}else if(void 0!==i.newTabJson){var o=i.doAction(u.default.addNode(i.newTabJson,i.dropInfo.node.getId(),i.dropInfo.location,i.dropInfo.index));null!=i.fnNewNodeDropped&&(i.fnNewNodeDropped(o,t),i.fnNewNodeDropped=void 0),i.newTabJson=void 0}else void 0!==i.dragNode&&i.doAction(u.default.moveNode(i.dragNode.getId(),i.dropInfo.node.getId(),i.dropInfo.location,i.dropInfo.index));i.setState({showHiddenBorder:d.default.CENTER})},i.props.model._setChangeListener(i.onModelChange),i.tabIds=[],i.selfRef=a.createRef(),i.findHeaderBarSizeRef=a.createRef(),i.findTabBarSizeRef=a.createRef(),i.findBorderBarSizeRef=a.createRef(),i.supportsPopout=void 0!==e.supportsPopout?e.supportsPopout:O,i.popoutURL=e.popoutURL?e.popoutURL:"popout.html",i.icons=e.closeIcon?Object.assign({close:e.closeIcon},e.icons):e.icons,i.firstRender=!0,i.state={rect:new p.default(0,0,0,0),calculatedHeaderBarSize:25,calculatedTabBarSize:26,calculatedBorderBarSize:30,editingTab:void 0,showHiddenBorder:d.default.CENTER},i.onDragEnter=i.onDragEnter.bind(i),i}return o(e,t),e.prototype.styleFont=function(t){return this.props.font&&(this.props.font.size&&(t.fontSize=this.props.font.size),this.props.font.family&&(t.fontFamily=this.props.font.family),this.props.font.style&&(t.fontStyle=this.props.font.style),this.props.font.weight&&(t.fontWeight=this.props.font.weight)),t},e.prototype.doAction=function(t){if(void 0!==this.props.onAction){var e=this.props.onAction(t);return void 0!==e?this.props.model.doAction(e):void 0}return this.props.model.doAction(t)},e.prototype.componentDidMount=function(){var t=this;this.updateRect(),this.updateLayoutMetrics(),this.currentDocument=this.selfRef.current.ownerDocument,this.currentWindow=this.currentDocument.defaultView,this.resizeObserver=new ResizeObserver((function(e){t.updateRect(e[0].contentRect)})),this.resizeObserver.observe(this.selfRef.current)},e.prototype.componentDidUpdate=function(){this.updateLayoutMetrics(),this.props.model!==this.previousModel&&(void 0!==this.previousModel&&this.previousModel._setChangeListener(void 0),this.props.model._setChangeListener(this.onModelChange),this.previousModel=this.props.model)},e.prototype.getCurrentDocument=function(){return this.currentDocument},e.prototype.getDomRect=function(){return this.selfRef.current.getBoundingClientRect()},e.prototype.getRootDiv=function(){return this.selfRef.current},e.prototype.isSupportsPopout=function(){return this.supportsPopout},e.prototype.isRealtimeResize=function(){var t;return null!==(t=this.props.realtimeResize)&&void 0!==t&&t},e.prototype.onTabDrag=function(){for(var t,e,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return null===(e=(t=this.props).onTabDrag)||void 0===e?void 0:e.call.apply(e,r([t],i))},e.prototype.getPopoutURL=function(){return this.popoutURL},e.prototype.componentWillUnmount=function(){var t;null===(t=this.resizeObserver)||void 0===t||t.unobserve(this.selfRef.current)},e.prototype.setEditingTab=function(t){this.setState({editingTab:t})},e.prototype.getEditingTab=function(){return this.state.editingTab},e.prototype.render=function(){var t=this;if(this.firstRender)return this.firstRender=!1,a.createElement("div",{ref:this.selfRef,className:this.getClassName(g.CLASSES.FLEXLAYOUT__LAYOUT)},this.metricsElements());this.props.model._setPointerFine(window&&window.matchMedia&&window.matchMedia("(pointer: fine)").matches);var e=[],i=[],n=[],o={},r=[],s={headerBarSize:this.state.calculatedHeaderBarSize,tabBarSize:this.state.calculatedTabBarSize,borderBarSize:this.state.calculatedBorderBarSize};this.props.model._setShowHiddenBorder(this.state.showHiddenBorder),this.centerRect=this.props.model._layout(this.state.rect,s),this.renderBorder(this.props.model.getBorderSet(),e,o,n,r),this.renderChildren("",this.props.model.getRoot(),i,o,n,r),this.edgesShown&&this.repositionEdges(this.state.rect);var d=[],l={};return this.tabIds.forEach((function(t){o[t]&&(d.push(t),l[t]=t)})),this.tabIds=d,Object.keys(o).forEach((function(e){l[e]||t.tabIds.push(e)})),a.createElement("div",{ref:this.selfRef,className:this.getClassName(g.CLASSES.FLEXLAYOUT__LAYOUT),onDragEnter:this.props.onExternalDrag?this.onDragEnter:void 0},i,this.tabIds.map((function(t){return o[t]})),e,r,n,this.metricsElements())},e.prototype.metricsElements=function(){var t=this.styleFont({visibility:"hidden"});return a.createElement(a.Fragment,null,a.createElement("div",{key:"findHeaderBarSize",ref:this.findHeaderBarSizeRef,style:t,className:this.getClassName(g.CLASSES.FLEXLAYOUT__TABSET_HEADER_SIZER)},"FindHeaderBarSize"),a.createElement("div",{key:"findTabBarSize",ref:this.findTabBarSizeRef,style:t,className:this.getClassName(g.CLASSES.FLEXLAYOUT__TABSET_SIZER)},"FindTabBarSize"),a.createElement("div",{key:"findBorderBarSize",ref:this.findBorderBarSizeRef,style:t,className:this.getClassName(g.CLASSES.FLEXLAYOUT__BORDER_SIZER)},"FindBorderBarSize"))},e.prototype.renderBorder=function(t,e,i,n,o){for(var r=0,s=t.getBorders();r<s.length;r++){var d=s[r],l="/border/"+d.getLocation().getName();if(d.isShowing()){e.push(a.createElement(T.BorderTabSet,{key:"border_"+d.getLocation().getName(),path:l,border:d,layout:this,iconFactory:this.props.iconFactory,titleFactory:this.props.titleFactory,icons:this.icons}));for(var u=0,c=0,f=0,p=d._getDrawChildren();f<p.length;f++){var g=p[f];if(g instanceof h.default){var y=l+"/s";o.push(a.createElement(v.Splitter,{key:g.getId(),layout:this,node:g,path:y}))}else if(g instanceof _.default){y=l+"/t"+c++;if(this.supportsPopout&&g.isFloating()){var A=this._getScreenRect(g);n.push(a.createElement(b.FloatingWindow,{key:g.getId(),url:this.popoutURL,rect:A,title:g.getName(),id:g.getId(),onSetWindow:this.onSetWindow,onCloseWindow:this.onCloseWindow},a.createElement(m.FloatingWindowTab,{layout:this,node:g,factory:this.props.factory}))),i[g.getId()]=a.createElement(S.TabFloating,{key:g.getId(),layout:this,path:y,node:g,selected:u===d.getSelected()})}else i[g.getId()]=a.createElement(E.Tab,{key:g.getId(),layout:this,path:y,node:g,selected:u===d.getSelected(),factory:this.props.factory})}u++}}}},e.prototype.renderChildren=function(t,e,i,n,o,r){for(var s=0,d=0,l=0,u=0,c=e._getDrawChildren();u<c.length;u++){var p=c[u];if(p instanceof h.default){var g=t+"/s"+s++;r.push(a.createElement(v.Splitter,{key:p.getId(),layout:this,path:g,node:p}))}else if(p instanceof f.default){g=t+"/ts"+l++;i.push(a.createElement(y.TabSet,{key:p.getId(),layout:this,path:g,node:p,iconFactory:this.props.iconFactory,titleFactory:this.props.titleFactory,icons:this.icons})),this.renderChildren(g,p,i,n,o,r)}else if(p instanceof _.default){g=t+"/t"+d++;var T=p.getParent().getChildren()[p.getParent().getSelected()];if(void 0===T&&console.warn("undefined selectedTab should not happen"),this.supportsPopout&&p.isFloating()){var L=this._getScreenRect(p);o.push(a.createElement(b.FloatingWindow,{key:p.getId(),url:this.popoutURL,rect:L,title:p.getName(),id:p.getId(),onSetWindow:this.onSetWindow,onCloseWindow:this.onCloseWindow},a.createElement(m.FloatingWindowTab,{layout:this,node:p,factory:this.props.factory}))),n[p.getId()]=a.createElement(S.TabFloating,{key:p.getId(),layout:this,path:g,node:p,selected:p===T})}else n[p.getId()]=a.createElement(E.Tab,{key:p.getId(),layout:this,path:g,node:p,selected:p===T,factory:this.props.factory})}else{g=t+(p.getOrientation()===A.Orientation.HORZ?"/r":"/c")+l++;this.renderChildren(g,p,i,n,o,r)}}},e.prototype._getScreenRect=function(t){var e=t.getRect().clone(),i=this.selfRef.current.getBoundingClientRect(),n=Math.min(80,this.currentWindow.outerHeight-this.currentWindow.innerHeight),o=Math.min(80,this.currentWindow.outerWidth-this.currentWindow.innerWidth);return e.x=e.x+i.x+this.currentWindow.screenX+o,e.y=e.y+i.y+this.currentWindow.screenY+n,e},e.prototype.addTabToTabSet=function(t,e){void 0!==this.props.model.getNodeById(t)&&this.doAction(u.default.addNode(e,t,d.default.CENTER,-1))},e.prototype.addTabToActiveTabSet=function(t){var e=this.props.model.getActiveTabset();void 0!==e&&this.doAction(u.default.addNode(t,e.getId(),d.default.CENTER,-1))},e.prototype.addTabWithDragAndDrop=function(t,e,i){this.fnNewNodeDropped=i,this.newTabJson=e,this.dragStart(void 0,t,_.default._fromJson(e,this.props.model,!1),!0,void 0,void 0)},e.prototype.addTabWithDragAndDropIndirect=function(t,e,i){var n=this;this.fnNewNodeDropped=i,this.newTabJson=e,l.default.instance.addGlass(this.onCancelAdd),this.dragDivText=t,this.dragDiv=this.currentDocument.createElement("div"),this.dragDiv.className=this.getClassName(g.CLASSES.FLEXLAYOUT__DRAG_RECT),this.dragDiv.addEventListener("mousedown",this.onDragDivMouseDown),this.dragDiv.addEventListener("touchstart",this.onDragDivMouseDown),this.dragRectRender(this.dragDivText,void 0,this.newTabJson,(function(){if(n.dragDiv){n.dragDiv.style.visibility="visible";var t=n.dragDiv.getBoundingClientRect(),e=new p.default(0,0,null==t?void 0:t.width,null==t?void 0:t.height);e.centerInRect(n.state.rect),n.dragDiv.setAttribute("data-layout-path","/drag-rectangle"),n.dragDiv.style.left=e.x+"px",n.dragDiv.style.top=e.y+"px"}})),this.selfRef.current.appendChild(this.dragDiv)},e.prototype.handleCustomTabDrag=function(t,e,i){var n,o,r,a=this,s=null===(n=this.customDrop)||void 0===n?void 0:n.invalidated,d=null===(o=this.customDrop)||void 0===o?void 0:o.callback;this.customDrop=void 0;var u=this.newTabJson||(this.dragNode instanceof _.default?this.dragNode:void 0);if(u&&(t.node instanceof f.default||t.node instanceof c.default)&&-1===t.index){var h=t.node.getSelectedNode(),T=null==h?void 0:h.getRect();if(h&&(null==T?void 0:T.contains(e.x,e.y))){var v=void 0;try{var E=this.onTabDrag(u,h,e.x-T.x,e.y-T.y,t.location,(function(){return a.onDragMove(i)}));E&&(v={rect:new p.default(E.x+T.x,E.y+T.y,E.width,E.height),callback:E.callback,invalidated:E.invalidated,dragging:u,over:h,x:e.x-T.x,y:e.y-T.y,location:t.location,cursor:E.cursor})}catch(t){console.error(t)}(null==v?void 0:v.callback)===d&&(s=void 0),this.customDrop=v}}this.dropInfo=t,this.outlineDiv.className=this.getClassName(this.customDrop?g.CLASSES.FLEXLAYOUT__OUTLINE_RECT:t.className),this.customDrop?this.customDrop.rect.positionElement(this.outlineDiv):t.rect.positionElement(this.outlineDiv),l.default.instance.setGlassCursorOverride(null===(r=this.customDrop)||void 0===r?void 0:r.cursor),this.outlineDiv.style.visibility="visible";try{null==s||s()}catch(t){console.error(t)}},e.prototype.onDragEnter=function(t){if(!l.default.instance.isDragging()){var e=this.props.onExternalDrag(t);e&&(this.fnNewNodeDropped=e.onDrop,this.newTabJson=e.json,this.dragStart(t,e.dragText,_.default._fromJson(e.json,this.props.model,!1),!0,void 0,void 0))}},e.prototype.checkForBorderToShow=function(t,e){var i=this.props.model._getOuterInnerRects().outer,n=i.getCenter(),o=this.edgeRectWidth,r=this.edgeRectLength/2,a=!1;this.props.model.isEnableEdgeDock()&&this.state.showHiddenBorder===d.default.CENTER&&(e>n.y-r&&e<n.y+r||t>n.x-r&&t<n.x+r)&&(a=!0);var s=d.default.CENTER;a||(t<=i.x+o?s=d.default.LEFT:t>=i.getRight()-o?s=d.default.RIGHT:e<=i.y+o?s=d.default.TOP:e>=i.getBottom()-o&&(s=d.default.BOTTOM)),s!==this.state.showHiddenBorder&&this.setState({showHiddenBorder:s})},e.prototype.showEdges=function(t){if(this.props.model.isEnableEdgeDock()){var e=this.edgeRectLength+"px",i=this.edgeRectWidth+"px";this.edgeTopDiv=this.currentDocument.createElement("div"),this.edgeTopDiv.className=this.getClassName(g.CLASSES.FLEXLAYOUT__EDGE_RECT),this.edgeTopDiv.style.width=e,this.edgeTopDiv.style.height=i,this.edgeTopDiv.style.borderBottomLeftRadius="50px",this.edgeTopDiv.style.borderBottomRightRadius="50px",this.edgeLeftDiv=this.currentDocument.createElement("div"),this.edgeLeftDiv.className=this.getClassName(g.CLASSES.FLEXLAYOUT__EDGE_RECT),this.edgeLeftDiv.style.width=i,this.edgeLeftDiv.style.height=e,this.edgeLeftDiv.style.borderTopRightRadius="50px",this.edgeLeftDiv.style.borderBottomRightRadius="50px",this.edgeBottomDiv=this.currentDocument.createElement("div"),this.edgeBottomDiv.className=this.getClassName(g.CLASSES.FLEXLAYOUT__EDGE_RECT),this.edgeBottomDiv.style.width=e,this.edgeBottomDiv.style.height=i,this.edgeBottomDiv.style.borderTopLeftRadius="50px",this.edgeBottomDiv.style.borderTopRightRadius="50px",this.edgeRightDiv=this.currentDocument.createElement("div"),this.edgeRightDiv.className=this.getClassName(g.CLASSES.FLEXLAYOUT__EDGE_RECT),this.edgeRightDiv.style.width=i,this.edgeRightDiv.style.height=e,this.edgeRightDiv.style.borderTopLeftRadius="50px",this.edgeRightDiv.style.borderBottomLeftRadius="50px",this.repositionEdges(this.state.rect),t.appendChild(this.edgeTopDiv),t.appendChild(this.edgeLeftDiv),t.appendChild(this.edgeBottomDiv),t.appendChild(this.edgeRightDiv),this.edgesShown=!0}},e.prototype.repositionEdges=function(t){if(this.props.model.isEnableEdgeDock()){var e=this.centerRect;this.edgeTopDiv.style.top=e.y+"px",this.edgeTopDiv.style.left=e.x+(e.width-this.edgeRectLength)/2+"px",this.edgeLeftDiv.style.top=e.y+(e.height-this.edgeRectLength)/2+"px",this.edgeLeftDiv.style.left=e.x+"px",this.edgeBottomDiv.style.bottom=t.height-e.getBottom()+"px",this.edgeBottomDiv.style.left=e.x+(e.width-this.edgeRectLength)/2+"px",this.edgeRightDiv.style.top=e.y+(e.height-this.edgeRectLength)/2+"px",this.edgeRightDiv.style.right=t.width-e.getRight()+"px"}},e.prototype.hideEdges=function(t){if(this.props.model.isEnableEdgeDock())try{t.removeChild(this.edgeTopDiv),t.removeChild(this.edgeLeftDiv),t.removeChild(this.edgeBottomDiv),t.removeChild(this.edgeRightDiv)}catch(t){}this.edgesShown=!1},e.prototype.maximize=function(t){this.doAction(u.default.maximizeToggle(t.getId()))},e.prototype.customizeTab=function(t,e){this.props.onRenderTab&&this.props.onRenderTab(t,e)},e.prototype.customizeTabSet=function(t,e){this.props.onRenderTabSet&&this.props.onRenderTabSet(t,e)},e.prototype.i18nName=function(t,e){var i;return this.props.i18nMapper&&(i=this.props.i18nMapper(t,e)),void 0===i&&(i=t+(void 0===e?"":e)),i},e.prototype.getOnRenderFloatingTabPlaceholder=function(){return this.props.onRenderFloatingTabPlaceholder},e.prototype.showContextMenu=function(t,e){this.props.onContextMenu&&this.props.onContextMenu(t,e)},e.prototype.auxMouseClick=function(t,e){this.props.onAuxMouseClick&&this.props.onAuxMouseClick(t,e)},e}(a.Component);e.Layout=R;var D=function(t){return a.useEffect((function(){var e;null===(e=t.onRendered)||void 0===e||e.call(t)}),[t]),a.createElement(a.Fragment,null,t.children)};e.default=R},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BorderTabSet=void 0;var n=i(1),o=i(5),r=i(30),a=i(24),s=i(4),d=i(7),l=i(25),u=i(2),c=i(0),h=i(16);e.BorderTabSet=function(t){for(var e=t.border,i=t.layout,_=t.iconFactory,f=t.titleFactory,p=t.icons,g=t.path,T=n.useRef(null),v=n.useRef(null),E=n.useRef(null),y=l.useTabOverflow(e,u.default.flip(e.getOrientation()),T,E),b=y.selfRef,m=y.position,S=y.userControlledLeft,A=y.hiddenTabs,L=y.onMouseWheel,O=function(t){h.isAuxMouseEvent(t)&&i.auxMouseClick(e,t)},R=function(t){t.stopPropagation()},D=function(t){i.doAction(s.default.selectTab(t.node.getId())),S.current=!1},N=i.getClassName,C=e.getTabHeaderRect().styleWithPosition({}),w=[],B=function(t){var o=e.getSelected()===t,a=e.getChildren()[t];w.push(n.createElement(r.BorderButton,{layout:i,border:e.getLocation().getName(),node:a,path:g+"/tb"+t,key:a.getId(),selected:o,iconFactory:_,titleFactory:f,icons:p}))},x=0;x<e.getChildren().length;x++)B(x);var M=N(c.CLASSES.FLEXLAYOUT__BORDER)+" "+N(c.CLASSES.FLEXLAYOUT__BORDER_+e.getLocation().getName());void 0!==e.getClassName()&&(M+=" "+e.getClassName());var I,U=[],F={headerContent:{},buttons:U,stickyButtons:[],headerButtons:[]};if(i.customizeTabSet(e,F),U=F.buttons,A.length>0){var z=i.i18nName(d.I18nLabel.Overflow_Menu_Tooltip);U.push(n.createElement("button",{key:"overflowbutton",ref:v,className:N(c.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW)+" "+N(c.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW_+e.getLocation().getName()),title:z,onClick:function(t){var e=v.current;a.showPopup(i.getRootDiv(),e,A,D,i.getClassName),t.stopPropagation()},onMouseDown:R,onTouchStart:R},null==p?void 0:p.more,A.length))}var P=e.getSelected();if(-1!==P){var Y=e.getChildren()[P];if(void 0!==Y&&i.isSupportsPopout()&&Y.isEnableFloat()&&!Y.isFloating()){var H=i.i18nName(d.I18nLabel.Float_Tab);U.push(n.createElement("button",{key:"float",title:H,className:N(c.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON)+" "+N(c.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_FLOAT),onClick:function(t){var n=e.getChildren()[e.getSelected()];void 0!==n&&i.doAction(s.default.floatTab(n.getId())),t.stopPropagation()},onMouseDown:R,onTouchStart:R}))}}I=n.createElement("div",{key:"toolbar",ref:T,className:N(c.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR)+" "+N(c.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_+e.getLocation().getName())},U),C=i.styleFont(C);var X={},W=e.getBorderBarSize()-1;return X=e.getLocation()===o.default.LEFT?{right:W,height:W,top:m}:e.getLocation()===o.default.RIGHT?{left:W,height:W,top:m}:{height:W,left:m},n.createElement("div",{ref:b,dir:"ltr",style:C,className:M,"data-layout-path":g,onClick:O,onAuxClick:O,onContextMenu:function(t){i.showContextMenu(e,t)},onWheel:L},n.createElement("div",{style:{height:W},className:N(c.CLASSES.FLEXLAYOUT__BORDER_INNER)+" "+N(c.CLASSES.FLEXLAYOUT__BORDER_INNER_+e.getLocation().getName())},n.createElement("div",{style:X,className:N(c.CLASSES.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER)+" "+N(c.CLASSES.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER_+e.getLocation().getName())},w)),I)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BorderButton=void 0;var n=i(1),o=i(12),r=i(4),a=i(3),s=i(23),d=i(0),l=i(16);e.BorderButton=function(t){var e=t.layout,i=t.node,u=t.selected,c=t.border,h=t.iconFactory,_=t.titleFactory,f=t.icons,p=t.path,g=n.useRef(null),T=function(n){if(!l.isAuxMouseEvent(n)){var r=e.i18nName(o.I18nLabel.Move_Tab,i.getName());t.layout.dragStart(n,r,i,i.isEnableDrag(),E,(function(t){}))}},v=function(t){l.isAuxMouseEvent(t)&&e.auxMouseClick(i,t)},E=function(){e.doAction(r.default.selectTab(i.getId()))},y=function(t){t.stopPropagation()};n.useLayoutEffect((function(){b()}));var b=function(){var t=e.getDomRect(),n=g.current.getBoundingClientRect();i._setTabRect(new a.default(n.left-t.left,n.top-t.top,n.width,n.height))},m=e.getClassName,S=m(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON)+" "+m(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON_+c);S+=u?" "+m(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON__SELECTED):" "+m(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON__UNSELECTED),void 0!==i.getClassName()&&(S+=" "+i.getClassName());var A=h?h(i):void 0,L=i.getName(),O=i.getName();if(void 0!==_){var R=_(i);void 0!==R&&("string"==typeof R?(L=R,O=R):void 0!==R.titleContent?(L=R.titleContent,O=R.name):L=R)}void 0===A&&void 0!==i.getIcon()&&(A=n.createElement("img",{src:i.getIcon(),alt:"leadingContent"}));var D=[],N={leading:A,content:L,name:O,buttons:D};e.customizeTab(i,N),i._setRenderedName(N.name);var C=n.createElement("div",{className:m(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON_CONTENT)},N.content),w=n.createElement("div",{className:m(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON_LEADING)},N.leading);if(i.isEnableClose()){var B=e.i18nName(o.I18nLabel.Close_Tab);D.push(n.createElement("div",{key:"close","data-layout-path":p+"/button/close",title:B,className:m(d.CLASSES.FLEXLAYOUT__BORDER_BUTTON_TRAILING),onMouseDown:y,onClick:function(t){var n;n=i.getCloseType(),u||n===s.ICloseType.Always||n===s.ICloseType.Visible&&window.matchMedia&&window.matchMedia("(hover: hover) and (pointer: fine)").matches?e.doAction(r.default.deleteTab(i.getId())):E()},onTouchStart:y},null==f?void 0:f.close))}return n.createElement("div",{ref:g,style:{},className:S,"data-layout-path":p,onMouseDown:T,onClick:v,onAuxClick:v,onContextMenu:function(t){e.showContextMenu(i,t)},onTouchStart:T,title:i.getHelpText()},w,C,D)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TabButton=void 0;var n=i(1),o=i(7),r=i(4),a=i(3),s=i(23),d=i(0),l=i(16);e.TabButton=function(t){var e=t.layout,i=t.node,u=t.show,c=t.selected,h=t.iconFactory,_=t.titleFactory,f=t.icons,p=t.path,g=n.useRef(null),T=n.useRef(null),v=n.useRef(0),E=function(t){if(!l.isAuxMouseEvent(t)&&!e.getEditingTab()){var n=e.i18nName(o.I18nLabel.Move_Tab,i.getName());e.dragStart(t,n,i,i.isEnableDrag(),b,m)}},y=function(t){l.isAuxMouseEvent(t)&&e.auxMouseClick(i,t)},b=function(){e.doAction(r.default.selectTab(i.getId()))},m=function(t){i.isEnableRename()&&(e.setEditingTab(i),e.getCurrentDocument().body.addEventListener("mousedown",S),e.getCurrentDocument().body.addEventListener("touchstart",S))},S=function(t){t.target!==T.current&&(e.getCurrentDocument().body.removeEventListener("mousedown",S),e.getCurrentDocument().body.removeEventListener("touchstart",S),e.setEditingTab(void 0))},A=function(t){t.stopPropagation()};n.useLayoutEffect((function(){L(),e.getEditingTab()===i&&T.current.select()}));var L=function(){var t=e.getDomRect(),n=g.current.getBoundingClientRect();i._setTabRect(new a.default(n.left-t.left,n.top-t.top,n.width,n.height)),v.current=T.current.getBoundingClientRect().width},O=function(t){t.stopPropagation()},R=e.getClassName,D=i.getParent(),N=d.CLASSES.FLEXLAYOUT__TAB_BUTTON,C=R(N);C+=" "+R(N+"_"+D.getTabLocation()),C+=c?" "+R(N+"--selected"):" "+R(N+"--unselected"),void 0!==i.getClassName()&&(C+=" "+i.getClassName());var w=h?h(i):void 0,B=i.getName(),x=i.getName();if(void 0!==_){var M=_(i);void 0!==M&&("string"==typeof M?(B=M,x=M):void 0!==M.titleContent?(B=M.titleContent,x=M.name):B=M)}void 0===w&&void 0!==i.getIcon()&&(w=n.createElement("img",{src:i.getIcon(),alt:"leadingContent"}));var I=[],U={leading:w,content:B,name:x,buttons:I};e.customizeTab(i,U),i._setRenderedName(U.name);var F=n.createElement("div",{ref:T,className:R(d.CLASSES.FLEXLAYOUT__TAB_BUTTON_CONTENT)},U.content),z=n.createElement("div",{className:R(d.CLASSES.FLEXLAYOUT__TAB_BUTTON_LEADING)},U.leading);if(e.getEditingTab()===i){var P={width:v+"px"};F=n.createElement("input",{style:P,ref:T,className:R(d.CLASSES.FLEXLAYOUT__TAB_BUTTON_TEXTBOX),"data-layout-path":p+"/textbox",type:"text",autoFocus:!0,defaultValue:i.getName(),onKeyDown:function(t){27===t.keyCode?e.setEditingTab(void 0):13===t.keyCode&&(e.setEditingTab(void 0),e.doAction(r.default.renameTab(i.getId(),t.target.value)))},onMouseDown:O,onTouchStart:O})}if(i.isEnableClose()){var Y=e.i18nName(o.I18nLabel.Close_Tab);I.push(n.createElement("div",{key:"close","data-layout-path":p+"/button/close",title:Y,className:R(d.CLASSES.FLEXLAYOUT__TAB_BUTTON_TRAILING),onMouseDown:A,onClick:function(t){var n;n=i.getCloseType(),c||n===s.ICloseType.Always||n===s.ICloseType.Visible&&window.matchMedia&&window.matchMedia("(hover: hover) and (pointer: fine)").matches?e.doAction(r.default.deleteTab(i.getId())):b()},onTouchStart:A},null==f?void 0:f.close))}return n.createElement("div",{ref:g,"data-layout-path":p,style:{visibility:u?"visible":"hidden"},className:C,onMouseDown:E,onClick:y,onAuxClick:y,onContextMenu:function(t){e.showContextMenu(i,t)},onTouchStart:E,title:i.getHelpText()},z,F,I)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Splitter=void 0;var n=i(1),o=i(17),r=i(4),a=i(8),s=i(2),d=i(0);e.Splitter=function(t){var e=t.layout,i=t.node,l=t.path,u=n.useRef([]),c=n.useRef(void 0),h=i.getParent(),_=function(t){o.default.instance.setGlassCursorOverride(i.getOrientation()===s.default.HORZ?"ns-resize":"ew-resize"),o.default.instance.startDrag(t,p,g,v,f,void 0,void 0,e.getCurrentDocument(),e.getRootDiv()),u.current=h._getSplitterBounds(i,!0);var n=e.getRootDiv();c.current=e.getCurrentDocument().createElement("div"),c.current.style.position="absolute",c.current.className=e.getClassName(d.CLASSES.FLEXLAYOUT__SPLITTER_DRAG),c.current.style.cursor=i.getOrientation()===s.default.HORZ?"ns-resize":"ew-resize";var r=i.getRect();i.getOrientation()===s.default.VERT&&r.width<2?r.width=2:i.getOrientation()===s.default.HORZ&&r.height<2&&(r.height=2),r.positionElement(c.current),n.appendChild(c.current)},f=function(t){e.getRootDiv().removeChild(c.current)},p=function(){return!0},g=function(t){var n=e.getDomRect(),o=t.clientX-n.left,r=t.clientY-n.top;c&&(i.getOrientation()===s.default.HORZ?c.current.style.top=E(r-4)+"px":c.current.style.left=E(o-4)+"px"),e.isRealtimeResize()&&T()},T=function(){var t=0;if(c&&(t=i.getOrientation()===s.default.HORZ?c.current.offsetTop:c.current.offsetLeft),h instanceof a.default){var n=h._calculateSplit(i,t);e.doAction(r.default.adjustBorderSplit(i.getParent().getId(),n))}else{var o=h._calculateSplit(i,t);void 0!==o&&e.doAction(r.default.adjustSplit(o))}},v=function(){T(),e.getRootDiv().removeChild(c.current)},E=function(t){var e=u.current,i=t;return t<e[0]&&(i=e[0]),t>e[1]&&(i=e[1]),i},y=e.getClassName,b=i.getRect(),m=b.styleWithPosition({cursor:i.getOrientation()===s.default.HORZ?"ns-resize":"ew-resize"}),S=y(d.CLASSES.FLEXLAYOUT__SPLITTER)+" "+y(d.CLASSES.FLEXLAYOUT__SPLITTER_+i.getOrientation().getName());h instanceof a.default?S+=" "+y(d.CLASSES.FLEXLAYOUT__SPLITTER_BORDER):void 0!==i.getModel().getMaximizedTabset()&&(m.display="none");var A=i.getModel().getSplitterExtra();if(0===A)return n.createElement("div",{style:m,"data-layout-path":l,className:S,onTouchStart:_,onMouseDown:_});var L=b.clone();L.x=0,L.y=0,i.getOrientation()===s.default.VERT?L.width+=A:L.height+=A;var O=L.styleWithPosition({cursor:i.getOrientation()===s.default.HORZ?"ns-resize":"ew-resize"}),R=y(d.CLASSES.FLEXLAYOUT__SPLITTER_EXTRA);return n.createElement("div",{style:m,"data-layout-path":l,className:S},n.createElement("div",{style:O,className:R,onTouchStart:_,onMouseDown:_}))}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Tab=void 0;var n=i(1),o=i(1),r=i(4),a=i(6),s=i(0),d=i(26),l=i(7),u=i(12);e.Tab=function(t){var e=t.layout,i=t.selected,c=t.node,h=t.factory,_=t.path,f=n.useState(!t.node.isEnableRenderOnDemand()||t.selected),p=f[0],g=f[1];n.useLayoutEffect((function(){!p&&i&&g(!0)}));var T,v=function(){var t=c.getParent();t.getType()===a.default.TYPE&&(t.isActive()||e.doAction(r.default.setActiveTabset(t.getId())))},E=e.getClassName,y=c.getParent(),b=c._styleWithPosition({display:i?"block":"none"});y instanceof a.default&&(void 0===c.getModel().getMaximizedTabset()||y.isMaximized()||(b.display="none")),p&&(T=h(c));var m=E(s.CLASSES.FLEXLAYOUT__TAB);return y instanceof u.BorderNode&&(m+=" "+E(s.CLASSES.FLEXLAYOUT__TAB_BORDER),m+=" "+E(s.CLASSES.FLEXLAYOUT__TAB_BORDER_+y.getLocation().getName())),n.createElement("div",{className:m,"data-layout-path":_,onMouseDown:v,onTouchStart:v,style:b},n.createElement(d.ErrorBoundary,{message:t.layout.i18nName(l.I18nLabel.Error_rendering_component)},n.createElement(o.Fragment,null,T)))}},function(t,e,i){"use strict";var n=this&&this.__spreadArray||function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t};Object.defineProperty(e,"__esModule",{value:!0}),e.FloatingWindow=void 0;var o=i(1),r=i(20),a=i(0);e.FloatingWindow=function(t){var e=t.title,i=t.id,s=t.url,d=t.rect,l=t.onCloseWindow,u=t.onSetWindow,c=t.children,h=o.useRef(null),_=o.useState(void 0),f=_[0],p=_[1];return o.useLayoutEffect((function(){var t=d,o=Array.from(window.document.styleSheets).reduce((function(t,e){try{return n(n([],t),[{href:e.href,type:e.type,rules:Array.from(e.cssRules).map((function(t){return t.cssText}))}])}catch(e){return t}}),[]);return h.current=window.open(s,i,"left="+t.x+",top="+t.y+",width="+t.width+",height="+t.height),null!==h.current?(u(i,h.current),window.addEventListener("beforeunload",(function(){h.current&&(h.current.close(),h.current=null)})),h.current.addEventListener("load",(function(){var t=h.current.document;t.title=e;var n,r,s,d,u=t.createElement("div");u.className=a.CLASSES.FLEXLAYOUT__FLOATING_WINDOW_CONTENT,t.body.appendChild(u),(n=t,r=o,s=n.head,d=[],r.forEach((function(t){if(t.href){var e=n.createElement("link");e.type=t.type,e.rel="stylesheet",e.href=t.href,s.appendChild(e),d.push(new Promise((function(t,i){e.onload=function(){return t(!0)}})))}else{var i=n.createElement("style");t.rules.forEach((function(t){return i.appendChild(n.createTextNode(t))})),s.appendChild(i)}})),Promise.all(d)).then((function(){p(u)})),h.current.addEventListener("beforeunload",(function(){l(i)}))}))):(console.warn("Unable to open window "+s),l(i)),function(){setTimeout((function(){h.current&&(h.current.close(),h.current=null)}),0)}}),[]),void 0!==f?r.createPortal(c,f):null}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FloatingWindowTab=void 0;var n=i(1),o=i(26),r=i(7),a=i(1),s=i(0);e.FloatingWindowTab=function(t){var e=t.layout,i=t.node,d=t.factory,l=e.getClassName,u=d(i);return n.createElement("div",{className:l(s.CLASSES.FLEXLAYOUT__FLOATING_WINDOW_TAB)},n.createElement(o.ErrorBoundary,{message:t.layout.i18nName(r.I18nLabel.Error_rendering_component)},n.createElement(a.Fragment,null,u)))}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TabFloating=void 0;var n=i(1),o=i(4),r=i(6),a=i(0),s=i(7);e.TabFloating=function(t){var e=t.layout,i=t.selected,d=t.node,l=t.path,u=function(){d.getWindow()&&d.getWindow().focus()},c=function(){e.doAction(o.default.unFloatTab(d.getId()))},h=function(){var t=d.getParent();t.getType()===r.default.TYPE&&(t.isActive()||e.doAction(o.default.setActiveTabset(t.getId())))},_=e.getClassName,f=d._styleWithPosition({display:i?"flex":"none"}),p=e.i18nName(s.I18nLabel.Floating_Window_Message),g=e.i18nName(s.I18nLabel.Floating_Window_Show_Window),T=e.i18nName(s.I18nLabel.Floating_Window_Dock_Window),v=e.getOnRenderFloatingTabPlaceholder();return v?n.createElement("div",{className:_(a.CLASSES.FLEXLAYOUT__TAB_FLOATING),onMouseDown:h,onTouchStart:h,style:f},v(c,u)):n.createElement("div",{className:_(a.CLASSES.FLEXLAYOUT__TAB_FLOATING),"data-layout-path":l,onMouseDown:h,onTouchStart:h,style:f},n.createElement("div",{className:_(a.CLASSES.FLEXLAYOUT__TAB_FLOATING_INNER)},n.createElement("div",null,p),n.createElement("div",null,n.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),u()}},g)),n.createElement("div",null,n.createElement("a",{href:"#",onClick:function(t){t.preventDefault(),c()}},T))))}},function(t,e,i){"use strict";var n;i.r(e),i.d(e,"v1",(function(){return p})),i.d(e,"v3",(function(){return L})),i.d(e,"v4",(function(){return O})),i.d(e,"v5",(function(){return N})),i.d(e,"NIL",(function(){return C})),i.d(e,"version",(function(){return w})),i.d(e,"validate",(function(){return s})),i.d(e,"stringify",(function(){return h})),i.d(e,"parse",(function(){return g}));var o=new Uint8Array(16);function r(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)}var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var s=function(t){return"string"==typeof t&&a.test(t)},d=[],l=0;l<256;++l)d.push((l+256).toString(16).substr(1));var u,c,h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(d[t[e+0]]+d[t[e+1]]+d[t[e+2]]+d[t[e+3]]+"-"+d[t[e+4]]+d[t[e+5]]+"-"+d[t[e+6]]+d[t[e+7]]+"-"+d[t[e+8]]+d[t[e+9]]+"-"+d[t[e+10]]+d[t[e+11]]+d[t[e+12]]+d[t[e+13]]+d[t[e+14]]+d[t[e+15]]).toLowerCase();if(!s(i))throw TypeError("Stringified UUID is invalid");return i},_=0,f=0;var p=function(t,e,i){var n=e&&i||0,o=e||new Array(16),a=(t=t||{}).node||u,s=void 0!==t.clockseq?t.clockseq:c;if(null==a||null==s){var d=t.random||(t.rng||r)();null==a&&(a=u=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==s&&(s=c=16383&(d[6]<<8|d[7]))}var l=void 0!==t.msecs?t.msecs:Date.now(),p=void 0!==t.nsecs?t.nsecs:f+1,g=l-_+(p-f)/1e4;if(g<0&&void 0===t.clockseq&&(s=s+1&16383),(g<0||l>_)&&void 0===t.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_=l,f=p,c=s;var T=(1e4*(268435455&(l+=122192928e5))+p)%4294967296;o[n++]=T>>>24&255,o[n++]=T>>>16&255,o[n++]=T>>>8&255,o[n++]=255&T;var v=l/4294967296*1e4&268435455;o[n++]=v>>>8&255,o[n++]=255&v,o[n++]=v>>>24&15|16,o[n++]=v>>>16&255,o[n++]=s>>>8|128,o[n++]=255&s;for(var E=0;E<6;++E)o[n+E]=a[E];return e||h(o)};var g=function(t){if(!s(t))throw TypeError("Invalid UUID");var e,i=new Uint8Array(16);return i[0]=(e=parseInt(t.slice(0,8),16))>>>24,i[1]=e>>>16&255,i[2]=e>>>8&255,i[3]=255&e,i[4]=(e=parseInt(t.slice(9,13),16))>>>8,i[5]=255&e,i[6]=(e=parseInt(t.slice(14,18),16))>>>8,i[7]=255&e,i[8]=(e=parseInt(t.slice(19,23),16))>>>8,i[9]=255&e,i[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,i[11]=e/4294967296&255,i[12]=e>>>24&255,i[13]=e>>>16&255,i[14]=e>>>8&255,i[15]=255&e,i};var T=function(t,e,i){function n(t,n,o,r){if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));for(var e=[],i=0;i<t.length;++i)e.push(t.charCodeAt(i));return e}(t)),"string"==typeof n&&(n=g(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+t.length);if(a.set(n),a.set(t,n.length),(a=i(a))[6]=15&a[6]|e,a[8]=63&a[8]|128,o){r=r||0;for(var s=0;s<16;++s)o[r+s]=a[s];return o}return h(a)}try{n.name=t}catch(t){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n};function v(t){return 14+(t+64>>>9<<4)+1}function E(t,e){var i=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(i>>16)<<16|65535&i}function y(t,e,i,n,o,r){return E((a=E(E(e,t),E(n,r)))<<(s=o)|a>>>32-s,i);var a,s}function b(t,e,i,n,o,r,a){return y(e&i|~e&n,t,e,o,r,a)}function m(t,e,i,n,o,r,a){return y(e&n|i&~n,t,e,o,r,a)}function S(t,e,i,n,o,r,a){return y(e^i^n,t,e,o,r,a)}function A(t,e,i,n,o,r,a){return y(i^(e|~n),t,e,o,r,a)}var L=T("v3",48,(function(t){if("string"==typeof t){var e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(var i=0;i<e.length;++i)t[i]=e.charCodeAt(i)}return function(t){for(var e=[],i=32*t.length,n=0;n<i;n+=8){var o=t[n>>5]>>>n%32&255,r=parseInt("0123456789abcdef".charAt(o>>>4&15)+"0123456789abcdef".charAt(15&o),16);e.push(r)}return e}(function(t,e){t[e>>5]|=128<<e%32,t[v(e)-1]=e;for(var i=1732584193,n=-271733879,o=-1732584194,r=271733878,a=0;a<t.length;a+=16){var s=i,d=n,l=o,u=r;i=b(i,n,o,r,t[a],7,-680876936),r=b(r,i,n,o,t[a+1],12,-389564586),o=b(o,r,i,n,t[a+2],17,606105819),n=b(n,o,r,i,t[a+3],22,-1044525330),i=b(i,n,o,r,t[a+4],7,-176418897),r=b(r,i,n,o,t[a+5],12,1200080426),o=b(o,r,i,n,t[a+6],17,-1473231341),n=b(n,o,r,i,t[a+7],22,-45705983),i=b(i,n,o,r,t[a+8],7,1770035416),r=b(r,i,n,o,t[a+9],12,-1958414417),o=b(o,r,i,n,t[a+10],17,-42063),n=b(n,o,r,i,t[a+11],22,-1990404162),i=b(i,n,o,r,t[a+12],7,1804603682),r=b(r,i,n,o,t[a+13],12,-40341101),o=b(o,r,i,n,t[a+14],17,-1502002290),n=b(n,o,r,i,t[a+15],22,1236535329),i=m(i,n,o,r,t[a+1],5,-165796510),r=m(r,i,n,o,t[a+6],9,-1069501632),o=m(o,r,i,n,t[a+11],14,643717713),n=m(n,o,r,i,t[a],20,-373897302),i=m(i,n,o,r,t[a+5],5,-701558691),r=m(r,i,n,o,t[a+10],9,38016083),o=m(o,r,i,n,t[a+15],14,-660478335),n=m(n,o,r,i,t[a+4],20,-405537848),i=m(i,n,o,r,t[a+9],5,568446438),r=m(r,i,n,o,t[a+14],9,-1019803690),o=m(o,r,i,n,t[a+3],14,-187363961),n=m(n,o,r,i,t[a+8],20,1163531501),i=m(i,n,o,r,t[a+13],5,-1444681467),r=m(r,i,n,o,t[a+2],9,-51403784),o=m(o,r,i,n,t[a+7],14,1735328473),n=m(n,o,r,i,t[a+12],20,-1926607734),i=S(i,n,o,r,t[a+5],4,-378558),r=S(r,i,n,o,t[a+8],11,-2022574463),o=S(o,r,i,n,t[a+11],16,1839030562),n=S(n,o,r,i,t[a+14],23,-35309556),i=S(i,n,o,r,t[a+1],4,-1530992060),r=S(r,i,n,o,t[a+4],11,1272893353),o=S(o,r,i,n,t[a+7],16,-155497632),n=S(n,o,r,i,t[a+10],23,-1094730640),i=S(i,n,o,r,t[a+13],4,681279174),r=S(r,i,n,o,t[a],11,-358537222),o=S(o,r,i,n,t[a+3],16,-722521979),n=S(n,o,r,i,t[a+6],23,76029189),i=S(i,n,o,r,t[a+9],4,-640364487),r=S(r,i,n,o,t[a+12],11,-421815835),o=S(o,r,i,n,t[a+15],16,530742520),n=S(n,o,r,i,t[a+2],23,-995338651),i=A(i,n,o,r,t[a],6,-198630844),r=A(r,i,n,o,t[a+7],10,1126891415),o=A(o,r,i,n,t[a+14],15,-1416354905),n=A(n,o,r,i,t[a+5],21,-57434055),i=A(i,n,o,r,t[a+12],6,1700485571),r=A(r,i,n,o,t[a+3],10,-1894986606),o=A(o,r,i,n,t[a+10],15,-1051523),n=A(n,o,r,i,t[a+1],21,-2054922799),i=A(i,n,o,r,t[a+8],6,1873313359),r=A(r,i,n,o,t[a+15],10,-30611744),o=A(o,r,i,n,t[a+6],15,-1560198380),n=A(n,o,r,i,t[a+13],21,1309151649),i=A(i,n,o,r,t[a+4],6,-145523070),r=A(r,i,n,o,t[a+11],10,-1120210379),o=A(o,r,i,n,t[a+2],15,718787259),n=A(n,o,r,i,t[a+9],21,-343485551),i=E(i,s),n=E(n,d),o=E(o,l),r=E(r,u)}return[i,n,o,r]}(function(t){if(0===t.length)return[];for(var e=8*t.length,i=new Uint32Array(v(e)),n=0;n<e;n+=8)i[n>>5]|=(255&t[n/8])<<n%32;return i}(t),8*t.length))}));var O=function(t,e,i){var n=(t=t||{}).random||(t.rng||r)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){i=i||0;for(var o=0;o<16;++o)e[i+o]=n[o];return e}return h(n)};function R(t,e,i,n){switch(t){case 0:return e&i^~e&n;case 1:return e^i^n;case 2:return e&i^e&n^i&n;case 3:return e^i^n}}function D(t,e){return t<<e|t>>>32-e}var N=T("v5",80,(function(t){var e=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var n=unescape(encodeURIComponent(t));t=[];for(var o=0;o<n.length;++o)t.push(n.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var r=t.length/4+2,a=Math.ceil(r/16),s=new Array(a),d=0;d<a;++d){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=t[64*d+4*u]<<24|t[64*d+4*u+1]<<16|t[64*d+4*u+2]<<8|t[64*d+4*u+3];s[d]=l}s[a-1][14]=8*(t.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(t.length-1)&4294967295;for(var c=0;c<a;++c){for(var h=new Uint32Array(80),_=0;_<16;++_)h[_]=s[c][_];for(var f=16;f<80;++f)h[f]=D(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var p=i[0],g=i[1],T=i[2],v=i[3],E=i[4],y=0;y<80;++y){var b=Math.floor(y/20),m=D(p,5)+R(b,g,T,v)+E+e[b]+h[y]>>>0;E=v,v=T,T=D(g,30)>>>0,g=p,p=m}i[0]=i[0]+p>>>0,i[1]=i[1]+g>>>0,i[2]=i[2]+T>>>0,i[3]=i[3]+v>>>0,i[4]=i[4]+E>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]})),C="00000000-0000-0000-0000-000000000000";var w=function(t){if(!s(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}}])}));
|