| 201 | var Me=function(e,t){return(Me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function we(e,t){function n(){this.constructor=e}Me(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Le,xe=function(){return(xe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Ee=function(){function e(e){this._label="",this._caption="",this._mnemonic=-1,this._iconClass="",this._iconLabel="",this._className="",this._closable=!1,this._changed=new ne.Signal(this),this.owner=e.owner,void 0!==e.label&&(this._label=e.label),void 0!==e.mnemonic&&(this._mnemonic=e.mnemonic),void 0!==e.icon?"string"==typeof e.icon?(this._icon=null,this._iconClass=e.icon):this._icon=e.icon:this._icon=null,void 0!==e.iconClass&&(this._iconClass=e.iconClass),void 0!==e.iconLabel&&(this._iconLabel=e.iconLabel),void 0!==e.iconRenderer&&(this._icon=e.iconRenderer),void 0!==e.caption&&(this._caption=e.caption),void 0!==e.className&&(this._className=e.className),void 0!==e.closable&&(this._closable=e.closable),this._dataset=e.dataset||{}}return Object.defineProperty(e.prototype,"changed",{get:function(){return this._changed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},set:function(e){this._label!==e&&(this._label=e,this._changed.emit(void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mnemonic",{get:function(){return this._mnemonic},set:function(e){this._mnemonic!==e&&(this._mnemonic=e,this._changed.emit(void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"icon",{get:function(){return null===this._icon?this.iconClass:this._icon},set:function(e){if("string"==typeof e)this._icon=null,this.iconClass=e;else{if(this._icon===e)return;this._icon=e,this._changed.emit(void 0)}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconClass",{get:function(){return this._iconClass},set:function(e){this._iconClass!==e&&(this._iconClass=e,this._changed.emit(void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconLabel",{get:function(){return this._iconLabel},set:function(e){this._iconLabel!==e&&(this._iconLabel=e,this._changed.emit(void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconRenderer",{get:function(){return this._icon||void 0},set:function(e){this.icon=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"caption",{get:function(){return this._caption},set:function(e){this._caption!==e&&(this._caption=e,this._changed.emit(void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){return this._className},set:function(e){this._className!==e&&(this._className=e,this._changed.emit(void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"closable",{get:function(){return this._closable},set:function(e){this._closable!==e&&(this._closable=e,this._changed.emit(void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataset",{get:function(){return this._dataset},set:function(e){this._dataset!==e&&(this._dataset=e,this._changed.emit(void 0))},enumerable:!0,configurable:!0}),e}(),Ce=function(){function e(e){void 0===e&&(e={}),this._flags=0,this._layout=null,this._parent=null,this._disposed=new ne.Signal(this),this.node=Le.createNode(e),this.addClass("lm-Widget"),this.addClass("p-Widget")}return e.prototype.dispose=function(){this.isDisposed||(this.setFlag(e.Flag.IsDisposed),this._disposed.emit(void 0),this.parent?this.parent=null:this.isAttached&&e.detach(this),this._layout&&(this._layout.dispose(),this._layout=null),ne.Signal.clearData(this),ee.c.clearData(this),te.AttachedProperty.clearData(this))},Object.defineProperty(e.prototype,"disposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisposed",{get:function(){return this.testFlag(e.Flag.IsDisposed)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAttached",{get:function(){return this.testFlag(e.Flag.IsAttached)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isHidden",{get:function(){return this.testFlag(e.Flag.IsHidden)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVisible",{get:function(){return this.testFlag(e.Flag.IsVisible)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return Le.titleProperty.get(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.node.id},set:function(e){this.node.id=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataset",{get:function(){return this.node.dataset},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},set:function(t){if(this._parent!==t){if(t&&this.contains(t))throw new Error("Invalid parent widget.");if(this._parent&&!this._parent.isDisposed){var n=new e.ChildMessage("child-removed",this);ee.c.sendMessage(this._parent,n)}if(this._parent=t,this._parent&&!this._parent.isDisposed){n=new e.ChildMessage("child-added",this);ee.c.sendMessage(this._parent,n)}this.isDisposed||ee.c.sendMessage(this,e.Msg.ParentChanged)}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){return this._layout},set:function(t){if(this._layout!==t){if(this.testFlag(e.Flag.DisallowLayout))throw new Error("Cannot set widget layout.");if(this._layout)throw new Error("Cannot change widget layout.");if(t.parent)throw new Error("Cannot change layout parent.");this._layout=t,t.parent=this}},enumerable:!0,configurable:!0}),e.prototype.children=function(){return this._layout?this._layout.iter():Object(X.empty)()},e.prototype.contains=function(e){for(var t=e;t;t=t._parent)if(t===this)return!0;return!1},e.prototype.hasClass=function(e){return this.node.classList.contains(e)},e.prototype.addClass=function(e){this.node.classList.add(e)},e.prototype.removeClass=function(e){this.node.classList.remove(e)},e.prototype.toggleClass=function(e,t){return!0===t?(this.node.classList.add(e),!0):!1===t?(this.node.classList.remove(e),!1):this.node.classList.toggle(e)},e.prototype.update=function(){ee.c.postMessage(this,e.Msg.UpdateRequest)},e.prototype.fit=function(){ee.c.postMessage(this,e.Msg.FitRequest)},e.prototype.activate=function(){ee.c.postMessage(this,e.Msg.ActivateRequest)},e.prototype.close=function(){ee.c.sendMessage(this,e.Msg.CloseRequest)},e.prototype.show=function(){if(this.testFlag(e.Flag.IsHidden)&&(!this.isAttached||this.parent&&!this.parent.isVisible||ee.c.sendMessage(this,e.Msg.BeforeShow),this.clearFlag(e.Flag.IsHidden),this.removeClass("lm-mod-hidden"),this.removeClass("p-mod-hidden"),!this.isAttached||this.parent&&!this.parent.isVisible||ee.c.sendMessage(this,e.Msg.AfterShow),this.parent)){var t=new e.ChildMessage("child-shown",this);ee.c.sendMessage(this.parent,t)}},e.prototype.hide=function(){if(!this.testFlag(e.Flag.IsHidden)&&(!this.isAttached||this.parent&&!this.parent.isVisible||ee.c.sendMessage(this,e.Msg.BeforeHide),this.setFlag(e.Flag.IsHidden),this.addClass("lm-mod-hidden"),this.addClass("p-mod-hidden"),!this.isAttached||this.parent&&!this.parent.isVisible||ee.c.sendMessage(this,e.Msg.AfterHide),this.parent)){var t=new e.ChildMessage("child-hidden",this);ee.c.sendMessage(this.parent,t)}},e.prototype.setHidden=function(e){e?this.hide():this.show()},e.prototype.testFlag=function(e){return 0!=(this._flags&e)},e.prototype.setFlag=function(e){this._flags|=e},e.prototype.clearFlag=function(e){this._flags&=~e},e.prototype.processMessage=function(t){switch(t.type){case"resize":this.notifyLayout(t),this.onResize(t);break;case"update-request":this.notifyLayout(t),this.onUpdateRequest(t);break;case"fit-request":this.notifyLayout(t),this.onFitRequest(t);break;case"before-show":this.notifyLayout(t),this.onBeforeShow(t);break;case"after-show":this.setFlag(e.Flag.IsVisible),this.notifyLayout(t),this.onAfterShow(t);break;case"before-hide":this.notifyLayout(t),this.onBeforeHide(t);break;case"after-hide":this.clearFlag(e.Flag.IsVisible),this.notifyLayout(t),this.onAfterHide(t);break;case"before-attach":this.notifyLayout(t),this.onBeforeAttach(t);break;case"after-attach":this.isHidden||this.parent&&!this.parent.isVisible||this.setFlag(e.Flag.IsVisible),this.setFlag(e.Flag.IsAttached),this.notifyLayout(t),this.onAfterAttach(t);break;case"before-detach":this.notifyLayout(t),this.onBeforeDetach(t);break;case"after-detach":this.clearFlag(e.Flag.IsVisible),this.clearFlag(e.Flag.IsAttached),this.notifyLayout(t),this.onAfterDetach(t);break;case"activate-request":this.notifyLayout(t),this.onActivateRequest(t);break;case"close-request":this.notifyLayout(t),this.onCloseRequest(t);break;case"child-added":this.notifyLayout(t),this.onChildAdded(t);break;case"child-removed":this.notifyLayout(t),this.onChildRemoved(t);break;default:this.notifyLayout(t)}},e.prototype.notifyLayout=function(e){this._layout&&this._layout.processParentMessage(e)},e.prototype.onCloseRequest=function(t){this.parent?this.parent=null:this.isAttached&&e.detach(this)},e.prototype.onResize=function(e){},e.prototype.onUpdateRequest=function(e){},e.prototype.onFitRequest=function(e){},e.prototype.onActivateRequest=function(e){},e.prototype.onBeforeShow=function(e){},e.prototype.onAfterShow=function(e){},e.prototype.onBeforeHide=function(e){},e.prototype.onAfterHide=function(e){},e.prototype.onBeforeAttach=function(e){},e.prototype.onAfterAttach=function(e){},e.prototype.onBeforeDetach=function(e){},e.prototype.onAfterDetach=function(e){},e.prototype.onChildAdded=function(e){},e.prototype.onChildRemoved=function(e){},e}();!function(e){!function(e){e[e.IsDisposed=1]="IsDisposed",e[e.IsAttached=2]="IsAttached",e[e.IsHidden=4]="IsHidden",e[e.IsVisible=8]="IsVisible",e[e.DisallowLayout=16]="DisallowLayout"}(e.Flag||(e.Flag={})),function(e){e.BeforeShow=new ee.b("before-show"),e.AfterShow=new ee.b("after-show"),e.BeforeHide=new ee.b("before-hide"),e.AfterHide=new ee.b("after-hide"),e.BeforeAttach=new ee.b("before-attach"),e.AfterAttach=new ee.b("after-attach"),e.BeforeDetach=new ee.b("before-detach"),e.AfterDetach=new ee.b("after-detach"),e.ParentChanged=new ee.b("parent-changed"),e.UpdateRequest=new ee.a("update-request"),e.FitRequest=new ee.a("fit-request"),e.ActivateRequest=new ee.a("activate-request"),e.CloseRequest=new ee.a("close-request")}(e.Msg||(e.Msg={}));var t=function(e){function t(t,n){var r=e.call(this,t)||this;return r.child=n,r}return we(t,e),t}(ee.b);e.ChildMessage=t;var n=function(e){function t(t,n){var r=e.call(this,"resize")||this;return r.width=t,r.height=n,r}return we(t,e),t}(ee.b);e.ResizeMessage=n,function(e){e.UnknownSize=new e(-1,-1)}(n=e.ResizeMessage||(e.ResizeMessage={})),e.attach=function(t,n,r){if(void 0===r&&(r=null),t.parent)throw new Error("Cannot attach a child widget.");if(t.isAttached||document.body.contains(t.node))throw new Error("Widget is already attached.");if(!document.body.contains(n))throw new Error("Host is not attached.");ee.c.sendMessage(t,e.Msg.BeforeAttach),n.insertBefore(t.node,r),ee.c.sendMessage(t,e.Msg.AfterAttach)},e.detach=function(t){if(t.parent)throw new Error("Cannot detach a child widget.");if(!t.isAttached||!document.body.contains(t.node))throw new Error("Widget is not attached.");ee.c.sendMessage(t,e.Msg.BeforeDetach),t.node.parentNode.removeChild(t.node),ee.c.sendMessage(t,e.Msg.AfterDetach)}}(Ce||(Ce={})),function(e){e.titleProperty=new te.AttachedProperty({name:"title",create:function(e){return new Ee({owner:e})}}),e.createNode=function(e){return e.node||document.createElement("div")}}(Le||(Le={}));var Te,Se=function(){function e(e){void 0===e&&(e={}),this._disposed=!1,this._parent=null,this._fitPolicy=e.fitPolicy||"set-min-size"}return e.prototype.dispose=function(){this._parent=null,this._disposed=!0,ne.Signal.clearData(this),te.AttachedProperty.clearData(this)},Object.defineProperty(e.prototype,"isDisposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},set:function(e){if(this._parent!==e){if(this._parent)throw new Error("Cannot change parent widget.");if(e.layout!==this)throw new Error("Invalid parent widget.");this._parent=e,this.init()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fitPolicy",{get:function(){return this._fitPolicy},set:function(e){if(this._fitPolicy!==e&&(this._fitPolicy=e,this._parent)){var t=this._parent.node.style;t.minWidth="",t.minHeight="",t.maxWidth="",t.maxHeight="",this._parent.fit()}},enumerable:!0,configurable:!0}),e.prototype.processParentMessage=function(e){switch(e.type){case"resize":this.onResize(e);break;case"update-request":this.onUpdateRequest(e);break;case"fit-request":this.onFitRequest(e);break;case"before-show":this.onBeforeShow(e);break;case"after-show":this.onAfterShow(e);break;case"before-hide":this.onBeforeHide(e);break;case"after-hide":this.onAfterHide(e);break;case"before-attach":this.onBeforeAttach(e);break;case"after-attach":this.onAfterAttach(e);break;case"before-detach":this.onBeforeDetach(e);break;case"after-detach":this.onAfterDetach(e);break;case"child-removed":this.onChildRemoved(e);break;case"child-shown":this.onChildShown(e);break;case"child-hidden":this.onChildHidden(e)}},e.prototype.init=function(){var e=this;Object(X.each)(this,(function(t){t.parent=e.parent}))},e.prototype.onResize=function(e){Object(X.each)(this,(function(e){ee.c.sendMessage(e,Ce.ResizeMessage.UnknownSize)}))},e.prototype.onUpdateRequest=function(e){Object(X.each)(this,(function(e){ee.c.sendMessage(e,Ce.ResizeMessage.UnknownSize)}))},e.prototype.onBeforeAttach=function(e){Object(X.each)(this,(function(t){ee.c.sendMessage(t,e)}))},e.prototype.onAfterAttach=function(e){Object(X.each)(this,(function(t){ee.c.sendMessage(t,e)}))},e.prototype.onBeforeDetach=function(e){Object(X.each)(this,(function(t){ee.c.sendMessage(t,e)}))},e.prototype.onAfterDetach=function(e){Object(X.each)(this,(function(t){ee.c.sendMessage(t,e)}))},e.prototype.onBeforeShow=function(e){Object(X.each)(this,(function(t){t.isHidden||ee.c.sendMessage(t,e)}))},e.prototype.onAfterShow=function(e){Object(X.each)(this,(function(t){t.isHidden||ee.c.sendMessage(t,e)}))},e.prototype.onBeforeHide=function(e){Object(X.each)(this,(function(t){t.isHidden||ee.c.sendMessage(t,e)}))},e.prototype.onAfterHide=function(e){Object(X.each)(this,(function(t){t.isHidden||ee.c.sendMessage(t,e)}))},e.prototype.onChildRemoved=function(e){this.removeWidget(e.child)},e.prototype.onFitRequest=function(e){},e.prototype.onChildShown=function(e){},e.prototype.onChildHidden=function(e){},e}();(Te=Se||(Se={})).getHorizontalAlignment=function(e){return Ae.horizontalAlignmentProperty.get(e)},Te.setHorizontalAlignment=function(e,t){Ae.horizontalAlignmentProperty.set(e,t)},Te.getVerticalAlignment=function(e){return Ae.verticalAlignmentProperty.get(e)},Te.setVerticalAlignment=function(e,t){Ae.verticalAlignmentProperty.set(e,t)};var Ae,ke=function(){function e(e){this._top=NaN,this._left=NaN,this._width=NaN,this._height=NaN,this._minWidth=0,this._minHeight=0,this._maxWidth=1/0,this._maxHeight=1/0,this._disposed=!1,this.widget=e,this.widget.node.style.position="absolute"}return e.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var e=this.widget.node.style;e.position="",e.top="",e.left="",e.width="",e.height=""}},Object.defineProperty(e.prototype,"minWidth",{get:function(){return this._minWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minHeight",{get:function(){return this._minHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxWidth",{get:function(){return this._maxWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxHeight",{get:function(){return this._maxHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isHidden",{get:function(){return this.widget.isHidden},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVisible",{get:function(){return this.widget.isVisible},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAttached",{get:function(){return this.widget.isAttached},enumerable:!0,configurable:!0}),e.prototype.fit=function(){var e=F.sizeLimits(this.widget.node);this._minWidth=e.minWidth,this._minHeight=e.minHeight,this._maxWidth=e.maxWidth,this._maxHeight=e.maxHeight},e.prototype.update=function(e,t,n,r){var i=Math.max(this._minWidth,Math.min(n,this._maxWidth)),o=Math.max(this._minHeight,Math.min(r,this._maxHeight));if(i<n)switch(Se.getHorizontalAlignment(this.widget)){case"left":break;case"center":e+=(n-i)/2;break;case"right":e+=n-i;break;default:throw"unreachable"}if(o<r)switch(Se.getVerticalAlignment(this.widget)){case"top":break;case"center":t+=(r-o)/2;break;case"bottom":t+=r-o;break;default:throw"unreachable"}var a=!1,s=this.widget.node.style;if(this._top!==t&&(this._top=t,s.top=t+"px"),this._left!==e&&(this._left=e,s.left=e+"px"),this._width!==i&&(a=!0,this._width=i,s.width=i+"px"),this._height!==o&&(a=!0,this._height=o,s.height=o+"px"),a){var l=new Ce.ResizeMessage(i,o);ee.c.sendMessage(this.widget,l)}},e}();!function(e){function t(e){e.parent&&e.parent.layout&&e.parent.update()}e.horizontalAlignmentProperty=new te.AttachedProperty({name:"horizontalAlignment",create:function(){return"center"},changed:t}),e.verticalAlignmentProperty=new te.AttachedProperty({name:"verticalAlignment",create:function(){return"top"},changed:t})}(Ae||(Ae={}));var De,Ie,Oe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._widgets=[],t}return we(t,e),t.prototype.dispose=function(){for(;this._widgets.length>0;)this._widgets.pop().dispose();e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"widgets",{get:function(){return this._widgets},enumerable:!0,configurable:!0}),t.prototype.iter=function(){return Object(X.iter)(this._widgets)},t.prototype.addWidget=function(e){this.insertWidget(this._widgets.length,e)},t.prototype.insertWidget=function(e,t){t.parent=this.parent;var n=this._widgets.indexOf(t),r=Math.max(0,Math.min(e,this._widgets.length));if(-1===n)return X.ArrayExt.insert(this._widgets,r,t),void(this.parent&&this.attachWidget(r,t));r===this._widgets.length&&r--,n!==r&&(X.ArrayExt.move(this._widgets,n,r),this.parent&&this.moveWidget(n,r,t))},t.prototype.removeWidget=function(e){this.removeWidgetAt(this._widgets.indexOf(e))},t.prototype.removeWidgetAt=function(e){var t=X.ArrayExt.removeAt(this._widgets,e);t&&this.parent&&this.detachWidget(e,t)},t.prototype.init=function(){var t=this;e.prototype.init.call(this),Object(X.each)(this,(function(e,n){t.attachWidget(n,e)}))},t.prototype.attachWidget=function(e,t){var n=this.parent.node.children[e];this.parent.isAttached&&ee.c.sendMessage(t,Ce.Msg.BeforeAttach),this.parent.node.insertBefore(t.node,n),this.parent.isAttached&&ee.c.sendMessage(t,Ce.Msg.AfterAttach)},t.prototype.moveWidget=function(e,t,n){this.parent.isAttached&&ee.c.sendMessage(n,Ce.Msg.BeforeDetach),this.parent.node.removeChild(n.node),this.parent.isAttached&&ee.c.sendMessage(n,Ce.Msg.AfterDetach);var r=this.parent.node.children[t];this.parent.isAttached&&ee.c.sendMessage(n,Ce.Msg.BeforeAttach),this.parent.node.insertBefore(n.node,r),this.parent.isAttached&&ee.c.sendMessage(n,Ce.Msg.AfterAttach)},t.prototype.detachWidget=function(e,t){this.parent.isAttached&&ee.c.sendMessage(t,Ce.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&ee.c.sendMessage(t,Ce.Msg.AfterDetach)},t}(Se),Ne=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n._fixed=0,n._spacing=4,n._dirty=!1,n._sizers=[],n._items=[],n._box=null,n._alignment="start",n._direction="top-to-bottom",void 0!==t.direction&&(n._direction=t.direction),void 0!==t.alignment&&(n._alignment=t.alignment),void 0!==t.spacing&&(n._spacing=Ie.clampSpacing(t.spacing)),n}return we(t,e),t.prototype.dispose=function(){Object(X.each)(this._items,(function(e){e.dispose()})),this._box=null,this._items.length=0,this._sizers.length=0,e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"direction",{get:function(){return this._direction},set:function(e){this._direction!==e&&(this._direction=e,this.parent&&(this.parent.dataset.direction=e,this.parent.fit()))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alignment",{get:function(){return this._alignment},set:function(e){this._alignment!==e&&(this._alignment=e,this.parent&&(this.parent.dataset.alignment=e,this.parent.update()))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"spacing",{get:function(){return this._spacing},set:function(e){e=Ie.clampSpacing(e),this._spacing!==e&&(this._spacing=e,this.parent&&this.parent.fit())},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.parent.dataset.direction=this.direction,this.parent.dataset.alignment=this.alignment,e.prototype.init.call(this)},t.prototype.attachWidget=function(e,t){X.ArrayExt.insert(this._items,e,new ke(t)),X.ArrayExt.insert(this._sizers,e,new be),this.parent.isAttached&&ee.c.sendMessage(t,Ce.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.isAttached&&ee.c.sendMessage(t,Ce.Msg.AfterAttach),this.parent.fit()},t.prototype.moveWidget=function(e,t,n){X.ArrayExt.move(this._items,e,t),X.ArrayExt.move(this._sizers,e,t),this.parent.update()},t.prototype.detachWidget=function(e,t){var n=X.ArrayExt.removeAt(this._items,e);X.ArrayExt.removeAt(this._sizers,e),this.parent.isAttached&&ee.c.sendMessage(t,Ce.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&ee.c.sendMessage(t,Ce.Msg.AfterDetach),n.dispose(),this.parent.fit()},t.prototype.onBeforeShow=function(t){e.prototype.onBeforeShow.call(this,t),this.parent.update()},t.prototype.onBeforeAttach=function(t){e.prototype.onBeforeAttach.call(this,t),this.parent.fit()},t.prototype.onChildShown=function(e){this.parent.fit()},t.prototype.onChildHidden=function(e){this.parent.fit()},t.prototype.onResize=function(e){this.parent.isVisible&&this._update(e.width,e.height)},t.prototype.onUpdateRequest=function(e){this.parent.isVisible&&this._update(-1,-1)},t.prototype.onFitRequest=function(e){this.parent.isAttached&&this._fit()},t.prototype._fit=function(){for(var e=0,n=0,r=this._items.length;n<r;++n)e+=+!this._items[n].isHidden;this._fixed=this._spacing*Math.max(0,e-1);var i=Ie.isHorizontal(this._direction),o=i?this._fixed:0,a=i?0:this._fixed;for(n=0,r=this._items.length;n<r;++n){var s=this._items[n],l=this._sizers[n];s.isHidden?(l.minSize=0,l.maxSize=0):(s.fit(),l.sizeHint=t.getSizeBasis(s.widget),l.stretch=t.getStretch(s.widget),i?(l.minSize=s.minWidth,l.maxSize=s.maxWidth,o+=s.minWidth,a=Math.max(a,s.minHeight)):(l.minSize=s.minHeight,l.maxSize=s.maxHeight,a+=s.minHeight,o=Math.max(o,s.minWidth)))}var c=this._box=F.boxSizing(this.parent.node);o+=c.horizontalSum,a+=c.verticalSum;var u=this.parent.node.style;u.minWidth=o+"px",u.minHeight=a+"px",this._dirty=!0,this.parent.parent&&ee.c.sendMessage(this.parent.parent,Ce.Msg.FitRequest),this._dirty&&ee.c.sendMessage(this.parent,Ce.Msg.UpdateRequest)},t.prototype._update=function(e,t){this._dirty=!1;for(var n=0,r=0,i=this._items.length;r<i;++r)n+=+!this._items[r].isHidden;if(0!==n){e<0&&(e=this.parent.node.offsetWidth),t<0&&(t=this.parent.node.offsetHeight),this._box||(this._box=F.boxSizing(this.parent.node));var o,a=this._box.paddingTop,s=this._box.paddingLeft,l=e-this._box.horizontalSum,c=t-this._box.verticalSum;switch(this._direction){case"left-to-right":o=ye.calc(this._sizers,Math.max(0,l-this._fixed));break;case"top-to-bottom":o=ye.calc(this._sizers,Math.max(0,c-this._fixed));break;case"right-to-left":o=ye.calc(this._sizers,Math.max(0,l-this._fixed)),s+=l;break;case"bottom-to-top":o=ye.calc(this._sizers,Math.max(0,c-this._fixed)),a+=c;break;default:throw"unreachable"}var u=0,d=0;if(o>0)switch(this._alignment){case"start":break;case"center":u=0,d=o/2;break;case"end":u=0,d=o;break;case"justify":u=o/n,d=0;break;default:throw"unreachable"}for(r=0,i=this._items.length;r<i;++r){var h=this._items[r];if(!h.isHidden){var p=this._sizers[r].size;switch(this._direction){case"left-to-right":h.update(s+d,a,p+u,c),s+=p+u+this._spacing;break;case"top-to-bottom":h.update(s,a+d,l,p+u),a+=p+u+this._spacing;break;case"right-to-left":h.update(s-d-p-u,a,p+u,c),s-=p+u+this._spacing;break;case"bottom-to-top":h.update(s,a-d-p-u,l,p+u),a-=p+u+this._spacing;break;default:throw"unreachable"}}}}},t}(Oe);(De=Ne||(Ne={})).getStretch=function(e){return Ie.stretchProperty.get(e)},De.setStretch=function(e,t){Ie.stretchProperty.set(e,t)},De.getSizeBasis=function(e){return Ie.sizeBasisProperty.get(e)},De.setSizeBasis=function(e,t){Ie.sizeBasisProperty.set(e,t)},function(e){function t(e){e.parent&&e.parent.layout instanceof Ne&&e.parent.fit()}e.stretchProperty=new te.AttachedProperty({name:"stretch",create:function(){return 0},coerce:function(e,t){return Math.max(0,Math.floor(t))},changed:t}),e.sizeBasisProperty=new te.AttachedProperty({name:"sizeBasis",create:function(){return 0},coerce:function(e,t){return Math.max(0,Math.floor(t))},changed:t}),e.isHorizontal=function(e){return"left-to-right"===e||"right-to-left"===e},e.clampSpacing=function(e){return Math.max(0,Math.floor(e))}}(Ie||(Ie={}));var ze,je=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.addClass("lm-Panel"),n.addClass("p-Panel"),n.layout=ze.createLayout(t),n}return we(t,e),Object.defineProperty(t.prototype,"widgets",{get:function(){return this.layout.widgets},enumerable:!0,configurable:!0}),t.prototype.addWidget=function(e){this.layout.addWidget(e)},t.prototype.insertWidget=function(e,t){this.layout.insertWidget(e,t)},t}(Ce);!function(e){e.createLayout=function(e){return e.layout||new Oe}}(ze||(ze={}));var Pe,Re=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,{layout:Pe.createLayout(t)})||this;return n.addClass("lm-BoxPanel"),n.addClass("p-BoxPanel"),n}return we(t,e),Object.defineProperty(t.prototype,"direction",{get:function(){return this.layout.direction},set:function(e){this.layout.direction=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alignment",{get:function(){return this.layout.alignment},set:function(e){this.layout.alignment=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"spacing",{get:function(){return this.layout.spacing},set:function(e){this.layout.spacing=e},enumerable:!0,configurable:!0}),t.prototype.onChildAdded=function(e){e.child.addClass("lm-BoxPanel-child"),e.child.addClass("p-BoxPanel-child")},t.prototype.onChildRemoved=function(e){e.child.removeClass("lm-BoxPanel-child"),e.child.removeClass("p-BoxPanel-child")},t}(je);!function(e){e.getStretch=function(e){return Ne.getStretch(e)},e.setStretch=function(e,t){Ne.setStretch(e,t)},e.getSizeBasis=function(e){return Ne.getSizeBasis(e)},e.setSizeBasis=function(e,t){Ne.setSizeBasis(e,t)}}(Re||(Re={})),function(e){e.createLayout=function(e){return e.layout||new Ne(e)}}(Pe||(Pe={}));var He,Ye,Ve,Fe=function(e){function t(n){var r=e.call(this,{node:Ve.createNode()})||this;return r._activeIndex=-1,r._items=[],r._results=null,r.addClass("lm-CommandPalette"),r.addClass("p-CommandPalette"),r.setFlag(Ce.Flag.DisallowLayout),r.commands=n.commands,r.renderer=n.renderer||t.defaultRenderer,r.commands.commandChanged.connect(r._onGenericChange,r),r.commands.keyBindingChanged.connect(r._onGenericChange,r),r}return we(t,e),t.prototype.dispose=function(){this._items.length=0,this._results=null,e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"searchNode",{get:function(){return this.node.getElementsByClassName("lm-CommandPalette-search")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputNode",{get:function(){return this.node.getElementsByClassName("lm-CommandPalette-input")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contentNode",{get:function(){return this.node.getElementsByClassName("lm-CommandPalette-content")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this._items},enumerable:!0,configurable:!0}),t.prototype.addItem=function(e){var t=Ve.createItem(this.commands,e);return this._items.push(t),this.refresh(),t},t.prototype.addItems=function(e){var t=this,n=e.map((function(e){return Ve.createItem(t.commands,e)}));return n.forEach((function(e){return t._items.push(e)})),this.refresh(),n},t.prototype.removeItem=function(e){this.removeItemAt(this._items.indexOf(e))},t.prototype.removeItemAt=function(e){X.ArrayExt.removeAt(this._items,e)&&this.refresh()},t.prototype.clearItems=function(){0!==this._items.length&&(this._items.length=0,this.refresh())},t.prototype.refresh=function(){(this._results=null,""!==this.inputNode.value)?this.node.getElementsByClassName("lm-close-icon")[0].style.display="inherit":this.node.getElementsByClassName("lm-close-icon")[0].style.display="none";this.update()},t.prototype.handleEvent=function(e){switch(e.type){case"click":this._evtClick(e);break;case"keydown":this._evtKeyDown(e);break;case"input":this.refresh();break;case"focus":case"blur":this._toggleFocused()}},t.prototype.onBeforeAttach=function(e){this.node.addEventListener("click",this),this.node.addEventListener("keydown",this),this.node.addEventListener("input",this),this.node.addEventListener("focus",this,!0),this.node.addEventListener("blur",this,!0)},t.prototype.onAfterDetach=function(e){this.node.removeEventListener("click",this),this.node.removeEventListener("keydown",this),this.node.removeEventListener("input",this),this.node.removeEventListener("focus",this,!0),this.node.removeEventListener("blur",this,!0)},t.prototype.onActivateRequest=function(e){if(this.isAttached){var t=this.inputNode;t.focus(),t.select()}},t.prototype.onUpdateRequest=function(e){var t=this.inputNode.value,n=this.contentNode,r=this._results;if(r||(r=this._results=Ve.search(this._items,t),this._activeIndex=t?X.ArrayExt.findFirstIndex(r,Ve.canActivate):-1),t||0!==r.length)if(t&&0===r.length){var i=this.renderer.renderEmptyMessage({query:t});he.render(i,n)}else{for(var o=this.renderer,a=this._activeIndex,s=new Array(r.length),l=0,c=r.length;l<c;++l){var u=r[l];if("header"===u.type){var d=u.indices,h=u.category;s[l]=o.renderHeader({category:h,indices:d})}else{var p=u.item,f=(d=u.indices,l===a);s[l]=o.renderItem({item:p,indices:d,active:f})}}if(he.render(s,n),a<0||a>=r.length)n.scrollTop=0;else{var m=n.children[a];F.scrollIntoViewIfNeeded(n,m)}}else he.render(null,n)},t.prototype._evtClick=function(e){if(0===e.button){if(e.target.classList.contains("lm-close-icon"))return this.inputNode.value="",void this.refresh();var t=X.ArrayExt.findFirstIndex(this.contentNode.children,(function(t){return t.contains(e.target)}));-1!==t&&(e.preventDefault(),e.stopPropagation(),this._execute(t))}},t.prototype._evtKeyDown=function(e){if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey))switch(e.keyCode){case 13:e.preventDefault(),e.stopPropagation(),this._execute(this._activeIndex);break;case 38:e.preventDefault(),e.stopPropagation(),this._activatePreviousItem();break;case 40:e.preventDefault(),e.stopPropagation(),this._activateNextItem()}},t.prototype._activateNextItem=function(){if(this._results&&0!==this._results.length){var e=this._activeIndex,t=this._results.length,n=e<t-1?e+1:0,r=0===n?t-1:n-1;this._activeIndex=X.ArrayExt.findFirstIndex(this._results,Ve.canActivate,n,r),this.update()}},t.prototype._activatePreviousItem=function(){if(this._results&&0!==this._results.length){var e=this._activeIndex,t=this._results.length,n=e<=0?t-1:e-1,r=n===t-1?0:n+1;this._activeIndex=X.ArrayExt.findLastIndex(this._results,Ve.canActivate,n,r),this.update()}},t.prototype._execute=function(e){if(this._results){var t=this._results[e];if(t){if("header"===t.type){var n=this.inputNode;return n.value=t.category.toLowerCase()+" ",n.focus(),void this.refresh()}t.item.isEnabled&&(this.commands.execute(t.item.command,t.item.args),this.inputNode.value="",this.refresh())}}},t.prototype._toggleFocused=function(){var e=document.activeElement===this.inputNode;this.toggleClass("lm-mod-focused",e),this.toggleClass("p-mod-focused",e)},t.prototype._onGenericChange=function(){this.refresh()},t}(Ce);He=Fe||(Fe={}),Ye=function(){function e(){}return e.prototype.renderHeader=function(e){var t=this.formatHeader(e);return ge.li({className:"lm-CommandPalette-header p-CommandPalette-header"},t)},e.prototype.renderItem=function(e){var t=this.createItemClass(e),n=this.createItemDataset(e);return ge.li({className:t,dataset:n},this.renderItemIcon(e),this.renderItemContent(e),this.renderItemShortcut(e))},e.prototype.renderEmptyMessage=function(e){var t=this.formatEmptyMessage(e);return ge.li({className:"lm-CommandPalette-emptyMessage p-CommandPalette-emptyMessage"},t)},e.prototype.renderItemIcon=function(e){var t=this.createIconClass(e);return"string"==typeof e.item.icon?ge.div({className:t},e.item.iconLabel):ge.div({className:t},e.item.icon,e.item.iconLabel)},e.prototype.renderItemContent=function(e){return ge.div({className:"lm-CommandPalette-itemContent p-CommandPalette-itemContent"},this.renderItemLabel(e),this.renderItemCaption(e))},e.prototype.renderItemLabel=function(e){var t=this.formatItemLabel(e);return ge.div({className:"lm-CommandPalette-itemLabel p-CommandPalette-itemLabel"},t)},e.prototype.renderItemCaption=function(e){var t=this.formatItemCaption(e);return ge.div({className:"lm-CommandPalette-itemCaption p-CommandPalette-itemCaption"},t)},e.prototype.renderItemShortcut=function(e){var t=this.formatItemShortcut(e);return ge.div({className:"lm-CommandPalette-itemShortcut p-CommandPalette-itemShortcut"},t)},e.prototype.createItemClass=function(e){var t="lm-CommandPalette-item";t+=" p-CommandPalette-item",e.item.isEnabled||(t+=" lm-mod-disabled",t+=" p-mod-disabled"),e.item.isToggled&&(t+=" lm-mod-toggled",t+=" p-mod-toggled"),e.active&&(t+=" lm-mod-active",t+=" p-mod-active");var n=e.item.className;return n&&(t+=" "+n),t},e.prototype.createItemDataset=function(e){return xe(xe({},e.item.dataset),{command:e.item.command})},e.prototype.createIconClass=function(e){var t="lm-CommandPalette-itemIcon";t+=" p-CommandPalette-itemIcon";var n=e.item.iconClass;return n?t+" "+n:t},e.prototype.formatHeader=function(e){return e.indices&&0!==e.indices.length?X.StringExt.highlight(e.category,e.indices,ge.mark):e.category},e.prototype.formatEmptyMessage=function(e){return"No commands found that match '"+e.query+"'"},e.prototype.formatItemShortcut=function(e){var t=e.item.keyBinding;return t?t.keys.map(ce.formatKeystroke).join(", "):null},e.prototype.formatItemLabel=function(e){return e.indices&&0!==e.indices.length?X.StringExt.highlight(e.item.label,e.indices,ge.mark):e.item.label},e.prototype.formatItemCaption=function(e){return e.item.caption},e}(),He.Renderer=Ye,He.defaultRenderer=new Ye,function(e){function t(e,t){for(var n=e.category.toLowerCase(),r=n+" "+e.label.toLowerCase(),i=1/0,o=null,a=/\b\w/g;;){var s=a.exec(r);if(!s)break;var l=X.StringExt.matchSumOfDeltas(r,t,s.index);if(!l)break;l&&l.score<=i&&(i=l.score,o=l.indices)}if(!o||i===1/0)return null;for(var c=n.length+1,u=X.ArrayExt.lowerBound(o,c,(function(e,t){return e-t})),d=o.slice(0,u),h=o.slice(u),p=0,f=h.length;p<f;++p)h[p]-=c;return 0===d.length?{matchType:0,categoryIndices:null,labelIndices:h,score:i,item:e}:0===h.length?{matchType:1,categoryIndices:d,labelIndices:null,score:i,item:e}:{matchType:2,categoryIndices:d,labelIndices:h,score:i,item:e}}function n(e,t){var n=e.matchType-t.matchType;if(0!==n)return n;var r=e.score-t.score;if(0!==r)return r;var i=0,o=0;switch(e.matchType){case 0:i=e.labelIndices[0],o=t.labelIndices[0];break;case 1:case 2:i=e.categoryIndices[0],o=t.categoryIndices[0]}if(i!==o)return i-o;var a=e.item.category.localeCompare(t.item.category);if(0!==a)return a;var s=e.item.rank,l=t.item.rank;return s!==l?s<l?-1:1:e.item.label.localeCompare(t.item.label)}e.createNode=function(){var e=document.createElement("div"),t=document.createElement("div"),n=document.createElement("div"),r=document.createElement("input"),i=document.createElement("ul"),o=document.createElement("button");return t.className="lm-CommandPalette-search",n.className="lm-CommandPalette-wrapper",r.className="lm-CommandPalette-input",o.className="lm-close-icon",i.className="lm-CommandPalette-content",t.classList.add("p-CommandPalette-search"),n.classList.add("p-CommandPalette-wrapper"),r.classList.add("p-CommandPalette-input"),i.classList.add("p-CommandPalette-content"),r.spellcheck=!1,n.appendChild(r),n.appendChild(o),t.appendChild(n),e.appendChild(t),e.appendChild(i),e},e.createItem=function(e,t){return new r(e,t)},e.search=function(e,r){var i=function(e,n){r=n,n=r.replace(/\s+/g,"").toLowerCase();var r;for(var i=[],o=0,a=e.length;o<a;++o){var s=e[o];if(s.isVisible)if(n){var l=t(s,n);l&&(s.isEnabled||(l.score+=1e3),i.push(l))}else i.push({matchType:3,categoryIndices:null,labelIndices:null,score:0,item:s})}return i}(e,r);return i.sort(n),function(e){var t=new Array(e.length);X.ArrayExt.fill(t,!1);for(var n=[],r=0,i=e.length;r<i;++r)if(!t[r]){var o=e[r],a=o.item,s=o.categoryIndices,l=a.category;n.push({type:"header",category:l,indices:s});for(var c=r;c<i;++c)if(!t[c]){var u=e[c],d=u.item,h=u.labelIndices;d.category===l&&(n.push({type:"item",item:d,indices:h}),t[c]=!0)}}return n}(i)},e.canActivate=function(e){return"item"===e.type&&e.item.isEnabled};var r=function(){function e(e,t){this._commands=e,this.category=t.category.trim().replace(/\s+/g," "),this.command=t.command,this.args=t.args||s.JSONExt.emptyObject,this.rank=void 0!==t.rank?t.rank:1/0}return Object.defineProperty(e.prototype,"label",{get:function(){return this._commands.label(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"icon",{get:function(){return this._commands.icon(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconClass",{get:function(){return this._commands.iconClass(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconLabel",{get:function(){return this._commands.iconLabel(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"caption",{get:function(){return this._commands.caption(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){return this._commands.className(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataset",{get:function(){return this._commands.dataset(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return this._commands.isEnabled(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isToggled",{get:function(){return this._commands.isToggled(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVisible",{get:function(){return this._commands.isVisible(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keyBinding",{get:function(){var e=this.command,t=this.args;return X.ArrayExt.findLastValue(this._commands.keyBindings,(function(n){return n.command===e&&s.JSONExt.deepEqual(n.args,t)}))||null},enumerable:!0,configurable:!0}),e}()}(Ve||(Ve={}));var Be,Ue=function(e){function t(n){var r=e.call(this,{node:Be.createNode()})||this;return r._childIndex=-1,r._activeIndex=-1,r._openTimerID=0,r._closeTimerID=0,r._items=[],r._childMenu=null,r._parentMenu=null,r._aboutToClose=new ne.Signal(r),r._menuRequested=new ne.Signal(r),r.addClass("lm-Menu"),r.addClass("p-Menu"),r.setFlag(Ce.Flag.DisallowLayout),r.commands=n.commands,r.renderer=n.renderer||t.defaultRenderer,r}return we(t,e),t.prototype.dispose=function(){this.close(),this._items.length=0,e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"aboutToClose",{get:function(){return this._aboutToClose},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"menuRequested",{get:function(){return this._menuRequested},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentMenu",{get:function(){return this._parentMenu},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"childMenu",{get:function(){return this._childMenu},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootMenu",{get:function(){for(var e=this;e._parentMenu;)e=e._parentMenu;return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leafMenu",{get:function(){for(var e=this;e._childMenu;)e=e._childMenu;return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contentNode",{get:function(){return this.node.getElementsByClassName("lm-Menu-content")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeItem",{get:function(){return this._items[this._activeIndex]||null},set:function(e){this.activeIndex=e?this._items.indexOf(e):-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeIndex",{get:function(){return this._activeIndex},set:function(e){(e<0||e>=this._items.length)&&(e=-1),-1===e||Be.canActivate(this._items[e])||(e=-1),this._activeIndex!==e&&(this._activeIndex=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this._items},enumerable:!0,configurable:!0}),t.prototype.activateNextItem=function(){var e=this._items.length,t=this._activeIndex,n=t<e-1?t+1:0,r=0===n?e-1:n-1;this.activeIndex=X.ArrayExt.findFirstIndex(this._items,Be.canActivate,n,r)},t.prototype.activatePreviousItem=function(){var e=this._items.length,t=this._activeIndex,n=t<=0?e-1:t-1,r=n===e-1?0:n+1;this.activeIndex=X.ArrayExt.findLastIndex(this._items,Be.canActivate,n,r)},t.prototype.triggerActiveItem=function(){if(this.isAttached){var e=this.activeItem;if(e)if(this._cancelOpenTimer(),this._cancelCloseTimer(),"submenu"!==e.type){this.rootMenu.close();var t=e.command,n=e.args;this.commands.isEnabled(t,n)?this.commands.execute(t,n):console.log("Command '"+t+"' is disabled.")}else this._openChildMenu(!0)}},t.prototype.addItem=function(e){return this.insertItem(this._items.length,e)},t.prototype.insertItem=function(e,t){this.isAttached&&this.close(),this.activeIndex=-1;var n=Math.max(0,Math.min(e,this._items.length)),r=Be.createItem(this,t);return X.ArrayExt.insert(this._items,n,r),this.update(),r},t.prototype.removeItem=function(e){this.removeItemAt(this._items.indexOf(e))},t.prototype.removeItemAt=function(e){this.isAttached&&this.close(),this.activeIndex=-1,X.ArrayExt.removeAt(this._items,e)&&this.update()},t.prototype.clearItems=function(){this.isAttached&&this.close(),this.activeIndex=-1,0!==this._items.length&&(this._items.length=0,this.update())},t.prototype.open=function(e,t,n){if(void 0===n&&(n={}),!this.isAttached){var r=n.forceX||!1,i=n.forceY||!1;Be.openRootMenu(this,e,t,r,i),this.activate()}},t.prototype.handleEvent=function(e){switch(e.type){case"keydown":this._evtKeyDown(e);break;case"mouseup":this._evtMouseUp(e);break;case"mousemove":this._evtMouseMove(e);break;case"mouseenter":this._evtMouseEnter(e);break;case"mouseleave":this._evtMouseLeave(e);break;case"mousedown":this._evtMouseDown(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation()}},t.prototype.onBeforeAttach=function(e){this.node.addEventListener("keydown",this),this.node.addEventListener("mouseup",this),this.node.addEventListener("mousemove",this),this.node.addEventListener("mouseenter",this),this.node.addEventListener("mouseleave",this),this.node.addEventListener("contextmenu",this),document.addEventListener("mousedown",this,!0)},t.prototype.onAfterDetach=function(e){this.node.removeEventListener("keydown",this),this.node.removeEventListener("mouseup",this),this.node.removeEventListener("mousemove",this),this.node.removeEventListener("mouseenter",this),this.node.removeEventListener("mouseleave",this),this.node.removeEventListener("contextmenu",this),document.removeEventListener("mousedown",this,!0)},t.prototype.onActivateRequest=function(e){this.isAttached&&this.node.focus()},t.prototype.onUpdateRequest=function(e){for(var t=this._items,n=this.renderer,r=this._activeIndex,i=Be.computeCollapsed(t),o=new Array(t.length),a=0,s=t.length;a<s;++a){var l=t[a],c=a===r,u=i[a];o[a]=n.renderItem({item:l,active:c,collapsed:u})}he.render(o,this.contentNode)},t.prototype.onCloseRequest=function(t){this._cancelOpenTimer(),this._cancelCloseTimer(),this.activeIndex=-1;var n=this._childMenu;n&&(this._childIndex=-1,this._childMenu=null,n._parentMenu=null,n.close());var r=this._parentMenu;r&&(this._parentMenu=null,r._childIndex=-1,r._childMenu=null,r.activate()),this.isAttached&&this._aboutToClose.emit(void 0),e.prototype.onCloseRequest.call(this,t)},t.prototype._evtKeyDown=function(e){e.preventDefault(),e.stopPropagation();var t=e.keyCode;if(13!==t)if(27!==t)if(37!==t)if(38!==t)if(39!==t)if(40!==t){var n=ie().keyForKeydownEvent(e);if(n){var r=this._activeIndex+1,i=Be.findMnemonic(this._items,n,r);-1===i.index||i.multiple?-1!==i.index?this.activeIndex=i.index:-1!==i.auto&&(this.activeIndex=i.auto):(this.activeIndex=i.index,this.triggerActiveItem())}}else this.activateNextItem();else{var o=this.activeItem;o&&"submenu"===o.type?this.triggerActiveItem():this.rootMenu._menuRequested.emit("next")}else this.activatePreviousItem();else this._parentMenu?this.close():this._menuRequested.emit("previous");else this.close();else this.triggerActiveItem()},t.prototype._evtMouseUp=function(e){0===e.button&&(e.preventDefault(),e.stopPropagation(),this.triggerActiveItem())},t.prototype._evtMouseMove=function(e){var t=X.ArrayExt.findFirstIndex(this.contentNode.children,(function(t){return F.hitTest(t,e.clientX,e.clientY)}));if(t!==this._activeIndex){if(this.activeIndex=t,(t=this.activeIndex)===this._childIndex)return this._cancelOpenTimer(),void this._cancelCloseTimer();-1!==this._childIndex&&this._startCloseTimer(),this._cancelOpenTimer();var n=this.activeItem;n&&"submenu"===n.type&&n.submenu&&this._startOpenTimer()}},t.prototype._evtMouseEnter=function(e){for(var t=this._parentMenu;t;t=t._parentMenu)t._cancelOpenTimer(),t._cancelCloseTimer(),t.activeIndex=t._childIndex},t.prototype._evtMouseLeave=function(e){if(this._cancelOpenTimer(),this._childMenu){var t=e.clientX,n=e.clientY;F.hitTest(this._childMenu.node,t,n)?this._cancelCloseTimer():(this.activeIndex=-1,this._startCloseTimer())}else this.activeIndex=-1},t.prototype._evtMouseDown=function(e){this._parentMenu||(Be.hitTestMenus(this,e.clientX,e.clientY)?(e.preventDefault(),e.stopPropagation()):this.close())},t.prototype._openChildMenu=function(e){void 0===e&&(e=!1);var t=this.activeItem;if(t&&"submenu"===t.type&&t.submenu){var n=t.submenu;if(n!==this._childMenu){this._closeChildMenu(),this._childMenu=n,this._childIndex=this._activeIndex,n._parentMenu=this,ee.c.sendMessage(this,Ce.Msg.UpdateRequest);var r=this.contentNode.children[this._activeIndex];Be.openSubmenu(n,r),e&&(n.activeIndex=-1,n.activateNextItem()),n.activate()}}else this._closeChildMenu()},t.prototype._closeChildMenu=function(){this._childMenu&&this._childMenu.close()},t.prototype._startOpenTimer=function(){var e=this;0===this._openTimerID&&(this._openTimerID=window.setTimeout((function(){e._openTimerID=0,e._openChildMenu()}),Be.TIMER_DELAY))},t.prototype._startCloseTimer=function(){var e=this;0===this._closeTimerID&&(this._closeTimerID=window.setTimeout((function(){e._closeTimerID=0,e._closeChildMenu()}),Be.TIMER_DELAY))},t.prototype._cancelOpenTimer=function(){0!==this._openTimerID&&(clearTimeout(this._openTimerID),this._openTimerID=0)},t.prototype._cancelCloseTimer=function(){0!==this._closeTimerID&&(clearTimeout(this._closeTimerID),this._closeTimerID=0)},t}(Ce);!function(e){var t=function(){function e(){}return e.prototype.renderItem=function(e){var t=this.createItemClass(e),n=this.createItemDataset(e),r=this.createItemARIA(e);return ge.li(xe({className:t,dataset:n},r),this.renderIcon(e),this.renderLabel(e),this.renderShortcut(e),this.renderSubmenu(e))},e.prototype.renderIcon=function(e){var t=this.createIconClass(e);return"string"==typeof e.item.icon?ge.div({className:t},e.item.iconLabel):ge.div({className:t},e.item.icon,e.item.iconLabel)},e.prototype.renderLabel=function(e){var t=this.formatLabel(e);return ge.div({className:"lm-Menu-itemLabel p-Menu-itemLabel"},t)},e.prototype.renderShortcut=function(e){var t=this.formatShortcut(e);return ge.div({className:"lm-Menu-itemShortcut p-Menu-itemShortcut"},t)},e.prototype.renderSubmenu=function(e){return ge.div({className:"lm-Menu-itemSubmenuIcon p-Menu-itemSubmenuIcon"})},e.prototype.createItemClass=function(e){var t="lm-Menu-item";t+=" p-Menu-item",e.item.isEnabled||(t+=" lm-mod-disabled",t+=" p-mod-disabled"),e.item.isToggled&&(t+=" lm-mod-toggled",t+=" p-mod-toggled"),e.item.isVisible||(t+=" lm-mod-hidden",t+=" p-mod-hidden"),e.active&&(t+=" lm-mod-active",t+=" p-mod-active"),e.collapsed&&(t+=" lm-mod-collapsed",t+=" p-mod-collapsed");var n=e.item.className;return n&&(t+=" "+n),t},e.prototype.createItemDataset=function(e){var t=e.item,n=t.type,r=t.command,i=t.dataset;return xe(xe({},i),"command"===n?{type:n,command:r}:{type:n})},e.prototype.createIconClass=function(e){var t="lm-Menu-itemIcon";t+=" p-Menu-itemIcon";var n=e.item.iconClass;return n?t+" "+n:t},e.prototype.createItemARIA=function(e){var t={};switch(e.item.type){case"separator":t.role="presentation";break;case"submenu":t["aria-haspopup"]="true";break;default:t.role="menuitem"}return t},e.prototype.formatLabel=function(e){var t=e.item,n=t.label,r=t.mnemonic;if(r<0||r>=n.length)return n;var i=n.slice(0,r),o=n.slice(r+1),a=n[r];return[i,ge.span({className:"lm-Menu-itemMnemonic p-Menu-itemMnemonic"},a),o]},e.prototype.formatShortcut=function(e){var t=e.item.keyBinding;return t?t.keys.map(ce.formatKeystroke).join(", "):null},e}();e.Renderer=t,e.defaultRenderer=new t}(Ue||(Ue={})),function(e){function t(e){return"separator"!==e.type&&e.isEnabled&&e.isVisible}e.TIMER_DELAY=300,e.SUBMENU_OVERLAP=3,e.createNode=function(){var e=document.createElement("div"),t=document.createElement("ul");return t.className="lm-Menu-content",t.classList.add("p-Menu-content"),e.appendChild(t),t.setAttribute("role","menu"),e.tabIndex=-1,e},e.canActivate=t,e.createItem=function(e,t){return new n(e.commands,t)},e.hitTestMenus=function(e,t,n){for(var r=e;r;r=r.childMenu)if(F.hitTest(r.node,t,n))return!0;return!1},e.computeCollapsed=function(e){var t=new Array(e.length);X.ArrayExt.fill(t,!1);for(var n=0,r=e.length;n<r;++n){if((a=e[n]).isVisible){if("separator"!==a.type)break;t[n]=!0}}for(var i=r-1;i>=0;--i){if((a=e[i]).isVisible){if("separator"!==a.type)break;t[i]=!0}}for(var o=!1;++n<i;){var a;(a=e[n]).isVisible&&("separator"!==a.type?o=!1:o?t[n]=!0:o=!0)}return t},e.openRootMenu=function(e,t,n,r,i){ee.c.sendMessage(e,Ce.Msg.UpdateRequest);var o=window.pageXOffset,a=window.pageYOffset,s=document.documentElement.clientWidth,l=document.documentElement.clientHeight,c=l-(i?n:0),u=e.node,d=u.style;d.top="",d.left="",d.width="",d.height="",d.visibility="hidden",d.maxHeight=c+"px",Ce.attach(e,document.body);var h=u.getBoundingClientRect(),p=h.width,f=h.height;!r&&t+p>o+s&&(t=o+s-p),!i&&n+f>a+l&&(n>a+l?n=a+l-f:n-=f),d.top=Math.max(0,n)+"px",d.left=Math.max(0,t)+"px",d.visibility=""},e.openSubmenu=function(t,n){ee.c.sendMessage(t,Ce.Msg.UpdateRequest);var r=window.pageXOffset,i=window.pageYOffset,o=document.documentElement.clientWidth,a=document.documentElement.clientHeight,s=a,l=t.node,c=l.style;c.top="",c.left="",c.width="",c.height="",c.visibility="hidden",c.maxHeight=s+"px",Ce.attach(t,document.body);var u=l.getBoundingClientRect(),d=u.width,h=u.height,p=F.boxSizing(t.node),f=n.getBoundingClientRect(),m=f.right-e.SUBMENU_OVERLAP;m+d>r+o&&(m=f.left+e.SUBMENU_OVERLAP-d);var g=f.top-p.borderTop-p.paddingTop;g+h>i+a&&(g=f.bottom+p.borderBottom+p.paddingBottom-h),c.top=Math.max(0,g)+"px",c.left=Math.max(0,m)+"px",c.visibility=""},e.findMnemonic=function(e,n,r){for(var i=-1,o=-1,a=!1,s=n.toUpperCase(),l=0,c=e.length;l<c;++l){var u=(l+r)%c,d=e[u];if(t(d)){var h=d.label;if(0!==h.length){var p=d.mnemonic;p>=0&&p<h.length?h[p].toUpperCase()===s&&(-1===i?i=u:a=!0):-1===o&&h[0].toUpperCase()===s&&(o=u)}}}return{index:i,multiple:a,auto:o}};var n=function(){function e(e,t){this._commands=e,this.type=t.type||"command",this.command=t.command||"",this.args=t.args||s.JSONExt.emptyObject,this.submenu=t.submenu||null}return Object.defineProperty(e.prototype,"label",{get:function(){return"command"===this.type?this._commands.label(this.command,this.args):"submenu"===this.type&&this.submenu?this.submenu.title.label:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mnemonic",{get:function(){return"command"===this.type?this._commands.mnemonic(this.command,this.args):"submenu"===this.type&&this.submenu?this.submenu.title.mnemonic:-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"icon",{get:function(){return"command"===this.type?this._commands.icon(this.command,this.args):"submenu"===this.type&&this.submenu?this.submenu.title.icon:this.iconClass},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconClass",{get:function(){return"command"===this.type?this._commands.iconClass(this.command,this.args):"submenu"===this.type&&this.submenu?this.submenu.title.iconClass:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconLabel",{get:function(){return"command"===this.type?this._commands.iconLabel(this.command,this.args):"submenu"===this.type&&this.submenu?this.submenu.title.iconLabel:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"caption",{get:function(){return"command"===this.type?this._commands.caption(this.command,this.args):"submenu"===this.type&&this.submenu?this.submenu.title.caption:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){return"command"===this.type?this._commands.className(this.command,this.args):"submenu"===this.type&&this.submenu?this.submenu.title.className:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataset",{get:function(){return"command"===this.type?this._commands.dataset(this.command,this.args):"submenu"===this.type&&this.submenu?this.submenu.title.dataset:{}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEnabled",{get:function(){return"command"===this.type?this._commands.isEnabled(this.command,this.args):"submenu"!==this.type||null!==this.submenu},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isToggled",{get:function(){return"command"===this.type&&this._commands.isToggled(this.command,this.args)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVisible",{get:function(){return"command"===this.type?this._commands.isVisible(this.command,this.args):"submenu"!==this.type||null!==this.submenu},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keyBinding",{get:function(){if("command"===this.type){var e=this.command,t=this.args;return X.ArrayExt.findLastValue(this._commands.keyBindings,(function(n){return n.command===e&&s.JSONExt.deepEqual(n.args,t)}))||null}return null},enumerable:!0,configurable:!0}),e}()}(Be||(Be={}));var We;!function(){function e(e){this._idTick=0,this._items=[],this.menu=new Ue(e)}e.prototype.addItem=function(e){var t=this,n=We.createItem(e,this._idTick++);return this._items.push(n),new re.DisposableDelegate((function(){X.ArrayExt.removeFirstOf(t._items,n)}))},e.prototype.open=function(e){var t=this;if(this.menu.clearItems(),0===this._items.length)return!1;var n=We.matchItems(this._items,e);return!(!n||0===n.length)&&(Object(X.each)(n,(function(e){t.menu.addItem(e)})),this.menu.open(e.clientX,e.clientY),!0)}}();!function(e){function t(e,t){var n=U.calculateSpecificity(e.selector),r=U.calculateSpecificity(t.selector);if(n!==r)return r-n;var i=e.rank,o=t.rank;return i!==o?i<o?-1:1:e.id-t.id}e.createItem=function(e,t){var n=function(e){if(-1!==e.indexOf(","))throw new Error("Selector cannot contain commas: "+e);if(!U.isValid(e))throw new Error("Invalid selector: "+e);return e}(e.selector),r=void 0!==e.rank?e.rank:1/0;return xe(xe({},e),{selector:n,rank:r,id:t})},e.matchItems=function(e,n){var r=n.target;if(!r)return null;var i=n.currentTarget;if(!i)return null;if(!(i.contains(r)||(r=document.elementFromPoint(n.clientX,n.clientY))&&i.contains(r)))return null;for(var o=[],a=e.slice();null!==r;){for(var s=[],l=0,c=a.length;l<c;++l){var u=a[l];u&&(U.matches(r,u.selector)&&(s.push(u),a[l]=null))}if(0!==s.length&&(s.sort(t),o.push.apply(o,s)),r===i)break;r=r.parentElement}return o}}(We||(We={}));var Ge,qe=function(e){function t(t){var n=e.call(this)||this;return n._spacing=4,n._dirty=!1,n._root=null,n._box=null,n._items=new Map,n.renderer=t.renderer,void 0!==t.spacing&&(n._spacing=Ge.clampSpacing(t.spacing)),n}return we(t,e),t.prototype.dispose=function(){var t=this.iter();this._items.forEach((function(e){e.dispose()})),this._box=null,this._root=null,this._items.clear(),Object(X.each)(t,(function(e){e.dispose()})),e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"spacing",{get:function(){return this._spacing},set:function(e){e=Ge.clampSpacing(e),this._spacing!==e&&(this._spacing=e,this.parent&&this.parent.fit())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return null===this._root},enumerable:!0,configurable:!0}),t.prototype.iter=function(){return this._root?this._root.iterAllWidgets():Object(X.empty)()},t.prototype.widgets=function(){return this._root?this._root.iterUserWidgets():Object(X.empty)()},t.prototype.selectedWidgets=function(){return this._root?this._root.iterSelectedWidgets():Object(X.empty)()},t.prototype.tabBars=function(){return this._root?this._root.iterTabBars():Object(X.empty)()},t.prototype.handles=function(){return this._root?this._root.iterHandles():Object(X.empty)()},t.prototype.moveHandle=function(e,t,n){var r=e.classList.contains("lm-mod-hidden");if(r=r||e.classList.contains("p-mod-hidden"),this._root&&!r){var i,o=this._root.findSplitNode(e);if(o)0!==(i="horizontal"===o.node.orientation?t-e.offsetLeft:n-e.offsetTop)&&(o.node.holdSizes(),ye.adjust(o.node.sizers,o.index,i),this.parent&&this.parent.update())}},t.prototype.saveLayout=function(){return this._root?(this._root.holdAllSizes(),{main:this._root.createConfig()}):{main:null}},t.prototype.restoreLayout=function(e){var t,n=this,r=new Set;t=e.main?Ge.normalizeAreaConfig(e.main,r):null;var i=this.widgets(),o=this.tabBars(),a=this.handles();this._root=null,Object(X.each)(i,(function(e){r.has(e)||(e.parent=null)})),Object(X.each)(o,(function(e){e.dispose()})),Object(X.each)(a,(function(e){e.parentNode&&e.parentNode.removeChild(e)})),r.forEach((function(e){e.parent=n.parent})),this._root=t?Ge.realizeAreaConfig(t,{createTabBar:function(){return n._createTabBar()},createHandle:function(){return n._createHandle()}}):null,this.parent&&(r.forEach((function(e){n.attachWidget(e)})),this.parent.fit())},t.prototype.addWidget=function(e,t){void 0===t&&(t={});var n=t.ref||null,r=t.mode||"tab-after",i=null;if(this._root&&n&&(i=this._root.findTabNode(n)),n&&!i)throw new Error("Reference widget is not in the layout.");switch(e.parent=this.parent,r){case"tab-after":this._insertTab(e,n,i,!0);break;case"tab-before":this._insertTab(e,n,i,!1);break;case"split-top":this._insertSplit(e,n,i,"vertical",!1);break;case"split-left":this._insertSplit(e,n,i,"horizontal",!1);break;case"split-right":this._insertSplit(e,n,i,"horizontal",!0);break;case"split-bottom":this._insertSplit(e,n,i,"vertical",!0)}this.parent&&(this.attachWidget(e),this.parent.fit())},t.prototype.removeWidget=function(e){this._removeWidget(e),this.parent&&(this.detachWidget(e),this.parent.fit())},t.prototype.hitTestTabAreas=function(e,t){if(!this._root||!this.parent||!this.parent.isVisible)return null;this._box||(this._box=F.boxSizing(this.parent.node));var n=this.parent.node.getBoundingClientRect(),r=e-n.left-this._box.borderLeft,i=t-n.top-this._box.borderTop,o=this._root.hitTestTabNodes(r,i);if(!o)return null;var a=o.tabBar,s=o.top,l=o.left,c=o.width,u=o.height,d=this._box.borderLeft+this._box.borderRight,h=this._box.borderTop+this._box.borderBottom;return{tabBar:a,x:r,y:i,top:s,left:l,right:n.width-d-(l+c),bottom:n.height-h-(s+u),width:c,height:u}},t.prototype.init=function(){var t=this;e.prototype.init.call(this),Object(X.each)(this,(function(e){t.attachWidget(e)})),Object(X.each)(this.handles(),(function(e){t.parent.node.appendChild(e)})),this.parent.fit()},t.prototype.attachWidget=function(e){this.parent.node!==e.node.parentNode&&(this._items.set(e,new ke(e)),this.parent.isAttached&&ee.c.sendMessage(e,Ce.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&ee.c.sendMessage(e,Ce.Msg.AfterAttach))},t.prototype.detachWidget=function(e){if(this.parent.node===e.node.parentNode){this.parent.isAttached&&ee.c.sendMessage(e,Ce.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&ee.c.sendMessage(e,Ce.Msg.AfterDetach);var t=this._items.get(e);t&&(this._items.delete(e),t.dispose())}},t.prototype.onBeforeShow=function(t){e.prototype.onBeforeShow.call(this,t),this.parent.update()},t.prototype.onBeforeAttach=function(t){e.prototype.onBeforeAttach.call(this,t),this.parent.fit()},t.prototype.onChildShown=function(e){this.parent.fit()},t.prototype.onChildHidden=function(e){this.parent.fit()},t.prototype.onResize=function(e){this.parent.isVisible&&this._update(e.width,e.height)},t.prototype.onUpdateRequest=function(e){this.parent.isVisible&&this._update(-1,-1)},t.prototype.onFitRequest=function(e){this.parent.isAttached&&this._fit()},t.prototype._removeWidget=function(e){if(this._root){var t=this._root.findTabNode(e);if(t)if(t.tabBar.titles.length>1)t.tabBar.removeTab(e.title);else if(t.tabBar.dispose(),this._root!==t){this._root.holdAllSizes();var n=t.parent;t.parent=null;var r=X.ArrayExt.removeFirstOf(n.children,t),i=X.ArrayExt.removeAt(n.handles,r);if(X.ArrayExt.removeAt(n.sizers,r),i.parentNode&&i.parentNode.removeChild(i),n.children.length>1)n.syncHandles();else{var o=n.parent;n.parent=null;var a=n.children[0],s=n.handles[0];if(n.children.length=0,n.handles.length=0,n.sizers.length=0,s.parentNode&&s.parentNode.removeChild(s),this._root===n)return a.parent=null,void(this._root=a);var l=o,c=l.children.indexOf(n);if(a instanceof Ge.TabLayoutNode)return a.parent=l,void(l.children[c]=a);var u=X.ArrayExt.removeAt(l.handles,c);X.ArrayExt.removeAt(l.children,c),X.ArrayExt.removeAt(l.sizers,c),u.parentNode&&u.parentNode.removeChild(u);for(var d=0,h=a.children.length;d<h;++d){var p=a.children[d],f=a.handles[d],m=a.sizers[d];X.ArrayExt.insert(l.children,c+d,p),X.ArrayExt.insert(l.handles,c+d,f),X.ArrayExt.insert(l.sizers,c+d,m),p.parent=l}a.children.length=0,a.handles.length=0,a.sizers.length=0,a.parent=null,l.syncHandles()}}else this._root=null}},t.prototype._insertTab=function(e,t,n,r){if(e!==t){if(!this._root){var i=new Ge.TabLayoutNode(this._createTabBar());return i.tabBar.addTab(e.title),void(this._root=i)}var o;n||(n=this._root.findFirstTabNode()),-1===n.tabBar.titles.indexOf(e.title)&&(this._removeWidget(e),e.hide()),o=t?n.tabBar.titles.indexOf(t.title):n.tabBar.currentIndex,n.tabBar.insertTab(o+(r?1:0),e.title)}},t.prototype._insertSplit=function(e,t,n,r,i){if(e!==t||!n||1!==n.tabBar.titles.length){this._removeWidget(e);var o=new Ge.TabLayoutNode(this._createTabBar());if(o.tabBar.addTab(e.title),this._root){if(!n||!n.parent){var a=this._splitRoot(r),s=i?a.children.length:0;a.normalizeSizes();var l=Ge.createSizer(n?1:Ge.GOLDEN_RATIO);return X.ArrayExt.insert(a.children,s,o),X.ArrayExt.insert(a.sizers,s,l),X.ArrayExt.insert(a.handles,s,this._createHandle()),o.parent=a,a.normalizeSizes(),void a.syncHandles()}var c=n.parent;if(c.orientation===r){var u=c.children.indexOf(n);c.normalizeSizes();var d=c.sizers[u].sizeHint/=2,h=u+(i?1:0);return X.ArrayExt.insert(c.children,h,o),X.ArrayExt.insert(c.sizers,h,Ge.createSizer(d)),X.ArrayExt.insert(c.handles,h,this._createHandle()),o.parent=c,void c.syncHandles()}var p=X.ArrayExt.removeFirstOf(c.children,n),f=new Ge.SplitLayoutNode(r);f.normalized=!0,f.children.push(n),f.sizers.push(Ge.createSizer(.5)),f.handles.push(this._createHandle()),n.parent=f;var m=i?1:0;X.ArrayExt.insert(f.children,m,o),X.ArrayExt.insert(f.sizers,m,Ge.createSizer(.5)),X.ArrayExt.insert(f.handles,m,this._createHandle()),o.parent=f,f.syncHandles(),X.ArrayExt.insert(c.children,p,f),f.parent=c}else this._root=o}},t.prototype._splitRoot=function(e){var t=this._root;if(t instanceof Ge.SplitLayoutNode&&t.orientation===e)return t;var n=this._root=new Ge.SplitLayoutNode(e);return t&&(n.children.push(t),n.sizers.push(Ge.createSizer(0)),n.handles.push(this._createHandle()),t.parent=n),n},t.prototype._fit=function(){var e=0,t=0;if(this._root){var n=this._root.fit(this._spacing,this._items);e=n.minWidth,t=n.minHeight}var r=this._box=F.boxSizing(this.parent.node);e+=r.horizontalSum,t+=r.verticalSum;var i=this.parent.node.style;i.minWidth=e+"px",i.minHeight=t+"px",this._dirty=!0,this.parent.parent&&ee.c.sendMessage(this.parent.parent,Ce.Msg.FitRequest),this._dirty&&ee.c.sendMessage(this.parent,Ce.Msg.UpdateRequest)},t.prototype._update=function(e,t){if(this._dirty=!1,this._root){e<0&&(e=this.parent.node.offsetWidth),t<0&&(t=this.parent.node.offsetHeight),this._box||(this._box=F.boxSizing(this.parent.node));var n=this._box.paddingTop,r=this._box.paddingLeft,i=e-this._box.horizontalSum,o=t-this._box.verticalSum;this._root.update(n,r,i,o,this._spacing,this._items)}},t.prototype._createTabBar=function(){var e=this.renderer.createTabBar();return e.orientation="horizontal",this.parent&&(e.parent=this.parent,this.attachWidget(e)),e},t.prototype._createHandle=function(){var e=this.renderer.createHandle(),t=e.style;return t.position="absolute",t.top="0",t.left="0",t.width="0",t.height="0",this.parent&&this.parent.node.appendChild(e),e},t}(Se);!function(e){function t(e){var t=new be;return t.sizeHint=e,t.size=e,t}function n(e,t){return"tab-area"===e.type?function(e,t){if(0===e.widgets.length)return null;var n=[];if(Object(X.each)(e.widgets,(function(e){t.has(e)||(t.add(e),n.push(e))})),0===n.length)return null;var r=e.currentIndex;-1!==r&&(r<0||r>=n.length)&&(r=0);return{type:"tab-area",widgets:n,currentIndex:r}}(e,t):function(e,t){for(var r=e.orientation,i=[],o=[],a=0,s=e.children.length;a<s;++a){var l=n(e.children[a],t);l&&("tab-area"===l.type||l.orientation!==r?(i.push(l),o.push(Math.abs(e.sizes[a]||0))):(i.push.apply(i,l.children),o.push.apply(o,l.sizes)))}if(0===i.length)return null;if(1===i.length)return i[0];return{type:"split-area",orientation:r,children:i,sizes:o}}(e,t)}function r(e,n){return"tab-area"===e.type?function(e,t){var n=t.createTabBar();return Object(X.each)(e.widgets,(function(e){e.hide(),n.addTab(e.title)})),n.currentIndex=e.currentIndex,new i(n)}(e,n):function(e,n){var i=new o(e.orientation);return Object(X.each)(e.children,(function(o,a){var s=r(o,n),l=t(e.sizes[a]),c=n.createHandle();i.children.push(s),i.handles.push(c),i.sizers.push(l),s.parent=i})),i.syncHandles(),i.normalizeSizes(),i}(e,n)}e.GOLDEN_RATIO=.618,e.clampSpacing=function(e){return Math.max(0,Math.floor(e))},e.createSizer=t,e.normalizeAreaConfig=n,e.realizeAreaConfig=r;var i=function(){function e(e){this.parent=null,this._top=0,this._left=0,this._width=0,this._height=0;var t=new be,n=new be;t.stretch=0,n.stretch=1,this.tabBar=e,this.sizers=[t,n]}return Object.defineProperty(e.prototype,"top",{get:function(){return this._top},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){return this._left},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},enumerable:!0,configurable:!0}),e.prototype.iterAllWidgets=function(){return Object(X.chain)(Object(X.once)(this.tabBar),this.iterUserWidgets())},e.prototype.iterUserWidgets=function(){return Object(X.map)(this.tabBar.titles,(function(e){return e.owner}))},e.prototype.iterSelectedWidgets=function(){var e=this.tabBar.currentTitle;return e?Object(X.once)(e.owner):Object(X.empty)()},e.prototype.iterTabBars=function(){return Object(X.once)(this.tabBar)},e.prototype.iterHandles=function(){return Object(X.empty)()},e.prototype.findTabNode=function(e){return-1!==this.tabBar.titles.indexOf(e.title)?this:null},e.prototype.findSplitNode=function(e){return null},e.prototype.findFirstTabNode=function(){return this},e.prototype.hitTestTabNodes=function(e,t){return e<this._left||e>=this._left+this._width||t<this._top||t>=this._top+this._height?null:this},e.prototype.createConfig=function(){return{type:"tab-area",widgets:this.tabBar.titles.map((function(e){return e.owner})),currentIndex:this.tabBar.currentIndex}},e.prototype.holdAllSizes=function(){},e.prototype.fit=function(e,t){var n=0,r=0,i=t.get(this.tabBar),o=this.tabBar.currentTitle,a=o?t.get(o.owner):void 0,s=this.sizers,l=s[0],c=s[1];return i&&i.fit(),a&&a.fit(),i&&!i.isHidden?(n=Math.max(n,i.minWidth),r+=i.minHeight,l.minSize=i.minHeight,l.maxSize=i.maxHeight):(l.minSize=0,l.maxSize=0),a&&!a.isHidden?(n=Math.max(n,a.minWidth),r+=a.minHeight,c.minSize=a.minHeight,c.maxSize=1/0):(c.minSize=0,c.maxSize=1/0),{minWidth:n,minHeight:r,maxWidth:1/0,maxHeight:1/0}},e.prototype.update=function(e,t,n,r,i,o){this._top=t,this._left=e,this._width=n,this._height=r;var a=o.get(this.tabBar),s=this.tabBar.currentTitle,l=s?o.get(s.owner):void 0;if(ye.calc(this.sizers,r),a&&!a.isHidden){var c=this.sizers[0].size;a.update(e,t,n,c),t+=c}if(l&&!l.isHidden){c=this.sizers[1].size;l.update(e,t,n,c)}},e}();e.TabLayoutNode=i;var o=function(){function e(e){this.parent=null,this.normalized=!1,this.children=[],this.sizers=[],this.handles=[],this.orientation=e}return e.prototype.iterAllWidgets=function(){var e=Object(X.map)(this.children,(function(e){return e.iterAllWidgets()}));return new X.ChainIterator(e)},e.prototype.iterUserWidgets=function(){var e=Object(X.map)(this.children,(function(e){return e.iterUserWidgets()}));return new X.ChainIterator(e)},e.prototype.iterSelectedWidgets=function(){var e=Object(X.map)(this.children,(function(e){return e.iterSelectedWidgets()}));return new X.ChainIterator(e)},e.prototype.iterTabBars=function(){var e=Object(X.map)(this.children,(function(e){return e.iterTabBars()}));return new X.ChainIterator(e)},e.prototype.iterHandles=function(){var e=Object(X.map)(this.children,(function(e){return e.iterHandles()}));return Object(X.chain)(this.handles,new X.ChainIterator(e))},e.prototype.findTabNode=function(e){for(var t=0,n=this.children.length;t<n;++t){var r=this.children[t].findTabNode(e);if(r)return r}return null},e.prototype.findSplitNode=function(e){var t=this.handles.indexOf(e);if(-1!==t)return{index:t,node:this};for(var n=0,r=this.children.length;n<r;++n){var i=this.children[n].findSplitNode(e);if(i)return i}return null},e.prototype.findFirstTabNode=function(){return 0===this.children.length?null:this.children[0].findFirstTabNode()},e.prototype.hitTestTabNodes=function(e,t){for(var n=0,r=this.children.length;n<r;++n){var i=this.children[n].hitTestTabNodes(e,t);if(i)return i}return null},e.prototype.createConfig=function(){var e=this.orientation,t=this.createNormalizedSizes();return{type:"split-area",orientation:e,children:this.children.map((function(e){return e.createConfig()})),sizes:t}},e.prototype.syncHandles=function(){var e=this;Object(X.each)(this.handles,(function(t,n){t.setAttribute("data-orientation",e.orientation),n===e.handles.length-1?(t.classList.add("lm-mod-hidden"),t.classList.add("p-mod-hidden")):(t.classList.remove("lm-mod-hidden"),t.classList.remove("p-mod-hidden"))}))},e.prototype.holdSizes=function(){Object(X.each)(this.sizers,(function(e){e.sizeHint=e.size}))},e.prototype.holdAllSizes=function(){Object(X.each)(this.children,(function(e){return e.holdAllSizes()})),this.holdSizes()},e.prototype.normalizeSizes=function(){var e=this.sizers.length;if(0!==e){this.holdSizes();var t=Object(X.reduce)(this.sizers,(function(e,t){return e+t.sizeHint}),0);0===t?Object(X.each)(this.sizers,(function(t){t.size=t.sizeHint=1/e})):Object(X.each)(this.sizers,(function(e){e.size=e.sizeHint/=t})),this.normalized=!0}},e.prototype.createNormalizedSizes=function(){var e=this.sizers.length;if(0===e)return[];var t=this.sizers.map((function(e){return e.size})),n=Object(X.reduce)(t,(function(e,t){return e+t}),0);return 0===n?Object(X.each)(t,(function(n,r){t[r]=1/e})):Object(X.each)(t,(function(e,r){t[r]=e/n})),t},e.prototype.fit=function(e,t){for(var n="horizontal"===this.orientation,r=Math.max(0,this.children.length-1)*e,i=n?r:0,o=n?0:r,a=0,s=this.children.length;a<s;++a){var l=this.children[a].fit(e,t);n?(o=Math.max(o,l.minHeight),i+=l.minWidth,this.sizers[a].minSize=l.minWidth):(i=Math.max(i,l.minWidth),o+=l.minHeight,this.sizers[a].minSize=l.minHeight)}return{minWidth:i,minHeight:o,maxWidth:1/0,maxHeight:1/0}},e.prototype.update=function(e,t,n,r,i,o){var a="horizontal"===this.orientation,s=Math.max(0,this.children.length-1)*i,l=Math.max(0,(a?n:r)-s);this.normalized&&(Object(X.each)(this.sizers,(function(e){e.sizeHint*=l})),this.normalized=!1),ye.calc(this.sizers,l);for(var c=0,u=this.children.length;c<u;++c){var d=this.children[c],h=this.sizers[c].size,p=this.handles[c].style;a?(d.update(e,t,h,r,i,o),e+=h,p.top=t+"px",p.left=e+"px",p.width=i+"px",p.height=r+"px",e+=i):(d.update(e,t,n,h,i,o),t+=h,p.top=t+"px",p.left=e+"px",p.width=n+"px",p.height=i+"px",t+=i)}},e}();e.SplitLayoutNode=o}(Ge||(Ge={}));var Ke,$e=function(e){function t(n){void 0===n&&(n={});var r=e.call(this,{node:Ke.createNode()})||this;return r._currentIndex=-1,r._titles=[],r._titlesEditable=!1,r._previousTitle=null,r._dragData=null,r._tabMoved=new ne.Signal(r),r._currentChanged=new ne.Signal(r),r._tabCloseRequested=new ne.Signal(r),r._tabDetachRequested=new ne.Signal(r),r._tabActivateRequested=new ne.Signal(r),r.addClass("lm-TabBar"),r.addClass("p-TabBar"),r.setFlag(Ce.Flag.DisallowLayout),r.tabsMovable=n.tabsMovable||!1,r.titlesEditable=n.titlesEditable||!1,r.allowDeselect=n.allowDeselect||!1,r.insertBehavior=n.insertBehavior||"select-tab-if-needed",r.removeBehavior=n.removeBehavior||"select-tab-after",r.renderer=n.renderer||t.defaultRenderer,r._orientation=n.orientation||"horizontal",r.dataset.orientation=r._orientation,r}return we(t,e),t.prototype.dispose=function(){this._releaseMouse(),this._titles.length=0,this._previousTitle=null,e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"currentChanged",{get:function(){return this._currentChanged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabMoved",{get:function(){return this._tabMoved},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabActivateRequested",{get:function(){return this._tabActivateRequested},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabCloseRequested",{get:function(){return this._tabCloseRequested},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabDetachRequested",{get:function(){return this._tabDetachRequested},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"titlesEditable",{get:function(){return this._titlesEditable},set:function(e){this._titlesEditable=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentTitle",{get:function(){return this._titles[this._currentIndex]||null},set:function(e){this.currentIndex=e?this._titles.indexOf(e):-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this._currentIndex},set:function(e){if((e<0||e>=this._titles.length)&&(e=-1),this._currentIndex!==e){var t=this._currentIndex,n=this._titles[t]||null,r=e,i=this._titles[r]||null;this._currentIndex=r,this._previousTitle=n,this.update(),this._currentChanged.emit({previousIndex:t,previousTitle:n,currentIndex:r,currentTitle:i})}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orientation",{get:function(){return this._orientation},set:function(e){this._orientation!==e&&(this._releaseMouse(),this._orientation=e,this.dataset.orientation=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"titles",{get:function(){return this._titles},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contentNode",{get:function(){return this.node.getElementsByClassName("lm-TabBar-content")[0]},enumerable:!0,configurable:!0}),t.prototype.addTab=function(e){return this.insertTab(this._titles.length,e)},t.prototype.insertTab=function(e,t){this._releaseMouse();var n=Ke.asTitle(t),r=this._titles.indexOf(n),i=Math.max(0,Math.min(e,this._titles.length));return-1===r?(X.ArrayExt.insert(this._titles,i,n),n.changed.connect(this._onTitleChanged,this),this.update(),this._adjustCurrentForInsert(i,n),n):(i===this._titles.length&&i--,r===i||(X.ArrayExt.move(this._titles,r,i),this.update(),this._adjustCurrentForMove(r,i)),n)},t.prototype.removeTab=function(e){this.removeTabAt(this._titles.indexOf(e))},t.prototype.removeTabAt=function(e){this._releaseMouse();var t=X.ArrayExt.removeAt(this._titles,e);t&&(t.changed.disconnect(this._onTitleChanged,this),t===this._previousTitle&&(this._previousTitle=null),this.update(),this._adjustCurrentForRemove(e,t))},t.prototype.clearTabs=function(){if(0!==this._titles.length){this._releaseMouse();for(var e=0,t=this._titles;e<t.length;e++){t[e].changed.disconnect(this._onTitleChanged,this)}var n=this.currentIndex,r=this.currentTitle;this._currentIndex=-1,this._previousTitle=null,this._titles.length=0,this.update(),-1!==n&&this._currentChanged.emit({previousIndex:n,previousTitle:r,currentIndex:-1,currentTitle:null})}},t.prototype.releaseMouse=function(){this._releaseMouse()},t.prototype.handleEvent=function(e){switch(e.type){case"mousedown":this._evtMouseDown(e);break;case"mousemove":this._evtMouseMove(e);break;case"mouseup":this._evtMouseUp(e);break;case"dblclick":this._evtDblClick(e);break;case"keydown":this._evtKeyDown(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation()}},t.prototype.onBeforeAttach=function(e){this.node.addEventListener("mousedown",this),this.node.addEventListener("dblclick",this)},t.prototype.onAfterDetach=function(e){this.node.removeEventListener("mousedown",this),this.node.removeEventListener("dblclick",this),this._releaseMouse()},t.prototype.onUpdateRequest=function(e){for(var t=this._titles,n=this.renderer,r=this.currentTitle,i=new Array(t.length),o=0,a=t.length;o<a;++o){var s=t[o],l=s===r,c=l?a:a-o-1;i[o]=n.renderTab({title:s,current:l,zIndex:c})}he.render(i,this.contentNode)},t.prototype._evtDblClick=function(e){if(this.titlesEditable){var t=this.contentNode.children,n=X.ArrayExt.findFirstIndex(t,(function(t){return F.hitTest(t,e.clientX,e.clientY)}));if(-1!==n){var r=this.titles[n],i=t[n].querySelector(".lm-TabBar-tabLabel");if(i&&i.contains(e.target)){var o=r.label||"",a=i.innerHTML;i.innerHTML="";var s=document.createElement("input");s.classList.add("lm-TabBar-tabInput"),s.value=o,i.appendChild(s);var l=function(){s.removeEventListener("blur",l),i.innerHTML=a};s.addEventListener("dblclick",(function(e){return e.stopPropagation()})),s.addEventListener("blur",l),s.addEventListener("keydown",(function(e){"Enter"===e.key?(""!==s.value&&(r.label=r.caption=s.value),l()):"Escape"===e.key&&l()})),s.select(),s.focus(),i.children.length>0&&i.children[0].focus()}}}},t.prototype._evtKeyDown=function(e){e.preventDefault(),e.stopPropagation(),27===e.keyCode&&this._releaseMouse()},t.prototype._evtMouseDown=function(e){if((0===e.button||1===e.button)&&!this._dragData){var t=this.contentNode.children,n=X.ArrayExt.findFirstIndex(t,(function(t){return F.hitTest(t,e.clientX,e.clientY)}));if(-1!==n&&(e.preventDefault(),e.stopPropagation(),this._dragData={tab:t[n],index:n,pressX:e.clientX,pressY:e.clientY,tabPos:-1,tabSize:-1,tabPressPos:-1,targetIndex:-1,tabLayout:null,contentRect:null,override:null,dragActive:!1,dragAborted:!1,detachRequested:!1},document.addEventListener("mouseup",this,!0),1!==e.button)){var r=t[n].querySelector(this.renderer.closeIconSelector);r&&r.contains(e.target)||(this.tabsMovable&&(document.addEventListener("mousemove",this,!0),document.addEventListener("keydown",this,!0),document.addEventListener("contextmenu",this,!0)),this.allowDeselect&&this.currentIndex===n?this.currentIndex=-1:this.currentIndex=n,-1!==this.currentIndex&&this._tabActivateRequested.emit({index:this.currentIndex,title:this.currentTitle}))}}},t.prototype._evtMouseMove=function(e){var t=this._dragData;if(t){e.preventDefault(),e.stopPropagation();var n=this.contentNode.children;if(t.dragActive||Ke.dragExceeded(t,e)){if(!t.dragActive){var r=t.tab.getBoundingClientRect();"horizontal"===this._orientation?(t.tabPos=t.tab.offsetLeft,t.tabSize=r.width,t.tabPressPos=t.pressX-r.left):(t.tabPos=t.tab.offsetTop,t.tabSize=r.height,t.tabPressPos=t.pressY-r.top),t.tabLayout=Ke.snapTabLayout(n,this._orientation),t.contentRect=this.contentNode.getBoundingClientRect(),t.override=_e.overrideCursor("default"),t.tab.classList.add("lm-mod-dragging"),this.addClass("lm-mod-dragging"),t.tab.classList.add("p-mod-dragging"),this.addClass("p-mod-dragging"),t.dragActive=!0}if(!t.detachRequested&&Ke.detachExceeded(t,e)){t.detachRequested=!0;var i=t.index,o=e.clientX,a=e.clientY,s=n[i],l=this._titles[i];if(this._tabDetachRequested.emit({index:i,title:l,tab:s,clientX:o,clientY:a}),t.dragAborted)return}Ke.layoutTabs(n,t,e,this._orientation)}}},t.prototype._evtMouseUp=function(e){var t=this;if(0===e.button||1===e.button){var n=this._dragData;if(n){if(e.preventDefault(),e.stopPropagation(),document.removeEventListener("mousemove",this,!0),document.removeEventListener("mouseup",this,!0),document.removeEventListener("keydown",this,!0),document.removeEventListener("contextmenu",this,!0),!n.dragActive){this._dragData=null;var r=this.contentNode.children,i=X.ArrayExt.findFirstIndex(r,(function(t){return F.hitTest(t,e.clientX,e.clientY)}));if(i!==n.index)return;var o=this._titles[i];if(!o.closable)return;if(1===e.button)return void this._tabCloseRequested.emit({index:i,title:o});var a=r[i].querySelector(this.renderer.closeIconSelector);return a&&a.contains(e.target)?void this._tabCloseRequested.emit({index:i,title:o}):void 0}if(0===e.button){Ke.finalizeTabPosition(n,this._orientation),n.tab.classList.remove("lm-mod-dragging"),n.tab.classList.remove("p-mod-dragging");var s=Ke.parseTransitionDuration(n.tab);setTimeout((function(){if(!n.dragAborted){t._dragData=null,Ke.resetTabPositions(t.contentNode.children,t._orientation),n.override.dispose(),t.removeClass("lm-mod-dragging"),t.removeClass("p-mod-dragging");var e=n.index,r=n.targetIndex;-1!==r&&e!==r&&(X.ArrayExt.move(t._titles,e,r),t._adjustCurrentForMove(e,r),t._tabMoved.emit({fromIndex:e,toIndex:r,title:t._titles[r]}),ee.c.sendMessage(t,Ce.Msg.UpdateRequest))}}),s)}}}},t.prototype._releaseMouse=function(){var e=this._dragData;e&&(this._dragData=null,document.removeEventListener("mousemove",this,!0),document.removeEventListener("mouseup",this,!0),document.removeEventListener("keydown",this,!0),document.removeEventListener("contextmenu",this,!0),e.dragAborted=!0,e.dragActive&&(Ke.resetTabPositions(this.contentNode.children,this._orientation),e.override.dispose(),e.tab.classList.remove("lm-mod-dragging"),this.removeClass("lm-mod-dragging"),e.tab.classList.remove("p-mod-dragging"),this.removeClass("p-mod-dragging")))},t.prototype._adjustCurrentForInsert=function(e,t){var n=this.currentTitle,r=this._currentIndex,i=this.insertBehavior;if("select-tab"===i||"select-tab-if-needed"===i&&-1===r)return this._currentIndex=e,this._previousTitle=n,void this._currentChanged.emit({previousIndex:r,previousTitle:n,currentIndex:e,currentTitle:t});r>=e&&this._currentIndex++},t.prototype._adjustCurrentForMove=function(e,t){this._currentIndex===e?this._currentIndex=t:this._currentIndex<e&&this._currentIndex>=t?this._currentIndex++:this._currentIndex>e&&this._currentIndex<=t&&this._currentIndex--},t.prototype._adjustCurrentForRemove=function(e,t){var n=this._currentIndex,r=this.removeBehavior;if(n===e){if(0===this._titles.length)return this._currentIndex=-1,void this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:-1,currentTitle:null});if("select-tab-after"===r)return this._currentIndex=Math.min(e,this._titles.length-1),void this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:this._currentIndex,currentTitle:this.currentTitle});if("select-tab-before"===r)return this._currentIndex=Math.max(0,e-1),void this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:this._currentIndex,currentTitle:this.currentTitle});if("select-previous-tab"===r)return this._previousTitle?(this._currentIndex=this._titles.indexOf(this._previousTitle),this._previousTitle=null):this._currentIndex=Math.min(e,this._titles.length-1),void this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:this._currentIndex,currentTitle:this.currentTitle});this._currentIndex=-1,this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:-1,currentTitle:null})}else n>e&&this._currentIndex--},t.prototype._onTitleChanged=function(e){this.update()},t}(Ce);!function(e){var t=function(){function e(){this.closeIconSelector=".lm-TabBar-tabCloseIcon",this._tabID=0,this._tabKeys=new WeakMap}return e.prototype.renderTab=function(e){var t=e.title.caption,n=this.createTabKey(e),r=this.createTabStyle(e),i=this.createTabClass(e),o=this.createTabDataset(e);return ge.li({key:n,className:i,title:t,style:r,dataset:o},this.renderIcon(e),this.renderLabel(e),this.renderCloseIcon(e))},e.prototype.renderIcon=function(e){var t=e.title,n=this.createIconClass(e);return"string"==typeof t.icon?ge.div({className:n},t.iconLabel):ge.div({className:n},t.icon,t.iconLabel)},e.prototype.renderLabel=function(e){return ge.div({className:"lm-TabBar-tabLabel p-TabBar-tabLabel"},e.title.label)},e.prototype.renderCloseIcon=function(e){return ge.div({className:"lm-TabBar-tabCloseIcon p-TabBar-tabCloseIcon"})},e.prototype.createTabKey=function(e){var t=this._tabKeys.get(e.title);return void 0===t&&(t="tab-key-"+this._tabID++,this._tabKeys.set(e.title,t)),t},e.prototype.createTabStyle=function(e){return{zIndex:""+e.zIndex}},e.prototype.createTabClass=function(e){var t="lm-TabBar-tab";return t+=" p-TabBar-tab",e.title.className&&(t+=" "+e.title.className),e.title.closable&&(t+=" lm-mod-closable",t+=" p-mod-closable"),e.current&&(t+=" lm-mod-current",t+=" p-mod-current"),t},e.prototype.createTabDataset=function(e){return e.title.dataset},e.prototype.createIconClass=function(e){var t="lm-TabBar-tabIcon";t+=" p-TabBar-tabIcon";var n=e.title.iconClass;return n?t+" "+n:t},e}();e.Renderer=t,e.defaultRenderer=new t}($e||($e={})),function(e){e.DRAG_THRESHOLD=5,e.DETACH_THRESHOLD=20,e.createNode=function(){var e=document.createElement("div"),t=document.createElement("ul");return t.className="lm-TabBar-content",t.classList.add("p-TabBar-content"),e.appendChild(t),e},e.asTitle=function(e){return e instanceof Ee?e:new Ee(e)},e.parseTransitionDuration=function(e){var t=window.getComputedStyle(e);return 1e3*(parseFloat(t.transitionDuration)||0)},e.snapTabLayout=function(e,t){for(var n=new Array(e.length),r=0,i=e.length;r<i;++r){var o=e[r],a=window.getComputedStyle(o);n[r]="horizontal"===t?{pos:o.offsetLeft,size:o.offsetWidth,margin:parseFloat(a.marginLeft)||0}:{pos:o.offsetTop,size:o.offsetHeight,margin:parseFloat(a.marginTop)||0}}return n},e.dragExceeded=function(t,n){var r=Math.abs(n.clientX-t.pressX),i=Math.abs(n.clientY-t.pressY);return r>=e.DRAG_THRESHOLD||i>=e.DRAG_THRESHOLD},e.detachExceeded=function(t,n){var r=t.contentRect;return n.clientX<r.left-e.DETACH_THRESHOLD||n.clientX>=r.right+e.DETACH_THRESHOLD||n.clientY<r.top-e.DETACH_THRESHOLD||n.clientY>=r.bottom+e.DETACH_THRESHOLD},e.layoutTabs=function(e,t,n,r){var i,o,a,s;"horizontal"===r?(i=t.pressX,o=n.clientX-t.contentRect.left,a=n.clientX,s=t.contentRect.width):(i=t.pressY,o=n.clientY-t.contentRect.top,a=n.clientY,s=t.contentRect.height);for(var l=t.index,c=o-t.tabPressPos,u=c+t.tabSize,d=0,h=e.length;d<h;++d){var p=void 0,f=t.tabLayout[d],m=f.pos+(f.size>>1);if(d<t.index&&c<m)p=t.tabSize+t.tabLayout[d+1].margin+"px",l=Math.min(l,d);else if(d>t.index&&u>m)p=-t.tabSize-f.margin+"px",l=Math.max(l,d);else if(d===t.index){var g=a-i,v=s-(t.tabPos+t.tabSize);p=Math.max(-t.tabPos,Math.min(g,v))+"px"}else p="";"horizontal"===r?e[d].style.left=p:e[d].style.top=p}t.targetIndex=l},e.finalizeTabPosition=function(e,t){var n,r;if(n="horizontal"===t?e.contentRect.width:e.contentRect.height,e.targetIndex===e.index)r=0;else if(e.targetIndex>e.index){r=(i=e.tabLayout[e.targetIndex]).pos+i.size-e.tabSize-e.tabPos}else{var i;r=(i=e.tabLayout[e.targetIndex]).pos-e.tabPos}var o=n-(e.tabPos+e.tabSize),a=Math.max(-e.tabPos,Math.min(r,o));"horizontal"===t?e.tab.style.left=a+"px":e.tab.style.top=a+"px"},e.resetTabPositions=function(e,t){Object(X.each)(e,(function(e){"horizontal"===t?e.style.left="":e.style.top=""}))}}(Ke||(Ke={}));var Qe,Ze=function(e){function t(n){void 0===n&&(n={});var r=e.call(this)||this;r._drag=null,r._tabsMovable=!0,r._tabsConstrained=!1,r._pressData=null,r._layoutModified=new ne.Signal(r),r.addClass("lm-DockPanel"),r.addClass("p-DockPanel"),r._mode=n.mode||"multiple-document",r._renderer=n.renderer||t.defaultRenderer,r._edges=n.edges||Qe.DEFAULT_EDGES,void 0!==n.tabsMovable&&(r._tabsMovable=n.tabsMovable),void 0!==n.tabsConstrained&&(r._tabsConstrained=n.tabsConstrained),r.dataset.mode=r._mode;var i={createTabBar:function(){return r._createTabBar()},createHandle:function(){return r._createHandle()}};return r.layout=new qe({renderer:i,spacing:n.spacing}),r.overlay=n.overlay||new t.Overlay,r.node.appendChild(r.overlay.node),r}return we(t,e),t.prototype.dispose=function(){this._releaseMouse(),this.overlay.hide(0),this._drag&&this._drag.dispose(),e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"layoutModified",{get:function(){return this._layoutModified},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderer",{get:function(){return this.layout.renderer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"spacing",{get:function(){return this.layout.spacing},set:function(e){this.layout.spacing=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this._mode},set:function(e){if(this._mode!==e){this._mode=e,this.dataset.mode=e;var t=this.layout;switch(e){case"multiple-document":Object(X.each)(t.tabBars(),(function(e){e.show()}));break;case"single-document":t.restoreLayout(Qe.createSingleDocumentConfig(this));break;default:throw"unreachable"}ee.c.postMessage(this,Qe.LayoutModified)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabsMovable",{get:function(){return this._tabsMovable},set:function(e){this._tabsMovable=e,Object(X.each)(this.tabBars(),(function(t){t.tabsMovable=e}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabsConstrained",{get:function(){return this._tabsConstrained},set:function(e){this._tabsConstrained=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.layout.isEmpty},enumerable:!0,configurable:!0}),t.prototype.widgets=function(){return this.layout.widgets()},t.prototype.selectedWidgets=function(){return this.layout.selectedWidgets()},t.prototype.tabBars=function(){return this.layout.tabBars()},t.prototype.handles=function(){return this.layout.handles()},t.prototype.selectWidget=function(e){var t=Object(X.find)(this.tabBars(),(function(t){return-1!==t.titles.indexOf(e.title)}));if(!t)throw new Error("Widget is not contained in the dock panel.");t.currentTitle=e.title},t.prototype.activateWidget=function(e){this.selectWidget(e),e.activate()},t.prototype.saveLayout=function(){return this.layout.saveLayout()},t.prototype.restoreLayout=function(e){this._mode="multiple-document",this.layout.restoreLayout(e),(B.IS_EDGE||B.IS_IE)&&ee.c.flush(),ee.c.postMessage(this,Qe.LayoutModified)},t.prototype.addWidget=function(e,t){void 0===t&&(t={}),"single-document"===this._mode?this.layout.addWidget(e):this.layout.addWidget(e,t),ee.c.postMessage(this,Qe.LayoutModified)},t.prototype.processMessage=function(t){"layout-modified"===t.type?this._layoutModified.emit(void 0):e.prototype.processMessage.call(this,t)},t.prototype.handleEvent=function(e){switch(e.type){case"lm-dragenter":this._evtDragEnter(e);break;case"lm-dragleave":this._evtDragLeave(e);break;case"lm-dragover":this._evtDragOver(e);break;case"lm-drop":this._evtDrop(e);break;case"mousedown":this._evtMouseDown(e);break;case"mousemove":this._evtMouseMove(e);break;case"mouseup":this._evtMouseUp(e);break;case"keydown":this._evtKeyDown(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation()}},t.prototype.onBeforeAttach=function(e){this.node.addEventListener("lm-dragenter",this),this.node.addEventListener("lm-dragleave",this),this.node.addEventListener("lm-dragover",this),this.node.addEventListener("lm-drop",this),this.node.addEventListener("mousedown",this)},t.prototype.onAfterDetach=function(e){this.node.removeEventListener("lm-dragenter",this),this.node.removeEventListener("lm-dragleave",this),this.node.removeEventListener("lm-dragover",this),this.node.removeEventListener("lm-drop",this),this.node.removeEventListener("mousedown",this),this._releaseMouse()},t.prototype.onChildAdded=function(e){Qe.isGeneratedTabBarProperty.get(e.child)||(e.child.addClass("lm-DockPanel-widget"),e.child.addClass("p-DockPanel-widget"))},t.prototype.onChildRemoved=function(e){Qe.isGeneratedTabBarProperty.get(e.child)||(e.child.removeClass("lm-DockPanel-widget"),e.child.removeClass("p-DockPanel-widget"),ee.c.postMessage(this,Qe.LayoutModified))},t.prototype._evtDragEnter=function(e){e.mimeData.hasData("application/vnd.lumino.widget-factory")&&(e.preventDefault(),e.stopPropagation())},t.prototype._evtDragLeave=function(e){e.preventDefault(),e.stopPropagation(),this.overlay.hide(1)},t.prototype._evtDragOver=function(e){e.preventDefault(),e.stopPropagation(),this._tabsConstrained&&e.source!==this||"invalid"===this._showOverlay(e.clientX,e.clientY)?e.dropAction="none":e.dropAction=e.proposedAction},t.prototype._evtDrop=function(e){if(e.preventDefault(),e.stopPropagation(),this.overlay.hide(0),"none"!==e.proposedAction){var t=e.clientX,n=e.clientY,r=Qe.findDropTarget(this,t,n,this._edges),i=r.zone,o=r.target;if("invalid"!==i){var a=e.mimeData.getData("application/vnd.lumino.widget-factory");if("function"==typeof a){var s=a();if(s instanceof Ce)if(s.contains(this))e.dropAction="none";else{var l=o?Qe.getDropRef(o.tabBar):null;switch(i){case"root-all":this.addWidget(s);break;case"root-top":this.addWidget(s,{mode:"split-top"});break;case"root-left":this.addWidget(s,{mode:"split-left"});break;case"root-right":this.addWidget(s,{mode:"split-right"});break;case"root-bottom":this.addWidget(s,{mode:"split-bottom"});break;case"widget-all":this.addWidget(s,{mode:"tab-after",ref:l});break;case"widget-top":this.addWidget(s,{mode:"split-top",ref:l});break;case"widget-left":this.addWidget(s,{mode:"split-left",ref:l});break;case"widget-right":this.addWidget(s,{mode:"split-right",ref:l});break;case"widget-bottom":this.addWidget(s,{mode:"split-bottom",ref:l});break;case"widget-tab":this.addWidget(s,{mode:"tab-after",ref:l});break;default:throw"unreachable"}e.dropAction=e.proposedAction,this.activateWidget(s)}else e.dropAction="none"}else e.dropAction="none"}else e.dropAction="none"}else e.dropAction="none"},t.prototype._evtKeyDown=function(e){e.preventDefault(),e.stopPropagation(),27===e.keyCode&&(this._releaseMouse(),ee.c.postMessage(this,Qe.LayoutModified))},t.prototype._evtMouseDown=function(e){if(0===e.button){var t=this.layout,n=e.target,r=Object(X.find)(t.handles(),(function(e){return e.contains(n)}));if(r){e.preventDefault(),e.stopPropagation(),document.addEventListener("keydown",this,!0),document.addEventListener("mouseup",this,!0),document.addEventListener("mousemove",this,!0),document.addEventListener("contextmenu",this,!0);var i=r.getBoundingClientRect(),o=e.clientX-i.left,a=e.clientY-i.top,s=window.getComputedStyle(r),l=_e.overrideCursor(s.cursor);this._pressData={handle:r,deltaX:o,deltaY:a,override:l}}}},t.prototype._evtMouseMove=function(e){if(this._pressData){e.preventDefault(),e.stopPropagation();var t=this.node.getBoundingClientRect(),n=e.clientX-t.left-this._pressData.deltaX,r=e.clientY-t.top-this._pressData.deltaY;this.layout.moveHandle(this._pressData.handle,n,r)}},t.prototype._evtMouseUp=function(e){0===e.button&&(e.preventDefault(),e.stopPropagation(),this._releaseMouse(),ee.c.postMessage(this,Qe.LayoutModified))},t.prototype._releaseMouse=function(){this._pressData&&(this._pressData.override.dispose(),this._pressData=null,document.removeEventListener("keydown",this,!0),document.removeEventListener("mouseup",this,!0),document.removeEventListener("mousemove",this,!0),document.removeEventListener("contextmenu",this,!0))},t.prototype._showOverlay=function(e,t){var n,r,i,o,a=Qe.findDropTarget(this,e,t,this._edges),s=a.zone,l=a.target;if("invalid"===s)return this.overlay.hide(100),s;var c=F.boxSizing(this.node),u=this.node.getBoundingClientRect();switch(s){case"root-all":n=c.paddingTop,r=c.paddingLeft,i=c.paddingRight,o=c.paddingBottom;break;case"root-top":n=c.paddingTop,r=c.paddingLeft,i=c.paddingRight,o=u.height*Qe.GOLDEN_RATIO;break;case"root-left":n=c.paddingTop,r=c.paddingLeft,i=u.width*Qe.GOLDEN_RATIO,o=c.paddingBottom;break;case"root-right":n=c.paddingTop,r=u.width*Qe.GOLDEN_RATIO,i=c.paddingRight,o=c.paddingBottom;break;case"root-bottom":n=u.height*Qe.GOLDEN_RATIO,r=c.paddingLeft,i=c.paddingRight,o=c.paddingBottom;break;case"widget-all":n=l.top,r=l.left,i=l.right,o=l.bottom;break;case"widget-top":n=l.top,r=l.left,i=l.right,o=l.bottom+l.height/2;break;case"widget-left":n=l.top,r=l.left,i=l.right+l.width/2,o=l.bottom;break;case"widget-right":n=l.top,r=l.left+l.width/2,i=l.right,o=l.bottom;break;case"widget-bottom":n=l.top+l.height/2,r=l.left,i=l.right,o=l.bottom;break;case"widget-tab":var d=l.tabBar.node.getBoundingClientRect().height;n=l.top,r=l.left,i=l.right,o=l.bottom+l.height-d;break;default:throw"unreachable"}return this.overlay.show({top:n,left:r,right:i,bottom:o}),s},t.prototype._createTabBar=function(){var e=this._renderer.createTabBar();return Qe.isGeneratedTabBarProperty.set(e,!0),"single-document"===this._mode&&e.hide(),e.tabsMovable=this._tabsMovable,e.allowDeselect=!1,e.removeBehavior="select-previous-tab",e.insertBehavior="select-tab-if-needed",e.tabMoved.connect(this._onTabMoved,this),e.currentChanged.connect(this._onCurrentChanged,this),e.tabCloseRequested.connect(this._onTabCloseRequested,this),e.tabDetachRequested.connect(this._onTabDetachRequested,this),e.tabActivateRequested.connect(this._onTabActivateRequested,this),e},t.prototype._createHandle=function(){return this._renderer.createHandle()},t.prototype._onTabMoved=function(){ee.c.postMessage(this,Qe.LayoutModified)},t.prototype._onCurrentChanged=function(e,t){var n=t.previousTitle,r=t.currentTitle;n&&n.owner.hide(),r&&r.owner.show(),(B.IS_EDGE||B.IS_IE)&&ee.c.flush(),ee.c.postMessage(this,Qe.LayoutModified)},t.prototype._onTabActivateRequested=function(e,t){t.title.owner.activate()},t.prototype._onTabCloseRequested=function(e,t){t.title.owner.close()},t.prototype._onTabDetachRequested=function(e,t){var n=this;if(!this._drag){e.releaseMouse();var r=t.title,i=t.tab,o=t.clientX,a=t.clientY,l=new s.MimeData;l.setData("application/vnd.lumino.widget-factory",(function(){return r.owner}));var c=i.cloneNode(!0);this._drag=new _e({mimeData:l,dragImage:c,proposedAction:"move",supportedActions:"move",source:this}),i.classList.add("lm-mod-hidden"),i.classList.add("p-mod-hidden");this._drag.start(o,a).then((function(){n._drag=null,i.classList.remove("lm-mod-hidden"),i.classList.remove("p-mod-hidden")}))}},t}(Ce);!function(e){var t=function(){function e(){this._timer=-1,this._hidden=!0,this.node=document.createElement("div"),this.node.classList.add("lm-DockPanel-overlay"),this.node.classList.add("lm-mod-hidden"),this.node.classList.add("p-DockPanel-overlay"),this.node.classList.add("p-mod-hidden"),this.node.style.position="absolute"}return e.prototype.show=function(e){var t=this.node.style;t.top=e.top+"px",t.left=e.left+"px",t.right=e.right+"px",t.bottom=e.bottom+"px",clearTimeout(this._timer),this._timer=-1,this._hidden&&(this._hidden=!1,this.node.classList.remove("lm-mod-hidden"),this.node.classList.remove("p-mod-hidden"))},e.prototype.hide=function(e){var t=this;if(!this._hidden)return e<=0?(clearTimeout(this._timer),this._timer=-1,this._hidden=!0,this.node.classList.add("lm-mod-hidden"),void this.node.classList.add("p-mod-hidden")):void(-1===this._timer&&(this._timer=window.setTimeout((function(){t._timer=-1,t._hidden=!0,t.node.classList.add("lm-mod-hidden"),t.node.classList.add("p-mod-hidden")}),e)))},e}();e.Overlay=t;var n=function(){function e(){}return e.prototype.createTabBar=function(){var e=new $e;return e.addClass("lm-DockPanel-tabBar"),e.addClass("p-DockPanel-tabBar"),e},e.prototype.createHandle=function(){var e=document.createElement("div");return e.className="lm-DockPanel-handle",e.classList.add("p-DockPanel-handle"),e},e}();e.Renderer=n,e.defaultRenderer=new n}(Ze||(Ze={})),function(e){e.GOLDEN_RATIO=.618,e.DEFAULT_EDGES={top:12,right:40,bottom:40,left:40},e.LayoutModified=new ee.a("layout-modified"),e.isGeneratedTabBarProperty=new te.AttachedProperty({name:"isGeneratedTabBar",create:function(){return!1}}),e.createSingleDocumentConfig=function(e){if(e.isEmpty)return{main:null};var t=Object(X.toArray)(e.widgets()),n=e.selectedWidgets().next(),r=n?t.indexOf(n):-1;return{main:{type:"tab-area",widgets:t,currentIndex:r}}},e.findDropTarget=function(e,t,n,r){if(!F.hitTest(e.node,t,n))return{zone:"invalid",target:null};var i=e.layout;if(i.isEmpty)return{zone:"root-all",target:null};if("multiple-document"===e.mode){var o=e.node.getBoundingClientRect(),a=t-o.left+1,s=n-o.top+1,l=o.right-t,c=o.bottom-n;switch(Math.min(s,l,c,a)){case s:if(s<r.top)return{zone:"root-top",target:null};break;case l:if(l<r.right)return{zone:"root-right",target:null};break;case c:if(c<r.bottom)return{zone:"root-bottom",target:null};break;case a:if(a<r.left)return{zone:"root-left",target:null};break;default:throw"unreachable"}}var u=i.hitTestTabAreas(t,n);if(!u)return{zone:"invalid",target:null};if("single-document"===e.mode)return{zone:"widget-all",target:u};var d=u.x-u.left+1,h=u.y-u.top+1,p=u.left+u.width-u.x,f=u.top+u.height-u.y;if(h<u.tabBar.node.getBoundingClientRect().height)return{zone:"widget-tab",target:u};var m,g=Math.round(u.width/3),v=Math.round(u.height/3);if(d>g&&p>g&&h>v&&f>v)return{zone:"widget-all",target:u};switch(d/=g,h/=v,p/=g,f/=v,Math.min(d,h,p,f)){case d:m="widget-left";break;case h:m="widget-top";break;case p:m="widget-right";break;case f:m="widget-bottom";break;default:throw"unreachable"}return{zone:m,target:u}},e.getDropRef=function(e){return 0===e.titles.length?null:e.currentTitle?e.currentTitle.owner:e.titles[e.titles.length-1].owner}}(Qe||(Qe={}));var Je,Xe,et=function(){function e(){this._counter=0,this._widgets=[],this._activeWidget=null,this._currentWidget=null,this._numbers=new Map,this._nodes=new Map,this._activeChanged=new ne.Signal(this),this._currentChanged=new ne.Signal(this)}return e.prototype.dispose=function(){var e=this;this._counter<0||(this._counter=-1,ne.Signal.clearData(this),Object(X.each)(this._widgets,(function(t){t.node.removeEventListener("focus",e,!0),t.node.removeEventListener("blur",e,!0)})),this._activeWidget=null,this._currentWidget=null,this._nodes.clear(),this._numbers.clear(),this._widgets.length=0)},Object.defineProperty(e.prototype,"currentChanged",{get:function(){return this._currentChanged},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeChanged",{get:function(){return this._activeChanged},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisposed",{get:function(){return this._counter<0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentWidget",{get:function(){return this._currentWidget},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeWidget",{get:function(){return this._activeWidget},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widgets",{get:function(){return this._widgets},enumerable:!0,configurable:!0}),e.prototype.focusNumber=function(e){var t=this._numbers.get(e);return void 0===t?-1:t},e.prototype.has=function(e){return this._numbers.has(e)},e.prototype.add=function(e){if(!this._numbers.has(e)){var t=e.node.contains(document.activeElement),n=t?this._counter++:-1;this._widgets.push(e),this._numbers.set(e,n),this._nodes.set(e.node,e),e.node.addEventListener("focus",this,!0),e.node.addEventListener("blur",this,!0),e.disposed.connect(this._onWidgetDisposed,this),t&&this._setWidgets(e,e)}},e.prototype.remove=function(e){var t=this;if(this._numbers.has(e)&&(e.disposed.disconnect(this._onWidgetDisposed,this),e.node.removeEventListener("focus",this,!0),e.node.removeEventListener("blur",this,!0),X.ArrayExt.removeFirstOf(this._widgets,e),this._nodes.delete(e.node),this._numbers.delete(e),this._currentWidget===e)){var n=Object(X.filter)(this._widgets,(function(e){return-1!==t._numbers.get(e)})),r=Object(X.max)(n,(function(e,n){return t._numbers.get(e)-t._numbers.get(n)}))||null;this._setWidgets(r,null)}},e.prototype.handleEvent=function(e){switch(e.type){case"focus":this._evtFocus(e);break;case"blur":this._evtBlur(e)}},e.prototype._setWidgets=function(e,t){var n=this._currentWidget;this._currentWidget=e;var r=this._activeWidget;this._activeWidget=t,n!==e&&this._currentChanged.emit({oldValue:n,newValue:e}),r!==t&&this._activeChanged.emit({oldValue:r,newValue:t})},e.prototype._evtFocus=function(e){var t=this._nodes.get(e.currentTarget);t!==this._currentWidget&&this._numbers.set(t,this._counter++),this._setWidgets(t,t)},e.prototype._evtBlur=function(e){var t=this._nodes.get(e.currentTarget),n=e.relatedTarget;n&&(t.node.contains(n)||Object(X.find)(this._widgets,(function(e){return e.node.contains(n)})))||this._setWidgets(this._currentWidget,null)},e.prototype._onWidgetDisposed=function(e){this.remove(e)},e}(),tt=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n._dirty=!1,n._rowSpacing=4,n._columnSpacing=4,n._items=[],n._rowStarts=[],n._columnStarts=[],n._rowSizers=[new be],n._columnSizers=[new be],n._box=null,void 0!==t.rowCount&&Xe.reallocSizers(n._rowSizers,t.rowCount),void 0!==t.columnCount&&Xe.reallocSizers(n._columnSizers,t.columnCount),void 0!==t.rowSpacing&&(n._rowSpacing=Xe.clampValue(t.rowSpacing)),void 0!==t.columnSpacing&&(n._columnSpacing=Xe.clampValue(t.columnSpacing)),n}return we(t,e),t.prototype.dispose=function(){Object(X.each)(this._items,(function(e){var t=e.widget;e.dispose(),t.dispose()})),this._box=null,this._items.length=0,this._rowStarts.length=0,this._rowSizers.length=0,this._columnStarts.length=0,this._columnSizers.length=0,e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"rowCount",{get:function(){return this._rowSizers.length},set:function(e){e!==this.rowCount&&(Xe.reallocSizers(this._rowSizers,e),this.parent&&this.parent.fit())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnCount",{get:function(){return this._columnSizers.length},set:function(e){e!==this.columnCount&&(Xe.reallocSizers(this._columnSizers,e),this.parent&&this.parent.fit())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowSpacing",{get:function(){return this._rowSpacing},set:function(e){e=Xe.clampValue(e),this._rowSpacing!==e&&(this._rowSpacing=e,this.parent&&this.parent.fit())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnSpacing",{get:function(){return this._columnSpacing},set:function(e){e=Xe.clampValue(e),this._columnSpacing!==e&&(this._columnSpacing=e,this.parent&&this.parent.fit())},enumerable:!0,configurable:!0}),t.prototype.rowStretch=function(e){var t=this._rowSizers[e];return t?t.stretch:-1},t.prototype.setRowStretch=function(e,t){var n=this._rowSizers[e];n&&(t=Xe.clampValue(t),n.stretch!==t&&(n.stretch=t,this.parent&&this.parent.update()))},t.prototype.columnStretch=function(e){var t=this._columnSizers[e];return t?t.stretch:-1},t.prototype.setColumnStretch=function(e,t){var n=this._columnSizers[e];n&&(t=Xe.clampValue(t),n.stretch!==t&&(n.stretch=t,this.parent&&this.parent.update()))},t.prototype.iter=function(){return Object(X.map)(this._items,(function(e){return e.widget}))},t.prototype.addWidget=function(e){-1===X.ArrayExt.findFirstIndex(this._items,(function(t){return t.widget===e}))&&(this._items.push(new ke(e)),this.parent&&this.attachWidget(e))},t.prototype.removeWidget=function(e){var t=X.ArrayExt.findFirstIndex(this._items,(function(t){return t.widget===e}));if(-1!==t){var n=X.ArrayExt.removeAt(this._items,t);this.parent&&this.detachWidget(e),n.dispose()}},t.prototype.init=function(){var t=this;e.prototype.init.call(this),Object(X.each)(this,(function(e){t.attachWidget(e)}))},t.prototype.attachWidget=function(e){this.parent.isAttached&&ee.c.sendMessage(e,Ce.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&ee.c.sendMessage(e,Ce.Msg.AfterAttach),this.parent.fit()},t.prototype.detachWidget=function(e){this.parent.isAttached&&ee.c.sendMessage(e,Ce.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&ee.c.sendMessage(e,Ce.Msg.AfterDetach),this.parent.fit()},t.prototype.onBeforeShow=function(t){e.prototype.onBeforeShow.call(this,t),this.parent.update()},t.prototype.onBeforeAttach=function(t){e.prototype.onBeforeAttach.call(this,t),this.parent.fit()},t.prototype.onChildShown=function(e){this.parent.fit()},t.prototype.onChildHidden=function(e){this.parent.fit()},t.prototype.onResize=function(e){this.parent.isVisible&&this._update(e.width,e.height)},t.prototype.onUpdateRequest=function(e){this.parent.isVisible&&this._update(-1,-1)},t.prototype.onFitRequest=function(e){this.parent.isAttached&&this._fit()},t.prototype._fit=function(){for(var e=0,n=this.rowCount;e<n;++e)this._rowSizers[e].minSize=0;for(e=0,n=this.columnCount;e<n;++e)this._columnSizers[e].minSize=0;var r=this._items.filter((function(e){return!e.isHidden}));for(e=0,n=r.length;e<n;++e)r[e].fit();var i=this.rowCount-1,o=this.columnCount-1;r.sort(Xe.rowSpanCmp);for(e=0,n=r.length;e<n;++e){var a=r[e],s=t.getCellConfig(a.widget),l=Math.min(s.row,i),c=Math.min(s.row+s.rowSpan-1,i);Xe.distributeMin(this._rowSizers,l,c,a.minHeight)}r.sort(Xe.columnSpanCmp);for(e=0,n=r.length;e<n;++e){a=r[e],s=t.getCellConfig(a.widget);var u=Math.min(s.column,o),d=Math.min(s.column+s.columnSpan-1,o);Xe.distributeMin(this._columnSizers,u,d,a.minWidth)}if("set-no-constraint"!==this.fitPolicy){var h=i*this._rowSpacing,p=o*this._columnSpacing;for(e=0,n=this.rowCount;e<n;++e)h+=this._rowSizers[e].minSize;for(e=0,n=this.columnCount;e<n;++e)p+=this._columnSizers[e].minSize;var f=this._box=F.boxSizing(this.parent.node);p+=f.horizontalSum,h+=f.verticalSum;var m=this.parent.node.style;m.minWidth=p+"px",m.minHeight=h+"px",this._dirty=!0,this.parent.parent&&ee.c.sendMessage(this.parent.parent,Ce.Msg.FitRequest),this._dirty&&ee.c.sendMessage(this.parent,Ce.Msg.UpdateRequest)}else ee.c.sendMessage(this.parent,Ce.Msg.UpdateRequest)},t.prototype._update=function(e,n){this._dirty=!1,e<0&&(e=this.parent.node.offsetWidth),n<0&&(n=this.parent.node.offsetHeight),this._box||(this._box=F.boxSizing(this.parent.node));var r=this._box.paddingTop,i=this._box.paddingLeft,o=e-this._box.horizontalSum,a=n-this._box.verticalSum,s=this.rowCount-1,l=this.columnCount-1,c=s*this._rowSpacing,u=l*this._columnSpacing;ye.calc(this._rowSizers,Math.max(0,a-c)),ye.calc(this._columnSizers,Math.max(0,o-u));for(var d=0,h=r,p=this.rowCount;d<p;++d)this._rowStarts[d]=h,h+=this._rowSizers[d].size+this._rowSpacing;for(d=0,h=i,p=this.columnCount;d<p;++d)this._columnStarts[d]=h,h+=this._columnSizers[d].size+this._columnSpacing;for(d=0,p=this._items.length;d<p;++d){var f=this._items[d];if(!f.isHidden){var m=t.getCellConfig(f.widget),g=Math.min(m.row,s),v=Math.min(m.column,l),_=Math.min(m.row+m.rowSpan-1,s),y=Math.min(m.column+m.columnSpan-1,l),b=this._columnStarts[v],M=this._rowStarts[g],w=this._columnStarts[y]+this._columnSizers[y].size-b,L=this._rowStarts[_]+this._rowSizers[_].size-M;f.update(b,M,w,L)}}},t}(Se);(Je=tt||(tt={})).getCellConfig=function(e){return Xe.cellConfigProperty.get(e)},Je.setCellConfig=function(e,t){Xe.cellConfigProperty.set(e,Xe.normalizeConfig(t))},function(e){e.cellConfigProperty=new te.AttachedProperty({name:"cellConfig",create:function(){return{row:0,column:0,rowSpan:1,columnSpan:1}},changed:function(e){e.parent&&e.parent.layout instanceof tt&&e.parent.fit()}}),e.normalizeConfig=function(e){return{row:Math.max(0,Math.floor(e.row||0)),column:Math.max(0,Math.floor(e.column||0)),rowSpan:Math.max(1,Math.floor(e.rowSpan||0)),columnSpan:Math.max(1,Math.floor(e.columnSpan||0))}},e.clampValue=function(e){return Math.max(0,Math.floor(e))},e.rowSpanCmp=function(t,n){var r=e.cellConfigProperty.get(t.widget),i=e.cellConfigProperty.get(n.widget);return r.rowSpan-i.rowSpan},e.columnSpanCmp=function(t,n){var r=e.cellConfigProperty.get(t.widget),i=e.cellConfigProperty.get(n.widget);return r.columnSpan-i.columnSpan},e.reallocSizers=function(e,t){for(t=Math.max(1,Math.floor(t));e.length<t;)e.push(new be);e.length>t&&(e.length=t)},e.distributeMin=function(e,t,n,r){if(!(n<t))if(t!==n){for(var i=0,o=t;o<=n;++o)i+=e[o].minSize;if(!(i>=r)){var a=(r-i)/(n-t+1);for(o=t;o<=n;++o)e[o].minSize+=a}}else{var s=e[t];s.minSize=Math.max(s.minSize,r)}}}(Xe||(Xe={}));var nt,rt=function(e){function t(n){void 0===n&&(n={});var r=e.call(this,{node:nt.createNode()})||this;return r._activeIndex=-1,r._menus=[],r._childMenu=null,r.addClass("lm-MenuBar"),r.addClass("p-MenuBar"),r.setFlag(Ce.Flag.DisallowLayout),r.renderer=n.renderer||t.defaultRenderer,r}return we(t,e),t.prototype.dispose=function(){this._closeChildMenu(),this._menus.length=0,e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"childMenu",{get:function(){return this._childMenu},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contentNode",{get:function(){return this.node.getElementsByClassName("lm-MenuBar-content")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeMenu",{get:function(){return this._menus[this._activeIndex]||null},set:function(e){this.activeIndex=e?this._menus.indexOf(e):-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeIndex",{get:function(){return this._activeIndex},set:function(e){(e<0||e>=this._menus.length)&&(e=-1),this._activeIndex!==e&&(this._activeIndex=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"menus",{get:function(){return this._menus},enumerable:!0,configurable:!0}),t.prototype.openActiveMenu=function(){-1!==this._activeIndex&&(this._openChildMenu(),this._childMenu&&(this._childMenu.activeIndex=-1,this._childMenu.activateNextItem()))},t.prototype.addMenu=function(e){this.insertMenu(this._menus.length,e)},t.prototype.insertMenu=function(e,t){this._closeChildMenu();var n=this._menus.indexOf(t),r=Math.max(0,Math.min(e,this._menus.length));if(-1===n)return X.ArrayExt.insert(this._menus,r,t),t.addClass("lm-MenuBar-menu"),t.addClass("p-MenuBar-menu"),t.aboutToClose.connect(this._onMenuAboutToClose,this),t.menuRequested.connect(this._onMenuMenuRequested,this),t.title.changed.connect(this._onTitleChanged,this),void this.update();r===this._menus.length&&r--,n!==r&&(X.ArrayExt.move(this._menus,n,r),this.update())},t.prototype.removeMenu=function(e){this.removeMenuAt(this._menus.indexOf(e))},t.prototype.removeMenuAt=function(e){this._closeChildMenu();var t=X.ArrayExt.removeAt(this._menus,e);t&&(t.aboutToClose.disconnect(this._onMenuAboutToClose,this),t.menuRequested.disconnect(this._onMenuMenuRequested,this),t.title.changed.disconnect(this._onTitleChanged,this),t.removeClass("lm-MenuBar-menu"),t.removeClass("p-MenuBar-menu"),this.update())},t.prototype.clearMenus=function(){if(0!==this._menus.length){this._closeChildMenu();for(var e=0,t=this._menus;e<t.length;e++){var n=t[e];n.aboutToClose.disconnect(this._onMenuAboutToClose,this),n.menuRequested.disconnect(this._onMenuMenuRequested,this),n.title.changed.disconnect(this._onTitleChanged,this),n.removeClass("lm-MenuBar-menu"),n.removeClass("p-MenuBar-menu")}this._menus.length=0,this.update()}},t.prototype.handleEvent=function(e){switch(e.type){case"keydown":this._evtKeyDown(e);break;case"mousedown":this._evtMouseDown(e);break;case"mousemove":this._evtMouseMove(e);break;case"mouseleave":this._evtMouseLeave(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation()}},t.prototype.onBeforeAttach=function(e){this.node.addEventListener("keydown",this),this.node.addEventListener("mousedown",this),this.node.addEventListener("mousemove",this),this.node.addEventListener("mouseleave",this),this.node.addEventListener("contextmenu",this)},t.prototype.onAfterDetach=function(e){this.node.removeEventListener("keydown",this),this.node.removeEventListener("mousedown",this),this.node.removeEventListener("mousemove",this),this.node.removeEventListener("mouseleave",this),this.node.removeEventListener("contextmenu",this),this._closeChildMenu()},t.prototype.onActivateRequest=function(e){this.isAttached&&this.node.focus()},t.prototype.onUpdateRequest=function(e){for(var t=this._menus,n=this.renderer,r=this._activeIndex,i=new Array(t.length),o=0,a=t.length;o<a;++o){var s=t[o].title,l=o===r;i[o]=n.renderItem({title:s,active:l})}he.render(i,this.contentNode)},t.prototype._evtKeyDown=function(e){e.preventDefault(),e.stopPropagation();var t=e.keyCode;if(13!==t&&38!==t&&40!==t){if(27===t)return this._closeChildMenu(),this.activeIndex=-1,void this.node.blur();if(37!==t)if(39!==t){var n=ie().keyForKeydownEvent(e);if(n){var r=this._activeIndex+1,i=nt.findMnemonic(this._menus,n,r);-1===i.index||i.multiple?-1!==i.index?this.activeIndex=i.index:-1!==i.auto&&(this.activeIndex=i.auto):(this.activeIndex=i.index,this.openActiveMenu())}}else{o=this._activeIndex,a=this._menus.length;this.activeIndex=o===a-1?0:o+1}else{var o=this._activeIndex,a=this._menus.length;this.activeIndex=0===o?a-1:o-1}}else this.openActiveMenu()},t.prototype._evtMouseDown=function(e){if(F.hitTest(this.node,e.clientX,e.clientY)){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();var t=X.ArrayExt.findFirstIndex(this.contentNode.children,(function(t){return F.hitTest(t,e.clientX,e.clientY)}));-1!==t?0===e.button&&(this._childMenu?(this._closeChildMenu(),this.activeIndex=t):(this.activeIndex=t,this._openChildMenu())):this._closeChildMenu()}},t.prototype._evtMouseMove=function(e){var t=X.ArrayExt.findFirstIndex(this.contentNode.children,(function(t){return F.hitTest(t,e.clientX,e.clientY)}));t!==this._activeIndex&&(-1===t&&this._childMenu||(this.activeIndex=t,this._childMenu&&this._openChildMenu()))},t.prototype._evtMouseLeave=function(e){this._childMenu||(this.activeIndex=-1)},t.prototype._openChildMenu=function(){var e=this.activeMenu;if(e){var t=this._childMenu;if(t!==e){this._childMenu=e,t?t.close():(this.addClass("lm-mod-active"),this.addClass("p-mod-active"),document.addEventListener("mousedown",this,!0)),ee.c.sendMessage(this,Ce.Msg.UpdateRequest);var n=this.contentNode.children[this._activeIndex].getBoundingClientRect(),r=n.left,i=n.bottom;e.open(r,i,{forceX:!0,forceY:!0})}}else this._closeChildMenu()},t.prototype._closeChildMenu=function(){if(this._childMenu){this.removeClass("lm-mod-active"),this.removeClass("p-mod-active"),document.removeEventListener("mousedown",this,!0);var e=this._childMenu;this._childMenu=null,e.close(),this.activeIndex=-1}},t.prototype._onMenuAboutToClose=function(e){e===this._childMenu&&(this.removeClass("lm-mod-active"),this.removeClass("p-mod-active"),document.removeEventListener("mousedown",this,!0),this._childMenu=null,this.activeIndex=-1)},t.prototype._onMenuMenuRequested=function(e,t){if(e===this._childMenu){var n=this._activeIndex,r=this._menus.length;switch(t){case"next":this.activeIndex=n===r-1?0:n+1;break;case"previous":this.activeIndex=0===n?r-1:n-1}this.openActiveMenu()}},t.prototype._onTitleChanged=function(){this.update()},t}(Ce);!function(e){var t=function(){function e(){}return e.prototype.renderItem=function(e){var t=this.createItemClass(e),n=this.createItemDataset(e),r=this.createItemARIA(e);return ge.li(xe({className:t,dataset:n},r),this.renderIcon(e),this.renderLabel(e))},e.prototype.renderIcon=function(e){var t=this.createIconClass(e);return"string"==typeof e.title.icon?ge.div({className:t},e.title.iconLabel):ge.div({className:t},e.title.icon,e.title.iconLabel)},e.prototype.renderLabel=function(e){var t=this.formatLabel(e);return ge.div({className:"lm-MenuBar-itemLabel p-MenuBar-itemLabel"},t)},e.prototype.createItemClass=function(e){var t="lm-MenuBar-item";return t+=" p-MenuBar-item",e.title.className&&(t+=" "+e.title.className),e.active&&(t+=" lm-mod-active",t+=" p-mod-active"),t},e.prototype.createItemDataset=function(e){return e.title.dataset},e.prototype.createItemARIA=function(e){return{role:"menuitem","aria-haspopup":"true"}},e.prototype.createIconClass=function(e){var t="lm-MenuBar-itemIcon";t+=" p-MenuBar-itemIcon";var n=e.title.iconClass;return n?t+" "+n:t},e.prototype.formatLabel=function(e){var t=e.title,n=t.label,r=t.mnemonic;if(r<0||r>=n.length)return n;var i=n.slice(0,r),o=n.slice(r+1),a=n[r];return[i,ge.span({className:"lm-MenuBar-itemMnemonic p-MenuBar-itemMnemonic"},a),o]},e}();e.Renderer=t,e.defaultRenderer=new t}(rt||(rt={})),function(e){e.createNode=function(){var e=document.createElement("div"),t=document.createElement("ul");return t.className="lm-MenuBar-content",t.classList.add("p-MenuBar-content"),e.appendChild(t),t.setAttribute("role","menubar"),e.tabIndex=-1,e},e.findMnemonic=function(e,t,n){for(var r=-1,i=-1,o=!1,a=t.toUpperCase(),s=0,l=e.length;s<l;++s){var c=(s+n)%l,u=e[c].title;if(0!==u.label.length){var d=u.mnemonic;d>=0&&d<u.label.length?u.label[d].toUpperCase()===a&&(-1===r?r=c:o=!0):-1===i&&u.label[0].toUpperCase()===a&&(i=c)}}return{index:r,multiple:o,auto:i}}}(nt||(nt={}));var it;!function(e){function t(t){void 0===t&&(t={});var n=e.call(this,{node:it.createNode()})||this;return n._onRepeat=function(){if(n._repeatTimer=-1,n._pressData){var e=n._pressData.part;if("thumb"!==e){n._repeatTimer=window.setTimeout(n._onRepeat,20);var t=n._pressData.mouseX,r=n._pressData.mouseY;if("decrement"!==e)if("increment"!==e){if("track"===e){if(!F.hitTest(n.trackNode,t,r))return;var i=n.thumbNode;if(F.hitTest(i,t,r))return;var o=i.getBoundingClientRect(),a=void 0;return a="horizontal"===n._orientation?t<o.left?"decrement":"increment":r<o.top?"decrement":"increment",void n._pageRequested.emit(a)}}else{if(!F.hitTest(n.incrementNode,t,r))return;n._stepRequested.emit("increment")}else{if(!F.hitTest(n.decrementNode,t,r))return;n._stepRequested.emit("decrement")}}}},n._value=0,n._page=10,n._maximum=100,n._repeatTimer=-1,n._pressData=null,n._thumbMoved=new ne.Signal(n),n._stepRequested=new ne.Signal(n),n._pageRequested=new ne.Signal(n),n.addClass("lm-ScrollBar"),n.addClass("p-ScrollBar"),n.setFlag(Ce.Flag.DisallowLayout),n._orientation=t.orientation||"vertical",n.dataset.orientation=n._orientation,void 0!==t.maximum&&(n._maximum=Math.max(0,t.maximum)),void 0!==t.page&&(n._page=Math.max(0,t.page)),void 0!==t.value&&(n._value=Math.max(0,Math.min(t.value,n._maximum))),n}we(t,e),Object.defineProperty(t.prototype,"thumbMoved",{get:function(){return this._thumbMoved},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stepRequested",{get:function(){return this._stepRequested},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageRequested",{get:function(){return this._pageRequested},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orientation",{get:function(){return this._orientation},set:function(e){this._orientation!==e&&(this._releaseMouse(),this._orientation=e,this.dataset.orientation=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(e){e=Math.max(0,Math.min(e,this._maximum)),this._value!==e&&(this._value=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this._page},set:function(e){e=Math.max(0,e),this._page!==e&&(this._page=e,this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maximum",{get:function(){return this._maximum},set:function(e){e=Math.max(0,e),this._maximum!==e&&(this._maximum=e,this._value=Math.min(this._value,e),this.update())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"decrementNode",{get:function(){return this.node.getElementsByClassName("lm-ScrollBar-button")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"incrementNode",{get:function(){return this.node.getElementsByClassName("lm-ScrollBar-button")[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trackNode",{get:function(){return this.node.getElementsByClassName("lm-ScrollBar-track")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"thumbNode",{get:function(){return this.node.getElementsByClassName("lm-ScrollBar-thumb")[0]},enumerable:!0,configurable:!0}),t.prototype.handleEvent=function(e){switch(e.type){case"mousedown":this._evtMouseDown(e);break;case"mousemove":this._evtMouseMove(e);break;case"mouseup":this._evtMouseUp(e);break;case"keydown":this._evtKeyDown(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation()}},t.prototype.onBeforeAttach=function(e){this.node.addEventListener("mousedown",this),this.update()},t.prototype.onAfterDetach=function(e){this.node.removeEventListener("mousedown",this),this._releaseMouse()},t.prototype.onUpdateRequest=function(e){var t=100*this._value/this._maximum,n=100*this._page/(this._page+this._maximum);t=Math.max(0,Math.min(t,100)),n=Math.max(0,Math.min(n,100));var r=this.thumbNode.style;"horizontal"===this._orientation?(r.top="",r.height="",r.left=t+"%",r.width=n+"%",r.transform="translate("+-t+"%, 0%)"):(r.left="",r.width="",r.top=t+"%",r.height=n+"%",r.transform="translate(0%, "+-t+"%)")},t.prototype._evtKeyDown=function(e){if(e.preventDefault(),e.stopPropagation(),27===e.keyCode){var t=this._pressData?this._pressData.value:-1;this._releaseMouse(),-1!==t&&this._moveThumb(t)}},t.prototype._evtMouseDown=function(e){if(0===e.button&&(this.activate(),!this._pressData)){var t=it.findPart(this,e.target);if(t){e.preventDefault(),e.stopPropagation();var n=_e.overrideCursor("default");if(this._pressData={part:t,override:n,delta:-1,value:-1,mouseX:e.clientX,mouseY:e.clientY},document.addEventListener("mousemove",this,!0),document.addEventListener("mouseup",this,!0),document.addEventListener("keydown",this,!0),document.addEventListener("contextmenu",this,!0),"thumb"===t){var r=this.thumbNode,i=r.getBoundingClientRect();return"horizontal"===this._orientation?this._pressData.delta=e.clientX-i.left:this._pressData.delta=e.clientY-i.top,r.classList.add("lm-mod-active"),r.classList.add("p-mod-active"),void(this._pressData.value=this._value)}if("track"===t){i=this.thumbNode.getBoundingClientRect();var o=void 0;return o="horizontal"===this._orientation?e.clientX<i.left?"decrement":"increment":e.clientY<i.top?"decrement":"increment",this._repeatTimer=window.setTimeout(this._onRepeat,350),void this._pageRequested.emit(o)}return"decrement"===t?(this.decrementNode.classList.add("lm-mod-active"),this.decrementNode.classList.add("p-mod-active"),this._repeatTimer=window.setTimeout(this._onRepeat,350),void this._stepRequested.emit("decrement")):"increment"===t?(this.incrementNode.classList.add("lm-mod-active"),this.incrementNode.classList.add("p-mod-active"),this._repeatTimer=window.setTimeout(this._onRepeat,350),void this._stepRequested.emit("increment")):void 0}}},t.prototype._evtMouseMove=function(e){if(this._pressData&&(e.preventDefault(),e.stopPropagation(),this._pressData.mouseX=e.clientX,this._pressData.mouseY=e.clientY,"thumb"===this._pressData.part)){var t,n,r=this.thumbNode.getBoundingClientRect(),i=this.trackNode.getBoundingClientRect();"horizontal"===this._orientation?(t=e.clientX-i.left-this._pressData.delta,n=i.width-r.width):(t=e.clientY-i.top-this._pressData.delta,n=i.height-r.height);var o=0===n?0:t*this._maximum/n;this._moveThumb(o)}},t.prototype._evtMouseUp=function(e){0===e.button&&(e.preventDefault(),e.stopPropagation(),this._releaseMouse())},t.prototype._releaseMouse=function(){this._pressData&&(clearTimeout(this._repeatTimer),this._repeatTimer=-1,this._pressData.override.dispose(),this._pressData=null,document.removeEventListener("mousemove",this,!0),document.removeEventListener("mouseup",this,!0),document.removeEventListener("keydown",this,!0),document.removeEventListener("contextmenu",this,!0),this.thumbNode.classList.remove("lm-mod-active"),this.decrementNode.classList.remove("lm-mod-active"),this.incrementNode.classList.remove("lm-mod-active"),this.thumbNode.classList.remove("p-mod-active"),this.decrementNode.classList.remove("p-mod-active"),this.incrementNode.classList.remove("p-mod-active"))},t.prototype._moveThumb=function(e){e=Math.max(0,Math.min(e,this._maximum)),this._value!==e&&(this._value=e,this.update(),this._thumbMoved.emit(e))}}(Ce);!function(e){e.createNode=function(){var e=document.createElement("div"),t=document.createElement("div"),n=document.createElement("div"),r=document.createElement("div"),i=document.createElement("div");return t.className="lm-ScrollBar-button",n.className="lm-ScrollBar-button",t.dataset.action="decrement",n.dataset.action="increment",r.className="lm-ScrollBar-track",i.className="lm-ScrollBar-thumb",t.classList.add("p-ScrollBar-button"),n.classList.add("p-ScrollBar-button"),r.classList.add("p-ScrollBar-track"),i.classList.add("p-ScrollBar-thumb"),r.appendChild(i),e.appendChild(t),e.appendChild(r),e.appendChild(n),e},e.findPart=function(e,t){return e.thumbNode.contains(t)?"thumb":e.trackNode.contains(t)?"track":e.decrementNode.contains(t)?"decrement":e.incrementNode.contains(t)?"increment":null}}(it||(it={}));!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._widget=null,t}we(t,e),t.prototype.dispose=function(){if(this._widget){var t=this._widget;this._widget=null,t.dispose()}e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"widget",{get:function(){return this._widget},set:function(e){e&&(e.parent=this.parent),this._widget!==e&&(this._widget&&this._widget.dispose(),this._widget=e,this.parent&&e&&this.attachWidget(e))},enumerable:!0,configurable:!0}),t.prototype.iter=function(){return this._widget?Object(X.once)(this._widget):Object(X.empty)()},t.prototype.removeWidget=function(e){this._widget===e&&(this._widget=null,this.parent&&this.detachWidget(e))},t.prototype.init=function(){var t=this;e.prototype.init.call(this),Object(X.each)(this,(function(e){t.attachWidget(e)}))},t.prototype.attachWidget=function(e){this.parent.isAttached&&ee.c.sendMessage(e,Ce.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&ee.c.sendMessage(e,Ce.Msg.AfterAttach)},t.prototype.detachWidget=function(e){this.parent.isAttached&&ee.c.sendMessage(e,Ce.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&ee.c.sendMessage(e,Ce.Msg.AfterDetach)}}(Se);var ot,at,st=function(e){function t(t){var n=e.call(this)||this;return n._fixed=0,n._spacing=4,n._dirty=!1,n._hasNormedSizes=!1,n._sizers=[],n._items=[],n._handles=[],n._box=null,n._alignment="start",n._orientation="horizontal",n.renderer=t.renderer,void 0!==t.orientation&&(n._orientation=t.orientation),void 0!==t.alignment&&(n._alignment=t.alignment),void 0!==t.spacing&&(n._spacing=at.clampSpacing(t.spacing)),n}return we(t,e),t.prototype.dispose=function(){Object(X.each)(this._items,(function(e){e.dispose()})),this._box=null,this._items.length=0,this._sizers.length=0,this._handles.length=0,e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"orientation",{get:function(){return this._orientation},set:function(e){this._orientation!==e&&(this._orientation=e,this.parent&&(this.parent.dataset.orientation=e,this.parent.fit()))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alignment",{get:function(){return this._alignment},set:function(e){this._alignment!==e&&(this._alignment=e,this.parent&&(this.parent.dataset.alignment=e,this.parent.update()))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"spacing",{get:function(){return this._spacing},set:function(e){e=at.clampSpacing(e),this._spacing!==e&&(this._spacing=e,this.parent&&this.parent.fit())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"handles",{get:function(){return this._handles},enumerable:!0,configurable:!0}),t.prototype.relativeSizes=function(){return at.normalize(this._sizers.map((function(e){return e.size})))},t.prototype.setRelativeSizes=function(e){for(var t=this._sizers.length,n=e.slice(0,t);n.length<t;)n.push(0);for(var r=at.normalize(n),i=0;i<t;++i){var o=this._sizers[i];o.sizeHint=r[i],o.size=r[i]}this._hasNormedSizes=!0,this.parent&&this.parent.update()},t.prototype.moveHandle=function(e,t){var n,r=this._handles[e];if(r&&!r.classList.contains("lm-mod-hidden")&&0!==(n="horizontal"===this._orientation?t-r.offsetLeft:t-r.offsetTop)){for(var i=0,o=this._sizers;i<o.length;i++){var a=o[i];a.size>0&&(a.sizeHint=a.size)}ye.adjust(this._sizers,e,n),this.parent&&this.parent.update()}},t.prototype.init=function(){this.parent.dataset.orientation=this.orientation,this.parent.dataset.alignment=this.alignment,e.prototype.init.call(this)},t.prototype.attachWidget=function(e,t){var n=new ke(t),r=at.createHandle(this.renderer),i=at.averageSize(this._sizers),o=at.createSizer(i);X.ArrayExt.insert(this._items,e,n),X.ArrayExt.insert(this._sizers,e,o),X.ArrayExt.insert(this._handles,e,r),this.parent.isAttached&&ee.c.sendMessage(t,Ce.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.node.appendChild(r),this.parent.isAttached&&ee.c.sendMessage(t,Ce.Msg.AfterAttach),this.parent.fit()},t.prototype.moveWidget=function(e,t,n){X.ArrayExt.move(this._items,e,t),X.ArrayExt.move(this._sizers,e,t),X.ArrayExt.move(this._handles,e,t),this.parent.fit()},t.prototype.detachWidget=function(e,t){var n=X.ArrayExt.removeAt(this._items,e),r=X.ArrayExt.removeAt(this._handles,e);X.ArrayExt.removeAt(this._sizers,e),this.parent.isAttached&&ee.c.sendMessage(t,Ce.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.node.removeChild(r),this.parent.isAttached&&ee.c.sendMessage(t,Ce.Msg.AfterDetach),n.dispose(),this.parent.fit()},t.prototype.onBeforeShow=function(t){e.prototype.onBeforeShow.call(this,t),this.parent.update()},t.prototype.onBeforeAttach=function(t){e.prototype.onBeforeAttach.call(this,t),this.parent.fit()},t.prototype.onChildShown=function(e){this.parent.fit()},t.prototype.onChildHidden=function(e){this.parent.fit()},t.prototype.onResize=function(e){this.parent.isVisible&&this._update(e.width,e.height)},t.prototype.onUpdateRequest=function(e){this.parent.isVisible&&this._update(-1,-1)},t.prototype.onFitRequest=function(e){this.parent.isAttached&&this._fit()},t.prototype._fit=function(){for(var e=0,n=-1,r=0,i=this._items.length;r<i;++r)this._items[r].isHidden?(this._handles[r].classList.add("lm-mod-hidden"),this._handles[r].classList.add("p-mod-hidden")):(this._handles[r].classList.remove("lm-mod-hidden"),this._handles[r].classList.remove("p-mod-hidden"),n=r,e++);-1!==n&&(this._handles[n].classList.add("lm-mod-hidden"),this._handles[n].classList.add("p-mod-hidden")),this._fixed=this._spacing*Math.max(0,e-1);var o="horizontal"===this._orientation,a=o?this._fixed:0,s=o?0:this._fixed;for(r=0,i=this._items.length;r<i;++r){var l=this._items[r],c=this._sizers[r];c.size>0&&(c.sizeHint=c.size),l.isHidden?(c.minSize=0,c.maxSize=0):(l.fit(),c.stretch=t.getStretch(l.widget),o?(c.minSize=l.minWidth,c.maxSize=l.maxWidth,a+=l.minWidth,s=Math.max(s,l.minHeight)):(c.minSize=l.minHeight,c.maxSize=l.maxHeight,s+=l.minHeight,a=Math.max(a,l.minWidth)))}var u=this._box=F.boxSizing(this.parent.node);a+=u.horizontalSum,s+=u.verticalSum;var d=this.parent.node.style;d.minWidth=a+"px",d.minHeight=s+"px",this._dirty=!0,this.parent.parent&&ee.c.sendMessage(this.parent.parent,Ce.Msg.FitRequest),this._dirty&&ee.c.sendMessage(this.parent,Ce.Msg.UpdateRequest)},t.prototype._update=function(e,t){this._dirty=!1;for(var n=0,r=0,i=this._items.length;r<i;++r)n+=+!this._items[r].isHidden;if(0!==n){e<0&&(e=this.parent.node.offsetWidth),t<0&&(t=this.parent.node.offsetHeight),this._box||(this._box=F.boxSizing(this.parent.node));var o,a=this._box.paddingTop,s=this._box.paddingLeft,l=e-this._box.horizontalSum,c=t-this._box.verticalSum,u="horizontal"===this._orientation;if(o=u?Math.max(0,l-this._fixed):Math.max(0,c-this._fixed),this._hasNormedSizes){for(var d=0,h=this._sizers;d<h.length;d++){h[d].sizeHint*=o}this._hasNormedSizes=!1}var p=ye.calc(this._sizers,o),f=0,m=0;if(p>0)switch(this._alignment){case"start":break;case"center":f=0,m=p/2;break;case"end":f=0,m=p;break;case"justify":f=p/n,m=0;break;default:throw"unreachable"}for(r=0,i=this._items.length;r<i;++r){var g=this._items[r];if(!g.isHidden){var v=this._sizers[r].size,_=this._handles[r].style;u?(g.update(s+m,a,v+f,c),s+=v+f,_.top=a+"px",_.left=s+m+"px",_.width=this._spacing+"px",_.height=c+"px",s+=this._spacing):(g.update(s,a+m,l,v+f),a+=v+f,_.top=a+m+"px",_.left=s+"px",_.width=l+"px",_.height=this._spacing+"px",a+=this._spacing)}}}},t}(Oe);(ot=st||(st={})).getStretch=function(e){return at.stretchProperty.get(e)},ot.setStretch=function(e,t){at.stretchProperty.set(e,t)},function(e){e.stretchProperty=new te.AttachedProperty({name:"stretch",create:function(){return 0},coerce:function(e,t){return Math.max(0,Math.floor(t))},changed:function(e){e.parent&&e.parent.layout instanceof st&&e.parent.fit()}}),e.createSizer=function(e){var t=new be;return t.sizeHint=Math.floor(e),t},e.createHandle=function(e){var t=e.createHandle();return t.style.position="absolute",t},e.clampSpacing=function(e){return Math.max(0,Math.floor(e))},e.averageSize=function(e){return e.reduce((function(e,t){return e+t.size}),0)/e.length||0},e.normalize=function(e){var t=e.length;if(0===t)return[];var n=e.reduce((function(e,t){return e+Math.abs(t)}),0);return 0===n?e.map((function(e){return 1/t})):e.map((function(e){return e/n}))}}(at||(at={}));var lt,ct=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,{layout:lt.createLayout(t)})||this;return n._pressData=null,n.addClass("lm-SplitPanel"),n.addClass("p-SplitPanel"),n}return we(t,e),t.prototype.dispose=function(){this._releaseMouse(),e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"orientation",{get:function(){return this.layout.orientation},set:function(e){this.layout.orientation=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alignment",{get:function(){return this.layout.alignment},set:function(e){this.layout.alignment=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"spacing",{get:function(){return this.layout.spacing},set:function(e){this.layout.spacing=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderer",{get:function(){return this.layout.renderer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"handles",{get:function(){return this.layout.handles},enumerable:!0,configurable:!0}),t.prototype.relativeSizes=function(){return this.layout.relativeSizes()},t.prototype.setRelativeSizes=function(e){this.layout.setRelativeSizes(e)},t.prototype.handleEvent=function(e){switch(e.type){case"mousedown":this._evtMouseDown(e);break;case"mousemove":this._evtMouseMove(e);break;case"mouseup":this._evtMouseUp(e);break;case"keydown":this._evtKeyDown(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation()}},t.prototype.onBeforeAttach=function(e){this.node.addEventListener("mousedown",this)},t.prototype.onAfterDetach=function(e){this.node.removeEventListener("mousedown",this),this._releaseMouse()},t.prototype.onChildAdded=function(e){e.child.addClass("lm-SplitPanel-child"),e.child.addClass("p-SplitPanel-child"),this._releaseMouse()},t.prototype.onChildRemoved=function(e){e.child.removeClass("lm-SplitPanel-child"),e.child.removeClass("p-SplitPanel-child"),this._releaseMouse()},t.prototype._evtKeyDown=function(e){e.preventDefault(),e.stopPropagation(),27===e.keyCode&&this._releaseMouse()},t.prototype._evtMouseDown=function(e){if(0===e.button){var t=this.layout,n=X.ArrayExt.findFirstIndex(t.handles,(function(t){return t.contains(e.target)}));if(-1!==n){var r;e.preventDefault(),e.stopPropagation(),document.addEventListener("mouseup",this,!0),document.addEventListener("mousemove",this,!0),document.addEventListener("keydown",this,!0),document.addEventListener("contextmenu",this,!0);var i=t.handles[n],o=i.getBoundingClientRect();r="horizontal"===t.orientation?e.clientX-o.left:e.clientY-o.top;var a=window.getComputedStyle(i),s=_e.overrideCursor(a.cursor);this._pressData={index:n,delta:r,override:s}}}},t.prototype._evtMouseMove=function(e){var t;e.preventDefault(),e.stopPropagation();var n=this.layout,r=this.node.getBoundingClientRect();t="horizontal"===n.orientation?e.clientX-r.left-this._pressData.delta:e.clientY-r.top-this._pressData.delta,n.moveHandle(this._pressData.index,t)},t.prototype._evtMouseUp=function(e){0===e.button&&(e.preventDefault(),e.stopPropagation(),this._releaseMouse())},t.prototype._releaseMouse=function(){this._pressData&&(this._pressData.override.dispose(),this._pressData=null,document.removeEventListener("mouseup",this,!0),document.removeEventListener("mousemove",this,!0),document.removeEventListener("keydown",this,!0),document.removeEventListener("contextmenu",this,!0))},t}(je);!function(e){var t=function(){function e(){}return e.prototype.createHandle=function(){var e=document.createElement("div");return e.className="lm-SplitPanel-handle",e.classList.add("p-SplitPanel-handle"),e},e}();e.Renderer=t,e.defaultRenderer=new t,e.getStretch=function(e){return st.getStretch(e)},e.setStretch=function(e,t){st.setStretch(e,t)}}(ct||(ct={})),function(e){e.createLayout=function(e){return e.layout||new st({renderer:e.renderer||ct.defaultRenderer,orientation:e.orientation,alignment:e.alignment,spacing:e.spacing})}}(lt||(lt={}));var ut,dt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._dirty=!1,t._items=[],t._box=null,t}return we(t,e),t.prototype.dispose=function(){Object(X.each)(this._items,(function(e){e.dispose()})),this._box=null,this._items.length=0,e.prototype.dispose.call(this)},t.prototype.attachWidget=function(e,t){X.ArrayExt.insert(this._items,e,new ke(t)),this.parent.isAttached&&ee.c.sendMessage(t,Ce.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.isAttached&&ee.c.sendMessage(t,Ce.Msg.AfterAttach),this.parent.fit()},t.prototype.moveWidget=function(e,t,n){X.ArrayExt.move(this._items,e,t),this.parent.update()},t.prototype.detachWidget=function(e,t){var n=X.ArrayExt.removeAt(this._items,e);this.parent.isAttached&&ee.c.sendMessage(t,Ce.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&ee.c.sendMessage(t,Ce.Msg.AfterDetach),n.widget.node.style.zIndex="",n.dispose(),this.parent.fit()},t.prototype.onBeforeShow=function(t){e.prototype.onBeforeShow.call(this,t),this.parent.update()},t.prototype.onBeforeAttach=function(t){e.prototype.onBeforeAttach.call(this,t),this.parent.fit()},t.prototype.onChildShown=function(e){this.parent.fit()},t.prototype.onChildHidden=function(e){this.parent.fit()},t.prototype.onResize=function(e){this.parent.isVisible&&this._update(e.width,e.height)},t.prototype.onUpdateRequest=function(e){this.parent.isVisible&&this._update(-1,-1)},t.prototype.onFitRequest=function(e){this.parent.isAttached&&this._fit()},t.prototype._fit=function(){for(var e=0,t=0,n=0,r=this._items.length;n<r;++n){var i=this._items[n];i.isHidden||(i.fit(),e=Math.max(e,i.minWidth),t=Math.max(t,i.minHeight))}var o=this._box=F.boxSizing(this.parent.node);e+=o.horizontalSum,t+=o.verticalSum;var a=this.parent.node.style;a.minWidth=e+"px",a.minHeight=t+"px",this._dirty=!0,this.parent.parent&&ee.c.sendMessage(this.parent.parent,Ce.Msg.FitRequest),this._dirty&&ee.c.sendMessage(this.parent,Ce.Msg.UpdateRequest)},t.prototype._update=function(e,t){this._dirty=!1;for(var n=0,r=0,i=this._items.length;r<i;++r)n+=+!this._items[r].isHidden;if(0!==n){e<0&&(e=this.parent.node.offsetWidth),t<0&&(t=this.parent.node.offsetHeight),this._box||(this._box=F.boxSizing(this.parent.node));var o=this._box.paddingTop,a=this._box.paddingLeft,s=e-this._box.horizontalSum,l=t-this._box.verticalSum;for(r=0,i=this._items.length;r<i;++r){var c=this._items[r];c.isHidden||(c.widget.node.style.zIndex=""+r,c.update(a,o,s,l))}}},t}(Oe),ht=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,{layout:ut.createLayout(t)})||this;return n._widgetRemoved=new ne.Signal(n),n.addClass("lm-StackedPanel"),n.addClass("p-StackedPanel"),n}return we(t,e),Object.defineProperty(t.prototype,"widgetRemoved",{get:function(){return this._widgetRemoved},enumerable:!0,configurable:!0}),t.prototype.onChildAdded=function(e){e.child.addClass("lm-StackedPanel-child"),e.child.addClass("p-StackedPanel-child")},t.prototype.onChildRemoved=function(e){e.child.removeClass("lm-StackedPanel-child"),e.child.removeClass("p-StackedPanel-child"),this._widgetRemoved.emit(e.child)},t}(je);!function(e){e.createLayout=function(e){return e.layout||new dt}}(ut||(ut={}));var pt;!function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;n._currentChanged=new ne.Signal(n),n.addClass("lm-TabPanel"),n.addClass("p-TabPanel"),n.tabBar=new $e(t),n.tabBar.addClass("lm-TabPanel-tabBar"),n.stackedPanel=new ht,n.stackedPanel.addClass("lm-TabPanel-stackedPanel"),n.tabBar.addClass("p-TabPanel-tabBar"),n.stackedPanel.addClass("p-TabPanel-stackedPanel"),n.tabBar.tabMoved.connect(n._onTabMoved,n),n.tabBar.currentChanged.connect(n._onCurrentChanged,n),n.tabBar.tabCloseRequested.connect(n._onTabCloseRequested,n),n.tabBar.tabActivateRequested.connect(n._onTabActivateRequested,n),n.stackedPanel.widgetRemoved.connect(n._onWidgetRemoved,n),n._tabPlacement=t.tabPlacement||"top";var r=pt.directionFromPlacement(n._tabPlacement),i=pt.orientationFromPlacement(n._tabPlacement);n.tabBar.orientation=i,n.tabBar.dataset.placement=n._tabPlacement;var o=new Ne({direction:r,spacing:0});return Ne.setStretch(n.tabBar,0),Ne.setStretch(n.stackedPanel,1),o.addWidget(n.tabBar),o.addWidget(n.stackedPanel),n.layout=o,n}we(t,e),Object.defineProperty(t.prototype,"currentChanged",{get:function(){return this._currentChanged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this.tabBar.currentIndex},set:function(e){this.tabBar.currentIndex=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentWidget",{get:function(){var e=this.tabBar.currentTitle;return e?e.owner:null},set:function(e){this.tabBar.currentTitle=e?e.title:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabsMovable",{get:function(){return this.tabBar.tabsMovable},set:function(e){this.tabBar.tabsMovable=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabPlacement",{get:function(){return this._tabPlacement},set:function(e){if(this._tabPlacement!==e){this._tabPlacement=e;var t=pt.directionFromPlacement(e),n=pt.orientationFromPlacement(e);this.tabBar.orientation=n,this.tabBar.dataset.placement=e,this.layout.direction=t}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"widgets",{get:function(){return this.stackedPanel.widgets},enumerable:!0,configurable:!0}),t.prototype.addWidget=function(e){this.insertWidget(this.widgets.length,e)},t.prototype.insertWidget=function(e,t){t!==this.currentWidget&&t.hide(),this.stackedPanel.insertWidget(e,t),this.tabBar.insertTab(e,t.title)},t.prototype._onCurrentChanged=function(e,t){var n=t.previousIndex,r=t.previousTitle,i=t.currentIndex,o=t.currentTitle,a=r?r.owner:null,s=o?o.owner:null;a&&a.hide(),s&&s.show(),this._currentChanged.emit({previousIndex:n,previousWidget:a,currentIndex:i,currentWidget:s}),(B.IS_EDGE||B.IS_IE)&&ee.c.flush()},t.prototype._onTabActivateRequested=function(e,t){t.title.owner.activate()},t.prototype._onTabCloseRequested=function(e,t){t.title.owner.close()},t.prototype._onTabMoved=function(e,t){this.stackedPanel.insertWidget(t.toIndex,t.title.owner)},t.prototype._onWidgetRemoved=function(e,t){this.tabBar.removeTab(t.title)}}(Ce);!function(e){e.orientationFromPlacement=function(e){return t[e]},e.directionFromPlacement=function(e){return n[e]};var t={top:"horizontal",left:"vertical",right:"vertical",bottom:"horizontal"},n={top:"top-to-bottom",left:"left-to-right",right:"right-to-left",bottom:"bottom-to-top"}}(pt||(pt={}));var ft=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mt=function(){return(mt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function gt(e,t){if(Array.isArray(e)){var n=[];return e.forEach((function(e,r){n.push(gt(e,t))})),Promise.all(n)}if(e instanceof Object){var r={};return Object.keys(e).forEach((function(n){r[n]=gt(e[n],t)})),y(r)}return"string"==typeof e&&"IPY_MODEL_"===e.slice(0,10)?t.get_model(e.slice(10,e.length)):Promise.resolve(e)}var vt,_t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ft(t,e),t.prototype.defaults=function(){return{_model_module:"@jupyter-widgets/base",_model_name:"WidgetModel",_model_module_version:S,_view_module:"@jupyter-widgets/base",_view_name:null,_view_module_version:S,_view_count:null}},t.prototype.isNew=function(){return!1},t.prototype.initialize=function(t,n){this._expectedEchoMsgIds={},this._attrsToUpdate={},e.prototype.initialize.call(this,t,n),this.widget_manager=n.widget_manager,this.model_id=n.model_id;var r=n.comm;this.views=Object.create(null),this.state_change=Promise.resolve(),this._closed=!1,this._state_lock=null,this._msg_buffer=null,this._msg_buffer_callbacks=null,this._pending_msgs=0,this._buffered_state_diff={},r?(this.comm=r,r.on_close(this._handle_comm_closed.bind(this)),r.on_msg(this._handle_comm_msg.bind(this)),this.comm_live=!0):this.comm_live=!1},Object.defineProperty(t.prototype,"comm_live",{get:function(){return this._comm_live},set:function(e){this._comm_live=e,this.trigger("comm_live_update")},enumerable:!0,configurable:!0}),t.prototype.send=function(e,t,n){if(void 0!==this.comm){var r={method:"custom",content:e};this.comm.send(r,t,{},n)}},t.prototype.close=function(e){var t=this;if(void 0===e&&(e=!1),!this._closed){this._closed=!0,this.comm&&!e&&this.comm.close(),this.stopListening(),this.trigger("destroy",this),this.comm&&delete this.comm;var n=Object.keys(this.views).map((function(e){return t.views[e].then((function(e){return e.remove()}))}));return delete this.views,Promise.all(n).then((function(){}))}},t.prototype._handle_comm_closed=function(e){this.trigger("comm:close"),this.close(!0)},t.prototype._handle_comm_msg=function(e){var t=this,n=e.content.data,r=n.method;switch(r){case"update":case"echo_update":return this.state_change=this.state_change.then((function(){var i,o,a,s=n.state,l=null!=(i=n.buffer_paths)?i:[],c=(a=null===(o=e.buffers)||void 0===o?void 0:o.slice(0,l.length),null!=a?a:[]).map((function(e){return e instanceof DataView?e:new DataView(e instanceof ArrayBuffer?e:e.buffer)}));if(M(s,l,c),e.parent_header&&"echo_update"===r){var u=e.parent_header.msg_id;Object.keys(s).filter((function(e){return t._expectedEchoMsgIds.hasOwnProperty(e)})).forEach((function(e){t._expectedEchoMsgIds[e]!==u?delete s[e]:(delete t._expectedEchoMsgIds[e],null!==t._msg_buffer&&Object.prototype.hasOwnProperty.call(t._msg_buffer,e)&&delete s[e])}))}return t.constructor._deserialize_state(s,t.widget_manager)})).then((function(e){t.set_state(e)})).catch(b("Could not process update msg for model id: "+this.model_id,!0)),this.state_change;case"custom":return this.trigger("msg:custom",n.content,e.buffers),Promise.resolve()}},t.prototype.set_state=function(e){this._state_lock=e;try{this.set(e)}catch(e){console.error("Error setting state: "+e.message)}finally{this._state_lock=null}},t.prototype.get_state=function(e){var t=this.attributes;if(e){var n=this.defaults,r="function"==typeof n?n.call(this):n,i={};return Object.keys(t).forEach((function(e){m(t[e],r[e])||(i[e]=t[e])})),i}return mt({},t)},t.prototype._handle_status=function(e){if(void 0!==this.comm&&"idle"===e.content.execution_state&&(this._pending_msgs--,this._pending_msgs<0&&(console.error("Jupyter Widgets message throttle: Pending messages < 0 (="+this._pending_msgs+"), which is unexpected. Resetting to 0 to continue."),this._pending_msgs=0),null!==this._msg_buffer&&this._pending_msgs<1)){var t=this.send_sync_message(this._msg_buffer,this._msg_buffer_callbacks);this.rememberLastUpdateFor(t),this._msg_buffer=null,this._msg_buffer_callbacks=null}},t.prototype.callbacks=function(e){return this.widget_manager.callbacks(e)},t.prototype.set=function(e,t,n){var r=Y.call(this,e,t,n);if(void 0!==this._buffered_state_diff){var i=this.changedAttributes()||{};if(this._state_lock)for(var o=0,a=Object.keys(this._state_lock);o<a.length;o++){var s=a[o];i[s]===this._state_lock[s]&&delete i[s]}this._buffered_state_diff=g(this._buffered_state_diff,i)}return r},t.prototype.sync=function(e,t,n){var r=this;if(void 0===n&&(n={}),void 0===this.comm)throw"Syncing error: no comm channel defined";var i="patch"===e?n.attrs:t.get_state(n.drop_defaults);if(this._state_lock)for(var o=0,a=Object.keys(this._state_lock);o<a.length;o++){var s=a[o];i[s]===this._state_lock[s]&&delete i[s]}Object.keys(i).forEach((function(e){r._attrsToUpdate[e]=!0}));var l=this.serialize(i);if(Object.keys(l).length>0){var c=n.callbacks||this.callbacks();if(this._pending_msgs>=1){switch(e){case"patch":this._msg_buffer=g(this._msg_buffer||{},l);break;case"update":case"create":this._msg_buffer=l;break;default:throw"unrecognized syncing method"}this._msg_buffer_callbacks=c}else{var u=this.send_sync_message(i,c);this.rememberLastUpdateFor(u)}}},t.prototype.rememberLastUpdateFor=function(e){var t=this;Object.keys(this._attrsToUpdate).forEach((function(n){t._expectedEchoMsgIds[n]=e})),this._attrsToUpdate={}},t.prototype.serialize=function(e){for(var t=this.constructor.serializers||{},n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];try{t[i]&&t[i].serialize?e[i]=t[i].serialize(e[i],this):e[i]=JSON.parse(JSON.stringify(e[i])),e[i]&&e[i].toJSON&&(e[i]=e[i].toJSON())}catch(e){throw console.error("Error serializing widget state attribute: ",i),e}}return e},t.prototype.send_sync_message=function(e,t){var n=this;if(void 0===t&&(t={}),!this.comm)return"";try{var r=(t={shell:mt({},t.shell),iopub:mt({},t.iopub),input:t.input}).iopub.status;t.iopub.status=function(e){n._handle_status(e),r&&r(e)};var i=w(e),o=this.comm.send({method:"update",state:i.state,buffer_paths:i.buffer_paths},t,{},i.buffers);return this._pending_msgs++,o}catch(e){console.error("Could not send widget sync message",e)}return""},t.prototype.save_changes=function(e){if(this.comm_live){var t={patch:!0};e&&(t.callbacks=e),this.save(this._buffered_state_diff,t),this._buffered_state_diff={}}},t.prototype.on_some_change=function(e,t,n){var r=this;this.on("change",(function(){e.some(r.hasChanged,r)&&t.apply(n,arguments)}),this)},t.prototype.toJSON=function(e){return"IPY_MODEL_"+this.model_id},t._deserialize_state=function(e,t){var n,r=this.serializers;if(r)for(var i in n={},e)r[i]&&r[i].deserialize?n[i]=r[i].deserialize(e[i],t):n[i]=e[i];else n=e;return y(n)},t}(G.Model),yt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ft(t,e),t.prototype.defaults=function(){return g(e.prototype.defaults.call(this),{_dom_classes:[]})},t.serializers=mt(mt({},_t.serializers),{layout:{deserialize:gt},style:{deserialize:gt}}),t}(_t),bt=function(e){function t(t){return e.call(this,t)||this}return ft(t,e),t.prototype.initialize=function(e){var t=this;this.listenTo(this.model,"change",(function(){var e=Object.keys(t.model.changedAttributes()||{});"_view_count"===e[0]&&1===e.length||t.update()})),this.options=e.options,this.once("remove",(function(){"number"==typeof t.model.get("_view_count")&&(t.model.set("_view_count",t.model.get("_view_count")-1),t.model.save_changes())})),this.once("displayed",(function(){"number"==typeof t.model.get("_view_count")&&(t.model.set("_view_count",t.model.get("_view_count")+1),t.model.save_changes())})),this.displayed=new Promise((function(e,n){t.once("displayed",e)}))},t.prototype.update=function(e){},t.prototype.render=function(){},t.prototype.create_child_view=function(e,t){return void 0===t&&(t={}),t=mt({parent:this},t),this.model.widget_manager.create_view(e,t).catch(b("Could not create child view",!0))},t.prototype.callbacks=function(){return this.model.callbacks(this)},t.prototype.send=function(e,t){this.model.send(e,this.callbacks(),t)},t.prototype.touch=function(){this.model.save_changes(this.callbacks())},t.prototype.remove=function(){return e.prototype.remove.call(this),this.trigger("remove"),this},t}(J),Mt=function(e){function t(t){var n=this,r=t.view;return delete t.view,(n=e.call(this,t)||this)._view=r,n}return ft(t,e),t.prototype.dispose=function(){this.isDisposed||(e.prototype.dispose.call(this),this._view&&this._view.remove(),this._view=null)},t.prototype.processMessage=function(t){e.prototype.processMessage.call(this,t),this._view.processPhosphorMessage(t)},t}(Ce),wt=function(e){function t(t){var n=this,r=t.view;return delete t.view,(n=e.call(this,t)||this)._view=r,n}return ft(t,e),t.prototype.processMessage=function(t){e.prototype.processMessage.call(this,t),this._view.processPhosphorMessage(t)},t.prototype.dispose=function(){this.isDisposed||(e.prototype.dispose.call(this),this._view&&this._view.remove(),this._view=null)},t}(je),Lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ft(t,e),t.prototype.initialize=function(t){var n=this;e.prototype.initialize.call(this,t),this.listenTo(this.model,"change:_dom_classes",(function(e,t){var r=e.previous("_dom_classes");n.update_classes(r,t)})),this.layoutPromise=Promise.resolve(),this.listenTo(this.model,"change:layout",(function(e,t){n.setLayout(t,e.previous("layout"))})),this.stylePromise=Promise.resolve(),this.listenTo(this.model,"change:style",(function(e,t){n.setStyle(t,e.previous("style"))})),this.displayed.then((function(){n.update_classes([],n.model.get("_dom_classes")),n.setLayout(n.model.get("layout")),n.setStyle(n.model.get("style"))})),this._comm_live_update(),this.listenTo(this.model,"comm_live_update",(function(){n._comm_live_update()}))},t.prototype.setLayout=function(e,t){var n=this;e&&(this.layoutPromise=this.layoutPromise.then((function(t){return t&&(t.unlayout(),n.stopListening(t.model),t.remove()),n.create_child_view(e).then((function(e){return n.displayed.then((function(){return e.trigger("displayed"),n.listenTo(e.model,"change",(function(){ee.c.postMessage(n.pWidget,Ce.ResizeMessage.UnknownSize)})),ee.c.postMessage(n.pWidget,Ce.ResizeMessage.UnknownSize),e}))})).catch(b("Could not add LayoutView to DOMWidgetView",!0))})))},t.prototype.setStyle=function(e,t){var n=this;e&&(this.stylePromise=this.stylePromise.then((function(t){return t&&(t.unstyle(),n.stopListening(t.model),t.remove()),n.create_child_view(e).then((function(e){return n.displayed.then((function(){return e.trigger("displayed"),e}))})).catch(b("Could not add styleView to DOMWidgetView",!0))})))},t.prototype.update_classes=function(e,t,n){void 0===n&&(n=this.el),f(e,t).map((function(e){n.classList?n.classList.remove(e):n.setAttribute("class",n.getAttribute("class").replace(e,""))})),f(t,e).map((function(e){n.classList?n.classList.add(e):n.setAttribute("class",n.getAttribute("class").concat(" ",e))}))},t.prototype.update_mapped_classes=function(e,t,n){var r=this.model.previous(t),i=e[r]?e[r]:[],o=e[r=this.model.get(t)]?e[r]:[];this.update_classes(i,o,n||this.el)},t.prototype.set_mapped_classes=function(e,t,n){var r=this.model.get(t),i=e[r]?e[r]:[];this.update_classes([],i,n||this.el)},t.prototype._setElement=function(e){this.pWidget&&this.pWidget.dispose(),this.$el=e instanceof K.a?e:K()(e),this.el=this.$el[0],this.pWidget=new Mt({node:e,view:this})},t.prototype.remove=function(){return this.pWidget&&this.pWidget.dispose(),e.prototype.remove.call(this)},t.prototype.processPhosphorMessage=function(e){switch(e.type){case"after-attach":this.trigger("displayed")}},t.prototype._comm_live_update=function(){this.model.comm_live?this.pWidget.removeClass("jupyter-widgets-disconnected"):this.pWidget.addClass("jupyter-widgets-disconnected")},t}(bt),xt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Et={align_content:null,align_items:null,align_self:null,border:null,bottom:null,display:null,flex:null,flex_flow:null,height:null,justify_content:null,justify_items:null,left:null,margin:null,max_height:null,max_width:null,min_height:null,min_width:null,overflow:null,overflow_x:null,overflow_y:null,order:null,padding:null,right:null,top:null,visibility:null,width:null,object_fit:null,object_position:null,grid_auto_columns:null,grid_auto_flow:null,grid_auto_rows:null,grid_gap:null,grid_template_rows:null,grid_template_columns:null,grid_template_areas:null,grid_row:null,grid_column:null,grid_area:null},Ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xt(t,e),t.prototype.defaults=function(){return g(e.prototype.defaults.call(this),{_model_name:"LayoutModel",_view_name:"LayoutView"},Et)},t}(_t),Tt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xt(t,e),t.prototype.initialize=function(t){this._traitNames=[],e.prototype.initialize.call(this,t);for(var n=0,r=Object.keys(Et);n<r.length;n++){var i=r[n];this.registerTrait(i)}},t.prototype.registerTrait=function(e){var t=this;if(this._traitNames.push(e),"overflow_x"===e||"overflow_y"===e)return this.listenTo(this.model,"change:"+e,(function(n,r){t.handleOverflowChange(e,r)})),void this.handleOverflowChange(e,this.model.get(e));this.listenTo(this.model,"change:"+e,(function(n,r){t.handleChange(e,r)})),this.handleChange(e,this.model.get(e))},t.prototype.css_name=function(e){return e.replace(/_/g,"-")},t.prototype.handleChange=function(e,t){var n=this.options.parent;n?null===t?n.el.style.removeProperty(this.css_name(e)):n.el.style[this.css_name(e)]=t:console.warn("Style not applied because a parent view does not exist")},t.prototype.handleOverflowChange=function(e,t){var n=this.options.parent;n?null===t?null===this.model.get("overflow")&&n.el.style.removeProperty(this.css_name(e)):n.el.style[this.css_name(e)]=t:console.warn("Style not applied because a parent view does not exist")},t.prototype.unlayout=function(){var e=this,t=this.options.parent;this._traitNames.forEach((function(n){t?t.el.style.removeProperty(e.css_name(n)):console.warn("Style not removed because a parent view does not exist")}),this)},t}(bt),St=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),At=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return St(t,e),t.prototype.defaults=function(){var t=this.constructor;return g(e.prototype.defaults.call(this),{_model_name:"StyleModel",_view_name:"StyleView"},Object.keys(t.styleProperties).reduce((function(e,n){return e[n]=t.styleProperties[n].default,e}),{}))},t.styleProperties={},t}(_t),kt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return St(t,e),t.prototype.initialize=function(t){this._traitNames=[],e.prototype.initialize.call(this,t);for(var n=this.model.constructor,r=0,i=Object.keys(n.styleProperties);r<i.length;r++){var o=i[r];this.registerTrait(o)}this.style()},t.prototype.registerTrait=function(e){var t=this;this._traitNames.push(e),this.listenTo(this.model,"change:"+e,(function(n,r){t.handleChange(e,r)}))},t.prototype.handleChange=function(e,t){var n=this.options.parent;if(n){var r=this.model.constructor.styleProperties,i=r[e].attribute,o=r[e].selector,a=o?n.el.querySelectorAll(o):[n.el];if(null===t)for(var s=0;s!==a.length;++s)a[s].style.removeProperty(i);else for(s=0;s!==a.length;++s)a[s].style[i]=t}else console.warn("Style not applied because a parent view does not exist")},t.prototype.style=function(){for(var e=0,t=this._traitNames;e<t.length;e++){var n=t[e];this.handleChange(n,this.model.get(n))}},t.prototype.unstyle=function(){var e=this.options.parent,t=this.model.constructor.styleProperties;this._traitNames.forEach((function(n){if(e)for(var r=t[n].attribute,i=t[n].selector,o=i?e.el.querySelectorAll(i):[e.el],a=0;a!==o.length;++a)o[a].style.removeProperty(r);else console.warn("Style not removed because a parent view does not exist")}),this)},t}(bt),Dt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},It=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};!function(e){!function(e){var t=function(){function e(e){this.targets=Object.create(null),this.comms=Object.create(null),this.kernel=null,this.jsServicesKernel=null,this.init_kernel(e)}return e.prototype.init_kernel=function(e){this.kernel=e,this.jsServicesKernel=e},e.prototype.new_comm=function(e,t,r,i,o,a){return Dt(this,void 0,void 0,(function(){var s,l;return It(this,(function(c){return s=this.jsServicesKernel.createComm(e,o),l=new n(s),this.register_comm(l),l.open(t,r,i,a),[2,l]}))}))},e.prototype.register_target=function(e,t){var r=this,i=this.jsServicesKernel.registerCommTarget(e,(function(e,i){var o=new n(e);r.register_comm(o);try{return t(o,i)}catch(e){o.close(),console.error(e),console.error(new Error("Exception opening new comm"))}}));this.targets[e]=i},e.prototype.unregister_target=function(e,t){this.targets[e].dispose(),delete this.targets[e]},e.prototype.register_comm=function(e){return this.comms[e.comm_id]=Promise.resolve(e),e.kernel=this.kernel,e.comm_id},e}();e.CommManager=t;var n=function(){function e(e){this.jsServicesComm=null,this.kernel=null,this.jsServicesComm=e}return Object.defineProperty(e.prototype,"comm_id",{get:function(){return this.jsServicesComm.commId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"target_name",{get:function(){return this.jsServicesComm.targetName},enumerable:!0,configurable:!0}),e.prototype.open=function(e,t,n,r){var i=this.jsServicesComm.open(e,n,r);return this._hookupCallbacks(i,t),i.msg.header.msg_id},e.prototype.send=function(e,t,n,r){var i=this.jsServicesComm.send(e,n,r);return this._hookupCallbacks(i,t),i.msg.header.msg_id},e.prototype.close=function(e,t,n,r){var i=this.jsServicesComm.close(e,n,r);return this._hookupCallbacks(i,t),i.msg.header.msg_id},e.prototype.on_msg=function(e){this.jsServicesComm.onMsg=e.bind(this)},e.prototype.on_close=function(e){this.jsServicesComm.onClose=e.bind(this)},e.prototype._hookupCallbacks=function(e,t){t&&(e.onReply=function(e){t.shell&&t.shell.reply&&t.shell.reply(e)},e.onStdin=function(e){t.input&&t.input(e)},e.onIOPub=function(e){if(t.iopub)if(t.iopub.status&&"status"===e.header.msg_type)t.iopub.status(e);else if(t.iopub.clear_output&&"clear_output"===e.header.msg_type)t.iopub.clear_output(e);else if(t.iopub.output)switch(e.header.msg_type){case"display_data":case"execute_result":case"stream":case"error":t.iopub.output(e)}})},e}();e.Comm=n}(e.services||(e.services={}))}(vt||(vt={}));var Ot=function(){function e(e,t,n){this.initialize(e,t,n)}return e.prototype.initialize=function(e,t,n){this._handler_context=n||this,this._models=[],this.views=[],this._create_view=e,this._remove_view=t||function(e){e.remove()}},e.prototype.update=function(e,t,n,r){var i=n||this._remove_view,o=t||this._create_view;r=r||this._handler_context;for(var a=0;a<e.length&&!(a>=this._models.length||e[a]!==this._models[a]);a++);for(var s=a,l=this.views.splice(s,this.views.length-s),c=0;c<l.length;c++)l[c].then((function(e){i.call(r,e)}));for(;a<e.length;a++)this.views.push(Promise.resolve(o.call(r,e[a],a)));return this._models=e.slice(),Promise.all(this.views)},e.prototype.remove=function(){var e=this;return Promise.all(this.views).then((function(t){t.forEach((function(t){return e._remove_view.call(e._handler_context,t)})),e.views=[],e._models=[]}))},e.prototype.dispose=function(){this.views=null,this._models=null},e}(),Nt=new s.Token("jupyter.extensions.jupyterWidgetRegistry");function zt(e,t){return function(n){var r=new _(e,n);return t&&console.error(r),Promise.reject(r)}}function jt(e,t){void 0!==t&&(e.textContent=t),void 0!==window.MathJax&&MathJax.Hub.Queue(["Typeset",MathJax.Hub,e])}function Pt(e){var t=document.createElement("div");return t.textContent=e,t.innerHTML}var Rt="1.5.0",Ht=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yt=function(){return(Yt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Vt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ht(t,e),t.prototype.defaults=function(){return Yt(Yt({},e.prototype.defaults.call(this)),{_model_name:"DescriptionStyleModel",_model_module:"@jupyter-widgets/controls",_model_module_version:Rt})},t.styleProperties={description_width:{selector:".widget-label",attribute:"width",default:null}},t}(At),Ft=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ht(t,e),t.prototype.defaults=function(){return Yt(Yt({},e.prototype.defaults.call(this)),{_model_name:"DescriptionModel",_view_name:"DescriptionView",_view_module:"@jupyter-widgets/controls",_model_module:"@jupyter-widgets/controls",_view_module_version:Rt,_model_module_version:Rt,description:"",description_tooltip:null})},t}(yt),Bt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ht(t,e),t.prototype.render=function(){this.label=document.createElement("label"),this.el.appendChild(this.label),this.label.className="widget-label",this.label.style.display="none",this.listenTo(this.model,"change:description",this.updateDescription),this.listenTo(this.model,"change:description_tooltip",this.updateDescription),this.updateDescription()},t.prototype.typeset=function(e,t){this.displayed.then((function(){return jt(e,t)}))},t.prototype.updateDescription=function(){var e=this.model.get("description"),t=this.model.get("description_tooltip");null===t&&(t=e),0===e.length?this.label.style.display="none":(this.label.innerHTML=e,this.typeset(this.label),this.label.style.display=""),this.label.title=t},t}(Lt),Ut=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ht(t,e),t}(Ft),Wt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ht(t,e),t}(Bt),Gt=n(10),qt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qt(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"CoreWidgetModel",_view_module:"@jupyter-widgets/controls",_model_module:"@jupyter-widgets/controls",_view_module_version:Rt,_model_module_version:Rt})},t}(_t),$t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qt(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"CoreDOMWidgetModel",_view_module:"@jupyter-widgets/controls",_model_module:"@jupyter-widgets/controls",_view_module_version:Rt,_model_module_version:Rt})},t}(yt),Qt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qt(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"CoreDescriptionModel",_view_module:"@jupyter-widgets/controls",_model_module:"@jupyter-widgets/controls",_view_module_version:Rt,_model_module_version:Rt})},t}(Ft),Zt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jt=function(){return(Jt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Xt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Zt(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{target:void 0,source:void 0,_model_name:"DirectionalLinkModel"})},t.prototype.initialize=function(t,n){e.prototype.initialize.call(this,t,n),this.on("change",this.updateBindings,this),this.updateBindings()},t.prototype.updateValue=function(e,t,n,r){if(!this._updating){this._updating=!0;try{n&&(n.set(r,e.get(t)),n.save_changes())}finally{this._updating=!1}}},t.prototype.updateBindings=function(){var e,t,n=this;this.cleanup(),e=this.get("source")||[null,null],this.sourceModel=e[0],this.sourceAttr=e[1],t=this.get("target")||[null,null],this.targetModel=t[0],this.targetAttr=t[1],this.sourceModel&&(this.listenTo(this.sourceModel,"change:"+this.sourceAttr,(function(){n.updateValue(n.sourceModel,n.sourceAttr,n.targetModel,n.targetAttr)})),this.updateValue(this.sourceModel,this.sourceAttr,this.targetModel,this.targetAttr),this.listenToOnce(this.sourceModel,"destroy",this.cleanup)),this.targetModel&&this.listenToOnce(this.targetModel,"destroy",this.cleanup)},t.prototype.cleanup=function(){this.sourceModel&&(this.stopListening(this.sourceModel,"change:"+this.sourceAttr,null),this.stopListening(this.sourceModel,"destroy",null)),this.targetModel&&this.stopListening(this.targetModel,"destroy",null)},t.serializers=Jt(Jt({},Kt.serializers),{target:{deserialize:gt},source:{deserialize:gt}}),t}(Kt),en=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Zt(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"LinkModel"})},t.prototype.updateBindings=function(){var t=this;e.prototype.updateBindings.call(this),this.targetModel&&this.listenTo(this.targetModel,"change:"+this.targetAttr,(function(){t.updateValue(t.targetModel,t.targetAttr,t.sourceModel,t.sourceAttr)}))},t.prototype.cleanup=function(){e.prototype.cleanup.call(this),this.targetModel&&this.stopListening(this.targetModel,"change:"+this.targetAttr,null)},t}(Xt),tn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tn(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{value:!1,disabled:!1,_model_name:"BoolModel"})},t}(Qt),rn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tn(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{indent:!0,_view_name:"CheckboxView",_model_name:"CheckboxModel"})},t}(Qt),on=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tn(t,e),t.prototype.render=function(){e.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-checkbox"),this.label.innerHTML="​",this.checkboxLabel=document.createElement("label"),this.checkboxLabel.classList.add("widget-label-basic"),this.el.appendChild(this.checkboxLabel),this.checkbox=document.createElement("input"),this.checkbox.setAttribute("type","checkbox"),this.checkboxLabel.appendChild(this.checkbox),this.descriptionSpan=document.createElement("span"),this.checkboxLabel.appendChild(this.descriptionSpan),this.listenTo(this.model,"change:indent",this.updateIndent),this.update(),this.updateDescription(),this.updateIndent()},t.prototype.updateDescription=function(){if(null!=this.checkboxLabel){var e=this.model.get("description");this.descriptionSpan.innerHTML=e,this.typeset(this.descriptionSpan),this.descriptionSpan.title=e,this.checkbox.title=e}},t.prototype.updateIndent=function(){var e=this.model.get("indent");this.label.style.display=e?"":"none"},t.prototype.events=function(){return{'click input[type="checkbox"]':"_handle_click"}},t.prototype._handle_click=function(){var e=this.model.get("value");this.model.set("value",!e,{updated_view:this}),this.touch()},t.prototype.update=function(t){return this.checkbox.checked=this.model.get("value"),void 0!==t&&t.updated_view==this||(this.checkbox.disabled=this.model.get("disabled")),e.prototype.update.call(this)},t}(Bt),an=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tn(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_view_name:"ToggleButtonView",_model_name:"ToggleButtonModel",tooltip:"",icon:"",button_style:""})},t}(nn),sn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tn(t,e),t.prototype.render=function(){e.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("jupyter-button"),this.el.classList.add("widget-toggle-button"),this.listenTo(this.model,"change:button_style",this.update_button_style),this.set_button_style(),this.update()},t.prototype.update_button_style=function(){this.update_mapped_classes(t.class_map,"button_style")},t.prototype.set_button_style=function(){this.set_mapped_classes(t.class_map,"button_style")},t.prototype.update=function(t){if(this.model.get("value")?this.el.classList.add("mod-active"):this.el.classList.remove("mod-active"),void 0===t||t.updated_view!==this){this.el.disabled=this.model.get("disabled"),this.el.setAttribute("title",this.model.get("tooltip"));var n=this.model.get("description"),r=this.model.get("icon");if(0===n.trim().length&&0===r.trim().length)this.el.innerHTML=" ";else{if(this.el.textContent="",r.trim().length){var i=document.createElement("i");this.el.appendChild(i),i.classList.add("fa"),i.classList.add("fa-"+r)}this.el.appendChild(document.createTextNode(n))}}return e.prototype.update.call(this)},t.prototype.events=function(){return{click:"_handle_click"}},t.prototype._handle_click=function(e){e.preventDefault();var t=this.model.get("value");this.model.set("value",!t,{updated_view:this}),this.touch()},Object.defineProperty(t.prototype,"tagName",{get:function(){return"button"},enumerable:!0,configurable:!0}),t.class_map={primary:["mod-primary"],success:["mod-success"],info:["mod-info"],warning:["mod-warning"],danger:["mod-danger"]},t}(Lt),ln=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tn(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{readout:"Invalid",_view_name:"ValidView",_model_name:"ValidModel"})},t}(nn),cn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tn(t,e),t.prototype.render=function(){e.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-valid"),this.el.classList.add("widget-inline-hbox"),this.icon=document.createElement("i"),this.icon.classList.add("fa","fa-fw"),this.el.appendChild(this.icon),this.readout=document.createElement("span"),this.readout.classList.add("widget-valid-readout"),this.readout.classList.add("widget-readout"),this.el.appendChild(this.readout),this.update()},t.prototype.update=function(){this.el.classList.remove("mod-valid"),this.el.classList.remove("mod-invalid"),this.icon.classList.remove("fa-check"),this.icon.classList.remove("fa-times"),this.readout.textContent=this.model.get("readout"),this.model.get("value")?(this.el.classList.add("mod-valid"),this.icon.classList.add("fa-check")):(this.el.classList.add("mod-invalid"),this.icon.classList.add("fa-times"))},t}(Bt),un=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return un(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"ButtonStyleModel",_model_module:"@jupyter-widgets/controls",_model_module_version:Rt})},t.styleProperties={button_color:{selector:"",attribute:"background-color",default:null},font_weight:{selector:"",attribute:"font-weight",default:""}},t}(At),hn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return un(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{description:"",tooltip:"",disabled:!1,icon:"",button_style:"",_view_name:"ButtonView",_model_name:"ButtonModel",style:null})},t}($t),pn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return un(t,e),t.prototype.render=function(){e.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("jupyter-button"),this.el.classList.add("widget-button"),this.listenTo(this.model,"change:button_style",this.update_button_style),this.set_button_style(),this.update()},t.prototype.update=function(){this.el.disabled=this.model.get("disabled"),this.el.setAttribute("title",this.model.get("tooltip"));var t=this.model.get("description"),n=this.model.get("icon");if(t.length||n.length){if(this.el.textContent="",n.length){var r=document.createElement("i");r.classList.add("fa"),r.classList.add("fa-"+n),0===t.length&&r.classList.add("center"),this.el.appendChild(r)}this.el.appendChild(document.createTextNode(t))}return e.prototype.update.call(this)},t.prototype.update_button_style=function(){this.update_mapped_classes(t.class_map,"button_style")},t.prototype.set_button_style=function(){this.set_mapped_classes(t.class_map,"button_style")},t.prototype.events=function(){return{click:"_handle_click"}},t.prototype._handle_click=function(e){e.preventDefault(),this.send({event:"click"})},Object.defineProperty(t.prototype,"tagName",{get:function(){return"button"},enumerable:!0,configurable:!0}),t.class_map={primary:["mod-primary"],success:["mod-success"],info:["mod-info"],warning:["mod-warning"],danger:["mod-danger"]},t}(Lt),fn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mn=function(){return(mn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},gn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fn(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_view_name:"BoxView",_model_name:"BoxModel",children:[],box_style:""})},t.serializers=mn(mn({},$t.serializers),{children:{deserialize:gt}}),t}($t),vn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fn(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_view_name:"HBoxView",_model_name:"HBoxModel"})},t}(gn),_n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fn(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_view_name:"VBoxView",_model_name:"VBoxModel"})},t}(gn),yn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fn(t,e),t.prototype._createElement=function(e){return this.pWidget=new wt({view:this}),this.pWidget.node},t.prototype._setElement=function(e){if(this.el||e!==this.pWidget.node)throw new Error("Cannot reset the DOM element.");this.el=this.pWidget.node,this.$el=K()(this.pWidget.node)},t.prototype.initialize=function(t){e.prototype.initialize.call(this,t),this.children_views=new Ot(this.add_child_model,null,this),this.listenTo(this.model,"change:children",this.update_children),this.listenTo(this.model,"change:box_style",this.update_box_style),this.pWidget.addClass("jupyter-widgets"),this.pWidget.addClass("widget-container"),this.pWidget.addClass("widget-box")},t.prototype.render=function(){e.prototype.render.call(this),this.update_children(),this.set_box_style()},t.prototype.update_children=function(){this.children_views.update(this.model.get("children")).then((function(e){e.forEach((function(e){ee.c.postMessage(e.pWidget,Ce.ResizeMessage.UnknownSize)}))}))},t.prototype.update_box_style=function(){this.update_mapped_classes(t.class_map,"box_style")},t.prototype.set_box_style=function(){this.set_mapped_classes(t.class_map,"box_style")},t.prototype.add_child_model=function(e){var t=this,n=new Ce;return this.pWidget.addWidget(n),this.create_child_view(e).then((function(e){var r=X.ArrayExt.firstIndexOf(t.pWidget.widgets,n);return t.pWidget.insertWidget(r,e.pWidget),n.dispose(),e})).catch(zt("Could not add child view to box",!0))},t.prototype.remove=function(){this.children_views=null,e.prototype.remove.call(this)},t.class_map={success:["alert","alert-success"],info:["alert","alert-info"],warning:["alert","alert-warning"],danger:["alert","alert-danger"]},t}(Lt),bn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fn(t,e),t.prototype.initialize=function(t){e.prototype.initialize.call(this,t),this.pWidget.addClass("widget-hbox")},t}(yn),Mn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fn(t,e),t.prototype.initialize=function(t){e.prototype.initialize.call(this,t),this.pWidget.addClass("widget-vbox")},t}(yn),wn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fn(t,e),t.prototype.initialize=function(t){e.prototype.initialize.call(this,t),this.pWidget.addClass("widget-gridbox"),this.pWidget.removeClass("widget-box")},t}(yn),Ln=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fn(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_view_name:"GridBoxView",_model_name:"GridBoxModel"})},t}(gn),xn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),En=function(){return(En=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Cn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xn(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"ImageModel",_view_name:"ImageView",format:"png",width:"",height:"",value:new DataView(new ArrayBuffer(0))})},t.serializers=En(En({},$t.serializers),{value:{serialize:function(e){return new DataView(e.buffer.slice(0))}}}),t}($t),Tn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xn(t,e),t.prototype.render=function(){e.prototype.render.call(this),this.pWidget.addClass("jupyter-widgets"),this.pWidget.addClass("widget-image"),this.update()},t.prototype.update=function(){var t,n=this.model.get("format"),r=this.model.get("value");if("url"!==n){var i=new Blob([r],{type:"image/"+this.model.get("format")});t=URL.createObjectURL(i)}else t=new TextDecoder("utf-8").decode(r.buffer);var o=this.el.src;this.el.src=t,o&&"string"!=typeof o&&URL.revokeObjectURL(o);var a=this.model.get("width");void 0!==a&&a.length>0?this.el.setAttribute("width",a):this.el.removeAttribute("width");var s=this.model.get("height");return void 0!==s&&s.length>0?this.el.setAttribute("height",s):this.el.removeAttribute("height"),e.prototype.update.call(this)},t.prototype.remove=function(){this.el.src&&URL.revokeObjectURL(this.el.src),e.prototype.remove.call(this)},Object.defineProperty(t.prototype,"tagName",{get:function(){return"img"},enumerable:!0,configurable:!0}),t}(Lt),Sn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),An=function(){return(An=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},kn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Sn(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"VideoModel",_view_name:"VideoView",format:"mp4",width:"",height:"",autoplay:!0,loop:!0,controls:!0,value:new DataView(new ArrayBuffer(0))})},t.serializers=An(An({},$t.serializers),{value:{serialize:function(e){return new DataView(e.buffer.slice(0))}}}),t}($t),Dn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Sn(t,e),t.prototype.render=function(){e.prototype.render.call(this),this.pWidget.addClass("jupyter-widgets"),this.pWidget.addClass("widget-image"),this.update()},t.prototype.update=function(){var t,n=this.model.get("format"),r=this.model.get("value");if("url"!==n){var i=new Blob([r],{type:"video/"+this.model.get("format")});t=URL.createObjectURL(i)}else t=new TextDecoder("utf-8").decode(r.buffer);var o=this.el.src;this.el.src=t,o&&"string"!=typeof o&&URL.revokeObjectURL(o);var a=this.model.get("width");void 0!==a&&a.length>0?this.el.setAttribute("width",a):this.el.removeAttribute("width");var s=this.model.get("height");return void 0!==s&&s.length>0?this.el.setAttribute("height",s):this.el.removeAttribute("height"),this.el.loop=this.model.get("loop"),this.el.autoplay=this.model.get("autoplay"),this.el.controls=this.model.get("controls"),e.prototype.update.call(this)},t.prototype.remove=function(){this.el.src&&URL.revokeObjectURL(this.el.src),e.prototype.remove.call(this)},Object.defineProperty(t.prototype,"tagName",{get:function(){return"video"},enumerable:!0,configurable:!0}),t}(Lt),In=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),On=function(){return(On=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Nn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return In(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"AudioModel",_view_name:"AudioView",format:"mp3",autoplay:!0,loop:!0,controls:!0,value:new DataView(new ArrayBuffer(0))})},t.serializers=On(On({},$t.serializers),{value:{serialize:function(e){return new DataView(e.buffer.slice(0))}}}),t}($t),zn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return In(t,e),t.prototype.render=function(){e.prototype.render.call(this),this.pWidget.addClass("jupyter-widgets"),this.update()},t.prototype.update=function(){var t,n=this.model.get("format"),r=this.model.get("value");if("url"!==n){var i=new Blob([r],{type:"audio/"+this.model.get("format")});t=URL.createObjectURL(i)}else t=new TextDecoder("utf-8").decode(r.buffer);var o=this.el.src;return this.el.src=t,o&&"string"!=typeof o&&URL.revokeObjectURL(o),this.el.loop=this.model.get("loop"),this.el.autoplay=this.model.get("autoplay"),this.el.controls=this.model.get("controls"),e.prototype.update.call(this)},t.prototype.remove=function(){this.el.src&&URL.revokeObjectURL(this.el.src),e.prototype.remove.call(this)},Object.defineProperty(t.prototype,"tagName",{get:function(){return"audio"},enumerable:!0,configurable:!0}),t}(Lt),jn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jn(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{value:"black",concise:!1,_model_name:"ColorPickerModel",_view_name:"ColorPickerView"})},t}(Qt),Rn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jn(t,e),t.prototype.render=function(){e.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-colorpicker"),this._color_container=document.createElement("div"),this._color_container.className="widget-inline-hbox widget-colorpicker-input",this.el.appendChild(this._color_container),this._textbox=document.createElement("input"),this._textbox.setAttribute("type","text"),this._textbox.id=this.label.htmlFor=v(),this._color_container.appendChild(this._textbox),this._textbox.value=this.model.get("value"),this._colorpicker=document.createElement("input"),this._colorpicker.setAttribute("type","color"),this._color_container.appendChild(this._colorpicker),this.listenTo(this.model,"change:value",this._update_value),this.listenTo(this.model,"change:concise",this._update_concise),this._update_concise(),this._update_value(),this.update()},t.prototype.update=function(t){if(void 0===t||t.updated_view!=this){var n=this.model.get("disabled");this._textbox.disabled=n,this._colorpicker.disabled=n}return e.prototype.update.call(this)},t.prototype.events=function(){return this._picker_change,this._text_change,{'change [type="color"]':"_picker_change",'change [type="text"]':"_text_change"}},t.prototype._update_value=function(){var e,t,n=this.model.get("value");this._colorpicker.value=Hn[(e=n).toLowerCase()]||(7===(t=e).length?t:"#"+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2)+t.charAt(3)+t.charAt(3)),this._textbox.value=n},t.prototype._update_concise=function(){this.model.get("concise")?(this.el.classList.add("concise"),this._textbox.style.display="none"):(this.el.classList.remove("concise"),this._textbox.style.display="")},t.prototype._picker_change=function(){this.model.set("value",this._colorpicker.value),this.touch()},t.prototype._text_change=function(){var e=this._validate_color(this._textbox.value,this.model.get("value"));this.model.set("value",e),this.touch()},t.prototype._validate_color=function(e,t){return e.match(/#[a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?$/)||Hn[e.toLowerCase()]?e:t},t}(Bt),Hn={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgreen:"#90ee90",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var Yn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vn=function(){return(Vn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Fn(e){return null===e?null:{year:e.getUTCFullYear(),month:e.getUTCMonth(),date:e.getUTCDate()}}function Bn(e){if(null===e)return null;var t=new Date;return t.setUTCFullYear(e.year,e.month,e.date),t.setUTCHours(0,0,0,0),t}var Un=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yn(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{value:null,_model_name:"DatePickerModel",_view_name:"DatePickerView"})},t.serializers=Vn(Vn({},Qt.serializers),{value:{serialize:Fn,deserialize:Bn}}),t}(Qt),Wn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yn(t,e),t.prototype.render=function(){e.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-datepicker"),this._datepicker=document.createElement("input"),this._datepicker.setAttribute("type","date"),this._datepicker.id=this.label.htmlFor=v(),this.el.appendChild(this._datepicker),this.listenTo(this.model,"change:value",this._update_value),this._update_value(),this.update()},t.prototype.update=function(t){return void 0!==t&&t.updated_view===this||(this._datepicker.disabled=this.model.get("disabled")),e.prototype.update.call(this)},t.prototype.events=function(){return this._picker_change,this._picker_focusout,{'change [type="date"]':"_picker_change",'focusout [type="date"]':"_picker_focusout"}},t.prototype._update_value=function(){var e=this.model.get("value");this._datepicker.valueAsDate=e},t.prototype._picker_change=function(){this._datepicker.validity.badInput||(this.model.set("value",this._datepicker.valueAsDate),this.touch())},t.prototype._picker_focusout=function(){this._datepicker.validity.badInput&&(this.model.set("value",null),this.touch())},t}(Bt),Gn=function(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]},qn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Kn(e){if(!(t=qn.exec(e)))throw new Error("invalid format: "+e);var t;return new $n({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function $n(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}Kn.prototype=$n.prototype,$n.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Qn,Zn,Jn,Xn=function(e,t){var n=Gn(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},er={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Xn(100*e,t)},r:Xn,s:function(e,t){var n=Gn(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Qn=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Gn(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},tr=function(e){return e},nr=Array.prototype.map,rr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];Zn=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?tr:(t=nr.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?tr:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(nr.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"-":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=Kn(e)).fill,n=e.align,d=e.sign,h=e.symbol,p=e.zero,f=e.width,m=e.comma,g=e.precision,v=e.trim,_=e.type;"n"===_?(m=!0,_="g"):er[_]||(void 0===g&&(g=12),v=!0,_="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var y="$"===h?i:"#"===h&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",b="$"===h?o:/[%p]/.test(_)?l:"",M=er[_],w=/[defgprs%]/.test(_);function L(e){var i,o,l,h=y,L=b;if("c"===_)L=M(e)+L,e="";else{var x=(e=+e)<0;if(e=isNaN(e)?u:M(Math.abs(e),g),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),x&&0==+e&&(x=!1),h=(x?"("===d?d:c:"-"===d||"("===d?"":d)+h,L=("s"===_?rr[8+Qn/3]:"")+L+(x&&"("===d?")":""),w)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){L=(46===l?a+e.slice(i+1):e.slice(i))+L,e=e.slice(0,i);break}}m&&!p&&(e=r(e,1/0));var E=h.length+e.length+L.length,C=E<f?new Array(f-E+1).join(t):"";switch(m&&p&&(e=r(C+e,C.length?f-L.length:1/0),C=""),n){case"<":e=h+e+L+C;break;case"=":e=h+C+e+L;break;case"^":e=C.slice(0,E=C.length>>1)+h+e+L+C.slice(E);break;default:e=C+h+e+L}return s(e)}return g=void 0===g?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),L.toString=function(){return e+""},L}return{format:d,formatPrefix:function(e,t){var n,r=d(((e=Kn(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor((n=t,((n=Gn(Math.abs(n)))?n[1]:NaN)/3)))),o=Math.pow(10,-i),a=rr[8+i/3];return function(e){return r(o*e)+a}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Jn=Zn.format,Zn.formatPrefix;n(369);var ir=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),or=function(){return(or=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},ar=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ir(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"IntModel",value:0})},t}(Qt),sr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ir(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"BoundedIntModel",max:100,min:0})},t}(ar),lr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ir(t,e),t.prototype.defaults=function(){return or(or({},e.prototype.defaults.call(this)),{_model_name:"SliderStyleModel"})},t.styleProperties=or(or({},Vt.styleProperties),{handle_color:{selector:".ui-slider-handle",attribute:"background-color",default:null}}),t}(Vt),cr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ir(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"IntSliderModel",_view_name:"IntSliderView",step:1,orientation:"horizontal",readout:!0,readout_format:"d",continuous_update:!0,style:null,disabled:!1})},t.prototype.initialize=function(t,n){e.prototype.initialize.call(this,t,n),this.on("change:readout_format",this.update_readout_format,this),this.update_readout_format()},t.prototype.update_readout_format=function(){this.readout_formatter=Jn(this.get("readout_format"))},t}(sr),ur=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ir(t,e),t}(cr),dr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parse_value=parseInt,t}return ir(t,e),t.prototype.render=function(){e.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-slider"),this.el.classList.add("widget-hslider"),(this.$slider=K()("<div />")).slider({slide:this.handleSliderChange.bind(this),stop:this.handleSliderChanged.bind(this)}).addClass("slider"),this.slider_container=document.createElement("div"),this.slider_container.classList.add("slider-container"),this.slider_container.appendChild(this.$slider[0]),this.el.appendChild(this.slider_container),this.readout=document.createElement("div"),this.el.appendChild(this.readout),this.readout.classList.add("widget-readout"),this.readout.contentEditable="true",this.readout.style.display="none",this.update()},t.prototype.update=function(t){if(void 0===t||t.updated_view!==this){var n=this;n.$slider.slider({}),["step","disabled"].forEach((function(e){var t=n.model.get(e);void 0!==t&&n.$slider.slider("option",e,t)})),this.model.get("disabled")?this.readout.contentEditable="false":this.readout.contentEditable="true";var r=this.model.get("max"),i=this.model.get("min");i<=r&&(void 0!==r&&this.$slider.slider("option","max",r),void 0!==i&&this.$slider.slider("option","min",i));var o=this.model.get("orientation");this.$slider.slider("option","orientation",o),"vertical"===o?(this.el.classList.remove("widget-hslider"),this.el.classList.add("widget-vslider"),this.el.classList.remove("widget-inline-hbox"),this.el.classList.add("widget-inline-vbox")):(this.el.classList.remove("widget-vslider"),this.el.classList.add("widget-hslider"),this.el.classList.remove("widget-inline-vbox"),this.el.classList.add("widget-inline-hbox")),this.model.get("readout")?(this.readout.style.display="",this.displayed.then((function(){n.readout_overflow()?n.readout.classList.add("overflow"):n.readout.classList.remove("overflow")}))):this.readout.style.display="none"}return e.prototype.update.call(this)},t.prototype.readout_overflow=function(){return this.readout.scrollWidth>this.readout.clientWidth},t.prototype.events=function(){return{slide:"handleSliderChange",slidestop:"handleSliderChanged","blur [contentEditable=true]":"handleTextChange","keydown [contentEditable=true]":"handleKeyDown"}},t.prototype.handleKeyDown=function(e){13===e.keyCode&&(e.preventDefault(),this.handleTextChange())},t.prototype._validate_slide_value=function(e){return Math.floor(e)},t}(Bt),hr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._range_regex=/^\s*([+-]?\d+)\s*[-:–]\s*([+-]?\d+)/,t}return ir(t,e),t.prototype.update=function(t){e.prototype.update.call(this,t),this.$slider.slider("option","range",!0);var n=this.model.get("value");this.$slider.slider("option","values",n.slice()),this.readout.textContent=this.valueToString(n),this.model.get("value")!==n&&(this.model.set("value",n,{updated_view:this}),this.touch())},t.prototype.valueToString=function(e){var t=this.model.readout_formatter;return e.map((function(e){return t(e)})).join(" – ")},t.prototype.stringToValue=function(e){var t=this._range_regex.exec(e);return t?[this._parse_value(t[1]),this._parse_value(t[2])]:null},t.prototype.handleTextChange=function(){var e=this.stringToValue(this.readout.textContent),t=this.model.get("min"),n=this.model.get("max");null===e||isNaN(e[0])||isNaN(e[1])||e[0]>e[1]?this.readout.textContent=this.valueToString(this.model.get("value")):(e=[Math.max(Math.min(e[0],n),t),Math.max(Math.min(e[1],n),t)])[0]!==this.model.get("value")[0]||e[1]!==this.model.get("value")[1]?(this.readout.textContent=this.valueToString(e),this.model.set("value",e,{updated_view:this}),this.touch()):this.readout.textContent=this.valueToString(this.model.get("value"))},t.prototype.handleSliderChange=function(e,t){var n=t.values.map(this._validate_slide_value);this.readout.textContent=this.valueToString(n),this.model.get("continuous_update")&&this.handleSliderChanged(e,t)},t.prototype.handleSliderChanged=function(e,t){var n=t.values.map(this._validate_slide_value);this.model.set("value",n,{updated_view:this}),this.touch()},t}(dr),pr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ir(t,e),t.prototype.update=function(t){e.prototype.update.call(this,t);var n=this.model.get("min"),r=this.model.get("max"),i=this.model.get("value");i>r?i=r:i<n&&(i=n),this.$slider.slider("option","value",i),this.readout.textContent=this.valueToString(i),this.model.get("value")!==i&&(this.model.set("value",i,{updated_view:this}),this.touch())},t.prototype.valueToString=function(e){return(0,this.model.readout_formatter)(e)},t.prototype.stringToValue=function(e){return this._parse_value(e)},t.prototype.handleTextChange=function(){var e=this.stringToValue(this.readout.textContent),t=this.model.get("min"),n=this.model.get("max");isNaN(e)?this.readout.textContent=this.valueToString(this.model.get("value")):(e=Math.max(Math.min(e,n),t))!==this.model.get("value")?(this.readout.textContent=this.valueToString(e),this.model.set("value",e,{updated_view:this}),this.touch()):this.readout.textContent=this.valueToString(this.model.get("value"))},t.prototype.handleSliderChange=function(e,t){var n=this._validate_slide_value(t.value);this.readout.textContent=this.valueToString(n),this.model.get("continuous_update")&&this.handleSliderChanged(e,t)},t.prototype.handleSliderChanged=function(e,t){var n=this._validate_slide_value(t.value);this.model.set("value",n,{updated_view:this}),this.touch()},t}(dr),fr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ir(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"IntTextModel",_view_name:"IntTextView",disabled:!1,continuous_update:!1})},t}(ar),mr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ir(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"BoundedIntTextModel",_view_name:"IntTextView",disabled:!1,continuous_update:!1,step:1})},t}(sr),gr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parse_value=parseInt,t._default_step="1",t}return ir(t,e),t.prototype.render=function(){e.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-text"),this.textbox=document.createElement("input"),this.textbox.type="number",this.textbox.required=!0,this.textbox.id=this.label.htmlFor=v(),this.el.appendChild(this.textbox),this.update()},t.prototype.update=function(t){if(void 0===t||t.updated_view!==this){var n=this.model.get("value");this._parse_value(this.textbox.value)!==n&&(this.textbox.value=n.toString()),void 0!==this.model.get("min")&&(this.textbox.min=this.model.get("min")),void 0!==this.model.get("max")&&(this.textbox.max=this.model.get("max")),void 0!==this.model.get("step")&&null!==this.model.get("step")?this.textbox.step=this.model.get("step"):this.textbox.step=this._default_step,this.textbox.disabled=this.model.get("disabled")}return e.prototype.update.call(this)},t.prototype.events=function(){return{"keydown input":"handleKeyDown","keypress input":"handleKeypress","keyup input":"handleKeyUp","input input":"handleChanging","change input":"handleChanged"}},t.prototype.handleKeyDown=function(e){e.stopPropagation()},t.prototype.handleKeypress=function(e){/[e,. ]/.test(String.fromCharCode(e.keyCode))&&e.preventDefault()},t.prototype.handleKeyUp=function(e){if(!e.altKey&&!e.ctrlKey){var t=e.target,n=t.value;if((n=n.replace(/[e,.\s]/g,"")).length>=1){var r=n.substr(1);n=n[0]+r.replace(/[+-]/g,"")}t.value!=n&&(e.preventDefault(),t.value=n)}},t.prototype.handleChanging=function(e){var t=e.target.value.trim();""===t||["-","-.",".","+.","+"].indexOf(t)>=0||this.model.get("continuous_update")&&this.handleChanged(e)},t.prototype.handleChanged=function(e){var t=e.target,n=this._parse_value(t.value);if(isNaN(n))t.value=this.model.get("value");else{var r=n;void 0!==this.model.get("max")&&(r=Math.min(this.model.get("max"),r)),void 0!==this.model.get("min")&&(r=Math.max(this.model.get("min"),r)),r!==n&&(t.value=r,n=r),n!==this.model.get("value")&&(this.model.set("value",n,{updated_view:this}),this.touch())}},t}(Bt),vr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ir(t,e),t.prototype.defaults=function(){return or(or({},e.prototype.defaults.call(this)),{_model_name:"ProgressStyleModel"})},t.styleProperties=or(or({},Vt.styleProperties),{bar_color:{selector:".progress-bar",attribute:"background-color",default:null}}),t}(Vt),_r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ir(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"IntProgressModel",_view_name:"ProgressView",orientation:"horizontal",bar_style:"",style:null})},t}(sr),yr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ir(t,e),t.prototype.initialize=function(t){e.prototype.initialize.call(this,t),this.listenTo(this.model,"change:bar_style",this.update_bar_style),this.pWidget.addClass("jupyter-widgets")},t.prototype.render=function(){e.prototype.render.call(this);var t="horizontal"===this.model.get("orientation")?"widget-hprogress":"widget-vprogress";this.el.classList.add(t),this.progress=document.createElement("div"),this.progress.classList.add("progress"),this.progress.style.position="relative",this.el.appendChild(this.progress),this.bar=document.createElement("div"),this.bar.classList.add("progress-bar"),this.bar.style.position="absolute",this.bar.style.bottom="0px",this.bar.style.left="0px",this.progress.appendChild(this.bar),this.update(),this.set_bar_style()},t.prototype.update=function(){var t=this.model.get("value"),n=this.model.get("max"),r=this.model.get("min"),i=100*(t-r)/(n-r);return"horizontal"===this.model.get("orientation")?(this.el.classList.remove("widget-inline-vbox"),this.el.classList.remove("widget-vprogress"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-hprogress"),this.bar.style.width=i+"%",this.bar.style.height="100%"):(this.el.classList.remove("widget-inline-hbox"),this.el.classList.remove("widget-hprogress"),this.el.classList.add("widget-inline-vbox"),this.el.classList.add("widget-vprogress"),this.bar.style.width="100%",this.bar.style.height=i+"%"),e.prototype.update.call(this)},t.prototype.update_bar_style=function(){this.update_mapped_classes(t.class_map,"bar_style",this.bar)},t.prototype.set_bar_style=function(){this.set_mapped_classes(t.class_map,"bar_style",this.bar)},t.class_map={success:["progress-bar-success"],info:["progress-bar-info"],warning:["progress-bar-warning"],danger:["progress-bar-danger"]},t}(Bt),br=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ir(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"PlayModel",_view_name:"PlayView",_playing:!1,_repeat:!1,show_repeat:!0,interval:100,step:1,disabled:!1})},t.prototype.initialize=function(t,n){e.prototype.initialize.call(this,t,n)},t.prototype.loop=function(){if(this.get("_playing")){var e=this.get("value")+this.get("step");e<=this.get("max")?(this.set("value",e),this.schedule_next()):this.get("_repeat")?(this.set("value",this.get("min")),this.schedule_next()):this.set("_playing",!1),this.save_changes()}},t.prototype.schedule_next=function(){window.setTimeout(this.loop.bind(this),this.get("interval"))},t.prototype.stop=function(){this.set("_playing",!1),this.set("value",this.get("min")),this.save_changes()},t.prototype.pause=function(){this.set("_playing",!1),this.save_changes()},t.prototype.play=function(){this.set("_playing",!0),this.get("value")==this.get("max")?(this.set("value",this.get("min")),this.schedule_next(),this.save_changes()):this.loop()},t.prototype.repeat=function(){this.set("_repeat",!this.get("_repeat")),this.save_changes()},t}(sr),Mr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ir(t,e),t.prototype.render=function(){e.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-play"),this.playButton=document.createElement("button"),this.pauseButton=document.createElement("button"),this.stopButton=document.createElement("button"),this.repeatButton=document.createElement("button"),this.playButton.className="jupyter-button",this.pauseButton.className="jupyter-button",this.stopButton.className="jupyter-button",this.repeatButton.className="jupyter-button",this.el.appendChild(this.playButton),this.el.appendChild(this.pauseButton),this.el.appendChild(this.stopButton),this.el.appendChild(this.repeatButton);var t=document.createElement("i");t.className="fa fa-play",this.playButton.appendChild(t);var n=document.createElement("i");n.className="fa fa-pause",this.pauseButton.appendChild(n);var r=document.createElement("i");r.className="fa fa-stop",this.stopButton.appendChild(r);var i=document.createElement("i");i.className="fa fa-retweet",this.repeatButton.appendChild(i),this.playButton.onclick=this.model.play.bind(this.model),this.pauseButton.onclick=this.model.pause.bind(this.model),this.stopButton.onclick=this.model.stop.bind(this.model),this.repeatButton.onclick=this.model.repeat.bind(this.model),this.listenTo(this.model,"change:_playing",this.update_playing),this.listenTo(this.model,"change:_repeat",this.update_repeat),this.listenTo(this.model,"change:show_repeat",this.update_repeat),this.update_playing(),this.update_repeat(),this.update()},t.prototype.update=function(){var e=this.model.get("disabled");this.playButton.disabled=e,this.pauseButton.disabled=e,this.stopButton.disabled=e,this.repeatButton.disabled=e,this.update_playing()},t.prototype.update_playing=function(){var e=this.model.get("_playing"),t=this.model.get("disabled");e?(t||(this.pauseButton.disabled=!1),this.playButton.classList.add("mod-active")):(t||(this.pauseButton.disabled=!0),this.playButton.classList.remove("mod-active"))},t.prototype.update_repeat=function(){var e=this.model.get("_repeat");this.repeatButton.style.display=this.model.get("show_repeat")?this.playButton.style.display:"none",e?this.repeatButton.classList.add("mod-active"):this.repeatButton.classList.remove("mod-active")},t}(Lt),wr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wr(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"FloatModel",value:0})},t}(Qt),xr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wr(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"BoundedFloatModel",max:100,min:0})},t}(Lr),Er=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wr(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"FloatSliderModel",_view_name:"FloatSliderView",step:1,orientation:"horizontal",_range:!1,readout:!0,readout_format:".2f",slider_color:null,continuous_update:!0,disabled:!1})},t.prototype.initialize=function(t,n){e.prototype.initialize.call(this,t,n),this.on("change:readout_format",this.update_readout_format,this),this.update_readout_format()},t.prototype.update_readout_format=function(){this.readout_formatter=Jn(this.get("readout_format"))},t}(xr),Cr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wr(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"FloatLogSliderModel",_view_name:"FloatLogSliderView",step:.1,orientation:"horizontal",_range:!1,readout:!0,readout_format:".3g",slider_color:null,continuous_update:!0,disabled:!1,base:10,value:1,min:0,max:4})},t.prototype.initialize=function(t,n){e.prototype.initialize.call(this,t,n),this.on("change:readout_format",this.update_readout_format,this),this.update_readout_format()},t.prototype.update_readout_format=function(){this.readout_formatter=Jn(this.get("readout_format"))},t}(xr),Tr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wr(t,e),t}(Er),Sr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parse_value=parseFloat,t}return wr(t,e),t.prototype._validate_slide_value=function(e){return e},t}(pr),Ar=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parse_value=parseFloat,t}return wr(t,e),t.prototype.update=function(t){e.prototype.update.call(this,t);var n=this.model.get("min"),r=this.model.get("max"),i=this.model.get("value"),o=this.model.get("base"),a=Math.log(i)/Math.log(o);a>r?a=r:a<n&&(a=n),this.$slider.slider("option","value",a),this.readout.textContent=this.valueToString(i),this.model.get("value")!==i&&(this.model.set("value",i,{updated_view:this}),this.touch())},t.prototype.valueToString=function(e){return(0,this.model.readout_formatter)(e)},t.prototype.stringToValue=function(e){return this._parse_value(e)},t.prototype.handleTextChange=function(){var e=this.stringToValue(this.readout.textContent),t=this.model.get("min"),n=this.model.get("max"),r=this.model.get("base");isNaN(e)?this.readout.textContent=this.valueToString(this.model.get("value")):(e=Math.max(Math.min(e,Math.pow(r,n)),Math.pow(r,t)))!==this.model.get("value")?(this.readout.textContent=this.valueToString(e),this.model.set("value",e,{updated_view:this}),this.touch()):this.readout.textContent=this.valueToString(this.model.get("value"))},t.prototype.handleSliderChange=function(e,t){var n=this.model.get("base"),r=Math.pow(n,this._validate_slide_value(t.value));this.readout.textContent=this.valueToString(r),this.model.get("continuous_update")&&this.handleSliderChanged(e,t)},t.prototype.handleSliderChanged=function(e,t){var n=this.model.get("base"),r=Math.pow(n,this._validate_slide_value(t.value));this.model.set("value",r,{updated_view:this}),this.touch()},t.prototype._validate_slide_value=function(e){return e},t}(dr),kr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parse_value=parseFloat,t._range_regex=/^\s*([+-]?(?:\d*\.?\d+|\d+\.)(?:[eE][-:]?\d+)?)\s*[-:–]\s*([+-]?(?:\d*\.?\d+|\d+\.)(?:[eE][+-]?\d+)?)/,t}return wr(t,e),t.prototype._validate_slide_value=function(e){return e},t}(hr),Dr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wr(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"FloatTextModel",_view_name:"FloatTextView",disabled:!1,continuous_update:!1})},t}(Lr),Ir=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wr(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"BoundedFloatTextModel",_view_name:"FloatTextView",disabled:!1,continuous_update:!1,step:.1})},t}(xr),Or=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parse_value=parseFloat,t._default_step="any",t}return wr(t,e),t.prototype.handleKeypress=function(e){e.stopPropagation()},t.prototype.handleKeyUp=function(e){},t}(gr),Nr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wr(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"FloatProgressModel",_view_name:"ProgressView",orientation:"horizontal",bar_style:"",style:null})},t}(xr),zr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jr=function(){return(jr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Pr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zr(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"ControllerButtonModel",_view_name:"ControllerButtonView",value:0,pressed:!1})},t}($t),Rr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zr(t,e),t.prototype.render=function(){this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-controller-button"),this.el.style.width="fit-content",this.support=document.createElement("div"),this.support.style.position="relative",this.support.style.margin="1px",this.support.style.width="16px",this.support.style.height="16px",this.support.style.border="1px solid black",this.support.style.background="lightgray",this.el.appendChild(this.support),this.bar=document.createElement("div"),this.bar.style.position="absolute",this.bar.style.width="100%",this.bar.style.bottom="0px",this.bar.style.background="gray",this.support.appendChild(this.bar),this.update(),this.label=document.createElement("div"),this.label.textContent=this.model.get("description"),this.label.style.textAlign="center",this.el.appendChild(this.label)},t.prototype.update=function(){this.bar.style.height=100*this.model.get("value")+"%"},t}(Lt),Hr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zr(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"ControllerAxisModel",_view_name:"ControllerAxisView",value:0})},t}($t),Yr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zr(t,e),t.prototype.render=function(){this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-controller-axis"),this.el.style.width="16px",this.el.style.padding="4px",this.support=document.createElement("div"),this.support.style.position="relative",this.support.style.margin="1px",this.support.style.width="4px",this.support.style.height="64px",this.support.style.border="1px solid black",this.support.style.background="lightgray",this.bullet=document.createElement("div"),this.bullet.style.position="absolute",this.bullet.style.margin="-3px",this.bullet.style.boxSizing="unset",this.bullet.style.width="10px",this.bullet.style.height="10px",this.bullet.style.background="gray",this.label=document.createElement("div"),this.label.textContent=this.model.get("description"),this.label.style.textAlign="center",this.support.appendChild(this.bullet),this.el.appendChild(this.support),this.el.appendChild(this.label),this.update()},t.prototype.update=function(){this.bullet.style.top=50*(this.model.get("value")+1)+"%"},t}(Lt),Vr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zr(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"ControllerModel",_view_name:"ControllerView",index:0,name:"",mapping:"",connected:!1,timestamp:0,buttons:[],axes:[]})},t.prototype.initialize=function(t,n){e.prototype.initialize.call(this,t,n),void 0===navigator.getGamepads?(this.readout="This browser does not support gamepads.",console.error(this.readout)):(this.readout="Connect gamepad and press any button.",this.get("connected")?this.update_loop():this.wait_loop())},t.prototype.wait_loop=function(){var e=this.get("index"),t=navigator.getGamepads()[e];if(t){var n=this;this.setup(t).then((function(e){n.set(e),n.save_changes(),window.requestAnimationFrame(n.update_loop.bind(n))}))}else window.requestAnimationFrame(this.wait_loop.bind(this))},t.prototype.setup=function(e){this.set({name:e.id,mapping:e.mapping,connected:e.connected,timestamp:e.timestamp});var t=this;return y({buttons:Promise.all(e.buttons.map((function(e,n){return t._create_button_model(n)}))),axes:Promise.all(e.axes.map((function(e,n){return t._create_axis_model(n)})))})},t.prototype.update_loop=function(){var e=this.get("index"),t=this.get("name"),n=navigator.getGamepads()[e];n&&e===n.index&&t===n.id?(this.set({timestamp:n.timestamp,connected:n.connected}),this.save_changes(),this.get("buttons").forEach((function(e,t){e.set({value:n.buttons[t].value,pressed:n.buttons[t].pressed}),e.save_changes()})),this.get("axes").forEach((function(e,t){e.set("value",n.axes[t]),e.save_changes()})),window.requestAnimationFrame(this.update_loop.bind(this))):this.reset_gamepad()},t.prototype.reset_gamepad=function(){this.get("buttons").forEach((function(e){e.close()})),this.get("axes").forEach((function(e){e.close()})),this.set({name:"",mapping:"",connected:!1,timestamp:0,buttons:[],axes:[]}),this.save_changes(),window.requestAnimationFrame(this.wait_loop.bind(this))},t.prototype._create_button_model=function(e){return this.widget_manager.new_widget({model_name:"ControllerButtonModel",model_module:"@jupyter-widgets/controls",model_module_version:this.get("_model_module_version"),view_name:"ControllerButtonView",view_module:"@jupyter-widgets/controls",view_module_version:this.get("_view_module_version")}).then((function(t){return t.set("description",e),t}))},t.prototype._create_axis_model=function(e){return this.widget_manager.new_widget({model_name:"ControllerAxisModel",model_module:"@jupyter-widgets/controls",model_module_version:this.get("_model_module_version"),view_name:"ControllerAxisView",view_module:"@jupyter-widgets/controls",view_module_version:this.get("_view_module_version")}).then((function(t){return t.set("description",e),t}))},t.serializers=jr(jr({},$t.serializers),{buttons:{deserialize:gt},axes:{deserialize:gt}}),t}($t),Fr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zr(t,e),t.prototype._createElement=function(e){return this.pWidget=new wt({view:this}),this.pWidget.node},t.prototype._setElement=function(e){if(this.el||e!==this.pWidget.node)throw new Error("Cannot reset the DOM element.");this.el=this.pWidget.node,this.$el=K()(this.pWidget.node)},t.prototype.initialize=function(t){e.prototype.initialize.call(this,t),this.button_views=new Ot(this.add_button,null,this),this.listenTo(this.model,"change:buttons",(function(e,t){this.button_views.update(t)})),this.axis_views=new Ot(this.add_axis,null,this),this.listenTo(this.model,"change:axes",(function(e,t){this.axis_views.update(t)})),this.listenTo(this.model,"change:name",this.update_label)},t.prototype.render=function(){this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-controller"),this.label=document.createElement("div"),this.el.appendChild(this.label),this.axis_box=new je,this.axis_box.node.style.display="flex",this.pWidget.addWidget(this.axis_box),this.button_box=new je,this.button_box.node.style.display="flex",this.pWidget.addWidget(this.button_box),this.button_views.update(this.model.get("buttons")),this.axis_views.update(this.model.get("axes")),this.update_label()},t.prototype.update_label=function(){this.label.textContent=this.model.get("name")||this.model.readout},t.prototype.add_button=function(e){var t=this,n=new Ce;return this.button_box.addWidget(n),this.create_child_view(e).then((function(e){var r=X.ArrayExt.firstIndexOf(t.button_box.widgets,n);return t.button_box.insertWidget(r,e.pWidget),n.dispose(),e})).catch(zt("Could not add child button view to controller",!0))},t.prototype.add_axis=function(e){var t=this,n=new Ce;return this.axis_box.addWidget(n),this.create_child_view(e).then((function(e){var r=X.ArrayExt.firstIndexOf(t.axis_box.widgets,n);return t.axis_box.insertWidget(r,e.pWidget),n.dispose(),e})).catch(zt("Could not add child axis view to controller",!0))},t.prototype.remove=function(){e.prototype.remove.call(this),this.button_views.remove(),this.axis_views.remove()},t}(Lt),Br=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ur=function(){return(Ur=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Wr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Br(t,e),t.prototype.defaults=function(){return Ur(Ur({},e.prototype.defaults.call(this)),{_model_name:"SelectionModel",index:"",_options_labels:[],disabled:!1})},t}(Qt),Gr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Br(t,e),t.prototype.defaults=function(){return Ur(Ur({},e.prototype.defaults.call(this)),{_model_name:"DropdownModel",_view_name:"DropdownView",button_style:""})},t}(Wr),qr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Br(t,e),t.prototype.initialize=function(t){var n=this;e.prototype.initialize.call(this,t),this.listenTo(this.model,"change:_options_labels",(function(){return n._updateOptions()}))},t.prototype.render=function(){e.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-dropdown"),this.listbox=document.createElement("select"),this.listbox.id=this.label.htmlFor=v(),this.el.appendChild(this.listbox),this._updateOptions(),this.update()},t.prototype.update=function(){this.listbox.disabled=this.model.get("disabled");var t=this.model.get("index");return this.listbox.selectedIndex=null===t?-1:t,e.prototype.update.call(this)},t.prototype._updateOptions=function(){this.listbox.textContent="";for(var e=this.model.get("_options_labels"),t=0;t<e.length;t++){var n=e[t],r=document.createElement("option");r.textContent=n.replace(/ /g," "),r.setAttribute("data-value",encodeURIComponent(n)),r.value=n,this.listbox.appendChild(r)}},t.prototype.events=function(){return{"change select":"_handle_change"}},t.prototype._handle_change=function(){this.model.set("index",-1===this.listbox.selectedIndex?null:this.listbox.selectedIndex),this.touch()},t}(Bt),Kr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Br(t,e),t.prototype.defaults=function(){return Ur(Ur({},e.prototype.defaults.call(this)),{_model_name:"SelectModel",_view_name:"SelectView",rows:5})},t}(Wr),$r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Br(t,e),t.prototype.initialize=function(t){var n=this;e.prototype.initialize.call(this,t),this.listenTo(this.model,"change:_options_labels",(function(){return n._updateOptions()})),this.listenTo(this.model,"change:index",(function(e,t,r){return n.updateSelection(r)})),this.listbox=document.createElement("select")},t.prototype.render=function(){e.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-select"),this.listbox.id=this.label.htmlFor=v(),this.el.appendChild(this.listbox),this._updateOptions(),this.update(),this.updateSelection()},t.prototype.update=function(){e.prototype.update.call(this),this.listbox.disabled=this.model.get("disabled");var t=this.model.get("rows");null===t&&(t=""),this.listbox.setAttribute("size",t)},t.prototype.updateSelection=function(e){if(void 0===e&&(e={}),e.updated_view!==this){var t=this.model.get("index");this.listbox.selectedIndex=null===t?-1:t}},t.prototype._updateOptions=function(){this.listbox.textContent="";for(var e=this.model.get("_options_labels"),t=0;t<e.length;t++){var n=e[t],r=document.createElement("option");r.textContent=n.replace(/ /g," "),r.setAttribute("data-value",encodeURIComponent(n)),r.value=n,this.listbox.appendChild(r)}},t.prototype.events=function(){return{"change select":"_handle_change"}},t.prototype._handle_change=function(){this.model.set("index",this.listbox.selectedIndex,{updated_view:this}),this.touch()},t}(Bt),Qr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Br(t,e),t.prototype.defaults=function(){return Ur(Ur({},e.prototype.defaults.call(this)),{_model_name:"RadioButtonsModel",_view_name:"RadioButtonsView",tooltips:[],icons:[],button_style:""})},t}(Wr),Zr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Br(t,e),t.prototype.render=function(){e.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-radio"),this.container=document.createElement("div"),this.el.appendChild(this.container),this.container.classList.add("widget-radio-box"),this.update()},t.prototype.update=function(t){var n=this,r=this.model.get("_options_labels"),i=Gt.pluck(this.container.querySelectorAll('input[type="radio"]'),"value"),o=r.length!=i.length;if(!o)for(var a=0,s=r.length;a<s;++a)if(i[a]!==r[a]){o=!0;break}return!o||void 0!==t&&t.updated_view===this||(this.container.textContent="",r.forEach((function(e,t){var r=document.createElement("label");r.textContent=e,n.container.appendChild(r);var i=document.createElement("input");i.setAttribute("type","radio"),i.value=t.toString(),i.setAttribute("data-value",encodeURIComponent(e)),r.appendChild(i)}))),r.forEach((function(e,t){var r='input[data-value="'+encodeURIComponent(e)+'"]',i=n.container.querySelectorAll(r);if(i.length>0){var o=i[0];o.checked=n.model.get("index")===t,o.disabled=n.model.get("disabled")}})),setTimeout(this.adjustPadding,0,this),e.prototype.update.call(this,t)},t.prototype.adjustPadding=function(e){var t=window.getComputedStyle(e.el),n=parseInt(t.marginTop,10)+parseInt(t.marginBottom,10),r=e.label.offsetHeight+n,i=window.getComputedStyle(e.container),o=parseInt(i.marginBottom),a=(e.el.offsetHeight+n-o)%r,s=0==a?0:r-a;e.container.style.marginBottom=s+"px"},t.prototype.events=function(){return{'click input[type="radio"]':"_handle_click"}},t.prototype._handle_click=function(e){var t=e.target;this.model.set("index",parseInt(t.value),{updated_view:this}),this.touch()},t}(Bt),Jr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Br(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"ToggleButtonsStyleModel"})},t.styleProperties=Ur(Ur({},Vt.styleProperties),{button_width:{selector:".widget-toggle-button",attribute:"width",default:null},font_weight:{selector:".widget-toggle-button",attribute:"font-weight",default:""}}),t}(Vt),Xr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Br(t,e),t.prototype.defaults=function(){return Ur(Ur({},e.prototype.defaults.call(this)),{_model_name:"ToggleButtonsModel",_view_name:"ToggleButtonsView"})},t}(Wr),ei=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Br(t,e),t.prototype.initialize=function(t){this._css_state={},e.prototype.initialize.call(this,t),this.listenTo(this.model,"change:button_style",this.update_button_style)},t.prototype.render=function(){e.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-toggle-buttons"),this.buttongroup=document.createElement("div"),this.el.appendChild(this.buttongroup),this.update(),this.set_button_style()},t.prototype.update=function(n){for(var r=this,i=this.model.get("_options_labels"),o=this.model.get("icons")||[],a=this.model.previous("icons")||[],s=t.classMap[this.model.previous("button_style")]||"",l=r.model.get("tooltips")||[],c=this.model.get("disabled"),u=this.buttongroup.querySelectorAll("button"),d=Gt.pluck(u,"value"),h=!1,p=0,f=i.length;p<f;++p)if(d[p]!==i[p]||o[p]!==a[p]){h=!0;break}return!h||void 0!==n&&n.updated_view===this||(this.buttongroup.textContent="",i.forEach((function(e,t){var n;n=0===e.trim().length&&(!o[t]||0===o[t].trim().length)?" ":Pt(e);var i=document.createElement("i"),a=document.createElement("button");o[t]&&(i.className="fa fa-"+o[t]),a.setAttribute("type","button"),a.className="widget-toggle-button jupyter-button",s&&a.classList.add(s),a.innerHTML=n,a.setAttribute("data-value",encodeURIComponent(e)),a.setAttribute("value",t.toString()),a.appendChild(i),a.disabled=c,l[t]&&a.setAttribute("title",l[t]),r.update_style_traits(a),r.buttongroup.appendChild(a)}))),i.forEach((function(e,t){var n='[data-value="'+encodeURIComponent(e)+'"]',i=r.buttongroup.querySelector(n);r.model.get("index")===t?i.classList.add("mod-active"):i.classList.remove("mod-active")})),this.stylePromise.then((function(e){e&&e.style()})),e.prototype.update.call(this,n)},t.prototype.update_style_traits=function(e){for(var t in this._css_state)if(this._css_state.hasOwnProperty(t))if("margin"===t)this.buttongroup.style[t]=this._css_state[t];else if("width"!==t)if(e)e.style[t]=this._css_state[t];else{var n=this.buttongroup.querySelectorAll("button");n.length&&(n[0].style[t]=this._css_state[t])}},t.prototype.update_button_style=function(){for(var e=this.buttongroup.querySelectorAll("button"),n=0;n<e.length;n++)this.update_mapped_classes(t.classMap,"button_style",e[n])},t.prototype.set_button_style=function(){for(var e=this.buttongroup.querySelectorAll("button"),n=0;n<e.length;n++)this.set_mapped_classes(t.classMap,"button_style",e[n])},t.prototype.events=function(){return{"click button":"_handle_click"}},t.prototype._handle_click=function(e){var t=e.target;this.model.set("index",parseInt(t.value,10),{updated_view:this}),this.touch(),this.send({event:"click"})},t}(Bt);(ei||(ei={})).classMap={primary:["mod-primary"],success:["mod-success"],info:["mod-info"],warning:["mod-warning"],danger:["mod-danger"]};var ti=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Br(t,e),t.prototype.defaults=function(){return Ur(Ur({},e.prototype.defaults.call(this)),{_model_name:"SelectionSliderModel",_view_name:"SelectionSliderView",orientation:"horizontal",readout:!0,continuous_update:!0})},t}(Wr),ni=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Br(t,e),t.prototype.render=function(){var t=this;e.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-hslider"),this.el.classList.add("widget-slider"),(this.$slider=K()("<div />")).slider({slide:this.handleSliderChange.bind(this),stop:this.handleSliderChanged.bind(this)}).addClass("slider"),this.slider_container=document.createElement("div"),this.slider_container.classList.add("slider-container"),this.slider_container.appendChild(this.$slider[0]),this.el.appendChild(this.slider_container),this.readout=document.createElement("div"),this.el.appendChild(this.readout),this.readout.classList.add("widget-readout"),this.readout.style.display="none",this.listenTo(this.model,"change:slider_color",(function(e,n){t.$slider.find("a").css("background",n)})),this.$slider.find("a").css("background",this.model.get("slider_color")),this.update()},t.prototype.update=function(t){if(void 0===t||t.updated_view!==this){var n=this.model.get("_options_labels").length-1;this.$slider.slider("option","step",1),this.$slider.slider("option","max",n),this.$slider.slider("option","min",0);var r=this.model.get("orientation");this.$slider.slider("option","value",0),this.$slider.slider("option","orientation",r);var i=this.model.get("disabled");this.$slider.slider("option","disabled",i),this.readout.contentEditable=i?"false":"true","vertical"===r?(this.el.classList.remove("widget-hslider"),this.el.classList.remove("widget-inline-hbox"),this.el.classList.add("widget-vslider"),this.el.classList.add("widget-inline-vbox")):(this.el.classList.remove("widget-vslider"),this.el.classList.remove("widget-inline-vbox"),this.el.classList.add("widget-hslider"),this.el.classList.add("widget-inline-hbox"));var o=this.model.get("readout");this.readout.style.display=o?"":"none",this.updateSelection()}return e.prototype.update.call(this,t)},t.prototype.events=function(){return{slide:"handleSliderChange",slidestop:"handleSliderChanged"}},t.prototype.updateSelection=function(){var e=this.model.get("index");this.$slider.slider("option","value",e),this.updateReadout(e)},t.prototype.updateReadout=function(e){var t=this.model.get("_options_labels")[e];this.readout.textContent=t},t.prototype.handleSliderChange=function(e,t){this.updateReadout(t.value),this.model.get("continuous_update")&&this.handleSliderChanged(e,t)},t.prototype.handleSliderChanged=function(e,t){this.updateReadout(t.value),this.model.set("index",t.value,{updated_view:this}),this.touch()},t}(Bt),ri=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Br(t,e),t.prototype.defaults=function(){return Ur(Ur({},e.prototype.defaults.call(this)),{_model_name:"MultipleSelectionModel"})},t}(Wr),ii=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Br(t,e),t.prototype.defaults=function(){return Ur(Ur({},e.prototype.defaults.call(this)),{_model_name:"SelectMultipleModel",_view_name:"SelectMultipleView",rows:null})},t}(ri),oi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Br(t,e),t.prototype.initialize=function(t){e.prototype.initialize.call(this,t),this.listbox.multiple=!0},t.prototype.render=function(){e.prototype.render.call(this),this.el.classList.add("widget-select-multiple")},t.prototype.updateSelection=function(e){if(void 0===e&&(e={}),e.updated_view!==this){var t=this.model.get("index")||[],n=this.listbox.options;this.listbox.selectedIndex=-1,t.forEach((function(e){n[e].selected=!0}))}},t.prototype._handle_change=function(){var e=Array.prototype.map.call(this.listbox.selectedOptions||[],(function(e){return e.index}));this.model.set("index",e,{updated_view:this}),this.touch()},t}($r),ai=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Br(t,e),t.prototype.defaults=function(){return Ur(Ur({},e.prototype.defaults.call(this)),{_model_name:"SelectionSliderModel",_view_name:"SelectionSliderView",orientation:"horizontal",readout:!0,continuous_update:!0})},t}(ri),si=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Br(t,e),t.prototype.render=function(){e.prototype.render.call(this),this.$slider.slider("option","range",!0)},t.prototype.updateSelection=function(){var e=this.model.get("index");this.$slider.slider("option","values",e.slice()),this.updateReadout(e)},t.prototype.updateReadout=function(e){var t=this.model.get("_options_labels"),n=t[e[0]],r=t[e[1]];this.readout.textContent=n+"-"+r},t.prototype.handleSliderChange=function(e,t){this.updateReadout(t.values),this.model.get("continuous_update")&&this.handleSliderChanged(e,t)},t.prototype.handleSliderChanged=function(e,t){this.updateReadout(t.values),this.model.set("index",t.values.slice(),{updated_view:this}),this.touch()},t}(ni),li=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ci=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._widgetRemoved=new ne.Signal(t),t}return li(t,e),Object.defineProperty(t.prototype,"widgetRemoved",{get:function(){return this._widgetRemoved},enumerable:!0,configurable:!0}),t.prototype.onChildRemoved=function(e){this._widgetRemoved.emit(e.child)},t}(je),ui=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;n._currentChanged=new ne.Signal(n),n.addClass("p-TabPanel"),n.tabBar=new $e(t),n.tabBar.addClass("p-TabPanel-tabBar"),n.tabContents=new ci,n.tabContents.addClass("p-TabPanel-tabContents"),n.tabBar.tabMoved.connect(n._onTabMoved,n),n.tabBar.currentChanged.connect(n._onCurrentChanged,n),n.tabBar.tabCloseRequested.connect(n._onTabCloseRequested,n),n.tabBar.tabActivateRequested.connect(n._onTabActivateRequested,n),n.tabContents.widgetRemoved.connect(n._onWidgetRemoved,n);var r=new Oe;return r.addWidget(n.tabBar),r.addWidget(n.tabContents),n.layout=r,n}return li(t,e),Object.defineProperty(t.prototype,"currentChanged",{get:function(){return this._currentChanged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentIndex",{get:function(){var e=this.tabBar.currentIndex;return-1===e?null:e},set:function(e){this.tabBar.currentIndex=null===e?-1:e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentWidget",{get:function(){var e=this.tabBar.currentTitle;return e?e.owner:null},set:function(e){this.tabBar.currentTitle=e?e.title:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tabsMovable",{get:function(){return this.tabBar.tabsMovable},set:function(e){this.tabBar.tabsMovable=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"widgets",{get:function(){return this.tabContents.widgets},enumerable:!0,configurable:!0}),t.prototype.addWidget=function(e){this.insertWidget(this.widgets.length,e)},t.prototype.insertWidget=function(e,t){t!==this.currentWidget&&t.hide(),this.tabContents.insertWidget(e,t),this.tabBar.insertTab(e,t.title)},t.prototype._onCurrentChanged=function(e,t){var n=t.previousIndex,r=t.previousTitle,i=t.currentIndex,o=t.currentTitle,a=r?r.owner:null,s=o?o.owner:null;a&&a.hide(),s&&s.show(),this._currentChanged.emit({previousIndex:n,previousWidget:a,currentIndex:i,currentWidget:s}),(B.IS_EDGE||B.IS_IE)&&ee.c.flush()},t.prototype._onTabActivateRequested=function(e,t){t.title.owner.activate()},t.prototype._onTabCloseRequested=function(e,t){t.title.owner.close()},t.prototype._onTabMoved=function(e,t){this.tabContents.insertWidget(t.toIndex,t.title.owner)},t.prototype._onWidgetRemoved=function(e,t){this.tabBar.removeTab(t.title)},t}(Ce),di=function(){function e(e,t){void 0===t&&(t={}),this._array=null,this._value=null,this._previousValue=null,this._selectionChanged=new ne.Signal(this),this._array=e,this._insertBehavior=t.insertBehavior||"select-item-if-needed",this._removeBehavior=t.removeBehavior||"select-item-after"}return Object.defineProperty(e.prototype,"selectionChanged",{get:function(){return this._selectionChanged},enumerable:!0,configurable:!0}),e.prototype.adjustSelectionForSet=function(e){var t=this.index,n=this.value;if(e===t){this._updateSelectedValue();var r=this.value;this._previousValue=null,n!==r&&this._selectionChanged.emit({previousIndex:t,previousValue:n,currentIndex:t,currentValue:r})}},Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.index=null===e?null:X.ArrayExt.firstIndexOf(this._array,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this._index},set:function(e){var t;if(null!==e?((t=Math.floor(e))<0||t>=this._array.length)&&(t=null):t=null,this._index!==t){var n=this._index,r=this._value;this._index=t,this._updateSelectedValue(),this._previousValue=r,this._selectionChanged.emit({previousIndex:n,previousValue:r,currentIndex:t,currentValue:this._value})}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"insertBehavior",{get:function(){return this._insertBehavior},set:function(e){this._insertBehavior=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"removeBehavior",{get:function(){return this._removeBehavior},set:function(e){this._removeBehavior=e},enumerable:!0,configurable:!0}),e.prototype.adjustSelectionForInsert=function(e,t){var n=this._value,r=this._index,i=this._insertBehavior;if("select-item"===i||"select-item-if-needed"===i&&null===r)return this._index=e,this._value=t,this._previousValue=n,void this._selectionChanged.emit({previousIndex:r,previousValue:n,currentIndex:e,currentValue:t});r>=e&&this._index++},e.prototype.adjustSelectionForMove=function(e,t){this._index===e?this._index=t:this._index<e&&this._index>=t?this._index++:this._index>e&&this._index<=t&&this._index--},e.prototype.clearSelection=function(){var e=this._index,t=this._value;this._index=null,this._value=null,this._previousValue=null,null!==e&&this._selectionChanged.emit({previousIndex:e,previousValue:t,currentIndex:this._index,currentValue:this._value})},e.prototype.adjustSelectionForRemove=function(e,t){var n=this._index,r=this._removeBehavior;if(n===e){if(0===this._array.length)return this._index=null,this._value=null,this._previousValue=null,void this._selectionChanged.emit({previousIndex:e,previousValue:t,currentIndex:this._index,currentValue:this._value});if("select-item-after"===r)return this._index=Math.min(e,this._array.length-1),this._updateSelectedValue(),this._previousValue=null,void this._selectionChanged.emit({previousIndex:e,previousValue:t,currentIndex:this._index,currentValue:this._value});if("select-item-before"===r)return this._index=Math.max(0,e-1),this._updateSelectedValue(),this._previousValue=null,void this._selectionChanged.emit({previousIndex:e,previousValue:t,currentIndex:this._index,currentValue:this._value});if("select-previous-item"===r)return this._previousValue?this.value=this._previousValue:(this._index=Math.min(e,this._array.length-1),this._updateSelectedValue()),this._previousValue=null,void this._selectionChanged.emit({previousIndex:e,previousValue:t,currentIndex:this._index,currentValue:this.value});this._index=null,this._value=null,this._previousValue=null,this._selectionChanged.emit({previousIndex:e,previousValue:t,currentIndex:this._index,currentValue:this._value})}else n>e&&this._index--},e.prototype._updateSelectedValue=function(){var e=this._index;this._value=null!==e?this._array[e]:null},e}(),hi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pi=function(e){function t(t){var n=e.call(this,t)||this;n._collapseChanged=new ne.Signal(n),n.addClass("p-Collapse"),n._header=new Ce,n._header.addClass("p-Collapse-header"),n._header.node.addEventListener("click",n);var r=document.createElement("i");r.classList.add("fa","fa-fw","fa-caret-right"),n._header.node.appendChild(r),n._header.node.appendChild(document.createElement("span")),n._content=new je,n._content.addClass("p-Collapse-contents");var i=new Oe;return n.layout=i,i.addWidget(n._header),i.addWidget(n._content),t.widget&&(n.widget=t.widget),n.collapsed=!1,n}return hi(t,e),t.prototype.dispose=function(){this.isDisposed||(e.prototype.dispose.call(this),this._header=null,this._widget=null,this._content=null)},Object.defineProperty(t.prototype,"widget",{get:function(){return this._widget},set:function(e){var t=this._widget;t&&(t.disposed.disconnect(this._onChildDisposed,this),t.title.changed.disconnect(this._onTitleChanged,this),t.parent=null),this._widget=e,e.disposed.connect(this._onChildDisposed,this),e.title.changed.connect(this._onTitleChanged,this),this._onTitleChanged(e.title),this._content.addWidget(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"collapsed",{get:function(){return this._collapsed},set:function(e){e!==this._collapsed&&(e?this._collapse():this._uncollapse())},enumerable:!0,configurable:!0}),t.prototype.toggle=function(){this.collapsed=!this.collapsed},Object.defineProperty(t.prototype,"collapseChanged",{get:function(){return this._collapseChanged},enumerable:!0,configurable:!0}),t.prototype._collapse=function(){this._collapsed=!0,this._content&&this._content.hide(),this.removeClass("p-Collapse-open"),this._header.node.children[0].classList.add("fa-caret-right"),this._header.node.children[0].classList.remove("fa-caret-down"),this._collapseChanged.emit(void 0)},t.prototype._uncollapse=function(){this._collapsed=!1,this._content&&this._content.show(),this.addClass("p-Collapse-open"),this._header.node.children[0].classList.add("fa-caret-down"),this._header.node.children[0].classList.remove("fa-caret-right"),this._collapseChanged.emit(void 0)},t.prototype.handleEvent=function(e){switch(e.type){case"click":this._evtClick(e)}},t.prototype._evtClick=function(e){this.toggle()},t.prototype._onTitleChanged=function(e){this._header.node.children[1].textContent=this._widget.title.label},t.prototype._onChildDisposed=function(e){this.dispose()},t}(Ce),fi=function(e){function t(t){var n=e.call(this,t)||this;return n._selection=new di(n.widgets),n._selection.selectionChanged.connect(n._onSelectionChanged,n),n.addClass("p-Accordion"),n}return hi(t,e),Object.defineProperty(t.prototype,"collapseWidgets",{get:function(){return this.layout.widgets},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selection",{get:function(){return this._selection},enumerable:!0,configurable:!0}),t.prototype.indexOf=function(e){return X.ArrayExt.findFirstIndex(this.collapseWidgets,(function(t){return t.widget===e}))},t.prototype.addWidget=function(t){var n=this._wrapWidget(t);return n.collapsed=!0,e.prototype.addWidget.call(this,n),this._selection.adjustSelectionForInsert(this.widgets.length-1,n),n},t.prototype.insertWidget=function(t,n){var r=this._wrapWidget(n);r.collapsed=!0,e.prototype.insertWidget.call(this,t,r),this._selection.adjustSelectionForInsert(t,r)},t.prototype.removeWidget=function(e){var t=this.indexOf(e);if(t>=0){var n=this.collapseWidgets[t];e.parent=null,n.dispose(),this._selection.adjustSelectionForRemove(t,null)}},t.prototype._wrapWidget=function(e){var t=new pi({widget:e});return t.addClass("p-Accordion-child"),t.collapseChanged.connect(this._onCollapseChange,this),t},t.prototype._onCollapseChange=function(e){e.collapsed?this._selection.value===e&&e.collapsed&&(this._selection.value=null):this._selection.value=e},t.prototype._onSelectionChanged=function(e,t){var n=t.previousValue,r=t.currentValue;n&&(n.collapsed=!0,n.removeClass("p-Accordion-child-active")),r&&(r.collapsed=!1,r.addClass("p-Accordion-child-active"))},t}(je),mi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mi(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"SelectionContainerModel",selected_index:0,_titles:{}})},t}(gn),vi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mi(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"AccordionModel",_view_name:"AccordionView"})},t}(gi),_i=function(e){function t(t){var n=this,r=t.view;return delete t.view,(n=e.call(this,t)||this)._view=r,n}return mi(t,e),t.prototype.processMessage=function(t){e.prototype.processMessage.call(this,t),this._view.processPhosphorMessage(t)},t.prototype.dispose=function(){this.isDisposed||(e.prototype.dispose.call(this),this._view&&this._view.remove(),this._view=null)},t}(fi),yi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mi(t,e),t.prototype._createElement=function(e){return this.pWidget=new _i({view:this}),this.pWidget.node},t.prototype._setElement=function(e){if(this.el||e!==this.pWidget.node)throw new Error("Cannot reset the DOM element.");this.el=this.pWidget.node,this.$el=K()(this.pWidget.node)},t.prototype.initialize=function(t){var n=this;e.prototype.initialize.call(this,t),this.children_views=new Ot(this.add_child_view,this.remove_child_view,this),this.listenTo(this.model,"change:children",(function(){return n.updateChildren()})),this.listenTo(this.model,"change:selected_index",(function(){return n.update_selected_index()})),this.listenTo(this.model,"change:_titles",(function(){return n.update_titles()}))},t.prototype.render=function(){var t=this;e.prototype.render.call(this);var n=this.pWidget;n.addClass("jupyter-widgets"),n.addClass("widget-accordion"),n.addClass("widget-container"),n.selection.selectionChanged.connect((function(e){t.updatingChildren||(t.model.set("selected_index",n.selection.index),t.touch())})),this.children_views.update(this.model.get("children")),this.update_titles(),this.update_selected_index()},t.prototype.updateChildren=function(){this.updatingChildren=!0,this.pWidget.selection.index=null,this.children_views.update(this.model.get("children")),this.update_selected_index(),this.updatingChildren=!1},t.prototype.update_titles=function(){for(var e=this.pWidget.collapseWidgets,t=this.model.get("_titles"),n=0;n<e.length;n++)void 0!==t[n]&&(e[n].widget.title.label=t[n])},t.prototype.update_selected_index=function(){this.pWidget.selection.index=this.model.get("selected_index")},t.prototype.remove_child_view=function(e){this.pWidget.removeWidget(e.pWidget),e.remove()},t.prototype.add_child_view=function(e,t){var n=this.pWidget,r=new Ce;return r.title.label=this.model.get("_titles")[t]||"",n.addWidget(r),this.create_child_view(e).then((function(e){var t=e.pWidget;return t.title.label=r.title.label,n.collapseWidgets[n.indexOf(r)].widget=t,r.dispose(),e})).catch(zt("Could not add child view to box",!0))},t.prototype.remove=function(){this.children_views=null,e.prototype.remove.call(this)},t}(Lt),bi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mi(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"TabModel",_view_name:"TabView"})},t}(gi),Mi=function(e){function t(t){var n=this,r=t.view;return delete t.view,(n=e.call(this,t)||this)._view=r,ee.c.installMessageHook(n.tabContents,(function(e,t){return n._view.processPhosphorMessage(t),!0})),n}return mi(t,e),t.prototype.dispose=function(){this.isDisposed||(e.prototype.dispose.call(this),this._view&&this._view.remove(),this._view=null)},t}(ui),wi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.updatingTabs=!1,t}return mi(t,e),t.prototype._createElement=function(e){return this.pWidget=new Mi({view:this}),this.pWidget.node},t.prototype._setElement=function(e){if(this.el||e!==this.pWidget.node)throw new Error("Cannot reset the DOM element.");this.el=this.pWidget.node,this.$el=K()(this.pWidget.node)},t.prototype.initialize=function(t){var n=this;e.prototype.initialize.call(this,t),this.childrenViews=new Ot(this.addChildView,(function(e){e.remove()}),this),this.listenTo(this.model,"change:children",(function(){return n.updateTabs()})),this.listenTo(this.model,"change:_titles",(function(){return n.updateTitles()}))},t.prototype.render=function(){e.prototype.render.call(this);var t=this.pWidget;t.addClass("jupyter-widgets"),t.addClass("widget-container"),t.addClass("widget-tab"),t.tabsMovable=!0,t.tabBar.insertBehavior="none",t.tabBar.currentChanged.connect(this._onTabChanged,this),t.tabBar.tabMoved.connect(this._onTabMoved,this),t.tabBar.addClass("widget-tab-bar"),t.tabContents.addClass("widget-tab-contents"),t.tabBar.tabsMovable=!1,this.updateTabs(),this.update()},t.prototype.updateTabs=function(){this.updatingTabs=!0,this.pWidget.currentIndex=null,this.childrenViews.update(this.model.get("children")),this.pWidget.currentIndex=this.model.get("selected_index"),this.updatingTabs=!1},t.prototype.addChildView=function(e,t){var n=this.model.get("_titles")[t]||"",r=this.pWidget,i=new Ce;return i.title.label=n,r.addWidget(i),this.create_child_view(e).then((function(e){var t=e.pWidget;t.title.label=i.title.label,t.title.closable=!1;var n=X.ArrayExt.firstIndexOf(r.widgets,i);return r.insertWidget(n+1,t),i.dispose(),e})).catch(zt("Could not add child view to box",!0))},t.prototype.update=function(){return this.updateSelectedIndex(),e.prototype.update.call(this)},t.prototype.updateTitles=function(){var e=this.model.get("_titles")||{};Object(X.each)(this.pWidget.widgets,(function(t,n){t.title.label=e[n]||""}))},t.prototype.updateSelectedIndex=function(){this.pWidget.currentIndex=this.model.get("selected_index")},t.prototype.remove=function(){this.childrenViews=null,e.prototype.remove.call(this)},t.prototype._onTabChanged=function(e,t){if(!this.updatingTabs){var n=t.currentIndex;this.model.set("selected_index",-1===n?null:n),this.touch()}},t.prototype._onTabMoved=function(e,t){var n=this.model.get("children").slice();X.ArrayExt.move(n,t.fromIndex,t.toIndex),this.model.set("children",n),this.touch()},t}(Lt),Li=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xi=function(){return(xi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Ei=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Li(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{value:"",disabled:!1,placeholder:"",_model_name:"StringModel"})},t}(Qt),Ci=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Li(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_view_name:"HTMLView",_model_name:"HTMLModel"})},t}(Ei),Ti=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Li(t,e),t.prototype.render=function(){e.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-html"),this.content=document.createElement("div"),this.content.classList.add("widget-html-content"),this.el.appendChild(this.content),this.update()},t.prototype.update=function(){return this.content.innerHTML=this.model.get("value"),e.prototype.update.call(this)},t}(Bt),Si=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Li(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_view_name:"HTMLMathView",_model_name:"HTMLMathModel"})},t}(Ei),Ai=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Li(t,e),t.prototype.render=function(){e.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-htmlmath"),this.content=document.createElement("div"),this.content.classList.add("widget-htmlmath-content"),this.el.appendChild(this.content),this.update()},t.prototype.update=function(){return this.content.innerHTML=this.model.get("value"),this.typeset(this.content),e.prototype.update.call(this)},t}(Bt),ki=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Li(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_view_name:"LabelView",_model_name:"LabelModel"})},t}(Ei),Di=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Li(t,e),t.prototype.render=function(){e.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-label"),this.update()},t.prototype.update=function(){return this.typeset(this.el,this.model.get("value")),e.prototype.update.call(this)},t}(Bt),Ii=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Li(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_view_name:"TextareaView",_model_name:"TextareaModel",rows:null,continuous_update:!0})},t}(Ei),Oi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Li(t,e),t.prototype.render=function(){var t=this;e.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-textarea"),this.textbox=document.createElement("textarea"),this.textbox.setAttribute("rows","5"),this.textbox.id=this.label.htmlFor=v(),this.el.appendChild(this.textbox),this.update(),this.listenTo(this.model,"change:placeholder",(function(e,n,r){t.update_placeholder(n)})),this.update_placeholder()},t.prototype.update_placeholder=function(e){e=e||this.model.get("placeholder"),this.textbox.setAttribute("placeholder",e.toString())},t.prototype.update=function(t){if(void 0===t||t.updated_view!=this){this.textbox.value=this.model.get("value");var n=this.model.get("rows");null===n&&(n=""),this.textbox.setAttribute("rows",n),this.textbox.disabled=this.model.get("disabled")}return e.prototype.update.call(this)},t.prototype.events=function(){return{"keydown input":"handleKeyDown","keypress input":"handleKeypress","input textarea":"handleChanging","change textarea":"handleChanged"}},t.prototype.handleKeyDown=function(e){e.stopPropagation()},t.prototype.handleKeypress=function(e){e.stopPropagation()},t.prototype.handleChanging=function(e){this.model.get("continuous_update")&&this.handleChanged(e)},t.prototype.handleChanged=function(e){var t=e.target;this.model.set("value",t.value,{updated_view:this}),this.touch()},t}(Bt),Ni=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Li(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_view_name:"TextView",_model_name:"TextModel",continuous_update:!0})},t}(Ei),zi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.inputType="text",t}return Li(t,e),t.prototype.render=function(){var t=this;e.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-inline-hbox"),this.el.classList.add("widget-text"),this.textbox=document.createElement("input"),this.textbox.setAttribute("type",this.inputType),this.textbox.id=this.label.htmlFor=v(),this.el.appendChild(this.textbox),this.update(),this.listenTo(this.model,"change:placeholder",(function(e,n,r){t.update_placeholder(n)})),this.listenTo(this.model,"change:description_tooltip",this.update_title),this.listenTo(this.model,"change:description",this.update_title),this.update_placeholder(),this.update_title()},t.prototype.update_placeholder=function(e){this.textbox.setAttribute("placeholder",e||this.model.get("placeholder"))},t.prototype.update_title=function(){var e=this.model.get("description_tooltip");e?0===this.model.get("description").length&&this.textbox.setAttribute("title",e):this.textbox.removeAttribute("title")},t.prototype.update=function(t){return void 0!==t&&t.updated_view===this||(this.textbox.value!==this.model.get("value")&&(this.textbox.value=this.model.get("value")),this.textbox.disabled=this.model.get("disabled")),e.prototype.update.call(this)},t.prototype.events=function(){return{"keydown input":"handleKeyDown","keypress input":"handleKeypress","input input":"handleChanging","change input":"handleChanged"}},t.prototype.handleKeyDown=function(e){e.stopPropagation()},t.prototype.handleKeypress=function(e){e.stopPropagation(),13===e.keyCode&&this.send({event:"submit"})},t.prototype.handleChanging=function(e){this.model.get("continuous_update")&&this.handleChanged(e)},t.prototype.handleChanged=function(e){var t=e.target;this.model.set("value",t.value,{updated_view:this}),this.touch()},t}(Bt),ji=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Li(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_view_name:"PasswordView",_model_name:"PasswordModel"})},t}(Ni),Pi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.inputType="password",t}return Li(t,e),t}(zi),Ri=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Li(t,e),t.prototype.defaults=function(){return xi(xi({},e.prototype.defaults.call(this)),{_model_name:"ComboboxModel",_view_name:"ComboboxView",options:[],ensure_options:!1})},t}(Ni),Hi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isInitialRender=!0,t}return Li(t,e),t.prototype.render=function(){this.datalist=document.createElement("datalist"),this.datalist.id=v(),e.prototype.render.call(this),this.textbox.setAttribute("list",this.datalist.id),this.el.appendChild(this.datalist)},t.prototype.update=function(t){if(e.prototype.update.call(this,t),this.datalist){var n=this.isValid(this.model.get("value"));if(this.highlightValidState(n),!(void 0!==t&&t.updated_view||!this.model.hasChanged("options")&&!this.isInitialRender)){this.isInitialRender=!1;var r=this.model.get("options").map((function(e){return'<option value="'+e+'"></option>'}));this.datalist.innerHTML=r.join("\n")}}},t.prototype.isValid=function(e){if(!0===this.model.get("ensure_option")&&-1===this.model.get("options").indexOf(e))return!1;return!0},t.prototype.handleChanging=function(t){var n=t.target,r=this.isValid(n.value);this.highlightValidState(r),r&&e.prototype.handleChanging.call(this,t)},t.prototype.handleChanged=function(t){var n=t.target,r=this.isValid(n.value);this.highlightValidState(r),r&&e.prototype.handleChanged.call(this,t)},t.prototype.highlightValidState=function(e){this.textbox.classList.toggle("jpwidgets-invalidComboValue",!e)},t}(zi),Yi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vi=function(){return(Vi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Fi=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},Bi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yi(t,e),t.prototype.defaults=function(){return Gt.extend(e.prototype.defaults.call(this),{_model_name:"FileUploadModel",_view_name:"FileUploadView",_counter:0,accept:"",description:"Upload",tooltip:"",disabled:!1,icon:"upload",button_style:"",multiple:!1,metadata:[],data:[],error:"",style:null})},t.serializers=Vi(Vi({},$t.serializers),{data:{serialize:function(e){return Fi(e)}}}),t}($t),Ui=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yi(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return"button"},enumerable:!0,configurable:!0}),t.prototype.render=function(){var t=this;e.prototype.render.call(this),this.el.classList.add("jupyter-widgets"),this.el.classList.add("widget-upload"),this.el.classList.add("jupyter-button"),this.fileInput=document.createElement("input"),this.fileInput.type="file",this.fileInput.style.display="none",this.el.appendChild(this.fileInput),this.el.addEventListener("click",(function(){t.fileInput.click()})),this.fileInput.addEventListener("click",(function(){t.fileInput.value=""})),this.fileInput.addEventListener("change",(function(){var e=[];Array.from(t.fileInput.files).forEach((function(n){e.push(new Promise((function(e,r){var i={name:n.name,type:n.type,size:n.size,lastModified:n.lastModified};t.fileReader=new FileReader,t.fileReader.onload=function(t){var n=t.target.result;e({buffer:n,metadata:i,error:""})},t.fileReader.onerror=function(){r()},t.fileReader.onabort=t.fileReader.onerror,t.fileReader.readAsArrayBuffer(n)})))})),Promise.all(e).then((function(e){var n=[],r=[];e.forEach((function(e){n.push(e.metadata),r.push(e.buffer)}));var i=t.model.get("_counter");t.model.set({_counter:i+e.length,metadata:n,data:r,error:""}),t.touch()})).catch((function(e){console.error("error in file upload: %o",e),t.model.set({error:e}),t.touch()}))})),this.listenTo(this.model,"change:button_style",this.update_button_style),this.set_button_style(),this.update()},t.prototype.update=function(){this.el.disabled=this.model.get("disabled"),this.el.setAttribute("title",this.model.get("tooltip"));var t=this.model.get("description")+" ("+this.model.get("_counter")+")",n=this.model.get("icon");if(t.length||n.length){if(this.el.textContent="",n.length){var r=document.createElement("i");r.classList.add("fa"),r.classList.add("fa-"+n),0===t.length&&r.classList.add("center"),this.el.appendChild(r)}this.el.appendChild(document.createTextNode(t))}return this.fileInput.accept=this.model.get("accept"),this.fileInput.multiple=this.model.get("multiple"),e.prototype.update.call(this)},t.prototype.update_button_style=function(){this.update_mapped_classes(t.class_map,"button_style",this.el)},t.prototype.set_button_style=function(){this.set_mapped_classes(t.class_map,"button_style",this.el)},t.class_map={primary:["mod-primary"],success:["mod-success"],info:["mod-info"],warning:["mod-warning"],danger:["mod-danger"]},t}(Lt),Wi=n(373).version,Gi=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qi=function(){return(qi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Ki=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Gi(t,e),t.prototype.defaults=function(){return qi(qi({},e.prototype.defaults.call(this)),{_model_name:"OutputModel",_view_name:"OutputView",_model_module:"@jupyter-widgets/output",_view_module:"@jupyter-widgets/output",_model_module_version:"1.0.0",_view_module_version:"1.0.0"})},t}(yt),$i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Gi(t,e),t}(Lt);function Qi(e){return"execute_result"===e.output_type}function Zi(e){return"display_data"===e.output_type}function Ji(e){return"stream"===e.output_type}class Xi{constructor(e={}){this._array=[],this._isDisposed=!1,this._changed=new ne.Signal(this),void 0!==e.values&&Object(X.each)(e.values,e=>{this._array.push(e)}),this._itemCmp=e.itemCmp||eo.itemCmp}get type(){return"List"}get changed(){return this._changed}get length(){return this._array.length}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,ne.Signal.clearData(this),this.clear())}iter(){return new X.ArrayIterator(this._array)}get(e){return this._array[e]}set(e,t){const n=this._array[e];if(void 0===t)throw new Error("Cannot set an undefined item");(0,this._itemCmp)(n,t)||(this._array[e]=t,this._changed.emit({type:"set",oldIndex:e,newIndex:e,oldValues:[n],newValues:[t]}))}push(e){const t=this._array.push(e);return this._changed.emit({type:"add",oldIndex:-1,newIndex:this.length-1,oldValues:[],newValues:[e]}),t}insert(e,t){X.ArrayExt.insert(this._array,e,t),this._changed.emit({type:"add",oldIndex:-1,newIndex:e,oldValues:[],newValues:[t]})}removeValue(e){const t=this._itemCmp,n=X.ArrayExt.findFirstIndex(this._array,n=>t(n,e));return this.remove(n),n}remove(e){const t=X.ArrayExt.removeAt(this._array,e);if(void 0!==t)return this._changed.emit({type:"remove",oldIndex:e,newIndex:-1,newValues:[],oldValues:[t]}),t}clear(){const e=this._array.slice();this._array.length=0,this._changed.emit({type:"remove",oldIndex:0,newIndex:0,newValues:[],oldValues:e})}move(e,t){if(this.length<=1||e===t)return;const n=[this._array[e]];X.ArrayExt.move(this._array,e,t),this._changed.emit({type:"move",oldIndex:e,newIndex:t,oldValues:n,newValues:n})}pushAll(e){const t=this.length;return Object(X.each)(e,e=>{this._array.push(e)}),this._changed.emit({type:"add",oldIndex:-1,newIndex:t,oldValues:[],newValues:Object(X.toArray)(e)}),this.length}insertAll(e,t){const n=e;Object(X.each)(t,t=>{X.ArrayExt.insert(this._array,e++,t)}),this._changed.emit({type:"add",oldIndex:-1,newIndex:n,oldValues:[],newValues:Object(X.toArray)(t)})}removeRange(e,t){const n=this._array.slice(e,t);for(let n=e;n<t;n++)X.ArrayExt.removeAt(this._array,e);return this._changed.emit({type:"remove",oldIndex:e,newIndex:-1,oldValues:n,newValues:[]}),this.length}}var eo,to,no,ro,io;!function(e){e.itemCmp=function(e,t){return e===t}}(eo||(eo={}));class oo{constructor(e={}){if(this._map=new Map,this._changed=new ne.Signal(this),this._isDisposed=!1,this._itemCmp=e.itemCmp||to.itemCmp,e.values)for(const t in e.values)this._map.set(t,e.values[t])}get type(){return"Map"}get changed(){return this._changed}get isDisposed(){return this._isDisposed}get size(){return this._map.size}set(e,t){const n=this._map.get(e);if(void 0===t)throw Error("Cannot set an undefined value, use remove");const r=this._itemCmp;return void 0!==n&&r(n,t)||(this._map.set(e,t),this._changed.emit({type:n?"change":"add",key:e,oldValue:n,newValue:t})),n}get(e){return this._map.get(e)}has(e){return this._map.has(e)}keys(){const e=[];return this._map.forEach((t,n)=>{e.push(n)}),e}values(){const e=[];return this._map.forEach((t,n)=>{e.push(t)}),e}delete(e){const t=this._map.get(e);return this._map.delete(e)&&this._changed.emit({type:"remove",key:e,oldValue:t,newValue:void 0}),t}clear(){const e=this.keys();for(let t=0;t<e.length;t++)this.delete(e[t])}dispose(){this.isDisposed||(this._isDisposed=!0,ne.Signal.clearData(this),this._map.clear())}}!function(e){e.itemCmp=function(e,t){return e===t}}(to||(to={}));class ao extends oo{constructor(e={}){super({itemCmp:s.JSONExt.deepEqual,values:e.values})}toJSON(){const e=Object.create(null),t=this.keys();for(const n of t){const t=this.get(n);void 0!==t&&(e[n]=s.JSONExt.deepCopy(t))}return e}}!function(e){class t extends ee.b{constructor(e,t){super(e),this.args=t}}e.ChangeMessage=t}(ao||(ao={}));class so{constructor(e){this._changed=new ne.Signal(this),this._raw={};const{data:t,metadata:n,trusted:r}=ro.getBundleOptions(e);this._data=new ao({values:t}),this._rawData=t,this._metadata=new ao({values:n}),this._rawMetadata=n,this.trusted=r;const i=e.value;for(const e in i)switch(e){case"data":case"metadata":break;default:this._raw[e]=ro.extract(i,e)}this.type=i.output_type,Qi(i)?this.executionCount=i.execution_count:this.executionCount=null}get changed(){return this._changed}dispose(){this._data.dispose(),this._metadata.dispose(),ne.Signal.clearData(this)}get data(){return this._rawData}get metadata(){return this._rawMetadata}setData(e){e.data&&(this._updateObservable(this._data,e.data),this._rawData=e.data),e.metadata&&(this._updateObservable(this._metadata,e.metadata),this._rawMetadata=e.metadata),this._changed.emit(void 0)}toJSON(){const e={};for(const t in this._raw)e[t]=ro.extract(this._raw,t);switch(this.type){case"display_data":case"execute_result":case"update_display_data":e.data=this.data,e.metadata=this.metadata}return delete e.transient,e}_updateObservable(e,t){const n=e.keys(),r=Object.keys(t);for(const t of n)-1===r.indexOf(t)&&e.delete(t);for(const n of r){const r=e.get(n),i=t[n];r!==i&&e.set(n,i)}}}(no=so||(so={})).getData=function(e){return ro.getData(e)},no.getMetadata=function(e){return ro.getMetadata(e)},function(e){function t(e){let t={};if(Qi(e)||Zi(e)||function(e){return"update_display_data"===e.output_type}(e))t=e.data;else if(Ji(e))"stderr"===e.name?t["application/vnd.jupyter.stderr"]=e.text:t["application/vnd.jupyter.stdout"]=e.text;else if(function(e){return"error"===e.output_type}(e)){t["application/vnd.jupyter.error"]=e;const n=e.traceback.join("\n");t["application/vnd.jupyter.stderr"]=n||`${e.ename}: ${e.evalue}`}return function(e){const t=Object.create(null);for(const n in e)t[n]=r(e,n);return t}(t)}function n(e){const t=Object.create(null);if(Qi(e)||Zi(e))for(const n in e.metadata)t[n]=r(e.metadata,n);return t}function r(e,t){const n=e[t];return void 0===n||s.JSONExt.isPrimitive(n)?n:JSON.parse(JSON.stringify(n))}e.getData=t,e.getMetadata=n,e.getBundleOptions=function(e){return{data:t(e.value),metadata:n(e.value),trusted:!!e.trusted}},e.extract=r}(ro||(ro={}));class lo{constructor(e={}){this.clearNext=!1,this._trusted=!1,this._isDisposed=!1,this._stateChanged=new ne.Signal(this),this._changed=new ne.Signal(this),this._trusted=!!e.trusted,this.contentFactory=e.contentFactory||lo.defaultContentFactory,this.list=new Xi,e.values&&Object(X.each)(e.values,e=>{this._add(e)}),this.list.changed.connect(this._onListChanged,this)}get stateChanged(){return this._stateChanged}get changed(){return this._changed}get length(){return this.list?this.list.length:0}get trusted(){return this._trusted}set trusted(e){if(e===this._trusted)return;const t=this._trusted=e;for(let e=0;e<this.list.length;e++){let n=this.list.get(e);const r=n.toJSON();n.dispose(),n=this._createItem({value:r,trusted:t}),this.list.set(e,n)}}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,this.list.dispose(),ne.Signal.clearData(this))}get(e){return this.list.get(e)}set(e,t){t=s.JSONExt.deepCopy(t),io.normalize(t);const n=this._createItem({value:t,trusted:this._trusted});this.list.set(e,n)}add(e){return this.clearNext&&(this.clear(),this.clearNext=!1),this._add(e)}clear(e=!1){this._lastStream="",e?this.clearNext=!0:(Object(X.each)(this.list,e=>{e.dispose()}),this.list.clear())}fromJSON(e){this.clear(),Object(X.each)(e,e=>{this._add(e)})}toJSON(){return Object(X.toArray)(Object(X.map)(this.list,e=>e.toJSON()))}_add(e){const t=this._trusted;if(e=s.JSONExt.deepCopy(e),io.normalize(e),Ji(e)&&this._lastStream&&e.name===this._lastName&&this.shouldCombine({value:e,lastModel:this.list.get(this.length-1)})){this._lastStream+=e.text,this._lastStream=io.removeOverwrittenChars(this._lastStream),e.text=this._lastStream;const n=this._createItem({value:e,trusted:t}),r=this.length-1;return this.list.get(r).dispose(),this.list.set(r,n),r}Ji(e)&&(e.text=io.removeOverwrittenChars(e.text));const n=this._createItem({value:e,trusted:t});return Ji(e)?(this._lastStream=e.text,this._lastName=e.name):this._lastStream="",this.list.push(n)}shouldCombine(e){return!0}_createItem(e){const t=this.contentFactory.createOutputModel(e);return t.changed.connect(this._onGenericChange,this),t}_onListChanged(e,t){this._changed.emit(t)}_onGenericChange(){this._stateChanged.emit(void 0)}}!function(e){class t{createOutputModel(e){return new so(e)}}e.ContentFactory=t,e.defaultContentFactory=new t}(lo||(lo={})),function(e){e.normalize=function(e){Ji(e)&&Array.isArray(e.text)&&(e.text=e.text.join("\n"))},e.removeOverwrittenChars=function(e){return function(e){for(e=e.replace(/\r+\n/gm,"\n");e.search(/\r[^$]/g)>-1;){const t=e.match(/^(.*)\r+/m)[1];let n=e.match(/\r+(.*)$/m)[1];n+=t.slice(n.length,t.length),e=e.replace(/\r+.*$/m,"\r").replace(/^.*\r/m,n)}return e}(function(e){let t=e;do{t=(e=t).replace(/[^\n]\x08/gm,"")}while(t.length<e.length);return e}(e))}}(io||(io={}));var co=n(61),uo=n(22);class ho extends Ce{constructor(e){super(),this.outputLengthChanged=new ne.Signal(this),this._onIOPub=e=>{const t=this.model,n=e.header.msg_type;let r;const i=(e.content.transient||{}).display_id;let o;switch(n){case"execute_result":case"display_data":case"stream":case"error":r=Object.assign(Object.assign({},e.content),{output_type:n}),t.add(r);break;case"clear_output":{const n=e.content.wait;t.clear(n);break}case"update_display_data":if(r=Object.assign(Object.assign({},e.content),{output_type:"display_data"}),o=this._displayIdMap.get(i),o)for(const e of o)t.set(e,r)}i&&"display_data"===n&&(o=this._displayIdMap.get(i)||[],o.push(t.length-1),this._displayIdMap.set(i,o))},this._onExecuteReply=e=>{const t=this.model,n=e.content;if("ok"!==n.status)return;const r=n&&n.payload;if(!r||!r.length)return;const i=r.filter(e=>"page"===e.source);if(!i.length)return;const o={output_type:"display_data",data:JSON.parse(JSON.stringify(i[0])).data,metadata:{}};t.add(o)},this._minHeightTimeout=null,this._displayIdMap=new Map;const t=this.model=e.model;this.addClass("jp-OutputArea"),this.rendermime=e.rendermime,this.contentFactory=e.contentFactory||ho.defaultContentFactory,this.layout=new Oe;for(let e=0;e<t.length;e++){const n=t.get(e);this._insertOutput(e,n)}t.changed.connect(this.onModelChanged,this),t.stateChanged.connect(this.onStateChanged,this)}get widgets(){return this.layout.widgets}get future(){return this._future}set future(e){if(this.model.isDisposed)throw Error("Model is disposed");this._future!==e&&(this._future&&this._future.dispose(),this._future=e,this.model.clear(),this.widgets.length&&(this._clear(),this.outputLengthChanged.emit(this.model.length)),e.onIOPub=this._onIOPub,e.onReply=this._onExecuteReply,e.onStdin=t=>{uo.KernelMessage.isInputRequestMsg(t)&&this.onInputRequest(t,e)})}dispose(){this._future&&(this._future.dispose(),this._future=null),this._displayIdMap.clear(),super.dispose()}onModelChanged(e,t){switch(t.type){case"add":this._insertOutput(t.newIndex,t.newValues[0]),this.outputLengthChanged.emit(this.model.length);break;case"remove":if(this.widgets.length){if(0===this.model.length)this._clear();else{const e=t.oldIndex;for(let n=0;n<t.oldValues.length&&e<this.widgets.length;++n){const t=this.widgets[e];t.parent=null,t.dispose()}this._moveDisplayIdIndices(e,t.oldValues.length),this._preventHeightChangeJitter()}this.outputLengthChanged.emit(this.model.length)}break;case"set":this._setOutput(t.newIndex,t.newValues[0]),this.outputLengthChanged.emit(this.model.length)}}_moveDisplayIdIndices(e,t){this._displayIdMap.forEach(n=>{const r=e+t;for(let i=n.length-1;i>=0;--i){const o=n[i];o>=e&&o<r?n.splice(i,1):o>=r&&(n[i]-=t)}})}onStateChanged(e){for(let e=0;e<this.model.length;e++)this._setOutput(e,this.model.get(e));this.outputLengthChanged.emit(this.model.length)}_clear(){if(!this.widgets.length)return;const e=this.widgets.length;for(let t=0;t<e;t++){const e=this.widgets[0];e.parent=null,e.dispose()}this._displayIdMap.clear(),this._preventHeightChangeJitter()}_preventHeightChangeJitter(){const e=this.node.getBoundingClientRect();this.node.style.minHeight=e.height+"px",this._minHeightTimeout&&window.clearTimeout(this._minHeightTimeout),this._minHeightTimeout=window.setTimeout(()=>{this.isDisposed||(this.node.style.minHeight="")},50)}onInputRequest(e,t){const n=this.contentFactory,r=e.content.prompt,i=e.content.password,o=new je;o.addClass("jp-OutputArea-child"),o.addClass("jp-OutputArea-stdin-item");const a=n.createOutputPrompt();a.addClass("jp-OutputArea-prompt"),o.addWidget(a);const s=n.createStdin({prompt:r,password:i,future:t});s.addClass("jp-OutputArea-output"),o.addWidget(s);this.layout.addWidget(o),s.value.then(e=>{this.model.add({output_type:"stream",name:"stdin",text:e+"\n"}),o.dispose()})}_setOutput(e,t){const n=this.layout,r=n.widgets[e],i=r.widgets?r.widgets[1]:r,o=this.rendermime.preferredMimeType(t.data,t.trusted?"any":"ensure");i.renderModel&&mo.currentPreferredMimetype.get(i)===o&&ho.isIsolated(o,t.metadata)===i instanceof mo.IsolatedRenderer?i.renderModel(t):(n.widgets[e].dispose(),this._insertOutput(e,t))}_insertOutput(e,t){let n=this.createOutputItem(t);n?n.toggleClass("jp-OutputArea-executeResult",null!==t.executionCount):n=new Ce;this.layout.insertWidget(e,n)}createOutputItem(e){const t=this.createRenderedMimetype(e);if(!t)return null;const n=new je;n.addClass("jp-OutputArea-child");const r=this.contentFactory.createOutputPrompt();return r.executionCount=e.executionCount,r.addClass("jp-OutputArea-prompt"),n.addWidget(r),t.addClass("jp-OutputArea-output"),n.addWidget(t),n}createRenderedMimetype(e){const t=this.rendermime.preferredMimeType(e.data,e.trusted?"any":"ensure");if(!t)return null;let n=this.rendermime.createRenderer(t);return!0===ho.isIsolated(t,e.metadata)&&(n=new mo.IsolatedRenderer(n)),mo.currentPreferredMimetype.set(n,t),n.renderModel(e).catch(e=>{const t=document.createElement("pre");t.textContent="Javascript Error: "+e.message,n.node.appendChild(t),n.node.className="lm-Widget jp-RenderedText",n.node.setAttribute("data-mime-type","application/vnd.jupyter.stderr")}),n}}!function(e){e.execute=async function(e,t,n,r){var i;let o=!0;r&&Array.isArray(r.tags)&&-1!==r.tags.indexOf("raises-exception")&&(o=!1);const a={code:e,stop_on_error:o},s=null===(i=n.session)||void 0===i?void 0:i.kernel;if(!s)throw new Error("Session has no kernel.");const l=s.requestExecute(a,!1,r);return t.future=l,l.done},e.isIsolated=function(e,t){const n=t[e];return n&&void 0!==n.isolated?!!n.isolated:!!t.isolated};class t{createOutputPrompt(){return new po}createStdin(e){return new fo(e)}}e.ContentFactory=t,e.defaultContentFactory=new t}(ho||(ho={}));class po extends Ce{constructor(){super(),this._executionCount=null,this.addClass("jp-OutputPrompt")}get executionCount(){return this._executionCount}set executionCount(e){this._executionCount=e,this.node.textContent=null===e?"":`[${e}]:`}}class fo extends Ce{constructor(e){super({node:mo.createInputWidgetNode(e.prompt,e.password)}),this._promise=new s.PromiseDelegate,this.addClass("jp-Stdin"),this._input=this.node.getElementsByTagName("input")[0],this._input.focus(),this._future=e.future,this._value=e.prompt+" "}get value(){return this._promise.promise.then(()=>this._value)}handleEvent(e){const t=this._input;"keydown"===e.type&&13===e.keyCode&&(this._future.sendInputReply({status:"ok",value:t.value}),"password"===t.type?this._value+=Array(t.value.length+1).join("·"):this._value+=t.value,this._promise.resolve(void 0))}onAfterAttach(e){this._input.addEventListener("keydown",this),this.update()}onUpdateRequest(e){this._input.focus()}onBeforeDetach(e){this._input.removeEventListener("keydown",this)}}var mo;!function(e){e.createInputWidgetNode=function(e,t){const n=document.createElement("div"),r=document.createElement("pre");r.className="jp-Stdin-prompt",r.textContent=e;const i=document.createElement("input");return i.className="jp-Stdin-input",t&&(i.type="password"),n.appendChild(r),r.appendChild(i),n};e.IsolatedRenderer=class extends Ce{constructor(e){super({node:document.createElement("iframe")}),this.addClass("jp-mod-isolated"),this._wrapped=e;const t=this.node;t.frameBorder="0",t.scrolling="auto",t.addEventListener("load",()=>{t.contentDocument.open(),t.contentDocument.write(this._wrapped.node.innerHTML),t.contentDocument.close();const e=t.contentDocument.body;t.style.height=e.scrollHeight+"px",t.heightChangeObserver=new co.a(()=>{t.style.height=e.scrollHeight+"px"}),t.heightChangeObserver.observe(e)})}renderModel(e){return this._wrapped.renderModel(e).then(()=>{const e=this.node.contentWindow;e&&e.location.reload()})}},e.currentPreferredMimetype=new te.AttachedProperty({name:"preferredMimetype",create:e=>""})}(mo||(mo={}));n(374);class go extends Ki{defaults(){return Object.assign(Object.assign({},super.defaults()),{msg_id:"",outputs:[]})}initialize(e,t){super.initialize(e,t),this._outputs=new lo({trusted:!0}),this.listenTo(this,"change:outputs",this.setOutputs),this.setOutputs()}get outputs(){return this._outputs}clear_output(e=!1){this._outputs.clear(e)}setOutputs(e,t,n){n&&n.newMessage||(this.clear_output(),this._outputs.fromJSON(JSON.parse(JSON.stringify(this.get("outputs")))))}}class vo extends $i{_createElement(e){return this.pWidget=new je,this.pWidget.node}_setElement(e){if(this.el||e!==this.pWidget.node)throw new Error("Cannot reset the DOM element.");this.el=this.pWidget.node,this.$el=K()(this.pWidget.node)}render(){const e=this.model.widget_manager.renderMime;this._outputView=new ho({rendermime:e,model:this.model.outputs}),this.pWidget.insertWidget(0,this._outputView),this.pWidget.addClass("jupyter-widgets"),this.pWidget.addClass("widget-output"),this.update()}}var _o=n(14),yo=n(48),bo=n.n(yo);class Mo{static reg(e){return new RegExp("^"+e+"$","i")}}Mo.N={integer:"[+-]?[0-9]+",integer_pos:"[+]?[0-9]+",integer_zero_ff:"([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",number:"[+-]?([0-9]*[.])?[0-9]+(e-?[0-9]*)?",number_pos:"[+]?([0-9]*[.])?[0-9]+(e-?[0-9]*)?",number_zero_hundred:"[+]?(([0-9]|[1-9][0-9])([.][0-9]+)?|100)",number_zero_one:"[+]?(1([.][0]+)?|0([.][0-9]+)?)"},Mo.B={angle:`(${Mo.N.number}(deg|rad|grad|turn)|0)`,frequency:Mo.N.number+"(Hz|kHz)",ident:String.raw`-?([_a-z]|[\xA0-\xFF]|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])([_a-z0-9-]|[\xA0-\xFF]|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])*`,len_or_perc:`(0|${Mo.N.number}(px|em|rem|ex|in|cm|mm|pt|pc|%))`,length:`(${Mo.N.number}(px|em|rem|ex|in|cm|mm|pt|pc)|0)`,length_pos:`(${Mo.N.number_pos}(px|em|rem|ex|in|cm|mm|pt|pc)|0)`,percentage:Mo.N.number+"%",percentage_pos:Mo.N.number_pos+"%",percentage_zero_hundred:Mo.N.number_zero_hundred+"%",string:String.raw`(\"([^\n\r\f\\"]|\\\n|\r\n|\r|\f|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])*\")|(\'([^\n\r\f\\']|\\\n|\r\n|\r|\f|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])*\')`,time:Mo.N.number+"(s|ms)",url:"url\\(.*?\\)",z_index:"[+-]?[0-9]{1,7}"},Mo.A={absolute_size:"xx-small|x-small|small|medium|large|x-large|xx-large",attachment:"scroll|fixed|local",bg_origin:"border-box|padding-box|content-box",border_style:"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset",box:"border-box|padding-box|content-box",display_inside:"auto|block|table|flex|grid",display_outside:"block-level|inline-level|none|table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption",ending_shape:"circle|ellipse",generic_family:"serif|sans-serif|cursive|fantasy|monospace",generic_voice:"male|female|child",relative_size:"smaller|larger",repeat_style:"repeat-x|repeat-y|((?:repeat|space|round|no-repeat)(?:\\s*(?:repeat|space|round|no-repeat))?)",side_or_corner:"(left|right)?\\s*(top|bottom)?",single_animation_direction:"normal|reverse|alternate|alternate-reverse",single_animation_fill_mode:"none|forwards|backwards|both",single_animation_play_state:"running|paused"},Mo._COLOR={hex:"\\#(0x)?[0-9a-f]+",name:"aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|transparent|violet|wheat|white|whitesmoke|yellow|yellowgreen",rgb:String.raw`rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)`,rgba:String.raw`rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(${Mo.N.integer_zero_ff}|${Mo.N.number_zero_one}|${Mo.B.percentage_zero_hundred})\s*\)`},Mo._C={alpha:`${Mo.N.integer_zero_ff}|${Mo.N.number_zero_one}|${Mo.B.percentage_zero_hundred}`,alphavalue:Mo.N.number_zero_one,bg_position:`((${Mo.B.len_or_perc}|left|center|right|top|bottom)\\s*){1,4}`,bg_size:`(${Mo.B.length_pos}|${Mo.B.percentage}|auto){1,2}|cover|contain`,border_width:"thin|medium|thick|"+Mo.B.length,bottom:Mo.B.length+"|auto",color:`${Mo._COLOR.hex}|${Mo._COLOR.rgb}|${Mo._COLOR.rgba}|${Mo._COLOR.name}`,family_name:`${Mo.B.string}|(${Mo.B.ident}\\s*)+`,image_decl:Mo.B.url,left:Mo.B.length+"|auto",loose_quotable_words:`(${Mo.B.ident})+`,margin_width:Mo.B.len_or_perc+"|auto",padding_width:`${Mo.B.length_pos}|${Mo.B.percentage_pos}`,page_url:Mo.B.url,position:`((${Mo.B.len_or_perc}|left|center|right|top|bottom)\\s*){1,4}`,right:Mo.B.length+"|auto",shadow:"",size:`closest-side|farthest-side|closest-corner|farthest-corner|${Mo.B.length}|(${Mo.B.len_or_perc})\\s+(${Mo.B.len_or_perc})`,top:Mo.B.length+"|auto"},Mo._C1={image_list:`image\\(\\s*(${Mo.B.url})*\\s*(${Mo.B.url}|${Mo._C.color})\\s*\\)`,shadow:`((${Mo._C.color})\\s+((${Mo.B.length})\\s*){2,4}(s+inset)?)|((inset\\s+)?((${Mo.B.length})\\s*){2,4}\\s*(${Mo._C.color})?)`},Mo._C2={bg_image:`(${Mo.B.url}|${Mo._C1.image_list})|none`,image:`${Mo.B.url}|${Mo._C1.image_list}`,shape:`rect\\(\\s*(${Mo._C.top})\\s*,\\s*(${Mo._C.right})\\s*,\\s*(${Mo._C.bottom})\\s*,\\s*(${Mo._C.left})\\s*\\)`},Mo.C=Object.assign(Object.assign(Object.assign({},Mo._C),Mo._C1),Mo._C2),Mo.AP={border_collapse:"collapse|separate",box:"normal|none|contents",box_sizing:"content-box|padding-box|border-box",caption_side:"top|bottom",clear:"none|left|right|both",direction:"ltr|rtl",empty_cells:"show|hide",float:"left|right|none",font_stretch:"normal|wider|narrower|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",font_style:"normal|italic|oblique",font_variant:"normal|small-caps",font_weight:"normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900",list_style_position:"inside|outside",list_style_type:"disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman|lower-greek|lower-latin|upper-latin|armenian|georgian|lower-alpha|upper-alpha|none",overflow:"visible|hidden|scroll|auto",overflow_wrap:"normal|break-word",overflow_x:"visible|hidden|scroll|auto|no-display|no-content",page_break_after:"auto|always|avoid|left|right",page_break_before:"auto|always|avoid|left|right",page_break_inside:"avoid|auto",position:"static|relative|absolute",resize:"none|both|horizontal|vertical",speak:"normal|none|spell-out",speak_header:"once|always",speak_numeral:"digits|continuous",speak_punctuation:"code|none",table_layout:"auto|fixed",text_align:"left|right|center|justify",text_decoration:"none|((underline|overline|line-through|blink)\\s*)+",text_transform:"capitalize|uppercase|lowercase|none",text_wrap:"normal|unrestricted|none|suppress",unicode_bidi:"normal|embed|bidi-override",visibility:"visible|hidden|collapse",white_space:"normal|pre|nowrap|pre-wrap|pre-line",word_break:"normal|keep-all|break-all"},Mo._CP={background_attachment:`${Mo.A.attachment}(,\\s*${Mo.A.attachment})*`,background_color:Mo.C.color,background_origin:`${Mo.A.box}(,\\s*${Mo.A.box})*`,background_repeat:`${Mo.A.repeat_style}(,\\s*${Mo.A.repeat_style})*`,border:`((${Mo.C.border_width}|${Mo.A.border_style}|${Mo.C.color})\\s*){1,3}`,border_radius:`((${Mo.B.len_or_perc})\\s*){1,4}(\\/\\s*((${Mo.B.len_or_perc})\\s*){1,4})?`,border_spacing:`${Mo.B.length}\\s*(${Mo.B.length})?`,border_top_color:Mo.C.color,border_top_style:Mo.A.border_style,border_width:`((${Mo.C.border_width})\\s*){1,4}`,color:Mo.C.color,cursor:`(${Mo.B.url}(\\s*,\\s*)?)*(auto|crosshair|default|pointer|move|e-resize|ne-resize|nw-resize|n-resize|se-resize|sw-resize|s-resize|w-resize|text|wait|help|progress|all-scroll|col-resize|hand|no-drop|not-allowed|row-resize|vertical-text)`,display:`inline|block|list-item|run-in|inline-list-item|inline-block|table|inline-table|table-cell|table-caption|flex|inline-flex|grid|inline-grid|${Mo.A.display_inside}|${Mo.A.display_outside}|inherit|inline-box|inline-stack`,display_outside:Mo.A.display_outside,elevation:Mo.B.angle+"|below|level|above|higher|lower",font_family:`(${Mo.C.family_name}|${Mo.A.generic_family})(,\\s*(${Mo.C.family_name}|${Mo.A.generic_family}))*`,height:`${Mo.B.length}|${Mo.B.percentage}|auto`,letter_spacing:"normal|"+Mo.B.length,list_style_image:Mo.C.image+"|none",margin_right:Mo.C.margin_width,max_height:`${Mo.B.length_pos}|${Mo.B.percentage_pos}|none|auto`,min_height:`${Mo.B.length_pos}|${Mo.B.percentage_pos}|auto`,opacity:Mo.C.alphavalue,outline_color:Mo.C.color+"|invert",outline_width:Mo.C.border_width,padding:`((${Mo.C.padding_width})\\s*){1,4}`,padding_top:Mo.C.padding_width,pitch_range:Mo.N.number,right:`${Mo.B.length}|${Mo.B.percentage}|auto`,stress:Mo.N.number,text_indent:`${Mo.B.length}|${Mo.B.percentage}`,text_shadow:`none|${Mo.C.shadow}(,\\s*(${Mo.C.shadow}))*`,volume:`${Mo.N.number_pos}|${Mo.B.percentage_pos}|silent|x-soft|soft|medium|loud|x-loud`,word_wrap:Mo.AP.overflow_wrap,zoom:`normal|${Mo.N.number_pos}|${Mo.B.percentage_pos}`,backface_visibility:Mo.AP.visibility,background_clip:`${Mo.A.box}(,\\s*(${Mo.A.box}))*`,background_position:`${Mo.C.bg_position}(,\\s*(${Mo.C.bg_position}))*`,border_bottom_color:Mo.C.color,border_bottom_style:Mo.A.border_style,border_color:`((${Mo.C.color})\\s*){1,4}`,border_left_color:Mo.C.color,border_right_color:Mo.C.color,border_style:`((${Mo.A.border_style})\\s*){1,4}`,border_top_left_radius:`(${Mo.B.length}|${Mo.B.percentage})(\\s*(${Mo.B.length}|${Mo.B.percentage}))?`,border_top_width:Mo.C.border_width,box_shadow:`none|${Mo.C.shadow}(,\\s*(${Mo.C.shadow}))*`,clip:Mo.C.shape+"|auto",display_inside:Mo.A.display_inside,font_size:`${Mo.A.absolute_size}|${Mo.A.relative_size}|${Mo.B.length_pos}|${Mo.B.percentage_pos}`,line_height:`normal|${Mo.N.number_pos}|${Mo.B.length_pos}|${Mo.B.percentage_pos}`,margin_left:Mo.C.margin_width,max_width:`${Mo.B.length_pos}|${Mo.B.percentage_pos}|none|auto`,outline_style:Mo.A.border_style,padding_bottom:Mo.C.padding_width,padding_right:Mo.C.padding_width,perspective:"none|"+Mo.B.length,richness:Mo.N.number,text_overflow:`((clip|ellipsis|${Mo.B.string})\\s*){1,2}`,top:`${Mo.B.length}|${Mo.B.percentage}|auto`,width:`${Mo.B.length_pos}|${Mo.B.percentage_pos}|auto`,z_index:"auto|"+Mo.B.z_index,background:`(((${Mo.C.bg_position}\\s*(\\/\\s*${Mo.C.bg_size})?)|(${Mo.A.repeat_style})|(${Mo.A.attachment})|(${Mo.A.bg_origin})|(${Mo.C.bg_image})|(${Mo.C.color}))\\s*)+`,background_size:`${Mo.C.bg_size}(,\\s*${Mo.C.bg_size})*`,border_bottom_left_radius:`(${Mo.B.length}|${Mo.B.percentage})(\\s*(${Mo.B.length}|${Mo.B.percentage}))?`,border_bottom_width:Mo.C.border_width,border_left_style:Mo.A.border_style,border_right_style:Mo.A.border_style,border_top:`((${Mo.C.border_width}|${Mo.A.border_style}|${Mo.C.color})\\s*){1,3}`,bottom:Mo.B.len_or_perc+"|auto",list_style:`((${Mo.AP.list_style_type}|${Mo.AP.list_style_position}|${Mo.C.image}|none})\\s*){1,3}`,margin_top:Mo.C.margin_width,outline:`((${Mo.C.color}|invert|${Mo.A.border_style}|${Mo.C.border_width})\\s*){1,3}`,overflow_y:Mo.AP.overflow_x,pitch:Mo.B.frequency+"|x-low|low|medium|high|x-high",vertical_align:"baseline|sub|super|top|text-top|middle|bottom|text-bottom|"+Mo.B.len_or_perc,word_spacing:"normal|"+Mo.B.length,background_image:`${Mo.C.bg_image}(,\\s*${Mo.C.bg_image})*`,border_bottom_right_radius:`(${Mo.B.length}|${Mo.B.percentage})(\\s*(${Mo.B.length}|${Mo.B.percentage}))?`,border_left_width:Mo.C.border_width,border_right_width:Mo.C.border_width,left:Mo.B.len_or_perc+"|auto",margin_bottom:Mo.C.margin_width,pause_after:`${Mo.B.time}|${Mo.B.percentage}`,speech_rate:Mo.N.number+"|x-slow|slow|medium|fast|x-fast|faster|slower",transition_duration:`${Mo.B.time}(,\\s*${Mo.B.time})*`,border_bottom:`((${Mo.C.border_width}|${Mo.A.border_style}|${Mo.C.color})\\s*){1,3}`,border_right:`((${Mo.C.border_width}|${Mo.A.border_style}|${Mo.C.color})\\s*){1,3}`,margin:`((${Mo.C.margin_width})\\s*){1,4}`,padding_left:Mo.C.padding_width,border_left:`((${Mo.C.border_width}|${Mo.A.border_style}|${Mo.C.color})\\s*){1,3}`,quotes:`(${Mo.B.string}\\s*${Mo.B.string})+|none`,border_top_right_radius:`(${Mo.B.length}|${Mo.B.percentage})(\\s*(${Mo.B.length}|${Mo.B.percentage}))?`,min_width:`${Mo.B.length_pos}|${Mo.B.percentage_pos}|auto`},Mo._CP1={font:`(((((${Mo.AP.font_style}|${Mo.AP.font_variant}|${Mo.AP.font_weight})\\s*){1,3})?\\s*(${Mo._CP.font_size})\\s*(\\/\\s*(${Mo._CP.line_height}))?\\s+(${Mo._CP.font_family}))|caption|icon|menu|message-box|small-caption|status-bar)`},Mo.CP=Object.assign(Object.assign({},Mo._CP),Mo._CP1),Mo.BORDER_COLLAPSE=Mo.reg(Mo.AP.border_collapse),Mo.BOX=Mo.reg(Mo.AP.box),Mo.BOX_SIZING=Mo.reg(Mo.AP.box_sizing),Mo.CAPTION_SIDE=Mo.reg(Mo.AP.caption_side),Mo.CLEAR=Mo.reg(Mo.AP.clear),Mo.DIRECTION=Mo.reg(Mo.AP.direction),Mo.EMPTY_CELLS=Mo.reg(Mo.AP.empty_cells),Mo.FLOAT=Mo.reg(Mo.AP.float),Mo.FONT_STRETCH=Mo.reg(Mo.AP.font_stretch),Mo.FONT_STYLE=Mo.reg(Mo.AP.font_style),Mo.FONT_VARIANT=Mo.reg(Mo.AP.font_variant),Mo.FONT_WEIGHT=Mo.reg(Mo.AP.font_weight),Mo.LIST_STYLE_POSITION=Mo.reg(Mo.AP.list_style_position),Mo.LIST_STYLE_TYPE=Mo.reg(Mo.AP.list_style_type),Mo.OVERFLOW=Mo.reg(Mo.AP.overflow),Mo.OVERFLOW_WRAP=Mo.reg(Mo.AP.overflow_wrap),Mo.OVERFLOW_X=Mo.reg(Mo.AP.overflow_x),Mo.PAGE_BREAK_AFTER=Mo.reg(Mo.AP.page_break_after),Mo.PAGE_BREAK_BEFORE=Mo.reg(Mo.AP.page_break_before),Mo.PAGE_BREAK_INSIDE=Mo.reg(Mo.AP.page_break_inside),Mo.POSITION=Mo.reg(Mo.AP.position),Mo.RESIZE=Mo.reg(Mo.AP.resize),Mo.SPEAK=Mo.reg(Mo.AP.speak),Mo.SPEAK_HEADER=Mo.reg(Mo.AP.speak_header),Mo.SPEAK_NUMERAL=Mo.reg(Mo.AP.speak_numeral),Mo.SPEAK_PUNCTUATION=Mo.reg(Mo.AP.speak_punctuation),Mo.TABLE_LAYOUT=Mo.reg(Mo.AP.table_layout),Mo.TEXT_ALIGN=Mo.reg(Mo.AP.text_align),Mo.TEXT_DECORATION=Mo.reg(Mo.AP.text_decoration),Mo.TEXT_TRANSFORM=Mo.reg(Mo.AP.text_transform),Mo.TEXT_WRAP=Mo.reg(Mo.AP.text_wrap),Mo.UNICODE_BIDI=Mo.reg(Mo.AP.unicode_bidi),Mo.VISIBILITY=Mo.reg(Mo.AP.visibility),Mo.WHITE_SPACE=Mo.reg(Mo.AP.white_space),Mo.WORD_BREAK=Mo.reg(Mo.AP.word_break),Mo.BACKGROUND_ATTACHMENT=Mo.reg(Mo.CP.background_attachment),Mo.BACKGROUND_COLOR=Mo.reg(Mo.CP.background_color),Mo.BACKGROUND_ORIGIN=Mo.reg(Mo.CP.background_origin),Mo.BACKGROUND_REPEAT=Mo.reg(Mo.CP.background_repeat),Mo.BORDER=Mo.reg(Mo.CP.border),Mo.BORDER_RADIUS=Mo.reg(Mo.CP.border_radius),Mo.BORDER_SPACING=Mo.reg(Mo.CP.border_spacing),Mo.BORDER_TOP_COLOR=Mo.reg(Mo.CP.border_top_color),Mo.BORDER_TOP_STYLE=Mo.reg(Mo.CP.border_top_style),Mo.BORDER_WIDTH=Mo.reg(Mo.CP.border_width),Mo.COLOR=Mo.reg(Mo.CP.color),Mo.CURSOR=Mo.reg(Mo.CP.cursor),Mo.DISPLAY=Mo.reg(Mo.CP.display),Mo.DISPLAY_OUTSIDE=Mo.reg(Mo.CP.display_outside),Mo.ELEVATION=Mo.reg(Mo.CP.elevation),Mo.FONT_FAMILY=Mo.reg(Mo.CP.font_family),Mo.HEIGHT=Mo.reg(Mo.CP.height),Mo.LETTER_SPACING=Mo.reg(Mo.CP.letter_spacing),Mo.LIST_STYLE_IMAGE=Mo.reg(Mo.CP.list_style_image),Mo.MARGIN_RIGHT=Mo.reg(Mo.CP.margin_right),Mo.MAX_HEIGHT=Mo.reg(Mo.CP.max_height),Mo.MIN_HEIGHT=Mo.reg(Mo.CP.min_height),Mo.OPACITY=Mo.reg(Mo.CP.opacity),Mo.OUTLINE_COLOR=Mo.reg(Mo.CP.outline_color),Mo.OUTLINE_WIDTH=Mo.reg(Mo.CP.outline_width),Mo.PADDING=Mo.reg(Mo.CP.padding),Mo.PADDING_TOP=Mo.reg(Mo.CP.padding_top),Mo.PITCH_RANGE=Mo.reg(Mo.CP.pitch_range),Mo.RIGHT=Mo.reg(Mo.CP.right),Mo.STRESS=Mo.reg(Mo.CP.stress),Mo.TEXT_INDENT=Mo.reg(Mo.CP.text_indent),Mo.TEXT_SHADOW=Mo.reg(Mo.CP.text_shadow),Mo.VOLUME=Mo.reg(Mo.CP.volume),Mo.WORD_WRAP=Mo.reg(Mo.CP.word_wrap),Mo.ZOOM=Mo.reg(Mo.CP.zoom),Mo.BACKFACE_VISIBILITY=Mo.reg(Mo.CP.backface_visibility),Mo.BACKGROUND_CLIP=Mo.reg(Mo.CP.background_clip),Mo.BACKGROUND_POSITION=Mo.reg(Mo.CP.background_position),Mo.BORDER_BOTTOM_COLOR=Mo.reg(Mo.CP.border_bottom_color),Mo.BORDER_BOTTOM_STYLE=Mo.reg(Mo.CP.border_bottom_style),Mo.BORDER_COLOR=Mo.reg(Mo.CP.border_color),Mo.BORDER_LEFT_COLOR=Mo.reg(Mo.CP.border_left_color),Mo.BORDER_RIGHT_COLOR=Mo.reg(Mo.CP.border_right_color),Mo.BORDER_STYLE=Mo.reg(Mo.CP.border_style),Mo.BORDER_TOP_LEFT_RADIUS=Mo.reg(Mo.CP.border_top_left_radius),Mo.BORDER_TOP_WIDTH=Mo.reg(Mo.CP.border_top_width),Mo.BOX_SHADOW=Mo.reg(Mo.CP.box_shadow),Mo.CLIP=Mo.reg(Mo.CP.clip),Mo.DISPLAY_INSIDE=Mo.reg(Mo.CP.display_inside),Mo.FONT_SIZE=Mo.reg(Mo.CP.font_size),Mo.LINE_HEIGHT=Mo.reg(Mo.CP.line_height),Mo.MARGIN_LEFT=Mo.reg(Mo.CP.margin_left),Mo.MAX_WIDTH=Mo.reg(Mo.CP.max_width),Mo.OUTLINE_STYLE=Mo.reg(Mo.CP.outline_style),Mo.PADDING_BOTTOM=Mo.reg(Mo.CP.padding_bottom),Mo.PADDING_RIGHT=Mo.reg(Mo.CP.padding_right),Mo.PERSPECTIVE=Mo.reg(Mo.CP.perspective),Mo.RICHNESS=Mo.reg(Mo.CP.richness),Mo.TEXT_OVERFLOW=Mo.reg(Mo.CP.text_overflow),Mo.TOP=Mo.reg(Mo.CP.top),Mo.WIDTH=Mo.reg(Mo.CP.width),Mo.Z_INDEX=Mo.reg(Mo.CP.z_index),Mo.BACKGROUND=Mo.reg(Mo.CP.background),Mo.BACKGROUND_SIZE=Mo.reg(Mo.CP.background_size),Mo.BORDER_BOTTOM_LEFT_RADIUS=Mo.reg(Mo.CP.border_bottom_left_radius),Mo.BORDER_BOTTOM_WIDTH=Mo.reg(Mo.CP.border_bottom_width),Mo.BORDER_LEFT_STYLE=Mo.reg(Mo.CP.border_left_style),Mo.BORDER_RIGHT_STYLE=Mo.reg(Mo.CP.border_right_style),Mo.BORDER_TOP=Mo.reg(Mo.CP.border_top),Mo.BOTTOM=Mo.reg(Mo.CP.bottom),Mo.LIST_STYLE=Mo.reg(Mo.CP.list_style),Mo.MARGIN_TOP=Mo.reg(Mo.CP.margin_top),Mo.OUTLINE=Mo.reg(Mo.CP.outline),Mo.OVERFLOW_Y=Mo.reg(Mo.CP.overflow_y),Mo.PITCH=Mo.reg(Mo.CP.pitch),Mo.VERTICAL_ALIGN=Mo.reg(Mo.CP.vertical_align),Mo.WORD_SPACING=Mo.reg(Mo.CP.word_spacing),Mo.BACKGROUND_IMAGE=Mo.reg(Mo.CP.background_image),Mo.BORDER_BOTTOM_RIGHT_RADIUS=Mo.reg(Mo.CP.border_bottom_right_radius),Mo.BORDER_LEFT_WIDTH=Mo.reg(Mo.CP.border_left_width),Mo.BORDER_RIGHT_WIDTH=Mo.reg(Mo.CP.border_right_width),Mo.LEFT=Mo.reg(Mo.CP.left),Mo.MARGIN_BOTTOM=Mo.reg(Mo.CP.margin_bottom),Mo.PAUSE_AFTER=Mo.reg(Mo.CP.pause_after),Mo.SPEECH_RATE=Mo.reg(Mo.CP.speech_rate),Mo.TRANSITION_DURATION=Mo.reg(Mo.CP.transition_duration),Mo.BORDER_BOTTOM=Mo.reg(Mo.CP.border_bottom),Mo.BORDER_RIGHT=Mo.reg(Mo.CP.border_right),Mo.MARGIN=Mo.reg(Mo.CP.margin),Mo.PADDING_LEFT=Mo.reg(Mo.CP.padding_left),Mo.BORDER_LEFT=Mo.reg(Mo.CP.border_left),Mo.FONT=Mo.reg(Mo.CP.font),Mo.QUOTES=Mo.reg(Mo.CP.quotes),Mo.BORDER_TOP_RIGHT_RADIUS=Mo.reg(Mo.CP.border_top_right_radius),Mo.MIN_WIDTH=Mo.reg(Mo.CP.min_width);const wo=new class{constructor(){this._options={allowedTags:["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blockquote","br","button","canvas","caption","center","cite","code","col","colgroup","colspan","command","data","datalist","dd","del","details","dfn","dir","div","dl","dt","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","i","img","input","ins","kbd","label","legend","li","map","mark","menu","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rowspan","s","samp","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"],allowedAttributes:{"*":["class","dir","draggable","hidden","id","inert","itemprop","itemref","itemscope","lang","spellcheck","style","title","translate"],a:["accesskey","coords","href","hreflang","name","rel","shape","tabindex","target","type"],area:["accesskey","alt","coords","href","nohref","shape","tabindex"],audio:["autoplay","controls","loop","mediagroup","muted","preload","src"],bdo:["dir"],blockquote:["cite"],br:["clear"],button:["accesskey","disabled","name","tabindex","type","value"],canvas:["height","width"],caption:["align"],col:["align","char","charoff","span","valign","width"],colgroup:["align","char","charoff","span","valign","width"],command:["checked","command","disabled","icon","label","radiogroup","type"],data:["value"],del:["cite","datetime"],details:["open"],dir:["compact"],div:["align"],dl:["compact"],fieldset:["disabled"],font:["color","face","size"],form:["accept","action","autocomplete","enctype","method","name","novalidate"],h1:["align"],h2:["align"],h3:["align"],h4:["align"],h5:["align"],h6:["align"],hr:["align","noshade","size","width"],iframe:["align","frameborder","height","marginheight","marginwidth","width"],img:["align","alt","border","height","hspace","ismap","name","src","usemap","vspace","width"],input:["accept","accesskey","align","alt","autocomplete","checked","disabled","inputmode","ismap","list","max","maxlength","min","multiple","name","placeholder","readonly","required","size","src","step","tabindex","type","usemap","value"],ins:["cite","datetime"],label:["accesskey","for"],legend:["accesskey","align"],li:["type","value"],map:["name"],menu:["compact","label","type"],meter:["high","low","max","min","value"],ol:["compact","reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["for","name"],p:["align"],pre:["width"],progress:["max","min","value"],q:["cite"],select:["autocomplete","disabled","multiple","name","required","size","tabindex"],source:["type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],tbody:["align","char","charoff","valign"],td:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],textarea:["accesskey","autocomplete","cols","disabled","inputmode","name","placeholder","readonly","required","rows","tabindex","wrap"],tfoot:["align","char","charoff","valign"],th:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],thead:["align","char","charoff","valign"],tr:["align","bgcolor","char","charoff","valign"],track:["default","kind","label","srclang"],ul:["compact","type"],video:["autoplay","controls","height","loop","mediagroup","muted","poster","preload","src","width"]},allowedStyles:{"*":{"backface-visibility":[Mo.BACKFACE_VISIBILITY],background:[Mo.BACKGROUND],"background-attachment":[Mo.BACKGROUND_ATTACHMENT],"background-clip":[Mo.BACKGROUND_CLIP],"background-color":[Mo.BACKGROUND_COLOR],"background-image":[Mo.BACKGROUND_IMAGE],"background-origin":[Mo.BACKGROUND_ORIGIN],"background-position":[Mo.BACKGROUND_POSITION],"background-repeat":[Mo.BACKGROUND_REPEAT],"background-size":[Mo.BACKGROUND_SIZE],border:[Mo.BORDER],"border-bottom":[Mo.BORDER_BOTTOM],"border-bottom-color":[Mo.BORDER_BOTTOM_COLOR],"border-bottom-left-radius":[Mo.BORDER_BOTTOM_LEFT_RADIUS],"border-bottom-right-radius":[Mo.BORDER_BOTTOM_RIGHT_RADIUS],"border-bottom-style":[Mo.BORDER_BOTTOM_STYLE],"border-bottom-width":[Mo.BORDER_BOTTOM_WIDTH],"border-collapse":[Mo.BORDER_COLLAPSE],"border-color":[Mo.BORDER_COLOR],"border-left":[Mo.BORDER_LEFT],"border-left-color":[Mo.BORDER_LEFT_COLOR],"border-left-style":[Mo.BORDER_LEFT_STYLE],"border-left-width":[Mo.BORDER_LEFT_WIDTH],"border-radius":[Mo.BORDER_RADIUS],"border-right":[Mo.BORDER_RIGHT],"border-right-color":[Mo.BORDER_RIGHT_COLOR],"border-right-style":[Mo.BORDER_RIGHT_STYLE],"border-right-width":[Mo.BORDER_RIGHT_WIDTH],"border-spacing":[Mo.BORDER_SPACING],"border-style":[Mo.BORDER_STYLE],"border-top":[Mo.BORDER_TOP],"border-top-color":[Mo.BORDER_TOP_COLOR],"border-top-left-radius":[Mo.BORDER_TOP_LEFT_RADIUS],"border-top-right-radius":[Mo.BORDER_TOP_RIGHT_RADIUS],"border-top-style":[Mo.BORDER_TOP_STYLE],"border-top-width":[Mo.BORDER_TOP_WIDTH],"border-width":[Mo.BORDER_WIDTH],bottom:[Mo.BOTTOM],box:[Mo.BOX],"box-shadow":[Mo.BOX_SHADOW],"box-sizing":[Mo.BOX_SIZING],"caption-side":[Mo.CAPTION_SIDE],clear:[Mo.CLEAR],clip:[Mo.CLIP],color:[Mo.COLOR],cursor:[Mo.CURSOR],direction:[Mo.DIRECTION],display:[Mo.DISPLAY],"display-inside":[Mo.DISPLAY_INSIDE],"display-outside":[Mo.DISPLAY_OUTSIDE],elevation:[Mo.ELEVATION],"empty-cells":[Mo.EMPTY_CELLS],float:[Mo.FLOAT],font:[Mo.FONT],"font-family":[Mo.FONT_FAMILY],"font-size":[Mo.FONT_SIZE],"font-stretch":[Mo.FONT_STRETCH],"font-style":[Mo.FONT_STYLE],"font-variant":[Mo.FONT_VARIANT],"font-weight":[Mo.FONT_WEIGHT],height:[Mo.HEIGHT],left:[Mo.LEFT],"letter-spacing":[Mo.LETTER_SPACING],"line-height":[Mo.LINE_HEIGHT],"list-style":[Mo.LIST_STYLE],"list-style-image":[Mo.LIST_STYLE_IMAGE],"list-style-position":[Mo.LIST_STYLE_POSITION],"list-style-type":[Mo.LIST_STYLE_TYPE],margin:[Mo.MARGIN],"margin-bottom":[Mo.MARGIN_BOTTOM],"margin-left":[Mo.MARGIN_LEFT],"margin-right":[Mo.MARGIN_RIGHT],"margin-top":[Mo.MARGIN_TOP],"max-height":[Mo.MAX_HEIGHT],"max-width":[Mo.MAX_WIDTH],"min-height":[Mo.MIN_HEIGHT],"min-width":[Mo.MIN_WIDTH],opacity:[Mo.OPACITY],outline:[Mo.OUTLINE],"outline-color":[Mo.OUTLINE_COLOR],"outline-style":[Mo.OUTLINE_STYLE],"outline-width":[Mo.OUTLINE_WIDTH],overflow:[Mo.OVERFLOW],"overflow-wrap":[Mo.OVERFLOW_WRAP],"overflow-x":[Mo.OVERFLOW_X],"overflow-y":[Mo.OVERFLOW_Y],padding:[Mo.PADDING],"padding-bottom":[Mo.PADDING_BOTTOM],"padding-left":[Mo.PADDING_LEFT],"padding-right":[Mo.PADDING_RIGHT],"padding-top":[Mo.PADDING_TOP],"page-break-after":[Mo.PAGE_BREAK_AFTER],"page-break-before":[Mo.PAGE_BREAK_BEFORE],"page-break-inside":[Mo.PAGE_BREAK_INSIDE],"pause-after":[Mo.PAUSE_AFTER],perspective:[Mo.PERSPECTIVE],pitch:[Mo.PITCH],"pitch-range":[Mo.PITCH_RANGE],position:[Mo.POSITION],quotes:[Mo.QUOTES],resize:[Mo.RESIZE],richness:[Mo.RICHNESS],right:[Mo.RIGHT],speak:[Mo.SPEAK],"speak-header":[Mo.SPEAK_HEADER],"speak-numeral":[Mo.SPEAK_NUMERAL],"speak-punctuation":[Mo.SPEAK_PUNCTUATION],"speech-rate":[Mo.SPEECH_RATE],stress:[Mo.STRESS],"table-layout":[Mo.TABLE_LAYOUT],"text-align":[Mo.TEXT_ALIGN],"text-decoration":[Mo.TEXT_DECORATION],"text-indent":[Mo.TEXT_INDENT],"text-overflow":[Mo.TEXT_OVERFLOW],"text-shadow":[Mo.TEXT_SHADOW],"text-transform":[Mo.TEXT_TRANSFORM],"text-wrap":[Mo.TEXT_WRAP],top:[Mo.TOP],"unicode-bidi":[Mo.UNICODE_BIDI],"vertical-align":[Mo.VERTICAL_ALIGN],visibility:[Mo.VISIBILITY],volume:[Mo.VOLUME],"white-space":[Mo.WHITE_SPACE],width:[Mo.WIDTH],"word-break":[Mo.WORD_BREAK],"word-spacing":[Mo.WORD_SPACING],"word-wrap":[Mo.WORD_WRAP],"z-index":[Mo.Z_INDEX],zoom:[Mo.ZOOM]}},transformTags:{a:bo.a.simpleTransform("a",{rel:"nofollow"}),input:bo.a.simpleTransform("input",{disabled:"disabled"})},allowedSchemesByTag:{img:bo.a.defaults.allowedSchemes.concat(["attachment"])},allowedSchemesAppliedToAttributes:["href","cite"]}}sanitize(e,t){return bo()(e,Object.assign(Object.assign({},this._options),t||{}))}};class Lo{constructor(e){e=e||{},this._defaults={domain:"messages",locale:document.documentElement.getAttribute("lang")||"en",pluralFunc:function(e){return{nplurals:2,plural:1!=e?1:0}},contextDelimiter:String.fromCharCode(4),stringsPrefix:""},this._locale=(e.locale||this._defaults.locale).replace("_","-"),this._domain=e.domain||this._defaults.domain,this._contextDelimiter=e.contextDelimiter||this._defaults.contextDelimiter,this._stringsPrefix=e.stringsPrefix||this._defaults.stringsPrefix,this._pluralFuncs={},this._dictionary={},this._pluralForms={},e.messages&&(this._dictionary[this._domain]={},this._dictionary[this._domain][this._locale]=e.messages),e.pluralForms&&(this._pluralForms[this._locale]=e.pluralForms)}setContextDelimiter(e){this._contextDelimiter=e}getContextDelimiter(){return this._contextDelimiter}setLocale(e){this._locale=e.replace("_","-")}getLocale(){return this._locale}setDomain(e){this._domain=e}getDomain(){return this._domain}setStringsPrefix(e){this._stringsPrefix=e}getStringsPrefix(){return this._stringsPrefix}static strfmt(e,...t){return e.replace(/%%/g,"%% ").replace(/%(\d+)/g,(function(e,n){return t[n-1]})).replace(/%% /g,"%")}loadJSON(e,t){if(!e[""]||!e[""].language||!e[""].pluralForms)throw new Error('Wrong jsonData, it must have an empty key ("") with "language" and "pluralForms" information: '+e);let n=e[""],r=JSON.parse(JSON.stringify(e));delete r[""],this.setMessages(t||this._defaults.domain,n.language,r,n.pluralForms)}__(e,...t){return this.gettext(e,...t)}_n(e,t,n,...r){return this.ngettext(e,t,n,...r)}_p(e,t,...n){return this.pgettext(e,t,...n)}_np(e,t,n,r,...i){return this.npgettext(e,t,n,r,...i)}gettext(e,...t){return this.dcnpgettext("","",e,"",0,...t)}ngettext(e,t,n,...r){return this.dcnpgettext("","",e,t,n,...r)}pgettext(e,t,...n){return this.dcnpgettext("",e,t,"",0,...n)}npgettext(e,t,n,r,...i){return this.dcnpgettext("",e,t,n,r,...i)}dcnpgettext(e,t,n,r,i,...o){let a;e=e||this._domain;let s=t?t+this._contextDelimiter+n:n,l={pluralForm:!1},c=!1,u=this._locale,d=this.expandLocale(this._locale);for(let t in d)if(u=d[t],c=this._dictionary[e]&&this._dictionary[e][u]&&this._dictionary[e][u][s],c=r?c&&this._dictionary[e][u][s].length>1:c&&1==this._dictionary[e][u][s].length,c){l.locale=u;break}if(c?a=this._dictionary[e][u][s]:(a=[n],l.pluralFunc=this._defaults.pluralFunc),!r)return this.t(a,i,l,...o);l.pluralForm=!0;let h=c?a:[n,r];return this.t(h,i,l,...o)}expandLocale(e){let t=[e],n=e.lastIndexOf("-");for(;n>0;)e=e.slice(0,n),t.push(e),n=e.lastIndexOf("-");return t}getPluralFunc(e){if(!new RegExp("^\\s*nplurals\\s*=\\s*[0-9]+\\s*;\\s*plural\\s*=\\s*(?:\\s|[-\\?\\|&=!<>+*/%:;n0-9_()])+").test(e))throw new Error(Lo.strfmt('The plural form "%1" is not valid',e));return new Function("n","let plural, nplurals; "+e+" return { nplurals: nplurals, plural: (plural === true ? 1 : (plural ? plural : 0)) };")}removeContext(e){if(-1!==e.indexOf(this._contextDelimiter)){return e.split(this._contextDelimiter)[1]}return e}t(e,t,n,...r){if(!n.pluralForm)return this._stringsPrefix+Lo.strfmt(this.removeContext(e[0]),...r);let i;return n.pluralFunc?i=n.pluralFunc(t):(this._pluralFuncs[n.locale||""]||(this._pluralFuncs[n.locale||""]=this.getPluralFunc(this._pluralForms[n.locale||""])),i=this._pluralFuncs[n.locale||""](t)),(void 0===!i.plural||i.plural>i.nplurals||e.length<=i.plural)&&(i.plural=0),this._stringsPrefix+Lo.strfmt(this.removeContext(e[i.plural]),...[t].concat(r))}setMessages(e,t,n,r){r&&(this._pluralForms[t]=r),this._dictionary[e]||(this._dictionary[e]={}),this._dictionary[e][t]=n}}const xo=new class{constructor(e){this._languageBundle=e}load(e){return this._languageBundle}locale(){return"en"}}(new class{__(e,...t){return this.gettext(e,...t)}_n(e,t,n,...r){return this.ngettext(e,t,n,...r)}_p(e,t,...n){return this.pgettext(e,t,...n)}_np(e,t,n,r,...i){return this.npgettext(e,t,n,r,...i)}gettext(e,...t){return Lo.strfmt(e,...t)}ngettext(e,t,n,...r){return Lo.strfmt(1==n?e:t,...[n].concat(r))}pgettext(e,t,...n){return Lo.strfmt(t,...n)}npgettext(e,t,n,r,...i){return this.ngettext(t,n,r,...i)}dcnpgettext(e,t,n,r,i,...o){return this.ngettext(n,r,i,...o)}});var Eo=n(41);new s.Token("@jupyterlab/translation:ITranslatorConnector");Eo.DataConnector;new s.Token("@jupyterlab/translation:ITranslator");class Co{constructor(e={}){this.trusted=!!e.trusted,this._data=e.data||{},this._metadata=e.metadata||{},this._callback=e.callback||To.noOp}get data(){return this._data}get metadata(){return this._metadata}setData(e){this._data=e.data||this._data,this._metadata=e.metadata||this._metadata,this._callback(e)}}var To,So;!function(e){e.noOp=function(){}}(To||(To={}));class Ao{constructor(e={}){if(this._id=0,this._ranks={},this._types=null,this._factories={},this.translator=e.translator||xo,this.resolver=e.resolver||null,this.linkHandler=e.linkHandler||null,this.latexTypesetter=e.latexTypesetter||null,this.sanitizer=e.sanitizer||wo,e.initialFactories)for(const t of e.initialFactories)this.addFactory(t)}get mimeTypes(){return this._types||(this._types=So.sortedTypes(this._ranks))}preferredMimeType(e,t="ensure"){if("ensure"===t||"prefer"===t)for(const t of this.mimeTypes)if(t in e&&this._factories[t].safe)return t;if("ensure"!==t)for(const t of this.mimeTypes)if(t in e)return t}createRenderer(e){if(!(e in this._factories))throw new Error(`No factory for mime type: '${e}'`);return this._factories[e].createRenderer({mimeType:e,resolver:this.resolver,sanitizer:this.sanitizer,linkHandler:this.linkHandler,latexTypesetter:this.latexTypesetter,translator:this.translator})}createModel(e={}){return new Co(e)}clone(e={}){const t=new Ao({resolver:e.resolver||this.resolver||void 0,sanitizer:e.sanitizer||this.sanitizer||void 0,linkHandler:e.linkHandler||this.linkHandler||void 0,latexTypesetter:e.latexTypesetter||this.latexTypesetter||void 0,translator:this.translator});return t._factories=Object.assign({},this._factories),t._ranks=Object.assign({},this._ranks),t._id=this._id,t}getFactory(e){return this._factories[e]}addFactory(e,t){void 0===t&&void 0===(t=e.defaultRank)&&(t=100);for(const n of e.mimeTypes)this._factories[n]=e,this._ranks[n]={rank:t,id:this._id++};this._types=null}removeMimeType(e){delete this._factories[e],delete this._ranks[e],this._types=null}getRank(e){const t=this._ranks[e];return t&&t.rank}setRank(e,t){if(!this._ranks[e])return;const n=this._id++;this._ranks[e]={rank:t,id:n},this._types=null}}(Ao||(Ao={})).UrlResolver=class{constructor(e){if(e.path)this._path=e.path;else{if(!e.session)throw new Error("Either 'path' or 'session' must be given as a constructor option");this._session=e.session}this._contents=e.contents}get path(){var e;return null!==(e=this._path)&&void 0!==e?e:this._session.path}set path(e){this._path=e}async resolveUrl(e){if(this.isLocal(e)){const t=encodeURI(_o.PathExt.dirname(this.path));e=_o.PathExt.resolve(t,e)}return e}async getDownloadUrl(e){return this.isLocal(e)?this._contents.getDownloadUrl(decodeURI(e)):e}isLocal(e){const t=decodeURI(e);return _o.URLExt.isLocal(e)||!!this._contents.driveName(t)}},function(e){e.sortedTypes=function(e){return Object.keys(e).sort((t,n)=>{const r=e[t],i=e[n];return r.rank!==i.rank?r.rank-i.rank:r.id-i.id})},e.sessionConnection=function(e){return e.sessionChanged?e.session:e}}(So||(So={}));var ko,Do=n(85),Io=n.n(Do),Oo=n(8),No=n.n(Oo),zo=n(0),jo=n.n(zo),Po=n(272),Ro=(n(273),n(86),n(274),n(277),n(16)),Ho=n.n(Ro),Yo=n(13),Vo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Fo(e){return e.map(e=>e&&"object"==typeof e?Object.keys(e).map(t=>!!e[t]&&t):"string"==typeof e?e.split(/\s+/):[]).reduce((e,t)=>e.concat(t),[]).filter(e=>!!e)}function Bo(...e){return Fo(e).join(" ")}!function(e){const t={breadCrumb:{container:{$nest:{"&:first-child svg":{bottom:"1px",marginLeft:"0px",position:"relative"},"&:hover":{backgroundColor:"var(--jp-layout-color2)"},".jp-mod-dropTarget&":{backgroundColor:"var(--jp-brand-color2)",opacity:.7}}},element:{borderRadius:"var(--jp-border-radius)",cursor:"pointer",margin:"0px 2px",padding:"0px 2px",height:"16px",width:"16px",verticalAlign:"middle"}},commandPaletteHeader:{container:{height:"14px",margin:"0 14px 0 auto"},element:{height:"14px",width:"14px"},options:{elementPosition:"center"}},commandPaletteItem:{element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},launcherCard:{container:{height:"52px",width:"52px"},element:{height:"52px",width:"52px"},options:{elementPosition:"center"}},launcherSection:{container:{boxSizing:"border-box",marginRight:"12px",height:"32px",width:"32px"},element:{height:"32px",width:"32px"},options:{elementPosition:"center"}},listing:{container:{flex:"0 0 20px",marginRight:"4px",position:"relative"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},listingHeaderItem:{container:{display:"inline",height:"16px",width:"16px"},element:{height:"auto",margin:"-2px 0 0 0",width:"20px"},options:{elementPosition:"center"}},mainAreaTab:{container:{$nest:{".lm-DockPanel-tabBar &":{marginRight:"4px"},"#tab-manager &":{marginRight:"2px",position:"relative"}}},element:{$nest:{".lm-DockPanel-tabBar &":{height:"14px",width:"14px"},"#tab-manager &":{height:"16px",width:"16px"}}},options:{elementPosition:"center"}},menuItem:{container:{display:"inline-block",verticalAlign:"middle"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},runningItem:{container:{margin:"0px 4px 0px 4px"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},select:{container:{pointerEvents:"none"},element:{position:"absolute",height:"auto",width:"16px"}},settingsEditor:{container:{display:"inline-block",flex:"0 0 20px",margin:"0 3px 0 0",position:"relative",height:"20px",width:"20px"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},sideBar:{container:{$nest:{".jp-SideBar.jp-mod-left .lm-TabBar-tab &":{transform:"rotate(90deg)"},".jp-SideBar.jp-mod-left .lm-TabBar-tab.lm-mod-current &":{transform:"rotate(90deg)\n translate(\n calc(-0.5 * var(--jp-border-width)),\n calc(-0.5 * var(--jp-border-width))\n )"},".jp-SideBar.jp-mod-right .lm-TabBar-tab &":{transform:"rotate(-90deg)"},".jp-SideBar.jp-mod-right .lm-TabBar-tab.lm-mod-current &":{transform:"rotate(-90deg)\n translate(\n calc(0.5 * var(--jp-border-width)),\n calc(-0.5 * var(--jp-border-width))\n )"}}},element:{height:"auto",width:"20px"},options:{elementPosition:"center"}},splash:{container:{animation:"0.3s fade-in linear forwards",height:"100%",width:"100%",zIndex:1},element:{width:"100px"},options:{elementPosition:"center"}},statusBar:{element:{left:"0px",top:"0px",height:"18px",width:"20px",position:"relative"}},toolbarButton:{container:{display:"inline-block",margin:"auto",verticalAlign:"middle"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}}};function n(e){return{container:{alignItems:"center",display:"flex"},element:Object.assign({display:"block"},e)}}const r={center:n({margin:"0 auto",width:"100%"}),top:n({margin:"0 0 auto 0"}),right:n({margin:"0 0 0 auto"}),bottom:n({margin:"auto 0 0 0"}),left:n({margin:"0 auto 0 0"}),"top right":n({margin:"0 0 auto auto"}),"bottom right":n({margin:"auto 0 0 auto"}),"bottom left":n({margin:"auto auto 0 0"}),"top left":n({margin:"0 auto 0 auto"})};function i(e){return{element:{height:e,width:e}}}const o={small:i("14px"),normal:i("16px"),large:i("20px"),xlarge:i("24px")};function a(e){const t=Object.assign({},...e.map(e=>e.options));return t.elementPosition&&e.unshift(r[t.elementPosition]),t.elementSize&&e.unshift(o[t.elementSize]),function(e){return{container:Object.assign({},...e.map(e=>e.container)),element:Object.assign({},...e.map(e=>e.element))}}(e)}const s=new Map;e.styleClass=function(e){if(!e||0===Object.keys(e).length)return"";let{elementPosition:n,elementSize:r,stylesheet:i,kind:o,justify:l}=e,c=Vo(e,["elementPosition","elementSize","stylesheet","kind","justify"]);i||(i=o),n||(n=l);const u=Object.assign(Object.assign({},n&&{elementPosition:n}),r&&{elementSize:r}),d="string"==typeof i&&0===Object.keys(c).length,h=d?[i,n,r].join(","):"";if(d&&s.has(h))return s.get(h);const p=function(e){return e?(Array.isArray(e)||(e=[e]),e.map(e=>"string"==typeof e?t[e]:e)):[]}(i);p.push({element:c,options:u});const f=function(e){var t;return Object(Yo.style)(Object.assign(Object.assign({},e.container),{$nest:Object.assign(Object.assign({},null===(t=e.container)||void 0===t?void 0:t.$nest),{svg:e.element})}))}(a(p));return d&&s.set(h,f),f}}(ko||(ko={}));var Uo,Wo="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDE4IDE4Ij4KICAgIDxnIGNsYXNzPSJqcC1pY29uMyIgZmlsbD0iIzYxNjE2MSI+CiAgICAgICAgPHBhdGggZD0iTTkgMTMuNWMtMi40OSAwLTQuNS0yLjAxLTQuNS00LjVTNi41MSA0LjUgOSA0LjVjMS4yNCAwIDIuMzYuNTIgMy4xNyAxLjMzTDEwIDhoNVYzbC0xLjc2IDEuNzZDMTIuMTUgMy42OCAxMC42NiAzIDkgMyA1LjY5IDMgMy4wMSA1LjY5IDMuMDEgOVM1LjY5IDE1IDkgMTVjMi45NyAwIDUuNDMtMi4xNiA1LjktNWgtMS41MmMtLjQ2IDItMi4yNCAzLjUtNC4zOCAzLjV6Ii8+CiAgICA8L2c+Cjwvc3ZnPgo=",Go=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class qo{constructor({name:e,svgstr:t,render:n,unrender:r,_loading:i=!1}){if(this._props={},this._svgReplaced=new ne.Signal(this),this._svgElement=void 0,this._svgInnerHTML=void 0,this._svgReactAttrs=void 0,!e||!t)return console.error(`When defining a new LabIcon, name and svgstr must both be non-empty strings. name: ${e}, svgstr: ${t}`),Ko;if(this._loading=i,qo._instances.has(e)){const n=qo._instances.get(e);return this._loading?(n.svgstr=t,this._loading=!1,n):(console.warn(`Redefining previously loaded icon svgstr. name: ${e}, svgstrOld: ${n.svgstr}, svgstr: ${t}`),n.svgstr=t,n)}this.name=e,this.react=this._initReact(e),this.svgstr=t,this._initRender({render:n,unrender:r}),qo._instances.set(this.name,this)}static remove(e){for(;e.firstChild;)e.firstChild.remove();return e.className="",e}static resolve({icon:e}){if(e instanceof qo)return e;if("string"==typeof e){const t=qo._instances.get(e);return t||(qo._debug&&console.warn("Lookup failed for icon, creating loading icon. icon: "+e),new qo({name:e,svgstr:Wo,_loading:!0}))}return new qo(e)}static resolveElement(e){var{icon:t,iconClass:n,fallback:r}=e,i=Go(e,["icon","iconClass","fallback"]);return Uo.isResolvable(t)?qo.resolve({icon:t}).element(i):!n&&r?r.element(i):(i.className=Bo(n,i.className),Uo.blankElement(i))}static resolveReact(e){var{icon:t,iconClass:n,fallback:r}=e,i=Go(e,["icon","iconClass","fallback"]);if(!Uo.isResolvable(t))return!n&&r?jo.a.createElement(r.react,Object.assign({},i)):(i.className=Bo(n,i.className),jo.a.createElement(Uo.blankReact,Object.assign({},i)));const o=qo.resolve({icon:t});return jo.a.createElement(o.react,Object.assign({},i))}static resolveSvg({name:e,svgstr:t}){const n=(new DOMParser).parseFromString(Uo.svgstrShim(t),"image/svg+xml"),r=n.querySelector("parsererror");if(r){const n=`SVG HTML was malformed for LabIcon instance.\nname: ${e}, svgstr: ${t}`;return qo._debug?(console.error(n),r):(console.warn(n),null)}return n.documentElement}static toggleDebug(e){qo._debug=null!=e?e:!qo._debug}bindprops(e){const t=Object.create(this);return t._props=e,t.react=t._initReact(t.name+"_bind"),t}element(e={}){var t;let n=Object.assign(Object.assign({},this._props),e),{className:r,container:i,label:o,title:a,tag:s="div"}=n,l=Go(n,["className","container","label","title","tag"]);const c=null==i?void 0:i.firstChild;if((null===(t=null==c?void 0:c.dataset)||void 0===t?void 0:t.iconId)===this._uuid)return c;if(!this.svgElement)return document.createElement("div");let u=!0;if(i)for(;i.firstChild;)i.firstChild.remove();else i=document.createElement(s),u=!1;null!=o&&(i.textContent=o),Uo.initContainer({container:i,className:r,styleProps:l,title:a});const d=this.svgElement.cloneNode(!0);return i.appendChild(d),u?d:i}render(e,t){var n;let r=null===(n=null==t?void 0:t.children)||void 0===n?void 0:n[0];"string"!=typeof r&&(r=void 0),this.element(Object.assign({container:e,label:r},null==t?void 0:t.props))}get svgElement(){return void 0===this._svgElement&&(this._svgElement=this._initSvg({uuid:this._uuid})),this._svgElement}get svgInnerHTML(){return void 0===this._svgInnerHTML&&(null===this.svgElement?this._svgInnerHTML=null:this._svgInnerHTML=this.svgElement.innerHTML),this._svgInnerHTML}get svgReactAttrs(){return void 0===this._svgReactAttrs&&(null===this.svgElement?this._svgReactAttrs=null:this._svgReactAttrs=function(e,{ignore:t=[]}={}){return e.getAttributeNames().reduce((n,r)=>("style"===r||t.includes(r)||(r.startsWith("data")?n[r]=e.getAttribute(r):n[_o.Text.camelCase(r)]=e.getAttribute(r)),n),{})}(this.svgElement,{ignore:["data-icon-id"]})),this._svgReactAttrs}get svgstr(){return this._svgstr}set svgstr(e){this._svgstr=e;const t=s.UUID.uuid4(),n=this._uuid;this._uuid=t,this._svgElement=void 0,this._svgInnerHTML=void 0,this._svgReactAttrs=void 0,document.querySelectorAll(`[data-icon-id="${n}"]`).forEach(e=>{this.svgElement&&e.replaceWith(this.svgElement.cloneNode(!0))}),this._svgReplaced.emit()}_initReact(e){const t=jo.a.forwardRef((e={},t)=>{const n=Object.assign(Object.assign({},this._props),e),{className:r,container:i,label:o,title:a,tag:s="div"}=n,l=Go(n,["className","container","label","title","tag"]),[,c]=jo.a.useState(this._uuid);jo.a.useEffect(()=>{const e=()=>{c(this._uuid)};return this._svgReplaced.connect(e),()=>{this._svgReplaced.disconnect(e)}});const u=s;if(!this.svgInnerHTML||!this.svgReactAttrs)return jo.a.createElement(jo.a.Fragment,null);const d=jo.a.createElement("svg",Object.assign({},this.svgReactAttrs,{dangerouslySetInnerHTML:{__html:this.svgInnerHTML},ref:t}));return i?(Uo.initContainer({container:i,className:r,styleProps:l,title:a}),jo.a.createElement(jo.a.Fragment,null,d,o)):jo.a.createElement(u,{className:Bo(r,ko.styleClass(l))},d,o)});return t.displayName="LabIcon_"+e,t}_initRender({render:e,unrender:t}){e?(this.render=e,t&&(this.unrender=t)):t&&console.warn("In _initRender, ignoring unrender arg since render is undefined")}_initSvg({title:e,uuid:t}={}){const n=qo.resolveSvg(this);return n?("parsererror"!==n.tagName&&(n.dataset.icon=this.name,t&&(n.dataset.iconId=t),e&&Uo.setTitleSvg(n,e)),n):n}}qo._debug=!1,qo._instances=new Map,function(e){function t({container:e,className:t,styleProps:n,title:r}){null!=r&&(e.title=r);const i=ko.styleClass(n);if(null!=t){const n=Bo(t,i);return e.className=n,n}return i?(e.classList.add(i),i):""}e.blankElement=function(t){var{className:n="",container:r,label:i,title:o,tag:a="div"}=t,s=Go(t,["className","container","label","title","tag"]);if((null==r?void 0:r.className)===n)return r;if(r)for(;r.firstChild;)r.firstChild.remove();else r=document.createElement(a);return null!=i&&(r.textContent=i),e.initContainer({container:r,className:n,styleProps:s,title:o}),r},e.blankReact=jo.a.forwardRef((e,n)=>{var{className:r="",container:i,label:o,title:a,tag:s="div"}=e,l=Go(e,["className","container","label","title","tag"]);const c=s;return i?(t({container:i,className:r,styleProps:l,title:a}),jo.a.createElement(jo.a.Fragment,null)):jo.a.createElement(c,{className:Bo(r,ko.styleClass(l))},n&&$o.react({ref:n}),o)}),e.blankReact.displayName="BlankReact",e.initContainer=t,e.isResolvable=function(e){return!(!e||!("string"==typeof e||e.name&&e.svgstr))},e.setTitleSvg=function(e,t){const n=e.getElementsByTagName("title");if(n.length)n[0].textContent=t;else{const n=document.createElement("title");n.textContent=t,e.appendChild(n)}},e.svgstrShim=function(e,t=!0){const[,n,r]=decodeURIComponent(e).replace(/>\s*\n\s*</g,"><").replace(/\s*\n\s*/g," ").match(t?/^(?:data:.*?(;base64)?,)?(.*)/:/(?:(base64).*)?(<svg.*)/);return n?atob(r):r};class n{constructor(e,t){this._icon=e,this._rendererOptions=t}render(e,t){}}e.Renderer=n;e.ElementRenderer=class extends n{render(e,t){var n,r;let i=null===(n=null==t?void 0:t.children)||void 0===n?void 0:n[0];"string"!=typeof i&&(i=void 0),this._icon.element(Object.assign(Object.assign({container:e,label:i},null===(r=this._rendererOptions)||void 0===r?void 0:r.props),null==t?void 0:t.props))}};e.ReactRenderer=class extends n{render(e,t){var n,r;let i=null===(n=null==t?void 0:t.children)||void 0===n?void 0:n[0];"string"!=typeof i&&(i=void 0),Ho.a.render(jo.a.createElement(this._icon.react,Object.assign({container:e,label:i},Object.assign(Object.assign({},null===(r=this._rendererOptions)||void 0===r?void 0:r.props),null==t?void 0:t.props))),e)}unrender(e){Ho.a.unmountComponentAtNode(e)}}}(Uo||(Uo={}));const Ko=new qo({name:"ui-components:bad",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxwYXRoCiAgICAgICAgY2xhc3M9ImpwLWljb24wIgogICAgICAgIGZpbGw9IiMwMDAiCiAgICAgICAgZD0iTTI0IDIwLjE4OGwtOC4zMTUtOC4yMDkgOC4yLTguMjgyLTMuNjk3LTMuNjk3LTguMjEyIDguMzE4LTguMzEtOC4yMDMtMy42NjYgMy42NjYgOC4zMjEgOC4yNC04LjIwNiA4LjMxMyAzLjY2NiAzLjY2NiA4LjIzNy04LjMxOCA4LjI4NSA4LjIwM3oiCiAgICAvPgo8L3N2Zz4K"}),$o=new qo({name:"ui-components:blank",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxwYXRoCiAgICAgICAgZmlsbD0iIzAwMCIKICAgICAgICBmaWxsLW9wYWNpdHk9IjAuMCIKICAgICAgICBkPSJNMjQgMjAuMTg4bC04LjMxNS04LjIwOSA4LjItOC4yODItMy42OTctMy42OTctOC4yMTIgOC4zMTgtOC4zMS04LjIwMy0zLjY2NiAzLjY2NiA4LjMyMSA4LjI0LTguMjA2IDguMzEzIDMuNjY2IDMuNjY2IDguMjM3LTguMzE4IDguMjg1IDguMjAzeiIKICAgIC8+Cjwvc3ZnPgo="}),Qo=e=>zo.createElement(Po.Button,Object.assign({},e,{className:Bo(e.className,e.minimal?"minimal":"","jp-Button")}));new qo({name:"ui-components:add",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICA8ZyBjbGFzcz0ianAtaWNvbjMiIGZpbGw9IiM2MTYxNjEiPgogICAgPHBhdGggZD0iTTE5IDEzaC02djZoLTJ2LTZINXYtMmg2VjVoMnY2aDZ2MnoiLz4KICA8L2c+Cjwvc3ZnPgo="}),new qo({name:"ui-components:bug",svgstr:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBjbGFzcz0ianAtaWNvbjMiIGZpbGw9IiM2MTYxNjEiPgogICAgPHBhdGggZD0iTTIwIDhoLTIuODFjLS40NS0uNzgtMS4wNy0xLjQ1LTEuODItMS45NkwxNyA0LjQxIDE1LjU5IDNsLTIuMTcgMi4xN0MxMi45NiA1LjA2IDEyLjQ5IDUgMTIgNWMtLjQ5IDAtLjk2LjA2LTEuNDEuMTdMOC40MSAzIDcgNC40MWwxLjYyIDEuNjNDNy44OCA2LjU1IDcuMjYgNy4yMiA2LjgxIDhINHYyaDIuMDljLS4wNS4zMy0uMDkuNjYtLjA5IDF2MUg0djJoMnYxYzAgLjM0LjA0LjY3LjA5IDFINHYyaDIuODFjMS4wNCAxLjc5IDIuOTcgMyA1LjE5IDNzNC4xNS0xLjIxIDUuMTktM0gyMHYtMmgtMi4wOWMuMDUtLjMzLjA5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I0OTYgMS43ODkyMkM3Ljc5MTU2IDEuNzA0NTggNy45MTU0OCAxLjY3OTIyIDguMDA4NzkgMS43NDA4Mkw5LjU2ODIxIDIuNjQxODJDOS42NzAxNyAyLjY5ODQyIDkuNzEyODUgMi44MTIzNCA5LjY4NzIzIDIuOTA3OTdMOS4yMTcxOCA0LjAzMzgzTDkuNDYzMTYgNC4zOTk4OEw5LjY1NzE4IDQuNzk1OTNaIi8+CiAgPC9nPgo8L3N2Zz4K"});const Zo=new qo({name:"ui-components:caret-down-empty",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDE4IDE4Ij4KICA8ZyBjbGFzcz0ianAtaWNvbjMiIGZpbGw9IiM2MTYxNjEiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KICAgIDxwYXRoIGQ9Ik01LjIsNS45TDksOS43bDMuOC0zLjhsMS4yLDEuMmwtNC45LDVsLTQuOS01TDUuMiw1Ljl6Ii8+CiAgPC9nPgo8L3N2Zz4K"}),Jo=(new qo({name:"ui-components:caret-down-empty-thin",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDIwIDIwIj4KCTxnIGNsYXNzPSJqcC1pY29uMyIgZmlsbD0iIzYxNjE2MSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgoJCTxwb2x5Z29uIGNsYXNzPSJzdDEiIHBvaW50cz0iOS45LDEzLjYgMy42LDcuNCA0LjQsNi42IDkuOSwxMi4yIDE1LjQsNi43IDE2LjEsNy40ICIvPgoJPC9nPgo8L3N2Zz4K"}),new qo({name:"ui-components:caret-down",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDE4IDE4Ij4KICA8ZyBjbGFzcz0ianAtaWNvbjMiIGZpbGw9IiM2MTYxNjEiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KICAgIDxwYXRoIGQ9Ik01LjIsNy41TDksMTEuMmwzLjgtMy44SDUuMnoiLz4KICA8L2c+Cjwvc3ZnPgo="}),new qo({name:"ui-components:caret-left",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDE4IDE4Ij4KCTxnIGNsYXNzPSJqcC1pY29uMyIgZmlsbD0iIzYxNjE2MSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgoJCTxwYXRoIGQ9Ik0xMC44LDEyLjhMNy4xLDlsMy44LTMuOGwwLDcuNkgxMC44eiIvPgogIDwvZz4KPC9zdmc+Cg=="}),new qo({name:"ui-components:caret-right",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDE4IDE4Ij4KICA8ZyBjbGFzcz0ianAtaWNvbjMiIGZpbGw9IiM2MTYxNjEiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KICAgIDxwYXRoIGQ9Ik03LjIsNS4yTDEwLjksOWwtMy44LDMuOFY1LjJINy4yeiIvPgogIDwvZz4KPC9zdmc+Cg=="}),new qo({name:"ui-components:caret-up-empty-thin",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDIwIDIwIj4KCTxnIGNsYXNzPSJqcC1pY29uMyIgZmlsbD0iIzYxNjE2MSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgoJCTxwb2x5Z29uIGNsYXNzPSJzdDEiIHBvaW50cz0iMTUuNCwxMy4zIDkuOSw3LjcgNC40LDEzLjIgMy42LDEyLjUgOS45LDYuMyAxNi4xLDEyLjYgIi8+Cgk8L2c+Cjwvc3ZnPgo="}),new qo({name:"ui-components:caret-up",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDE4IDE4Ij4KCTxnIGNsYXNzPSJqcC1pY29uMyIgZmlsbD0iIzYxNjE2MSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgoJCTxwYXRoIGQ9Ik01LjIsMTAuNUw5LDYuOGwzLjgsMy44SDUuMnoiLz4KICA8L2c+Cjwvc3ZnPgo="}),new qo({name:"ui-components:case-sensitive",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDIwIDIwIj4KICA8ZyBjbGFzcz0ianAtaWNvbjIiIGZpbGw9IiM0MTQxNDEiPgogICAgPHJlY3QgeD0iMiIgeT0iMiIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2Ii8+CiAgPC9nPgogIDxnIGNsYXNzPSJqcC1pY29uLWFjY2VudDIiIGZpbGw9IiNGRkYiPgogICAgPHBhdGggZD0iTTcuNiw4aDAuOWwzLjUsOGgtMS4xTDEwLDE0SDZsLTAuOSwySDRMNy42LDh6IE04LDkuMUw2LjQsMTNoMy4yTDgsOS4xeiIvPgogICAgPHBhdGggZD0iTTE2LjYsOS44Yy0wLjIsMC4xLTAuNCwwLjEtMC43LDAuMWMtMC4yLDAtMC40LTAuMS0wLjYtMC4yYy0wLjEt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IxNiIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICA8ZyBjbGFzcz0ianAtaWNvbjMiIGZpbGw9IiM2MTYxNjEiPgogICAgPHBhdGggZD0iTTkgMTYuMTdMNC44MyAxMmwtMS40MiAxLjQxTDkgMTkgMjEgN2wtMS40MS0xLjQxeiIvPgogIDwvZz4KPC9zdmc+Cg=="}),new qo({name:"ui-components:circle-empty",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICA8ZyBjbGFzcz0ianAtaWNvbjMiIGZpbGw9IiM2MTYxNjEiPgogICAgPHBhdGggZD0iTTEyIDJDNi40NyAyIDIgNi40NyAyIDEyczQuNDcgMTAgMTAgMTAgMTAtNC40NyAxMC0xMFMxNy41MyAyIDEyIDJ6bTAgMThjLTQuNDEgMC04LTMuNTktOC04czMuNTktOCA4LTggOCAzLjU5IDggOC0zLjU5IDgtOCA4eiIvPgogIDwvZz4KPC9zdmc+Cg=="}),new qo({name:"ui-components:circle",svgstr:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTggMTgiIHdpZHRoPSIxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBjbGFzcz0ianAtaWNvbjMiIGZpbGw9IiM2MTYxNjEiPgogICAgPGNpcmNsZSBjeD0iOSIgY3k9IjkiIHI9IjgiLz4KICA8L2c+Cjwvc3ZnPgo="}),new qo({name:"ui-components:clear",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICA8bWFzayBpZD0iZG9udXRIb2xlIj4KICAgIDxyZWN0IHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0id2hpdGUiIC8+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name:"ui-components:code",svgstr:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHZpZXdCb3g9IjAgMCAyOCAyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCTxnIGNsYXNzPSJqcC1pY29uMyIgZmlsbD0iIzYxNjE2MSI+CgkJPHBhdGggZD0iTTExLjQgMTguNkw2LjggMTRMMTEuNCA5LjRMMTAgOEw0IDE0TDEwIDIwTDExLjQgMTguNlpNMTYuNiAxOC42TDIxLjIgMTRMMTYuNiA5LjRMMTggOEwyNCAxNEwxOCAyMEwxNi42IDE4LjZWMTguNloiLz4KCTwvZz4KPC9zdmc+Cg=="}),new qo({name:"ui-components:console",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDIwMCAyMDAiPgogIDxnIGNsYXNzPSJqcC1pY29uLWJyYW5kMSBqcC1pY29uLXNlbGVjdGFibGUiIGZpbGw9IiMwMjg4RDEiPgogICAgPHBhdGggZD0iTTIwIDE5LjhoMTYwdjE1OS45SDIweiIvPgogIDwvZz4KICA8ZyBjbGFzcz0ianAtaWNvbi1zZWxlY3RhYmxlLWludmVyc2UiIGZpbGw9IiNmZmYiPgogICAgPHBhdGggZD0iTTEwNSAxMjcuM2g0MHYxMi44aC00MHpNNTEuMSA3N0w3NCA5OS45bC0yMy4zIDIzLjMgMTAuNSAxMC41IDIzLjMtMjMuM0w5NSA5OS45IDg0LjUgODkuNCA2MS42IDY2LjV6Ii8+CiAgPC9nPgo8L3N2Zz4K"}),new qo({name:"ui-components:copy",svgstr:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTggMTgiIHdpZHRoPSIxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBjbGFzcz0ianAtaWNvbjMi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3LTdWM3oiLz4KICA8L2c+Cjwvc3ZnPgo="}),new qo({name:"ui-components:download",svgstr:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBjbGFzcz0ianAtaWNvbjMiIGZpbGw9IiM2MTYxNjEiPgogICAgPHBhdGggZD0iTTE5IDloLTRWM0g5djZINWw3IDcgNy03ek01IDE4djJoMTR2LTJINXoiLz4KICA8L2c+Cjwvc3ZnPgo="}),new qo({name:"ui-components:edit",svgstr:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBjbGFzcz0ianAtaWNvbjMiIGZpbGw9IiM2MTYxNjEiPgogICAgPHBhdGggZD0iTTMgMTcuMjVWMjFoMy43NUwxNy44MSA5Ljk0bC0zLjc1LTMuNzVMMyAxNy4yNXpNMjAuNzEgNy4wNGMuMzktLjM5LjM5LTEuMDIgMC0xLjQxbC0yLjM0LTIuMzRjLS4zOS0uMzktMS4wMi0uMzktMS40MSAwbC0xLjgzIDEuODMgMy43NSAzLjc1IDEuODMtMS44M3oiLz4KICA8L2c+Cjwvc3ZnPgo="}),new qo({name:"ui-components:ellipses",svgstr:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBjbGFzcz0ianAtaWNvbjMiIGZpbGw9IiM2MTYxNjEiPgogICAgPGNpcmNsZSBjeD0iNSIgY3k9IjEyIiByPSIyIi8+CiAgICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIyIi8+CiAgICA8Y2lyY2xlIGN4PSIxOSIgY3k9IjEyIiByPSIyIi8+CiAgPC9nPgo8L3N2Zz4K"}),new qo({name:"ui-components:extension",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICA8ZyBjbGFzcz0ianAtaWNvbjMiIGZpbGw9IiM2MTYxNjEiPgogICAgPHBhdGggZD0iTTIwLjUgMTFIMTlWN2MwLTEuMS0uOS0yLTItMmgtNFYzLjVDMTMgMi4xMiAxMS44OCAxIDEwLjUgMVM4IDIuMTIgOCAzLjVWNUg0Yy0xLjEgMC0xLjk5LjktMS45OSAydjMuOEgzLjVjMS40OSAwIDIuNyAxLjIxIDIuNyAyLjdzLTEuMjEgMi43LTIuNyAyLjdIMlYyMGMwIDEuMS45IDIgMiAyaDMuOHYtMS41YzAtMS40OSAxLjIxLTIuNyAyLjctMi43IDEuNDkgMCAyLjcgMS4yMSAyLjcgMi43VjIySDE3YzEuMSAwIDItLjkgMi0ydi00aDEuNWMxLjM4IDAgMi41LTEuMTIgMi41LTIuNVMyMS44OCAxMSAyMC41IDExeiIvPgogIDwvZz4KPC9zdmc+Cg=="}),new qo({name:"ui-components:fast-forward",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxnIGNsYXNzPSJqcC1pY29uMyIgZmlsbD0iIzYxNjE2MSI+CiAgICAgICAgPHBhdGggZD0iTTQgMThsOC41LTZMNCA2djEyem05LTEydjEybDguNS02TDEzIDZ6Ii8+CiAgICA8L2c+Cjwvc3ZnPgo="}),new qo({name:"ui-components:file",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDIyIDIyIj4KICA8cGF0aCBjbGFzcz0ianAtaWNvbjMganAtaWNvbi1zZWxlY3RhYmxlIiBmaWxsPSIjNjE2MTYxIiBkPSJNMTkuMyA4LjJsLTUuNS01LjVjLS4zLS4zLS43LS41LTEuMi0uNUgzLjljLS44LjEtMS42LjktMS42IDEuOHYxNC4xYzAgLjkuNyAxLjYgMS42IDEuNmgxNC4yYy45IDAgMS42LS43IDEuNi0xLjZWOS40Yy4xLS41LS4xLS45LS40LTEuMnptLTUuOC0zLjNsMy40IDMuNmgtMy40VjQuOXptMy45IDEyLjdINC43Yy0uMSAwLS4yIDAtLjItLjJWNC43YzAtLjIuMS0uMy4yLS4zaDcuMnY0LjRzMCAuOC4zIDEuMWMuMy4zIDEuMS4zIDEuMS4zaDQuM3Y3LjJzLS4xLjItLjIuMnoiLz4KPC9zdmc+Cg=="}),new qo({name:"ui-components:file-upload",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICA8ZyBjbGFzcz0ianAtaWNvbjMiIGZpbGw9IiM2MTYxNjEiPgogICAgPHBhdGggZD0iTTkgMTZoNnYtNmg0bC03LTctNyA3aDR6bS00IDJoMTR2Mkg1eiIvPgogIDwvZz4KPC9zdmc+Cg=="}),new qo({name:"ui-components:filter-list",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICA8ZyBjbGFzcz0ianAtaWNvbjMiIGZpbGw9IiM2MTYxNjEiPgogICAgPHBhdGggZD0iTTEwIDE4aDR2LTJoLTR2MnpNMyA2djJoMThWNkgzem0zIDdoMTJ2LTJINnYyeiIvPgogIDwvZz4KPC9zdmc+Cg=="}),new qo({name:"ui-components:folder",svgstr:"data:image/svg+xml;base64,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3N2Zz4K"})),ea=(new qo({name:"ui-components:keyboard",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICA8cGF0aCBjbGFzcz0ianAtaWNvbjMganAtaWNvbi1zZWxlY3RhYmxlIiBmaWxsPSIjNjE2MTYxIiBkPSJNMjAgNUg0Yy0xLjEgMC0xLjk5LjktMS45OSAyTDIgMTdjMCAxLjEuOSAyIDIgMmgxNmMxLjEgMCAyLS45IDItMlY3YzAtMS4xLS45LTItMi0yem0tOSAzaDJ2MmgtMlY4em0wIDNoMnYyaC0ydi0yek04IDhoMnYySDhWOHptMCAzaDJ2Mkg4di0yem0tMSAySDV2LTJoMnYyem0wLTNINVY4aDJ2MnptOSA3SDh2LTJoOHYyem0wLTRoLTJ2LTJoMnYyem0wLTNoLTJWOGgydjJ6bTMgM2gtMnYtMmgydjJ6bTAtM2gtMlY4aDJ2MnoiLz4KPC9zdmc+Cg=="}),new qo({name:"ui-components:launcher",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICA8cGF0aCBjbGFzcz0ianAtaWNvbjMganAtaWNvbi1zZWxlY3RhYmxlIiBmaWxsPSIjNjE2MTYxIiBkPSJNMTkgMTlINVY1aDdWM0g1YTIgMiAwIDAwLTIgMnYxNGEyIDIgMCAwMDIgMmgxNGMxLjEgMCAyLS45IDItMnYtN2gtMnY3ek0xNCAzdjJoMy41OWwtOS44MyA5LjgzIDEuNDEgMS40MUwxOSA2LjQxVjEwaDJWM2gtN3oiLz4KPC9zdmc+Cg=="}),new qo({name:"ui-components:line-form",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxwYXRoIGZpbGw9IndoaXRlIiBkPSJNNS44OCA0LjEyTDEzLjc2IDEybC03Ljg4IDcuODhMOCAyMmwxMC0xMEw4IDJ6Ii8+Cjwvc3ZnPgo="})),ta=(new qo({name:"ui-components:link",svgstr:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBjbGFzcz0ianAtaWNvbjMiIGZpbGw9IiM2MTYxNjEiPgogICAgPHBhdGggZD0iTTMuOSAxMmMwLTEuNzEgMS4zOS0zLjEgMy4xLTMuMWg0VjdIN2MtMi43NiAwLTUgMi4yNC01IDVzMi4yNCA1IDUgNWg0di0xLjlIN2MtMS43MSAwLTMuMS0xLjM5LTMuMS0zLjF6TTggMTNoOHYtMkg4djJ6bTktNmgtNHYxLjloNGMxLjcxIDAgMy4xIDEuMzkgMy4xIDMuMXMtMS4zOSAzLjEtMy4xIDMuMWgtNFYxN2g0YzIuNzYgMCA1LTIuMjQgNS01cy0yLjI0LTUtNS01eiIvPgogIDwvZz4KPC9zdmc+Cg=="}),new qo({name:"ui-components:list",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxwYXRoIGNsYXNzPSJqcC1pY29uMiBqcC1pY29uLXNlbGVjdGFibGUiIGZpbGw9IiM2MTYxNjEiIGQ9Ik0xOSA1djE0SDVWNWgxNG0xLjEtMkgzLjljLS41IDAtLjkuNC0uOS45djE2LjJjMCAuNC40LjkuOS45aDE2LjJjLjQgMCAuOS0uNS45LS45VjMuOWMwLS41LS41LS45LS45LS45ek0xMSA3aDZ2MmgtNlY3em0wIDRoNnYyaC02di0yem0wIDRoNnYyaC02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ctMi45LTEtNC4zLS4xIDEuNi0uMSAzLjItLjIgNC42TDcgMTIuNEg0LjhsLjctMTFoMy4zTDEwIDVjLjQgMS4yLjcgMi43IDEgMy45LjMtMS4yLjctMi42IDEtMy45bDEuMi0zLjdoMy4zbC42IDExaC0yLjRsLS4zLTQuMnoiLz4KPC9zdmc+Cg=="}),new qo({name:"ui-components:new-folder",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICA8ZyBjbGFzcz0ianAtaWNvbjMiIGZpbGw9IiM2MTYxNjEiPgogICAgPHBhdGggZD0iTTIwIDZoLThsLTItMkg0Yy0xLjExIDAtMS45OS44OS0xLjk5IDJMMiAxOGMwIDEuMTEuODkgMiAyIDJoMTZjMS4xMSAwIDItLjg5IDItMlY4YzAtMS4xMS0uODktMi0yLTJ6bS0xIDhoLTN2M2gtMnYtM2gtM3YtMmgzVjloMnYzaDN2MnoiLz4KICA8L2c+Cjwvc3ZnPgo="}),new qo({name:"ui-components:not-trusted",svgstr:"data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDI1IDI1Ij4KICAgIDxwYXRoIGNsYXNzPSJqcC1pY29uMiIgc3Ryb2tlPSIjMzMzMzMzIiBzdHJva2Utd2lkdGg9IjIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDMgMykiIGQ9Ik0xLjg2MDk0IDExLjQ0MDlDMC44MjY0NDggOC43NzAyNyAwLjg2Mzc3OSA2LjA1NzY0IDEuMjQ5MDcgNC4xOTkzMkMyLjQ4MjA2IDMuOTMzNDcgNC4wODA2OCAzLjQwMzQ3IDUuNjAxMDIgMi44NDQ5QzcuMjM1NDkgMi4yNDQ0IDguODU2NjYgMS41ODE1IDkuOTg3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LjYgNC4zdi0xMWgxMXoiLz4KICA8L2c+Cjwvc3ZnPgo="}),new qo({name:"ui-components:numbering",svgstr:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHZpZXdCb3g9IjAgMCAyOCAyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCTxnIGNsYXNzPSJqcC1pY29uMyIgZmlsbD0iIzYxNjE2MSI+CgkJPHBhdGggZD0iTTQgMTlINlYxOS41SDVWMjAuNUg2VjIxSDRWMjJIN1YxOEg0VjE5Wk01IDEwSDZWNkg0VjdINVYxMFpNNCAxM0g1LjhMNCAxNS4xVjE2SDdWMTVINS4yTDcgMTIuOVYxMkg0VjEzWk05IDdWOUgyM1Y3SDlaTTkgMjFIMjNWMTlIOVYyMVpNOSAxNUgyM1YxM0g5VjE1WiIvPgoJPC9nPgo8L3N2Zz4K"}),new qo({name:"ui-components:offline-bolt",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjE2Ij4KICA8ZyBjbGFzcz0ianAtaWNvbjMiIGZpbGw9IiM2MTYxNjEiPgogICAgPHBhdGggZD0iTTEyIDIuMDJjLTUuNTEgMC05Ljk4IDQuNDctOS45OCA5Ljk4czQuNDcgOS45OCA5Ljk4IDkuOTggOS45OC00LjQ3IDkuOTgtOS45OFMxNy41MSAyLjAyIDEyIDIuMDJ6TTExLjQ4IDIwdi02LjI2SDhMMTMgNHY2LjI2aDMuMzVMMTEuNDggMjB6Ii8+CiAgPC9nPgo8L3N2Zz4K"}),new qo({name:"ui-components:palette",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICA8ZyBjbGFzcz0ianAt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MDQ0MSwtMC4yOTMwNTU1IC0wLjkzODg2MjksLTAuMjkzMDU1NSB6IgovPgo8L3N2Zz4K"}),new qo({name:"ui-components:python",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDIyIDIyIj4KICA8ZyBjbGFzcz0ianAtaWNvbi1icmFuZDAganAtaWNvbi1zZWxlY3RhYmxlIiBmaWxsPSIjMEQ0N0ExIj4KICAgIDxwYXRoIGQ9Ik0xMS4xIDYuOVY1LjhINi45YzAtLjUgMC0xLjMuMi0xLjYuNC0uNy44LTEuMSAxLjctMS40IDEuNy0uMyAyLjUtLjMgMy45LS4xIDEgLjEgMS45LjkgMS45IDEuOXY0LjJjMCAuNS0uOSAxLjYtMiAxLjZIOC44Yy0xLjUgMC0yLjQgMS40LTIuNCAyLjh2Mi4ySDQuN0MzLjUgMTUuMSAzIDE0IDMgMTMuMVY5Yy0uMS0xIC42LTIgMS44LTIgMS41LS4xIDYuMy0uMSA2LjMtLjF6Ii8+CiAgICA8cGF0aCBkPSJNMTAuOSAxNS4xdjEuMWg0LjJjMCAuNSAwIDEuMy0uMiAxLjYtLjQuNy0uOCAxLjEtMS43IDEuNC0xLjcuMy0yLjUuMy0zLjkuMS0xLS4xLTEuOS0uOS0xLjktMS45di00LjJjMC0uNS45LTEuNiAyLTEuNmgzLjhjMS41IDAgMi40LTEuNCAyLjQtMi44VjYuNmgxLjdDMTguNSA2LjkgMTkgOCAxOSA4LjlWMTNjMCAxLS43IDIuMS0xLjkgMi4xaC02LjJ6Ii8+CiAgPC9nPgo8L3N2Zz4K"}),new qo({name:"ui-components:r-kernel",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDIyIDIyIj4KICA8cGF0aCBjbGFzcz0ianAtaWNv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ljk5IDE0LjE1IDggMTEuNSA4Yy00LjY1IDAtOC41OCAzLjAzLTkuOTYgNy4yMkwzLjkgMTZjMS4wNS0zLjE5IDQuMDUtNS41IDcuNi01LjUgMS45NSAwIDMuNzMuNzIgNS4xMiAxLjg4TDEzIDE2aDlWN2wtMy42IDMuNnoiLz4KICA8L2c+Cjwvc3ZnPgo="}),new qo({name:"ui-components:refresh",svgstr:Wo}),new qo({name:"ui-components:regex",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDIwIDIwIj4KICA8ZyBjbGFzcz0ianAtaWNvbjIiIGZpbGw9IiM0MTQxNDEiPgogICAgPHJlY3QgeD0iMiIgeT0iMiIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2Ii8+CiAgPC9nPgoKICA8ZyBjbGFzcz0ianAtaWNvbi1hY2NlbnQyIiBmaWxsPSIjRkZGIj4KICAgIDxjaXJjbGUgY2xhc3M9InN0MiIgY3g9IjUuNSIgY3k9IjE0LjUiIHI9IjEuNSIvPgogICAgPHJlY3QgeD0iMTIiIHk9IjQiIGNsYXNzPSJzdDIiIHdpZHRoPSIxIiBoZWlnaHQ9IjgiLz4KICAgIDxyZWN0IHg9IjguNSIgeT0iNy41IiB0cmFuc2Zvcm09Im1hdHJpeCgwLjg2NiAtMC41IDAuNSAwLjg2NiAtMi4zMjU1IDcuMzIxOSkiIGNsYXNzPSJzdDIiIHdpZHRoPSI4IiBoZWlnaHQ9IjEiLz4KICAgIDxyZWN0IHg9IjEyIiB5PSI0IiB0cmFuc2Zvcm09Im1hdHJpeCgwLjUgLTAuODY2IDAuODY2IDAuNSAtMC42Nzc5IDE0LjgyNTIpIiBjbGFzcz0ic3QyIiB3aWR0aD0iMSIgaGVpZ2h0PSI4Ii8+CiAgPC9nPgo8L3N2Zz4K"}),new qo({name:"ui-components:run",svgstr:"data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGNsYXNzPSJqcC1pY29uMyIgZmlsbD0iIzYxNjE2MSI+CiAgICAgICAgPHBhdGggZD0iTTggNXYxNGwxMS03eiIvPgogICAgPC9nPgo8L3N2Zz4K"}),new qo({name:"ui-components:running",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDUxMiA1MTIiPgogIDxnIGNsYXNzPSJqcC1pY29uMyIgZmlsbD0iIzYxNjE2MSI+CiAgICA8cGF0aCBkPSJNMjU2IDhDMTE5IDggOCAxMTkgOCAyNTZzMTExIDI0OCAyNDggMjQ4IDI0OC0xMTEgMjQ4LTI0OFMzOTMgOCAyNTYgOHptOTYgMzI4YzAgOC44LTcuMiAxNi0xNiAxNkgxNzZjLTguOCAwLTE2LTcuMi0xNi0xNlYxNzZjMC04LjggNy4yLTE2IDE2LTE2aDE2MGM4LjggMCAxNiA3LjIgMTYgMTZ2MTYweiIvPgogIDwvZz4KPC9zdmc+Cg=="}),new qo({name:"ui-components:save",svgstr:"data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGNsYXNzPSJqcC1pY29uMyIgZmlsbD0iIzYxNjE2MSI+CiAgICAgICAgPHBhdGggZD0iTTE3IDNINWMtMS4xMSAwLTIgLjktMiAydjE0YzAgMS4xLjg5IDIgMiAyaDE0YzEuMSAwIDItLjkgMi0yVjdsLTQtNHptLTUgMTZjLTEuNjYgMC0zLTEuMzQtMy0zczEuMzQtMyAzLTMgMyAxLjM0IDMgMy0xLjM0IDMtMyAzem0zLTEwSDVWNWgxMHY0eiIvPgogICAgPC9nPgo8L3N2Zz4K"}),new qo({name:"ui-components:search",svgstr:"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTggMTgiIHdpZHRoPSIxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBjbGFzcz0ianAtaWNvbjMiIGZpbGw9IiM2MTYxNjEiPgogICAgPHBhdGggZD0iTTEyLjEsMTAuOWgtMC43bC0wLjItMC4yYzAuOC0wLjksMS4zLTIuMiwxLjMtMy41YzAtMy0yLjQtNS40LTUuNC01LjRTMS44LDQuMiwxLjgsNy4xczIuNCw1LjQsNS40LDUuNCBjMS4zLDAsMi41LTAuNSwzLjUtMS4zbDAuMiwwLjJ2MC43bDQuMSw0LjFsMS4yLTEuMkwxMi4xLDEwLjl6IE03LjEsMTAuOWMtMi4xLDAtMy43LTEuNy0zLjctMy43czEuNy0zLjcsMy43LTMuN3MzLjcsMS43LDMuNywzLjcgUzkuMiwxMC45LDcuMSwxMC45eiIvPgogIDwvZz4KPC9zdmc+Cg=="}),new qo({name:"ui-components:settings",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICA8cGF0aCBjbGFzcz0ianAtaWNvbjMganAtaWNvbi1zZWxlY3RhYmxlIiBmaWxsPSIjNjE2MTYxIiBkPSJNMTkuNDMgMTIuOThjLjA0LS4zMi4wNy0uNjQuMDctLjk4cy0uMDMtLjY2LS4wNy0uOThsMi4xMS0xLjY1Yy4xOS0uMTUuMjQtLjQyLjEyLS42NGwtMi0zLjQ2Yy0uMTItLjIyLS4zOS0uMy0uNjEtLjIybC0yLjQ5IDFjLS41Mi0uNC0xLjA4LS43My0xLjY5LS45OGwtLjM4LTIuNjVBLjQ4OC40ODggMC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V2LTUuNWg1LjV2NS41aC01LjV6Ii8+Cjwvc3ZnPgo="}),new qo({name:"ui-components:stop",svgstr:"data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGNsYXNzPSJqcC1pY29uMyIgZmlsbD0iIzYxNjE2MSI+CiAgICAgICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPgogICAgICAgIDxwYXRoIGQ9Ik02IDZoMTJ2MTJINnoiLz4KICAgIDwvZz4KPC9zdmc+Cg=="}),new qo({name:"ui-components:tab",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICA8ZyBjbGFzcz0ianAtaWNvbjMiIGZpbGw9IiM2MTYxNjEiPgogICAgPHBhdGggZD0iTTIxIDNIM2MtMS4xIDAtMiAuOS0yIDJ2MTRjMCAxLjEuOSAyIDIgMmgxOGMxLjEgMCAyLS45IDItMlY1YzAtMS4xLS45LTItMi0yem0wIDE2SDNWNWgxMHY0aDh2MTB6Ii8+CiAgPC9nPgo8L3N2Zz4K"}),new qo({name:"ui-components:tag",svgstr:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIHZpZXdCb3g9IjAgMCA0MyAyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCTxnIGNsYXNzPSJqcC1pY29uMyIgZmlsbD0iIzYxNjE2MSI+CgkJPHBhdGggZD0iTTI4LjgzMzIgMTIuMzM0TDMyLjk5OTggMTYuNTAwN0wzNy4xNjY1IDEyLjMzNEgyOC44MzMyWiIvPgoJCTxwYXRoIGQ9Ik0xNi4yMDk1I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dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDI0IDI0Ij4KICA8cGF0aCBjbGFzcz0ianAtaWNvbjMganAtaWNvbi1zZWxlY3RhYmxlIiBmaWxsPSIjNjE2MTYxIiBkPSJNMTUgMTVIM3YyaDEydi0yem0wLThIM3YyaDEyVjd6TTMgMTNoMTh2LTJIM3Yyem0wIDhoMTh2LTJIM3Yyek0zIDN2MmgxOFYzSDN6Ii8+Cjwvc3ZnPgo="}),new qo({name:"ui-components:toc",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBjbGFzcz0ianAtaWNvbjMiIGZpbGw9IiM2MTYxNjEiPgoJPHBhdGggZD0iTTcsNUgyMVY3SDdWNU03LDEzVjExSDIxVjEzSDdNNCw0LjVBMS41LDEuNSAwIDAsMSA1LjUsNkExLjUsMS41IDAgMCwxIDQsNy41QTEuNSwxLjUgMCAwLDEgMi41LDZBMS41LDEuNSAwIDAsMSA0LDQuNU00LDEwLjVBMS41LDEuNSAwIDAsMSA1LjUsMTJBMS41LDEuNSAwIDAsMSA0LDEzLjVBMS41LDEuNSAwIDAsMSAyLjUsMTJBMS41LDEuNSAwIDAsMSA0LDEwLjVNNywxOVYxN0gyMVYxOUg3TTQsMTYuNUExLjUsMS41IDAgMCwxIDUuNSwxOEExLjUsMS41IDAgMCwxIDQsMTkuNUExLjUsMS41IDAgMCwxIDIuNSwxOEExLjUsMS41IDAgMCwxIDQsMTYuNVoiIC8+Cjwvc3ZnPgo="}),new qo({name:"ui-components:trusted",svgstr:"data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3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WV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBjbGFzcz0ianAtaWNvbjMiIGZpbGw9IiM2MTYxNjEiPgogICAgPHBhdGggZD0iTTEyLjUgOGMtMi42NSAwLTUuMDUuOTktNi45IDIuNkwyIDd2OWg5bC0zLjYyLTMuNjJjMS4zOS0xLjE2IDMuMTYtMS44OCA1LjEyLTEuODggMy41NCAwIDYuNTUgMi4zMSA3LjYgNS41bDIuMzctLjc4QzIxLjA4IDExLjAzIDE3LjE1IDggMTIuNSA4eiIvPgogIDwvZz4KPC9zdmc+Cg=="}),new qo({name:"ui-components:vega",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDIyIDIyIj4KICA8ZyBjbGFzcz0ianAtaWNvbjEganAtaWNvbi1zZWxlY3RhYmxlIiBmaWxsPSIjMjEyMTIxIj4KICAgIDxwYXRoIGQ9Ik0xMC42IDUuNGwyLjItMy4ySDIuMnY3LjNsNC02LjZ6Ii8+CiAgICA8cGF0aCBkPSJNMTUuOCAyLjJsLTQuNCA2LjZMNyA2LjNsLTQuOCA4djUuNWgxNy42VjIuMmgtNHptLTcgMTUuNEg1LjV2LTQuNGgzLjN2NC40em00LjQgMEg5LjhWOS44aDMuNHY3Ljh6bTQuNCAwaC0zLjRWNi41aDMuNHYxMS4xeiIvPgogIDwvZz4KPC9zdmc+Cg=="}),new qo({name:"ui-components:yaml",svgstr:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgdmlld0JveD0iMCAwIDIyIDIyIj4KICA8ZyBjbGFzcz0ianAtaWNvbi1jb250cmFzdDIganAtaWNvbi1zZWxlY3RhYmxlIiBmaWxsPSIjRDgxQjYwIj4KICAgIDxwYXRoIGQ9Ik03LjIgMTguNnYtNS40TDMgNS42aDMuM2wxLjQgMy4xYy4zLjkuNiAxLjYgMSAyLjUuMy0uOC42LTEuNiAxLTIuNWwxLjQtMy4xaDMuNGwtNC40IDcuNnY1LjVsLTIuOS0uMXoiLz4KICAgIDxjaXJjbGUgY2xhc3M9InN0MCIgY3g9IjE3LjYiIGN5PSIxNi41IiByPSIyLjEiLz4KICAgIDxjaXJjbGUgY2xhc3M9InN0MCIgY3g9IjE3LjYiIGN5PSIxMSIgcj0iMi4xIi8+CiAgPC9nPgo8L3N2Zz4K"});var na,ra,ia,oa;!function(e){function t(e,t,r=""){e.localName===t&&e.classList.add("jp-mod-styled"),"select"===e.localName&&n(e);const i=e.getElementsByTagName(t);for(let e=0;e<i.length;e++){const o=i[e];o.classList.add("jp-mod-styled"),r&&o.classList.add(r),"select"===t&&n(o)}}function n(e){const t=document.createElement("div");return t.classList.add("jp-select-wrapper"),e.addEventListener("focus",ra.onFocus),e.addEventListener("blur",ra.onFocus),e.classList.add("jp-mod-styled"),e.parentElement&&e.parentElement.replaceChild(t,e),t.appendChild(e),t.appendChild(Zo.element({tag:"span",stylesheet:"select",right:"8px",top:"5px",width:"18px"})),t}e.styleNode=function(e,n=""){t(e,"select",n),t(e,"textarea",n),t(e,"input",n),t(e,"button",n)},e.styleNodeByTag=t,e.wrapSelect=n}(na||(na={})),function(e){e.onFocus=function(e){const t=e.target.parentElement;t&&("focus"===e.type?t.classList.add("jp-mod-focused"):t.classList.remove("jp-mod-focused"))}}(ra||(ra={}));class aa extends Ce{static create(e){return new class extends aa{render(){return e}}}onUpdateRequest(e){this.renderPromise=this.renderDOM()}onAfterAttach(e){ee.c.sendMessage(this,Ce.Msg.UpdateRequest)}onBeforeDetach(e){Ro.unmountComponentAtNode(this.node)}renderDOM(){return new Promise(e=>{const t=this.render();(Array.isArray(t)||t)&&Ro.render(t,this.node,e)})}}class sa extends aa{constructor(e){super(),this._modelChanged=new ne.Signal(this),this.model=null!=e?e:null}get modelChanged(){return this._modelChanged}set model(e){this._model!==e&&(this._model&&this._model.stateChanged.disconnect(this.update,this),this._model=e,e&&e.stateChanged.connect(this.update,this),this.update(),this._modelChanged.emit(void 0))}get model(){return this._model}dispose(){this.isDisposed||(this._model=null,super.dispose())}}zo.Component;class la{constructor(){this.stateChanged=new ne.Signal(this),this._isDisposed=!1}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,ne.Signal.clearData(this))}}class ca{constructor(e){this._currentChanged=new ne.Signal(this),this._isDisposed=!1,this._widgetAdded=new ne.Signal(this),this._widgetUpdated=new ne.Signal(this);const t=this._focusTracker=new et,n=this._pool=new Eo.RestorablePool(e);this.namespace=e.namespace,t.currentChanged.connect((e,t)=>{t.newValue!==this.currentWidget&&(n.current=t.newValue)},this),n.added.connect((e,t)=>{this._widgetAdded.emit(t)},this),n.currentChanged.connect((e,r)=>{null===r&&t.currentWidget?n.current=t.currentWidget:(this.onCurrentChanged(r),this._currentChanged.emit(r))},this),n.updated.connect((e,t)=>{this._widgetUpdated.emit(t)},this)}get currentChanged(){return this._currentChanged}get currentWidget(){return this._pool.current||null}get restored(){return this._pool.restored}get size(){return this._pool.size}get widgetAdded(){return this._widgetAdded}get widgetUpdated(){return this._widgetUpdated}async add(e){this._focusTracker.add(e),await this._pool.add(e),this._focusTracker.activeWidget||(this._pool.current=e)}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,this._pool.dispose(),this._focusTracker.dispose(),ne.Signal.clearData(this))}find(e){return this._pool.find(e)}forEach(e){return this._pool.forEach(e)}filter(e){return this._pool.filter(e)}inject(e){return this._pool.inject(e)}has(e){return this._pool.has(e)}async restore(e){return this._pool.restore(e)}async save(e){return this._pool.save(e)}onCurrentChanged(e){}}function ua(e={}){return new da(e).launch()}class da extends Ce{constructor(e={}){super(),this._focusNodeSelector="",this.addClass("jp-Dialog");const t=ia.handleOptions(e),n=t.renderer;this._host=t.host,this._defaultButton=t.defaultButton,this._buttons=t.buttons,this._buttonNodes=Object(X.toArray)(Object(X.map)(this._buttons,e=>n.createButtonNode(e)));const r=this.layout=new Oe,i=new je;i.addClass("jp-Dialog-content"),r.addWidget(i),this._body=t.body;const o=n.createHeader(t.title,()=>this.reject(),e),a=n.createBody(t.body),s=n.createFooter(this._buttonNodes);i.addWidget(o),i.addWidget(a),i.addWidget(s),this._primary=this._buttonNodes[this._defaultButton],this._focusNodeSelector=e.focusNodeSelector,da.tracker.add(this)}dispose(){const e=this._promise;e&&(this._promise=null,e.reject(void 0),X.ArrayExt.removeFirstOf(ia.launchQueue,e.promise)),super.dispose()}launch(){if(this._promise)return this._promise.promise;const e=this._promise=new s.PromiseDelegate,t=Promise.all(ia.launchQueue);return ia.launchQueue.push(this._promise.promise),t.then(()=>this._promise?(Ce.attach(this,this._host),e.promise):Promise.resolve({button:da.cancelButton(),value:null}))}resolve(e){this._promise&&(void 0===e&&(e=this._defaultButton),this._resolve(this._buttons[e]))}reject(){this._promise&&this._resolve(da.cancelButton())}handleEvent(e){switch(e.type){case"keydown":this._evtKeydown(e);break;case"click":this._evtClick(e);break;case"focus":this._evtFocus(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation()}}onAfterAttach(e){const t=this.node;if(t.addEventListener("keydown",this,!0),t.addEventListener("contextmenu",this,!0),t.addEventListener("click",this,!0),document.addEventListener("focus",this,!0),this._first=ia.findFirstFocusable(this.node),this._original=document.activeElement,this._focusNodeSelector){const e=this.node.querySelector(".jp-Dialog-body"),t=null==e?void 0:e.querySelector(this._focusNodeSelector);t&&(this._primary=t)}this._primary.focus()}onAfterDetach(e){const t=this.node;t.removeEventListener("keydown",this,!0),t.removeEventListener("contextmenu",this,!0),t.removeEventListener("click",this,!0),document.removeEventListener("focus",this,!0),this._original.focus()}onCloseRequest(e){this._promise&&this.reject(),super.onCloseRequest(e)}_evtClick(e){if(!this.node.getElementsByClassName("jp-Dialog-content")[0].contains(e.target))return e.stopPropagation(),e.preventDefault(),void this.reject();for(const t of this._buttonNodes)if(t.contains(e.target)){const e=this._buttonNodes.indexOf(t);this.resolve(e)}}_evtKeydown(e){switch(e.keyCode){case 27:e.stopPropagation(),e.preventDefault(),this.reject();break;case 9:{const t=this._buttonNodes[this._buttons.length-1];document.activeElement!==t||e.shiftKey||(e.stopPropagation(),e.preventDefault(),this._first.focus());break}case 13:e.stopPropagation(),e.preventDefault(),this.resolve()}}_evtFocus(e){const t=e.target;this.node.contains(t)||(e.stopPropagation(),this._buttonNodes[this._defaultButton].focus())}_resolve(e){const t=this._promise;if(!t)return void this.dispose();this._promise=null,X.ArrayExt.removeFirstOf(ia.launchQueue,t.promise);const n=this._body;let r=null;e.accept&&n instanceof Ce&&"function"==typeof n.getValue&&(r=n.getValue()),this.dispose(),t.resolve({button:e,value:r})}}!function(e){function t(e){e.accept=!1!==e.accept;const t=e.accept?"OK":"Cancel";return{label:e.label||t,iconClass:e.iconClass||"",iconLabel:e.iconLabel||"",caption:e.caption||"",className:e.className||"",accept:e.accept,actions:e.actions||[],displayType:e.displayType||"default"}}e.createButton=t,e.cancelButton=function(e={}){return e.accept=!1,t(e)},e.okButton=function(e={}){return e.accept=!0,t(e)},e.warnButton=function(e={}){return e.displayType="warn",t(e)},e.flush=function(){e.tracker.forEach(e=>{e.dispose()})};class n{createHeader(e,t=(()=>{}),n={}){let r;const i=e=>{0===e.button&&(e.preventDefault(),t())},o=e=>{const{key:n}=e;"Enter"!==n&&" "!==n||t()};return r="string"==typeof e?aa.create(zo.createElement(zo.Fragment,null,e,n.hasClose&&zo.createElement(Qo,{className:"jp-Dialog-close-button",onMouseDown:i,onKeyDown:o,title:"Cancel",minimal:!0},zo.createElement(qo.resolveReact,{icon:Jo,iconClass:"jp-Icon",className:"jp-ToolbarButtonComponent-icon",tag:"span"})))):aa.create(e),r.addClass("jp-Dialog-header"),na.styleNode(r.node),r}createBody(e){let t;return"string"==typeof e?(t=new Ce({node:document.createElement("span")}),t.node.textContent=e):e instanceof Ce?t=e:(t=aa.create(e),ee.c.sendMessage(t,Ce.Msg.UpdateRequest)),t.addClass("jp-Dialog-body"),na.styleNode(t.node),t}createFooter(e){const t=new Ce;return t.addClass("jp-Dialog-footer"),Object(X.each)(e,e=>{t.node.appendChild(e)}),na.styleNode(t.node),t}createButtonNode(e){const t=document.createElement("button");return t.className=this.createItemClass(e),t.appendChild(this.renderIcon(e)),t.appendChild(this.renderLabel(e)),t}createItemClass(e){let t="jp-Dialog-button";e.accept?t+=" jp-mod-accept":t+=" jp-mod-reject","warn"===e.displayType&&(t+=" jp-mod-warn");const n=e.className;return n&&(t+=" "+n),t}renderIcon(e){const t=document.createElement("div");return t.className=this.createIconClass(e),t.appendChild(document.createTextNode(e.iconLabel)),t}createIconClass(e){const t="jp-Dialog-buttonIcon",n=e.iconClass;return n?`${t} ${n}`:t}renderLabel(e){const t=document.createElement("div");return t.className="jp-Dialog-buttonLabel",t.title=e.caption,t.appendChild(document.createTextNode(e.label)),t}}e.Renderer=n,e.defaultRenderer=new n,e.tracker=new ca({namespace:"@jupyterlab/apputils:Dialog"})}(da||(da={})),function(e){e.launchQueue=[],e.errorMessagePromiseCache=new Map,e.handleOptions=function(e={}){const t=e.buttons||[da.cancelButton(),da.okButton()];let n=t.length-1;return void 0!==e.defaultButton&&(n=e.defaultButton),{title:e.title||"",body:e.body||"",host:e.host||document.body,buttons:t,defaultButton:n,renderer:e.renderer||da.defaultRenderer,focusNodeSelector:e.focusNodeSelector||"",hasClose:e.hasClose||!1}},e.findFirstFocusable=function(e){const t=["input","select","a[href]","textarea","button","[tabindex]"].join(",");return e.querySelectorAll(t)[0]}}(ia||(ia={}));class ha{constructor(e=""){this._text="",this._isDisposed=!1,this._changed=new ne.Signal(this),this._text=e}get type(){return"String"}get changed(){return this._changed}set text(e){e.length===this._text.length&&e===this._text||(this._text=e,this._changed.emit({type:"set",start:0,end:e.length,value:e}))}get text(){return this._text}insert(e,t){this._text=this._text.slice(0,e)+t+this._text.slice(e),this._changed.emit({type:"insert",start:e,end:e+t.length,value:t})}remove(e,t){const n=this._text.slice(e,t);this._text=this._text.slice(0,e)+this._text.slice(t),this._changed.emit({type:"remove",start:e,end:t,value:n})}clear(){this.text=""}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,ne.Signal.clearData(this),this.clear())}}class pa extends Xi{constructor(e){super(),this._inCompound=!1,this._isUndoable=!0,this._madeCompoundChange=!1,this._index=-1,this._stack=[],this._serializer=e,this.changed.connect(this._onListChanged,this)}get canRedo(){return this._index<this._stack.length-1}get canUndo(){return this._index>=0}beginCompoundOperation(e){this._inCompound=!0,this._isUndoable=!1!==e,this._madeCompoundChange=!1}endCompoundOperation(){this._inCompound=!1,this._isUndoable=!0,this._madeCompoundChange&&this._index++}undo(){if(!this.canUndo)return;const e=this._stack[this._index];this._isUndoable=!1;for(const t of e.reverse())this._undoChange(t);this._isUndoable=!0,this._index--}redo(){if(!this.canRedo)return;this._index++;const e=this._stack[this._index];this._isUndoable=!1;for(const t of e)this._redoChange(t);this._isUndoable=!0}clearUndo(){this._index=-1,this._stack=[]}_onListChanged(e,t){if(this.isDisposed||!this._isUndoable)return;this._inCompound&&this._madeCompoundChange||(this._stack=this._stack.slice(0,this._index+1));const n=this._copyChange(t);this._stack[this._index+1]?this._stack[this._index+1].push(n):this._stack.push([n]),this._inCompound?this._madeCompoundChange=!0:this._index++}_undoChange(e){let t=0;const n=this._serializer;switch(e.type){case"add":Object(X.each)(e.newValues,()=>{this.remove(e.newIndex)});break;case"set":t=e.oldIndex,Object(X.each)(e.oldValues,e=>{this.set(t++,n.fromJSON(e))});break;case"remove":t=e.oldIndex,Object(X.each)(e.oldValues,e=>{this.insert(t++,n.fromJSON(e))});break;case"move":this.move(e.newIndex,e.oldIndex);break;default:return}}_redoChange(e){let t=0;const n=this._serializer;switch(e.type){case"add":t=e.newIndex,Object(X.each)(e.newValues,e=>{this.insert(t++,n.fromJSON(e))});break;case"set":t=e.newIndex,Object(X.each)(e.newValues,t=>{this.set(e.newIndex++,n.fromJSON(t))});break;case"remove":Object(X.each)(e.oldValues,()=>{this.remove(e.oldIndex)});break;case"move":this.move(e.oldIndex,e.newIndex);break;default:return}}_copyChange(e){const t=[];Object(X.each)(e.oldValues,e=>{t.push(this._serializer.toJSON(e))});const n=[];return Object(X.each)(e.newValues,e=>{n.push(this._serializer.toJSON(e))}),{type:e.type,oldIndex:e.oldIndex,newIndex:e.newIndex,oldValues:t,newValues:n}}}(pa||(pa={})).IdentitySerializer=class{toJSON(e){return e}fromJSON(e){return e}};class fa{constructor(e=null){this._value=null,this._changed=new ne.Signal(this),this._isDisposed=!1,this._value=e}get type(){return"Value"}get isDisposed(){return this._isDisposed}get changed(){return this._changed}get(){return this._value}set(e){const t=this._value;s.JSONExt.deepEqual(t,e)||(this._value=e,this._changed.emit({oldValue:t,newValue:e}))}dispose(){this._isDisposed||(this._isDisposed=!0,ne.Signal.clearData(this),this._value=null)}}(fa||(fa={})).IChangedArgs=class{};class ma{constructor(e={}){this.isPrepopulated=!1,this.isCollaborative=!1,this.connected=Promise.resolve(void 0),this._toDispose=!1,this._isDisposed=!1,this._disposables=new re.DisposableSet,this._basePath=e.basePath||"",e.baseDB?this._db=e.baseDB:(this._db=new oo,this._toDispose=!0)}get basePath(){return this._basePath}get isDisposed(){return this._isDisposed}get(e){return this._db.get(this._resolvePath(e))}has(e){return this._db.has(this._resolvePath(e))}createString(e){const t=new ha;return this._disposables.add(t),this.set(e,t),t}createList(e){const t=new pa(new pa.IdentitySerializer);return this._disposables.add(t),this.set(e,t),t}createMap(e){const t=new ao;return this._disposables.add(t),this.set(e,t),t}createValue(e){const t=new fa;return this._disposables.add(t),this.set(e,t),t}getValue(e){const t=this.get(e);if(!t||"Value"!==t.type)throw Error("Can only call getValue for an ObservableValue");return t.get()}setValue(e,t){const n=this.get(e);if(!n||"Value"!==n.type)throw Error("Can only call setValue on an ObservableValue");n.set(t)}view(e){const t=new ma({basePath:e,baseDB:this});return this._disposables.add(t),t}set(e,t){this._db.set(this._resolvePath(e),t)}dispose(){this.isDisposed||(this._isDisposed=!0,this._toDispose&&this._db.dispose(),this._disposables.dispose())}_resolvePath(e){return this._basePath&&(e=this._basePath+"."+e),e}}!function(e){e.defaultSelectionStyle={className:"",displayName:"",color:"black"};e.Model=class{constructor(e){this._isDisposed=!1,this._mimeTypeChanged=new ne.Signal(this),(e=e||{}).modelDB?this.modelDB=e.modelDB:this.modelDB=new ma;const t=this.modelDB.createString("value");t.text=t.text||e.value||"";const n=this.modelDB.createValue("mimeType");n.set(e.mimeType||"text/plain"),n.changed.connect(this._onMimeTypeChanged,this),this.modelDB.createMap("selections")}get mimeTypeChanged(){return this._mimeTypeChanged}get value(){return this.modelDB.get("value")}get selections(){return this.modelDB.get("selections")}get mimeType(){return this.modelDB.getValue("mimeType")}set mimeType(e){this.mimeType!==e&&this.modelDB.setValue("mimeType",e)}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,this.value.text="",ne.Signal.clearData(this))}_onMimeTypeChanged(e,t){this._mimeTypeChanged.emit({name:"mimeType",oldValue:t.oldValue,newValue:t.newValue})}},e.defaultConfig={fontFamily:null,fontSize:null,lineHeight:null,lineNumbers:!1,lineWrap:"on",wordWrapColumn:80,readOnly:!1,tabSize:4,insertSpaces:!0,matchBrackets:!0,autoClosingBrackets:!0,handlePaste:!0,rulers:[],codeFolding:!1}}(oa||(oa={}));var ga,va=n(40);!function(e){e.defaultMimeType="text/plain"}(ga||(ga={}));n(71),n(415),n(286);No.a.defineMode("ipython",(e,t)=>{const n={};for(const e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n.name="python",n.singleOperators=new RegExp("^[\\+\\-\\*/%&|@\\^~<>!\\?]"),n.identifiers=new RegExp("^[_A-Za-z¡-][_A-Za-z0-9¡-]*"),No.a.getMode(e,n)},"python"),No.a.defineMIME("text/x-ipython","ipython"),No.a.modeInfo.push({ext:[],mime:"text/x-ipython",mode:"ipython",name:"ipython"});n(287),n(288),n(284);No.a.defineMode("ipythongfm",(e,t)=>{const n=No.a.getMode(e,{name:"gfm",tokenTypeOverrides:{list3:"string-2"}}),r=No.a.getMode(e,{name:"stex",inMathMode:!0});return No.a.multiplexingMode(n,{open:"$$",close:"$$",mode:r,delimStyle:"delimit"},{open:"$",close:"$",mode:r,delimStyle:"delimit"},{open:"\\(",close:"\\)",mode:r,delimStyle:"delimit"},{open:"\\[",close:"\\]",mode:r,delimStyle:"delimit"})},"gfm"),No.a.defineMIME("text/x-ipythongfm","ipythongfm"),No.a.modeInfo.push({ext:[],mime:"text/x-ipythongfm",mode:"ipythongfm",name:"ipythongfm"});var _a,ya;n(279),n(281),n(289),n(290),n(89),n(285),n(291),n(292);!function(e){const t=[{loader:async e=>No.a.modes.hasOwnProperty(e.mode),rank:0},{loader:function(e){return new Promise((t,r)=>{Promise.all([n.e(1),n.e(2)]).then((function(){var r=[n(669)(`./${e.mode}/${e.mode}.js`)];(function(){t(!0)}).apply(null,r)})).catch(n.oe)})},rank:99}];function r(e){var t;const n="string"==typeof e?e:e.mode||e.name,r="string"!=typeof e?e.mime:n,o="string"!=typeof e&&null!==(t=e.ext)&&void 0!==t?t:[];return No.a.findModeByName(n||"")||No.a.findModeByMIME(r||"")||i(o)||No.a.findModeByMIME(ga.defaultMimeType)||No.a.findModeByMIME("text/plain")}function i(e){if("string"==typeof e)return No.a.findModeByExtension(e);for(let t=0;t<e.length;t++){const n=No.a.findModeByExtension(e[t]);if(n)return n}return null}e.getModeInfo=function(){return No.a.modeInfo},e.run=function(e,t,n){No.a.runMode(e,t,n)},e.ensure=async function(e){const n=r(e);for(const e of t)if(await e.loader(n))return n;return null},e.addSpecLoader=function(e,n){const r={loader:e,rank:n},i=X.ArrayExt.upperBound(t,r,ya.itemCmp);X.ArrayExt.insert(t,i,r)},e.findBest=r,e.findByMIME=function(e){return No.a.findModeByMIME(e)},e.findByName=function(e){return No.a.findModeByName(e)},e.findByFileName=function(e){const t=_o.PathExt.basename(e);return No.a.findModeByFileName(t)},e.findByExtension=i}(_a||(_a={})),function(e){e.itemCmp=function(e,t){return e.rank-t.rank}}(ya||(ya={}));n(416),n(417),n(239),n(418),n(240),n(419),n(420),n(421),n(422),n(423),n(424),n(425),n(72),n(426),n(427),n(428),n(429),n(430),n(280),n(431),n(432);var ba=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};class Ma{constructor(e){this.edgeRequested=new ne.Signal(this),this.selectionMarkers={},this._keydownHandlers=new Array,this._changeGuard=!1,this._uuid="",this._needsRefresh=!1,this._isDisposed=!1,this._lastChange=null;const t=this.host=e.host;this.translator=e.translator||xo,this._trans=this.translator.load("jupyterlab"),t.classList.add("jp-CodeMirrorEditor"),t.classList.add("jp-Editor"),t.addEventListener("focus",this,!0),t.addEventListener("blur",this,!0),t.addEventListener("scroll",this,!0),this._uuid=e.uuid||s.UUID.uuid4();const n=e.selectionStyle||{};this._selectionStyle=Object.assign(Object.assign({},oa.defaultSelectionStyle),n);const r=this._model=e.model,i=e.config||{},o=this._config=Object.assign(Object.assign({},Ma.defaultConfig),i),a=this._editor=La.createEditor(t,o);a.getDoc().setValue(r.value.text),this.clearHistory(),this._onMimeTypeChanged(),this._onCursorActivity(),this._poll=new va.Poll({factory:async()=>{this._checkSync()},frequency:{interval:3e3,backoff:!1},standby:()=>!this._lastChange||"when-hidden"}),r.value.changed.connect(this._onValueChanged,this),r.mimeTypeChanged.connect(this._onMimeTypeChanged,this),r.selections.changed.connect(this._onSelectionsChanged,this),No.a.on(a,"keydown",(e,t)=>{-1===X.ArrayExt.findFirstIndex(this._keydownHandlers,e=>!0===e(this,t)&&(t.preventDefault(),!0))&&this.onKeydown(t)}),No.a.on(a,"cursorActivity",()=>this._onCursorActivity()),No.a.on(a.getDoc(),"beforeChange",(e,t)=>{this._beforeDocChanged(e,t)}),No.a.on(a.getDoc(),"change",(e,t)=>{"setValue"===t.origin&&this.hasFocus()&&this.refresh(),this._lastChange=t}),a.on("paste",(e,t)=>{var n;null===(n=this._config.handlePaste)||void 0===n||n||(t.codemirrorIgnore=!0)}),a.getWrapperElement().addEventListener("paste",()=>{this.hasFocus()&&this.refresh()})}get uuid(){return this._uuid}set uuid(e){this._uuid=e}get selectionStyle(){return this._selectionStyle}set selectionStyle(e){this._selectionStyle=e}get editor(){return this._editor}get doc(){return this._editor.getDoc()}get lineCount(){return this.doc.lineCount()}get model(){return this._model}get lineHeight(){return this._editor.defaultTextHeight()}get charWidth(){return this._editor.defaultCharWidth()}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,this.host.removeEventListener("focus",this,!0),this.host.removeEventListener("blur",this,!0),this.host.removeEventListener("scroll",this,!0),this._keydownHandlers.length=0,this._poll.dispose(),ne.Signal.clearData(this))}getOption(e){return this._config[e]}setOption(e,t){this._config[e]!==t&&(this._config[e]=t,La.setOption(this.editor,e,t,this._config))}getLine(e){return this.doc.getLine(e)}getOffsetAt(e){return this.doc.indexFromPos({ch:e.column,line:e.line})}getPositionAt(e){const{ch:t,line:n}=this.doc.posFromIndex(e);return{line:n,column:t}}undo(){this.doc.undo()}redo(){this.doc.redo()}clearHistory(){this.doc.clearHistory()}focus(){this._editor.focus()}hasFocus(){return this._editor.getWrapperElement().contains(document.activeElement)}blur(){this._editor.getInputField().blur()}refresh(){this._editor.refresh(),this._needsRefresh=!1}resizeToFit(){this.hasFocus()?this.refresh():this._needsRefresh=!0,this._clearHover()}addOverlay(e,t){this._editor.addOverlay(e,t)}removeOverlay(e){this._editor.removeOverlay(e)}getSearchCursor(e,t,n){return this._editor.getDoc().getSearchCursor(e,t,n)}getCursor(e){return this._editor.getDoc().getCursor(e)}get state(){return this._editor.state}operation(e){return this._editor.operation(e)}firstLine(){return this._editor.getDoc().firstLine()}lastLine(){return this._editor.getDoc().lastLine()}scrollIntoView(e,t){this._editor.scrollIntoView(e,t)}cursorCoords(e,t){return this._editor.cursorCoords(e,t)}getRange(e,t,n){return this._editor.getDoc().getRange(e,t,n)}addKeydownHandler(e){return this._keydownHandlers.push(e),new re.DisposableDelegate(()=>{X.ArrayExt.removeAllWhere(this._keydownHandlers,t=>t===e)})}setSize(e){e?this._editor.setSize(e.width,e.height):this._editor.setSize(null,null),this._needsRefresh=!1}revealPosition(e){const t=this._toCodeMirrorPosition(e);this._editor.scrollIntoView(t)}revealSelection(e){const t={from:this._toCodeMirrorPosition(e.start),to:this._toCodeMirrorPosition(e.end)};this._editor.scrollIntoView(t)}getCoordinateForPosition(e){const t=this._toCodeMirrorPosition(e);return this.editor.charCoords(t,"page")}getPositionForCoordinate(e){return this._toPosition(this.editor.coordsChar(e))||null}getCursorPosition(){const e=this.doc.getCursor();return this._toPosition(e)}setCursorPosition(e,t){const n=this._toCodeMirrorPosition(e);this.doc.setCursor(n,void 0,t),this.editor.hasFocus()||this.model.selections.set(this.uuid,this.getSelections())}getSelection(){return this.getSelections()[0]}setSelection(e){this.setSelections([e])}getSelections(){const e=this.doc.listSelections();if(e.length>0)return e.map(e=>this._toSelection(e));const t=this.doc.getCursor();return[this._toSelection({anchor:t,head:t})]}setSelections(e){const t=this._toCodeMirrorSelections(e);this.doc.setSelections(t,0)}replaceSelection(e){this.doc.replaceSelection(e)}getTokens(){let e=[];for(let t=0;t<this.lineCount;++t){const n=this.editor.getLineTokens(t).map(e=>({offset:this.getOffsetAt({column:e.start,line:t}),value:e.string,type:e.type||""}));e=e.concat(n)}return e}getTokenForPosition(e){var t;const n=this._toCodeMirrorPosition(e),r=this.editor.getTokenAt(n);return{offset:this.getOffsetAt({column:r.start,line:n.line}),value:r.string,type:null!==(t=r.type)&&void 0!==t?t:void 0}}newIndentedLine(){this.execCommand("newlineAndIndent")}execCommand(e){this._editor.execCommand(e)}onKeydown(e){const t=this.getCursorPosition(),{line:n,column:r}=t;if(0===n&&0===r&&38===e.keyCode)return e.shiftKey||this.edgeRequested.emit("top"),!1;if(0===n&&38===e.keyCode)return e.shiftKey||this.edgeRequested.emit("topLine"),!1;const i=this.lineCount-1,o=this.getLine(i).length;return n===i&&r===o&&40===e.keyCode&&(e.shiftKey||this.edgeRequested.emit("bottom"),!1)}_toCodeMirrorSelections(e){if(e.length>0)return e.map(e=>this._toCodeMirrorSelection(e));const t={line:0,ch:0};return[{anchor:t,head:t}]}_onMimeTypeChanged(){const e=this._model.mimeType,t=this._editor;_a.ensure(e).then(e=>{var n;t.setOption("mode",null!==(n=null==e?void 0:e.mime)&&void 0!==n?n:"null")});const n=t.getOption("extraKeys")||{};"text/plain"!==e&&"text/x-ipythongfm"!==e?n.Backspace="delSpaceToPrevTabStop":delete n.Backspace,t.setOption("extraKeys",n)}_onSelectionsChanged(e,t){const n=t.key;n!==this.uuid&&(this._cleanSelections(n),"remove"!==t.type&&t.newValue&&this._markSelections(n,t.newValue))}_cleanSelections(e){const t=this.selectionMarkers[e];t&&t.forEach(e=>{e.clear()}),delete this.selectionMarkers[e]}_markSelections(e,t){const n=[];let r;e===this._hoverId&&this._clearHover(),this._model.modelDB.collaborators&&(r=this._model.modelDB.collaborators.get(e)),t.forEach(e=>{if(s.JSONExt.deepEqual(e.start,e.end)){if(r){const t=this._getCaret(r);n.push(this.doc.setBookmark(this._toCodeMirrorPosition(e.end),{widget:t}))}}else{const t=e.start.line<e.end.line||e.start.line===e.end.line&&e.start.column<=e.end.column,i=this._toCodeMirrorPosition(t?e.start:e.end),o=this._toCodeMirrorPosition(t?e.end:e.start);let a;a=r?this._toTextMarkerOptions(Object.assign(Object.assign({},e.style),{color:r.color})):this._toTextMarkerOptions(e.style),n.push(this.doc.markText(i,o,a))}}),this.selectionMarkers[e]=n}_onCursorActivity(){if(this._editor.hasFocus()){const e=this.getSelections();this.model.selections.set(this.uuid,e)}}_toSelection(e){return{uuid:this.uuid,start:this._toPosition(e.anchor),end:this._toPosition(e.head),style:this.selectionStyle}}_toTextMarkerOptions(e){const t=`background-color: rgba( ${parseInt(e.color.slice(1,3),16)}, ${parseInt(e.color.slice(3,5),16)}, ${parseInt(e.color.slice(5,7),16)}, 0.15)`;return{className:e.className,title:e.displayName,css:t}}_toCodeMirrorSelection(e){return{anchor:this._toCodeMirrorPosition(e.start),head:this._toCodeMirrorPosition(e.end)}}_toPosition(e){return{line:e.line,column:e.ch}}_toCodeMirrorPosition(e){return{line:e.line,ch:e.column}}_onValueChanged(e,t){if(this._changeGuard)return;this._changeGuard=!0;const n=this.doc;switch(t.type){case"insert":{const e=n.posFromIndex(t.start);n.replaceRange(t.value,e,e,"+input");break}case"remove":{const e=n.posFromIndex(t.start),r=n.posFromIndex(t.end);n.replaceRange("",e,r,"+input");break}case"set":n.setValue(t.value)}this._changeGuard=!1}_beforeDocChanged(e,t){if(this._changeGuard)return;this._changeGuard=!0;const n=this._model.value,r=e.indexFromPos(t.from),i=e.indexFromPos(t.to),o=t.text.join("\n");i!==r&&n.remove(r,i),o&&n.insert(r,o),this._changeGuard=!1}handleEvent(e){switch(e.type){case"focus":this._evtFocus(e);break;case"blur":this._evtBlur(e);break;case"scroll":this._evtScroll()}}_evtFocus(e){this._needsRefresh&&this.refresh(),this.host.classList.add("jp-mod-focused"),this._onCursorActivity()}_evtBlur(e){this.host.classList.remove("jp-mod-focused")}_evtScroll(){this._clearHover()}_clearHover(){this._caretHover&&(window.clearTimeout(this._hoverTimeout),document.body.removeChild(this._caretHover),this._caretHover=null)}_getCaret(e){const t=e?e.displayName:"Anonymous",n=e?e.color:this._selectionStyle.color,r=document.createElement("span");return r.className="jp-CollaboratorCursor",r.style.borderBottomColor=n,r.onmouseenter=()=>{this._clearHover(),this._hoverId=e.sessionId;const i=r.getBoundingClientRect(),o=document.createElement("div");o.className="jp-CollaboratorCursor-hover",o.style.left=String(i.left)+"px",o.style.top=String(i.bottom)+"px",o.textContent=t,o.style.backgroundColor=n,o.onmouseenter=()=>{window.clearTimeout(this._hoverTimeout)},o.onmouseleave=()=>{this._hoverTimeout=window.setTimeout(()=>{this._clearHover()},1e3)},this._caretHover=o,document.body.appendChild(o)},r.onmouseleave=()=>{this._hoverTimeout=window.setTimeout(()=>{this._clearHover()},1e3)},r}_checkSync(){const e=this._lastChange;if(!e)return;this._lastChange=null;const t=this._editor,n=t.getDoc();n.getValue()!==this._model.value.text&&(ua({title:this._trans.__("Code Editor out of Sync"),body:this._trans.__("Please open your browser JavaScript console for bug report instructions")}),console.warn("Please paste the following to https://github.com/jupyterlab/jupyterlab/issues/2951"),console.warn(JSON.stringify({model:this._model.value.text,view:n.getValue(),selections:this.getSelections(),cursor:this.getCursorPosition(),lineSep:t.getOption("lineSeparator"),mode:t.getOption("mode"),change:e})))}}var wa,La;(wa=Ma||(Ma={})).defaultConfig=Object.assign(Object.assign({},oa.defaultConfig),{mode:"null",theme:"jupyter",smartIndent:!0,electricChars:!0,keyMap:"default",extraKeys:null,gutters:[],fixedGutter:!0,showCursorWhenSelecting:!1,coverGutterNextToScrollbar:!1,dragDrop:!0,lineSeparator:null,scrollbarStyle:"native",lineWiseCopyCut:!0,scrollPastEnd:!1,styleActiveLine:!1,styleSelectedText:!0,selectionPointer:!1,rulers:[],foldGutter:!1,handlePaste:!0}),wa.addCommand=function(e,t){No.a.commands[e]=t},function(e){function t(e,t){return e.line===t.line&&e.ch===t.ch}function n(e){const t={"CodeMirror-linenumbers":"lineNumbers","CodeMirror-foldgutter":"codeFolding"};return Object.keys(t).filter(n=>e[t[n]])}e.createEditor=function(e,t){const{autoClosingBrackets:n,fontFamily:r,fontSize:i,insertSpaces:o,lineHeight:a,lineWrap:s,wordWrapColumn:l,tabSize:c,readOnly:u}=t,d=ba(t,["autoClosingBrackets","fontFamily","fontSize","insertSpaces","lineHeight","lineWrap","wordWrapColumn","tabSize","readOnly"]),h=Object.assign({autoCloseBrackets:!!n&&{},indentUnit:c,indentWithTabs:!o,lineWrapping:"off"!==s,readOnly:u},d);return No()(t=>{if(r&&(t.style.fontFamily=r),i&&(t.style.fontSize=i+"px"),a&&(t.style.lineHeight=a.toString()),u&&t.classList.add("jp-mod-readOnly"),"wordWrapColumn"===s){t.querySelector(".CodeMirror-lines").style.width=l+"ch"}if("bounded"===s){t.querySelector(".CodeMirror-lines").style.maxWidth=l+"ch"}e.appendChild(t)},h)},e.indentMoreOrinsertTab=function(e){const n=e.getDoc(),r=n.getCursor("from");if(!t(r,n.getCursor("to")))return void No.a.commands.indentMore(e);const i=n.getLine(r.line).slice(0,r.ch);/^\s*$/.test(i)?No.a.commands.indentMore(e):e.getOption("indentWithTabs")?No.a.commands.insertTab(e):No.a.commands.insertSoftTab(e)},e.delSpaceToPrevTabStop=function(e){var n;const r=e.getDoc(),i=null!==(n=e.getOption("indentUnit"))&&void 0!==n?n:2,o=r.listSelections();for(let n=o.length-1;n>=0;n--){const a=o[n].head,s=o[n].anchor;if(!t(a,s))r.replaceRange("",s,a);else{if(null!==r.getLine(a.line).substring(0,a.ch).match(/^\ +$/)){const e=(Math.ceil(a.ch/i)-1)*i,t=No.a.Pos(a.line,e);r.replaceRange("",t,a)}else{const t=e.findPosH(a,-1,"char",!1);r.replaceRange("",t,a)}}}},e.posEq=t,e.setOption=function(e,t,r,i){const o=e.getWrapperElement();switch(t){case"lineWrap":{const t="off"!==r,n=o.querySelector(".CodeMirror-lines"),a="bounded"===r?i.wordWrapColumn+"ch":null,s="wordWrapColumn"===r?i.wordWrapColumn+"ch":null;n.style.setProperty("max-width",a),n.style.setProperty("width",s),e.setOption("lineWrapping",t);break}case"wordWrapColumn":{const{lineWrap:e}=i;if("wordWrapColumn"===e||"bounded"===e){const t="wordWrapColumn"===e?"width":"maxWidth";o.querySelector(".CodeMirror-lines").style[t]=r+"ch"}break}case"tabSize":e.setOption("indentUnit",r);break;case"insertSpaces":e.setOption("indentWithTabs",!r);break;case"autoClosingBrackets":e.setOption("autoCloseBrackets",r);break;case"rulers":{const t=r;e.setOption("rulers",t.map(e=>({column:e,className:"jp-CodeMirror-ruler"})));break}case"readOnly":o.classList.toggle("jp-mod-readOnly",r),e.setOption(t,r);break;case"fontFamily":o.style.fontFamily=r;break;case"fontSize":o.style.setProperty("font-size",r?r+"px":null);break;case"lineHeight":o.style.lineHeight=r?r.toString():null;break;case"gutters":e.setOption(t,n(i));break;case"lineNumbers":e.setOption(t,r),e.setOption("gutters",n(i));break;case"codeFolding":e.setOption("foldGutter",r),e.setOption("gutters",n(i));break;default:e.setOption(t,r)}}}(La||(La={})),Ma.addCommand("delSpaceToPrevTabStop",La.delSpaceToPrevTabStop),Ma.addCommand("indentMoreOrinsertTab",La.indentMoreOrinsertTab);Object(Yo.style)({background:"black",height:"10px",width:"100px",border:"1px solid black",borderRadius:"3px",marginLeft:"4px",overflow:"hidden"}),Object(Yo.style)({background:"var(--jp-brand-color2)",height:"10px"});var xa="var(--jp-layout-color3)",Ea="var(--jp-brand-color1)",Ca="var(--jp-layout-color2)",Ta="24px",Sa="var(--jp-ui-font-color1)",Aa="white",ka="2px",Da="6px",Ia="10px",Oa="nowrap",Na="ellipsis";const za={fontSize:"var(--jp-ui-font-size1)",fontFamily:"var(--jp-ui-font-family)"},ja=Object(Yo.style)(za,{lineHeight:"24px",color:Sa});var Pa=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Ra(e){const{title:t,source:n,className:r}=e,i=Pa(e,["title","source","className"]);return zo.createElement("span",Object.assign({className:Object(Yo.classes)(ja,r),title:t},i),n)}const Ha={display:"flex",alignItems:"center"},Ya={flexDirection:"row"};var Va=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Fa=Object(Yo.style)(Ha,Ya);function Ba(e){const{spacing:t,children:n,className:r}=e,i=Va(e,["spacing","children","className"]),o=zo.Children.count(n);return zo.createElement("div",Object.assign({className:Object(Yo.classes)(Fa,r)},i),zo.Children.map(n,(e,n)=>0===n?zo.createElement("div",{style:{marginRight:t+"px"}},e):n===o-1?zo.createElement("div",{style:{marginLeft:t+"px"}},e):zo.createElement("div",{style:{margin:`0px ${t}px`}},e)))}var Ua;!function(e){e.setGeometry=function(e){const{anchor:t,host:n,node:r,privilege:i}=e;if(r.classList.add("jp-HoverBox"),r.classList.add("jp-mod-outofview"),!n.contains(document.elementFromPoint(t.left,t.top)))return;r.style.maxHeight="",r.style.marginTop="",r.classList.remove("jp-mod-outofview");const o=e.style||window.getComputedStyle(r),a=window.innerHeight,s=t.top,l=a-t.bottom,c=parseInt(o.marginTop,10)||0,u=parseInt(o.minHeight,10)||e.minHeight;let d=parseInt(o.maxHeight,10)||e.maxHeight;const h="forceAbove"!==i&&("forceBelow"===i||("above"===i?s<d&&s<l:l>=d||l>=s));if(h?d=Math.min(l-c,d):(d=Math.min(s,d),r.style.marginTop="0px"),r.style.maxHeight=d+"px",!(d>u&&(l>=u||s>=u)))return void r.classList.add("jp-mod-outofview");const p=e.offset&&e.offset.vertical&&e.offset.vertical.above||0,f=e.offset&&e.offset.vertical&&e.offset.vertical.below||0,m=h?a-l+f:s-r.getBoundingClientRect().height+p;r.style.top=Math.floor(m)+"px";const g=e.offset&&e.offset.horizontal||0;let v=t.left+g;r.style.left=Math.ceil(v)+"px",r.style.width="auto",r.scrollHeight>=d&&(r.style.width=""+(2*r.offsetWidth-r.clientWidth),r.scrollTop=0);const _=r.getBoundingClientRect().right;_>window.innerWidth&&(v-=_-window.innerWidth,r.style.left=Math.ceil(v)+"px")}}(Ua||(Ua={}));const Wa={paddingLeft:Da,paddingRight:Da},Ga={$nest:{"&:hover":{backgroundColor:xa}}},qa={backgroundColor:Ea,$nest:{["."+ja]:{color:Aa}}},Ka=(Object(Yo.style)({background:Ca,minHeight:Ta,justifyContent:"space-between",paddingLeft:Ia,paddingRight:Ia},Ha),Object(Yo.style)(Ha),Object(Yo.style)(Ya),Object(Yo.style)({flexDirection:"row-reverse"}),Object(Yo.style)({maxHeight:Ta,marginLeft:ka,marginRight:ka,height:Ta,whiteSpace:Oa,textOverflow:Na,color:Sa},Wa),Object(Yo.style)(qa)),$a=Object(Yo.style)(Ga),Qa=Object(Yo.style)({boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.25)"});function Za(e){const t=new Ja(e);return t.launch(),t}class Ja extends Ce{constructor(e){super(),this._body=e.body,this._body.addClass(Qa),this._anchor=e.anchor,this._align=e.align;(this.layout=new Oe).addWidget(e.body),this._body.node.addEventListener("resize",()=>{this.update()})}launch(){this._setGeometry(),Ce.attach(this,document.body),this.update(),this._anchor.addClass(Ka),this._anchor.removeClass($a)}onUpdateRequest(e){this._setGeometry(),super.onUpdateRequest(e)}onAfterAttach(e){document.addEventListener("click",this,!1),this.node.addEventListener("keydown",this,!1),window.addEventListener("resize",this,!1)}onAfterDetach(e){document.removeEventListener("click",this,!1),this.node.removeEventListener("keydown",this,!1),window.removeEventListener("resize",this,!1)}onResize(){this.update()}dispose(){super.dispose(),this._anchor.removeClass(Ka),this._anchor.addClass($a)}handleEvent(e){switch(e.type){case"keydown":this._evtKeydown(e);break;case"click":this._evtClick(e);break;case"resize":this.onResize()}}_evtClick(e){!e.target||this._body.node.contains(e.target)||this._anchor.node.contains(e.target)||this.dispose()}_evtKeydown(e){switch(e.keyCode){case 27:e.stopPropagation(),e.preventDefault(),this.dispose()}}_setGeometry(){let e=0;const t=this._anchor.node.getBoundingClientRect(),n=this._body.node.getBoundingClientRect();"right"===this._align&&(e=-(n.width-t.width));const r=window.getComputedStyle(this._body.node);Ua.setGeometry({anchor:t,host:document.body,maxHeight:500,minHeight:20,node:this._body.node,offset:{horizontal:e},privilege:"forceAbove",style:r})}}Object(Yo.style)({boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.25)"});const Xa=Object(Yo.style)({padding:"4px 12px",backgroundColor:"var(--jp-layout-color2)",boxShadow:"var(--jp-toolbar-box-shadow)",zIndex:2,fontSize:"var(--jp-ui-font-size1)"}),es=Object(Yo.style)({fontSize:"var(--jp-ui-font-size0)",lineHeight:"var(--jp-ui-font-size1)",marginTop:"4px",color:"var(--jp-ui-font-color0)"}),ts={border:"none",borderRadius:"0px",position:"absolute",backgroundSize:"16px",backgroundRepeat:"no-repeat",backgroundPosition:"center",outline:"none",top:"0px",right:"0px"},ns=Object(Yo.style)(ts,{top:"4px",right:"8px",height:"24px",padding:"0px 12px",width:"12px"}),rs=Object(Yo.style)(ts,{backgroundColor:"var(--jp-brand-color1)",height:"100%",width:"100%",boxSizing:"border-box",padding:"4px 6px"}),is=Object(Yo.style)(ts,{backgroundColor:"transparent",height:"100%",width:"100%",boxSizing:"border-box"}),os=Object(Yo.style)({overflow:"hidden",padding:"0px 8px",border:"1px solid var(--jp-border-color0)",backgroundColor:"var(--jp-input-active-background)",height:"22px"}),as=Object(Yo.style)({border:"var(--jp-border-width) solid var(--md-blue-500)",boxShadow:"inset 0 0 4px var(--md-blue-300)"}),ss=Object(Yo.style)({background:"transparent",width:"200px",height:"100%",border:"none",outline:"none",color:"var(--jp-ui-font-color0)",lineHeight:"28px"});class ls extends jo.a.Component{constructor(e){super(e),this._handleChange=e=>{this.setState({value:e.currentTarget.value})},this._handleSubmit=e=>{e.preventDefault();const t=parseInt(this._textInput.value,10);return!isNaN(t)&&isFinite(t)&&1<=t&&t<=this.props.maxLine&&this.props.handleSubmit(t),!1},this._handleFocus=()=>{this.setState({hasFocus:!0})},this._handleBlur=()=>{this.setState({hasFocus:!1})},this._textInput=null,this.translator=e.translator||xo,this._trans=this.translator.load("jupyterlab"),this.state={value:"",hasFocus:!1}}componentDidMount(){this._textInput.focus()}render(){return jo.a.createElement("div",{className:Xa},jo.a.createElement("form",{name:"lineColumnForm",onSubmit:this._handleSubmit,noValidate:!0},jo.a.createElement("div",{className:Object(Yo.classes)(os,"lm-lineForm-wrapper",this.state.hasFocus?as:void 0)},jo.a.createElement("input",{type:"text",className:ss,onChange:this._handleChange,onFocus:this._handleFocus,onBlur:this._handleBlur,value:this.state.value,ref:e=>{this._textInput=e}}),jo.a.createElement("div",{className:ns},jo.a.createElement(ea.react,{className:rs,elementPosition:"center"}),jo.a.createElement("input",{type:"submit",className:is,value:""}))),jo.a.createElement("label",{className:es},this._trans.__("Go to line number between 1 and %1",this.props.maxLine))))}}function cs(e){const t=(e.translator||xo).load("jupyterlab");return jo.a.createElement(Ra,{onClick:e.handleClick,source:t.__("Ln %1, Col %2",e.line,e.column),title:t.__("Go to line number…")})}class us extends sa{constructor(e){super(new us.Model),this._popup=null,this.addClass($a),this.translator=e||xo}render(){return null===this.model?null:jo.a.createElement(cs,{line:this.model.line,column:this.model.column,translator:this.translator,handleClick:()=>this._handleClick()})}_handleClick(){this._popup&&this._popup.dispose();const e=aa.create(jo.a.createElement(ls,{handleSubmit:e=>this._handleSubmit(e),currentLine:this.model.line,maxLine:this.model.editor.lineCount,translator:this.translator}));this._popup=Za({body:e,anchor:this,align:"right"})}_handleSubmit(e){this.model.editor.setCursorPosition({line:e-1,column:0}),this._popup.dispose(),this.model.editor.focus()}}function ds(e){const t=(e.translator||xo).load("jupyterlab");let n="";return e.status&&(n=" | "+_o.Text.titleCase(t.__(e.status))),jo.a.createElement(Ra,{onClick:e.handleClick,source:`${e.kernelName}${n}`,title:t.__("Change kernel for %1",e.activityName)})}(us||(us={})).Model=class extends la{constructor(){super(...arguments),this._onSelectionChanged=()=>{const e=this._getAllState(),t=this.editor.getCursorPosition();this._line=t.line+1,this._column=t.column+1,this._triggerChange(e,this._getAllState())},this._line=1,this._column=1,this._editor=null}get editor(){return this._editor}set editor(e){const t=this._editor;t&&t.model.selections.changed.disconnect(this._onSelectionChanged);const n=this._getAllState();if(this._editor=e,this._editor){this._editor.model.selections.changed.connect(this._onSelectionChanged);const e=this._editor.getCursorPosition();this._column=e.column+1,this._line=e.line+1}else this._column=1,this._line=1;this._triggerChange(n,this._getAllState())}get line(){return this._line}get column(){return this._column}_getAllState(){return[this._line,this._column]}_triggerChange(e,t){e[0]===t[0]&&e[1]===t[1]||this.stateChanged.emit(void 0)}};class hs extends sa{constructor(e,t){super(new hs.Model(t)),this.translator=t||xo,this._handleClick=e.onClick,this.addClass($a)}render(){return null===this.model?null:jo.a.createElement(ds,{status:this.model.status,kernelName:this.model.kernelName,activityName:this.model.activityName,handleClick:this._handleClick,translator:this.translator})}}(hs||(hs={})).Model=class extends la{constructor(e){super(),this._onKernelStatusChanged=()=>{var e;this._kernelStatus=null===(e=this._sessionContext)||void 0===e?void 0:e.kernelDisplayStatus,this.stateChanged.emit(void 0)},this._onKernelChanged=(e,t)=>{var n;const r=this._getAllState();this._kernelStatus=null===(n=this._sessionContext)||void 0===n?void 0:n.kernelDisplayStatus,this._kernelName=e.kernelDisplayName,this._triggerChange(r,this._getAllState())},this._activityName="activity",this._kernelStatus="",this._sessionContext=null,e=e||xo,this._trans=e.load("jupyterlab"),this._kernelName=this._trans.__("No Kernel!")}get kernelName(){return this._kernelName}get status(){return this._kernelStatus}get activityName(){return this._activityName}set activityName(e){this._activityName!==e&&(this._activityName=e,this.stateChanged.emit(void 0))}get sessionContext(){return this._sessionContext}set sessionContext(e){var t,n,r;null===(t=this._sessionContext)||void 0===t||t.statusChanged.disconnect(this._onKernelStatusChanged),null===(n=this._sessionContext)||void 0===n||n.kernelChanged.disconnect(this._onKernelChanged);const i=this._getAllState();this._sessionContext=e,this._kernelStatus=null==e?void 0:e.kernelDisplayStatus,this._kernelName=null!==(r=null==e?void 0:e.kernelDisplayName)&&void 0!==r?r:"No Kernel",null==e||e.statusChanged.connect(this._onKernelStatusChanged,this),null==e||e.connectionStatusChanged.connect(this._onKernelStatusChanged,this),null==e||e.kernelChanged.connect(this._onKernelChanged,this),this._triggerChange(i,this._getAllState())}_getAllState(){return[this._kernelName,this._kernelStatus,this._activityName]}_triggerChange(e,t){s.JSONExt.deepEqual(e,t)&&this.stateChanged.emit(void 0)}};function ps(e){return jo.a.createElement(Ba,{spacing:4,onClick:e.handleClick},jo.a.createElement(Ba,{spacing:4},jo.a.createElement(Ra,{source:e.terminals}),jo.a.createElement(ta.react,{left:"1px",top:"3px",stylesheet:"statusBar"})),jo.a.createElement(Ba,{spacing:4},jo.a.createElement(Ra,{source:e.sessions}),jo.a.createElement(Xo.react,{top:"2px",stylesheet:"statusBar"})))}class fs extends sa{constructor(e){super(new fs.Model),this._serviceManager=e.serviceManager,this._handleClick=e.onClick,this.translator=e.translator||xo,this._trans=this.translator.load("jupyterload"),this._serviceManager.sessions.runningChanged.connect(this._onSessionsRunningChanged,this),this._serviceManager.terminals.runningChanged.connect(this._onTerminalsRunningChanged,this),this.addClass($a)}render(){return this.model?(this.title.caption=this._trans.__("%1 Terminals, %2 Kernel sessions",this.model.terminals,this.model.sessions),jo.a.createElement(ps,{sessions:this.model.sessions,terminals:this.model.terminals,handleClick:this._handleClick})):null}dispose(){super.dispose(),this._serviceManager.sessions.runningChanged.disconnect(this._onSessionsRunningChanged,this),this._serviceManager.terminals.runningChanged.disconnect(this._onTerminalsRunningChanged,this)}_onSessionsRunningChanged(e,t){this.model.sessions=t.length}_onTerminalsRunningChanged(e,t){this.model.terminals=t.length}}var ms;(fs||(fs={})).Model=class extends la{constructor(){super(...arguments),this._terminals=0,this._sessions=0}get sessions(){return this._sessions}set sessions(e){const t=this._sessions;this._sessions=e,t!==this._sessions&&this.stateChanged.emit(void 0)}get terminals(){return this._terminals}set terminals(e){const t=this._terminals;this._terminals=e,t!==this._terminals&&this.stateChanged.emit(void 0)}};!function(e){e.statusItemDefaults={align:"left",rank:0,isActive:()=>!0,activeStateChanged:void 0}}(ms||(ms={}));new s.Token("@jupyterlab/statusbar:IStatusBar");function gs(e){return jo.a.createElement(Ra,{source:e.mode,onClick:e.handleClick})}class vs extends sa{constructor(e){super(new vs.Model),this._handleClick=()=>{const e=new Ue({commands:this._commands});this._popup&&this._popup.dispose(),_a.getModeInfo().sort((e,t)=>{const n=e.name||"",r=t.name||"";return n.localeCompare(r)}).forEach(t=>{if(0===t.mode.indexOf("brainf"))return;const n={insertSpaces:!0,name:t.name};e.addItem({command:"codemirror:change-mode",args:n})}),this._popup=Za({body:e,anchor:this,align:"left"})},this._popup=null,this._commands=e.commands,this.translator=e.translator||xo;const t=this.translator.load("jupyterlab");this.addClass($a),this.title.caption=t.__("Change text editor syntax highlighting")}render(){return this.model?jo.a.createElement(gs,{mode:this.model.mode,handleClick:this._handleClick}):null}}(vs||(vs={})).Model=class extends la{constructor(){super(...arguments),this._onMIMETypeChange=(e,t)=>{const n=this._mode,r=_a.findByMIME(t.newValue);this._mode=r.name||r.mode,this._triggerChange(n,this._mode)},this._mode="",this._editor=null}get mode(){return this._mode}get editor(){return this._editor}set editor(e){const t=this._editor;null!==t&&t.model.mimeTypeChanged.disconnect(this._onMIMETypeChange);const n=this._mode;if(this._editor=e,null===this._editor)this._mode="";else{const e=_a.findByMIME(this._editor.model.mimeType);this._mode=e.name||e.mode,this._editor.model.mimeTypeChanged.connect(this._onMIMETypeChange)}this._triggerChange(n,this._mode)}_triggerChange(e,t){e!==t&&this.stateChanged.emit(void 0)}};new s.Token("@jupyterlab/codemirror:ICodeMirror"),new class{constructor(e={},t){this.newInlineEditor=e=>(e.host.dataset.type="inline",new Ma(Object.assign(Object.assign({},e),{config:Object.assign(Object.assign({},this.inlineCodeMirrorConfig),e.config||{}),translator:this.translator}))),this.newDocumentEditor=e=>(e.host.dataset.type="document",new Ma(Object.assign(Object.assign({},e),{config:Object.assign(Object.assign({},this.documentCodeMirrorConfig),e.config||{}),translator:this.translator}))),this.translator=t||xo,this.inlineCodeMirrorConfig=Object.assign(Object.assign(Object.assign({},Ma.defaultConfig),{extraKeys:{"Cmd-Right":"goLineRight",End:"goLineRight","Cmd-Left":"goLineLeft",Tab:"indentMoreOrinsertTab","Shift-Tab":"indentLess","Cmd-/":"toggleComment","Ctrl-/":"toggleComment"}}),e),this.documentCodeMirrorConfig=Object.assign(Object.assign(Object.assign({},Ma.defaultConfig),{extraKeys:{Tab:"indentMoreOrinsertTab","Shift-Tab":"indentLess","Cmd-/":"toggleComment","Ctrl-/":"toggleComment","Shift-Enter":()=>{}},lineNumbers:!0,scrollPastEnd:!0}),e)}},new class{getMimeTypeByLanguage(e){const t=e.file_extension||"";return _a.findBest(e.codemirror_mode||{mimetype:e.mimetype,name:e.name,ext:[t.split(".").slice(-1)[0]]}).mime}getMimeTypeByFilePath(e){const t=_o.PathExt.extname(e);if(".ipy"===t)return"text/x-python";if(".md"===t)return"text/x-ipythongfm";return(_a.findByFileName(e)||_a.findBest("")).mime}};var _s=n(278),ys=n.n(_s);const bs=/(\$\$?|\\(?:begin|end)\{[a-z]*\*?\}|\\[{}$]|[{}]|(?:\n\s*)+|@@\d+@@|\\\\(?:\(|\)|\[|\]))/i;function Ms(e,t,n,r,i){let o=i.slice(e,t+1).join("").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");for(navigator&&"Microsoft Internet Explorer"===navigator.appName&&(o=o.replace(/(%[^\n]*)\n/g,"$1<br/>\n"));t>e;)i[t]="",t--;return i[e]="@@"+r.length+"@@",n&&(o=n(o)),r.push(o),i}var ws,Ls=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function xs(e){let{host:t,source:n,trusted:r,sanitizer:i,resolver:o,linkHandler:a,shouldTypeset:s,latexTypesetter:l,translator:c}=e;c=c||xo;const u=null==c?void 0:c.load("jupyterlab");let d,h=n;if(!n)return t.textContent="",Promise.resolve(void 0);if(r||(h=""+n,n=i.sanitize(n)),t.innerHTML=n,t.getElementsByTagName("script").length>0)if(r)ws.evalInnerHTMLScriptTags(t);else{const e=document.createElement("div"),n=document.createElement("pre");n.textContent=u.__("This HTML output contains inline scripts. Are you sure that you want to run arbitrary Javascript within your JupyterLab session?");const r=document.createElement("button");r.textContent=u.__("Run"),r.onclick=e=>{t.innerHTML=h,ws.evalInnerHTMLScriptTags(t),t.firstChild&&t.removeChild(t.firstChild)},e.appendChild(n),e.appendChild(r),t.insertBefore(e,t.firstChild)}return ws.handleDefaults(t,o),d=o?ws.handleUrls(t,o,a):Promise.resolve(void 0),d.then(()=>{s&&l&&l.typeset(t)})}async function Es(e){const{host:t,source:n}=e,r=Ls(e,["host","source"]);if(!n)return void(t.textContent="");const i=function(e){const t=[];let n,r=null,i=null,o=null,a=0;/`/.test(e)?(e=e.replace(/~/g,"~T").replace(/(^|[^\\])(`+)([^\n]*?[^`\n])\2(?!`)/gm,e=>e.replace(/\$/g,"~D")),n=e=>e.replace(/~([TD])/g,(e,t)=>"T"===t?"~":"$")):n=e=>e;let s=e.replace(/\r\n?/g,"\n").split(bs);for(let e=1,l=s.length;e<l;e+=2){const l=s[e];"@"===l.charAt(0)?(s[e]="@@"+t.length+"@@",t.push(l)):null!==r?l===i?a?o=e:(s=Ms(r,e,n,t,s),r=null,i=null,o=null):l.match(/\n.*\n/)?(null!==o&&(e=o,s=Ms(r,e,n,t,s)),r=null,i=null,o=null,a=0):"{"===l?a++:"}"===l&&a&&a--:"$"===l||"$$"===l?(r=e,i=l,a=0):"\\\\("===l||"\\\\["===l?(r=e,i="("===l.slice(-1)?"\\\\)":"\\\\]",a=0):"begin"===l.substr(1,5)&&(r=e,i="\\end"+l.substr(6),a=0)}return null!==r&&null!==o&&(s=Ms(r,o,n,t,s),r=null,i=null,o=null),{text:n(s.join("")),math:t}}(n);let o=await ws.renderMarked(i.text);var a,s;a=o,s=i.math,o=a.replace(/@@(\d+)@@/g,(e,t)=>{let n=s[t];return"\\\\("===n.substr(0,3)&&"\\\\)"===n.substr(n.length-3)?n="\\("+n.substring(3,n.length-3)+"\\)":"\\\\["===n.substr(0,3)&&"\\\\]"===n.substr(n.length-3)&&(n="\\["+n.substring(3,n.length-3)+"\\]"),n}),await xs(Object.assign({host:t,source:o},r)),ws.headerAnchors(t)}function Cs(e){const{host:t,sanitizer:n,source:r}=e,i=n.sanitize(ws.ansiSpan(r),{allowedTags:["span"]}),o=document.createElement("pre");return o.innerHTML=function(e){const t=new RegExp('(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}:\\/\\/|data:|www\\.)[^\\s\\u0000-\\u0020\\u007f-\\u009f"]{2,}[^\\s\\u0000-\\u0020\\u007f-\\u009f"\'(){}\\[\\],:;.!?]',"ug");return e.replace(t,e=>{const t=e.slice(-3),n=-1!==[">","<"].indexOf(t),r=n?t:"",i=n?e.length-3:e.length;return`<a href="${e.slice(0,i)}" rel="noopener" target="_blank">${e.slice(0,i)}</a>${r}`})}(i),t.appendChild(o),Promise.resolve(void 0)}!function(e){async function t(e,t,n){const r=e.getAttribute(t)||"",i=n.isLocal?n.isLocal(r):_o.URLExt.isLocal(r);if(r&&i)try{const i=await n.resolveUrl(r);let o=await n.getDownloadUrl(i);"data:"!==_o.URLExt.parse(o).protocol&&(o+=(/\?/.test(o)?"&":"?")+(new Date).getTime()),e.setAttribute(t,o)}catch(n){throw e.setAttribute(t,""),n}}function n(e,t,n){let r=e.getAttribute("href")||"";const i=t.isLocal?t.isLocal(r):_o.URLExt.isLocal(r);if(!r||!i)return Promise.resolve(void 0);const o=e.hash;if(o){if(o===r)return e.target="_self",Promise.resolve(void 0);r=r.replace(o,"")}return t.resolveUrl(r).then(r=>{const i=decodeURI(r);return n&&n.handleLink(e,i,o),t.getDownloadUrl(r)}).then(t=>{e.href=t+o}).catch(t=>{e.href=""})}e.evalInnerHTMLScriptTags=function(e){const t=Object(X.toArray)(e.getElementsByTagName("script"));for(const e of t){if(!e.parentNode)continue;const t=document.createElement("script"),n=e.attributes;for(let e=0,r=n.length;e<r;++e){const{name:r,value:i}=n[e];t.setAttribute(r,i)}t.textContent=e.textContent,e.parentNode.replaceChild(t,e)}},e.renderMarked=function(e){return function(){if(r)return;r=!0,Io.a.setOptions({gfm:!0,sanitize:!1,langPrefix:`cm-s-${Ma.defaultConfig.theme} language-`,highlight:(e,t,n)=>{const r=(e,t)=>(n&&n(e,t),t);return t?(_a.ensure(t).then(n=>{const i=document.createElement("div");if(!n)return console.error("No CodeMirror mode: "+t),r(null,e);try{return _a.run(e,n.mime,i),r(null,i.innerHTML)}catch(n){return console.error(`Failed to highlight ${t} code`,n),r(n,e)}}).catch(n=>(console.error("No CodeMirror mode: "+t),console.error("Require CodeMirror mode error: "+n),r(null,e))),e):r(null,e)}})}(),new Promise((t,n)=>{Io()(e,(e,r)=>{e?n(e):t(r)})})},e.handleDefaults=function(e,t){const n=e.getElementsByTagName("a");for(let e=0;e<n.length;e++){const r=n[e];if(!(r instanceof HTMLAnchorElement))continue;const i=r.href,o=t&&t.isLocal?t.isLocal(i):_o.URLExt.isLocal(i);r.target||(r.target=o?"_self":"_blank"),o||(r.rel="noopener")}const r=e.getElementsByTagName("img");for(let e=0;e<r.length;e++)r[e].alt||(r[e].alt="Image")},e.handleUrls=function(e,r,i){const o=[],a=e.querySelectorAll("*[src]");for(let e=0;e<a.length;e++)o.push(t(a[e],"src",r));const s=e.getElementsByTagName("a");for(let e=0;e<s.length;e++)o.push(n(s[e],r,i));const l=e.getElementsByTagName("link");for(let e=0;e<l.length;e++)o.push(t(l[e],"href",r));return Promise.all(o).then(()=>{})},e.headerAnchors=function(e){var t;const n=["h1","h2","h3","h4","h5","h6"];for(const r of n){const n=e.getElementsByTagName(r);for(let e=0;e<n.length;e++){const r=n[e];r.id=(null!==(t=r.textContent)&&void 0!==t?t:"").replace(/ /g,"-");const i=document.createElement("a");i.target="_self",i.textContent="¶",i.href="#"+r.id,i.classList.add("jp-InternalAnchorLink"),r.appendChild(i)}}};let r=!1;const i=["ansi-black","ansi-red","ansi-green","ansi-yellow","ansi-blue","ansi-magenta","ansi-cyan","ansi-white","ansi-black-intense","ansi-red-intense","ansi-green-intense","ansi-yellow-intense","ansi-blue-intense","ansi-magenta-intense","ansi-cyan-intense","ansi-white-intense"];function o(e,t,n,r,o,a,s){if(e){const l=[],c=[];r&&"number"==typeof t&&0<=t&&t<8&&(t+=8),a&&([t,n]=[n,t]),"number"==typeof t?l.push(i[t]+"-fg"):t.length?c.push(`color: rgb(${t})`):a&&l.push("ansi-default-inverse-fg"),"number"==typeof n?l.push(i[n]+"-bg"):n.length?c.push(`background-color: rgb(${n})`):a&&l.push("ansi-default-inverse-bg"),r&&l.push("ansi-bold"),o&&l.push("ansi-underline"),l.length||c.length?(s.push("<span"),l.length&&s.push(` class="${l.join(" ")}"`),c.length&&s.push(` style="${c.join("; ")}"`),s.push(">"),s.push(e),s.push("</span>")):s.push(e)}}function a(e){let t,n,r;const i=e.shift();if(2===i&&e.length>=3){if(t=e.shift(),n=e.shift(),r=e.shift(),[t,n,r].some(e=>e<0||255<e))throw new RangeError("Invalid range for RGB colors")}else{if(!(5===i&&e.length>=1))throw new RangeError("Invalid extended color specification");{const i=e.shift();if(i<0)throw new RangeError("Color index must be >= 0");if(i<16)return i;if(i<232)t=Math.floor((i-16)/36),t=t>0?55+40*t:0,n=Math.floor((i-16)%36/6),n=n>0?55+40*n:0,r=(i-16)%6,r=r>0?55+40*r:0;else{if(!(i<256))throw new RangeError("Color index must be < 256");t=n=r=10*(i-232)+8}}}return[t,n,r]}e.ansiSpan=function(e){const t=/\x1b\[(.*?)([@-~])/g;let n,r=[],i=[],s=!1,l=!1,c=!1;const u=[],d=[];let h=0;for(e=ys()(e),e+="[m";n=t.exec(e);){if("m"===n[2]){const e=n[1].split(";");for(let t=0;t<e.length;t++){const n=e[t];if(""===n)d.push(0);else{if(-1===n.search(/^\d+$/)){d.length=0;break}d.push(parseInt(n,10))}}}for(o(e.substring(h,n.index),r,i,s,l,c,u),h=t.lastIndex;d.length;){const e=d.shift();switch(e){case 0:r=i=[],s=!1,l=!1,c=!1;break;case 1:case 5:s=!0;break;case 4:l=!0;break;case 7:c=!0;break;case 21:case 22:s=!1;break;case 24:l=!1;break;case 27:c=!1;break;case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:r=e-30;break;case 38:try{r=a(d)}catch(e){d.length=0}break;case 39:r=[];break;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:i=e-40;break;case 48:try{i=a(d)}catch(e){d.length=0}break;case 49:i=[];break;case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:r=e-90+8;break;case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:i=e-100+8}}}return u.join("")}}(ws||(ws={}));class Ts extends Ce{constructor(e){super(),this.mimeType=e.mimeType,this.sanitizer=e.sanitizer,this.resolver=e.resolver,this.linkHandler=e.linkHandler,this.translator=e.translator||xo,this.latexTypesetter=e.latexTypesetter,this.node.dataset.mimeType=this.mimeType}async renderModel(e){for(;this.node.firstChild;)this.node.removeChild(this.node.firstChild);this.toggleClass("jp-mod-trusted",e.trusted),await this.render(e);const{fragment:t}=e.metadata;t&&this.setFragment(t)}setFragment(e){}}class Ss extends Ts{constructor(e){super(e),this.addClass("jp-RenderedHTMLCommon")}setFragment(e){let t;try{t=this.node.querySelector(e)}catch(e){console.warn("Unable to set URI fragment identifier.",e)}t&&t.scrollIntoView()}}class As extends Ss{constructor(e){super(e),this.addClass("jp-RenderedHTML")}render(e){return xs({host:this.node,source:String(e.data[this.mimeType]),trusted:e.trusted,resolver:this.resolver,sanitizer:this.sanitizer,linkHandler:this.linkHandler,shouldTypeset:this.isAttached,latexTypesetter:this.latexTypesetter,translator:this.translator})}onAfterAttach(e){this.latexTypesetter&&this.latexTypesetter.typeset(this.node)}}class ks extends Ts{constructor(e){super(e),this.addClass("jp-RenderedLatex")}render(e){return function(e){const{host:t,source:n,shouldTypeset:r,latexTypesetter:i}=e;return t.textContent=n,r&&i&&i.typeset(t),Promise.resolve(void 0)}({host:this.node,source:String(e.data[this.mimeType]),shouldTypeset:this.isAttached,latexTypesetter:this.latexTypesetter})}onAfterAttach(e){this.latexTypesetter&&this.latexTypesetter.typeset(this.node)}}class Ds extends Ts{constructor(e){super(e),this.addClass("jp-RenderedImage")}render(e){const t=e.metadata[this.mimeType];return function(e){const{host:t,mimeType:n,source:r,width:i,height:o,needsBackground:a,unconfined:s}=e;t.textContent="";const l=document.createElement("img");return l.src=`data:${n};base64,${r}`,"number"==typeof o&&(l.height=o),"number"==typeof i&&(l.width=i),"light"===a?l.classList.add("jp-needs-light-background"):"dark"===a&&l.classList.add("jp-needs-dark-background"),!0===s&&l.classList.add("jp-mod-unconfined"),t.appendChild(l),Promise.resolve(void 0)}({host:this.node,mimeType:this.mimeType,source:String(e.data[this.mimeType]),width:t&&t.width,height:t&&t.height,needsBackground:e.metadata.needs_background,unconfined:t&&t.unconfined})}}class Is extends Ss{constructor(e){super(e),this.addClass("jp-RenderedMarkdown")}render(e){return Es({host:this.node,source:String(e.data[this.mimeType]),trusted:e.trusted,resolver:this.resolver,sanitizer:this.sanitizer,linkHandler:this.linkHandler,shouldTypeset:this.isAttached,latexTypesetter:this.latexTypesetter,translator:this.translator})}onAfterAttach(e){this.latexTypesetter&&this.latexTypesetter.typeset(this.node)}}class Os extends Ts{constructor(e){super(e),this.addClass("jp-RenderedSVG")}render(e){const t=e.metadata[this.mimeType];return function(e){let{host:t,source:n,trusted:r,unconfined:i}=e;if(!n)return t.textContent="",Promise.resolve(void 0);if(!r)return t.textContent="Cannot display an untrusted SVG. Maybe you need to run the cell?",Promise.resolve(void 0);n.search("<svg[^>]+xmlns=[^>]+svg")<0&&(n=n.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg"'));const o=new Image;return o.src="data:image/svg+xml,"+encodeURIComponent(n),t.appendChild(o),!0===i&&t.classList.add("jp-mod-unconfined"),Promise.resolve()}({host:this.node,source:String(e.data[this.mimeType]),trusted:e.trusted,unconfined:t&&t.unconfined,translator:this.translator})}onAfterAttach(e){this.latexTypesetter&&this.latexTypesetter.typeset(this.node)}}class Ns extends Ts{constructor(e){super(e),this.addClass("jp-RenderedText")}render(e){return Cs({host:this.node,sanitizer:this.sanitizer,source:String(e.data[this.mimeType]),translator:this.translator})}}class zs extends Ts{constructor(e){super(e),this.addClass("jp-RenderedJavaScript")}render(e){const t=this.translator.load("jupyterlab");return Cs({host:this.node,sanitizer:this.sanitizer,source:t.__("JavaScript output is disabled in JupyterLab"),translator:this.translator})}}const js=[{safe:!0,mimeTypes:["text/html"],defaultRank:50,createRenderer:e=>new As(e)},{safe:!0,mimeTypes:["text/markdown"],defaultRank:60,createRenderer:e=>new Is(e)},{safe:!0,mimeTypes:["text/latex"],defaultRank:70,createRenderer:e=>new ks(e)},{safe:!1,mimeTypes:["image/svg+xml"],defaultRank:80,createRenderer:e=>new Os(e)},{safe:!0,mimeTypes:["image/bmp","image/png","image/jpeg","image/gif"],defaultRank:90,createRenderer:e=>new Ds(e)},{safe:!1,mimeTypes:["text/javascript","application/javascript"],defaultRank:110,createRenderer:e=>new zs(e)},{safe:!0,mimeTypes:["text/plain","application/vnd.jupyter.stdout","application/vnd.jupyter.stderr"],defaultRank:120,createRenderer:e=>new Ns(e)}];class Ps extends Ce{constructor(e,t){super(),this.mimeType=e.mimeType,this._manager=t}async renderModel(e){const t=e.data[this.mimeType],n=this._manager.get_model(t.model_id);if(!n)return this.node.textContent="Error creating widget: could not find model",this.addClass("jupyter-widgets"),Promise.resolve();try{let e=await n;await this._manager.display_model(null,e,{el:this.node})}catch(e){console.log("Error displaying widget"),console.log(e),this.node.textContent="Error displaying widget",this.addClass("jupyter-widgets")}}}class Rs extends P{constructor(e){super(),this.loader=e&&e.loader,this.renderMime=new Ao({initialFactories:js}),this.renderMime.addFactory({safe:!1,mimeTypes:["application/vnd.jupyter.widget-view+json"],createRenderer:e=>new Ps(e,this)},0)}display_view(e,t,n){return Promise.resolve(t).then(e=>(Ce.attach(e.pWidget,n.el),e.on("remove",()=>{console.log("View removed",e)}),e))}_get_comm_info(){return Promise.resolve({})}_create_comm(e,t,n,r,i){return Promise.resolve({on_close:()=>{},on_msg:()=>{},close:()=>{}})}loadClass(e,t,n){return new Promise((e,a)=>{"@jupyter-widgets/base"===t?e(r):"@jupyter-widgets/controls"===t?e(i):"@jupyter-widgets/output"===t?e(o):void 0!==this.loader?e(this.loader(t,n)):a(`Could not load module ${t}@${n}`)}).then(r=>r[e]?r[e]:Promise.reject(`Class ${e} not found in module ${t}@${n}`))}}n(489),n(498),n(509);n.p=window.__jupyter_widgets_assets_path__||n.p,""===getComputedStyle(document.documentElement).getPropertyValue("--jp-layout-color0")&&n(512);var Hs=n(515),Ys=n(267).v2.state,Vs=n(267).v2.view;let Fs=new Hs,Bs=Fs.compile(Ys),Us=Fs.compile(Vs);function Ws(e,t=document.documentElement){let n=t.querySelectorAll('script[type="application/vnd.jupyter.widget-state+json"]');for(let r=0;r!=n.length;++r)Gs(t,JSON.parse(n[r].innerHTML),e)}function Gs(e,t,n){Bs(t)||console.error("Model state has errors.",Bs.errors);let r=n();r.set_state(t).then((function(t){let n=e.querySelectorAll('script[type="application/vnd.jupyter.widget-view+json"]');for(let e=0;e!=n.length;++e){let i=n[e],o=JSON.parse(i.innerHTML);Us(o)||console.error("View state has errors.",Us.errors);let a=o.model_id,s=t.filter(e=>e.model_id==a)[0];if(void 0!==s){let e=i.previousElementSibling;e&&"img"===e.tagName&&e.classList.contains("jupyter-widget")&&i.parentElement.removeChild(e);let t=document.createElement("div");t.className="widget-subarea",i.parentElement.insertBefore(t,i),r.display_model(void 0,s,{el:t})}}}))}let qs="https://unpkg.com/";const Ks=document.getElementsByTagName("script");Array.prototype.forEach.call(Ks,e=>{qs=e.getAttribute("data-jupyter-widgets-cdn")||qs});n(553).version;window._jupyter_widget_embedder||(window._jupyter_widget_embedder=!0,window.addEventListener("load",()=>{Ws(()=>new Rs)}))}]); |