Comparing version 1.13.0 to 1.14.0
@@ -5,2 +5,8 @@ # Changelog | ||
## [1.14.0](https://github.com/johnwalley/allotment/compare/v1.13.0...v1.14.0) (2022-05-20) | ||
### Features | ||
- apply overflow hidden to panes ([#271](https://github.com/johnwalley/allotment/issues/271)) ([9d8d7c9](https://github.com/johnwalley/allotment/commit/9d8d7c918d1454a849c7c49968a1873259869246)) | ||
## [1.13.0](https://github.com/johnwalley/allotment/compare/v1.12.1...v1.13.0) (2022-05-03) | ||
@@ -7,0 +13,0 @@ |
@@ -7,2 +7,2 @@ "use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function t(t){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?e(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);s=!0);}catch(e){a=!0,r=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw r}}return o}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=h(e);if(t){var r=h(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function m(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}Object.defineProperty(exports,"__esModule",{value:!0});var y=require("react");function b(e){return e&&"object"===p(e)&&"default"in e?e:{default:e}}var g,S=b(y),z={exports:{}}; | ||
*/ | ||
g=z,function(){var e={}.hasOwnProperty;function t(){for(var n=[],i=0;i<arguments.length;i++){var r=arguments[i];if(r){var o=p(r);if("string"===o||"number"===o)n.push(r);else if(Array.isArray(r)){if(r.length){var s=t.apply(null,r);s&&n.push(s)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var a in r)e.call(r,a)&&r[a]&&n.push(a);else n.push(r.toString())}}return n.join(" ")}g.exports?(t.default=t,g.exports=t):window.classNames=t}();var w=z.exports,_=/^\s+|\s+$/g,I=/^[-+]0x[0-9a-f]+$/i,x=/^0b[01]+$/i,E=/^0o[0-7]+$/i,j=parseInt,V=Object.prototype.toString;function O(e){var t=p(e);return!!e&&("object"==t||"function"==t)}function k(e){return"symbol"==p(e)||function(e){return!!e&&"object"==p(e)}(e)&&"[object Symbol]"==V.call(e)}function P(e){if("number"==typeof e)return e;if(k(e))return NaN;if(O(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=O(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(_,"");var n=x.test(e);return n||E.test(e)?j(e.slice(2),n?2:8):I.test(e)?NaN:+e}var N=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=P(n))==n?n:0),void 0!==t&&(t=(t=P(t))==t?t:0),function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}(P(e),t,n)},L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},M={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",i=9007199254740991,r="[object Arguments]",o="[object Array]",s="[object Boolean]",a="[object Date]",u="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",h="[object Object]",v="[object Promise]",d="[object RegExp]",m="[object Set]",y="[object String]",b="[object Symbol]",g="[object WeakMap]",S="[object ArrayBuffer]",z="[object DataView]",w=/^\[object .+?Constructor\]$/,_=/^(?:0|[1-9]\d*)$/,I={};I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I[r]=I[o]=I[S]=I[s]=I[z]=I[a]=I[u]=I[l]=I[c]=I[f]=I[h]=I[d]=I[m]=I[y]=I[g]=!1;var x="object"==p(L)&&L&&L.Object===Object&&L,E="object"==("undefined"==typeof self?"undefined":p(self))&&self&&self.Object===Object&&self,j=x||E||Function("return this")(),V=t&&!t.nodeType&&t,O=V&&e&&!e.nodeType&&e,k=O&&O.exports===V,P=k&&x.process,N=function(){try{return P&&P.binding&&P.binding("util")}catch(e){}}(),M=N&&N.isTypedArray;function A(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}function T(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function D(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var C,R,F,H=Array.prototype,Y=Function.prototype,B=Object.prototype,$=j["__core-js_shared__"],G=Y.toString,X=B.hasOwnProperty,U=(C=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",W=B.toString,K=RegExp("^"+G.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),J=k?j.Buffer:void 0,q=j.Symbol,Q=j.Uint8Array,Z=B.propertyIsEnumerable,ee=H.splice,te=q?q.toStringTag:void 0,ne=Object.getOwnPropertySymbols,ie=J?J.isBuffer:void 0,re=(R=Object.keys,F=Object,function(e){return R(F(e))}),oe=Le(j,"DataView"),se=Le(j,"Map"),ae=Le(j,"Promise"),ue=Le(j,"Set"),le=Le(j,"WeakMap"),ce=Le(Object,"create"),fe=De(oe),he=De(se),ve=De(ae),de=De(ue),me=De(le),pe=q?q.prototype:void 0,ye=pe?pe.valueOf:void 0;function be(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Se(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ze(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Se;++t<n;)this.add(e[t])}function we(e){var t=this.__data__=new ge(e);this.size=t.size}function _e(e,t){var n=Fe(e),i=!n&&Re(e),r=!n&&!i&&He(e),o=!n&&!i&&!r&&Xe(e),s=n||i||r||o,a=s?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],u=a.length;for(var l in e)!t&&!X.call(e,l)||s&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Te(l,u))||a.push(l);return a}function Ie(e,t){for(var n=e.length;n--;)if(Ce(e[n][0],t))return n;return-1}function xe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":te&&te in Object(e)?function(e){var t=X.call(e,te),n=e[te];try{e[te]=void 0;var i=!0}catch(e){}var r=W.call(e);i&&(t?e[te]=n:delete e[te]);return r}(e):function(e){return W.call(e)}(e)}function Ee(e){return Ge(e)&&xe(e)==r}function je(e,t,n,i,l){return e===t||(null==e||null==t||!Ge(e)&&!Ge(t)?e!=e&&t!=t:function(e,t,n,i,l,v){var p=Fe(e),g=Fe(t),w=p?o:Ae(e),_=g?o:Ae(t),I=(w=w==r?h:w)==h,x=(_=_==r?h:_)==h,E=w==_;if(E&&He(e)){if(!He(t))return!1;p=!0,I=!1}if(E&&!I)return v||(v=new we),p||Xe(e)?ke(e,t,n,i,l,v):function(e,t,n,i,r,o,l){switch(n){case z:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case S:return!(e.byteLength!=t.byteLength||!o(new Q(e),new Q(t)));case s:case a:case f:return Ce(+e,+t);case u:return e.name==t.name&&e.message==t.message;case d:case y:return e==t+"";case c:var h=T;case m:var v=1&i;if(h||(h=D),e.size!=t.size&&!v)return!1;var p=l.get(e);if(p)return p==t;i|=2,l.set(e,t);var g=ke(h(e),h(t),i,r,o,l);return l.delete(e),g;case b:if(ye)return ye.call(e)==ye.call(t)}return!1}(e,t,w,n,i,l,v);if(!(1&n)){var j=I&&X.call(e,"__wrapped__"),V=x&&X.call(t,"__wrapped__");if(j||V){var O=j?e.value():e,k=V?t.value():t;return v||(v=new we),l(O,k,n,i,v)}}if(!E)return!1;return v||(v=new we),function(e,t,n,i,r,o){var s=1&n,a=Pe(e),u=a.length,l=Pe(t).length;if(u!=l&&!s)return!1;var c=u;for(;c--;){var f=a[c];if(!(s?f in t:X.call(t,f)))return!1}var h=o.get(e);if(h&&o.get(t))return h==t;var v=!0;o.set(e,t),o.set(t,e);var d=s;for(;++c<u;){var m=e[f=a[c]],p=t[f];if(i)var y=s?i(p,m,f,t,e,o):i(m,p,f,e,t,o);if(!(void 0===y?m===p||r(m,p,n,i,o):y)){v=!1;break}d||(d="constructor"==f)}if(v&&!d){var b=e.constructor,g=t.constructor;b==g||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof g&&g instanceof g||(v=!1)}return o.delete(e),o.delete(t),v}(e,t,n,i,l,v)}(e,t,n,i,je,l))}function Ve(e){return!(!$e(e)||function(e){return!!U&&U in e}(e))&&(Ye(e)?K:w).test(De(e))}function Oe(e){if(n=(t=e)&&t.constructor,i="function"==typeof n&&n.prototype||B,t!==i)return re(e);var t,n,i,r=[];for(var o in Object(e))X.call(e,o)&&"constructor"!=o&&r.push(o);return r}function ke(e,t,n,i,r,o){var s=1&n,a=e.length,u=t.length;if(a!=u&&!(s&&u>a))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var c=-1,f=!0,h=2&n?new ze:void 0;for(o.set(e,t),o.set(t,e);++c<a;){var v=e[c],d=t[c];if(i)var m=s?i(d,v,c,t,e,o):i(v,d,c,e,t,o);if(void 0!==m){if(m)continue;f=!1;break}if(h){if(!A(t,(function(e,t){if(s=t,!h.has(s)&&(v===e||r(v,e,n,i,o)))return h.push(t);var s}))){f=!1;break}}else if(v!==d&&!r(v,d,n,i,o)){f=!1;break}}return o.delete(e),o.delete(t),f}function Pe(e){return function(e,t,n){var i=t(e);return Fe(e)?i:function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}(i,n(e))}(e,Ue,Me)}function Ne(e,t){var n,i,r=e.__data__;return("string"==(i=p(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Le(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ve(n)?n:void 0}be.prototype.clear=function(){this.__data__=ce?ce(null):{},this.size=0},be.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},be.prototype.get=function(e){var t=this.__data__;if(ce){var i=t[e];return i===n?void 0:i}return X.call(t,e)?t[e]:void 0},be.prototype.has=function(e){var t=this.__data__;return ce?void 0!==t[e]:X.call(t,e)},be.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=ce&&void 0===t?n:t,this},ge.prototype.clear=function(){this.__data__=[],this.size=0},ge.prototype.delete=function(e){var t=this.__data__,n=Ie(t,e);return!(n<0)&&(n==t.length-1?t.pop():ee.call(t,n,1),--this.size,!0)},ge.prototype.get=function(e){var t=this.__data__,n=Ie(t,e);return n<0?void 0:t[n][1]},ge.prototype.has=function(e){return Ie(this.__data__,e)>-1},ge.prototype.set=function(e,t){var n=this.__data__,i=Ie(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Se.prototype.clear=function(){this.size=0,this.__data__={hash:new be,map:new(se||ge),string:new be}},Se.prototype.delete=function(e){var t=Ne(this,e).delete(e);return this.size-=t?1:0,t},Se.prototype.get=function(e){return Ne(this,e).get(e)},Se.prototype.has=function(e){return Ne(this,e).has(e)},Se.prototype.set=function(e,t){var n=Ne(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},ze.prototype.add=ze.prototype.push=function(e){return this.__data__.set(e,n),this},ze.prototype.has=function(e){return this.__data__.has(e)},we.prototype.clear=function(){this.__data__=new ge,this.size=0},we.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},we.prototype.get=function(e){return this.__data__.get(e)},we.prototype.has=function(e){return this.__data__.has(e)},we.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ge){var i=n.__data__;if(!se||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Se(i)}return n.set(e,t),this.size=n.size,this};var Me=ne?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var s=e[n];t(s,n,e)&&(o[r++]=s)}return o}(ne(e),(function(t){return Z.call(e,t)})))}:function(){return[]},Ae=xe;function Te(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||_.test(e))&&e>-1&&e%1==0&&e<t}function De(e){if(null!=e){try{return G.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ce(e,t){return e===t||e!=e&&t!=t}(oe&&Ae(new oe(new ArrayBuffer(1)))!=z||se&&Ae(new se)!=c||ae&&Ae(ae.resolve())!=v||ue&&Ae(new ue)!=m||le&&Ae(new le)!=g)&&(Ae=function(e){var t=xe(e),n=t==h?e.constructor:void 0,i=n?De(n):"";if(i)switch(i){case fe:return z;case he:return c;case ve:return v;case de:return m;case me:return g}return t});var Re=Ee(function(){return arguments}())?Ee:function(e){return Ge(e)&&X.call(e,"callee")&&!Z.call(e,"callee")},Fe=Array.isArray;var He=ie||function(){return!1};function Ye(e){if(!$e(e))return!1;var t=xe(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Be(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function $e(e){var t=p(e);return null!=e&&("object"==t||"function"==t)}function Ge(e){return null!=e&&"object"==p(e)}var Xe=M?function(e){return function(t){return e(t)}}(M):function(e){return Ge(e)&&Be(e.length)&&!!I[xe(e)]};function Ue(e){return null!=(t=e)&&Be(t.length)&&!Ye(t)?_e(e):Oe(e);var t}e.exports=function(e,t){return je(e,t)}}(M,M.exports);var A=M.exports;var T=function(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0};function D(e){void 0===e&&(e={});var t=e.onResize,n=y.useRef(void 0);n.current=t;var i=e.round||Math.round,r=y.useRef(),o=y.useState({width:void 0,height:void 0}),s=o[0],a=o[1],u=y.useRef(!1);y.useEffect((function(){return function(){u.current=!0}}),[]);var l,c,f,h,v,d,m=y.useRef({width:void 0,height:void 0}),p=(l=y.useCallback((function(t){return r.current&&r.current.box===e.box&&r.current.round===i||(r.current={box:e.box,round:i,instance:new ResizeObserver((function(t){var r=t[0],o="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",s=T(r,o,"inlineSize"),l=T(r,o,"blockSize"),c=s?i(s):void 0,f=l?i(l):void 0;if(m.current.width!==c||m.current.height!==f){var h={width:c,height:f};m.current.width=c,m.current.height=f,n.current?n.current(h):u.current||a(h)}}))}),r.current.instance.observe(t,{box:e.box}),function(){r.current&&r.current.instance.unobserve(t)}}),[e.box,i]),c=e.ref,f=y.useRef(null),h=y.useRef(null),v=y.useRef(),d=y.useCallback((function(){var e=null;f.current?e=f.current:c&&(e=c instanceof HTMLElement?c:c.current),h.current&&h.current.element===e&&h.current.reporter===d||(v.current&&(v.current(),v.current=null),h.current={reporter:d,element:e},e&&(v.current=l(e)))}),[c,l]),y.useEffect((function(){d()}),[d]),y.useCallback((function(e){f.current=e,d()}),[d]));return y.useMemo((function(){return{ref:p,width:s.width,height:s.height}}),[p,s?s.width:null,s?s.height:null])}var C="allotment-module_splitView__1rmCV",R="allotment-module_sashContainer__18Sm8",F="allotment-module_splitViewContainer__1ugsQ",H="allotment-module_splitViewView__KtCWc",Y="allotment-module_visible__phJMN",B="allotment-module_vertical__1ACDd",$="allotment-module_horizontal__Tf6PK",G="allotment-module_separatorBorder__3xs3c",X=!1,U=!1,W=void 0;"object"===("undefined"==typeof navigator?"undefined":p(navigator))&&(U=(W=navigator.userAgent).indexOf("Macintosh")>=0,X=(W.indexOf("Macintosh")>=0||W.indexOf("iPad")>=0||W.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0);var K=X,J=U,q=function(){function e(){v(this,e),this._size=void 0}return m(e,[{key:"getSize",value:function(){return this._size}},{key:"setSize",value:function(e){this._size=e}}]),e}();function Q(e,t){var n=e.length,i=n-t.length;return i>=0&&e.slice(i,n)===t}var Z={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function i(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,i,o,s){if("function"!=typeof i)throw new TypeError("The listener must be a function");var a=new r(i,o||e,s),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],a]:e._events[u].push(a):(e._events[u]=a,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(n=!1)),a.prototype.eventNames=function(){var e,i,r=[];if(0===this._eventsCount)return r;for(i in e=this._events)t.call(e,i)&&r.push(n?i.slice(1):i);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},a.prototype.listeners=function(e){var t=n?n+e:e,i=this._events[t];if(!i)return[];if(i.fn)return[i.fn];for(var r=0,o=i.length,s=new Array(o);r<o;r++)s[r]=i[r].fn;return s},a.prototype.listenerCount=function(e){var t=n?n+e:e,i=this._events[t];return i?i.fn?1:i.length:0},a.prototype.emit=function(e,t,i,r,o,s){var a=n?n+e:e;if(!this._events[a])return!1;var u,l,c=this._events[a],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,i),!0;case 4:return c.fn.call(c.context,t,i,r),!0;case 5:return c.fn.call(c.context,t,i,r,o),!0;case 6:return c.fn.call(c.context,t,i,r,o,s),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var h,v=c.length;for(l=0;l<v;l++)switch(c[l].once&&this.removeListener(e,c[l].fn,void 0,!0),f){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,t);break;case 3:c[l].fn.call(c[l].context,t,i);break;case 4:c[l].fn.call(c[l].context,t,i,r);break;default:if(!u)for(h=1,u=new Array(f-1);h<f;h++)u[h-1]=arguments[h];c[l].fn.apply(c[l].context,u)}}return!0},a.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},a.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},a.prototype.removeListener=function(e,t,i,r){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return s(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||r&&!a.once||i&&a.context!==i||s(this,o);else{for(var u=0,l=[],c=a.length;u<c;u++)(a[u].fn!==t||r&&!a[u].once||i&&a[u].context!==i)&&l.push(a[u]);l.length?this._events[o]=1===l.length?l[0]:l:s(this,o)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a}(Z);var ee=Z.exports;function te(e,t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),e.unshift(t))}function ne(e,t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),e.push(t))}function ie(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=Math.max(0,Math.ceil((t-e)/n)),r=new Array(i),o=-1;++o<i;)r[o]=e+o*n;return r}var re=/^\s+|\s+$/g,oe=/^[-+]0x[0-9a-f]+$/i,se=/^0b[01]+$/i,ae=/^0o[0-7]+$/i,ue=parseInt,le="object"==p(L)&&L&&L.Object===Object&&L,ce="object"==("undefined"==typeof self?"undefined":p(self))&&self&&self.Object===Object&&self,fe=le||ce||Function("return this")(),he=Object.prototype.toString,ve=Math.max,de=Math.min,me=function(){return fe.Date.now()};function pe(e){var t=p(e);return!!e&&("object"==t||"function"==t)}function ye(e){return"symbol"==p(e)||function(e){return!!e&&"object"==p(e)}(e)&&"[object Symbol]"==he.call(e)}function be(e){if("number"==typeof e)return e;if(ye(e))return NaN;if(pe(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=pe(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(re,"");var n=se.test(e);return n||ae.test(e)?ue(e.slice(2),n?2:8):oe.test(e)?NaN:+e}var ge,Se,ze=function(e,t,n){var i,r,o,s,a,u,l=0,c=!1,f=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=i,o=r;return i=r=void 0,l=t,s=e.apply(o,n)}function d(e){return l=e,a=setTimeout(p,t),c?v(e):s}function m(e){var n=e-u;return void 0===u||n>=t||n<0||f&&e-l>=o}function p(){var e=me();if(m(e))return y(e);a=setTimeout(p,function(e){var n=t-(e-u);return f?de(n,o-(e-l)):n}(e))}function y(e){return a=void 0,h&&i?v(e):(i=r=void 0,s)}function b(){var e=me(),n=m(e);if(i=arguments,r=this,u=e,n){if(void 0===a)return d(u);if(f)return a=setTimeout(p,t),v(u)}return void 0===a&&(a=setTimeout(p,t)),s}return t=be(t)||0,pe(n)&&(c=!!n.leading,o=(f="maxWait"in n)?ve(be(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),b.cancel=function(){void 0!==a&&clearTimeout(a),l=0,i=u=r=a=void 0},b.flush=function(){return void 0===a?s:y(me())},b},we="sash-module_sash__eG8e7",_e="sash-module_disabled__2MKAD",Ie="sash-module_mac__2RGfI",xe="sash-module_vertical__2Jemx",Ee="sash-module_minimum__2FeMz",je="sash-module_maximum__3xrwG",Ve="sash-module_horizontal__3-k3E",Oe="sash-module_hover__119X7",ke="sash-module_active__FozP9";!function(e){e.Vertical="VERTICAL",e.Horizontal="HORIZONTAL"}(ge||(ge={})),function(e){e.Disabled="DISABLED",e.Minimum="MINIMUM",e.Maximum="MAXIMUM",e.Enabled="ENABLED"}(Se||(Se={}));var Pe=K?20:8,Ne=new ee;var Le,Me,Ae,Te=function(e){u(n,ee);var t=c(n);function n(e,i,r){var o,s;return v(this,n),(s=t.call(this)).el=void 0,s.layoutProvider=void 0,s.orientation=void 0,s.size=void 0,s.hoverDelay=300,s.hoverDelayer=ze((function(e){return e.classList.add(Oe)}),s.hoverDelay),s._state=Se.Enabled,s.onPointerStart=function(e){var t=e.pageX,n=e.pageY,i={startX:t,currentX:t,startY:n,currentY:n};s.el.classList.add(ke),s.emit("start",i),s.el.setPointerCapture(e.pointerId);var r=function(e){e.preventDefault();var i={startX:t,currentX:e.pageX,startY:n,currentY:e.pageY};s.emit("change",i)};window.addEventListener("pointermove",r),window.addEventListener("pointerup",(function e(t){t.preventDefault(),s.el.classList.remove(ke),s.hoverDelayer.cancel(),s.emit("end"),s.el.releasePointerCapture(t.pointerId),window.removeEventListener("pointermove",r),window.removeEventListener("pointerup",e)}))},s.onPointerDoublePress=function(){s.emit("reset")},s.onMouseEnter=function(){s.el.classList.contains(ke)?(s.hoverDelayer.cancel(),s.el.classList.add(Oe)):s.hoverDelayer(s.el)},s.onMouseLeave=function(){s.hoverDelayer.cancel(),s.el.classList.remove(Oe)},s.el=document.createElement("div"),s.el.classList.add(we),s.el.dataset.testid="sash",e.append(s.el),J&&s.el.classList.add(Ie),s.el.addEventListener("pointerdown",s.onPointerStart),s.el.addEventListener("dblclick",s.onPointerDoublePress),s.el.addEventListener("mouseenter",s.onMouseEnter),s.el.addEventListener("mouseleave",s.onMouseLeave),"number"==typeof r.size?(s.size=r.size,r.orientation===ge.Vertical?s.el.style.width="".concat(s.size,"px"):s.el.style.height="".concat(s.size,"px")):(s.size=Pe,Ne.on("onDidChangeGlobalSize",(function(e){s.size=e,s.layout()}))),s.layoutProvider=i,s.orientation=null!==(o=r.orientation)&&void 0!==o?o:ge.Vertical,s.orientation===ge.Horizontal?(s.el.classList.add(Ve),s.el.classList.remove(xe)):(s.el.classList.remove(Ve),s.el.classList.add(xe)),s.layout(),s}return m(n,[{key:"state",get:function(){return this._state},set:function(e){this._state!==e&&(this.el.classList.toggle(_e,e===Se.Disabled),this.el.classList.toggle(Ee,e===Se.Minimum),this.el.classList.toggle(je,e===Se.Maximum),this._state=e,this.emit("enablementChange",e))}},{key:"layout",value:function(){if(this.orientation===ge.Vertical){var e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{var t=this.layoutProvider;this.el.style.top=t.getHorizontalSashTop(this)-this.size/2+"px",t.getHorizontalSashLeft&&(this.el.style.left=t.getHorizontalSashLeft(this)+"px"),t.getHorizontalSashWidth&&(this.el.style.width=t.getHorizontalSashWidth(this)+"px")}}},{key:"dispose",value:function(){var e=this;this.el.removeEventListener("pointerdown",this.onPointerStart),this.el.removeEventListener("dblclick",this.onPointerDoublePress),this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("mouseleave",(function(){return e.onMouseLeave})),this.el.remove()}}]),n}();(Me=Le||(Le={})).Distribute={type:"distribute"},Me.Split=function(e){return{type:"split",index:e}},Me.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}},function(e){e.Normal="NORMAL",e.Low="LOW",e.High="HIGH"}(Ae||(Ae={}));var De=function(){function e(t,n,i){v(this,e),this.container=void 0,this.view=void 0,this._size=void 0,this._cachedVisibleSize=void 0,this.container=t,this.view=n,this.container.classList.add(H),this.container.dataset.testid="split-view-view","number"==typeof i?(this._size=i,this._cachedVisibleSize=void 0,t.classList.add(Y)):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}return m(e,[{key:"size",get:function(){return this._size},set:function(e){this._size=e}},{key:"priority",get:function(){return this.view.priority}},{key:"snap",get:function(){return!!this.view.snap}},{key:"cachedVisibleSize",get:function(){return this._cachedVisibleSize}},{key:"visible",get:function(){return void 0===this._cachedVisibleSize}},{key:"setVisible",value:function(e,t){e!==this.visible&&(e?(this.size=N(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"==typeof t?t:this.size,this.size=0),this.container.classList.toggle("visible",e),this.view.setVisible&&this.view.setVisible(e))}},{key:"minimumSize",get:function(){return this.visible?this.view.minimumSize:0}},{key:"viewMinimumSize",get:function(){return this.view.minimumSize}},{key:"maximumSize",get:function(){return this.visible?this.view.maximumSize:0}},{key:"viewMaximumSize",get:function(){return this.view.maximumSize}},{key:"enabled",set:function(e){this.container.style.pointerEvents=e?"":"none"}},{key:"layout",value:function(e){this.layoutContainer(e),this.view.layout(this.size,e)}}]),e}(),Ce=function(e){u(n,De);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return m(n,[{key:"layoutContainer",value:function(e){this.container.style.left="".concat(e,"px"),this.container.style.width="".concat(this.size,"px")}}]),n}(),Re=function(e){u(n,De);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return m(n,[{key:"layoutContainer",value:function(e){this.container.style.top="".concat(e,"px"),this.container.style.height="".concat(this.size,"px")}}]),n}(),Fe=function(e){u(n,ee);var t=c(n);function n(e){var i,s,a,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2?arguments[2]:void 0;if(v(this,n),(a=t.call(this)).onDidChange=void 0,a.orientation=void 0,a.sashContainer=void 0,a.size=0,a.contentSize=0,a.proportions=void 0,a.viewItems=[],a.sashItems=[],a.sashDragState=void 0,a.proportionalLayout=void 0,a.getSashOrthogonalSize=void 0,a._startSnappingEnabled=!0,a._endSnappingEnabled=!0,a.onSashEnd=function(e){a.emit("sashchange",e),a.saveProportions();var t,n=o(a.viewItems);try{for(n.s();!(t=n.n()).done;){t.value.enabled=!0}}catch(e){n.e(e)}finally{n.f()}},a.orientation=null!==(i=u.orientation)&&void 0!==i?i:ge.Vertical,a.proportionalLayout=null===(s=u.proportionalLayout)||void 0===s||s,a.getSashOrthogonalSize=u.getSashOrthogonalSize,l&&(a.onDidChange=l),a.sashContainer=document.createElement("div"),a.sashContainer.classList.add(R),e.prepend(a.sashContainer),u.descriptor){a.size=u.descriptor.size;var c,f=o(u.descriptor.views.entries());try{for(f.s();!(c=f.n()).done;){var h=r(c.value,2),d=h[0],m=h[1],p=m.size,y=m.container,b=m.view;a.addView(y,b,p,d,!0)}}catch(e){f.e(e)}finally{f.f()}a.contentSize=a.viewItems.reduce((function(e,t){return e+t.size}),0),a.saveProportions()}return a}return m(n,[{key:"startSnappingEnabled",get:function(){return this._startSnappingEnabled},set:function(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}},{key:"endSnappingEnabled",get:function(){return this._endSnappingEnabled},set:function(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}},{key:"addView",value:function(e,t,n){var i,r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.viewItems.length,s=arguments.length>4?arguments[4]:void 0;i="number"==typeof n?n:"split"===n.type?this.getViewSize(n.index)/2:"invisible"===n.type?{cachedVisibleSize:n.cachedVisibleSize}:t.minimumSize;var a=this.orientation===ge.Vertical?new Re(e,t,i):new Ce(e,t,i);if(this.viewItems.splice(o,0,a),this.viewItems.length>1){var u=this.orientation===ge.Vertical?new Te(this.sashContainer,{getHorizontalSashTop:function(e){return r.getSashPosition(e)},getHorizontalSashWidth:this.getSashOrthogonalSize},{orientation:ge.Horizontal}):new Te(this.sashContainer,{getVerticalSashLeft:function(e){return r.getSashPosition(e)},getVerticalSashHeight:this.getSashOrthogonalSize},{orientation:ge.Vertical}),l=this.orientation===ge.Vertical?function(e){return{sash:u,start:e.startY,current:e.currentY}}:function(e){return{sash:u,start:e.startX,current:e.currentX}};u.on("start",(function(e){return r.onSashStart(l(e))})),u.on("change",(function(e){return r.onSashChange(l(e))})),u.on("end",(function(){return r.onSashEnd(r.sashItems.findIndex((function(e){return e.sash===u})))})),u.on("reset",(function(){var e=r.sashItems.findIndex((function(e){return e.sash===u})),t=ie(e,-1,-1),n=ie(e+1,r.viewItems.length),i=r.findFirstSnapIndex(t),o=r.findFirstSnapIndex(n);("number"!=typeof i||r.viewItems[i].visible)&&("number"!=typeof o||r.viewItems[o].visible)&&r.emit("sashreset",e)}));var c={sash:u};this.sashItems.splice(o-1,0,c)}s||this.relayout(),s||"number"==typeof n||"distribute"!==n.type||this.distributeViewSizes()}},{key:"removeView",value:function(e,t){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");var n=this.viewItems.splice(e,1)[0].view;if(this.viewItems.length>=1){var i=Math.max(e-1,0);this.sashItems.splice(i,1)[0].sash.dispose()}return this.relayout(),t&&"distribute"===t.type&&this.distributeViewSizes(),n}},{key:"moveView",value:function(e,t,n){var i=this.getViewCachedVisibleSize(t),r=void 0===i?this.getViewSize(t):Le.Invisible(i),o=this.removeView(t);this.addView(e,o,r,n)}},{key:"getViewCachedVisibleSize",value:function(e){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[e].cachedVisibleSize}},{key:"layout",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.size,n=Math.max(this.size,this.contentSize);if(this.size=t,this.proportions)for(var i=0;i<this.viewItems.length;i++){var r=this.viewItems[i];r.size=N(Math.round(this.proportions[i]*t),r.minimumSize,r.maximumSize)}else{var o=ie(0,this.viewItems.length),s=o.filter((function(t){return e.viewItems[t].priority===Ae.Low})),a=o.filter((function(t){return e.viewItems[t].priority===Ae.High}));this.resize(this.viewItems.length-1,t-n,void 0,s,a)}this.distributeEmptySpace(),this.layoutViews()}},{key:"resizeView",value:function(e,t){var n=this;if(!(e<0||e>=this.viewItems.length)){var r=ie(0,this.viewItems.length).filter((function(t){return t!==e})),o=[].concat(i(r.filter((function(e){return n.viewItems[e].priority===Ae.Low}))),[e]),s=r.filter((function(e){return n.viewItems[e].priority===Ae.High})),a=this.viewItems[e];t=Math.round(t),t=N(t,a.minimumSize,Math.min(a.maximumSize,this.size)),a.size=t,this.relayout(o,s)}}},{key:"resizeViews",value:function(e){for(var t=0;t<e.length;t++){var n=this.viewItems[t],i=e[t];i=Math.round(i),i=N(i,n.minimumSize,Math.min(n.maximumSize,this.size)),n.size=i}this.contentSize=this.viewItems.reduce((function(e,t){return e+t.size}),0),this.saveProportions(),this.layout(this.size)}},{key:"getViewSize",value:function(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}},{key:"isViewVisible",value:function(e){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[e].visible}},{key:"setViewVisible",value:function(e,t){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");this.viewItems[e].setVisible(t),this.distributeEmptySpace(e),this.layoutViews(),this.saveProportions()}},{key:"distributeViewSizes",value:function(){var e,t=this,n=[],i=0,r=o(this.viewItems);try{for(r.s();!(e=r.n()).done;){var s=e.value;s.maximumSize-s.minimumSize>0&&(n.push(s),i+=s.size)}}catch(e){r.e(e)}finally{r.f()}for(var a=Math.floor(i/n.length),u=0,l=n;u<l.length;u++){var c=l[u];c.size=N(a,c.minimumSize,c.maximumSize)}var f=ie(0,this.viewItems.length),h=f.filter((function(e){return t.viewItems[e].priority===Ae.Low})),v=f.filter((function(e){return t.viewItems[e].priority===Ae.High}));this.relayout(h,v)}},{key:"dispose",value:function(){this.sashItems.forEach((function(e){return e.sash.dispose()})),this.sashItems=[],this.sashContainer.remove()}},{key:"relayout",value:function(e,t){var n=this.viewItems.reduce((function(e,t){return e+t.size}),0);this.resize(this.viewItems.length-1,this.size-n,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}},{key:"onSashStart",value:function(e){var t=this,n=e.sash,i=e.start,r=this.sashItems.findIndex((function(e){return e.sash===n}));!function(e){var n,i,o=t.viewItems.map((function(e){return e.size})),s=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY,u=ie(r,-1,-1),l=ie(r+1,t.viewItems.length),c=u.reduce((function(e,n){return e+(t.viewItems[n].minimumSize-o[n])}),0),f=u.reduce((function(e,n){return e+(t.viewItems[n].viewMaximumSize-o[n])}),0),h=0===l.length?Number.POSITIVE_INFINITY:l.reduce((function(e,n){return e+(o[n]-t.viewItems[n].minimumSize)}),0),v=0===l.length?Number.NEGATIVE_INFINITY:l.reduce((function(e,n){return e+(o[n]-t.viewItems[n].viewMaximumSize)}),0);s=Math.max(c,v),a=Math.min(h,f);var d=t.findFirstSnapIndex(u),m=t.findFirstSnapIndex(l);if("number"==typeof d){var p=t.viewItems[d],y=Math.floor(p.viewMinimumSize/2);n={index:d,limitDelta:p.visible?s-y:s+y,size:p.size}}if("number"==typeof m){var b=t.viewItems[m],g=Math.floor(b.viewMinimumSize/2);i={index:m,limitDelta:b.visible?a+g:a-g,size:b.size}}t.sashDragState={start:e,current:e,index:r,sizes:o,minDelta:s,maxDelta:a,snapBefore:n,snapAfter:i}}(i)}},{key:"onSashChange",value:function(e){var t=e.current,n=this.sashDragState,i=n.index,r=n.start,o=n.sizes,s=n.minDelta,a=n.maxDelta,u=n.snapBefore,l=n.snapAfter;this.sashDragState.current=t;var c=t-r;this.resize(i,c,o,void 0,void 0,s,a,u,l),this.distributeEmptySpace(),this.layoutViews()}},{key:"getSashPosition",value:function(e){for(var t=0,n=0;n<this.sashItems.length;n++)if(t+=this.viewItems[n].size,this.sashItems[n].sash===e)return t;return 0}},{key:"resize",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.viewItems.map((function(e){return e.size})),r=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Number.NEGATIVE_INFINITY,u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:Number.POSITIVE_INFINITY,l=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0;if(e<0||e>=this.viewItems.length)return 0;var f=ie(e,-1,-1),h=ie(e+1,this.viewItems.length);if(s){var v,d=o(s);try{for(d.s();!(v=d.n()).done;){var m=v.value;te(f,m),te(h,m)}}catch(e){d.e(e)}finally{d.f()}}if(r){var p,y=o(r);try{for(y.s();!(p=y.n()).done;){var b=p.value;ne(f,b),ne(h,b)}}catch(e){y.e(e)}finally{y.f()}}var g=f.map((function(e){return n.viewItems[e]})),S=f.map((function(e){return i[e]})),z=h.map((function(e){return n.viewItems[e]})),w=h.map((function(e){return i[e]})),_=f.reduce((function(e,t){return e+(n.viewItems[t].minimumSize-i[t])}),0),I=f.reduce((function(e,t){return e+(n.viewItems[t].maximumSize-i[t])}),0),x=0===h.length?Number.POSITIVE_INFINITY:h.reduce((function(e,t){return e+(i[t]-n.viewItems[t].minimumSize)}),0),E=0===h.length?Number.NEGATIVE_INFINITY:h.reduce((function(e,t){return e+(i[t]-n.viewItems[t].maximumSize)}),0),j=Math.max(_,E,a),V=Math.min(x,I,u),O=!1;if(l){var k=this.viewItems[l.index],P=t>=l.limitDelta;O=P!==k.visible,k.setVisible(P,l.size)}if(!O&&c){var L=this.viewItems[c.index],M=t<c.limitDelta;O=M!==L.visible,L.setVisible(M,c.size)}if(O)return this.resize(e,t,i,r,s,a,u);for(var A=0,T=t=N(t,j,V);A<g.length;A++){var D=g[A],C=N(S[A]+T,D.minimumSize,D.maximumSize),R=C-S[A];T-=R,D.size=C}for(var F=0,H=t;F<z.length;F++){var Y=z[F],B=N(w[F]-H,Y.minimumSize,Y.maximumSize),$=B-w[F];H+=$,Y.size=B}return t}},{key:"distributeEmptySpace",value:function(e){var t=this.viewItems.reduce((function(e,t){return e+t.size}),0),n=this.size-t,i=ie(this.viewItems.length-1,-1,-1);"number"==typeof e&&ne(i,e);for(var r=0;0!==n&&r<i.length;r++){var o=this.viewItems[i[r]],s=N(o.size+n,o.minimumSize,o.maximumSize);n-=s-o.size,o.size=s}}},{key:"layoutViews",value:function(){var e;this.contentSize=this.viewItems.reduce((function(e,t){return e+t.size}),0);var t,n=0,i=o(this.viewItems);try{for(i.s();!(t=i.n()).done;){var r=t.value;r.layout(n),n+=r.size}}catch(e){i.e(e)}finally{i.f()}null===(e=this.onDidChange)||void 0===e||e.call(this,this.viewItems.map((function(e){return e.size}))),this.sashItems.forEach((function(e){return e.sash.layout()})),this.updateSashEnablement()}},{key:"saveProportions",value:function(){var e=this;this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map((function(t){return t.size/e.contentSize})))}},{key:"updateSashEnablement",value:function(){var e=!1,t=this.viewItems.map((function(t){return e=t.size-t.minimumSize>0||e}));e=!1;var n=this.viewItems.map((function(t){return e=t.maximumSize-t.size>0||e})),r=i(this.viewItems).reverse();e=!1;var o=r.map((function(t){return e=t.size-t.minimumSize>0||e})).reverse();e=!1;for(var s=r.map((function(t){return e=t.maximumSize-t.size>0||e})).reverse(),a=0,u=0;u<this.sashItems.length;u++){var l=this.sashItems[u].sash;a+=this.viewItems[u].size;var c=!(t[u]&&s[u+1]),f=!(n[u]&&o[u+1]);if(c&&f){var h=ie(u,-1,-1),v=ie(u+1,this.viewItems.length),d=this.findFirstSnapIndex(h),m=this.findFirstSnapIndex(v),p="number"==typeof d&&!this.viewItems[d].visible,y="number"==typeof m&&!this.viewItems[m].visible;p&&o[u]&&(a>0||this.startSnappingEnabled)?l.state=Se.Minimum:y&&t[u]&&(a<this.contentSize||this.endSnappingEnabled)?l.state=Se.Maximum:l.state=Se.Disabled}else l.state=c&&!f?Se.Minimum:!c&&f?Se.Maximum:Se.Enabled}}},{key:"findFirstSnapIndex",value:function(e){var t,n=o(e);try{for(n.s();!(t=n.n()).done;){var i=t.value,r=this.viewItems[i];if(r.visible&&r.snap)return i}}catch(e){n.e(e)}finally{n.f()}var s,a=o(e);try{for(a.s();!(s=a.n()).done;){var u=s.value,l=this.viewItems[u];if(l.visible&&l.maximumSize-l.minimumSize>0)return;if(!l.visible&&l.snap)return u}}catch(e){a.e(e)}finally{a.f()}}}]),n}(),He=function(){function e(t){v(this,e),this.size=void 0,this.size=t}return m(e,[{key:"getPreferredSize",value:function(){return this.size}}]),e}(),Ye=function(){function e(t,n){v(this,e),this.proportion=void 0,this.layoutService=void 0,this.proportion=t,this.layoutService=n}return m(e,[{key:"getPreferredSize",value:function(){return this.proportion*this.layoutService.getSize()}}]),e}(),Be=function(){function e(){v(this,e)}return m(e,[{key:"getPreferredSize",value:function(){}}]),e}(),$e=function(){function e(t,n){var i;if(v(this,e),this.minimumSize=0,this.maximumSize=Number.POSITIVE_INFINITY,this.element=void 0,this.priority=void 0,this.snap=void 0,this.layoutService=void 0,this.layoutStrategy=void 0,this.layoutService=t,this.element=n.element,this.minimumSize="number"==typeof n.minimumSize?n.minimumSize:30,this.maximumSize="number"==typeof n.maximumSize?n.maximumSize:Number.POSITIVE_INFINITY,"number"==typeof n.preferredSize)this.layoutStrategy=new He(n.preferredSize);else if("string"==typeof n.preferredSize){var r=n.preferredSize.trim();if(Q(r,"%")){var o=Number(r.slice(0,-1))/100;this.layoutStrategy=new Ye(o,this.layoutService)}else if(Q(r,"px")){var s=Number(r.slice(0,-2))/100;this.layoutStrategy=new He(s)}else if("number"==typeof Number.parseFloat(r)){var a=Number.parseFloat(r);this.layoutStrategy=new He(a)}else this.layoutStrategy=new Be}else this.layoutStrategy=new Be;this.priority=null!==(i=n.priority)&&void 0!==i?i:Ae.Normal,this.snap="boolean"==typeof n.snap&&n.snap}return m(e,[{key:"preferredSize",get:function(){return this.layoutStrategy.getPreferredSize()},set:function(e){if("number"==typeof e)this.layoutStrategy=new He(e);else if("string"==typeof e){var t=e.trim();if(Q(t,"%")){var n=Number(t.slice(0,-1))/100;this.layoutStrategy=new Ye(n,this.layoutService)}else if(Q(t,"px")){var i=Number(t.slice(0,-2))/100;this.layoutStrategy=new He(i)}else if("number"==typeof Number.parseFloat(t)){var r=Number.parseFloat(t);this.layoutStrategy=new He(r)}else this.layoutStrategy=new Be}else this.layoutStrategy=new Be}},{key:"layout",value:function(e){}}]),e}();function Ge(e){return void 0!==e.minSize||void 0!==e.maxSize||void 0!==e.preferredSize||void 0!==e.priority||void 0!==e.visible}var Xe=y.forwardRef((function(e,t){var n=e.className,i=e.children;return S.default.createElement("div",{ref:t,className:w(H,n)},i)}));Xe.displayName="Allotment.Pane";var Ue=y.forwardRef((function(e,n){var s=e.children,a=e.className,u=e.maxSize,l=void 0===u?1/0:u,c=e.minSize,f=void 0===c?30:c,h=e.proportionalLayout,v=void 0===h||h,d=e.sizes,m=e.defaultSizes,p=void 0===m?d:m,b=e.snap,g=void 0!==b&&b,z=e.vertical,_=void 0!==z&&z,I=e.onChange,x=e.onReset,E=e.onVisibleChange,j=y.useRef(null),V=y.useRef([]),O=y.useRef(new Map),k=y.useRef(null),P=y.useRef(new Map),N=y.useRef(new q),L=y.useRef([]),M=r(y.useState(!1),2),T=M[0],R=M[1];"production"!==process.env.NODE_ENV&&d&&console.warn("Prop sizes is deprecated. Please use defaultSizes instead.");var H=y.useMemo((function(){return S.default.Children.toArray(s).filter(S.default.isValidElement)}),[s]),Y=y.useCallback((function(e){var t,n,i=null===(t=L.current)||void 0===t?void 0:t[e];return"number"==typeof(null==i?void 0:i.preferredSize)&&(null===(n=k.current)||void 0===n||n.resizeView(e,Math.round(i.preferredSize)),!0)}),[]);return y.useImperativeHandle(n,(function(){return{reset:function(){if(x)x();else{var e;null===(e=k.current)||void 0===e||e.distributeViewSizes();for(var t=0;t<L.current.length;t++)Y(t)}},resize:function(e){var t;null===(t=k.current)||void 0===t||t.resizeViews(e)}}})),y.useLayoutEffect((function(){var e=!0;p&&P.current.size!==p.length&&(e=!1,console.warn("Expected ".concat(p.length," children based on defaultSizes but found ").concat(P.current.size))),e&&p&&(V.current=H.map((function(e){return e.key})));var n=t({orientation:_?ge.Vertical:ge.Horizontal,proportionalLayout:v},e&&p&&{descriptor:{size:p.reduce((function(e,t){return e+t}),0),views:p.map((function(e,n){var r,o,s,a,u=O.current.get(V.current[n]),c=new $e(N.current,t(t({element:document.createElement("div"),minimumSize:null!==(r=null==u?void 0:u.minSize)&&void 0!==r?r:f,maximumSize:null!==(o=null==u?void 0:u.maxSize)&&void 0!==o?o:l,priority:null!==(s=null==u?void 0:u.priority)&&void 0!==s?s:Ae.Normal},(null==u?void 0:u.preferredSize)&&{preferredSize:null==u?void 0:u.preferredSize}),{},{snap:null!==(a=null==u?void 0:u.snap)&&void 0!==a?a:g}));return L.current.push(c),{container:i(P.current.values())[n],size:e,view:c}}))}});k.current=new Fe(j.current,n,I),k.current.on("sashchange",(function(e){if(E&&k.current)for(var t=H.map((function(e){return e.key})),n=0;n<t.length;n++){var i=O.current.get(t[n]);void 0!==(null==i?void 0:i.visible)&&i.visible!==k.current.isViewVisible(n)&&E(n,k.current.isViewVisible(n))}})),k.current.on("sashreset",(function(e){if(x)x();else{var t;if(Y(e))return;if(Y(e+1))return;null===(t=k.current)||void 0===t||t.distributeViewSizes()}}));var r=k.current;return function(){r.dispose()}}),[]),y.useEffect((function(){if(T){var e=H.map((function(e){return e.key})),n=i(V.current),s=e.filter((function(e){return!V.current.includes(e)})),a=e.filter((function(e){return V.current.includes(e)})),u=V.current.map((function(t){return!e.includes(t)}));u.forEach((function(e,t){var i;e&&(null===(i=k.current)||void 0===i||i.removeView(t),n.splice(t,1),L.current.splice(t,1))}));var c,h=o(s);try{var v=function(){var i,r,o,s,a=c.value,u=O.current.get(a),h=new $e(N.current,t(t({element:document.createElement("div"),minimumSize:null!==(i=null==u?void 0:u.minSize)&&void 0!==i?i:f,maximumSize:null!==(r=null==u?void 0:u.maxSize)&&void 0!==r?r:l,priority:null!==(o=null==u?void 0:u.priority)&&void 0!==o?o:Ae.Normal},(null==u?void 0:u.preferredSize)&&{preferredSize:null==u?void 0:u.preferredSize}),{},{snap:null!==(s=null==u?void 0:u.snap)&&void 0!==s?s:g}));null===(d=k.current)||void 0===d||d.addView(P.current.get(a),h,Le.Distribute,e.findIndex((function(e){return e===a}))),n.splice(e.findIndex((function(e){return e===a})),0,a),L.current.splice(e.findIndex((function(e){return e===a})),0,h)};for(h.s();!(c=h.n()).done;){var d;v()}}catch(e){h.e(e)}finally{h.f()}for(;!A(e,n);){var m,p=o(e.entries());try{var y=function(){var e=r(m.value,2),t=e[0],i=e[1],o=n.findIndex((function(e){return e===i}));if(o!==t){null===(b=k.current)||void 0===b||b.moveView(P.current.get(i),o,t);var s=n[o];return n.splice(o,1),n.splice(t,0,s),"break"}};for(p.s();!(m=p.n()).done;){var b;if("break"===y())break}}catch(e){p.e(e)}finally{p.f()}}var S,z=o(s);try{var w=function(){var t=S.value,n=e.findIndex((function(e){return e===t})),i=L.current[n].preferredSize;void 0!==i&&(null===(_=k.current)||void 0===_||_.resizeView(n,i))};for(z.s();!(S=z.n()).done;){var _;w()}}catch(e){z.e(e)}finally{z.f()}for(var I=function(){var t=E[x],n=O.current.get(t),i=e.findIndex((function(e){return e===t}));n&&Ge(n)&&void 0!==n.visible&&(null===(j=k.current)||void 0===j?void 0:j.isViewVisible(i))!==n.visible&&(null===(M=k.current)||void 0===M||M.setViewVisible(i,n.visible))},x=0,E=[].concat(i(s),i(a));x<E.length;x++){var j,M;I()}var D,C=o(a);try{var R=function(){var t=D.value,n=O.current.get(t),i=e.findIndex((function(e){return e===t}));if(n&&Ge(n)){void 0!==n.preferredSize&&L.current[i].preferredSize!==n.preferredSize&&(L.current[i].preferredSize=n.preferredSize);var r=!1;void 0!==n.minSize&&L.current[i].minimumSize!==n.minSize&&(L.current[i].minimumSize=n.minSize,r=!0),void 0!==n.maxSize&&L.current[i].maximumSize!==n.maxSize&&(L.current[i].maximumSize=n.maxSize,r=!0),r&&(null===(F=k.current)||void 0===F||F.layout())}};for(C.s();!(D=C.n()).done;){var F;R()}}catch(e){C.e(e)}finally{C.f()}(s.length>0||u.length>0)&&(V.current=e)}}),[H,T,l,f,g]),y.useEffect((function(){k.current&&(k.current.onDidChange=I)}),[I]),D({ref:j,onResize:function(e){var t,n=e.width,i=e.height;n&&i&&(null===(t=k.current)||void 0===t||t.layout(_?i:n),N.current.setSize(_?i:n),R(!0))}}),y.useEffect((function(){K&&We(20)}),[]),S.default.createElement("div",{ref:j,className:w(C,_?B:$,G,a)},S.default.createElement("div",{className:F},S.default.Children.toArray(s).map((function(e){if(!S.default.isValidElement(e))return null;var t=e.key;return"Allotment.Pane"===e.type.displayName?(O.current.set(t,e.props),S.default.cloneElement(e,{key:t,ref:function(e){e?P.current.set(t,e):P.current.delete(t)}})):S.default.createElement(Xe,{key:t,ref:function(e){e?P.current.set(t,e):P.current.delete(t)}},e)}))))}));function We(e){var t=N(e,4,20),n=N(e,1,8);document.documentElement.style.setProperty("--sash-size",t+"px"),document.documentElement.style.setProperty("--sash-hover-size",n+"px"),function(e){Pe=e,Ne.emit("onDidChangeGlobalSize",e)}(t)}Ue.displayName="Allotment";var Ke=Object.assign(Ue,{Pane:Xe});exports.Allotment=Ke,exports.setSashSize=We; | ||
g=z,function(){var e={}.hasOwnProperty;function t(){for(var n=[],i=0;i<arguments.length;i++){var r=arguments[i];if(r){var o=p(r);if("string"===o||"number"===o)n.push(r);else if(Array.isArray(r)){if(r.length){var s=t.apply(null,r);s&&n.push(s)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var a in r)e.call(r,a)&&r[a]&&n.push(a);else n.push(r.toString())}}return n.join(" ")}g.exports?(t.default=t,g.exports=t):window.classNames=t}();var w=z.exports,_=/^\s+|\s+$/g,I=/^[-+]0x[0-9a-f]+$/i,x=/^0b[01]+$/i,E=/^0o[0-7]+$/i,j=parseInt,V=Object.prototype.toString;function O(e){var t=p(e);return!!e&&("object"==t||"function"==t)}function k(e){return"symbol"==p(e)||function(e){return!!e&&"object"==p(e)}(e)&&"[object Symbol]"==V.call(e)}function P(e){if("number"==typeof e)return e;if(k(e))return NaN;if(O(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=O(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(_,"");var n=x.test(e);return n||E.test(e)?j(e.slice(2),n?2:8):I.test(e)?NaN:+e}var N=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=P(n))==n?n:0),void 0!==t&&(t=(t=P(t))==t?t:0),function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}(P(e),t,n)},L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},M={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",i=9007199254740991,r="[object Arguments]",o="[object Array]",s="[object Boolean]",a="[object Date]",u="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",h="[object Object]",v="[object Promise]",d="[object RegExp]",m="[object Set]",y="[object String]",b="[object Symbol]",g="[object WeakMap]",S="[object ArrayBuffer]",z="[object DataView]",w=/^\[object .+?Constructor\]$/,_=/^(?:0|[1-9]\d*)$/,I={};I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I[r]=I[o]=I[S]=I[s]=I[z]=I[a]=I[u]=I[l]=I[c]=I[f]=I[h]=I[d]=I[m]=I[y]=I[g]=!1;var x="object"==p(L)&&L&&L.Object===Object&&L,E="object"==("undefined"==typeof self?"undefined":p(self))&&self&&self.Object===Object&&self,j=x||E||Function("return this")(),V=t&&!t.nodeType&&t,O=V&&e&&!e.nodeType&&e,k=O&&O.exports===V,P=k&&x.process,N=function(){try{return P&&P.binding&&P.binding("util")}catch(e){}}(),M=N&&N.isTypedArray;function A(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}function D(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function T(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var C,R,F,H=Array.prototype,Y=Function.prototype,B=Object.prototype,$=j["__core-js_shared__"],G=Y.toString,X=B.hasOwnProperty,U=(C=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",W=B.toString,K=RegExp("^"+G.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),J=k?j.Buffer:void 0,q=j.Symbol,Q=j.Uint8Array,Z=B.propertyIsEnumerable,ee=H.splice,te=q?q.toStringTag:void 0,ne=Object.getOwnPropertySymbols,ie=J?J.isBuffer:void 0,re=(R=Object.keys,F=Object,function(e){return R(F(e))}),oe=Le(j,"DataView"),se=Le(j,"Map"),ae=Le(j,"Promise"),ue=Le(j,"Set"),le=Le(j,"WeakMap"),ce=Le(Object,"create"),fe=Te(oe),he=Te(se),ve=Te(ae),de=Te(ue),me=Te(le),pe=q?q.prototype:void 0,ye=pe?pe.valueOf:void 0;function be(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Se(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ze(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Se;++t<n;)this.add(e[t])}function we(e){var t=this.__data__=new ge(e);this.size=t.size}function _e(e,t){var n=Fe(e),i=!n&&Re(e),r=!n&&!i&&He(e),o=!n&&!i&&!r&&Xe(e),s=n||i||r||o,a=s?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],u=a.length;for(var l in e)!t&&!X.call(e,l)||s&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||De(l,u))||a.push(l);return a}function Ie(e,t){for(var n=e.length;n--;)if(Ce(e[n][0],t))return n;return-1}function xe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":te&&te in Object(e)?function(e){var t=X.call(e,te),n=e[te];try{e[te]=void 0;var i=!0}catch(e){}var r=W.call(e);i&&(t?e[te]=n:delete e[te]);return r}(e):function(e){return W.call(e)}(e)}function Ee(e){return Ge(e)&&xe(e)==r}function je(e,t,n,i,l){return e===t||(null==e||null==t||!Ge(e)&&!Ge(t)?e!=e&&t!=t:function(e,t,n,i,l,v){var p=Fe(e),g=Fe(t),w=p?o:Ae(e),_=g?o:Ae(t),I=(w=w==r?h:w)==h,x=(_=_==r?h:_)==h,E=w==_;if(E&&He(e)){if(!He(t))return!1;p=!0,I=!1}if(E&&!I)return v||(v=new we),p||Xe(e)?ke(e,t,n,i,l,v):function(e,t,n,i,r,o,l){switch(n){case z:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case S:return!(e.byteLength!=t.byteLength||!o(new Q(e),new Q(t)));case s:case a:case f:return Ce(+e,+t);case u:return e.name==t.name&&e.message==t.message;case d:case y:return e==t+"";case c:var h=D;case m:var v=1&i;if(h||(h=T),e.size!=t.size&&!v)return!1;var p=l.get(e);if(p)return p==t;i|=2,l.set(e,t);var g=ke(h(e),h(t),i,r,o,l);return l.delete(e),g;case b:if(ye)return ye.call(e)==ye.call(t)}return!1}(e,t,w,n,i,l,v);if(!(1&n)){var j=I&&X.call(e,"__wrapped__"),V=x&&X.call(t,"__wrapped__");if(j||V){var O=j?e.value():e,k=V?t.value():t;return v||(v=new we),l(O,k,n,i,v)}}if(!E)return!1;return v||(v=new we),function(e,t,n,i,r,o){var s=1&n,a=Pe(e),u=a.length,l=Pe(t).length;if(u!=l&&!s)return!1;var c=u;for(;c--;){var f=a[c];if(!(s?f in t:X.call(t,f)))return!1}var h=o.get(e);if(h&&o.get(t))return h==t;var v=!0;o.set(e,t),o.set(t,e);var d=s;for(;++c<u;){var m=e[f=a[c]],p=t[f];if(i)var y=s?i(p,m,f,t,e,o):i(m,p,f,e,t,o);if(!(void 0===y?m===p||r(m,p,n,i,o):y)){v=!1;break}d||(d="constructor"==f)}if(v&&!d){var b=e.constructor,g=t.constructor;b==g||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof g&&g instanceof g||(v=!1)}return o.delete(e),o.delete(t),v}(e,t,n,i,l,v)}(e,t,n,i,je,l))}function Ve(e){return!(!$e(e)||function(e){return!!U&&U in e}(e))&&(Ye(e)?K:w).test(Te(e))}function Oe(e){if(n=(t=e)&&t.constructor,i="function"==typeof n&&n.prototype||B,t!==i)return re(e);var t,n,i,r=[];for(var o in Object(e))X.call(e,o)&&"constructor"!=o&&r.push(o);return r}function ke(e,t,n,i,r,o){var s=1&n,a=e.length,u=t.length;if(a!=u&&!(s&&u>a))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var c=-1,f=!0,h=2&n?new ze:void 0;for(o.set(e,t),o.set(t,e);++c<a;){var v=e[c],d=t[c];if(i)var m=s?i(d,v,c,t,e,o):i(v,d,c,e,t,o);if(void 0!==m){if(m)continue;f=!1;break}if(h){if(!A(t,(function(e,t){if(s=t,!h.has(s)&&(v===e||r(v,e,n,i,o)))return h.push(t);var s}))){f=!1;break}}else if(v!==d&&!r(v,d,n,i,o)){f=!1;break}}return o.delete(e),o.delete(t),f}function Pe(e){return function(e,t,n){var i=t(e);return Fe(e)?i:function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}(i,n(e))}(e,Ue,Me)}function Ne(e,t){var n,i,r=e.__data__;return("string"==(i=p(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Le(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ve(n)?n:void 0}be.prototype.clear=function(){this.__data__=ce?ce(null):{},this.size=0},be.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},be.prototype.get=function(e){var t=this.__data__;if(ce){var i=t[e];return i===n?void 0:i}return X.call(t,e)?t[e]:void 0},be.prototype.has=function(e){var t=this.__data__;return ce?void 0!==t[e]:X.call(t,e)},be.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=ce&&void 0===t?n:t,this},ge.prototype.clear=function(){this.__data__=[],this.size=0},ge.prototype.delete=function(e){var t=this.__data__,n=Ie(t,e);return!(n<0)&&(n==t.length-1?t.pop():ee.call(t,n,1),--this.size,!0)},ge.prototype.get=function(e){var t=this.__data__,n=Ie(t,e);return n<0?void 0:t[n][1]},ge.prototype.has=function(e){return Ie(this.__data__,e)>-1},ge.prototype.set=function(e,t){var n=this.__data__,i=Ie(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Se.prototype.clear=function(){this.size=0,this.__data__={hash:new be,map:new(se||ge),string:new be}},Se.prototype.delete=function(e){var t=Ne(this,e).delete(e);return this.size-=t?1:0,t},Se.prototype.get=function(e){return Ne(this,e).get(e)},Se.prototype.has=function(e){return Ne(this,e).has(e)},Se.prototype.set=function(e,t){var n=Ne(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},ze.prototype.add=ze.prototype.push=function(e){return this.__data__.set(e,n),this},ze.prototype.has=function(e){return this.__data__.has(e)},we.prototype.clear=function(){this.__data__=new ge,this.size=0},we.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},we.prototype.get=function(e){return this.__data__.get(e)},we.prototype.has=function(e){return this.__data__.has(e)},we.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ge){var i=n.__data__;if(!se||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Se(i)}return n.set(e,t),this.size=n.size,this};var Me=ne?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var s=e[n];t(s,n,e)&&(o[r++]=s)}return o}(ne(e),(function(t){return Z.call(e,t)})))}:function(){return[]},Ae=xe;function De(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||_.test(e))&&e>-1&&e%1==0&&e<t}function Te(e){if(null!=e){try{return G.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ce(e,t){return e===t||e!=e&&t!=t}(oe&&Ae(new oe(new ArrayBuffer(1)))!=z||se&&Ae(new se)!=c||ae&&Ae(ae.resolve())!=v||ue&&Ae(new ue)!=m||le&&Ae(new le)!=g)&&(Ae=function(e){var t=xe(e),n=t==h?e.constructor:void 0,i=n?Te(n):"";if(i)switch(i){case fe:return z;case he:return c;case ve:return v;case de:return m;case me:return g}return t});var Re=Ee(function(){return arguments}())?Ee:function(e){return Ge(e)&&X.call(e,"callee")&&!Z.call(e,"callee")},Fe=Array.isArray;var He=ie||function(){return!1};function Ye(e){if(!$e(e))return!1;var t=xe(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Be(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function $e(e){var t=p(e);return null!=e&&("object"==t||"function"==t)}function Ge(e){return null!=e&&"object"==p(e)}var Xe=M?function(e){return function(t){return e(t)}}(M):function(e){return Ge(e)&&Be(e.length)&&!!I[xe(e)]};function Ue(e){return null!=(t=e)&&Be(t.length)&&!Ye(t)?_e(e):Oe(e);var t}e.exports=function(e,t){return je(e,t)}}(M,M.exports);var A=M.exports;var D=function(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0};function T(e){void 0===e&&(e={});var t=e.onResize,n=y.useRef(void 0);n.current=t;var i=e.round||Math.round,r=y.useRef(),o=y.useState({width:void 0,height:void 0}),s=o[0],a=o[1],u=y.useRef(!1);y.useEffect((function(){return u.current=!1,function(){u.current=!0}}),[]);var l,c,f,h,v,d,m,p=y.useRef({width:void 0,height:void 0}),b=(l=y.useCallback((function(t){return r.current&&r.current.box===e.box&&r.current.round===i||(r.current={box:e.box,round:i,instance:new ResizeObserver((function(t){var r=t[0],o="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",s=D(r,o,"inlineSize"),l=D(r,o,"blockSize"),c=s?i(s):void 0,f=l?i(l):void 0;if(p.current.width!==c||p.current.height!==f){var h={width:c,height:f};p.current.width=c,p.current.height=f,n.current?n.current(h):u.current||a(h)}}))}),r.current.instance.observe(t,{box:e.box}),function(){r.current&&r.current.instance.unobserve(t)}}),[e.box,i]),c=e.ref,f=y.useRef(null),h=y.useRef(null),v=y.useRef(),d=c&&"current"in c?c.current:null,m=y.useCallback((function(){var e=null;f.current?e=f.current:c&&(e=c instanceof Element?c:c.current),h.current&&h.current.element===e&&h.current.reporter===m||(v.current&&(v.current(),v.current=null),h.current={reporter:m,element:e},e&&(v.current=l(e)))}),[c,d,l]),y.useEffect((function(){m()}),[m]),y.useCallback((function(e){f.current=e,m()}),[m]));return y.useMemo((function(){return{ref:b,width:s.width,height:s.height}}),[b,s?s.width:null,s?s.height:null])}var C="allotment-module_splitView__1rmCV",R="allotment-module_sashContainer__18Sm8",F="allotment-module_splitViewContainer__1ugsQ",H="allotment-module_splitViewView__KtCWc",Y="allotment-module_visible__phJMN",B="allotment-module_vertical__1ACDd",$="allotment-module_horizontal__Tf6PK",G="allotment-module_separatorBorder__3xs3c",X=!1,U=!1,W=void 0;"object"===("undefined"==typeof navigator?"undefined":p(navigator))&&(U=(W=navigator.userAgent).indexOf("Macintosh")>=0,X=(W.indexOf("Macintosh")>=0||W.indexOf("iPad")>=0||W.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0);var K=X,J=U,q=function(){function e(){v(this,e),this._size=void 0}return m(e,[{key:"getSize",value:function(){return this._size}},{key:"setSize",value:function(e){this._size=e}}]),e}();function Q(e,t){var n=e.length,i=n-t.length;return i>=0&&e.slice(i,n)===t}var Z={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function i(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,i,o,s){if("function"!=typeof i)throw new TypeError("The listener must be a function");var a=new r(i,o||e,s),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],a]:e._events[u].push(a):(e._events[u]=a,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(n=!1)),a.prototype.eventNames=function(){var e,i,r=[];if(0===this._eventsCount)return r;for(i in e=this._events)t.call(e,i)&&r.push(n?i.slice(1):i);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},a.prototype.listeners=function(e){var t=n?n+e:e,i=this._events[t];if(!i)return[];if(i.fn)return[i.fn];for(var r=0,o=i.length,s=new Array(o);r<o;r++)s[r]=i[r].fn;return s},a.prototype.listenerCount=function(e){var t=n?n+e:e,i=this._events[t];return i?i.fn?1:i.length:0},a.prototype.emit=function(e,t,i,r,o,s){var a=n?n+e:e;if(!this._events[a])return!1;var u,l,c=this._events[a],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,i),!0;case 4:return c.fn.call(c.context,t,i,r),!0;case 5:return c.fn.call(c.context,t,i,r,o),!0;case 6:return c.fn.call(c.context,t,i,r,o,s),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var h,v=c.length;for(l=0;l<v;l++)switch(c[l].once&&this.removeListener(e,c[l].fn,void 0,!0),f){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,t);break;case 3:c[l].fn.call(c[l].context,t,i);break;case 4:c[l].fn.call(c[l].context,t,i,r);break;default:if(!u)for(h=1,u=new Array(f-1);h<f;h++)u[h-1]=arguments[h];c[l].fn.apply(c[l].context,u)}}return!0},a.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},a.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},a.prototype.removeListener=function(e,t,i,r){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return s(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||r&&!a.once||i&&a.context!==i||s(this,o);else{for(var u=0,l=[],c=a.length;u<c;u++)(a[u].fn!==t||r&&!a[u].once||i&&a[u].context!==i)&&l.push(a[u]);l.length?this._events[o]=1===l.length?l[0]:l:s(this,o)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a}(Z);var ee=Z.exports;function te(e,t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),e.unshift(t))}function ne(e,t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),e.push(t))}function ie(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=Math.max(0,Math.ceil((t-e)/n)),r=new Array(i),o=-1;++o<i;)r[o]=e+o*n;return r}var re=/^\s+|\s+$/g,oe=/^[-+]0x[0-9a-f]+$/i,se=/^0b[01]+$/i,ae=/^0o[0-7]+$/i,ue=parseInt,le="object"==p(L)&&L&&L.Object===Object&&L,ce="object"==("undefined"==typeof self?"undefined":p(self))&&self&&self.Object===Object&&self,fe=le||ce||Function("return this")(),he=Object.prototype.toString,ve=Math.max,de=Math.min,me=function(){return fe.Date.now()};function pe(e){var t=p(e);return!!e&&("object"==t||"function"==t)}function ye(e){return"symbol"==p(e)||function(e){return!!e&&"object"==p(e)}(e)&&"[object Symbol]"==he.call(e)}function be(e){if("number"==typeof e)return e;if(ye(e))return NaN;if(pe(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=pe(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(re,"");var n=se.test(e);return n||ae.test(e)?ue(e.slice(2),n?2:8):oe.test(e)?NaN:+e}var ge,Se,ze=function(e,t,n){var i,r,o,s,a,u,l=0,c=!1,f=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=i,o=r;return i=r=void 0,l=t,s=e.apply(o,n)}function d(e){return l=e,a=setTimeout(p,t),c?v(e):s}function m(e){var n=e-u;return void 0===u||n>=t||n<0||f&&e-l>=o}function p(){var e=me();if(m(e))return y(e);a=setTimeout(p,function(e){var n=t-(e-u);return f?de(n,o-(e-l)):n}(e))}function y(e){return a=void 0,h&&i?v(e):(i=r=void 0,s)}function b(){var e=me(),n=m(e);if(i=arguments,r=this,u=e,n){if(void 0===a)return d(u);if(f)return a=setTimeout(p,t),v(u)}return void 0===a&&(a=setTimeout(p,t)),s}return t=be(t)||0,pe(n)&&(c=!!n.leading,o=(f="maxWait"in n)?ve(be(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),b.cancel=function(){void 0!==a&&clearTimeout(a),l=0,i=u=r=a=void 0},b.flush=function(){return void 0===a?s:y(me())},b},we="sash-module_sash__eG8e7",_e="sash-module_disabled__2MKAD",Ie="sash-module_mac__2RGfI",xe="sash-module_vertical__2Jemx",Ee="sash-module_minimum__2FeMz",je="sash-module_maximum__3xrwG",Ve="sash-module_horizontal__3-k3E",Oe="sash-module_hover__119X7",ke="sash-module_active__FozP9";!function(e){e.Vertical="VERTICAL",e.Horizontal="HORIZONTAL"}(ge||(ge={})),function(e){e.Disabled="DISABLED",e.Minimum="MINIMUM",e.Maximum="MAXIMUM",e.Enabled="ENABLED"}(Se||(Se={}));var Pe=K?20:8,Ne=new ee;var Le,Me,Ae,De=function(e){u(n,ee);var t=c(n);function n(e,i,r){var o,s;return v(this,n),(s=t.call(this)).el=void 0,s.layoutProvider=void 0,s.orientation=void 0,s.size=void 0,s.hoverDelay=300,s.hoverDelayer=ze((function(e){return e.classList.add(Oe)}),s.hoverDelay),s._state=Se.Enabled,s.onPointerStart=function(e){var t=e.pageX,n=e.pageY,i={startX:t,currentX:t,startY:n,currentY:n};s.el.classList.add(ke),s.emit("start",i),s.el.setPointerCapture(e.pointerId);var r=function(e){e.preventDefault();var i={startX:t,currentX:e.pageX,startY:n,currentY:e.pageY};s.emit("change",i)};window.addEventListener("pointermove",r),window.addEventListener("pointerup",(function e(t){t.preventDefault(),s.el.classList.remove(ke),s.hoverDelayer.cancel(),s.emit("end"),s.el.releasePointerCapture(t.pointerId),window.removeEventListener("pointermove",r),window.removeEventListener("pointerup",e)}))},s.onPointerDoublePress=function(){s.emit("reset")},s.onMouseEnter=function(){s.el.classList.contains(ke)?(s.hoverDelayer.cancel(),s.el.classList.add(Oe)):s.hoverDelayer(s.el)},s.onMouseLeave=function(){s.hoverDelayer.cancel(),s.el.classList.remove(Oe)},s.el=document.createElement("div"),s.el.classList.add(we),s.el.dataset.testid="sash",e.append(s.el),J&&s.el.classList.add(Ie),s.el.addEventListener("pointerdown",s.onPointerStart),s.el.addEventListener("dblclick",s.onPointerDoublePress),s.el.addEventListener("mouseenter",s.onMouseEnter),s.el.addEventListener("mouseleave",s.onMouseLeave),"number"==typeof r.size?(s.size=r.size,r.orientation===ge.Vertical?s.el.style.width="".concat(s.size,"px"):s.el.style.height="".concat(s.size,"px")):(s.size=Pe,Ne.on("onDidChangeGlobalSize",(function(e){s.size=e,s.layout()}))),s.layoutProvider=i,s.orientation=null!==(o=r.orientation)&&void 0!==o?o:ge.Vertical,s.orientation===ge.Horizontal?(s.el.classList.add(Ve),s.el.classList.remove(xe)):(s.el.classList.remove(Ve),s.el.classList.add(xe)),s.layout(),s}return m(n,[{key:"state",get:function(){return this._state},set:function(e){this._state!==e&&(this.el.classList.toggle(_e,e===Se.Disabled),this.el.classList.toggle(Ee,e===Se.Minimum),this.el.classList.toggle(je,e===Se.Maximum),this._state=e,this.emit("enablementChange",e))}},{key:"layout",value:function(){if(this.orientation===ge.Vertical){var e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{var t=this.layoutProvider;this.el.style.top=t.getHorizontalSashTop(this)-this.size/2+"px",t.getHorizontalSashLeft&&(this.el.style.left=t.getHorizontalSashLeft(this)+"px"),t.getHorizontalSashWidth&&(this.el.style.width=t.getHorizontalSashWidth(this)+"px")}}},{key:"dispose",value:function(){var e=this;this.el.removeEventListener("pointerdown",this.onPointerStart),this.el.removeEventListener("dblclick",this.onPointerDoublePress),this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("mouseleave",(function(){return e.onMouseLeave})),this.el.remove()}}]),n}();(Me=Le||(Le={})).Distribute={type:"distribute"},Me.Split=function(e){return{type:"split",index:e}},Me.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}},function(e){e.Normal="NORMAL",e.Low="LOW",e.High="HIGH"}(Ae||(Ae={}));var Te=function(){function e(t,n,i){v(this,e),this.container=void 0,this.view=void 0,this._size=void 0,this._cachedVisibleSize=void 0,this.container=t,this.view=n,this.container.classList.add(H),this.container.dataset.testid="split-view-view","number"==typeof i?(this._size=i,this._cachedVisibleSize=void 0,t.classList.add(Y)):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}return m(e,[{key:"size",get:function(){return this._size},set:function(e){this._size=e}},{key:"priority",get:function(){return this.view.priority}},{key:"snap",get:function(){return!!this.view.snap}},{key:"cachedVisibleSize",get:function(){return this._cachedVisibleSize}},{key:"visible",get:function(){return void 0===this._cachedVisibleSize}},{key:"setVisible",value:function(e,t){e!==this.visible&&(e?(this.size=N(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"==typeof t?t:this.size,this.size=0),this.container.classList.toggle("visible",e),this.view.setVisible&&this.view.setVisible(e))}},{key:"minimumSize",get:function(){return this.visible?this.view.minimumSize:0}},{key:"viewMinimumSize",get:function(){return this.view.minimumSize}},{key:"maximumSize",get:function(){return this.visible?this.view.maximumSize:0}},{key:"viewMaximumSize",get:function(){return this.view.maximumSize}},{key:"enabled",set:function(e){this.container.style.pointerEvents=e?"":"none"}},{key:"layout",value:function(e){this.layoutContainer(e),this.view.layout(this.size,e)}}]),e}(),Ce=function(e){u(n,Te);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return m(n,[{key:"layoutContainer",value:function(e){this.container.style.left="".concat(e,"px"),this.container.style.width="".concat(this.size,"px")}}]),n}(),Re=function(e){u(n,Te);var t=c(n);function n(){return v(this,n),t.apply(this,arguments)}return m(n,[{key:"layoutContainer",value:function(e){this.container.style.top="".concat(e,"px"),this.container.style.height="".concat(this.size,"px")}}]),n}(),Fe=function(e){u(n,ee);var t=c(n);function n(e){var i,s,a,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2?arguments[2]:void 0;if(v(this,n),(a=t.call(this)).onDidChange=void 0,a.orientation=void 0,a.sashContainer=void 0,a.size=0,a.contentSize=0,a.proportions=void 0,a.viewItems=[],a.sashItems=[],a.sashDragState=void 0,a.proportionalLayout=void 0,a.getSashOrthogonalSize=void 0,a._startSnappingEnabled=!0,a._endSnappingEnabled=!0,a.onSashEnd=function(e){a.emit("sashchange",e),a.saveProportions();var t,n=o(a.viewItems);try{for(n.s();!(t=n.n()).done;){t.value.enabled=!0}}catch(e){n.e(e)}finally{n.f()}},a.orientation=null!==(i=u.orientation)&&void 0!==i?i:ge.Vertical,a.proportionalLayout=null===(s=u.proportionalLayout)||void 0===s||s,a.getSashOrthogonalSize=u.getSashOrthogonalSize,l&&(a.onDidChange=l),a.sashContainer=document.createElement("div"),a.sashContainer.classList.add(R),e.prepend(a.sashContainer),u.descriptor){a.size=u.descriptor.size;var c,f=o(u.descriptor.views.entries());try{for(f.s();!(c=f.n()).done;){var h=r(c.value,2),d=h[0],m=h[1],p=m.size,y=m.container,b=m.view;a.addView(y,b,p,d,!0)}}catch(e){f.e(e)}finally{f.f()}a.contentSize=a.viewItems.reduce((function(e,t){return e+t.size}),0),a.saveProportions()}return a}return m(n,[{key:"startSnappingEnabled",get:function(){return this._startSnappingEnabled},set:function(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}},{key:"endSnappingEnabled",get:function(){return this._endSnappingEnabled},set:function(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}},{key:"addView",value:function(e,t,n){var i,r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.viewItems.length,s=arguments.length>4?arguments[4]:void 0;i="number"==typeof n?n:"split"===n.type?this.getViewSize(n.index)/2:"invisible"===n.type?{cachedVisibleSize:n.cachedVisibleSize}:t.minimumSize;var a=this.orientation===ge.Vertical?new Re(e,t,i):new Ce(e,t,i);if(this.viewItems.splice(o,0,a),this.viewItems.length>1){var u=this.orientation===ge.Vertical?new De(this.sashContainer,{getHorizontalSashTop:function(e){return r.getSashPosition(e)},getHorizontalSashWidth:this.getSashOrthogonalSize},{orientation:ge.Horizontal}):new De(this.sashContainer,{getVerticalSashLeft:function(e){return r.getSashPosition(e)},getVerticalSashHeight:this.getSashOrthogonalSize},{orientation:ge.Vertical}),l=this.orientation===ge.Vertical?function(e){return{sash:u,start:e.startY,current:e.currentY}}:function(e){return{sash:u,start:e.startX,current:e.currentX}};u.on("start",(function(e){return r.onSashStart(l(e))})),u.on("change",(function(e){return r.onSashChange(l(e))})),u.on("end",(function(){return r.onSashEnd(r.sashItems.findIndex((function(e){return e.sash===u})))})),u.on("reset",(function(){var e=r.sashItems.findIndex((function(e){return e.sash===u})),t=ie(e,-1,-1),n=ie(e+1,r.viewItems.length),i=r.findFirstSnapIndex(t),o=r.findFirstSnapIndex(n);("number"!=typeof i||r.viewItems[i].visible)&&("number"!=typeof o||r.viewItems[o].visible)&&r.emit("sashreset",e)}));var c={sash:u};this.sashItems.splice(o-1,0,c)}s||this.relayout(),s||"number"==typeof n||"distribute"!==n.type||this.distributeViewSizes()}},{key:"removeView",value:function(e,t){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");var n=this.viewItems.splice(e,1)[0].view;if(this.viewItems.length>=1){var i=Math.max(e-1,0);this.sashItems.splice(i,1)[0].sash.dispose()}return this.relayout(),t&&"distribute"===t.type&&this.distributeViewSizes(),n}},{key:"moveView",value:function(e,t,n){var i=this.getViewCachedVisibleSize(t),r=void 0===i?this.getViewSize(t):Le.Invisible(i),o=this.removeView(t);this.addView(e,o,r,n)}},{key:"getViewCachedVisibleSize",value:function(e){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[e].cachedVisibleSize}},{key:"layout",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.size,n=Math.max(this.size,this.contentSize);if(this.size=t,this.proportions)for(var i=0;i<this.viewItems.length;i++){var r=this.viewItems[i];r.size=N(Math.round(this.proportions[i]*t),r.minimumSize,r.maximumSize)}else{var o=ie(0,this.viewItems.length),s=o.filter((function(t){return e.viewItems[t].priority===Ae.Low})),a=o.filter((function(t){return e.viewItems[t].priority===Ae.High}));this.resize(this.viewItems.length-1,t-n,void 0,s,a)}this.distributeEmptySpace(),this.layoutViews()}},{key:"resizeView",value:function(e,t){var n=this;if(!(e<0||e>=this.viewItems.length)){var r=ie(0,this.viewItems.length).filter((function(t){return t!==e})),o=[].concat(i(r.filter((function(e){return n.viewItems[e].priority===Ae.Low}))),[e]),s=r.filter((function(e){return n.viewItems[e].priority===Ae.High})),a=this.viewItems[e];t=Math.round(t),t=N(t,a.minimumSize,Math.min(a.maximumSize,this.size)),a.size=t,this.relayout(o,s)}}},{key:"resizeViews",value:function(e){for(var t=0;t<e.length;t++){var n=this.viewItems[t],i=e[t];i=Math.round(i),i=N(i,n.minimumSize,Math.min(n.maximumSize,this.size)),n.size=i}this.contentSize=this.viewItems.reduce((function(e,t){return e+t.size}),0),this.saveProportions(),this.layout(this.size)}},{key:"getViewSize",value:function(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}},{key:"isViewVisible",value:function(e){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[e].visible}},{key:"setViewVisible",value:function(e,t){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");this.viewItems[e].setVisible(t),this.distributeEmptySpace(e),this.layoutViews(),this.saveProportions()}},{key:"distributeViewSizes",value:function(){var e,t=this,n=[],i=0,r=o(this.viewItems);try{for(r.s();!(e=r.n()).done;){var s=e.value;s.maximumSize-s.minimumSize>0&&(n.push(s),i+=s.size)}}catch(e){r.e(e)}finally{r.f()}for(var a=Math.floor(i/n.length),u=0,l=n;u<l.length;u++){var c=l[u];c.size=N(a,c.minimumSize,c.maximumSize)}var f=ie(0,this.viewItems.length),h=f.filter((function(e){return t.viewItems[e].priority===Ae.Low})),v=f.filter((function(e){return t.viewItems[e].priority===Ae.High}));this.relayout(h,v)}},{key:"dispose",value:function(){this.sashItems.forEach((function(e){return e.sash.dispose()})),this.sashItems=[],this.sashContainer.remove()}},{key:"relayout",value:function(e,t){var n=this.viewItems.reduce((function(e,t){return e+t.size}),0);this.resize(this.viewItems.length-1,this.size-n,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}},{key:"onSashStart",value:function(e){var t=this,n=e.sash,i=e.start,r=this.sashItems.findIndex((function(e){return e.sash===n}));!function(e){var n,i,o=t.viewItems.map((function(e){return e.size})),s=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY,u=ie(r,-1,-1),l=ie(r+1,t.viewItems.length),c=u.reduce((function(e,n){return e+(t.viewItems[n].minimumSize-o[n])}),0),f=u.reduce((function(e,n){return e+(t.viewItems[n].viewMaximumSize-o[n])}),0),h=0===l.length?Number.POSITIVE_INFINITY:l.reduce((function(e,n){return e+(o[n]-t.viewItems[n].minimumSize)}),0),v=0===l.length?Number.NEGATIVE_INFINITY:l.reduce((function(e,n){return e+(o[n]-t.viewItems[n].viewMaximumSize)}),0);s=Math.max(c,v),a=Math.min(h,f);var d=t.findFirstSnapIndex(u),m=t.findFirstSnapIndex(l);if("number"==typeof d){var p=t.viewItems[d],y=Math.floor(p.viewMinimumSize/2);n={index:d,limitDelta:p.visible?s-y:s+y,size:p.size}}if("number"==typeof m){var b=t.viewItems[m],g=Math.floor(b.viewMinimumSize/2);i={index:m,limitDelta:b.visible?a+g:a-g,size:b.size}}t.sashDragState={start:e,current:e,index:r,sizes:o,minDelta:s,maxDelta:a,snapBefore:n,snapAfter:i}}(i)}},{key:"onSashChange",value:function(e){var t=e.current,n=this.sashDragState,i=n.index,r=n.start,o=n.sizes,s=n.minDelta,a=n.maxDelta,u=n.snapBefore,l=n.snapAfter;this.sashDragState.current=t;var c=t-r;this.resize(i,c,o,void 0,void 0,s,a,u,l),this.distributeEmptySpace(),this.layoutViews()}},{key:"getSashPosition",value:function(e){for(var t=0,n=0;n<this.sashItems.length;n++)if(t+=this.viewItems[n].size,this.sashItems[n].sash===e)return t;return 0}},{key:"resize",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.viewItems.map((function(e){return e.size})),r=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Number.NEGATIVE_INFINITY,u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:Number.POSITIVE_INFINITY,l=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0;if(e<0||e>=this.viewItems.length)return 0;var f=ie(e,-1,-1),h=ie(e+1,this.viewItems.length);if(s){var v,d=o(s);try{for(d.s();!(v=d.n()).done;){var m=v.value;te(f,m),te(h,m)}}catch(e){d.e(e)}finally{d.f()}}if(r){var p,y=o(r);try{for(y.s();!(p=y.n()).done;){var b=p.value;ne(f,b),ne(h,b)}}catch(e){y.e(e)}finally{y.f()}}var g=f.map((function(e){return n.viewItems[e]})),S=f.map((function(e){return i[e]})),z=h.map((function(e){return n.viewItems[e]})),w=h.map((function(e){return i[e]})),_=f.reduce((function(e,t){return e+(n.viewItems[t].minimumSize-i[t])}),0),I=f.reduce((function(e,t){return e+(n.viewItems[t].maximumSize-i[t])}),0),x=0===h.length?Number.POSITIVE_INFINITY:h.reduce((function(e,t){return e+(i[t]-n.viewItems[t].minimumSize)}),0),E=0===h.length?Number.NEGATIVE_INFINITY:h.reduce((function(e,t){return e+(i[t]-n.viewItems[t].maximumSize)}),0),j=Math.max(_,E,a),V=Math.min(x,I,u),O=!1;if(l){var k=this.viewItems[l.index],P=t>=l.limitDelta;O=P!==k.visible,k.setVisible(P,l.size)}if(!O&&c){var L=this.viewItems[c.index],M=t<c.limitDelta;O=M!==L.visible,L.setVisible(M,c.size)}if(O)return this.resize(e,t,i,r,s,a,u);for(var A=0,D=t=N(t,j,V);A<g.length;A++){var T=g[A],C=N(S[A]+D,T.minimumSize,T.maximumSize),R=C-S[A];D-=R,T.size=C}for(var F=0,H=t;F<z.length;F++){var Y=z[F],B=N(w[F]-H,Y.minimumSize,Y.maximumSize),$=B-w[F];H+=$,Y.size=B}return t}},{key:"distributeEmptySpace",value:function(e){var t=this.viewItems.reduce((function(e,t){return e+t.size}),0),n=this.size-t,i=ie(this.viewItems.length-1,-1,-1);"number"==typeof e&&ne(i,e);for(var r=0;0!==n&&r<i.length;r++){var o=this.viewItems[i[r]],s=N(o.size+n,o.minimumSize,o.maximumSize);n-=s-o.size,o.size=s}}},{key:"layoutViews",value:function(){var e;this.contentSize=this.viewItems.reduce((function(e,t){return e+t.size}),0);var t,n=0,i=o(this.viewItems);try{for(i.s();!(t=i.n()).done;){var r=t.value;r.layout(n),n+=r.size}}catch(e){i.e(e)}finally{i.f()}null===(e=this.onDidChange)||void 0===e||e.call(this,this.viewItems.map((function(e){return e.size}))),this.sashItems.forEach((function(e){return e.sash.layout()})),this.updateSashEnablement()}},{key:"saveProportions",value:function(){var e=this;this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map((function(t){return t.size/e.contentSize})))}},{key:"updateSashEnablement",value:function(){var e=!1,t=this.viewItems.map((function(t){return e=t.size-t.minimumSize>0||e}));e=!1;var n=this.viewItems.map((function(t){return e=t.maximumSize-t.size>0||e})),r=i(this.viewItems).reverse();e=!1;var o=r.map((function(t){return e=t.size-t.minimumSize>0||e})).reverse();e=!1;for(var s=r.map((function(t){return e=t.maximumSize-t.size>0||e})).reverse(),a=0,u=0;u<this.sashItems.length;u++){var l=this.sashItems[u].sash;a+=this.viewItems[u].size;var c=!(t[u]&&s[u+1]),f=!(n[u]&&o[u+1]);if(c&&f){var h=ie(u,-1,-1),v=ie(u+1,this.viewItems.length),d=this.findFirstSnapIndex(h),m=this.findFirstSnapIndex(v),p="number"==typeof d&&!this.viewItems[d].visible,y="number"==typeof m&&!this.viewItems[m].visible;p&&o[u]&&(a>0||this.startSnappingEnabled)?l.state=Se.Minimum:y&&t[u]&&(a<this.contentSize||this.endSnappingEnabled)?l.state=Se.Maximum:l.state=Se.Disabled}else l.state=c&&!f?Se.Minimum:!c&&f?Se.Maximum:Se.Enabled}}},{key:"findFirstSnapIndex",value:function(e){var t,n=o(e);try{for(n.s();!(t=n.n()).done;){var i=t.value,r=this.viewItems[i];if(r.visible&&r.snap)return i}}catch(e){n.e(e)}finally{n.f()}var s,a=o(e);try{for(a.s();!(s=a.n()).done;){var u=s.value,l=this.viewItems[u];if(l.visible&&l.maximumSize-l.minimumSize>0)return;if(!l.visible&&l.snap)return u}}catch(e){a.e(e)}finally{a.f()}}}]),n}(),He=function(){function e(t){v(this,e),this.size=void 0,this.size=t}return m(e,[{key:"getPreferredSize",value:function(){return this.size}}]),e}(),Ye=function(){function e(t,n){v(this,e),this.proportion=void 0,this.layoutService=void 0,this.proportion=t,this.layoutService=n}return m(e,[{key:"getPreferredSize",value:function(){return this.proportion*this.layoutService.getSize()}}]),e}(),Be=function(){function e(){v(this,e)}return m(e,[{key:"getPreferredSize",value:function(){}}]),e}(),$e=function(){function e(t,n){var i;if(v(this,e),this.minimumSize=0,this.maximumSize=Number.POSITIVE_INFINITY,this.element=void 0,this.priority=void 0,this.snap=void 0,this.layoutService=void 0,this.layoutStrategy=void 0,this.layoutService=t,this.element=n.element,this.minimumSize="number"==typeof n.minimumSize?n.minimumSize:30,this.maximumSize="number"==typeof n.maximumSize?n.maximumSize:Number.POSITIVE_INFINITY,"number"==typeof n.preferredSize)this.layoutStrategy=new He(n.preferredSize);else if("string"==typeof n.preferredSize){var r=n.preferredSize.trim();if(Q(r,"%")){var o=Number(r.slice(0,-1))/100;this.layoutStrategy=new Ye(o,this.layoutService)}else if(Q(r,"px")){var s=Number(r.slice(0,-2))/100;this.layoutStrategy=new He(s)}else if("number"==typeof Number.parseFloat(r)){var a=Number.parseFloat(r);this.layoutStrategy=new He(a)}else this.layoutStrategy=new Be}else this.layoutStrategy=new Be;this.priority=null!==(i=n.priority)&&void 0!==i?i:Ae.Normal,this.snap="boolean"==typeof n.snap&&n.snap}return m(e,[{key:"preferredSize",get:function(){return this.layoutStrategy.getPreferredSize()},set:function(e){if("number"==typeof e)this.layoutStrategy=new He(e);else if("string"==typeof e){var t=e.trim();if(Q(t,"%")){var n=Number(t.slice(0,-1))/100;this.layoutStrategy=new Ye(n,this.layoutService)}else if(Q(t,"px")){var i=Number(t.slice(0,-2))/100;this.layoutStrategy=new He(i)}else if("number"==typeof Number.parseFloat(t)){var r=Number.parseFloat(t);this.layoutStrategy=new He(r)}else this.layoutStrategy=new Be}else this.layoutStrategy=new Be}},{key:"layout",value:function(e){}}]),e}();function Ge(e){return void 0!==e.minSize||void 0!==e.maxSize||void 0!==e.preferredSize||void 0!==e.priority||void 0!==e.visible}var Xe=y.forwardRef((function(e,t){var n=e.className,i=e.children;return S.default.createElement("div",{ref:t,className:w(H,n)},i)}));Xe.displayName="Allotment.Pane";var Ue=y.forwardRef((function(e,n){var s=e.children,a=e.className,u=e.maxSize,l=void 0===u?1/0:u,c=e.minSize,f=void 0===c?30:c,h=e.proportionalLayout,v=void 0===h||h,d=e.sizes,m=e.defaultSizes,p=void 0===m?d:m,b=e.snap,g=void 0!==b&&b,z=e.vertical,_=void 0!==z&&z,I=e.onChange,x=e.onReset,E=e.onVisibleChange,j=y.useRef(null),V=y.useRef([]),O=y.useRef(new Map),k=y.useRef(null),P=y.useRef(new Map),N=y.useRef(new q),L=y.useRef([]),M=r(y.useState(!1),2),D=M[0],R=M[1];"production"!==process.env.NODE_ENV&&d&&console.warn("Prop sizes is deprecated. Please use defaultSizes instead.");var H=y.useMemo((function(){return S.default.Children.toArray(s).filter(S.default.isValidElement)}),[s]),Y=y.useCallback((function(e){var t,n,i=null===(t=L.current)||void 0===t?void 0:t[e];return"number"==typeof(null==i?void 0:i.preferredSize)&&(null===(n=k.current)||void 0===n||n.resizeView(e,Math.round(i.preferredSize)),!0)}),[]);return y.useImperativeHandle(n,(function(){return{reset:function(){if(x)x();else{var e;null===(e=k.current)||void 0===e||e.distributeViewSizes();for(var t=0;t<L.current.length;t++)Y(t)}},resize:function(e){var t;null===(t=k.current)||void 0===t||t.resizeViews(e)}}})),y.useLayoutEffect((function(){var e=!0;p&&P.current.size!==p.length&&(e=!1,console.warn("Expected ".concat(p.length," children based on defaultSizes but found ").concat(P.current.size))),e&&p&&(V.current=H.map((function(e){return e.key})));var n=t({orientation:_?ge.Vertical:ge.Horizontal,proportionalLayout:v},e&&p&&{descriptor:{size:p.reduce((function(e,t){return e+t}),0),views:p.map((function(e,n){var r,o,s,a,u=O.current.get(V.current[n]),c=new $e(N.current,t(t({element:document.createElement("div"),minimumSize:null!==(r=null==u?void 0:u.minSize)&&void 0!==r?r:f,maximumSize:null!==(o=null==u?void 0:u.maxSize)&&void 0!==o?o:l,priority:null!==(s=null==u?void 0:u.priority)&&void 0!==s?s:Ae.Normal},(null==u?void 0:u.preferredSize)&&{preferredSize:null==u?void 0:u.preferredSize}),{},{snap:null!==(a=null==u?void 0:u.snap)&&void 0!==a?a:g}));return L.current.push(c),{container:i(P.current.values())[n],size:e,view:c}}))}});k.current=new Fe(j.current,n,I),k.current.on("sashchange",(function(e){if(E&&k.current)for(var t=H.map((function(e){return e.key})),n=0;n<t.length;n++){var i=O.current.get(t[n]);void 0!==(null==i?void 0:i.visible)&&i.visible!==k.current.isViewVisible(n)&&E(n,k.current.isViewVisible(n))}})),k.current.on("sashreset",(function(e){if(x)x();else{var t;if(Y(e))return;if(Y(e+1))return;null===(t=k.current)||void 0===t||t.distributeViewSizes()}}));var r=k.current;return function(){r.dispose()}}),[]),y.useEffect((function(){if(D){var e=H.map((function(e){return e.key})),n=i(V.current),s=e.filter((function(e){return!V.current.includes(e)})),a=e.filter((function(e){return V.current.includes(e)})),u=V.current.map((function(t){return!e.includes(t)}));u.forEach((function(e,t){var i;e&&(null===(i=k.current)||void 0===i||i.removeView(t),n.splice(t,1),L.current.splice(t,1))}));var c,h=o(s);try{var v=function(){var i,r,o,s,a=c.value,u=O.current.get(a),h=new $e(N.current,t(t({element:document.createElement("div"),minimumSize:null!==(i=null==u?void 0:u.minSize)&&void 0!==i?i:f,maximumSize:null!==(r=null==u?void 0:u.maxSize)&&void 0!==r?r:l,priority:null!==(o=null==u?void 0:u.priority)&&void 0!==o?o:Ae.Normal},(null==u?void 0:u.preferredSize)&&{preferredSize:null==u?void 0:u.preferredSize}),{},{snap:null!==(s=null==u?void 0:u.snap)&&void 0!==s?s:g}));null===(d=k.current)||void 0===d||d.addView(P.current.get(a),h,Le.Distribute,e.findIndex((function(e){return e===a}))),n.splice(e.findIndex((function(e){return e===a})),0,a),L.current.splice(e.findIndex((function(e){return e===a})),0,h)};for(h.s();!(c=h.n()).done;){var d;v()}}catch(e){h.e(e)}finally{h.f()}for(;!A(e,n);){var m,p=o(e.entries());try{var y=function(){var e=r(m.value,2),t=e[0],i=e[1],o=n.findIndex((function(e){return e===i}));if(o!==t){null===(b=k.current)||void 0===b||b.moveView(P.current.get(i),o,t);var s=n[o];return n.splice(o,1),n.splice(t,0,s),"break"}};for(p.s();!(m=p.n()).done;){var b;if("break"===y())break}}catch(e){p.e(e)}finally{p.f()}}var S,z=o(s);try{var w=function(){var t=S.value,n=e.findIndex((function(e){return e===t})),i=L.current[n].preferredSize;void 0!==i&&(null===(_=k.current)||void 0===_||_.resizeView(n,i))};for(z.s();!(S=z.n()).done;){var _;w()}}catch(e){z.e(e)}finally{z.f()}for(var I=function(){var t=E[x],n=O.current.get(t),i=e.findIndex((function(e){return e===t}));n&&Ge(n)&&void 0!==n.visible&&(null===(j=k.current)||void 0===j?void 0:j.isViewVisible(i))!==n.visible&&(null===(M=k.current)||void 0===M||M.setViewVisible(i,n.visible))},x=0,E=[].concat(i(s),i(a));x<E.length;x++){var j,M;I()}var T,C=o(a);try{var R=function(){var t=T.value,n=O.current.get(t),i=e.findIndex((function(e){return e===t}));if(n&&Ge(n)){void 0!==n.preferredSize&&L.current[i].preferredSize!==n.preferredSize&&(L.current[i].preferredSize=n.preferredSize);var r=!1;void 0!==n.minSize&&L.current[i].minimumSize!==n.minSize&&(L.current[i].minimumSize=n.minSize,r=!0),void 0!==n.maxSize&&L.current[i].maximumSize!==n.maxSize&&(L.current[i].maximumSize=n.maxSize,r=!0),r&&(null===(F=k.current)||void 0===F||F.layout())}};for(C.s();!(T=C.n()).done;){var F;R()}}catch(e){C.e(e)}finally{C.f()}(s.length>0||u.length>0)&&(V.current=e)}}),[H,D,l,f,g]),y.useEffect((function(){k.current&&(k.current.onDidChange=I)}),[I]),T({ref:j,onResize:function(e){var t,n=e.width,i=e.height;n&&i&&(null===(t=k.current)||void 0===t||t.layout(_?i:n),N.current.setSize(_?i:n),R(!0))}}),y.useEffect((function(){K&&We(20)}),[]),S.default.createElement("div",{ref:j,className:w(C,_?B:$,G,a)},S.default.createElement("div",{className:F},S.default.Children.toArray(s).map((function(e){if(!S.default.isValidElement(e))return null;var t=e.key;return"Allotment.Pane"===e.type.displayName?(O.current.set(t,e.props),S.default.cloneElement(e,{key:t,ref:function(e){e?P.current.set(t,e):P.current.delete(t)}})):S.default.createElement(Xe,{key:t,ref:function(e){e?P.current.set(t,e):P.current.delete(t)}},e)}))))}));function We(e){var t=N(e,4,20),n=N(e,1,8);document.documentElement.style.setProperty("--sash-size",t+"px"),document.documentElement.style.setProperty("--sash-hover-size",n+"px"),function(e){Pe=e,Ne.emit("onDidChangeGlobalSize",e)}(t)}Ue.displayName="Allotment";var Ke=Object.assign(Ue,{Pane:Xe});exports.Allotment=Ke,exports.setSashSize=We; |
@@ -6,2 +6,2 @@ function e(){return e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},e.apply(this,arguments)}import t,{useMemo as i,useRef as r,useState as n,useEffect as s,useCallback as o,forwardRef as a,useImperativeHandle as u,useLayoutEffect as l}from"react";var h,c={exports:{}}; | ||
http://jedwatson.github.io/classnames | ||
*/h=c,function(){var e={}.hasOwnProperty;function t(){for(var i=[],r=0;r<arguments.length;r++){var n=arguments[r];if(n){var s=typeof n;if("string"===s||"number"===s)i.push(n);else if(Array.isArray(n)){if(n.length){var o=t.apply(null,n);o&&i.push(o)}}else if("object"===s)if(n.toString===Object.prototype.toString)for(var a in n)e.call(n,a)&&n[a]&&i.push(a);else i.push(n.toString())}}return i.join(" ")}h.exports?(t.default=t,h.exports=t):window.classNames=t}();var v=c.exports,f=/^\s+|\s+$/g,m=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,y=parseInt,b=Object.prototype.toString;function z(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==b.call(e)}(e))return NaN;if(z(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=z(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(f,"");var i=d.test(e);return i||p.test(e)?y(e.slice(2),i?2:8):m.test(e)?NaN:+e}var S=function(e,t,i){return void 0===i&&(i=t,t=void 0),void 0!==i&&(i=(i=g(i))==i?i:0),void 0!==t&&(t=(t=g(t))==t?t:0),function(e,t,i){return e==e&&(void 0!==i&&(e=e<=i?e:i),void 0!==t&&(e=e>=t?e:t)),e}(g(e),t,i)},w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},_={exports:{}};!function(e,t){var i="__lodash_hash_undefined__",r=9007199254740991,n="[object Arguments]",s="[object Array]",o="[object Boolean]",a="[object Date]",u="[object Error]",l="[object Function]",h="[object Map]",c="[object Number]",v="[object Object]",f="[object Promise]",m="[object RegExp]",d="[object Set]",p="[object String]",y="[object Symbol]",b="[object WeakMap]",z="[object ArrayBuffer]",g="[object DataView]",S=/^\[object .+?Constructor\]$/,_=/^(?:0|[1-9]\d*)$/,I={};I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I[n]=I[s]=I[z]=I[o]=I[g]=I[a]=I[u]=I[l]=I[h]=I[c]=I[v]=I[m]=I[d]=I[p]=I[b]=!1;var x="object"==typeof w&&w&&w.Object===Object&&w,V="object"==typeof self&&self&&self.Object===Object&&self,E=x||V||Function("return this")(),j=t&&!t.nodeType&&t,N=j&&e&&!e.nodeType&&e,O=N&&N.exports===j,L=O&&x.process,M=function(){try{return L&&L.binding&&L.binding("util")}catch(e){}}(),P=M&&M.isTypedArray;function A(e,t){for(var i=-1,r=null==e?0:e.length;++i<r;)if(t(e[i],i,e))return!0;return!1}function D(e){var t=-1,i=Array(e.size);return e.forEach((function(e,r){i[++t]=[r,e]})),i}function T(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}var C,F,k,H=Array.prototype,Y=Function.prototype,$=Object.prototype,B=E["__core-js_shared__"],R=Y.toString,G=$.hasOwnProperty,X=(C=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",W=$.toString,U=RegExp("^"+R.call(G).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),K=O?E.Buffer:void 0,J=E.Symbol,Q=E.Uint8Array,Z=$.propertyIsEnumerable,q=H.splice,ee=J?J.toStringTag:void 0,te=Object.getOwnPropertySymbols,ie=K?K.isBuffer:void 0,re=(F=Object.keys,k=Object,function(e){return F(k(e))}),ne=Me(E,"DataView"),se=Me(E,"Map"),oe=Me(E,"Promise"),ae=Me(E,"Set"),ue=Me(E,"WeakMap"),le=Me(Object,"create"),he=Te(ne),ce=Te(se),ve=Te(oe),fe=Te(ae),me=Te(ue),de=J?J.prototype:void 0,pe=de?de.valueOf:void 0;function ye(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function be(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function ze(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new ze;++t<i;)this.add(e[t])}function Se(e){var t=this.__data__=new be(e);this.size=t.size}function we(e,t){var i=ke(e),r=!i&&Fe(e),n=!i&&!r&&He(e),s=!i&&!r&&!n&&Ge(e),o=i||r||n||s,a=o?function(e,t){for(var i=-1,r=Array(e);++i<e;)r[i]=t(i);return r}(e.length,String):[],u=a.length;for(var l in e)!t&&!G.call(e,l)||o&&("length"==l||n&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||De(l,u))||a.push(l);return a}function _e(e,t){for(var i=e.length;i--;)if(Ce(e[i][0],t))return i;return-1}function Ie(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ee&&ee in Object(e)?function(e){var t=G.call(e,ee),i=e[ee];try{e[ee]=void 0;var r=!0}catch(e){}var n=W.call(e);r&&(t?e[ee]=i:delete e[ee]);return n}(e):function(e){return W.call(e)}(e)}function xe(e){return Re(e)&&Ie(e)==n}function Ve(e,t,i,r,l){return e===t||(null==e||null==t||!Re(e)&&!Re(t)?e!=e&&t!=t:function(e,t,i,r,l,f){var b=ke(e),S=ke(t),w=b?s:Ae(e),_=S?s:Ae(t),I=(w=w==n?v:w)==v,x=(_=_==n?v:_)==v,V=w==_;if(V&&He(e)){if(!He(t))return!1;b=!0,I=!1}if(V&&!I)return f||(f=new Se),b||Ge(e)?Ne(e,t,i,r,l,f):function(e,t,i,r,n,s,l){switch(i){case g:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case z:return!(e.byteLength!=t.byteLength||!s(new Q(e),new Q(t)));case o:case a:case c:return Ce(+e,+t);case u:return e.name==t.name&&e.message==t.message;case m:case p:return e==t+"";case h:var v=D;case d:var f=1&r;if(v||(v=T),e.size!=t.size&&!f)return!1;var b=l.get(e);if(b)return b==t;r|=2,l.set(e,t);var S=Ne(v(e),v(t),r,n,s,l);return l.delete(e),S;case y:if(pe)return pe.call(e)==pe.call(t)}return!1}(e,t,w,i,r,l,f);if(!(1&i)){var E=I&&G.call(e,"__wrapped__"),j=x&&G.call(t,"__wrapped__");if(E||j){var N=E?e.value():e,O=j?t.value():t;return f||(f=new Se),l(N,O,i,r,f)}}if(!V)return!1;return f||(f=new Se),function(e,t,i,r,n,s){var o=1&i,a=Oe(e),u=a.length,l=Oe(t).length;if(u!=l&&!o)return!1;var h=u;for(;h--;){var c=a[h];if(!(o?c in t:G.call(t,c)))return!1}var v=s.get(e);if(v&&s.get(t))return v==t;var f=!0;s.set(e,t),s.set(t,e);var m=o;for(;++h<u;){var d=e[c=a[h]],p=t[c];if(r)var y=o?r(p,d,c,t,e,s):r(d,p,c,e,t,s);if(!(void 0===y?d===p||n(d,p,i,r,s):y)){f=!1;break}m||(m="constructor"==c)}if(f&&!m){var b=e.constructor,z=t.constructor;b==z||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof z&&z instanceof z||(f=!1)}return s.delete(e),s.delete(t),f}(e,t,i,r,l,f)}(e,t,i,r,Ve,l))}function Ee(e){return!(!Be(e)||function(e){return!!X&&X in e}(e))&&(Ye(e)?U:S).test(Te(e))}function je(e){if(i=(t=e)&&t.constructor,r="function"==typeof i&&i.prototype||$,t!==r)return re(e);var t,i,r,n=[];for(var s in Object(e))G.call(e,s)&&"constructor"!=s&&n.push(s);return n}function Ne(e,t,i,r,n,s){var o=1&i,a=e.length,u=t.length;if(a!=u&&!(o&&u>a))return!1;var l=s.get(e);if(l&&s.get(t))return l==t;var h=-1,c=!0,v=2&i?new ge:void 0;for(s.set(e,t),s.set(t,e);++h<a;){var f=e[h],m=t[h];if(r)var d=o?r(m,f,h,t,e,s):r(f,m,h,e,t,s);if(void 0!==d){if(d)continue;c=!1;break}if(v){if(!A(t,(function(e,t){if(o=t,!v.has(o)&&(f===e||n(f,e,i,r,s)))return v.push(t);var o}))){c=!1;break}}else if(f!==m&&!n(f,m,i,r,s)){c=!1;break}}return s.delete(e),s.delete(t),c}function Oe(e){return function(e,t,i){var r=t(e);return ke(e)?r:function(e,t){for(var i=-1,r=t.length,n=e.length;++i<r;)e[n+i]=t[i];return e}(r,i(e))}(e,Xe,Pe)}function Le(e,t){var i,r,n=e.__data__;return("string"==(r=typeof(i=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?n["string"==typeof t?"string":"hash"]:n.map}function Me(e,t){var i=function(e,t){return null==e?void 0:e[t]}(e,t);return Ee(i)?i:void 0}ye.prototype.clear=function(){this.__data__=le?le(null):{},this.size=0},ye.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ye.prototype.get=function(e){var t=this.__data__;if(le){var r=t[e];return r===i?void 0:r}return G.call(t,e)?t[e]:void 0},ye.prototype.has=function(e){var t=this.__data__;return le?void 0!==t[e]:G.call(t,e)},ye.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=le&&void 0===t?i:t,this},be.prototype.clear=function(){this.__data__=[],this.size=0},be.prototype.delete=function(e){var t=this.__data__,i=_e(t,e);return!(i<0)&&(i==t.length-1?t.pop():q.call(t,i,1),--this.size,!0)},be.prototype.get=function(e){var t=this.__data__,i=_e(t,e);return i<0?void 0:t[i][1]},be.prototype.has=function(e){return _e(this.__data__,e)>-1},be.prototype.set=function(e,t){var i=this.__data__,r=_e(i,e);return r<0?(++this.size,i.push([e,t])):i[r][1]=t,this},ze.prototype.clear=function(){this.size=0,this.__data__={hash:new ye,map:new(se||be),string:new ye}},ze.prototype.delete=function(e){var t=Le(this,e).delete(e);return this.size-=t?1:0,t},ze.prototype.get=function(e){return Le(this,e).get(e)},ze.prototype.has=function(e){return Le(this,e).has(e)},ze.prototype.set=function(e,t){var i=Le(this,e),r=i.size;return i.set(e,t),this.size+=i.size==r?0:1,this},ge.prototype.add=ge.prototype.push=function(e){return this.__data__.set(e,i),this},ge.prototype.has=function(e){return this.__data__.has(e)},Se.prototype.clear=function(){this.__data__=new be,this.size=0},Se.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},Se.prototype.get=function(e){return this.__data__.get(e)},Se.prototype.has=function(e){return this.__data__.has(e)},Se.prototype.set=function(e,t){var i=this.__data__;if(i instanceof be){var r=i.__data__;if(!se||r.length<199)return r.push([e,t]),this.size=++i.size,this;i=this.__data__=new ze(r)}return i.set(e,t),this.size=i.size,this};var Pe=te?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var i=-1,r=null==e?0:e.length,n=0,s=[];++i<r;){var o=e[i];t(o,i,e)&&(s[n++]=o)}return s}(te(e),(function(t){return Z.call(e,t)})))}:function(){return[]},Ae=Ie;function De(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||_.test(e))&&e>-1&&e%1==0&&e<t}function Te(e){if(null!=e){try{return R.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ce(e,t){return e===t||e!=e&&t!=t}(ne&&Ae(new ne(new ArrayBuffer(1)))!=g||se&&Ae(new se)!=h||oe&&Ae(oe.resolve())!=f||ae&&Ae(new ae)!=d||ue&&Ae(new ue)!=b)&&(Ae=function(e){var t=Ie(e),i=t==v?e.constructor:void 0,r=i?Te(i):"";if(r)switch(r){case he:return g;case ce:return h;case ve:return f;case fe:return d;case me:return b}return t});var Fe=xe(function(){return arguments}())?xe:function(e){return Re(e)&&G.call(e,"callee")&&!Z.call(e,"callee")},ke=Array.isArray;var He=ie||function(){return!1};function Ye(e){if(!Be(e))return!1;var t=Ie(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $e(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Re(e){return null!=e&&"object"==typeof e}var Ge=P?function(e){return function(t){return e(t)}}(P):function(e){return Re(e)&&$e(e.length)&&!!I[Ie(e)]};function Xe(e){return null!=(t=e)&&$e(t.length)&&!Ye(t)?we(e):je(e);var t}e.exports=function(e,t){return Ve(e,t)}}(_,_.exports);var I=_.exports;var x=function(e,t,i){return e[t]?e[t][0]?e[t][0][i]:e[t][i]:"contentBoxSize"===t?e.contentRect["inlineSize"===i?"width":"height"]:void 0};function V(e){void 0===e&&(e={});var t=e.onResize,a=r(void 0);a.current=t;var u=e.round||Math.round,l=r(),h=n({width:void 0,height:void 0}),c=h[0],v=h[1],f=r(!1);s((function(){return function(){f.current=!0}}),[]);var m,d,p,y,b,z,g=r({width:void 0,height:void 0}),S=(m=o((function(t){return l.current&&l.current.box===e.box&&l.current.round===u||(l.current={box:e.box,round:u,instance:new ResizeObserver((function(t){var i=t[0],r="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",n=x(i,r,"inlineSize"),s=x(i,r,"blockSize"),o=n?u(n):void 0,l=s?u(s):void 0;if(g.current.width!==o||g.current.height!==l){var h={width:o,height:l};g.current.width=o,g.current.height=l,a.current?a.current(h):f.current||v(h)}}))}),l.current.instance.observe(t,{box:e.box}),function(){l.current&&l.current.instance.unobserve(t)}}),[e.box,u]),d=e.ref,p=r(null),y=r(null),b=r(),z=o((function(){var e=null;p.current?e=p.current:d&&(e=d instanceof HTMLElement?d:d.current),y.current&&y.current.element===e&&y.current.reporter===z||(b.current&&(b.current(),b.current=null),y.current={reporter:z,element:e},e&&(b.current=m(e)))}),[d,m]),s((function(){z()}),[z]),o((function(e){p.current=e,z()}),[z]));return i((function(){return{ref:S,width:c.width,height:c.height}}),[S,c?c.width:null,c?c.height:null])}var E="allotment-module_splitView__1rmCV",j="allotment-module_sashContainer__18Sm8",N="allotment-module_splitViewContainer__1ugsQ",O="allotment-module_splitViewView__KtCWc",L="allotment-module_visible__phJMN",M="allotment-module_vertical__1ACDd",P="allotment-module_horizontal__Tf6PK",A="allotment-module_separatorBorder__3xs3c",D=!1,T=!1,C=void 0;"object"==typeof navigator&&(T=(C=navigator.userAgent).indexOf("Macintosh")>=0,D=(C.indexOf("Macintosh")>=0||C.indexOf("iPad")>=0||C.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0);var F=D,k=T;class H{constructor(){this._size=void 0}getSize(){return this._size}setSize(e){this._size=e}}function Y(e,t){var i=e.length,r=i-t.length;return r>=0&&e.slice(r,i)===t}var $={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,i="~";function r(){}function n(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function s(e,t,r,s,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var a=new n(r,s||e,o),u=i?i+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],a]:e._events[u].push(a):(e._events[u]=a,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(i=!1)),a.prototype.eventNames=function(){var e,r,n=[];if(0===this._eventsCount)return n;for(r in e=this._events)t.call(e,r)&&n.push(i?r.slice(1):r);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},a.prototype.listeners=function(e){var t=i?i+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,s=r.length,o=new Array(s);n<s;n++)o[n]=r[n].fn;return o},a.prototype.listenerCount=function(e){var t=i?i+e:e,r=this._events[t];return r?r.fn?1:r.length:0},a.prototype.emit=function(e,t,r,n,s,o){var a=i?i+e:e;if(!this._events[a])return!1;var u,l,h=this._events[a],c=arguments.length;if(h.fn){switch(h.once&&this.removeListener(e,h.fn,void 0,!0),c){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,t),!0;case 3:return h.fn.call(h.context,t,r),!0;case 4:return h.fn.call(h.context,t,r,n),!0;case 5:return h.fn.call(h.context,t,r,n,s),!0;case 6:return h.fn.call(h.context,t,r,n,s,o),!0}for(l=1,u=new Array(c-1);l<c;l++)u[l-1]=arguments[l];h.fn.apply(h.context,u)}else{var v,f=h.length;for(l=0;l<f;l++)switch(h[l].once&&this.removeListener(e,h[l].fn,void 0,!0),c){case 1:h[l].fn.call(h[l].context);break;case 2:h[l].fn.call(h[l].context,t);break;case 3:h[l].fn.call(h[l].context,t,r);break;case 4:h[l].fn.call(h[l].context,t,r,n);break;default:if(!u)for(v=1,u=new Array(c-1);v<c;v++)u[v-1]=arguments[v];h[l].fn.apply(h[l].context,u)}}return!0},a.prototype.on=function(e,t,i){return s(this,e,t,i,!1)},a.prototype.once=function(e,t,i){return s(this,e,t,i,!0)},a.prototype.removeListener=function(e,t,r,n){var s=i?i+e:e;if(!this._events[s])return this;if(!t)return o(this,s),this;var a=this._events[s];if(a.fn)a.fn!==t||n&&!a.once||r&&a.context!==r||o(this,s);else{for(var u=0,l=[],h=a.length;u<h;u++)(a[u].fn!==t||n&&!a[u].once||r&&a[u].context!==r)&&l.push(a[u]);l.length?this._events[s]=1===l.length?l[0]:l:o(this,s)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&o(this,t)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=i,a.EventEmitter=a,e.exports=a}($);var B=$.exports;function R(e,t){var i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function G(e,t){var i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function X(e,t,i){void 0===i&&(i=1);for(var r=Math.max(0,Math.ceil((t-e)/i)),n=new Array(r),s=-1;++s<r;)n[s]=e+s*i;return n}var W=/^\s+|\s+$/g,U=/^[-+]0x[0-9a-f]+$/i,K=/^0b[01]+$/i,J=/^0o[0-7]+$/i,Q=parseInt,Z="object"==typeof w&&w&&w.Object===Object&&w,q="object"==typeof self&&self&&self.Object===Object&&self,ee=Z||q||Function("return this")(),te=Object.prototype.toString,ie=Math.max,re=Math.min,ne=function(){return ee.Date.now()};function se(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function oe(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==te.call(e)}(e))return NaN;if(se(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=se(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(W,"");var i=K.test(e);return i||J.test(e)?Q(e.slice(2),i?2:8):U.test(e)?NaN:+e}var ae,ue,le=function(e,t,i){var r,n,s,o,a,u,l=0,h=!1,c=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var i=r,s=n;return r=n=void 0,l=t,o=e.apply(s,i)}function m(e){return l=e,a=setTimeout(p,t),h?f(e):o}function d(e){var i=e-u;return void 0===u||i>=t||i<0||c&&e-l>=s}function p(){var e=ne();if(d(e))return y(e);a=setTimeout(p,function(e){var i=t-(e-u);return c?re(i,s-(e-l)):i}(e))}function y(e){return a=void 0,v&&r?f(e):(r=n=void 0,o)}function b(){var e=ne(),i=d(e);if(r=arguments,n=this,u=e,i){if(void 0===a)return m(u);if(c)return a=setTimeout(p,t),f(u)}return void 0===a&&(a=setTimeout(p,t)),o}return t=oe(t)||0,se(i)&&(h=!!i.leading,s=(c="maxWait"in i)?ie(oe(i.maxWait)||0,t):s,v="trailing"in i?!!i.trailing:v),b.cancel=function(){void 0!==a&&clearTimeout(a),l=0,r=u=n=a=void 0},b.flush=function(){return void 0===a?o:y(ne())},b},he="sash-module_sash__eG8e7",ce="sash-module_disabled__2MKAD",ve="sash-module_mac__2RGfI",fe="sash-module_vertical__2Jemx",me="sash-module_minimum__2FeMz",de="sash-module_maximum__3xrwG",pe="sash-module_horizontal__3-k3E",ye="sash-module_hover__119X7",be="sash-module_active__FozP9";!function(e){e.Vertical="VERTICAL",e.Horizontal="HORIZONTAL"}(ae||(ae={})),function(e){e.Disabled="DISABLED",e.Minimum="MINIMUM",e.Maximum="MAXIMUM",e.Enabled="ENABLED"}(ue||(ue={}));var ze,ge,Se,we=F?20:8,_e=new B;class Ie extends B{get state(){return this._state}set state(e){this._state!==e&&(this.el.classList.toggle(ce,e===ue.Disabled),this.el.classList.toggle(me,e===ue.Minimum),this.el.classList.toggle(de,e===ue.Maximum),this._state=e,this.emit("enablementChange",e))}constructor(e,t,i){var r;super(),this.el=void 0,this.layoutProvider=void 0,this.orientation=void 0,this.size=void 0,this.hoverDelay=300,this.hoverDelayer=le((e=>e.classList.add(ye)),this.hoverDelay),this._state=ue.Enabled,this.onPointerStart=e=>{var t=e.pageX,i=e.pageY,r={startX:t,currentX:t,startY:i,currentY:i};this.el.classList.add(be),this.emit("start",r),this.el.setPointerCapture(e.pointerId);var n=e=>{e.preventDefault();var r={startX:t,currentX:e.pageX,startY:i,currentY:e.pageY};this.emit("change",r)},s=e=>{e.preventDefault(),this.el.classList.remove(be),this.hoverDelayer.cancel(),this.emit("end"),this.el.releasePointerCapture(e.pointerId),window.removeEventListener("pointermove",n),window.removeEventListener("pointerup",s)};window.addEventListener("pointermove",n),window.addEventListener("pointerup",s)},this.onPointerDoublePress=()=>{this.emit("reset")},this.onMouseEnter=()=>{this.el.classList.contains(be)?(this.hoverDelayer.cancel(),this.el.classList.add(ye)):this.hoverDelayer(this.el)},this.onMouseLeave=()=>{this.hoverDelayer.cancel(),this.el.classList.remove(ye)},this.el=document.createElement("div"),this.el.classList.add(he),this.el.dataset.testid="sash",e.append(this.el),k&&this.el.classList.add(ve),this.el.addEventListener("pointerdown",this.onPointerStart),this.el.addEventListener("dblclick",this.onPointerDoublePress),this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("mouseleave",this.onMouseLeave),"number"==typeof i.size?(this.size=i.size,i.orientation===ae.Vertical?this.el.style.width=this.size+"px":this.el.style.height=this.size+"px"):(this.size=we,_e.on("onDidChangeGlobalSize",(e=>{this.size=e,this.layout()}))),this.layoutProvider=t,this.orientation=null!=(r=i.orientation)?r:ae.Vertical,this.orientation===ae.Horizontal?(this.el.classList.add(pe),this.el.classList.remove(fe)):(this.el.classList.remove(pe),this.el.classList.add(fe)),this.layout()}layout(){if(this.orientation===ae.Vertical){var e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{var t=this.layoutProvider;this.el.style.top=t.getHorizontalSashTop(this)-this.size/2+"px",t.getHorizontalSashLeft&&(this.el.style.left=t.getHorizontalSashLeft(this)+"px"),t.getHorizontalSashWidth&&(this.el.style.width=t.getHorizontalSashWidth(this)+"px")}}dispose(){this.el.removeEventListener("pointerdown",this.onPointerStart),this.el.removeEventListener("dblclick",this.onPointerDoublePress),this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("mouseleave",(()=>this.onMouseLeave)),this.el.remove()}}(ge=ze||(ze={})).Distribute={type:"distribute"},ge.Split=function(e){return{type:"split",index:e}},ge.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}},function(e){e.Normal="NORMAL",e.Low="LOW",e.High="HIGH"}(Se||(Se={}));class xe{constructor(e,t,i){this.container=void 0,this.view=void 0,this._size=void 0,this._cachedVisibleSize=void 0,this.container=e,this.view=t,this.container.classList.add(O),this.container.dataset.testid="split-view-view","number"==typeof i?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add(L)):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}set size(e){this._size=e}get size(){return this._size}get priority(){return this.view.priority}get snap(){return!!this.view.snap}get cachedVisibleSize(){return this._cachedVisibleSize}get visible(){return void 0===this._cachedVisibleSize}setVisible(e,t){e!==this.visible&&(e?(this.size=S(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"==typeof t?t:this.size,this.size=0),this.container.classList.toggle("visible",e),this.view.setVisible&&this.view.setVisible(e))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}set enabled(e){this.container.style.pointerEvents=e?"":"none"}layout(e){this.layoutContainer(e),this.view.layout(this.size,e)}}class Ve extends xe{layoutContainer(e){this.container.style.left=e+"px",this.container.style.width=this.size+"px"}}class Ee extends xe{layoutContainer(e){this.container.style.top=e+"px",this.container.style.height=this.size+"px"}}class je extends B{get startSnappingEnabled(){return this._startSnappingEnabled}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}get endSnappingEnabled(){return this._endSnappingEnabled}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}constructor(e,t,i){var r,n;if(void 0===t&&(t={}),super(),this.onDidChange=void 0,this.orientation=void 0,this.sashContainer=void 0,this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.sashDragState=void 0,this.proportionalLayout=void 0,this.getSashOrthogonalSize=void 0,this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onSashEnd=e=>{for(var t of(this.emit("sashchange",e),this.saveProportions(),this.viewItems))t.enabled=!0},this.orientation=null!=(r=t.orientation)?r:ae.Vertical,this.proportionalLayout=null==(n=t.proportionalLayout)||n,this.getSashOrthogonalSize=t.getSashOrthogonalSize,i&&(this.onDidChange=i),this.sashContainer=document.createElement("div"),this.sashContainer.classList.add(j),e.prepend(this.sashContainer),t.descriptor){for(var[s,o]of(this.size=t.descriptor.size,t.descriptor.views.entries())){var a=o.size,u=o.container,l=o.view;this.addView(u,l,a,s,!0)}this.contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0),this.saveProportions()}}addView(e,t,i,r,n){var s;void 0===r&&(r=this.viewItems.length),s="number"==typeof i?i:"split"===i.type?this.getViewSize(i.index)/2:"invisible"===i.type?{cachedVisibleSize:i.cachedVisibleSize}:t.minimumSize;var o=this.orientation===ae.Vertical?new Ee(e,t,s):new Ve(e,t,s);if(this.viewItems.splice(r,0,o),this.viewItems.length>1){var a=this.orientation===ae.Vertical?new Ie(this.sashContainer,{getHorizontalSashTop:e=>this.getSashPosition(e),getHorizontalSashWidth:this.getSashOrthogonalSize},{orientation:ae.Horizontal}):new Ie(this.sashContainer,{getVerticalSashLeft:e=>this.getSashPosition(e),getVerticalSashHeight:this.getSashOrthogonalSize},{orientation:ae.Vertical}),u=this.orientation===ae.Vertical?e=>({sash:a,start:e.startY,current:e.currentY}):e=>({sash:a,start:e.startX,current:e.currentX});a.on("start",(e=>this.onSashStart(u(e)))),a.on("change",(e=>this.onSashChange(u(e)))),a.on("end",(()=>this.onSashEnd(this.sashItems.findIndex((e=>e.sash===a))))),a.on("reset",(()=>{var e=this.sashItems.findIndex((e=>e.sash===a)),t=X(e,-1,-1),i=X(e+1,this.viewItems.length),r=this.findFirstSnapIndex(t),n=this.findFirstSnapIndex(i);("number"!=typeof r||this.viewItems[r].visible)&&("number"!=typeof n||this.viewItems[n].visible)&&this.emit("sashreset",e)}));var l={sash:a};this.sashItems.splice(r-1,0,l)}n||this.relayout(),n||"number"==typeof i||"distribute"!==i.type||this.distributeViewSizes()}removeView(e,t){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");var i=this.viewItems.splice(e,1)[0].view;if(this.viewItems.length>=1){var r=Math.max(e-1,0);this.sashItems.splice(r,1)[0].sash.dispose()}return this.relayout(),t&&"distribute"===t.type&&this.distributeViewSizes(),i}moveView(e,t,i){var r=this.getViewCachedVisibleSize(t),n=void 0===r?this.getViewSize(t):ze.Invisible(r),s=this.removeView(t);this.addView(e,s,n,i)}getViewCachedVisibleSize(e){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[e].cachedVisibleSize}layout(e){void 0===e&&(e=this.size);var t=Math.max(this.size,this.contentSize);if(this.size=e,this.proportions)for(var i=0;i<this.viewItems.length;i++){var r=this.viewItems[i];r.size=S(Math.round(this.proportions[i]*e),r.minimumSize,r.maximumSize)}else{var n=X(0,this.viewItems.length),s=n.filter((e=>this.viewItems[e].priority===Se.Low)),o=n.filter((e=>this.viewItems[e].priority===Se.High));this.resize(this.viewItems.length-1,e-t,void 0,s,o)}this.distributeEmptySpace(),this.layoutViews()}resizeView(e,t){if(!(e<0||e>=this.viewItems.length)){var i=X(0,this.viewItems.length).filter((t=>t!==e)),r=[...i.filter((e=>this.viewItems[e].priority===Se.Low)),e],n=i.filter((e=>this.viewItems[e].priority===Se.High)),s=this.viewItems[e];t=Math.round(t),t=S(t,s.minimumSize,Math.min(s.maximumSize,this.size)),s.size=t,this.relayout(r,n)}}resizeViews(e){for(var t=0;t<e.length;t++){var i=this.viewItems[t],r=e[t];r=Math.round(r),r=S(r,i.minimumSize,Math.min(i.maximumSize,this.size)),i.size=r}this.contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0),this.saveProportions(),this.layout(this.size)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}isViewVisible(e){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[e].visible}setViewVisible(e,t){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");this.viewItems[e].setVisible(t),this.distributeEmptySpace(e),this.layoutViews(),this.saveProportions()}distributeViewSizes(){var e=[],t=0;for(var i of this.viewItems)i.maximumSize-i.minimumSize>0&&(e.push(i),t+=i.size);var r=Math.floor(t/e.length);for(var n of e)n.size=S(r,n.minimumSize,n.maximumSize);var s=X(0,this.viewItems.length),o=s.filter((e=>this.viewItems[e].priority===Se.Low)),a=s.filter((e=>this.viewItems[e].priority===Se.High));this.relayout(o,a)}dispose(){this.sashItems.forEach((e=>e.sash.dispose())),this.sashItems=[],this.sashContainer.remove()}relayout(e,t){var i=this.viewItems.reduce(((e,t)=>e+t.size),0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}onSashStart(e){var{sash:t,start:i}=e,r=this.sashItems.findIndex((e=>e.sash===t));(e=>{var t,i,n=this.viewItems.map((e=>e.size)),s=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY,a=X(r,-1,-1),u=X(r+1,this.viewItems.length),l=a.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-n[t])),0),h=a.reduce(((e,t)=>e+(this.viewItems[t].viewMaximumSize-n[t])),0),c=0===u.length?Number.POSITIVE_INFINITY:u.reduce(((e,t)=>e+(n[t]-this.viewItems[t].minimumSize)),0),v=0===u.length?Number.NEGATIVE_INFINITY:u.reduce(((e,t)=>e+(n[t]-this.viewItems[t].viewMaximumSize)),0);s=Math.max(l,v),o=Math.min(c,h);var f=this.findFirstSnapIndex(a),m=this.findFirstSnapIndex(u);if("number"==typeof f){var d=this.viewItems[f],p=Math.floor(d.viewMinimumSize/2);t={index:f,limitDelta:d.visible?s-p:s+p,size:d.size}}if("number"==typeof m){var y=this.viewItems[m],b=Math.floor(y.viewMinimumSize/2);i={index:m,limitDelta:y.visible?o+b:o-b,size:y.size}}this.sashDragState={start:e,current:e,index:r,sizes:n,minDelta:s,maxDelta:o,snapBefore:t,snapAfter:i}})(i)}onSashChange(e){var{current:t}=e,{index:i,start:r,sizes:n,minDelta:s,maxDelta:o,snapBefore:a,snapAfter:u}=this.sashDragState;this.sashDragState.current=t;var l=t-r;this.resize(i,l,n,void 0,void 0,s,o,a,u),this.distributeEmptySpace(),this.layoutViews()}getSashPosition(e){for(var t=0,i=0;i<this.sashItems.length;i++)if(t+=this.viewItems[i].size,this.sashItems[i].sash===e)return t;return 0}resize(e,t,i,r,n,s,o,a,u){if(void 0===i&&(i=this.viewItems.map((e=>e.size))),void 0===s&&(s=Number.NEGATIVE_INFINITY),void 0===o&&(o=Number.POSITIVE_INFINITY),e<0||e>=this.viewItems.length)return 0;var l=X(e,-1,-1),h=X(e+1,this.viewItems.length);if(n)for(var c of n)R(l,c),R(h,c);if(r)for(var v of r)G(l,v),G(h,v);var f=l.map((e=>this.viewItems[e])),m=l.map((e=>i[e])),d=h.map((e=>this.viewItems[e])),p=h.map((e=>i[e])),y=l.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),b=l.reduce(((e,t)=>e+(this.viewItems[t].maximumSize-i[t])),0),z=0===h.length?Number.POSITIVE_INFINITY:h.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),g=0===h.length?Number.NEGATIVE_INFINITY:h.reduce(((e,t)=>e+(i[t]-this.viewItems[t].maximumSize)),0),w=Math.max(y,g,s),_=Math.min(z,b,o),I=!1;if(a){var x=this.viewItems[a.index],V=t>=a.limitDelta;I=V!==x.visible,x.setVisible(V,a.size)}if(!I&&u){var E=this.viewItems[u.index],j=t<u.limitDelta;I=j!==E.visible,E.setVisible(j,u.size)}if(I)return this.resize(e,t,i,r,n,s,o);for(var N=0,O=t=S(t,w,_);N<f.length;N++){var L=f[N],M=S(m[N]+O,L.minimumSize,L.maximumSize);O-=M-m[N],L.size=M}for(var P=0,A=t;P<d.length;P++){var D=d[P],T=S(p[P]-A,D.minimumSize,D.maximumSize);A+=T-p[P],D.size=T}return t}distributeEmptySpace(e){var t=this.viewItems.reduce(((e,t)=>e+t.size),0),i=this.size-t,r=X(this.viewItems.length-1,-1,-1);"number"==typeof e&&G(r,e);for(var n=0;0!==i&&n<r.length;n++){var s=this.viewItems[r[n]],o=S(s.size+i,s.minimumSize,s.maximumSize);i-=o-s.size,s.size=o}}layoutViews(){var e;this.contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0);var t=0;for(var i of this.viewItems)i.layout(t),t+=i.size;null===(e=this.onDidChange)||void 0===e||e.call(this,this.viewItems.map((e=>e.size))),this.sashItems.forEach((e=>e.sash.layout())),this.updateSashEnablement()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map((e=>e.size/this.contentSize)))}updateSashEnablement(){var e=!1,t=this.viewItems.map((t=>e=t.size-t.minimumSize>0||e));e=!1;var i=this.viewItems.map((t=>e=t.maximumSize-t.size>0||e)),r=[...this.viewItems].reverse();e=!1;var n=r.map((t=>e=t.size-t.minimumSize>0||e)).reverse();e=!1;for(var s=r.map((t=>e=t.maximumSize-t.size>0||e)).reverse(),o=0,a=0;a<this.sashItems.length;a++){var{sash:u}=this.sashItems[a];o+=this.viewItems[a].size;var l=!(t[a]&&s[a+1]),h=!(i[a]&&n[a+1]);if(l&&h){var c=X(a,-1,-1),v=X(a+1,this.viewItems.length),f=this.findFirstSnapIndex(c),m=this.findFirstSnapIndex(v),d="number"==typeof f&&!this.viewItems[f].visible,p="number"==typeof m&&!this.viewItems[m].visible;d&&n[a]&&(o>0||this.startSnappingEnabled)?u.state=ue.Minimum:p&&t[a]&&(o<this.contentSize||this.endSnappingEnabled)?u.state=ue.Maximum:u.state=ue.Disabled}else u.state=l&&!h?ue.Minimum:!l&&h?ue.Maximum:ue.Enabled}}findFirstSnapIndex(e){for(var t of e){var i=this.viewItems[t];if(i.visible&&i.snap)return t}for(var r of e){var n=this.viewItems[r];if(n.visible&&n.maximumSize-n.minimumSize>0)return;if(!n.visible&&n.snap)return r}}}class Ne{constructor(e){this.size=void 0,this.size=e}getPreferredSize(){return this.size}}class Oe{constructor(e,t){this.proportion=void 0,this.layoutService=void 0,this.proportion=e,this.layoutService=t}getPreferredSize(){return this.proportion*this.layoutService.getSize()}}class Le{getPreferredSize(){}}class Me{get preferredSize(){return this.layoutStrategy.getPreferredSize()}set preferredSize(e){if("number"==typeof e)this.layoutStrategy=new Ne(e);else if("string"==typeof e){var t=e.trim();if(Y(t,"%")){var i=Number(t.slice(0,-1))/100;this.layoutStrategy=new Oe(i,this.layoutService)}else if(Y(t,"px")){var r=Number(t.slice(0,-2))/100;this.layoutStrategy=new Ne(r)}else if("number"==typeof Number.parseFloat(t)){var n=Number.parseFloat(t);this.layoutStrategy=new Ne(n)}else this.layoutStrategy=new Le}else this.layoutStrategy=new Le}constructor(e,t){var i;if(this.minimumSize=0,this.maximumSize=Number.POSITIVE_INFINITY,this.element=void 0,this.priority=void 0,this.snap=void 0,this.layoutService=void 0,this.layoutStrategy=void 0,this.layoutService=e,this.element=t.element,this.minimumSize="number"==typeof t.minimumSize?t.minimumSize:30,this.maximumSize="number"==typeof t.maximumSize?t.maximumSize:Number.POSITIVE_INFINITY,"number"==typeof t.preferredSize)this.layoutStrategy=new Ne(t.preferredSize);else if("string"==typeof t.preferredSize){var r=t.preferredSize.trim();if(Y(r,"%")){var n=Number(r.slice(0,-1))/100;this.layoutStrategy=new Oe(n,this.layoutService)}else if(Y(r,"px")){var s=Number(r.slice(0,-2))/100;this.layoutStrategy=new Ne(s)}else if("number"==typeof Number.parseFloat(r)){var o=Number.parseFloat(r);this.layoutStrategy=new Ne(o)}else this.layoutStrategy=new Le}else this.layoutStrategy=new Le;this.priority=null!=(i=t.priority)?i:Se.Normal,this.snap="boolean"==typeof t.snap&&t.snap}layout(e){}}function Pe(e){return void 0!==e.minSize||void 0!==e.maxSize||void 0!==e.preferredSize||void 0!==e.priority||void 0!==e.visible}var Ae=a(((e,i)=>{var{className:r,children:n}=e;return t.createElement("div",{ref:i,className:v(O,r)},n)}));Ae.displayName="Allotment.Pane";var De=a(((a,h)=>{var{children:c,className:f,maxSize:m=1/0,minSize:d=30,proportionalLayout:p=!0,sizes:y,defaultSizes:b=y,snap:z=!1,vertical:g=!1,onChange:S,onReset:w,onVisibleChange:_}=a,x=r(null),j=r([]),O=r(new Map),L=r(null),D=r(new Map),T=r(new H),C=r([]),[k,Y]=n(!1);"production"!==process.env.NODE_ENV&&y&&console.warn("Prop sizes is deprecated. Please use defaultSizes instead.");var $=i((()=>t.Children.toArray(c).filter(t.isValidElement)),[c]),B=o((e=>{var t,i,r=null===(t=C.current)||void 0===t?void 0:t[e];return"number"==typeof(null==r?void 0:r.preferredSize)&&(null===(i=L.current)||void 0===i||i.resizeView(e,Math.round(r.preferredSize)),!0)}),[]);return u(h,(()=>({reset:()=>{if(w)w();else{var e;null===(e=L.current)||void 0===e||e.distributeViewSizes();for(var t=0;t<C.current.length;t++)B(t)}},resize:e=>{var t;null===(t=L.current)||void 0===t||t.resizeViews(e)}}))),l((()=>{var t=!0;b&&D.current.size!==b.length&&(t=!1,console.warn("Expected "+b.length+" children based on defaultSizes but found "+D.current.size)),t&&b&&(j.current=$.map((e=>e.key)));var i=e({orientation:g?ae.Vertical:ae.Horizontal,proportionalLayout:p},t&&b&&{descriptor:{size:b.reduce(((e,t)=>e+t),0),views:b.map(((t,i)=>{var r,n,s,o,a=O.current.get(j.current[i]),u=new Me(T.current,e({element:document.createElement("div"),minimumSize:null!=(r=null==a?void 0:a.minSize)?r:d,maximumSize:null!=(n=null==a?void 0:a.maxSize)?n:m,priority:null!=(s=null==a?void 0:a.priority)?s:Se.Normal},(null==a?void 0:a.preferredSize)&&{preferredSize:null==a?void 0:a.preferredSize},{snap:null!=(o=null==a?void 0:a.snap)?o:z}));return C.current.push(u),{container:[...D.current.values()][i],size:t,view:u}}))}});L.current=new je(x.current,i,S),L.current.on("sashchange",(e=>{if(_&&L.current)for(var t=$.map((e=>e.key)),i=0;i<t.length;i++){var r=O.current.get(t[i]);void 0!==(null==r?void 0:r.visible)&&r.visible!==L.current.isViewVisible(i)&&_(i,L.current.isViewVisible(i))}})),L.current.on("sashreset",(e=>{if(w)w();else{var t;if(B(e))return;if(B(e+1))return;null===(t=L.current)||void 0===t||t.distributeViewSizes()}}));var r=L.current;return()=>{r.dispose()}}),[]),s((()=>{if(k){var t=$.map((e=>e.key)),i=[...j.current],r=t.filter((e=>!j.current.includes(e))),n=t.filter((e=>j.current.includes(e))),s=j.current.map((e=>!t.includes(e)));s.forEach(((e,t)=>{var r;e&&(null===(r=L.current)||void 0===r||r.removeView(t),i.splice(t,1),C.current.splice(t,1))}));var o=function(r){var n,s,o,a,l=O.current.get(r),h=new Me(T.current,e({element:document.createElement("div"),minimumSize:null!=(n=null==l?void 0:l.minSize)?n:d,maximumSize:null!=(s=null==l?void 0:l.maxSize)?s:m,priority:null!=(o=null==l?void 0:l.priority)?o:Se.Normal},(null==l?void 0:l.preferredSize)&&{preferredSize:null==l?void 0:l.preferredSize},{snap:null!=(a=null==l?void 0:l.snap)?a:z}));null===(u=L.current)||void 0===u||u.addView(D.current.get(r),h,ze.Distribute,t.findIndex((e=>e===r))),i.splice(t.findIndex((e=>e===r)),0,r),C.current.splice(t.findIndex((e=>e===r)),0,h)};for(var a of r){var u;o(a)}for(;!I(t,i);){var l=function(e,t){var r=i.findIndex((e=>e===t));if(r!==e){null===(v=L.current)||void 0===v||v.moveView(D.current.get(t),r,e);var n=i[r];return i.splice(r,1),i.splice(e,0,n),"break"}};for(var[h,c]of t.entries()){var v;if("break"===l(h,c))break}}var f=function(e){var i=t.findIndex((t=>t===e)),r=C.current[i].preferredSize;void 0!==r&&(null===(y=L.current)||void 0===y||y.resizeView(i,r))};for(var p of r){var y;f(p)}var b=function(e){var i=O.current.get(e),r=t.findIndex((t=>t===e));i&&Pe(i)&&void 0!==i.visible&&(null===(S=L.current)||void 0===S?void 0:S.isViewVisible(r))!==i.visible&&(null===(w=L.current)||void 0===w||w.setViewVisible(r,i.visible))};for(var g of[...r,...n]){var S,w;b(g)}var _=function(e){var i=O.current.get(e),r=t.findIndex((t=>t===e));if(i&&Pe(i)){void 0!==i.preferredSize&&C.current[r].preferredSize!==i.preferredSize&&(C.current[r].preferredSize=i.preferredSize);var n=!1;void 0!==i.minSize&&C.current[r].minimumSize!==i.minSize&&(C.current[r].minimumSize=i.minSize,n=!0),void 0!==i.maxSize&&C.current[r].maximumSize!==i.maxSize&&(C.current[r].maximumSize=i.maxSize,n=!0),n&&(null===(V=L.current)||void 0===V||V.layout())}};for(var x of n){var V;_(x)}(r.length>0||s.length>0)&&(j.current=t)}}),[$,k,m,d,z]),s((()=>{L.current&&(L.current.onDidChange=S)}),[S]),V({ref:x,onResize:e=>{var t,{width:i,height:r}=e;i&&r&&(null===(t=L.current)||void 0===t||t.layout(g?r:i),T.current.setSize(g?r:i),Y(!0))}}),s((()=>{F&&Te(20)}),[]),t.createElement("div",{ref:x,className:v(E,g?M:P,A,f)},t.createElement("div",{className:N},t.Children.toArray(c).map((e=>{if(!t.isValidElement(e))return null;var i=e.key;return"Allotment.Pane"===e.type.displayName?(O.current.set(i,e.props),t.cloneElement(e,{key:i,ref:e=>{e?D.current.set(i,e):D.current.delete(i)}})):t.createElement(Ae,{key:i,ref:e=>{e?D.current.set(i,e):D.current.delete(i)}},e)}))))}));function Te(e){var t=S(e,4,20),i=S(e,1,8);document.documentElement.style.setProperty("--sash-size",t+"px"),document.documentElement.style.setProperty("--sash-hover-size",i+"px"),function(e){we=e,_e.emit("onDidChangeGlobalSize",e)}(t)}De.displayName="Allotment";var Ce=Object.assign(De,{Pane:Ae});export{Ce as Allotment,Te as setSashSize}; | ||
*/h=c,function(){var e={}.hasOwnProperty;function t(){for(var i=[],r=0;r<arguments.length;r++){var n=arguments[r];if(n){var s=typeof n;if("string"===s||"number"===s)i.push(n);else if(Array.isArray(n)){if(n.length){var o=t.apply(null,n);o&&i.push(o)}}else if("object"===s)if(n.toString===Object.prototype.toString)for(var a in n)e.call(n,a)&&n[a]&&i.push(a);else i.push(n.toString())}}return i.join(" ")}h.exports?(t.default=t,h.exports=t):window.classNames=t}();var v=c.exports,f=/^\s+|\s+$/g,m=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,p=/^0o[0-7]+$/i,y=parseInt,b=Object.prototype.toString;function z(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==b.call(e)}(e))return NaN;if(z(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=z(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(f,"");var i=d.test(e);return i||p.test(e)?y(e.slice(2),i?2:8):m.test(e)?NaN:+e}var S=function(e,t,i){return void 0===i&&(i=t,t=void 0),void 0!==i&&(i=(i=g(i))==i?i:0),void 0!==t&&(t=(t=g(t))==t?t:0),function(e,t,i){return e==e&&(void 0!==i&&(e=e<=i?e:i),void 0!==t&&(e=e>=t?e:t)),e}(g(e),t,i)},w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},_={exports:{}};!function(e,t){var i="__lodash_hash_undefined__",r=9007199254740991,n="[object Arguments]",s="[object Array]",o="[object Boolean]",a="[object Date]",u="[object Error]",l="[object Function]",h="[object Map]",c="[object Number]",v="[object Object]",f="[object Promise]",m="[object RegExp]",d="[object Set]",p="[object String]",y="[object Symbol]",b="[object WeakMap]",z="[object ArrayBuffer]",g="[object DataView]",S=/^\[object .+?Constructor\]$/,_=/^(?:0|[1-9]\d*)$/,I={};I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I[n]=I[s]=I[z]=I[o]=I[g]=I[a]=I[u]=I[l]=I[h]=I[c]=I[v]=I[m]=I[d]=I[p]=I[b]=!1;var x="object"==typeof w&&w&&w.Object===Object&&w,V="object"==typeof self&&self&&self.Object===Object&&self,E=x||V||Function("return this")(),j=t&&!t.nodeType&&t,N=j&&e&&!e.nodeType&&e,O=N&&N.exports===j,L=O&&x.process,M=function(){try{return L&&L.binding&&L.binding("util")}catch(e){}}(),P=M&&M.isTypedArray;function A(e,t){for(var i=-1,r=null==e?0:e.length;++i<r;)if(t(e[i],i,e))return!0;return!1}function D(e){var t=-1,i=Array(e.size);return e.forEach((function(e,r){i[++t]=[r,e]})),i}function T(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}var C,F,k,H=Array.prototype,Y=Function.prototype,$=Object.prototype,B=E["__core-js_shared__"],R=Y.toString,G=$.hasOwnProperty,X=(C=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",W=$.toString,U=RegExp("^"+R.call(G).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),K=O?E.Buffer:void 0,J=E.Symbol,Q=E.Uint8Array,Z=$.propertyIsEnumerable,q=H.splice,ee=J?J.toStringTag:void 0,te=Object.getOwnPropertySymbols,ie=K?K.isBuffer:void 0,re=(F=Object.keys,k=Object,function(e){return F(k(e))}),ne=Me(E,"DataView"),se=Me(E,"Map"),oe=Me(E,"Promise"),ae=Me(E,"Set"),ue=Me(E,"WeakMap"),le=Me(Object,"create"),he=Te(ne),ce=Te(se),ve=Te(oe),fe=Te(ae),me=Te(ue),de=J?J.prototype:void 0,pe=de?de.valueOf:void 0;function ye(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function be(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function ze(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new ze;++t<i;)this.add(e[t])}function Se(e){var t=this.__data__=new be(e);this.size=t.size}function we(e,t){var i=ke(e),r=!i&&Fe(e),n=!i&&!r&&He(e),s=!i&&!r&&!n&&Ge(e),o=i||r||n||s,a=o?function(e,t){for(var i=-1,r=Array(e);++i<e;)r[i]=t(i);return r}(e.length,String):[],u=a.length;for(var l in e)!t&&!G.call(e,l)||o&&("length"==l||n&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||De(l,u))||a.push(l);return a}function _e(e,t){for(var i=e.length;i--;)if(Ce(e[i][0],t))return i;return-1}function Ie(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ee&&ee in Object(e)?function(e){var t=G.call(e,ee),i=e[ee];try{e[ee]=void 0;var r=!0}catch(e){}var n=W.call(e);r&&(t?e[ee]=i:delete e[ee]);return n}(e):function(e){return W.call(e)}(e)}function xe(e){return Re(e)&&Ie(e)==n}function Ve(e,t,i,r,l){return e===t||(null==e||null==t||!Re(e)&&!Re(t)?e!=e&&t!=t:function(e,t,i,r,l,f){var b=ke(e),S=ke(t),w=b?s:Ae(e),_=S?s:Ae(t),I=(w=w==n?v:w)==v,x=(_=_==n?v:_)==v,V=w==_;if(V&&He(e)){if(!He(t))return!1;b=!0,I=!1}if(V&&!I)return f||(f=new Se),b||Ge(e)?Ne(e,t,i,r,l,f):function(e,t,i,r,n,s,l){switch(i){case g:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case z:return!(e.byteLength!=t.byteLength||!s(new Q(e),new Q(t)));case o:case a:case c:return Ce(+e,+t);case u:return e.name==t.name&&e.message==t.message;case m:case p:return e==t+"";case h:var v=D;case d:var f=1&r;if(v||(v=T),e.size!=t.size&&!f)return!1;var b=l.get(e);if(b)return b==t;r|=2,l.set(e,t);var S=Ne(v(e),v(t),r,n,s,l);return l.delete(e),S;case y:if(pe)return pe.call(e)==pe.call(t)}return!1}(e,t,w,i,r,l,f);if(!(1&i)){var E=I&&G.call(e,"__wrapped__"),j=x&&G.call(t,"__wrapped__");if(E||j){var N=E?e.value():e,O=j?t.value():t;return f||(f=new Se),l(N,O,i,r,f)}}if(!V)return!1;return f||(f=new Se),function(e,t,i,r,n,s){var o=1&i,a=Oe(e),u=a.length,l=Oe(t).length;if(u!=l&&!o)return!1;var h=u;for(;h--;){var c=a[h];if(!(o?c in t:G.call(t,c)))return!1}var v=s.get(e);if(v&&s.get(t))return v==t;var f=!0;s.set(e,t),s.set(t,e);var m=o;for(;++h<u;){var d=e[c=a[h]],p=t[c];if(r)var y=o?r(p,d,c,t,e,s):r(d,p,c,e,t,s);if(!(void 0===y?d===p||n(d,p,i,r,s):y)){f=!1;break}m||(m="constructor"==c)}if(f&&!m){var b=e.constructor,z=t.constructor;b==z||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof z&&z instanceof z||(f=!1)}return s.delete(e),s.delete(t),f}(e,t,i,r,l,f)}(e,t,i,r,Ve,l))}function Ee(e){return!(!Be(e)||function(e){return!!X&&X in e}(e))&&(Ye(e)?U:S).test(Te(e))}function je(e){if(i=(t=e)&&t.constructor,r="function"==typeof i&&i.prototype||$,t!==r)return re(e);var t,i,r,n=[];for(var s in Object(e))G.call(e,s)&&"constructor"!=s&&n.push(s);return n}function Ne(e,t,i,r,n,s){var o=1&i,a=e.length,u=t.length;if(a!=u&&!(o&&u>a))return!1;var l=s.get(e);if(l&&s.get(t))return l==t;var h=-1,c=!0,v=2&i?new ge:void 0;for(s.set(e,t),s.set(t,e);++h<a;){var f=e[h],m=t[h];if(r)var d=o?r(m,f,h,t,e,s):r(f,m,h,e,t,s);if(void 0!==d){if(d)continue;c=!1;break}if(v){if(!A(t,(function(e,t){if(o=t,!v.has(o)&&(f===e||n(f,e,i,r,s)))return v.push(t);var o}))){c=!1;break}}else if(f!==m&&!n(f,m,i,r,s)){c=!1;break}}return s.delete(e),s.delete(t),c}function Oe(e){return function(e,t,i){var r=t(e);return ke(e)?r:function(e,t){for(var i=-1,r=t.length,n=e.length;++i<r;)e[n+i]=t[i];return e}(r,i(e))}(e,Xe,Pe)}function Le(e,t){var i,r,n=e.__data__;return("string"==(r=typeof(i=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?n["string"==typeof t?"string":"hash"]:n.map}function Me(e,t){var i=function(e,t){return null==e?void 0:e[t]}(e,t);return Ee(i)?i:void 0}ye.prototype.clear=function(){this.__data__=le?le(null):{},this.size=0},ye.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ye.prototype.get=function(e){var t=this.__data__;if(le){var r=t[e];return r===i?void 0:r}return G.call(t,e)?t[e]:void 0},ye.prototype.has=function(e){var t=this.__data__;return le?void 0!==t[e]:G.call(t,e)},ye.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=le&&void 0===t?i:t,this},be.prototype.clear=function(){this.__data__=[],this.size=0},be.prototype.delete=function(e){var t=this.__data__,i=_e(t,e);return!(i<0)&&(i==t.length-1?t.pop():q.call(t,i,1),--this.size,!0)},be.prototype.get=function(e){var t=this.__data__,i=_e(t,e);return i<0?void 0:t[i][1]},be.prototype.has=function(e){return _e(this.__data__,e)>-1},be.prototype.set=function(e,t){var i=this.__data__,r=_e(i,e);return r<0?(++this.size,i.push([e,t])):i[r][1]=t,this},ze.prototype.clear=function(){this.size=0,this.__data__={hash:new ye,map:new(se||be),string:new ye}},ze.prototype.delete=function(e){var t=Le(this,e).delete(e);return this.size-=t?1:0,t},ze.prototype.get=function(e){return Le(this,e).get(e)},ze.prototype.has=function(e){return Le(this,e).has(e)},ze.prototype.set=function(e,t){var i=Le(this,e),r=i.size;return i.set(e,t),this.size+=i.size==r?0:1,this},ge.prototype.add=ge.prototype.push=function(e){return this.__data__.set(e,i),this},ge.prototype.has=function(e){return this.__data__.has(e)},Se.prototype.clear=function(){this.__data__=new be,this.size=0},Se.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},Se.prototype.get=function(e){return this.__data__.get(e)},Se.prototype.has=function(e){return this.__data__.has(e)},Se.prototype.set=function(e,t){var i=this.__data__;if(i instanceof be){var r=i.__data__;if(!se||r.length<199)return r.push([e,t]),this.size=++i.size,this;i=this.__data__=new ze(r)}return i.set(e,t),this.size=i.size,this};var Pe=te?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var i=-1,r=null==e?0:e.length,n=0,s=[];++i<r;){var o=e[i];t(o,i,e)&&(s[n++]=o)}return s}(te(e),(function(t){return Z.call(e,t)})))}:function(){return[]},Ae=Ie;function De(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||_.test(e))&&e>-1&&e%1==0&&e<t}function Te(e){if(null!=e){try{return R.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ce(e,t){return e===t||e!=e&&t!=t}(ne&&Ae(new ne(new ArrayBuffer(1)))!=g||se&&Ae(new se)!=h||oe&&Ae(oe.resolve())!=f||ae&&Ae(new ae)!=d||ue&&Ae(new ue)!=b)&&(Ae=function(e){var t=Ie(e),i=t==v?e.constructor:void 0,r=i?Te(i):"";if(r)switch(r){case he:return g;case ce:return h;case ve:return f;case fe:return d;case me:return b}return t});var Fe=xe(function(){return arguments}())?xe:function(e){return Re(e)&&G.call(e,"callee")&&!Z.call(e,"callee")},ke=Array.isArray;var He=ie||function(){return!1};function Ye(e){if(!Be(e))return!1;var t=Ie(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $e(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Re(e){return null!=e&&"object"==typeof e}var Ge=P?function(e){return function(t){return e(t)}}(P):function(e){return Re(e)&&$e(e.length)&&!!I[Ie(e)]};function Xe(e){return null!=(t=e)&&$e(t.length)&&!Ye(t)?we(e):je(e);var t}e.exports=function(e,t){return Ve(e,t)}}(_,_.exports);var I=_.exports;var x=function(e,t,i){return e[t]?e[t][0]?e[t][0][i]:e[t][i]:"contentBoxSize"===t?e.contentRect["inlineSize"===i?"width":"height"]:void 0};function V(e){void 0===e&&(e={});var t=e.onResize,a=r(void 0);a.current=t;var u=e.round||Math.round,l=r(),h=n({width:void 0,height:void 0}),c=h[0],v=h[1],f=r(!1);s((function(){return f.current=!1,function(){f.current=!0}}),[]);var m,d,p,y,b,z,g,S=r({width:void 0,height:void 0}),w=(m=o((function(t){return l.current&&l.current.box===e.box&&l.current.round===u||(l.current={box:e.box,round:u,instance:new ResizeObserver((function(t){var i=t[0],r="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",n=x(i,r,"inlineSize"),s=x(i,r,"blockSize"),o=n?u(n):void 0,l=s?u(s):void 0;if(S.current.width!==o||S.current.height!==l){var h={width:o,height:l};S.current.width=o,S.current.height=l,a.current?a.current(h):f.current||v(h)}}))}),l.current.instance.observe(t,{box:e.box}),function(){l.current&&l.current.instance.unobserve(t)}}),[e.box,u]),d=e.ref,p=r(null),y=r(null),b=r(),z=d&&"current"in d?d.current:null,g=o((function(){var e=null;p.current?e=p.current:d&&(e=d instanceof Element?d:d.current),y.current&&y.current.element===e&&y.current.reporter===g||(b.current&&(b.current(),b.current=null),y.current={reporter:g,element:e},e&&(b.current=m(e)))}),[d,z,m]),s((function(){g()}),[g]),o((function(e){p.current=e,g()}),[g]));return i((function(){return{ref:w,width:c.width,height:c.height}}),[w,c?c.width:null,c?c.height:null])}var E="allotment-module_splitView__1rmCV",j="allotment-module_sashContainer__18Sm8",N="allotment-module_splitViewContainer__1ugsQ",O="allotment-module_splitViewView__KtCWc",L="allotment-module_visible__phJMN",M="allotment-module_vertical__1ACDd",P="allotment-module_horizontal__Tf6PK",A="allotment-module_separatorBorder__3xs3c",D=!1,T=!1,C=void 0;"object"==typeof navigator&&(T=(C=navigator.userAgent).indexOf("Macintosh")>=0,D=(C.indexOf("Macintosh")>=0||C.indexOf("iPad")>=0||C.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0);var F=D,k=T;class H{constructor(){this._size=void 0}getSize(){return this._size}setSize(e){this._size=e}}function Y(e,t){var i=e.length,r=i-t.length;return r>=0&&e.slice(r,i)===t}var $={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,i="~";function r(){}function n(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function s(e,t,r,s,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var a=new n(r,s||e,o),u=i?i+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],a]:e._events[u].push(a):(e._events[u]=a,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(i=!1)),a.prototype.eventNames=function(){var e,r,n=[];if(0===this._eventsCount)return n;for(r in e=this._events)t.call(e,r)&&n.push(i?r.slice(1):r);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},a.prototype.listeners=function(e){var t=i?i+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,s=r.length,o=new Array(s);n<s;n++)o[n]=r[n].fn;return o},a.prototype.listenerCount=function(e){var t=i?i+e:e,r=this._events[t];return r?r.fn?1:r.length:0},a.prototype.emit=function(e,t,r,n,s,o){var a=i?i+e:e;if(!this._events[a])return!1;var u,l,h=this._events[a],c=arguments.length;if(h.fn){switch(h.once&&this.removeListener(e,h.fn,void 0,!0),c){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,t),!0;case 3:return h.fn.call(h.context,t,r),!0;case 4:return h.fn.call(h.context,t,r,n),!0;case 5:return h.fn.call(h.context,t,r,n,s),!0;case 6:return h.fn.call(h.context,t,r,n,s,o),!0}for(l=1,u=new Array(c-1);l<c;l++)u[l-1]=arguments[l];h.fn.apply(h.context,u)}else{var v,f=h.length;for(l=0;l<f;l++)switch(h[l].once&&this.removeListener(e,h[l].fn,void 0,!0),c){case 1:h[l].fn.call(h[l].context);break;case 2:h[l].fn.call(h[l].context,t);break;case 3:h[l].fn.call(h[l].context,t,r);break;case 4:h[l].fn.call(h[l].context,t,r,n);break;default:if(!u)for(v=1,u=new Array(c-1);v<c;v++)u[v-1]=arguments[v];h[l].fn.apply(h[l].context,u)}}return!0},a.prototype.on=function(e,t,i){return s(this,e,t,i,!1)},a.prototype.once=function(e,t,i){return s(this,e,t,i,!0)},a.prototype.removeListener=function(e,t,r,n){var s=i?i+e:e;if(!this._events[s])return this;if(!t)return o(this,s),this;var a=this._events[s];if(a.fn)a.fn!==t||n&&!a.once||r&&a.context!==r||o(this,s);else{for(var u=0,l=[],h=a.length;u<h;u++)(a[u].fn!==t||n&&!a[u].once||r&&a[u].context!==r)&&l.push(a[u]);l.length?this._events[s]=1===l.length?l[0]:l:o(this,s)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&o(this,t)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=i,a.EventEmitter=a,e.exports=a}($);var B=$.exports;function R(e,t){var i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function G(e,t){var i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function X(e,t,i){void 0===i&&(i=1);for(var r=Math.max(0,Math.ceil((t-e)/i)),n=new Array(r),s=-1;++s<r;)n[s]=e+s*i;return n}var W=/^\s+|\s+$/g,U=/^[-+]0x[0-9a-f]+$/i,K=/^0b[01]+$/i,J=/^0o[0-7]+$/i,Q=parseInt,Z="object"==typeof w&&w&&w.Object===Object&&w,q="object"==typeof self&&self&&self.Object===Object&&self,ee=Z||q||Function("return this")(),te=Object.prototype.toString,ie=Math.max,re=Math.min,ne=function(){return ee.Date.now()};function se(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function oe(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==te.call(e)}(e))return NaN;if(se(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=se(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(W,"");var i=K.test(e);return i||J.test(e)?Q(e.slice(2),i?2:8):U.test(e)?NaN:+e}var ae,ue,le=function(e,t,i){var r,n,s,o,a,u,l=0,h=!1,c=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var i=r,s=n;return r=n=void 0,l=t,o=e.apply(s,i)}function m(e){return l=e,a=setTimeout(p,t),h?f(e):o}function d(e){var i=e-u;return void 0===u||i>=t||i<0||c&&e-l>=s}function p(){var e=ne();if(d(e))return y(e);a=setTimeout(p,function(e){var i=t-(e-u);return c?re(i,s-(e-l)):i}(e))}function y(e){return a=void 0,v&&r?f(e):(r=n=void 0,o)}function b(){var e=ne(),i=d(e);if(r=arguments,n=this,u=e,i){if(void 0===a)return m(u);if(c)return a=setTimeout(p,t),f(u)}return void 0===a&&(a=setTimeout(p,t)),o}return t=oe(t)||0,se(i)&&(h=!!i.leading,s=(c="maxWait"in i)?ie(oe(i.maxWait)||0,t):s,v="trailing"in i?!!i.trailing:v),b.cancel=function(){void 0!==a&&clearTimeout(a),l=0,r=u=n=a=void 0},b.flush=function(){return void 0===a?o:y(ne())},b},he="sash-module_sash__eG8e7",ce="sash-module_disabled__2MKAD",ve="sash-module_mac__2RGfI",fe="sash-module_vertical__2Jemx",me="sash-module_minimum__2FeMz",de="sash-module_maximum__3xrwG",pe="sash-module_horizontal__3-k3E",ye="sash-module_hover__119X7",be="sash-module_active__FozP9";!function(e){e.Vertical="VERTICAL",e.Horizontal="HORIZONTAL"}(ae||(ae={})),function(e){e.Disabled="DISABLED",e.Minimum="MINIMUM",e.Maximum="MAXIMUM",e.Enabled="ENABLED"}(ue||(ue={}));var ze,ge,Se,we=F?20:8,_e=new B;class Ie extends B{get state(){return this._state}set state(e){this._state!==e&&(this.el.classList.toggle(ce,e===ue.Disabled),this.el.classList.toggle(me,e===ue.Minimum),this.el.classList.toggle(de,e===ue.Maximum),this._state=e,this.emit("enablementChange",e))}constructor(e,t,i){var r;super(),this.el=void 0,this.layoutProvider=void 0,this.orientation=void 0,this.size=void 0,this.hoverDelay=300,this.hoverDelayer=le((e=>e.classList.add(ye)),this.hoverDelay),this._state=ue.Enabled,this.onPointerStart=e=>{var t=e.pageX,i=e.pageY,r={startX:t,currentX:t,startY:i,currentY:i};this.el.classList.add(be),this.emit("start",r),this.el.setPointerCapture(e.pointerId);var n=e=>{e.preventDefault();var r={startX:t,currentX:e.pageX,startY:i,currentY:e.pageY};this.emit("change",r)},s=e=>{e.preventDefault(),this.el.classList.remove(be),this.hoverDelayer.cancel(),this.emit("end"),this.el.releasePointerCapture(e.pointerId),window.removeEventListener("pointermove",n),window.removeEventListener("pointerup",s)};window.addEventListener("pointermove",n),window.addEventListener("pointerup",s)},this.onPointerDoublePress=()=>{this.emit("reset")},this.onMouseEnter=()=>{this.el.classList.contains(be)?(this.hoverDelayer.cancel(),this.el.classList.add(ye)):this.hoverDelayer(this.el)},this.onMouseLeave=()=>{this.hoverDelayer.cancel(),this.el.classList.remove(ye)},this.el=document.createElement("div"),this.el.classList.add(he),this.el.dataset.testid="sash",e.append(this.el),k&&this.el.classList.add(ve),this.el.addEventListener("pointerdown",this.onPointerStart),this.el.addEventListener("dblclick",this.onPointerDoublePress),this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("mouseleave",this.onMouseLeave),"number"==typeof i.size?(this.size=i.size,i.orientation===ae.Vertical?this.el.style.width=this.size+"px":this.el.style.height=this.size+"px"):(this.size=we,_e.on("onDidChangeGlobalSize",(e=>{this.size=e,this.layout()}))),this.layoutProvider=t,this.orientation=null!=(r=i.orientation)?r:ae.Vertical,this.orientation===ae.Horizontal?(this.el.classList.add(pe),this.el.classList.remove(fe)):(this.el.classList.remove(pe),this.el.classList.add(fe)),this.layout()}layout(){if(this.orientation===ae.Vertical){var e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{var t=this.layoutProvider;this.el.style.top=t.getHorizontalSashTop(this)-this.size/2+"px",t.getHorizontalSashLeft&&(this.el.style.left=t.getHorizontalSashLeft(this)+"px"),t.getHorizontalSashWidth&&(this.el.style.width=t.getHorizontalSashWidth(this)+"px")}}dispose(){this.el.removeEventListener("pointerdown",this.onPointerStart),this.el.removeEventListener("dblclick",this.onPointerDoublePress),this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("mouseleave",(()=>this.onMouseLeave)),this.el.remove()}}(ge=ze||(ze={})).Distribute={type:"distribute"},ge.Split=function(e){return{type:"split",index:e}},ge.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}},function(e){e.Normal="NORMAL",e.Low="LOW",e.High="HIGH"}(Se||(Se={}));class xe{constructor(e,t,i){this.container=void 0,this.view=void 0,this._size=void 0,this._cachedVisibleSize=void 0,this.container=e,this.view=t,this.container.classList.add(O),this.container.dataset.testid="split-view-view","number"==typeof i?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add(L)):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}set size(e){this._size=e}get size(){return this._size}get priority(){return this.view.priority}get snap(){return!!this.view.snap}get cachedVisibleSize(){return this._cachedVisibleSize}get visible(){return void 0===this._cachedVisibleSize}setVisible(e,t){e!==this.visible&&(e?(this.size=S(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"==typeof t?t:this.size,this.size=0),this.container.classList.toggle("visible",e),this.view.setVisible&&this.view.setVisible(e))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}set enabled(e){this.container.style.pointerEvents=e?"":"none"}layout(e){this.layoutContainer(e),this.view.layout(this.size,e)}}class Ve extends xe{layoutContainer(e){this.container.style.left=e+"px",this.container.style.width=this.size+"px"}}class Ee extends xe{layoutContainer(e){this.container.style.top=e+"px",this.container.style.height=this.size+"px"}}class je extends B{get startSnappingEnabled(){return this._startSnappingEnabled}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}get endSnappingEnabled(){return this._endSnappingEnabled}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}constructor(e,t,i){var r,n;if(void 0===t&&(t={}),super(),this.onDidChange=void 0,this.orientation=void 0,this.sashContainer=void 0,this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.sashDragState=void 0,this.proportionalLayout=void 0,this.getSashOrthogonalSize=void 0,this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onSashEnd=e=>{for(var t of(this.emit("sashchange",e),this.saveProportions(),this.viewItems))t.enabled=!0},this.orientation=null!=(r=t.orientation)?r:ae.Vertical,this.proportionalLayout=null==(n=t.proportionalLayout)||n,this.getSashOrthogonalSize=t.getSashOrthogonalSize,i&&(this.onDidChange=i),this.sashContainer=document.createElement("div"),this.sashContainer.classList.add(j),e.prepend(this.sashContainer),t.descriptor){for(var[s,o]of(this.size=t.descriptor.size,t.descriptor.views.entries())){var a=o.size,u=o.container,l=o.view;this.addView(u,l,a,s,!0)}this.contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0),this.saveProportions()}}addView(e,t,i,r,n){var s;void 0===r&&(r=this.viewItems.length),s="number"==typeof i?i:"split"===i.type?this.getViewSize(i.index)/2:"invisible"===i.type?{cachedVisibleSize:i.cachedVisibleSize}:t.minimumSize;var o=this.orientation===ae.Vertical?new Ee(e,t,s):new Ve(e,t,s);if(this.viewItems.splice(r,0,o),this.viewItems.length>1){var a=this.orientation===ae.Vertical?new Ie(this.sashContainer,{getHorizontalSashTop:e=>this.getSashPosition(e),getHorizontalSashWidth:this.getSashOrthogonalSize},{orientation:ae.Horizontal}):new Ie(this.sashContainer,{getVerticalSashLeft:e=>this.getSashPosition(e),getVerticalSashHeight:this.getSashOrthogonalSize},{orientation:ae.Vertical}),u=this.orientation===ae.Vertical?e=>({sash:a,start:e.startY,current:e.currentY}):e=>({sash:a,start:e.startX,current:e.currentX});a.on("start",(e=>this.onSashStart(u(e)))),a.on("change",(e=>this.onSashChange(u(e)))),a.on("end",(()=>this.onSashEnd(this.sashItems.findIndex((e=>e.sash===a))))),a.on("reset",(()=>{var e=this.sashItems.findIndex((e=>e.sash===a)),t=X(e,-1,-1),i=X(e+1,this.viewItems.length),r=this.findFirstSnapIndex(t),n=this.findFirstSnapIndex(i);("number"!=typeof r||this.viewItems[r].visible)&&("number"!=typeof n||this.viewItems[n].visible)&&this.emit("sashreset",e)}));var l={sash:a};this.sashItems.splice(r-1,0,l)}n||this.relayout(),n||"number"==typeof i||"distribute"!==i.type||this.distributeViewSizes()}removeView(e,t){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");var i=this.viewItems.splice(e,1)[0].view;if(this.viewItems.length>=1){var r=Math.max(e-1,0);this.sashItems.splice(r,1)[0].sash.dispose()}return this.relayout(),t&&"distribute"===t.type&&this.distributeViewSizes(),i}moveView(e,t,i){var r=this.getViewCachedVisibleSize(t),n=void 0===r?this.getViewSize(t):ze.Invisible(r),s=this.removeView(t);this.addView(e,s,n,i)}getViewCachedVisibleSize(e){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[e].cachedVisibleSize}layout(e){void 0===e&&(e=this.size);var t=Math.max(this.size,this.contentSize);if(this.size=e,this.proportions)for(var i=0;i<this.viewItems.length;i++){var r=this.viewItems[i];r.size=S(Math.round(this.proportions[i]*e),r.minimumSize,r.maximumSize)}else{var n=X(0,this.viewItems.length),s=n.filter((e=>this.viewItems[e].priority===Se.Low)),o=n.filter((e=>this.viewItems[e].priority===Se.High));this.resize(this.viewItems.length-1,e-t,void 0,s,o)}this.distributeEmptySpace(),this.layoutViews()}resizeView(e,t){if(!(e<0||e>=this.viewItems.length)){var i=X(0,this.viewItems.length).filter((t=>t!==e)),r=[...i.filter((e=>this.viewItems[e].priority===Se.Low)),e],n=i.filter((e=>this.viewItems[e].priority===Se.High)),s=this.viewItems[e];t=Math.round(t),t=S(t,s.minimumSize,Math.min(s.maximumSize,this.size)),s.size=t,this.relayout(r,n)}}resizeViews(e){for(var t=0;t<e.length;t++){var i=this.viewItems[t],r=e[t];r=Math.round(r),r=S(r,i.minimumSize,Math.min(i.maximumSize,this.size)),i.size=r}this.contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0),this.saveProportions(),this.layout(this.size)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}isViewVisible(e){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");return this.viewItems[e].visible}setViewVisible(e,t){if(e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");this.viewItems[e].setVisible(t),this.distributeEmptySpace(e),this.layoutViews(),this.saveProportions()}distributeViewSizes(){var e=[],t=0;for(var i of this.viewItems)i.maximumSize-i.minimumSize>0&&(e.push(i),t+=i.size);var r=Math.floor(t/e.length);for(var n of e)n.size=S(r,n.minimumSize,n.maximumSize);var s=X(0,this.viewItems.length),o=s.filter((e=>this.viewItems[e].priority===Se.Low)),a=s.filter((e=>this.viewItems[e].priority===Se.High));this.relayout(o,a)}dispose(){this.sashItems.forEach((e=>e.sash.dispose())),this.sashItems=[],this.sashContainer.remove()}relayout(e,t){var i=this.viewItems.reduce(((e,t)=>e+t.size),0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}onSashStart(e){var{sash:t,start:i}=e,r=this.sashItems.findIndex((e=>e.sash===t));(e=>{var t,i,n=this.viewItems.map((e=>e.size)),s=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY,a=X(r,-1,-1),u=X(r+1,this.viewItems.length),l=a.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-n[t])),0),h=a.reduce(((e,t)=>e+(this.viewItems[t].viewMaximumSize-n[t])),0),c=0===u.length?Number.POSITIVE_INFINITY:u.reduce(((e,t)=>e+(n[t]-this.viewItems[t].minimumSize)),0),v=0===u.length?Number.NEGATIVE_INFINITY:u.reduce(((e,t)=>e+(n[t]-this.viewItems[t].viewMaximumSize)),0);s=Math.max(l,v),o=Math.min(c,h);var f=this.findFirstSnapIndex(a),m=this.findFirstSnapIndex(u);if("number"==typeof f){var d=this.viewItems[f],p=Math.floor(d.viewMinimumSize/2);t={index:f,limitDelta:d.visible?s-p:s+p,size:d.size}}if("number"==typeof m){var y=this.viewItems[m],b=Math.floor(y.viewMinimumSize/2);i={index:m,limitDelta:y.visible?o+b:o-b,size:y.size}}this.sashDragState={start:e,current:e,index:r,sizes:n,minDelta:s,maxDelta:o,snapBefore:t,snapAfter:i}})(i)}onSashChange(e){var{current:t}=e,{index:i,start:r,sizes:n,minDelta:s,maxDelta:o,snapBefore:a,snapAfter:u}=this.sashDragState;this.sashDragState.current=t;var l=t-r;this.resize(i,l,n,void 0,void 0,s,o,a,u),this.distributeEmptySpace(),this.layoutViews()}getSashPosition(e){for(var t=0,i=0;i<this.sashItems.length;i++)if(t+=this.viewItems[i].size,this.sashItems[i].sash===e)return t;return 0}resize(e,t,i,r,n,s,o,a,u){if(void 0===i&&(i=this.viewItems.map((e=>e.size))),void 0===s&&(s=Number.NEGATIVE_INFINITY),void 0===o&&(o=Number.POSITIVE_INFINITY),e<0||e>=this.viewItems.length)return 0;var l=X(e,-1,-1),h=X(e+1,this.viewItems.length);if(n)for(var c of n)R(l,c),R(h,c);if(r)for(var v of r)G(l,v),G(h,v);var f=l.map((e=>this.viewItems[e])),m=l.map((e=>i[e])),d=h.map((e=>this.viewItems[e])),p=h.map((e=>i[e])),y=l.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),b=l.reduce(((e,t)=>e+(this.viewItems[t].maximumSize-i[t])),0),z=0===h.length?Number.POSITIVE_INFINITY:h.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),g=0===h.length?Number.NEGATIVE_INFINITY:h.reduce(((e,t)=>e+(i[t]-this.viewItems[t].maximumSize)),0),w=Math.max(y,g,s),_=Math.min(z,b,o),I=!1;if(a){var x=this.viewItems[a.index],V=t>=a.limitDelta;I=V!==x.visible,x.setVisible(V,a.size)}if(!I&&u){var E=this.viewItems[u.index],j=t<u.limitDelta;I=j!==E.visible,E.setVisible(j,u.size)}if(I)return this.resize(e,t,i,r,n,s,o);for(var N=0,O=t=S(t,w,_);N<f.length;N++){var L=f[N],M=S(m[N]+O,L.minimumSize,L.maximumSize);O-=M-m[N],L.size=M}for(var P=0,A=t;P<d.length;P++){var D=d[P],T=S(p[P]-A,D.minimumSize,D.maximumSize);A+=T-p[P],D.size=T}return t}distributeEmptySpace(e){var t=this.viewItems.reduce(((e,t)=>e+t.size),0),i=this.size-t,r=X(this.viewItems.length-1,-1,-1);"number"==typeof e&&G(r,e);for(var n=0;0!==i&&n<r.length;n++){var s=this.viewItems[r[n]],o=S(s.size+i,s.minimumSize,s.maximumSize);i-=o-s.size,s.size=o}}layoutViews(){var e;this.contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0);var t=0;for(var i of this.viewItems)i.layout(t),t+=i.size;null===(e=this.onDidChange)||void 0===e||e.call(this,this.viewItems.map((e=>e.size))),this.sashItems.forEach((e=>e.sash.layout())),this.updateSashEnablement()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map((e=>e.size/this.contentSize)))}updateSashEnablement(){var e=!1,t=this.viewItems.map((t=>e=t.size-t.minimumSize>0||e));e=!1;var i=this.viewItems.map((t=>e=t.maximumSize-t.size>0||e)),r=[...this.viewItems].reverse();e=!1;var n=r.map((t=>e=t.size-t.minimumSize>0||e)).reverse();e=!1;for(var s=r.map((t=>e=t.maximumSize-t.size>0||e)).reverse(),o=0,a=0;a<this.sashItems.length;a++){var{sash:u}=this.sashItems[a];o+=this.viewItems[a].size;var l=!(t[a]&&s[a+1]),h=!(i[a]&&n[a+1]);if(l&&h){var c=X(a,-1,-1),v=X(a+1,this.viewItems.length),f=this.findFirstSnapIndex(c),m=this.findFirstSnapIndex(v),d="number"==typeof f&&!this.viewItems[f].visible,p="number"==typeof m&&!this.viewItems[m].visible;d&&n[a]&&(o>0||this.startSnappingEnabled)?u.state=ue.Minimum:p&&t[a]&&(o<this.contentSize||this.endSnappingEnabled)?u.state=ue.Maximum:u.state=ue.Disabled}else u.state=l&&!h?ue.Minimum:!l&&h?ue.Maximum:ue.Enabled}}findFirstSnapIndex(e){for(var t of e){var i=this.viewItems[t];if(i.visible&&i.snap)return t}for(var r of e){var n=this.viewItems[r];if(n.visible&&n.maximumSize-n.minimumSize>0)return;if(!n.visible&&n.snap)return r}}}class Ne{constructor(e){this.size=void 0,this.size=e}getPreferredSize(){return this.size}}class Oe{constructor(e,t){this.proportion=void 0,this.layoutService=void 0,this.proportion=e,this.layoutService=t}getPreferredSize(){return this.proportion*this.layoutService.getSize()}}class Le{getPreferredSize(){}}class Me{get preferredSize(){return this.layoutStrategy.getPreferredSize()}set preferredSize(e){if("number"==typeof e)this.layoutStrategy=new Ne(e);else if("string"==typeof e){var t=e.trim();if(Y(t,"%")){var i=Number(t.slice(0,-1))/100;this.layoutStrategy=new Oe(i,this.layoutService)}else if(Y(t,"px")){var r=Number(t.slice(0,-2))/100;this.layoutStrategy=new Ne(r)}else if("number"==typeof Number.parseFloat(t)){var n=Number.parseFloat(t);this.layoutStrategy=new Ne(n)}else this.layoutStrategy=new Le}else this.layoutStrategy=new Le}constructor(e,t){var i;if(this.minimumSize=0,this.maximumSize=Number.POSITIVE_INFINITY,this.element=void 0,this.priority=void 0,this.snap=void 0,this.layoutService=void 0,this.layoutStrategy=void 0,this.layoutService=e,this.element=t.element,this.minimumSize="number"==typeof t.minimumSize?t.minimumSize:30,this.maximumSize="number"==typeof t.maximumSize?t.maximumSize:Number.POSITIVE_INFINITY,"number"==typeof t.preferredSize)this.layoutStrategy=new Ne(t.preferredSize);else if("string"==typeof t.preferredSize){var r=t.preferredSize.trim();if(Y(r,"%")){var n=Number(r.slice(0,-1))/100;this.layoutStrategy=new Oe(n,this.layoutService)}else if(Y(r,"px")){var s=Number(r.slice(0,-2))/100;this.layoutStrategy=new Ne(s)}else if("number"==typeof Number.parseFloat(r)){var o=Number.parseFloat(r);this.layoutStrategy=new Ne(o)}else this.layoutStrategy=new Le}else this.layoutStrategy=new Le;this.priority=null!=(i=t.priority)?i:Se.Normal,this.snap="boolean"==typeof t.snap&&t.snap}layout(e){}}function Pe(e){return void 0!==e.minSize||void 0!==e.maxSize||void 0!==e.preferredSize||void 0!==e.priority||void 0!==e.visible}var Ae=a(((e,i)=>{var{className:r,children:n}=e;return t.createElement("div",{ref:i,className:v(O,r)},n)}));Ae.displayName="Allotment.Pane";var De=a(((a,h)=>{var{children:c,className:f,maxSize:m=1/0,minSize:d=30,proportionalLayout:p=!0,sizes:y,defaultSizes:b=y,snap:z=!1,vertical:g=!1,onChange:S,onReset:w,onVisibleChange:_}=a,x=r(null),j=r([]),O=r(new Map),L=r(null),D=r(new Map),T=r(new H),C=r([]),[k,Y]=n(!1);"production"!==process.env.NODE_ENV&&y&&console.warn("Prop sizes is deprecated. Please use defaultSizes instead.");var $=i((()=>t.Children.toArray(c).filter(t.isValidElement)),[c]),B=o((e=>{var t,i,r=null===(t=C.current)||void 0===t?void 0:t[e];return"number"==typeof(null==r?void 0:r.preferredSize)&&(null===(i=L.current)||void 0===i||i.resizeView(e,Math.round(r.preferredSize)),!0)}),[]);return u(h,(()=>({reset:()=>{if(w)w();else{var e;null===(e=L.current)||void 0===e||e.distributeViewSizes();for(var t=0;t<C.current.length;t++)B(t)}},resize:e=>{var t;null===(t=L.current)||void 0===t||t.resizeViews(e)}}))),l((()=>{var t=!0;b&&D.current.size!==b.length&&(t=!1,console.warn("Expected "+b.length+" children based on defaultSizes but found "+D.current.size)),t&&b&&(j.current=$.map((e=>e.key)));var i=e({orientation:g?ae.Vertical:ae.Horizontal,proportionalLayout:p},t&&b&&{descriptor:{size:b.reduce(((e,t)=>e+t),0),views:b.map(((t,i)=>{var r,n,s,o,a=O.current.get(j.current[i]),u=new Me(T.current,e({element:document.createElement("div"),minimumSize:null!=(r=null==a?void 0:a.minSize)?r:d,maximumSize:null!=(n=null==a?void 0:a.maxSize)?n:m,priority:null!=(s=null==a?void 0:a.priority)?s:Se.Normal},(null==a?void 0:a.preferredSize)&&{preferredSize:null==a?void 0:a.preferredSize},{snap:null!=(o=null==a?void 0:a.snap)?o:z}));return C.current.push(u),{container:[...D.current.values()][i],size:t,view:u}}))}});L.current=new je(x.current,i,S),L.current.on("sashchange",(e=>{if(_&&L.current)for(var t=$.map((e=>e.key)),i=0;i<t.length;i++){var r=O.current.get(t[i]);void 0!==(null==r?void 0:r.visible)&&r.visible!==L.current.isViewVisible(i)&&_(i,L.current.isViewVisible(i))}})),L.current.on("sashreset",(e=>{if(w)w();else{var t;if(B(e))return;if(B(e+1))return;null===(t=L.current)||void 0===t||t.distributeViewSizes()}}));var r=L.current;return()=>{r.dispose()}}),[]),s((()=>{if(k){var t=$.map((e=>e.key)),i=[...j.current],r=t.filter((e=>!j.current.includes(e))),n=t.filter((e=>j.current.includes(e))),s=j.current.map((e=>!t.includes(e)));s.forEach(((e,t)=>{var r;e&&(null===(r=L.current)||void 0===r||r.removeView(t),i.splice(t,1),C.current.splice(t,1))}));var o=function(r){var n,s,o,a,l=O.current.get(r),h=new Me(T.current,e({element:document.createElement("div"),minimumSize:null!=(n=null==l?void 0:l.minSize)?n:d,maximumSize:null!=(s=null==l?void 0:l.maxSize)?s:m,priority:null!=(o=null==l?void 0:l.priority)?o:Se.Normal},(null==l?void 0:l.preferredSize)&&{preferredSize:null==l?void 0:l.preferredSize},{snap:null!=(a=null==l?void 0:l.snap)?a:z}));null===(u=L.current)||void 0===u||u.addView(D.current.get(r),h,ze.Distribute,t.findIndex((e=>e===r))),i.splice(t.findIndex((e=>e===r)),0,r),C.current.splice(t.findIndex((e=>e===r)),0,h)};for(var a of r){var u;o(a)}for(;!I(t,i);){var l=function(e,t){var r=i.findIndex((e=>e===t));if(r!==e){null===(v=L.current)||void 0===v||v.moveView(D.current.get(t),r,e);var n=i[r];return i.splice(r,1),i.splice(e,0,n),"break"}};for(var[h,c]of t.entries()){var v;if("break"===l(h,c))break}}var f=function(e){var i=t.findIndex((t=>t===e)),r=C.current[i].preferredSize;void 0!==r&&(null===(y=L.current)||void 0===y||y.resizeView(i,r))};for(var p of r){var y;f(p)}var b=function(e){var i=O.current.get(e),r=t.findIndex((t=>t===e));i&&Pe(i)&&void 0!==i.visible&&(null===(S=L.current)||void 0===S?void 0:S.isViewVisible(r))!==i.visible&&(null===(w=L.current)||void 0===w||w.setViewVisible(r,i.visible))};for(var g of[...r,...n]){var S,w;b(g)}var _=function(e){var i=O.current.get(e),r=t.findIndex((t=>t===e));if(i&&Pe(i)){void 0!==i.preferredSize&&C.current[r].preferredSize!==i.preferredSize&&(C.current[r].preferredSize=i.preferredSize);var n=!1;void 0!==i.minSize&&C.current[r].minimumSize!==i.minSize&&(C.current[r].minimumSize=i.minSize,n=!0),void 0!==i.maxSize&&C.current[r].maximumSize!==i.maxSize&&(C.current[r].maximumSize=i.maxSize,n=!0),n&&(null===(V=L.current)||void 0===V||V.layout())}};for(var x of n){var V;_(x)}(r.length>0||s.length>0)&&(j.current=t)}}),[$,k,m,d,z]),s((()=>{L.current&&(L.current.onDidChange=S)}),[S]),V({ref:x,onResize:e=>{var t,{width:i,height:r}=e;i&&r&&(null===(t=L.current)||void 0===t||t.layout(g?r:i),T.current.setSize(g?r:i),Y(!0))}}),s((()=>{F&&Te(20)}),[]),t.createElement("div",{ref:x,className:v(E,g?M:P,A,f)},t.createElement("div",{className:N},t.Children.toArray(c).map((e=>{if(!t.isValidElement(e))return null;var i=e.key;return"Allotment.Pane"===e.type.displayName?(O.current.set(i,e.props),t.cloneElement(e,{key:i,ref:e=>{e?D.current.set(i,e):D.current.delete(i)}})):t.createElement(Ae,{key:i,ref:e=>{e?D.current.set(i,e):D.current.delete(i)}},e)}))))}));function Te(e){var t=S(e,4,20),i=S(e,1,8);document.documentElement.style.setProperty("--sash-size",t+"px"),document.documentElement.style.setProperty("--sash-hover-size",i+"px"),function(e){we=e,_e.emit("onDidChangeGlobalSize",e)}(t)}De.displayName="Allotment";var Ce=Object.assign(De,{Pane:Ae});export{Ce as Allotment,Te as setSashSize}; |
@@ -15,10 +15,31 @@ import React from "react"; | ||
children: React.ReactNode; | ||
/** | ||
* Preferred size of this pane. Allotment will attempt to use this size when adding this pane (including on initial mount) as well as when a user double clicks a sash, or the `reset` method is called on the Allotment instance. | ||
* @remarks The size can either be a number or a string. If it is a number it will be interpreted as a number of pixels. If it is a string it should end in either "px" or "%". If it ends in "px" it will be interpreted as a number of pixels, e.g. "120px". If it ends in "%" it will be interpreted as a percentage of the size of the Allotment component, e.g. "50%". | ||
*/ | ||
preferredSize?: number | string; | ||
/** | ||
* The priority of the pane when the layout algorithm runs. Panes with higher priority will be resized first. | ||
* @remarks Only used when `proportionalLayout` is false. | ||
*/ | ||
priority?: LayoutPriority; | ||
/** Whether the pane should be visible */ | ||
visible?: boolean; | ||
} & CommonProps; | ||
/** | ||
* Pane component. | ||
*/ | ||
export declare const Pane: React.ForwardRefExoticComponent<{ | ||
children: React.ReactNode; | ||
/** | ||
* Preferred size of this pane. Allotment will attempt to use this size when adding this pane (including on initial mount) as well as when a user double clicks a sash, or the `reset` method is called on the Allotment instance. | ||
* @remarks The size can either be a number or a string. If it is a number it will be interpreted as a number of pixels. If it is a string it should end in either "px" or "%". If it ends in "px" it will be interpreted as a number of pixels, e.g. "120px". If it ends in "%" it will be interpreted as a percentage of the size of the Allotment component, e.g. "50%". | ||
*/ | ||
preferredSize?: string | number | undefined; | ||
/** | ||
* The priority of the pane when the layout algorithm runs. Panes with higher priority will be resized first. | ||
* @remarks Only used when `proportionalLayout` is false. | ||
*/ | ||
priority?: LayoutPriority | undefined; | ||
/** Whether the pane should be visible */ | ||
visible?: boolean | undefined; | ||
@@ -32,5 +53,3 @@ } & CommonProps & React.RefAttributes<HTMLDivElement>>; | ||
children: React.ReactNode; | ||
/** | ||
* Initial size of each element | ||
*/ | ||
/** Initial size of each element */ | ||
defaultSizes?: number[]; | ||
@@ -53,8 +72,11 @@ /** Resize each view proportionally when resizing container */ | ||
} & CommonProps; | ||
/** | ||
* Set sash size. This is set in both css and js and this function keeps the two in sync. | ||
* | ||
* @param sashSize Sash size in pixels | ||
*/ | ||
export declare function setSashSize(sashSize: number): void; | ||
declare const _default: React.ForwardRefExoticComponent<{ | ||
children: React.ReactNode; | ||
/** | ||
* Initial size of each element | ||
*/ | ||
/** Initial size of each element */ | ||
defaultSizes?: number[] | undefined; | ||
@@ -79,4 +101,13 @@ /** Resize each view proportionally when resizing container */ | ||
children: React.ReactNode; | ||
/** | ||
* Preferred size of this pane. Allotment will attempt to use this size when adding this pane (including on initial mount) as well as when a user double clicks a sash, or the `reset` method is called on the Allotment instance. | ||
* @remarks The size can either be a number or a string. If it is a number it will be interpreted as a number of pixels. If it is a string it should end in either "px" or "%". If it ends in "px" it will be interpreted as a number of pixels, e.g. "120px". If it ends in "%" it will be interpreted as a percentage of the size of the Allotment component, e.g. "50%". | ||
*/ | ||
preferredSize?: string | number | undefined; | ||
/** | ||
* The priority of the pane when the layout algorithm runs. Panes with higher priority will be resized first. | ||
* @remarks Only used when `proportionalLayout` is false. | ||
*/ | ||
priority?: LayoutPriority | undefined; | ||
/** Whether the pane should be visible */ | ||
visible?: boolean | undefined; | ||
@@ -83,0 +114,0 @@ } & CommonProps & React.RefAttributes<HTMLDivElement>>; |
@@ -127,16 +127,2 @@ import EventEmitter from "eventemitter3"; | ||
} | ||
export interface PaneViewOptions { | ||
element: HTMLElement; | ||
minimumSize?: number; | ||
maximumSize?: number; | ||
snap?: boolean; | ||
} | ||
export declare class PaneView implements View { | ||
minimumSize: number; | ||
maximumSize: number; | ||
readonly element: HTMLElement; | ||
readonly snap: boolean; | ||
constructor(options: PaneViewOptions); | ||
layout(_size: number): void; | ||
} | ||
/** | ||
@@ -143,0 +129,0 @@ * The {@link SplitView} is the UI component which implements a one dimensional |
{ | ||
"name": "allotment", | ||
"version": "1.13.0", | ||
"version": "1.14.0", | ||
"description": "React split-pane component", | ||
@@ -34,37 +34,37 @@ "exports": { | ||
"lodash.isequal": "^4.5.0", | ||
"use-resize-observer": "^8.0.0" | ||
"use-resize-observer": "^9.0.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.17.10", | ||
"@babel/plugin-proposal-class-properties": "7.16.7", | ||
"@babel/plugin-proposal-private-methods": "7.16.11", | ||
"@babel/plugin-proposal-private-property-in-object": "7.16.7", | ||
"@babel/plugin-transform-runtime": "7.17.10", | ||
"@babel/preset-env": "7.17.10", | ||
"@babel/preset-react": "7.16.7", | ||
"@babel/preset-typescript": "7.16.7", | ||
"@babel/core": "7.18.0", | ||
"@babel/plugin-proposal-class-properties": "7.17.12", | ||
"@babel/plugin-proposal-private-methods": "7.17.12", | ||
"@babel/plugin-proposal-private-property-in-object": "7.17.12", | ||
"@babel/plugin-transform-runtime": "7.18.0", | ||
"@babel/preset-env": "7.18.0", | ||
"@babel/preset-react": "7.17.12", | ||
"@babel/preset-typescript": "7.17.12", | ||
"@rollup/plugin-babel": "5.3.1", | ||
"@rollup/plugin-commonjs": "22.0.0", | ||
"@rollup/plugin-node-resolve": "13.3.0", | ||
"@storybook/addon-actions": "6.4.22", | ||
"@storybook/addon-essentials": "6.4.22", | ||
"@storybook/addon-links": "6.4.22", | ||
"@storybook/react": "6.4.22", | ||
"@storybook/addon-actions": "6.5.3", | ||
"@storybook/addon-essentials": "6.5.3", | ||
"@storybook/addon-links": "6.5.3", | ||
"@storybook/react": "6.5.3", | ||
"@testing-library/dom": "8.13.0", | ||
"@types/jest": "27.5.0", | ||
"@types/jest": "27.5.1", | ||
"@types/lodash.clamp": "4.0.7", | ||
"@types/lodash.debounce": "4.0.7", | ||
"@types/lodash.isequal": "4.5.6", | ||
"@typescript-eslint/parser": "5.22.0", | ||
"@vscode/codicons": "0.0.29", | ||
"babel-jest": "28.0.3", | ||
"@typescript-eslint/parser": "5.25.0", | ||
"@vscode/codicons": "0.0.30", | ||
"babel-jest": "28.1.0", | ||
"babel-loader": "8.2.5", | ||
"eslint": "8.14.0", | ||
"eslint": "8.15.0", | ||
"eslint-config-prettier": "8.5.0", | ||
"eslint-plugin-react-hooks": "4.5.0", | ||
"eslint-plugin-simple-import-sort": "7.0.0", | ||
"husky": "7.0.4", | ||
"jest": "28.0.3", | ||
"jest-environment-jsdom": "28.0.2", | ||
"postcss": "8.4.13", | ||
"husky": "8.0.1", | ||
"jest": "28.1.0", | ||
"jest-environment-jsdom": "28.1.0", | ||
"postcss": "8.4.14", | ||
"prettier": "2.6.2", | ||
@@ -74,6 +74,6 @@ "pretty-quick": "3.1.3", | ||
"react-dom": "18.1.0", | ||
"rollup": "2.71.1", | ||
"rollup": "2.74.1", | ||
"rollup-plugin-postcss": "4.0.2", | ||
"rollup-plugin-terser": "7.0.2", | ||
"standard-version": "9.3.2", | ||
"standard-version": "9.5.0", | ||
"storybook-dark-mode": "1.1.0", | ||
@@ -80,0 +80,0 @@ "ts-jest": "28.0.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
179507
1228
+ Addeduse-resize-observer@9.1.0(transitive)
- Removeduse-resize-observer@8.0.0(transitive)
Updateduse-resize-observer@^9.0.0