Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

allotment

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

allotment - npm Package Compare versions

Comparing version 1.16.0 to 1.17.0

2

dist/legacy.js

@@ -7,2 +7,2 @@ "use strict";function e(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){i(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 i(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function n(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 i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==i)return;var n,r,o=[],s=!0,a=!1;try{for(i=i.call(e);!(s=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);s=!0);}catch(e){a=!0,r=e}finally{try{s||null==i.return||i.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 i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=s(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(u)throw o}}}}function s(e,t){if(e){if("string"==typeof e)return a(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}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?Object.setPrototypeOf.bind():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 i,n=h(e);if(t){var r=h(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return f(this,i)}}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.bind():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 i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t,i){return t&&d(e.prototype,t),i&&d(e,i),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,w=b(y),S={exports:{}};

*/
g=S,function(){var e={}.hasOwnProperty;function t(){for(var i=[],n=0;n<arguments.length;n++){var r=arguments[n];if(r){var o=p(r);if("string"===o||"number"===o)i.push(r);else if(Array.isArray(r)){if(r.length){var s=t.apply(null,r);s&&i.push(s)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var a in r)e.call(r,a)&&r[a]&&i.push(a);else i.push(r.toString())}}return i.join(" ")}g.exports?(t.default=t,g.exports=t):window.classNames=t}();var z=S.exports,_=/^\s+|\s+$/g,I=/^[-+]0x[0-9a-f]+$/i,x=/^0b[01]+$/i,E=/^0o[0-7]+$/i,j=parseInt,O=Object.prototype.toString;function V(e){var t=p(e);return!!e&&("object"==t||"function"==t)}function P(e){return"symbol"==p(e)||function(e){return!!e&&"object"==p(e)}(e)&&"[object Symbol]"==O.call(e)}function L(e){if("number"==typeof e)return e;if(P(e))return NaN;if(V(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=V(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(_,"");var i=x.test(e);return i||E.test(e)?j(e.slice(2),i?2:8):I.test(e)?NaN:+e}var k=function(e,t,i){return void 0===i&&(i=t,t=void 0),void 0!==i&&(i=(i=L(i))==i?i:0),void 0!==t&&(t=(t=L(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}(L(e),t,i)},N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},M={exports:{}};!function(e,t){var i="__lodash_hash_undefined__",n=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]",w="[object ArrayBuffer]",S="[object DataView]",z=/^\[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[w]=I[s]=I[S]=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(N)&&N&&N.Object===Object&&N,E="object"==("undefined"==typeof self?"undefined":p(self))&&self&&self.Object===Object&&self,j=x||E||Function("return this")(),O=t&&!t.nodeType&&t,V=O&&e&&!e.nodeType&&e,P=V&&V.exports===O,L=P&&x.process,k=function(){try{return L&&L.binding&&L.binding("util")}catch(e){}}(),M=k&&k.isTypedArray;function A(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)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,n){i[++t]=[n,e]})),i}function T(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}var C,R,F,H=Array.prototype,B=Function.prototype,Y=Object.prototype,$=j["__core-js_shared__"],W=B.toString,U=Y.hasOwnProperty,G=(C=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",X=Y.toString,J=RegExp("^"+W.call(U).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=P?j.Buffer:void 0,K=j.Symbol,Z=j.Uint8Array,Q=Y.propertyIsEnumerable,ee=H.splice,te=K?K.toStringTag:void 0,ie=Object.getOwnPropertySymbols,ne=q?q.isBuffer:void 0,re=(R=Object.keys,F=Object,function(e){return R(F(e))}),oe=Ne(j,"DataView"),se=Ne(j,"Map"),ae=Ne(j,"Promise"),ue=Ne(j,"Set"),le=Ne(j,"WeakMap"),ce=Ne(Object,"create"),fe=Te(oe),he=Te(se),ve=Te(ae),de=Te(ue),me=Te(le),pe=K?K.prototype:void 0,ye=pe?pe.valueOf:void 0;function be(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function ge(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function we(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function Se(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new we;++t<i;)this.add(e[t])}function ze(e){var t=this.__data__=new ge(e);this.size=t.size}function _e(e,t){var i=Fe(e),n=!i&&Re(e),r=!i&&!n&&He(e),o=!i&&!n&&!r&&Ue(e),s=i||n||r||o,a=s?function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}(e.length,String):[],u=a.length;for(var l in e)!t&&!U.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 i=e.length;i--;)if(Ce(e[i][0],t))return i;return-1}function xe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":te&&te in Object(e)?function(e){var t=U.call(e,te),i=e[te];try{e[te]=void 0;var n=!0}catch(e){}var r=X.call(e);n&&(t?e[te]=i:delete e[te]);return r}(e):function(e){return X.call(e)}(e)}function Ee(e){return We(e)&&xe(e)==r}function je(e,t,i,n,l){return e===t||(null==e||null==t||!We(e)&&!We(t)?e!=e&&t!=t:function(e,t,i,n,l,v){var p=Fe(e),g=Fe(t),z=p?o:Ae(e),_=g?o:Ae(t),I=(z=z==r?h:z)==h,x=(_=_==r?h:_)==h,E=z==_;if(E&&He(e)){if(!He(t))return!1;p=!0,I=!1}if(E&&!I)return v||(v=new ze),p||Ue(e)?Pe(e,t,i,n,l,v):function(e,t,i,n,r,o,l){switch(i){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!o(new Z(e),new Z(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&n;if(h||(h=T),e.size!=t.size&&!v)return!1;var p=l.get(e);if(p)return p==t;n|=2,l.set(e,t);var g=Pe(h(e),h(t),n,r,o,l);return l.delete(e),g;case b:if(ye)return ye.call(e)==ye.call(t)}return!1}(e,t,z,i,n,l,v);if(!(1&i)){var j=I&&U.call(e,"__wrapped__"),O=x&&U.call(t,"__wrapped__");if(j||O){var V=j?e.value():e,P=O?t.value():t;return v||(v=new ze),l(V,P,i,n,v)}}if(!E)return!1;return v||(v=new ze),function(e,t,i,n,r,o){var s=1&i,a=Le(e),u=a.length,l=Le(t).length;if(u!=l&&!s)return!1;var c=u;for(;c--;){var f=a[c];if(!(s?f in t:U.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(n)var y=s?n(p,m,f,t,e,o):n(m,p,f,e,t,o);if(!(void 0===y?m===p||r(m,p,i,n,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,i,n,l,v)}(e,t,i,n,je,l))}function Oe(e){return!(!$e(e)||function(e){return!!G&&G in e}(e))&&(Be(e)?J:z).test(Te(e))}function Ve(e){if(i=(t=e)&&t.constructor,n="function"==typeof i&&i.prototype||Y,t!==n)return re(e);var t,i,n,r=[];for(var o in Object(e))U.call(e,o)&&"constructor"!=o&&r.push(o);return r}function Pe(e,t,i,n,r,o){var s=1&i,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&i?new Se:void 0;for(o.set(e,t),o.set(t,e);++c<a;){var v=e[c],d=t[c];if(n)var m=s?n(d,v,c,t,e,o):n(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,i,n,o)))return h.push(t);var s}))){f=!1;break}}else if(v!==d&&!r(v,d,i,n,o)){f=!1;break}}return o.delete(e),o.delete(t),f}function Le(e){return function(e,t,i){var n=t(e);return Fe(e)?n:function(e,t){for(var i=-1,n=t.length,r=e.length;++i<n;)e[r+i]=t[i];return e}(n,i(e))}(e,Ge,Me)}function ke(e,t){var i,n,r=e.__data__;return("string"==(n=p(i=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==i:null===i)?r["string"==typeof t?"string":"hash"]:r.map}function Ne(e,t){var i=function(e,t){return null==e?void 0:e[t]}(e,t);return Oe(i)?i: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 n=t[e];return n===i?void 0:n}return U.call(t,e)?t[e]:void 0},be.prototype.has=function(e){var t=this.__data__;return ce?void 0!==t[e]:U.call(t,e)},be.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ce&&void 0===t?i:t,this},ge.prototype.clear=function(){this.__data__=[],this.size=0},ge.prototype.delete=function(e){var t=this.__data__,i=Ie(t,e);return!(i<0)&&(i==t.length-1?t.pop():ee.call(t,i,1),--this.size,!0)},ge.prototype.get=function(e){var t=this.__data__,i=Ie(t,e);return i<0?void 0:t[i][1]},ge.prototype.has=function(e){return Ie(this.__data__,e)>-1},ge.prototype.set=function(e,t){var i=this.__data__,n=Ie(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this},we.prototype.clear=function(){this.size=0,this.__data__={hash:new be,map:new(se||ge),string:new be}},we.prototype.delete=function(e){var t=ke(this,e).delete(e);return this.size-=t?1:0,t},we.prototype.get=function(e){return ke(this,e).get(e)},we.prototype.has=function(e){return ke(this,e).has(e)},we.prototype.set=function(e,t){var i=ke(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this},Se.prototype.add=Se.prototype.push=function(e){return this.__data__.set(e,i),this},Se.prototype.has=function(e){return this.__data__.has(e)},ze.prototype.clear=function(){this.__data__=new ge,this.size=0},ze.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},ze.prototype.get=function(e){return this.__data__.get(e)},ze.prototype.has=function(e){return this.__data__.has(e)},ze.prototype.set=function(e,t){var i=this.__data__;if(i instanceof ge){var n=i.__data__;if(!se||n.length<199)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new we(n)}return i.set(e,t),this.size=i.size,this};var Me=ie?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var i=-1,n=null==e?0:e.length,r=0,o=[];++i<n;){var s=e[i];t(s,i,e)&&(o[r++]=s)}return o}(ie(e),(function(t){return Q.call(e,t)})))}:function(){return[]},Ae=xe;function De(e,t){return!!(t=null==t?n:t)&&("number"==typeof e||_.test(e))&&e>-1&&e%1==0&&e<t}function Te(e){if(null!=e){try{return W.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)))!=S||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),i=t==h?e.constructor:void 0,n=i?Te(i):"";if(n)switch(n){case fe:return S;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 We(e)&&U.call(e,"callee")&&!Q.call(e,"callee")},Fe=Array.isArray;var He=ne||function(){return!1};function Be(e){if(!$e(e))return!1;var t=xe(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ye(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}function $e(e){var t=p(e);return null!=e&&("object"==t||"function"==t)}function We(e){return null!=e&&"object"==p(e)}var Ue=M?function(e){return function(t){return e(t)}}(M):function(e){return We(e)&&Ye(e.length)&&!!I[xe(e)]};function Ge(e){return null!=(t=e)&&Ye(t.length)&&!Be(t)?_e(e):Ve(e);var t}e.exports=function(e,t){return je(e,t)}}(M,M.exports);var A=M.exports;function D(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 T(e){void 0===e&&(e={});var t=e.onResize,i=y.useRef(void 0);i.current=t;var n=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=y.useRef({width:void 0,height:void 0}),c=function(e,t){var i=y.useRef(null),n=y.useRef(null);n.current=t;var r=y.useRef(null);y.useEffect((function(){o()}));var o=y.useCallback((function(){var t=r.current,o=n.current,s=t||(o?o instanceof Element?o:o.current:null);i.current&&i.current.element===s&&i.current.subscriber===e||(i.current&&i.current.cleanup&&i.current.cleanup(),i.current={element:s,subscriber:e,cleanup:s?e(s):void 0})}),[e]);return y.useEffect((function(){return function(){i.current&&i.current.cleanup&&(i.current.cleanup(),i.current=null)}}),[]),y.useCallback((function(e){r.current=e,o()}),[o])}(y.useCallback((function(t){return r.current&&r.current.box===e.box&&r.current.round===n||(r.current={box:e.box,round:n,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"),c=D(r,o,"blockSize"),f=s?n(s):void 0,h=c?n(c):void 0;if(l.current.width!==f||l.current.height!==h){var v={width:f,height:h};l.current.width=f,l.current.height=h,i.current?i.current(v):u.current||a(v)}}))}),r.current.instance.observe(t,{box:e.box}),function(){r.current&&r.current.instance.unobserve(t)}}),[e.box,n]),e.ref);return y.useMemo((function(){return{ref:c,width:s.width,height:s.height}}),[c,s.width,s.height])}var C="allotment-module_splitView__L-yRc",R="allotment-module_sashContainer__fzwJF",F="allotment-module_splitViewContainer__rQnVa",H="allotment-module_splitViewView__MGZ6O",B="allotment-module_visible__AHq-h",Y="allotment-module_vertical__WSwwa",$="allotment-module_horizontal__7doS8",W="allotment-module_separatorBorder__x-rDS",U=!1,G=!1,X=void 0;"object"===("undefined"==typeof navigator?"undefined":p(navigator))&&(G=(X=navigator.userAgent).indexOf("Macintosh")>=0,U=(X.indexOf("Macintosh")>=0||X.indexOf("iPad")>=0||X.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0);var J=U,q=G,K=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 Z(e,t){var i=e.length,n=i-t.length;return n>=0&&e.slice(n,i)===t}var Q={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,i="~";function n(){}function r(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function o(e,t,n,o,s){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new r(n,o||e,s),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 s(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(i=!1)),a.prototype.eventNames=function(){var e,n,r=[];if(0===this._eventsCount)return r;for(n in e=this._events)t.call(e,n)&&r.push(i?n.slice(1):n);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},a.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,s=new Array(o);r<o;r++)s[r]=n[r].fn;return s},a.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},a.prototype.emit=function(e,t,n,r,o,s){var a=i?i+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,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,o),!0;case 6:return c.fn.call(c.context,t,n,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,n);break;case 4:c[l].fn.call(c[l].context,t,n,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,i){return o(this,e,t,i,!1)},a.prototype.once=function(e,t,i){return o(this,e,t,i,!0)},a.prototype.removeListener=function(e,t,n,r){var o=i?i+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||n&&a.context!==n||s(this,o);else{for(var u=0,l=[],c=a.length;u<c;u++)(a[u].fn!==t||r&&!a[u].once||n&&a[u].context!==n)&&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=i?i+e:e,this._events[t]&&s(this,t)):(this._events=new n,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}(Q);var ee=Q.exports;function te(e,t){var i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function ie(e,t){var i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function ne(e,t){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=Math.max(0,Math.ceil((t-e)/i)),r=new Array(n),o=-1;++o<n;)r[o]=e+o*i;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(N)&&N&&N.Object===Object&&N,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 i=se.test(e);return i||ae.test(e)?ue(e.slice(2),i?2:8):oe.test(e)?NaN:+e}var ge,we,Se=function(e,t,i){var n,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 i=n,o=r;return n=r=void 0,l=t,s=e.apply(o,i)}function d(e){return l=e,a=setTimeout(p,t),c?v(e):s}function m(e){var i=e-u;return void 0===u||i>=t||i<0||f&&e-l>=o}function p(){var e=me();if(m(e))return y(e);a=setTimeout(p,function(e){var i=t-(e-u);return f?de(i,o-(e-l)):i}(e))}function y(e){return a=void 0,h&&n?v(e):(n=r=void 0,s)}function b(){var e=me(),i=m(e);if(n=arguments,r=this,u=e,i){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(i)&&(c=!!i.leading,o=(f="maxWait"in i)?ve(be(i.maxWait)||0,t):o,h="trailing"in i?!!i.trailing:h),b.cancel=function(){void 0!==a&&clearTimeout(a),l=0,n=u=r=a=void 0},b.flush=function(){return void 0===a?s:y(me())},b},ze="sash-module_sash__K-9lB",_e="sash-module_disabled__Hm-wx",Ie="sash-module_mac__Jf6OJ",xe="sash-module_vertical__pB-rs",Ee="sash-module_minimum__-UKxp",je="sash-module_maximum__TCWxD",Oe="sash-module_horizontal__kFbiw",Ve="sash-module_hover__80W6I",Pe="sash-module_active__bJspD";!function(e){e.Vertical="VERTICAL",e.Horizontal="HORIZONTAL"}(ge||(ge={})),function(e){e.Disabled="DISABLED",e.Minimum="MINIMUM",e.Maximum="MAXIMUM",e.Enabled="ENABLED"}(we||(we={}));var Le=J?20:8,ke=new ee;var Ne,Me,Ae,De=function(e){u(i,ee);var t=c(i);function i(e,n,r){var o,s;return v(this,i),(s=t.call(this)).el=void 0,s.layoutProvider=void 0,s.orientation=void 0,s.size=void 0,s.hoverDelay=300,s.hoverDelayer=Se((function(e){return e.classList.add("sash-hover",Ve)}),s.hoverDelay),s._state=we.Enabled,s.onPointerStart=function(e){var t=e.pageX,i=e.pageY,n={startX:t,currentX:t,startY:i,currentY:i};s.el.classList.add("sash-active",Pe),s.emit("start",n),s.el.setPointerCapture(e.pointerId);var r=function(e){e.preventDefault();var n={startX:t,currentX:e.pageX,startY:i,currentY:e.pageY};s.emit("change",n)};window.addEventListener("pointermove",r),window.addEventListener("pointerup",(function e(t){t.preventDefault(),s.el.classList.remove("sash-active",Pe),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(Pe)?(s.hoverDelayer.cancel(),s.el.classList.add("sash-hover",Ve)):s.hoverDelayer(s.el)},s.onMouseLeave=function(){s.hoverDelayer.cancel(),s.el.classList.remove("sash-hover",Ve)},s.el=document.createElement("div"),s.el.classList.add("sash",ze),s.el.dataset.testid="sash",e.append(s.el),q&&s.el.classList.add("sash-mac",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=Le,ke.on("onDidChangeGlobalSize",(function(e){s.size=e,s.layout()}))),s.layoutProvider=n,s.orientation=null!==(o=r.orientation)&&void 0!==o?o:ge.Vertical,s.orientation===ge.Horizontal?(s.el.classList.add("sash-horizontal",Oe),s.el.classList.remove("sash-vertical",xe)):(s.el.classList.remove("sash-horizontal",Oe),s.el.classList.add("sash-vertical",xe)),s.layout(),s}return m(i,[{key:"state",get:function(){return this._state},set:function(e){this._state!==e&&(this.el.classList.toggle(_e,e===we.Disabled),this.el.classList.toggle("dash-disabled",e===we.Disabled),this.el.classList.toggle(Ee,e===we.Minimum),this.el.classList.toggle("sash-minimum",e===we.Minimum),this.el.classList.toggle(je,e===we.Maximum),this.el.classList.toggle("sash-maximum",e===we.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()}}]),i}();(Me=Ne||(Ne={})).Distribute={type:"distribute"},Me.Split=function(e){return{type:"split",index:e}},Me.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}},exports.LayoutPriority=void 0,(Ae=exports.LayoutPriority||(exports.LayoutPriority={})).Normal="NORMAL",Ae.Low="LOW",Ae.High="HIGH";var Te=function(){function e(t,i,n){v(this,e),this.container=void 0,this.view=void 0,this._size=void 0,this._cachedVisibleSize=void 0,this.container=t,this.view=i,this.container.classList.add("split-view-view",H),this.container.dataset.testid="split-view-view","number"==typeof n?(this._size=n,this._cachedVisibleSize=void 0,t.classList.add("split-view-view-visible",B)):(this._size=0,this._cachedVisibleSize=n.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=k(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(B,e),this.container.classList.toggle("split-view-view-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(i,Te);var t=c(i);function i(){return v(this,i),t.apply(this,arguments)}return m(i,[{key:"layoutContainer",value:function(e){this.container.style.left="".concat(e,"px"),this.container.style.width="".concat(this.size,"px")}}]),i}(),Re=function(e){u(i,Te);var t=c(i);function i(){return v(this,i),t.apply(this,arguments)}return m(i,[{key:"layoutContainer",value:function(e){this.container.style.top="".concat(e,"px"),this.container.style.height="".concat(this.size,"px")}}]),i}(),Fe=function(e){u(i,ee);var t=c(i);function i(e){var n,s,a,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2?arguments[2]:void 0;if(v(this,i),(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,i=o(a.viewItems);try{for(i.s();!(t=i.n()).done;){t.value.enabled=!0}}catch(e){i.e(e)}finally{i.f()}},a.orientation=null!==(n=u.orientation)&&void 0!==n?n: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("sash-container",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(i,[{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,i){var n,r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.viewItems.length,s=arguments.length>4?arguments[4]:void 0;n="number"==typeof i?i:"split"===i.type?this.getViewSize(i.index)/2:"invisible"===i.type?{cachedVisibleSize:i.cachedVisibleSize}:t.minimumSize;var a=this.orientation===ge.Vertical?new Re(e,t,n):new Ce(e,t,n);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=ne(e,-1,-1),i=ne(e+1,r.viewItems.length),n=r.findFirstSnapIndex(t),o=r.findFirstSnapIndex(i);("number"!=typeof n||r.viewItems[n].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 i||"distribute"!==i.type||this.distributeViewSizes()}},{key:"removeView",value:function(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 n=Math.max(e-1,0);this.sashItems.splice(n,1)[0].sash.dispose()}return this.relayout(),t&&"distribute"===t.type&&this.distributeViewSizes(),i}},{key:"moveView",value:function(e,t,i){var n=this.getViewCachedVisibleSize(t),r=void 0===n?this.getViewSize(t):Ne.Invisible(n),o=this.removeView(t);this.addView(e,o,r,i)}},{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,i=Math.max(this.size,this.contentSize);if(this.size=t,this.proportions)for(var n=0;n<this.viewItems.length;n++){var r=this.viewItems[n];r.size=k(Math.round(this.proportions[n]*t),r.minimumSize,r.maximumSize)}else{var o=ne(0,this.viewItems.length),s=o.filter((function(t){return e.viewItems[t].priority===exports.LayoutPriority.Low})),a=o.filter((function(t){return e.viewItems[t].priority===exports.LayoutPriority.High}));this.resize(this.viewItems.length-1,t-i,void 0,s,a)}this.distributeEmptySpace(),this.layoutViews()}},{key:"resizeView",value:function(e,t){var i=this;if(!(e<0||e>=this.viewItems.length)){var r=ne(0,this.viewItems.length).filter((function(t){return t!==e})),o=[].concat(n(r.filter((function(e){return i.viewItems[e].priority===exports.LayoutPriority.Low}))),[e]),s=r.filter((function(e){return i.viewItems[e].priority===exports.LayoutPriority.High})),a=this.viewItems[e];t=Math.round(t),t=k(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 i=this.viewItems[t],n=e[t];n=Math.round(n),n=k(n,i.minimumSize,Math.min(i.maximumSize,this.size)),i.size=n}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,i=[],n=0,r=o(this.viewItems);try{for(r.s();!(e=r.n()).done;){var s=e.value;s.maximumSize-s.minimumSize>0&&(i.push(s),n+=s.size)}}catch(e){r.e(e)}finally{r.f()}for(var a=Math.floor(n/i.length),u=0,l=i;u<l.length;u++){var c=l[u];c.size=k(a,c.minimumSize,c.maximumSize)}var f=ne(0,this.viewItems.length),h=f.filter((function(e){return t.viewItems[e].priority===exports.LayoutPriority.Low})),v=f.filter((function(e){return t.viewItems[e].priority===exports.LayoutPriority.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 i=this.viewItems.reduce((function(e,t){return e+t.size}),0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}},{key:"onSashStart",value:function(e){var t=this,i=e.sash,n=e.start,r=this.sashItems.findIndex((function(e){return e.sash===i}));!function(e){var i,n,o=t.viewItems.map((function(e){return e.size})),s=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY,u=ne(r,-1,-1),l=ne(r+1,t.viewItems.length),c=u.reduce((function(e,i){return e+(t.viewItems[i].minimumSize-o[i])}),0),f=u.reduce((function(e,i){return e+(t.viewItems[i].viewMaximumSize-o[i])}),0),h=0===l.length?Number.POSITIVE_INFINITY:l.reduce((function(e,i){return e+(o[i]-t.viewItems[i].minimumSize)}),0),v=0===l.length?Number.NEGATIVE_INFINITY:l.reduce((function(e,i){return e+(o[i]-t.viewItems[i].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);i={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);n={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:i,snapAfter:n}}(n)}},{key:"onSashChange",value:function(e){var t=e.current,i=this.sashDragState,n=i.index,r=i.start,o=i.sizes,s=i.minDelta,a=i.maxDelta,u=i.snapBefore,l=i.snapAfter;this.sashDragState.current=t;var c=t-r;this.resize(n,c,o,void 0,void 0,s,a,u,l),this.distributeEmptySpace(),this.layoutViews()}},{key:"getSashPosition",value:function(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}},{key:"resize",value:function(e,t){var i=this,n=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=ne(e,-1,-1),h=ne(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;ie(f,b),ie(h,b)}}catch(e){y.e(e)}finally{y.f()}}var g=f.map((function(e){return i.viewItems[e]})),w=f.map((function(e){return n[e]})),S=h.map((function(e){return i.viewItems[e]})),z=h.map((function(e){return n[e]})),_=f.reduce((function(e,t){return e+(i.viewItems[t].minimumSize-n[t])}),0),I=f.reduce((function(e,t){return e+(i.viewItems[t].maximumSize-n[t])}),0),x=0===h.length?Number.POSITIVE_INFINITY:h.reduce((function(e,t){return e+(n[t]-i.viewItems[t].minimumSize)}),0),E=0===h.length?Number.NEGATIVE_INFINITY:h.reduce((function(e,t){return e+(n[t]-i.viewItems[t].maximumSize)}),0),j=Math.max(_,E,a),O=Math.min(x,I,u),V=!1;if(l){var P=this.viewItems[l.index],L=t>=l.limitDelta;V=L!==P.visible,P.setVisible(L,l.size)}if(!V&&c){var N=this.viewItems[c.index],M=t<c.limitDelta;V=M!==N.visible,N.setVisible(M,c.size)}if(V)return this.resize(e,t,n,r,s,a,u);for(var A=0,D=t=k(t,j,O);A<g.length;A++){var T=g[A],C=k(w[A]+D,T.minimumSize,T.maximumSize),R=C-w[A];D-=R,T.size=C}for(var F=0,H=t;F<S.length;F++){var B=S[F],Y=k(z[F]-H,B.minimumSize,B.maximumSize),$=Y-z[F];H+=$,B.size=Y}return t}},{key:"distributeEmptySpace",value:function(e){var t=this.viewItems.reduce((function(e,t){return e+t.size}),0),i=this.size-t,n=ne(this.viewItems.length-1,-1,-1);"number"==typeof e&&ie(n,e);for(var r=0;0!==i&&r<n.length;r++){var o=this.viewItems[n[r]],s=k(o.size+i,o.minimumSize,o.maximumSize);i-=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,i=0,n=o(this.viewItems);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.layout(i),i+=r.size}}catch(e){n.e(e)}finally{n.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 i=this.viewItems.map((function(t){return e=t.maximumSize-t.size>0||e})),r=n(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=!(i[u]&&o[u+1]);if(c&&f){var h=ne(u,-1,-1),v=ne(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=we.Minimum:y&&t[u]&&(a<this.contentSize||this.endSnappingEnabled)?l.state=we.Maximum:l.state=we.Disabled}else l.state=c&&!f?we.Minimum:!c&&f?we.Maximum:we.Enabled}}},{key:"findFirstSnapIndex",value:function(e){var t,i=o(e);try{for(i.s();!(t=i.n()).done;){var n=t.value,r=this.viewItems[n];if(r.visible&&r.snap)return n}}catch(e){i.e(e)}finally{i.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()}}}]),i}(),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}(),Be=function(){function e(t,i){v(this,e),this.proportion=void 0,this.layoutService=void 0,this.proportion=t,this.layoutService=i}return m(e,[{key:"getPreferredSize",value:function(){return this.proportion*this.layoutService.getSize()}}]),e}(),Ye=function(){function e(){v(this,e)}return m(e,[{key:"getPreferredSize",value:function(){}}]),e}(),$e=function(){function e(t,i){var n;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=i.element,this.minimumSize="number"==typeof i.minimumSize?i.minimumSize:30,this.maximumSize="number"==typeof i.maximumSize?i.maximumSize:Number.POSITIVE_INFINITY,"number"==typeof i.preferredSize)this.layoutStrategy=new He(i.preferredSize);else if("string"==typeof i.preferredSize){var r=i.preferredSize.trim();if(Z(r,"%")){var o=Number(r.slice(0,-1))/100;this.layoutStrategy=new Be(o,this.layoutService)}else if(Z(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 Ye}else this.layoutStrategy=new Ye;this.priority=null!==(n=i.priority)&&void 0!==n?n:exports.LayoutPriority.Normal,this.snap="boolean"==typeof i.snap&&i.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(Z(t,"%")){var i=Number(t.slice(0,-1))/100;this.layoutStrategy=new Be(i,this.layoutService)}else if(Z(t,"px")){var n=Number(t.slice(0,-2))/100;this.layoutStrategy=new He(n)}else if("number"==typeof Number.parseFloat(t)){var r=Number.parseFloat(t);this.layoutStrategy=new He(r)}else this.layoutStrategy=new Ye}else this.layoutStrategy=new Ye}},{key:"layout",value:function(e){}}]),e}();function We(e){return void 0!==e.minSize||void 0!==e.maxSize||void 0!==e.preferredSize||void 0!==e.priority||void 0!==e.visible}var Ue=y.forwardRef((function(e,t){var i=e.className,n=e.children;return w.default.createElement("div",{ref:t,className:z("split-view-view",H,i)},n)}));Ue.displayName="Allotment.Pane";var Ge=y.forwardRef((function(e,s){var a=e.children,u=e.className,l=e.maxSize,c=void 0===l?1/0:l,f=e.minSize,h=void 0===f?30:f,v=e.proportionalLayout,d=void 0===v||v,m=e.separator,p=void 0===m||m,b=e.sizes,g=e.defaultSizes,S=void 0===g?b:g,_=e.snap,I=void 0!==_&&_,x=e.vertical,E=void 0!==x&&x,j=e.onChange,O=e.onReset,V=e.onVisibleChange,P=y.useRef(null),L=y.useRef([]),k=y.useRef(new Map),N=y.useRef(null),M=y.useRef(new Map),D=y.useRef(new K),R=y.useRef([]),H=r(y.useState(!1),2),B=H[0],U=H[1];"production"!==process.env.NODE_ENV&&b&&console.warn("Prop sizes is deprecated. Please use defaultSizes instead.");var G=y.useMemo((function(){return w.default.Children.toArray(a).filter(w.default.isValidElement)}),[a]),X=y.useCallback((function(e){var t,i,n=null===(t=R.current)||void 0===t?void 0:t[e];return"number"==typeof(null==n?void 0:n.preferredSize)&&(null===(i=N.current)||void 0===i||i.resizeView(e,Math.round(n.preferredSize)),!0)}),[]);return y.useImperativeHandle(s,(function(){return{reset:function(){if(O)O();else{var e;null===(e=N.current)||void 0===e||e.distributeViewSizes();for(var t=0;t<R.current.length;t++)X(t)}},resize:function(e){var t;null===(t=N.current)||void 0===t||t.resizeViews(e)}}})),y.useLayoutEffect((function(){var e=!0;S&&M.current.size!==S.length&&(e=!1,console.warn("Expected ".concat(S.length," children based on defaultSizes but found ").concat(M.current.size))),e&&S&&(L.current=G.map((function(e){return e.key})));var i=t({orientation:E?ge.Vertical:ge.Horizontal,proportionalLayout:d},e&&S&&{descriptor:{size:S.reduce((function(e,t){return e+t}),0),views:S.map((function(e,i){var r,o,s,a,u=k.current.get(L.current[i]),l=new $e(D.current,t(t({element:document.createElement("div"),minimumSize:null!==(r=null==u?void 0:u.minSize)&&void 0!==r?r:h,maximumSize:null!==(o=null==u?void 0:u.maxSize)&&void 0!==o?o:c,priority:null!==(s=null==u?void 0:u.priority)&&void 0!==s?s:exports.LayoutPriority.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:I}));return R.current.push(l),{container:n(M.current.values())[i],size:e,view:l}}))}});N.current=new Fe(P.current,i,j),N.current.on("sashchange",(function(e){if(V&&N.current)for(var t=G.map((function(e){return e.key})),i=0;i<t.length;i++){var n=k.current.get(t[i]);void 0!==(null==n?void 0:n.visible)&&n.visible!==N.current.isViewVisible(i)&&V(i,N.current.isViewVisible(i))}})),N.current.on("sashreset",(function(e){if(O)O();else{var t;if(X(e))return;if(X(e+1))return;null===(t=N.current)||void 0===t||t.distributeViewSizes()}}));var r=N.current;return function(){r.dispose()}}),[]),y.useEffect((function(){if(B){for(var e=G.map((function(e){return e.key})),i=n(L.current),s=e.filter((function(e){return!L.current.includes(e)})),a=e.filter((function(e){return L.current.includes(e)})),u=L.current.map((function(t){return!e.includes(t)})),l=u.length-1;l>=0;l--){var f;if(u[l])null===(f=N.current)||void 0===f||f.removeView(l),i.splice(l,1),R.current.splice(l,1)}var v,d=o(s);try{var m=function(){var n,r,o,s,a,u=v.value,l=k.current.get(u),f=new $e(D.current,t(t({element:document.createElement("div"),minimumSize:null!==(n=null==l?void 0:l.minSize)&&void 0!==n?n:h,maximumSize:null!==(r=null==l?void 0:l.maxSize)&&void 0!==r?r:c,priority:null!==(o=null==l?void 0:l.priority)&&void 0!==o?o:exports.LayoutPriority.Normal},(null==l?void 0:l.preferredSize)&&{preferredSize:null==l?void 0:l.preferredSize}),{},{snap:null!==(s=null==l?void 0:l.snap)&&void 0!==s?s:I}));null===(a=N.current)||void 0===a||a.addView(M.current.get(u),f,Ne.Distribute,e.findIndex((function(e){return e===u}))),i.splice(e.findIndex((function(e){return e===u})),0,u),R.current.splice(e.findIndex((function(e){return e===u})),0,f)};for(d.s();!(v=d.n()).done;)m()}catch(e){d.e(e)}finally{d.f()}for(;!A(e,i);){var p,y=o(e.entries());try{var b=function(){var e=r(p.value,2),t=e[0],n=e[1],o=i.findIndex((function(e){return e===n}));if(o!==t){var s;null===(s=N.current)||void 0===s||s.moveView(M.current.get(n),o,t);var a=i[o];return i.splice(o,1),i.splice(t,0,a),"break"}};for(y.s();!(p=y.n()).done;){if("break"===b())break}}catch(e){y.e(e)}finally{y.f()}}var g,w=o(s);try{var S=function(){var t,i=g.value,n=e.findIndex((function(e){return e===i})),r=R.current[n].preferredSize;void 0!==r&&(null===(t=N.current)||void 0===t||t.resizeView(n,r))};for(w.s();!(g=w.n()).done;)S()}catch(e){w.e(e)}finally{w.f()}for(var z=function(){var t,i,n=x[_],r=k.current.get(n),o=e.findIndex((function(e){return e===n}));r&&We(r)&&(void 0!==r.visible&&(null===(t=N.current)||void 0===t?void 0:t.isViewVisible(o))!==r.visible&&(null===(i=N.current)||void 0===i||i.setViewVisible(o,r.visible)))},_=0,x=[].concat(n(s),n(a));_<x.length;_++)z();var E,j=o(a);try{var O=function(){var t=E.value,i=k.current.get(t),n=e.findIndex((function(e){return e===t}));if(i&&We(i)){void 0!==i.preferredSize&&R.current[n].preferredSize!==i.preferredSize&&(R.current[n].preferredSize=i.preferredSize);var r,o=!1;if(void 0!==i.minSize&&R.current[n].minimumSize!==i.minSize&&(R.current[n].minimumSize=i.minSize,o=!0),void 0!==i.maxSize&&R.current[n].maximumSize!==i.maxSize&&(R.current[n].maximumSize=i.maxSize,o=!0),o)null===(r=N.current)||void 0===r||r.layout()}};for(j.s();!(E=j.n()).done;)O()}catch(e){j.e(e)}finally{j.f()}(s.length>0||u.length>0)&&(L.current=e)}}),[G,B,c,h,I]),y.useEffect((function(){N.current&&(N.current.onDidChange=j)}),[j]),T({ref:P,onResize:function(e){var t,i=e.width,n=e.height;i&&n&&(null===(t=N.current)||void 0===t||t.layout(E?n:i),D.current.setSize(E?n:i),U(!0))}}),y.useEffect((function(){J&&Xe(20)}),[]),w.default.createElement("div",{ref:P,className:z("split-view",E?"split-view-vertical":"split-view-horizontal",C,E?Y:$,i({},W,p),u)},w.default.createElement("div",{className:z("split-view-container",F)},w.default.Children.toArray(a).map((function(e){if(!w.default.isValidElement(e))return null;var t=e.key;return"Allotment.Pane"===e.type.displayName?(k.current.set(t,e.props),w.default.cloneElement(e,{key:t,ref:function(e){e?M.current.set(t,e):M.current.delete(t)}})):w.default.createElement(Ue,{key:t,ref:function(e){e?M.current.set(t,e):M.current.delete(t)}},e)}))))}));function Xe(e){var t=k(e,4,20),i=k(e,1,8);document.documentElement.style.setProperty("--sash-size",t+"px"),document.documentElement.style.setProperty("--sash-hover-size",i+"px"),function(e){Le=e,ke.emit("onDidChangeGlobalSize",e)}(t)}Ge.displayName="Allotment";var Je=Object.assign(Ge,{Pane:Ue});exports.Allotment=Je,exports.setSashSize=Xe;
g=S,function(){var e={}.hasOwnProperty;function t(){for(var i=[],n=0;n<arguments.length;n++){var r=arguments[n];if(r){var o=p(r);if("string"===o||"number"===o)i.push(r);else if(Array.isArray(r)){if(r.length){var s=t.apply(null,r);s&&i.push(s)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var a in r)e.call(r,a)&&r[a]&&i.push(a);else i.push(r.toString())}}return i.join(" ")}g.exports?(t.default=t,g.exports=t):window.classNames=t}();var z=S.exports,_=/^\s+|\s+$/g,I=/^[-+]0x[0-9a-f]+$/i,x=/^0b[01]+$/i,E=/^0o[0-7]+$/i,j=parseInt,O=Object.prototype.toString;function V(e){var t=p(e);return!!e&&("object"==t||"function"==t)}function P(e){return"symbol"==p(e)||function(e){return!!e&&"object"==p(e)}(e)&&"[object Symbol]"==O.call(e)}function L(e){if("number"==typeof e)return e;if(P(e))return NaN;if(V(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=V(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(_,"");var i=x.test(e);return i||E.test(e)?j(e.slice(2),i?2:8):I.test(e)?NaN:+e}var k=function(e,t,i){return void 0===i&&(i=t,t=void 0),void 0!==i&&(i=(i=L(i))==i?i:0),void 0!==t&&(t=(t=L(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}(L(e),t,i)},N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},M={exports:{}};!function(e,t){var i="__lodash_hash_undefined__",n=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]",w="[object ArrayBuffer]",S="[object DataView]",z=/^\[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[w]=I[s]=I[S]=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(N)&&N&&N.Object===Object&&N,E="object"==("undefined"==typeof self?"undefined":p(self))&&self&&self.Object===Object&&self,j=x||E||Function("return this")(),O=t&&!t.nodeType&&t,V=O&&e&&!e.nodeType&&e,P=V&&V.exports===O,L=P&&x.process,k=function(){try{return L&&L.binding&&L.binding("util")}catch(e){}}(),M=k&&k.isTypedArray;function A(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)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,n){i[++t]=[n,e]})),i}function T(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}var C,R,F,H=Array.prototype,B=Function.prototype,Y=Object.prototype,$=j["__core-js_shared__"],W=B.toString,U=Y.hasOwnProperty,G=(C=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",X=Y.toString,J=RegExp("^"+W.call(U).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=P?j.Buffer:void 0,K=j.Symbol,Z=j.Uint8Array,Q=Y.propertyIsEnumerable,ee=H.splice,te=K?K.toStringTag:void 0,ie=Object.getOwnPropertySymbols,ne=q?q.isBuffer:void 0,re=(R=Object.keys,F=Object,function(e){return R(F(e))}),oe=Ne(j,"DataView"),se=Ne(j,"Map"),ae=Ne(j,"Promise"),ue=Ne(j,"Set"),le=Ne(j,"WeakMap"),ce=Ne(Object,"create"),fe=Te(oe),he=Te(se),ve=Te(ae),de=Te(ue),me=Te(le),pe=K?K.prototype:void 0,ye=pe?pe.valueOf:void 0;function be(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function ge(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function we(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function Se(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new we;++t<i;)this.add(e[t])}function ze(e){var t=this.__data__=new ge(e);this.size=t.size}function _e(e,t){var i=Fe(e),n=!i&&Re(e),r=!i&&!n&&He(e),o=!i&&!n&&!r&&Ue(e),s=i||n||r||o,a=s?function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}(e.length,String):[],u=a.length;for(var l in e)!t&&!U.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 i=e.length;i--;)if(Ce(e[i][0],t))return i;return-1}function xe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":te&&te in Object(e)?function(e){var t=U.call(e,te),i=e[te];try{e[te]=void 0;var n=!0}catch(e){}var r=X.call(e);n&&(t?e[te]=i:delete e[te]);return r}(e):function(e){return X.call(e)}(e)}function Ee(e){return We(e)&&xe(e)==r}function je(e,t,i,n,l){return e===t||(null==e||null==t||!We(e)&&!We(t)?e!=e&&t!=t:function(e,t,i,n,l,v){var p=Fe(e),g=Fe(t),z=p?o:Ae(e),_=g?o:Ae(t),I=(z=z==r?h:z)==h,x=(_=_==r?h:_)==h,E=z==_;if(E&&He(e)){if(!He(t))return!1;p=!0,I=!1}if(E&&!I)return v||(v=new ze),p||Ue(e)?Pe(e,t,i,n,l,v):function(e,t,i,n,r,o,l){switch(i){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!o(new Z(e),new Z(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&n;if(h||(h=T),e.size!=t.size&&!v)return!1;var p=l.get(e);if(p)return p==t;n|=2,l.set(e,t);var g=Pe(h(e),h(t),n,r,o,l);return l.delete(e),g;case b:if(ye)return ye.call(e)==ye.call(t)}return!1}(e,t,z,i,n,l,v);if(!(1&i)){var j=I&&U.call(e,"__wrapped__"),O=x&&U.call(t,"__wrapped__");if(j||O){var V=j?e.value():e,P=O?t.value():t;return v||(v=new ze),l(V,P,i,n,v)}}if(!E)return!1;return v||(v=new ze),function(e,t,i,n,r,o){var s=1&i,a=Le(e),u=a.length,l=Le(t).length;if(u!=l&&!s)return!1;var c=u;for(;c--;){var f=a[c];if(!(s?f in t:U.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(n)var y=s?n(p,m,f,t,e,o):n(m,p,f,e,t,o);if(!(void 0===y?m===p||r(m,p,i,n,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,i,n,l,v)}(e,t,i,n,je,l))}function Oe(e){return!(!$e(e)||function(e){return!!G&&G in e}(e))&&(Be(e)?J:z).test(Te(e))}function Ve(e){if(i=(t=e)&&t.constructor,n="function"==typeof i&&i.prototype||Y,t!==n)return re(e);var t,i,n,r=[];for(var o in Object(e))U.call(e,o)&&"constructor"!=o&&r.push(o);return r}function Pe(e,t,i,n,r,o){var s=1&i,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&i?new Se:void 0;for(o.set(e,t),o.set(t,e);++c<a;){var v=e[c],d=t[c];if(n)var m=s?n(d,v,c,t,e,o):n(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,i,n,o)))return h.push(t);var s}))){f=!1;break}}else if(v!==d&&!r(v,d,i,n,o)){f=!1;break}}return o.delete(e),o.delete(t),f}function Le(e){return function(e,t,i){var n=t(e);return Fe(e)?n:function(e,t){for(var i=-1,n=t.length,r=e.length;++i<n;)e[r+i]=t[i];return e}(n,i(e))}(e,Ge,Me)}function ke(e,t){var i,n,r=e.__data__;return("string"==(n=p(i=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==i:null===i)?r["string"==typeof t?"string":"hash"]:r.map}function Ne(e,t){var i=function(e,t){return null==e?void 0:e[t]}(e,t);return Oe(i)?i: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 n=t[e];return n===i?void 0:n}return U.call(t,e)?t[e]:void 0},be.prototype.has=function(e){var t=this.__data__;return ce?void 0!==t[e]:U.call(t,e)},be.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ce&&void 0===t?i:t,this},ge.prototype.clear=function(){this.__data__=[],this.size=0},ge.prototype.delete=function(e){var t=this.__data__,i=Ie(t,e);return!(i<0)&&(i==t.length-1?t.pop():ee.call(t,i,1),--this.size,!0)},ge.prototype.get=function(e){var t=this.__data__,i=Ie(t,e);return i<0?void 0:t[i][1]},ge.prototype.has=function(e){return Ie(this.__data__,e)>-1},ge.prototype.set=function(e,t){var i=this.__data__,n=Ie(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this},we.prototype.clear=function(){this.size=0,this.__data__={hash:new be,map:new(se||ge),string:new be}},we.prototype.delete=function(e){var t=ke(this,e).delete(e);return this.size-=t?1:0,t},we.prototype.get=function(e){return ke(this,e).get(e)},we.prototype.has=function(e){return ke(this,e).has(e)},we.prototype.set=function(e,t){var i=ke(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this},Se.prototype.add=Se.prototype.push=function(e){return this.__data__.set(e,i),this},Se.prototype.has=function(e){return this.__data__.has(e)},ze.prototype.clear=function(){this.__data__=new ge,this.size=0},ze.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},ze.prototype.get=function(e){return this.__data__.get(e)},ze.prototype.has=function(e){return this.__data__.has(e)},ze.prototype.set=function(e,t){var i=this.__data__;if(i instanceof ge){var n=i.__data__;if(!se||n.length<199)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new we(n)}return i.set(e,t),this.size=i.size,this};var Me=ie?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var i=-1,n=null==e?0:e.length,r=0,o=[];++i<n;){var s=e[i];t(s,i,e)&&(o[r++]=s)}return o}(ie(e),(function(t){return Q.call(e,t)})))}:function(){return[]},Ae=xe;function De(e,t){return!!(t=null==t?n:t)&&("number"==typeof e||_.test(e))&&e>-1&&e%1==0&&e<t}function Te(e){if(null!=e){try{return W.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)))!=S||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),i=t==h?e.constructor:void 0,n=i?Te(i):"";if(n)switch(n){case fe:return S;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 We(e)&&U.call(e,"callee")&&!Q.call(e,"callee")},Fe=Array.isArray;var He=ne||function(){return!1};function Be(e){if(!$e(e))return!1;var t=xe(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ye(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}function $e(e){var t=p(e);return null!=e&&("object"==t||"function"==t)}function We(e){return null!=e&&"object"==p(e)}var Ue=M?function(e){return function(t){return e(t)}}(M):function(e){return We(e)&&Ye(e.length)&&!!I[xe(e)]};function Ge(e){return null!=(t=e)&&Ye(t.length)&&!Be(t)?_e(e):Ve(e);var t}e.exports=function(e,t){return je(e,t)}}(M,M.exports);var A=M.exports;function D(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 T(e){void 0===e&&(e={});var t=e.onResize,i=y.useRef(void 0);i.current=t;var n=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=y.useRef({width:void 0,height:void 0}),c=function(e,t){var i=y.useRef(null),n=y.useRef(null);n.current=t;var r=y.useRef(null);y.useEffect((function(){o()}));var o=y.useCallback((function(){var t=r.current,o=n.current,s=t||(o?o instanceof Element?o:o.current:null);i.current&&i.current.element===s&&i.current.subscriber===e||(i.current&&i.current.cleanup&&i.current.cleanup(),i.current={element:s,subscriber:e,cleanup:s?e(s):void 0})}),[e]);return y.useEffect((function(){return function(){i.current&&i.current.cleanup&&(i.current.cleanup(),i.current=null)}}),[]),y.useCallback((function(e){r.current=e,o()}),[o])}(y.useCallback((function(t){return r.current&&r.current.box===e.box&&r.current.round===n||(r.current={box:e.box,round:n,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"),c=D(r,o,"blockSize"),f=s?n(s):void 0,h=c?n(c):void 0;if(l.current.width!==f||l.current.height!==h){var v={width:f,height:h};l.current.width=f,l.current.height=h,i.current?i.current(v):u.current||a(v)}}))}),r.current.instance.observe(t,{box:e.box}),function(){r.current&&r.current.instance.unobserve(t)}}),[e.box,n]),e.ref);return y.useMemo((function(){return{ref:c,width:s.width,height:s.height}}),[c,s.width,s.height])}var C="allotment-module_splitView__L-yRc",R="allotment-module_sashContainer__fzwJF",F="allotment-module_splitViewContainer__rQnVa",H="allotment-module_splitViewView__MGZ6O",B="allotment-module_visible__AHq-h",Y="allotment-module_vertical__WSwwa",$="allotment-module_horizontal__7doS8",W="allotment-module_separatorBorder__x-rDS",U=!1,G=!1,X=void 0;"object"===("undefined"==typeof navigator?"undefined":p(navigator))&&(G=(X=navigator.userAgent).indexOf("Macintosh")>=0,U=(X.indexOf("Macintosh")>=0||X.indexOf("iPad")>=0||X.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0);var J=U,q=G,K=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 Z(e,t){var i=e.length,n=i-t.length;return n>=0&&e.slice(n,i)===t}var Q={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,i="~";function n(){}function r(e,t,i){this.fn=e,this.context=t,this.once=i||!1}function o(e,t,n,o,s){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new r(n,o||e,s),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 s(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(i=!1)),a.prototype.eventNames=function(){var e,n,r=[];if(0===this._eventsCount)return r;for(n in e=this._events)t.call(e,n)&&r.push(i?n.slice(1):n);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},a.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,s=new Array(o);r<o;r++)s[r]=n[r].fn;return s},a.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},a.prototype.emit=function(e,t,n,r,o,s){var a=i?i+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,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,o),!0;case 6:return c.fn.call(c.context,t,n,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,n);break;case 4:c[l].fn.call(c[l].context,t,n,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,i){return o(this,e,t,i,!1)},a.prototype.once=function(e,t,i){return o(this,e,t,i,!0)},a.prototype.removeListener=function(e,t,n,r){var o=i?i+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||n&&a.context!==n||s(this,o);else{for(var u=0,l=[],c=a.length;u<c;u++)(a[u].fn!==t||r&&!a[u].once||n&&a[u].context!==n)&&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=i?i+e:e,this._events[t]&&s(this,t)):(this._events=new n,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}(Q);var ee=Q.exports;function te(e,t){var i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function ie(e,t){var i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function ne(e,t){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=Math.max(0,Math.ceil((t-e)/i)),r=new Array(n),o=-1;++o<n;)r[o]=e+o*i;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(N)&&N&&N.Object===Object&&N,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 i=se.test(e);return i||ae.test(e)?ue(e.slice(2),i?2:8):oe.test(e)?NaN:+e}var ge,we,Se=function(e,t,i){var n,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 i=n,o=r;return n=r=void 0,l=t,s=e.apply(o,i)}function d(e){return l=e,a=setTimeout(p,t),c?v(e):s}function m(e){var i=e-u;return void 0===u||i>=t||i<0||f&&e-l>=o}function p(){var e=me();if(m(e))return y(e);a=setTimeout(p,function(e){var i=t-(e-u);return f?de(i,o-(e-l)):i}(e))}function y(e){return a=void 0,h&&n?v(e):(n=r=void 0,s)}function b(){var e=me(),i=m(e);if(n=arguments,r=this,u=e,i){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(i)&&(c=!!i.leading,o=(f="maxWait"in i)?ve(be(i.maxWait)||0,t):o,h="trailing"in i?!!i.trailing:h),b.cancel=function(){void 0!==a&&clearTimeout(a),l=0,n=u=r=a=void 0},b.flush=function(){return void 0===a?s:y(me())},b},ze="sash-module_sash__K-9lB",_e="sash-module_disabled__Hm-wx",Ie="sash-module_mac__Jf6OJ",xe="sash-module_vertical__pB-rs",Ee="sash-module_minimum__-UKxp",je="sash-module_maximum__TCWxD",Oe="sash-module_horizontal__kFbiw",Ve="sash-module_hover__80W6I",Pe="sash-module_active__bJspD";!function(e){e.Vertical="VERTICAL",e.Horizontal="HORIZONTAL"}(ge||(ge={})),function(e){e.Disabled="DISABLED",e.Minimum="MINIMUM",e.Maximum="MAXIMUM",e.Enabled="ENABLED"}(we||(we={}));var Le=J?20:8,ke=new ee;var Ne,Me,Ae,De=function(e){u(i,ee);var t=c(i);function i(e,n,r){var o,s;return v(this,i),(s=t.call(this)).el=void 0,s.layoutProvider=void 0,s.orientation=void 0,s.size=void 0,s.hoverDelay=300,s.hoverDelayer=Se((function(e){return e.classList.add("sash-hover",Ve)}),s.hoverDelay),s._state=we.Enabled,s.onPointerStart=function(e){var t=e.pageX,i=e.pageY,n={startX:t,currentX:t,startY:i,currentY:i};s.el.classList.add("sash-active",Pe),s.emit("start",n),s.el.setPointerCapture(e.pointerId);var r=function(e){e.preventDefault();var n={startX:t,currentX:e.pageX,startY:i,currentY:e.pageY};s.emit("change",n)};window.addEventListener("pointermove",r),window.addEventListener("pointerup",(function e(t){t.preventDefault(),s.el.classList.remove("sash-active",Pe),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(Pe)?(s.hoverDelayer.cancel(),s.el.classList.add("sash-hover",Ve)):s.hoverDelayer(s.el)},s.onMouseLeave=function(){s.hoverDelayer.cancel(),s.el.classList.remove("sash-hover",Ve)},s.el=document.createElement("div"),s.el.classList.add("sash",ze),s.el.dataset.testid="sash",e.append(s.el),q&&s.el.classList.add("sash-mac",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=Le,ke.on("onDidChangeGlobalSize",(function(e){s.size=e,s.layout()}))),s.layoutProvider=n,s.orientation=null!==(o=r.orientation)&&void 0!==o?o:ge.Vertical,s.orientation===ge.Horizontal?(s.el.classList.add("sash-horizontal",Oe),s.el.classList.remove("sash-vertical",xe)):(s.el.classList.remove("sash-horizontal",Oe),s.el.classList.add("sash-vertical",xe)),s.layout(),s}return m(i,[{key:"state",get:function(){return this._state},set:function(e){this._state!==e&&(this.el.classList.toggle(_e,e===we.Disabled),this.el.classList.toggle("dash-disabled",e===we.Disabled),this.el.classList.toggle(Ee,e===we.Minimum),this.el.classList.toggle("sash-minimum",e===we.Minimum),this.el.classList.toggle(je,e===we.Maximum),this.el.classList.toggle("sash-maximum",e===we.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()}}]),i}();(Me=Ne||(Ne={})).Distribute={type:"distribute"},Me.Split=function(e){return{type:"split",index:e}},Me.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}},exports.LayoutPriority=void 0,(Ae=exports.LayoutPriority||(exports.LayoutPriority={})).Normal="NORMAL",Ae.Low="LOW",Ae.High="HIGH";var Te=function(){function e(t,i,n){v(this,e),this.container=void 0,this.view=void 0,this._size=void 0,this._cachedVisibleSize=void 0,this.container=t,this.view=i,this.container.classList.add("split-view-view",H),this.container.dataset.testid="split-view-view","number"==typeof n?(this._size=n,this._cachedVisibleSize=void 0,t.classList.add("split-view-view-visible",B)):(this._size=0,this._cachedVisibleSize=n.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=k(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(B,e),this.container.classList.toggle("split-view-view-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(i,Te);var t=c(i);function i(){return v(this,i),t.apply(this,arguments)}return m(i,[{key:"layoutContainer",value:function(e){this.container.style.left="".concat(e,"px"),this.container.style.width="".concat(this.size,"px")}}]),i}(),Re=function(e){u(i,Te);var t=c(i);function i(){return v(this,i),t.apply(this,arguments)}return m(i,[{key:"layoutContainer",value:function(e){this.container.style.top="".concat(e,"px"),this.container.style.height="".concat(this.size,"px")}}]),i}(),Fe=function(e){u(i,ee);var t=c(i);function i(e){var n,s,a,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=arguments.length>2?arguments[2]:void 0;if(v(this,i),(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,i=o(a.viewItems);try{for(i.s();!(t=i.n()).done;){t.value.enabled=!0}}catch(e){i.e(e)}finally{i.f()}},a.orientation=null!==(n=u.orientation)&&void 0!==n?n: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("sash-container",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(i,[{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,i){var n,r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.viewItems.length,s=arguments.length>4?arguments[4]:void 0;n="number"==typeof i?i:"split"===i.type?this.getViewSize(i.index)/2:"invisible"===i.type?{cachedVisibleSize:i.cachedVisibleSize}:t.minimumSize;var a=this.orientation===ge.Vertical?new Re(e,t,n):new Ce(e,t,n);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=ne(e,-1,-1),i=ne(e+1,r.viewItems.length),n=r.findFirstSnapIndex(t),o=r.findFirstSnapIndex(i);("number"!=typeof n||r.viewItems[n].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 i||"distribute"!==i.type||this.distributeViewSizes()}},{key:"removeView",value:function(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 n=Math.max(e-1,0);this.sashItems.splice(n,1)[0].sash.dispose()}return this.relayout(),t&&"distribute"===t.type&&this.distributeViewSizes(),i}},{key:"moveView",value:function(e,t,i){var n=this.getViewCachedVisibleSize(t),r=void 0===n?this.getViewSize(t):Ne.Invisible(n),o=this.removeView(t);this.addView(e,o,r,i)}},{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,i=Math.max(this.size,this.contentSize);if(this.size=t,this.proportions)for(var n=0;n<this.viewItems.length;n++){var r=this.viewItems[n];r.size=k(Math.round(this.proportions[n]*t),r.minimumSize,r.maximumSize)}else{var o=ne(0,this.viewItems.length),s=o.filter((function(t){return e.viewItems[t].priority===exports.LayoutPriority.Low})),a=o.filter((function(t){return e.viewItems[t].priority===exports.LayoutPriority.High}));this.resize(this.viewItems.length-1,t-i,void 0,s,a)}this.distributeEmptySpace(),this.layoutViews()}},{key:"resizeView",value:function(e,t){var i=this;if(!(e<0||e>=this.viewItems.length)){var r=ne(0,this.viewItems.length).filter((function(t){return t!==e})),o=[].concat(n(r.filter((function(e){return i.viewItems[e].priority===exports.LayoutPriority.Low}))),[e]),s=r.filter((function(e){return i.viewItems[e].priority===exports.LayoutPriority.High})),a=this.viewItems[e];t=Math.round(t),t=k(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 i=this.viewItems[t],n=e[t];n=Math.round(n),n=k(n,i.minimumSize,Math.min(i.maximumSize,this.size)),i.size=n}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,i=[],n=0,r=o(this.viewItems);try{for(r.s();!(e=r.n()).done;){var s=e.value;s.maximumSize-s.minimumSize>0&&(i.push(s),n+=s.size)}}catch(e){r.e(e)}finally{r.f()}for(var a=Math.floor(n/i.length),u=0,l=i;u<l.length;u++){var c=l[u];c.size=k(a,c.minimumSize,c.maximumSize)}var f=ne(0,this.viewItems.length),h=f.filter((function(e){return t.viewItems[e].priority===exports.LayoutPriority.Low})),v=f.filter((function(e){return t.viewItems[e].priority===exports.LayoutPriority.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 i=this.viewItems.reduce((function(e,t){return e+t.size}),0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}},{key:"onSashStart",value:function(e){var t=this,i=e.sash,n=e.start,r=this.sashItems.findIndex((function(e){return e.sash===i}));!function(e){var i,n,o=t.viewItems.map((function(e){return e.size})),s=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY,u=ne(r,-1,-1),l=ne(r+1,t.viewItems.length),c=u.reduce((function(e,i){return e+(t.viewItems[i].minimumSize-o[i])}),0),f=u.reduce((function(e,i){return e+(t.viewItems[i].viewMaximumSize-o[i])}),0),h=0===l.length?Number.POSITIVE_INFINITY:l.reduce((function(e,i){return e+(o[i]-t.viewItems[i].minimumSize)}),0),v=0===l.length?Number.NEGATIVE_INFINITY:l.reduce((function(e,i){return e+(o[i]-t.viewItems[i].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);i={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);n={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:i,snapAfter:n}}(n)}},{key:"onSashChange",value:function(e){var t=e.current,i=this.sashDragState,n=i.index,r=i.start,o=i.sizes,s=i.minDelta,a=i.maxDelta,u=i.snapBefore,l=i.snapAfter;this.sashDragState.current=t;var c=t-r;this.resize(n,c,o,void 0,void 0,s,a,u,l),this.distributeEmptySpace(),this.layoutViews()}},{key:"getSashPosition",value:function(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}},{key:"resize",value:function(e,t){var i=this,n=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=ne(e,-1,-1),h=ne(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;ie(f,b),ie(h,b)}}catch(e){y.e(e)}finally{y.f()}}var g=f.map((function(e){return i.viewItems[e]})),w=f.map((function(e){return n[e]})),S=h.map((function(e){return i.viewItems[e]})),z=h.map((function(e){return n[e]})),_=f.reduce((function(e,t){return e+(i.viewItems[t].minimumSize-n[t])}),0),I=f.reduce((function(e,t){return e+(i.viewItems[t].maximumSize-n[t])}),0),x=0===h.length?Number.POSITIVE_INFINITY:h.reduce((function(e,t){return e+(n[t]-i.viewItems[t].minimumSize)}),0),E=0===h.length?Number.NEGATIVE_INFINITY:h.reduce((function(e,t){return e+(n[t]-i.viewItems[t].maximumSize)}),0),j=Math.max(_,E,a),O=Math.min(x,I,u),V=!1;if(l){var P=this.viewItems[l.index],L=t>=l.limitDelta;V=L!==P.visible,P.setVisible(L,l.size)}if(!V&&c){var N=this.viewItems[c.index],M=t<c.limitDelta;V=M!==N.visible,N.setVisible(M,c.size)}if(V)return this.resize(e,t,n,r,s,a,u);for(var A=0,D=t=k(t,j,O);A<g.length;A++){var T=g[A],C=k(w[A]+D,T.minimumSize,T.maximumSize),R=C-w[A];D-=R,T.size=C}for(var F=0,H=t;F<S.length;F++){var B=S[F],Y=k(z[F]-H,B.minimumSize,B.maximumSize),$=Y-z[F];H+=$,B.size=Y}return t}},{key:"distributeEmptySpace",value:function(e){var t=this.viewItems.reduce((function(e,t){return e+t.size}),0),i=this.size-t,n=ne(this.viewItems.length-1,-1,-1);"number"==typeof e&&ie(n,e);for(var r=0;0!==i&&r<n.length;r++){var o=this.viewItems[n[r]],s=k(o.size+i,o.minimumSize,o.maximumSize);i-=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,i=0,n=o(this.viewItems);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.layout(i),i+=r.size}}catch(e){n.e(e)}finally{n.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 i=this.viewItems.map((function(t){return e=t.maximumSize-t.size>0||e})),r=n(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=!(i[u]&&o[u+1]);if(c&&f){var h=ne(u,-1,-1),v=ne(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=we.Minimum:y&&t[u]&&(a<this.contentSize||this.endSnappingEnabled)?l.state=we.Maximum:l.state=we.Disabled}else l.state=c&&!f?we.Minimum:!c&&f?we.Maximum:we.Enabled}}},{key:"findFirstSnapIndex",value:function(e){var t,i=o(e);try{for(i.s();!(t=i.n()).done;){var n=t.value,r=this.viewItems[n];if(r.visible&&r.snap)return n}}catch(e){i.e(e)}finally{i.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()}}}]),i}(),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}(),Be=function(){function e(t,i){v(this,e),this.proportion=void 0,this.layoutService=void 0,this.proportion=t,this.layoutService=i}return m(e,[{key:"getPreferredSize",value:function(){return this.proportion*this.layoutService.getSize()}}]),e}(),Ye=function(){function e(){v(this,e)}return m(e,[{key:"getPreferredSize",value:function(){}}]),e}(),$e=function(){function e(t,i){var n;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=i.element,this.minimumSize="number"==typeof i.minimumSize?i.minimumSize:30,this.maximumSize="number"==typeof i.maximumSize?i.maximumSize:Number.POSITIVE_INFINITY,"number"==typeof i.preferredSize)this.layoutStrategy=new He(i.preferredSize);else if("string"==typeof i.preferredSize){var r=i.preferredSize.trim();if(Z(r,"%")){var o=Number(r.slice(0,-1))/100;this.layoutStrategy=new Be(o,this.layoutService)}else if(Z(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 Ye}else this.layoutStrategy=new Ye;this.priority=null!==(n=i.priority)&&void 0!==n?n:exports.LayoutPriority.Normal,this.snap="boolean"==typeof i.snap&&i.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(Z(t,"%")){var i=Number(t.slice(0,-1))/100;this.layoutStrategy=new Be(i,this.layoutService)}else if(Z(t,"px")){var n=Number(t.slice(0,-2))/100;this.layoutStrategy=new He(n)}else if("number"==typeof Number.parseFloat(t)){var r=Number.parseFloat(t);this.layoutStrategy=new He(r)}else this.layoutStrategy=new Ye}else this.layoutStrategy=new Ye}},{key:"layout",value:function(e){}}]),e}();function We(e){return void 0!==e.minSize||void 0!==e.maxSize||void 0!==e.preferredSize||void 0!==e.priority||void 0!==e.visible}var Ue=y.forwardRef((function(e,t){var i=e.className,n=e.children;return w.default.createElement("div",{ref:t,className:z("split-view-view",H,i)},n)}));Ue.displayName="Allotment.Pane";var Ge=y.forwardRef((function(e,s){var a=e.children,u=e.className,l=e.maxSize,c=void 0===l?1/0:l,f=e.minSize,h=void 0===f?30:f,v=e.proportionalLayout,d=void 0===v||v,m=e.separator,p=void 0===m||m,b=e.sizes,g=e.defaultSizes,S=void 0===g?b:g,_=e.snap,I=void 0!==_&&_,x=e.vertical,E=void 0!==x&&x,j=e.onChange,O=e.onReset,V=e.onVisibleChange,P=y.useRef(null),L=y.useRef([]),k=y.useRef(new Map),N=y.useRef(null),M=y.useRef(new Map),D=y.useRef(new K),R=y.useRef([]),H=r(y.useState(!1),2),B=H[0],U=H[1];"production"!==process.env.NODE_ENV&&b&&console.warn("Prop sizes is deprecated. Please use defaultSizes instead.");var G=y.useMemo((function(){return w.default.Children.toArray(a).filter(w.default.isValidElement)}),[a]),X=y.useCallback((function(e){var t,i,n=null===(t=R.current)||void 0===t?void 0:t[e];return"number"==typeof(null==n?void 0:n.preferredSize)&&(null===(i=N.current)||void 0===i||i.resizeView(e,Math.round(n.preferredSize)),!0)}),[]);return y.useImperativeHandle(s,(function(){return{reset:function(){if(O)O();else{var e;null===(e=N.current)||void 0===e||e.distributeViewSizes();for(var t=0;t<R.current.length;t++)X(t)}},resize:function(e){var t;null===(t=N.current)||void 0===t||t.resizeViews(e)}}})),y.useLayoutEffect((function(){var e=!0;S&&M.current.size!==S.length&&(e=!1,console.warn("Expected ".concat(S.length," children based on defaultSizes but found ").concat(M.current.size))),e&&S&&(L.current=G.map((function(e){return e.key})));var i=t({orientation:E?ge.Vertical:ge.Horizontal,proportionalLayout:d},e&&S&&{descriptor:{size:S.reduce((function(e,t){return e+t}),0),views:S.map((function(e,i){var r,o,s,a,u=k.current.get(L.current[i]),l=new $e(D.current,t(t({element:document.createElement("div"),minimumSize:null!==(r=null==u?void 0:u.minSize)&&void 0!==r?r:h,maximumSize:null!==(o=null==u?void 0:u.maxSize)&&void 0!==o?o:c,priority:null!==(s=null==u?void 0:u.priority)&&void 0!==s?s:exports.LayoutPriority.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:I}));return R.current.push(l),{container:n(M.current.values())[i],size:e,view:l}}))}});N.current=new Fe(P.current,i,j),N.current.on("sashchange",(function(e){if(V&&N.current)for(var t=G.map((function(e){return e.key})),i=0;i<t.length;i++){var n=k.current.get(t[i]);void 0!==(null==n?void 0:n.visible)&&n.visible!==N.current.isViewVisible(i)&&V(i,N.current.isViewVisible(i))}})),N.current.on("sashreset",(function(e){if(O)O();else{var t;if(X(e))return;if(X(e+1))return;null===(t=N.current)||void 0===t||t.distributeViewSizes()}}));var r=N.current;return function(){r.dispose()}}),[]),y.useEffect((function(){if(B){for(var e=G.map((function(e){return e.key})),i=n(L.current),s=e.filter((function(e){return!L.current.includes(e)})),a=e.filter((function(e){return L.current.includes(e)})),u=L.current.map((function(t){return!e.includes(t)})),l=u.length-1;l>=0;l--){var f;if(u[l])null===(f=N.current)||void 0===f||f.removeView(l),i.splice(l,1),R.current.splice(l,1)}var v,d=o(s);try{var m=function(){var n,r,o,s,a,u=v.value,l=k.current.get(u),f=new $e(D.current,t(t({element:document.createElement("div"),minimumSize:null!==(n=null==l?void 0:l.minSize)&&void 0!==n?n:h,maximumSize:null!==(r=null==l?void 0:l.maxSize)&&void 0!==r?r:c,priority:null!==(o=null==l?void 0:l.priority)&&void 0!==o?o:exports.LayoutPriority.Normal},(null==l?void 0:l.preferredSize)&&{preferredSize:null==l?void 0:l.preferredSize}),{},{snap:null!==(s=null==l?void 0:l.snap)&&void 0!==s?s:I}));null===(a=N.current)||void 0===a||a.addView(M.current.get(u),f,Ne.Distribute,e.findIndex((function(e){return e===u}))),i.splice(e.findIndex((function(e){return e===u})),0,u),R.current.splice(e.findIndex((function(e){return e===u})),0,f)};for(d.s();!(v=d.n()).done;)m()}catch(e){d.e(e)}finally{d.f()}for(;!A(e,i);){var p,y=o(e.entries());try{var b=function(){var e=r(p.value,2),t=e[0],n=e[1],o=i.findIndex((function(e){return e===n}));if(o!==t){var s;null===(s=N.current)||void 0===s||s.moveView(M.current.get(n),o,t);var a=i[o];return i.splice(o,1),i.splice(t,0,a),"break"}};for(y.s();!(p=y.n()).done;){if("break"===b())break}}catch(e){y.e(e)}finally{y.f()}}var g,w=o(s);try{var S=function(){var t,i=g.value,n=e.findIndex((function(e){return e===i})),r=R.current[n].preferredSize;void 0!==r&&(null===(t=N.current)||void 0===t||t.resizeView(n,r))};for(w.s();!(g=w.n()).done;)S()}catch(e){w.e(e)}finally{w.f()}for(var z=function(){var t,i,n=x[_],r=k.current.get(n),o=e.findIndex((function(e){return e===n}));r&&We(r)&&(void 0!==r.visible&&(null===(t=N.current)||void 0===t?void 0:t.isViewVisible(o))!==r.visible&&(null===(i=N.current)||void 0===i||i.setViewVisible(o,r.visible)))},_=0,x=[].concat(n(s),n(a));_<x.length;_++)z();var E,j=o(a);try{var O=function(){var t=E.value,i=k.current.get(t),n=e.findIndex((function(e){return e===t}));if(i&&We(i)){void 0!==i.preferredSize&&R.current[n].preferredSize!==i.preferredSize&&(R.current[n].preferredSize=i.preferredSize);var r,o=!1;if(void 0!==i.minSize&&R.current[n].minimumSize!==i.minSize&&(R.current[n].minimumSize=i.minSize,o=!0),void 0!==i.maxSize&&R.current[n].maximumSize!==i.maxSize&&(R.current[n].maximumSize=i.maxSize,o=!0),o)null===(r=N.current)||void 0===r||r.layout()}};for(j.s();!(E=j.n()).done;)O()}catch(e){j.e(e)}finally{j.f()}(s.length>0||u.length>0)&&(L.current=e)}}),[G,B,c,h,I]),y.useEffect((function(){N.current&&(N.current.onDidChange=j)}),[j]),T({ref:P,onResize:function(e){var t,i=e.width,n=e.height;i&&n&&(null===(t=N.current)||void 0===t||t.layout(E?n:i),D.current.setSize(E?n:i),U(!0))}}),y.useEffect((function(){J&&Xe(20)}),[]),w.default.createElement("div",{ref:P,className:z("split-view",E?"split-view-vertical":"split-view-horizontal",{"split-view-separator-border":p},C,E?Y:$,i({},W,p),u)},w.default.createElement("div",{className:z("split-view-container",F)},w.default.Children.toArray(a).map((function(e){if(!w.default.isValidElement(e))return null;var t=e.key;return"Allotment.Pane"===e.type.displayName?(k.current.set(t,e.props),w.default.cloneElement(e,{key:t,ref:function(e){e?M.current.set(t,e):M.current.delete(t)}})):w.default.createElement(Ue,{key:t,ref:function(e){e?M.current.set(t,e):M.current.delete(t)}},e)}))))}));function Xe(e){var t=k(e,4,20),i=k(e,1,8);document.documentElement.style.setProperty("--sash-size",t+"px"),document.documentElement.style.setProperty("--sash-hover-size",i+"px"),function(e){Le=e,ke.emit("onDidChangeGlobalSize",e)}(t)}Ge.displayName="Allotment";var Je=Object.assign(Ge,{Pane:Ue});exports.Allotment=Je,exports.setSashSize=Xe;

@@ -6,2 +6,2 @@ function e(){return e=Object.assign?Object.assign.bind():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,{useRef as i,useState as r,useEffect as n,useCallback as s,useMemo 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 w=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)},S="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]",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[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 S&&S&&S.Object===Object&&S,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,B=Object.prototype,$=E["__core-js_shared__"],R=Y.toString,W=B.hasOwnProperty,G=(C=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",U=B.toString,X=RegExp("^"+R.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),J=O?E.Buffer:void 0,K=E.Symbol,Z=E.Uint8Array,q=B.propertyIsEnumerable,Q=H.splice,ee=K?K.toStringTag:void 0,te=Object.getOwnPropertySymbols,ie=J?J.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=K?K.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 we(e){var t=this.__data__=new be(e);this.size=t.size}function Se(e,t){var i=ke(e),r=!i&&Fe(e),n=!i&&!r&&He(e),s=!i&&!r&&!n&&We(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&&!W.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=W.call(e,ee),i=e[ee];try{e[ee]=void 0;var r=!0}catch(e){}var n=U.call(e);r&&(t?e[ee]=i:delete e[ee]);return n}(e):function(e){return U.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),w=ke(t),S=b?s:Ae(e),_=w?s:Ae(t),I=(S=S==n?v:S)==v,x=(_=_==n?v:_)==v,V=S==_;if(V&&He(e)){if(!He(t))return!1;b=!0,I=!1}if(V&&!I)return f||(f=new we),b||We(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 Z(e),new Z(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 w=Ne(v(e),v(t),r,n,s,l);return l.delete(e),w;case y:if(pe)return pe.call(e)==pe.call(t)}return!1}(e,t,S,i,r,l,f);if(!(1&i)){var E=I&&W.call(e,"__wrapped__"),j=x&&W.call(t,"__wrapped__");if(E||j){var N=E?e.value():e,O=j?t.value():t;return f||(f=new we),l(N,O,i,r,f)}}if(!V)return!1;return f||(f=new we),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:W.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!(!$e(e)||function(e){return!!G&&G in e}(e))&&(Ye(e)?X:w).test(Te(e))}function je(e){if(i=(t=e)&&t.constructor,r="function"==typeof i&&i.prototype||B,t!==r)return re(e);var t,i,r,n=[];for(var s in Object(e))W.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,Ge,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 W.call(t,e)?t[e]:void 0},ye.prototype.has=function(e){var t=this.__data__;return le?void 0!==t[e]:W.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)},we.prototype.clear=function(){this.__data__=new be,this.size=0},we.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},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 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 q.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)&&W.call(e,"callee")&&!q.call(e,"callee")},ke=Array.isArray;var He=ie||function(){return!1};function Ye(e){if(!$e(e))return!1;var t=Ie(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<=r}function $e(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Re(e){return null!=e&&"object"==typeof e}var We=P?function(e){return function(t){return e(t)}}(P):function(e){return Re(e)&&Be(e.length)&&!!I[Ie(e)]};function Ge(e){return null!=(t=e)&&Be(t.length)&&!Ye(t)?Se(e):je(e);var t}e.exports=function(e,t){return Ve(e,t)}}(_,_.exports);var I=_.exports;function x(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=i(void 0);a.current=t;var u=e.round||Math.round,l=i(),h=r({width:void 0,height:void 0}),c=h[0],v=h[1],f=i(!1);n((function(){return f.current=!1,function(){f.current=!0}}),[]);var m=i({width:void 0,height:void 0}),d=function(e,t){var r=i(null),o=i(null);o.current=t;var a=i(null);n((function(){u()}));var u=s((function(){var t=a.current,i=o.current,n=t||(i?i instanceof Element?i:i.current:null);r.current&&r.current.element===n&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:n,subscriber:e,cleanup:n?e(n):void 0})}),[e]);return n((function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}}),[]),s((function(e){a.current=e,u()}),[u])}(s((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(m.current.width!==o||m.current.height!==l){var h={width:o,height:l};m.current.width=o,m.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]),e.ref);return o((function(){return{ref:d,width:c.width,height:c.height}}),[d,c.width,c.height])}var E="allotment-module_splitView__L-yRc",j="allotment-module_sashContainer__fzwJF",N="allotment-module_splitViewContainer__rQnVa",O="allotment-module_splitViewView__MGZ6O",L="allotment-module_visible__AHq-h",M="allotment-module_vertical__WSwwa",P="allotment-module_horizontal__7doS8",A="allotment-module_separatorBorder__x-rDS",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 B={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}(B);var $=B.exports;function R(e,t){var i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function W(e,t){var i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function G(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 U=/^\s+|\s+$/g,X=/^[-+]0x[0-9a-f]+$/i,J=/^0b[01]+$/i,K=/^0o[0-7]+$/i,Z=parseInt,q="object"==typeof S&&S&&S.Object===Object&&S,Q="object"==typeof self&&self&&self.Object===Object&&self,ee=q||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(U,"");var i=J.test(e);return i||K.test(e)?Z(e.slice(2),i?2:8):X.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__K-9lB",ce="sash-module_disabled__Hm-wx",ve="sash-module_mac__Jf6OJ",fe="sash-module_vertical__pB-rs",me="sash-module_minimum__-UKxp",de="sash-module_maximum__TCWxD",pe="sash-module_horizontal__kFbiw",ye="sash-module_hover__80W6I",be="sash-module_active__bJspD";!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,we,Se=F?20:8,_e=new $;class Ie extends ${get state(){return this._state}set state(e){this._state!==e&&(this.el.classList.toggle(ce,e===ue.Disabled),this.el.classList.toggle("dash-disabled",e===ue.Disabled),this.el.classList.toggle(me,e===ue.Minimum),this.el.classList.toggle("sash-minimum",e===ue.Minimum),this.el.classList.toggle(de,e===ue.Maximum),this.el.classList.toggle("sash-maximum",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("sash-hover",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("sash-active",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("sash-active",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("sash-hover",ye)):this.hoverDelayer(this.el)},this.onMouseLeave=()=>{this.hoverDelayer.cancel(),this.el.classList.remove("sash-hover",ye)},this.el=document.createElement("div"),this.el.classList.add("sash",he),this.el.dataset.testid="sash",e.append(this.el),k&&this.el.classList.add("sash-mac",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=Se,_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("sash-horizontal",pe),this.el.classList.remove("sash-vertical",fe)):(this.el.classList.remove("sash-horizontal",pe),this.el.classList.add("sash-vertical",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"}(we||(we={}));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("split-view-view",O),this.container.dataset.testid="split-view-view","number"==typeof i?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("split-view-view-visible",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=w(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(L,e),this.container.classList.toggle("split-view-view-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 ${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("sash-container",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=G(e,-1,-1),i=G(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=w(Math.round(this.proportions[i]*e),r.minimumSize,r.maximumSize)}else{var n=G(0,this.viewItems.length),s=n.filter((e=>this.viewItems[e].priority===we.Low)),o=n.filter((e=>this.viewItems[e].priority===we.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=G(0,this.viewItems.length).filter((t=>t!==e)),r=[...i.filter((e=>this.viewItems[e].priority===we.Low)),e],n=i.filter((e=>this.viewItems[e].priority===we.High)),s=this.viewItems[e];t=Math.round(t),t=w(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=w(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=w(r,n.minimumSize,n.maximumSize);var s=G(0,this.viewItems.length),o=s.filter((e=>this.viewItems[e].priority===we.Low)),a=s.filter((e=>this.viewItems[e].priority===we.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=G(r,-1,-1),u=G(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=G(e,-1,-1),h=G(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)W(l,v),W(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),S=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=w(t,S,_);N<f.length;N++){var L=f[N],M=w(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=w(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=G(this.viewItems.length-1,-1,-1);"number"==typeof e&&W(r,e);for(var n=0;0!==i&&n<r.length;n++){var s=this.viewItems[r[n]],o=w(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)||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=G(a,-1,-1),v=G(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:we.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("split-view-view",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,separator:y=!0,sizes:b,defaultSizes:z=b,snap:g=!1,vertical:w=!1,onChange:S,onReset:_,onVisibleChange:x}=a,j=i(null),O=i([]),L=i(new Map),D=i(null),T=i(new Map),C=i(new H),k=i([]),[Y,B]=r(!1);"production"!==process.env.NODE_ENV&&b&&console.warn("Prop sizes is deprecated. Please use defaultSizes instead.");var $=o((()=>t.Children.toArray(c).filter(t.isValidElement)),[c]),R=s((e=>{var t,i,r=null==(t=k.current)?void 0:t[e];return"number"==typeof(null==r?void 0:r.preferredSize)&&(null==(i=D.current)||i.resizeView(e,Math.round(r.preferredSize)),!0)}),[]);return u(h,(()=>({reset:()=>{if(_)_();else{var e;null==(e=D.current)||e.distributeViewSizes();for(var t=0;t<k.current.length;t++)R(t)}},resize:e=>{var t;null==(t=D.current)||t.resizeViews(e)}}))),l((()=>{var t=!0;z&&T.current.size!==z.length&&(t=!1,console.warn("Expected "+z.length+" children based on defaultSizes but found "+T.current.size)),t&&z&&(O.current=$.map((e=>e.key)));var i=e({orientation:w?ae.Vertical:ae.Horizontal,proportionalLayout:p},t&&z&&{descriptor:{size:z.reduce(((e,t)=>e+t),0),views:z.map(((t,i)=>{var r,n,s,o,a=L.current.get(O.current[i]),u=new Me(C.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:we.Normal},(null==a?void 0:a.preferredSize)&&{preferredSize:null==a?void 0:a.preferredSize},{snap:null!=(o=null==a?void 0:a.snap)?o:g}));return k.current.push(u),{container:[...T.current.values()][i],size:t,view:u}}))}});D.current=new je(j.current,i,S),D.current.on("sashchange",(e=>{if(x&&D.current)for(var t=$.map((e=>e.key)),i=0;i<t.length;i++){var r=L.current.get(t[i]);void 0!==(null==r?void 0:r.visible)&&r.visible!==D.current.isViewVisible(i)&&x(i,D.current.isViewVisible(i))}})),D.current.on("sashreset",(e=>{if(_)_();else{var t;if(R(e))return;if(R(e+1))return;null==(t=D.current)||t.distributeViewSizes()}}));var r=D.current;return()=>{r.dispose()}}),[]),n((()=>{if(Y){for(var t=$.map((e=>e.key)),i=[...O.current],r=t.filter((e=>!O.current.includes(e))),n=t.filter((e=>O.current.includes(e))),s=O.current.map((e=>!t.includes(e))),o=s.length-1;o>=0;o--){var a;if(s[o])null==(a=D.current)||a.removeView(o),i.splice(o,1),k.current.splice(o,1)}var u=function(r){var n,s,o,a,u,l=L.current.get(r),h=new Me(C.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:we.Normal},(null==l?void 0:l.preferredSize)&&{preferredSize:null==l?void 0:l.preferredSize},{snap:null!=(a=null==l?void 0:l.snap)?a:g}));null==(u=D.current)||u.addView(T.current.get(r),h,ze.Distribute,t.findIndex((e=>e===r))),i.splice(t.findIndex((e=>e===r)),0,r),k.current.splice(t.findIndex((e=>e===r)),0,h)};for(var l of r)u(l);for(;!I(t,i);){var h=function(e,t){var r=i.findIndex((e=>e===t));if(r!==e){var n;null==(n=D.current)||n.moveView(T.current.get(t),r,e);var s=i[r];return i.splice(r,1),i.splice(e,0,s),"break"}};for(var[c,v]of t.entries()){if("break"===h(c,v))break}}var f=function(e){var i,r=t.findIndex((t=>t===e)),n=k.current[r].preferredSize;void 0!==n&&(null==(i=D.current)||i.resizeView(r,n))};for(var p of r)f(p);var y=function(e){var i,r,n=L.current.get(e),s=t.findIndex((t=>t===e));n&&Pe(n)&&(void 0!==n.visible&&(null==(i=D.current)?void 0:i.isViewVisible(s))!==n.visible&&(null==(r=D.current)||r.setViewVisible(s,n.visible)))};for(var b of[...r,...n])y(b);var z=function(e){var i=L.current.get(e),r=t.findIndex((t=>t===e));if(i&&Pe(i)){void 0!==i.preferredSize&&k.current[r].preferredSize!==i.preferredSize&&(k.current[r].preferredSize=i.preferredSize);var n,s=!1;if(void 0!==i.minSize&&k.current[r].minimumSize!==i.minSize&&(k.current[r].minimumSize=i.minSize,s=!0),void 0!==i.maxSize&&k.current[r].maximumSize!==i.maxSize&&(k.current[r].maximumSize=i.maxSize,s=!0),s)null==(n=D.current)||n.layout()}};for(var w of n)z(w);(r.length>0||s.length>0)&&(O.current=t)}}),[$,Y,m,d,g]),n((()=>{D.current&&(D.current.onDidChange=S)}),[S]),V({ref:j,onResize:e=>{var t,{width:i,height:r}=e;i&&r&&(null==(t=D.current)||t.layout(w?r:i),C.current.setSize(w?r:i),B(!0))}}),n((()=>{F&&Te(20)}),[]),t.createElement("div",{ref:j,className:v("split-view",w?"split-view-vertical":"split-view-horizontal",E,w?M:P,{[A]:y},f)},t.createElement("div",{className:v("split-view-container",N)},t.Children.toArray(c).map((e=>{if(!t.isValidElement(e))return null;var i=e.key;return"Allotment.Pane"===e.type.displayName?(L.current.set(i,e.props),t.cloneElement(e,{key:i,ref:e=>{e?T.current.set(i,e):T.current.delete(i)}})):t.createElement(Ae,{key:i,ref:e=>{e?T.current.set(i,e):T.current.delete(i)}},e)}))))}));function Te(e){var t=w(e,4,20),i=w(e,1,8);document.documentElement.style.setProperty("--sash-size",t+"px"),document.documentElement.style.setProperty("--sash-hover-size",i+"px"),function(e){Se=e,_e.emit("onDidChangeGlobalSize",e)}(t)}De.displayName="Allotment";var Ce=Object.assign(De,{Pane:Ae});export{Ce as Allotment,we as LayoutPriority,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 w=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)},S="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]",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[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 S&&S&&S.Object===Object&&S,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,B=Object.prototype,$=E["__core-js_shared__"],R=Y.toString,W=B.hasOwnProperty,G=(C=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",U=B.toString,X=RegExp("^"+R.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),J=O?E.Buffer:void 0,K=E.Symbol,Z=E.Uint8Array,q=B.propertyIsEnumerable,Q=H.splice,ee=K?K.toStringTag:void 0,te=Object.getOwnPropertySymbols,ie=J?J.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=K?K.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 we(e){var t=this.__data__=new be(e);this.size=t.size}function Se(e,t){var i=ke(e),r=!i&&Fe(e),n=!i&&!r&&He(e),s=!i&&!r&&!n&&We(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&&!W.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=W.call(e,ee),i=e[ee];try{e[ee]=void 0;var r=!0}catch(e){}var n=U.call(e);r&&(t?e[ee]=i:delete e[ee]);return n}(e):function(e){return U.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),w=ke(t),S=b?s:Ae(e),_=w?s:Ae(t),I=(S=S==n?v:S)==v,x=(_=_==n?v:_)==v,V=S==_;if(V&&He(e)){if(!He(t))return!1;b=!0,I=!1}if(V&&!I)return f||(f=new we),b||We(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 Z(e),new Z(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 w=Ne(v(e),v(t),r,n,s,l);return l.delete(e),w;case y:if(pe)return pe.call(e)==pe.call(t)}return!1}(e,t,S,i,r,l,f);if(!(1&i)){var E=I&&W.call(e,"__wrapped__"),j=x&&W.call(t,"__wrapped__");if(E||j){var N=E?e.value():e,O=j?t.value():t;return f||(f=new we),l(N,O,i,r,f)}}if(!V)return!1;return f||(f=new we),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:W.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!(!$e(e)||function(e){return!!G&&G in e}(e))&&(Ye(e)?X:w).test(Te(e))}function je(e){if(i=(t=e)&&t.constructor,r="function"==typeof i&&i.prototype||B,t!==r)return re(e);var t,i,r,n=[];for(var s in Object(e))W.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,Ge,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 W.call(t,e)?t[e]:void 0},ye.prototype.has=function(e){var t=this.__data__;return le?void 0!==t[e]:W.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)},we.prototype.clear=function(){this.__data__=new be,this.size=0},we.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},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 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 q.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)&&W.call(e,"callee")&&!q.call(e,"callee")},ke=Array.isArray;var He=ie||function(){return!1};function Ye(e){if(!$e(e))return!1;var t=Ie(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<=r}function $e(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Re(e){return null!=e&&"object"==typeof e}var We=P?function(e){return function(t){return e(t)}}(P):function(e){return Re(e)&&Be(e.length)&&!!I[Ie(e)]};function Ge(e){return null!=(t=e)&&Be(t.length)&&!Ye(t)?Se(e):je(e);var t}e.exports=function(e,t){return Ve(e,t)}}(_,_.exports);var I=_.exports;function x(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=i(void 0);a.current=t;var u=e.round||Math.round,l=i(),h=r({width:void 0,height:void 0}),c=h[0],v=h[1],f=i(!1);n((function(){return f.current=!1,function(){f.current=!0}}),[]);var m=i({width:void 0,height:void 0}),d=function(e,t){var r=i(null),o=i(null);o.current=t;var a=i(null);n((function(){u()}));var u=s((function(){var t=a.current,i=o.current,n=t||(i?i instanceof Element?i:i.current:null);r.current&&r.current.element===n&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:n,subscriber:e,cleanup:n?e(n):void 0})}),[e]);return n((function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}}),[]),s((function(e){a.current=e,u()}),[u])}(s((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(m.current.width!==o||m.current.height!==l){var h={width:o,height:l};m.current.width=o,m.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]),e.ref);return o((function(){return{ref:d,width:c.width,height:c.height}}),[d,c.width,c.height])}var E="allotment-module_splitView__L-yRc",j="allotment-module_sashContainer__fzwJF",N="allotment-module_splitViewContainer__rQnVa",O="allotment-module_splitViewView__MGZ6O",L="allotment-module_visible__AHq-h",M="allotment-module_vertical__WSwwa",P="allotment-module_horizontal__7doS8",A="allotment-module_separatorBorder__x-rDS",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 B={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}(B);var $=B.exports;function R(e,t){var i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function W(e,t){var i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function G(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 U=/^\s+|\s+$/g,X=/^[-+]0x[0-9a-f]+$/i,J=/^0b[01]+$/i,K=/^0o[0-7]+$/i,Z=parseInt,q="object"==typeof S&&S&&S.Object===Object&&S,Q="object"==typeof self&&self&&self.Object===Object&&self,ee=q||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(U,"");var i=J.test(e);return i||K.test(e)?Z(e.slice(2),i?2:8):X.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__K-9lB",ce="sash-module_disabled__Hm-wx",ve="sash-module_mac__Jf6OJ",fe="sash-module_vertical__pB-rs",me="sash-module_minimum__-UKxp",de="sash-module_maximum__TCWxD",pe="sash-module_horizontal__kFbiw",ye="sash-module_hover__80W6I",be="sash-module_active__bJspD";!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,we,Se=F?20:8,_e=new $;class Ie extends ${get state(){return this._state}set state(e){this._state!==e&&(this.el.classList.toggle(ce,e===ue.Disabled),this.el.classList.toggle("dash-disabled",e===ue.Disabled),this.el.classList.toggle(me,e===ue.Minimum),this.el.classList.toggle("sash-minimum",e===ue.Minimum),this.el.classList.toggle(de,e===ue.Maximum),this.el.classList.toggle("sash-maximum",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("sash-hover",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("sash-active",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("sash-active",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("sash-hover",ye)):this.hoverDelayer(this.el)},this.onMouseLeave=()=>{this.hoverDelayer.cancel(),this.el.classList.remove("sash-hover",ye)},this.el=document.createElement("div"),this.el.classList.add("sash",he),this.el.dataset.testid="sash",e.append(this.el),k&&this.el.classList.add("sash-mac",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=Se,_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("sash-horizontal",pe),this.el.classList.remove("sash-vertical",fe)):(this.el.classList.remove("sash-horizontal",pe),this.el.classList.add("sash-vertical",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"}(we||(we={}));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("split-view-view",O),this.container.dataset.testid="split-view-view","number"==typeof i?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("split-view-view-visible",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=w(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(L,e),this.container.classList.toggle("split-view-view-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 ${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("sash-container",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=G(e,-1,-1),i=G(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=w(Math.round(this.proportions[i]*e),r.minimumSize,r.maximumSize)}else{var n=G(0,this.viewItems.length),s=n.filter((e=>this.viewItems[e].priority===we.Low)),o=n.filter((e=>this.viewItems[e].priority===we.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=G(0,this.viewItems.length).filter((t=>t!==e)),r=[...i.filter((e=>this.viewItems[e].priority===we.Low)),e],n=i.filter((e=>this.viewItems[e].priority===we.High)),s=this.viewItems[e];t=Math.round(t),t=w(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=w(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=w(r,n.minimumSize,n.maximumSize);var s=G(0,this.viewItems.length),o=s.filter((e=>this.viewItems[e].priority===we.Low)),a=s.filter((e=>this.viewItems[e].priority===we.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=G(r,-1,-1),u=G(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=G(e,-1,-1),h=G(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)W(l,v),W(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),S=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=w(t,S,_);N<f.length;N++){var L=f[N],M=w(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=w(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=G(this.viewItems.length-1,-1,-1);"number"==typeof e&&W(r,e);for(var n=0;0!==i&&n<r.length;n++){var s=this.viewItems[r[n]],o=w(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)||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=G(a,-1,-1),v=G(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:we.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("split-view-view",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,separator:y=!0,sizes:b,defaultSizes:z=b,snap:g=!1,vertical:w=!1,onChange:S,onReset:_,onVisibleChange:x}=a,j=i(null),O=i([]),L=i(new Map),D=i(null),T=i(new Map),C=i(new H),k=i([]),[Y,B]=r(!1);"production"!==process.env.NODE_ENV&&b&&console.warn("Prop sizes is deprecated. Please use defaultSizes instead.");var $=o((()=>t.Children.toArray(c).filter(t.isValidElement)),[c]),R=s((e=>{var t,i,r=null==(t=k.current)?void 0:t[e];return"number"==typeof(null==r?void 0:r.preferredSize)&&(null==(i=D.current)||i.resizeView(e,Math.round(r.preferredSize)),!0)}),[]);return u(h,(()=>({reset:()=>{if(_)_();else{var e;null==(e=D.current)||e.distributeViewSizes();for(var t=0;t<k.current.length;t++)R(t)}},resize:e=>{var t;null==(t=D.current)||t.resizeViews(e)}}))),l((()=>{var t=!0;z&&T.current.size!==z.length&&(t=!1,console.warn("Expected "+z.length+" children based on defaultSizes but found "+T.current.size)),t&&z&&(O.current=$.map((e=>e.key)));var i=e({orientation:w?ae.Vertical:ae.Horizontal,proportionalLayout:p},t&&z&&{descriptor:{size:z.reduce(((e,t)=>e+t),0),views:z.map(((t,i)=>{var r,n,s,o,a=L.current.get(O.current[i]),u=new Me(C.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:we.Normal},(null==a?void 0:a.preferredSize)&&{preferredSize:null==a?void 0:a.preferredSize},{snap:null!=(o=null==a?void 0:a.snap)?o:g}));return k.current.push(u),{container:[...T.current.values()][i],size:t,view:u}}))}});D.current=new je(j.current,i,S),D.current.on("sashchange",(e=>{if(x&&D.current)for(var t=$.map((e=>e.key)),i=0;i<t.length;i++){var r=L.current.get(t[i]);void 0!==(null==r?void 0:r.visible)&&r.visible!==D.current.isViewVisible(i)&&x(i,D.current.isViewVisible(i))}})),D.current.on("sashreset",(e=>{if(_)_();else{var t;if(R(e))return;if(R(e+1))return;null==(t=D.current)||t.distributeViewSizes()}}));var r=D.current;return()=>{r.dispose()}}),[]),n((()=>{if(Y){for(var t=$.map((e=>e.key)),i=[...O.current],r=t.filter((e=>!O.current.includes(e))),n=t.filter((e=>O.current.includes(e))),s=O.current.map((e=>!t.includes(e))),o=s.length-1;o>=0;o--){var a;if(s[o])null==(a=D.current)||a.removeView(o),i.splice(o,1),k.current.splice(o,1)}var u=function(r){var n,s,o,a,u,l=L.current.get(r),h=new Me(C.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:we.Normal},(null==l?void 0:l.preferredSize)&&{preferredSize:null==l?void 0:l.preferredSize},{snap:null!=(a=null==l?void 0:l.snap)?a:g}));null==(u=D.current)||u.addView(T.current.get(r),h,ze.Distribute,t.findIndex((e=>e===r))),i.splice(t.findIndex((e=>e===r)),0,r),k.current.splice(t.findIndex((e=>e===r)),0,h)};for(var l of r)u(l);for(;!I(t,i);){var h=function(e,t){var r=i.findIndex((e=>e===t));if(r!==e){var n;null==(n=D.current)||n.moveView(T.current.get(t),r,e);var s=i[r];return i.splice(r,1),i.splice(e,0,s),"break"}};for(var[c,v]of t.entries()){if("break"===h(c,v))break}}var f=function(e){var i,r=t.findIndex((t=>t===e)),n=k.current[r].preferredSize;void 0!==n&&(null==(i=D.current)||i.resizeView(r,n))};for(var p of r)f(p);var y=function(e){var i,r,n=L.current.get(e),s=t.findIndex((t=>t===e));n&&Pe(n)&&(void 0!==n.visible&&(null==(i=D.current)?void 0:i.isViewVisible(s))!==n.visible&&(null==(r=D.current)||r.setViewVisible(s,n.visible)))};for(var b of[...r,...n])y(b);var z=function(e){var i=L.current.get(e),r=t.findIndex((t=>t===e));if(i&&Pe(i)){void 0!==i.preferredSize&&k.current[r].preferredSize!==i.preferredSize&&(k.current[r].preferredSize=i.preferredSize);var n,s=!1;if(void 0!==i.minSize&&k.current[r].minimumSize!==i.minSize&&(k.current[r].minimumSize=i.minSize,s=!0),void 0!==i.maxSize&&k.current[r].maximumSize!==i.maxSize&&(k.current[r].maximumSize=i.maxSize,s=!0),s)null==(n=D.current)||n.layout()}};for(var w of n)z(w);(r.length>0||s.length>0)&&(O.current=t)}}),[$,Y,m,d,g]),n((()=>{D.current&&(D.current.onDidChange=S)}),[S]),V({ref:j,onResize:e=>{var t,{width:i,height:r}=e;i&&r&&(null==(t=D.current)||t.layout(w?r:i),C.current.setSize(w?r:i),B(!0))}}),n((()=>{F&&Te(20)}),[]),t.createElement("div",{ref:j,className:v("split-view",w?"split-view-vertical":"split-view-horizontal",{"split-view-separator-border":y},E,w?M:P,{[A]:y},f)},t.createElement("div",{className:v("split-view-container",N)},t.Children.toArray(c).map((e=>{if(!t.isValidElement(e))return null;var i=e.key;return"Allotment.Pane"===e.type.displayName?(L.current.set(i,e.props),t.cloneElement(e,{key:i,ref:e=>{e?T.current.set(i,e):T.current.delete(i)}})):t.createElement(Ae,{key:i,ref:e=>{e?T.current.set(i,e):T.current.delete(i)}},e)}))))}));function Te(e){var t=w(e,4,20),i=w(e,1,8);document.documentElement.style.setProperty("--sash-size",t+"px"),document.documentElement.style.setProperty("--sash-hover-size",i+"px"),function(e){Se=e,_e.emit("onDidChangeGlobalSize",e)}(t)}De.displayName="Allotment";var Ce=Object.assign(De,{Pane:Ae});export{Ce as Allotment,we as LayoutPriority,Te as setSashSize};
{
"name": "allotment",
"version": "1.16.0",
"version": "1.17.0",
"description": "React split-pane component",

@@ -5,0 +5,0 @@ "exports": {

@@ -232,26 +232,27 @@ [![CI status](https://github.com/johnwalley/allotment/actions/workflows/build.yml/badge.svg)](https://github.com/johnwalley/allotment/actions/workflows/build.yml)

| Name | Default | Description |
| :-------------------- | :-------------------------- | :----------------------------- |
| `--focus-border` | `#007fd4` | Color of the sash when hovered |
| ` --separator-border` | `rgba(128, 128, 128, 0.35)` | Color of the separator |
| Name | Default | Description |
| :------------------- | :-------------------------- | :----------------------------- |
| `--focus-border` | `#007fd4` | Color of the sash when hovered |
| `--separator-border` | `rgba(128, 128, 128, 0.35)` | Color of the separator |
For more involved styling you can target the component's child elements.
| Class | Description |
| :------------------------- | :------------------------------------------------------------- |
| `.split-view` | Styles applied to the top-level container |
| `.split-view-horizontal` | Styles applied to the top-level container if `vertical={false} |
| `.split-view-vertical` | Styles applied to the top-level container if `vertical={true} |
| `.sash-container` | Styles applied to the sash container |
| `.sash` | Styles applied to the sash |
| `.sash-active` | Styles applied to the sash if being dragged |
| `.sash-disabled` | Styles applied to the sash if disabled |
| `.sash-horizontal` | Styles applied to the sash if vertical={false}` |
| `.sash-hover` | Styles applied to the sash if being hovered over |
| `.sash-mac` | Styles applied to the sash if running under macos |
| `.sash-maximum` | Styles applied to the sash if the pane is maximised |
| `.sash-minimum` | Styles applied to the sash if the pane is minimised |
| `.sash-vertical` | Styles applied to the sash if vertical={true}` |
| `.split-view-container` | Styles applied to the split view container |
| `.split-view-view` | Styles applied to the split view view |
| `.split-view-view-visible` | Styles applied to the split view view if `visible={true}` |
| Class | Description |
| :----------------------------- | :------------------------------------------------------------- |
| `.split-view` | Styles applied to the top-level container |
| `.split-view-horizontal` | Styles applied to the top-level container if `vertical={false} |
| `.split-view-vertical` | Styles applied to the top-level container if `vertical={true} |
| `.split-view-separator-border` | Styles applied to the top-level container if `separator={true} |
| `.sash-container` | Styles applied to the sash container |
| `.sash` | Styles applied to the sash |
| `.sash-active` | Styles applied to the sash if being dragged |
| `.sash-disabled` | Styles applied to the sash if disabled |
| `.sash-horizontal` | Styles applied to the sash if vertical={false}` |
| `.sash-hover` | Styles applied to the sash if being hovered over |
| `.sash-mac` | Styles applied to the sash if running under macos |
| `.sash-maximum` | Styles applied to the sash if the pane is maximised |
| `.sash-minimum` | Styles applied to the sash if the pane is minimised |
| `.sash-vertical` | Styles applied to the sash if vertical={true}` |
| `.split-view-container` | Styles applied to the split view container |
| `.split-view-view` | Styles applied to the split view view |
| `.split-view-view-visible` | Styles applied to the split view view if `visible={true}` |

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc