(self.webpackChunk_jupyter_widgets_jupyterlab_manager=self.webpackChunk_jupyter_widgets_jupyterlab_manager||[]).push([[272],{2272:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CONTROL_COMM_PROTOCOL_VERSION:()=>x,CONTROL_COMM_TARGET:()=>B,CONTROL_COMM_TIMEOUT:()=>F,DOMWidgetModel:()=>Z,DOMWidgetView:()=>oe,IJupyterWidgetRegistry:()=>de,JUPYTER_WIDGETS_VERSION:()=>k,JupyterPhosphorPanelWidget:()=>ne,JupyterPhosphorWidget:()=>te,LayoutModel:()=>se,LayoutView:()=>ae,ManagerBase:()=>T,PROTOCOL_VERSION:()=>P,StyleModel:()=>ue,StyleView:()=>ce,ViewList:()=>he,WidgetModel:()=>X,WidgetView:()=>ee,WrappedError:()=>_,assign:()=>p,base64ToBuffer:()=>C,bufferToBase64:()=>j,bufferToHex:()=>O,difference:()=>d,hexToBuffer:()=>E,isEqual:()=>f,put_buffers:()=>g,reject:()=>y,remove_buffers:()=>w,resolvePromisesDict:()=>v,serialize_state:()=>z,shims:()=>Q,unpack_models:()=>H,uuid:()=>m});var o,r=n(4782),i=n(1797),s=n(6141),a=n.n(s),l=n(861),u=n.n(l),c=(o=function(e,t){return(o=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(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(){return(h=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0&&r[r.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]0&&(n[o].buffers=i)})),{version_major:2,version_minor:0,state:n}}var L=function(){return(L=Object.assign||function(e){for(var t,n=1,o=arguments.length;n=0&&t.item(n)!==this;);return n>-1},K=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return I(t,e),t.prototype._removeElement=function(){this.undelegateEvents(),this.el.parentNode&&this.el.parentNode.removeChild(this.el)},t.prototype._setElement=function(e){this.el=e},t.prototype._setAttributes=function(e){for(var t in e)t in this.el?this.el[t]=e[t]:this.el.setAttribute(t,e[t])},t.prototype.delegate=function(e,t,n){"string"!=typeof t&&(n=t,t=null),void 0===this._domEvents&&(this._domEvents=[]);var o=this.el,r=t?function(e){for(var r=e.target||e.srcElement;r&&r!==o;r=r.parentNode)if(J.call(r,t))return e.delegateTarget=r,n.handleEvent?n.handleEvent(e):n(e)}:n;return this.el.addEventListener(e,r,!1),this._domEvents.push({eventName:e,handler:r,listener:n,selector:t}),r},t.prototype.undelegate=function(e,t,n){if("function"==typeof t&&(n=t,t=null),this.el&&this._domEvents)for(var o=this._domEvents.slice(),r=o.length;r--;){var i=o[r];!(i.eventName!==e||n&&i.listener!==n||t&&i.selector!==t)&&(this.el.removeEventListener(i.eventName,i.handler,!1),this._domEvents.splice(r,1))}return this},t.prototype.undelegateEvents=function(){if(this.el&&this._domEvents){for(var e=this._domEvents.length,t=0;t0){var u=n.callbacks||this.callbacks();if(this._pending_msgs>=1){switch(e){case"patch":this._msg_buffer=p(this._msg_buffer||{},l);break;case"update":case"create":this._msg_buffer=l;break;default:throw"unrecognized syncing method"}this._msg_buffer_callbacks=u}else{var c=this.send_sync_message(r,u);this.rememberLastUpdateFor(c)}}},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,o=Object.keys(e);n0&&r[r.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]=this._models.length||e[s]!==this._models[s]);s++);for(var a=s,l=this.views.splice(a,this.views.length-a),u=0;u