@gitkraken/gitkraken-components 6.0.0 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var e={2989:e=>{e.exports=function(e,t){return Array.prototype.slice.call(e,t)}},4184:(e,t)=>{var o;!function(){var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var s=r.apply(null,o);s&&e.push(s)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var l in o)n.call(o,l)&&o[l]&&e.push(l)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},8514:(e,t,o)=>{var n=o(6115);e.exports=function(e,t,o){e&&n((function(){e.apply(o||null,t||[])}))}},5229:(e,t,o)=>{var n=o(2989),r=o(8514);e.exports=function(e,t){var o=t||{},i={};return void 0===e&&(e={}),e.on=function(t,o){return i[t]?i[t].push(o):i[t]=[o],e},e.once=function(t,o){return o._once=!0,e.on(t,o),e},e.off=function(t,o){var n=arguments.length;if(1===n)delete i[t];else if(0===n)i={};else{var r=i[t];if(!r)return e;r.splice(r.indexOf(o),1)}return e},e.emit=function(){var t=n(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var s=(i[t]||[]).slice(0);return function(){var i=n(arguments),l=this||e;if("error"===t&&!1!==o.throws&&!s.length)throw 1===i.length?i[0]:i;return s.forEach((function(n){o.async?r(n,i,l):n.apply(l,i),n._once&&e.off(t,n)})),e}},e}},3285:(e,t,o)=>{o(8691),e.exports=o(4579).Array.isArray},6981:(e,t,o)=>{o(2699),e.exports=o(4579).Object.assign},5627:(e,t,o)=>{o(6760);var n=o(4579).Object;e.exports=function(e,t){return n.create(e,t)}},7965:(e,t,o)=>{o(520),e.exports=o(4579).Object.entries},8613:(e,t,o)=>{o(961),e.exports=o(4579).Object.keys},433:(e,t,o)=>{o(9349),e.exports=o(4579).Object.setPrototypeOf},5663:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},2159:(e,t,o)=>{var n=o(6727);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},7428:(e,t,o)=>{var n=o(7932),r=o(8728),i=o(6531);e.exports=function(e){return function(t,o,s){var l,a=n(t),c=r(a.length),h=i(s,c);if(e&&o!=o){for(;c>h;)if((l=a[h++])!=l)return!0}else for(;c>h;h++)if((e||h in a)&&a[h]===o)return e||h||0;return!e&&-1}}},2894:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},4579:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},9216:(e,t,o)=>{var n=o(5663);e.exports=function(e,t,o){if(n(e),void 0===t)return e;switch(o){case 1:return function(o){return e.call(t,o)};case 2:return function(o,n){return e.call(t,o,n)};case 3:return function(o,n,r){return e.call(t,o,n,r)}}return function(){return e.apply(t,arguments)}}},8333:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},9666:(e,t,o)=>{e.exports=!o(7929)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},7467:(e,t,o)=>{var n=o(6727),r=o(3938).document,i=n(r)&&n(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},3338:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},3856:(e,t,o)=>{var n=o(3938),r=o(4579),i=o(9216),s=o(1818),l=o(7069),a="prototype",c=function(e,t,o){var h,d,u,p=e&c.F,f=e&c.G,m=e&c.S,g=e&c.P,v=e&c.B,y=e&c.W,w=f?r:r[t]||(r[t]={}),S=w[a],b=f?n:m?n[t]:(n[t]||{})[a];for(h in f&&(o=t),o)(d=!p&&b&&void 0!==b[h])&&l(w,h)||(u=d?b[h]:o[h],w[h]=f&&"function"!=typeof b[h]?o[h]:v&&d?i(u,n):y&&b[h]==u?function(e){var t=function(t,o,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,o)}return new e(t,o,n)}return e.apply(this,arguments)};return t[a]=e[a],t}(u):g&&"function"==typeof u?i(Function.call,u):u,g&&((w.virtual||(w.virtual={}))[h]=u,e&c.R&&S&&!S[h]&&s(S,h,u)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},7929:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},3938:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},7069:e=>{var t={}.hasOwnProperty;e.exports=function(e,o){return t.call(e,o)}},1818:(e,t,o)=>{var n=o(4743),r=o(3101);e.exports=o(9666)?function(e,t,o){return n.f(e,t,r(1,o))}:function(e,t,o){return e[t]=o,e}},4881:(e,t,o)=>{var n=o(3938).document;e.exports=n&&n.documentElement},3758:(e,t,o)=>{e.exports=!o(9666)&&!o(7929)((function(){return 7!=Object.defineProperty(o(7467)("div"),"a",{get:function(){return 7}}).a}))},799:(e,t,o)=>{var n=o(2894);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},1421:(e,t,o)=>{var n=o(2894);e.exports=Array.isArray||function(e){return"Array"==n(e)}},6727:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},6227:e=>{e.exports=!0},8082:(e,t,o)=>{var n=o(9666),r=o(6162),i=o(8195),s=o(6274),l=o(6530),a=o(799),c=Object.assign;e.exports=!c||o(7929)((function(){var e={},t={},o=Symbol(),n="abcdefghijklmnopqrst";return e[o]=7,n.split("").forEach((function(e){t[e]=e})),7!=c({},e)[o]||Object.keys(c({},t)).join("")!=n}))?function(e,t){for(var o=l(e),c=arguments.length,h=1,d=i.f,u=s.f;c>h;)for(var p,f=a(arguments[h++]),m=d?r(f).concat(d(f)):r(f),g=m.length,v=0;g>v;)p=m[v++],n&&!u.call(f,p)||(o[p]=f[p]);return o}:c},526:(e,t,o)=>{var n=o(2159),r=o(7856),i=o(3338),s=o(8989)("IE_PROTO"),l=function(){},a="prototype",c=function(){var e,t=o(7467)("iframe"),n=i.length;for(t.style.display="none",o(4881).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[a][i[n]];return c()};e.exports=Object.create||function(e,t){var o;return null!==e?(l[a]=n(e),o=new l,l[a]=null,o[s]=e):o=c(),void 0===t?o:r(o,t)}},4743:(e,t,o)=>{var n=o(2159),r=o(3758),i=o(3206),s=Object.defineProperty;t.f=o(9666)?Object.defineProperty:function(e,t,o){if(n(e),t=i(t,!0),n(o),r)try{return s(e,t,o)}catch(e){}if("get"in o||"set"in o)throw TypeError("Accessors not supported!");return"value"in o&&(e[t]=o.value),e}},7856:(e,t,o)=>{var n=o(4743),r=o(2159),i=o(6162);e.exports=o(9666)?Object.defineProperties:function(e,t){r(e);for(var o,s=i(t),l=s.length,a=0;l>a;)n.f(e,o=s[a++],t[o]);return e}},6183:(e,t,o)=>{var n=o(6274),r=o(3101),i=o(7932),s=o(3206),l=o(7069),a=o(3758),c=Object.getOwnPropertyDescriptor;t.f=o(9666)?c:function(e,t){if(e=i(e),t=s(t,!0),a)try{return c(e,t)}catch(e){}if(l(e,t))return r(!n.f.call(e,t),e[t])}},8195:(e,t)=>{t.f=Object.getOwnPropertySymbols},2963:(e,t,o)=>{var n=o(7069),r=o(7932),i=o(7428)(!1),s=o(8989)("IE_PROTO");e.exports=function(e,t){var o,l=r(e),a=0,c=[];for(o in l)o!=s&&n(l,o)&&c.push(o);for(;t.length>a;)n(l,o=t[a++])&&(~i(c,o)||c.push(o));return c}},6162:(e,t,o)=>{var n=o(2963),r=o(3338);e.exports=Object.keys||function(e){return n(e,r)}},6274:(e,t)=>{t.f={}.propertyIsEnumerable},2584:(e,t,o)=>{var n=o(3856),r=o(4579),i=o(7929);e.exports=function(e,t){var o=(r.Object||{})[e]||Object[e],s={};s[e]=t(o),n(n.S+n.F*i((function(){o(1)})),"Object",s)}},2050:(e,t,o)=>{var n=o(9666),r=o(6162),i=o(7932),s=o(6274).f;e.exports=function(e){return function(t){for(var o,l=i(t),a=r(l),c=a.length,h=0,d=[];c>h;)o=a[h++],n&&!s.call(l,o)||d.push(e?[o,l[o]]:l[o]);return d}}},3101:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},2906:(e,t,o)=>{var n=o(6727),r=o(2159),i=function(e,t){if(r(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=o(9216)(Function.call,o(6183).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,o){return i(e,o),t?e.__proto__=o:n(e,o),e}}({},!1):void 0),check:i}},8989:(e,t,o)=>{var n=o(250)("keys"),r=o(5730);e.exports=function(e){return n[e]||(n[e]=r(e))}},250:(e,t,o)=>{var n=o(4579),r=o(3938),i="__core-js_shared__",s=r[i]||(r[i]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:o(6227)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},6531:(e,t,o)=>{var n=o(1052),r=Math.max,i=Math.min;e.exports=function(e,t){return(e=n(e))<0?r(e+t,0):i(e,t)}},1052:e=>{var t=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:t)(e)}},7932:(e,t,o)=>{var n=o(799),r=o(8333);e.exports=function(e){return n(r(e))}},8728:(e,t,o)=>{var n=o(1052),r=Math.min;e.exports=function(e){return e>0?r(n(e),9007199254740991):0}},6530:(e,t,o)=>{var n=o(8333);e.exports=function(e){return Object(n(e))}},3206:(e,t,o)=>{var n=o(6727);e.exports=function(e,t){if(!n(e))return e;var o,r;if(t&&"function"==typeof(o=e.toString)&&!n(r=o.call(e)))return r;if("function"==typeof(o=e.valueOf)&&!n(r=o.call(e)))return r;if(!t&&"function"==typeof(o=e.toString)&&!n(r=o.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},5730:e=>{var t=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+o).toString(36))}},8691:(e,t,o)=>{var n=o(3856);n(n.S,"Array",{isArray:o(1421)})},2699:(e,t,o)=>{var n=o(3856);n(n.S+n.F,"Object",{assign:o(8082)})},6760:(e,t,o)=>{var n=o(3856);n(n.S,"Object",{create:o(526)})},961:(e,t,o)=>{var n=o(6530),r=o(6162);o(2584)("keys",(function(){return function(e){return r(n(e))}}))},9349:(e,t,o)=>{var n=o(3856);n(n.S,"Object",{setPrototypeOf:o(2906).set})},520:(e,t,o)=>{var n=o(3856),r=o(2050)(!0);n(n.S,"Object",{entries:function(e){return r(e)}})},1808:(e,t,o)=>{var n=o(9638),r=o(4874),i=o.g.document,s=function(e,t,o,n){return e.addEventListener(t,o,n)},l=function(e,t,o,n){return e.removeEventListener(t,o,n)},a=[];function c(e,t,o){var n=function(e,t,o){var n,r;for(n=0;n<a.length;n++)if((r=a[n]).element===e&&r.type===t&&r.fn===o)return n}(e,t,o);if(n){var r=a[n].wrapper;return a.splice(n,1),r}}o.g.addEventListener||(s=function(e,t,n){return e.attachEvent("on"+t,function(e,t,n){var r=c(e,t,n)||function(e,t,n){return function(t){var r=t||o.g.event;r.target=r.target||r.srcElement,r.preventDefault=r.preventDefault||function(){r.returnValue=!1},r.stopPropagation=r.stopPropagation||function(){r.cancelBubble=!0},r.which=r.which||r.keyCode,n.call(e,r)}}(e,0,n);return a.push({wrapper:r,element:e,type:t,fn:n}),r}(e,t,n))},l=function(e,t,o){var n=c(e,t,o);if(n)return e.detachEvent("on"+t,n)}),e.exports={add:s,remove:l,fabricate:function(e,t,o){var s=-1===r.indexOf(t)?new n(t,{detail:o}):function(){var e;i.createEvent?(e=i.createEvent("Event")).initEvent(t,!0,!0):i.createEventObject&&(e=i.createEventObject());return e}();e.dispatchEvent?e.dispatchEvent(s):e.fireEvent("on"+t,s)}}},4874:(e,t,o)=>{var n=[],r="",i=/^on/;for(r in o.g)i.test(r)&&n.push(r.slice(2));e.exports=n},9638:(e,t,o)=>{var n=o.g.CustomEvent;e.exports=function(){try{var e=new n("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?n:"function"==typeof document.createEvent?function(e,t){var o=document.createEvent("CustomEvent");return t?o.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):o.initCustomEvent(e,!1,!1,void 0),o}:function(e,t){var o=document.createEventObject();return o.type=e,t?(o.bubbles=Boolean(t.bubbles),o.cancelable=Boolean(t.cancelable),o.detail=t.detail):(o.bubbles=!1,o.cancelable=!1,o.detail=void 0),o}},3249:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=void 0;var r=function(){};n(o(139)).default&&(r=document.addEventListener?function(e,t,o,n){return e.removeEventListener(t,o,n||!1)}:document.attachEvent?function(e,t,o){return e.detachEvent("on"+t,o)}:void 0);var i=r;t.default=i,e.exports=t.default},1416:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=void 0;var r=function(){};n(o(139)).default&&(r=document.addEventListener?function(e,t,o,n){return e.addEventListener(t,o,n||!1)}:document.attachEvent?function(e,t,o){return e.attachEvent("on"+t,(function(t){(t=t||window.event).target=t.target||t.srcElement,t.currentTarget=e,o.call(e,t)}))}:void 0);var i=r;t.default=i,e.exports=t.default},9981:(e,t)=>{t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},1629:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=void 0;var r=n(o(139)).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):i(e,t)}:i;function i(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=r,e.exports=t.default},7624:(e,t)=>{t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default},2565:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){var t=(0,s.default)(e),o=(0,i.default)(t),n=t&&t.documentElement,l={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,r.default)(n,e))return l;void 0!==e.getBoundingClientRect&&(l=e.getBoundingClientRect());return l={top:l.top+(o.pageYOffset||n.scrollTop)-(n.clientTop||0),left:l.left+(o.pageXOffset||n.scrollLeft)-(n.clientLeft||0),width:(null==l.width?e.offsetWidth:l.width)||0,height:(null==l.height?e.offsetHeight:l.height)||0}};var r=n(o(1629)),i=n(o(7624)),s=n(o(9981));e.exports=t.default},2939:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){var t=(0,r.default)(e),o=e&&e.offsetParent;for(;o&&"html"!==s(e)&&"static"===(0,i.default)(o,"position");)o=o.offsetParent;return o||t.documentElement};var r=n(o(9981)),i=n(o(162));function s(e){return e.nodeName&&e.nodeName.toLowerCase()}e.exports=t.default},7265:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e,t){var o,n={top:0,left:0};"fixed"===(0,c.default)(e,"position")?o=e.getBoundingClientRect():(t=t||(0,s.default)(e),o=(0,i.default)(e),"html"!==function(e){return e.nodeName&&e.nodeName.toLowerCase()}(t)&&(n=(0,i.default)(t)),n.top+=parseInt((0,c.default)(t,"borderTopWidth"),10)-(0,l.default)(t)||0,n.left+=parseInt((0,c.default)(t,"borderLeftWidth"),10)-(0,a.default)(t)||0);return(0,r.default)({},o,{top:o.top-n.top-(parseInt((0,c.default)(e,"marginTop"),10)||0),left:o.left-n.left-(parseInt((0,c.default)(e,"marginLeft"),10)||0)})};var r=n(o(434)),i=n(o(2565)),s=n(o(2939)),l=n(o(504)),a=n(o(5770)),c=n(o(162));e.exports=t.default},5770:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e,t){var o=(0,r.default)(e);if(void 0===t)return o?"pageXOffset"in o?o.pageXOffset:o.document.documentElement.scrollLeft:e.scrollLeft;o?o.scrollTo(t,"pageYOffset"in o?o.pageYOffset:o.document.documentElement.scrollTop):e.scrollLeft=t};var r=n(o(7624));e.exports=t.default},504:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e,t){var o=(0,r.default)(e);if(void 0===t)return o?"pageYOffset"in o?o.pageYOffset:o.document.documentElement.scrollTop:e.scrollTop;o?o.scrollTo("pageXOffset"in o?o.pageXOffset:o.document.documentElement.scrollLeft,t):e.scrollTop=t};var r=n(o(7624));e.exports=t.default},7023:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var o=e.style;"float"==(t=(0,r.default)(t))&&(t="styleFloat");var n=e.currentStyle[t]||null;if(null==n&&o&&o[t]&&(n=o[t]),s.test(n)&&!i.test(t)){var l=o.left,a=e.runtimeStyle,c=a&&a.left;c&&(a.left=e.currentStyle.left),o.left="fontSize"===t?"1em":n,n=o.pixelLeft+"px",o.left=l,c&&(a.left=c)}return n}}};var r=n(o(3497)),i=/^(top|right|bottom|left)$/,s=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},162:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e,t,o){var n="",h="",d=t;if("string"==typeof t){if(void 0===o)return e.style[(0,r.default)(t)]||(0,s.default)(e).getPropertyValue((0,i.default)(t));(d={})[t]=o}Object.keys(d).forEach((function(t){var o=d[t];o||0===o?(0,c.default)(t)?h+=t+"("+o+") ":n+=(0,i.default)(t)+": "+o+";":(0,l.default)(e,(0,i.default)(t))})),h&&(n+=a.transform+": "+h+";");e.style.cssText+=";"+n};var r=n(o(3497)),i=n(o(4403)),s=n(o(7023)),l=n(o(1760)),a=o(702),c=n(o(3293));e.exports=t.default},1760:(e,t)=>{t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default},3293:(e,t)=>{t.__esModule=!0,t.default=function(e){return!(!e||!o.test(e))};var o=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},702:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var r,i,s,l,a,c,h,d,u,p,f,m=n(o(139)),g="transform";if(t.transform=g,t.animationEnd=s,t.transitionEnd=i,t.transitionDelay=h,t.transitionTiming=c,t.transitionDuration=a,t.transitionProperty=l,t.animationDelay=f,t.animationTiming=p,t.animationDuration=u,t.animationName=d,m.default){var v=function(){for(var e,t,o=document.createElement("div").style,n={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},r=Object.keys(n),i="",s=0;s<r.length;s++){var l=r[s];if(l+"TransitionProperty"in o){i="-"+l.toLowerCase(),e=n[l]("TransitionEnd"),t=n[l]("AnimationEnd");break}}!e&&"transitionProperty"in o&&(e="transitionend");!t&&"animationName"in o&&(t="animationend");return o=null,{animationEnd:t,transitionEnd:e,prefix:i}}();r=v.prefix,t.transitionEnd=i=v.transitionEnd,t.animationEnd=s=v.animationEnd,t.transform=g=r+"-"+g,t.transitionProperty=l=r+"-transition-property",t.transitionDuration=a=r+"-transition-duration",t.transitionDelay=h=r+"-transition-delay",t.transitionTiming=c=r+"-transition-timing-function",t.animationName=d=r+"-animation-name",t.animationDuration=u=r+"-animation-duration",t.animationTiming=p=r+"-animation-delay",t.animationDelay=f=r+"-animation-timing-function"}var y={transform:g,end:i,property:l,timing:c,delay:h,duration:a};t.default=y},1908:(e,t)=>{t.__esModule=!0,t.default=function(e){return e.replace(o,(function(e,t){return t.toUpperCase()}))};var o=/-(.)/g;e.exports=t.default},3497:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){return(0,r.default)(e.replace(i,"ms-"))};var r=n(o(1908)),i=/^-ms-/;e.exports=t.default},1185:(e,t)=>{t.__esModule=!0,t.default=function(e){return e.replace(o,"-$1").toLowerCase()};var o=/([A-Z])/g;e.exports=t.default},4403:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){return(0,r.default)(e).replace(i,"-ms-")};var r=n(o(1185)),i=/^ms-/;e.exports=t.default},139:(e,t)=>{t.__esModule=!0,t.default=void 0;var o=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=o,e.exports=t.default},9425:e=>{var t={},o="(?:^|\\s)",n="(?:\\s|$)";function r(e){var r=t[e];return r?r.lastIndex=0:t[e]=r=new RegExp(o+e+n,"g"),r}e.exports={add:function(e,t){var o=e.className;o.length?r(t).test(o)||(e.className+=" "+t):e.className=t},rm:function(e,t){e.className=e.className.replace(r(t)," ").trim()}}},7137:(e,t,o)=>{var n=o(5229),r=o(1808),i=o(9425),s=document,l=s.documentElement;function a(e,t,n,i){o.g.navigator.pointerEnabled?r[t](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[n],i):o.g.navigator.msPointerEnabled?r[t](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[n],i):(r[t](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[n],i),r[t](e,n,i))}function c(e){if(void 0!==e.touches)return e.touches.length;if(void 0!==e.which&&0!==e.which)return e.which;if(void 0!==e.buttons)return e.buttons;var t=e.button;return void 0!==t?1&t?1:2&t?3:4&t?2:0:void 0}function h(e,t){return void 0!==o.g[t]?o.g[t]:l.clientHeight?l[e]:s.body[e]}function d(e,t,o){var n,r=e||{},i=r.className;return r.className+=" gu-hide",n=s.elementFromPoint(t,o),r.className=i,n}function u(){return!1}function p(){return!0}function f(e){return e.width||e.right-e.left}function m(e){return e.height||e.bottom-e.top}function g(e){return e.parentNode===s?null:e.parentNode}function v(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||y(e)}function y(e){return!!e&&("false"!==e.contentEditable&&("true"===e.contentEditable||y(g(e))))}function w(e){return e.nextElementSibling||function(){var t=e;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t}()}function S(e,t){var o=function(e){return e.targetTouches&&e.targetTouches.length?e.targetTouches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e}(t),n={pageX:"clientX",pageY:"clientY"};return e in n&&!(e in o)&&n[e]in o&&(e=n[e]),o[e]}e.exports=function(e,t){var o,y,b,C,x,R,_,T,E,O,M;1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var I,z=null,k=t||{};void 0===k.moves&&(k.moves=p),void 0===k.accepts&&(k.accepts=p),void 0===k.invalid&&(k.invalid=function(){return!1}),void 0===k.containers&&(k.containers=e||[]),void 0===k.isContainer&&(k.isContainer=u),void 0===k.copy&&(k.copy=!1),void 0===k.copySortSource&&(k.copySortSource=!1),void 0===k.revertOnSpill&&(k.revertOnSpill=!1),void 0===k.removeOnSpill&&(k.removeOnSpill=!1),void 0===k.direction&&(k.direction="vertical"),void 0===k.ignoreInputTextSelection&&(k.ignoreInputTextSelection=!0),void 0===k.mirrorContainer&&(k.mirrorContainer=s.body);var G=n({containers:k.containers,start:function(e){var t=B(e);t&&F(t)},end:j,cancel:Y,remove:$,destroy:function(){A(!0),Z({})},canMove:function(e){return!!B(e)},dragging:!1});return!0===k.removeOnSpill&&G.on("over",(function(e){i.rm(e,"gu-hide")})).on("out",(function(e){G.dragging&&i.add(e,"gu-hide")})),A(),G;function P(e){return-1!==G.containers.indexOf(e)||k.isContainer(e)}function A(e){var t=e?"remove":"add";a(l,t,"mousedown",N),a(l,t,"mouseup",Z)}function H(e){a(l,e?"remove":"add","mousemove",W)}function L(e){var t=e?"remove":"add";r[t](l,"selectstart",D),r[t](l,"click",D)}function D(e){I&&e.preventDefault()}function N(e){if(R=e.clientX,_=e.clientY,!(1!==c(e)||e.metaKey||e.ctrlKey)){var t=e.target,o=B(t);o&&(I=o,H(),"mousedown"===e.type&&(v(t)?t.focus():e.preventDefault()))}}function W(e){if(I)if(0!==c(e)){if(void 0===e.clientX||e.clientX!==R||void 0===e.clientY||e.clientY!==_){if(k.ignoreInputTextSelection){var t=S("clientX",e),n=S("clientY",e);if(v(s.elementFromPoint(t,n)))return}var r=I;H(!0),L(),j(),F(r);var d,u={left:(d=b.getBoundingClientRect()).left+h("scrollLeft","pageXOffset"),top:d.top+h("scrollTop","pageYOffset")};C=S("pageX",e)-u.left,x=S("pageY",e)-u.top,i.add(O||b,"gu-transit"),function(){if(o)return;var e=b.getBoundingClientRect();(o=b.cloneNode(!0)).style.width=f(e)+"px",o.style.height=m(e)+"px",i.rm(o,"gu-transit"),i.add(o,"gu-mirror"),k.mirrorContainer.appendChild(o),a(l,"add","mousemove",Q),i.add(k.mirrorContainer,"gu-unselectable"),G.emit("cloned",o,b,"mirror")}(),Q(e)}}else Z({})}function B(e){if(!(G.dragging&&o||P(e))){for(var t=e;g(e)&&!1===P(g(e));){if(k.invalid(e,t))return;if(!(e=g(e)))return}var n=g(e);if(n)if(!k.invalid(e,t))if(k.moves(e,n,t,w(e)))return{item:e,source:n}}}function F(e){var t,o;t=e.item,o=e.source,("boolean"==typeof k.copy?k.copy:k.copy(t,o))&&(O=e.item.cloneNode(!0),G.emit("cloned",O,e.item,"copy")),y=e.source,b=e.item,T=E=w(e.item),G.dragging=!0,G.emit("drag",b,y)}function j(){if(G.dragging){var e=O||b;V(e,g(e))}}function U(){I=!1,H(!0),L(!0)}function Z(e){if(U(),G.dragging){var t=O||b,n=S("clientX",e),r=S("clientY",e),i=X(d(o,n,r),n,r);i&&(O&&k.copySortSource||!O||i!==y)?V(t,i):k.removeOnSpill?$():Y()}}function V(e,t){var o=g(e);O&&k.copySortSource&&t===y&&o.removeChild(b),K(t)?G.emit("cancel",e,y,y):G.emit("drop",e,t,y,E),q()}function $(){if(G.dragging){var e=O||b,t=g(e);t&&t.removeChild(e),G.emit(O?"cancel":"remove",e,t,y),q()}}function Y(e){if(G.dragging){var t=arguments.length>0?e:k.revertOnSpill,o=O||b,n=g(o),r=K(n);!1===r&&t&&(O?n&&n.removeChild(O):y.insertBefore(o,T)),r||t?G.emit("cancel",o,y,y):G.emit("drop",o,n,y,E),q()}}function q(){var e=O||b;U(),o&&(i.rm(k.mirrorContainer,"gu-unselectable"),a(l,"remove","mousemove",Q),g(o).removeChild(o),o=null),e&&i.rm(e,"gu-transit"),M&&clearTimeout(M),G.dragging=!1,z&&G.emit("out",e,z,y),G.emit("dragend",e),y=b=O=T=E=M=z=null}function K(e,t){var n;return n=void 0!==t?t:o?E:w(O||b),e===y&&n===T}function X(e,t,o){for(var n=e;n&&!r();)n=g(n);return n;function r(){if(!1===P(n))return!1;var r=J(n,e),i=ee(n,r,t,o);return!!K(n,i)||k.accepts(b,n,y,i)}}function Q(e){if(o){e.preventDefault();var t=S("clientX",e),n=S("clientY",e),r=t-C,i=n-x;o.style.left=r+"px",o.style.top=i+"px";var s=O||b,l=d(o,t,n),a=X(l,t,n),c=null!==a&&a!==z;(c||null===a)&&(z&&f("out"),z=a,c&&f("over"));var h=g(s);if(a!==y||!O||k.copySortSource){var u,p=J(a,l);if(null!==p)u=ee(a,p,t,n);else{if(!0!==k.revertOnSpill||O)return void(O&&h&&h.removeChild(s));u=T,a=y}(null===u&&c||u!==s&&u!==w(s))&&(E=u,a.insertBefore(s,u),G.emit("shadow",s,a,y))}else h&&h.removeChild(s)}function f(e){G.emit(e,s,z,y)}}function J(e,t){for(var o=t;o!==e&&g(o)!==e;)o=g(o);return o===l?null:o}function ee(e,t,o,n){var r="horizontal"===k.direction,i=t!==e?function(){var e=t.getBoundingClientRect();if(r)return s(o>e.left+f(e)/2);return s(n>e.top+m(e)/2)}():function(){var t,i,s,l=e.children.length;for(t=0;t<l;t++){if(s=(i=e.children[t]).getBoundingClientRect(),r&&s.left+s.width/2>o)return i;if(!r&&s.top+s.height/2>n)return i}return null}();return i;function s(e){return e?w(t):t}}}},3316:e=>{function t(e,t,o,n){var r,i=null==(r=n)||"number"==typeof r||"boolean"==typeof r?n:o(n),s=t.get(i);return void 0===s&&(s=e.call(this,n),t.set(i,s)),s}function o(e,t,o){var n=Array.prototype.slice.call(arguments,3),r=o(n),i=t.get(r);return void 0===i&&(i=e.apply(this,n),t.set(r,i)),i}function n(e,t,o,n,r){return o.bind(t,e,n,r)}function r(e,r){return n(e,this,1===e.length?t:o,r.cache.create(),r.serializer)}function i(){return JSON.stringify(arguments)}function s(){this.cache=Object.create(null)}s.prototype.has=function(e){return e in this.cache},s.prototype.get=function(e){return this.cache[e]},s.prototype.set=function(e,t){this.cache[e]=t};var l={create:function(){return new s}};e.exports=function(e,t){var o=t&&t.cache?t.cache:l,n=t&&t.serializer?t.serializer:i;return(t&&t.strategy?t.strategy:r)(e,{cache:o,serializer:n})},e.exports.strategies={variadic:function(e,t){return n(e,this,o,t.cache.create(),t.serializer)},monadic:function(e,o){return n(e,this,t,o.cache.create(),o.serializer)}}},1143:e=>{e.exports=function(e,t,o,n,r,i,s,l){if(!e){var a;if(void 0===t)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[o,n,r,i,s,l],h=0;(a=new Error(t.replace(/%s/g,(function(){return c[h++]})))).name="Invariant Violation"}throw a.framesToPop=1,a}}},7418:e=>{var t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,r){for(var i,s,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;a<arguments.length;a++){for(var c in i=Object(arguments[a]))o.call(i,c)&&(l[c]=i[c]);if(t){s=t(i);for(var h=0;h<s.length;h++)n.call(i,s[h])&&(l[s[h]]=i[s[h]])}}return l}},621:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="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},r=s(o(6689)),i=s(o(2613));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,o,i,s){var l=e[t],a=void 0===l?"undefined":n(l);return r.default.isValidElement(l)?new Error("Invalid "+i+" `"+s+"` of type ReactElement supplied to `"+o+"`, expected a ReactComponent or a DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===a&&"function"==typeof l.render||1===l.nodeType?null:new Error("Invalid "+i+" `"+s+"` of value `"+l+"` supplied to `"+o+"`, expected a ReactComponent or a DOMElement.")})),e.exports=t.default},8853:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=s(o(6689)),r=o(9864),i=s(o(2613));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,o,i,s){var l=e[t];return n.default.isValidElement(l)?new Error("Invalid "+i+" `"+s+"` of type ReactElement supplied to `"+o+"`,expected an element type (a string , component class, or function component)."):(0,r.isValidElementType)(l)?null:new Error("Invalid "+i+" `"+s+"` of value `"+l+"` supplied to `"+o+"`, expected an element type (a string , component class, or function component).")})),e.exports=t.default},5638:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,o,n,r,i){var s=n||"<<anonymous>>",l=i||o;if(null==t[o])return new Error("The "+r+" `"+l+"` is required to make `"+s+"` accessible for users of assistive technologies such as screen readers.");for(var a=arguments.length,c=Array(a>5?a-5:0),h=5;h<a;h++)c[h-5]=arguments[h];return e.apply(void 0,[t,o,n,r,i].concat(c))}},e.exports=t.default},2613:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,o,n,r,i,s){var l=r||"<<anonymous>>",a=s||n;if(null==o[n])return t?new Error("Required "+i+" `"+a+"` was not specified in `"+l+"`."):null;for(var c=arguments.length,h=Array(c>6?c-6:0),d=6;d<c;d++)h[d-6]=arguments[d];return e.apply(void 0,[o,n,l,i,a].concat(h))}var o=t.bind(null,!1);return o.isRequired=t.bind(null,!0),o},e.exports=t.default},2703:(e,t,o)=>{var n=o(414);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,o,r,i,s){if(s!==n){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return o.PropTypes=o,o}},5697:(e,t,o)=>{e.exports=o(2703)()},414:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},977:(e,t,o)=>{var n=o(7137),r=o(2989);e.exports=function(){return n.apply(this,r(arguments)).on("cloned",(function(t){e(t),r(t.getElementsByTagName("*")).forEach(e)}));function e(e){e.removeAttribute("data-reactid")}}},9590:e=>{var t="undefined"!=typeof Element,o="function"==typeof Map,n="function"==typeof Set,r="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,s){if(e===s)return!0;if(e&&s&&"object"==typeof e&&"object"==typeof s){if(e.constructor!==s.constructor)return!1;var l,a,c,h;if(Array.isArray(e)){if((l=e.length)!=s.length)return!1;for(a=l;0!=a--;)if(!i(e[a],s[a]))return!1;return!0}if(o&&e instanceof Map&&s instanceof Map){if(e.size!==s.size)return!1;for(h=e.entries();!(a=h.next()).done;)if(!s.has(a.value[0]))return!1;for(h=e.entries();!(a=h.next()).done;)if(!i(a.value[1],s.get(a.value[0])))return!1;return!0}if(n&&e instanceof Set&&s instanceof Set){if(e.size!==s.size)return!1;for(h=e.entries();!(a=h.next()).done;)if(!s.has(a.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(s)){if((l=e.length)!=s.length)return!1;for(a=l;0!=a--;)if(e[a]!==s[a])return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===s.toString();if((l=(c=Object.keys(e)).length)!==Object.keys(s).length)return!1;for(a=l;0!=a--;)if(!Object.prototype.hasOwnProperty.call(s,c[a]))return!1;if(t&&e instanceof Element)return!1;for(a=l;0!=a--;)if(("_owner"!==c[a]&&"__v"!==c[a]&&"__o"!==c[a]||!e.$$typeof)&&!i(e[c[a]],s[c[a]]))return!1;return!0}return e!=e&&s!=s}e.exports=function(e,t){try{return i(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return!1;throw e}}},9921:(e,t)=>{var o="function"==typeof Symbol&&Symbol.for,n=o?Symbol.for("react.element"):60103,r=o?Symbol.for("react.portal"):60106,i=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,l=o?Symbol.for("react.profiler"):60114,a=o?Symbol.for("react.provider"):60109,c=o?Symbol.for("react.context"):60110,h=o?Symbol.for("react.async_mode"):60111,d=o?Symbol.for("react.concurrent_mode"):60111,u=o?Symbol.for("react.forward_ref"):60112,p=o?Symbol.for("react.suspense"):60113,f=o?Symbol.for("react.suspense_list"):60120,m=o?Symbol.for("react.memo"):60115,g=o?Symbol.for("react.lazy"):60116,v=o?Symbol.for("react.block"):60121,y=o?Symbol.for("react.fundamental"):60117,w=o?Symbol.for("react.responder"):60118,S=o?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case h:case d:case i:case l:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case g:case m:case a:return e;default:return t}}case r:return t}}}function C(e){return b(e)===d}t.AsyncMode=h,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=a,t.Element=n,t.ForwardRef=u,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=r,t.Profiler=l,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||b(e)===h},t.isConcurrentMode=C,t.isContextConsumer=function(e){return b(e)===c},t.isContextProvider=function(e){return b(e)===a},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return b(e)===u},t.isFragment=function(e){return b(e)===i},t.isLazy=function(e){return b(e)===g},t.isMemo=function(e){return b(e)===m},t.isPortal=function(e){return b(e)===r},t.isProfiler=function(e){return b(e)===l},t.isStrictMode=function(e){return b(e)===s},t.isSuspense=function(e){return b(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===l||e===s||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===a||e.$$typeof===c||e.$$typeof===u||e.$$typeof===y||e.$$typeof===w||e.$$typeof===S||e.$$typeof===v)},t.typeOf=b},9864:(e,t,o)=>{e.exports=o(9921)},6871:(e,t,o)=>{function n(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var o=this.constructor.getDerivedStateFromProps(e,t);return null!=o?o:null}.bind(this))}function i(e,t){try{var o=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(o,n)}finally{this.props=o,this.state=n}}function s(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var o=null,s=null,l=null;if("function"==typeof t.componentWillMount?o="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(o="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?s="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?l="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==o||null!==s||null!==l){var a=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+a+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==o?"\n "+o:"")+(null!==s?"\n "+s:"")+(null!==l?"\n "+l:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=n,t.componentWillReceiveProps=r),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var h=t.componentDidUpdate;t.componentDidUpdate=function(e,t,o){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:o;h.call(this,e,t,n)}}return e}o.r(t),o.d(t,{polyfill:()=>s}),n.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},7281:(e,t,o)=>{t.__esModule=!0;var n=c(o(5697)),r=c(o(621)),i=c(o(6689)),s=c(o(6405)),l=c(o(3464)),a=c(o(290));function c(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){var o,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,c=Array(r),d=0;d<r;d++)c[d]=arguments[d];return o=n=h(this,e.call.apply(e,[this].concat(c))),n._mountOverlayTarget=function(){n._overlayTarget||(n._overlayTarget=document.createElement("div"),n._portalContainerNode=(0,l.default)(n.props.container,(0,a.default)(n).body),n._portalContainerNode.appendChild(n._overlayTarget))},n._unmountOverlayTarget=function(){n._overlayTarget&&(n._portalContainerNode.removeChild(n._overlayTarget),n._overlayTarget=null),n._portalContainerNode=null},n._renderOverlay=function(){var e=n.props.children?i.default.Children.only(n.props.children):null;if(null!==e){n._mountOverlayTarget();var t=!n._overlayInstance;n._overlayInstance=s.default.unstable_renderSubtreeIntoContainer(n,e,n._overlayTarget,(function(){t&&n.props.onRendered&&n.props.onRendered()}))}else n._unrenderOverlay(),n._unmountOverlayTarget()},n._unrenderOverlay=function(){n._overlayTarget&&(s.default.unmountComponentAtNode(n._overlayTarget),n._overlayInstance=null)},n.getMountNode=function(){return n._overlayTarget},h(n,o)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this._isMounted=!0,this._renderOverlay()},t.prototype.componentDidUpdate=function(){this._renderOverlay()},t.prototype.componentWillReceiveProps=function(e){this._overlayTarget&&e.container!==this.props.container&&(this._portalContainerNode.removeChild(this._overlayTarget),this._portalContainerNode=(0,l.default)(e.container,(0,a.default)(this).body),this._portalContainerNode.appendChild(this._overlayTarget))},t.prototype.componentWillUnmount=function(){this._isMounted=!1,this._unrenderOverlay(),this._unmountOverlayTarget()},t.prototype.render=function(){return null},t}(i.default.Component);d.displayName="Portal",d.propTypes={container:n.default.oneOfType([r.default,n.default.func]),onRendered:n.default.func},t.default=d,e.exports=t.default},2856:(e,t,o)=>{t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},r=h(o(5697)),i=h(o(8853)),s=h(o(6689)),l=h(o(5425)),a=h(o(7487)),c=h(o(2395));function h(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(o,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,o,n));return r.handleHidden=function(){var e;(r.setState({exited:!0}),r.props.onExited)&&(e=r.props).onExited.apply(e,arguments)},r.state={exited:!o.show},r.onHiddenListener=r.handleHidden.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){e.show?this.setState({exited:!1}):e.transition||this.setState({exited:!0})},t.prototype.render=function(){var e=this.props,t=e.container,o=e.containerPadding,n=e.target,r=e.placement,i=e.shouldUpdatePosition,h=e.rootClose,d=e.children,u=e.transition,p=function(e,t){var o={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}(e,["container","containerPadding","target","placement","shouldUpdatePosition","rootClose","children","transition"]);if(!(p.show||u&&!this.state.exited))return null;var f=d;if(f=s.default.createElement(a.default,{container:t,containerPadding:o,target:n,placement:r,shouldUpdatePosition:i},f),u){var m=p.onExit,g=p.onExiting,v=p.onEnter,y=p.onEntering,w=p.onEntered;f=s.default.createElement(u,{in:p.show,appear:!0,onExit:m,onExiting:g,onExited:this.onHiddenListener,onEnter:v,onEntering:y,onEntered:w},f)}return h&&(f=s.default.createElement(c.default,{onRootClose:p.onHide},f)),s.default.createElement(l.default,{container:t},f)},t}(s.default.Component);d.propTypes=n({},l.default.propTypes,a.default.propTypes,{show:r.default.bool,rootClose:r.default.bool,onHide:function(e){var t=r.default.func;e.rootClose&&(t=t.isRequired);for(var o=arguments.length,n=Array(o>1?o-1:0),i=1;i<o;i++)n[i-1]=arguments[i];return t.apply(void 0,[e].concat(n))},transition:i.default,onEnter:r.default.func,onEntering:r.default.func,onEntered:r.default.func,onExit:r.default.func,onExiting:r.default.func,onExited:r.default.func}),t.default=d,e.exports=t.default},5425:(e,t,o)=>{t.__esModule=!0;var n=h(o(5697)),r=h(o(621)),i=h(o(6689)),s=h(o(6405)),l=h(o(3464)),a=h(o(290)),c=h(o(7281));function h(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){var o,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];return o=n=d(this,e.call.apply(e,[this].concat(i))),n.setContainer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props;n._portalContainerNode=(0,l.default)(e.container,(0,a.default)(n).body)},n.getMountNode=function(){return n._portalContainerNode},d(n,o)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.setContainer(),this.forceUpdate(this.props.onRendered)},t.prototype.componentWillReceiveProps=function(e){e.container!==this.props.container&&this.setContainer(e)},t.prototype.componentWillUnmount=function(){this._portalContainerNode=null},t.prototype.render=function(){return this.props.children&&this._portalContainerNode?s.default.createPortal(this.props.children,this._portalContainerNode):null},t}(i.default.Component);u.displayName="Portal",u.propTypes={container:n.default.oneOfType([r.default,n.default.func]),onRendered:n.default.func},t.default=s.default.createPortal?u:c.default,e.exports=t.default},7487:(e,t,o)=>{t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},r=p(o(4184)),i=p(o(5697)),s=p(o(621)),l=o(6689),a=p(l),c=p(o(6405)),h=p(o(7603)),d=p(o(3464)),u=p(o(290));function p(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var o={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}var m=function(e){function t(o,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,o,n));return r.getTarget=function(){var e=r.props.target,t="function"==typeof e?e():e;return t&&c.default.findDOMNode(t)||null},r.maybeUpdatePosition=function(e){var t=r.getTarget();(r.props.shouldUpdatePosition||t!==r._lastTarget||e)&&r.updatePosition(t)},r.state={positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null},r._needsFlush=!1,r._lastTarget=null,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.updatePosition(this.getTarget())},t.prototype.componentWillReceiveProps=function(){this._needsFlush=!0},t.prototype.componentDidUpdate=function(e){this._needsFlush&&(this._needsFlush=!1,this.maybeUpdatePosition(this.props.placement!==e.placement))},t.prototype.render=function(){var e=this.props,t=e.children,o=e.className,i=f(e,["children","className"]),s=this.state,c=s.positionLeft,h=s.positionTop,d=f(s,["positionLeft","positionTop"]);delete i.target,delete i.container,delete i.containerPadding,delete i.shouldUpdatePosition;var u=a.default.Children.only(t);return(0,l.cloneElement)(u,n({},i,d,{positionLeft:c,positionTop:h,className:(0,r.default)(o,u.props.className),style:n({},u.props.style,{left:c,top:h})}))},t.prototype.updatePosition=function(e){if(this._lastTarget=e,e){var t=c.default.findDOMNode(this),o=(0,d.default)(this.props.container,(0,u.default)(this).body);this.setState((0,h.default)(this.props.placement,t,e,o,this.props.containerPadding))}else this.setState({positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null})},t}(a.default.Component);m.propTypes={target:i.default.oneOfType([s.default,i.default.func]),container:i.default.oneOfType([s.default,i.default.func]),containerPadding:i.default.number,placement:i.default.oneOf(["top","right","bottom","left"]),shouldUpdatePosition:i.default.bool},m.displayName="Position",m.defaultProps={containerPadding:0,placement:"right",shouldUpdatePosition:!1},t.default=m,e.exports=t.default},2395:(e,t,o)=>{t.__esModule=!0;var n=c(o(1629)),r=c(o(5697)),i=c(o(6689)),s=c(o(6405)),l=c(o(6616)),a=c(o(290));function c(e){return e&&e.__esModule?e:{default:e}}var h=27;var d=function(e){function t(o,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,o,r));return i.addEventListeners=function(){var e=i.props.event,t=(0,a.default)(i);i.documentMouseCaptureListener=(0,l.default)(t,e,i.handleMouseCapture,!0),i.documentMouseListener=(0,l.default)(t,e,i.handleMouse),i.documentKeyupListener=(0,l.default)(t,"keyup",i.handleKeyUp)},i.removeEventListeners=function(){i.documentMouseCaptureListener&&i.documentMouseCaptureListener.remove(),i.documentMouseListener&&i.documentMouseListener.remove(),i.documentKeyupListener&&i.documentKeyupListener.remove()},i.handleMouseCapture=function(e){var t;i.preventMouseRootClose=!!((t=e).metaKey||t.altKey||t.ctrlKey||t.shiftKey)||!function(e){return 0===e.button}(e)||(0,n.default)(s.default.findDOMNode(i),e.target)},i.handleMouse=function(e){!i.preventMouseRootClose&&i.props.onRootClose&&i.props.onRootClose(e)},i.handleKeyUp=function(e){e.keyCode===h&&i.props.onRootClose&&i.props.onRootClose(e)},i.preventMouseRootClose=!1,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.props.disabled||this.addEventListeners()},t.prototype.componentDidUpdate=function(e){!this.props.disabled&&e.disabled?this.addEventListeners():this.props.disabled&&!e.disabled&&this.removeEventListeners()},t.prototype.componentWillUnmount=function(){this.props.disabled||this.removeEventListeners()},t.prototype.render=function(){return this.props.children},t}(i.default.Component);d.displayName="RootCloseWrapper",d.propTypes={onRootClose:r.default.func,children:r.default.element,disabled:r.default.bool,event:r.default.oneOf(["click","mousedown"])},d.defaultProps={event:"click"},t.default=d,e.exports=t.default},6616:(e,t,o)=>{t.__esModule=!0,t.default=function(e,t,o,i){return(0,n.default)(e,t,o,i),{remove:function(){(0,r.default)(e,t,o,i)}}};var n=i(o(1416)),r=i(o(3249));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},7603:(e,t,o)=>{t.__esModule=!0,t.default=function(e,t,o,i,s){var l="BODY"===i.tagName?(0,n.default)(o):(0,r.default)(o,i),c=(0,n.default)(t),h=c.height,d=c.width,u=void 0,p=void 0,f=void 0,m=void 0;if("left"===e||"right"===e){p=l.top+(l.height-h)/2,u="left"===e?l.left-d:l.left+l.width;var g=function(e,t,o,n){var r=a(o),i=r.scroll,s=r.height,l=e-n-i,c=e+n-i+t;return l<0?-l:c>s?s-c:0}(p,h,i,s);p+=g,m=50*(1-2*g/h)+"%",f=void 0}else{if("top"!==e&&"bottom"!==e)throw new Error('calcOverlayPosition(): No such placement of "'+e+'" found.');u=l.left+(l.width-d)/2,p="top"===e?l.top-h:l.top+l.height;var v=function(e,t,o,n){var r=a(o),i=r.width,s=e-n,l=e+n+t;if(s<0)return-s;if(l>i)return i-l;return 0}(u,d,i,s);u+=v,f=50*(1-2*v/d)+"%",m=void 0}return{positionLeft:u,positionTop:p,arrowOffsetLeft:f,arrowOffsetTop:m}};var n=l(o(2565)),r=l(o(7265)),i=l(o(504)),s=l(o(290));function l(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=void 0,o=void 0,r=void 0;if("BODY"===e.tagName)t=window.innerWidth,o=window.innerHeight,r=(0,i.default)((0,s.default)(e).documentElement)||(0,i.default)(e);else{var l=(0,n.default)(e);t=l.width,o=l.height,r=(0,i.default)(e)}return{width:t,height:o,scroll:r}}e.exports=t.default},3464:(e,t,o)=>{t.__esModule=!0,t.default=function(e,t){return e="function"==typeof e?e():e,i.default.findDOMNode(e)||t};var n,r=o(6405),i=(n=r)&&n.__esModule?n:{default:n};e.exports=t.default},290:(e,t,o)=>{t.__esModule=!0,t.default=function(e){return(0,r.default)(n.default.findDOMNode(e))};var n=i(o(6405)),r=i(o(9981));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},3524:(e,t,o)=>{var n,r=o(6689),i=(n=r)&&"object"==typeof n&&"default"in n?n.default:n;function s(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var l=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,o){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==o&&"function"!=typeof o)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(n){if("function"!=typeof n)throw new Error("Expected WrappedComponent to be a React component.");var a,c=[];function h(){a=e(c.map((function(e){return e.props}))),d.canUseDOM?t(a):o&&(a=o(a))}var d=function(e){var t,o;function r(){return e.apply(this,arguments)||this}o=e,(t=r).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o,r.peek=function(){return a},r.rewind=function(){if(r.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=a;return a=void 0,c=[],e};var s=r.prototype;return s.UNSAFE_componentWillMount=function(){c.push(this),h()},s.componentDidUpdate=function(){h()},s.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),h()},s.render=function(){return i.createElement(n,this.props)},r}(r.PureComponent);return s(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),s(d,"canUseDOM",l),d}}},644:(e,t,o)=>{t.ZP=t.cn=t.d0=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};n.get||n.set?Object.defineProperty(t,o,n):t[o]=e[o]}return t.default=e,t}(o(5697)),r=l(o(6689)),i=l(o(6405)),s=o(6871);o(4726);function l(e){return e&&e.__esModule?e:{default:e}}var a="unmounted";var c="exited";var h="entering";t.d0=h;var d="entered";t.cn=d;var u="exiting";var p=function(e){var t,o;function n(t,o){var n;n=e.call(this,t,o)||this;var r,i=o.transitionGroup,s=i&&!i.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?s?(r=c,n.appearStatus=h):r=d:r=t.unmountOnExit||t.mountOnEnter?a:c,n.state={status:r},n.nextCallback=null,n}o=e,(t=n).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o;var s=n.prototype;return s.getChildContext=function(){return{transitionGroup:null}},n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===a?{status:c}:null},s.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},s.componentDidUpdate=function(e){var t=null;if(e!==this.props){var o=this.state.status;this.props.in?o!==h&&o!==d&&(t=h):o!==h&&o!==d||(t=u)}this.updateStatus(!1,t)},s.componentWillUnmount=function(){this.cancelNextCallback()},s.getTimeouts=function(){var e,t,o,n=this.props.timeout;return e=t=o=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,o=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:o}},s.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var o=i.default.findDOMNode(this);t===h?this.performEnter(o,e):this.performExit(o)}else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:a})},s.performEnter=function(e,t){var o=this,n=this.props.enter,r=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,i=this.getTimeouts(),s=r?i.appear:i.enter;t||n?(this.props.onEnter(e,r),this.safeSetState({status:h},(function(){o.props.onEntering(e,r),o.onTransitionEnd(e,s,(function(){o.safeSetState({status:d},(function(){o.props.onEntered(e,r)}))}))}))):this.safeSetState({status:d},(function(){o.props.onEntered(e)}))},s.performExit=function(e){var t=this,o=this.props.exit,n=this.getTimeouts();o?(this.props.onExit(e),this.safeSetState({status:u},(function(){t.props.onExiting(e),t.onTransitionEnd(e,n.exit,(function(){t.safeSetState({status:c},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:c},(function(){t.props.onExited(e)}))},s.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},s.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},s.setNextCallback=function(e){var t=this,o=!0;return this.nextCallback=function(n){o&&(o=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},s.onTransitionEnd=function(e,t,o){this.setNextCallback(o);var n=null==t&&!this.props.addEndListener;e&&!n?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},s.render=function(){var e=this.state.status;if(e===a)return null;var t=this.props,o=t.children,n=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(t,["children"]);if(delete n.in,delete n.mountOnEnter,delete n.unmountOnExit,delete n.appear,delete n.enter,delete n.exit,delete n.timeout,delete n.addEndListener,delete n.onEnter,delete n.onEntering,delete n.onEntered,delete n.onExit,delete n.onExiting,delete n.onExited,"function"==typeof o)return o(e,n);var i=r.default.Children.only(o);return r.default.cloneElement(i,n)},n}(r.default.Component);function f(){}p.contextTypes={transitionGroup:n.object},p.childContextTypes={transitionGroup:function(){}},p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:f,onEntering:f,onEntered:f,onExit:f,onExiting:f,onExited:f},p.UNMOUNTED=0,p.EXITED=1,p.ENTERING=2,p.ENTERED=3,p.EXITING=4;var m=(0,s.polyfill)(p);t.ZP=m},4726:(e,t,o)=>{t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var n;(n=o(5697))&&n.__esModule;t.timeoutsShape=null;t.classNamesShape=null},6115:e=>{var t;t="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){setTimeout(e,0)},e.exports=t},670:e=>{e.exports=function(){}},6689:e=>{e.exports=require("react")},6405:e=>{e.exports=require("react-dom")},8149:(e,t,o)=>{e.exports=o(3285)},8428:(e,t,o)=>{e.exports=o(6981)},5940:(e,t,o)=>{e.exports=o(5627)},3562:(e,t,o)=>{e.exports=o(7965)},6243:(e,t,o)=>{e.exports=o(8613)},2863:(e,t,o)=>{e.exports=o(433)},434:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4836:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{o.r(n),o.d(n,{commitNodeType:()=>Te,default:()=>Xl,mergeNodeType:()=>Oe,stashNodeType:()=>Ie});var e={};o.r(e),o.d(e,{types:()=>Js});var t,r=o(6689),i=o.n(r),s=o(5697),l=o.n(s),a=o(3524),c=o.n(a),h=o(9590),d=o.n(h),u=o(7418),p=o.n(u),f="bodyAttributes",m="htmlAttributes",g="titleAttributes",v={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},y=(Object.keys(v).map((function(e){return v[e]})),"charset"),w="cssText",S="href",b="http-equiv",C="innerHTML",x="itemprop",R="name",_="property",T="rel",E="src",O="target",M={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},I="defaultTitle",z="defer",k="encodeSpecialCharacters",G="onChangeClientState",P="titleTemplate",A=Object.keys(M).reduce((function(e,t){return e[M[t]]=t,e}),{}),H=[v.NOSCRIPT,v.SCRIPT,v.STYLE],L="data-react-helmet",D="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},N=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},W=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),B=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},F=function(e,t){var o={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o},j=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},U=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},Z=function(e){var t=K(e,v.TITLE),o=K(e,P);if(o&&t)return o.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var n=K(e,I);return t||n||void 0},V=function(e){return K(e,G)||function(){}},$=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return B({},e,t)}),{})},Y=function(e,t){return t.filter((function(e){return void 0!==e[v.BASE]})).map((function(e){return e[v.BASE]})).reverse().reduce((function(t,o){if(!t.length)for(var n=Object.keys(o),r=0;r<n.length;r++){var i=n[r].toLowerCase();if(-1!==e.indexOf(i)&&o[i])return t.concat(o)}return t}),[])},q=function(e,t,o){var n={};return o.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&te("Helmet: "+e+' should be of type "Array". Instead found type "'+D(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,o){var r={};o.filter((function(e){for(var o=void 0,i=Object.keys(e),s=0;s<i.length;s++){var l=i[s],a=l.toLowerCase();-1===t.indexOf(a)||o===T&&"canonical"===e[o].toLowerCase()||a===T&&"stylesheet"===e[a].toLowerCase()||(o=a),-1===t.indexOf(l)||l!==C&&l!==w&&l!==x||(o=l)}if(!o||!e[o])return!1;var c=e[o].toLowerCase();return n[o]||(n[o]={}),r[o]||(r[o]={}),!n[o][c]&&(r[o][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(r),s=0;s<i.length;s++){var l=i[s],a=p()({},n[l],r[l]);n[l]=a}return e}),[]).reverse()},K=function(e,t){for(var o=e.length-1;o>=0;o--){var n=e[o];if(n.hasOwnProperty(t))return n[t]}return null},X=(t=Date.now(),function(e){var o=Date.now();o-t>16?(t=o,e(o)):setTimeout((function(){X(e)}),0)}),Q=function(e){return clearTimeout(e)},J="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||X:o.g.requestAnimationFrame||X,ee="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Q:o.g.cancelAnimationFrame||Q,te=function(e){return console&&"function"==typeof console.warn&&void 0},oe=null,ne=function(e,t){var o=e.baseTag,n=e.bodyAttributes,r=e.htmlAttributes,i=e.linkTags,s=e.metaTags,l=e.noscriptTags,a=e.onChangeClientState,c=e.scriptTags,h=e.styleTags,d=e.title,u=e.titleAttributes;se(v.BODY,n),se(v.HTML,r),ie(d,u);var p={baseTag:le(v.BASE,o),linkTags:le(v.LINK,i),metaTags:le(v.META,s),noscriptTags:le(v.NOSCRIPT,l),scriptTags:le(v.SCRIPT,c),styleTags:le(v.STYLE,h)},f={},m={};Object.keys(p).forEach((function(e){var t=p[e],o=t.newTags,n=t.oldTags;o.length&&(f[e]=o),n.length&&(m[e]=p[e].oldTags)})),t&&t(),a(e,f,m)},re=function(e){return Array.isArray(e)?e.join(""):e},ie=function(e,t){void 0!==e&&document.title!==e&&(document.title=re(e)),se(v.TITLE,t)},se=function(e,t){var o=document.getElementsByTagName(e)[0];if(o){for(var n=o.getAttribute(L),r=n?n.split(","):[],i=[].concat(r),s=Object.keys(t),l=0;l<s.length;l++){var a=s[l],c=t[a]||"";o.getAttribute(a)!==c&&o.setAttribute(a,c),-1===r.indexOf(a)&&r.push(a);var h=i.indexOf(a);-1!==h&&i.splice(h,1)}for(var d=i.length-1;d>=0;d--)o.removeAttribute(i[d]);r.length===i.length?o.removeAttribute(L):o.getAttribute(L)!==s.join(",")&&o.setAttribute(L,s.join(","))}},le=function(e,t){var o=document.head||document.querySelector(v.HEAD),n=o.querySelectorAll(e+"["+L+"]"),r=Array.prototype.slice.call(n),i=[],s=void 0;return t&&t.length&&t.forEach((function(t){var o=document.createElement(e);for(var n in t)if(t.hasOwnProperty(n))if(n===C)o.innerHTML=t.innerHTML;else if(n===w)o.styleSheet?o.styleSheet.cssText=t.cssText:o.appendChild(document.createTextNode(t.cssText));else{var l=void 0===t[n]?"":t[n];o.setAttribute(n,l)}o.setAttribute(L,"true"),r.some((function(e,t){return s=t,o.isEqualNode(e)}))?r.splice(s,1):i.push(o)})),r.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return o.appendChild(e)})),{oldTags:r,newTags:i}},ae=function(e){return Object.keys(e).reduce((function(t,o){var n=void 0!==e[o]?o+'="'+e[o]+'"':""+o;return t?t+" "+n:n}),"")},ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,o){return t[M[o]||o]=e[o],t}),t)},he=function(e,t,o){switch(e){case v.TITLE:return{toComponent:function(){return e=t.title,o=t.titleAttributes,(n={key:e})[L]=!0,r=ce(o,n),[i().createElement(v.TITLE,r,e)];var e,o,n,r},toString:function(){return function(e,t,o,n){var r=ae(o),i=re(t);return r?"<"+e+" "+L+'="true" '+r+">"+U(i,n)+"</"+e+">":"<"+e+" "+L+'="true">'+U(i,n)+"</"+e+">"}(e,t.title,t.titleAttributes,o)}};case f:case m:return{toComponent:function(){return ce(t)},toString:function(){return ae(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,o){var n,r=((n={key:o})[L]=!0,n);return Object.keys(t).forEach((function(e){var o=M[e]||e;if(o===C||o===w){var n=t.innerHTML||t.cssText;r.dangerouslySetInnerHTML={__html:n}}else r[o]=t[e]})),i().createElement(e,r)}))}(e,t)},toString:function(){return function(e,t,o){return t.reduce((function(t,n){var r=Object.keys(n).filter((function(e){return!(e===C||e===w)})).reduce((function(e,t){var r=void 0===n[t]?t:t+'="'+U(n[t],o)+'"';return e?e+" "+r:r}),""),i=n.innerHTML||n.cssText||"",s=-1===H.indexOf(e);return t+"<"+e+" "+L+'="true" '+r+(s?"/>":">"+i+"</"+e+">")}),"")}(e,t,o)}}}},de=function(e){var t=e.baseTag,o=e.bodyAttributes,n=e.encode,r=e.htmlAttributes,i=e.linkTags,s=e.metaTags,l=e.noscriptTags,a=e.scriptTags,c=e.styleTags,h=e.title,d=void 0===h?"":h,u=e.titleAttributes;return{base:he(v.BASE,t,n),bodyAttributes:he(f,o,n),htmlAttributes:he(m,r,n),link:he(v.LINK,i,n),meta:he(v.META,s,n),noscript:he(v.NOSCRIPT,l,n),script:he(v.SCRIPT,a,n),style:he(v.STYLE,c,n),title:he(v.TITLE,{title:d,titleAttributes:u},n)}},ue=function(e){var t,o;return o=t=function(t){function o(){return N(this,o),j(this,t.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,t),o.prototype.shouldComponentUpdate=function(e){return!d()(this.props,e)},o.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case v.SCRIPT:case v.NOSCRIPT:return{innerHTML:t};case v.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},o.prototype.flattenArrayTypeChildren=function(e){var t,o=e.child,n=e.arrayTypeChildren,r=e.newChildProps,i=e.nestedChildren;return B({},n,((t={})[o.type]=[].concat(n[o.type]||[],[B({},r,this.mapNestedChildrenToProps(o,i))]),t))},o.prototype.mapObjectTypeChildren=function(e){var t,o,n=e.child,r=e.newProps,i=e.newChildProps,s=e.nestedChildren;switch(n.type){case v.TITLE:return B({},r,((t={})[n.type]=s,t.titleAttributes=B({},i),t));case v.BODY:return B({},r,{bodyAttributes:B({},i)});case v.HTML:return B({},r,{htmlAttributes:B({},i)})}return B({},r,((o={})[n.type]=B({},i),o))},o.prototype.mapArrayTypeChildrenToProps=function(e,t){var o=B({},t);return Object.keys(e).forEach((function(t){var n;o=B({},o,((n={})[t]=e[t],n))})),o},o.prototype.warnOnInvalidChildren=function(e,t){return!0},o.prototype.mapChildrenToProps=function(e,t){var o=this,n={};return i().Children.forEach(e,(function(e){if(e&&e.props){var r=e.props,i=r.children,s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,o){return t[A[o]||o]=e[o],t}),t)}(F(r,["children"]));switch(o.warnOnInvalidChildren(e,i),e.type){case v.LINK:case v.META:case v.NOSCRIPT:case v.SCRIPT:case v.STYLE:n=o.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:s,nestedChildren:i});break;default:t=o.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(n,t)},o.prototype.render=function(){var t=this.props,o=t.children,n=F(t,["children"]),r=B({},n);return o&&(r=this.mapChildrenToProps(o,r)),i().createElement(e,r)},W(o,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),o}(i().Component),t.propTypes={base:l().object,bodyAttributes:l().object,children:l().oneOfType([l().arrayOf(l().node),l().node]),defaultTitle:l().string,defer:l().bool,encodeSpecialCharacters:l().bool,htmlAttributes:l().object,link:l().arrayOf(l().object),meta:l().arrayOf(l().object),noscript:l().arrayOf(l().object),onChangeClientState:l().func,script:l().arrayOf(l().object),style:l().arrayOf(l().object),title:l().string,titleAttributes:l().object,titleTemplate:l().string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=de({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},o}(c()((function(e){return{baseTag:Y([S,O],e),bodyAttributes:$(f,e),defer:K(e,z),encode:K(e,k),htmlAttributes:$(m,e),linkTags:q(v.LINK,[T,S],e),metaTags:q(v.META,[R,y,b,_,x],e),noscriptTags:q(v.NOSCRIPT,[C],e),onChangeClientState:V(e),scriptTags:q(v.SCRIPT,[E,C],e),styleTags:q(v.STYLE,[w],e),title:Z(e),titleAttributes:$(g,e)}}),(function(e){oe&&ee(oe),e.defer?oe=J((function(){ne(e,(function(){oe=null}))})):(ne(e),oe=null)}),de)((function(){return null})));ue.renderStatic=ue.rewind;const pe=ue;var fe=o(4184),me=o.n(fe);const ge=/(?<literal>\[.*?\])|(?<year>YYYY|YY)|(?<month>M{1,4})|(?<day>Do|DD?)|(?<weekday>d{2,4})|(?<hour>HH?|hh?)|(?<minute>mm?)|(?<second>ss?)|(?<fractionalSecond>SSS)|(?<dayPeriod>A|a)|(?<timeZoneName>ZZ?)/g,ve=/(?<dateStyle>full|long|medium|short)(?:\+(?<timeStyle>full|long|medium|short))?/,ye=new Map;let we;const Se=["th","st","nd","rd"];function be(e){const t=e%100;return`${e}${Se[(t-20)%10]??Se[t]??Se[0]}`}function Ce(e,t,o,n=!0){const r=`${o??""}:${t=t??void 0}`;let i=ye.get(r);if(null==i){const e=function(e){if(null==e)return{localeMatcher:"best fit",dateStyle:"full",timeStyle:"short"};const t=ve.exec(e);if(null!=t?.groups){const{dateStyle:e,timeStyle:o}=t.groups;return{localeMatcher:"best fit",dateStyle:e||"full",timeStyle:o||void 0}}const o={localeMatcher:"best fit"};for(const{groups:t}of e.matchAll(ge))if(null!=t)for(const e in t){const n=t[e];if(null!=n)switch(e){case"year":o.year=4===n.length?"numeric":"2-digit";break;case"month":switch(n.length){case 4:o.month="long";break;case 3:o.month="short";break;case 2:o.month="2-digit";break;case 1:o.month="numeric"}break;case"day":o.day="DD"===n?"2-digit":"numeric";break;case"weekday":switch(n.length){case 4:o.weekday="long";break;case 3:o.weekday="short";break;case 2:o.weekday="narrow"}break;case"hour":o.hour=2===n.length?"2-digit":"numeric",o.hour12="hh"===n||"h"===n;break;case"minute":o.minute=2===n.length?"2-digit":"numeric";break;case"second":o.second=2===n.length?"2-digit":"numeric";break;case"fractionalSecond":o.fractionalSecondDigits=3;break;case"dayPeriod":o.dayPeriod="narrow",o.hour12=!0,o.hourCycle="h12";break;case"timeZoneName":o.timeZoneName=2===n.length?"long":"short"}}return o}(t);let s;s=null==o?we:"system"===o?void 0:[o],i=new Intl.DateTimeFormat(s,e),n&&ye.set(r,i)}if(null==t||ve.test(t))return i.format(e);function s(e){const t=`${o??""}:time:${e}`;let r=ye.get(t);if(null==r){const i={localeMatcher:"best fit",timeStyle:e};let s;s=null==o?we:"system"===o?void 0:[o],r=new Intl.DateTimeFormat(s,i),n&&ye.set(t,r)}return r}const l=i.formatToParts(e);return t.replace(ge,((t,o,n,r,i,a,c,h,d,u,p,f,m,g,v)=>{if(null!=o)return o.substring(1,o.length-1);for(const t in v){const o=v[t];if(null==o)continue;const n=l.find((e=>e.type===t));if("Do"===o&&"day"===n?.type)return be(Number(n.value));if("a"===o&&"dayPeriod"===n?.type){return` ${(s("short").formatToParts(e).find((e=>"dayPeriod"===e.type))??n)?.value??""}`}return n?.value??""}return""}))}const xe={"--graph-row-height":"22px","--font-default":"'Open Sans', Arial, sans-serif !important","--font-monospace":"'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace","--font-size":"62.5%","--fs-1":"1rem","--fs-2":"1.2rem","--fs-3":"1.4rem","--fs-4":"1.6rem","--fs-5":"1.8rem","--fs-6":"2rem","--fs-7":"2.4rem","--button-xs-padding-y":".15rem","--button-xs-padding-x":".25rem","--button-small-padding-y":".25rem","--button-small-padding-x":".5rem","--button-medium-padding-y":".5rem","--button-medium-padding-x":".75rem","--button-large-padding-y":"1rem","--button-large-padding-x":"1.25rem","--button-radius":".2rem","--input-radius":"3px","--about-modal-bg-color":"#e2e4e9","--about-modal-width":"650px","--label__purple-color-f25":"rgba(197,23,182,0.25)","--registration-modal-width":"400px","--file-history-header-height":"35px","--shop-modal-width":"95vw","--shop-modal-height":"95vh","--scrollable-scrollbar-thickness":"14px","--mini-commit-col-left-width":"30px","--mini-commit-col-middle-padding":"6px","--mini-commit-col-right-width":"56px","--fuzzy-finder-repo-color":"rgba(46,206,157,0.1)","--fuzzy-finder-checkout-color":"rgba(6,105,247,0.1)","--fuzzy-finder-history-color":"rgba(197,23,182,0.1)","--handle-width":"7px","--shadow-color":"rgba(0,0,0,0.4)","--graph-color-5-f10":"rgba(205,1,1,0.1)","--graph-color-6-f10":"rgba(242,93,46,0.1)","--graph-color-7-f10":"rgba(242,202,51,0.1)","--graph-color-8-f10":"rgba(123,217,56,0.1)","--graph-color-9-f10":"rgba(46,206,157,0.1)","--graph-color-0-f10":"rgba(21,160,191,0.1)","--graph-color-1-f10":"rgba(6,105,247,0.1)","--graph-color-2-f10":"rgba(142,0,194,0.1)","--graph-color-3-f10":"rgba(197,23,182,0.1)","--graph-color-4-f10":"rgba(217,1,113,0.1)","--graph-color-5-f50":"rgba(205,1,1,0.5)","--graph-color-6-f50":"rgba(242,93,46,0.5)","--graph-color-7-f50":"rgba(242,202,51,0.5)","--graph-color-8-f50":"rgba(123,217,56,0.5)","--graph-color-9-f50":"rgba(46,206,157,0.5)","--graph-color-0-f50":"rgba(21,160,191,0.5)","--graph-color-1-f50":"rgba(6,105,247,0.5)","--graph-color-2-f50":"rgba(142,0,194,0.5)","--graph-color-3-f50":"rgba(197,23,182,0.5)","--graph-color-4-f50":"rgba(217,1,113,0.5)","--axo-orange":"#e75225","--axo-ink":"#141422","--axo-cream":"#f9efc1","--axo-yellow":"#d8c13a","--info-bar-height":"26px","--left-panel-header-height":"60px","--toolbar-height":"48px","--toolbar-border":"1px","--toolbar-item-height":"calc(var(--toolbar-height, 0px) - var(--toolbar-border, 1px))","--expand-detail-panel-transition":"flex-grow 250ms ease-in-out","--conflict-left-color":"rgba(21,160,191,0.25)","--conflict-right-color":"rgba(242,202,51,0.25)","--conflict-output-color":"rgba(197,23,182,0.25)","--graph-color-5-bg50":"#751012","--graph-color-6-bg50":"#873e29","--graph-color-7-bg50":"#87742b","--graph-color-8-bg50":"#4c7c2e","--graph-color-9-bg50":"#257660","--graph-color-0-bg50":"#195f71","--graph-color-1-bg50":"#11448d","--graph-color-2-bg50":"#550f73","--graph-color-3-bg50":"#711b6d","--graph-color-4-bg50":"#7b104a","--graph-color-5-bg45":"#6c1114","--graph-color-6-bg45":"#7c3a28","--graph-color-7-bg45":"#7c6b2a","--graph-color-8-bg45":"#47722c","--graph-color-9-bg45":"#246d5a","--graph-color-0-bg45":"#195969","--graph-color-1-bg45":"#124082","--graph-color-2-bg45":"#4f116b","--graph-color-3-bg45":"#681b65","--graph-color-4-bg45":"#711146","--graph-color-5-bg25":"#48171b","--graph-color-6-bg25":"#522e26","--graph-color-7-bg25":"#524927","--graph-color-8-bg25":"#344d28","--graph-color-9-bg25":"#214a42","--graph-color-0-bg25":"#1a3f4a","--graph-color-1-bg25":"#173158","--graph-color-2-bg25":"#39174b","--graph-color-3-bg25":"#461c48","--graph-color-4-bg25":"#4b1737","--graph-color-5-bg15":"#371a1e","--graph-color-6-bg15":"#3c2725","--graph-color-7-bg15":"#3c3825","--graph-color-8-bg15":"#2a3a26","--graph-color-9-bg15":"#1f3835","--graph-color-0-bg15":"#1b323a","--graph-color-1-bg15":"#192943","--graph-color-2-bg15":"#2d1a3b","--graph-color-3-bg15":"#351d39","--graph-color-4-bg15":"#381a2f","--semi-bold":"500","--bold":"600","--num-columns-supported":"10","--column-0-color":"#15a0bf","--column-1-color":"#0669f7","--column-2-color":"#8e00c2","--column-3-color":"#c517b6","--column-4-color":"#d90171","--column-5-color":"#cd0101","--column-6-color":"#f25d2e","--column-7-color":"#f2ca33","--column-8-color":"#7bd938","--column-9-color":"#2ece9d","--red":"#D9413D","--orange":"#DE9B43","--yellow":"#ECB91C","--green":"#5CB85C","--blue":"#4D88FF","--ltblue":"#5bc0de","--app__bg0":"#1C1E23","--toolbar__bg0":"rgb(42,45,52)","--toolbar__bg1":"rgb(51,55,63)","--toolbar__bg2":"rgb(65,70,80)","--panel__bg0":"rgb(39,42,49)","--panel__bg1":"rgb(50,54,63)","--panel__bg2":"rgb(61,66,77)","--input__bg":"rgba(0,0,0,0.2)","--input-bg-warn-color":"rgba(222,155,67,0.6)","--panel-border":"rgb(19,20,24)","--section-border":"rgba(255,255,255,0.08)","--subtle-border":"rgba(255,255,255,0.04)","--modal-overlay-color":"rgba(0,0,0,.5)","--graph-color-0":"#15a0bf","--graph-color-1":"#0669f7","--graph-color-2":"#8e00c2","--graph-color-3":"#c517b6","--graph-color-4":"#d90171","--graph-color-5":"#cd0101","--graph-color-6":"#f25d2e","--graph-color-7":"#f2ca33","--graph-color-8":"#7bd938","--graph-color-9":"#2ece9d","--text-selected":"#FFFFFF","--text-selected-row":"#FFFFFF","--text-dimmed":"rgba(255,255,255,0.2)","--text-dimmed-selected":"rgba(255,255,255,0.5)","--text-normal":"rgba(255,255,255,0.75)","--text-secondary":"rgba(255,255,255,0.6)","--text-disabled":"rgba(255,255,255,0.4)","--text-accent":"#93A9EC","--text-inverse":"#222222","--text-bright":"#FFFFFF","--btn-text":"rgba(255,255,255,0.75)","--btn-text-hover":"#FFFFFF","--default-border":"rgba(255,255,255,0.75)","--default-bg":"transparent","--default-hover":"transparent","--default-border-hover":"#FFFFFF","--primary-border":"#4D88FF","--primary-bg":"rgba(77,136,255,0.2)","--primary-hover":"rgba(77,136,255,0.6)","--success-border":"#5CB85C","--success-bg":"rgba(92,184,92,0.2)","--success-hover":"rgba(92,184,92,0.6)","--warning-border":"#DE9B43","--warning-bg":"rgba(222,155,67,0.2)","--warning-hover":"rgba(222,155,67,0.6)","--danger-border":"#D9413D","--danger-bg":"rgba(217,65,61,0.2)","--danger-hover":"rgba(217,65,61,0.6)","--hover-row":"rgba(77,136,255,0.1)","--hover-row-border":"none","--danger-row":"rgba(217,65,61,0.6)","--selected-row":"rgba(77,136,255,0.2)","--selected-row-border":"none","--warning-row":"rgba(222,155,67,0.6)","--droppable":"rgba(236,185,28,0.3)","--drop-target":"rgba(92,184,92,0.5)","--input--disabled":"rgba(0,0,0,0.1)","--link-color":"#40c5ec","--link-color-bright":"#40c5ec","--form-control-focus":"#4D88FF","--scroll-thumb-border":"#1C1E23","--scroll-thumb-bg":"rgb(65,70,80)","--scroll-thumb-bg-light":"rgb(111,119,136)","--wip-status":"rgba(77,136,255,0.4)","--card__bg":"rgb(61,66,77)","--card-shadow":"rgba(0,0,0,.2)","--statusbar__warning-bg":"#87742b","--label__yellow-color":"#f2ca33","--label__light-blue-color":"#15a0bf","--label__purple-color":"#c517b6","--filtering":"rgba(77,136,255,0.5)","--soloing":"rgba(222,155,67,0.5)","--checked-out":"rgba(92,184,92,0.3)","--soloed":"rgba(222,155,67,0.3)","--filter-match":"rgba(77,136,255,0.5)","--clone__progress":"rgba(77,136,255,0.7)","--toolbar__prompt":"rgba(77,136,255,0.2)","--verified":"rgba(92,184,92,0.3)","--unverified":"rgba(255,255,255,0.1)","--drop-sort-border":"#5CB85C","--terminal__repo-name-color":"turquoise","--terminal__repo-branch-color":"violet","--terminal__repo-tag-color":"lightcoral","--terminal__repo-upstream-color":"yellowgreen","--terminal__background":"#000000","--terminal__cursor":"#FFFFFF","--terminal__cursorAccent":"#000000","--terminal__foreground":"#FFFFFF","--terminal__selection":"#304676","--terminal__black":"#000000","--terminal__red":"#F24A4A","--terminal__green":"#0DBC79","--terminal__yellow":"#E5E510","--terminal__blue":"#4A98EE","--terminal__magenta":"#E063E0","--terminal__cyan":"#11A8CD","--terminal__white":"#E5E5E5","--terminal__brightBlack":"#686868","--terminal__brightRed":"#FF5656","--terminal__brightGreen":"#23D18B","--terminal__brightYellow":"#F5F543","--terminal__brightBlue":"#51A4FF","--terminal__brightMagenta":"#D670D6","--terminal__brightCyan":"#29B8DB","--terminal__brightWhite":"#E5E5E5","--code-bg":"#1C1E23","--code-foreground":"rgba(255,255,255,0.75)","--code-blame-color-0":"#15a0bf","--code-blame-color-1":"#0669f7","--code-blame-color-2":"#8e00c2","--code-blame-color-3":"#c517b6","--code-blame-color-4":"#d90171","--code-blame-color-5":"#cd0101","--code-blame-color-6":"#f25d2e","--code-blame-color-7":"#f2ca33","--code-blame-color-8":"#7bd938","--code-blame-color-9":"#2ece9d","--added-line":"rgba(92,184,92,0.2)","--deleted-line":"rgba(217,65,61,0.2)","--modified-line":"rgba(0,0,0,0.25)","--conflict-info-color":"#15a0bf","--conflict-left-border-color":"#15a0bf","--conflict-right-border-color":"#f2ca33","--conflict-output-border-color":"#c517b6"};function Re(e){return`--column-${e}-color`}function _e(e={}){const t={};return Object.keys(e).forEach((o=>{o.includes("--graph-color-")||o.match(/^--column-\d+-color$/)?CSS.supports("color",e[o])&&(t[o]=e[o]):t[o]=e[o]})),function(e={}){return{...xe,...e}}(t)}const Te="commit-node",Ee="merge-conflict-node",Oe="merge-node",Me="unsupported-rebase-warning-node",Ie="stash-node",ze="work-dir-changes";var ke=(e=>(e.RowEntry="rowEntry",e.Tooltip="tooltip",e))(ke||{}),Ge=o(6243);function Pe(e,t){if(null==e)return{};var o,n,r={},i=Ge(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}var Ae=o(5940),He=o(2863);function Le(e,t){return Le=He?He.bind():function(e,t){return e.__proto__=t,e},Le(e,t)}function De(e,t){e.prototype=Ae(t.prototype),e.prototype.constructor=e,Le(e,t)}var Ne=o(8428);function We(){return We=Ne?Ne.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},We.apply(this,arguments)}var Be,Fe=o(2856),je=o.n(Fe),Ue=o(8853),Ze=o.n(Ue),Ve=o(644),$e={in:l().bool,mountOnEnter:l().bool,unmountOnExit:l().bool,appear:l().bool,timeout:l().number,onEnter:l().func,onEntering:l().func,onEntered:l().func,onExit:l().func,onExiting:l().func,onExited:l().func},Ye=((Be={})[Ve.d0]="in",Be[Ve.cn]="in",Be),qe=function(e){function t(){return e.apply(this,arguments)||this}return De(t,e),t.prototype.render=function(){var e=this.props,t=e.className,o=e.children,n=Pe(e,["className","children"]);return i().createElement(Ve.ZP,n,(function(e,n){return i().cloneElement(o,We({},n,{className:me()("fade",t,o.props.className,Ye[e])}))}))},t}(i().Component);qe.propTypes=$e,qe.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1};const Ke=qe;var Xe=We({},je().propTypes,{show:l().bool,rootClose:l().bool,onHide:l().func,animation:l().oneOfType([l().bool,Ze()]),onEnter:l().func,onEntering:l().func,onEntered:l().func,onExit:l().func,onExiting:l().func,onExited:l().func,placement:l().oneOf(["top","right","bottom","left"])}),Qe={animation:Ke,rootClose:!1,show:!1,placement:"right"},Je=function(e){function t(){return e.apply(this,arguments)||this}return De(t,e),t.prototype.render=function(){var e,t=this.props,o=t.animation,n=t.children,s=Pe(t,["animation","children"]),l=!0===o?Ke:o||null;return e=l?n:(0,r.cloneElement)(n,{className:me()(n.props.className,"in")}),i().createElement(je(),We({},s,{transition:l}),e)},t}(i().Component);Je.propTypes=Xe,Je.defaultProps=Qe;const et=Je;var tt=o(5638),ot=o.n(tt),nt=o(3562),rt=o.n(nt),it=o(1143),st=o.n(it),lt={large:"lg",medium:"md",small:"sm",xsmall:"xs",lg:"lg",md:"md",sm:"sm",xs:"xs"};function at(e){return function(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return"function"==typeof o[o.length-1]?e.apply(void 0,o):function(t){return e.apply(void 0,o.concat([t]))}}}function ct(e,t){var o=(e.bsClass||"").trim();return null==o&&st()(!1),o+(t?"-"+t:"")}var ht=at((function(e,t){var o=t.propTypes||(t.propTypes={}),n=t.defaultProps||(t.defaultProps={});return o.bsClass=l().string,n.bsClass=e,t}));at((function(e,t,o){"string"!=typeof t&&(o=t,t=void 0);var n=o.STYLES||[],r=o.propTypes||{};e.forEach((function(e){-1===n.indexOf(e)&&n.push(e)}));var i=l().oneOf(n);(o.STYLES=n,i._values=n,o.propTypes=We({},r,{bsStyle:i}),void 0!==t)&&((o.defaultProps||(o.defaultProps={})).bsStyle=t);return o})),at((function(e,t,o){"string"!=typeof t&&(o=t,t=void 0);var n=o.SIZES||[],r=o.propTypes||{};e.forEach((function(e){-1===n.indexOf(e)&&n.push(e)}));var i=[];n.forEach((function(e){var t=lt[e];t&&t!==e&&i.push(t),i.push(e)}));var s=l().oneOf(i);return s._values=i,o.SIZES=n,o.propTypes=We({},r,{bsSize:s}),void 0!==t&&(o.defaultProps||(o.defaultProps={}),o.defaultProps.bsSize=t),o}));function dt(e){var t,o=((t={})[ct(e)]=!0,t);e.bsSize&&(o[ct(e,lt[e.bsSize]||e.bsSize)]=!0);return e.bsStyle&&(o[ct(e,e.bsStyle)]=!0),o}function ut(e){return{bsClass:e.bsClass,bsSize:e.bsSize,bsStyle:e.bsStyle,bsRole:e.bsRole}}function pt(e){return"bsClass"===e||"bsSize"===e||"bsStyle"===e||"bsRole"===e}function ft(e){var t={};return rt()(e).forEach((function(e){var o=e[0],n=e[1];pt(o)||(t[o]=n)})),[ut(e),t]}var mt={id:ot()(l().oneOfType([l().string,l().number])),placement:l().oneOf(["top","right","bottom","left"]),positionTop:l().oneOfType([l().number,l().string]),positionLeft:l().oneOfType([l().number,l().string]),arrowOffsetTop:l().oneOfType([l().number,l().string]),arrowOffsetLeft:l().oneOfType([l().number,l().string]),title:l().node},gt=function(e){function t(){return e.apply(this,arguments)||this}return De(t,e),t.prototype.render=function(){var e,t=this.props,o=t.placement,n=t.positionTop,r=t.positionLeft,s=t.arrowOffsetTop,l=t.arrowOffsetLeft,a=t.title,c=t.className,h=t.style,d=t.children,u=ft(Pe(t,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","title","className","style","children"])),p=u[0],f=u[1],m=We({},dt(p),((e={})[o]=!0,e)),g=We({display:"block",top:n,left:r},h),v={top:s,left:l};return i().createElement("div",We({},f,{role:"tooltip",className:me()(c,m),style:g}),i().createElement("div",{className:"arrow",style:v}),a&&i().createElement("h3",{className:ct(p,"title")},a),i().createElement("div",{className:ct(p,"content")},d))},t}(i().Component);gt.propTypes=mt,gt.defaultProps={placement:"right"};const vt=ht("popover",gt);var yt,wt=(yt=function(e,t){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},yt(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}yt(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),St=function(){return St=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},St.apply(this,arguments)},bt={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},Ct=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return wt(t,e),t.prototype.render=function(){return r.createElement("div",{className:this.props.className||"",style:St(St({position:"absolute",userSelect:"none"},bt[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(r.PureComponent),xt=o(3316),Rt=o.n(xt),_t=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Tt=function(){return Tt=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Tt.apply(this,arguments)},Et={width:"auto",height:"auto"},Ot=Rt()((function(e,t,o){return Math.max(Math.min(e,o),t)})),Mt=Rt()((function(e,t){return Math.round(e/t)*t})),It=Rt()((function(e,t){return new RegExp(e,"i").test(t)})),zt=function(e){return Boolean(e.touches&&e.touches.length)},kt=Rt()((function(e,t,o){void 0===o&&(o=0);var n=t.reduce((function(o,n,r){return Math.abs(n-e)<Math.abs(t[o]-e)?r:o}),0),r=Math.abs(t[n]-e);return 0===o||r<o?t[n]:e})),Gt=Rt()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),Pt=Rt()((function(e){return"auto"===(e=e.toString())||Gt(e,"px")||Gt(e,"%")||Gt(e,"vh")||Gt(e,"vw")||Gt(e,"vmax")||Gt(e,"vmin")?e:e+"px"})),At=function(e,t,o,n){if(e&&"string"==typeof e){if(Gt(e,"px"))return Number(e.replace("px",""));if(Gt(e,"%"))return t*(Number(e.replace("%",""))/100);if(Gt(e,"vw"))return o*(Number(e.replace("vw",""))/100);if(Gt(e,"vh"))return n*(Number(e.replace("vh",""))/100)}return e},Ht=Rt()((function(e,t,o,n,r,i,s){return n=At(n,e.width,t,o),r=At(r,e.height,t,o),i=At(i,e.width,t,o),s=At(s,e.height,t,o),{maxWidth:void 0===n?void 0:Number(n),maxHeight:void 0===r?void 0:Number(r),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===s?void 0:Number(s)}})),Lt=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Dt="__resizable_base__",Nt=function(e){function t(t){var o=e.call(this,t)||this;return o.ratio=1,o.resizable=null,o.parentLeft=0,o.parentTop=0,o.resizableLeft=0,o.resizableRight=0,o.resizableTop=0,o.resizableBottom=0,o.targetLeft=0,o.targetTop=0,o.appendBase=function(){if(!o.resizable||!o.window)return null;var e=o.parentNode;if(!e)return null;var t=o.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0",t.classList?t.classList.add(Dt):t.className+=Dt,e.appendChild(t),t},o.removeBase=function(e){var t=o.parentNode;t&&t.removeChild(e)},o.ref=function(e){e&&(o.resizable=e)},o.state={isResizing:!1,width:void 0===(o.propsSize&&o.propsSize.width)?"auto":o.propsSize&&o.propsSize.width,height:void 0===(o.propsSize&&o.propsSize.height)?"auto":o.propsSize&&o.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},o.onResizeStart=o.onResizeStart.bind(o),o.onMouseMove=o.onMouseMove.bind(o),o.onMouseUp=o.onMouseUp.bind(o),o}return _t(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||Et},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,n=this.resizable.offsetHeight,r=this.resizable.style.position;"relative"!==r&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:o,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:n,this.resizable.style.position=r}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,o=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&Gt(e.propsSize[t].toString(),"%")){if(Gt(e.state[t].toString(),"%"))return e.state[t].toString();var o=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/o[t]*100+"%"}return Pt(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?Pt(t.width):o("width"),height:t&&void 0!==t.height&&!this.state.isResizing?Pt(t.height):o("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,o=this.parentNode.style.flexWrap;"wrap"!==o&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%";var n={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=o),this.removeBase(e),n},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var o=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==o&&"auto"!==o?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var o,n,r=this.props.boundsByDirection,i=this.state.direction,s=r&&It("left",i),l=r&&It("top",i);if("parent"===this.props.bounds){var a=this.parentNode;a&&(o=s?this.resizableRight-this.parentLeft:a.offsetWidth+(this.parentLeft-this.resizableLeft),n=l?this.resizableBottom-this.parentTop:a.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(o=s?this.resizableRight:this.window.innerWidth-this.resizableLeft,n=l?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(o=s?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),n=l?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return o&&Number.isFinite(o)&&(e=e&&e<o?e:o),n&&Number.isFinite(n)&&(t=t&&t<n?t:n),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var o=this.props.scale||1,n=this.props.resizeRatio||1,r=this.state,i=r.direction,s=r.original,l=this.props,a=l.lockAspectRatio,c=l.lockAspectRatioExtraHeight,h=l.lockAspectRatioExtraWidth,d=s.width,u=s.height,p=c||0,f=h||0;return It("right",i)&&(d=s.width+(e-s.x)*n/o,a&&(u=(d-f)/this.ratio+p)),It("left",i)&&(d=s.width-(e-s.x)*n/o,a&&(u=(d-f)/this.ratio+p)),It("bottom",i)&&(u=s.height+(t-s.y)*n/o,a&&(d=(u-p)*this.ratio+f)),It("top",i)&&(u=s.height-(t-s.y)*n/o,a&&(d=(u-p)*this.ratio+f)),{newWidth:d,newHeight:u}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,o,n){var r=this.props,i=r.lockAspectRatio,s=r.lockAspectRatioExtraHeight,l=r.lockAspectRatioExtraWidth,a=void 0===n.width?10:n.width,c=void 0===o.width||o.width<0?e:o.width,h=void 0===n.height?10:n.height,d=void 0===o.height||o.height<0?t:o.height,u=s||0,p=l||0;if(i){var f=(h-u)*this.ratio+p,m=(d-u)*this.ratio+p,g=(a-p)/this.ratio+u,v=(c-p)/this.ratio+u,y=Math.max(a,f),w=Math.min(c,m),S=Math.max(h,g),b=Math.min(d,v);e=Ot(e,y,w),t=Ot(t,S,b)}else e=Ot(e,a,c),t=Ot(t,h,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var o=this.props.bounds.getBoundingClientRect();this.targetLeft=o.left,this.targetTop=o.top}if(this.resizable){var n=this.resizable.getBoundingClientRect(),r=n.left,i=n.top,s=n.right,l=n.bottom;this.resizableLeft=r,this.resizableRight=s,this.resizableTop=i,this.resizableBottom=l}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var o,n=0,r=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(n=e.nativeEvent.clientX,r=e.nativeEvent.clientY):e.nativeEvent&&zt(e.nativeEvent)&&(n=e.nativeEvent.touches[0].clientX,r=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var s=this.parentNode;if(s){var l=this.window.getComputedStyle(s).flexDirection;this.flexDir=l.startsWith("row")?"row":"column",o=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var a={original:{x:n,y:r,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Tt(Tt({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:o};this.setState(a)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&zt(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var t=this.props,o=t.maxWidth,n=t.maxHeight,r=t.minWidth,i=t.minHeight,s=zt(e)?e.touches[0].clientX:e.clientX,l=zt(e)?e.touches[0].clientY:e.clientY,a=this.state,c=a.direction,h=a.original,d=a.width,u=a.height,p=this.getParentSize(),f=Ht(p,this.window.innerWidth,this.window.innerHeight,o,n,r,i);o=f.maxWidth,n=f.maxHeight,r=f.minWidth,i=f.minHeight;var m=this.calculateNewSizeFromDirection(s,l),g=m.newHeight,v=m.newWidth,y=this.calculateNewMaxFromBoundary(o,n),w=this.calculateNewSizeFromAspectRatio(v,g,{width:y.maxWidth,height:y.maxHeight},{width:r,height:i});if(v=w.newWidth,g=w.newHeight,this.props.grid){var S=Mt(v,this.props.grid[0]),b=Mt(g,this.props.grid[1]),C=this.props.snapGap||0;v=0===C||Math.abs(S-v)<=C?S:v,g=0===C||Math.abs(b-g)<=C?b:g}this.props.snap&&this.props.snap.x&&(v=kt(v,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(g=kt(g,this.props.snap.y,this.props.snapGap));var x={width:v-h.width,height:g-h.height};if(d&&"string"==typeof d)if(Gt(d,"%"))v=v/p.width*100+"%";else if(Gt(d,"vw")){v=v/this.window.innerWidth*100+"vw"}else if(Gt(d,"vh")){v=v/this.window.innerHeight*100+"vh"}if(u&&"string"==typeof u)if(Gt(u,"%"))g=g/p.height*100+"%";else if(Gt(u,"vw")){g=g/this.window.innerWidth*100+"vw"}else if(Gt(u,"vh")){g=g/this.window.innerHeight*100+"vh"}var R={width:this.createSizeForCssProperty(v,"width"),height:this.createSizeForCssProperty(g,"height")};"row"===this.flexDir?R.flexBasis=R.width:"column"===this.flexDir&&(R.flexBasis=R.height),this.setState(R),this.props.onResize&&this.props.onResize(e,c,this.resizable,x)}},t.prototype.onMouseUp=function(e){var t=this.state,o=t.isResizing,n=t.direction,r=t.original;if(o&&this.resizable){var i={width:this.size.width-r.width,height:this.size.height-r.height};this.props.onResizeStop&&this.props.onResizeStop(e,n,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Tt(Tt({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,o=t.enable,n=t.handleStyles,i=t.handleClasses,s=t.handleWrapperStyle,l=t.handleWrapperClass,a=t.handleComponent;if(!o)return null;var c=Object.keys(o).map((function(t){return!1!==o[t]?r.createElement(Ct,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:n&&n[t],className:i&&i[t]},a&&a[t]?a[t]:null):null}));return r.createElement("div",{className:l,style:s},c)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,o){return-1!==Lt.indexOf(o)||(t[o]=e.props[o]),t}),{}),o=Tt(Tt(Tt({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var n=this.props.as||"div";return r.createElement(n,Tt({ref:this.ref,style:o,className:this.props.className},t),this.state.isResizing&&r.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(r.PureComponent);function Wt(e,t,o){return(e=e<=o?e:o)>=t?e:t}const Bt="bottom",Ft="left",jt="right",Ut="top",Zt={top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},Vt={min:0,max:1/0},$t=({height:e,heightConstraints:t,width:o,widthConstraints:n})=>({height:Wt(e,t.min,t.max),width:Wt(o,n.min,n.max)}),Yt=({enable:e,height:t,heightConstraints:o,resizeEdge:n,width:r=0,widthConstraints:i})=>({...$t({height:t,widthConstraints:i,heightConstraints:o,width:r}),enable:void 0===e||e,horizontal:n===Ft||n===jt,initialHeight:t,initialWidth:r,resizing:!1,isMouseWheeling:!1,vertical:n===Ut||n===Bt});class qt extends i().PureComponent{static defaultProps={className:"",enable:!0,heightConstraints:Vt,resizeContentClassName:"",resizeHandleClassName:"",style:{},wrapperStyle:{},translate:()=>"",wrapChildrenInDivContainer:!0,widthConstraints:Vt};onWheelTimeOut;isMouseWheeling=!1;constructor(e){super(e),this.state=Yt(e)}componentWillReceiveProps(e){const{onResizeFromPropChange:t}=this.props,{height:o,resizing:n,width:r}=this.state,{onResizeFromPropChange:i}=e;if(n)return;const s=Yt(e);this.setState(s);const{height:l,width:a}=s,c=i||t;!c||l===o&&a===r||c({height:l,width:a,originalHeight:o,originalWidth:r})}_onResize=(e,t,o,{height:n,width:r})=>{const{onResize:i}=this.props,{height:s,horizontal:l,vertical:a,width:c}=this.state,{height:h,width:d}=(({deltaWidth:e,deltaHeight:t},{heightConstraints:o,widthConstraints:n},{initialHeight:r,initialWidth:i})=>$t({height:r+t,heightConstraints:o,width:i+e,widthConstraints:n}))({deltaWidth:r,deltaHeight:n},this.props,this.state),u=l&&d!==c,p=a&&h!==s;(u||p)&&(this.setState({height:p?h:s,width:u?d:c,isMouseWheeling:!1}),i&&i({height:p?h:void 0,width:u?d:void 0}))};_onResizeStart=e=>{e.preventDefault(),e.stopPropagation();const{onResizeStart:t}=this.props,{height:o,horizontal:n,vertical:r,width:i}=this.state;this.setState({resizing:!0}),t&&t({height:r?o:void 0,width:n?i:void 0})};_onResizeEnd=()=>{const{onResizeEnd:e}=this.props,{height:t,horizontal:o,vertical:n,width:r,initialWidth:i,initialHeight:s}=this.state;this.setState({initialWidth:r,initialHeight:t,resizing:!1}),i===r&&s===t||e&&e({width:o?r:void 0,height:n?t:void 0})};_onWheel=()=>{this.isMouseWheeling||(this.isMouseWheeling=!0,this.setState({isMouseWheeling:!0})),clearTimeout(this.onWheelTimeOut),this.onWheelTimeOut=setTimeout((()=>{this.isMouseWheeling=!1,this.setState({isMouseWheeling:!1})}),10)};render(){const{children:e,className:t,handleStyles:o,resizeContentClassName:n,resizeEdge:r,resizeHandleClassName:s,style:l,translate:a,heightConstraints:c,wrapChildrenInDivContainer:h,widthConstraints:d}=this.props,{enable:u,height:p,horizontal:f,resizing:m,vertical:g,width:v,isMouseWheeling:y}=this.state,{display:w,...S}=l,{min:b,max:C}=d,{min:x,max:R}=c,_={...this.props.wrapperStyle};f&&(_.width=v,_.minWidth=v),g&&(_.height=p,_.minHeight=p);const T=me()("resizable",t,{resizing:m}),E=me()("contents",n,`resize-edge-${r}`,{horizontal:f,vertical:g}),O=me()(r,s,"resizable-handle",{horizontal:f,vertical:g}),M=i().createElement("span",{title:a("ResizePanel")});return i().createElement("div",{"data-testid":"resizable",onWheel:this._onWheel,style:{..._,display:w}},i().createElement(Nt,{className:T,"data-testid":"resizable-core",enable:{...Zt,[r]:!y&&u},handleClasses:{[r]:O},handleComponent:{[r]:M},handleStyles:o,maxHeight:g?R:void 0,maxWidth:f?C:void 0,minHeight:g?x:void 0,minWidth:f?b:void 0,onResize:this._onResize,onResizeStart:this._onResizeStart,onResizeStop:this._onResizeEnd,size:{height:g?p:"100%",width:f?v:"100%"},style:S},h?i().createElement("div",{className:E,style:{userSelect:"none"}},e):e))}}const Kt="#199489",Xt=28,Qt=22,Jt=50*Xt,eo=2,to=28,oo=3,no=3,ro=Xt,io=22,so=22,lo=3,ao=Qt/2,co=so-2*eo,ho=28+to,uo=5,po=18,fo=10,mo=15,go=1,vo=10,yo=12,wo=6,So=3,bo=12,Co="timelineMessage",xo="ref",Ro="graph",_o="message",To="author",Eo="datetime",Oo="sha",Mo="changes";var Io=(e=>(e.LocalBranches="localBranches",e.RemoteBranches="remoteBranches",e.Selection="selection",e.Head="head",e.Upstream="upstream",e.Highlights="highlights",e.Stashes="stashes",e.Tags="tags",e))(Io||{});const zo={block:{type:"block",baseHeight:1*Xt,minHeight:5,maxHeight:20},fullLine:{type:"fullLine",baseHeight:.5*Xt,minHeight:2,maxHeight:4},thinLine:{type:"thinLine",baseHeight:.25*Xt,minHeight:1,maxHeight:2}},ko={stashes:{type:"stashes",colorCssKey:"--color-graph-scroll-marker-stashes",lanes:[0],shape:"block"},tags:{type:"tags",colorCssKey:"--color-graph-scroll-marker-tags",lanes:[2],shape:"block"},remoteBranches:{type:"remoteBranches",colorCssKey:"--color-graph-scroll-marker-remote-branches",lanes:[2],shape:"block"},localBranches:{type:"localBranches",colorCssKey:"--color-graph-scroll-marker-local-branches",lanes:[0],shape:"block"},highlights:{type:"highlights",colorCssKey:"--color-graph-scroll-marker-highlights",lanes:[1],shape:"block"},upstream:{type:"upstream",colorCssKey:"--color-graph-scroll-marker-upstream",lanes:[1,2],shape:"fullLine"},head:{type:"head",colorCssKey:"--color-graph-scroll-marker-head",lanes:[0,1],shape:"fullLine"},selection:{type:"selection",colorCssKey:"--color-graph-scroll-marker-selection",lanes:[0,1,2],shape:"fullLine"}},Go={[To]:{headerLabelUntranslated:"GraphHeader-CommitAuthor",isCustomizable:!0,listId:"commit-author-zone",minimumWidth:50},[Eo]:{headerLabelUntranslated:"GraphHeader-CommitDateTime",isCustomizable:!0,listId:"commit-date-time-zone",minimumWidth:50},[_o]:{headerLabelUntranslated:"GraphHeader-CommitMessage",isCustomizable:!1,listId:"commit-message-zone",minimumWidth:50},[Oo]:{headerLabelUntranslated:"GraphHeader-CommitSha",isCustomizable:!0,listId:"commit-sha-zone",minimumWidth:50},[Ro]:{headerLabelUntranslated:"GraphHeader-CommitGraph",isCustomizable:!1,listId:"commit-zone",minimumWidth:ho},[xo]:{headerLabelUntranslated:"GraphHeader-BranchTag",isCustomizable:!1,listId:"ref-zone",minimumWidth:100},[Mo]:{headerLabelUntranslated:"GraphHeader-Changes",isCustomizable:!0,listId:"changes-zone",minimumWidth:50}},Po={hour:23,day:6,week:4,month:11,year:6},Ao={added:0,deleted:0,modified:0},Ho="pullRequest",Lo="upstream",Do=[Ho,Lo],No={HEAD:"head",REMOTE:"remote",TAG:"tag"},Wo=e=>{let t;return(...o)=>{t&&cancelAnimationFrame(t),t=requestAnimationFrame((()=>{e(...o)}))}};function Bo(e){return e?"string"==typeof e?e:JSON.stringify(e):null}function Fo(e,t){if(0===e.length)return{min:0,max:0};if(1===e.length){const{additions:t,deletions:o}=e[0];return{min:0,max:t+o}}const o=t?[...e].sort(((e,t)=>e.additions+e.deletions-(t.additions+t.deletions))):e,n=o[o.length-1],r=n.additions+n.deletions,i=o[0],s=i.additions+i.deletions,l=Math.floor(o.length/2),a=o[l],c=a.additions+a.deletions,h=o.slice(0,l),d=o.slice(l+1);if(0===h.length||0===d.length)return{min:s,max:r};const u=Math.floor(h.length/2),p=Math.floor(d.length/2),f=h[u],m=d[p],g=f.additions+f.deletions,v=m.additions+m.deletions-g;return{min:Math.max(s,c-1.5*v),max:Math.min(r,c+1.5*v)}}function jo(e,t,o,n){const{id:r}=e;return!r||null===t||null===t?.[r]||n&&null===t?.[r]?.[n]?null:t&&r in t?n&&!t[r]?.[n]?(o(r,[n]),null):n?t?.[r]?.[n]:t?.[r]:(o(r,Do),null)}function Uo(e,t){if(t.id)return t.id;const o=t.owner||"";return e===No.REMOTE?`${e}/${o}/${t.name}`:`${e}/${t.name}`}function Zo(e){return Uo(e.refType,e)}function Vo(e,t=0){for(let o=e.length-1;o>=t;o-=1){const t=e[o];if(t.currentWidth>t.minimumWidth)return t}}function $o(e,t=0){if(e.length){for(let o=t;o<e.length;o+=1){const t=e[o],n=t.maximumWidth?Math.min(t.maximumWidth,t.preferredWidth||1/0):t.preferredWidth;if(n&&t.currentWidth<n)return t}return e[e.length-1]}}function Yo(e,t){let o=0;for(let n=0;n<e.length;n+=1){const r=e[n];t&&r.type===t||(o+=r.currentWidth)}return o}const qo=(e,t)=>e===t[t.length-1].type;function Ko(e,t,o){return Wt(o,e.minimumWidth||0,e.maximumWidth&&!qo(e.type,t)?e.maximumWidth||0:Number.MAX_VALUE)}function Xo(e,t){return t.find((({type:t})=>t===e))}function Qo(e,t){return t.findIndex((({type:t})=>t===e))}function Jo(e,t,o){let n=0,r=0;const i=Qo(e,t);if(i>-1){const e=function(e,t=0){let o=0;for(let n=t;n<e.length;n+=1)o+=e[n].minimumWidth;return o}(t,i+1),s=function(e,t=e.length-1){let o=0;for(let n=0;n<=t;n+=1)o+=e[n].currentWidth;return o}(t,i-1),l=t[i].maximumWidth||Number.MAX_VALUE,a=Math.min(l,o-e-s);n=t[i].minimumWidth,r=a}return{min:n,max:r}}function en(e){return(e?.heads||[]).some((e=>e.isCurrentHead))}function tn(e){return!!e&&Object.values(e).some((e=>e>0))}function on(e){return 1===Object.keys(e).length}function nn(e,t){return!0===e[t]&&on(e)}function rn(e,t){const{heads:o,tags:n,remotes:r}=e.hasRefs?e:e.childRefs,i=o?o.map((e=>({...e,refType:No.HEAD}))):[],s=n?n.map((e=>({...e,refType:No.TAG}))):[];return[...i,...r?r.map((e=>({...e,fullName:t&&e.owner?`${e.owner}/${e.name}`:e.name,refType:No.REMOTE}))):[],...s]}function sn(e){const t=[];let o;for(let n=0;n<e.length;n+=1){let r=!1;o=e[n].fullName||e[n].name;for(let i=0;i<t.length;i+=1)if(t[i].length>0&&t[i][0].name===o){e[n].refType===No.HEAD?t[i].unshift(e[n]):t[i].push(e[n]),r=!0;break}r||t.push([e[n]])}return t}class ln{props;constructor(e){this.props=e}getActiveGraphZone(e){const t=Xo(e,this.props.graphZones);return!t||t.isHidden?void 0:t}getGraphRefGroupForRow(e){const t=this.getRow(e);return t?rn(t,this.props.showRemoteNamesOnRefs):[]}getGraphRefGroupsByNameForRow(e){const t=this.getGraphRefGroupForRow(e);return t?sn(t):[]}getRow(e){if(!(e<0||e>this.props.processedRows.length-1))return this.props.processedRows[e]}getZoneWidth(e){return function(e,t){return Xo(e,t)?.currentWidth||Go[e].minimumWidth}(e,this.props.graphZones)}isDateTimeZoneActive(){return!!this.getActiveGraphZone(Eo)}isFirstRow(e){return 0===e}isHighlighted(e){if(this.props.processedRows[e]&&this.props.highlightedShas){const t=this.props.processedRows[e]?.sha;return this.props.highlightedShas[t]||!1}return!1}isHovering(e){return!(!this.props.isContainerWindowFocused||!this.props.processedRows[e])&&this.props.currentlyHoveredCommitSha===this.props.processedRows[e]?.sha}isLastColumn(e){return qo(e,this.props.graphZones)}getSelectedRefGroupByName(){if(on(this.props.isSelectedBySha)){const e=Object.keys(this.props.isSelectedBySha),t=this.props.processedGraphRowBySha[e[0]];if(t){return sn(rn(t,this.props.showRemoteNamesOnRefs))}}return[]}isMissingHoveredRefGroup(e){if(!this.props.isContainerWindowFocused||this.props.highlightedShas)return!1;const t=this.getRow(e);if(!t)return!1;let o=[];if(this.props.dimRowsOfSelectedCommit){const e=this.getSelectedRefGroupByName();if(!e.length)return!1;o=e[0]}else{const{hoveredRefGroup:e}=this.props;if(!e||!e.length)return!1;o=e}const{name:n,refType:r}=o[0],i=r===No.TAG,s=t.tags.length>0&&!t.heads.length&&!t.remotes.length,{heads:l,tags:a,remotes:c}=!t.hasRefs||s&&!i?t.childRefs:t;if(!l.length&&!c.length&&!a.length)return!0;return!l.some((e=>e.name===n&&o.some((e=>e.refType===No.HEAD))))&&!c.some((e=>e.name===n&&o.some((t=>t.refType===No.REMOTE&&t.owner===e.owner))))&&!a.some((e=>e.name===n&&o.some((e=>e.refType===No.TAG))))}isSelected(e){const t=this.getRow(e)?.sha;return!!t&&!0===this.props.isSelectedBySha[t]}isSingleSelected(e){const t=this.getRow(e)?.sha;return!!t&&nn(this.props.isSelectedBySha,t)}hasTimeline(e){return!!this.props.processedRows[e]?.timeLineEntry&&!this.isDateTimeZoneActive()&&!this.isFirstRow(e)}rowContainsCurrentHeadRef(e){return en(e)}}function an(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var cn=o(8149),hn=o.n(cn),dn=o(1629),un=o.n(dn),pn=o(6405),fn=o.n(pn);o(670);const mn=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.filter((function(e){return null!=e})).reduce((function(e,t){if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(){for(var o=arguments.length,n=new Array(o),r=0;r<o;r++)n[r]=arguments[r];e.apply(this,n),t.apply(this,n)}}),null)};function gn(e,t){return hn()(t)?t.indexOf(e)>=0:e===t}var vn=l().oneOf(["click","hover","focus"]),yn=We({},et.propTypes,{trigger:l().oneOfType([vn,l().arrayOf(vn)]),delay:l().number,delayShow:l().number,delayHide:l().number,defaultOverlayShown:l().bool,overlay:l().node.isRequired,onBlur:l().func,onClick:l().func,onFocus:l().func,onMouseOut:l().func,onMouseOver:l().func,target:l().oneOf([null]),onHide:l().oneOf([null]),show:l().oneOf([null])}),wn=function(e){function t(t,o){var n;return(n=e.call(this,t,o)||this).handleToggle=n.handleToggle.bind(an(an(n))),n.handleDelayedShow=n.handleDelayedShow.bind(an(an(n))),n.handleDelayedHide=n.handleDelayedHide.bind(an(an(n))),n.handleHide=n.handleHide.bind(an(an(n))),n.handleMouseOver=function(e){return n.handleMouseOverOut(n.handleDelayedShow,e,"fromElement")},n.handleMouseOut=function(e){return n.handleMouseOverOut(n.handleDelayedHide,e,"toElement")},n._mountNode=null,n.state={show:t.defaultOverlayShown},n}De(t,e);var o=t.prototype;return o.componentDidMount=function(){this._mountNode=document.createElement("div"),this.renderOverlay()},o.componentDidUpdate=function(){this.renderOverlay()},o.componentWillUnmount=function(){fn().unmountComponentAtNode(this._mountNode),this._mountNode=null,clearTimeout(this._hoverShowDelay),clearTimeout(this._hoverHideDelay)},o.handleDelayedHide=function(){var e=this;if(null!=this._hoverShowDelay)return clearTimeout(this._hoverShowDelay),void(this._hoverShowDelay=null);if(this.state.show&&null==this._hoverHideDelay){var t=null!=this.props.delayHide?this.props.delayHide:this.props.delay;t?this._hoverHideDelay=setTimeout((function(){e._hoverHideDelay=null,e.hide()}),t):this.hide()}},o.handleDelayedShow=function(){var e=this;if(null!=this._hoverHideDelay)return clearTimeout(this._hoverHideDelay),void(this._hoverHideDelay=null);if(!this.state.show&&null==this._hoverShowDelay){var t=null!=this.props.delayShow?this.props.delayShow:this.props.delay;t?this._hoverShowDelay=setTimeout((function(){e._hoverShowDelay=null,e.show()}),t):this.show()}},o.handleHide=function(){this.hide()},o.handleMouseOverOut=function(e,t,o){var n=t.currentTarget,r=t.relatedTarget||t.nativeEvent[o];r&&r===n||un()(n,r)||e(t)},o.handleToggle=function(){this.state.show?this.hide():this.show()},o.hide=function(){this.setState({show:!1})},o.makeOverlay=function(e,t){return i().createElement(et,We({},t,{show:this.state.show,onHide:this.handleHide,target:this}),e)},o.show=function(){this.setState({show:!0})},o.renderOverlay=function(){fn().unstable_renderSubtreeIntoContainer(this,this._overlay,this._mountNode)},o.render=function(){var e=this.props,t=e.trigger,o=e.overlay,n=e.children,s=e.onBlur,l=e.onClick,a=e.onFocus,c=e.onMouseOut,h=e.onMouseOver,d=Pe(e,["trigger","overlay","children","onBlur","onClick","onFocus","onMouseOut","onMouseOver"]);delete d.delay,delete d.delayShow,delete d.delayHide,delete d.defaultOverlayShown;var u=i().Children.only(n),p=u.props,f={};return this.state.show&&(f["aria-describedby"]=o.props.id),f.onClick=mn(p.onClick,l),gn("click",t)&&(f.onClick=mn(f.onClick,this.handleToggle)),gn("hover",t)&&(f.onMouseOver=mn(p.onMouseOver,h,this.handleMouseOver),f.onMouseOut=mn(p.onMouseOut,c,this.handleMouseOut)),gn("focus",t)&&(f.onFocus=mn(p.onFocus,a,this.handleDelayedShow),f.onBlur=mn(p.onBlur,s,this.handleDelayedHide)),this._overlay=this.makeOverlay(o,d),(0,r.cloneElement)(u,f)},t}(i().Component);wn.propTypes=yn,wn.defaultProps={defaultOverlayShown:!1,trigger:["hover","focus"]};const Sn=wn;var bn={id:ot()(l().oneOfType([l().string,l().number])),placement:l().oneOf(["top","right","bottom","left"]),positionTop:l().oneOfType([l().number,l().string]),positionLeft:l().oneOfType([l().number,l().string]),arrowOffsetTop:l().oneOfType([l().number,l().string]),arrowOffsetLeft:l().oneOfType([l().number,l().string])},Cn=function(e){function t(){return e.apply(this,arguments)||this}return De(t,e),t.prototype.render=function(){var e,t=this.props,o=t.placement,n=t.positionTop,r=t.positionLeft,s=t.arrowOffsetTop,l=t.arrowOffsetLeft,a=t.className,c=t.style,h=t.children,d=ft(Pe(t,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","className","style","children"])),u=d[0],p=d[1],f=We({},dt(u),((e={})[o]=!0,e)),m=We({top:n,left:r},c),g={top:s,left:l};return i().createElement("div",We({},p,{role:"tooltip",className:me()(a,f),style:m}),i().createElement("div",{className:ct(u,"arrow"),style:g}),i().createElement("div",{className:ct(u,"inner")},h))},t}(i().Component);Cn.propTypes=bn,Cn.defaultProps={placement:"right"};const xn=ht("tooltip",Cn);var Rn=function({classes:e=[],context:t,divStyle:o,height:n,size:r,url:s,width:l}){const a={...o,background:`url(${s}) 0% 0% / ${r}px no-repeat`,height:n||r,width:l||r},c=["avatar","content-box",...e].join(" ").trim();return i().createElement("div",{className:c,"data-test-class":"avatar","data-vscode-context":Bo(t),style:a})};function _n(e){switch(e){case"github":return"GitHub";case"githubEnterprise":return"GitHub Enterprise";case"gitlab":return"GitLab";case"gitlabSelfHosted":return"GitLab Self-Hosted";case"azureDevops":return"Azure DevOps";case"bitbucket":return"Bitbucket";case"bitbucketServer":return"Bitbucket Server";default:return e}}const Tn=(e,t,o)=>e?((e,t)=>i().createElement("span",{className:"ref-avatar mr1"},i().createElement(Rn,{context:t,size:14,url:e})))(e,o):t;function En({icon:e,tooltipClassName:t="",tooltipId:o,tooltipText:n}){return n&&o?i().createElement(Sn,{overlay:i().createElement(xn,{className:me()("bs-tooltip",t),id:o},n),placement:"top",trigger:["hover","focus"]},e):i().createElement(i().Fragment,null," ",e," ")}function On({hostingServiceType:e,icon:t,id:o,title:n}){return i().createElement(En,{icon:t,tooltipClassName:"wide pull-left",tooltipId:`pr-tooltip-${e}-${o}`,tooltipText:n&&""!==n.trim()?`#${o}: ${n}\nDouble-click to open pull request on ${_n(e)}`:""})}function Mn({icon:e,type:t,upstream:o,tooltipText:n}){return i().createElement(En,{icon:e,tooltipClassName:"wide pull-left",tooltipId:`upstream-indicator-tooltip-${t}-${o}`,tooltipText:n})}function In({avatarUrl:e,context:t,icon:o,tooltipText:n}){return i().createElement(En,{icon:Tn(e,o,t),tooltipId:`remote-icon-${n||"tooltipText"}`,tooltipText:n})}var zn=function({name:e}){return i().createElement("span",{className:"ref-name truncate",style:{height:po}},e)};function kn(e,t,o,n,r,s){const l=jo(n,e,t,Ho);if(!l||0===l.length)return null;const a=l,c=[];for(let e=0;e<a.length;e+=1){const t=a[e],{context:l,hostingServiceType:h,id:d,title:u}=t,p={refId:n.id,type:Ho,data:t},f=i().createElement("span",{className:me()("mr1","ref-pull-request"),"data-vscode-context":Bo(l),onClick:e=>r(e,p),onDoubleClick:e=>s(e,p)},o("pull-request"));c.push(i().createElement(On,{hostingServiceType:h,icon:f,id:d,title:u}))}return c}function Gn(e,t,o,n,r,s){const l=jo(n,e,t,Lo);if(!l||0===l.ahead&&0===l.behind)return null;const a=l,c={refId:n.id,type:Lo,data:a},h=a.ahead>0,d=a.behind>0,u=a.context;if(h||d){const e=h?`${a.ahead>99?"99+":a.ahead}`:"",t=d?`${a.behind>99?"99+":a.behind}`:"",n=`${a.owner}/${a.name}`;let l,p;return d&&h?(l=`${t} ${a.behind>1?"commits":"commit"} behind and ${e} ${a.ahead>1?"commits":"commit"} ahead of ${n}\nDouble-click to pull changes`,p="ahead-behind"):d?(l=`${t} ${a.behind>1?"commits":"commit"} behind ${n}\nDouble-click to pull changes`,p="behind"):h&&(l=`${e} ${a.ahead>1?"commits":"commit"} ahead of ${n}\nDouble-click to push changes`,p="ahead"),i().createElement(Mn,{icon:i().createElement("div",{className:"ref-upstream","data-vscode-context":Bo(u),onClick:e=>r(e,c),onDoubleClick:e=>s(e,c)},d?i().createElement(i().Fragment,null,i().createElement("span",{className:"ref-upstream-behind"},t),o("upstream-behind")):null,h?i().createElement(i().Fragment,null,i().createElement("span",{className:"ref-upstream-ahead"},e),o("upstream-ahead")):null),tooltipText:l,type:p,upstream:n})}return null}function Pn(e,t,o,n=0){const{refType:r,name:s}=t;let l,a,c="";switch(r){case No.REMOTE:a=No.REMOTE,l=t.avatarUrl,c=t.owner||"";break;case No.TAG:a=No.TAG,c=s||"";break;case No.HEAD:default:a=No.HEAD,c=o("Ref-Local")}const h=t.context||void 0,d=i().createElement("span",{className:me()("mr1"),"data-vscode-context":Bo(h)},e(a));return i().createElement(In,{avatarUrl:l||"",context:h,icon:d,key:`ref-icon-${n}-${r}-${s}`,tooltipText:c})}function An(e,t,o){let n,r=!1,i=!1,s=!1;for(const l of e){if(l.refType===No.HEAD)return o?l.contextGroup||t:l.context;l.refType===No.REMOTE&&("origin"===l.owner?(r=!0,n=o?l.contextGroup||t:l.context):r||"upstream"!==l.owner?r||i||(s=!0,n=o?l.contextGroup||t:l.context):(i=!0,n=o?l.contextGroup||t:l.context)),r||i||s||(n=o?l.contextGroup||t:l.context)}return n}class Hn extends i().PureComponent{onContextMenu=e=>{const{onContextMenu:t,refGroup:o,sha:n}=this.props;t(e,o,n)};onClick=e=>{const{onClick:t,refGroup:o,sha:n}=this.props;t(e,o,n)};onClickMetadata=(e,t)=>{e.stopPropagation();const{onClick:o,refGroup:n,sha:r}=this.props;o(e,n,r,t)};onDoubleClick=e=>{const{onDoubleClick:t,refGroup:o,sha:n}=this.props;t(e,o,n)};onDoubleClickMetadata=(e,t)=>{e.stopPropagation();const{onDoubleClick:o,refGroup:n,sha:r}=this.props;o(e,n,r,t)};render(){const{hasActive:e,hasRefs:t,getExternalIcon:o,groupIsHovered:n,isInUnsupportedRebase:r,isRefGroupIncluded:s,onMissingRefMetadata:l,refGroup:a,refGroupContext:c,refMetadata:h,onHovered:d,onHideRefClick:u,sha:p,enabledRefMetadataTypes:f,translate:m}=this.props,g=me()("ref-node-wrapper","flex"),v=me()("ref-node","flex","items-center","p1",{"has-active":e,"dim-ref":!t&&n,"is-active":e}),y=a.length?a[0].fullName||a[0].name:"",w=i().createElement(zn,{name:y}),S=[],b=[];let C=null;for(let e=0;e<a.length;e+=1){if(S.push(Pn(o,a[e],m,e)),f.includes(Ho)&&a[e].refType===No.REMOTE){const t=kn(h,l,o,a[e],this.onClickMetadata,this.onDoubleClickMetadata);t&&b.push(...t)}f.includes(Lo)&&a[e].refType===No.HEAD&&(C=Gn(h,l,o,a[e],this.onClickMetadata,this.onDoubleClickMetadata))}const x=[...S,...b],R=a.some((e=>e.refType===No.HEAD&&e.isCurrentHead)),_=!e||n&&!R?null:i().createElement(En,{icon:i().createElement("span",{className:me()("mr1")},o("check")),tooltipId:"ref-icon-current",tooltipText:m("Ref-Current")}),T=An(a,c),E=An(a,c,!0),O=!R&&n&&!s?i().createElement(En,{icon:i().createElement("span",{className:me()("mr1","button"),onClick:e=>u(e,a,p)},o("hide")),tooltipId:`ref-node-toggle-visibility-btn-${y}`,tooltipText:m("Hide")}):null;return i().createElement("span",{className:g,"data-vscode-context":Bo(E),style:{minWidth:0,marginLeft:3,marginRight:3}},i().createElement("span",{className:v,"data-test-class":"ref-node-span","data-vscode-context":Bo(T),onClick:this.onClick,onContextMenu:r?void 0:this.onContextMenu,onDoubleClick:r?void 0:this.onDoubleClick,onMouseEnter:e=>d(e,a,p),style:{height:Qt,minWidth:"100%"}},_,i().createElement("span",{className:"flex items-center"},x),w,C,i().createElement("span",{className:"flex ml-auto"},O)))}}class Ln extends i().Component{constructor(e){super(e),this.state={showPopoverMenu:!1,refPopoverMenuTarget:void 0}}onHiddenRefsClick=e=>{const{showPopoverMenu:t}=this.state;this.setState({showPopoverMenu:!t,refPopoverMenuTarget:t?e.target:void 0})};onShowRefNodes=(e,t,o)=>{this.props.onToggleRefNodesShown(e,t,o),0===Object.keys(this.props.excludeRefsById).length&&this.onHiddenRefsClick(e)};compareGraphRefOpts(e,t){return e.name<t.name?-1:e.name>t.name?1:e.name===t.name&&e.type===No.REMOTE?-1:0}render(){const{enableResizer:e,getExternalIcon:t,graphWidth:o,graphZones:n,graphZoneType:r,excludeRefsById:s,includeOnlyRefsById:l,isDraggable:a,onHover:c,onResize:h,onResizeEnd:d,onResizeFromPropChange:u,onResizeStart:p,onUnhover:f,showRemoteNamesOnRefs:m,translate:g}=this.props,{showPopoverMenu:v,refPopoverMenuTarget:y}=this.state,w=Xo(r,n);if(!w)return null;const S=qo(r,n);let b=null,C=null;if(r===xo){const e=Object.entries(s),o=Object.values(l),n=o.length>0,r=n&&o.some((e=>e.type===No.TAG)),a=e.filter((e=>e[1].type===No.TAG&&(!n||!r)||!l[e[0]]));a.length>0&&(C=a.sort(((e,t)=>this.compareGraphRefOpts(e[1],t[1]))).map(((e,o)=>{const n=e[0],r=e[1];s[n].id=n;const l={name:r.name,refType:r.type,owner:r.owner,avatarUrl:r.avatarUrl},a=!m&&"*"!==l.name||l.refType!==No.REMOTE?l.name:`${l.owner}/${l.name}`;return i().createElement("li",{id:n,key:n,onClick:e=>this.onShowRefNodes(e,[s[n]],!0)},Pn(t,l,g,o),i().createElement("span",{className:"text-ellipsis"},a))})),b=i().createElement("div",{className:me()("right","text-normal","button",v?"active":null)},i().createElement(En,{icon:i().createElement("span",{onClick:this.onHiddenRefsClick},t("hide")),tooltipId:"header-ref-node-hidden-refs-btn",tooltipText:g("GraphHeader-HiddenRefs-btn")})))}const x=`${r}-header`,R=i().createElement("div",{onMouseEnter:c,onMouseLeave:f},b,i().createElement(et,{container:this,onHide:v?this.onHiddenRefsClick:void 0,placement:v?"bottom":void 0,rootClose:v,show:v,target:y},i().createElement(vt,{id:"opts-popover",style:{display:v?"block":"none"}},i().createElement("ul",null,C))),i().createElement("div",{className:"text-ellipsis font-monospace text-disabled"},i().createElement("span",{className:"ml1 fs-1"},g(w.headerLabelUntranslated)))),_=me()("panel-bg0","graph-header",{"is-draggable":a});return S?i().createElement("div",{className:_,id:x,key:x,style:{minWidth:w.currentWidth-4,transform:"translate3d(0, 0, 0)",zIndex:2}},R):i().createElement("div",{className:_,id:x,key:x,style:{display:"flex",minWidth:w.currentWidth,transform:"translate3d(0, 0, 0)",width:w.currentWidth,zIndex:2}},i().createElement(qt,{className:_,enable:e,handleStyles:{right:{right:0}},height:22,onResize:h?e=>h(w,e):void 0,onResizeEnd:d?e=>d(w,e):void 0,onResizeFromPropChange:u?e=>u(w,e):void 0,onResizeStart:p?e=>p(w,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z2 border-right",style:{display:"flex"},translate:g,width:w.currentWidth,widthConstraints:Jo(r,n,o)},R))}}const Dn=Ln;var Nn=o(977),Wn=o.n(Nn);const Bn="dnd-container";class Fn extends i().PureComponent{dndDrake;childReactElementsById={};constructor(e){super(e),this.loadChildrenReactElements(this.props.children)}componentDidMount(){this.dndDrake&&this.dndDrake.on("drop",this.onDrop)}componentWillReceiveProps(e){this.props.children!==e.children&&this.loadChildrenReactElements(e.children)}componentWillUnmount(){this.dndDrake&&this.dndDrake.destroy()}onDrop=(e,t,o,n)=>{if(this.props.onDrop&&e.id){const t=this.sanitizeId(e.id),o=n&&n.id?this.sanitizeId(n.id):null,r=this.childReactElementsById[t],i=o?this.childReactElementsById[o]:null;r&&this.props.onDrop(r,i)}};isContainerCallback=e=>!!e?.classList.contains(Bn);movesCallback=e=>!!e?.id&&this.isDraggable(e.id);acceptsCallback=(e,t,o,n)=>!!e?.id&&this.isDroppable(e.id,n?.id);invalidCallBack=()=>!1;dndDecorator=e=>{if(e){const t={isContainer:this.isContainerCallback,moves:this.movesCallback,accepts:this.acceptsCallback,invalid:this.invalidCallBack,direction:this.props.direction||"horizontal",copy:!1,copySortSource:!1,revertOnSpill:!1,removeOnSpill:!1,ignoreInputTextSelection:!0};this.dndDrake=Wn()([e],t)}};loadChildrenReactElements(e){this.childReactElementsById={},e&&(e instanceof Array?e.forEach((e=>{i().isValidElement(e)&&this.addChildReactElement(e)})):i().isValidElement(e)&&this.addChildReactElement(e))}addChildReactElement(e){const t=e.props.id;t&&(this.childReactElementsById[this.sanitizeId(t)]=e)}sanitizeId(e){return e.trim().toLowerCase().replace(/-/g,"").replace(/_/g,"")}isDraggable(e){if(this.props.isDraggable){const t=this.sanitizeId(e),o=this.childReactElementsById[t];return!!o&&this.props.isDraggable(o)}return!1}isDroppable(e,t){if(this.props.isDroppable){const o=this.sanitizeId(e),n=t?this.sanitizeId(t):null,r=this.childReactElementsById[o],i=n?this.childReactElementsById[n]:null;if(r)return this.props.isDroppable(r,i)}return!1}render(){const{children:e,className:t}=this.props,o=me()(Bn,t);return i().createElement("div",{className:o,ref:this.dndDecorator},e)}}var jn=Fn;class Un extends i().PureComponent{canDrag=!1;isDraggable=e=>this.canDrag&&e.props.isDraggable;isDroppable=(e,t)=>e.props.graphZoneType!==t?.props?.graphZoneType&&(!t||t.props.isDroppable);onDrop=(e,t)=>{this.props.onColumnReOrdered&&this.props.onColumnReOrdered(e.props.graphZoneType,t?t.props.graphZoneType:null)};onZoneHover=()=>{this.canDrag=!0};onZoneUnHover=()=>{this.canDrag=!1};render(){const{context:e,enableResizer:t,getExternalIcon:o,excludeRefsById:n,includeOnlyRefsById:r,onPopupGraphHeaderContextMenu:s,onGraphZoneResize:l,onGraphZoneResizeEnd:a,onGraphZoneResizeFromPropChange:c,onToggleRefNodesShown:h,graphZones:d,repoPath:u,showRemoteNamesOnRefs:p,translate:f,width:m,height:g}=this.props,v=i().createElement("div",{className:"panel-bg0",style:{height:22,marginBottom:2,marginLeft:-7,minWidth:11}});return i().createElement("div",{className:"graph-header flex","data-vscode-context":Bo(e),onContextMenu:s?()=>s(m):void 0,style:{height:22,marginBottom:2}},v,i().createElement(jn,{className:"flex",direction:"horizontal",isDraggable:this.isDraggable,isDroppable:this.isDroppable,onDrop:this.onDrop},d.map((e=>i().createElement(Dn,{enableResizer:t,excludeRefsById:n,getExternalIcon:o,graphHeight:g,graphWidth:m,graphZones:d,graphZoneType:e.type,id:`${e.type}Header`,includeOnlyRefsById:r,isDraggable:e.isCustomizable,isDroppable:e.isCustomizable,key:`${e.type}Header`,onHover:this.onZoneHover,onResize:l,onResizeEnd:a,onResizeFromPropChange:c,onToggleRefNodesShown:h,onUnhover:this.onZoneUnHover,repoPath:u,showRemoteNamesOnRefs:p,translate:f})))))}}var Zn=Un;function Vn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $n(e){return $n="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},$n(e)}function Yn(e){var t=function(e,t){if("object"!==$n(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!==$n(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$n(t)?t:String(t)}function qn(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Yn(n.key),n)}}function Kn(e,t,o){return t&&qn(e.prototype,t),o&&qn(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qn(e,t){if(t&&("object"===$n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Xn(e)}function Jn(e){return Jn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jn(e)}function er(e,t){return er=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},er(e,t)}function tr(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&&er(e,t)}function or(e,t,o){return(t=Yn(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var nr=o(6871);function rr(){return rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},rr.apply(this,arguments)}function ir(e){var t,o,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(o=ir(e[t]))&&(n&&(n+=" "),n+=o);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}const sr=function(){for(var e,t,o=0,n="";o<arguments.length;)(e=arguments[o++])&&(t=ir(e))&&(n&&(n+=" "),n+=t);return n};function lr(e){var t=e.cellCount,o=e.cellSize,n=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,s=e.nextCellSize,l=e.nextScrollToIndex,a=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof o&&"number"!=typeof s||o===s)||(n(r),a>=0&&a===l&&c())}function ar(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}var cr=function(){function e(t){var o=t.cellCount,n=t.cellSizeGetter,r=t.estimatedCellSize;Vn(this,e),or(this,"_cellSizeAndPositionData",{}),or(this,"_lastMeasuredIndex",-1),or(this,"_lastBatchedIndex",-1),or(this,"_cellCount",void 0),or(this,"_cellSizeGetter",void 0),or(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=o,this._estimatedCellSize=r}return Kn(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,o=e.estimatedCellSize,n=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=o,this._cellSizeGetter=n}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),o=t.offset+t.size,n=this._lastMeasuredIndex+1;n<=e;n++){var r=this._cellSizeGetter({index:n});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell ".concat(n," of value ").concat(r));null===r?(this._cellSizeAndPositionData[n]={offset:o,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[n]={offset:o,size:r},o+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,o=void 0===t?"auto":t,n=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(n<=0)return 0;var s,l=this.getSizeAndPositionOfCell(i),a=l.offset,c=a-n+l.size;switch(o){case"start":s=a;break;case"end":s=c;break;case"center":s=a-(n-l.size)/2;break;default:s=Math.max(c,Math.min(a,r))}var h=this.getTotalSize();return Math.max(0,Math.min(h-n,s))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;if(0===this.getTotalSize())return{};var n=o+t,r=this._findNearestCell(o),i=this.getSizeAndPositionOfCell(r);o=i.offset+i.size;for(var s=r;o<n&&s<this._cellCount-1;)s++,o+=this.getSizeAndPositionOfCell(s).size;return{start:r,stop:s}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e,t,o){for(;t<=e;){var n=t+Math.floor((e-t)/2),r=this.getSizeAndPositionOfCell(n).offset;if(r===o)return n;r<o?t=n+1:r>o&&(e=n-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var o=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=o,o*=2;return this._binarySearch(Math.min(e,this._cellCount-1),Math.floor(e/2),t)}},{key:"_findNearestCell",value:function(e){if(isNaN(e))throw Error("Invalid offset ".concat(e," specified"));e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredCell(),o=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch(o,0,e):this._exponentialSearch(o,e)}}]),e}(),hr=function(){return"undefined"!=typeof window&&window.chrome?16777100:15e5},dr=function(){function e(t){var o=t.maxScrollSize,n=void 0===o?hr():o,r=ar(t,["maxScrollSize"]);Vn(this,e),or(this,"_cellSizeAndPositionManager",void 0),or(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new cr(r),this._maxScrollSize=n}return Kn(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,o=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:r});return Math.round(i*(r-n))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,o=void 0===t?"auto":t,n=e.containerSize,r=e.currentOffset,i=e.targetIndex;r=this._safeOffsetToOffset({containerSize:n,offset:r});var s=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:n,currentOffset:r,targetIndex:i});return this._offsetToSafeOffset({containerSize:n,offset:s})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;return o=this._safeOffsetToOffset({containerSize:t,offset:o}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:o})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,o=e.offset,n=e.totalSize;return n<=t?0:o/(n-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,o=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(n===r)return o;var i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:n});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,o=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(n===r)return o;var i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:r});return Math.round(i*(n-t))}}]),e}();function ur(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(o){var n=o.callback,r=o.indices,i=Object.keys(r),s=!e||i.every((function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0})),l=i.length!==Object.keys(t).length||i.some((function(e){var o=t[e],n=r[e];return Array.isArray(n)?o.join(",")!==n.join(","):o!==n}));t=r,s&&l&&n(r)}}var pr=-1,fr=1;function mr(e){var t=e.cellSize,o=e.cellSizeAndPositionManager,n=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,s=e.previousScrollToIndex,l=e.previousSize,a=e.scrollOffset,c=e.scrollToAlignment,h=e.scrollToIndex,d=e.size,u=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,f=o.getCellCount(),m=h>=0&&h<f;m&&(d!==l||u||!r||"number"==typeof t&&t!==r||c!==i||h!==s)?p(h):!m&&f>0&&(d<l||f<n)&&a>o.getTotalSize()-d&&p(f-1)}const gr=!("undefined"==typeof window||!window.document||!window.document.createElement);var vr,yr;function wr(e){if((!vr&&0!==vr||e)&&gr){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),vr=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return vr}var Sr,br,Cr=(yr="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||yr.webkitRequestAnimationFrame||yr.mozRequestAnimationFrame||yr.oRequestAnimationFrame||yr.msRequestAnimationFrame||function(e){return yr.setTimeout(e,1e3/60)},xr=yr.cancelAnimationFrame||yr.webkitCancelAnimationFrame||yr.mozCancelAnimationFrame||yr.oCancelAnimationFrame||yr.msCancelAnimationFrame||function(e){yr.clearTimeout(e)},Rr=Cr,_r=xr,Tr=function(e){return _r(e.id)},Er=function(e,t){var o;Promise.resolve().then((function(){o=Date.now()}));var n={id:Rr((function r(){Date.now()-o>=t?e.call():n.id=Rr(r)}))};return n};function Or(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Mr(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Or(o,!0).forEach((function(t){or(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Or(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Ir="observed",zr="requested",kr=(br=Sr=function(e){function t(e){var o;Vn(this,t),or(Xn(o=Qn(this,Jn(t).call(this,e))),"_onGridRenderedMemoizer",ur()),or(Xn(o),"_onScrollMemoizer",ur(!1)),or(Xn(o),"_deferredInvalidateColumnIndex",null),or(Xn(o),"_deferredInvalidateRowIndex",null),or(Xn(o),"_recomputeScrollLeftFlag",!1),or(Xn(o),"_recomputeScrollTopFlag",!1),or(Xn(o),"_horizontalScrollBarSize",0),or(Xn(o),"_verticalScrollBarSize",0),or(Xn(o),"_scrollbarPresenceChanged",!1),or(Xn(o),"_scrollingContainer",void 0),or(Xn(o),"_childrenToDisplay",void 0),or(Xn(o),"_columnStartIndex",void 0),or(Xn(o),"_columnStopIndex",void 0),or(Xn(o),"_rowStartIndex",void 0),or(Xn(o),"_rowStopIndex",void 0),or(Xn(o),"_renderedColumnStartIndex",0),or(Xn(o),"_renderedColumnStopIndex",0),or(Xn(o),"_renderedRowStartIndex",0),or(Xn(o),"_renderedRowStopIndex",0),or(Xn(o),"_initialScrollTop",void 0),or(Xn(o),"_initialScrollLeft",void 0),or(Xn(o),"_disablePointerEventsTimeoutId",void 0),or(Xn(o),"_styleCache",{}),or(Xn(o),"_cellCache",{}),or(Xn(o),"_debounceScrollEndedCallback",(function(){o._disablePointerEventsTimeoutId=null,o.setState({isScrolling:!1,needToResetStyleCache:!1})})),or(Xn(o),"_invokeOnGridRenderedHelper",(function(){var e=o.props.onSectionRendered;o._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:o._columnStartIndex,columnOverscanStopIndex:o._columnStopIndex,columnStartIndex:o._renderedColumnStartIndex,columnStopIndex:o._renderedColumnStopIndex,rowOverscanStartIndex:o._rowStartIndex,rowOverscanStopIndex:o._rowStopIndex,rowStartIndex:o._renderedRowStartIndex,rowStopIndex:o._renderedRowStopIndex}})})),or(Xn(o),"_onWheel",(function(e){var t=e.deltaX,n=e.deltaY;o.handleWheelEvent({deltaX:t,deltaY:n})})),or(Xn(o),"_setScrollingContainerRef",(function(e){e&&(e.removeEventListener("wheel",o.preventDefault),e.addEventListener("wheel",o.preventDefault,{passive:!1})),o._scrollingContainer=e})),or(Xn(o),"_onScroll",(function(e){e.target===o._scrollingContainer&&o.handleScrollEvent(e.target)}));var n=new dr({cellCount:e.columnCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.columnWidth)(o)},estimatedCellSize:t._getEstimatedColumnSize(e)}),r=new dr({cellCount:e.rowCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.rowHeight)(o)},estimatedCellSize:t._getEstimatedRowSize(e)});return o.state={instanceProps:{columnSizeAndPositionManager:n,rowSizeAndPositionManager:r,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:!0===e.isScrolling,prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:fr,scrollDirectionVertical:fr,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},e.scrollToRow>0&&(o._initialScrollTop=o._getCalculatedScrollTop(e,o.state)),e.scrollToColumn>0&&(o._initialScrollLeft=o._getCalculatedScrollLeft(e,o.state)),o}return tr(t,e),Kn(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,o=void 0===t?this.props.scrollToAlignment:t,n=e.columnIndex,r=void 0===n?this.props.scrollToColumn:n,i=e.rowIndex,s=void 0===i?this.props.scrollToRow:i,l=Mr({},this.props,{scrollToAlignment:o,scrollToColumn:r,scrollToRow:s});return{scrollLeft:this._getCalculatedScrollLeft(l),scrollTop:this._getCalculatedScrollTop(l)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,o=void 0===t?0:t,n=e.scrollTop,r=void 0===n?0:n;if(!(r<0)){this._debounceScrollEnded();var i=this.props,s=i.autoHeight,l=i.autoWidth,a=i.height,c=i.width,h=this.state.instanceProps,d=h.scrollbarSize,u=h.rowSizeAndPositionManager.getTotalSize(),p=h.columnSizeAndPositionManager.getTotalSize(),f=Math.min(Math.max(0,p-c+d),o),m=Math.min(Math.max(0,u-a+d),r);if(this.state.scrollLeft!==f||this.state.scrollTop!==m){var g={isScrolling:!0,scrollDirectionHorizontal:f!==this.state.scrollLeft?f>this.state.scrollLeft?fr:pr:this.state.scrollDirectionHorizontal,scrollDirectionVertical:m!==this.state.scrollTop?m>this.state.scrollTop?fr:pr:this.state.scrollDirectionVertical,scrollPositionChangeReason:Ir};s||(g.scrollTop=m),l||(g.scrollLeft=f),g.needToResetStyleCache=!1,this.setState(g)}this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:m,totalColumnsWidth:p,totalRowsHeight:u})}}},{key:"preventDefault",value:function(e){e.preventDefault()}},{key:"handleWheelEvent",value:function(e){var t=e.deltaX,o=e.deltaY;this._debounceScrollEnded();var n=this.props,r=n.autoHeight,i=n.autoWidth,s=n.height,l=n.width,a=this.state.instanceProps.scrollbarSize,c=this.state.instanceProps.rowSizeAndPositionManager.getTotalSize(),h=this.state.instanceProps.columnSizeAndPositionManager.getTotalSize(),d=Math.min(Math.max(0,h-l+a),Math.max(0,this._scrollingContainer.scrollLeft+t)),u=Math.min(Math.max(0,c-s+a),Math.max(0,this._scrollingContainer.scrollTop+o));if(this.state.scrollLeft!==d||this.state.scrollTop!==u){var p={isScrolling:!0,scrollDirectionHorizontal:d!==this.state.scrollLeft?d>this.state.scrollLeft?fr:pr:this.state.scrollDirectionHorizontal,scrollDirectionVertical:u!==this.state.scrollTop?u>this.state.scrollTop?fr:pr:this.state.scrollDirectionVertical,scrollPositionChangeReason:zr};r||(p.scrollTop=u),i||(p.scrollLeft=d),p.needToResetStyleCache=!1,this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:u,totalColumnsWidth:h,totalRowsHeight:c})}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,o=e.rowCount,n=this.state.instanceProps;n.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),n.rowSizeAndPositionManager.getSizeAndPositionOfCell(o-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n,i=this.props,s=i.scrollToColumn,l=i.scrollToRow,a=this.state.instanceProps;a.columnSizeAndPositionManager.resetCell(o),a.rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=s>=0&&(this.state.scrollDirectionHorizontal===fr?o<=s:o>=s),this._recomputeScrollTopFlag=l>=0&&(this.state.scrollDirectionVertical===fr?r<=l:r>=l),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,o=e.rowIndex,n=this.props,r=n.columnCount,i=n.onScrollToTargetCausedUpdate,s=this.state,l=s.scrollLeft,a=s.scrollTop,c=this.props,h=this.state,d=void 0,u=void 0;if(r>1&&void 0!==t){var p=this._updateScrollLeftForScrollToColumn(Mr({},c,{scrollToColumn:t}),h,!0);p&&"number"==typeof p.scrollLeft&&p.scrollLeft>=0&&(d=p.scrollLeft)}if(void 0!==o){var f=this._updateScrollTopForScrollToRow(Mr({},c,{scrollToRow:o}),h,!0);f&&"number"==typeof f.scrollTop&&f.scrollTop>=0&&(u=f.scrollTop)}if(i&&("number"==typeof d||"number"==typeof u)){var m="number"!=typeof d?d:l,g="number"!=typeof u?u:a;i({clientHeight:c.height,clientWidth:c.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:m,scrollTop:g,scrollWidth:this.getTotalColumnsWidth()})}}},{key:"componentDidMount",value:function(){var e=this.props,o=e.getScrollbarSize,n=e.height,r=e.scrollLeft,i=e.scrollToColumn,s=e.scrollTop,l=e.scrollToRow,a=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState((function(e){var t=Mr({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=o(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"==typeof r&&r>=0||"number"==typeof s&&s>=0){var h=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:r,scrollTop:s});h&&(h.needToResetStyleCache=!1,this.setState(h))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var d=n>0&&a>0;i>=0&&d&&this._updateScrollLeftForScrollToColumn(),l>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:r||0,scrollTop:s||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var o=this,n=this.props,r=n.autoHeight,i=n.autoWidth,s=n.columnCount,l=n.height,a=n.rowCount,c=n.scrollToAlignment,h=n.scrollToColumn,d=n.scrollToRow,u=n.width,p=this.state,f=p.scrollLeft,m=p.scrollPositionChangeReason,g=p.scrollTop,v=p.instanceProps;this._handleInvalidatedGridSize();var y=s>0&&0===e.columnCount||a>0&&0===e.rowCount;m===zr&&(!i&&f>=0&&(f!==this._scrollingContainer.scrollLeft||y)&&(this._scrollingContainer.scrollLeft=f),!r&&g>=0&&(g!==this._scrollingContainer.scrollTop||y)&&(this._scrollingContainer.scrollTop=g));var w=(0===e.width||0===e.height)&&l>0&&u>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):mr({cellSizeAndPositionManager:v.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:f,scrollToAlignment:c,scrollToIndex:h,size:u,sizeJustIncreasedFromZero:w,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):mr({cellSizeAndPositionManager:v.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:g,scrollToAlignment:c,scrollToIndex:d,size:l,sizeJustIncreasedFromZero:w,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),f!==t.scrollLeft||g!==t.scrollTop){var S=v.rowSizeAndPositionManager.getTotalSize(),b=v.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:g,totalColumnsWidth:b,totalRowsHeight:S})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._scrollingContainer&&this._scrollingContainer.removeEventListener("wheel",this.preventDefault),this._disablePointerEventsTimeoutId&&Tr(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,o=e.autoHeight,n=e.autoWidth,i=e.className,s=e.containerProps,l=e.containerRole,a=e.containerStyle,c=e.height,h=e.id,d=e.noContentRenderer,u=e.role,p=e.style,f=e.tabIndex,m=e.width,g=this.state,v=g.instanceProps,y=g.needToResetStyleCache,w=this._isScrolling(),S={boxSizing:"border-box",direction:"ltr",height:o?"auto":c,position:"relative",width:n?"auto":m,WebkitOverflowScrolling:"touch",willChange:"transform"};y&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var b=v.columnSizeAndPositionManager.getTotalSize(),C=v.rowSizeAndPositionManager.getTotalSize(),x=C>c?v.scrollbarSize:0,R=b>m?v.scrollbarSize:0;R===this._horizontalScrollBarSize&&x===this._verticalScrollBarSize||(this._horizontalScrollBarSize=R,this._verticalScrollBarSize=x,this._scrollbarPresenceChanged=!0),S.overflowX=b+x<=m?"hidden":"auto",S.overflowY=C+R<=c?"hidden":"auto";var _=this._childrenToDisplay,T=0===_.length&&c>0&&m>0;return r.createElement("div",rr({ref:this._setScrollingContainerRef},s,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:sr("ReactVirtualized__Grid",i),id:h,onScroll:this._onScroll,onWheel:this._onWheel,role:u,style:Mr({},S,{},p),tabIndex:f}),_.length>0&&r.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:l,style:Mr({width:t?"auto":b,height:C,maxWidth:b,maxHeight:C,overflow:"hidden",pointerEvents:w?"none":"",position:"relative"},a)},_),T&&d())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,o=e.cellRenderer,n=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,s=e.height,l=e.overscanColumnCount,a=e.overscanIndicesGetter,c=e.overscanRowCount,h=e.rowCount,d=e.width,u=e.isScrollingOptOut,p=t.scrollDirectionHorizontal,f=t.scrollDirectionVertical,m=t.instanceProps,g=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,v=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,y=this._isScrolling(e,t);if(this._childrenToDisplay=[],s>0&&d>0){var w=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:v}),S=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:s,offset:g}),b=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:v}),C=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:s,offset:g});this._renderedColumnStartIndex=w.start,this._renderedColumnStopIndex=w.stop,this._renderedRowStartIndex=S.start,this._renderedRowStopIndex=S.stop;var x=a({direction:"horizontal",cellCount:r,overscanCellsCount:l,scrollDirection:p,startIndex:"number"==typeof w.start?w.start:0,stopIndex:"number"==typeof w.stop?w.stop:-1}),R=a({direction:"vertical",cellCount:h,overscanCellsCount:c,scrollDirection:f,startIndex:"number"==typeof S.start?S.start:0,stopIndex:"number"==typeof S.stop?S.stop:-1}),_=x.overscanStartIndex,T=x.overscanStopIndex,E=R.overscanStartIndex,O=R.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var M=E;M<=O;M++)if(!i.has(M,0)){_=0,T=r-1;break}if(!i.hasFixedWidth())for(var I=_;I<=T;I++)if(!i.has(0,I)){E=0,O=h-1;break}}this._childrenToDisplay=n({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:_,columnStopIndex:T,deferredMeasurementCache:i,horizontalOffsetAdjustment:b,isScrolling:y,isScrollingOptOut:u,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:E,rowStopIndex:O,scrollLeft:v,scrollTop:g,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:w,visibleRowIndices:S}),this._columnStartIndex=_,this._columnStopIndex=T,this._rowStartIndex=E,this._rowStopIndex=O}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&Tr(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=Er(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex&&"number"==typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,o=e.scrollLeft,n=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,n=e.scrollTop,s=t.props,l=s.height;(0,s.onScroll)({clientHeight:l,clientWidth:s.width,scrollHeight:i,scrollLeft:o,scrollTop:n,scrollWidth:r})},indices:{scrollLeft:o,scrollTop:n}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var o=e.scrollLeft,n=e.scrollTop,r=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:n});r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,o)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t._getScrollLeftForScrollToColumnStateUpdate(e,o);if(r)return r.needToResetStyleCache=!1,this.setState(r),e.onScrollToTargetCausedUpdate&&!n&&e.onScrollToTargetCausedUpdate({clientHeight:e.height,clientWidth:e.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollWidth:this.getTotalColumnsWidth()}),r}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,o)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,o=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var n=this._rowStartIndex;n<=this._rowStopIndex;n++)for(var r=this._columnStartIndex;r<=this._columnStopIndex;r++){var i="".concat(n,"-").concat(r);this._styleCache[i]=e[i],o&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t._getScrollTopForScrollToRowStateUpdate(e,o);if(r)return r.needToResetStyleCache=!1,this.setState(r),e.onScrollToTargetCausedUpdate&&!n&&e.onScrollToTargetCausedUpdate({clientHeight:e.height,clientWidth:e.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollWidth:this.getTotalColumnsWidth()}),r}}],[{key:"getDerivedStateFromProps",value:function(e,o){var n={};0===e.columnCount&&0!==o.scrollLeft||0===e.rowCount&&0!==o.scrollTop?(n.scrollLeft=0,n.scrollTop=0):(e.scrollLeft!==o.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==o.scrollTop&&e.scrollToRow<0)&&Object.assign(n,t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var r,i,s=o.instanceProps;return n.needToResetStyleCache=!1,e.columnWidth===s.prevColumnWidth&&e.rowHeight===s.prevRowHeight||(n.needToResetStyleCache=!0),s.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),s.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==s.prevColumnCount&&0!==s.prevRowCount||(s.prevColumnCount=0,s.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===s.prevIsScrolling&&Object.assign(n,{isScrolling:!1}),lr({cellCount:s.prevColumnCount,cellSize:"number"==typeof s.prevColumnWidth?s.prevColumnWidth:null,computeMetadataCallback:function(){return s.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:s.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){r=t._getScrollLeftForScrollToColumnStateUpdate(e,o)}}),lr({cellCount:s.prevRowCount,cellSize:"number"==typeof s.prevRowHeight?s.prevRowHeight:null,computeMetadataCallback:function(){return s.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:s.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){i=t._getScrollTopForScrollToRowStateUpdate(e,o)}}),s.prevColumnCount=e.columnCount,s.prevColumnWidth=e.columnWidth,s.prevIsScrolling=!0===e.isScrolling,s.prevRowCount=e.rowCount,s.prevRowHeight=e.rowHeight,s.prevScrollToColumn=e.scrollToColumn,s.prevScrollToRow=e.scrollToRow,s.scrollbarSize=e.getScrollbarSize(),void 0===s.scrollbarSize?(s.scrollbarSizeMeasured=!1,s.scrollbarSize=0):s.scrollbarSizeMeasured=!0,n.instanceProps=s,Mr({},n,{},r,{},i)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,o=e.scrollLeft,n=e.scrollTop,r={scrollPositionChangeReason:zr};return"number"==typeof o&&o>=0&&(r.scrollDirectionHorizontal=o>t.scrollLeft?fr:pr,r.scrollLeft=o),"number"==typeof n&&n>=0&&(r.scrollDirectionVertical=n>t.scrollTop?fr:pr,r.scrollTop=n),"number"==typeof o&&o>=0&&o!==t.scrollLeft||"number"==typeof n&&n>=0&&n!==t.scrollTop?r:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var o=e.columnCount,n=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,s=e.width,l=t.scrollLeft,a=t.instanceProps;if(o>0){var c=o-1,h=i<0?c:Math.min(c,i),d=a.rowSizeAndPositionManager.getTotalSize(),u=a.scrollbarSizeMeasured&&d>n?a.scrollbarSize:0;return a.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:s-u,currentOffset:l,targetIndex:h})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,o){var n=o.scrollLeft,r=t._getCalculatedScrollLeft(e,o);return"number"==typeof r&&r>=0&&n!==r?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:r,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var o=e.height,n=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,s=e.width,l=t.scrollTop,a=t.instanceProps;if(n>0){var c=n-1,h=i<0?c:Math.min(c,i),d=a.columnSizeAndPositionManager.getTotalSize(),u=a.scrollbarSizeMeasured&&d>s?a.scrollbarSize:0;return a.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:o-u,currentOffset:l,targetIndex:h})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,o){var n=o.scrollTop,r=t._getCalculatedScrollTop(e,o);return"number"==typeof r&&r>=0&&n!==r?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:-1,scrollTop:r}):{}}}]),t}(r.PureComponent),or(Sr,"propTypes",null),br);or(kr,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,o=e.cellRenderer,n=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,s=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,a=e.isScrolling,c=e.isScrollingOptOut,h=e.parent,d=e.rowSizeAndPositionManager,u=e.rowStartIndex,p=e.rowStopIndex,f=e.styleCache,m=e.verticalOffsetAdjustment,g=e.visibleColumnIndices,v=e.visibleRowIndices,y=[],w=n.areOffsetsAdjusted()||d.areOffsetsAdjusted(),S=!a&&!w,b=u;b<=p;b++)for(var C=d.getSizeAndPositionOfCell(b),x=r;x<=i;x++){var R=n.getSizeAndPositionOfCell(x),_=x>=g.start&&x<=g.stop&&b>=v.start&&b<=v.stop,T="".concat(b,"-").concat(x),E=void 0;S&&f[T]?E=f[T]:s&&!s.has(b,x)?E={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(E={height:C.size,left:R.offset+l,position:"absolute",top:C.offset+m,width:R.size},f[T]=E);var O={columnIndex:x,isScrolling:a,isVisible:_,key:T,parent:h,rowIndex:b,style:E},M=void 0;!c&&!a||l||m?M=o(O):(t[T]||(t[T]=o(O)),M=t[T]),null!=M&&!1!==M&&y.push(M)}return y},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:wr,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,o=e.overscanCellsCount,n=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return n===fr?{overscanStartIndex:Math.max(0,r),overscanStopIndex:Math.min(t-1,i+o)}:{overscanStartIndex:Math.max(0,r-o),overscanStopIndex:Math.min(t-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),(0,nr.polyfill)(kr);const Gr=kr;var Pr=1;function Ar(e){var t=e.cellCount,o=e.overscanCellsCount,n=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return o=Math.max(1,o),n===Pr?{overscanStartIndex:Math.max(0,r-1),overscanStopIndex:Math.min(t-1,i+o)}:{overscanStartIndex:Math.max(0,r-o),overscanStopIndex:Math.min(t-1,i+1)}}var Hr,Lr;function Dr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}var Nr=(Lr=Hr=function(e){function t(){var e,o;Vn(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return or(Xn(o=Qn(this,(e=Jn(t)).call.apply(e,[this].concat(r)))),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),or(Xn(o),"_columnStartIndex",0),or(Xn(o),"_columnStopIndex",0),or(Xn(o),"_rowStartIndex",0),or(Xn(o),"_rowStopIndex",0),or(Xn(o),"_onKeyDown",(function(e){var t=o.props,n=t.columnCount,r=t.disabled,i=t.mode,s=t.rowCount;if(!r){var l=o._getScrollState(),a=l.scrollToColumn,c=l.scrollToRow,h=o._getScrollState(),d=h.scrollToColumn,u=h.scrollToRow;switch(e.key){case"ArrowDown":u="cells"===i?Math.min(u+1,s-1):Math.min(o._rowStopIndex+1,s-1);break;case"ArrowLeft":d="cells"===i?Math.max(d-1,0):Math.max(o._columnStartIndex-1,0);break;case"ArrowRight":d="cells"===i?Math.min(d+1,n-1):Math.min(o._columnStopIndex+1,n-1);break;case"ArrowUp":u="cells"===i?Math.max(u-1,0):Math.max(o._rowStartIndex-1,0)}d===a&&u===c||(e.preventDefault(),o._updateScrollState({scrollToColumn:d,scrollToRow:u}))}})),or(Xn(o),"_onSectionRendered",(function(e){var t=e.columnStartIndex,n=e.columnStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;o._columnStartIndex=t,o._columnStopIndex=n,o._rowStartIndex=r,o._rowStopIndex=i})),o}return tr(t,e),Kn(t,[{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow;this.setState({scrollToRow:o,scrollToColumn:t})}},{key:"render",value:function(){var e=this.props,t=e.className,o=e.children,n=this._getScrollState(),i=n.scrollToColumn,s=n.scrollToRow;return r.createElement("div",{className:t,onKeyDown:this._onKeyDown},o({onSectionRendered:this._onSectionRendered,scrollToColumn:i,scrollToRow:s}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow,n=this.props,r=n.isControlled,i=n.onScrollToChange;"function"==typeof i&&i({scrollToColumn:t,scrollToRow:o}),r||this.setState({scrollToColumn:t,scrollToRow:o})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isControlled?{}:e.scrollToColumn!==t.instanceProps.prevScrollToColumn||e.scrollToRow!==t.instanceProps.prevScrollToRow?function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Dr(o,!0).forEach((function(t){or(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Dr(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({},t,{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}]),t}(r.PureComponent),or(Hr,"propTypes",null),Lr);or(Nr,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),(0,nr.polyfill)(Nr);function Wr(e,t){var n,r=void 0!==(n=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o.g).document&&n.document.attachEvent;if(!r){var i=function(){var e=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(e){return n.setTimeout(e,20)};return function(t){return e(t)}}(),s=function(){var e=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||n.clearTimeout;return function(t){return e(t)}}(),l=function(e){var t=e.__resizeTriggers__,o=t.firstElementChild,n=t.lastElementChild,r=o.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,r.style.width=o.offsetWidth+1+"px",r.style.height=o.offsetHeight+1+"px",o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight},a=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;l(this),this.__resizeRAF__&&s(this.__resizeRAF__),this.__resizeRAF__=i((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(o){o.call(t,e)})))}))}},c=!1,h="",d="animationstart",u="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),f=n.document.createElement("fakeelement");if(void 0!==f.style.animationName&&(c=!0),!1===c)for(var m=0;m<u.length;m++)if(void 0!==f.style[u[m]+"AnimationName"]){h="-"+u[m].toLowerCase()+"-",d=p[m],c=!0;break}var g="resizeanim",v="@"+h+"keyframes "+g+" { from { opacity: 0; } to { opacity: 0; } } ",y=h+"animation: 1ms "+g+"; "}return{addResizeListener:function(t,o){if(r)t.attachEvent("onresize",o);else{if(!t.__resizeTriggers__){var i=t.ownerDocument,s=n.getComputedStyle(t);s&&"static"==s.position&&(t.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var o=(v||"")+".resize-triggers { "+(y||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',n=t.head||t.getElementsByTagName("head")[0],r=t.createElement("style");r.id="detectElementResize",r.type="text/css",null!=e&&r.setAttribute("nonce",e),r.styleSheet?r.styleSheet.cssText=o:r.appendChild(t.createTextNode(o)),n.appendChild(r)}}(i),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=i.createElement("div")).className="resize-triggers";var c='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>';if(window.trustedTypes){var h=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return c}});t.__resizeTriggers__.innerHTML=h.createHTML("")}else t.__resizeTriggers__.innerHTML=c;t.appendChild(t.__resizeTriggers__),l(t),t.addEventListener("scroll",a,!0),d&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName==g&&l(t)},t.__resizeTriggers__.addEventListener(d,t.__resizeTriggers__.__animationListener__))}t.__resizeListeners__.push(o)}},removeResizeListener:function(e,t){if(r)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(d,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}var Br,Fr;function jr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Ur(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?jr(o,!0).forEach((function(t){or(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):jr(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Zr=(Fr=Br=function(e){function t(){var e,o;Vn(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return or(Xn(o=Qn(this,(e=Jn(t)).call.apply(e,[this].concat(r)))),"state",{height:o.props.defaultHeight||0,width:o.props.defaultWidth||0}),or(Xn(o),"_parentNode",void 0),or(Xn(o),"_autoSizer",void 0),or(Xn(o),"_window",void 0),or(Xn(o),"_detectElementResize",void 0),or(Xn(o),"_onResize",(function(){var e=o.props,t=e.disableHeight,n=e.disableWidth,r=e.onResize;if(o._parentNode){var i=o._parentNode.offsetHeight||0,s=o._parentNode.offsetWidth||0,l=(o._window||window).getComputedStyle(o._parentNode)||{},a=parseInt(l.paddingLeft,10)||0,c=parseInt(l.paddingRight,10)||0,h=parseInt(l.paddingTop,10)||0,d=parseInt(l.paddingBottom,10)||0,u=i-h-d,p=s-a-c;(!t&&o.state.height!==u||!n&&o.state.width!==p)&&(o.setState({height:i-h-d,width:s-a-c}),r({height:i,width:s}))}})),or(Xn(o),"_setRef",(function(e){o._autoSizer=e})),o}return tr(t,e),Kn(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=Wr(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,o=e.className,n=e.disableHeight,i=e.disableWidth,s=e.style,l=this.state,a=l.height,c=l.width,h={overflow:"visible"},d={};return n||(h.height=0,d.height=a),i||(h.width=0,d.width=c),r.createElement("div",{className:o,ref:this._setRef,style:Ur({},h,{},s)},t(d))}}]),t}(r.Component),or(Br,"propTypes",null),Fr);or(Zr,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var Vr,$r,Yr=($r=Vr=function(e){function t(){var e,o;Vn(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return or(Xn(o=Qn(this,(e=Jn(t)).call.apply(e,[this].concat(r)))),"_child",void 0),or(Xn(o),"_measure",(function(){var e=o.props,t=e.cache,n=e.columnIndex,r=void 0===n?0:n,i=e.parent,s=e.rowIndex,l=void 0===s?o.props.index||0:s,a=o._getCellMeasurements(),c=a.height,h=a.width;c===t.getHeight(l,r)&&h===t.getWidth(l,r)||(t.set(l,r,h,c),i&&"function"==typeof i.recomputeGridSize&&i.recomputeGridSize({columnIndex:r,rowIndex:l}))})),or(Xn(o),"_registerChild",(function(e){e&&Element,o._child=e,e&&o._maybeMeasureCell()})),o}return tr(t,e),Kn(t,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this.props.children;return"function"==typeof e?e({measure:this._measure,registerChild:this._registerChild}):e}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=this._child||(0,pn.findDOMNode)(this);if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var o=t.style.width,n=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var r=Math.ceil(t.offsetHeight),i=Math.ceil(t.offsetWidth);return o&&(t.style.width=o),n&&(t.style.height=n),{height:r,width:i}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,o=e.columnIndex,n=void 0===o?0:o,r=e.parent,i=e.rowIndex,s=void 0===i?this.props.index||0:i;if(!t.has(s,n)){var l=this._getCellMeasurements(),a=l.height,c=l.width;t.set(s,n,c,a),r&&"function"==typeof r.invalidateCellSizeAfterRender&&r.invalidateCellSizeAfterRender({columnIndex:n,rowIndex:s})}}}]),t}(r.PureComponent),or(Vr,"propTypes",null),$r);or(Yr,"__internalCellMeasurerFlag",!1);function qr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Kr(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?qr(o,!0).forEach((function(t){or(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):qr(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Xr={OBSERVED:"observed",REQUESTED:"requested"},Qr=function(e){function t(){var e,o;Vn(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return or(Xn(o=Qn(this,(e=Jn(t)).call.apply(e,[this].concat(r)))),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),or(Xn(o),"_calculateSizeAndPositionDataOnNextUpdate",!1),or(Xn(o),"_onSectionRenderedMemoizer",ur()),or(Xn(o),"_onScrollMemoizer",ur(!1)),or(Xn(o),"_invokeOnSectionRenderedHelper",(function(){var e=o.props,t=e.cellLayoutManager,n=e.onSectionRendered;o._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})})),or(Xn(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),or(Xn(o),"_updateScrollPositionForScrollToCell",(function(){var e=o.props,t=e.cellLayoutManager,n=e.height,r=e.scrollToAlignment,i=e.scrollToCell,s=e.width,l=o.state,a=l.scrollLeft,c=l.scrollTop;if(i>=0){var h=t.getScrollPositionForCell({align:r,cellIndex:i,height:n,scrollLeft:a,scrollTop:c,width:s});h.scrollLeft===a&&h.scrollTop===c||o._setScrollPosition(h)}})),or(Xn(o),"_onScroll",(function(e){if(e.target===o._scrollingContainer){o._enablePointerEventsAfterDelay();var t=o.props,n=t.cellLayoutManager,r=t.height,i=t.isScrollingChange,s=t.width,l=o._scrollbarSize,a=n.getTotalSize(),c=a.height,h=a.width,d=Math.max(0,Math.min(h-s+l,e.target.scrollLeft)),u=Math.max(0,Math.min(c-r+l,e.target.scrollTop));if(o.state.scrollLeft!==d||o.state.scrollTop!==u){var p=e.cancelable?Xr.OBSERVED:Xr.REQUESTED;o.state.isScrolling||i(!0),o.setState({isScrolling:!0,scrollLeft:d,scrollPositionChangeReason:p,scrollTop:u})}o._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:u,totalWidth:h,totalHeight:c})}})),o._scrollbarSize=wr(),void 0===o._scrollbarSize?(o._scrollbarSizeMeasured=!1,o._scrollbarSize=0):o._scrollbarSizeMeasured=!0,o}return tr(t,e),Kn(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,o=e.scrollLeft,n=e.scrollToCell,r=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=wr(),this._scrollbarSizeMeasured=!0,this.setState({})),n>=0?this._updateScrollPositionForScrollToCell():(o>=0||r>=0)&&this._setScrollPosition({scrollLeft:o,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),s=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:r||0,totalHeight:s,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var o=this.props,n=o.height,r=o.scrollToAlignment,i=o.scrollToCell,s=o.width,l=this.state,a=l.scrollLeft,c=l.scrollPositionChangeReason,h=l.scrollTop;c===Xr.REQUESTED&&(a>=0&&a!==t.scrollLeft&&a!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=a),h>=0&&h!==t.scrollTop&&h!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=h)),n===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&s===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,o=e.cellCount,n=e.cellLayoutManager,i=e.className,s=e.height,l=e.horizontalOverscanSize,a=e.id,c=e.noContentRenderer,h=e.style,d=e.verticalOverscanSize,u=e.width,p=this.state,f=p.isScrolling,m=p.scrollLeft,g=p.scrollTop;(this._lastRenderedCellCount!==o||this._lastRenderedCellLayoutManager!==n||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=o,this._lastRenderedCellLayoutManager=n,this._calculateSizeAndPositionDataOnNextUpdate=!1,n.calculateSizeAndPositionData());var v=n.getTotalSize(),y=v.height,w=v.width,S=Math.max(0,m-l),b=Math.max(0,g-d),C=Math.min(w,m+u+l),x=Math.min(y,g+s+d),R=s>0&&u>0?n.cellRenderers({height:x-b,isScrolling:f,width:C-S,x:S,y:b}):[],_={boxSizing:"border-box",direction:"ltr",height:t?"auto":s,position:"relative",WebkitOverflowScrolling:"touch",width:u,willChange:"transform"},T=y>s?this._scrollbarSize:0,E=w>u?this._scrollbarSize:0;return _.overflowX=w+T<=u?"hidden":"auto",_.overflowY=y+E<=s?"hidden":"auto",r.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:sr("ReactVirtualized__Collection",i),id:a,onScroll:this._onScroll,role:"grid",style:Kr({},_,{},h),tabIndex:0},o>0&&r.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:y,maxHeight:y,maxWidth:w,overflow:"hidden",pointerEvents:f?"none":"",width:w}},R),0===o&&c())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout((function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})}),150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,o=e.scrollLeft,n=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,n=e.scrollTop,s=t.props,l=s.height;(0,s.onScroll)({clientHeight:l,clientWidth:s.width,scrollHeight:r,scrollLeft:o,scrollTop:n,scrollWidth:i})},indices:{scrollLeft:o,scrollTop:n}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,o=e.scrollTop,n={scrollPositionChangeReason:Xr.REQUESTED};t>=0&&(n.scrollLeft=t),o>=0&&(n.scrollTop=o),(t>=0&&t!==this.state.scrollLeft||o>=0&&o!==this.state.scrollTop)&&this.setState(n)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:Xr.REQUESTED}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:Xr.REQUESTED}}}]),t}(r.PureComponent);or(Qr,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),Qr.propTypes={},(0,nr.polyfill)(Qr);const Jr=Qr;var ei=function(){function e(t){var o=t.height,n=t.width,r=t.x,i=t.y;Vn(this,e),this.height=o,this.width=n,this.x=r,this.y=i,this._indexMap={},this._indices=[]}return Kn(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),ti=100,oi=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ti;Vn(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return Kn(e,[{key:"getCellIndices",value:function(e){var t=e.height,o=e.width,n=e.x,r=e.y,i={};return this.getSections({height:t,width:o,x:n,y:r}).forEach((function(e){return e.getCellIndices().forEach((function(e){i[e]=e}))})),Object.keys(i).map((function(e){return i[e]}))}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,o=e.width,n=e.x,r=e.y,i=Math.floor(n/this._sectionSize),s=Math.floor((n+o-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),a=Math.floor((r+t-1)/this._sectionSize),c=[],h=i;h<=s;h++)for(var d=l;d<=a;d++){var u="".concat(h,".").concat(d);this._sections[u]||(this._sections[u]=new ei({height:this._sectionSize,width:this._sectionSize,x:h*this._sectionSize,y:d*this._sectionSize})),c.push(this._sections[u])}return c}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map((function(t){return e._sections[t].toString()}))}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,o=e.index;this._cellMetadata[o]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:o})}))}}]),e}();function ni(e){var t=e.align,o=void 0===t?"auto":t,n=e.cellOffset,r=e.cellSize,i=e.containerSize,s=e.currentOffset,l=n,a=l-i+r;switch(o){case"start":return l;case"end":return a;case"center":return l-(i-r)/2;default:return Math.max(a,Math.min(l,s))}}var ri=function(e){function t(e,o){var n;return Vn(this,t),(n=Qn(this,Jn(t).call(this,e,o)))._cellMetadata=[],n._lastRenderedCellIndices=[],n._cellCache=[],n._isScrollingChange=n._isScrollingChange.bind(Xn(n)),n._setCollectionViewRef=n._setCollectionViewRef.bind(Xn(n)),n}return tr(t,e),Kn(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=rr({},this.props);return r.createElement(Jr,rr({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,o=e.cellSizeAndPositionGetter,n=e.sectionSize,r=[],i=new oi(n),s=0,l=0,a=0;a<t;a++){var c=o({index:a});if(null==c.height||isNaN(c.height)||null==c.width||isNaN(c.width)||null==c.x||isNaN(c.x)||null==c.y||isNaN(c.y))throw Error("Invalid metadata returned for cell ".concat(a,":\n x:").concat(c.x,", y:").concat(c.y,", width:").concat(c.width,", height:").concat(c.height));s=Math.max(s,c.y+c.height),l=Math.max(l,c.x+c.width),r[a]=c,i.registerCell({cellMetadatum:c,index:a})}return{cellMetadata:r,height:s,sectionManager:i,width:l}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,o=e.cellIndex,n=e.height,r=e.scrollLeft,i=e.scrollTop,s=e.width,l=this.props.cellCount;if(o>=0&&o<l){var a=this._cellMetadata[o];r=ni({align:t,cellOffset:a.x,cellSize:a.width,containerSize:s,currentOffset:r,targetIndex:o}),i=ni({align:t,cellOffset:a.y,cellSize:a.height,containerSize:n,currentOffset:i,targetIndex:o})}return{scrollLeft:r,scrollTop:i}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,o=e.height,n=e.isScrolling,r=e.width,i=e.x,s=e.y,l=this.props,a=l.cellGroupRenderer,c=l.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:o,width:r,x:i,y:s}),a({cellCache:this._cellCache,cellRenderer:c,cellSizeAndPositionGetter:function(e){var o=e.index;return t._sectionManager.getCellMetadata({index:o})},indices:this._lastRenderedCellIndices,isScrolling:n})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}]),t}(r.PureComponent);or(ri,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,o=e.cellRenderer,n=e.cellSizeAndPositionGetter,r=e.indices,i=e.isScrolling;return r.map((function(e){var r=n({index:e}),s={index:e,isScrolling:i,key:e,style:{height:r.height,left:r.x,position:"absolute",top:r.y,width:r.width}};return i?(e in t||(t[e]=o(s)),t[e]):o(s)})).filter((function(e){return!!e}))}}),ri.propTypes={};(function(e){function t(e,o){var n;return Vn(this,t),(n=Qn(this,Jn(t).call(this,e,o)))._registerChild=n._registerChild.bind(Xn(n)),n}return tr(t,e),Kn(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,o=t.columnMaxWidth,n=t.columnMinWidth,r=t.columnCount,i=t.width;o===e.columnMaxWidth&&n===e.columnMinWidth&&r===e.columnCount&&i===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,o=e.columnMaxWidth,n=e.columnMinWidth,r=e.columnCount,i=e.width,s=n||1,l=o?Math.min(o,i):i,a=i/r;return a=Math.max(s,a),a=Math.min(l,a),a=Math.floor(a),t({adjustedWidth:Math.min(i,a*r),columnWidth:a,getColumnWidth:function(){return a},registerChild:this._registerChild})}},{key:"_registerChild",value:function(e){if(e&&"function"!=typeof e.recomputeGridSize)throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=e,this._registeredChild&&this._registeredChild.recomputeGridSize()}}]),t}(r.PureComponent)).propTypes={};function ii(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function si(e,t){if(e){if("string"==typeof e)return ii(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ii(e,t):void 0}}function li(e){return function(e){if(Array.isArray(e))return ii(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||si(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.")}()}var ai=function(e){function t(e,o){var n;return Vn(this,t),(n=Qn(this,Jn(t).call(this,e,o)))._loadMoreRowsMemoizer=ur(),n._onRowsRendered=n._onRowsRendered.bind(Xn(n)),n._registerChild=n._registerChild.bind(Xn(n)),n}return tr(t,e),Kn(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=ur(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,o=this.props.loadMoreRows;e.forEach((function(e){var n=o(e);n&&n.then((function(){var o,n,r,i,s;o={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex},n=o.lastRenderedStartIndex,r=o.lastRenderedStopIndex,i=o.startIndex,s=o.stopIndex,i>r||s<n||t._registeredChild&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;o?o.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)}))}))}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,o=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=o,this._doStuff(t,o)}},{key:"_doStuff",value:function(e,t){var o,n=this,r=this.props,i=r.isRowLoaded,s=r.minimumBatchSize,l=r.rowCount,a=r.threshold,c=function(e){for(var t=e.isRowLoaded,o=e.minimumBatchSize,n=e.rowCount,r=e.startIndex,i=e.stopIndex,s=[],l=null,a=null,c=r;c<=i;c++){t({index:c})?null!==a&&(s.push({startIndex:l,stopIndex:a}),l=a=null):(a=c,null===l&&(l=c))}if(null!==a){for(var h=Math.min(Math.max(a,l+o-1),n-1),d=a+1;d<=h&&!t({index:d});d++)a=d;s.push({startIndex:l,stopIndex:a})}if(s.length)for(var u=s[0];u.stopIndex-u.startIndex+1<o&&u.startIndex>0;){var p=u.startIndex-1;if(t({index:p}))break;u.startIndex=p}return s}({isRowLoaded:i,minimumBatchSize:s,rowCount:l,startIndex:Math.max(0,e-a),stopIndex:Math.min(l-1,t+a)}),h=(o=[]).concat.apply(o,li(c.map((function(e){return[e.startIndex,e.stopIndex]}))));this._loadMoreRowsMemoizer({callback:function(){n._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:h}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(r.PureComponent);or(ai,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),ai.propTypes={};var ci,hi,di=(hi=ci=function(e){function t(){var e,o;Vn(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return or(Xn(o=Qn(this,(e=Jn(t)).call.apply(e,[this].concat(r)))),"Grid",void 0),or(Xn(o),"_cellRenderer",(function(e){var t=e.parent,n=e.rowIndex,r=e.style,i=e.isScrolling,s=e.isVisible,l=e.key,a=o.props.rowRenderer,c=Object.getOwnPropertyDescriptor(r,"width");return c&&c.writable&&(r.width="100%"),a({index:n,style:r,isScrolling:i,isVisible:s,key:l,parent:t})})),or(Xn(o),"_setRef",(function(e){o.Grid=e})),or(Xn(o),"_onScroll",(function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,o.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})})),or(Xn(o),"_onScrollToRowCausedUpdate",(function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,o.props.onScrollToRowCausedUpdate)({clientHeight:t,scrollHeight:n,scrollTop:r})})),or(Xn(o),"_onSectionRendered",(function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;(0,o.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:r,stopIndex:i})})),o}return tr(t,e),Kn(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,o=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:o,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:r,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,o=e.noRowsRenderer,n=e.scrollToIndex,i=e.width,s=sr("ReactVirtualized__List",t);return r.createElement(Gr,rr({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:s,columnWidth:i,columnCount:1,noContentRenderer:o,onScroll:this._onScroll,onScrollToTargetCausedUpdate:this._onScrollToRowCausedUpdate,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:n}))}}]),t}(r.PureComponent),or(ci,"propTypes",null),hi);function ui(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i,s,l=[],a=!0,c=!1;try{if(i=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;a=!1}else for(;!(a=(n=i.call(o)).done)&&(l.push(n.value),l.length!==t);a=!0);}catch(e){c=!0,r=e}finally{try{if(!a&&null!=o.return&&(s=o.return(),Object(s)!==s))return}finally{if(c)throw r}}return l}}(e,t)||si(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.")}()}or(di,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},onScrollToRowCausedUpdate:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:Ar,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const pi={ge:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=o+1;t<=o;){var s=t+o>>>1;r(e[s],n)>=0?(i=s,o=s-1):t=s+1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=o+1;t<=o;){var i=t+o>>>1;e[i]>=n?(r=i,o=i-1):t=i+1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)},gt:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=o+1;t<=o;){var s=t+o>>>1;r(e[s],n)>0?(i=s,o=s-1):t=s+1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=o+1;t<=o;){var i=t+o>>>1;e[i]>n?(r=i,o=i-1):t=i+1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)},lt:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=t-1;t<=o;){var s=t+o>>>1;r(e[s],n)<0?(i=s,t=s+1):o=s-1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=t-1;t<=o;){var i=t+o>>>1;e[i]<n?(r=i,t=i+1):o=i-1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)},le:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=t-1;t<=o;){var s=t+o>>>1;r(e[s],n)<=0?(i=s,t=s+1):o=s-1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=t-1;t<=o;){var i=t+o>>>1;e[i]<=n?(r=i,t=i+1):o=i-1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)},eq:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(;t<=o;){var i=t+o>>>1,s=r(e[i],n);if(0===s)return i;s<=0?t=i+1:o=i-1}return-1}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(;t<=o;){var r=t+o>>>1,i=e[r];if(i===n)return r;i<=n?t=r+1:o=r-1}return-1}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)}};var fi=0,mi=1;function gi(e,t,o,n,r){this.mid=e,this.left=t,this.right=o,this.leftPoints=n,this.rightPoints=r,this.count=(t?t.count:0)+(o?o.count:0)+n.length}var vi=gi.prototype;function yi(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function wi(e,t){var o=Oi(t);e.mid=o.mid,e.left=o.left,e.right=o.right,e.leftPoints=o.leftPoints,e.rightPoints=o.rightPoints,e.count=o.count}function Si(e,t){var o=e.intervals([]);o.push(t),wi(e,o)}function bi(e,t){var o=e.intervals([]),n=o.indexOf(t);return n<0?fi:(o.splice(n,1),wi(e,o),mi)}function Ci(e,t,o){for(var n=0;n<e.length&&e[n][0]<=t;++n){var r=o(e[n]);if(r)return r}}function xi(e,t,o){for(var n=e.length-1;n>=0&&e[n][1]>=t;--n){var r=o(e[n]);if(r)return r}}function Ri(e,t){for(var o=0;o<e.length;++o){var n=t(e[o]);if(n)return n}}function _i(e,t){return e-t}function Ti(e,t){var o=e[0]-t[0];return o||e[1]-t[1]}function Ei(e,t){var o=e[1]-t[1];return o||e[0]-t[0]}function Oi(e){if(0===e.length)return null;for(var t=[],o=0;o<e.length;++o)t.push(e[o][0],e[o][1]);t.sort(_i);var n=t[t.length>>1],r=[],i=[],s=[];for(o=0;o<e.length;++o){var l=e[o];l[1]<n?r.push(l):n<l[0]?i.push(l):s.push(l)}var a=s,c=s.slice();return a.sort(Ti),c.sort(Ei),new gi(n,Oi(r),Oi(i),a,c)}function Mi(e){this.root=e}vi.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},vi.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?Si(this,e):this.left.insert(e):this.left=Oi([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Si(this,e):this.right.insert(e):this.right=Oi([e]);else{var o=pi.ge(this.leftPoints,e,Ti),n=pi.ge(this.rightPoints,e,Ei);this.leftPoints.splice(o,0,e),this.rightPoints.splice(n,0,e)}},vi.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(t-1)?bi(this,e):2===(i=this.left.remove(e))?(this.left=null,this.count-=1,mi):(i===mi&&(this.count-=1),i):fi;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?bi(this,e):2===(i=this.right.remove(e))?(this.right=null,this.count-=1,mi):(i===mi&&(this.count-=1),i):fi;if(1===this.count)return this.leftPoints[0]===e?2:fi;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var o=this,n=this.left;n.right;)o=n,n=n.right;if(o===this)n.right=this.right;else{var r=this.left,i=this.right;o.count-=n.count,o.right=n.left,n.left=r,n.right=i}yi(this,n),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?yi(this,this.left):yi(this,this.right);return mi}for(r=pi.ge(this.leftPoints,e,Ti);r<this.leftPoints.length&&this.leftPoints[r][0]===e[0];++r)if(this.leftPoints[r]===e){this.count-=1,this.leftPoints.splice(r,1);for(i=pi.ge(this.rightPoints,e,Ei);i<this.rightPoints.length&&this.rightPoints[i][1]===e[1];++i)if(this.rightPoints[i]===e)return this.rightPoints.splice(i,1),mi}return fi},vi.queryPoint=function(e,t){if(e<this.mid){if(this.left)if(o=this.left.queryPoint(e,t))return o;return Ci(this.leftPoints,e,t)}if(e>this.mid){var o;if(this.right)if(o=this.right.queryPoint(e,t))return o;return xi(this.rightPoints,e,t)}return Ri(this.leftPoints,t)},vi.queryInterval=function(e,t,o){var n;if(e<this.mid&&this.left&&(n=this.left.queryInterval(e,t,o)))return n;if(t>this.mid&&this.right&&(n=this.right.queryInterval(e,t,o)))return n;return t<this.mid?Ci(this.leftPoints,t,o):e>this.mid?xi(this.rightPoints,e,o):Ri(this.leftPoints,o)};var Ii=Mi.prototype;Ii.insert=function(e){this.root?this.root.insert(e):this.root=new gi(e[0],null,null,[e],[e])},Ii.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),t!==fi}return!1},Ii.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},Ii.queryInterval=function(e,t,o){if(e<=t&&this.root)return this.root.queryInterval(e,t,o)},Object.defineProperty(Ii,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(Ii,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var zi,ki,Gi=function(){function e(){var t;Vn(this,e),or(this,"_columnSizeMap",{}),or(this,"_intervalTree",t&&0!==t.length?new Mi(Oi(t)):new Mi(null)),or(this,"_leftMap",{})}return Kn(e,[{key:"estimateTotalHeight",value:function(e,t,o){var n=e-this.count;return this.tallestColumnSize+Math.ceil(n/t)*o}},{key:"range",value:function(e,t,o){var n=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t=ui(e,3),r=t[0],i=(t[1],t[2]);return o(i,n._leftMap[i],r)}))}},{key:"setPosition",value:function(e,t,o,n){this._intervalTree.insert([o,o+n,e]),this._leftMap[e]=t;var r=this._columnSizeMap,i=r[t];r[t]=void 0===i?o+n:Math.max(i,o+n)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var n=e[o];t=0===t?n:Math.min(t,n)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var n=e[o];t=Math.max(t,n)}return t}}]),e}();function Pi(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Ai(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Pi(o,!0).forEach((function(t){or(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Pi(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Hi=(ki=zi=function(e){function t(){var e,o;Vn(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return or(Xn(o=Qn(this,(e=Jn(t)).call.apply(e,[this].concat(r)))),"state",{isScrolling:!1,scrollTop:0}),or(Xn(o),"_debounceResetIsScrollingId",void 0),or(Xn(o),"_invalidateOnUpdateStartIndex",null),or(Xn(o),"_invalidateOnUpdateStopIndex",null),or(Xn(o),"_positionCache",new Gi),or(Xn(o),"_startIndex",null),or(Xn(o),"_startIndexMemoized",null),or(Xn(o),"_stopIndex",null),or(Xn(o),"_stopIndexMemoized",null),or(Xn(o),"_debounceResetIsScrollingCallback",(function(){o.setState({isScrolling:!1})})),or(Xn(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),or(Xn(o),"_onScroll",(function(e){var t=o.props.height,n=e.currentTarget.scrollTop,r=Math.min(Math.max(0,o._getEstimatedTotalHeight()-t),n);n===r&&(o._debounceResetIsScrolling(),o.state.scrollTop!==r&&o.setState({isScrolling:!0,scrollTop:r}))})),o}return tr(t,e),Kn(t,[{key:"clearCellPositions",value:function(){this._positionCache=new Gi,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;null===this._invalidateOnUpdateStartIndex?(this._invalidateOnUpdateStartIndex=t,this._invalidateOnUpdateStopIndex=t):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,t),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,t))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new Gi,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(e,t){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==e.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&Tr(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,o=this.props,n=o.autoHeight,i=o.cellCount,s=o.cellMeasurerCache,l=o.cellRenderer,a=o.className,c=o.height,h=o.id,d=o.keyMapper,u=o.overscanByPixels,p=o.role,f=o.style,m=o.tabIndex,g=o.width,v=o.rowDirection,y=this.state,w=y.isScrolling,S=y.scrollTop,b=[],C=this._getEstimatedTotalHeight(),x=this._positionCache.shortestColumnSize,R=this._positionCache.count,_=0;if(this._positionCache.range(Math.max(0,S-u),c+2*u,(function(o,n,r){var i;void 0===e?(_=o,e=o):(_=Math.min(_,o),e=Math.max(e,o)),b.push(l({index:o,isScrolling:w,key:d(o),parent:t,style:(i={height:s.getHeight(o)},or(i,"ltr"===v?"left":"right",n),or(i,"position","absolute"),or(i,"top",r),or(i,"width",s.getWidth(o)),i)}))})),x<S+c+u&&R<i)for(var T=Math.min(i-R,Math.ceil((S+c+u-x)/s.defaultHeight*g/s.defaultWidth)),E=R;E<R+T;E++)e=E,b.push(l({index:E,isScrolling:w,key:d(E),parent:this,style:{width:s.getWidth(E)}}));return this._startIndex=_,this._stopIndex=e,r.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:sr("ReactVirtualized__Masonry",a),id:h,onScroll:this._onScroll,role:p,style:Ai({boxSizing:"border-box",direction:"ltr",height:n?"auto":c,overflowX:"hidden",overflowY:C<c?"hidden":"auto",position:"relative",width:g,WebkitOverflowScrolling:"touch",willChange:"transform"},f),tabIndex:m},r.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:C,maxWidth:"100%",maxHeight:C,overflow:"hidden",pointerEvents:w?"none":"",position:"relative"}},b))}},{key:"_checkInvalidateOnUpdate",value:function(){if("number"==typeof this._invalidateOnUpdateStartIndex){var e=this._invalidateOnUpdateStartIndex,t=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(e,t),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var e=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&Tr(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=Er(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,o=e.cellMeasurerCache,n=e.width,r=Math.max(1,Math.floor(n/o.defaultWidth));return this._positionCache.estimateTotalHeight(t,r,o.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,o=e.onScroll,n=this.state.scrollTop;this._onScrollMemoized!==n&&(o({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:n}),this._onScrollMemoized=n)}},{key:"_invokeOnCellsRenderedCallback",value:function(){this._startIndexMemoized===this._startIndex&&this._stopIndexMemoized===this._stopIndex||((0,this.props.onCellsRendered)({startIndex:this._startIndex,stopIndex:this._stopIndex}),this._startIndexMemoized=this._startIndex,this._stopIndexMemoized=this._stopIndex)}},{key:"_populatePositionCache",value:function(e,t){for(var o=this.props,n=o.cellMeasurerCache,r=o.cellPositioner,i=e;i<=t;i++){var s=r(i),l=s.left,a=s.top;this._positionCache.setPosition(i,l,a,n.getHeight(i))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}]),t}(r.PureComponent),or(zi,"propTypes",null),ki);function Li(){}or(Hi,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:Li,onScroll:Li,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"});(0,nr.polyfill)(Hi);var Di=function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Vn(this,e),or(this,"_cellMeasurerCache",void 0),or(this,"_columnIndexOffset",void 0),or(this,"_rowIndexOffset",void 0),or(this,"columnWidth",(function(e){var o=e.index;t._cellMeasurerCache.columnWidth({index:o+t._columnIndexOffset})})),or(this,"rowHeight",(function(e){var o=e.index;t._cellMeasurerCache.rowHeight({index:o+t._rowIndexOffset})}));var n=o.cellMeasurerCache,r=o.columnIndexOffset,i=void 0===r?0:r,s=o.rowIndexOffset,l=void 0===s?0:s;this._cellMeasurerCache=n,this._columnIndexOffset=i,this._rowIndexOffset=l}return Kn(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,o,n){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,o,n)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function Ni(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Wi(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ni(o,!0).forEach((function(t){or(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ni(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Bi=20,Fi=function(e){function t(e,o){var n;Vn(this,t),or(Xn(n=Qn(this,Jn(t).call(this,e,o))),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),or(Xn(n),"_deferredInvalidateColumnIndex",null),or(Xn(n),"_deferredInvalidateRowIndex",null),or(Xn(n),"_bottomLeftGridRef",(function(e){n._bottomLeftGrid=e})),or(Xn(n),"_bottomRightGridRef",(function(e){n._bottomRightGrid=e})),or(Xn(n),"_cellRendererBottomLeftGrid",(function(e){var t=e.rowIndex,o=ar(e,["rowIndex"]),i=n.props,s=i.cellRenderer,l=i.fixedRowCount;return t===i.rowCount-l?r.createElement("div",{key:o.key,style:Wi({},o.style,{height:Bi})}):s(Wi({},o,{parent:Xn(n),rowIndex:t+l}))})),or(Xn(n),"_cellRendererBottomRightGrid",(function(e){var t=e.columnIndex,o=e.rowIndex,r=ar(e,["columnIndex","rowIndex"]),i=n.props,s=i.cellRenderer,l=i.fixedColumnCount,a=i.fixedRowCount;return s(Wi({},r,{columnIndex:t+l,parent:Xn(n),rowIndex:o+a}))})),or(Xn(n),"_cellRendererTopRightGrid",(function(e){var t=e.columnIndex,o=ar(e,["columnIndex"]),i=n.props,s=i.cellRenderer,l=i.columnCount,a=i.fixedColumnCount;return t===l-a?r.createElement("div",{key:o.key,style:Wi({},o.style,{width:Bi})}):s(Wi({},o,{columnIndex:t+a,parent:Xn(n)}))})),or(Xn(n),"_columnWidthRightGrid",(function(e){var t=e.index,o=n.props,r=o.columnCount,i=o.fixedColumnCount,s=o.columnWidth,l=n.state,a=l.scrollbarSize;return l.showHorizontalScrollbar&&t===r-i?a:"function"==typeof s?s({index:t+i}):s})),or(Xn(n),"_onScroll",(function(e){var t=e.scrollLeft,o=e.scrollTop;n.setState({scrollLeft:t,scrollTop:o});var r=n.props.onScroll;r&&r(e)})),or(Xn(n),"_onScrollbarPresenceChange",(function(e){var t=e.horizontal,o=e.size,r=e.vertical,i=n.state,s=i.showHorizontalScrollbar,l=i.showVerticalScrollbar;if(t!==s||r!==l){n.setState({scrollbarSize:o,showHorizontalScrollbar:t,showVerticalScrollbar:r});var a=n.props.onScrollbarPresenceChange;"function"==typeof a&&a({horizontal:t,size:o,vertical:r})}})),or(Xn(n),"_onScrollLeft",(function(e){var t=e.scrollLeft;n._onScroll({scrollLeft:t,scrollTop:n.state.scrollTop})})),or(Xn(n),"_onScrollTop",(function(e){var t=e.scrollTop;n._onScroll({scrollTop:t,scrollLeft:n.state.scrollLeft})})),or(Xn(n),"_rowHeightBottomGrid",(function(e){var t=e.index,o=n.props,r=o.fixedRowCount,i=o.rowCount,s=o.rowHeight,l=n.state,a=l.scrollbarSize;return l.showVerticalScrollbar&&t===i-r?a:"function"==typeof s?s({index:t+r}):s})),or(Xn(n),"_topLeftGridRef",(function(e){n._topLeftGrid=e})),or(Xn(n),"_topRightGridRef",(function(e){n._topRightGrid=e}));var i=e.deferredMeasurementCache,s=e.fixedColumnCount,l=e.fixedRowCount;return n._maybeCalculateCachedStyles(!0),i&&(n._deferredMeasurementCacheBottomLeftGrid=l>0?new Di({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:l}):i,n._deferredMeasurementCacheBottomRightGrid=s>0||l>0?new Di({cellMeasurerCache:i,columnIndexOffset:s,rowIndexOffset:l}):i,n._deferredMeasurementCacheTopRightGrid=s>0?new Di({cellMeasurerCache:i,columnIndexOffset:s,rowIndexOffset:0}):i),n}return tr(t,e),Kn(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n,i=this.props,s=i.fixedColumnCount,l=i.fixedRowCount,a=Math.max(0,o-s),c=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:c}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:a,rowIndex:c}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:a,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,o=e.scrollTop;if(t>0||o>0){var n={};t>0&&(n.scrollLeft=t),o>0&&(n.scrollTop=o),this.setState(n)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,o=e.onSectionRendered,n=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),s=ar(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var l=this.state,a=l.scrollLeft,c=l.scrollTop;return r.createElement("div",{style:this._containerOuterStyle},r.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(s),this._renderTopRightGrid(Wi({},s,{onScroll:t,scrollLeft:a}))),r.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Wi({},s,{onScroll:t,scrollTop:c})),this._renderBottomRightGrid(Wi({},s,{onScroll:t,onSectionRendered:o,scrollLeft:a,scrollToColumn:n,scrollToRow:i,scrollTop:c}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,o=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof o){for(var n=0,r=0;r<t;r++)n+=o({index:r});this._leftGridWidth=n}else this._leftGridWidth=o*t;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,o=e.rowHeight;if(null==this._topGridHeight)if("function"==typeof o){for(var n=0,r=0;r<t;r++)n+=o({index:r});this._topGridHeight=n}else this._topGridHeight=o*t;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(e){var t=this.props,o=t.columnWidth,n=t.enableFixedColumnScroll,r=t.enableFixedRowScroll,i=t.height,s=t.fixedColumnCount,l=t.fixedRowCount,a=t.rowHeight,c=t.style,h=t.styleBottomLeftGrid,d=t.styleBottomRightGrid,u=t.styleTopLeftGrid,p=t.styleTopRightGrid,f=t.width,m=e||i!==this._lastRenderedHeight||f!==this._lastRenderedWidth,g=e||o!==this._lastRenderedColumnWidth||s!==this._lastRenderedFixedColumnCount,v=e||l!==this._lastRenderedFixedRowCount||a!==this._lastRenderedRowHeight;(e||m||c!==this._lastRenderedStyle)&&(this._containerOuterStyle=Wi({height:i,overflow:"visible",width:f},c)),(e||m||v)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:f},this._containerBottomStyle={height:i-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:f}),(e||h!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=Wi({left:0,overflowX:"hidden",overflowY:n?"auto":"hidden",position:"absolute"},h)),(e||g||d!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=Wi({left:this._getLeftGridWidth(this.props),position:"absolute"},d)),(e||u!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=Wi({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},u)),(e||g||p!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=Wi({left:this._getLeftGridWidth(this.props),overflowX:r?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},p)),this._lastRenderedColumnWidth=o,this._lastRenderedFixedColumnCount=s,this._lastRenderedFixedRowCount=l,this._lastRenderedHeight=i,this._lastRenderedRowHeight=a,this._lastRenderedStyle=c,this._lastRenderedStyleBottomLeftGrid=h,this._lastRenderedStyleBottomRightGrid=d,this._lastRenderedStyleTopLeftGrid=u,this._lastRenderedStyleTopRightGrid=p,this._lastRenderedWidth=f}},{key:"_prepareForRender",value:function(){this._lastRenderedColumnWidth===this.props.columnWidth&&this._lastRenderedFixedColumnCount===this.props.fixedColumnCount||(this._leftGridWidth=null),this._lastRenderedFixedRowCount===this.props.fixedRowCount&&this._lastRenderedRowHeight===this.props.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}},{key:"_renderBottomLeftGrid",value:function(e){var t=e.enableFixedColumnScroll,o=e.fixedColumnCount,n=e.fixedRowCount,i=e.rowCount,s=e.hideBottomLeftGridScrollbar,l=this.state.showVerticalScrollbar;if(!o)return null;var a=l?1:0,c=this._getBottomGridHeight(e),h=this._getLeftGridWidth(e),d=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,u=s?h+d:h,p=r.createElement(Gr,rr({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:o,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:c,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,i-n)+a,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:u}));return s?r.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:Wi({},this._bottomLeftGridStyle,{height:c,width:h,overflowY:"hidden"})},p):p}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,o=e.fixedColumnCount,n=e.fixedRowCount,i=e.rowCount,s=e.scrollToColumn,l=e.scrollToRow;return r.createElement(Gr,rr({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-o),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,i-n),rowHeight:this._rowHeightBottomGrid,scrollToColumn:s-o,scrollToRow:l-n,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,o=e.fixedRowCount;return t&&o?r.createElement(Gr,rr({},e,{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:o,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)})):null}},{key:"_renderTopRightGrid",value:function(e){var t=e.columnCount,o=e.enableFixedRowScroll,n=e.fixedColumnCount,i=e.fixedRowCount,s=e.scrollLeft,l=e.hideTopRightGridScrollbar,a=this.state,c=a.showHorizontalScrollbar,h=a.scrollbarSize;if(!i)return null;var d=c?1:0,u=this._getTopGridHeight(e),p=this._getRightGridWidth(e),f=c?h:0,m=u,g=this._topRightGridStyle;l&&(m=u+f,g=Wi({},this._topRightGridStyle,{left:0}));var v=r.createElement(Gr,rr({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-n)+d,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:m,onScroll:o?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:i,scrollLeft:s,style:g,tabIndex:null,width:p}));return l?r.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:Wi({},this._topRightGridStyle,{height:u,width:p,overflowX:"hidden"})},v):v}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft&&e.scrollLeft>=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(r.PureComponent);or(Fi,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),Fi.propTypes={},(0,nr.polyfill)(Fi);(function(e){function t(e,o){var n;return Vn(this,t),(n=Qn(this,Jn(t).call(this,e,o))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},n._onScroll=n._onScroll.bind(Xn(n)),n}return tr(t,e),Kn(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.clientHeight,n=t.clientWidth,r=t.scrollHeight,i=t.scrollLeft,s=t.scrollTop,l=t.scrollWidth;return e({clientHeight:o,clientWidth:n,onScroll:this._onScroll,scrollHeight:r,scrollLeft:i,scrollTop:s,scrollWidth:l})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.clientWidth,n=e.scrollHeight,r=e.scrollLeft,i=e.scrollTop,s=e.scrollWidth;this.setState({clientHeight:t,clientWidth:o,scrollHeight:n,scrollLeft:r,scrollTop:i,scrollWidth:s})}}]),t}(r.PureComponent)).propTypes={};function ji(e){var t=e.className,o=e.columns,n=e.style;return r.createElement("div",{className:t,role:"row",style:n},o)}ji.propTypes=null;const Ui={ASC:"ASC",DESC:"DESC"};function Zi(e){var t=e.sortDirection,o=sr("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===Ui.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===Ui.DESC});return r.createElement("svg",{className:o,width:18,height:18,viewBox:"0 0 24 24"},t===Ui.ASC?r.createElement("path",{d:"M7 14l5-5 5 5z"}):r.createElement("path",{d:"M7 10l5 5 5-5z"}),r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function Vi(e){var t=e.dataKey,o=e.label,n=e.sortBy,i=e.sortDirection,s=n===t,l=[r.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof o?o:null},o)];return s&&l.push(r.createElement(Zi,{key:"SortIndicator",sortDirection:i})),l}function $i(e){var t=e.className,o=e.columns,n=e.index,i=e.key,s=e.onRowClick,l=e.onRowDoubleClick,a=e.onRowMouseOut,c=e.onRowMouseOver,h=e.onRowRightClick,d=e.rowData,u=e.style,p={"aria-rowindex":n+1};return(s||l||a||c||h)&&(p["aria-label"]="row",p.tabIndex=0,s&&(p.onClick=function(e){return s({event:e,index:n,rowData:d})}),l&&(p.onDoubleClick=function(e){return l({event:e,index:n,rowData:d})}),a&&(p.onMouseOut=function(e){return a({event:e,index:n,rowData:d})}),c&&(p.onMouseOver=function(e){return c({event:e,index:n,rowData:d})}),h&&(p.onContextMenu=function(e){return h({event:e,index:n,rowData:d})})),r.createElement("div",rr({},p,{className:t,key:i,role:"row",style:u}),o)}Zi.propTypes={},Vi.propTypes=null,$i.propTypes=null;var Yi=function(e){function t(){return Vn(this,t),Qn(this,Jn(t).apply(this,arguments))}return tr(t,e),t}(r.Component);function qi(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Ki(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?qi(o,!0).forEach((function(t){or(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):qi(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}or(Yi,"defaultProps",{cellDataGetter:function(e){var t=e.dataKey,o=e.rowData;return"function"==typeof o.get?o.get(t):o[t]},cellRenderer:function(e){var t=e.cellData;return null==t?"":String(t)},defaultSortDirection:Ui.ASC,flexGrow:0,flexShrink:1,headerRenderer:Vi,style:{}}),Yi.propTypes={};var Xi=function(e){function t(e){var o;return Vn(this,t),(o=Qn(this,Jn(t).call(this,e))).state={scrollbarWidth:0},o._createColumn=o._createColumn.bind(Xn(o)),o._createRow=o._createRow.bind(Xn(o)),o._onScroll=o._onScroll.bind(Xn(o)),o._onSectionRendered=o._onSectionRendered.bind(Xn(o)),o._setRef=o._setRef.bind(Xn(o)),o}return tr(t,e),Kn(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,o=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:o}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:r,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var e=(0,pn.findDOMNode)(this.Grid),t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,o=t.children,n=t.className,i=t.disableHeader,s=t.gridClassName,l=t.gridStyle,a=t.headerHeight,c=t.headerRowRenderer,h=t.height,d=t.id,u=t.noRowsRenderer,p=t.rowClassName,f=t.rowStyle,m=t.scrollToIndex,g=t.style,v=t.width,y=this.state.scrollbarWidth,w=i?h:h-a,S="function"==typeof p?p({index:-1}):p,b="function"==typeof f?f({index:-1}):f;return this._cachedColumnStyles=[],r.Children.toArray(o).forEach((function(t,o){var n=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[o]=Ki({overflow:"hidden"},n)})),r.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":r.Children.toArray(o).length,"aria-rowcount":this.props.rowCount,className:sr("ReactVirtualized__Table",n),id:d,role:"grid",style:g},!i&&c({className:sr("ReactVirtualized__Table__headerRow",S),columns:this._getHeaderColumns(),style:Ki({height:a,overflow:"hidden",paddingRight:y,width:v},b)}),r.createElement(Gr,rr({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:sr("ReactVirtualized__Table__Grid",s),cellRenderer:this._createRow,columnWidth:v,columnCount:1,height:w,id:void 0,noContentRenderer:u,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:y,scrollToRow:m,style:Ki({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,o=e.columnIndex,n=e.isScrolling,i=e.parent,s=e.rowData,l=e.rowIndex,a=this.props.onColumnClick,c=t.props,h=c.cellDataGetter,d=c.cellRenderer,u=c.className,p=c.columnData,f=c.dataKey,m=c.id,g=d({cellData:h({columnData:p,dataKey:f,rowData:s}),columnData:p,columnIndex:o,dataKey:f,isScrolling:n,parent:i,rowData:s,rowIndex:l}),v=this._cachedColumnStyles[o],y="string"==typeof g?g:null;return r.createElement("div",{"aria-colindex":o+1,"aria-describedby":m,className:sr("ReactVirtualized__Table__rowColumn",u),key:"Row"+l+"-Col"+o,onClick:function(e){a&&a({columnData:p,dataKey:f,event:e})},role:"gridcell",style:v,title:y},g)}},{key:"_createHeader",value:function(e){var t,o,n,i,s,l=e.column,a=e.index,c=this.props,h=c.headerClassName,d=c.headerStyle,u=c.onHeaderClick,p=c.sort,f=c.sortBy,m=c.sortDirection,g=l.props,v=g.columnData,y=g.dataKey,w=g.defaultSortDirection,S=g.disableSort,b=g.headerRenderer,C=g.id,x=g.label,R=!S&&p,_=sr("ReactVirtualized__Table__headerColumn",h,l.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:R}),T=this._getFlexStyleForColumn(l,Ki({},d,{},l.props.headerStyle)),E=b({columnData:v,dataKey:y,disableSort:S,label:x,sortBy:f,sortDirection:m});if(R||u){var O=f!==y?w:m===Ui.DESC?Ui.ASC:Ui.DESC,M=function(e){R&&p({defaultSortDirection:w,event:e,sortBy:y,sortDirection:O}),u&&u({columnData:v,dataKey:y,event:e})};s=l.props["aria-label"]||x||y,i="none",n=0,t=M,o=function(e){"Enter"!==e.key&&" "!==e.key||M(e)}}return f===y&&(i=m===Ui.ASC?"ascending":"descending"),r.createElement("div",{"aria-label":s,"aria-sort":i,className:_,id:C,key:"Header-Col"+a,onClick:t,onKeyDown:o,role:"columnheader",style:T,tabIndex:n},E)}},{key:"_createRow",value:function(e){var t=this,o=e.rowIndex,n=e.isScrolling,i=e.key,s=e.parent,l=e.style,a=this.props,c=a.children,h=a.onRowClick,d=a.onRowDoubleClick,u=a.onRowRightClick,p=a.onRowMouseOver,f=a.onRowMouseOut,m=a.rowClassName,g=a.rowGetter,v=a.rowRenderer,y=a.rowStyle,w=this.state.scrollbarWidth,S="function"==typeof m?m({index:o}):m,b="function"==typeof y?y({index:o}):y,C=g({index:o}),x=r.Children.toArray(c).map((function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:n,parent:s,rowData:C,rowIndex:o,scrollbarWidth:w})})),R=sr("ReactVirtualized__Table__row",S),_=Ki({},l,{height:this._getRowHeight(o),overflow:"hidden",paddingRight:w},b);return v({className:R,columns:x,index:o,isScrolling:n,key:i,onRowClick:h,onRowDoubleClick:d,onRowRightClick:u,onRowMouseOver:p,onRowMouseOut:f,rowData:C,style:_})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),n=Ki({},t,{flex:o,msFlex:o,WebkitFlex:o});return e.props.maxWidth&&(n.maxWidth=e.props.maxWidth),e.props.minWidth&&(n.minWidth=e.props.minWidth),n}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,o=t.children;return(t.disableHeader?[]:r.Children.toArray(o)).map((function(t,o){return e._createHeader({column:t,index:o})}))}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.scrollHeight,n=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:o,scrollTop:n})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,o=e.rowOverscanStopIndex,n=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:o,startIndex:n,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(r.PureComponent);or(Xi,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:Ar,overscanRowCount:10,rowRenderer:$i,headerRowRenderer:ji,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),Xi.propTypes={};var Qi=[],Ji=null,es=null;function ts(){es&&(es=null,document.body&&null!=Ji&&(document.body.style.pointerEvents=Ji),Ji=null)}function os(){ts(),Qi.forEach((function(e){return e.__resetIsScrolling()}))}function ns(e){e.currentTarget===window&&null==Ji&&document.body&&(Ji=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){es&&Tr(es);var e=0;Qi.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),es=Er(os,e)}(),Qi.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function rs(e,t){Qi.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",ns),Qi.push(e)}function is(e,t){(Qi=Qi.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",ns),es&&(Tr(es),ts()))}var ss,ls,as=function(e){return e===window},cs=function(e){return e.getBoundingClientRect()};function hs(e,t){if(e){if(as(e)){var o=window,n=o.innerHeight,r=o.innerWidth;return{height:"number"==typeof n?n:0,width:"number"==typeof r?r:0}}return cs(e)}return{height:t.serverHeight,width:t.serverWidth}}function ds(e){return as(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function us(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}var ps=function(){return"undefined"!=typeof window?window:void 0},fs=(ls=ss=function(e){function t(){var e,o;Vn(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return or(Xn(o=Qn(this,(e=Jn(t)).call.apply(e,[this].concat(r)))),"_window",ps()),or(Xn(o),"_isMounted",!1),or(Xn(o),"_positionFromTop",0),or(Xn(o),"_positionFromLeft",0),or(Xn(o),"_detectElementResize",void 0),or(Xn(o),"_child",void 0),or(Xn(o),"state",function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?us(o,!0).forEach((function(t){or(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):us(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({},hs(o.props.scrollElement,o.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),or(Xn(o),"_registerChild",(function(e){e&&Element,o._child=e,o.updatePosition()})),or(Xn(o),"_onChildScroll",(function(e){var t=e.scrollTop;if(o.state.scrollTop!==t){var n=o.props.scrollElement;n&&("function"==typeof n.scrollTo?n.scrollTo(0,t+o._positionFromTop):n.scrollTop=t+o._positionFromTop)}})),or(Xn(o),"_registerResizeListener",(function(e){e===window?window.addEventListener("resize",o._onResize,!1):o._detectElementResize.addResizeListener(e,o._onResize)})),or(Xn(o),"_unregisterResizeListener",(function(e){e===window?window.removeEventListener("resize",o._onResize,!1):e&&o._detectElementResize.removeResizeListener(e,o._onResize)})),or(Xn(o),"_onResize",(function(){o.updatePosition()})),or(Xn(o),"__handleWindowScrollEvent",(function(){if(o._isMounted){var e=o.props.onScroll,t=o.props.scrollElement;if(t){var n=ds(t),r=Math.max(0,n.left-o._positionFromLeft),i=Math.max(0,n.top-o._positionFromTop);o.setState({isScrolling:!0,scrollLeft:r,scrollTop:i}),e({scrollLeft:r,scrollTop:i})}}})),or(Xn(o),"__resetIsScrolling",(function(){o.setState({isScrolling:!1})})),o}return tr(t,e),Kn(t,[{key:"updatePosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,o=this.state,n=o.height,r=o.width,i=this._child||pn.findDOMNode(this);if(i instanceof Element&&e){var s=function(e,t){if(as(t)&&document.documentElement){var o=document.documentElement,n=cs(e),r=cs(o);return{top:n.top-r.top,left:n.left-r.left}}var i=ds(t),s=cs(e),l=cs(t);return{top:s.top+i.top-l.top,left:s.left+i.left-l.left}}(i,e);this._positionFromTop=s.top,this._positionFromLeft=s.left}var l=hs(e,this.props);n===l.height&&r===l.width||(this.setState({height:l.height,width:l.width}),t({height:l.height,width:l.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=Wr(),this.updatePosition(e),e&&(rs(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var o=this.props.scrollElement,n=e.scrollElement;n!==o&&null!=n&&null!=o&&(this.updatePosition(o),is(this,n),rs(this,o),this._unregisterResizeListener(n),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(is(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.isScrolling,n=t.scrollTop,r=t.scrollLeft,i=t.height,s=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:o,scrollLeft:r,scrollTop:n,width:s})}}]),t}(r.PureComponent),or(ss,"propTypes",null),ls);or(fs,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:ps(),serverHeight:0,serverWidth:0});var ms=function({children:e,className:t,height:o,heightAdjustment:n,graphZoneType:r,scrollTop:s,style:l}){const a=Go[r].listId,c=document.getElementById(a),h=c?.scrollHeight||0;let d=o-28;void 0!==s&&(d=Number(l.top)-s,c&&h-o-s<0&&(d=o-n-28));const u={top:d,zIndex:2},p=i().createElement("span",{className:"absolute",style:u},e);return i().createElement("div",{className:t,style:l},c?fn().createPortal(p,document.getElementById("graph-container")):p)};function gs({inline:e,getExternalIcon:t,message:o,size:n=100,useSimpleSpinner:r}){const s=me()("loading-spinner",{"inline-block":e,ml2:e,"shrink-0":e}),l=me()("spinner","mr1",{"inline-block":e}),a={height:n,width:n},c=me()("message",{"inline-block":e,mx2:e}),h=r?i().createElement("span",{className:l,style:a},t("loading")):i().createElement("div",{className:l,style:a},i().createElement("img",{className:"ring outer",src:"../../../images/spinner-outer-ring.svg",style:a}),i().createElement("img",{className:"ring inner",src:"../../../images/spinner-inner-ring.svg",style:a}),i().createElement("img",{className:"bg-img",src:"../../../images/spinner-kraken.svg",style:a}));return i().createElement("div",{className:s},h,o&&i().createElement("div",{className:c},o))}class vs extends i().Component{render(){const{cssVariables:e,currentCommits:t,graphZoneType:o,hasMoreCommits:n,height:r,getExternalIcon:s,isLoadingRows:l,scrollTop:a,style:c,translate:h,zoneContentWidth:d,zoneWidth:u}=this.props,p=parseInt(e["--scrollable-scrollbar-thickness"].trim(),10),f=Number.isNaN(p)?0:p,m=d>u?f:0,g=i().createElement(gs,{className:"loading-spinner",getExternalIcon:s,size:20,useSimpleSpinner:!0}),v=0!==(t>0?t:0)||n?null:i().createElement(i().Fragment,null,h("Graph-NoCommits")),y=i().createElement("div",{className:"graph-adjust-commit-count p1"},l?i().createElement("div",{className:"flex items-center"},i().createElement("span",{style:{paddingRight:"5px"}},g)):v);return i().createElement(ms,{graphZoneType:o,height:r,heightAdjustment:m,scrollTop:a,style:c},y)}}var ys=vs;function ws({rowCount:e,cellRenderersByIds:t,columnIndex:o,cssVariables:n,enableResizer:r,getExternalIcon:s,getKeyForCell:l,graphHeight:a,graphWidth:c,graphZoneType:h,graphZones:d,hasMoreCommits:u,isLoadingRows:p,onResize:f,onResizeEnd:m,onResizeFromPropChange:g,onScroll:v,onScrollToRowCausedUpdate:y,onZoneEnter:w,scrollLeft:S,scrollToAlignment:b,scrollToIndex:C,scrollTop:x,smartCellRangeRenderer:R,translate:_}){const T=Xo(h,d);if(!T)return null;const E=qo(h,d),O=Xo(Ro,d),M=O?O.contentWidth:0,I=O?O.currentWidth:0,z=h===Ro?me()("graph-panel","horizontal_scrollbar","react-virtualized-list"):me()("graph-panel","react-virtualized-list",h===xo?"z3":null,E?"vertical_scrollbar":null,{"pad-for-horizontal-scrollbar":!!M&&M>I}),k=h===Ro?{position:"static"}:void 0,G=e=>v(h,e,c,a,u),P=u||p||0===e,A=e+(P?1:0),H=(r,d,f,m,g,v,w)=>i().createElement(Gr,{autoContainerWidth:!0,cellRangeRenderer:R,cellRenderer:c=>((r,c)=>{if(c.rowIndex>e-1)return P&&0===o?i().createElement(ys,{cssVariables:n,currentCommits:e-1,getExternalIcon:s,graphZoneType:h,hasMoreCommits:u,height:a,isLoadingRows:p,key:l(c.rowIndex),scrollTop:x,style:c.style,translate:_,zoneContentWidth:M||0,zoneWidth:I}):void 0;const d={...c,style:{...c.style}};Co===r&&(d.style.top=Number(c.style.top)-x);const f=t[r];return f?f(d):void 0})(r,c),className:f,columnCount:1,columnWidth:w,containerStyle:m,height:a,id:d,isScrolling:!1,key:d,onScroll:G,onScrollToTargetCausedUpdate:y?e=>y(h,e,c,a,u):void 0,overscanRowCount:0,rowCount:A,rowHeight:Xt,scrollLeft:S,scrollToAlignment:b,scrollTop:x,scrollToRow:C,style:g,tabIndex:null,width:v}),L=H(T.type,T.listId,z,k,{position:"absolute"},T.currentWidth,T.type===Ro&&e>0?T.contentWidth||0:T.currentWidth),D=E?H(Co,"timeline-column","graph-panel react-virtualized-list timeline-column",{overflow:"visible",zIndex:3},{position:"absolute",right:0,overflow:"visible",zIndex:3},1,1):void 0,N=i().createElement("div",{onMouseEnter:w},L,D);return E?N:i().createElement(qt,{enable:r,height:a,id:`${h}Column`,key:`${h}Column`,onResize:f?e=>f(T,e):void 0,onResizeEnd:m?e=>m(T,e):void 0,onResizeFromPropChange:g?e=>g(T,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z1",width:T.currentWidth,widthConstraints:Jo(h,d,c)},N)}function Ss(e,t,o){const n=t*Xt,{shape:r}=ko[e],i=zo[r];if(!i)return{height:0,offset:0};const{baseHeight:s,minHeight:l,maxHeight:a}=i;let c=s*(o/n);void 0!==l&&c<l&&(c=l),void 0!==a&&c>a&&(c=a);const h=Xt*(o/n);return{height:c,offset:c>=h?0:(h-c)/2}}function bs(e,t,o){return e*Xt/(o*Xt)*t}class Cs extends i().PureComponent{canvas;componentDidMount(){this.updateCanvas()}componentWillReceiveProps(e){e.markerRowIndices===this.props.markerRowIndices&&e.totalRows===this.props.totalRows&&e.viewportHeight===this.props.viewportHeight&&e.viewportWidth===this.props.viewportWidth&&e.markerColors===this.props.markerColors&&e.enabledScrollMarkerTypes===this.props.enabledScrollMarkerTypes||this.updateCanvas()}updateCanvas(){const{enabledScrollMarkerTypes:e,viewportHeight:t,markerRowIndices:o,markerColors:n,scrollWidth:r,totalRows:i}=this.props,s=this.canvas.getContext("2d"),l=(r&&!Number.isNaN(r)?r:14)/3;s.clearRect(0,0,s.canvas.width,s.canvas.height);for(const[r,a]of Object.entries(ko)){if(!e.includes(r))continue;const c=o[r]||[],h=n[r],d=a.lanes;h&&c.length&&(s.fillStyle=h,c.forEach((e=>{const{height:o,offset:n}=Ss(r,i,t);d.length&&s.fillRect(d[0]*l,bs(e,t,i)+n,l*d.length,o)})))}}render(){const{scrollWidth:e,viewportWidth:t,viewportHeight:o}=this.props,n=e&&!Number.isNaN(e)?e:14;return i().createElement("div",{style:{pointerEvents:"none",position:"absolute",left:t-n,zIndex:9999}},i().createElement("canvas",{height:o,ref:e=>{this.canvas=e},width:n}))}}const xs={"Graph-IsLoadingRows":"Loading...","Graph-NoCommits":"No commits","Graph-WorkInProgress":"Work in progress","GraphHeader-BranchTag":"BRANCH / TAG","GraphHeader-Changes":"CHANGES","GraphHeader-CommitAuthor":"AUTHOR","GraphHeader-CommitDateTime":"COMMIT DATE / TIME","GraphHeader-CommitGraph":"GRAPH","GraphHeader-CommitMessage":"COMMIT MESSAGE","GraphHeader-CommitSha":"SHA","GraphHeader-EditColumns":"Add/Remove Columns","GraphHeader-HiddenRefs-btn":"Hidden Branches / Tags","OptionalGraphZone-CommitAuthor":"Author","OptionalGraphZone-CommitDateTime":"Date / Time","OptionalGraphZone-CommitSha":"Sha","Ref-Current":"current","Ref-Local":"local","Timeline-1HourAgo":"1 hour ago","Timeline-NHoursAgo":"{0} hours ago","Timeline-Yesterday":"yesterday","Timeline-NDaysAgo":"{0} days ago","Timeline-1WeekAgo":"a week ago","Timeline-NWeeksAgo":"{0} weeks ago","Timeline-1MonthAgo":"a month ago","Timeline-NMonthsAgo":"{0} months ago","Timeline-1YearAgo":"a year ago","Timeline-NYearsAgo":"{0} years ago","Timeline-NPlusYearsAgo":"{0}+ years ago",ResizePanel:"Resize Panel",Hide:"Hide",Show:"Show"},Rs=e=>!(e===Te||e===Oe),_s=/^.*(:?\n){0,2}/m;const Ts=/^co-authored-by:\s*([^\s<>]+(?:\s+[^\s<>]+)*)\s*<([^<>]+)>/gim;const Es={};function Os(e){let t=Es[e];return t||(t=to+e*io+io/2,Es[e]=t,t)}const Ms={d:"d",fill:"fill","shape-rendering":"shapeRendering","stroke-linejoin":"strokeLinejoin","stroke-width":"strokeWidth","stroke-dasharray":"strokeDasharray",stroke:"stroke",x1:"x1",x2:"x2",y1:"y1",y2:"y2"};function Is(e,t){let o="<"+e;const n=Object.entries(Ms);for(let e=0;e<n.length;e+=1){const[r,i]=n[e],s=t[i];s&&(o=o+" "+r+'="'+s+'"')}return o+" />"}function zs(e){return Is("line",e)}function ks(e,t){return{fill:"none",shapeRendering:"auto",strokeLinejoin:"round",strokeWidth:eo,strokeDasharray:Rs(e)?2:0,stroke:t}}function Gs(e,t,o){return e+"_"+t+"_"+(o||"+")}function Ps(e,t){return e+"_"+(t||"+")}const As={0:1,90:0,180:-1,270:0},Hs={0:0,90:1,180:0,270:-1},Ls=ao-lo,Ds=" A "+Ls+" "+Ls+" 0 0 0 ";function Ns(e,t,o){const n=As[o],r=Hs[o];return{x:e-ao*n,xOffset:-n*lo,y:t+ao*r,yOffset:r*lo}}const Ws={};var Bs=function(e,t,o,n,r,i){const s=ks(n,e);return s.d=function(e,t,o,n){const r=e+"_"+t+"_"+o+"_"+n;let i=Ws[r];if(i)return i;const s=Ns(e,t,n),l=Ns(e,t,o);return i="M "+s.x+" "+s.y+(l.xOffset?" H "+(s.x+l.xOffset):" V "+(s.y+l.yOffset))+Ds+(l.x+s.xOffset)+" "+(l.y+s.yOffset)+(s.xOffset?" H "+l.x:" V "+l.y),Ws[r]=i,i}(r,i,o,t),Is("path",s)};let Fs={};function js(e,t,o,n){const r=Gs(e,t,o);let i=Fs[r];return i||(i=function(e,t){return e===t}(t,e)?function(e,t,o){const n=ks(o,e);return n.x1=Os(t),n.x2=Os(t),n.y1=ro/2,n.y2=ro,zs(n)}(n[e],t,o):function(e,t,o,n){const r=ks(n,e),i={...r};i.x1=Os(o),i.x2=Os(o),i.y1=ro-oo,i.y2=ro;const s={...r};return s.x1=Os(o<t?o:o-1)+io/2,s.x2=Os(t),s.y1=ro/2,s.y2=ro/2,"<g>"+Bs(e,t<o?180:270,t<o?270:0,n,Os(o)+(t<o?-io/2:io/2),ro-oo)+zs(i)+zs(s)+"</g>"}(n[e],t,e,o),Fs[r]=i,i)}let Us={};function Zs(e,t,o,n){const r=Gs(e,t,o);let i=Us[r];return i||(i=function(e,t){return e===t}(t,e)?function(e,t,o){const n=ks(o,e);return n.x1=Os(t),n.x2=Os(t),n.y1=0,n.y2=ro/2,zs(n)}(n[e],t,o):function(e,t,o,n){const r=ks(n,e),i={...r};i.x1=Os(o),i.x2=Os(o),i.y1=0,i.y2=no;const s={...r};return s.x1=Os(o<t?o:o-1)+io/2,s.x2=Os(t),s.y1=ro/2,s.y2=ro/2,"<g>"+zs(i)+Bs(e,t>o?0:90,t>o?90:180,n,Os(o)+(t<o?-io/2:io/2),no)+zs(s)+"</g>"}(n[e],t,e,o),Us[r]=i,i)}let Vs={};function $s(e,t,o){const n=Ps(e,t);let r=Vs[n];if(r)return r;const i=Os(e),s=ks(t,o[e]);return s.x1=i,s.x2=i,s.y1=0,s.y2=ro,r=zs(s),Vs[n]=r,r}let Ys={};function qs(e,t,o,n){const r=function(e,t,o){let n="";for(let r=0;r<=t;r++){const{passThrough:t,starting:i,ending:s}=e[r]||{};n=n+"_"+Gs(r,o,i?.type),n=n+"_"+Gs(r,o,s?.type),n=n+"_"+Ps(r,t?.type)}return n}(e,t,o);let i=Ys[r];if(i)return i;let s="";for(let r=0;r<=t;r+=1){const t=e[r];if(!t)continue;const{passThrough:i,starting:l,ending:a}=t;s+=l?js(r,o,l.type,n):"",s+=i?$s(r,i.type,n):"",s+=a?Zs(r,o,a.type,n):""}return i='url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g>'+s+"</g></svg>')",Ys[r]=i,i}const Ks=me()("absolute","top-0","right-0","bottom-0","left-0","height-1","time-line"),Xs=me()(Ks,"z2");var Qs=function({z2:e}){return i().createElement("div",{className:e?Xs:Ks})};const Js={ADDED:"added",DELETED:"deleted",MODIFIED:"modified"};class el extends i().Component{render(){const{fileDiffType:e,getExternalIcon:t}=this.props;if(!e)return null;const o=(e=>{switch(e){case Js.ADDED:return"added";case Js.MODIFIED:return"modified";case Js.DELETED:return"deleted";default:return""}})(e),n=(e=>{switch(e){case Js.ADDED:return"color-green";case Js.MODIFIED:return"color-orange";case Js.DELETED:return"color-red";default:return null}})(e),r=(e=>{switch(e){case Js.ADDED:return"added";case Js.MODIFIED:return"modified";case Js.DELETED:return"deleted";default:return null}})(e),s=me()("fs-1",n,"mr1");return i().createElement("span",{className:s,title:r},t(o))}}var tl=el;const{ADDED:ol,DELETED:nl,MODIFIED:rl}=Js,il={[ol]:"CommitDiffSection-NFilesAdded",[nl]:"CommitDiffSection-NFilesDeleted",[rl]:"CommitDiffSection-NFilesModified"};var sl=function({count:e,diffType:t,getExternalIcon:o,fileNodeListStyle:n,translate:r}){const s=n?e:r(il[t],e);let l,a;return n&&(l={fontSize:yo,marginRight:wo},a={fontSize:bo,margin:`0px ${So}px 0px 0px`}),i().createElement("span",{className:"tiny-files-readout",style:l},i().createElement(tl,{fileDiffType:t,getExternalIcon:o,style:a}),i().createElement("span",{className:"tiny-files-readout-text"},s))};var ll=function({diffStats:t,fileNodeListStyle:o,getExternalIcon:n,translate:r}){const{types:s}=e;if(!t)return i().createElement("span",null);if(!Object.values(t).some((e=>Boolean(e))))return i().createElement("span",null);const l=t.modified?i().createElement(sl,{count:t.modified,diffType:s.MODIFIED,fileNodeListStyle:!0,getExternalIcon:n,translate:r}):null,a=t.added?i().createElement(sl,{count:t.added,diffType:s.ADDED,fileNodeListStyle:!0,getExternalIcon:n,translate:r}):null,c=t.deleted?i().createElement(sl,{count:t.deleted,diffType:s.DELETED,fileNodeListStyle:!0,getExternalIcon:n,translate:r}):null,h=o?{marginLeft:vo}:null;return i().createElement("span",{className:"summary",style:h},l,a,c)};const al=i().createElement("div",{className:"color-strip height-100",style:{width:2}}),cl={};const hl={};class dl extends i().PureComponent{render(){const{clearCurrentlyHoveredGraphCommit:e,children:t,column:o,context:n,currentlyHoveredCommitSha:r,dimRowsOfSelectedCommit:s,getExternalIcon:l,graphZoneType:a,highlightRowsOnRefHover:c,isDimmedMergeCommitRow:h,isHighlighted:d,isHovering:u,isInUnsupportedRebase:p,isMissingHoveredRefGroup:f,isSelected:m,numGraphColumns:g,onContextMenu:v,onClickCommit:y,onDoubleClickCommit:w,rowContext:S,sha:b,showColorStrip:C,showConflictIcon:x,showTimeline:R,setAsCurrentlyHoveredGraphCommit:_,style:T,title:E,translate:O,type:M,workDirStats:I}=this.props,z=function(e,t){const o=e+t.toString();let n=cl[o];return n||(n=me()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative",e,{"is-hovering":t}),cl[o]=n,n)}(M,u),k=function(e,t,o,n,r,i=!1,s=!1,l=!1,a=!1){const c=e+t+n.toString()+o.toString()+i.toString()+s.toString()+l.toString()+a.toString()+r;let h=hl[c];return h||(h=me()("column-"+(t%r+1),"graph-row","height-100-percent","flex",e,{"is-selected":n},{"is-highlighted":o},{"dimmed-row":a&&!o||i&&(s||l)}),hl[c]=h,h)}(M,o,d,m,g,f,c,s,h),G=R?i().createElement(Qs,null):null,P=M===ze&&void 0!==I&&Object.keys(I).length>0,A=P&&i().createElement(ll,{diffStats:I,getExternalIcon:l,translate:O});return i().createElement("div",{className:z,"data-vscode-context":Bo(S),onContextMenu:p?void 0:e=>v(e,a,b),onDoubleClick:e=>w(e,a,b),onMouseDown:e=>y(e,a,b),onMouseEnter:e=>_(e,a,b,r),onMouseLeave:t=>e(t,a,b,r),style:T},G,i().createElement("div",{className:k,"data-vscode-context":Bo(n)},C?al:null,x?i().createElement("span",{className:me()("ml2")},l("warning")):null,i().createElement("span",{className:me()("graph-zone",P?"has-work-dir":"width-100","flex-1"),style:{lineHeight:`${Qt}px`},title:E},t),A))}}function ul(e){const{constraints:{max:t,min:o},stats:{additions:n,deletions:r},zoneWidth:s}=e,l=n+r,a=Math.max(o,Math.min(t,l)),c=Math.max(fo,a/t*s-mo);return i().createElement("div",{className:"changes-zone changes-bar",style:{width:c}},n?i().createElement("div",{className:me()("changes-sub-bar","added",r?null:"last-bar"),style:{width:n/l*100+"%"}}):null,r?i().createElement("div",{className:"changes-sub-bar deleted last-bar",style:{width:r/l*100+"%"}}):null)}var pl=(e,t)=>{const{processedRows:o,rowStatsConstraints:n,translate:r,getExternalIcon:s,highlightRowsOnRefHover:l,isInUnsupportedRebase:a,numGraphColumns:c,clearCurrentlyHoveredGraphCommit:h,currentlyHoveredCommitSha:d,dimMergeCommits:u,dimRowsOfSelectedCommit:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,setAsCurrentlyHoveredGraphCommit:v}=e,y=new ln(e);return({rowIndex:e,style:w})=>{const S=t(e),b=y.getZoneWidth(Mo),C=o[e],{sha:x,stats:R,type:_,contexts:T}=C,E=T?.stats||void 0,O=T?.row||void 0;let M=[R?.files?`${R.files} files changed`:"",R?.additions?`${R.additions} lines added`:"",R?.deletions?`${R.deletions} lines deleted`:""].filter(Boolean).join(", ");return M=_!==ze?M:"",i().createElement(dl,{clearCurrentlyHoveredGraphCommit:h,column:C.column,context:E,currentlyHoveredCommitSha:d,dimRowsOfSelectedCommit:p,getExternalIcon:s,graphZoneType:Mo,highlightRowsOnRefHover:l,isDimmedMergeCommitRow:_===Oe&&u,isHighlighted:y.isHighlighted(e),isHovering:y.isHovering(e),isInUnsupportedRebase:a,isMissingHoveredRefGroup:y.isMissingHoveredRefGroup(e),isSelected:y.isSelected(e),key:S,numGraphColumns:c,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rowContext:O,setAsCurrentlyHoveredGraphCommit:v,sha:x,showTimeline:y.hasTimeline(e),style:w,title:M,translate:r,type:_},R&&_!==ze?i().createElement(ul,{constraints:n,stats:R,zoneWidth:b}):null)}};function fl(e){const t=(e||"").trim().toUpperCase();if(0===t.length)return"?";const o=t.split(" ");return 1===o.length?o[0][0]:o.length>1?o[0][0]+o[o.length-1][0]:"?"}function ml(e,t){return e&&t?`${e} <${t}>`:e||(t||"")}var gl=(e,t)=>{const{clearCurrentlyHoveredGraphCommit:o,currentlyHoveredCommitSha:n,dimMergeCommits:r,dimRowsOfSelectedCommit:s,getExternalIcon:l,highlightRowsOnRefHover:a,processedRows:c,isInUnsupportedRebase:h,onCommitContextMenu:d,onClickCommit:u,onDoubleClickCommit:p,numGraphColumns:f,setAsCurrentlyHoveredGraphCommit:m,translate:g}=e,v=new ln(e);return({rowIndex:e,style:y})=>{const w=t(e),S=c[e],{author:b,email:C,sha:x,type:R,contexts:_}=S,T=R!==ze?b:void 0,E=R!==ze?ml(b,C):void 0,O=_?.author||void 0,M=_?.row||void 0;return i().createElement(dl,{clearCurrentlyHoveredGraphCommit:o,column:S.column,context:O,currentlyHoveredCommitSha:n,dimRowsOfSelectedCommit:s,getExternalIcon:l,graphZoneType:To,highlightRowsOnRefHover:a,isDimmedMergeCommitRow:R===Oe&&r,isHighlighted:v.isHighlighted(e),isHovering:v.isHovering(e),isInUnsupportedRebase:h,isMissingHoveredRefGroup:v.isMissingHoveredRefGroup(e),isSelected:v.isSelected(e),key:w,numGraphColumns:f,onClickCommit:u,onContextMenu:d,onDoubleClickCommit:p,rowContext:M,setAsCurrentlyHoveredGraphCommit:m,sha:x,showTimeline:v.hasTimeline(e),style:y,title:E,translate:g,type:R},T)}};var vl=(e,t)=>{const{processedRows:o,translate:n,getExternalIcon:r,highlightRowsOnRefHover:s,isInUnsupportedRebase:l,numGraphColumns:a,formatCommitDateTime:c,clearCurrentlyHoveredGraphCommit:h,dimMergeCommits:d,dimRowsOfSelectedCommit:u,currentlyHoveredCommitSha:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,setAsCurrentlyHoveredGraphCommit:v}=e,y=new ln(e);return({rowIndex:e,style:w})=>{const S=t(e),b=o[e],{date:C,sha:x,type:R,contexts:_}=b,T=C&&R!==ze?c(C,ke.RowEntry):void 0,E=C&&R!==ze?c(C,ke.Tooltip):void 0,O=_?.date||void 0,M=_?.row||void 0;return i().createElement(dl,{clearCurrentlyHoveredGraphCommit:h,column:b.column,context:O,currentlyHoveredCommitSha:p,dimRowsOfSelectedCommit:u,getExternalIcon:r,graphZoneType:Eo,highlightRowsOnRefHover:s,isDimmedMergeCommitRow:R===Oe&&d,isHighlighted:y.isHighlighted(e),isHovering:y.isHovering(e),isInUnsupportedRebase:l,isMissingHoveredRefGroup:y.isMissingHoveredRefGroup(e),isSelected:y.isSelected(e),key:S,numGraphColumns:a,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rowContext:M,setAsCurrentlyHoveredGraphCommit:v,sha:x,showTimeline:!1,style:w,title:E,translate:n,type:R},T)}};var yl=(e,t)=>{const{dimMergeCommits:o,dimRowsOfSelectedCommit:n,processedRows:r,translate:s,getExternalIcon:l,highlightRowsOnRefHover:a,isInUnsupportedRebase:c,numGraphColumns:h,workDirStats:d,clearCurrentlyHoveredGraphCommit:u,currentlyHoveredCommitSha:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,setAsCurrentlyHoveredGraphCommit:v}=e,y=new ln(e);return({rowIndex:e,style:w})=>{const S=t(e),b=r[e],{sha:C,type:x,contexts:R}=b,_=x===ze?s("Graph-WorkInProgress"):b.message,T=x===ze?s("Graph-WorkInProgress"):b.messageInline,E=R?.message||void 0,O=R?.row||void 0;return i().createElement(dl,{clearCurrentlyHoveredGraphCommit:u,column:b.column,context:E,currentlyHoveredCommitSha:p,dimRowsOfSelectedCommit:n,getExternalIcon:l,graphZoneType:_o,highlightRowsOnRefHover:a,isDimmedMergeCommitRow:x===Oe&&o,isHighlighted:y.isHighlighted(e),isHovering:y.isHovering(e),isInUnsupportedRebase:c,isMissingHoveredRefGroup:y.isMissingHoveredRefGroup(e),isSelected:y.isSelected(e),key:S,numGraphColumns:h,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rowContext:O,setAsCurrentlyHoveredGraphCommit:v,sha:C,showColorStrip:!0,showConflictIcon:x===Ee||x===Me,showTimeline:y.hasTimeline(e),style:w,title:_,translate:s,type:x,workDirStats:d},T)}};var wl=(e,t)=>{const{processedRows:o,translate:n,getExternalIcon:r,highlightRowsOnRefHover:s,isInUnsupportedRebase:l,numGraphColumns:a,clearCurrentlyHoveredGraphCommit:c,currentlyHoveredCommitSha:h,dimMergeCommits:d,dimRowsOfSelectedCommit:u,onCommitContextMenu:p,onClickCommit:f,onDoubleClickCommit:m,setAsCurrentlyHoveredGraphCommit:g,shaLength:v}=e,y=new ln(e);return({rowIndex:e,style:w})=>{const S=t(e),b=o[e],{sha:C,type:x,contexts:R}=b,_=((e,t=6)=>e?e.substring(0,t):"")(C,v),T=R?.sha||void 0,E=R?.row||void 0;return i().createElement(dl,{clearCurrentlyHoveredGraphCommit:c,column:b.column,context:T,currentlyHoveredCommitSha:h,dimRowsOfSelectedCommit:u,getExternalIcon:r,graphZoneType:Oo,highlightRowsOnRefHover:s,isDimmedMergeCommitRow:x===Oe&&d,isHighlighted:y.isHighlighted(e),isHovering:y.isHovering(e),isInUnsupportedRebase:l,isMissingHoveredRefGroup:y.isMissingHoveredRefGroup(e),isSelected:y.isSelected(e),key:S,numGraphColumns:a,onClickCommit:f,onContextMenu:p,onDoubleClickCommit:m,rowContext:E,setAsCurrentlyHoveredGraphCommit:g,sha:C,showTimeline:y.hasTimeline(e),style:w,translate:n,type:x},x!==ze?i().createElement("span",{className:"font-monospace pointer",title:_},_):null)}};var Sl=function({style:e,children:t,column:o,numGraphColumns:n,onMouseEnter:r,onMouseLeave:s}){const l=e?.top||0;return i().createElement("div",{className:me()("ref-zone","column-"+(o%n+1))},i().createElement("ul",{onMouseEnter:r,onMouseLeave:s,style:{...e,top:l-Qt/2,position:"absolute",listStyle:"none",padding:0,zIndex:1}},t))};var bl=function({enabledRefMetadataTypes:e,column:t,context:o,getTargetRef:n,hasActive:r,hasRefs:s,getExternalIcon:l,includeOnlyRefsById:a,includeOnlyRemotesByName:c,isHovered:h,isInUnsupportedRebase:d,numGraphColumns:u,onMissingRefMetadata:p,refGroupContexts:f,refGroupsByName:m,refMetadata:g,refNodeHovered:v,sha:y,showContextMenuForGroupedRef:w,onClickRef:S,onDoubleClickRef:b,onToggleRefNodesShown:C,translate:x}){const R=(e,t,o)=>{const n=[];for(let e=0;e<t.length;e+=1){const o=t[e];n.push({id:Zo(o),name:o.name,type:o.refType,owner:o.owner,avatarUrl:o.avatarUrl})}C(e,n,!1,o)},_=h?m:[m[0]],T=Object.values(a),E=T.length>0&&T.some((e=>e.type===No.TAG)),O=_.map((t=>{const o=f?.[t[0].name]||void 0,n=t.some((e=>{const t=Zo(e);switch(e.refType){case No.TAG:return E&&Boolean(a[t]);case No.REMOTE:return Boolean(a[t])||e.owner&&c[e.owner];default:return Boolean(a[t])}})),u=i().createElement(Hn,{enabledRefMetadataTypes:e,getExternalIcon:l,groupIsHovered:h,hasActive:r,hasRefs:s,isInUnsupportedRebase:d,isRefGroupIncluded:n,key:`ref-node-${t[0].fullName||t[0].name}`,onClick:S,onContextMenu:w,onDoubleClick:b,onHideRefClick:R,onHovered:v,onMissingRefMetadata:p,refGroup:t,refGroupContext:o,refMetadata:g,sha:y,translate:x});return h?i().createElement("li",{key:u.key},u):u}));return h?i().createElement("div",{"data-vscode-context":Bo(o),style:{height:100,position:"relative"}},i().createElement(et,{placement:"right",show:h,target:n},i().createElement(Sl,{column:t,numGraphColumns:u},O))):i().createElement("span",{"data-vscode-context":Bo(o),style:{minWidth:0}},O)};function Cl({hasRefs:e,isActiveSha:t,left:o,type:n,width:r}){const s=me()("ref-line","z4",{"is-active":t});return e&&function(e){return[Te,Oe,Ee].includes(e)}(n)?i().createElement("hr",{className:s,style:{left:o,width:r}}):null}var xl=Cl;function Rl({hasRefs:e,isActiveSha:t,nodeOffset:o,type:n}){return i().createElement(Cl,{hasRefs:e,isActiveSha:t,left:0,type:n,width:o+(n===Oe?uo:0)})}var _l=function({hasActive:e,overflowCount:t}){return i().createElement("span",{className:me()("overflow-count ml1",{"is-active":e}),"data-test-class":"overflow-count"},"+",t)};const Tl={};class El extends i().PureComponent{refPopoverTarget;isContextMenuShown=!1;static defaultProps={style:{}};componentWillReceiveProps(e){this.props.hasRefs||!this.props.isSingleSelected||e.isSingleSelected||this.props.hoveredRefZoneSha!==this.props.sha||(this.props.refZoneUnhovered(),this.props.hoveredRefGroup&&this.props.refNodeUnhovered(void 0,this.props.hoveredRefGroup,this.props.sha))}getRefPopoverTarget=()=>this.refPopoverTarget;onCustomToggleRefNodesShown=(e,t,o,n)=>{this.props.onToggleRefNodesShown(e,t,o,n),this.props.refZoneUnhovered()};render(){const{enabledRefMetadataTypes:e,column:t,context:o,showGhostRefsOnRowHover:n,hasActive:r,hasRefs:s,hasTimeline:l,hoveredRefGroup:a,hoveredRefZoneSha:c,getExternalIcon:h,includeOnlyRefsById:d,includeOnlyRemotesByName:u,isContainerWindowFocused:p,isInUnsupportedRebase:f,numGraphColumns:m,onClickRef:g,onDoubleClickRef:v,onMissingRefMetadata:y,refGroupContexts:w,refGroupsByName:S,refMetadata:b,refNodeHovered:C,refNodeUnhovered:x,refZoneHovered:R,refZoneUnhovered:_,sha:T,showContextMenuForGroupedRef:E,style:O,translate:M,type:I,width:z}=this.props,k=c===T&&p,G={minWidth:z,width:z},P={...O,...G},A=l?i().createElement(Qs,null):null,H=S.length,L=e=>{R(T),H?C(e,S[0],T):a&&x(e,a,T)},D=e=>{p&&this.isContextMenuShown?this.isContextMenuShown=!1:(_(),a&&x(e,a,T))},N=function(e,t,o,n,r,i){const s=e+t+o.toString()+n.toString()+r+i.toString();let l=Tl[s];return l||(l=me()("column-"+(t%r+1),"flex","pb3","pt3","ref-zone","relative",e,{"dim-ref":i,"has-active":n,z6:o,z1:!o}),Tl[s]=l,l)}(I,t,k,r,m,H>0&&!s&&n);if(!H)return i().createElement("div",{className:N,onMouseEnter:L,onWheel:D,style:P},A);const W=G,B=H-1,F=B>0&&!k?i().createElement(_l,{hasActive:r,overflowCount:B}):null;return i().createElement("div",{className:N,onMouseEnter:L,onMouseLeave:D,onWheel:D,style:P},i().createElement("div",{ref:e=>this.refPopoverTarget=e}),A,i().createElement("div",{className:"flex",style:W},i().createElement(bl,{column:t,context:o,enabledRefMetadataTypes:e,getExternalIcon:h,getTargetRef:this.getRefPopoverTarget,hasActive:r,hasRefs:s,includeOnlyRefsById:d,includeOnlyRemotesByName:u,isHovered:k,isInUnsupportedRebase:f,numGraphColumns:m,onClickRef:g,onDoubleClickRef:v,onMissingRefMetadata:y,onToggleRefNodesShown:this.onCustomToggleRefNodesShown,refGroupContexts:w,refGroupsByName:S,refMetadata:b,refNodeHovered:C,sha:T,showContextMenuForGroupedRef:(e,t,o)=>{L(e),this.isContextMenuShown=!0,E(e,t,o)},translate:M}),F),s?i().createElement("div",{className:"absolute left-0 flex z1",style:G},i().createElement(xl,{hasRefs:!0,isActiveSha:r,left:2,type:I,width:"100%"})):null)}}var Ol=(e,t)=>{const{enabledRefMetadataTypes:o,showGhostRefsOnRowHover:n,onDoubleClickRef:r,processedRows:s,includeOnlyRefsById:l,includeOnlyRemotesByName:a,isContainerWindowFocused:c,isInUnsupportedRebase:h,getExternalIcon:d,hoveredRefGroup:u,hoveredRefZoneSha:p,numGraphColumns:f,onClickRef:m,onMissingRefMetadata:g,onShowContextMenuForGroupedRef:v,onRefNodeHovered:y,onRefNodeUnhovered:w,onRefZoneHovered:S,onRefZoneUnhovered:b,onToggleRefNodesShown:C,refMetadataById:x,translate:R}=e,_=new ln(e);return({rowIndex:e,style:T})=>{const E=t(e),O=s[e],M=_.getZoneWidth(xo),I=_.isHovering(e),{sha:z,type:k,hasRefs:G,contexts:P}=O,A=P?.ref||void 0,H=P?.refGroups||void 0,L=_.isSingleSelected(e),D=(n||G)&&(G||I||L)?_.getGraphRefGroupsByNameForRow(e):[];return i().createElement(El,{column:O.column,context:A,enabledRefMetadataTypes:o,getExternalIcon:d,hasActive:_.rowContainsCurrentHeadRef(O),hasRefs:G||!1,hasTimeline:_.hasTimeline(e),hoveredRefGroup:u,hoveredRefZoneSha:p,includeOnlyRefsById:l,includeOnlyRemotesByName:a,isContainerWindowFocused:c,isInUnsupportedRebase:h,isSingleSelected:L,key:E,numGraphColumns:f,onClickRef:m,onDoubleClickRef:r,onMissingRefMetadata:g,onToggleRefNodesShown:C,refGroupContexts:H,refGroupsByName:D,refMetadata:x,refNodeHovered:y,refNodeUnhovered:w,refZoneHovered:S,refZoneUnhovered:b,sha:z,showContextMenuForGroupedRef:v,showGhostRefsOnRowHover:n,style:T,translate:R,type:k,width:M})}};function Ml({className:e,marginLeft:t}){return i().createElement("div",{className:me()("app-bg0","absolute","left-0","right-0","bottom-0","top-0","pt3","pb3",e),style:{marginLeft:t}},i().createElement("div",{className:"commit-bg-color height-100-percent width-100-percent"}))}const Il=e=>to+io*e+11;function zl({column:e}){return i().createElement(Ml,{className:"z1",marginLeft:Il(e)})}function kl(){return i().createElement(Ml,{marginLeft:0})}function Gl(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}function Pl(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+6*(t-e)*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function Al(e){const t=e.h/360,{s:o,l:n,a:r}=e;let i,s,l;if(0===o)i=s=l=n;else{const e=n<.5?n*(1+o):n+o-n*o,r=2*n-e;i=Pl(r,e,t+1/3),s=Pl(r,e,t),l=Pl(r,e,t-1/3)}return{type:"rgba",r:Math.round(255*i),g:Math.round(255*s),b:Math.round(255*l),a:r}}const Hl=/^((?:rgb|hsl)a?)\((-?\d+%?)[,\s]+(-?\d+%?)[,\s]+(-?\d+%?)[,\s]*(-?[\d.]+%?)?\)$/i;function Ll(e){if(0===(e=e.trim()).length)return null;if(35===e.charCodeAt(0))return function(e){const t=(e=e.trim()).length;if(0===t)return null;if(35!==e.charCodeAt(0))return null;if(7===t)return{type:"rgba",r:16*Gl(e.charCodeAt(1))+Gl(e.charCodeAt(2)),g:16*Gl(e.charCodeAt(3))+Gl(e.charCodeAt(4)),b:16*Gl(e.charCodeAt(5))+Gl(e.charCodeAt(6)),a:1};if(9===t)return{type:"rgba",r:16*Gl(e.charCodeAt(1))+Gl(e.charCodeAt(2)),g:16*Gl(e.charCodeAt(3))+Gl(e.charCodeAt(4)),b:16*Gl(e.charCodeAt(5))+Gl(e.charCodeAt(6)),a:(16*Gl(e.charCodeAt(7))+Gl(e.charCodeAt(8)))/255};if(4===t){const t=Gl(e.charCodeAt(1)),o=Gl(e.charCodeAt(2)),n=Gl(e.charCodeAt(3));return{type:"rgba",r:16*t+t,g:16*o+o,b:16*n+n,a:1}}if(5===t){const t=Gl(e.charCodeAt(1)),o=Gl(e.charCodeAt(2)),n=Gl(e.charCodeAt(3)),r=Gl(e.charCodeAt(4));return{type:"rgba",r:16*t+t,g:16*o+o,b:16*n+n,a:(16*r+r)/255}}return null}(e);const t=Hl.exec(e);if(null==t)return null;const o=t[1];let n;switch(o){case"rgb":case"hsl":n=[parseInt(t[2],10),parseInt(t[3],10),parseInt(t[4],10),1];break;case"rgba":case"hsla":n=[parseInt(t[2],10),parseInt(t[3],10),parseInt(t[4],10),parseFloat(t[5])];break;default:return null}return"hsl"===o||"hsla"===o?Al({h:n[0],s:n[1],l:n[2],a:n[3]}):{type:"rgba",r:n[0],g:n[1],b:n[2],a:n[3]}}const Dl=e=>{return"hsla"===(t=Ll(e)).type&&(t=Al(t)),(299*t.r+587*t.g+114*t.b)/1e3<128?"#FFFFFF":"#000000";var t};class Nl extends i().Component{overlayTriggerRef;constructor(e){super(e),this.state={tooltipText:""}}componentDidUpdate(e,t){this.overlayTriggerRef&&this.state.tooltipText!==t.tooltipText&&this.overlayTriggerRef.show()}getMaybeDefaultAvatar=(e,t)=>{const{authorInitials:o,classes:n,column:r,context:s,cssVariables:l,divStyle:a,fontSize:c,minWidth:h,size:d,title:u=""}=this.props,p=void 0!==r&&l[Re(r)]||Kt,f=Dl(p.trim()),m={alignItems:"center",backgroundColor:p,backgroundSize:d,color:f,display:"flex",fontSize:c+"px",fontWeight:"bold",height:e,justifyContent:"center",minWidth:h,width:t,...a},g=["avatar","gravatar","rad2",...n||[]].join(" ").trim();return i().createElement("div",{className:g,"data-vscode-context":Bo(s),style:m,title:u},o?o.toUpperCase():"")};ensureTooltipText=()=>{const{tooltip:e}=this.props;this.setState({tooltipText:"function"==typeof e?e():e})};setOverlayTriggerRef=e=>{this.overlayTriggerRef=e};render(){const{tooltipText:e}=this.state,{avatarUrl:t,classes:o,context:n,divStyle:r,height:s,minWidth:l,size:a,title:c="",tooltip:h,useAuthorInitialsForAvatars:d,width:u}=this.props,p=s||a,f=u||a;let m;if(d||!t)m=this.getMaybeDefaultAvatar(p,f);else{const e={height:p,width:f,backgroundImage:`url('${t}')`,backgroundSize:a,minWidth:l,...r},s=["avatar","gravatar","rad2",...o||[]].join(" ").trim();m=i().createElement("div",{className:s,"data-test-class":"avatar","data-vscode-context":Bo(n),style:e,title:c})}return h?i().createElement(Sn,{delayShow:250,key:e,onEnter:this.ensureTooltipText,overlay:i().createElement(xn,{id:"graph-gravatar-tooltip"},e),placement:"top",ref:this.setOverlayTriggerRef,trigger:["hover","focus"]},m):m}}const Wl=({authorEmail:e,authorInitials:t,authorName:o,avatarUrl:n,column:r,context:s,cssVariables:l,left:a,message:c,opacity:h,type:d,useAuthorInitialsForAvatars:u})=>i().createElement(Nl,{authorInitials:t,avatarUrl:n,classes:["node",`${d}`,"z6"],column:r,context:s,cssVariables:l,divStyle:{left:a,opacity:h},fontSize:10,height:so,size:co,tooltip:()=>{const t=o&&""!==o.trim()&&"Unknown"!==o?ml(o,e):e,n=function(e){const t=[];for(let o=Ts.exec(e);null!==o;o=Ts.exec(e)){const[,e,n]=o;t.push({name:e,email:n})}return t}(function(e,t="\n"){return e.replace("\n"===t?_s:new RegExp(`^.*(:?${t}){0,2}`,"m"),"")}(c||""));let r="";if(0===n.length)r=t;else{n.unshift({email:e,name:o});for(let e=0;e<n.length;e+=1){const t=n[e];r+=ml(t.name,t.email),e<n.length-1&&(r+=", ")}}return r},useAuthorInitialsForAvatars:u,width:so});class Bl extends i().PureComponent{render(){const{authorEmail:e,authorName:t,getExternalIcon:o,left:n,opacity:r,type:s}=this.props;return(t||e)&&s===Te?Wl(this.props):s===Oe||s===Ee||s===Me?((e,t,o,n,r)=>{const s={height:12,left:o+5,opacity:n},l=me()("node",r,"z6"),a=i().createElement(xn,{id:"graph-merge-node-tooltip"},ml(t,e));return i().createElement(Sn,{delayShow:250,overlay:a,placement:"bottom",trigger:["hover","focus"]},i().createElement("div",{className:l,"data-test-class":"tree-row-commit-node",style:s}))})(e,t,n,r,s):((e,t,o,n,r)=>{const s={height:so,left:o,opacity:n},l=me()("node",r,"z6");return i().createElement("div",{className:l,"data-test-class":"tree-row-commit-node",style:s},r===Ie?e("stash"):null)})(o,0,n,r,s)}}class Fl extends i().Component{render(){const{columnColorByColumn:e,edgeColumnMax:t,edges:o,nodeColumn:n}=this.props,r=qs(o,t,n,e);return i().createElement("div",{className:"absolute top-0 right-0 bottom-0 left-0 z2",style:{background:r}})}}var jl=Fl;function Ul({boxShadowAlpha:e,boxShadowLeft:t,children:o,className:n="",left:r,width:s}){return i().createElement("div",{className:me()("absolute","top-0","bottom-0","z3",n),style:{boxShadow:`${t}px 5px 10px rgba(0, 0, 0, ${e})`,left:r,width:s}},o)}function Zl({boxShadowAlpha:e,hasTimeline:t,scrollLeft:o,width:n}){return i().createElement(Ul,{boxShadowAlpha:e,boxShadowLeft:5,className:"app-bg0 left-0",left:o,width:n},t?i().createElement(Qs,{z2:!0}):null)}function Vl({boxShadowAlpha:e,commitZoneWidth:t,hasTimeline:o,scrollLeft:n,width:r}){return i().createElement(Ul,{boxShadowAlpha:e,boxShadowLeft:-5,left:n+t-r,width:r},o?i().createElement(Qs,{z2:!0}):null,i().createElement(kl,null))}class $l extends i().PureComponent{render(){const{authorEmail:e,authorName:t,avatarContext:o,avatarUrl:n,clearCurrentlyHoveredGraphCommit:r,column:s,columnColorByColumn:l,commitZoneWidth:a,cssVariables:c,currentlyHoveredCommitSha:h,edgeColumnMax:d,edges:u,hasRefs:p,hasTimeline:f,getExternalIcon:m,isActiveSha:g,isInUnsupportedRebase:v,isSelected:y,leftGutterBoxShadowAlpha:w,leftGutterWidth:S,message:b,nodeOffset:C,nodeOpacity:x,numGraphColumns:R,onContextMenu:_,onClickCommit:T,onDoubleClickCommit:E,rightGutterBoxShadowAlpha:O,rightGutterWidth:M,rowContext:I,scrollLeft:z,setAsCurrentlyHoveredGraphCommit:k,sha:G,style:P,type:A,useAuthorInitialsForAvatars:H,zoneContext:L}=this.props,D=s%R+1,N=me()("relative","commit-zone","height-100-percent","pt3",A,`column-${D}`,{"is-selected":y,"has-active":g}),W=f?i().createElement(Qs,{z2:!0}):null,B=i().createElement("div",{className:N,"data-vscode-context":Bo(L),onContextMenu:v?void 0:e=>_(e,Ro,G),onDoubleClick:e=>E(e,Ro,G),onMouseDown:e=>T(e,Ro,G),onMouseEnter:e=>k(e,Ro,G,h),onMouseLeave:e=>r(e,Ro,G,h),style:P},W,i().createElement(Zl,{boxShadowAlpha:w,hasTimeline:f,scrollLeft:z,width:S}),i().createElement(Rl,{hasRefs:p,isActiveSha:g,nodeOffset:C,type:A}),i().createElement(Bl,{authorEmail:e,authorInitials:fl(t),authorName:t,avatarUrl:n,column:s,context:o,cssVariables:c,getExternalIcon:m,left:C,message:b,opacity:x,type:A,useAuthorInitialsForAvatars:H}),i().createElement(zl,{column:s}),i().createElement(jl,{columnColorByColumn:l,edgeColumnMax:d,edges:u,nodeColumn:s}),i().createElement(Vl,{boxShadowAlpha:O,commitZoneWidth:a,hasTimeline:f,scrollLeft:z,width:M}));return I?i().createElement("div",{"data-vscode-context":Bo(I)},B):B}}var Yl=function(e,t){const{avatarUrlByEmail:o,onMissingAvatar:n,clearCurrentlyHoveredGraphCommit:r,columnColorByColumn:s,cssVariables:l,currentlyHoveredCommitSha:a,processedRows:c,getExternalIcon:h,isInUnsupportedRebase:d,leftGutterBoxShadowAlpha:u,leftGutterWidth:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,nodeOffsetByColumn:v,nodeOpacityByColumn:y,numGraphColumns:w,rightGutterBoxShadowAlpha:S,rightGutterWidth:b,setAsCurrentlyHoveredGraphCommit:C,scrollLeft:x,useAuthorInitialsForAvatars:R}=e,_=new ln(e);return({rowIndex:e,style:T})=>{const E=t(e),O=c[e],M=_.getZoneWidth(Ro),{email:I,author:z,contexts:k,message:G,sha:P,type:A}=O,H=O.column,L=k?.graph||void 0,D=k?.avatar||void 0,N=k?.row||void 0;let W;return R||(W=o[I],W||n(I,P)),i().createElement($l,{authorEmail:I,authorName:z,avatarContext:D,avatarUrl:W,clearCurrentlyHoveredGraphCommit:r,column:H,columnColorByColumn:s,commitZoneWidth:M,cssVariables:l,currentlyHoveredCommitSha:a,edgeColumnMax:O.edgeColumnMaxes,edges:O.edges,getExternalIcon:h,hasRefs:O.hasRefs||!1,hasTimeline:_.hasTimeline(e),isActiveSha:_.rowContainsCurrentHeadRef(O),isInUnsupportedRebase:d,isSelected:_.isSelected(e),key:E,leftGutterBoxShadowAlpha:u,leftGutterWidth:p,message:G,nodeOffset:v[H],nodeOpacity:y[H],numGraphColumns:w,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rightGutterBoxShadowAlpha:S,rightGutterWidth:b,rowContext:N,scrollLeft:x,setAsCurrentlyHoveredGraphCommit:C,sha:P,style:T,type:A,useAuthorInitialsForAvatars:R,zoneContext:L})}};var ql=(e,t)=>{const{translate:o,processedRows:n}=e,r=me()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative"),s=new ln(e);return({rowIndex:e,style:l})=>{const a=t(e),c=me()("graph-row","height-100-percent","flex"),h=s.hasTimeline(e),d=n[e],u=d.contexts?.row||void 0,p=d.timeLineEntry?.label||"",f=d.timeLineEntry?.value||0,m=h?i().createElement(Qs,null):null,g=h?i().createElement("span",{className:"time-line-message-container"},i().createElement("span",{className:"time-line-message"},o(p,f))):null;return i().createElement("div",{className:r,"data-vscode-context":Bo(u),key:a,style:l},m,i().createElement("div",{className:c,"data-vscode-context":Bo(u)},g))}};class Kl extends i().PureComponent{graphContainerRef=i().createRef();resizeObserver;isSelectedBySha={};processedGraphRowBySha={};childrenBySha={};scrollToSha;lastLazyLoadHeight=0;lastTopVisibleRowIndex=-1;lastBottomVisibleRowIndex=-1;maxColumns=0;orderedGraphRows=[];rowStatsConstraints={min:0,max:0};shouldFireShowMoreCommits=!0;columnsToFreeWhenFound={};reserverInfoBySha={};columnsUsed={};workDirStats=Ao;excludeByType={};excludeRefsById={};includeOnlyRefsById={};excludeRemotesByName={};includeOnlyRemotesByName={};scrollLeft=0;scrollTop=0;graphHeight=585;graphWidth=804;graphZonesByType={};graphZoneOrdering=[xo,Ro,_o,To,Eo,Oo,Mo];missingAvatarsTimer;pendingMissingAvatars={};requestedMissingAvatars={};missingRefsMetadataTimer;pendingMissingRefsMetadata={};requestedMissingRefsMetadata={};markerRowIndices={};timelinesInterval;constructor(e){super(e),this.resizeObserver=new ResizeObserver((e=>e.forEach((e=>this.onGraphResized(e.contentRect.width,e.contentRect.height))))),this.isSelectedBySha=this.props.isSelectedBySha||{},this.excludeByType=this.props.excludeByType||{},this.excludeRefsById=this.props.excludeRefsById||{},this.excludeRemotesByName=this.getExcludeRemotesByName(),this.includeOnlyRemotesByName=this.getIncludeOnlyRemotesByName(),this.includeOnlyRefsById=this.props.includeOnlyRefsById||{},this.workDirStats=this.props.workDirStats||this.workDirStats,this.processRows(this.props.graphRows),this.cleanupSelections(),this.updateMarkerRowIndices([Io.Selection,Io.Highlights]);const t=_e(this.props.cssVariables);this.state={avatarUrlByEmail:this.props.avatarUrlByEmail||{},contexts:this.props.contexts,cssVariablesWithDefaults:t,columnColorByColumn:this.getColumnColorByColumn(t),currentlyHoveredCommitSha:void 0,dimMergeCommits:this.props.dimMergeCommits||!1,dimRowsOfSelectedCommit:!1,highlightRowsOnRefHover:this.props.highlightRowsOnRefHover||!1,showGhostRefsOnRowHover:this.props.showGhostRefsOnRowHover||!1,showRemoteNamesOnRefs:this.props.showRemoteNamesOnRefs||!1,enabledRefMetadataTypes:this.props.enabledRefMetadataTypes||[],enabledScrollMarkerTypes:this.props.enabledScrollMarkerTypes||[],graphZones:this.initializeGraphZones(this.props.columnsSettings,this.graphZoneOrdering,580),hasMoreCommits:this.props.hasMoreCommits||!1,height:this.graphHeight,highlightedShas:this.props.highlightedShas,hoveredRefGroup:void 0,hoveredRefZoneSha:void 0,isContainerWindowFocused:void 0===this.props.isContainerWindowFocused||this.props.isContainerWindowFocused,isLoadingRows:this.props.isLoadingRows||!1,numGraphColumns:this.getNumGraphColumns(t),processedRows:[...this.orderedGraphRows],refMetadataById:this.props.refMetadataById,useAuthorInitialsForAvatars:this.props.useAuthorInitialsForAvatars||!1,scrollLeft:this.getScrollLeft(),scrollToAlignment:this.getScrollToAlignment(),scrollToIndex:this.getScrollToIndex(),scrollTop:this.getScrollTop(),shaLength:this.props.shaLength,themeOpacityFactor:this.props.themeOpacityFactor||go,width:this.graphWidth,workDirStats:this.workDirStats}}componentDidMount(){this.resizeObserver.observe(this.graphContainerRef.current),window.addEventListener("keydown",this.onWindowKeyDown),window.addEventListener("keyup",this.onWindowKeyUp),window.addEventListener("blur",this.onWindowBlur);const e=this.isSelectedBySha?this.getSelectedShas():[];e.length>0&&this.selectCommits(e,!1,!0)}componentWillReceiveProps(e){let t=!1,o=!1;if(this.props.highlightedShas!==e.highlightedShas){this.setState({highlightedShas:e.highlightedShas});const t=Object.keys(e.highlightedShas||{}).filter((t=>e.highlightedShas[t])),o=[];t.forEach((e=>{void 0!==this.processedGraphRowBySha[e]?.rowIndex&&o.push(this.processedGraphRowBySha[e].rowIndex)})),this.markerRowIndices={...this.markerRowIndices,[Io.Highlights]:o}}if(this.props.isSelectedBySha!==e.isSelectedBySha&&this.selectCommits(e.isSelectedBySha?Object.keys(e.isSelectedBySha):[],!1,!0),this.props.excludeByType!==e.excludeByType&&(this.excludeByType=e.excludeByType||{},e.graphRows?.length&&(o=!0)),this.props.excludeRefsById!==e.excludeRefsById&&(this.excludeRefsById=e.excludeRefsById||{},this.excludeRemotesByName=this.getExcludeRemotesByName(),e.graphRows?.length&&(o=!0)),this.props.includeOnlyRefsById!==e.includeOnlyRefsById&&(this.includeOnlyRefsById=e.includeOnlyRefsById||{},this.includeOnlyRemotesByName=this.getIncludeOnlyRemotesByName(),e.graphRows?.length&&(o=!0)),this.props.themeOpacityFactor!==e.themeOpacityFactor&&this.setState({themeOpacityFactor:e.themeOpacityFactor}),this.props.dimMergeCommits!==e.dimMergeCommits&&this.setState({dimMergeCommits:e.dimMergeCommits||!1}),this.props.highlightRowsOnRefHover!==e.highlightRowsOnRefHover&&this.setState({highlightRowsOnRefHover:e.highlightRowsOnRefHover||!1}),this.props.showGhostRefsOnRowHover!==e.showGhostRefsOnRowHover&&this.setState({showGhostRefsOnRowHover:e.showGhostRefsOnRowHover||!1}),this.props.showRemoteNamesOnRefs!==e.showRemoteNamesOnRefs&&this.setState({showRemoteNamesOnRefs:e.showRemoteNamesOnRefs||!1}),this.props.enabledRefMetadataTypes!==e.enabledRefMetadataTypes&&this.setState({enabledRefMetadataTypes:e.enabledRefMetadataTypes||[]}),this.props.enabledScrollMarkerTypes!==e.enabledScrollMarkerTypes&&this.setState({enabledScrollMarkerTypes:e.enabledScrollMarkerTypes||[]}),this.props.isContainerWindowFocused!==e.isContainerWindowFocused&&this.setState({dimRowsOfSelectedCommit:!1,isContainerWindowFocused:void 0===e.isContainerWindowFocused||e.isContainerWindowFocused}),this.props.graphRows!==e.graphRows||this.props.cssVariables!==e.cssVariables||o){this.cleanEdgeCaches();const n=_e(e.cssVariables);this.processRows(e.graphRows),this.setState({columnColorByColumn:this.getColumnColorByColumn(n),cssVariablesWithDefaults:n,numGraphColumns:this.getNumGraphColumns(n),processedRows:[...this.orderedGraphRows]}),this.updateCommitZoneContentWidthFromGraphRowsChange(),this.cleanupSelections(),t=!0,(e.graphRows?.length<this.props.graphRows?.length||o)&&(this.lastLazyLoadHeight=0)}if(this.props.useAuthorInitialsForAvatars!==e.useAuthorInitialsForAvatars&&this.setState({useAuthorInitialsForAvatars:e.useAuthorInitialsForAvatars}),this.props.shaLength!==e.shaLength&&this.setState({shaLength:e.shaLength}),this.props.hasMoreCommits!==e.hasMoreCommits&&this.setState({hasMoreCommits:e.hasMoreCommits||!1}),this.props.isLoadingRows!==e.isLoadingRows&&this.setState({isLoadingRows:e.isLoadingRows||!1}),this.props.workDirStats!==e.workDirStats&&(this.workDirStats=e.workDirStats||Ao,!tn(this.props.workDirStats)&&tn(e.workDirStats)||tn(this.props.workDirStats)&&!tn(e.workDirStats)?(this.processRows(e.graphRows),this.setState({processedRows:[...this.orderedGraphRows],workDirStats:this.workDirStats})):this.setState({workDirStats:this.workDirStats})),this.props.avatarUrlByEmail!==e.avatarUrlByEmail&&(this.setState({avatarUrlByEmail:e.avatarUrlByEmail||{}}),this.requestedMissingAvatars={}),this.props.refMetadataById!==e.refMetadataById&&(this.setState({refMetadataById:e.refMetadataById}),this.requestedMissingRefsMetadata={}),this.props.columnsSettings!==e.columnsSettings&&e.columnsSettings&&(this.updateZonesFromSettings(e.columnsSettings),t=!0),this.props.contexts!==e.contexts&&this.setState({contexts:e.contexts}),t){const e=this.getOrderedActiveGraphZones();this.ensureZoneWidthsMatchGraphWidth(e,this.graphWidth),this.setState({graphZones:e})}}componentWillUnmount(){window.removeEventListener("keydown",this.onWindowKeyDown),window.removeEventListener("keyup",this.onWindowKeyUp),window.removeEventListener("blur",this.onWindowBlur),this.resizeObserver.disconnect()}onGraphVisibleRowsUpdatedThrottled=((e,t,o)=>{let n,r,i=!1,s=t;return(...l)=>{void 0!==o&&(r=(new Date).getTime(),s=!n||r-n>s+o?o:t),i||(e(...l),n=(new Date).getTime(),i=!0,setTimeout((()=>{i=!1}),s))}})((()=>this.onGraphVisibleRowsUpdated()),250,20);onBlurWipNodeInput=e=>{this.props.onBlurWipNodeInput&&this.props.onBlurWipNodeInput(e)};onDoubleClickRef=(e,t,o,n)=>{this.props.onDoubleClickGraphRef&&this.props.onDoubleClickGraphRef(e,t,this.processedGraphRowBySha[o],n)};onFocusWipNodeInput=e=>{this.props.onFocusWipNodeInput&&this.props.onFocusWipNodeInput(e)};onCurrentlyHoveredGraphCommit=(e,t,o,n)=>{n!==o&&(this.props.onGraphRowHovered&&this.props.onGraphRowHovered(e,t,this.processedGraphRowBySha[o]),this.setState({currentlyHoveredCommitSha:o}))};onClearCurrentlyHoveredGraphCommit=(e,t,o,n)=>{n&&(this.props.onGraphRowUnhovered&&this.props.onGraphRowUnhovered(e,t,this.processedGraphRowBySha[o]),this.setState({currentlyHoveredCommitSha:void 0}))};onGraphColumnReOrdered=(e,t)=>{const o=this.graphZoneOrdering.indexOf(e);let n=t?this.graphZoneOrdering.indexOf(t):this.graphZoneOrdering.length-1;t&&o<n&&(n-=1),this.graphZoneOrdering.splice(o,1),this.graphZoneOrdering.splice(n,0,e);const r={};this.graphZoneOrdering.forEach(((e,t)=>{this.graphZonesByType[e].order=t,r[e]=this.getGraphColumnSettingFromZoneType(this.graphZonesByType[e])})),this.setState({graphZones:this.initializeGraphZones(r,this.graphZoneOrdering,this.graphWidth)}),this.props.onGraphColumnsReOrdered&&this.props.onGraphColumnsReOrdered(r)};onGraphZoneResize=Wo(((e,t)=>{if(t&&t.width){const o=this.getOrderedActiveGraphZones();this.adjustResizedGraphZone(o,e,t,!1),this.setState({graphZones:o})}}));onGraphZoneResizeEnd=Wo(((e,t)=>{if(t&&t.width){const o=this.getOrderedActiveGraphZones();this.adjustResizedGraphZone(o,e,t,!0),this.setState({graphZones:o})}this.props.onColumnResized&&this.props.onColumnResized(e.type,this.getGraphColumnSettingFromZoneType(this.graphZonesByType[e.type]))}));onPopupGraphHeaderContextMenu=()=>{};onMessageChange=e=>{this.props.onMessageChange&&this.props.onMessageChange(e)};onClickRef=(e,t,o,n)=>{this.props.onClickGraphRef&&this.props.onClickGraphRef(e,t,this.processedGraphRowBySha[o],n)};onClickCommit=(e,t,o)=>{if(0===e.button){const{enableMultiSelection:n}=this.props,r=this.isMacOSPlatform();if(n&&(!r&&e.ctrlKey||r&&e.metaKey)?this.selectCommits([o],!0,!1):n&&e.shiftKey||this.selectCommits([o],!1,!1),this.props.onClickGraphRow){const n=this.processedGraphRowBySha[o];this.props.onClickGraphRow(e,t,n)}}};onDoubleClickCommit=(e,t,o)=>{if(this.props.onDoubleClickGraphRow){const n=this.processedGraphRowBySha[o];this.props.onDoubleClickGraphRow(e,t,n)}};onWindowKeyUp=e=>{switch(e.keyCode){case 91:this.isMacOSPlatform()&&this.dimRowsOfSelectedCommit(!1);break;case 17:this.isMacOSPlatform()||this.dimRowsOfSelectedCommit(!1)}};onWindowBlur=()=>{this.dimRowsOfSelectedCommit(!1)};onWindowKeyDown=e=>{switch(e.keyCode){case 91:this.isMacOSPlatform()&&this.dimRowsOfSelectedCommit(!0);break;case 17:this.isMacOSPlatform()||this.dimRowsOfSelectedCommit(!0);break;default:this.state.dimRowsOfSelectedCommit&&this.dimRowsOfSelectedCommit(!1)}};onKeyDown=e=>{switch(e.keyCode){case 38:this.selectPrevious(e.shiftKey);break;case 40:this.selectNext(e.shiftKey)}};onRefNodeHovered=(e,t,o)=>{(!this.props.showGhostRefsOnRowHover||nn(this.isSelectedBySha,o)||this.processedGraphRowBySha[o]?.hasRefs)&&(this.props.onGraphRefNodeHovered&&this.props.onGraphRefNodeHovered(e,t,this.processedGraphRowBySha[o]),this.setState({hoveredRefGroup:[...t]}))};onRefNodeUnhovered=(e,t,o)=>{this.props.onGraphRefNodeUnhovered&&this.props.onGraphRefNodeUnhovered(e,t,this.processedGraphRowBySha[o]),this.setState({hoveredRefGroup:void 0})};onRefZoneHovered=e=>{this.setState({hoveredRefZoneSha:e})};onRefZoneUnhovered=()=>{this.setState({hoveredRefZoneSha:void 0})};onShowMoreCommits=()=>{this.props.onShowMoreCommits&&this.shouldFireShowMoreCommits&&(this.props.onShowMoreCommits(),this.shouldFireShowMoreCommits=!1,setTimeout((()=>{this.shouldFireShowMoreCommits=!0}),100))};onScrollForZone=(e,t,o,n,r)=>{if(this.setScroll(e,t),this.props.onScrollForZone&&this.props.onScrollForZone(e,t),!this.props.onShowMoreCommits||!r||!n||n<0||!this.scrollTop||this.scrollTop<0||!this.orderedGraphRows?.length)return;const i=this.scrollTop+n,s=this.orderedGraphRows.length*Xt;i>s-Jt&&i>this.lastLazyLoadHeight&&(this.lastLazyLoadHeight=Math.min(i,s-1),this.onShowMoreCommits())};onScrollToRowCausedUpdateForRefZone=(e,t)=>{this.setScroll(e,t),this.props.onScrollToRowCausedUpdateForRefZone&&this.props.onScrollToRowCausedUpdateForRefZone(e,t)};onCommitContextMenu=(e,t,o)=>{if(this.props.onRowContextMenu){const n=this.processedGraphRowBySha[o];this.props.onRowContextMenu(e,t,n)}};onRefContextMenu=(e,t,o)=>{if(this.props.onRefContextMenu){const n=this.processedGraphRowBySha[o];this.props.onRefContextMenu(e,t,n)}};onWipNodeInputWillUnmount=()=>{this.props.onWipNodeInputWillUnmount&&this.props.onWipNodeInputWillUnmount()};selectCommits(e,t,o){t||Object.keys(this.isSelectedBySha).forEach((t=>{e.includes(t)||delete this.isSelectedBySha[t]}));const n=this.processedGraphRowBySha?Object.keys(this.processedGraphRowBySha):[];if(e.forEach((e=>{n.includes(e)&&(this.isSelectedBySha[e]=!t||!this.isSelectedBySha[e]||!this.isSelectedBySha[e],this.isSelectedBySha[e]&&this.selectSha(e,o))})),this.props.onSelectGraphRows){const e=this.getSelectedShas().map((e=>this.processedGraphRowBySha[e]));this.props.onSelectGraphRows(e)}this.updateMarkerRowIndices([Io.Selection]),this.setState({processedRows:[...this.orderedGraphRows]})}getCommitZoneContentWidthBetweenGutters(){return this.getCurrentWidthByZone(Ro)-this.getLeftGutterWidth()-this.getRightGutterWidth()}getSelectedShas(){const e=[];return Object.keys(this.isSelectedBySha).forEach((t=>{this.isSelectedBySha[t]&&e.push(t)})),e}getExcludeRemotesByName(){const e={};return Object.values(this.excludeRefsById).forEach((t=>{t.type===No.REMOTE&&t.owner&&"*"===t.name&&(e[t.owner]=!0)})),e}getIncludeOnlyRemotesByName(){const e={};return Object.values(this.includeOnlyRefsById).forEach((t=>{t.type===No.REMOTE&&t.owner&&"*"===t.name&&(e[t.owner]=!0)})),e}clearScrollToIndex=()=>{setTimeout((()=>this.setState({scrollToIndex:void 0})),100)};getTopAndBottomVisibleRowIndex(){const{graphHeight:e,orderedGraphRows:t,scrollTop:o}=this,n=e||0;if(!n||!t||!t.length)return{top:-1,bottom:-1};const r=o/Xt,i=r+((n-26)/Xt-1);return{top:Math.max(Math.floor(r),0),bottom:Math.min(Math.ceil(i),t.length-1)}}getOffsetSha(e){const t=this.graphHeight||0,o=this.props.scrollRowPadding||0;if(!o||!t)return e;let n=o;if(n<=0)return e;const r=this.getTopAndBottomVisibleRowIndex(),i=r.top,s=r.bottom;if(-1===i||-1===s)return e;const l=Math.floor((s-i)/2);if(l<1)return e;n=Math.min(n,l);const a=this.orderedGraphRows.length,c=this.orderedGraphRows.findIndex((t=>t.sha===e));if(!c||!this.orderedGraphRows.length)return e;const h=s-n<c;return i+n>c?this.orderedGraphRows[Math.max(c-n,0)].sha||e:h&&this.orderedGraphRows[Math.min(c+n,a-1)].sha||e}selectSha(e,t=!1){const o=this.processedGraphRowBySha[e]?.column||0,n=this.getScrollLeft(),r=this.getCommitZoneContentWidthBetweenGutters(),i=this.getCurrentWidthByZone(Ro),s=this.getCommitZoneContentWidth(),l=o*io,a=n-to/3<=l,c=l<=n+r,h=Math.max(0,s-i),d=a&&c?n:Wt(l-r/2,0,h);this.setScrollToSha(t?this.getOffsetSha(e):e,d),this.setState({scrollToAlignment:this.getScrollToAlignment(),scrollToIndex:this.getScrollToIndex()},this.clearScrollToIndex)}updateWidthByZone(e,t,o){const n=this.getOrderedActiveGraphZones(),r=this.graphZonesByType[t],i=Ko(r,n,e);if(r.currentWidth=i,t===Ro){const e=Math.max(0,this.getCommitZoneContentWidth()-r.currentWidth);this.getScrollLeft()>e&&this.setScrollLeft(e)}o&&(r.preferredWidth=i)}updateCommitZoneContentWidthFromGraphRowsChange(){const e=this.graphZonesByType[Ro];if(!e.isHidden){const t=this.getOrderedActiveGraphZones(),o=this.getCommitZoneContentWidth();e.contentWidth=o,e.maximumWidth=o,e.currentWidth>o&&(e.currentWidth=Ko(e,t,o)),this.setState({graphZones:t})}}getCurrentWidthByZone(e){const t=this.graphZonesByType[e];return t&&!t.isHidden?t.currentWidth:0}getCommitZoneContentWidth(){return(this.maxColumns||1)*io+2*to+6}getCommitZoneWidth(){if(this.graphZonesByType[Ro])return this.graphZonesByType[Ro].currentWidth;const{columnsSettings:e}=this.props;return e&&e[Ro]?e[Ro].width:Go[Ro].minimumWidth}getSingleColumnModeFactor(){const e=this.maxColumns,t=this.getCurrentWidthByZone(Ro);return 1===e?0:Wt(1-(t-2*to-3)/io,0,1)}setScroll(e,t){null!=t.scrollTop&&this.setScrollTop(t.scrollTop),e===Ro&&null!=t.scrollLeft&&this.setScrollLeft(t.scrollLeft)}getNonAdjustedScrollLeft(){return this.scrollLeft}setScrollLeft(e){this.scrollLeft!==e&&(this.scrollLeft=e,this.setState({scrollLeft:e}))}getScrollLeft(){const e=this.getNonAdjustedScrollLeft();return this.getCommitZoneContentWidth()!==this.getCommitZoneWidth()?e:0}setScrollTop(e){this.scrollTop!==e&&(this.scrollTop=e,this.setState({scrollTop:e}),this.onGraphVisibleRowsUpdatedThrottled())}getScrollTop(){return this.scrollTop}getScrollToSha(){return this.scrollToSha}setScrollToSha(e,t){this.scrollToSha=e,this.setScrollLeft(t),this.onGraphVisibleRowsUpdated()}getScrollToIndex(){const e=this.getScrollToSha();return this.orderedGraphRows.findIndex((t=>t.sha===e))}getScrollToAlignment(){return"auto"}getMinNodeOffset(){const e=this.getScrollLeft(),t=this.getSingleColumnModeFactor();return(1-t)*(e+6)+t*(e+to)}getMaxNodeOffset(){const e=this.getCurrentWidthByZone(Ro),t=this.getScrollLeft(),o=this.getSingleColumnModeFactor();return(1-o)*(e+t+(3-to))+o*(t+to)}getAbsoluteNodeLeftByColumn(){const e={};for(let t=0;t<=this.maxColumns;t+=1)e[t]=to+io*t;return e}getNodeOffsetByColumn(){const e=this.getMinNodeOffset(),t=this.getMaxNodeOffset(),o=this.getAbsoluteNodeLeftByColumn(),n={};return Object.keys(o).forEach((r=>{const i=o[r];n[r]=Wt(i,e,t)})),n}getMaxNodeLeft(){return this.getScrollLeft()+(this.getCurrentWidthByZone(Ro)-io-3)}getMinNodeLeft(){return this.getScrollLeft()+3+this.getSingleColumnModeFactor()*to}getRightGutterSlideOutFactor(){const e=this.getCurrentWidthByZone(Ro),t=this.getCommitZoneContentWidth(),o=this.getSingleColumnModeFactor();return Wt((e-(t-(to+3)))/io,0,1)+o/2}getNodeOpacityByColumn(){const e=this.getMinNodeLeft(),t=this.getMaxNodeLeft(),o=this.getAbsoluteNodeLeftByColumn(),n=this.getRightGutterSlideOutFactor(),r=this.getSingleColumnModeFactor(),i={};return Object.keys(o).forEach((s=>{const l=o[s],a=l-(e-r*to),c=t+io-(l+to*(1-n)),h=Math.min(a,c);i[s]=.5+.5*Math.max(h/(to/2),r)})),i}getLeftGutterWidth(){const e=this.getSingleColumnModeFactor();return to+e*(to/2)}getRightGutterWidth(){return(1-this.getRightGutterSlideOutFactor())*to}getBoxShadowAlphaForGutter(e,t){return.4*(1-Math.max(e,t))}getLeftGutterBoxShadowAlpha(e){const t=this.getScrollLeft(),o=this.getSingleColumnModeFactor();return e*this.getBoxShadowAlphaForGutter(o,Wt(1-t/io,0,1))}getRightGutterBoxShadowAlpha(e){const t=this.getSingleColumnModeFactor(),o=this.getRightGutterSlideOutFactor();return e*this.getBoxShadowAlphaForGutter(t,o)}updateMarkerRowIndices(e){const t={...this.markerRowIndices};if(e.forEach((e=>{t[e]=[]})),e.includes(Io.Selection)){this.getSelectedShas().forEach((e=>{void 0!==this.processedGraphRowBySha[e]?.rowIndex&&t[Io.Selection].push(this.processedGraphRowBySha[e].rowIndex)}))}if(e.includes(Io.Highlights)){const e=this.state?.highlightedShas||this.props.highlightedShas||{};Object.keys(e).forEach((e=>{void 0!==this.processedGraphRowBySha[e]?.rowIndex&&t[Io.Highlights].push(this.processedGraphRowBySha[e].rowIndex)}))}this.markerRowIndices=t}getMarkerColors(){const e=getComputedStyle(document.body),t={};return Object.values(ko).forEach((o=>{const n=e.getPropertyValue(o.colorCssKey);n&&(t[o.type]=n)})),t}initializeGraphZones(e,t,o){this.graphZonesByType={};const n=[];let r=0;for(t.forEach(((t,o)=>{const i=e?e[t]:void 0,s=Go[t],l=i&&i.width?i.width:s.minimumWidth,a={...s,type:t,currentWidth:l,preferredWidth:l,isHidden:i?.isHidden||!1,order:s.isCustomizable&&void 0!==i?.order?i?.order:o};i?.isHidden||(r+=a.currentWidth),t===Ro&&(a.contentWidth=this.getCommitZoneContentWidth(),this.maxColumns>0&&(a.maximumWidth=a.contentWidth)),this.graphZonesByType[t]=a,a?.isHidden||n.push(a)})),n.forEach((e=>{const t=Ko(e,n,e.currentWidth);t!==e.currentWidth&&(r-=e.currentWidth,e.currentWidth=t,r+=t)}));r>o;){const e=Vo(n);if(!e)break;const t=e.currentWidth,i=r-o,s=Math.max(e.minimumWidth,t-i),l=t-s;this.graphZonesByType[e.type].currentWidth=s,r-=l}if(r<o){const e=t[t.length-1],r=o-Yo(n,e);this.graphZonesByType[e].currentWidth=r}return n}updateZonesFromSettings(e){let t=!1;this.graphZoneOrdering.forEach(((o,n)=>{const r=this.graphZonesByType[o],i=e?.[r.type];i&&(i.isHidden!==r.isHidden&&(t=!0,r.type!==Mo||i.isHidden||this.updateRowStatsConstraints()),r.isHidden=i.isHidden,r.order=r.isCustomizable&&void 0!==i?.order?i?.order:n)})),t&&this.graphZoneOrdering.forEach((e=>{const t=this.graphZonesByType[e];t.currentWidth=t.minimumWidth}))}getEdgeColumnMaxes(e){let t=0;const o=this.processedGraphRowBySha[e]?.edges||{};return Object.keys(o).forEach((e=>{t=Math.max(t,parseInt(e,10))})),t}getEndingAndPassThroughEdgesByColumnFromPrevRow(e,t){const o={};let n,r,i,s;return Object.keys(t).forEach((l=>{n=t[l],r=n.passThrough,i=n.starting,s=r&&!Rs(r.type)?r:i&&!Rs(i.type)?i:r||i||void 0,s&&(s.parentSha===e.sha?o[l]={ending:s}:o[l]={passThrough:s})})),o}getFinalEdgeStateForGraphAndRow(e,t){const o=this.getEndingAndPassThroughEdgesByColumnFromPrevRow(e,t),n=this.getStartingEdgesByColumn(e);let r;return Object.keys(n).forEach((e=>{o[e]||(o[e]={ending:void 0,passThrough:void 0,starting:void 0}),r=o[e],r.starting=n[e]})),o}loadEdgesBySha(){this.maxColumns=0,this.orderedGraphRows.forEach(((e,t)=>{const o=this.orderedGraphRows[t-1],n=o&&this.processedGraphRowBySha[o.sha]?.edges?this.processedGraphRowBySha[o.sha].edges:{};this.processedGraphRowBySha[e.sha].edges=this.getFinalEdgeStateForGraphAndRow(e,n);const r=this.getEdgeColumnMaxes(e.sha);this.processedGraphRowBySha[e.sha].edgeColumnMaxes=r,r>this.maxColumns&&(this.maxColumns=r)}))}processRows(e){this.loadRowsbySha(e||[]),this.loadEdgesBySha()}getStartingEdgesByColumn(e){const t={},o=e.parents;if(o.length>0){const n=e.type,r=this.processedGraphRowBySha[e.sha]?.column;void 0!==r&&(t[r]={parentSha:o[0],type:n});for(let e=1;e<o.length;e+=1){const r=o[e],i=this.processedGraphRowBySha[r]?.column;void 0!==i&&(t[i]={parentSha:r,type:n})}}return t}formatCommitDateTimeCallback=(e,t)=>this.props.formatCommitDateTime?this.props.formatCommitDateTime(e,t):Ce(e,"short+short");translateCallback=(e,...t)=>this.props.translate?this.props.translate(e,...t):xs[e]?function(e,t){if(0===t.length)return e;let o=e;return t.forEach(((e,t)=>{const n=new RegExp(`\\{${t}\\}`,"g");o=o.replace(n,e)})),o}(xs[e],t):`${e}`;getIconCallback=e=>this.props.getExternalIcon?this.props.getExternalIcon(e):i().createElement("span",null);onMissingAvatar=(e,t)=>{this.props.onEmailsMissingAvatarUrls&&!this.requestedMissingAvatars[e]&&(this.pendingMissingAvatars[e]=t,this.missingAvatarsTimer&&(clearTimeout(this.missingAvatarsTimer),this.missingAvatarsTimer=void 0),this.missingAvatarsTimer=setTimeout((()=>{const e={...this.pendingMissingAvatars};this.pendingMissingAvatars={};const t=Object.keys(e);for(let e=0;e<t.length;e+=1)this.requestedMissingAvatars[t[e]]=!0;t.length>0&&this.props.onEmailsMissingAvatarUrls&&this.props.onEmailsMissingAvatarUrls(e)}),100))};onMissingRefMetadata=(e,t)=>{if(!this.props.onRefsMissingMetadata||this.requestedMissingRefsMetadata[e])return;const o=this.pendingMissingRefsMetadata[e]||[],n=t.filter((e=>!o.includes(e)));this.pendingMissingRefsMetadata[e]=[...o,...n],this.missingRefsMetadataTimer&&(clearTimeout(this.missingRefsMetadataTimer),this.missingRefsMetadataTimer=void 0),this.missingRefsMetadataTimer=setTimeout((()=>{const e={...this.pendingMissingRefsMetadata};this.pendingMissingRefsMetadata={};const t=Object.keys(e);for(let e=0;e<t.length;e+=1)this.requestedMissingRefsMetadata[t[e]]=!0;t.length>0&&this.props.onRefsMissingMetadata&&this.props.onRefsMissingMetadata(e)}),100)};selectNext(e){const t=this.getSelectedShas(),o=t.length>0?t[t.length-1]:null;let n;if(e&&o){const e=this.processedGraphRowBySha[o];e?.parents?.length&&(n=e.parents[0])}else{const e=o?this.orderedGraphRows.findIndex((e=>e.sha===o)):-1,t=Math.min(e+1,this.orderedGraphRows.length-1);n=this.orderedGraphRows[t]?.sha}n&&this.selectCommits([n],!1,!0)}selectPrevious(e){const t=this.getSelectedShas(),o=t.length>0?t[0]:null;let n;if(e&&o){const e=this.childrenBySha[o];if(e?.length)for(let t=0;t<e.length;t+=1)if(t===e.length-1)n=e[t];else if(this.processedGraphRowBySha[e[t]]?.type!==Ie){n=e[t];break}}else{const e=o?this.orderedGraphRows.findIndex((e=>e.sha===o)):-1,t=Math.max(-1,e-1);n=this.orderedGraphRows[t]?.sha,t<0&&(n=this.orderedGraphRows[0]?.sha)}n&&this.selectCommits([n],!1,!0)}getAvailableColumnAndUseIt(){let e=0;for(;this.columnsUsed[e];)e+=1;return this.columnsUsed[e]=!0,e}getColumns(e){const t=e.parents||[],o=this.columnsToFreeWhenFound[e.sha];if(void 0!==o)for(let e=0;e<o.length;e+=1)delete this.columnsUsed[o[e]];let n=0;const r=this.reserverInfoBySha[e.sha];let i,s;r&&void 0!==r?.column?(n=r.column,delete this.reserverInfoBySha[e.sha]):n=this.getAvailableColumnAndUseIt();for(let o=0;o<t.length;o+=1)if(i=t[o],s=this.reserverInfoBySha[i],0===o&&void 0!==s?.column&&s?.column!==n){const t=this.columnsToFreeWhenFound[i]||[];s?.type===Ie&&e.type!==Ie&&r?.newestDate>s?.newestDate?(this.reserverInfoBySha[i]={type:e.type,newestDate:r?.newestDate,column:n},t.push(s.column)):t.push(n),this.columnsToFreeWhenFound[i]=t}else void 0===s?.column&&(this.reserverInfoBySha[i]={type:e.type,newestDate:r?.column===n?r?.newestDate:e.date,column:0===o?n:this.getAvailableColumnAndUseIt()});return n}getFilteredHeadsForGraphRow(e,t){return e.heads.filter((e=>t?void 0!==this.includeOnlyRefsById[Uo(No.HEAD,e)]:!this.excludeByType.heads&&void 0===this.excludeRefsById[Uo(No.HEAD,e)]))}getFilteredRemotesForGraphRow(e,t){return e.remotes.filter((e=>t?void 0!==this.includeOnlyRefsById[Uo(No.REMOTE,e)]||!e.owner||void 0!==this.includeOnlyRemotesByName[e.owner]:!(this.excludeByType.remotes||void 0!==this.excludeRefsById[Uo(No.REMOTE,e)]||e.owner&&void 0!==this.excludeRemotesByName[e.owner])))}getFilteredTagsForGraphRow(e,t,o){const n=t&&Object.values(this.includeOnlyRefsById).some((e=>e.type===No.TAG)),r=t&&(this.getFilteredHeadsForGraphRow(e,t).length>0||this.getFilteredRemotesForGraphRow(e,t).length>0);return e.tags.filter((e=>n?void 0!==this.includeOnlyRefsById[Uo(No.TAG,e)]:!this.excludeByType.tags&&void 0===this.excludeRefsById[Uo(No.TAG,e)]&&(!t||r||o)))}loadRowsbySha(e){this.orderedGraphRows=[],this.processedGraphRowBySha={},this.childrenBySha={},this.reserverInfoBySha={},this.columnsToFreeWhenFound={},this.columnsUsed={};const t=new Map,o={},n=[],r=[],i=[],s=[],l=[],a=[],c={},h=[],d=void 0!==this.graphZonesByType[Mo]&&!this.graphZonesByType[Mo].isHidden;if(tn(this.workDirStats)&&e.length>0&&e[0].type!==ze){const t=function(e){return e.find(en)?.sha||void 0}(e),o={sha:ze,parents:t?[t]:[],author:"",email:"",date:(new Date).getTime(),message:"",type:ze,heads:[],remotes:[],tags:[],childRefs:{heads:[],tags:[],remotes:[]}};this.workDirStats.context&&(o.contexts={row:this.workDirStats.context}),e.unshift(o)}else!tn(this.workDirStats)&&e.length>0&&e[0].type===ze&&e.shift();const u=Object.keys(this.includeOnlyRefsById).length>0;e.forEach(((e,p)=>{const f=this.childrenBySha[e.sha]?.length>0,m=e.heads?.length>0?this.getFilteredHeadsForGraphRow(e,u):[],g=e.remotes?.length>0?this.getFilteredRemotesForGraphRow(e,u):[],v=e.tags?.length>0?this.getFilteredTagsForGraphRow(e,u,Boolean(c[e.sha]||f)):[],y=e.parents?.length>0?e.parents.filter((e=>!o[e])):[],w=m.length>0||g.length>0||v.length>0,S=m.length>0||g.length>0;if(e.type!==Te&&e.type!==Oe||c[e.sha]){if(e.type===Ie&&this.excludeByType.stashes&&(o[e.sha]=!0),!o[e.sha]&&y.length>0){let e;for(e of y)c[e]=!0}}else e.type!==Te&&e.type!==Oe||c[e.sha]||w||f||(o[e.sha]=!0);const b=o[e.sha],C={...e,heads:m,remotes:g,tags:v,parents:y,column:b?0:this.getColumns(e),edgeColumnMaxes:0,edges:{},hasRefs:w,messageInline:e.message.replace(/\n+(?:\s+\n+)?/g," | "),childRefs:{heads:[],tags:[],remotes:[]}};if(!b){let o;const c=t.get(e.sha);c?.length&&(c.sort(((e,t)=>{if(e.parentIndexScore<t.parentIndexScore)return-1;if(e.parentIndexScore>t.parentIndexScore)return 1;if(e.parentIndexScore===t.parentIndexScore){if(e.rowEntered<t.rowEntered)return-1;if(e.rowEntered>t.rowEntered)return 1}return 0})),o=c[0],C.childRefs={heads:[...o?.heads||[]],remotes:[...o?.remotes||[]],tags:[...o?.tags||[]]},t.delete(e.sha));for(let n=0;n<y.length;n+=1){const r=y[n];this.childrenBySha[r]||(this.childrenBySha[r]=[]),this.childrenBySha[r].push(e.sha);let i=t.get(r);(S||o)&&void 0===i&&(i=[],t.set(r,i)),S?i?.unshift({sha:e.sha,parentIndexScore:n,rowEntered:p,heads:m,remotes:g,tags:v}):o&&i?.unshift({...o,parentIndexScore:n,rowEntered:p})}const u=this.orderedGraphRows.length;C.rowIndex=u,m.length>0&&(i.push(u),m.some((e=>e.isCurrentHead))&&n.push(u)),g.length>0&&(s.push(u),g.some((e=>e.current))&&r.push(u)),v.length>0&&l.push(u),e.type===Ie&&a.push(u),this.orderedGraphRows.push(C),d&&C.stats&&h.push(C.stats)}this.processedGraphRowBySha[e.sha]=C})),this.markerRowIndices={...this.markerRowIndices,[Io.Head]:n,[Io.Upstream]:r,[Io.LocalBranches]:i,[Io.RemoteBranches]:s,[Io.Tags]:l,[Io.Stashes]:a},d&&(this.rowStatsConstraints=Fo(h,!0)),clearInterval(this.timelinesInterval),this.updateTimelines(),this.timelinesInterval=setInterval((()=>{this.clearTimelines(),this.updateTimelines(),this.setState({processedRows:[...this.orderedGraphRows]})}),9e5),this.onGraphVisibleRowsUpdated()}updateRowStatsConstraints(){const e=[];this.orderedGraphRows.forEach((t=>{t.stats&&e.push(t.stats)})),this.rowStatsConstraints=Fo(e,!0)}updateTimelines(){const e=function(){const e=new Date,t={hour:[],day:[],week:[],month:[],year:[]},o=36e5,n=864e5;let r;for(r=1;r<=Po.hour;r+=1)t.hour.push({date:e.getTime()-r*o,label:1===r?"Timeline-1HourAgo":"Timeline-NHoursAgo",timeUnit:"hour",value:r});for(r=1;r<=Po.day;r+=1)t.day.push({date:e.getTime()-r*n,label:1===r?"Timeline-Yesterday":"Timeline-NDaysAgo",timeUnit:"day",value:r});for(r=1;r<=Po.week;r+=1)t.week.push({date:e.getTime()-6048e5*r,label:1===r?"Timeline-1WeekAgo":"Timeline-NWeeksAgo",timeUnit:"week",value:r});const i=new Date;for(i.setHours(0,0,0,0),r=1;r<=Po.month;r+=1)i.setMonth(i.getMonth()-1),i.setHours(0,0,0,0),t.month.push({date:i.getTime(),label:1===r?"Timeline-1MonthAgo":"Timeline-NMonthsAgo",timeUnit:"month",value:r});const s=new Date;for(s.setHours(0,0,0,0),r=1;r<=Po.year;r+=1){let e;switch(s.setFullYear(s.getFullYear()-1),s.setHours(0,0,0,0),r){case 1:e="Timeline-1YearAgo";break;case Po.year:e="Timeline-NPlusYearsAgo";break;default:e="Timeline-NYearsAgo"}t.year.push({date:s.getTime(),label:e,timeUnit:"year",value:r})}return t}();Object.values(e).forEach((e=>{e.forEach((e=>{const{date:t}=e,o=this.orderedGraphRows.find((e=>e.date<t));o&&this.processedGraphRowBySha[o.sha]&&(this.processedGraphRowBySha[o.sha].timeLineEntry=e)}))}))}clearTimelines(){Object.keys(this.processedGraphRowBySha).forEach((e=>{this.processedGraphRowBySha[e].timeLineEntry&&delete this.processedGraphRowBySha[e].timeLineEntry}))}cleanupSelections(){const e=Object.keys(this.isSelectedBySha);for(let t=0;t<e.length;t+=1){const o=e[t];this.processedGraphRowBySha[o]||delete this.isSelectedBySha[o]}}getColumnColorByColumn(e){const t=this.getNumGraphColumns(e),o=this.maxColumns>t?this.maxColumns:t,n={};for(let i=0;i<=o;i+=1)if(i<t){const t=e[Re(i)];n[i]="rgba"===(r=Ll(t)).type?`rgba(${r.r}, ${r.g}, ${r.b}, ${Number(r.a.toFixed(2))})`:`hsla(${r.h}, ${(100*r.s).toFixed(2)}%, ${(100*r.l).toFixed(2)}%, ${Number(r.a.toFixed(2))})`}else{const e=n[i%t];n[i]=e}var r;return n}getNumGraphColumns(e){const t=e["--num-columns-supported"],o=Number.parseInt(t,10);return Number.isNaN(o)?10:o}ensureZoneWidthsMatchGraphWidth(e,t){const o=Yo(e);o>t&&this.shrinkZoneWidthsToFitWidth(e,t),o<t&&this.expandZoneWidthsToFitWidth(e,t)}shrinkZoneWidthsToFitWidth(e,t,o){let n=Yo(e);for(;n>t;){const r=Vo(e,o);if(!r)break;const i=Yo(e,r.type);if(i+r.currentWidth>t){const o=Ko(r,e,t-i);this.updateWidthByZone(o,r.type)}n=Yo(e)}}getOrderedActiveGraphZones(){return this.graphZoneOrdering.sort(((e,t)=>this.graphZonesByType[e].order<this.graphZonesByType[t].order?-1:this.graphZonesByType[e].order>this.graphZonesByType[t].order?1:0)).filter((e=>!this.graphZonesByType[e].isHidden)).map((e=>this.graphZonesByType[e]))}expandZoneWidthsToFitWidth(e,t,o){let n=Yo(e);for(;n<t;){const r=$o(e,o);if(!r)break;const i=Yo(e,r.type),s=r.maximumWidth?Math.min(r.maximumWidth,r.preferredWidth||1/0):r.preferredWidth||0;if(i+r.currentWidth<t){let o=t-i;!qo(r.type,e)&&o>s&&(o=s),o=Ko(r,e,o),this.updateWidthByZone(o,r.type)}n=Yo(e)}}onGraphHeaderRowMouseDown=e=>{1===e.button&&e.preventDefault()};onToggleRefNodesShown=(e,t,o,n)=>{t.forEach((e=>{o&&this.excludeRefsById[e.id]?delete this.excludeRefsById[e.id]:o||(this.excludeRefsById[e.id]=e)})),this.excludeRemotesByName=this.getExcludeRemotesByName(),this.props.onToggleRefsVisibilityClick&&this.props.onToggleRefsVisibilityClick(e,t,o,n?this.processedGraphRowBySha[n]:void 0),this.processRows(this.props.graphRows),this.setState({processedRows:[...this.orderedGraphRows]})};cleanEdgeCaches(){Ys={},Fs={},Vs={},Us={}}onZoneEnter=(e,t,o,n)=>{t!==xo&&(o&&n&&this.onRefNodeUnhovered(e,o,n),this.onRefZoneUnhovered())};adjustResizedGraphZone(e,t,o,n){if(o&&o.width){const r=t.currentWidth;this.updateWidthByZone(o.width,t.type,n);const i=Qo(t.type,e),s=this.graphZonesByType[t.type];r>s.currentWidth&&this.expandZoneWidthsToFitWidth(e,this.graphWidth,i+1),r<s.currentWidth&&this.shrinkZoneWidthsToFitWidth(e,this.graphWidth,i-1)}}dimRowsOfSelectedCommit(e){this.setState({dimRowsOfSelectedCommit:e})}onGraphContainerBlurred=(e,t,o)=>{t&&o&&this.onRefNodeUnhovered(e,t,o),this.onRefZoneUnhovered()};onGraphContainerMouseEnter=e=>{this.props.onGraphMouseEnter&&this.props.onGraphMouseEnter(e)};onGraphContainerMouseLeave=e=>{this.props.onGraphMouseLeave&&this.props.onGraphMouseLeave(e)};onGraphResized=Wo(((e,t)=>{const o=Math.floor(t),n=Math.floor(e),r=o!==this.graphHeight,i=n!==this.graphWidth,s={};if(r&&(this.graphHeight=o,s.height=o),i){this.graphWidth=n;const e=this.getOrderedActiveGraphZones();this.ensureZoneWidthsMatchGraphWidth(e,this.graphWidth),s.width=this.graphWidth,s.graphZones=e}(r||i)&&(this.setState(s),r&&this.onGraphVisibleRowsUpdatedThrottled(),this.props.onGraphResized&&this.props.onGraphResized(this.graphWidth,this.graphHeight))}));onGraphVisibleRowsUpdated(){if(!this.props.onGraphVisibleRowsChanged||!this.orderedGraphRows||!this.orderedGraphRows.length)return;const{top:e,bottom:t}=this.getTopAndBottomVisibleRowIndex();-1===e||-1===t||e>=this.orderedGraphRows.length||t>=this.orderedGraphRows.length||e===this.lastTopVisibleRowIndex&&t===this.lastBottomVisibleRowIndex||(this.lastTopVisibleRowIndex=e,this.lastBottomVisibleRowIndex=t,this.props.onGraphVisibleRowsChanged&&this.props.onGraphVisibleRowsChanged(this.orderedGraphRows[e],this.orderedGraphRows[t]))}getCurrentPlatform(){return this.props.platform||"darwin"}isMacOSPlatform(){return"darwin"===this.getCurrentPlatform()}getGraphColumnSettingFromZoneType(e){return{width:e.preferredWidth||0,isHidden:e.isHidden,order:e.order}}decorateWithHelmet=(e,t,o)=>{const n=function(e){const t=e||xe;let o="";const n=Object.keys(t);o+="body {\n";for(const e of n)o+=`${e}: ${t[e]};\n`;return o+="}\n",o}(t);return i().createElement("div",{id:"graph-container-helmet"},i().createElement(pe,null,i().createElement("style",{nonce:o},n)),e)};render(){const{isInUnsupportedRebase:e,isCommitting:t,pendingCommitMessageSummary:o,repoPath:n,nonce:r}=this.props,{avatarUrlByEmail:s,columnColorByColumn:l,contexts:a,cssVariablesWithDefaults:c,currentlyHoveredCommitSha:h,dimMergeCommits:d,dimRowsOfSelectedCommit:u,highlightRowsOnRefHover:p,showGhostRefsOnRowHover:f,showRemoteNamesOnRefs:m,enabledRefMetadataTypes:g,enabledScrollMarkerTypes:v,graphZones:y,hasMoreCommits:w,height:S,highlightedShas:b,hoveredRefGroup:C,hoveredRefZoneSha:x,themeOpacityFactor:R,isContainerWindowFocused:_,isLoadingRows:T,numGraphColumns:E,processedRows:O,refMetadataById:M,useAuthorInitialsForAvatars:I,scrollToAlignment:z,scrollToIndex:k,scrollTop:G,scrollLeft:P,shaLength:A,width:H,workDirStats:L}=this.state,D=me()("flex","graph-container"),N=(W=O,e=>e===W.length?"SHOW_MORE_COMMITS":W[e].sha);var W;const B=(F=e=>N(e),({cellCache:e,cellRenderer:t,columnSizeAndPositionManager:o,columnStartIndex:n,columnStopIndex:r,deferredMeasurementCache:i,horizontalOffsetAdjustment:s,isScrolling:l,parent:a,rowSizeAndPositionManager:c,rowStartIndex:h,rowStopIndex:d,styleCache:u,verticalOffsetAdjustment:p,visibleColumnIndices:f,visibleRowIndices:m})=>{const g=[],v=e,y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),w=!l&&!y;for(let e=h;e<=d;e+=1){const h=c.getSizeAndPositionOfCell(e);for(let c=n;c<=r;c+=1){const n=o.getSizeAndPositionOfCell(c),r=c>=f.start&&c<=f.stop&&e>=m.start&&e<=m.stop,d=`${e}-${c}`;let y;w&&u[d]?y=u[d]:i&&!i.has(e,c)?y={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(y={height:h.size,left:n.offset+s,position:"absolute",top:h.offset+p,width:n.size},u[d]=y);const S={columnIndex:c,isScrolling:l,isVisible:r,key:d,parent:a,rowIndex:e,style:y};let b;if(!l||s||p)b=t(S);else{const o=F(e,c);v[d]&&v[d].realKeyForCell===o||(v[d]={realKeyForCell:o,cell:t(S)}),b=v[d].cell}null!=b&&g.push(b)}}return g});var F;const j=this.getLeftGutterWidth(),U=this.getRightGutterWidth(),Z=this.getRightGutterBoxShadowAlpha(R),V=this.getLeftGutterBoxShadowAlpha(R),$=this.getNodeOffsetByColumn(),Y=this.getNodeOpacityByColumn(),q=!C,K={avatarUrlByEmail:s,dimMergeCommits:d,dimRowsOfSelectedCommit:u,highlightRowsOnRefHover:p,showGhostRefsOnRowHover:f,showRemoteNamesOnRefs:m,enabledRefMetadataTypes:g,isInUnsupportedRebase:e,isCommitting:t,isContainerWindowFocused:_,pendingCommitMessageSummary:o,workDirStats:L,repoPath:n,columnColorByColumn:l,currentlyHoveredCommitSha:h,cssVariables:c,graphZones:y,height:S,highlightedShas:b,hoveredRefGroup:C,hoveredRefZoneSha:x,includeOnlyRefsById:this.includeOnlyRefsById,includeOnlyRemotesByName:this.includeOnlyRemotesByName,isSelectedBySha:this.isSelectedBySha,leftGutterBoxShadowAlpha:V,leftGutterWidth:j,nodeOffsetByColumn:$,nodeOpacityByColumn:Y,nonce:r,numGraphColumns:E,processedRows:O,processedGraphRowBySha:this.processedGraphRowBySha,refMetadataById:M,rightGutterBoxShadowAlpha:Z,rightGutterWidth:U,rowStatsConstraints:this.rowStatsConstraints,useAuthorInitialsForAvatars:I,scrollToAlignment:z,scrollLeft:P,scrollTop:G,shaLength:A,width:H,onMissingAvatar:this.onMissingAvatar,onMissingRefMetadata:this.onMissingRefMetadata,clearCurrentlyHoveredGraphCommit:this.onClearCurrentlyHoveredGraphCommit,setAsCurrentlyHoveredGraphCommit:this.onCurrentlyHoveredGraphCommit,onClickRef:this.onClickRef,onClickCommit:this.onClickCommit,onDoubleClickCommit:this.onDoubleClickCommit,onBlurWipNodeInput:this.onBlurWipNodeInput,onFocusWipNodeInput:this.onFocusWipNodeInput,onDoubleClickRef:this.onDoubleClickRef,onMessageChange:this.onMessageChange,onRefNodeHovered:this.onRefNodeHovered,onRefNodeUnhovered:this.onRefNodeUnhovered,onRefZoneHovered:this.onRefZoneHovered,onRefZoneUnhovered:this.onRefZoneUnhovered,onToggleRefNodesShown:this.onToggleRefNodesShown,onCommitContextMenu:this.onCommitContextMenu,onShowContextMenuForGroupedRef:this.onRefContextMenu,onWipNodeInputWillUnmount:this.onWipNodeInputWillUnmount,getExternalIcon:this.getIconCallback,formatCommitDateTime:this.formatCommitDateTimeCallback,translate:this.translateCallback},X={[xo]:Ol(K,N),[Ro]:Yl(K,N),[_o]:yl(K,N),[To]:gl(K,N),[Eo]:vl(K,N),[Oo]:wl(K,N),[Mo]:pl(K,N),[Co]:ql(K,N)},Q=y.map(((e,t)=>i().createElement(ws,{cellRenderersByIds:X,columnIndex:t,cssVariables:c,enableResizer:q,getExternalIcon:this.getIconCallback,getKeyForCell:N,graphHeight:S-26,graphWidth:H,graphZones:y,graphZoneType:e.type,hasMoreCommits:w,isLoadingRows:T,key:`${e.type}ColumnContainer`,onResize:this.onGraphZoneResize,onResizeEnd:this.onGraphZoneResizeEnd,onScroll:this.onScrollForZone,onScrollToRowCausedUpdate:e.type===xo?this.onScrollToRowCausedUpdateForRefZone:void 0,onZoneEnter:t=>this.onZoneEnter(t,e.type,C,x),rowCount:O.length,scrollLeft:P,scrollToAlignment:e.type===xo?z:void 0,scrollToIndex:e.type===xo?k:void 0,scrollTop:G,smartCellRangeRenderer:B,translate:this.translateCallback}))),J=S-26,ee=this.orderedGraphRows.length*Xt,te=i().createElement("div",{className:"graph-component","data-vscode-context":Bo(a?.graph),onBlur:e=>this.onGraphContainerBlurred(e,C,x),onMouseEnter:this.onGraphContainerMouseEnter,onMouseLeave:this.onGraphContainerMouseLeave,ref:this.graphContainerRef,style:{height:"100%",width:"100%",position:"absolute"},tabIndex:-1},i().createElement(Zn,{context:a?.header,enableResizer:q,excludeRefsById:this.excludeRefsById,getExternalIcon:this.getIconCallback,graphZones:y,height:S,includeOnlyRefsById:this.includeOnlyRefsById,onColumnReOrdered:this.onGraphColumnReOrdered,onGraphZoneResize:this.onGraphZoneResize,onGraphZoneResizeEnd:this.onGraphZoneResizeEnd,onPopupGraphHeaderContextMenu:this.onPopupGraphHeaderContextMenu,onToggleRefNodesShown:this.onToggleRefNodesShown,repoPath:n,showRemoteNamesOnRefs:m,translate:this.translateCallback,width:H}),i().createElement("div",{className:b?me()(D,"graph-highlighted"):D,id:"graph-container",onKeyDown:this.onKeyDown,onMouseDown:this.onGraphHeaderRowMouseDown,style:{height:S,width:H},tabIndex:-1},v.length?i().createElement(Cs,{enabledScrollMarkerTypes:v,markerColors:this.getMarkerColors(),markerRowIndices:this.markerRowIndices,scrollWidth:parseInt(c["---scrollable-scrollbar-thickness"],10),totalRows:this.orderedGraphRows.length,viewportHeight:J<ee?J:ee,viewportWidth:H}):null,Q));return this.decorateWithHelmet(te,c,r)}}var Xl=Kl})(),module.exports=n})();
|
|
1
|
+
(()=>{var e={2989:e=>{e.exports=function(e,t){return Array.prototype.slice.call(e,t)}},4184:(e,t)=>{var o;!function(){var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var s=r.apply(null,o);s&&e.push(s)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var l in o)n.call(o,l)&&o[l]&&e.push(l)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},8514:(e,t,o)=>{var n=o(6115);e.exports=function(e,t,o){e&&n((function(){e.apply(o||null,t||[])}))}},5229:(e,t,o)=>{var n=o(2989),r=o(8514);e.exports=function(e,t){var o=t||{},i={};return void 0===e&&(e={}),e.on=function(t,o){return i[t]?i[t].push(o):i[t]=[o],e},e.once=function(t,o){return o._once=!0,e.on(t,o),e},e.off=function(t,o){var n=arguments.length;if(1===n)delete i[t];else if(0===n)i={};else{var r=i[t];if(!r)return e;r.splice(r.indexOf(o),1)}return e},e.emit=function(){var t=n(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var s=(i[t]||[]).slice(0);return function(){var i=n(arguments),l=this||e;if("error"===t&&!1!==o.throws&&!s.length)throw 1===i.length?i[0]:i;return s.forEach((function(n){o.async?r(n,i,l):n.apply(l,i),n._once&&e.off(t,n)})),e}},e}},3285:(e,t,o)=>{o(8691),e.exports=o(4579).Array.isArray},6981:(e,t,o)=>{o(2699),e.exports=o(4579).Object.assign},5627:(e,t,o)=>{o(6760);var n=o(4579).Object;e.exports=function(e,t){return n.create(e,t)}},7965:(e,t,o)=>{o(520),e.exports=o(4579).Object.entries},8613:(e,t,o)=>{o(961),e.exports=o(4579).Object.keys},433:(e,t,o)=>{o(9349),e.exports=o(4579).Object.setPrototypeOf},5663:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},2159:(e,t,o)=>{var n=o(6727);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},7428:(e,t,o)=>{var n=o(7932),r=o(8728),i=o(6531);e.exports=function(e){return function(t,o,s){var l,a=n(t),c=r(a.length),h=i(s,c);if(e&&o!=o){for(;c>h;)if((l=a[h++])!=l)return!0}else for(;c>h;h++)if((e||h in a)&&a[h]===o)return e||h||0;return!e&&-1}}},2894:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},4579:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},9216:(e,t,o)=>{var n=o(5663);e.exports=function(e,t,o){if(n(e),void 0===t)return e;switch(o){case 1:return function(o){return e.call(t,o)};case 2:return function(o,n){return e.call(t,o,n)};case 3:return function(o,n,r){return e.call(t,o,n,r)}}return function(){return e.apply(t,arguments)}}},8333:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},9666:(e,t,o)=>{e.exports=!o(7929)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},7467:(e,t,o)=>{var n=o(6727),r=o(3938).document,i=n(r)&&n(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},3338:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},3856:(e,t,o)=>{var n=o(3938),r=o(4579),i=o(9216),s=o(1818),l=o(7069),a="prototype",c=function(e,t,o){var h,d,u,p=e&c.F,f=e&c.G,m=e&c.S,g=e&c.P,v=e&c.B,y=e&c.W,w=f?r:r[t]||(r[t]={}),S=w[a],b=f?n:m?n[t]:(n[t]||{})[a];for(h in f&&(o=t),o)(d=!p&&b&&void 0!==b[h])&&l(w,h)||(u=d?b[h]:o[h],w[h]=f&&"function"!=typeof b[h]?o[h]:v&&d?i(u,n):y&&b[h]==u?function(e){var t=function(t,o,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,o)}return new e(t,o,n)}return e.apply(this,arguments)};return t[a]=e[a],t}(u):g&&"function"==typeof u?i(Function.call,u):u,g&&((w.virtual||(w.virtual={}))[h]=u,e&c.R&&S&&!S[h]&&s(S,h,u)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},7929:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},3938:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},7069:e=>{var t={}.hasOwnProperty;e.exports=function(e,o){return t.call(e,o)}},1818:(e,t,o)=>{var n=o(4743),r=o(3101);e.exports=o(9666)?function(e,t,o){return n.f(e,t,r(1,o))}:function(e,t,o){return e[t]=o,e}},4881:(e,t,o)=>{var n=o(3938).document;e.exports=n&&n.documentElement},3758:(e,t,o)=>{e.exports=!o(9666)&&!o(7929)((function(){return 7!=Object.defineProperty(o(7467)("div"),"a",{get:function(){return 7}}).a}))},799:(e,t,o)=>{var n=o(2894);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},1421:(e,t,o)=>{var n=o(2894);e.exports=Array.isArray||function(e){return"Array"==n(e)}},6727:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},6227:e=>{e.exports=!0},8082:(e,t,o)=>{var n=o(9666),r=o(6162),i=o(8195),s=o(6274),l=o(6530),a=o(799),c=Object.assign;e.exports=!c||o(7929)((function(){var e={},t={},o=Symbol(),n="abcdefghijklmnopqrst";return e[o]=7,n.split("").forEach((function(e){t[e]=e})),7!=c({},e)[o]||Object.keys(c({},t)).join("")!=n}))?function(e,t){for(var o=l(e),c=arguments.length,h=1,d=i.f,u=s.f;c>h;)for(var p,f=a(arguments[h++]),m=d?r(f).concat(d(f)):r(f),g=m.length,v=0;g>v;)p=m[v++],n&&!u.call(f,p)||(o[p]=f[p]);return o}:c},526:(e,t,o)=>{var n=o(2159),r=o(7856),i=o(3338),s=o(8989)("IE_PROTO"),l=function(){},a="prototype",c=function(){var e,t=o(7467)("iframe"),n=i.length;for(t.style.display="none",o(4881).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[a][i[n]];return c()};e.exports=Object.create||function(e,t){var o;return null!==e?(l[a]=n(e),o=new l,l[a]=null,o[s]=e):o=c(),void 0===t?o:r(o,t)}},4743:(e,t,o)=>{var n=o(2159),r=o(3758),i=o(3206),s=Object.defineProperty;t.f=o(9666)?Object.defineProperty:function(e,t,o){if(n(e),t=i(t,!0),n(o),r)try{return s(e,t,o)}catch(e){}if("get"in o||"set"in o)throw TypeError("Accessors not supported!");return"value"in o&&(e[t]=o.value),e}},7856:(e,t,o)=>{var n=o(4743),r=o(2159),i=o(6162);e.exports=o(9666)?Object.defineProperties:function(e,t){r(e);for(var o,s=i(t),l=s.length,a=0;l>a;)n.f(e,o=s[a++],t[o]);return e}},6183:(e,t,o)=>{var n=o(6274),r=o(3101),i=o(7932),s=o(3206),l=o(7069),a=o(3758),c=Object.getOwnPropertyDescriptor;t.f=o(9666)?c:function(e,t){if(e=i(e),t=s(t,!0),a)try{return c(e,t)}catch(e){}if(l(e,t))return r(!n.f.call(e,t),e[t])}},8195:(e,t)=>{t.f=Object.getOwnPropertySymbols},2963:(e,t,o)=>{var n=o(7069),r=o(7932),i=o(7428)(!1),s=o(8989)("IE_PROTO");e.exports=function(e,t){var o,l=r(e),a=0,c=[];for(o in l)o!=s&&n(l,o)&&c.push(o);for(;t.length>a;)n(l,o=t[a++])&&(~i(c,o)||c.push(o));return c}},6162:(e,t,o)=>{var n=o(2963),r=o(3338);e.exports=Object.keys||function(e){return n(e,r)}},6274:(e,t)=>{t.f={}.propertyIsEnumerable},2584:(e,t,o)=>{var n=o(3856),r=o(4579),i=o(7929);e.exports=function(e,t){var o=(r.Object||{})[e]||Object[e],s={};s[e]=t(o),n(n.S+n.F*i((function(){o(1)})),"Object",s)}},2050:(e,t,o)=>{var n=o(9666),r=o(6162),i=o(7932),s=o(6274).f;e.exports=function(e){return function(t){for(var o,l=i(t),a=r(l),c=a.length,h=0,d=[];c>h;)o=a[h++],n&&!s.call(l,o)||d.push(e?[o,l[o]]:l[o]);return d}}},3101:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},2906:(e,t,o)=>{var n=o(6727),r=o(2159),i=function(e,t){if(r(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=o(9216)(Function.call,o(6183).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,o){return i(e,o),t?e.__proto__=o:n(e,o),e}}({},!1):void 0),check:i}},8989:(e,t,o)=>{var n=o(250)("keys"),r=o(5730);e.exports=function(e){return n[e]||(n[e]=r(e))}},250:(e,t,o)=>{var n=o(4579),r=o(3938),i="__core-js_shared__",s=r[i]||(r[i]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:o(6227)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},6531:(e,t,o)=>{var n=o(1052),r=Math.max,i=Math.min;e.exports=function(e,t){return(e=n(e))<0?r(e+t,0):i(e,t)}},1052:e=>{var t=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:t)(e)}},7932:(e,t,o)=>{var n=o(799),r=o(8333);e.exports=function(e){return n(r(e))}},8728:(e,t,o)=>{var n=o(1052),r=Math.min;e.exports=function(e){return e>0?r(n(e),9007199254740991):0}},6530:(e,t,o)=>{var n=o(8333);e.exports=function(e){return Object(n(e))}},3206:(e,t,o)=>{var n=o(6727);e.exports=function(e,t){if(!n(e))return e;var o,r;if(t&&"function"==typeof(o=e.toString)&&!n(r=o.call(e)))return r;if("function"==typeof(o=e.valueOf)&&!n(r=o.call(e)))return r;if(!t&&"function"==typeof(o=e.toString)&&!n(r=o.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},5730:e=>{var t=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+o).toString(36))}},8691:(e,t,o)=>{var n=o(3856);n(n.S,"Array",{isArray:o(1421)})},2699:(e,t,o)=>{var n=o(3856);n(n.S+n.F,"Object",{assign:o(8082)})},6760:(e,t,o)=>{var n=o(3856);n(n.S,"Object",{create:o(526)})},961:(e,t,o)=>{var n=o(6530),r=o(6162);o(2584)("keys",(function(){return function(e){return r(n(e))}}))},9349:(e,t,o)=>{var n=o(3856);n(n.S,"Object",{setPrototypeOf:o(2906).set})},520:(e,t,o)=>{var n=o(3856),r=o(2050)(!0);n(n.S,"Object",{entries:function(e){return r(e)}})},1808:(e,t,o)=>{var n=o(9638),r=o(4874),i=o.g.document,s=function(e,t,o,n){return e.addEventListener(t,o,n)},l=function(e,t,o,n){return e.removeEventListener(t,o,n)},a=[];function c(e,t,o){var n=function(e,t,o){var n,r;for(n=0;n<a.length;n++)if((r=a[n]).element===e&&r.type===t&&r.fn===o)return n}(e,t,o);if(n){var r=a[n].wrapper;return a.splice(n,1),r}}o.g.addEventListener||(s=function(e,t,n){return e.attachEvent("on"+t,function(e,t,n){var r=c(e,t,n)||function(e,t,n){return function(t){var r=t||o.g.event;r.target=r.target||r.srcElement,r.preventDefault=r.preventDefault||function(){r.returnValue=!1},r.stopPropagation=r.stopPropagation||function(){r.cancelBubble=!0},r.which=r.which||r.keyCode,n.call(e,r)}}(e,0,n);return a.push({wrapper:r,element:e,type:t,fn:n}),r}(e,t,n))},l=function(e,t,o){var n=c(e,t,o);if(n)return e.detachEvent("on"+t,n)}),e.exports={add:s,remove:l,fabricate:function(e,t,o){var s=-1===r.indexOf(t)?new n(t,{detail:o}):function(){var e;i.createEvent?(e=i.createEvent("Event")).initEvent(t,!0,!0):i.createEventObject&&(e=i.createEventObject());return e}();e.dispatchEvent?e.dispatchEvent(s):e.fireEvent("on"+t,s)}}},4874:(e,t,o)=>{var n=[],r="",i=/^on/;for(r in o.g)i.test(r)&&n.push(r.slice(2));e.exports=n},9638:(e,t,o)=>{var n=o.g.CustomEvent;e.exports=function(){try{var e=new n("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?n:"function"==typeof document.createEvent?function(e,t){var o=document.createEvent("CustomEvent");return t?o.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):o.initCustomEvent(e,!1,!1,void 0),o}:function(e,t){var o=document.createEventObject();return o.type=e,t?(o.bubbles=Boolean(t.bubbles),o.cancelable=Boolean(t.cancelable),o.detail=t.detail):(o.bubbles=!1,o.cancelable=!1,o.detail=void 0),o}},3249:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=void 0;var r=function(){};n(o(139)).default&&(r=document.addEventListener?function(e,t,o,n){return e.removeEventListener(t,o,n||!1)}:document.attachEvent?function(e,t,o){return e.detachEvent("on"+t,o)}:void 0);var i=r;t.default=i,e.exports=t.default},1416:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=void 0;var r=function(){};n(o(139)).default&&(r=document.addEventListener?function(e,t,o,n){return e.addEventListener(t,o,n||!1)}:document.attachEvent?function(e,t,o){return e.attachEvent("on"+t,(function(t){(t=t||window.event).target=t.target||t.srcElement,t.currentTarget=e,o.call(e,t)}))}:void 0);var i=r;t.default=i,e.exports=t.default},9981:(e,t)=>{t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},1629:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=void 0;var r=n(o(139)).default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):i(e,t)}:i;function i(e,t){if(t)do{if(t===e)return!0}while(t=t.parentNode);return!1}t.default=r,e.exports=t.default},7624:(e,t)=>{t.__esModule=!0,t.default=function(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)},e.exports=t.default},2565:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){var t=(0,s.default)(e),o=(0,i.default)(t),n=t&&t.documentElement,l={top:0,left:0,height:0,width:0};if(!t)return;if(!(0,r.default)(n,e))return l;void 0!==e.getBoundingClientRect&&(l=e.getBoundingClientRect());return l={top:l.top+(o.pageYOffset||n.scrollTop)-(n.clientTop||0),left:l.left+(o.pageXOffset||n.scrollLeft)-(n.clientLeft||0),width:(null==l.width?e.offsetWidth:l.width)||0,height:(null==l.height?e.offsetHeight:l.height)||0}};var r=n(o(1629)),i=n(o(7624)),s=n(o(9981));e.exports=t.default},2939:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){var t=(0,r.default)(e),o=e&&e.offsetParent;for(;o&&"html"!==s(e)&&"static"===(0,i.default)(o,"position");)o=o.offsetParent;return o||t.documentElement};var r=n(o(9981)),i=n(o(162));function s(e){return e.nodeName&&e.nodeName.toLowerCase()}e.exports=t.default},7265:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e,t){var o,n={top:0,left:0};"fixed"===(0,c.default)(e,"position")?o=e.getBoundingClientRect():(t=t||(0,s.default)(e),o=(0,i.default)(e),"html"!==function(e){return e.nodeName&&e.nodeName.toLowerCase()}(t)&&(n=(0,i.default)(t)),n.top+=parseInt((0,c.default)(t,"borderTopWidth"),10)-(0,l.default)(t)||0,n.left+=parseInt((0,c.default)(t,"borderLeftWidth"),10)-(0,a.default)(t)||0);return(0,r.default)({},o,{top:o.top-n.top-(parseInt((0,c.default)(e,"marginTop"),10)||0),left:o.left-n.left-(parseInt((0,c.default)(e,"marginLeft"),10)||0)})};var r=n(o(434)),i=n(o(2565)),s=n(o(2939)),l=n(o(504)),a=n(o(5770)),c=n(o(162));e.exports=t.default},5770:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e,t){var o=(0,r.default)(e);if(void 0===t)return o?"pageXOffset"in o?o.pageXOffset:o.document.documentElement.scrollLeft:e.scrollLeft;o?o.scrollTo(t,"pageYOffset"in o?o.pageYOffset:o.document.documentElement.scrollTop):e.scrollLeft=t};var r=n(o(7624));e.exports=t.default},504:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e,t){var o=(0,r.default)(e);if(void 0===t)return o?"pageYOffset"in o?o.pageYOffset:o.document.documentElement.scrollTop:e.scrollTop;o?o.scrollTo("pageXOffset"in o?o.pageXOffset:o.document.documentElement.scrollLeft,t):e.scrollTop=t};var r=n(o(7624));e.exports=t.default},7023:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){if(!e)throw new TypeError("No Element passed to `getComputedStyle()`");var t=e.ownerDocument;return"defaultView"in t?t.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null):{getPropertyValue:function(t){var o=e.style;"float"==(t=(0,r.default)(t))&&(t="styleFloat");var n=e.currentStyle[t]||null;if(null==n&&o&&o[t]&&(n=o[t]),s.test(n)&&!i.test(t)){var l=o.left,a=e.runtimeStyle,c=a&&a.left;c&&(a.left=e.currentStyle.left),o.left="fontSize"===t?"1em":n,n=o.pixelLeft+"px",o.left=l,c&&(a.left=c)}return n}}};var r=n(o(3497)),i=/^(top|right|bottom|left)$/,s=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;e.exports=t.default},162:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e,t,o){var n="",h="",d=t;if("string"==typeof t){if(void 0===o)return e.style[(0,r.default)(t)]||(0,s.default)(e).getPropertyValue((0,i.default)(t));(d={})[t]=o}Object.keys(d).forEach((function(t){var o=d[t];o||0===o?(0,c.default)(t)?h+=t+"("+o+") ":n+=(0,i.default)(t)+": "+o+";":(0,l.default)(e,(0,i.default)(t))})),h&&(n+=a.transform+": "+h+";");e.style.cssText+=";"+n};var r=n(o(3497)),i=n(o(4403)),s=n(o(7023)),l=n(o(1760)),a=o(702),c=n(o(3293));e.exports=t.default},1760:(e,t)=>{t.__esModule=!0,t.default=function(e,t){return"removeProperty"in e.style?e.style.removeProperty(t):e.style.removeAttribute(t)},e.exports=t.default},3293:(e,t)=>{t.__esModule=!0,t.default=function(e){return!(!e||!o.test(e))};var o=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;e.exports=t.default},702:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=t.animationEnd=t.animationDelay=t.animationTiming=t.animationDuration=t.animationName=t.transitionEnd=t.transitionDuration=t.transitionDelay=t.transitionTiming=t.transitionProperty=t.transform=void 0;var r,i,s,l,a,c,h,d,u,p,f,m=n(o(139)),g="transform";if(t.transform=g,t.animationEnd=s,t.transitionEnd=i,t.transitionDelay=h,t.transitionTiming=c,t.transitionDuration=a,t.transitionProperty=l,t.animationDelay=f,t.animationTiming=p,t.animationDuration=u,t.animationName=d,m.default){var v=function(){for(var e,t,o=document.createElement("div").style,n={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},r=Object.keys(n),i="",s=0;s<r.length;s++){var l=r[s];if(l+"TransitionProperty"in o){i="-"+l.toLowerCase(),e=n[l]("TransitionEnd"),t=n[l]("AnimationEnd");break}}!e&&"transitionProperty"in o&&(e="transitionend");!t&&"animationName"in o&&(t="animationend");return o=null,{animationEnd:t,transitionEnd:e,prefix:i}}();r=v.prefix,t.transitionEnd=i=v.transitionEnd,t.animationEnd=s=v.animationEnd,t.transform=g=r+"-"+g,t.transitionProperty=l=r+"-transition-property",t.transitionDuration=a=r+"-transition-duration",t.transitionDelay=h=r+"-transition-delay",t.transitionTiming=c=r+"-transition-timing-function",t.animationName=d=r+"-animation-name",t.animationDuration=u=r+"-animation-duration",t.animationTiming=p=r+"-animation-delay",t.animationDelay=f=r+"-animation-timing-function"}var y={transform:g,end:i,property:l,timing:c,delay:h,duration:a};t.default=y},1908:(e,t)=>{t.__esModule=!0,t.default=function(e){return e.replace(o,(function(e,t){return t.toUpperCase()}))};var o=/-(.)/g;e.exports=t.default},3497:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){return(0,r.default)(e.replace(i,"ms-"))};var r=n(o(1908)),i=/^-ms-/;e.exports=t.default},1185:(e,t)=>{t.__esModule=!0,t.default=function(e){return e.replace(o,"-$1").toLowerCase()};var o=/([A-Z])/g;e.exports=t.default},4403:(e,t,o)=>{var n=o(4836);t.__esModule=!0,t.default=function(e){return(0,r.default)(e).replace(i,"-ms-")};var r=n(o(1185)),i=/^ms-/;e.exports=t.default},139:(e,t)=>{t.__esModule=!0,t.default=void 0;var o=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=o,e.exports=t.default},9425:e=>{var t={},o="(?:^|\\s)",n="(?:\\s|$)";function r(e){var r=t[e];return r?r.lastIndex=0:t[e]=r=new RegExp(o+e+n,"g"),r}e.exports={add:function(e,t){var o=e.className;o.length?r(t).test(o)||(e.className+=" "+t):e.className=t},rm:function(e,t){e.className=e.className.replace(r(t)," ").trim()}}},7137:(e,t,o)=>{var n=o(5229),r=o(1808),i=o(9425),s=document,l=s.documentElement;function a(e,t,n,i){o.g.navigator.pointerEnabled?r[t](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[n],i):o.g.navigator.msPointerEnabled?r[t](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[n],i):(r[t](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[n],i),r[t](e,n,i))}function c(e){if(void 0!==e.touches)return e.touches.length;if(void 0!==e.which&&0!==e.which)return e.which;if(void 0!==e.buttons)return e.buttons;var t=e.button;return void 0!==t?1&t?1:2&t?3:4&t?2:0:void 0}function h(e,t){return void 0!==o.g[t]?o.g[t]:l.clientHeight?l[e]:s.body[e]}function d(e,t,o){var n,r=e||{},i=r.className;return r.className+=" gu-hide",n=s.elementFromPoint(t,o),r.className=i,n}function u(){return!1}function p(){return!0}function f(e){return e.width||e.right-e.left}function m(e){return e.height||e.bottom-e.top}function g(e){return e.parentNode===s?null:e.parentNode}function v(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||y(e)}function y(e){return!!e&&("false"!==e.contentEditable&&("true"===e.contentEditable||y(g(e))))}function w(e){return e.nextElementSibling||function(){var t=e;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t}()}function S(e,t){var o=function(e){return e.targetTouches&&e.targetTouches.length?e.targetTouches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e}(t),n={pageX:"clientX",pageY:"clientY"};return e in n&&!(e in o)&&n[e]in o&&(e=n[e]),o[e]}e.exports=function(e,t){var o,y,b,C,x,R,_,T,E,O,M;1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var I,z=null,k=t||{};void 0===k.moves&&(k.moves=p),void 0===k.accepts&&(k.accepts=p),void 0===k.invalid&&(k.invalid=function(){return!1}),void 0===k.containers&&(k.containers=e||[]),void 0===k.isContainer&&(k.isContainer=u),void 0===k.copy&&(k.copy=!1),void 0===k.copySortSource&&(k.copySortSource=!1),void 0===k.revertOnSpill&&(k.revertOnSpill=!1),void 0===k.removeOnSpill&&(k.removeOnSpill=!1),void 0===k.direction&&(k.direction="vertical"),void 0===k.ignoreInputTextSelection&&(k.ignoreInputTextSelection=!0),void 0===k.mirrorContainer&&(k.mirrorContainer=s.body);var G=n({containers:k.containers,start:function(e){var t=B(e);t&&F(t)},end:j,cancel:Y,remove:$,destroy:function(){A(!0),Z({})},canMove:function(e){return!!B(e)},dragging:!1});return!0===k.removeOnSpill&&G.on("over",(function(e){i.rm(e,"gu-hide")})).on("out",(function(e){G.dragging&&i.add(e,"gu-hide")})),A(),G;function P(e){return-1!==G.containers.indexOf(e)||k.isContainer(e)}function A(e){var t=e?"remove":"add";a(l,t,"mousedown",D),a(l,t,"mouseup",Z)}function H(e){a(l,e?"remove":"add","mousemove",W)}function L(e){var t=e?"remove":"add";r[t](l,"selectstart",N),r[t](l,"click",N)}function N(e){I&&e.preventDefault()}function D(e){if(R=e.clientX,_=e.clientY,!(1!==c(e)||e.metaKey||e.ctrlKey)){var t=e.target,o=B(t);o&&(I=o,H(),"mousedown"===e.type&&(v(t)?t.focus():e.preventDefault()))}}function W(e){if(I)if(0!==c(e)){if(void 0===e.clientX||e.clientX!==R||void 0===e.clientY||e.clientY!==_){if(k.ignoreInputTextSelection){var t=S("clientX",e),n=S("clientY",e);if(v(s.elementFromPoint(t,n)))return}var r=I;H(!0),L(),j(),F(r);var d,u={left:(d=b.getBoundingClientRect()).left+h("scrollLeft","pageXOffset"),top:d.top+h("scrollTop","pageYOffset")};C=S("pageX",e)-u.left,x=S("pageY",e)-u.top,i.add(O||b,"gu-transit"),function(){if(o)return;var e=b.getBoundingClientRect();(o=b.cloneNode(!0)).style.width=f(e)+"px",o.style.height=m(e)+"px",i.rm(o,"gu-transit"),i.add(o,"gu-mirror"),k.mirrorContainer.appendChild(o),a(l,"add","mousemove",Q),i.add(k.mirrorContainer,"gu-unselectable"),G.emit("cloned",o,b,"mirror")}(),Q(e)}}else Z({})}function B(e){if(!(G.dragging&&o||P(e))){for(var t=e;g(e)&&!1===P(g(e));){if(k.invalid(e,t))return;if(!(e=g(e)))return}var n=g(e);if(n)if(!k.invalid(e,t))if(k.moves(e,n,t,w(e)))return{item:e,source:n}}}function F(e){var t,o;t=e.item,o=e.source,("boolean"==typeof k.copy?k.copy:k.copy(t,o))&&(O=e.item.cloneNode(!0),G.emit("cloned",O,e.item,"copy")),y=e.source,b=e.item,T=E=w(e.item),G.dragging=!0,G.emit("drag",b,y)}function j(){if(G.dragging){var e=O||b;V(e,g(e))}}function U(){I=!1,H(!0),L(!0)}function Z(e){if(U(),G.dragging){var t=O||b,n=S("clientX",e),r=S("clientY",e),i=X(d(o,n,r),n,r);i&&(O&&k.copySortSource||!O||i!==y)?V(t,i):k.removeOnSpill?$():Y()}}function V(e,t){var o=g(e);O&&k.copySortSource&&t===y&&o.removeChild(b),K(t)?G.emit("cancel",e,y,y):G.emit("drop",e,t,y,E),q()}function $(){if(G.dragging){var e=O||b,t=g(e);t&&t.removeChild(e),G.emit(O?"cancel":"remove",e,t,y),q()}}function Y(e){if(G.dragging){var t=arguments.length>0?e:k.revertOnSpill,o=O||b,n=g(o),r=K(n);!1===r&&t&&(O?n&&n.removeChild(O):y.insertBefore(o,T)),r||t?G.emit("cancel",o,y,y):G.emit("drop",o,n,y,E),q()}}function q(){var e=O||b;U(),o&&(i.rm(k.mirrorContainer,"gu-unselectable"),a(l,"remove","mousemove",Q),g(o).removeChild(o),o=null),e&&i.rm(e,"gu-transit"),M&&clearTimeout(M),G.dragging=!1,z&&G.emit("out",e,z,y),G.emit("dragend",e),y=b=O=T=E=M=z=null}function K(e,t){var n;return n=void 0!==t?t:o?E:w(O||b),e===y&&n===T}function X(e,t,o){for(var n=e;n&&!r();)n=g(n);return n;function r(){if(!1===P(n))return!1;var r=J(n,e),i=ee(n,r,t,o);return!!K(n,i)||k.accepts(b,n,y,i)}}function Q(e){if(o){e.preventDefault();var t=S("clientX",e),n=S("clientY",e),r=t-C,i=n-x;o.style.left=r+"px",o.style.top=i+"px";var s=O||b,l=d(o,t,n),a=X(l,t,n),c=null!==a&&a!==z;(c||null===a)&&(z&&f("out"),z=a,c&&f("over"));var h=g(s);if(a!==y||!O||k.copySortSource){var u,p=J(a,l);if(null!==p)u=ee(a,p,t,n);else{if(!0!==k.revertOnSpill||O)return void(O&&h&&h.removeChild(s));u=T,a=y}(null===u&&c||u!==s&&u!==w(s))&&(E=u,a.insertBefore(s,u),G.emit("shadow",s,a,y))}else h&&h.removeChild(s)}function f(e){G.emit(e,s,z,y)}}function J(e,t){for(var o=t;o!==e&&g(o)!==e;)o=g(o);return o===l?null:o}function ee(e,t,o,n){var r="horizontal"===k.direction,i=t!==e?function(){var e=t.getBoundingClientRect();if(r)return s(o>e.left+f(e)/2);return s(n>e.top+m(e)/2)}():function(){var t,i,s,l=e.children.length;for(t=0;t<l;t++){if(s=(i=e.children[t]).getBoundingClientRect(),r&&s.left+s.width/2>o)return i;if(!r&&s.top+s.height/2>n)return i}return null}();return i;function s(e){return e?w(t):t}}}},3316:e=>{function t(e,t,o,n){var r,i=null==(r=n)||"number"==typeof r||"boolean"==typeof r?n:o(n),s=t.get(i);return void 0===s&&(s=e.call(this,n),t.set(i,s)),s}function o(e,t,o){var n=Array.prototype.slice.call(arguments,3),r=o(n),i=t.get(r);return void 0===i&&(i=e.apply(this,n),t.set(r,i)),i}function n(e,t,o,n,r){return o.bind(t,e,n,r)}function r(e,r){return n(e,this,1===e.length?t:o,r.cache.create(),r.serializer)}function i(){return JSON.stringify(arguments)}function s(){this.cache=Object.create(null)}s.prototype.has=function(e){return e in this.cache},s.prototype.get=function(e){return this.cache[e]},s.prototype.set=function(e,t){this.cache[e]=t};var l={create:function(){return new s}};e.exports=function(e,t){var o=t&&t.cache?t.cache:l,n=t&&t.serializer?t.serializer:i;return(t&&t.strategy?t.strategy:r)(e,{cache:o,serializer:n})},e.exports.strategies={variadic:function(e,t){return n(e,this,o,t.cache.create(),t.serializer)},monadic:function(e,o){return n(e,this,t,o.cache.create(),o.serializer)}}},1143:e=>{e.exports=function(e,t,o,n,r,i,s,l){if(!e){var a;if(void 0===t)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[o,n,r,i,s,l],h=0;(a=new Error(t.replace(/%s/g,(function(){return c[h++]})))).name="Invariant Violation"}throw a.framesToPop=1,a}}},7418:e=>{var t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,r){for(var i,s,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;a<arguments.length;a++){for(var c in i=Object(arguments[a]))o.call(i,c)&&(l[c]=i[c]);if(t){s=t(i);for(var h=0;h<s.length;h++)n.call(i,s[h])&&(l[s[h]]=i[s[h]])}}return l}},621:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n="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},r=s(o(6689)),i=s(o(2613));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,o,i,s){var l=e[t],a=void 0===l?"undefined":n(l);return r.default.isValidElement(l)?new Error("Invalid "+i+" `"+s+"` of type ReactElement supplied to `"+o+"`, expected a ReactComponent or a DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===a&&"function"==typeof l.render||1===l.nodeType?null:new Error("Invalid "+i+" `"+s+"` of value `"+l+"` supplied to `"+o+"`, expected a ReactComponent or a DOMElement.")})),e.exports=t.default},8853:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=s(o(6689)),r=o(9864),i=s(o(2613));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,i.default)((function(e,t,o,i,s){var l=e[t];return n.default.isValidElement(l)?new Error("Invalid "+i+" `"+s+"` of type ReactElement supplied to `"+o+"`,expected an element type (a string , component class, or function component)."):(0,r.isValidElementType)(l)?null:new Error("Invalid "+i+" `"+s+"` of value `"+l+"` supplied to `"+o+"`, expected an element type (a string , component class, or function component).")})),e.exports=t.default},5638:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,o,n,r,i){var s=n||"<<anonymous>>",l=i||o;if(null==t[o])return new Error("The "+r+" `"+l+"` is required to make `"+s+"` accessible for users of assistive technologies such as screen readers.");for(var a=arguments.length,c=Array(a>5?a-5:0),h=5;h<a;h++)c[h-5]=arguments[h];return e.apply(void 0,[t,o,n,r,i].concat(c))}},e.exports=t.default},2613:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,o,n,r,i,s){var l=r||"<<anonymous>>",a=s||n;if(null==o[n])return t?new Error("Required "+i+" `"+a+"` was not specified in `"+l+"`."):null;for(var c=arguments.length,h=Array(c>6?c-6:0),d=6;d<c;d++)h[d-6]=arguments[d];return e.apply(void 0,[o,n,l,i,a].concat(h))}var o=t.bind(null,!1);return o.isRequired=t.bind(null,!0),o},e.exports=t.default},2703:(e,t,o)=>{var n=o(414);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,o,r,i,s){if(s!==n){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return o.PropTypes=o,o}},5697:(e,t,o)=>{e.exports=o(2703)()},414:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},977:(e,t,o)=>{var n=o(7137),r=o(2989);e.exports=function(){return n.apply(this,r(arguments)).on("cloned",(function(t){e(t),r(t.getElementsByTagName("*")).forEach(e)}));function e(e){e.removeAttribute("data-reactid")}}},9590:e=>{var t="undefined"!=typeof Element,o="function"==typeof Map,n="function"==typeof Set,r="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,s){if(e===s)return!0;if(e&&s&&"object"==typeof e&&"object"==typeof s){if(e.constructor!==s.constructor)return!1;var l,a,c,h;if(Array.isArray(e)){if((l=e.length)!=s.length)return!1;for(a=l;0!=a--;)if(!i(e[a],s[a]))return!1;return!0}if(o&&e instanceof Map&&s instanceof Map){if(e.size!==s.size)return!1;for(h=e.entries();!(a=h.next()).done;)if(!s.has(a.value[0]))return!1;for(h=e.entries();!(a=h.next()).done;)if(!i(a.value[1],s.get(a.value[0])))return!1;return!0}if(n&&e instanceof Set&&s instanceof Set){if(e.size!==s.size)return!1;for(h=e.entries();!(a=h.next()).done;)if(!s.has(a.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(s)){if((l=e.length)!=s.length)return!1;for(a=l;0!=a--;)if(e[a]!==s[a])return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===s.toString();if((l=(c=Object.keys(e)).length)!==Object.keys(s).length)return!1;for(a=l;0!=a--;)if(!Object.prototype.hasOwnProperty.call(s,c[a]))return!1;if(t&&e instanceof Element)return!1;for(a=l;0!=a--;)if(("_owner"!==c[a]&&"__v"!==c[a]&&"__o"!==c[a]||!e.$$typeof)&&!i(e[c[a]],s[c[a]]))return!1;return!0}return e!=e&&s!=s}e.exports=function(e,t){try{return i(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return!1;throw e}}},9921:(e,t)=>{var o="function"==typeof Symbol&&Symbol.for,n=o?Symbol.for("react.element"):60103,r=o?Symbol.for("react.portal"):60106,i=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,l=o?Symbol.for("react.profiler"):60114,a=o?Symbol.for("react.provider"):60109,c=o?Symbol.for("react.context"):60110,h=o?Symbol.for("react.async_mode"):60111,d=o?Symbol.for("react.concurrent_mode"):60111,u=o?Symbol.for("react.forward_ref"):60112,p=o?Symbol.for("react.suspense"):60113,f=o?Symbol.for("react.suspense_list"):60120,m=o?Symbol.for("react.memo"):60115,g=o?Symbol.for("react.lazy"):60116,v=o?Symbol.for("react.block"):60121,y=o?Symbol.for("react.fundamental"):60117,w=o?Symbol.for("react.responder"):60118,S=o?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case h:case d:case i:case l:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case g:case m:case a:return e;default:return t}}case r:return t}}}function C(e){return b(e)===d}t.AsyncMode=h,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=a,t.Element=n,t.ForwardRef=u,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=r,t.Profiler=l,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||b(e)===h},t.isConcurrentMode=C,t.isContextConsumer=function(e){return b(e)===c},t.isContextProvider=function(e){return b(e)===a},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return b(e)===u},t.isFragment=function(e){return b(e)===i},t.isLazy=function(e){return b(e)===g},t.isMemo=function(e){return b(e)===m},t.isPortal=function(e){return b(e)===r},t.isProfiler=function(e){return b(e)===l},t.isStrictMode=function(e){return b(e)===s},t.isSuspense=function(e){return b(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===l||e===s||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===a||e.$$typeof===c||e.$$typeof===u||e.$$typeof===y||e.$$typeof===w||e.$$typeof===S||e.$$typeof===v)},t.typeOf=b},9864:(e,t,o)=>{e.exports=o(9921)},6871:(e,t,o)=>{function n(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var o=this.constructor.getDerivedStateFromProps(e,t);return null!=o?o:null}.bind(this))}function i(e,t){try{var o=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(o,n)}finally{this.props=o,this.state=n}}function s(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var o=null,s=null,l=null;if("function"==typeof t.componentWillMount?o="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(o="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?s="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?l="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==o||null!==s||null!==l){var a=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+a+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==o?"\n "+o:"")+(null!==s?"\n "+s:"")+(null!==l?"\n "+l:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=n,t.componentWillReceiveProps=r),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var h=t.componentDidUpdate;t.componentDidUpdate=function(e,t,o){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:o;h.call(this,e,t,n)}}return e}o.r(t),o.d(t,{polyfill:()=>s}),n.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},7281:(e,t,o)=>{t.__esModule=!0;var n=c(o(5697)),r=c(o(621)),i=c(o(6689)),s=c(o(6405)),l=c(o(3464)),a=c(o(290));function c(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){var o,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,c=Array(r),d=0;d<r;d++)c[d]=arguments[d];return o=n=h(this,e.call.apply(e,[this].concat(c))),n._mountOverlayTarget=function(){n._overlayTarget||(n._overlayTarget=document.createElement("div"),n._portalContainerNode=(0,l.default)(n.props.container,(0,a.default)(n).body),n._portalContainerNode.appendChild(n._overlayTarget))},n._unmountOverlayTarget=function(){n._overlayTarget&&(n._portalContainerNode.removeChild(n._overlayTarget),n._overlayTarget=null),n._portalContainerNode=null},n._renderOverlay=function(){var e=n.props.children?i.default.Children.only(n.props.children):null;if(null!==e){n._mountOverlayTarget();var t=!n._overlayInstance;n._overlayInstance=s.default.unstable_renderSubtreeIntoContainer(n,e,n._overlayTarget,(function(){t&&n.props.onRendered&&n.props.onRendered()}))}else n._unrenderOverlay(),n._unmountOverlayTarget()},n._unrenderOverlay=function(){n._overlayTarget&&(s.default.unmountComponentAtNode(n._overlayTarget),n._overlayInstance=null)},n.getMountNode=function(){return n._overlayTarget},h(n,o)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this._isMounted=!0,this._renderOverlay()},t.prototype.componentDidUpdate=function(){this._renderOverlay()},t.prototype.componentWillReceiveProps=function(e){this._overlayTarget&&e.container!==this.props.container&&(this._portalContainerNode.removeChild(this._overlayTarget),this._portalContainerNode=(0,l.default)(e.container,(0,a.default)(this).body),this._portalContainerNode.appendChild(this._overlayTarget))},t.prototype.componentWillUnmount=function(){this._isMounted=!1,this._unrenderOverlay(),this._unmountOverlayTarget()},t.prototype.render=function(){return null},t}(i.default.Component);d.displayName="Portal",d.propTypes={container:n.default.oneOfType([r.default,n.default.func]),onRendered:n.default.func},t.default=d,e.exports=t.default},2856:(e,t,o)=>{t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},r=h(o(5697)),i=h(o(8853)),s=h(o(6689)),l=h(o(5425)),a=h(o(7487)),c=h(o(2395));function h(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(o,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,o,n));return r.handleHidden=function(){var e;(r.setState({exited:!0}),r.props.onExited)&&(e=r.props).onExited.apply(e,arguments)},r.state={exited:!o.show},r.onHiddenListener=r.handleHidden.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentWillReceiveProps=function(e){e.show?this.setState({exited:!1}):e.transition||this.setState({exited:!0})},t.prototype.render=function(){var e=this.props,t=e.container,o=e.containerPadding,n=e.target,r=e.placement,i=e.shouldUpdatePosition,h=e.rootClose,d=e.children,u=e.transition,p=function(e,t){var o={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}(e,["container","containerPadding","target","placement","shouldUpdatePosition","rootClose","children","transition"]);if(!(p.show||u&&!this.state.exited))return null;var f=d;if(f=s.default.createElement(a.default,{container:t,containerPadding:o,target:n,placement:r,shouldUpdatePosition:i},f),u){var m=p.onExit,g=p.onExiting,v=p.onEnter,y=p.onEntering,w=p.onEntered;f=s.default.createElement(u,{in:p.show,appear:!0,onExit:m,onExiting:g,onExited:this.onHiddenListener,onEnter:v,onEntering:y,onEntered:w},f)}return h&&(f=s.default.createElement(c.default,{onRootClose:p.onHide},f)),s.default.createElement(l.default,{container:t},f)},t}(s.default.Component);d.propTypes=n({},l.default.propTypes,a.default.propTypes,{show:r.default.bool,rootClose:r.default.bool,onHide:function(e){var t=r.default.func;e.rootClose&&(t=t.isRequired);for(var o=arguments.length,n=Array(o>1?o-1:0),i=1;i<o;i++)n[i-1]=arguments[i];return t.apply(void 0,[e].concat(n))},transition:i.default,onEnter:r.default.func,onEntering:r.default.func,onEntered:r.default.func,onExit:r.default.func,onExiting:r.default.func,onExited:r.default.func}),t.default=d,e.exports=t.default},5425:(e,t,o)=>{t.__esModule=!0;var n=h(o(5697)),r=h(o(621)),i=h(o(6689)),s=h(o(6405)),l=h(o(3464)),a=h(o(290)),c=h(o(7281));function h(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){var o,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,i=Array(r),s=0;s<r;s++)i[s]=arguments[s];return o=n=d(this,e.call.apply(e,[this].concat(i))),n.setContainer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props;n._portalContainerNode=(0,l.default)(e.container,(0,a.default)(n).body)},n.getMountNode=function(){return n._portalContainerNode},d(n,o)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.setContainer(),this.forceUpdate(this.props.onRendered)},t.prototype.componentWillReceiveProps=function(e){e.container!==this.props.container&&this.setContainer(e)},t.prototype.componentWillUnmount=function(){this._portalContainerNode=null},t.prototype.render=function(){return this.props.children&&this._portalContainerNode?s.default.createPortal(this.props.children,this._portalContainerNode):null},t}(i.default.Component);u.displayName="Portal",u.propTypes={container:n.default.oneOfType([r.default,n.default.func]),onRendered:n.default.func},t.default=s.default.createPortal?u:c.default,e.exports=t.default},7487:(e,t,o)=>{t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},r=p(o(4184)),i=p(o(5697)),s=p(o(621)),l=o(6689),a=p(l),c=p(o(6405)),h=p(o(7603)),d=p(o(3464)),u=p(o(290));function p(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var o={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o}var m=function(e){function t(o,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,o,n));return r.getTarget=function(){var e=r.props.target,t="function"==typeof e?e():e;return t&&c.default.findDOMNode(t)||null},r.maybeUpdatePosition=function(e){var t=r.getTarget();(r.props.shouldUpdatePosition||t!==r._lastTarget||e)&&r.updatePosition(t)},r.state={positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null},r._needsFlush=!1,r._lastTarget=null,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.updatePosition(this.getTarget())},t.prototype.componentWillReceiveProps=function(){this._needsFlush=!0},t.prototype.componentDidUpdate=function(e){this._needsFlush&&(this._needsFlush=!1,this.maybeUpdatePosition(this.props.placement!==e.placement))},t.prototype.render=function(){var e=this.props,t=e.children,o=e.className,i=f(e,["children","className"]),s=this.state,c=s.positionLeft,h=s.positionTop,d=f(s,["positionLeft","positionTop"]);delete i.target,delete i.container,delete i.containerPadding,delete i.shouldUpdatePosition;var u=a.default.Children.only(t);return(0,l.cloneElement)(u,n({},i,d,{positionLeft:c,positionTop:h,className:(0,r.default)(o,u.props.className),style:n({},u.props.style,{left:c,top:h})}))},t.prototype.updatePosition=function(e){if(this._lastTarget=e,e){var t=c.default.findDOMNode(this),o=(0,d.default)(this.props.container,(0,u.default)(this).body);this.setState((0,h.default)(this.props.placement,t,e,o,this.props.containerPadding))}else this.setState({positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null})},t}(a.default.Component);m.propTypes={target:i.default.oneOfType([s.default,i.default.func]),container:i.default.oneOfType([s.default,i.default.func]),containerPadding:i.default.number,placement:i.default.oneOf(["top","right","bottom","left"]),shouldUpdatePosition:i.default.bool},m.displayName="Position",m.defaultProps={containerPadding:0,placement:"right",shouldUpdatePosition:!1},t.default=m,e.exports=t.default},2395:(e,t,o)=>{t.__esModule=!0;var n=c(o(1629)),r=c(o(5697)),i=c(o(6689)),s=c(o(6405)),l=c(o(6616)),a=c(o(290));function c(e){return e&&e.__esModule?e:{default:e}}var h=27;var d=function(e){function t(o,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,o,r));return i.addEventListeners=function(){var e=i.props.event,t=(0,a.default)(i);i.documentMouseCaptureListener=(0,l.default)(t,e,i.handleMouseCapture,!0),i.documentMouseListener=(0,l.default)(t,e,i.handleMouse),i.documentKeyupListener=(0,l.default)(t,"keyup",i.handleKeyUp)},i.removeEventListeners=function(){i.documentMouseCaptureListener&&i.documentMouseCaptureListener.remove(),i.documentMouseListener&&i.documentMouseListener.remove(),i.documentKeyupListener&&i.documentKeyupListener.remove()},i.handleMouseCapture=function(e){var t;i.preventMouseRootClose=!!((t=e).metaKey||t.altKey||t.ctrlKey||t.shiftKey)||!function(e){return 0===e.button}(e)||(0,n.default)(s.default.findDOMNode(i),e.target)},i.handleMouse=function(e){!i.preventMouseRootClose&&i.props.onRootClose&&i.props.onRootClose(e)},i.handleKeyUp=function(e){e.keyCode===h&&i.props.onRootClose&&i.props.onRootClose(e)},i.preventMouseRootClose=!1,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.props.disabled||this.addEventListeners()},t.prototype.componentDidUpdate=function(e){!this.props.disabled&&e.disabled?this.addEventListeners():this.props.disabled&&!e.disabled&&this.removeEventListeners()},t.prototype.componentWillUnmount=function(){this.props.disabled||this.removeEventListeners()},t.prototype.render=function(){return this.props.children},t}(i.default.Component);d.displayName="RootCloseWrapper",d.propTypes={onRootClose:r.default.func,children:r.default.element,disabled:r.default.bool,event:r.default.oneOf(["click","mousedown"])},d.defaultProps={event:"click"},t.default=d,e.exports=t.default},6616:(e,t,o)=>{t.__esModule=!0,t.default=function(e,t,o,i){return(0,n.default)(e,t,o,i),{remove:function(){(0,r.default)(e,t,o,i)}}};var n=i(o(1416)),r=i(o(3249));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},7603:(e,t,o)=>{t.__esModule=!0,t.default=function(e,t,o,i,s){var l="BODY"===i.tagName?(0,n.default)(o):(0,r.default)(o,i),c=(0,n.default)(t),h=c.height,d=c.width,u=void 0,p=void 0,f=void 0,m=void 0;if("left"===e||"right"===e){p=l.top+(l.height-h)/2,u="left"===e?l.left-d:l.left+l.width;var g=function(e,t,o,n){var r=a(o),i=r.scroll,s=r.height,l=e-n-i,c=e+n-i+t;return l<0?-l:c>s?s-c:0}(p,h,i,s);p+=g,m=50*(1-2*g/h)+"%",f=void 0}else{if("top"!==e&&"bottom"!==e)throw new Error('calcOverlayPosition(): No such placement of "'+e+'" found.');u=l.left+(l.width-d)/2,p="top"===e?l.top-h:l.top+l.height;var v=function(e,t,o,n){var r=a(o),i=r.width,s=e-n,l=e+n+t;if(s<0)return-s;if(l>i)return i-l;return 0}(u,d,i,s);u+=v,f=50*(1-2*v/d)+"%",m=void 0}return{positionLeft:u,positionTop:p,arrowOffsetLeft:f,arrowOffsetTop:m}};var n=l(o(2565)),r=l(o(7265)),i=l(o(504)),s=l(o(290));function l(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=void 0,o=void 0,r=void 0;if("BODY"===e.tagName)t=window.innerWidth,o=window.innerHeight,r=(0,i.default)((0,s.default)(e).documentElement)||(0,i.default)(e);else{var l=(0,n.default)(e);t=l.width,o=l.height,r=(0,i.default)(e)}return{width:t,height:o,scroll:r}}e.exports=t.default},3464:(e,t,o)=>{t.__esModule=!0,t.default=function(e,t){return e="function"==typeof e?e():e,i.default.findDOMNode(e)||t};var n,r=o(6405),i=(n=r)&&n.__esModule?n:{default:n};e.exports=t.default},290:(e,t,o)=>{t.__esModule=!0,t.default=function(e){return(0,r.default)(n.default.findDOMNode(e))};var n=i(o(6405)),r=i(o(9981));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},3524:(e,t,o)=>{var n,r=o(6689),i=(n=r)&&"object"==typeof n&&"default"in n?n.default:n;function s(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var l=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,o){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==o&&"function"!=typeof o)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(n){if("function"!=typeof n)throw new Error("Expected WrappedComponent to be a React component.");var a,c=[];function h(){a=e(c.map((function(e){return e.props}))),d.canUseDOM?t(a):o&&(a=o(a))}var d=function(e){var t,o;function r(){return e.apply(this,arguments)||this}o=e,(t=r).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o,r.peek=function(){return a},r.rewind=function(){if(r.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=a;return a=void 0,c=[],e};var s=r.prototype;return s.UNSAFE_componentWillMount=function(){c.push(this),h()},s.componentDidUpdate=function(){h()},s.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),h()},s.render=function(){return i.createElement(n,this.props)},r}(r.PureComponent);return s(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),s(d,"canUseDOM",l),d}}},644:(e,t,o)=>{t.ZP=t.cn=t.d0=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,o):{};n.get||n.set?Object.defineProperty(t,o,n):t[o]=e[o]}return t.default=e,t}(o(5697)),r=l(o(6689)),i=l(o(6405)),s=o(6871);o(4726);function l(e){return e&&e.__esModule?e:{default:e}}var a="unmounted";var c="exited";var h="entering";t.d0=h;var d="entered";t.cn=d;var u="exiting";var p=function(e){var t,o;function n(t,o){var n;n=e.call(this,t,o)||this;var r,i=o.transitionGroup,s=i&&!i.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?s?(r=c,n.appearStatus=h):r=d:r=t.unmountOnExit||t.mountOnEnter?a:c,n.state={status:r},n.nextCallback=null,n}o=e,(t=n).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o;var s=n.prototype;return s.getChildContext=function(){return{transitionGroup:null}},n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===a?{status:c}:null},s.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},s.componentDidUpdate=function(e){var t=null;if(e!==this.props){var o=this.state.status;this.props.in?o!==h&&o!==d&&(t=h):o!==h&&o!==d||(t=u)}this.updateStatus(!1,t)},s.componentWillUnmount=function(){this.cancelNextCallback()},s.getTimeouts=function(){var e,t,o,n=this.props.timeout;return e=t=o=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,o=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:o}},s.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var o=i.default.findDOMNode(this);t===h?this.performEnter(o,e):this.performExit(o)}else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:a})},s.performEnter=function(e,t){var o=this,n=this.props.enter,r=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,i=this.getTimeouts(),s=r?i.appear:i.enter;t||n?(this.props.onEnter(e,r),this.safeSetState({status:h},(function(){o.props.onEntering(e,r),o.onTransitionEnd(e,s,(function(){o.safeSetState({status:d},(function(){o.props.onEntered(e,r)}))}))}))):this.safeSetState({status:d},(function(){o.props.onEntered(e)}))},s.performExit=function(e){var t=this,o=this.props.exit,n=this.getTimeouts();o?(this.props.onExit(e),this.safeSetState({status:u},(function(){t.props.onExiting(e),t.onTransitionEnd(e,n.exit,(function(){t.safeSetState({status:c},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:c},(function(){t.props.onExited(e)}))},s.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},s.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},s.setNextCallback=function(e){var t=this,o=!0;return this.nextCallback=function(n){o&&(o=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},s.onTransitionEnd=function(e,t,o){this.setNextCallback(o);var n=null==t&&!this.props.addEndListener;e&&!n?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},s.render=function(){var e=this.state.status;if(e===a)return null;var t=this.props,o=t.children,n=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(t,["children"]);if(delete n.in,delete n.mountOnEnter,delete n.unmountOnExit,delete n.appear,delete n.enter,delete n.exit,delete n.timeout,delete n.addEndListener,delete n.onEnter,delete n.onEntering,delete n.onEntered,delete n.onExit,delete n.onExiting,delete n.onExited,"function"==typeof o)return o(e,n);var i=r.default.Children.only(o);return r.default.cloneElement(i,n)},n}(r.default.Component);function f(){}p.contextTypes={transitionGroup:n.object},p.childContextTypes={transitionGroup:function(){}},p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:f,onEntering:f,onEntered:f,onExit:f,onExiting:f,onExited:f},p.UNMOUNTED=0,p.EXITED=1,p.ENTERING=2,p.ENTERED=3,p.EXITING=4;var m=(0,s.polyfill)(p);t.ZP=m},4726:(e,t,o)=>{t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var n;(n=o(5697))&&n.__esModule;t.timeoutsShape=null;t.classNamesShape=null},6115:e=>{var t;t="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){setTimeout(e,0)},e.exports=t},670:e=>{e.exports=function(){}},6689:e=>{e.exports=require("react")},6405:e=>{e.exports=require("react-dom")},8149:(e,t,o)=>{e.exports=o(3285)},8428:(e,t,o)=>{e.exports=o(6981)},5940:(e,t,o)=>{e.exports=o(5627)},3562:(e,t,o)=>{e.exports=o(7965)},6243:(e,t,o)=>{e.exports=o(8613)},2863:(e,t,o)=>{e.exports=o(433)},434:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4836:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{o.r(n),o.d(n,{commitNodeType:()=>Te,default:()=>Xl,mergeNodeType:()=>Oe,stashNodeType:()=>Ie});var e={};o.r(e),o.d(e,{types:()=>Js});var t,r=o(6689),i=o.n(r),s=o(5697),l=o.n(s),a=o(3524),c=o.n(a),h=o(9590),d=o.n(h),u=o(7418),p=o.n(u),f="bodyAttributes",m="htmlAttributes",g="titleAttributes",v={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},y=(Object.keys(v).map((function(e){return v[e]})),"charset"),w="cssText",S="href",b="http-equiv",C="innerHTML",x="itemprop",R="name",_="property",T="rel",E="src",O="target",M={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},I="defaultTitle",z="defer",k="encodeSpecialCharacters",G="onChangeClientState",P="titleTemplate",A=Object.keys(M).reduce((function(e,t){return e[M[t]]=t,e}),{}),H=[v.NOSCRIPT,v.SCRIPT,v.STYLE],L="data-react-helmet",N="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},D=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},W=function(){function e(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),B=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},F=function(e,t){var o={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o},j=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},U=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},Z=function(e){var t=K(e,v.TITLE),o=K(e,P);if(o&&t)return o.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var n=K(e,I);return t||n||void 0},V=function(e){return K(e,G)||function(){}},$=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return B({},e,t)}),{})},Y=function(e,t){return t.filter((function(e){return void 0!==e[v.BASE]})).map((function(e){return e[v.BASE]})).reverse().reduce((function(t,o){if(!t.length)for(var n=Object.keys(o),r=0;r<n.length;r++){var i=n[r].toLowerCase();if(-1!==e.indexOf(i)&&o[i])return t.concat(o)}return t}),[])},q=function(e,t,o){var n={};return o.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&te("Helmet: "+e+' should be of type "Array". Instead found type "'+N(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,o){var r={};o.filter((function(e){for(var o=void 0,i=Object.keys(e),s=0;s<i.length;s++){var l=i[s],a=l.toLowerCase();-1===t.indexOf(a)||o===T&&"canonical"===e[o].toLowerCase()||a===T&&"stylesheet"===e[a].toLowerCase()||(o=a),-1===t.indexOf(l)||l!==C&&l!==w&&l!==x||(o=l)}if(!o||!e[o])return!1;var c=e[o].toLowerCase();return n[o]||(n[o]={}),r[o]||(r[o]={}),!n[o][c]&&(r[o][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(r),s=0;s<i.length;s++){var l=i[s],a=p()({},n[l],r[l]);n[l]=a}return e}),[]).reverse()},K=function(e,t){for(var o=e.length-1;o>=0;o--){var n=e[o];if(n.hasOwnProperty(t))return n[t]}return null},X=(t=Date.now(),function(e){var o=Date.now();o-t>16?(t=o,e(o)):setTimeout((function(){X(e)}),0)}),Q=function(e){return clearTimeout(e)},J="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||X:o.g.requestAnimationFrame||X,ee="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Q:o.g.cancelAnimationFrame||Q,te=function(e){return console&&"function"==typeof console.warn&&void 0},oe=null,ne=function(e,t){var o=e.baseTag,n=e.bodyAttributes,r=e.htmlAttributes,i=e.linkTags,s=e.metaTags,l=e.noscriptTags,a=e.onChangeClientState,c=e.scriptTags,h=e.styleTags,d=e.title,u=e.titleAttributes;se(v.BODY,n),se(v.HTML,r),ie(d,u);var p={baseTag:le(v.BASE,o),linkTags:le(v.LINK,i),metaTags:le(v.META,s),noscriptTags:le(v.NOSCRIPT,l),scriptTags:le(v.SCRIPT,c),styleTags:le(v.STYLE,h)},f={},m={};Object.keys(p).forEach((function(e){var t=p[e],o=t.newTags,n=t.oldTags;o.length&&(f[e]=o),n.length&&(m[e]=p[e].oldTags)})),t&&t(),a(e,f,m)},re=function(e){return Array.isArray(e)?e.join(""):e},ie=function(e,t){void 0!==e&&document.title!==e&&(document.title=re(e)),se(v.TITLE,t)},se=function(e,t){var o=document.getElementsByTagName(e)[0];if(o){for(var n=o.getAttribute(L),r=n?n.split(","):[],i=[].concat(r),s=Object.keys(t),l=0;l<s.length;l++){var a=s[l],c=t[a]||"";o.getAttribute(a)!==c&&o.setAttribute(a,c),-1===r.indexOf(a)&&r.push(a);var h=i.indexOf(a);-1!==h&&i.splice(h,1)}for(var d=i.length-1;d>=0;d--)o.removeAttribute(i[d]);r.length===i.length?o.removeAttribute(L):o.getAttribute(L)!==s.join(",")&&o.setAttribute(L,s.join(","))}},le=function(e,t){var o=document.head||document.querySelector(v.HEAD),n=o.querySelectorAll(e+"["+L+"]"),r=Array.prototype.slice.call(n),i=[],s=void 0;return t&&t.length&&t.forEach((function(t){var o=document.createElement(e);for(var n in t)if(t.hasOwnProperty(n))if(n===C)o.innerHTML=t.innerHTML;else if(n===w)o.styleSheet?o.styleSheet.cssText=t.cssText:o.appendChild(document.createTextNode(t.cssText));else{var l=void 0===t[n]?"":t[n];o.setAttribute(n,l)}o.setAttribute(L,"true"),r.some((function(e,t){return s=t,o.isEqualNode(e)}))?r.splice(s,1):i.push(o)})),r.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return o.appendChild(e)})),{oldTags:r,newTags:i}},ae=function(e){return Object.keys(e).reduce((function(t,o){var n=void 0!==e[o]?o+'="'+e[o]+'"':""+o;return t?t+" "+n:n}),"")},ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,o){return t[M[o]||o]=e[o],t}),t)},he=function(e,t,o){switch(e){case v.TITLE:return{toComponent:function(){return e=t.title,o=t.titleAttributes,(n={key:e})[L]=!0,r=ce(o,n),[i().createElement(v.TITLE,r,e)];var e,o,n,r},toString:function(){return function(e,t,o,n){var r=ae(o),i=re(t);return r?"<"+e+" "+L+'="true" '+r+">"+U(i,n)+"</"+e+">":"<"+e+" "+L+'="true">'+U(i,n)+"</"+e+">"}(e,t.title,t.titleAttributes,o)}};case f:case m:return{toComponent:function(){return ce(t)},toString:function(){return ae(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,o){var n,r=((n={key:o})[L]=!0,n);return Object.keys(t).forEach((function(e){var o=M[e]||e;if(o===C||o===w){var n=t.innerHTML||t.cssText;r.dangerouslySetInnerHTML={__html:n}}else r[o]=t[e]})),i().createElement(e,r)}))}(e,t)},toString:function(){return function(e,t,o){return t.reduce((function(t,n){var r=Object.keys(n).filter((function(e){return!(e===C||e===w)})).reduce((function(e,t){var r=void 0===n[t]?t:t+'="'+U(n[t],o)+'"';return e?e+" "+r:r}),""),i=n.innerHTML||n.cssText||"",s=-1===H.indexOf(e);return t+"<"+e+" "+L+'="true" '+r+(s?"/>":">"+i+"</"+e+">")}),"")}(e,t,o)}}}},de=function(e){var t=e.baseTag,o=e.bodyAttributes,n=e.encode,r=e.htmlAttributes,i=e.linkTags,s=e.metaTags,l=e.noscriptTags,a=e.scriptTags,c=e.styleTags,h=e.title,d=void 0===h?"":h,u=e.titleAttributes;return{base:he(v.BASE,t,n),bodyAttributes:he(f,o,n),htmlAttributes:he(m,r,n),link:he(v.LINK,i,n),meta:he(v.META,s,n),noscript:he(v.NOSCRIPT,l,n),script:he(v.SCRIPT,a,n),style:he(v.STYLE,c,n),title:he(v.TITLE,{title:d,titleAttributes:u},n)}},ue=function(e){var t,o;return o=t=function(t){function o(){return D(this,o),j(this,t.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,t),o.prototype.shouldComponentUpdate=function(e){return!d()(this.props,e)},o.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case v.SCRIPT:case v.NOSCRIPT:return{innerHTML:t};case v.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},o.prototype.flattenArrayTypeChildren=function(e){var t,o=e.child,n=e.arrayTypeChildren,r=e.newChildProps,i=e.nestedChildren;return B({},n,((t={})[o.type]=[].concat(n[o.type]||[],[B({},r,this.mapNestedChildrenToProps(o,i))]),t))},o.prototype.mapObjectTypeChildren=function(e){var t,o,n=e.child,r=e.newProps,i=e.newChildProps,s=e.nestedChildren;switch(n.type){case v.TITLE:return B({},r,((t={})[n.type]=s,t.titleAttributes=B({},i),t));case v.BODY:return B({},r,{bodyAttributes:B({},i)});case v.HTML:return B({},r,{htmlAttributes:B({},i)})}return B({},r,((o={})[n.type]=B({},i),o))},o.prototype.mapArrayTypeChildrenToProps=function(e,t){var o=B({},t);return Object.keys(e).forEach((function(t){var n;o=B({},o,((n={})[t]=e[t],n))})),o},o.prototype.warnOnInvalidChildren=function(e,t){return!0},o.prototype.mapChildrenToProps=function(e,t){var o=this,n={};return i().Children.forEach(e,(function(e){if(e&&e.props){var r=e.props,i=r.children,s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,o){return t[A[o]||o]=e[o],t}),t)}(F(r,["children"]));switch(o.warnOnInvalidChildren(e,i),e.type){case v.LINK:case v.META:case v.NOSCRIPT:case v.SCRIPT:case v.STYLE:n=o.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:s,nestedChildren:i});break;default:t=o.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(n,t)},o.prototype.render=function(){var t=this.props,o=t.children,n=F(t,["children"]),r=B({},n);return o&&(r=this.mapChildrenToProps(o,r)),i().createElement(e,r)},W(o,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),o}(i().Component),t.propTypes={base:l().object,bodyAttributes:l().object,children:l().oneOfType([l().arrayOf(l().node),l().node]),defaultTitle:l().string,defer:l().bool,encodeSpecialCharacters:l().bool,htmlAttributes:l().object,link:l().arrayOf(l().object),meta:l().arrayOf(l().object),noscript:l().arrayOf(l().object),onChangeClientState:l().func,script:l().arrayOf(l().object),style:l().arrayOf(l().object),title:l().string,titleAttributes:l().object,titleTemplate:l().string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=de({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},o}(c()((function(e){return{baseTag:Y([S,O],e),bodyAttributes:$(f,e),defer:K(e,z),encode:K(e,k),htmlAttributes:$(m,e),linkTags:q(v.LINK,[T,S],e),metaTags:q(v.META,[R,y,b,_,x],e),noscriptTags:q(v.NOSCRIPT,[C],e),onChangeClientState:V(e),scriptTags:q(v.SCRIPT,[E,C],e),styleTags:q(v.STYLE,[w],e),title:Z(e),titleAttributes:$(g,e)}}),(function(e){oe&&ee(oe),e.defer?oe=J((function(){ne(e,(function(){oe=null}))})):(ne(e),oe=null)}),de)((function(){return null})));ue.renderStatic=ue.rewind;const pe=ue;var fe=o(4184),me=o.n(fe);const ge=/(?<literal>\[.*?\])|(?<year>YYYY|YY)|(?<month>M{1,4})|(?<day>Do|DD?)|(?<weekday>d{2,4})|(?<hour>HH?|hh?)|(?<minute>mm?)|(?<second>ss?)|(?<fractionalSecond>SSS)|(?<dayPeriod>A|a)|(?<timeZoneName>ZZ?)/g,ve=/(?<dateStyle>full|long|medium|short)(?:\+(?<timeStyle>full|long|medium|short))?/,ye=new Map;let we;const Se=["th","st","nd","rd"];function be(e){const t=e%100;return`${e}${Se[(t-20)%10]??Se[t]??Se[0]}`}function Ce(e,t,o,n=!0){const r=`${o??""}:${t=t??void 0}`;let i=ye.get(r);if(null==i){const e=function(e){if(null==e)return{localeMatcher:"best fit",dateStyle:"full",timeStyle:"short"};const t=ve.exec(e);if(null!=t?.groups){const{dateStyle:e,timeStyle:o}=t.groups;return{localeMatcher:"best fit",dateStyle:e||"full",timeStyle:o||void 0}}const o={localeMatcher:"best fit"};for(const{groups:t}of e.matchAll(ge))if(null!=t)for(const e in t){const n=t[e];if(null!=n)switch(e){case"year":o.year=4===n.length?"numeric":"2-digit";break;case"month":switch(n.length){case 4:o.month="long";break;case 3:o.month="short";break;case 2:o.month="2-digit";break;case 1:o.month="numeric"}break;case"day":o.day="DD"===n?"2-digit":"numeric";break;case"weekday":switch(n.length){case 4:o.weekday="long";break;case 3:o.weekday="short";break;case 2:o.weekday="narrow"}break;case"hour":o.hour=2===n.length?"2-digit":"numeric",o.hour12="hh"===n||"h"===n;break;case"minute":o.minute=2===n.length?"2-digit":"numeric";break;case"second":o.second=2===n.length?"2-digit":"numeric";break;case"fractionalSecond":o.fractionalSecondDigits=3;break;case"dayPeriod":o.dayPeriod="narrow",o.hour12=!0,o.hourCycle="h12";break;case"timeZoneName":o.timeZoneName=2===n.length?"long":"short"}}return o}(t);let s;s=null==o?we:"system"===o?void 0:[o],i=new Intl.DateTimeFormat(s,e),n&&ye.set(r,i)}if(null==t||ve.test(t))return i.format(e);function s(e){const t=`${o??""}:time:${e}`;let r=ye.get(t);if(null==r){const i={localeMatcher:"best fit",timeStyle:e};let s;s=null==o?we:"system"===o?void 0:[o],r=new Intl.DateTimeFormat(s,i),n&&ye.set(t,r)}return r}const l=i.formatToParts(e);return t.replace(ge,((t,o,n,r,i,a,c,h,d,u,p,f,m,g,v)=>{if(null!=o)return o.substring(1,o.length-1);for(const t in v){const o=v[t];if(null==o)continue;const n=l.find((e=>e.type===t));if("Do"===o&&"day"===n?.type)return be(Number(n.value));if("a"===o&&"dayPeriod"===n?.type){return` ${(s("short").formatToParts(e).find((e=>"dayPeriod"===e.type))??n)?.value??""}`}return n?.value??""}return""}))}const xe={"--graph-row-height":"22px","--font-default":"'Open Sans', Arial, sans-serif !important","--font-monospace":"'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace","--font-size":"62.5%","--fs-1":"1rem","--fs-2":"1.2rem","--fs-3":"1.4rem","--fs-4":"1.6rem","--fs-5":"1.8rem","--fs-6":"2rem","--fs-7":"2.4rem","--button-xs-padding-y":".15rem","--button-xs-padding-x":".25rem","--button-small-padding-y":".25rem","--button-small-padding-x":".5rem","--button-medium-padding-y":".5rem","--button-medium-padding-x":".75rem","--button-large-padding-y":"1rem","--button-large-padding-x":"1.25rem","--button-radius":".2rem","--input-radius":"3px","--about-modal-bg-color":"#e2e4e9","--about-modal-width":"650px","--label__purple-color-f25":"rgba(197,23,182,0.25)","--registration-modal-width":"400px","--file-history-header-height":"35px","--shop-modal-width":"95vw","--shop-modal-height":"95vh","--scrollable-scrollbar-thickness":"14px","--mini-commit-col-left-width":"30px","--mini-commit-col-middle-padding":"6px","--mini-commit-col-right-width":"56px","--fuzzy-finder-repo-color":"rgba(46,206,157,0.1)","--fuzzy-finder-checkout-color":"rgba(6,105,247,0.1)","--fuzzy-finder-history-color":"rgba(197,23,182,0.1)","--handle-width":"7px","--shadow-color":"rgba(0,0,0,0.4)","--graph-color-5-f10":"rgba(205,1,1,0.1)","--graph-color-6-f10":"rgba(242,93,46,0.1)","--graph-color-7-f10":"rgba(242,202,51,0.1)","--graph-color-8-f10":"rgba(123,217,56,0.1)","--graph-color-9-f10":"rgba(46,206,157,0.1)","--graph-color-0-f10":"rgba(21,160,191,0.1)","--graph-color-1-f10":"rgba(6,105,247,0.1)","--graph-color-2-f10":"rgba(142,0,194,0.1)","--graph-color-3-f10":"rgba(197,23,182,0.1)","--graph-color-4-f10":"rgba(217,1,113,0.1)","--graph-color-5-f50":"rgba(205,1,1,0.5)","--graph-color-6-f50":"rgba(242,93,46,0.5)","--graph-color-7-f50":"rgba(242,202,51,0.5)","--graph-color-8-f50":"rgba(123,217,56,0.5)","--graph-color-9-f50":"rgba(46,206,157,0.5)","--graph-color-0-f50":"rgba(21,160,191,0.5)","--graph-color-1-f50":"rgba(6,105,247,0.5)","--graph-color-2-f50":"rgba(142,0,194,0.5)","--graph-color-3-f50":"rgba(197,23,182,0.5)","--graph-color-4-f50":"rgba(217,1,113,0.5)","--axo-orange":"#e75225","--axo-ink":"#141422","--axo-cream":"#f9efc1","--axo-yellow":"#d8c13a","--info-bar-height":"26px","--left-panel-header-height":"60px","--toolbar-height":"48px","--toolbar-border":"1px","--toolbar-item-height":"calc(var(--toolbar-height, 0px) - var(--toolbar-border, 1px))","--expand-detail-panel-transition":"flex-grow 250ms ease-in-out","--conflict-left-color":"rgba(21,160,191,0.25)","--conflict-right-color":"rgba(242,202,51,0.25)","--conflict-output-color":"rgba(197,23,182,0.25)","--graph-color-5-bg50":"#751012","--graph-color-6-bg50":"#873e29","--graph-color-7-bg50":"#87742b","--graph-color-8-bg50":"#4c7c2e","--graph-color-9-bg50":"#257660","--graph-color-0-bg50":"#195f71","--graph-color-1-bg50":"#11448d","--graph-color-2-bg50":"#550f73","--graph-color-3-bg50":"#711b6d","--graph-color-4-bg50":"#7b104a","--graph-color-5-bg45":"#6c1114","--graph-color-6-bg45":"#7c3a28","--graph-color-7-bg45":"#7c6b2a","--graph-color-8-bg45":"#47722c","--graph-color-9-bg45":"#246d5a","--graph-color-0-bg45":"#195969","--graph-color-1-bg45":"#124082","--graph-color-2-bg45":"#4f116b","--graph-color-3-bg45":"#681b65","--graph-color-4-bg45":"#711146","--graph-color-5-bg25":"#48171b","--graph-color-6-bg25":"#522e26","--graph-color-7-bg25":"#524927","--graph-color-8-bg25":"#344d28","--graph-color-9-bg25":"#214a42","--graph-color-0-bg25":"#1a3f4a","--graph-color-1-bg25":"#173158","--graph-color-2-bg25":"#39174b","--graph-color-3-bg25":"#461c48","--graph-color-4-bg25":"#4b1737","--graph-color-5-bg15":"#371a1e","--graph-color-6-bg15":"#3c2725","--graph-color-7-bg15":"#3c3825","--graph-color-8-bg15":"#2a3a26","--graph-color-9-bg15":"#1f3835","--graph-color-0-bg15":"#1b323a","--graph-color-1-bg15":"#192943","--graph-color-2-bg15":"#2d1a3b","--graph-color-3-bg15":"#351d39","--graph-color-4-bg15":"#381a2f","--semi-bold":"500","--bold":"600","--num-columns-supported":"10","--column-0-color":"#15a0bf","--column-1-color":"#0669f7","--column-2-color":"#8e00c2","--column-3-color":"#c517b6","--column-4-color":"#d90171","--column-5-color":"#cd0101","--column-6-color":"#f25d2e","--column-7-color":"#f2ca33","--column-8-color":"#7bd938","--column-9-color":"#2ece9d","--red":"#D9413D","--orange":"#DE9B43","--yellow":"#ECB91C","--green":"#5CB85C","--blue":"#4D88FF","--ltblue":"#5bc0de","--app__bg0":"#1C1E23","--toolbar__bg0":"rgb(42,45,52)","--toolbar__bg1":"rgb(51,55,63)","--toolbar__bg2":"rgb(65,70,80)","--panel__bg0":"rgb(39,42,49)","--panel__bg1":"rgb(50,54,63)","--panel__bg2":"rgb(61,66,77)","--input__bg":"rgba(0,0,0,0.2)","--input-bg-warn-color":"rgba(222,155,67,0.6)","--panel-border":"rgb(19,20,24)","--section-border":"rgba(255,255,255,0.08)","--subtle-border":"rgba(255,255,255,0.04)","--modal-overlay-color":"rgba(0,0,0,.5)","--graph-color-0":"#15a0bf","--graph-color-1":"#0669f7","--graph-color-2":"#8e00c2","--graph-color-3":"#c517b6","--graph-color-4":"#d90171","--graph-color-5":"#cd0101","--graph-color-6":"#f25d2e","--graph-color-7":"#f2ca33","--graph-color-8":"#7bd938","--graph-color-9":"#2ece9d","--text-selected":"#FFFFFF","--text-selected-row":"#FFFFFF","--text-dimmed":"rgba(255,255,255,0.2)","--text-dimmed-selected":"rgba(255,255,255,0.5)","--text-normal":"rgba(255,255,255,0.75)","--text-secondary":"rgba(255,255,255,0.6)","--text-disabled":"rgba(255,255,255,0.4)","--text-accent":"#93A9EC","--text-inverse":"#222222","--text-bright":"#FFFFFF","--btn-text":"rgba(255,255,255,0.75)","--btn-text-hover":"#FFFFFF","--default-border":"rgba(255,255,255,0.75)","--default-bg":"transparent","--default-hover":"transparent","--default-border-hover":"#FFFFFF","--primary-border":"#4D88FF","--primary-bg":"rgba(77,136,255,0.2)","--primary-hover":"rgba(77,136,255,0.6)","--success-border":"#5CB85C","--success-bg":"rgba(92,184,92,0.2)","--success-hover":"rgba(92,184,92,0.6)","--warning-border":"#DE9B43","--warning-bg":"rgba(222,155,67,0.2)","--warning-hover":"rgba(222,155,67,0.6)","--danger-border":"#D9413D","--danger-bg":"rgba(217,65,61,0.2)","--danger-hover":"rgba(217,65,61,0.6)","--hover-row":"rgba(77,136,255,0.1)","--hover-row-border":"none","--danger-row":"rgba(217,65,61,0.6)","--selected-row":"rgba(77,136,255,0.2)","--selected-row-border":"none","--warning-row":"rgba(222,155,67,0.6)","--droppable":"rgba(236,185,28,0.3)","--drop-target":"rgba(92,184,92,0.5)","--input--disabled":"rgba(0,0,0,0.1)","--link-color":"#40c5ec","--link-color-bright":"#40c5ec","--form-control-focus":"#4D88FF","--scroll-thumb-border":"#1C1E23","--scroll-thumb-bg":"rgb(65,70,80)","--scroll-thumb-bg-light":"rgb(111,119,136)","--wip-status":"rgba(77,136,255,0.4)","--card__bg":"rgb(61,66,77)","--card-shadow":"rgba(0,0,0,.2)","--statusbar__warning-bg":"#87742b","--label__yellow-color":"#f2ca33","--label__light-blue-color":"#15a0bf","--label__purple-color":"#c517b6","--filtering":"rgba(77,136,255,0.5)","--soloing":"rgba(222,155,67,0.5)","--checked-out":"rgba(92,184,92,0.3)","--soloed":"rgba(222,155,67,0.3)","--filter-match":"rgba(77,136,255,0.5)","--clone__progress":"rgba(77,136,255,0.7)","--toolbar__prompt":"rgba(77,136,255,0.2)","--verified":"rgba(92,184,92,0.3)","--unverified":"rgba(255,255,255,0.1)","--drop-sort-border":"#5CB85C","--terminal__repo-name-color":"turquoise","--terminal__repo-branch-color":"violet","--terminal__repo-tag-color":"lightcoral","--terminal__repo-upstream-color":"yellowgreen","--terminal__background":"#000000","--terminal__cursor":"#FFFFFF","--terminal__cursorAccent":"#000000","--terminal__foreground":"#FFFFFF","--terminal__selection":"#304676","--terminal__black":"#000000","--terminal__red":"#F24A4A","--terminal__green":"#0DBC79","--terminal__yellow":"#E5E510","--terminal__blue":"#4A98EE","--terminal__magenta":"#E063E0","--terminal__cyan":"#11A8CD","--terminal__white":"#E5E5E5","--terminal__brightBlack":"#686868","--terminal__brightRed":"#FF5656","--terminal__brightGreen":"#23D18B","--terminal__brightYellow":"#F5F543","--terminal__brightBlue":"#51A4FF","--terminal__brightMagenta":"#D670D6","--terminal__brightCyan":"#29B8DB","--terminal__brightWhite":"#E5E5E5","--code-bg":"#1C1E23","--code-foreground":"rgba(255,255,255,0.75)","--code-blame-color-0":"#15a0bf","--code-blame-color-1":"#0669f7","--code-blame-color-2":"#8e00c2","--code-blame-color-3":"#c517b6","--code-blame-color-4":"#d90171","--code-blame-color-5":"#cd0101","--code-blame-color-6":"#f25d2e","--code-blame-color-7":"#f2ca33","--code-blame-color-8":"#7bd938","--code-blame-color-9":"#2ece9d","--added-line":"rgba(92,184,92,0.2)","--deleted-line":"rgba(217,65,61,0.2)","--modified-line":"rgba(0,0,0,0.25)","--conflict-info-color":"#15a0bf","--conflict-left-border-color":"#15a0bf","--conflict-right-border-color":"#f2ca33","--conflict-output-border-color":"#c517b6"};function Re(e){return`--column-${e}-color`}function _e(e={}){const t={};return Object.keys(e).forEach((o=>{o.includes("--graph-color-")||o.match(/^--column-\d+-color$/)?CSS.supports("color",e[o])&&(t[o]=e[o]):t[o]=e[o]})),function(e={}){return{...xe,...e}}(t)}const Te="commit-node",Ee="merge-conflict-node",Oe="merge-node",Me="unsupported-rebase-warning-node",Ie="stash-node",ze="work-dir-changes";var ke=(e=>(e.RowEntry="rowEntry",e.Tooltip="tooltip",e))(ke||{}),Ge=o(6243);function Pe(e,t){if(null==e)return{};var o,n,r={},i=Ge(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}var Ae=o(5940),He=o(2863);function Le(e,t){return Le=He?He.bind():function(e,t){return e.__proto__=t,e},Le(e,t)}function Ne(e,t){e.prototype=Ae(t.prototype),e.prototype.constructor=e,Le(e,t)}var De=o(8428);function We(){return We=De?De.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},We.apply(this,arguments)}var Be,Fe=o(2856),je=o.n(Fe),Ue=o(8853),Ze=o.n(Ue),Ve=o(644),$e={in:l().bool,mountOnEnter:l().bool,unmountOnExit:l().bool,appear:l().bool,timeout:l().number,onEnter:l().func,onEntering:l().func,onEntered:l().func,onExit:l().func,onExiting:l().func,onExited:l().func},Ye=((Be={})[Ve.d0]="in",Be[Ve.cn]="in",Be),qe=function(e){function t(){return e.apply(this,arguments)||this}return Ne(t,e),t.prototype.render=function(){var e=this.props,t=e.className,o=e.children,n=Pe(e,["className","children"]);return i().createElement(Ve.ZP,n,(function(e,n){return i().cloneElement(o,We({},n,{className:me()("fade",t,o.props.className,Ye[e])}))}))},t}(i().Component);qe.propTypes=$e,qe.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1};const Ke=qe;var Xe=We({},je().propTypes,{show:l().bool,rootClose:l().bool,onHide:l().func,animation:l().oneOfType([l().bool,Ze()]),onEnter:l().func,onEntering:l().func,onEntered:l().func,onExit:l().func,onExiting:l().func,onExited:l().func,placement:l().oneOf(["top","right","bottom","left"])}),Qe={animation:Ke,rootClose:!1,show:!1,placement:"right"},Je=function(e){function t(){return e.apply(this,arguments)||this}return Ne(t,e),t.prototype.render=function(){var e,t=this.props,o=t.animation,n=t.children,s=Pe(t,["animation","children"]),l=!0===o?Ke:o||null;return e=l?n:(0,r.cloneElement)(n,{className:me()(n.props.className,"in")}),i().createElement(je(),We({},s,{transition:l}),e)},t}(i().Component);Je.propTypes=Xe,Je.defaultProps=Qe;const et=Je;var tt=o(5638),ot=o.n(tt),nt=o(3562),rt=o.n(nt),it=o(1143),st=o.n(it),lt={large:"lg",medium:"md",small:"sm",xsmall:"xs",lg:"lg",md:"md",sm:"sm",xs:"xs"};function at(e){return function(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return"function"==typeof o[o.length-1]?e.apply(void 0,o):function(t){return e.apply(void 0,o.concat([t]))}}}function ct(e,t){var o=(e.bsClass||"").trim();return null==o&&st()(!1),o+(t?"-"+t:"")}var ht=at((function(e,t){var o=t.propTypes||(t.propTypes={}),n=t.defaultProps||(t.defaultProps={});return o.bsClass=l().string,n.bsClass=e,t}));at((function(e,t,o){"string"!=typeof t&&(o=t,t=void 0);var n=o.STYLES||[],r=o.propTypes||{};e.forEach((function(e){-1===n.indexOf(e)&&n.push(e)}));var i=l().oneOf(n);(o.STYLES=n,i._values=n,o.propTypes=We({},r,{bsStyle:i}),void 0!==t)&&((o.defaultProps||(o.defaultProps={})).bsStyle=t);return o})),at((function(e,t,o){"string"!=typeof t&&(o=t,t=void 0);var n=o.SIZES||[],r=o.propTypes||{};e.forEach((function(e){-1===n.indexOf(e)&&n.push(e)}));var i=[];n.forEach((function(e){var t=lt[e];t&&t!==e&&i.push(t),i.push(e)}));var s=l().oneOf(i);return s._values=i,o.SIZES=n,o.propTypes=We({},r,{bsSize:s}),void 0!==t&&(o.defaultProps||(o.defaultProps={}),o.defaultProps.bsSize=t),o}));function dt(e){var t,o=((t={})[ct(e)]=!0,t);e.bsSize&&(o[ct(e,lt[e.bsSize]||e.bsSize)]=!0);return e.bsStyle&&(o[ct(e,e.bsStyle)]=!0),o}function ut(e){return{bsClass:e.bsClass,bsSize:e.bsSize,bsStyle:e.bsStyle,bsRole:e.bsRole}}function pt(e){return"bsClass"===e||"bsSize"===e||"bsStyle"===e||"bsRole"===e}function ft(e){var t={};return rt()(e).forEach((function(e){var o=e[0],n=e[1];pt(o)||(t[o]=n)})),[ut(e),t]}var mt={id:ot()(l().oneOfType([l().string,l().number])),placement:l().oneOf(["top","right","bottom","left"]),positionTop:l().oneOfType([l().number,l().string]),positionLeft:l().oneOfType([l().number,l().string]),arrowOffsetTop:l().oneOfType([l().number,l().string]),arrowOffsetLeft:l().oneOfType([l().number,l().string]),title:l().node},gt=function(e){function t(){return e.apply(this,arguments)||this}return Ne(t,e),t.prototype.render=function(){var e,t=this.props,o=t.placement,n=t.positionTop,r=t.positionLeft,s=t.arrowOffsetTop,l=t.arrowOffsetLeft,a=t.title,c=t.className,h=t.style,d=t.children,u=ft(Pe(t,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","title","className","style","children"])),p=u[0],f=u[1],m=We({},dt(p),((e={})[o]=!0,e)),g=We({display:"block",top:n,left:r},h),v={top:s,left:l};return i().createElement("div",We({},f,{role:"tooltip",className:me()(c,m),style:g}),i().createElement("div",{className:"arrow",style:v}),a&&i().createElement("h3",{className:ct(p,"title")},a),i().createElement("div",{className:ct(p,"content")},d))},t}(i().Component);gt.propTypes=mt,gt.defaultProps={placement:"right"};const vt=ht("popover",gt);var yt,wt=(yt=function(e,t){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},yt(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}yt(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),St=function(){return St=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},St.apply(this,arguments)},bt={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},Ct=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return wt(t,e),t.prototype.render=function(){return r.createElement("div",{className:this.props.className||"",style:St(St({position:"absolute",userSelect:"none"},bt[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(r.PureComponent),xt=o(3316),Rt=o.n(xt),_t=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Tt=function(){return Tt=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Tt.apply(this,arguments)},Et={width:"auto",height:"auto"},Ot=Rt()((function(e,t,o){return Math.max(Math.min(e,o),t)})),Mt=Rt()((function(e,t){return Math.round(e/t)*t})),It=Rt()((function(e,t){return new RegExp(e,"i").test(t)})),zt=function(e){return Boolean(e.touches&&e.touches.length)},kt=Rt()((function(e,t,o){void 0===o&&(o=0);var n=t.reduce((function(o,n,r){return Math.abs(n-e)<Math.abs(t[o]-e)?r:o}),0),r=Math.abs(t[n]-e);return 0===o||r<o?t[n]:e})),Gt=Rt()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),Pt=Rt()((function(e){return"auto"===(e=e.toString())||Gt(e,"px")||Gt(e,"%")||Gt(e,"vh")||Gt(e,"vw")||Gt(e,"vmax")||Gt(e,"vmin")?e:e+"px"})),At=function(e,t,o,n){if(e&&"string"==typeof e){if(Gt(e,"px"))return Number(e.replace("px",""));if(Gt(e,"%"))return t*(Number(e.replace("%",""))/100);if(Gt(e,"vw"))return o*(Number(e.replace("vw",""))/100);if(Gt(e,"vh"))return n*(Number(e.replace("vh",""))/100)}return e},Ht=Rt()((function(e,t,o,n,r,i,s){return n=At(n,e.width,t,o),r=At(r,e.height,t,o),i=At(i,e.width,t,o),s=At(s,e.height,t,o),{maxWidth:void 0===n?void 0:Number(n),maxHeight:void 0===r?void 0:Number(r),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===s?void 0:Number(s)}})),Lt=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Nt="__resizable_base__",Dt=function(e){function t(t){var o=e.call(this,t)||this;return o.ratio=1,o.resizable=null,o.parentLeft=0,o.parentTop=0,o.resizableLeft=0,o.resizableRight=0,o.resizableTop=0,o.resizableBottom=0,o.targetLeft=0,o.targetTop=0,o.appendBase=function(){if(!o.resizable||!o.window)return null;var e=o.parentNode;if(!e)return null;var t=o.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0",t.classList?t.classList.add(Nt):t.className+=Nt,e.appendChild(t),t},o.removeBase=function(e){var t=o.parentNode;t&&t.removeChild(e)},o.ref=function(e){e&&(o.resizable=e)},o.state={isResizing:!1,width:void 0===(o.propsSize&&o.propsSize.width)?"auto":o.propsSize&&o.propsSize.width,height:void 0===(o.propsSize&&o.propsSize.height)?"auto":o.propsSize&&o.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},o.onResizeStart=o.onResizeStart.bind(o),o.onMouseMove=o.onMouseMove.bind(o),o.onMouseUp=o.onMouseUp.bind(o),o}return _t(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||Et},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,n=this.resizable.offsetHeight,r=this.resizable.style.position;"relative"!==r&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:o,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:n,this.resizable.style.position=r}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,o=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&Gt(e.propsSize[t].toString(),"%")){if(Gt(e.state[t].toString(),"%"))return e.state[t].toString();var o=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/o[t]*100+"%"}return Pt(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?Pt(t.width):o("width"),height:t&&void 0!==t.height&&!this.state.isResizing?Pt(t.height):o("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,o=this.parentNode.style.flexWrap;"wrap"!==o&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%";var n={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=o),this.removeBase(e),n},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var o=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==o&&"auto"!==o?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var o,n,r=this.props.boundsByDirection,i=this.state.direction,s=r&&It("left",i),l=r&&It("top",i);if("parent"===this.props.bounds){var a=this.parentNode;a&&(o=s?this.resizableRight-this.parentLeft:a.offsetWidth+(this.parentLeft-this.resizableLeft),n=l?this.resizableBottom-this.parentTop:a.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(o=s?this.resizableRight:this.window.innerWidth-this.resizableLeft,n=l?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(o=s?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),n=l?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return o&&Number.isFinite(o)&&(e=e&&e<o?e:o),n&&Number.isFinite(n)&&(t=t&&t<n?t:n),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var o=this.props.scale||1,n=this.props.resizeRatio||1,r=this.state,i=r.direction,s=r.original,l=this.props,a=l.lockAspectRatio,c=l.lockAspectRatioExtraHeight,h=l.lockAspectRatioExtraWidth,d=s.width,u=s.height,p=c||0,f=h||0;return It("right",i)&&(d=s.width+(e-s.x)*n/o,a&&(u=(d-f)/this.ratio+p)),It("left",i)&&(d=s.width-(e-s.x)*n/o,a&&(u=(d-f)/this.ratio+p)),It("bottom",i)&&(u=s.height+(t-s.y)*n/o,a&&(d=(u-p)*this.ratio+f)),It("top",i)&&(u=s.height-(t-s.y)*n/o,a&&(d=(u-p)*this.ratio+f)),{newWidth:d,newHeight:u}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,o,n){var r=this.props,i=r.lockAspectRatio,s=r.lockAspectRatioExtraHeight,l=r.lockAspectRatioExtraWidth,a=void 0===n.width?10:n.width,c=void 0===o.width||o.width<0?e:o.width,h=void 0===n.height?10:n.height,d=void 0===o.height||o.height<0?t:o.height,u=s||0,p=l||0;if(i){var f=(h-u)*this.ratio+p,m=(d-u)*this.ratio+p,g=(a-p)/this.ratio+u,v=(c-p)/this.ratio+u,y=Math.max(a,f),w=Math.min(c,m),S=Math.max(h,g),b=Math.min(d,v);e=Ot(e,y,w),t=Ot(t,S,b)}else e=Ot(e,a,c),t=Ot(t,h,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var o=this.props.bounds.getBoundingClientRect();this.targetLeft=o.left,this.targetTop=o.top}if(this.resizable){var n=this.resizable.getBoundingClientRect(),r=n.left,i=n.top,s=n.right,l=n.bottom;this.resizableLeft=r,this.resizableRight=s,this.resizableTop=i,this.resizableBottom=l}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var o,n=0,r=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(n=e.nativeEvent.clientX,r=e.nativeEvent.clientY):e.nativeEvent&&zt(e.nativeEvent)&&(n=e.nativeEvent.touches[0].clientX,r=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var s=this.parentNode;if(s){var l=this.window.getComputedStyle(s).flexDirection;this.flexDir=l.startsWith("row")?"row":"column",o=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var a={original:{x:n,y:r,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Tt(Tt({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:o};this.setState(a)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&zt(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var t=this.props,o=t.maxWidth,n=t.maxHeight,r=t.minWidth,i=t.minHeight,s=zt(e)?e.touches[0].clientX:e.clientX,l=zt(e)?e.touches[0].clientY:e.clientY,a=this.state,c=a.direction,h=a.original,d=a.width,u=a.height,p=this.getParentSize(),f=Ht(p,this.window.innerWidth,this.window.innerHeight,o,n,r,i);o=f.maxWidth,n=f.maxHeight,r=f.minWidth,i=f.minHeight;var m=this.calculateNewSizeFromDirection(s,l),g=m.newHeight,v=m.newWidth,y=this.calculateNewMaxFromBoundary(o,n),w=this.calculateNewSizeFromAspectRatio(v,g,{width:y.maxWidth,height:y.maxHeight},{width:r,height:i});if(v=w.newWidth,g=w.newHeight,this.props.grid){var S=Mt(v,this.props.grid[0]),b=Mt(g,this.props.grid[1]),C=this.props.snapGap||0;v=0===C||Math.abs(S-v)<=C?S:v,g=0===C||Math.abs(b-g)<=C?b:g}this.props.snap&&this.props.snap.x&&(v=kt(v,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(g=kt(g,this.props.snap.y,this.props.snapGap));var x={width:v-h.width,height:g-h.height};if(d&&"string"==typeof d)if(Gt(d,"%"))v=v/p.width*100+"%";else if(Gt(d,"vw")){v=v/this.window.innerWidth*100+"vw"}else if(Gt(d,"vh")){v=v/this.window.innerHeight*100+"vh"}if(u&&"string"==typeof u)if(Gt(u,"%"))g=g/p.height*100+"%";else if(Gt(u,"vw")){g=g/this.window.innerWidth*100+"vw"}else if(Gt(u,"vh")){g=g/this.window.innerHeight*100+"vh"}var R={width:this.createSizeForCssProperty(v,"width"),height:this.createSizeForCssProperty(g,"height")};"row"===this.flexDir?R.flexBasis=R.width:"column"===this.flexDir&&(R.flexBasis=R.height),this.setState(R),this.props.onResize&&this.props.onResize(e,c,this.resizable,x)}},t.prototype.onMouseUp=function(e){var t=this.state,o=t.isResizing,n=t.direction,r=t.original;if(o&&this.resizable){var i={width:this.size.width-r.width,height:this.size.height-r.height};this.props.onResizeStop&&this.props.onResizeStop(e,n,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Tt(Tt({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,o=t.enable,n=t.handleStyles,i=t.handleClasses,s=t.handleWrapperStyle,l=t.handleWrapperClass,a=t.handleComponent;if(!o)return null;var c=Object.keys(o).map((function(t){return!1!==o[t]?r.createElement(Ct,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:n&&n[t],className:i&&i[t]},a&&a[t]?a[t]:null):null}));return r.createElement("div",{className:l,style:s},c)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,o){return-1!==Lt.indexOf(o)||(t[o]=e.props[o]),t}),{}),o=Tt(Tt(Tt({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var n=this.props.as||"div";return r.createElement(n,Tt({ref:this.ref,style:o,className:this.props.className},t),this.state.isResizing&&r.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(r.PureComponent);function Wt(e,t,o){return(e=e<=o?e:o)>=t?e:t}const Bt="bottom",Ft="left",jt="right",Ut="top",Zt={top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},Vt={min:0,max:1/0},$t=({height:e,heightConstraints:t,width:o,widthConstraints:n})=>({height:Wt(e,t.min,t.max),width:Wt(o,n.min,n.max)}),Yt=({enable:e,height:t,heightConstraints:o,resizeEdge:n,width:r=0,widthConstraints:i})=>({...$t({height:t,widthConstraints:i,heightConstraints:o,width:r}),enable:void 0===e||e,horizontal:n===Ft||n===jt,initialHeight:t,initialWidth:r,resizing:!1,isMouseWheeling:!1,vertical:n===Ut||n===Bt});class qt extends i().PureComponent{static defaultProps={className:"",enable:!0,heightConstraints:Vt,resizeContentClassName:"",resizeHandleClassName:"",style:{},wrapperStyle:{},translate:()=>"",wrapChildrenInDivContainer:!0,widthConstraints:Vt};onWheelTimeOut;isMouseWheeling=!1;constructor(e){super(e),this.state=Yt(e)}componentWillReceiveProps(e){const{onResizeFromPropChange:t}=this.props,{height:o,resizing:n,width:r}=this.state,{onResizeFromPropChange:i}=e;if(n)return;const s=Yt(e);this.setState(s);const{height:l,width:a}=s,c=i||t;!c||l===o&&a===r||c({height:l,width:a,originalHeight:o,originalWidth:r})}_onResize=(e,t,o,{height:n,width:r})=>{const{onResize:i}=this.props,{height:s,horizontal:l,vertical:a,width:c}=this.state,{height:h,width:d}=(({deltaWidth:e,deltaHeight:t},{heightConstraints:o,widthConstraints:n},{initialHeight:r,initialWidth:i})=>$t({height:r+t,heightConstraints:o,width:i+e,widthConstraints:n}))({deltaWidth:r,deltaHeight:n},this.props,this.state),u=l&&d!==c,p=a&&h!==s;(u||p)&&(this.setState({height:p?h:s,width:u?d:c,isMouseWheeling:!1}),i&&i({height:p?h:void 0,width:u?d:void 0}))};_onResizeStart=e=>{e.preventDefault(),e.stopPropagation();const{onResizeStart:t}=this.props,{height:o,horizontal:n,vertical:r,width:i}=this.state;this.setState({resizing:!0}),t&&t({height:r?o:void 0,width:n?i:void 0})};_onResizeEnd=()=>{const{onResizeEnd:e}=this.props,{height:t,horizontal:o,vertical:n,width:r,initialWidth:i,initialHeight:s}=this.state;this.setState({initialWidth:r,initialHeight:t,resizing:!1}),i===r&&s===t||e&&e({width:o?r:void 0,height:n?t:void 0})};_onWheel=()=>{this.isMouseWheeling||(this.isMouseWheeling=!0,this.setState({isMouseWheeling:!0})),clearTimeout(this.onWheelTimeOut),this.onWheelTimeOut=setTimeout((()=>{this.isMouseWheeling=!1,this.setState({isMouseWheeling:!1})}),10)};render(){const{children:e,className:t,handleStyles:o,resizeContentClassName:n,resizeEdge:r,resizeHandleClassName:s,style:l,translate:a,heightConstraints:c,wrapChildrenInDivContainer:h,widthConstraints:d}=this.props,{enable:u,height:p,horizontal:f,resizing:m,vertical:g,width:v,isMouseWheeling:y}=this.state,{display:w,...S}=l,{min:b,max:C}=d,{min:x,max:R}=c,_={...this.props.wrapperStyle};f&&(_.width=v,_.minWidth=v),g&&(_.height=p,_.minHeight=p);const T=me()("resizable",t,{resizing:m}),E=me()("contents",n,`resize-edge-${r}`,{horizontal:f,vertical:g}),O=me()(r,s,"resizable-handle",{horizontal:f,vertical:g}),M=i().createElement("span",{title:a("ResizePanel")});return i().createElement("div",{"data-testid":"resizable",onWheel:this._onWheel,style:{..._,display:w}},i().createElement(Dt,{className:T,"data-testid":"resizable-core",enable:{...Zt,[r]:!y&&u},handleClasses:{[r]:O},handleComponent:{[r]:M},handleStyles:o,maxHeight:g?R:void 0,maxWidth:f?C:void 0,minHeight:g?x:void 0,minWidth:f?b:void 0,onResize:this._onResize,onResizeStart:this._onResizeStart,onResizeStop:this._onResizeEnd,size:{height:g?p:"100%",width:f?v:"100%"},style:S},h?i().createElement("div",{className:E,style:{userSelect:"none"}},e):e))}}const Kt="#199489",Xt=28,Qt=22,Jt=50*Xt,eo=2,to=28,oo=3,no=3,ro=Xt,io=22,so=22,lo=3,ao=Qt/2,co=so-2*eo,ho=28+to,uo=5,po=18,fo=10,mo=15,go=1,vo=10,yo=12,wo=6,So=3,bo=12,Co="timelineMessage",xo="ref",Ro="graph",_o="message",To="author",Eo="datetime",Oo="sha",Mo="changes";var Io=(e=>(e.LocalBranches="localBranches",e.RemoteBranches="remoteBranches",e.Selection="selection",e.Head="head",e.Upstream="upstream",e.Highlights="highlights",e.Stashes="stashes",e.Tags="tags",e))(Io||{});const zo={block:{type:"block",baseHeight:1*Xt,minHeight:5,maxHeight:20},fullLine:{type:"fullLine",baseHeight:.5*Xt,minHeight:2,maxHeight:4},thinLine:{type:"thinLine",baseHeight:.25*Xt,minHeight:1,maxHeight:2}},ko={stashes:{type:"stashes",colorCssKey:"--color-graph-scroll-marker-stashes",lanes:[0],shape:"block"},tags:{type:"tags",colorCssKey:"--color-graph-scroll-marker-tags",lanes:[2],shape:"block"},remoteBranches:{type:"remoteBranches",colorCssKey:"--color-graph-scroll-marker-remote-branches",lanes:[2],shape:"block"},localBranches:{type:"localBranches",colorCssKey:"--color-graph-scroll-marker-local-branches",lanes:[0],shape:"block"},highlights:{type:"highlights",colorCssKey:"--color-graph-scroll-marker-highlights",lanes:[1],shape:"block"},upstream:{type:"upstream",colorCssKey:"--color-graph-scroll-marker-upstream",lanes:[1,2],shape:"block"},head:{type:"head",colorCssKey:"--color-graph-scroll-marker-head",lanes:[0,1],shape:"block"},selection:{type:"selection",colorCssKey:"--color-graph-scroll-marker-selection",lanes:[0,1,2],shape:"fullLine"}},Go={[To]:{headerLabelUntranslated:"GraphHeader-CommitAuthor",isCustomizable:!0,listId:"commit-author-zone",minimumWidth:50},[Eo]:{headerLabelUntranslated:"GraphHeader-CommitDateTime",isCustomizable:!0,listId:"commit-date-time-zone",minimumWidth:50},[_o]:{headerLabelUntranslated:"GraphHeader-CommitMessage",isCustomizable:!1,listId:"commit-message-zone",minimumWidth:50},[Oo]:{headerLabelUntranslated:"GraphHeader-CommitSha",isCustomizable:!0,listId:"commit-sha-zone",minimumWidth:50},[Ro]:{headerLabelUntranslated:"GraphHeader-CommitGraph",isCustomizable:!1,listId:"commit-zone",minimumWidth:ho},[xo]:{headerLabelUntranslated:"GraphHeader-BranchTag",isCustomizable:!1,listId:"ref-zone",minimumWidth:100},[Mo]:{headerLabelUntranslated:"GraphHeader-Changes",isCustomizable:!0,listId:"changes-zone",minimumWidth:50}},Po={hour:23,day:6,week:4,month:11,year:6},Ao={added:0,deleted:0,modified:0},Ho="pullRequest",Lo="upstream",No=[Ho,Lo],Do={HEAD:"head",REMOTE:"remote",TAG:"tag"},Wo=e=>{let t;return(...o)=>{t&&cancelAnimationFrame(t),t=requestAnimationFrame((()=>{e(...o)}))}};function Bo(e){return e?"string"==typeof e?e:JSON.stringify(e):null}function Fo(e){const{length:t}=e;if(0===t)return{min:0,max:0};if(1===t)return{min:0,max:e[0]};e.sort(((e,t)=>e-t));const o=e[0],n=e[Math.floor(.25*t)],r=e[Math.floor(.5*t)],i=e[Math.floor(.75*t)],s=e[t-1],l=i-n;return{min:Math.max(o,r-1.5*l),max:Math.min(s,r+1.5*l)}}function jo(e,t,o,n){const{id:r}=e;return!r||null===t||null===t?.[r]||n&&null===t?.[r]?.[n]?null:t&&r in t?n&&!t[r]?.[n]?(o(r,[n]),null):n?t?.[r]?.[n]:t?.[r]:(o(r,No),null)}function Uo(e,t){if(t.id)return t.id;const o=t.owner||"";return e===Do.REMOTE?`${e}/${o}/${t.name}`:`${e}/${t.name}`}function Zo(e){return Uo(e.refType,e)}function Vo(e,t=0){for(let o=e.length-1;o>=t;o-=1){const t=e[o];if(t.currentWidth>t.minimumWidth)return t}}function $o(e,t=0){if(e.length){for(let o=t;o<e.length;o+=1){const t=e[o],n=t.maximumWidth?Math.min(t.maximumWidth,t.preferredWidth||1/0):t.preferredWidth;if(n&&t.currentWidth<n)return t}return e[e.length-1]}}function Yo(e,t){let o=0;for(let n=0;n<e.length;n+=1){const r=e[n];t&&r.type===t||(o+=r.currentWidth)}return o}const qo=(e,t)=>e===t[t.length-1].type;function Ko(e,t,o){return Wt(o,e.minimumWidth||0,e.maximumWidth&&!qo(e.type,t)?e.maximumWidth||0:Number.MAX_VALUE)}function Xo(e,t){return t.find((({type:t})=>t===e))}function Qo(e,t){return t.findIndex((({type:t})=>t===e))}function Jo(e,t,o){let n=0,r=0;const i=Qo(e,t);if(i>-1){const e=function(e,t=0){let o=0;for(let n=t;n<e.length;n+=1)o+=e[n].minimumWidth;return o}(t,i+1),s=function(e,t=e.length-1){let o=0;for(let n=0;n<=t;n+=1)o+=e[n].currentWidth;return o}(t,i-1),l=t[i].maximumWidth||Number.MAX_VALUE,a=Math.min(l,o-e-s);n=t[i].minimumWidth,r=a}return{min:n,max:r}}function en(e){return(e?.heads||[]).some((e=>e.isCurrentHead))}function tn(e){return!!e&&Object.values(e).some((e=>e>0))}function on(e){return 1===Object.keys(e).length}function nn(e,t){return!0===e[t]&&on(e)}function rn(e,t){const{heads:o,tags:n,remotes:r}=e.hasRefs?e:e.childRefs,i=o?o.map((e=>({...e,refType:Do.HEAD}))):[],s=n?n.map((e=>({...e,refType:Do.TAG}))):[];return[...i,...r?r.map((e=>({...e,fullName:t&&e.owner?`${e.owner}/${e.name}`:e.name,refType:Do.REMOTE}))):[],...s]}function sn(e){const t=[];let o;for(let n=0;n<e.length;n+=1){let r=!1;o=e[n].fullName||e[n].name;for(let i=0;i<t.length;i+=1)if(t[i].length>0&&t[i][0].name===o){e[n].refType===Do.HEAD?t[i].unshift(e[n]):t[i].push(e[n]),r=!0;break}r||t.push([e[n]])}return t}class ln{props;constructor(e){this.props=e}getActiveGraphZone(e){const t=Xo(e,this.props.graphZones);return!t||t.isHidden?void 0:t}getGraphRefGroupForRow(e){const t=this.getRow(e);return t?rn(t,this.props.showRemoteNamesOnRefs):[]}getGraphRefGroupsByNameForRow(e){const t=this.getGraphRefGroupForRow(e);return t?sn(t):[]}getRow(e){if(!(e<0||e>this.props.processedRows.length-1))return this.props.processedRows[e]}getZoneWidth(e){return function(e,t){return Xo(e,t)?.currentWidth||Go[e].minimumWidth}(e,this.props.graphZones)}isDateTimeZoneActive(){return!!this.getActiveGraphZone(Eo)}isFirstRow(e){return 0===e}isHighlighted(e){if(this.props.processedRows[e]&&this.props.highlightedShas){const t=this.props.processedRows[e]?.sha;return this.props.highlightedShas[t]||!1}return!1}isHovering(e){return!(!this.props.isContainerWindowFocused||!this.props.processedRows[e])&&this.props.currentlyHoveredCommitSha===this.props.processedRows[e]?.sha}isLastColumn(e){return qo(e,this.props.graphZones)}getSelectedRefGroupByName(){if(on(this.props.isSelectedBySha)){const e=Object.keys(this.props.isSelectedBySha),t=this.props.processedGraphRowBySha[e[0]];if(t){return sn(rn(t,this.props.showRemoteNamesOnRefs))}}return[]}isMissingHoveredRefGroup(e){if(!this.props.isContainerWindowFocused||this.props.highlightedShas)return!1;const t=this.getRow(e);if(!t)return!1;let o=[];if(this.props.dimRowsOfSelectedCommit){const e=this.getSelectedRefGroupByName();if(!e.length)return!1;o=e[0]}else{const{hoveredRefGroup:e}=this.props;if(!e||!e.length)return!1;o=e}const{name:n,refType:r}=o[0],i=r===Do.TAG,s=t.tags.length>0&&!t.heads.length&&!t.remotes.length,{heads:l,tags:a,remotes:c}=!t.hasRefs||s&&!i?t.childRefs:t;if(!l.length&&!c.length&&!a.length)return!0;return!l.some((e=>e.name===n&&o.some((e=>e.refType===Do.HEAD))))&&!c.some((e=>e.name===n&&o.some((t=>t.refType===Do.REMOTE&&t.owner===e.owner))))&&!a.some((e=>e.name===n&&o.some((e=>e.refType===Do.TAG))))}isSelected(e){const t=this.getRow(e)?.sha;return!!t&&!0===this.props.isSelectedBySha[t]}isSingleSelected(e){const t=this.getRow(e)?.sha;return!!t&&nn(this.props.isSelectedBySha,t)}hasTimeline(e){return!!this.props.processedRows[e]?.timeLineEntry&&!this.isDateTimeZoneActive()&&!this.isFirstRow(e)}rowContainsCurrentHeadRef(e){return en(e)}}function an(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var cn=o(8149),hn=o.n(cn),dn=o(1629),un=o.n(dn),pn=o(6405),fn=o.n(pn);o(670);const mn=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.filter((function(e){return null!=e})).reduce((function(e,t){if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(){for(var o=arguments.length,n=new Array(o),r=0;r<o;r++)n[r]=arguments[r];e.apply(this,n),t.apply(this,n)}}),null)};function gn(e,t){return hn()(t)?t.indexOf(e)>=0:e===t}var vn=l().oneOf(["click","hover","focus"]),yn=We({},et.propTypes,{trigger:l().oneOfType([vn,l().arrayOf(vn)]),delay:l().number,delayShow:l().number,delayHide:l().number,defaultOverlayShown:l().bool,overlay:l().node.isRequired,onBlur:l().func,onClick:l().func,onFocus:l().func,onMouseOut:l().func,onMouseOver:l().func,target:l().oneOf([null]),onHide:l().oneOf([null]),show:l().oneOf([null])}),wn=function(e){function t(t,o){var n;return(n=e.call(this,t,o)||this).handleToggle=n.handleToggle.bind(an(an(n))),n.handleDelayedShow=n.handleDelayedShow.bind(an(an(n))),n.handleDelayedHide=n.handleDelayedHide.bind(an(an(n))),n.handleHide=n.handleHide.bind(an(an(n))),n.handleMouseOver=function(e){return n.handleMouseOverOut(n.handleDelayedShow,e,"fromElement")},n.handleMouseOut=function(e){return n.handleMouseOverOut(n.handleDelayedHide,e,"toElement")},n._mountNode=null,n.state={show:t.defaultOverlayShown},n}Ne(t,e);var o=t.prototype;return o.componentDidMount=function(){this._mountNode=document.createElement("div"),this.renderOverlay()},o.componentDidUpdate=function(){this.renderOverlay()},o.componentWillUnmount=function(){fn().unmountComponentAtNode(this._mountNode),this._mountNode=null,clearTimeout(this._hoverShowDelay),clearTimeout(this._hoverHideDelay)},o.handleDelayedHide=function(){var e=this;if(null!=this._hoverShowDelay)return clearTimeout(this._hoverShowDelay),void(this._hoverShowDelay=null);if(this.state.show&&null==this._hoverHideDelay){var t=null!=this.props.delayHide?this.props.delayHide:this.props.delay;t?this._hoverHideDelay=setTimeout((function(){e._hoverHideDelay=null,e.hide()}),t):this.hide()}},o.handleDelayedShow=function(){var e=this;if(null!=this._hoverHideDelay)return clearTimeout(this._hoverHideDelay),void(this._hoverHideDelay=null);if(!this.state.show&&null==this._hoverShowDelay){var t=null!=this.props.delayShow?this.props.delayShow:this.props.delay;t?this._hoverShowDelay=setTimeout((function(){e._hoverShowDelay=null,e.show()}),t):this.show()}},o.handleHide=function(){this.hide()},o.handleMouseOverOut=function(e,t,o){var n=t.currentTarget,r=t.relatedTarget||t.nativeEvent[o];r&&r===n||un()(n,r)||e(t)},o.handleToggle=function(){this.state.show?this.hide():this.show()},o.hide=function(){this.setState({show:!1})},o.makeOverlay=function(e,t){return i().createElement(et,We({},t,{show:this.state.show,onHide:this.handleHide,target:this}),e)},o.show=function(){this.setState({show:!0})},o.renderOverlay=function(){fn().unstable_renderSubtreeIntoContainer(this,this._overlay,this._mountNode)},o.render=function(){var e=this.props,t=e.trigger,o=e.overlay,n=e.children,s=e.onBlur,l=e.onClick,a=e.onFocus,c=e.onMouseOut,h=e.onMouseOver,d=Pe(e,["trigger","overlay","children","onBlur","onClick","onFocus","onMouseOut","onMouseOver"]);delete d.delay,delete d.delayShow,delete d.delayHide,delete d.defaultOverlayShown;var u=i().Children.only(n),p=u.props,f={};return this.state.show&&(f["aria-describedby"]=o.props.id),f.onClick=mn(p.onClick,l),gn("click",t)&&(f.onClick=mn(f.onClick,this.handleToggle)),gn("hover",t)&&(f.onMouseOver=mn(p.onMouseOver,h,this.handleMouseOver),f.onMouseOut=mn(p.onMouseOut,c,this.handleMouseOut)),gn("focus",t)&&(f.onFocus=mn(p.onFocus,a,this.handleDelayedShow),f.onBlur=mn(p.onBlur,s,this.handleDelayedHide)),this._overlay=this.makeOverlay(o,d),(0,r.cloneElement)(u,f)},t}(i().Component);wn.propTypes=yn,wn.defaultProps={defaultOverlayShown:!1,trigger:["hover","focus"]};const Sn=wn;var bn={id:ot()(l().oneOfType([l().string,l().number])),placement:l().oneOf(["top","right","bottom","left"]),positionTop:l().oneOfType([l().number,l().string]),positionLeft:l().oneOfType([l().number,l().string]),arrowOffsetTop:l().oneOfType([l().number,l().string]),arrowOffsetLeft:l().oneOfType([l().number,l().string])},Cn=function(e){function t(){return e.apply(this,arguments)||this}return Ne(t,e),t.prototype.render=function(){var e,t=this.props,o=t.placement,n=t.positionTop,r=t.positionLeft,s=t.arrowOffsetTop,l=t.arrowOffsetLeft,a=t.className,c=t.style,h=t.children,d=ft(Pe(t,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","className","style","children"])),u=d[0],p=d[1],f=We({},dt(u),((e={})[o]=!0,e)),m=We({top:n,left:r},c),g={top:s,left:l};return i().createElement("div",We({},p,{role:"tooltip",className:me()(a,f),style:m}),i().createElement("div",{className:ct(u,"arrow"),style:g}),i().createElement("div",{className:ct(u,"inner")},h))},t}(i().Component);Cn.propTypes=bn,Cn.defaultProps={placement:"right"};const xn=ht("tooltip",Cn);var Rn=function({classes:e=[],context:t,divStyle:o,height:n,size:r,url:s,width:l}){const a={...o,background:`url(${s}) 0% 0% / ${r}px no-repeat`,height:n||r,width:l||r},c=["avatar","content-box",...e].join(" ").trim();return i().createElement("div",{className:c,"data-test-class":"avatar","data-vscode-context":Bo(t),style:a})};function _n(e){switch(e){case"github":return"GitHub";case"githubEnterprise":return"GitHub Enterprise";case"gitlab":return"GitLab";case"gitlabSelfHosted":return"GitLab Self-Hosted";case"azureDevops":return"Azure DevOps";case"bitbucket":return"Bitbucket";case"bitbucketServer":return"Bitbucket Server";default:return e}}const Tn=(e,t,o)=>e?((e,t)=>i().createElement("span",{className:"ref-avatar mr1"},i().createElement(Rn,{context:t,size:14,url:e})))(e,o):t;function En({icon:e,tooltipClassName:t="",tooltipId:o,tooltipText:n}){return n&&o?i().createElement(Sn,{overlay:i().createElement(xn,{className:me()("bs-tooltip",t),id:o},n),placement:"top",trigger:["hover","focus"]},e):i().createElement(i().Fragment,null," ",e," ")}function On({hostingServiceType:e,icon:t,id:o,title:n}){return i().createElement(En,{icon:t,tooltipClassName:"wide pull-left",tooltipId:`pr-tooltip-${e}-${o}`,tooltipText:n&&""!==n.trim()?`#${o}: ${n}\nDouble-click to open pull request on ${_n(e)}`:""})}function Mn({icon:e,type:t,upstream:o,tooltipText:n}){return i().createElement(En,{icon:e,tooltipClassName:"wide pull-left",tooltipId:`upstream-indicator-tooltip-${t}-${o}`,tooltipText:n})}function In({avatarUrl:e,context:t,icon:o,tooltipText:n}){return i().createElement(En,{icon:Tn(e,o,t),tooltipId:`remote-icon-${n||"tooltipText"}`,tooltipText:n})}var zn=function({name:e}){return i().createElement("span",{className:"ref-name truncate",style:{height:po}},e)};function kn(e,t,o,n,r,s){const l=jo(n,e,t,Ho);if(!l||0===l.length)return null;const a=l,c=[];for(let e=0;e<a.length;e+=1){const t=a[e],{context:l,hostingServiceType:h,id:d,title:u}=t,p={refId:n.id,type:Ho,data:t},f=i().createElement("span",{className:me()("mr1","ref-pull-request"),"data-vscode-context":Bo(l),onClick:e=>r(e,p),onDoubleClick:e=>s(e,p)},o("pull-request"));c.push(i().createElement(On,{hostingServiceType:h,icon:f,id:d,title:u}))}return c}function Gn(e,t,o,n,r,s){const l=jo(n,e,t,Lo);if(!l||0===l.ahead&&0===l.behind)return null;const a=l,c={refId:n.id,type:Lo,data:a},h=a.ahead>0,d=a.behind>0,u=a.context;if(h||d){const e=h?`${a.ahead>99?"99+":a.ahead}`:"",t=d?`${a.behind>99?"99+":a.behind}`:"",n=`${a.owner}/${a.name}`;let l,p;return d&&h?(l=`${t} ${a.behind>1?"commits":"commit"} behind and ${e} ${a.ahead>1?"commits":"commit"} ahead of ${n}\nDouble-click to pull changes`,p="ahead-behind"):d?(l=`${t} ${a.behind>1?"commits":"commit"} behind ${n}\nDouble-click to pull changes`,p="behind"):h&&(l=`${e} ${a.ahead>1?"commits":"commit"} ahead of ${n}\nDouble-click to push changes`,p="ahead"),i().createElement(Mn,{icon:i().createElement("div",{className:"ref-upstream","data-vscode-context":Bo(u),onClick:e=>r(e,c),onDoubleClick:e=>s(e,c)},d?i().createElement(i().Fragment,null,i().createElement("span",{className:"ref-upstream-behind"},t),o("upstream-behind")):null,h?i().createElement(i().Fragment,null,i().createElement("span",{className:"ref-upstream-ahead"},e),o("upstream-ahead")):null),tooltipText:l,type:p,upstream:n})}return null}function Pn(e,t,o,n=0){const{refType:r,name:s}=t;let l,a,c="";switch(r){case Do.REMOTE:a=Do.REMOTE,l=t.avatarUrl,c=t.owner||"";break;case Do.TAG:a=Do.TAG,c=s||"";break;case Do.HEAD:default:a=Do.HEAD,c=o("Ref-Local")}const h=t.context||void 0,d=i().createElement("span",{className:me()("mr1"),"data-vscode-context":Bo(h)},e(a));return i().createElement(In,{avatarUrl:l||"",context:h,icon:d,key:`ref-icon-${n}-${r}-${s}`,tooltipText:c})}function An(e,t,o){let n,r=!1,i=!1,s=!1;for(const l of e){if(l.refType===Do.HEAD)return o?l.contextGroup||t:l.context;l.refType===Do.REMOTE&&("origin"===l.owner?(r=!0,n=o?l.contextGroup||t:l.context):r||"upstream"!==l.owner?r||i||(s=!0,n=o?l.contextGroup||t:l.context):(i=!0,n=o?l.contextGroup||t:l.context)),r||i||s||(n=o?l.contextGroup||t:l.context)}return n}class Hn extends i().PureComponent{onContextMenu=e=>{const{onContextMenu:t,refGroup:o,sha:n}=this.props;t(e,o,n)};onClick=e=>{const{onClick:t,refGroup:o,sha:n}=this.props;t(e,o,n)};onClickMetadata=(e,t)=>{e.stopPropagation();const{onClick:o,refGroup:n,sha:r}=this.props;o(e,n,r,t)};onDoubleClick=e=>{const{onDoubleClick:t,refGroup:o,sha:n}=this.props;t(e,o,n)};onDoubleClickMetadata=(e,t)=>{e.stopPropagation();const{onDoubleClick:o,refGroup:n,sha:r}=this.props;o(e,n,r,t)};render(){const{hasActive:e,hasRefs:t,getExternalIcon:o,groupIsHovered:n,isInUnsupportedRebase:r,isRefGroupIncluded:s,onMissingRefMetadata:l,refGroup:a,refGroupContext:c,refMetadata:h,onHovered:d,onHideRefClick:u,sha:p,enabledRefMetadataTypes:f,translate:m}=this.props,g=me()("ref-node-wrapper","flex"),v=me()("ref-node","flex","items-center","p1",{"has-active":e,"dim-ref":!t&&n,"is-active":e}),y=a.length?a[0].fullName||a[0].name:"",w=i().createElement(zn,{name:y}),S=[],b=[];let C=null;for(let e=0;e<a.length;e+=1){if(S.push(Pn(o,a[e],m,e)),f.includes(Ho)&&a[e].refType===Do.REMOTE){const t=kn(h,l,o,a[e],this.onClickMetadata,this.onDoubleClickMetadata);t&&b.push(...t)}f.includes(Lo)&&a[e].refType===Do.HEAD&&(C=Gn(h,l,o,a[e],this.onClickMetadata,this.onDoubleClickMetadata))}const x=[...S,...b],R=a.some((e=>e.refType===Do.HEAD&&e.isCurrentHead)),_=!e||n&&!R?null:i().createElement(En,{icon:i().createElement("span",{className:me()("mr1")},o("check")),tooltipId:"ref-icon-current",tooltipText:m("Ref-Current")}),T=An(a,c),E=An(a,c,!0),O=!R&&n&&!s?i().createElement(En,{icon:i().createElement("span",{className:me()("mr1","button"),onClick:e=>u(e,a,p)},o("hide")),tooltipId:`ref-node-toggle-visibility-btn-${y}`,tooltipText:m("Hide")}):null;return i().createElement("span",{className:g,"data-vscode-context":Bo(E),style:{minWidth:0,marginLeft:3,marginRight:3}},i().createElement("span",{className:v,"data-test-class":"ref-node-span","data-vscode-context":Bo(T),onClick:this.onClick,onContextMenu:r?void 0:this.onContextMenu,onDoubleClick:r?void 0:this.onDoubleClick,onMouseEnter:e=>d(e,a,p),style:{height:Qt,minWidth:"100%"}},_,i().createElement("span",{className:"flex items-center"},x),w,C,i().createElement("span",{className:"flex ml-auto"},O)))}}class Ln extends i().Component{constructor(e){super(e),this.state={showPopoverMenu:!1,refPopoverMenuTarget:void 0}}onHiddenRefsClick=e=>{const{showPopoverMenu:t}=this.state;this.setState({showPopoverMenu:!t,refPopoverMenuTarget:t?e.target:void 0})};onShowRefNodes=(e,t,o)=>{this.props.onToggleRefNodesShown(e,t,o),0===Object.keys(this.props.excludeRefsById).length&&this.onHiddenRefsClick(e)};compareGraphRefOpts(e,t){return e.name<t.name?-1:e.name>t.name?1:e.name===t.name&&e.type===Do.REMOTE?-1:0}render(){const{enableResizer:e,getExternalIcon:t,graphWidth:o,graphZones:n,graphZoneType:r,excludeRefsById:s,includeOnlyRefsById:l,isDraggable:a,onHover:c,onResize:h,onResizeEnd:d,onResizeFromPropChange:u,onResizeStart:p,onUnhover:f,showRemoteNamesOnRefs:m,translate:g}=this.props,{showPopoverMenu:v,refPopoverMenuTarget:y}=this.state,w=Xo(r,n);if(!w)return null;const S=qo(r,n);let b=null,C=null;if(r===xo){const e=Object.entries(s),o=Object.values(l),n=o.length>0,r=n&&o.some((e=>e.type===Do.TAG)),a=e.filter((e=>e[1].type===Do.TAG&&(!n||!r)||!l[e[0]]));a.length>0&&(C=a.sort(((e,t)=>this.compareGraphRefOpts(e[1],t[1]))).map(((e,o)=>{const n=e[0],r=e[1];s[n].id=n;const l={name:r.name,refType:r.type,owner:r.owner,avatarUrl:r.avatarUrl},a=!m&&"*"!==l.name||l.refType!==Do.REMOTE?l.name:`${l.owner}/${l.name}`;return i().createElement("li",{id:n,key:n,onClick:e=>this.onShowRefNodes(e,[s[n]],!0)},Pn(t,l,g,o),i().createElement("span",{className:"text-ellipsis"},a))})),b=i().createElement("div",{className:me()("right","text-normal","button",v?"active":null)},i().createElement(En,{icon:i().createElement("span",{onClick:this.onHiddenRefsClick},t("hide")),tooltipId:"header-ref-node-hidden-refs-btn",tooltipText:g("GraphHeader-HiddenRefs-btn")})))}const x=`${r}-header`,R=i().createElement("div",{onMouseEnter:c,onMouseLeave:f},b,i().createElement(et,{container:this,onHide:v?this.onHiddenRefsClick:void 0,placement:v?"bottom":void 0,rootClose:v,show:v,target:y},i().createElement(vt,{id:"opts-popover",style:{display:v?"block":"none"}},i().createElement("ul",null,C))),i().createElement("div",{className:"text-ellipsis font-monospace text-disabled"},i().createElement("span",{className:"ml1 fs-1"},g(w.headerLabelUntranslated)))),_=me()("panel-bg0","graph-header",{"is-draggable":a});return S?i().createElement("div",{className:_,id:x,key:x,style:{minWidth:w.currentWidth-4,transform:"translate3d(0, 0, 0)",zIndex:2}},R):i().createElement("div",{className:_,id:x,key:x,style:{display:"flex",minWidth:w.currentWidth,transform:"translate3d(0, 0, 0)",width:w.currentWidth,zIndex:2}},i().createElement(qt,{className:_,enable:e,handleStyles:{right:{right:0}},height:22,onResize:h?e=>h(w,e):void 0,onResizeEnd:d?e=>d(w,e):void 0,onResizeFromPropChange:u?e=>u(w,e):void 0,onResizeStart:p?e=>p(w,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z2 border-right",style:{display:"flex"},translate:g,width:w.currentWidth,widthConstraints:Jo(r,n,o)},R))}}const Nn=Ln;var Dn=o(977),Wn=o.n(Dn);const Bn="dnd-container";class Fn extends i().PureComponent{dndDrake;childReactElementsById={};constructor(e){super(e),this.loadChildrenReactElements(this.props.children)}componentDidMount(){this.dndDrake&&this.dndDrake.on("drop",this.onDrop)}componentWillReceiveProps(e){this.props.children!==e.children&&this.loadChildrenReactElements(e.children)}componentWillUnmount(){this.dndDrake&&this.dndDrake.destroy()}onDrop=(e,t,o,n)=>{if(this.props.onDrop&&e.id){const t=this.sanitizeId(e.id),o=n&&n.id?this.sanitizeId(n.id):null,r=this.childReactElementsById[t],i=o?this.childReactElementsById[o]:null;r&&this.props.onDrop(r,i)}};isContainerCallback=e=>!!e?.classList.contains(Bn);movesCallback=e=>!!e?.id&&this.isDraggable(e.id);acceptsCallback=(e,t,o,n)=>!!e?.id&&this.isDroppable(e.id,n?.id);invalidCallBack=()=>!1;dndDecorator=e=>{if(e){const t={isContainer:this.isContainerCallback,moves:this.movesCallback,accepts:this.acceptsCallback,invalid:this.invalidCallBack,direction:this.props.direction||"horizontal",copy:!1,copySortSource:!1,revertOnSpill:!1,removeOnSpill:!1,ignoreInputTextSelection:!0};this.dndDrake=Wn()([e],t)}};loadChildrenReactElements(e){this.childReactElementsById={},e&&(e instanceof Array?e.forEach((e=>{i().isValidElement(e)&&this.addChildReactElement(e)})):i().isValidElement(e)&&this.addChildReactElement(e))}addChildReactElement(e){const t=e.props.id;t&&(this.childReactElementsById[this.sanitizeId(t)]=e)}sanitizeId(e){return e.trim().toLowerCase().replace(/-/g,"").replace(/_/g,"")}isDraggable(e){if(this.props.isDraggable){const t=this.sanitizeId(e),o=this.childReactElementsById[t];return!!o&&this.props.isDraggable(o)}return!1}isDroppable(e,t){if(this.props.isDroppable){const o=this.sanitizeId(e),n=t?this.sanitizeId(t):null,r=this.childReactElementsById[o],i=n?this.childReactElementsById[n]:null;if(r)return this.props.isDroppable(r,i)}return!1}render(){const{children:e,className:t}=this.props,o=me()(Bn,t);return i().createElement("div",{className:o,ref:this.dndDecorator},e)}}var jn=Fn;class Un extends i().PureComponent{canDrag=!1;isDraggable=e=>this.canDrag&&e.props.isDraggable;isDroppable=(e,t)=>e.props.graphZoneType!==t?.props?.graphZoneType&&(!t||t.props.isDroppable);onDrop=(e,t)=>{this.props.onColumnReOrdered&&this.props.onColumnReOrdered(e.props.graphZoneType,t?t.props.graphZoneType:null)};onZoneHover=()=>{this.canDrag=!0};onZoneUnHover=()=>{this.canDrag=!1};render(){const{context:e,enableResizer:t,getExternalIcon:o,excludeRefsById:n,includeOnlyRefsById:r,onPopupGraphHeaderContextMenu:s,onGraphZoneResize:l,onGraphZoneResizeEnd:a,onGraphZoneResizeFromPropChange:c,onToggleRefNodesShown:h,graphZones:d,repoPath:u,showRemoteNamesOnRefs:p,translate:f,width:m,height:g}=this.props,v=i().createElement("div",{className:"panel-bg0",style:{height:22,marginBottom:2,marginLeft:-7,minWidth:11}});return i().createElement("div",{className:"graph-header flex","data-vscode-context":Bo(e),onContextMenu:s?()=>s(m):void 0,style:{height:22,marginBottom:2}},v,i().createElement(jn,{className:"flex",direction:"horizontal",isDraggable:this.isDraggable,isDroppable:this.isDroppable,onDrop:this.onDrop},d.map((e=>i().createElement(Nn,{enableResizer:t,excludeRefsById:n,getExternalIcon:o,graphHeight:g,graphWidth:m,graphZones:d,graphZoneType:e.type,id:`${e.type}Header`,includeOnlyRefsById:r,isDraggable:e.isCustomizable,isDroppable:e.isCustomizable,key:`${e.type}Header`,onHover:this.onZoneHover,onResize:l,onResizeEnd:a,onResizeFromPropChange:c,onToggleRefNodesShown:h,onUnhover:this.onZoneUnHover,repoPath:u,showRemoteNamesOnRefs:p,translate:f})))))}}var Zn=Un;function Vn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $n(e){return $n="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},$n(e)}function Yn(e){var t=function(e,t){if("object"!==$n(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!==$n(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$n(t)?t:String(t)}function qn(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Yn(n.key),n)}}function Kn(e,t,o){return t&&qn(e.prototype,t),o&&qn(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qn(e,t){if(t&&("object"===$n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Xn(e)}function Jn(e){return Jn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jn(e)}function er(e,t){return er=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},er(e,t)}function tr(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&&er(e,t)}function or(e,t,o){return(t=Yn(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var nr=o(6871);function rr(){return rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},rr.apply(this,arguments)}function ir(e){var t,o,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(o=ir(e[t]))&&(n&&(n+=" "),n+=o);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}const sr=function(){for(var e,t,o=0,n="";o<arguments.length;)(e=arguments[o++])&&(t=ir(e))&&(n&&(n+=" "),n+=t);return n};function lr(e){var t=e.cellCount,o=e.cellSize,n=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,s=e.nextCellSize,l=e.nextScrollToIndex,a=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof o&&"number"!=typeof s||o===s)||(n(r),a>=0&&a===l&&c())}function ar(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}var cr=function(){function e(t){var o=t.cellCount,n=t.cellSizeGetter,r=t.estimatedCellSize;Vn(this,e),or(this,"_cellSizeAndPositionData",{}),or(this,"_lastMeasuredIndex",-1),or(this,"_lastBatchedIndex",-1),or(this,"_cellCount",void 0),or(this,"_cellSizeGetter",void 0),or(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=o,this._estimatedCellSize=r}return Kn(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,o=e.estimatedCellSize,n=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=o,this._cellSizeGetter=n}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),o=t.offset+t.size,n=this._lastMeasuredIndex+1;n<=e;n++){var r=this._cellSizeGetter({index:n});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell ".concat(n," of value ").concat(r));null===r?(this._cellSizeAndPositionData[n]={offset:o,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[n]={offset:o,size:r},o+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,o=void 0===t?"auto":t,n=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(n<=0)return 0;var s,l=this.getSizeAndPositionOfCell(i),a=l.offset,c=a-n+l.size;switch(o){case"start":s=a;break;case"end":s=c;break;case"center":s=a-(n-l.size)/2;break;default:s=Math.max(c,Math.min(a,r))}var h=this.getTotalSize();return Math.max(0,Math.min(h-n,s))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;if(0===this.getTotalSize())return{};var n=o+t,r=this._findNearestCell(o),i=this.getSizeAndPositionOfCell(r);o=i.offset+i.size;for(var s=r;o<n&&s<this._cellCount-1;)s++,o+=this.getSizeAndPositionOfCell(s).size;return{start:r,stop:s}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e,t,o){for(;t<=e;){var n=t+Math.floor((e-t)/2),r=this.getSizeAndPositionOfCell(n).offset;if(r===o)return n;r<o?t=n+1:r>o&&(e=n-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var o=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=o,o*=2;return this._binarySearch(Math.min(e,this._cellCount-1),Math.floor(e/2),t)}},{key:"_findNearestCell",value:function(e){if(isNaN(e))throw Error("Invalid offset ".concat(e," specified"));e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredCell(),o=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch(o,0,e):this._exponentialSearch(o,e)}}]),e}(),hr=function(){return"undefined"!=typeof window&&window.chrome?16777100:15e5},dr=function(){function e(t){var o=t.maxScrollSize,n=void 0===o?hr():o,r=ar(t,["maxScrollSize"]);Vn(this,e),or(this,"_cellSizeAndPositionManager",void 0),or(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new cr(r),this._maxScrollSize=n}return Kn(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,o=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:r});return Math.round(i*(r-n))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,o=void 0===t?"auto":t,n=e.containerSize,r=e.currentOffset,i=e.targetIndex;r=this._safeOffsetToOffset({containerSize:n,offset:r});var s=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:n,currentOffset:r,targetIndex:i});return this._offsetToSafeOffset({containerSize:n,offset:s})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;return o=this._safeOffsetToOffset({containerSize:t,offset:o}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:o})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,o=e.offset,n=e.totalSize;return n<=t?0:o/(n-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,o=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(n===r)return o;var i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:n});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,o=e.offset,n=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(n===r)return o;var i=this._getOffsetPercentage({containerSize:t,offset:o,totalSize:r});return Math.round(i*(n-t))}}]),e}();function ur(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(o){var n=o.callback,r=o.indices,i=Object.keys(r),s=!e||i.every((function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0})),l=i.length!==Object.keys(t).length||i.some((function(e){var o=t[e],n=r[e];return Array.isArray(n)?o.join(",")!==n.join(","):o!==n}));t=r,s&&l&&n(r)}}var pr=-1,fr=1;function mr(e){var t=e.cellSize,o=e.cellSizeAndPositionManager,n=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,s=e.previousScrollToIndex,l=e.previousSize,a=e.scrollOffset,c=e.scrollToAlignment,h=e.scrollToIndex,d=e.size,u=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,f=o.getCellCount(),m=h>=0&&h<f;m&&(d!==l||u||!r||"number"==typeof t&&t!==r||c!==i||h!==s)?p(h):!m&&f>0&&(d<l||f<n)&&a>o.getTotalSize()-d&&p(f-1)}const gr=!("undefined"==typeof window||!window.document||!window.document.createElement);var vr,yr;function wr(e){if((!vr&&0!==vr||e)&&gr){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),vr=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return vr}var Sr,br,Cr=(yr="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||yr.webkitRequestAnimationFrame||yr.mozRequestAnimationFrame||yr.oRequestAnimationFrame||yr.msRequestAnimationFrame||function(e){return yr.setTimeout(e,1e3/60)},xr=yr.cancelAnimationFrame||yr.webkitCancelAnimationFrame||yr.mozCancelAnimationFrame||yr.oCancelAnimationFrame||yr.msCancelAnimationFrame||function(e){yr.clearTimeout(e)},Rr=Cr,_r=xr,Tr=function(e){return _r(e.id)},Er=function(e,t){var o;Promise.resolve().then((function(){o=Date.now()}));var n={id:Rr((function r(){Date.now()-o>=t?e.call():n.id=Rr(r)}))};return n};function Or(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Mr(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Or(o,!0).forEach((function(t){or(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Or(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Ir="observed",zr="requested",kr=(br=Sr=function(e){function t(e){var o;Vn(this,t),or(Xn(o=Qn(this,Jn(t).call(this,e))),"_onGridRenderedMemoizer",ur()),or(Xn(o),"_onScrollMemoizer",ur(!1)),or(Xn(o),"_deferredInvalidateColumnIndex",null),or(Xn(o),"_deferredInvalidateRowIndex",null),or(Xn(o),"_recomputeScrollLeftFlag",!1),or(Xn(o),"_recomputeScrollTopFlag",!1),or(Xn(o),"_horizontalScrollBarSize",0),or(Xn(o),"_verticalScrollBarSize",0),or(Xn(o),"_scrollbarPresenceChanged",!1),or(Xn(o),"_scrollingContainer",void 0),or(Xn(o),"_childrenToDisplay",void 0),or(Xn(o),"_columnStartIndex",void 0),or(Xn(o),"_columnStopIndex",void 0),or(Xn(o),"_rowStartIndex",void 0),or(Xn(o),"_rowStopIndex",void 0),or(Xn(o),"_renderedColumnStartIndex",0),or(Xn(o),"_renderedColumnStopIndex",0),or(Xn(o),"_renderedRowStartIndex",0),or(Xn(o),"_renderedRowStopIndex",0),or(Xn(o),"_initialScrollTop",void 0),or(Xn(o),"_initialScrollLeft",void 0),or(Xn(o),"_disablePointerEventsTimeoutId",void 0),or(Xn(o),"_styleCache",{}),or(Xn(o),"_cellCache",{}),or(Xn(o),"_debounceScrollEndedCallback",(function(){o._disablePointerEventsTimeoutId=null,o.setState({isScrolling:!1,needToResetStyleCache:!1})})),or(Xn(o),"_invokeOnGridRenderedHelper",(function(){var e=o.props.onSectionRendered;o._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:o._columnStartIndex,columnOverscanStopIndex:o._columnStopIndex,columnStartIndex:o._renderedColumnStartIndex,columnStopIndex:o._renderedColumnStopIndex,rowOverscanStartIndex:o._rowStartIndex,rowOverscanStopIndex:o._rowStopIndex,rowStartIndex:o._renderedRowStartIndex,rowStopIndex:o._renderedRowStopIndex}})})),or(Xn(o),"_onWheel",(function(e){var t=e.deltaX,n=e.deltaY;o.handleWheelEvent({deltaX:t,deltaY:n})})),or(Xn(o),"_setScrollingContainerRef",(function(e){e&&(e.removeEventListener("wheel",o.preventDefault),e.addEventListener("wheel",o.preventDefault,{passive:!1})),o._scrollingContainer=e})),or(Xn(o),"_onScroll",(function(e){e.target===o._scrollingContainer&&o.handleScrollEvent(e.target)}));var n=new dr({cellCount:e.columnCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.columnWidth)(o)},estimatedCellSize:t._getEstimatedColumnSize(e)}),r=new dr({cellCount:e.rowCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.rowHeight)(o)},estimatedCellSize:t._getEstimatedRowSize(e)});return o.state={instanceProps:{columnSizeAndPositionManager:n,rowSizeAndPositionManager:r,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:!0===e.isScrolling,prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:fr,scrollDirectionVertical:fr,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},e.scrollToRow>0&&(o._initialScrollTop=o._getCalculatedScrollTop(e,o.state)),e.scrollToColumn>0&&(o._initialScrollLeft=o._getCalculatedScrollLeft(e,o.state)),o}return tr(t,e),Kn(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,o=void 0===t?this.props.scrollToAlignment:t,n=e.columnIndex,r=void 0===n?this.props.scrollToColumn:n,i=e.rowIndex,s=void 0===i?this.props.scrollToRow:i,l=Mr({},this.props,{scrollToAlignment:o,scrollToColumn:r,scrollToRow:s});return{scrollLeft:this._getCalculatedScrollLeft(l),scrollTop:this._getCalculatedScrollTop(l)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,o=void 0===t?0:t,n=e.scrollTop,r=void 0===n?0:n;if(!(r<0)){this._debounceScrollEnded();var i=this.props,s=i.autoHeight,l=i.autoWidth,a=i.height,c=i.width,h=this.state.instanceProps,d=h.scrollbarSize,u=h.rowSizeAndPositionManager.getTotalSize(),p=h.columnSizeAndPositionManager.getTotalSize(),f=Math.min(Math.max(0,p-c+d),o),m=Math.min(Math.max(0,u-a+d),r);if(this.state.scrollLeft!==f||this.state.scrollTop!==m){var g={isScrolling:!0,scrollDirectionHorizontal:f!==this.state.scrollLeft?f>this.state.scrollLeft?fr:pr:this.state.scrollDirectionHorizontal,scrollDirectionVertical:m!==this.state.scrollTop?m>this.state.scrollTop?fr:pr:this.state.scrollDirectionVertical,scrollPositionChangeReason:Ir};s||(g.scrollTop=m),l||(g.scrollLeft=f),g.needToResetStyleCache=!1,this.setState(g)}this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:m,totalColumnsWidth:p,totalRowsHeight:u})}}},{key:"preventDefault",value:function(e){e.preventDefault()}},{key:"handleWheelEvent",value:function(e){var t=e.deltaX,o=e.deltaY;this._debounceScrollEnded();var n=this.props,r=n.autoHeight,i=n.autoWidth,s=n.height,l=n.width,a=this.state.instanceProps.scrollbarSize,c=this.state.instanceProps.rowSizeAndPositionManager.getTotalSize(),h=this.state.instanceProps.columnSizeAndPositionManager.getTotalSize(),d=Math.min(Math.max(0,h-l+a),Math.max(0,this._scrollingContainer.scrollLeft+t)),u=Math.min(Math.max(0,c-s+a),Math.max(0,this._scrollingContainer.scrollTop+o));if(this.state.scrollLeft!==d||this.state.scrollTop!==u){var p={isScrolling:!0,scrollDirectionHorizontal:d!==this.state.scrollLeft?d>this.state.scrollLeft?fr:pr:this.state.scrollDirectionHorizontal,scrollDirectionVertical:u!==this.state.scrollTop?u>this.state.scrollTop?fr:pr:this.state.scrollDirectionVertical,scrollPositionChangeReason:zr};r||(p.scrollTop=u),i||(p.scrollLeft=d),p.needToResetStyleCache=!1,this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:u,totalColumnsWidth:h,totalRowsHeight:c})}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,o):o}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,o=e.rowCount,n=this.state.instanceProps;n.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),n.rowSizeAndPositionManager.getSizeAndPositionOfCell(o-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n,i=this.props,s=i.scrollToColumn,l=i.scrollToRow,a=this.state.instanceProps;a.columnSizeAndPositionManager.resetCell(o),a.rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=s>=0&&(this.state.scrollDirectionHorizontal===fr?o<=s:o>=s),this._recomputeScrollTopFlag=l>=0&&(this.state.scrollDirectionVertical===fr?r<=l:r>=l),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,o=e.rowIndex,n=this.props,r=n.columnCount,i=n.onScrollToTargetCausedUpdate,s=this.state,l=s.scrollLeft,a=s.scrollTop,c=this.props,h=this.state,d=void 0,u=void 0;if(r>1&&void 0!==t){var p=this._updateScrollLeftForScrollToColumn(Mr({},c,{scrollToColumn:t}),h,!0);p&&"number"==typeof p.scrollLeft&&p.scrollLeft>=0&&(d=p.scrollLeft)}if(void 0!==o){var f=this._updateScrollTopForScrollToRow(Mr({},c,{scrollToRow:o}),h,!0);f&&"number"==typeof f.scrollTop&&f.scrollTop>=0&&(u=f.scrollTop)}if(i&&("number"==typeof d||"number"==typeof u)){var m="number"!=typeof d?d:l,g="number"!=typeof u?u:a;i({clientHeight:c.height,clientWidth:c.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:m,scrollTop:g,scrollWidth:this.getTotalColumnsWidth()})}}},{key:"componentDidMount",value:function(){var e=this.props,o=e.getScrollbarSize,n=e.height,r=e.scrollLeft,i=e.scrollToColumn,s=e.scrollTop,l=e.scrollToRow,a=e.width,c=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),c.scrollbarSizeMeasured||this.setState((function(e){var t=Mr({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=o(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"==typeof r&&r>=0||"number"==typeof s&&s>=0){var h=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:r,scrollTop:s});h&&(h.needToResetStyleCache=!1,this.setState(h))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var d=n>0&&a>0;i>=0&&d&&this._updateScrollLeftForScrollToColumn(),l>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:r||0,scrollTop:s||0,totalColumnsWidth:c.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:c.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var o=this,n=this.props,r=n.autoHeight,i=n.autoWidth,s=n.columnCount,l=n.height,a=n.rowCount,c=n.scrollToAlignment,h=n.scrollToColumn,d=n.scrollToRow,u=n.width,p=this.state,f=p.scrollLeft,m=p.scrollPositionChangeReason,g=p.scrollTop,v=p.instanceProps;this._handleInvalidatedGridSize();var y=s>0&&0===e.columnCount||a>0&&0===e.rowCount;m===zr&&(!i&&f>=0&&(f!==this._scrollingContainer.scrollLeft||y)&&(this._scrollingContainer.scrollLeft=f),!r&&g>=0&&(g!==this._scrollingContainer.scrollTop||y)&&(this._scrollingContainer.scrollTop=g));var w=(0===e.width||0===e.height)&&l>0&&u>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):mr({cellSizeAndPositionManager:v.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:f,scrollToAlignment:c,scrollToIndex:h,size:u,sizeJustIncreasedFromZero:w,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):mr({cellSizeAndPositionManager:v.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:g,scrollToAlignment:c,scrollToIndex:d,size:l,sizeJustIncreasedFromZero:w,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),f!==t.scrollLeft||g!==t.scrollTop){var S=v.rowSizeAndPositionManager.getTotalSize(),b=v.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:g,totalColumnsWidth:b,totalRowsHeight:S})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._scrollingContainer&&this._scrollingContainer.removeEventListener("wheel",this.preventDefault),this._disablePointerEventsTimeoutId&&Tr(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,o=e.autoHeight,n=e.autoWidth,i=e.className,s=e.containerProps,l=e.containerRole,a=e.containerStyle,c=e.height,h=e.id,d=e.noContentRenderer,u=e.role,p=e.style,f=e.tabIndex,m=e.width,g=this.state,v=g.instanceProps,y=g.needToResetStyleCache,w=this._isScrolling(),S={boxSizing:"border-box",direction:"ltr",height:o?"auto":c,position:"relative",width:n?"auto":m,WebkitOverflowScrolling:"touch",willChange:"transform"};y&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var b=v.columnSizeAndPositionManager.getTotalSize(),C=v.rowSizeAndPositionManager.getTotalSize(),x=C>c?v.scrollbarSize:0,R=b>m?v.scrollbarSize:0;R===this._horizontalScrollBarSize&&x===this._verticalScrollBarSize||(this._horizontalScrollBarSize=R,this._verticalScrollBarSize=x,this._scrollbarPresenceChanged=!0),S.overflowX=b+x<=m?"hidden":"auto",S.overflowY=C+R<=c?"hidden":"auto";var _=this._childrenToDisplay,T=0===_.length&&c>0&&m>0;return r.createElement("div",rr({ref:this._setScrollingContainerRef},s,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:sr("ReactVirtualized__Grid",i),id:h,onScroll:this._onScroll,onWheel:this._onWheel,role:u,style:Mr({},S,{},p),tabIndex:f}),_.length>0&&r.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:l,style:Mr({width:t?"auto":b,height:C,maxWidth:b,maxHeight:C,overflow:"hidden",pointerEvents:w?"none":"",position:"relative"},a)},_),T&&d())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,o=e.cellRenderer,n=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,s=e.height,l=e.overscanColumnCount,a=e.overscanIndicesGetter,c=e.overscanRowCount,h=e.rowCount,d=e.width,u=e.isScrollingOptOut,p=t.scrollDirectionHorizontal,f=t.scrollDirectionVertical,m=t.instanceProps,g=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,v=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,y=this._isScrolling(e,t);if(this._childrenToDisplay=[],s>0&&d>0){var w=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:v}),S=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:s,offset:g}),b=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:v}),C=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:s,offset:g});this._renderedColumnStartIndex=w.start,this._renderedColumnStopIndex=w.stop,this._renderedRowStartIndex=S.start,this._renderedRowStopIndex=S.stop;var x=a({direction:"horizontal",cellCount:r,overscanCellsCount:l,scrollDirection:p,startIndex:"number"==typeof w.start?w.start:0,stopIndex:"number"==typeof w.stop?w.stop:-1}),R=a({direction:"vertical",cellCount:h,overscanCellsCount:c,scrollDirection:f,startIndex:"number"==typeof S.start?S.start:0,stopIndex:"number"==typeof S.stop?S.stop:-1}),_=x.overscanStartIndex,T=x.overscanStopIndex,E=R.overscanStartIndex,O=R.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var M=E;M<=O;M++)if(!i.has(M,0)){_=0,T=r-1;break}if(!i.hasFixedWidth())for(var I=_;I<=T;I++)if(!i.has(0,I)){E=0,O=h-1;break}}this._childrenToDisplay=n({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:_,columnStopIndex:T,deferredMeasurementCache:i,horizontalOffsetAdjustment:b,isScrolling:y,isScrollingOptOut:u,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:E,rowStopIndex:O,scrollLeft:v,scrollTop:g,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:w,visibleRowIndices:S}),this._columnStartIndex=_,this._columnStopIndex=T,this._rowStartIndex=E,this._rowStopIndex=O}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&Tr(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=Er(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex&&"number"==typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,o=e.scrollLeft,n=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,n=e.scrollTop,s=t.props,l=s.height;(0,s.onScroll)({clientHeight:l,clientWidth:s.width,scrollHeight:i,scrollLeft:o,scrollTop:n,scrollWidth:r})},indices:{scrollLeft:o,scrollTop:n}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var o=e.scrollLeft,n=e.scrollTop,r=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:n});r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,o)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t._getScrollLeftForScrollToColumnStateUpdate(e,o);if(r)return r.needToResetStyleCache=!1,this.setState(r),e.onScrollToTargetCausedUpdate&&!n&&e.onScrollToTargetCausedUpdate({clientHeight:e.height,clientWidth:e.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollWidth:this.getTotalColumnsWidth()}),r}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,o)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,o=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var n=this._rowStartIndex;n<=this._rowStopIndex;n++)for(var r=this._columnStartIndex;r<=this._columnStopIndex;r++){var i="".concat(n,"-").concat(r);this._styleCache[i]=e[i],o&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t._getScrollTopForScrollToRowStateUpdate(e,o);if(r)return r.needToResetStyleCache=!1,this.setState(r),e.onScrollToTargetCausedUpdate&&!n&&e.onScrollToTargetCausedUpdate({clientHeight:e.height,clientWidth:e.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollWidth:this.getTotalColumnsWidth()}),r}}],[{key:"getDerivedStateFromProps",value:function(e,o){var n={};0===e.columnCount&&0!==o.scrollLeft||0===e.rowCount&&0!==o.scrollTop?(n.scrollLeft=0,n.scrollTop=0):(e.scrollLeft!==o.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==o.scrollTop&&e.scrollToRow<0)&&Object.assign(n,t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var r,i,s=o.instanceProps;return n.needToResetStyleCache=!1,e.columnWidth===s.prevColumnWidth&&e.rowHeight===s.prevRowHeight||(n.needToResetStyleCache=!0),s.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),s.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==s.prevColumnCount&&0!==s.prevRowCount||(s.prevColumnCount=0,s.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===s.prevIsScrolling&&Object.assign(n,{isScrolling:!1}),lr({cellCount:s.prevColumnCount,cellSize:"number"==typeof s.prevColumnWidth?s.prevColumnWidth:null,computeMetadataCallback:function(){return s.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:s.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){r=t._getScrollLeftForScrollToColumnStateUpdate(e,o)}}),lr({cellCount:s.prevRowCount,cellSize:"number"==typeof s.prevRowHeight?s.prevRowHeight:null,computeMetadataCallback:function(){return s.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:s.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){i=t._getScrollTopForScrollToRowStateUpdate(e,o)}}),s.prevColumnCount=e.columnCount,s.prevColumnWidth=e.columnWidth,s.prevIsScrolling=!0===e.isScrolling,s.prevRowCount=e.rowCount,s.prevRowHeight=e.rowHeight,s.prevScrollToColumn=e.scrollToColumn,s.prevScrollToRow=e.scrollToRow,s.scrollbarSize=e.getScrollbarSize(),void 0===s.scrollbarSize?(s.scrollbarSizeMeasured=!1,s.scrollbarSize=0):s.scrollbarSizeMeasured=!0,n.instanceProps=s,Mr({},n,{},r,{},i)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,o=e.scrollLeft,n=e.scrollTop,r={scrollPositionChangeReason:zr};return"number"==typeof o&&o>=0&&(r.scrollDirectionHorizontal=o>t.scrollLeft?fr:pr,r.scrollLeft=o),"number"==typeof n&&n>=0&&(r.scrollDirectionVertical=n>t.scrollTop?fr:pr,r.scrollTop=n),"number"==typeof o&&o>=0&&o!==t.scrollLeft||"number"==typeof n&&n>=0&&n!==t.scrollTop?r:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var o=e.columnCount,n=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,s=e.width,l=t.scrollLeft,a=t.instanceProps;if(o>0){var c=o-1,h=i<0?c:Math.min(c,i),d=a.rowSizeAndPositionManager.getTotalSize(),u=a.scrollbarSizeMeasured&&d>n?a.scrollbarSize:0;return a.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:s-u,currentOffset:l,targetIndex:h})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,o){var n=o.scrollLeft,r=t._getCalculatedScrollLeft(e,o);return"number"==typeof r&&r>=0&&n!==r?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:r,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var o=e.height,n=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,s=e.width,l=t.scrollTop,a=t.instanceProps;if(n>0){var c=n-1,h=i<0?c:Math.min(c,i),d=a.columnSizeAndPositionManager.getTotalSize(),u=a.scrollbarSizeMeasured&&d>s?a.scrollbarSize:0;return a.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:o-u,currentOffset:l,targetIndex:h})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,o){var n=o.scrollTop,r=t._getCalculatedScrollTop(e,o);return"number"==typeof r&&r>=0&&n!==r?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:-1,scrollTop:r}):{}}}]),t}(r.PureComponent),or(Sr,"propTypes",null),br);or(kr,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,o=e.cellRenderer,n=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,s=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,a=e.isScrolling,c=e.isScrollingOptOut,h=e.parent,d=e.rowSizeAndPositionManager,u=e.rowStartIndex,p=e.rowStopIndex,f=e.styleCache,m=e.verticalOffsetAdjustment,g=e.visibleColumnIndices,v=e.visibleRowIndices,y=[],w=n.areOffsetsAdjusted()||d.areOffsetsAdjusted(),S=!a&&!w,b=u;b<=p;b++)for(var C=d.getSizeAndPositionOfCell(b),x=r;x<=i;x++){var R=n.getSizeAndPositionOfCell(x),_=x>=g.start&&x<=g.stop&&b>=v.start&&b<=v.stop,T="".concat(b,"-").concat(x),E=void 0;S&&f[T]?E=f[T]:s&&!s.has(b,x)?E={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(E={height:C.size,left:R.offset+l,position:"absolute",top:C.offset+m,width:R.size},f[T]=E);var O={columnIndex:x,isScrolling:a,isVisible:_,key:T,parent:h,rowIndex:b,style:E},M=void 0;!c&&!a||l||m?M=o(O):(t[T]||(t[T]=o(O)),M=t[T]),null!=M&&!1!==M&&y.push(M)}return y},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:wr,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,o=e.overscanCellsCount,n=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return n===fr?{overscanStartIndex:Math.max(0,r),overscanStopIndex:Math.min(t-1,i+o)}:{overscanStartIndex:Math.max(0,r-o),overscanStopIndex:Math.min(t-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),(0,nr.polyfill)(kr);const Gr=kr;var Pr=1;function Ar(e){var t=e.cellCount,o=e.overscanCellsCount,n=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return o=Math.max(1,o),n===Pr?{overscanStartIndex:Math.max(0,r-1),overscanStopIndex:Math.min(t-1,i+o)}:{overscanStartIndex:Math.max(0,r-o),overscanStopIndex:Math.min(t-1,i+1)}}var Hr,Lr;function Nr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}var Dr=(Lr=Hr=function(e){function t(){var e,o;Vn(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return or(Xn(o=Qn(this,(e=Jn(t)).call.apply(e,[this].concat(r)))),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),or(Xn(o),"_columnStartIndex",0),or(Xn(o),"_columnStopIndex",0),or(Xn(o),"_rowStartIndex",0),or(Xn(o),"_rowStopIndex",0),or(Xn(o),"_onKeyDown",(function(e){var t=o.props,n=t.columnCount,r=t.disabled,i=t.mode,s=t.rowCount;if(!r){var l=o._getScrollState(),a=l.scrollToColumn,c=l.scrollToRow,h=o._getScrollState(),d=h.scrollToColumn,u=h.scrollToRow;switch(e.key){case"ArrowDown":u="cells"===i?Math.min(u+1,s-1):Math.min(o._rowStopIndex+1,s-1);break;case"ArrowLeft":d="cells"===i?Math.max(d-1,0):Math.max(o._columnStartIndex-1,0);break;case"ArrowRight":d="cells"===i?Math.min(d+1,n-1):Math.min(o._columnStopIndex+1,n-1);break;case"ArrowUp":u="cells"===i?Math.max(u-1,0):Math.max(o._rowStartIndex-1,0)}d===a&&u===c||(e.preventDefault(),o._updateScrollState({scrollToColumn:d,scrollToRow:u}))}})),or(Xn(o),"_onSectionRendered",(function(e){var t=e.columnStartIndex,n=e.columnStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;o._columnStartIndex=t,o._columnStopIndex=n,o._rowStartIndex=r,o._rowStopIndex=i})),o}return tr(t,e),Kn(t,[{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow;this.setState({scrollToRow:o,scrollToColumn:t})}},{key:"render",value:function(){var e=this.props,t=e.className,o=e.children,n=this._getScrollState(),i=n.scrollToColumn,s=n.scrollToRow;return r.createElement("div",{className:t,onKeyDown:this._onKeyDown},o({onSectionRendered:this._onSectionRendered,scrollToColumn:i,scrollToRow:s}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow,n=this.props,r=n.isControlled,i=n.onScrollToChange;"function"==typeof i&&i({scrollToColumn:t,scrollToRow:o}),r||this.setState({scrollToColumn:t,scrollToRow:o})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isControlled?{}:e.scrollToColumn!==t.instanceProps.prevScrollToColumn||e.scrollToRow!==t.instanceProps.prevScrollToRow?function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Nr(o,!0).forEach((function(t){or(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Nr(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({},t,{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}]),t}(r.PureComponent),or(Hr,"propTypes",null),Lr);or(Dr,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),(0,nr.polyfill)(Dr);function Wr(e,t){var n,r=void 0!==(n=void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:o.g).document&&n.document.attachEvent;if(!r){var i=function(){var e=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(e){return n.setTimeout(e,20)};return function(t){return e(t)}}(),s=function(){var e=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||n.clearTimeout;return function(t){return e(t)}}(),l=function(e){var t=e.__resizeTriggers__,o=t.firstElementChild,n=t.lastElementChild,r=o.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,r.style.width=o.offsetWidth+1+"px",r.style.height=o.offsetHeight+1+"px",o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight},a=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;l(this),this.__resizeRAF__&&s(this.__resizeRAF__),this.__resizeRAF__=i((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(o){o.call(t,e)})))}))}},c=!1,h="",d="animationstart",u="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),f=n.document.createElement("fakeelement");if(void 0!==f.style.animationName&&(c=!0),!1===c)for(var m=0;m<u.length;m++)if(void 0!==f.style[u[m]+"AnimationName"]){h="-"+u[m].toLowerCase()+"-",d=p[m],c=!0;break}var g="resizeanim",v="@"+h+"keyframes "+g+" { from { opacity: 0; } to { opacity: 0; } } ",y=h+"animation: 1ms "+g+"; "}return{addResizeListener:function(t,o){if(r)t.attachEvent("onresize",o);else{if(!t.__resizeTriggers__){var i=t.ownerDocument,s=n.getComputedStyle(t);s&&"static"==s.position&&(t.style.position="relative"),function(t){if(!t.getElementById("detectElementResize")){var o=(v||"")+".resize-triggers { "+(y||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',n=t.head||t.getElementsByTagName("head")[0],r=t.createElement("style");r.id="detectElementResize",r.type="text/css",null!=e&&r.setAttribute("nonce",e),r.styleSheet?r.styleSheet.cssText=o:r.appendChild(t.createTextNode(o)),n.appendChild(r)}}(i),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=i.createElement("div")).className="resize-triggers";var c='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>';if(window.trustedTypes){var h=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return c}});t.__resizeTriggers__.innerHTML=h.createHTML("")}else t.__resizeTriggers__.innerHTML=c;t.appendChild(t.__resizeTriggers__),l(t),t.addEventListener("scroll",a,!0),d&&(t.__resizeTriggers__.__animationListener__=function(e){e.animationName==g&&l(t)},t.__resizeTriggers__.addEventListener(d,t.__resizeTriggers__.__animationListener__))}t.__resizeListeners__.push(o)}},removeResizeListener:function(e,t){if(r)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(d,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}var Br,Fr;function jr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Ur(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?jr(o,!0).forEach((function(t){or(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):jr(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Zr=(Fr=Br=function(e){function t(){var e,o;Vn(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return or(Xn(o=Qn(this,(e=Jn(t)).call.apply(e,[this].concat(r)))),"state",{height:o.props.defaultHeight||0,width:o.props.defaultWidth||0}),or(Xn(o),"_parentNode",void 0),or(Xn(o),"_autoSizer",void 0),or(Xn(o),"_window",void 0),or(Xn(o),"_detectElementResize",void 0),or(Xn(o),"_onResize",(function(){var e=o.props,t=e.disableHeight,n=e.disableWidth,r=e.onResize;if(o._parentNode){var i=o._parentNode.offsetHeight||0,s=o._parentNode.offsetWidth||0,l=(o._window||window).getComputedStyle(o._parentNode)||{},a=parseInt(l.paddingLeft,10)||0,c=parseInt(l.paddingRight,10)||0,h=parseInt(l.paddingTop,10)||0,d=parseInt(l.paddingBottom,10)||0,u=i-h-d,p=s-a-c;(!t&&o.state.height!==u||!n&&o.state.width!==p)&&(o.setState({height:i-h-d,width:s-a-c}),r({height:i,width:s}))}})),or(Xn(o),"_setRef",(function(e){o._autoSizer=e})),o}return tr(t,e),Kn(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=Wr(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,o=e.className,n=e.disableHeight,i=e.disableWidth,s=e.style,l=this.state,a=l.height,c=l.width,h={overflow:"visible"},d={};return n||(h.height=0,d.height=a),i||(h.width=0,d.width=c),r.createElement("div",{className:o,ref:this._setRef,style:Ur({},h,{},s)},t(d))}}]),t}(r.Component),or(Br,"propTypes",null),Fr);or(Zr,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var Vr,$r,Yr=($r=Vr=function(e){function t(){var e,o;Vn(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return or(Xn(o=Qn(this,(e=Jn(t)).call.apply(e,[this].concat(r)))),"_child",void 0),or(Xn(o),"_measure",(function(){var e=o.props,t=e.cache,n=e.columnIndex,r=void 0===n?0:n,i=e.parent,s=e.rowIndex,l=void 0===s?o.props.index||0:s,a=o._getCellMeasurements(),c=a.height,h=a.width;c===t.getHeight(l,r)&&h===t.getWidth(l,r)||(t.set(l,r,h,c),i&&"function"==typeof i.recomputeGridSize&&i.recomputeGridSize({columnIndex:r,rowIndex:l}))})),or(Xn(o),"_registerChild",(function(e){e&&Element,o._child=e,e&&o._maybeMeasureCell()})),o}return tr(t,e),Kn(t,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this.props.children;return"function"==typeof e?e({measure:this._measure,registerChild:this._registerChild}):e}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=this._child||(0,pn.findDOMNode)(this);if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var o=t.style.width,n=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var r=Math.ceil(t.offsetHeight),i=Math.ceil(t.offsetWidth);return o&&(t.style.width=o),n&&(t.style.height=n),{height:r,width:i}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,o=e.columnIndex,n=void 0===o?0:o,r=e.parent,i=e.rowIndex,s=void 0===i?this.props.index||0:i;if(!t.has(s,n)){var l=this._getCellMeasurements(),a=l.height,c=l.width;t.set(s,n,c,a),r&&"function"==typeof r.invalidateCellSizeAfterRender&&r.invalidateCellSizeAfterRender({columnIndex:n,rowIndex:s})}}}]),t}(r.PureComponent),or(Vr,"propTypes",null),$r);or(Yr,"__internalCellMeasurerFlag",!1);function qr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Kr(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?qr(o,!0).forEach((function(t){or(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):qr(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Xr={OBSERVED:"observed",REQUESTED:"requested"},Qr=function(e){function t(){var e,o;Vn(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return or(Xn(o=Qn(this,(e=Jn(t)).call.apply(e,[this].concat(r)))),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),or(Xn(o),"_calculateSizeAndPositionDataOnNextUpdate",!1),or(Xn(o),"_onSectionRenderedMemoizer",ur()),or(Xn(o),"_onScrollMemoizer",ur(!1)),or(Xn(o),"_invokeOnSectionRenderedHelper",(function(){var e=o.props,t=e.cellLayoutManager,n=e.onSectionRendered;o._onSectionRenderedMemoizer({callback:n,indices:{indices:t.getLastRenderedIndices()}})})),or(Xn(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),or(Xn(o),"_updateScrollPositionForScrollToCell",(function(){var e=o.props,t=e.cellLayoutManager,n=e.height,r=e.scrollToAlignment,i=e.scrollToCell,s=e.width,l=o.state,a=l.scrollLeft,c=l.scrollTop;if(i>=0){var h=t.getScrollPositionForCell({align:r,cellIndex:i,height:n,scrollLeft:a,scrollTop:c,width:s});h.scrollLeft===a&&h.scrollTop===c||o._setScrollPosition(h)}})),or(Xn(o),"_onScroll",(function(e){if(e.target===o._scrollingContainer){o._enablePointerEventsAfterDelay();var t=o.props,n=t.cellLayoutManager,r=t.height,i=t.isScrollingChange,s=t.width,l=o._scrollbarSize,a=n.getTotalSize(),c=a.height,h=a.width,d=Math.max(0,Math.min(h-s+l,e.target.scrollLeft)),u=Math.max(0,Math.min(c-r+l,e.target.scrollTop));if(o.state.scrollLeft!==d||o.state.scrollTop!==u){var p=e.cancelable?Xr.OBSERVED:Xr.REQUESTED;o.state.isScrolling||i(!0),o.setState({isScrolling:!0,scrollLeft:d,scrollPositionChangeReason:p,scrollTop:u})}o._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:u,totalWidth:h,totalHeight:c})}})),o._scrollbarSize=wr(),void 0===o._scrollbarSize?(o._scrollbarSizeMeasured=!1,o._scrollbarSize=0):o._scrollbarSizeMeasured=!0,o}return tr(t,e),Kn(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,o=e.scrollLeft,n=e.scrollToCell,r=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=wr(),this._scrollbarSizeMeasured=!0,this.setState({})),n>=0?this._updateScrollPositionForScrollToCell():(o>=0||r>=0)&&this._setScrollPosition({scrollLeft:o,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),s=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:r||0,totalHeight:s,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var o=this.props,n=o.height,r=o.scrollToAlignment,i=o.scrollToCell,s=o.width,l=this.state,a=l.scrollLeft,c=l.scrollPositionChangeReason,h=l.scrollTop;c===Xr.REQUESTED&&(a>=0&&a!==t.scrollLeft&&a!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=a),h>=0&&h!==t.scrollTop&&h!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=h)),n===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&s===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,o=e.cellCount,n=e.cellLayoutManager,i=e.className,s=e.height,l=e.horizontalOverscanSize,a=e.id,c=e.noContentRenderer,h=e.style,d=e.verticalOverscanSize,u=e.width,p=this.state,f=p.isScrolling,m=p.scrollLeft,g=p.scrollTop;(this._lastRenderedCellCount!==o||this._lastRenderedCellLayoutManager!==n||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=o,this._lastRenderedCellLayoutManager=n,this._calculateSizeAndPositionDataOnNextUpdate=!1,n.calculateSizeAndPositionData());var v=n.getTotalSize(),y=v.height,w=v.width,S=Math.max(0,m-l),b=Math.max(0,g-d),C=Math.min(w,m+u+l),x=Math.min(y,g+s+d),R=s>0&&u>0?n.cellRenderers({height:x-b,isScrolling:f,width:C-S,x:S,y:b}):[],_={boxSizing:"border-box",direction:"ltr",height:t?"auto":s,position:"relative",WebkitOverflowScrolling:"touch",width:u,willChange:"transform"},T=y>s?this._scrollbarSize:0,E=w>u?this._scrollbarSize:0;return _.overflowX=w+T<=u?"hidden":"auto",_.overflowY=y+E<=s?"hidden":"auto",r.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:sr("ReactVirtualized__Collection",i),id:a,onScroll:this._onScroll,role:"grid",style:Kr({},_,{},h),tabIndex:0},o>0&&r.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:y,maxHeight:y,maxWidth:w,overflow:"hidden",pointerEvents:f?"none":"",width:w}},R),0===o&&c())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout((function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})}),150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,o=e.scrollLeft,n=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,n=e.scrollTop,s=t.props,l=s.height;(0,s.onScroll)({clientHeight:l,clientWidth:s.width,scrollHeight:r,scrollLeft:o,scrollTop:n,scrollWidth:i})},indices:{scrollLeft:o,scrollTop:n}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,o=e.scrollTop,n={scrollPositionChangeReason:Xr.REQUESTED};t>=0&&(n.scrollLeft=t),o>=0&&(n.scrollTop=o),(t>=0&&t!==this.state.scrollLeft||o>=0&&o!==this.state.scrollTop)&&this.setState(n)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:Xr.REQUESTED}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:Xr.REQUESTED}}}]),t}(r.PureComponent);or(Qr,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),Qr.propTypes={},(0,nr.polyfill)(Qr);const Jr=Qr;var ei=function(){function e(t){var o=t.height,n=t.width,r=t.x,i=t.y;Vn(this,e),this.height=o,this.width=n,this.x=r,this.y=i,this._indexMap={},this._indices=[]}return Kn(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),ti=100,oi=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ti;Vn(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return Kn(e,[{key:"getCellIndices",value:function(e){var t=e.height,o=e.width,n=e.x,r=e.y,i={};return this.getSections({height:t,width:o,x:n,y:r}).forEach((function(e){return e.getCellIndices().forEach((function(e){i[e]=e}))})),Object.keys(i).map((function(e){return i[e]}))}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,o=e.width,n=e.x,r=e.y,i=Math.floor(n/this._sectionSize),s=Math.floor((n+o-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),a=Math.floor((r+t-1)/this._sectionSize),c=[],h=i;h<=s;h++)for(var d=l;d<=a;d++){var u="".concat(h,".").concat(d);this._sections[u]||(this._sections[u]=new ei({height:this._sectionSize,width:this._sectionSize,x:h*this._sectionSize,y:d*this._sectionSize})),c.push(this._sections[u])}return c}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map((function(t){return e._sections[t].toString()}))}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,o=e.index;this._cellMetadata[o]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:o})}))}}]),e}();function ni(e){var t=e.align,o=void 0===t?"auto":t,n=e.cellOffset,r=e.cellSize,i=e.containerSize,s=e.currentOffset,l=n,a=l-i+r;switch(o){case"start":return l;case"end":return a;case"center":return l-(i-r)/2;default:return Math.max(a,Math.min(l,s))}}var ri=function(e){function t(e,o){var n;return Vn(this,t),(n=Qn(this,Jn(t).call(this,e,o)))._cellMetadata=[],n._lastRenderedCellIndices=[],n._cellCache=[],n._isScrollingChange=n._isScrollingChange.bind(Xn(n)),n._setCollectionViewRef=n._setCollectionViewRef.bind(Xn(n)),n}return tr(t,e),Kn(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=rr({},this.props);return r.createElement(Jr,rr({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,o=e.cellSizeAndPositionGetter,n=e.sectionSize,r=[],i=new oi(n),s=0,l=0,a=0;a<t;a++){var c=o({index:a});if(null==c.height||isNaN(c.height)||null==c.width||isNaN(c.width)||null==c.x||isNaN(c.x)||null==c.y||isNaN(c.y))throw Error("Invalid metadata returned for cell ".concat(a,":\n x:").concat(c.x,", y:").concat(c.y,", width:").concat(c.width,", height:").concat(c.height));s=Math.max(s,c.y+c.height),l=Math.max(l,c.x+c.width),r[a]=c,i.registerCell({cellMetadatum:c,index:a})}return{cellMetadata:r,height:s,sectionManager:i,width:l}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,o=e.cellIndex,n=e.height,r=e.scrollLeft,i=e.scrollTop,s=e.width,l=this.props.cellCount;if(o>=0&&o<l){var a=this._cellMetadata[o];r=ni({align:t,cellOffset:a.x,cellSize:a.width,containerSize:s,currentOffset:r,targetIndex:o}),i=ni({align:t,cellOffset:a.y,cellSize:a.height,containerSize:n,currentOffset:i,targetIndex:o})}return{scrollLeft:r,scrollTop:i}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,o=e.height,n=e.isScrolling,r=e.width,i=e.x,s=e.y,l=this.props,a=l.cellGroupRenderer,c=l.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:o,width:r,x:i,y:s}),a({cellCache:this._cellCache,cellRenderer:c,cellSizeAndPositionGetter:function(e){var o=e.index;return t._sectionManager.getCellMetadata({index:o})},indices:this._lastRenderedCellIndices,isScrolling:n})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}]),t}(r.PureComponent);or(ri,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,o=e.cellRenderer,n=e.cellSizeAndPositionGetter,r=e.indices,i=e.isScrolling;return r.map((function(e){var r=n({index:e}),s={index:e,isScrolling:i,key:e,style:{height:r.height,left:r.x,position:"absolute",top:r.y,width:r.width}};return i?(e in t||(t[e]=o(s)),t[e]):o(s)})).filter((function(e){return!!e}))}}),ri.propTypes={};(function(e){function t(e,o){var n;return Vn(this,t),(n=Qn(this,Jn(t).call(this,e,o)))._registerChild=n._registerChild.bind(Xn(n)),n}return tr(t,e),Kn(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,o=t.columnMaxWidth,n=t.columnMinWidth,r=t.columnCount,i=t.width;o===e.columnMaxWidth&&n===e.columnMinWidth&&r===e.columnCount&&i===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,o=e.columnMaxWidth,n=e.columnMinWidth,r=e.columnCount,i=e.width,s=n||1,l=o?Math.min(o,i):i,a=i/r;return a=Math.max(s,a),a=Math.min(l,a),a=Math.floor(a),t({adjustedWidth:Math.min(i,a*r),columnWidth:a,getColumnWidth:function(){return a},registerChild:this._registerChild})}},{key:"_registerChild",value:function(e){if(e&&"function"!=typeof e.recomputeGridSize)throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=e,this._registeredChild&&this._registeredChild.recomputeGridSize()}}]),t}(r.PureComponent)).propTypes={};function ii(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function si(e,t){if(e){if("string"==typeof e)return ii(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ii(e,t):void 0}}function li(e){return function(e){if(Array.isArray(e))return ii(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||si(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.")}()}var ai=function(e){function t(e,o){var n;return Vn(this,t),(n=Qn(this,Jn(t).call(this,e,o)))._loadMoreRowsMemoizer=ur(),n._onRowsRendered=n._onRowsRendered.bind(Xn(n)),n._registerChild=n._registerChild.bind(Xn(n)),n}return tr(t,e),Kn(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=ur(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,o=this.props.loadMoreRows;e.forEach((function(e){var n=o(e);n&&n.then((function(){var o,n,r,i,s;o={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex},n=o.lastRenderedStartIndex,r=o.lastRenderedStopIndex,i=o.startIndex,s=o.stopIndex,i>r||s<n||t._registeredChild&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;o?o.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)}))}))}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,o=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=o,this._doStuff(t,o)}},{key:"_doStuff",value:function(e,t){var o,n=this,r=this.props,i=r.isRowLoaded,s=r.minimumBatchSize,l=r.rowCount,a=r.threshold,c=function(e){for(var t=e.isRowLoaded,o=e.minimumBatchSize,n=e.rowCount,r=e.startIndex,i=e.stopIndex,s=[],l=null,a=null,c=r;c<=i;c++){t({index:c})?null!==a&&(s.push({startIndex:l,stopIndex:a}),l=a=null):(a=c,null===l&&(l=c))}if(null!==a){for(var h=Math.min(Math.max(a,l+o-1),n-1),d=a+1;d<=h&&!t({index:d});d++)a=d;s.push({startIndex:l,stopIndex:a})}if(s.length)for(var u=s[0];u.stopIndex-u.startIndex+1<o&&u.startIndex>0;){var p=u.startIndex-1;if(t({index:p}))break;u.startIndex=p}return s}({isRowLoaded:i,minimumBatchSize:s,rowCount:l,startIndex:Math.max(0,e-a),stopIndex:Math.min(l-1,t+a)}),h=(o=[]).concat.apply(o,li(c.map((function(e){return[e.startIndex,e.stopIndex]}))));this._loadMoreRowsMemoizer({callback:function(){n._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:h}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(r.PureComponent);or(ai,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),ai.propTypes={};var ci,hi,di=(hi=ci=function(e){function t(){var e,o;Vn(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return or(Xn(o=Qn(this,(e=Jn(t)).call.apply(e,[this].concat(r)))),"Grid",void 0),or(Xn(o),"_cellRenderer",(function(e){var t=e.parent,n=e.rowIndex,r=e.style,i=e.isScrolling,s=e.isVisible,l=e.key,a=o.props.rowRenderer,c=Object.getOwnPropertyDescriptor(r,"width");return c&&c.writable&&(r.width="100%"),a({index:n,style:r,isScrolling:i,isVisible:s,key:l,parent:t})})),or(Xn(o),"_setRef",(function(e){o.Grid=e})),or(Xn(o),"_onScroll",(function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,o.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})})),or(Xn(o),"_onScrollToRowCausedUpdate",(function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,o.props.onScrollToRowCausedUpdate)({clientHeight:t,scrollHeight:n,scrollTop:r})})),or(Xn(o),"_onSectionRendered",(function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;(0,o.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:r,stopIndex:i})})),o}return tr(t,e),Kn(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,o=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:o,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:r,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,o=e.noRowsRenderer,n=e.scrollToIndex,i=e.width,s=sr("ReactVirtualized__List",t);return r.createElement(Gr,rr({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:s,columnWidth:i,columnCount:1,noContentRenderer:o,onScroll:this._onScroll,onScrollToTargetCausedUpdate:this._onScrollToRowCausedUpdate,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:n}))}}]),t}(r.PureComponent),or(ci,"propTypes",null),hi);function ui(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i,s,l=[],a=!0,c=!1;try{if(i=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;a=!1}else for(;!(a=(n=i.call(o)).done)&&(l.push(n.value),l.length!==t);a=!0);}catch(e){c=!0,r=e}finally{try{if(!a&&null!=o.return&&(s=o.return(),Object(s)!==s))return}finally{if(c)throw r}}return l}}(e,t)||si(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.")}()}or(di,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},onScrollToRowCausedUpdate:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:Ar,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});const pi={ge:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=o+1;t<=o;){var s=t+o>>>1;r(e[s],n)>=0?(i=s,o=s-1):t=s+1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=o+1;t<=o;){var i=t+o>>>1;e[i]>=n?(r=i,o=i-1):t=i+1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)},gt:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=o+1;t<=o;){var s=t+o>>>1;r(e[s],n)>0?(i=s,o=s-1):t=s+1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=o+1;t<=o;){var i=t+o>>>1;e[i]>n?(r=i,o=i-1):t=i+1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)},lt:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=t-1;t<=o;){var s=t+o>>>1;r(e[s],n)<0?(i=s,t=s+1):o=s-1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=t-1;t<=o;){var i=t+o>>>1;e[i]<n?(r=i,t=i+1):o=i-1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)},le:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(var i=t-1;t<=o;){var s=t+o>>>1;r(e[s],n)<=0?(i=s,t=s+1):o=s-1}return i}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(var r=t-1;t<=o;){var i=t+o>>>1;e[i]<=n?(r=i,t=i+1):o=i-1}return r}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)},eq:function(e,t,o,n,r){return"function"==typeof o?function(e,t,o,n,r){for(;t<=o;){var i=t+o>>>1,s=r(e[i],n);if(0===s)return i;s<=0?t=i+1:o=i-1}return-1}(e,void 0===n?0:0|n,void 0===r?e.length-1:0|r,t,o):function(e,t,o,n){for(;t<=o;){var r=t+o>>>1,i=e[r];if(i===n)return r;i<=n?t=r+1:o=r-1}return-1}(e,void 0===o?0:0|o,void 0===n?e.length-1:0|n,t)}};var fi=0,mi=1;function gi(e,t,o,n,r){this.mid=e,this.left=t,this.right=o,this.leftPoints=n,this.rightPoints=r,this.count=(t?t.count:0)+(o?o.count:0)+n.length}var vi=gi.prototype;function yi(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function wi(e,t){var o=Oi(t);e.mid=o.mid,e.left=o.left,e.right=o.right,e.leftPoints=o.leftPoints,e.rightPoints=o.rightPoints,e.count=o.count}function Si(e,t){var o=e.intervals([]);o.push(t),wi(e,o)}function bi(e,t){var o=e.intervals([]),n=o.indexOf(t);return n<0?fi:(o.splice(n,1),wi(e,o),mi)}function Ci(e,t,o){for(var n=0;n<e.length&&e[n][0]<=t;++n){var r=o(e[n]);if(r)return r}}function xi(e,t,o){for(var n=e.length-1;n>=0&&e[n][1]>=t;--n){var r=o(e[n]);if(r)return r}}function Ri(e,t){for(var o=0;o<e.length;++o){var n=t(e[o]);if(n)return n}}function _i(e,t){return e-t}function Ti(e,t){var o=e[0]-t[0];return o||e[1]-t[1]}function Ei(e,t){var o=e[1]-t[1];return o||e[0]-t[0]}function Oi(e){if(0===e.length)return null;for(var t=[],o=0;o<e.length;++o)t.push(e[o][0],e[o][1]);t.sort(_i);var n=t[t.length>>1],r=[],i=[],s=[];for(o=0;o<e.length;++o){var l=e[o];l[1]<n?r.push(l):n<l[0]?i.push(l):s.push(l)}var a=s,c=s.slice();return a.sort(Ti),c.sort(Ei),new gi(n,Oi(r),Oi(i),a,c)}function Mi(e){this.root=e}vi.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},vi.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?Si(this,e):this.left.insert(e):this.left=Oi([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Si(this,e):this.right.insert(e):this.right=Oi([e]);else{var o=pi.ge(this.leftPoints,e,Ti),n=pi.ge(this.rightPoints,e,Ei);this.leftPoints.splice(o,0,e),this.rightPoints.splice(n,0,e)}},vi.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(t-1)?bi(this,e):2===(i=this.left.remove(e))?(this.left=null,this.count-=1,mi):(i===mi&&(this.count-=1),i):fi;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?bi(this,e):2===(i=this.right.remove(e))?(this.right=null,this.count-=1,mi):(i===mi&&(this.count-=1),i):fi;if(1===this.count)return this.leftPoints[0]===e?2:fi;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var o=this,n=this.left;n.right;)o=n,n=n.right;if(o===this)n.right=this.right;else{var r=this.left,i=this.right;o.count-=n.count,o.right=n.left,n.left=r,n.right=i}yi(this,n),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?yi(this,this.left):yi(this,this.right);return mi}for(r=pi.ge(this.leftPoints,e,Ti);r<this.leftPoints.length&&this.leftPoints[r][0]===e[0];++r)if(this.leftPoints[r]===e){this.count-=1,this.leftPoints.splice(r,1);for(i=pi.ge(this.rightPoints,e,Ei);i<this.rightPoints.length&&this.rightPoints[i][1]===e[1];++i)if(this.rightPoints[i]===e)return this.rightPoints.splice(i,1),mi}return fi},vi.queryPoint=function(e,t){if(e<this.mid){if(this.left)if(o=this.left.queryPoint(e,t))return o;return Ci(this.leftPoints,e,t)}if(e>this.mid){var o;if(this.right)if(o=this.right.queryPoint(e,t))return o;return xi(this.rightPoints,e,t)}return Ri(this.leftPoints,t)},vi.queryInterval=function(e,t,o){var n;if(e<this.mid&&this.left&&(n=this.left.queryInterval(e,t,o)))return n;if(t>this.mid&&this.right&&(n=this.right.queryInterval(e,t,o)))return n;return t<this.mid?Ci(this.leftPoints,t,o):e>this.mid?xi(this.rightPoints,e,o):Ri(this.leftPoints,o)};var Ii=Mi.prototype;Ii.insert=function(e){this.root?this.root.insert(e):this.root=new gi(e[0],null,null,[e],[e])},Ii.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),t!==fi}return!1},Ii.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},Ii.queryInterval=function(e,t,o){if(e<=t&&this.root)return this.root.queryInterval(e,t,o)},Object.defineProperty(Ii,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(Ii,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var zi,ki,Gi=function(){function e(){var t;Vn(this,e),or(this,"_columnSizeMap",{}),or(this,"_intervalTree",t&&0!==t.length?new Mi(Oi(t)):new Mi(null)),or(this,"_leftMap",{})}return Kn(e,[{key:"estimateTotalHeight",value:function(e,t,o){var n=e-this.count;return this.tallestColumnSize+Math.ceil(n/t)*o}},{key:"range",value:function(e,t,o){var n=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t=ui(e,3),r=t[0],i=(t[1],t[2]);return o(i,n._leftMap[i],r)}))}},{key:"setPosition",value:function(e,t,o,n){this._intervalTree.insert([o,o+n,e]),this._leftMap[e]=t;var r=this._columnSizeMap,i=r[t];r[t]=void 0===i?o+n:Math.max(i,o+n)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var n=e[o];t=0===t?n:Math.min(t,n)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var n=e[o];t=Math.max(t,n)}return t}}]),e}();function Pi(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Ai(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Pi(o,!0).forEach((function(t){or(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Pi(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Hi=(ki=zi=function(e){function t(){var e,o;Vn(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return or(Xn(o=Qn(this,(e=Jn(t)).call.apply(e,[this].concat(r)))),"state",{isScrolling:!1,scrollTop:0}),or(Xn(o),"_debounceResetIsScrollingId",void 0),or(Xn(o),"_invalidateOnUpdateStartIndex",null),or(Xn(o),"_invalidateOnUpdateStopIndex",null),or(Xn(o),"_positionCache",new Gi),or(Xn(o),"_startIndex",null),or(Xn(o),"_startIndexMemoized",null),or(Xn(o),"_stopIndex",null),or(Xn(o),"_stopIndexMemoized",null),or(Xn(o),"_debounceResetIsScrollingCallback",(function(){o.setState({isScrolling:!1})})),or(Xn(o),"_setScrollingContainerRef",(function(e){o._scrollingContainer=e})),or(Xn(o),"_onScroll",(function(e){var t=o.props.height,n=e.currentTarget.scrollTop,r=Math.min(Math.max(0,o._getEstimatedTotalHeight()-t),n);n===r&&(o._debounceResetIsScrolling(),o.state.scrollTop!==r&&o.setState({isScrolling:!0,scrollTop:r}))})),o}return tr(t,e),Kn(t,[{key:"clearCellPositions",value:function(){this._positionCache=new Gi,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;null===this._invalidateOnUpdateStartIndex?(this._invalidateOnUpdateStartIndex=t,this._invalidateOnUpdateStopIndex=t):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,t),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,t))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new Gi,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(e,t){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==e.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&Tr(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,o=this.props,n=o.autoHeight,i=o.cellCount,s=o.cellMeasurerCache,l=o.cellRenderer,a=o.className,c=o.height,h=o.id,d=o.keyMapper,u=o.overscanByPixels,p=o.role,f=o.style,m=o.tabIndex,g=o.width,v=o.rowDirection,y=this.state,w=y.isScrolling,S=y.scrollTop,b=[],C=this._getEstimatedTotalHeight(),x=this._positionCache.shortestColumnSize,R=this._positionCache.count,_=0;if(this._positionCache.range(Math.max(0,S-u),c+2*u,(function(o,n,r){var i;void 0===e?(_=o,e=o):(_=Math.min(_,o),e=Math.max(e,o)),b.push(l({index:o,isScrolling:w,key:d(o),parent:t,style:(i={height:s.getHeight(o)},or(i,"ltr"===v?"left":"right",n),or(i,"position","absolute"),or(i,"top",r),or(i,"width",s.getWidth(o)),i)}))})),x<S+c+u&&R<i)for(var T=Math.min(i-R,Math.ceil((S+c+u-x)/s.defaultHeight*g/s.defaultWidth)),E=R;E<R+T;E++)e=E,b.push(l({index:E,isScrolling:w,key:d(E),parent:this,style:{width:s.getWidth(E)}}));return this._startIndex=_,this._stopIndex=e,r.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:sr("ReactVirtualized__Masonry",a),id:h,onScroll:this._onScroll,role:p,style:Ai({boxSizing:"border-box",direction:"ltr",height:n?"auto":c,overflowX:"hidden",overflowY:C<c?"hidden":"auto",position:"relative",width:g,WebkitOverflowScrolling:"touch",willChange:"transform"},f),tabIndex:m},r.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:C,maxWidth:"100%",maxHeight:C,overflow:"hidden",pointerEvents:w?"none":"",position:"relative"}},b))}},{key:"_checkInvalidateOnUpdate",value:function(){if("number"==typeof this._invalidateOnUpdateStartIndex){var e=this._invalidateOnUpdateStartIndex,t=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(e,t),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var e=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&Tr(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=Er(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,o=e.cellMeasurerCache,n=e.width,r=Math.max(1,Math.floor(n/o.defaultWidth));return this._positionCache.estimateTotalHeight(t,r,o.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,o=e.onScroll,n=this.state.scrollTop;this._onScrollMemoized!==n&&(o({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:n}),this._onScrollMemoized=n)}},{key:"_invokeOnCellsRenderedCallback",value:function(){this._startIndexMemoized===this._startIndex&&this._stopIndexMemoized===this._stopIndex||((0,this.props.onCellsRendered)({startIndex:this._startIndex,stopIndex:this._stopIndex}),this._startIndexMemoized=this._startIndex,this._stopIndexMemoized=this._stopIndex)}},{key:"_populatePositionCache",value:function(e,t){for(var o=this.props,n=o.cellMeasurerCache,r=o.cellPositioner,i=e;i<=t;i++){var s=r(i),l=s.left,a=s.top;this._positionCache.setPosition(i,l,a,n.getHeight(i))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}]),t}(r.PureComponent),or(zi,"propTypes",null),ki);function Li(){}or(Hi,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:Li,onScroll:Li,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"});(0,nr.polyfill)(Hi);var Ni=function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Vn(this,e),or(this,"_cellMeasurerCache",void 0),or(this,"_columnIndexOffset",void 0),or(this,"_rowIndexOffset",void 0),or(this,"columnWidth",(function(e){var o=e.index;t._cellMeasurerCache.columnWidth({index:o+t._columnIndexOffset})})),or(this,"rowHeight",(function(e){var o=e.index;t._cellMeasurerCache.rowHeight({index:o+t._rowIndexOffset})}));var n=o.cellMeasurerCache,r=o.columnIndexOffset,i=void 0===r?0:r,s=o.rowIndexOffset,l=void 0===s?0:s;this._cellMeasurerCache=n,this._columnIndexOffset=i,this._rowIndexOffset=l}return Kn(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,o,n){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,o,n)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function Di(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Wi(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Di(o,!0).forEach((function(t){or(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Di(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}var Bi=20,Fi=function(e){function t(e,o){var n;Vn(this,t),or(Xn(n=Qn(this,Jn(t).call(this,e,o))),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),or(Xn(n),"_deferredInvalidateColumnIndex",null),or(Xn(n),"_deferredInvalidateRowIndex",null),or(Xn(n),"_bottomLeftGridRef",(function(e){n._bottomLeftGrid=e})),or(Xn(n),"_bottomRightGridRef",(function(e){n._bottomRightGrid=e})),or(Xn(n),"_cellRendererBottomLeftGrid",(function(e){var t=e.rowIndex,o=ar(e,["rowIndex"]),i=n.props,s=i.cellRenderer,l=i.fixedRowCount;return t===i.rowCount-l?r.createElement("div",{key:o.key,style:Wi({},o.style,{height:Bi})}):s(Wi({},o,{parent:Xn(n),rowIndex:t+l}))})),or(Xn(n),"_cellRendererBottomRightGrid",(function(e){var t=e.columnIndex,o=e.rowIndex,r=ar(e,["columnIndex","rowIndex"]),i=n.props,s=i.cellRenderer,l=i.fixedColumnCount,a=i.fixedRowCount;return s(Wi({},r,{columnIndex:t+l,parent:Xn(n),rowIndex:o+a}))})),or(Xn(n),"_cellRendererTopRightGrid",(function(e){var t=e.columnIndex,o=ar(e,["columnIndex"]),i=n.props,s=i.cellRenderer,l=i.columnCount,a=i.fixedColumnCount;return t===l-a?r.createElement("div",{key:o.key,style:Wi({},o.style,{width:Bi})}):s(Wi({},o,{columnIndex:t+a,parent:Xn(n)}))})),or(Xn(n),"_columnWidthRightGrid",(function(e){var t=e.index,o=n.props,r=o.columnCount,i=o.fixedColumnCount,s=o.columnWidth,l=n.state,a=l.scrollbarSize;return l.showHorizontalScrollbar&&t===r-i?a:"function"==typeof s?s({index:t+i}):s})),or(Xn(n),"_onScroll",(function(e){var t=e.scrollLeft,o=e.scrollTop;n.setState({scrollLeft:t,scrollTop:o});var r=n.props.onScroll;r&&r(e)})),or(Xn(n),"_onScrollbarPresenceChange",(function(e){var t=e.horizontal,o=e.size,r=e.vertical,i=n.state,s=i.showHorizontalScrollbar,l=i.showVerticalScrollbar;if(t!==s||r!==l){n.setState({scrollbarSize:o,showHorizontalScrollbar:t,showVerticalScrollbar:r});var a=n.props.onScrollbarPresenceChange;"function"==typeof a&&a({horizontal:t,size:o,vertical:r})}})),or(Xn(n),"_onScrollLeft",(function(e){var t=e.scrollLeft;n._onScroll({scrollLeft:t,scrollTop:n.state.scrollTop})})),or(Xn(n),"_onScrollTop",(function(e){var t=e.scrollTop;n._onScroll({scrollTop:t,scrollLeft:n.state.scrollLeft})})),or(Xn(n),"_rowHeightBottomGrid",(function(e){var t=e.index,o=n.props,r=o.fixedRowCount,i=o.rowCount,s=o.rowHeight,l=n.state,a=l.scrollbarSize;return l.showVerticalScrollbar&&t===i-r?a:"function"==typeof s?s({index:t+r}):s})),or(Xn(n),"_topLeftGridRef",(function(e){n._topLeftGrid=e})),or(Xn(n),"_topRightGridRef",(function(e){n._topRightGrid=e}));var i=e.deferredMeasurementCache,s=e.fixedColumnCount,l=e.fixedRowCount;return n._maybeCalculateCachedStyles(!0),i&&(n._deferredMeasurementCacheBottomLeftGrid=l>0?new Ni({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:l}):i,n._deferredMeasurementCacheBottomRightGrid=s>0||l>0?new Ni({cellMeasurerCache:i,columnIndexOffset:s,rowIndexOffset:l}):i,n._deferredMeasurementCacheTopRightGrid=s>0?new Ni({cellMeasurerCache:i,columnIndexOffset:s,rowIndexOffset:0}):i),n}return tr(t,e),Kn(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n,i=this.props,s=i.fixedColumnCount,l=i.fixedRowCount,a=Math.max(0,o-s),c=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:c}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:a,rowIndex:c}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:a,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,o=e.scrollTop;if(t>0||o>0){var n={};t>0&&(n.scrollLeft=t),o>0&&(n.scrollTop=o),this.setState(n)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,o=e.onSectionRendered,n=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),s=ar(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var l=this.state,a=l.scrollLeft,c=l.scrollTop;return r.createElement("div",{style:this._containerOuterStyle},r.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(s),this._renderTopRightGrid(Wi({},s,{onScroll:t,scrollLeft:a}))),r.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Wi({},s,{onScroll:t,scrollTop:c})),this._renderBottomRightGrid(Wi({},s,{onScroll:t,onSectionRendered:o,scrollLeft:a,scrollToColumn:n,scrollToRow:i,scrollTop:c}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,o=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof o){for(var n=0,r=0;r<t;r++)n+=o({index:r});this._leftGridWidth=n}else this._leftGridWidth=o*t;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,o=e.rowHeight;if(null==this._topGridHeight)if("function"==typeof o){for(var n=0,r=0;r<t;r++)n+=o({index:r});this._topGridHeight=n}else this._topGridHeight=o*t;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(e){var t=this.props,o=t.columnWidth,n=t.enableFixedColumnScroll,r=t.enableFixedRowScroll,i=t.height,s=t.fixedColumnCount,l=t.fixedRowCount,a=t.rowHeight,c=t.style,h=t.styleBottomLeftGrid,d=t.styleBottomRightGrid,u=t.styleTopLeftGrid,p=t.styleTopRightGrid,f=t.width,m=e||i!==this._lastRenderedHeight||f!==this._lastRenderedWidth,g=e||o!==this._lastRenderedColumnWidth||s!==this._lastRenderedFixedColumnCount,v=e||l!==this._lastRenderedFixedRowCount||a!==this._lastRenderedRowHeight;(e||m||c!==this._lastRenderedStyle)&&(this._containerOuterStyle=Wi({height:i,overflow:"visible",width:f},c)),(e||m||v)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:f},this._containerBottomStyle={height:i-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:f}),(e||h!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=Wi({left:0,overflowX:"hidden",overflowY:n?"auto":"hidden",position:"absolute"},h)),(e||g||d!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=Wi({left:this._getLeftGridWidth(this.props),position:"absolute"},d)),(e||u!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=Wi({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},u)),(e||g||p!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=Wi({left:this._getLeftGridWidth(this.props),overflowX:r?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},p)),this._lastRenderedColumnWidth=o,this._lastRenderedFixedColumnCount=s,this._lastRenderedFixedRowCount=l,this._lastRenderedHeight=i,this._lastRenderedRowHeight=a,this._lastRenderedStyle=c,this._lastRenderedStyleBottomLeftGrid=h,this._lastRenderedStyleBottomRightGrid=d,this._lastRenderedStyleTopLeftGrid=u,this._lastRenderedStyleTopRightGrid=p,this._lastRenderedWidth=f}},{key:"_prepareForRender",value:function(){this._lastRenderedColumnWidth===this.props.columnWidth&&this._lastRenderedFixedColumnCount===this.props.fixedColumnCount||(this._leftGridWidth=null),this._lastRenderedFixedRowCount===this.props.fixedRowCount&&this._lastRenderedRowHeight===this.props.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}},{key:"_renderBottomLeftGrid",value:function(e){var t=e.enableFixedColumnScroll,o=e.fixedColumnCount,n=e.fixedRowCount,i=e.rowCount,s=e.hideBottomLeftGridScrollbar,l=this.state.showVerticalScrollbar;if(!o)return null;var a=l?1:0,c=this._getBottomGridHeight(e),h=this._getLeftGridWidth(e),d=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,u=s?h+d:h,p=r.createElement(Gr,rr({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:o,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:c,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,i-n)+a,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:u}));return s?r.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:Wi({},this._bottomLeftGridStyle,{height:c,width:h,overflowY:"hidden"})},p):p}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,o=e.fixedColumnCount,n=e.fixedRowCount,i=e.rowCount,s=e.scrollToColumn,l=e.scrollToRow;return r.createElement(Gr,rr({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-o),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,i-n),rowHeight:this._rowHeightBottomGrid,scrollToColumn:s-o,scrollToRow:l-n,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,o=e.fixedRowCount;return t&&o?r.createElement(Gr,rr({},e,{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:o,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)})):null}},{key:"_renderTopRightGrid",value:function(e){var t=e.columnCount,o=e.enableFixedRowScroll,n=e.fixedColumnCount,i=e.fixedRowCount,s=e.scrollLeft,l=e.hideTopRightGridScrollbar,a=this.state,c=a.showHorizontalScrollbar,h=a.scrollbarSize;if(!i)return null;var d=c?1:0,u=this._getTopGridHeight(e),p=this._getRightGridWidth(e),f=c?h:0,m=u,g=this._topRightGridStyle;l&&(m=u+f,g=Wi({},this._topRightGridStyle,{left:0}));var v=r.createElement(Gr,rr({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-n)+d,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:m,onScroll:o?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:i,scrollLeft:s,style:g,tabIndex:null,width:p}));return l?r.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:Wi({},this._topRightGridStyle,{height:u,width:p,overflowX:"hidden"})},v):v}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft&&e.scrollLeft>=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(r.PureComponent);or(Fi,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),Fi.propTypes={},(0,nr.polyfill)(Fi);(function(e){function t(e,o){var n;return Vn(this,t),(n=Qn(this,Jn(t).call(this,e,o))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},n._onScroll=n._onScroll.bind(Xn(n)),n}return tr(t,e),Kn(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.clientHeight,n=t.clientWidth,r=t.scrollHeight,i=t.scrollLeft,s=t.scrollTop,l=t.scrollWidth;return e({clientHeight:o,clientWidth:n,onScroll:this._onScroll,scrollHeight:r,scrollLeft:i,scrollTop:s,scrollWidth:l})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.clientWidth,n=e.scrollHeight,r=e.scrollLeft,i=e.scrollTop,s=e.scrollWidth;this.setState({clientHeight:t,clientWidth:o,scrollHeight:n,scrollLeft:r,scrollTop:i,scrollWidth:s})}}]),t}(r.PureComponent)).propTypes={};function ji(e){var t=e.className,o=e.columns,n=e.style;return r.createElement("div",{className:t,role:"row",style:n},o)}ji.propTypes=null;const Ui={ASC:"ASC",DESC:"DESC"};function Zi(e){var t=e.sortDirection,o=sr("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===Ui.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===Ui.DESC});return r.createElement("svg",{className:o,width:18,height:18,viewBox:"0 0 24 24"},t===Ui.ASC?r.createElement("path",{d:"M7 14l5-5 5 5z"}):r.createElement("path",{d:"M7 10l5 5 5-5z"}),r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function Vi(e){var t=e.dataKey,o=e.label,n=e.sortBy,i=e.sortDirection,s=n===t,l=[r.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof o?o:null},o)];return s&&l.push(r.createElement(Zi,{key:"SortIndicator",sortDirection:i})),l}function $i(e){var t=e.className,o=e.columns,n=e.index,i=e.key,s=e.onRowClick,l=e.onRowDoubleClick,a=e.onRowMouseOut,c=e.onRowMouseOver,h=e.onRowRightClick,d=e.rowData,u=e.style,p={"aria-rowindex":n+1};return(s||l||a||c||h)&&(p["aria-label"]="row",p.tabIndex=0,s&&(p.onClick=function(e){return s({event:e,index:n,rowData:d})}),l&&(p.onDoubleClick=function(e){return l({event:e,index:n,rowData:d})}),a&&(p.onMouseOut=function(e){return a({event:e,index:n,rowData:d})}),c&&(p.onMouseOver=function(e){return c({event:e,index:n,rowData:d})}),h&&(p.onContextMenu=function(e){return h({event:e,index:n,rowData:d})})),r.createElement("div",rr({},p,{className:t,key:i,role:"row",style:u}),o)}Zi.propTypes={},Vi.propTypes=null,$i.propTypes=null;var Yi=function(e){function t(){return Vn(this,t),Qn(this,Jn(t).apply(this,arguments))}return tr(t,e),t}(r.Component);function qi(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Ki(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?qi(o,!0).forEach((function(t){or(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):qi(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}or(Yi,"defaultProps",{cellDataGetter:function(e){var t=e.dataKey,o=e.rowData;return"function"==typeof o.get?o.get(t):o[t]},cellRenderer:function(e){var t=e.cellData;return null==t?"":String(t)},defaultSortDirection:Ui.ASC,flexGrow:0,flexShrink:1,headerRenderer:Vi,style:{}}),Yi.propTypes={};var Xi=function(e){function t(e){var o;return Vn(this,t),(o=Qn(this,Jn(t).call(this,e))).state={scrollbarWidth:0},o._createColumn=o._createColumn.bind(Xn(o)),o._createRow=o._createRow.bind(Xn(o)),o._onScroll=o._onScroll.bind(Xn(o)),o._onSectionRendered=o._onSectionRendered.bind(Xn(o)),o._setRef=o._setRef.bind(Xn(o)),o}return tr(t,e),Kn(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,o=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:o}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,o=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:o,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,o=void 0===t?0:t,n=e.rowIndex,r=void 0===n?0:n;this.Grid&&this.Grid.recomputeGridSize({rowIndex:r,columnIndex:o})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var e=(0,pn.findDOMNode)(this.Grid),t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,o=t.children,n=t.className,i=t.disableHeader,s=t.gridClassName,l=t.gridStyle,a=t.headerHeight,c=t.headerRowRenderer,h=t.height,d=t.id,u=t.noRowsRenderer,p=t.rowClassName,f=t.rowStyle,m=t.scrollToIndex,g=t.style,v=t.width,y=this.state.scrollbarWidth,w=i?h:h-a,S="function"==typeof p?p({index:-1}):p,b="function"==typeof f?f({index:-1}):f;return this._cachedColumnStyles=[],r.Children.toArray(o).forEach((function(t,o){var n=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[o]=Ki({overflow:"hidden"},n)})),r.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":r.Children.toArray(o).length,"aria-rowcount":this.props.rowCount,className:sr("ReactVirtualized__Table",n),id:d,role:"grid",style:g},!i&&c({className:sr("ReactVirtualized__Table__headerRow",S),columns:this._getHeaderColumns(),style:Ki({height:a,overflow:"hidden",paddingRight:y,width:v},b)}),r.createElement(Gr,rr({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:sr("ReactVirtualized__Table__Grid",s),cellRenderer:this._createRow,columnWidth:v,columnCount:1,height:w,id:void 0,noContentRenderer:u,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:y,scrollToRow:m,style:Ki({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,o=e.columnIndex,n=e.isScrolling,i=e.parent,s=e.rowData,l=e.rowIndex,a=this.props.onColumnClick,c=t.props,h=c.cellDataGetter,d=c.cellRenderer,u=c.className,p=c.columnData,f=c.dataKey,m=c.id,g=d({cellData:h({columnData:p,dataKey:f,rowData:s}),columnData:p,columnIndex:o,dataKey:f,isScrolling:n,parent:i,rowData:s,rowIndex:l}),v=this._cachedColumnStyles[o],y="string"==typeof g?g:null;return r.createElement("div",{"aria-colindex":o+1,"aria-describedby":m,className:sr("ReactVirtualized__Table__rowColumn",u),key:"Row"+l+"-Col"+o,onClick:function(e){a&&a({columnData:p,dataKey:f,event:e})},role:"gridcell",style:v,title:y},g)}},{key:"_createHeader",value:function(e){var t,o,n,i,s,l=e.column,a=e.index,c=this.props,h=c.headerClassName,d=c.headerStyle,u=c.onHeaderClick,p=c.sort,f=c.sortBy,m=c.sortDirection,g=l.props,v=g.columnData,y=g.dataKey,w=g.defaultSortDirection,S=g.disableSort,b=g.headerRenderer,C=g.id,x=g.label,R=!S&&p,_=sr("ReactVirtualized__Table__headerColumn",h,l.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:R}),T=this._getFlexStyleForColumn(l,Ki({},d,{},l.props.headerStyle)),E=b({columnData:v,dataKey:y,disableSort:S,label:x,sortBy:f,sortDirection:m});if(R||u){var O=f!==y?w:m===Ui.DESC?Ui.ASC:Ui.DESC,M=function(e){R&&p({defaultSortDirection:w,event:e,sortBy:y,sortDirection:O}),u&&u({columnData:v,dataKey:y,event:e})};s=l.props["aria-label"]||x||y,i="none",n=0,t=M,o=function(e){"Enter"!==e.key&&" "!==e.key||M(e)}}return f===y&&(i=m===Ui.ASC?"ascending":"descending"),r.createElement("div",{"aria-label":s,"aria-sort":i,className:_,id:C,key:"Header-Col"+a,onClick:t,onKeyDown:o,role:"columnheader",style:T,tabIndex:n},E)}},{key:"_createRow",value:function(e){var t=this,o=e.rowIndex,n=e.isScrolling,i=e.key,s=e.parent,l=e.style,a=this.props,c=a.children,h=a.onRowClick,d=a.onRowDoubleClick,u=a.onRowRightClick,p=a.onRowMouseOver,f=a.onRowMouseOut,m=a.rowClassName,g=a.rowGetter,v=a.rowRenderer,y=a.rowStyle,w=this.state.scrollbarWidth,S="function"==typeof m?m({index:o}):m,b="function"==typeof y?y({index:o}):y,C=g({index:o}),x=r.Children.toArray(c).map((function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:n,parent:s,rowData:C,rowIndex:o,scrollbarWidth:w})})),R=sr("ReactVirtualized__Table__row",S),_=Ki({},l,{height:this._getRowHeight(o),overflow:"hidden",paddingRight:w},b);return v({className:R,columns:x,index:o,isScrolling:n,key:i,onRowClick:h,onRowDoubleClick:d,onRowRightClick:u,onRowMouseOver:p,onRowMouseOut:f,rowData:C,style:_})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),n=Ki({},t,{flex:o,msFlex:o,WebkitFlex:o});return e.props.maxWidth&&(n.maxWidth=e.props.maxWidth),e.props.minWidth&&(n.minWidth=e.props.minWidth),n}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,o=t.children;return(t.disableHeader?[]:r.Children.toArray(o)).map((function(t,o){return e._createHeader({column:t,index:o})}))}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.scrollHeight,n=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:o,scrollTop:n})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,o=e.rowOverscanStopIndex,n=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:o,startIndex:n,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(r.PureComponent);or(Xi,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:Ar,overscanRowCount:10,rowRenderer:$i,headerRowRenderer:ji,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),Xi.propTypes={};var Qi=[],Ji=null,es=null;function ts(){es&&(es=null,document.body&&null!=Ji&&(document.body.style.pointerEvents=Ji),Ji=null)}function os(){ts(),Qi.forEach((function(e){return e.__resetIsScrolling()}))}function ns(e){e.currentTarget===window&&null==Ji&&document.body&&(Ji=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){es&&Tr(es);var e=0;Qi.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),es=Er(os,e)}(),Qi.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function rs(e,t){Qi.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",ns),Qi.push(e)}function is(e,t){(Qi=Qi.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",ns),es&&(Tr(es),ts()))}var ss,ls,as=function(e){return e===window},cs=function(e){return e.getBoundingClientRect()};function hs(e,t){if(e){if(as(e)){var o=window,n=o.innerHeight,r=o.innerWidth;return{height:"number"==typeof n?n:0,width:"number"==typeof r?r:0}}return cs(e)}return{height:t.serverHeight,width:t.serverWidth}}function ds(e){return as(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function us(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}var ps=function(){return"undefined"!=typeof window?window:void 0},fs=(ls=ss=function(e){function t(){var e,o;Vn(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return or(Xn(o=Qn(this,(e=Jn(t)).call.apply(e,[this].concat(r)))),"_window",ps()),or(Xn(o),"_isMounted",!1),or(Xn(o),"_positionFromTop",0),or(Xn(o),"_positionFromLeft",0),or(Xn(o),"_detectElementResize",void 0),or(Xn(o),"_child",void 0),or(Xn(o),"state",function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?us(o,!0).forEach((function(t){or(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):us(o).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({},hs(o.props.scrollElement,o.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),or(Xn(o),"_registerChild",(function(e){e&&Element,o._child=e,o.updatePosition()})),or(Xn(o),"_onChildScroll",(function(e){var t=e.scrollTop;if(o.state.scrollTop!==t){var n=o.props.scrollElement;n&&("function"==typeof n.scrollTo?n.scrollTo(0,t+o._positionFromTop):n.scrollTop=t+o._positionFromTop)}})),or(Xn(o),"_registerResizeListener",(function(e){e===window?window.addEventListener("resize",o._onResize,!1):o._detectElementResize.addResizeListener(e,o._onResize)})),or(Xn(o),"_unregisterResizeListener",(function(e){e===window?window.removeEventListener("resize",o._onResize,!1):e&&o._detectElementResize.removeResizeListener(e,o._onResize)})),or(Xn(o),"_onResize",(function(){o.updatePosition()})),or(Xn(o),"__handleWindowScrollEvent",(function(){if(o._isMounted){var e=o.props.onScroll,t=o.props.scrollElement;if(t){var n=ds(t),r=Math.max(0,n.left-o._positionFromLeft),i=Math.max(0,n.top-o._positionFromTop);o.setState({isScrolling:!0,scrollLeft:r,scrollTop:i}),e({scrollLeft:r,scrollTop:i})}}})),or(Xn(o),"__resetIsScrolling",(function(){o.setState({isScrolling:!1})})),o}return tr(t,e),Kn(t,[{key:"updatePosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,o=this.state,n=o.height,r=o.width,i=this._child||pn.findDOMNode(this);if(i instanceof Element&&e){var s=function(e,t){if(as(t)&&document.documentElement){var o=document.documentElement,n=cs(e),r=cs(o);return{top:n.top-r.top,left:n.left-r.left}}var i=ds(t),s=cs(e),l=cs(t);return{top:s.top+i.top-l.top,left:s.left+i.left-l.left}}(i,e);this._positionFromTop=s.top,this._positionFromLeft=s.left}var l=hs(e,this.props);n===l.height&&r===l.width||(this.setState({height:l.height,width:l.width}),t({height:l.height,width:l.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=Wr(),this.updatePosition(e),e&&(rs(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var o=this.props.scrollElement,n=e.scrollElement;n!==o&&null!=n&&null!=o&&(this.updatePosition(o),is(this,n),rs(this,o),this._unregisterResizeListener(n),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(is(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.isScrolling,n=t.scrollTop,r=t.scrollLeft,i=t.height,s=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:o,scrollLeft:r,scrollTop:n,width:s})}}]),t}(r.PureComponent),or(ss,"propTypes",null),ls);or(fs,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:ps(),serverHeight:0,serverWidth:0});var ms=function({children:e,className:t,height:o,heightAdjustment:n,graphZoneType:r,scrollTop:s,style:l}){const a=Go[r].listId,c=document.getElementById(a),h=c?.scrollHeight||0;let d=o-28;void 0!==s&&(d=Number(l.top)-s,c&&h-o-s<0&&(d=o-n-28));const u={top:d,zIndex:2},p=i().createElement("span",{className:"absolute",style:u},e);return i().createElement("div",{className:t,style:l},c?fn().createPortal(p,document.getElementById("graph-container")):p)};function gs({inline:e,getExternalIcon:t,message:o,size:n=100,useSimpleSpinner:r}){const s=me()("loading-spinner",{"inline-block":e,ml2:e,"shrink-0":e}),l=me()("spinner","mr1",{"inline-block":e}),a={height:n,width:n},c=me()("message",{"inline-block":e,mx2:e}),h=r?i().createElement("span",{className:l,style:a},t("loading")):i().createElement("div",{className:l,style:a},i().createElement("img",{className:"ring outer",src:"../../../images/spinner-outer-ring.svg",style:a}),i().createElement("img",{className:"ring inner",src:"../../../images/spinner-inner-ring.svg",style:a}),i().createElement("img",{className:"bg-img",src:"../../../images/spinner-kraken.svg",style:a}));return i().createElement("div",{className:s},h,o&&i().createElement("div",{className:c},o))}class vs extends i().Component{render(){const{cssVariables:e,currentCommits:t,graphZoneType:o,hasMoreCommits:n,height:r,getExternalIcon:s,isLoadingRows:l,scrollTop:a,style:c,translate:h,zoneContentWidth:d,zoneWidth:u}=this.props,p=parseInt(e["--scrollable-scrollbar-thickness"].trim(),10),f=Number.isNaN(p)?0:p,m=d>u?f:0,g=i().createElement(gs,{className:"loading-spinner",getExternalIcon:s,size:20,useSimpleSpinner:!0}),v=0!==(t>0?t:0)||n?null:i().createElement(i().Fragment,null,h("Graph-NoCommits")),y=i().createElement("div",{className:"graph-adjust-commit-count p1"},l?i().createElement("div",{className:"flex items-center"},i().createElement("span",{style:{paddingRight:"5px"}},g)):v);return i().createElement(ms,{graphZoneType:o,height:r,heightAdjustment:m,scrollTop:a,style:c},y)}}var ys=vs;function ws({rowCount:e,cellRenderersByIds:t,columnIndex:o,cssVariables:n,enableResizer:r,getExternalIcon:s,getKeyForCell:l,graphHeight:a,graphWidth:c,graphZoneType:h,graphZones:d,hasMoreCommits:u,isLoadingRows:p,onResize:f,onResizeEnd:m,onResizeFromPropChange:g,onScroll:v,onScrollToRowCausedUpdate:y,onZoneEnter:w,scrollLeft:S,scrollToAlignment:b,scrollToIndex:C,scrollTop:x,smartCellRangeRenderer:R,translate:_}){const T=Xo(h,d);if(!T)return null;const E=qo(h,d),O=Xo(Ro,d),M=O?O.contentWidth:0,I=O?O.currentWidth:0,z=h===Ro?me()("graph-panel","horizontal_scrollbar","react-virtualized-list"):me()("graph-panel","react-virtualized-list",h===xo?"z3":null,E?"vertical_scrollbar":null,{"pad-for-horizontal-scrollbar":!!M&&M>I}),k=h===Ro?{position:"static"}:void 0,G=e=>v(h,e,c,a,u),P=u||p||0===e,A=e+(P?1:0),H=(r,d,f,m,g,v,w)=>i().createElement(Gr,{autoContainerWidth:!0,cellRangeRenderer:R,cellRenderer:c=>((r,c)=>{if(c.rowIndex>e-1)return P&&0===o?i().createElement(ys,{cssVariables:n,currentCommits:e-1,getExternalIcon:s,graphZoneType:h,hasMoreCommits:u,height:a,isLoadingRows:p,key:l(c.rowIndex),scrollTop:x,style:c.style,translate:_,zoneContentWidth:M||0,zoneWidth:I}):void 0;const d={...c,style:{...c.style}};Co===r&&(d.style.top=Number(c.style.top)-x);const f=t[r];return f?f(d):void 0})(r,c),className:f,columnCount:1,columnWidth:w,containerStyle:m,height:a,id:d,isScrolling:!1,key:d,onScroll:G,onScrollToTargetCausedUpdate:y?e=>y(h,e,c,a,u):void 0,overscanRowCount:0,rowCount:A,rowHeight:Xt,scrollLeft:S,scrollToAlignment:b,scrollTop:x,scrollToRow:C,style:g,tabIndex:null,width:v}),L=H(T.type,T.listId,z,k,{position:"absolute"},T.currentWidth,T.type===Ro&&e>0?T.contentWidth||0:T.currentWidth),N=E?H(Co,"timeline-column","graph-panel react-virtualized-list timeline-column",{overflow:"visible",zIndex:3},{position:"absolute",right:0,overflow:"visible",zIndex:3},1,1):void 0,D=i().createElement("div",{onMouseEnter:w},L,N);return E?D:i().createElement(qt,{enable:r,height:a,id:`${h}Column`,key:`${h}Column`,onResize:f?e=>f(T,e):void 0,onResizeEnd:m?e=>m(T,e):void 0,onResizeFromPropChange:g?e=>g(T,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z1",width:T.currentWidth,widthConstraints:Jo(h,d,c)},D)}function Ss(e,t,o){const n=t*Xt,{shape:r}=ko[e],i=zo[r];if(!i)return{height:0,offset:0};const{baseHeight:s,minHeight:l,maxHeight:a}=i;let c=s*(o/n);void 0!==l&&c<l&&(c=l),void 0!==a&&c>a&&(c=a);const h=Xt*(o/n);return{height:c,offset:c>=h?0:(h-c)/2}}function bs(e,t,o){return e*Xt/(o*Xt)*t}class Cs extends i().PureComponent{canvas;componentDidMount(){this.updateCanvas()}componentWillReceiveProps(e){e.markerRowIndices===this.props.markerRowIndices&&e.totalRows===this.props.totalRows&&e.viewportHeight===this.props.viewportHeight&&e.viewportWidth===this.props.viewportWidth&&e.markerColors===this.props.markerColors&&e.enabledScrollMarkerTypes===this.props.enabledScrollMarkerTypes||this.updateCanvas()}updateCanvas(){const{enabledScrollMarkerTypes:e,viewportHeight:t,markerRowIndices:o,markerColors:n,scrollWidth:r,totalRows:i}=this.props,s=this.canvas.getContext("2d"),l=(r&&!Number.isNaN(r)?r:14)/3;s.clearRect(0,0,s.canvas.width,s.canvas.height);for(const[r,a]of Object.entries(ko)){if(!e.includes(r))continue;const c=o[r]||[],h=n[r],d=a.lanes;h&&c.length&&(s.fillStyle=h,c.forEach((e=>{const{height:o,offset:n}=Ss(r,i,t);d.length&&s.fillRect(d[0]*l,bs(e,t,i)+n-.5*o,l*d.length,o)})))}}render(){const{scrollWidth:e,viewportWidth:t,viewportHeight:o}=this.props,n=e&&!Number.isNaN(e)?e:14;return i().createElement("div",{style:{pointerEvents:"none",position:"absolute",left:t-n,zIndex:9999}},i().createElement("canvas",{height:o,ref:e=>{this.canvas=e},width:n}))}}const xs={"Graph-IsLoadingRows":"Loading...","Graph-NoCommits":"No commits","Graph-WorkInProgress":"Work in progress","GraphHeader-BranchTag":"BRANCH / TAG","GraphHeader-Changes":"CHANGES","GraphHeader-CommitAuthor":"AUTHOR","GraphHeader-CommitDateTime":"COMMIT DATE / TIME","GraphHeader-CommitGraph":"GRAPH","GraphHeader-CommitMessage":"COMMIT MESSAGE","GraphHeader-CommitSha":"SHA","GraphHeader-EditColumns":"Add/Remove Columns","GraphHeader-HiddenRefs-btn":"Hidden Branches / Tags","OptionalGraphZone-CommitAuthor":"Author","OptionalGraphZone-CommitDateTime":"Date / Time","OptionalGraphZone-CommitSha":"Sha","Ref-Current":"current","Ref-Local":"local","Timeline-1HourAgo":"1 hour ago","Timeline-NHoursAgo":"{0} hours ago","Timeline-Yesterday":"yesterday","Timeline-NDaysAgo":"{0} days ago","Timeline-1WeekAgo":"a week ago","Timeline-NWeeksAgo":"{0} weeks ago","Timeline-1MonthAgo":"a month ago","Timeline-NMonthsAgo":"{0} months ago","Timeline-1YearAgo":"a year ago","Timeline-NYearsAgo":"{0} years ago","Timeline-NPlusYearsAgo":"{0}+ years ago",ResizePanel:"Resize Panel",Hide:"Hide",Show:"Show"},Rs=e=>!(e===Te||e===Oe),_s=/^.*(:?\n){0,2}/m;const Ts=/^co-authored-by:\s*([^\s<>]+(?:\s+[^\s<>]+)*)\s*<([^<>]+)>/gim;const Es={};function Os(e){let t=Es[e];return t||(t=to+e*io+io/2,Es[e]=t,t)}const Ms={d:"d",fill:"fill","shape-rendering":"shapeRendering","stroke-linejoin":"strokeLinejoin","stroke-width":"strokeWidth","stroke-dasharray":"strokeDasharray",stroke:"stroke",x1:"x1",x2:"x2",y1:"y1",y2:"y2"};function Is(e,t){let o="<"+e;const n=Object.entries(Ms);for(let e=0;e<n.length;e+=1){const[r,i]=n[e],s=t[i];s&&(o=o+" "+r+'="'+s+'"')}return o+" />"}function zs(e){return Is("line",e)}function ks(e,t){return{fill:"none",shapeRendering:"auto",strokeLinejoin:"round",strokeWidth:eo,strokeDasharray:Rs(e)?2:0,stroke:t}}function Gs(e,t,o){return e+"_"+t+"_"+(o||"+")}function Ps(e,t){return e+"_"+(t||"+")}const As={0:1,90:0,180:-1,270:0},Hs={0:0,90:1,180:0,270:-1},Ls=ao-lo,Ns=" A "+Ls+" "+Ls+" 0 0 0 ";function Ds(e,t,o){const n=As[o],r=Hs[o];return{x:e-ao*n,xOffset:-n*lo,y:t+ao*r,yOffset:r*lo}}const Ws={};var Bs=function(e,t,o,n,r,i){const s=ks(n,e);return s.d=function(e,t,o,n){const r=e+"_"+t+"_"+o+"_"+n;let i=Ws[r];if(i)return i;const s=Ds(e,t,n),l=Ds(e,t,o);return i="M "+s.x+" "+s.y+(l.xOffset?" H "+(s.x+l.xOffset):" V "+(s.y+l.yOffset))+Ns+(l.x+s.xOffset)+" "+(l.y+s.yOffset)+(s.xOffset?" H "+l.x:" V "+l.y),Ws[r]=i,i}(r,i,o,t),Is("path",s)};let Fs={};function js(e,t,o,n){const r=Gs(e,t,o);let i=Fs[r];return i||(i=function(e,t){return e===t}(t,e)?function(e,t,o){const n=ks(o,e);return n.x1=Os(t),n.x2=Os(t),n.y1=ro/2,n.y2=ro,zs(n)}(n[e],t,o):function(e,t,o,n){const r=ks(n,e),i={...r};i.x1=Os(o),i.x2=Os(o),i.y1=ro-oo,i.y2=ro;const s={...r};return s.x1=Os(o<t?o:o-1)+io/2,s.x2=Os(t),s.y1=ro/2,s.y2=ro/2,"<g>"+Bs(e,t<o?180:270,t<o?270:0,n,Os(o)+(t<o?-io/2:io/2),ro-oo)+zs(i)+zs(s)+"</g>"}(n[e],t,e,o),Fs[r]=i,i)}let Us={};function Zs(e,t,o,n){const r=Gs(e,t,o);let i=Us[r];return i||(i=function(e,t){return e===t}(t,e)?function(e,t,o){const n=ks(o,e);return n.x1=Os(t),n.x2=Os(t),n.y1=0,n.y2=ro/2,zs(n)}(n[e],t,o):function(e,t,o,n){const r=ks(n,e),i={...r};i.x1=Os(o),i.x2=Os(o),i.y1=0,i.y2=no;const s={...r};return s.x1=Os(o<t?o:o-1)+io/2,s.x2=Os(t),s.y1=ro/2,s.y2=ro/2,"<g>"+zs(i)+Bs(e,t>o?0:90,t>o?90:180,n,Os(o)+(t<o?-io/2:io/2),no)+zs(s)+"</g>"}(n[e],t,e,o),Us[r]=i,i)}let Vs={};function $s(e,t,o){const n=Ps(e,t);let r=Vs[n];if(r)return r;const i=Os(e),s=ks(t,o[e]);return s.x1=i,s.x2=i,s.y1=0,s.y2=ro,r=zs(s),Vs[n]=r,r}let Ys={};function qs(e,t,o,n){const r=function(e,t,o){let n="";for(let r=0;r<=t;r++){const{passThrough:t,starting:i,ending:s}=e[r]||{};n=n+"_"+Gs(r,o,i?.type),n=n+"_"+Gs(r,o,s?.type),n=n+"_"+Ps(r,t?.type)}return n}(e,t,o);let i=Ys[r];if(i)return i;let s="";for(let r=0;r<=t;r+=1){const t=e[r];if(!t)continue;const{passThrough:i,starting:l,ending:a}=t;s+=l?js(r,o,l.type,n):"",s+=i?$s(r,i.type,n):"",s+=a?Zs(r,o,a.type,n):""}return i='url(\'data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g>'+s+"</g></svg>')",Ys[r]=i,i}const Ks=me()("absolute","top-0","right-0","bottom-0","left-0","height-1","time-line"),Xs=me()(Ks,"z2");var Qs=function({z2:e}){return i().createElement("div",{className:e?Xs:Ks})};const Js={ADDED:"added",DELETED:"deleted",MODIFIED:"modified"};class el extends i().Component{render(){const{fileDiffType:e,getExternalIcon:t}=this.props;if(!e)return null;const o=(e=>{switch(e){case Js.ADDED:return"added";case Js.MODIFIED:return"modified";case Js.DELETED:return"deleted";default:return""}})(e),n=(e=>{switch(e){case Js.ADDED:return"color-green";case Js.MODIFIED:return"color-orange";case Js.DELETED:return"color-red";default:return null}})(e),r=(e=>{switch(e){case Js.ADDED:return"added";case Js.MODIFIED:return"modified";case Js.DELETED:return"deleted";default:return null}})(e),s=me()("fs-1",n,"mr1");return i().createElement("span",{className:s,title:r},t(o))}}var tl=el;const{ADDED:ol,DELETED:nl,MODIFIED:rl}=Js,il={[ol]:"CommitDiffSection-NFilesAdded",[nl]:"CommitDiffSection-NFilesDeleted",[rl]:"CommitDiffSection-NFilesModified"};var sl=function({count:e,diffType:t,getExternalIcon:o,fileNodeListStyle:n,translate:r}){const s=n?e:r(il[t],e);let l,a;return n&&(l={fontSize:yo,marginRight:wo},a={fontSize:bo,margin:`0px ${So}px 0px 0px`}),i().createElement("span",{className:"tiny-files-readout",style:l},i().createElement(tl,{fileDiffType:t,getExternalIcon:o,style:a}),i().createElement("span",{className:"tiny-files-readout-text"},s))};var ll=function({diffStats:t,fileNodeListStyle:o,getExternalIcon:n,translate:r}){const{types:s}=e;if(!t)return i().createElement("span",null);if(!Object.values(t).some((e=>Boolean(e))))return i().createElement("span",null);const l=t.modified?i().createElement(sl,{count:t.modified,diffType:s.MODIFIED,fileNodeListStyle:!0,getExternalIcon:n,translate:r}):null,a=t.added?i().createElement(sl,{count:t.added,diffType:s.ADDED,fileNodeListStyle:!0,getExternalIcon:n,translate:r}):null,c=t.deleted?i().createElement(sl,{count:t.deleted,diffType:s.DELETED,fileNodeListStyle:!0,getExternalIcon:n,translate:r}):null,h=o?{marginLeft:vo}:null;return i().createElement("span",{className:"summary",style:h},l,a,c)};const al=i().createElement("div",{className:"color-strip height-100",style:{width:2}}),cl={};const hl={};class dl extends i().PureComponent{render(){const{clearCurrentlyHoveredGraphCommit:e,children:t,column:o,context:n,currentlyHoveredCommitSha:r,dimRowsOfSelectedCommit:s,getExternalIcon:l,graphZoneType:a,highlightRowsOnRefHover:c,isDimmedMergeCommitRow:h,isHighlighted:d,isHovering:u,isInUnsupportedRebase:p,isMissingHoveredRefGroup:f,isSelected:m,numGraphColumns:g,onContextMenu:v,onClickCommit:y,onDoubleClickCommit:w,rowContext:S,sha:b,showColorStrip:C,showConflictIcon:x,showTimeline:R,setAsCurrentlyHoveredGraphCommit:_,style:T,title:E,translate:O,type:M,workDirStats:I}=this.props,z=function(e,t){const o=e+t.toString();let n=cl[o];return n||(n=me()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative",e,{"is-hovering":t}),cl[o]=n,n)}(M,u),k=function(e,t,o,n,r,i=!1,s=!1,l=!1,a=!1){const c=e+t+n.toString()+o.toString()+i.toString()+s.toString()+l.toString()+a.toString()+r;let h=hl[c];return h||(h=me()("column-"+(t%r+1),"graph-row","height-100-percent","flex",e,{"is-selected":n},{"is-highlighted":o},{"dimmed-row":a&&!o||i&&(s||l)}),hl[c]=h,h)}(M,o,d,m,g,f,c,s,h),G=R?i().createElement(Qs,null):null,P=M===ze&&void 0!==I&&Object.keys(I).length>0,A=P&&i().createElement(ll,{diffStats:I,getExternalIcon:l,translate:O});return i().createElement("div",{className:z,"data-vscode-context":Bo(S),onContextMenu:p?void 0:e=>v(e,a,b),onDoubleClick:e=>w(e,a,b),onMouseDown:e=>y(e,a,b),onMouseEnter:e=>_(e,a,b,r),onMouseLeave:t=>e(t,a,b,r),style:T},G,i().createElement("div",{className:k,"data-vscode-context":Bo(n)},C?al:null,x?i().createElement("span",{className:me()("ml2")},l("warning")):null,i().createElement("span",{className:me()("graph-zone",P?"has-work-dir":"width-100","flex-1"),style:{lineHeight:`${Qt}px`},title:E},t),A))}}function ul(e){const{constraints:{max:t,min:o},stats:{additions:n,deletions:r},isLastColumn:s,scrollWidth:l,zoneWidth:a}=e,c=n+r,h=Math.max(o,Math.min(t,c)),d=s?l+mo:mo,u=Math.max(fo,h/t*a-d);return i().createElement("div",{className:"changes-zone changes-bar",style:{width:u}},n?i().createElement("div",{className:me()("changes-sub-bar","added",r?null:"last-bar"),style:{width:n/c*100+"%"}}):null,r?i().createElement("div",{className:"changes-sub-bar deleted last-bar",style:{width:r/c*100+"%"}}):null)}var pl=(e,t)=>{const{processedRows:o,rowStatsConstraints:n,translate:r,getExternalIcon:s,highlightRowsOnRefHover:l,isInUnsupportedRebase:a,numGraphColumns:c,clearCurrentlyHoveredGraphCommit:h,currentlyHoveredCommitSha:d,dimMergeCommits:u,dimRowsOfSelectedCommit:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,setAsCurrentlyHoveredGraphCommit:v,cssVariables:y,graphZones:w}=e,S=new ln(e);return({rowIndex:e,style:b})=>{const C=t(e),x=S.getZoneWidth(Mo),R=o[e],{sha:_,stats:T,type:E,contexts:O}=R,M=O?.stats||void 0,I=O?.row||void 0;let z=[T?.files?`${T.files} files changed`:"",T?.additions?`${T.additions} lines added`:"",T?.deletions?`${T.deletions} lines deleted`:""].filter(Boolean).join(", ");z=E!==ze?z:"";const k=parseInt(y["---scrollable-scrollbar-thickness"],10);return i().createElement(dl,{clearCurrentlyHoveredGraphCommit:h,column:R.column,context:M,currentlyHoveredCommitSha:d,dimRowsOfSelectedCommit:p,getExternalIcon:s,graphZoneType:Mo,highlightRowsOnRefHover:l,isDimmedMergeCommitRow:E===Oe&&u,isHighlighted:S.isHighlighted(e),isHovering:S.isHovering(e),isInUnsupportedRebase:a,isMissingHoveredRefGroup:S.isMissingHoveredRefGroup(e),isSelected:S.isSelected(e),key:C,numGraphColumns:c,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rowContext:I,setAsCurrentlyHoveredGraphCommit:v,sha:_,showTimeline:S.hasTimeline(e),style:b,title:z,translate:r,type:E},T&&E!==ze?i().createElement(ul,{constraints:n,isLastColumn:qo(Mo,w),scrollWidth:k&&!Number.isNaN(k)?k:14,stats:T,zoneWidth:x}):null)}};function fl(e){const t=(e||"").trim().toUpperCase();if(0===t.length)return"?";const o=t.split(" ");return 1===o.length?o[0][0]:o.length>1?o[0][0]+o[o.length-1][0]:"?"}function ml(e,t){return e&&t?`${e} <${t}>`:e||(t||"")}var gl=(e,t)=>{const{clearCurrentlyHoveredGraphCommit:o,currentlyHoveredCommitSha:n,dimMergeCommits:r,dimRowsOfSelectedCommit:s,getExternalIcon:l,highlightRowsOnRefHover:a,processedRows:c,isInUnsupportedRebase:h,onCommitContextMenu:d,onClickCommit:u,onDoubleClickCommit:p,numGraphColumns:f,setAsCurrentlyHoveredGraphCommit:m,translate:g}=e,v=new ln(e);return({rowIndex:e,style:y})=>{const w=t(e),S=c[e],{author:b,email:C,sha:x,type:R,contexts:_}=S,T=R!==ze?b:void 0,E=R!==ze?ml(b,C):void 0,O=_?.author||void 0,M=_?.row||void 0;return i().createElement(dl,{clearCurrentlyHoveredGraphCommit:o,column:S.column,context:O,currentlyHoveredCommitSha:n,dimRowsOfSelectedCommit:s,getExternalIcon:l,graphZoneType:To,highlightRowsOnRefHover:a,isDimmedMergeCommitRow:R===Oe&&r,isHighlighted:v.isHighlighted(e),isHovering:v.isHovering(e),isInUnsupportedRebase:h,isMissingHoveredRefGroup:v.isMissingHoveredRefGroup(e),isSelected:v.isSelected(e),key:w,numGraphColumns:f,onClickCommit:u,onContextMenu:d,onDoubleClickCommit:p,rowContext:M,setAsCurrentlyHoveredGraphCommit:m,sha:x,showTimeline:v.hasTimeline(e),style:y,title:E,translate:g,type:R},T)}};var vl=(e,t)=>{const{processedRows:o,translate:n,getExternalIcon:r,highlightRowsOnRefHover:s,isInUnsupportedRebase:l,numGraphColumns:a,formatCommitDateTime:c,clearCurrentlyHoveredGraphCommit:h,dimMergeCommits:d,dimRowsOfSelectedCommit:u,currentlyHoveredCommitSha:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,setAsCurrentlyHoveredGraphCommit:v}=e,y=new ln(e);return({rowIndex:e,style:w})=>{const S=t(e),b=o[e],{date:C,sha:x,type:R,contexts:_}=b,T=C&&R!==ze?c(C,ke.RowEntry):void 0,E=C&&R!==ze?c(C,ke.Tooltip):void 0,O=_?.date||void 0,M=_?.row||void 0;return i().createElement(dl,{clearCurrentlyHoveredGraphCommit:h,column:b.column,context:O,currentlyHoveredCommitSha:p,dimRowsOfSelectedCommit:u,getExternalIcon:r,graphZoneType:Eo,highlightRowsOnRefHover:s,isDimmedMergeCommitRow:R===Oe&&d,isHighlighted:y.isHighlighted(e),isHovering:y.isHovering(e),isInUnsupportedRebase:l,isMissingHoveredRefGroup:y.isMissingHoveredRefGroup(e),isSelected:y.isSelected(e),key:S,numGraphColumns:a,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rowContext:M,setAsCurrentlyHoveredGraphCommit:v,sha:x,showTimeline:!1,style:w,title:E,translate:n,type:R},T)}};var yl=(e,t)=>{const{dimMergeCommits:o,dimRowsOfSelectedCommit:n,processedRows:r,translate:s,getExternalIcon:l,highlightRowsOnRefHover:a,isInUnsupportedRebase:c,numGraphColumns:h,workDirStats:d,clearCurrentlyHoveredGraphCommit:u,currentlyHoveredCommitSha:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,setAsCurrentlyHoveredGraphCommit:v}=e,y=new ln(e);return({rowIndex:e,style:w})=>{const S=t(e),b=r[e],{sha:C,type:x,contexts:R}=b,_=x===ze?s("Graph-WorkInProgress"):b.message,T=x===ze?s("Graph-WorkInProgress"):b.messageInline,E=R?.message||void 0,O=R?.row||void 0;return i().createElement(dl,{clearCurrentlyHoveredGraphCommit:u,column:b.column,context:E,currentlyHoveredCommitSha:p,dimRowsOfSelectedCommit:n,getExternalIcon:l,graphZoneType:_o,highlightRowsOnRefHover:a,isDimmedMergeCommitRow:x===Oe&&o,isHighlighted:y.isHighlighted(e),isHovering:y.isHovering(e),isInUnsupportedRebase:c,isMissingHoveredRefGroup:y.isMissingHoveredRefGroup(e),isSelected:y.isSelected(e),key:S,numGraphColumns:h,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rowContext:O,setAsCurrentlyHoveredGraphCommit:v,sha:C,showColorStrip:!0,showConflictIcon:x===Ee||x===Me,showTimeline:y.hasTimeline(e),style:w,title:_,translate:s,type:x,workDirStats:d},T)}};var wl=(e,t)=>{const{processedRows:o,translate:n,getExternalIcon:r,highlightRowsOnRefHover:s,isInUnsupportedRebase:l,numGraphColumns:a,clearCurrentlyHoveredGraphCommit:c,currentlyHoveredCommitSha:h,dimMergeCommits:d,dimRowsOfSelectedCommit:u,onCommitContextMenu:p,onClickCommit:f,onDoubleClickCommit:m,setAsCurrentlyHoveredGraphCommit:g,shaLength:v}=e,y=new ln(e);return({rowIndex:e,style:w})=>{const S=t(e),b=o[e],{sha:C,type:x,contexts:R}=b,_=((e,t=6)=>e?e.substring(0,t):"")(C,v),T=R?.sha||void 0,E=R?.row||void 0;return i().createElement(dl,{clearCurrentlyHoveredGraphCommit:c,column:b.column,context:T,currentlyHoveredCommitSha:h,dimRowsOfSelectedCommit:u,getExternalIcon:r,graphZoneType:Oo,highlightRowsOnRefHover:s,isDimmedMergeCommitRow:x===Oe&&d,isHighlighted:y.isHighlighted(e),isHovering:y.isHovering(e),isInUnsupportedRebase:l,isMissingHoveredRefGroup:y.isMissingHoveredRefGroup(e),isSelected:y.isSelected(e),key:S,numGraphColumns:a,onClickCommit:f,onContextMenu:p,onDoubleClickCommit:m,rowContext:E,setAsCurrentlyHoveredGraphCommit:g,sha:C,showTimeline:y.hasTimeline(e),style:w,translate:n,type:x},x!==ze?i().createElement("span",{className:"font-monospace pointer",title:_},_):null)}};var Sl=function({style:e,children:t,column:o,numGraphColumns:n,onMouseEnter:r,onMouseLeave:s}){const l=e?.top||0;return i().createElement("div",{className:me()("ref-zone","column-"+(o%n+1))},i().createElement("ul",{onMouseEnter:r,onMouseLeave:s,style:{...e,top:l-Qt/2,position:"absolute",listStyle:"none",padding:0,zIndex:1}},t))};var bl=function({enabledRefMetadataTypes:e,column:t,context:o,getTargetRef:n,hasActive:r,hasRefs:s,getExternalIcon:l,includeOnlyRefsById:a,includeOnlyRemotesByName:c,isHovered:h,isInUnsupportedRebase:d,numGraphColumns:u,onMissingRefMetadata:p,refGroupContexts:f,refGroupsByName:m,refMetadata:g,refNodeHovered:v,sha:y,showContextMenuForGroupedRef:w,onClickRef:S,onDoubleClickRef:b,onToggleRefNodesShown:C,translate:x}){const R=(e,t,o)=>{const n=[];for(let e=0;e<t.length;e+=1){const o=t[e];n.push({id:Zo(o),name:o.name,type:o.refType,owner:o.owner,avatarUrl:o.avatarUrl})}C(e,n,!1,o)},_=h?m:[m[0]],T=Object.values(a),E=T.length>0&&T.some((e=>e.type===Do.TAG)),O=_.map((t=>{const o=f?.[t[0].name]||void 0,n=t.some((e=>{const t=Zo(e);switch(e.refType){case Do.TAG:return E&&Boolean(a[t]);case Do.REMOTE:return Boolean(a[t])||e.owner&&c[e.owner];default:return Boolean(a[t])}})),u=i().createElement(Hn,{enabledRefMetadataTypes:e,getExternalIcon:l,groupIsHovered:h,hasActive:r,hasRefs:s,isInUnsupportedRebase:d,isRefGroupIncluded:n,key:`ref-node-${t[0].fullName||t[0].name}`,onClick:S,onContextMenu:w,onDoubleClick:b,onHideRefClick:R,onHovered:v,onMissingRefMetadata:p,refGroup:t,refGroupContext:o,refMetadata:g,sha:y,translate:x});return h?i().createElement("li",{key:u.key},u):u}));return h?i().createElement("div",{"data-vscode-context":Bo(o),style:{height:100,position:"relative"}},i().createElement(et,{placement:"right",show:h,target:n},i().createElement(Sl,{column:t,numGraphColumns:u},O))):i().createElement("span",{"data-vscode-context":Bo(o),style:{minWidth:0}},O)};function Cl({hasRefs:e,isActiveSha:t,left:o,type:n,width:r}){const s=me()("ref-line","z4",{"is-active":t});return e&&function(e){return[Te,Oe,Ee].includes(e)}(n)?i().createElement("hr",{className:s,style:{left:o,width:r}}):null}var xl=Cl;function Rl({hasRefs:e,isActiveSha:t,nodeOffset:o,type:n}){return i().createElement(Cl,{hasRefs:e,isActiveSha:t,left:0,type:n,width:o+(n===Oe?uo:0)})}var _l=function({hasActive:e,overflowCount:t}){return i().createElement("span",{className:me()("overflow-count ml1",{"is-active":e}),"data-test-class":"overflow-count"},"+",t)};const Tl={};class El extends i().PureComponent{refPopoverTarget;isContextMenuShown=!1;static defaultProps={style:{}};componentWillReceiveProps(e){this.props.hasRefs||!this.props.isSingleSelected||e.isSingleSelected||this.props.hoveredRefZoneSha!==this.props.sha||(this.props.refZoneUnhovered(),this.props.hoveredRefGroup&&this.props.refNodeUnhovered(void 0,this.props.hoveredRefGroup,this.props.sha))}getRefPopoverTarget=()=>this.refPopoverTarget;onCustomToggleRefNodesShown=(e,t,o,n)=>{this.props.onToggleRefNodesShown(e,t,o,n),this.props.refZoneUnhovered()};render(){const{enabledRefMetadataTypes:e,column:t,context:o,showGhostRefsOnRowHover:n,hasActive:r,hasRefs:s,hasTimeline:l,hoveredRefGroup:a,hoveredRefZoneSha:c,getExternalIcon:h,includeOnlyRefsById:d,includeOnlyRemotesByName:u,isContainerWindowFocused:p,isInUnsupportedRebase:f,numGraphColumns:m,onClickRef:g,onDoubleClickRef:v,onMissingRefMetadata:y,refGroupContexts:w,refGroupsByName:S,refMetadata:b,refNodeHovered:C,refNodeUnhovered:x,refZoneHovered:R,refZoneUnhovered:_,sha:T,showContextMenuForGroupedRef:E,style:O,translate:M,type:I,width:z}=this.props,k=c===T&&p,G={minWidth:z,width:z},P={...O,...G},A=l?i().createElement(Qs,null):null,H=S.length,L=e=>{R(T),H?C(e,S[0],T):a&&x(e,a,T)},N=e=>{p&&this.isContextMenuShown?this.isContextMenuShown=!1:(_(),a&&x(e,a,T))},D=function(e,t,o,n,r,i){const s=e+t+o.toString()+n.toString()+r+i.toString();let l=Tl[s];return l||(l=me()("column-"+(t%r+1),"flex","pb3","pt3","ref-zone","relative",e,{"dim-ref":i,"has-active":n,z6:o,z1:!o}),Tl[s]=l,l)}(I,t,k,r,m,H>0&&!s&&n);if(!H)return i().createElement("div",{className:D,onMouseEnter:L,onWheel:N,style:P},A);const W=G,B=H-1,F=B>0&&!k?i().createElement(_l,{hasActive:r,overflowCount:B}):null;return i().createElement("div",{className:D,onMouseEnter:L,onMouseLeave:N,onWheel:N,style:P},i().createElement("div",{ref:e=>this.refPopoverTarget=e}),A,i().createElement("div",{className:"flex",style:W},i().createElement(bl,{column:t,context:o,enabledRefMetadataTypes:e,getExternalIcon:h,getTargetRef:this.getRefPopoverTarget,hasActive:r,hasRefs:s,includeOnlyRefsById:d,includeOnlyRemotesByName:u,isHovered:k,isInUnsupportedRebase:f,numGraphColumns:m,onClickRef:g,onDoubleClickRef:v,onMissingRefMetadata:y,onToggleRefNodesShown:this.onCustomToggleRefNodesShown,refGroupContexts:w,refGroupsByName:S,refMetadata:b,refNodeHovered:C,sha:T,showContextMenuForGroupedRef:(e,t,o)=>{L(e),this.isContextMenuShown=!0,E(e,t,o)},translate:M}),F),s?i().createElement("div",{className:"absolute left-0 flex z1",style:G},i().createElement(xl,{hasRefs:!0,isActiveSha:r,left:2,type:I,width:"100%"})):null)}}var Ol=(e,t)=>{const{enabledRefMetadataTypes:o,showGhostRefsOnRowHover:n,onDoubleClickRef:r,processedRows:s,includeOnlyRefsById:l,includeOnlyRemotesByName:a,isContainerWindowFocused:c,isInUnsupportedRebase:h,getExternalIcon:d,hoveredRefGroup:u,hoveredRefZoneSha:p,numGraphColumns:f,onClickRef:m,onMissingRefMetadata:g,onShowContextMenuForGroupedRef:v,onRefNodeHovered:y,onRefNodeUnhovered:w,onRefZoneHovered:S,onRefZoneUnhovered:b,onToggleRefNodesShown:C,refMetadataById:x,translate:R}=e,_=new ln(e);return({rowIndex:e,style:T})=>{const E=t(e),O=s[e],M=_.getZoneWidth(xo),I=_.isHovering(e),{sha:z,type:k,hasRefs:G,contexts:P}=O,A=P?.ref||void 0,H=P?.refGroups||void 0,L=_.isSingleSelected(e),N=(n||G)&&(G||I||L)?_.getGraphRefGroupsByNameForRow(e):[];return i().createElement(El,{column:O.column,context:A,enabledRefMetadataTypes:o,getExternalIcon:d,hasActive:_.rowContainsCurrentHeadRef(O),hasRefs:G||!1,hasTimeline:_.hasTimeline(e),hoveredRefGroup:u,hoveredRefZoneSha:p,includeOnlyRefsById:l,includeOnlyRemotesByName:a,isContainerWindowFocused:c,isInUnsupportedRebase:h,isSingleSelected:L,key:E,numGraphColumns:f,onClickRef:m,onDoubleClickRef:r,onMissingRefMetadata:g,onToggleRefNodesShown:C,refGroupContexts:H,refGroupsByName:N,refMetadata:x,refNodeHovered:y,refNodeUnhovered:w,refZoneHovered:S,refZoneUnhovered:b,sha:z,showContextMenuForGroupedRef:v,showGhostRefsOnRowHover:n,style:T,translate:R,type:k,width:M})}};function Ml({className:e,marginLeft:t}){return i().createElement("div",{className:me()("app-bg0","absolute","left-0","right-0","bottom-0","top-0","pt3","pb3",e),style:{marginLeft:t}},i().createElement("div",{className:"commit-bg-color height-100-percent width-100-percent"}))}const Il=e=>to+io*e+11;function zl({column:e}){return i().createElement(Ml,{className:"z1",marginLeft:Il(e)})}function kl(){return i().createElement(Ml,{marginLeft:0})}function Gl(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}function Pl(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+6*(t-e)*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function Al(e){const t=e.h/360,{s:o,l:n,a:r}=e;let i,s,l;if(0===o)i=s=l=n;else{const e=n<.5?n*(1+o):n+o-n*o,r=2*n-e;i=Pl(r,e,t+1/3),s=Pl(r,e,t),l=Pl(r,e,t-1/3)}return{type:"rgba",r:Math.round(255*i),g:Math.round(255*s),b:Math.round(255*l),a:r}}const Hl=/^((?:rgb|hsl)a?)\((-?\d+%?)[,\s]+(-?\d+%?)[,\s]+(-?\d+%?)[,\s]*(-?[\d.]+%?)?\)$/i;function Ll(e){if(0===(e=e.trim()).length)return null;if(35===e.charCodeAt(0))return function(e){const t=(e=e.trim()).length;if(0===t)return null;if(35!==e.charCodeAt(0))return null;if(7===t)return{type:"rgba",r:16*Gl(e.charCodeAt(1))+Gl(e.charCodeAt(2)),g:16*Gl(e.charCodeAt(3))+Gl(e.charCodeAt(4)),b:16*Gl(e.charCodeAt(5))+Gl(e.charCodeAt(6)),a:1};if(9===t)return{type:"rgba",r:16*Gl(e.charCodeAt(1))+Gl(e.charCodeAt(2)),g:16*Gl(e.charCodeAt(3))+Gl(e.charCodeAt(4)),b:16*Gl(e.charCodeAt(5))+Gl(e.charCodeAt(6)),a:(16*Gl(e.charCodeAt(7))+Gl(e.charCodeAt(8)))/255};if(4===t){const t=Gl(e.charCodeAt(1)),o=Gl(e.charCodeAt(2)),n=Gl(e.charCodeAt(3));return{type:"rgba",r:16*t+t,g:16*o+o,b:16*n+n,a:1}}if(5===t){const t=Gl(e.charCodeAt(1)),o=Gl(e.charCodeAt(2)),n=Gl(e.charCodeAt(3)),r=Gl(e.charCodeAt(4));return{type:"rgba",r:16*t+t,g:16*o+o,b:16*n+n,a:(16*r+r)/255}}return null}(e);const t=Hl.exec(e);if(null==t)return null;const o=t[1];let n;switch(o){case"rgb":case"hsl":n=[parseInt(t[2],10),parseInt(t[3],10),parseInt(t[4],10),1];break;case"rgba":case"hsla":n=[parseInt(t[2],10),parseInt(t[3],10),parseInt(t[4],10),parseFloat(t[5])];break;default:return null}return"hsl"===o||"hsla"===o?Al({h:n[0],s:n[1],l:n[2],a:n[3]}):{type:"rgba",r:n[0],g:n[1],b:n[2],a:n[3]}}const Nl=e=>{return"hsla"===(t=Ll(e)).type&&(t=Al(t)),(299*t.r+587*t.g+114*t.b)/1e3<128?"#FFFFFF":"#000000";var t};class Dl extends i().Component{overlayTriggerRef;constructor(e){super(e),this.state={tooltipText:""}}componentDidUpdate(e,t){this.overlayTriggerRef&&this.state.tooltipText!==t.tooltipText&&this.overlayTriggerRef.show()}getMaybeDefaultAvatar=(e,t)=>{const{authorInitials:o,classes:n,column:r,context:s,cssVariables:l,divStyle:a,fontSize:c,minWidth:h,size:d,title:u=""}=this.props,p=void 0!==r&&l[Re(r)]||Kt,f=Nl(p.trim()),m={alignItems:"center",backgroundColor:p,backgroundSize:d,color:f,display:"flex",fontSize:c+"px",fontWeight:"bold",height:e,justifyContent:"center",minWidth:h,width:t,...a},g=["avatar","gravatar","rad2",...n||[]].join(" ").trim();return i().createElement("div",{className:g,"data-vscode-context":Bo(s),style:m,title:u},o?o.toUpperCase():"")};ensureTooltipText=()=>{const{tooltip:e}=this.props;this.setState({tooltipText:"function"==typeof e?e():e})};setOverlayTriggerRef=e=>{this.overlayTriggerRef=e};render(){const{tooltipText:e}=this.state,{avatarUrl:t,classes:o,context:n,divStyle:r,height:s,minWidth:l,size:a,title:c="",tooltip:h,useAuthorInitialsForAvatars:d,width:u}=this.props,p=s||a,f=u||a;let m;if(d||!t)m=this.getMaybeDefaultAvatar(p,f);else{const e={height:p,width:f,backgroundImage:`url('${t}')`,backgroundSize:a,minWidth:l,...r},s=["avatar","gravatar","rad2",...o||[]].join(" ").trim();m=i().createElement("div",{className:s,"data-test-class":"avatar","data-vscode-context":Bo(n),style:e,title:c})}return h?i().createElement(Sn,{delayShow:250,key:e,onEnter:this.ensureTooltipText,overlay:i().createElement(xn,{id:"graph-gravatar-tooltip"},e),placement:"top",ref:this.setOverlayTriggerRef,trigger:["hover","focus"]},m):m}}const Wl=({authorEmail:e,authorInitials:t,authorName:o,avatarUrl:n,column:r,context:s,cssVariables:l,left:a,message:c,opacity:h,type:d,useAuthorInitialsForAvatars:u})=>i().createElement(Dl,{authorInitials:t,avatarUrl:n,classes:["node",`${d}`,"z6"],column:r,context:s,cssVariables:l,divStyle:{left:a,opacity:h},fontSize:10,height:so,size:co,tooltip:()=>{const t=o&&""!==o.trim()&&"Unknown"!==o?ml(o,e):e,n=function(e){const t=[];for(let o=Ts.exec(e);null!==o;o=Ts.exec(e)){const[,e,n]=o;t.push({name:e,email:n})}return t}(function(e,t="\n"){return e.replace("\n"===t?_s:new RegExp(`^.*(:?${t}){0,2}`,"m"),"")}(c||""));let r="";if(0===n.length)r=t;else{n.unshift({email:e,name:o});for(let e=0;e<n.length;e+=1){const t=n[e];r+=ml(t.name,t.email),e<n.length-1&&(r+=", ")}}return r},useAuthorInitialsForAvatars:u,width:so});class Bl extends i().PureComponent{render(){const{authorEmail:e,authorName:t,getExternalIcon:o,left:n,opacity:r,type:s}=this.props;return(t||e)&&s===Te?Wl(this.props):s===Oe||s===Ee||s===Me?((e,t,o,n,r)=>{const s={height:12,left:o+5,opacity:n},l=me()("node",r,"z6"),a=i().createElement(xn,{id:"graph-merge-node-tooltip"},ml(t,e));return i().createElement(Sn,{delayShow:250,overlay:a,placement:"bottom",trigger:["hover","focus"]},i().createElement("div",{className:l,"data-test-class":"tree-row-commit-node",style:s}))})(e,t,n,r,s):((e,t,o,n,r)=>{const s={height:so,left:o,opacity:n},l=me()("node",r,"z6");return i().createElement("div",{className:l,"data-test-class":"tree-row-commit-node",style:s},r===Ie?e("stash"):null)})(o,0,n,r,s)}}class Fl extends i().Component{render(){const{columnColorByColumn:e,edgeColumnMax:t,edges:o,nodeColumn:n}=this.props,r=qs(o,t,n,e);return i().createElement("div",{className:"absolute top-0 right-0 bottom-0 left-0 z2",style:{background:r}})}}var jl=Fl;function Ul({boxShadowAlpha:e,boxShadowLeft:t,children:o,className:n="",left:r,width:s}){return i().createElement("div",{className:me()("absolute","top-0","bottom-0","z3",n),style:{boxShadow:`${t}px 5px 10px rgba(0, 0, 0, ${e})`,left:r,width:s}},o)}function Zl({boxShadowAlpha:e,hasTimeline:t,scrollLeft:o,width:n}){return i().createElement(Ul,{boxShadowAlpha:e,boxShadowLeft:5,className:"app-bg0 left-0",left:o,width:n},t?i().createElement(Qs,{z2:!0}):null)}function Vl({boxShadowAlpha:e,commitZoneWidth:t,hasTimeline:o,scrollLeft:n,width:r}){return i().createElement(Ul,{boxShadowAlpha:e,boxShadowLeft:-5,left:n+t-r,width:r},o?i().createElement(Qs,{z2:!0}):null,i().createElement(kl,null))}class $l extends i().PureComponent{render(){const{authorEmail:e,authorName:t,avatarContext:o,avatarUrl:n,clearCurrentlyHoveredGraphCommit:r,column:s,columnColorByColumn:l,commitZoneWidth:a,cssVariables:c,currentlyHoveredCommitSha:h,edgeColumnMax:d,edges:u,hasRefs:p,hasTimeline:f,getExternalIcon:m,isActiveSha:g,isInUnsupportedRebase:v,isSelected:y,leftGutterBoxShadowAlpha:w,leftGutterWidth:S,message:b,nodeOffset:C,nodeOpacity:x,numGraphColumns:R,onContextMenu:_,onClickCommit:T,onDoubleClickCommit:E,rightGutterBoxShadowAlpha:O,rightGutterWidth:M,rowContext:I,scrollLeft:z,setAsCurrentlyHoveredGraphCommit:k,sha:G,style:P,type:A,useAuthorInitialsForAvatars:H,zoneContext:L}=this.props,N=s%R+1,D=me()("relative","commit-zone","height-100-percent","pt3",A,`column-${N}`,{"is-selected":y,"has-active":g}),W=f?i().createElement(Qs,{z2:!0}):null,B=i().createElement("div",{className:D,"data-vscode-context":Bo(L),onContextMenu:v?void 0:e=>_(e,Ro,G),onDoubleClick:e=>E(e,Ro,G),onMouseDown:e=>T(e,Ro,G),onMouseEnter:e=>k(e,Ro,G,h),onMouseLeave:e=>r(e,Ro,G,h),style:P},W,i().createElement(Zl,{boxShadowAlpha:w,hasTimeline:f,scrollLeft:z,width:S}),i().createElement(Rl,{hasRefs:p,isActiveSha:g,nodeOffset:C,type:A}),i().createElement(Bl,{authorEmail:e,authorInitials:fl(t),authorName:t,avatarUrl:n,column:s,context:o,cssVariables:c,getExternalIcon:m,left:C,message:b,opacity:x,type:A,useAuthorInitialsForAvatars:H}),i().createElement(zl,{column:s}),i().createElement(jl,{columnColorByColumn:l,edgeColumnMax:d,edges:u,nodeColumn:s}),i().createElement(Vl,{boxShadowAlpha:O,commitZoneWidth:a,hasTimeline:f,scrollLeft:z,width:M}));return I?i().createElement("div",{"data-vscode-context":Bo(I)},B):B}}var Yl=function(e,t){const{avatarUrlByEmail:o,onMissingAvatar:n,clearCurrentlyHoveredGraphCommit:r,columnColorByColumn:s,cssVariables:l,currentlyHoveredCommitSha:a,processedRows:c,getExternalIcon:h,isInUnsupportedRebase:d,leftGutterBoxShadowAlpha:u,leftGutterWidth:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,nodeOffsetByColumn:v,nodeOpacityByColumn:y,numGraphColumns:w,rightGutterBoxShadowAlpha:S,rightGutterWidth:b,setAsCurrentlyHoveredGraphCommit:C,scrollLeft:x,useAuthorInitialsForAvatars:R}=e,_=new ln(e);return({rowIndex:e,style:T})=>{const E=t(e),O=c[e],M=_.getZoneWidth(Ro),{email:I,author:z,contexts:k,message:G,sha:P,type:A}=O,H=O.column,L=k?.graph||void 0,N=k?.avatar||void 0,D=k?.row||void 0;let W;return R||(W=o[I],W||n(I,P)),i().createElement($l,{authorEmail:I,authorName:z,avatarContext:N,avatarUrl:W,clearCurrentlyHoveredGraphCommit:r,column:H,columnColorByColumn:s,commitZoneWidth:M,cssVariables:l,currentlyHoveredCommitSha:a,edgeColumnMax:O.edgeColumnMaxes,edges:O.edges,getExternalIcon:h,hasRefs:O.hasRefs||!1,hasTimeline:_.hasTimeline(e),isActiveSha:_.rowContainsCurrentHeadRef(O),isInUnsupportedRebase:d,isSelected:_.isSelected(e),key:E,leftGutterBoxShadowAlpha:u,leftGutterWidth:p,message:G,nodeOffset:v[H],nodeOpacity:y[H],numGraphColumns:w,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rightGutterBoxShadowAlpha:S,rightGutterWidth:b,rowContext:D,scrollLeft:x,setAsCurrentlyHoveredGraphCommit:C,sha:P,style:T,type:A,useAuthorInitialsForAvatars:R,zoneContext:L})}};var ql=(e,t)=>{const{translate:o,processedRows:n}=e,r=me()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative"),s=new ln(e);return({rowIndex:e,style:l})=>{const a=t(e),c=me()("graph-row","height-100-percent","flex"),h=s.hasTimeline(e),d=n[e],u=d.contexts?.row||void 0,p=d.timeLineEntry?.label||"",f=d.timeLineEntry?.value||0,m=h?i().createElement(Qs,null):null,g=h?i().createElement("span",{className:"time-line-message-container"},i().createElement("span",{className:"time-line-message"},o(p,f))):null;return i().createElement("div",{className:r,"data-vscode-context":Bo(u),key:a,style:l},m,i().createElement("div",{className:c,"data-vscode-context":Bo(u)},g))}};class Kl extends i().PureComponent{graphContainerRef=i().createRef();resizeObserver;isSelectedBySha={};processedGraphRowBySha={};childrenBySha={};scrollToSha;lastLazyLoadHeight=0;lastTopVisibleRowIndex=-1;lastBottomVisibleRowIndex=-1;maxColumns=0;orderedGraphRows=[];rowStatsConstraints={min:0,max:0};shouldFireShowMoreCommits=!0;columnsToFreeWhenFound={};reserverInfoBySha={};columnsUsed={};workDirStats=Ao;excludeByType={};excludeRefsById={};includeOnlyRefsById={};excludeRemotesByName={};includeOnlyRemotesByName={};scrollLeft=0;scrollTop=0;graphHeight=585;graphWidth=804;graphZonesByType={};graphZoneOrdering=[xo,Ro,_o,To,Mo,Eo,Oo];missingAvatarsTimer;pendingMissingAvatars={};requestedMissingAvatars={};missingRefsMetadataTimer;pendingMissingRefsMetadata={};requestedMissingRefsMetadata={};markerRowIndices={};timelinesInterval;constructor(e){super(e),this.resizeObserver=new ResizeObserver((e=>e.forEach((e=>this.onGraphResized(e.contentRect.width,e.contentRect.height))))),this.isSelectedBySha=this.props.isSelectedBySha||{},this.excludeByType=this.props.excludeByType||{},this.excludeRefsById=this.props.excludeRefsById||{},this.excludeRemotesByName=this.getExcludeRemotesByName(),this.includeOnlyRemotesByName=this.getIncludeOnlyRemotesByName(),this.includeOnlyRefsById=this.props.includeOnlyRefsById||{},this.workDirStats=this.props.workDirStats||this.workDirStats,this.processRows(this.props.graphRows),this.cleanupSelections(),this.updateMarkerRowIndices([Io.Selection,Io.Highlights]);const t=_e(this.props.cssVariables);this.state={avatarUrlByEmail:this.props.avatarUrlByEmail||{},contexts:this.props.contexts,cssVariablesWithDefaults:t,columnColorByColumn:this.getColumnColorByColumn(t),currentlyHoveredCommitSha:void 0,dimMergeCommits:this.props.dimMergeCommits||!1,dimRowsOfSelectedCommit:!1,highlightRowsOnRefHover:this.props.highlightRowsOnRefHover||!1,showGhostRefsOnRowHover:this.props.showGhostRefsOnRowHover||!1,showRemoteNamesOnRefs:this.props.showRemoteNamesOnRefs||!1,enabledRefMetadataTypes:this.props.enabledRefMetadataTypes||[],enabledScrollMarkerTypes:this.props.enabledScrollMarkerTypes||[],graphZones:this.initializeGraphZones(this.props.columnsSettings,this.graphZoneOrdering,580),hasMoreCommits:this.props.hasMoreCommits||!1,height:this.graphHeight,highlightedShas:this.props.highlightedShas,hoveredRefGroup:void 0,hoveredRefZoneSha:void 0,isContainerWindowFocused:void 0===this.props.isContainerWindowFocused||this.props.isContainerWindowFocused,isLoadingRows:this.props.isLoadingRows||!1,numGraphColumns:this.getNumGraphColumns(t),processedRows:[...this.orderedGraphRows],refMetadataById:this.props.refMetadataById,useAuthorInitialsForAvatars:this.props.useAuthorInitialsForAvatars||!1,scrollLeft:this.getScrollLeft(),scrollToAlignment:this.getScrollToAlignment(),scrollToIndex:this.getScrollToIndex(),scrollTop:this.getScrollTop(),shaLength:this.props.shaLength,themeOpacityFactor:this.props.themeOpacityFactor||go,width:this.graphWidth,workDirStats:this.workDirStats}}componentDidMount(){this.resizeObserver.observe(this.graphContainerRef.current),window.addEventListener("keydown",this.onWindowKeyDown),window.addEventListener("keyup",this.onWindowKeyUp),window.addEventListener("blur",this.onWindowBlur);const e=this.isSelectedBySha?this.getSelectedShas():[];e.length>0&&this.selectCommits(e,!1,!0)}componentWillReceiveProps(e){let t=!1,o=!1;if(this.props.highlightedShas!==e.highlightedShas){this.setState({highlightedShas:e.highlightedShas});const t=Object.keys(e.highlightedShas||{}).filter((t=>e.highlightedShas[t])),o=[];t.forEach((e=>{void 0!==this.processedGraphRowBySha[e]?.rowIndex&&o.push(this.processedGraphRowBySha[e].rowIndex)})),this.markerRowIndices={...this.markerRowIndices,[Io.Highlights]:o}}if(this.props.isSelectedBySha!==e.isSelectedBySha&&this.selectCommits(e.isSelectedBySha?Object.keys(e.isSelectedBySha):[],!1,!0),this.props.excludeByType!==e.excludeByType&&(this.excludeByType=e.excludeByType||{},e.graphRows?.length&&(o=!0)),this.props.excludeRefsById!==e.excludeRefsById&&(this.excludeRefsById=e.excludeRefsById||{},this.excludeRemotesByName=this.getExcludeRemotesByName(),e.graphRows?.length&&(o=!0)),this.props.includeOnlyRefsById!==e.includeOnlyRefsById&&(this.includeOnlyRefsById=e.includeOnlyRefsById||{},this.includeOnlyRemotesByName=this.getIncludeOnlyRemotesByName(),e.graphRows?.length&&(o=!0)),this.props.themeOpacityFactor!==e.themeOpacityFactor&&this.setState({themeOpacityFactor:e.themeOpacityFactor}),this.props.dimMergeCommits!==e.dimMergeCommits&&this.setState({dimMergeCommits:e.dimMergeCommits||!1}),this.props.highlightRowsOnRefHover!==e.highlightRowsOnRefHover&&this.setState({highlightRowsOnRefHover:e.highlightRowsOnRefHover||!1}),this.props.showGhostRefsOnRowHover!==e.showGhostRefsOnRowHover&&this.setState({showGhostRefsOnRowHover:e.showGhostRefsOnRowHover||!1}),this.props.showRemoteNamesOnRefs!==e.showRemoteNamesOnRefs&&this.setState({showRemoteNamesOnRefs:e.showRemoteNamesOnRefs||!1}),this.props.enabledRefMetadataTypes!==e.enabledRefMetadataTypes&&this.setState({enabledRefMetadataTypes:e.enabledRefMetadataTypes||[]}),this.props.enabledScrollMarkerTypes!==e.enabledScrollMarkerTypes&&this.setState({enabledScrollMarkerTypes:e.enabledScrollMarkerTypes||[]}),this.props.isContainerWindowFocused!==e.isContainerWindowFocused&&this.setState({dimRowsOfSelectedCommit:!1,isContainerWindowFocused:void 0===e.isContainerWindowFocused||e.isContainerWindowFocused}),this.props.graphRows!==e.graphRows||this.props.cssVariables!==e.cssVariables||o){this.cleanEdgeCaches();const n=_e(e.cssVariables);this.processRows(e.graphRows),this.setState({columnColorByColumn:this.getColumnColorByColumn(n),cssVariablesWithDefaults:n,numGraphColumns:this.getNumGraphColumns(n),processedRows:[...this.orderedGraphRows]}),this.updateCommitZoneContentWidthFromGraphRowsChange(),this.cleanupSelections(),t=!0,(e.graphRows?.length<this.props.graphRows?.length||o)&&(this.lastLazyLoadHeight=0)}if(this.props.useAuthorInitialsForAvatars!==e.useAuthorInitialsForAvatars&&this.setState({useAuthorInitialsForAvatars:e.useAuthorInitialsForAvatars}),this.props.shaLength!==e.shaLength&&this.setState({shaLength:e.shaLength}),this.props.hasMoreCommits!==e.hasMoreCommits&&this.setState({hasMoreCommits:e.hasMoreCommits||!1}),this.props.isLoadingRows!==e.isLoadingRows&&this.setState({isLoadingRows:e.isLoadingRows||!1}),this.props.workDirStats!==e.workDirStats&&(this.workDirStats=e.workDirStats||Ao,!tn(this.props.workDirStats)&&tn(e.workDirStats)||tn(this.props.workDirStats)&&!tn(e.workDirStats)?(this.processRows(e.graphRows),this.setState({processedRows:[...this.orderedGraphRows],workDirStats:this.workDirStats})):this.setState({workDirStats:this.workDirStats})),this.props.avatarUrlByEmail!==e.avatarUrlByEmail&&(this.setState({avatarUrlByEmail:e.avatarUrlByEmail||{}}),this.requestedMissingAvatars={}),this.props.refMetadataById!==e.refMetadataById&&(this.setState({refMetadataById:e.refMetadataById}),this.requestedMissingRefsMetadata={}),this.props.columnsSettings!==e.columnsSettings&&e.columnsSettings&&(this.updateZonesFromSettings(e.columnsSettings),t=!0),this.props.contexts!==e.contexts&&this.setState({contexts:e.contexts}),t){const e=this.getOrderedActiveGraphZones();this.ensureZoneWidthsMatchGraphWidth(e,this.graphWidth),this.setState({graphZones:e})}}componentWillUnmount(){window.removeEventListener("keydown",this.onWindowKeyDown),window.removeEventListener("keyup",this.onWindowKeyUp),window.removeEventListener("blur",this.onWindowBlur),this.resizeObserver.disconnect()}onGraphVisibleRowsUpdatedThrottled=((e,t,o)=>{let n,r,i=!1,s=t;return(...l)=>{void 0!==o&&(r=(new Date).getTime(),s=!n||r-n>s+o?o:t),i||(e(...l),n=(new Date).getTime(),i=!0,setTimeout((()=>{i=!1}),s))}})((()=>this.onGraphVisibleRowsUpdated()),250,20);onBlurWipNodeInput=e=>{this.props.onBlurWipNodeInput&&this.props.onBlurWipNodeInput(e)};onDoubleClickRef=(e,t,o,n)=>{this.props.onDoubleClickGraphRef&&this.props.onDoubleClickGraphRef(e,t,this.processedGraphRowBySha[o],n)};onFocusWipNodeInput=e=>{this.props.onFocusWipNodeInput&&this.props.onFocusWipNodeInput(e)};onCurrentlyHoveredGraphCommit=(e,t,o,n)=>{n!==o&&(this.props.onGraphRowHovered&&this.props.onGraphRowHovered(e,t,this.processedGraphRowBySha[o]),this.setState({currentlyHoveredCommitSha:o}))};onClearCurrentlyHoveredGraphCommit=(e,t,o,n)=>{n&&(this.props.onGraphRowUnhovered&&this.props.onGraphRowUnhovered(e,t,this.processedGraphRowBySha[o]),this.setState({currentlyHoveredCommitSha:void 0}))};onGraphColumnReOrdered=(e,t)=>{const o=this.graphZoneOrdering.indexOf(e);let n=t?this.graphZoneOrdering.indexOf(t):this.graphZoneOrdering.length-1;t&&o<n&&(n-=1),this.graphZoneOrdering.splice(o,1),this.graphZoneOrdering.splice(n,0,e);const r={};this.graphZoneOrdering.forEach(((e,t)=>{this.graphZonesByType[e].order=t,r[e]=this.getGraphColumnSettingFromZoneType(this.graphZonesByType[e])})),this.setState({graphZones:this.initializeGraphZones(r,this.graphZoneOrdering,this.graphWidth)}),this.props.onGraphColumnsReOrdered&&this.props.onGraphColumnsReOrdered(r)};onGraphZoneResize=Wo(((e,t)=>{if(t&&t.width){const o=this.getOrderedActiveGraphZones();this.adjustResizedGraphZone(o,e,t,!1),this.setState({graphZones:o})}}));onGraphZoneResizeEnd=Wo(((e,t)=>{if(t&&t.width){const o=this.getOrderedActiveGraphZones();this.adjustResizedGraphZone(o,e,t,!0),this.setState({graphZones:o})}this.props.onColumnResized&&this.props.onColumnResized(e.type,this.getGraphColumnSettingFromZoneType(this.graphZonesByType[e.type]))}));onPopupGraphHeaderContextMenu=()=>{};onMessageChange=e=>{this.props.onMessageChange&&this.props.onMessageChange(e)};onClickRef=(e,t,o,n)=>{this.props.onClickGraphRef&&this.props.onClickGraphRef(e,t,this.processedGraphRowBySha[o],n)};onClickCommit=(e,t,o)=>{if(0===e.button){const{enableMultiSelection:n}=this.props,r=this.isMacOSPlatform();if(n&&(!r&&e.ctrlKey||r&&e.metaKey)?this.selectCommits([o],!0,!1):n&&e.shiftKey||this.selectCommits([o],!1,!1),this.props.onClickGraphRow){const n=this.processedGraphRowBySha[o];this.props.onClickGraphRow(e,t,n)}}};onDoubleClickCommit=(e,t,o)=>{if(this.props.onDoubleClickGraphRow){const n=this.processedGraphRowBySha[o];this.props.onDoubleClickGraphRow(e,t,n)}};onWindowKeyUp=e=>{switch(e.keyCode){case 91:this.isMacOSPlatform()&&this.dimRowsOfSelectedCommit(!1);break;case 17:this.isMacOSPlatform()||this.dimRowsOfSelectedCommit(!1)}};onWindowBlur=()=>{this.dimRowsOfSelectedCommit(!1)};onWindowKeyDown=e=>{switch(e.keyCode){case 91:this.isMacOSPlatform()&&this.dimRowsOfSelectedCommit(!0);break;case 17:this.isMacOSPlatform()||this.dimRowsOfSelectedCommit(!0);break;default:this.state.dimRowsOfSelectedCommit&&this.dimRowsOfSelectedCommit(!1)}};onKeyDown=e=>{switch(e.keyCode){case 38:this.selectPrevious(e.shiftKey);break;case 40:this.selectNext(e.shiftKey)}};onRefNodeHovered=(e,t,o)=>{(!this.props.showGhostRefsOnRowHover||nn(this.isSelectedBySha,o)||this.processedGraphRowBySha[o]?.hasRefs)&&(this.props.onGraphRefNodeHovered&&this.props.onGraphRefNodeHovered(e,t,this.processedGraphRowBySha[o]),this.setState({hoveredRefGroup:[...t]}))};onRefNodeUnhovered=(e,t,o)=>{this.props.onGraphRefNodeUnhovered&&this.props.onGraphRefNodeUnhovered(e,t,this.processedGraphRowBySha[o]),this.setState({hoveredRefGroup:void 0})};onRefZoneHovered=e=>{this.setState({hoveredRefZoneSha:e})};onRefZoneUnhovered=()=>{this.setState({hoveredRefZoneSha:void 0})};onShowMoreCommits=()=>{this.props.onShowMoreCommits&&this.shouldFireShowMoreCommits&&(this.props.onShowMoreCommits(),this.shouldFireShowMoreCommits=!1,setTimeout((()=>{this.shouldFireShowMoreCommits=!0}),100))};onScrollForZone=(e,t,o,n,r)=>{if(this.setScroll(e,t),this.props.onScrollForZone&&this.props.onScrollForZone(e,t),!this.props.onShowMoreCommits||!r||!n||n<0||!this.scrollTop||this.scrollTop<0||!this.orderedGraphRows?.length)return;const i=this.scrollTop+n,s=this.orderedGraphRows.length*Xt;i>s-Jt&&i>this.lastLazyLoadHeight&&(this.lastLazyLoadHeight=Math.min(i,s-1),this.onShowMoreCommits())};onScrollToRowCausedUpdateForRefZone=(e,t)=>{this.setScroll(e,t),this.props.onScrollToRowCausedUpdateForRefZone&&this.props.onScrollToRowCausedUpdateForRefZone(e,t)};onCommitContextMenu=(e,t,o)=>{if(this.props.onRowContextMenu){const n=this.processedGraphRowBySha[o];this.props.onRowContextMenu(e,t,n)}};onRefContextMenu=(e,t,o)=>{if(this.props.onRefContextMenu){const n=this.processedGraphRowBySha[o];this.props.onRefContextMenu(e,t,n)}};onWipNodeInputWillUnmount=()=>{this.props.onWipNodeInputWillUnmount&&this.props.onWipNodeInputWillUnmount()};selectCommits(e,t,o){t||Object.keys(this.isSelectedBySha).forEach((t=>{e.includes(t)||delete this.isSelectedBySha[t]}));const n=this.processedGraphRowBySha?Object.keys(this.processedGraphRowBySha):[];if(e.forEach((e=>{n.includes(e)&&(this.isSelectedBySha[e]=!t||!this.isSelectedBySha[e]||!this.isSelectedBySha[e],this.isSelectedBySha[e]&&this.selectSha(e,o))})),this.props.onSelectGraphRows){const e=this.getSelectedShas().map((e=>this.processedGraphRowBySha[e]));this.props.onSelectGraphRows(e)}this.updateMarkerRowIndices([Io.Selection]),this.setState({processedRows:[...this.orderedGraphRows]})}getCommitZoneContentWidthBetweenGutters(){return this.getCurrentWidthByZone(Ro)-this.getLeftGutterWidth()-this.getRightGutterWidth()}getSelectedShas(){const e=[];return Object.keys(this.isSelectedBySha).forEach((t=>{this.isSelectedBySha[t]&&e.push(t)})),e}getExcludeRemotesByName(){const e={};return Object.values(this.excludeRefsById).forEach((t=>{t.type===Do.REMOTE&&t.owner&&"*"===t.name&&(e[t.owner]=!0)})),e}getIncludeOnlyRemotesByName(){const e={};return Object.values(this.includeOnlyRefsById).forEach((t=>{t.type===Do.REMOTE&&t.owner&&"*"===t.name&&(e[t.owner]=!0)})),e}clearScrollToIndex=()=>{setTimeout((()=>this.setState({scrollToIndex:void 0})),100)};getTopAndBottomVisibleRowIndex(){const{graphHeight:e,orderedGraphRows:t,scrollTop:o}=this,n=e||0;if(!n||!t||!t.length)return{top:-1,bottom:-1};const r=o/Xt,i=r+((n-26)/Xt-1);return{top:Math.max(Math.floor(r),0),bottom:Math.min(Math.ceil(i),t.length-1)}}getOffsetSha(e){const t=this.graphHeight||0,o=this.props.scrollRowPadding||0;if(!o||!t)return e;let n=o;if(n<=0)return e;const r=this.getTopAndBottomVisibleRowIndex(),i=r.top,s=r.bottom;if(-1===i||-1===s)return e;const l=Math.floor((s-i)/2);if(l<1)return e;n=Math.min(n,l);const a=this.orderedGraphRows.length,c=this.orderedGraphRows.findIndex((t=>t.sha===e));if(!c||!this.orderedGraphRows.length)return e;const h=s-n<c;return i+n>c?this.orderedGraphRows[Math.max(c-n,0)].sha||e:h&&this.orderedGraphRows[Math.min(c+n,a-1)].sha||e}selectSha(e,t=!1){const o=this.processedGraphRowBySha[e]?.column||0,n=this.getScrollLeft(),r=this.getCommitZoneContentWidthBetweenGutters(),i=this.getCurrentWidthByZone(Ro),s=this.getCommitZoneContentWidth(),l=o*io,a=n-to/3<=l,c=l<=n+r,h=Math.max(0,s-i),d=a&&c?n:Wt(l-r/2,0,h);this.setScrollToSha(t?this.getOffsetSha(e):e,d),this.setState({scrollToAlignment:this.getScrollToAlignment(),scrollToIndex:this.getScrollToIndex()},this.clearScrollToIndex)}updateWidthByZone(e,t,o){const n=this.getOrderedActiveGraphZones(),r=this.graphZonesByType[t],i=Ko(r,n,e);if(r.currentWidth=i,t===Ro){const e=Math.max(0,this.getCommitZoneContentWidth()-r.currentWidth);this.getScrollLeft()>e&&this.setScrollLeft(e)}o&&(r.preferredWidth=i)}updateCommitZoneContentWidthFromGraphRowsChange(){const e=this.graphZonesByType[Ro];if(!e.isHidden){const t=this.getOrderedActiveGraphZones(),o=this.getCommitZoneContentWidth();e.contentWidth=o,e.maximumWidth=o,e.currentWidth>o&&(e.currentWidth=Ko(e,t,o)),this.setState({graphZones:t})}}getCurrentWidthByZone(e){const t=this.graphZonesByType[e];return t&&!t.isHidden?t.currentWidth:0}getCommitZoneContentWidth(){return(this.maxColumns||1)*io+2*to+6}getCommitZoneWidth(){if(this.graphZonesByType[Ro])return this.graphZonesByType[Ro].currentWidth;const{columnsSettings:e}=this.props;return e&&e[Ro]?e[Ro].width:Go[Ro].minimumWidth}getSingleColumnModeFactor(){const e=this.maxColumns,t=this.getCurrentWidthByZone(Ro);return 1===e?0:Wt(1-(t-2*to-3)/io,0,1)}setScroll(e,t){null!=t.scrollTop&&this.setScrollTop(t.scrollTop),e===Ro&&null!=t.scrollLeft&&this.setScrollLeft(t.scrollLeft)}getNonAdjustedScrollLeft(){return this.scrollLeft}setScrollLeft(e){this.scrollLeft!==e&&(this.scrollLeft=e,this.setState({scrollLeft:e}))}getScrollLeft(){const e=this.getNonAdjustedScrollLeft();return this.getCommitZoneContentWidth()!==this.getCommitZoneWidth()?e:0}setScrollTop(e){this.scrollTop!==e&&(this.scrollTop=e,this.setState({scrollTop:e}),this.onGraphVisibleRowsUpdatedThrottled())}getScrollTop(){return this.scrollTop}getScrollToSha(){return this.scrollToSha}setScrollToSha(e,t){this.scrollToSha=e,this.setScrollLeft(t),this.onGraphVisibleRowsUpdated()}getScrollToIndex(){const e=this.getScrollToSha();return this.orderedGraphRows.findIndex((t=>t.sha===e))}getScrollToAlignment(){return"auto"}getMinNodeOffset(){const e=this.getScrollLeft(),t=this.getSingleColumnModeFactor();return(1-t)*(e+6)+t*(e+to)}getMaxNodeOffset(){const e=this.getCurrentWidthByZone(Ro),t=this.getScrollLeft(),o=this.getSingleColumnModeFactor();return(1-o)*(e+t+(3-to))+o*(t+to)}getAbsoluteNodeLeftByColumn(){const e={};for(let t=0;t<=this.maxColumns;t+=1)e[t]=to+io*t;return e}getNodeOffsetByColumn(){const e=this.getMinNodeOffset(),t=this.getMaxNodeOffset(),o=this.getAbsoluteNodeLeftByColumn(),n={};return Object.keys(o).forEach((r=>{const i=o[r];n[r]=Wt(i,e,t)})),n}getMaxNodeLeft(){return this.getScrollLeft()+(this.getCurrentWidthByZone(Ro)-io-3)}getMinNodeLeft(){return this.getScrollLeft()+3+this.getSingleColumnModeFactor()*to}getRightGutterSlideOutFactor(){const e=this.getCurrentWidthByZone(Ro),t=this.getCommitZoneContentWidth(),o=this.getSingleColumnModeFactor();return Wt((e-(t-(to+3)))/io,0,1)+o/2}getNodeOpacityByColumn(){const e=this.getMinNodeLeft(),t=this.getMaxNodeLeft(),o=this.getAbsoluteNodeLeftByColumn(),n=this.getRightGutterSlideOutFactor(),r=this.getSingleColumnModeFactor(),i={};return Object.keys(o).forEach((s=>{const l=o[s],a=l-(e-r*to),c=t+io-(l+to*(1-n)),h=Math.min(a,c);i[s]=.5+.5*Math.max(h/(to/2),r)})),i}getLeftGutterWidth(){const e=this.getSingleColumnModeFactor();return to+e*(to/2)}getRightGutterWidth(){return(1-this.getRightGutterSlideOutFactor())*to}getBoxShadowAlphaForGutter(e,t){return.4*(1-Math.max(e,t))}getLeftGutterBoxShadowAlpha(e){const t=this.getScrollLeft(),o=this.getSingleColumnModeFactor();return e*this.getBoxShadowAlphaForGutter(o,Wt(1-t/io,0,1))}getRightGutterBoxShadowAlpha(e){const t=this.getSingleColumnModeFactor(),o=this.getRightGutterSlideOutFactor();return e*this.getBoxShadowAlphaForGutter(t,o)}updateMarkerRowIndices(e){const t={...this.markerRowIndices};if(e.forEach((e=>{t[e]=[]})),e.includes(Io.Selection)){this.getSelectedShas().forEach((e=>{void 0!==this.processedGraphRowBySha[e]?.rowIndex&&t[Io.Selection].push(this.processedGraphRowBySha[e].rowIndex)}))}if(e.includes(Io.Highlights)){const e=this.state?.highlightedShas||this.props.highlightedShas||{};Object.keys(e).forEach((e=>{void 0!==this.processedGraphRowBySha[e]?.rowIndex&&t[Io.Highlights].push(this.processedGraphRowBySha[e].rowIndex)}))}this.markerRowIndices=t}getMarkerColors(){const e=getComputedStyle(document.body),t={};return Object.values(ko).forEach((o=>{const n=e.getPropertyValue(o.colorCssKey);n&&(t[o.type]=n)})),t}initializeGraphZones(e,t,o){this.graphZonesByType={};const n=[];let r=0;for(t.forEach(((t,o)=>{const i=e?e[t]:void 0,s=Go[t],l=i&&i.width?i.width:s.minimumWidth,a={...s,type:t,currentWidth:l,preferredWidth:l,isHidden:i?.isHidden||!1,order:s.isCustomizable&&void 0!==i?.order?i?.order:o};i?.isHidden||(r+=a.currentWidth),t===Ro&&(a.contentWidth=this.getCommitZoneContentWidth(),this.maxColumns>0&&(a.maximumWidth=a.contentWidth)),this.graphZonesByType[t]=a,a?.isHidden||n.push(a)})),n.forEach((e=>{const t=Ko(e,n,e.currentWidth);t!==e.currentWidth&&(r-=e.currentWidth,e.currentWidth=t,r+=t)}));r>o;){const e=Vo(n);if(!e)break;const t=e.currentWidth,i=r-o,s=Math.max(e.minimumWidth,t-i),l=t-s;this.graphZonesByType[e.type].currentWidth=s,r-=l}if(r<o){const e=t[t.length-1],r=o-Yo(n,e);this.graphZonesByType[e].currentWidth=r}return n}updateZonesFromSettings(e){let t=!1;this.graphZoneOrdering.forEach(((o,n)=>{const r=this.graphZonesByType[o],i=e?.[r.type];i&&(i.isHidden!==r.isHidden&&(t=!0,r.type!==Mo||i.isHidden||this.updateRowStatsConstraints()),r.isHidden=i.isHidden,r.order=r.isCustomizable&&void 0!==i?.order?i?.order:n)})),t&&this.graphZoneOrdering.forEach((e=>{const t=this.graphZonesByType[e];t.currentWidth=t.minimumWidth}))}getEdgeColumnMaxes(e){let t=0;const o=this.processedGraphRowBySha[e]?.edges||{};return Object.keys(o).forEach((e=>{t=Math.max(t,parseInt(e,10))})),t}getEndingAndPassThroughEdgesByColumnFromPrevRow(e,t){const o={};let n,r,i,s;return Object.keys(t).forEach((l=>{n=t[l],r=n.passThrough,i=n.starting,s=r&&!Rs(r.type)?r:i&&!Rs(i.type)?i:r||i||void 0,s&&(s.parentSha===e.sha?o[l]={ending:s}:o[l]={passThrough:s})})),o}getFinalEdgeStateForGraphAndRow(e,t){const o=this.getEndingAndPassThroughEdgesByColumnFromPrevRow(e,t),n=this.getStartingEdgesByColumn(e);let r;return Object.keys(n).forEach((e=>{o[e]||(o[e]={ending:void 0,passThrough:void 0,starting:void 0}),r=o[e],r.starting=n[e]})),o}loadEdgesBySha(){this.maxColumns=0,this.orderedGraphRows.forEach(((e,t)=>{const o=this.orderedGraphRows[t-1],n=o&&this.processedGraphRowBySha[o.sha]?.edges?this.processedGraphRowBySha[o.sha].edges:{};this.processedGraphRowBySha[e.sha].edges=this.getFinalEdgeStateForGraphAndRow(e,n);const r=this.getEdgeColumnMaxes(e.sha);this.processedGraphRowBySha[e.sha].edgeColumnMaxes=r,r>this.maxColumns&&(this.maxColumns=r)}))}processRows(e){this.loadRowsbySha(e||[]),this.loadEdgesBySha()}getStartingEdgesByColumn(e){const t={},o=e.parents;if(o.length>0){const n=e.type,r=this.processedGraphRowBySha[e.sha]?.column;void 0!==r&&(t[r]={parentSha:o[0],type:n});for(let e=1;e<o.length;e+=1){const r=o[e],i=this.processedGraphRowBySha[r]?.column;void 0!==i&&(t[i]={parentSha:r,type:n})}}return t}formatCommitDateTimeCallback=(e,t)=>this.props.formatCommitDateTime?this.props.formatCommitDateTime(e,t):Ce(e,"short+short");translateCallback=(e,...t)=>this.props.translate?this.props.translate(e,...t):xs[e]?function(e,t){if(0===t.length)return e;let o=e;return t.forEach(((e,t)=>{const n=new RegExp(`\\{${t}\\}`,"g");o=o.replace(n,e)})),o}(xs[e],t):`${e}`;getIconCallback=e=>this.props.getExternalIcon?this.props.getExternalIcon(e):i().createElement("span",null);onMissingAvatar=(e,t)=>{this.props.onEmailsMissingAvatarUrls&&!this.requestedMissingAvatars[e]&&(this.pendingMissingAvatars[e]=t,this.missingAvatarsTimer&&(clearTimeout(this.missingAvatarsTimer),this.missingAvatarsTimer=void 0),this.missingAvatarsTimer=setTimeout((()=>{const e={...this.pendingMissingAvatars};this.pendingMissingAvatars={};const t=Object.keys(e);for(let e=0;e<t.length;e+=1)this.requestedMissingAvatars[t[e]]=!0;t.length>0&&this.props.onEmailsMissingAvatarUrls&&this.props.onEmailsMissingAvatarUrls(e)}),100))};onMissingRefMetadata=(e,t)=>{if(!this.props.onRefsMissingMetadata||this.requestedMissingRefsMetadata[e])return;const o=this.pendingMissingRefsMetadata[e]||[],n=t.filter((e=>!o.includes(e)));this.pendingMissingRefsMetadata[e]=[...o,...n],this.missingRefsMetadataTimer&&(clearTimeout(this.missingRefsMetadataTimer),this.missingRefsMetadataTimer=void 0),this.missingRefsMetadataTimer=setTimeout((()=>{const e={...this.pendingMissingRefsMetadata};this.pendingMissingRefsMetadata={};const t=Object.keys(e);for(let e=0;e<t.length;e+=1)this.requestedMissingRefsMetadata[t[e]]=!0;t.length>0&&this.props.onRefsMissingMetadata&&this.props.onRefsMissingMetadata(e)}),100)};selectNext(e){const t=this.getSelectedShas(),o=t.length>0?t[t.length-1]:null;let n;if(e&&o){const e=this.processedGraphRowBySha[o];e?.parents?.length&&(n=e.parents[0])}else{const e=o?this.orderedGraphRows.findIndex((e=>e.sha===o)):-1,t=Math.min(e+1,this.orderedGraphRows.length-1);n=this.orderedGraphRows[t]?.sha}n&&this.selectCommits([n],!1,!0)}selectPrevious(e){const t=this.getSelectedShas(),o=t.length>0?t[0]:null;let n;if(e&&o){const e=this.childrenBySha[o];if(e?.length)for(let t=0;t<e.length;t+=1)if(t===e.length-1)n=e[t];else if(this.processedGraphRowBySha[e[t]]?.type!==Ie){n=e[t];break}}else{const e=o?this.orderedGraphRows.findIndex((e=>e.sha===o)):-1,t=Math.max(-1,e-1);n=this.orderedGraphRows[t]?.sha,t<0&&(n=this.orderedGraphRows[0]?.sha)}n&&this.selectCommits([n],!1,!0)}getAvailableColumnAndUseIt(){let e=0;for(;this.columnsUsed[e];)e+=1;return this.columnsUsed[e]=!0,e}getColumns(e){const t=e.parents||[],o=this.columnsToFreeWhenFound[e.sha];if(void 0!==o)for(let e=0;e<o.length;e+=1)delete this.columnsUsed[o[e]];let n=0;const r=this.reserverInfoBySha[e.sha];let i,s;r&&void 0!==r?.column?(n=r.column,delete this.reserverInfoBySha[e.sha]):n=this.getAvailableColumnAndUseIt();for(let o=0;o<t.length;o+=1)if(i=t[o],s=this.reserverInfoBySha[i],0===o&&void 0!==s?.column&&s?.column!==n){const t=this.columnsToFreeWhenFound[i]||[];s?.type===Ie&&e.type!==Ie&&r?.newestDate>s?.newestDate?(this.reserverInfoBySha[i]={type:e.type,newestDate:r?.newestDate,column:n},t.push(s.column)):t.push(n),this.columnsToFreeWhenFound[i]=t}else void 0===s?.column&&(this.reserverInfoBySha[i]={type:e.type,newestDate:r?.column===n?r?.newestDate:e.date,column:0===o?n:this.getAvailableColumnAndUseIt()});return n}getFilteredHeadsForGraphRow(e,t){return e.heads.filter((e=>t?void 0!==this.includeOnlyRefsById[Uo(Do.HEAD,e)]:!this.excludeByType.heads&&void 0===this.excludeRefsById[Uo(Do.HEAD,e)]))}getFilteredRemotesForGraphRow(e,t){return e.remotes.filter((e=>t?void 0!==this.includeOnlyRefsById[Uo(Do.REMOTE,e)]||!e.owner||void 0!==this.includeOnlyRemotesByName[e.owner]:!(this.excludeByType.remotes||void 0!==this.excludeRefsById[Uo(Do.REMOTE,e)]||e.owner&&void 0!==this.excludeRemotesByName[e.owner])))}getFilteredTagsForGraphRow(e,t,o){const n=t&&Object.values(this.includeOnlyRefsById).some((e=>e.type===Do.TAG)),r=t&&(this.getFilteredHeadsForGraphRow(e,t).length>0||this.getFilteredRemotesForGraphRow(e,t).length>0);return e.tags.filter((e=>n?void 0!==this.includeOnlyRefsById[Uo(Do.TAG,e)]:!this.excludeByType.tags&&void 0===this.excludeRefsById[Uo(Do.TAG,e)]&&(!t||r||o)))}loadRowsbySha(e){this.orderedGraphRows=[],this.processedGraphRowBySha={},this.childrenBySha={},this.reserverInfoBySha={},this.columnsToFreeWhenFound={},this.columnsUsed={};const t=new Map,o={},n=[],r=[],i=[],s=[],l=[],a=[],c={},h=[],d=void 0!==this.graphZonesByType[Mo]&&!this.graphZonesByType[Mo].isHidden;if(tn(this.workDirStats)&&e.length>0&&e[0].type!==ze){const t=function(e){return e.find(en)?.sha||void 0}(e),o={sha:ze,parents:t?[t]:[],author:"",email:"",date:(new Date).getTime(),message:"",type:ze,heads:[],remotes:[],tags:[],childRefs:{heads:[],tags:[],remotes:[]}};this.workDirStats.context&&(o.contexts={row:this.workDirStats.context}),e.unshift(o)}else!tn(this.workDirStats)&&e.length>0&&e[0].type===ze&&e.shift();const u=Object.keys(this.includeOnlyRefsById).length>0;e.forEach(((e,p)=>{const f=this.childrenBySha[e.sha]?.length>0,m=e.heads?.length>0?this.getFilteredHeadsForGraphRow(e,u):[],g=e.remotes?.length>0?this.getFilteredRemotesForGraphRow(e,u):[],v=e.tags?.length>0?this.getFilteredTagsForGraphRow(e,u,Boolean(c[e.sha]||f)):[],y=e.parents?.length>0?e.parents.filter((e=>!o[e])):[],w=m.length>0||g.length>0||v.length>0,S=m.length>0||g.length>0;if(e.type!==Te&&e.type!==Oe||c[e.sha]){if(e.type===Ie&&this.excludeByType.stashes&&(o[e.sha]=!0),!o[e.sha]&&y.length>0){let e;for(e of y)c[e]=!0}}else e.type!==Te&&e.type!==Oe||c[e.sha]||w||f||(o[e.sha]=!0);const b=o[e.sha],C={...e,heads:m,remotes:g,tags:v,parents:y,column:b?0:this.getColumns(e),edgeColumnMaxes:0,edges:{},hasRefs:w,messageInline:e.message.replace(/\n+(?:\s+\n+)?/g," | "),childRefs:{heads:[],tags:[],remotes:[]}};if(!b){let o;const c=t.get(e.sha);c?.length&&(c.sort(((e,t)=>{if(e.parentIndexScore<t.parentIndexScore)return-1;if(e.parentIndexScore>t.parentIndexScore)return 1;if(e.parentIndexScore===t.parentIndexScore){if(e.rowEntered<t.rowEntered)return-1;if(e.rowEntered>t.rowEntered)return 1}return 0})),o=c[0],C.childRefs={heads:[...o?.heads||[]],remotes:[...o?.remotes||[]],tags:[...o?.tags||[]]},t.delete(e.sha));for(let n=0;n<y.length;n+=1){const r=y[n];this.childrenBySha[r]||(this.childrenBySha[r]=[]),this.childrenBySha[r].push(e.sha);let i=t.get(r);(S||o)&&void 0===i&&(i=[],t.set(r,i)),S?i?.unshift({sha:e.sha,parentIndexScore:n,rowEntered:p,heads:m,remotes:g,tags:v}):o&&i?.unshift({...o,parentIndexScore:n,rowEntered:p})}const u=this.orderedGraphRows.length;C.rowIndex=u,m.length>0&&(i.push(u),m.some((e=>e.isCurrentHead))&&n.push(u)),g.length>0&&(s.push(u),g.some((e=>e.current))&&r.push(u)),v.length>0&&l.push(u),e.type===Ie&&a.push(u),this.orderedGraphRows.push(C),d&&C.stats&&h.push(C.stats.additions+C.stats.deletions)}this.processedGraphRowBySha[e.sha]=C})),this.markerRowIndices={...this.markerRowIndices,[Io.Head]:n,[Io.Upstream]:r,[Io.LocalBranches]:i,[Io.RemoteBranches]:s,[Io.Tags]:l,[Io.Stashes]:a},d&&(this.rowStatsConstraints=Fo(h)),clearInterval(this.timelinesInterval),this.updateTimelines(),this.timelinesInterval=setInterval((()=>{this.clearTimelines(),this.updateTimelines(),this.setState({processedRows:[...this.orderedGraphRows]})}),9e5),this.onGraphVisibleRowsUpdated()}updateRowStatsConstraints(){const e=[];for(const t of this.orderedGraphRows)t.stats&&e.push(t.stats.additions+t.stats.deletions);this.rowStatsConstraints=Fo(e)}updateTimelines(){const e=function(){const e=new Date,t={hour:[],day:[],week:[],month:[],year:[]},o=36e5,n=864e5;let r;for(r=1;r<=Po.hour;r+=1)t.hour.push({date:e.getTime()-r*o,label:1===r?"Timeline-1HourAgo":"Timeline-NHoursAgo",timeUnit:"hour",value:r});for(r=1;r<=Po.day;r+=1)t.day.push({date:e.getTime()-r*n,label:1===r?"Timeline-Yesterday":"Timeline-NDaysAgo",timeUnit:"day",value:r});for(r=1;r<=Po.week;r+=1)t.week.push({date:e.getTime()-6048e5*r,label:1===r?"Timeline-1WeekAgo":"Timeline-NWeeksAgo",timeUnit:"week",value:r});const i=new Date;for(i.setHours(0,0,0,0),r=1;r<=Po.month;r+=1)i.setMonth(i.getMonth()-1),i.setHours(0,0,0,0),t.month.push({date:i.getTime(),label:1===r?"Timeline-1MonthAgo":"Timeline-NMonthsAgo",timeUnit:"month",value:r});const s=new Date;for(s.setHours(0,0,0,0),r=1;r<=Po.year;r+=1){let e;switch(s.setFullYear(s.getFullYear()-1),s.setHours(0,0,0,0),r){case 1:e="Timeline-1YearAgo";break;case Po.year:e="Timeline-NPlusYearsAgo";break;default:e="Timeline-NYearsAgo"}t.year.push({date:s.getTime(),label:e,timeUnit:"year",value:r})}return t}();Object.values(e).forEach((e=>{e.forEach((e=>{const{date:t}=e,o=this.orderedGraphRows.find((e=>e.date<t));o&&this.processedGraphRowBySha[o.sha]&&(this.processedGraphRowBySha[o.sha].timeLineEntry=e)}))}))}clearTimelines(){Object.keys(this.processedGraphRowBySha).forEach((e=>{this.processedGraphRowBySha[e].timeLineEntry&&delete this.processedGraphRowBySha[e].timeLineEntry}))}cleanupSelections(){const e=Object.keys(this.isSelectedBySha);for(let t=0;t<e.length;t+=1){const o=e[t];this.processedGraphRowBySha[o]||delete this.isSelectedBySha[o]}}getColumnColorByColumn(e){const t=this.getNumGraphColumns(e),o=this.maxColumns>t?this.maxColumns:t,n={};for(let i=0;i<=o;i+=1)if(i<t){const t=e[Re(i)];n[i]="rgba"===(r=Ll(t)).type?`rgba(${r.r}, ${r.g}, ${r.b}, ${Number(r.a.toFixed(2))})`:`hsla(${r.h}, ${(100*r.s).toFixed(2)}%, ${(100*r.l).toFixed(2)}%, ${Number(r.a.toFixed(2))})`}else{const e=n[i%t];n[i]=e}var r;return n}getNumGraphColumns(e){const t=e["--num-columns-supported"],o=Number.parseInt(t,10);return Number.isNaN(o)?10:o}ensureZoneWidthsMatchGraphWidth(e,t){const o=Yo(e);o>t&&this.shrinkZoneWidthsToFitWidth(e,t),o<t&&this.expandZoneWidthsToFitWidth(e,t)}shrinkZoneWidthsToFitWidth(e,t,o){let n=Yo(e);for(;n>t;){const r=Vo(e,o);if(!r)break;const i=Yo(e,r.type);if(i+r.currentWidth>t){const o=Ko(r,e,t-i);this.updateWidthByZone(o,r.type)}n=Yo(e)}}getOrderedActiveGraphZones(){return this.graphZoneOrdering.sort(((e,t)=>this.graphZonesByType[e].order<this.graphZonesByType[t].order?-1:this.graphZonesByType[e].order>this.graphZonesByType[t].order?1:0)).filter((e=>!this.graphZonesByType[e].isHidden)).map((e=>this.graphZonesByType[e]))}expandZoneWidthsToFitWidth(e,t,o){let n=Yo(e);for(;n<t;){const r=$o(e,o);if(!r)break;const i=Yo(e,r.type),s=r.maximumWidth?Math.min(r.maximumWidth,r.preferredWidth||1/0):r.preferredWidth||0;if(i+r.currentWidth<t){let o=t-i;!qo(r.type,e)&&o>s&&(o=s),o=Ko(r,e,o),this.updateWidthByZone(o,r.type)}n=Yo(e)}}onGraphHeaderRowMouseDown=e=>{1===e.button&&e.preventDefault()};onToggleRefNodesShown=(e,t,o,n)=>{t.forEach((e=>{o&&this.excludeRefsById[e.id]?delete this.excludeRefsById[e.id]:o||(this.excludeRefsById[e.id]=e)})),this.excludeRemotesByName=this.getExcludeRemotesByName(),this.props.onToggleRefsVisibilityClick&&this.props.onToggleRefsVisibilityClick(e,t,o,n?this.processedGraphRowBySha[n]:void 0),this.processRows(this.props.graphRows),this.setState({processedRows:[...this.orderedGraphRows]})};cleanEdgeCaches(){Ys={},Fs={},Vs={},Us={}}onZoneEnter=(e,t,o,n)=>{t!==xo&&(o&&n&&this.onRefNodeUnhovered(e,o,n),this.onRefZoneUnhovered())};adjustResizedGraphZone(e,t,o,n){if(o&&o.width){const r=t.currentWidth;this.updateWidthByZone(o.width,t.type,n);const i=Qo(t.type,e),s=this.graphZonesByType[t.type];r>s.currentWidth&&this.expandZoneWidthsToFitWidth(e,this.graphWidth,i+1),r<s.currentWidth&&this.shrinkZoneWidthsToFitWidth(e,this.graphWidth,i-1)}}dimRowsOfSelectedCommit(e){this.setState({dimRowsOfSelectedCommit:e})}onGraphContainerBlurred=(e,t,o)=>{t&&o&&this.onRefNodeUnhovered(e,t,o),this.onRefZoneUnhovered()};onGraphContainerMouseEnter=e=>{this.props.onGraphMouseEnter&&this.props.onGraphMouseEnter(e)};onGraphContainerMouseLeave=e=>{this.props.onGraphMouseLeave&&this.props.onGraphMouseLeave(e)};onGraphResized=Wo(((e,t)=>{const o=Math.floor(t),n=Math.floor(e),r=o!==this.graphHeight,i=n!==this.graphWidth,s={};if(r&&(this.graphHeight=o,s.height=o),i){this.graphWidth=n;const e=this.getOrderedActiveGraphZones();this.ensureZoneWidthsMatchGraphWidth(e,this.graphWidth),s.width=this.graphWidth,s.graphZones=e}(r||i)&&(this.setState(s),r&&this.onGraphVisibleRowsUpdatedThrottled(),this.props.onGraphResized&&this.props.onGraphResized(this.graphWidth,this.graphHeight))}));onGraphVisibleRowsUpdated(){if(!this.props.onGraphVisibleRowsChanged||!this.orderedGraphRows||!this.orderedGraphRows.length)return;const{top:e,bottom:t}=this.getTopAndBottomVisibleRowIndex();-1===e||-1===t||e>=this.orderedGraphRows.length||t>=this.orderedGraphRows.length||e===this.lastTopVisibleRowIndex&&t===this.lastBottomVisibleRowIndex||(this.lastTopVisibleRowIndex=e,this.lastBottomVisibleRowIndex=t,this.props.onGraphVisibleRowsChanged&&this.props.onGraphVisibleRowsChanged(this.orderedGraphRows[e],this.orderedGraphRows[t]))}getCurrentPlatform(){return this.props.platform||"darwin"}isMacOSPlatform(){return"darwin"===this.getCurrentPlatform()}getGraphColumnSettingFromZoneType(e){return{width:e.preferredWidth||0,isHidden:e.isHidden,order:e.order}}decorateWithHelmet=(e,t,o)=>{const n=function(e){const t=e||xe;let o="";const n=Object.keys(t);o+="body {\n";for(const e of n)o+=`${e}: ${t[e]};\n`;return o+="}\n",o}(t);return i().createElement("div",{id:"graph-container-helmet"},i().createElement(pe,null,i().createElement("style",{nonce:o},n)),e)};render(){const{isInUnsupportedRebase:e,isCommitting:t,pendingCommitMessageSummary:o,repoPath:n,nonce:r}=this.props,{avatarUrlByEmail:s,columnColorByColumn:l,contexts:a,cssVariablesWithDefaults:c,currentlyHoveredCommitSha:h,dimMergeCommits:d,dimRowsOfSelectedCommit:u,highlightRowsOnRefHover:p,showGhostRefsOnRowHover:f,showRemoteNamesOnRefs:m,enabledRefMetadataTypes:g,enabledScrollMarkerTypes:v,graphZones:y,hasMoreCommits:w,height:S,highlightedShas:b,hoveredRefGroup:C,hoveredRefZoneSha:x,themeOpacityFactor:R,isContainerWindowFocused:_,isLoadingRows:T,numGraphColumns:E,processedRows:O,refMetadataById:M,useAuthorInitialsForAvatars:I,scrollToAlignment:z,scrollToIndex:k,scrollTop:G,scrollLeft:P,shaLength:A,width:H,workDirStats:L}=this.state,N=me()("flex","graph-container"),D=(W=O,e=>e===W.length?"SHOW_MORE_COMMITS":W[e].sha);var W;const B=(F=e=>D(e),({cellCache:e,cellRenderer:t,columnSizeAndPositionManager:o,columnStartIndex:n,columnStopIndex:r,deferredMeasurementCache:i,horizontalOffsetAdjustment:s,isScrolling:l,parent:a,rowSizeAndPositionManager:c,rowStartIndex:h,rowStopIndex:d,styleCache:u,verticalOffsetAdjustment:p,visibleColumnIndices:f,visibleRowIndices:m})=>{const g=[],v=e,y=o.areOffsetsAdjusted()||c.areOffsetsAdjusted(),w=!l&&!y;for(let e=h;e<=d;e+=1){const h=c.getSizeAndPositionOfCell(e);for(let c=n;c<=r;c+=1){const n=o.getSizeAndPositionOfCell(c),r=c>=f.start&&c<=f.stop&&e>=m.start&&e<=m.stop,d=`${e}-${c}`;let y;w&&u[d]?y=u[d]:i&&!i.has(e,c)?y={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(y={height:h.size,left:n.offset+s,position:"absolute",top:h.offset+p,width:n.size},u[d]=y);const S={columnIndex:c,isScrolling:l,isVisible:r,key:d,parent:a,rowIndex:e,style:y};let b;if(!l||s||p)b=t(S);else{const o=F(e,c);v[d]&&v[d].realKeyForCell===o||(v[d]={realKeyForCell:o,cell:t(S)}),b=v[d].cell}null!=b&&g.push(b)}}return g});var F;const j=this.getLeftGutterWidth(),U=this.getRightGutterWidth(),Z=this.getRightGutterBoxShadowAlpha(R),V=this.getLeftGutterBoxShadowAlpha(R),$=this.getNodeOffsetByColumn(),Y=this.getNodeOpacityByColumn(),q=!C,K={avatarUrlByEmail:s,dimMergeCommits:d,dimRowsOfSelectedCommit:u,highlightRowsOnRefHover:p,showGhostRefsOnRowHover:f,showRemoteNamesOnRefs:m,enabledRefMetadataTypes:g,isInUnsupportedRebase:e,isCommitting:t,isContainerWindowFocused:_,pendingCommitMessageSummary:o,workDirStats:L,repoPath:n,columnColorByColumn:l,currentlyHoveredCommitSha:h,cssVariables:c,graphZones:y,height:S,highlightedShas:b,hoveredRefGroup:C,hoveredRefZoneSha:x,includeOnlyRefsById:this.includeOnlyRefsById,includeOnlyRemotesByName:this.includeOnlyRemotesByName,isSelectedBySha:this.isSelectedBySha,leftGutterBoxShadowAlpha:V,leftGutterWidth:j,nodeOffsetByColumn:$,nodeOpacityByColumn:Y,nonce:r,numGraphColumns:E,processedRows:O,processedGraphRowBySha:this.processedGraphRowBySha,refMetadataById:M,rightGutterBoxShadowAlpha:Z,rightGutterWidth:U,rowStatsConstraints:this.rowStatsConstraints,useAuthorInitialsForAvatars:I,scrollToAlignment:z,scrollLeft:P,scrollTop:G,shaLength:A,width:H,onMissingAvatar:this.onMissingAvatar,onMissingRefMetadata:this.onMissingRefMetadata,clearCurrentlyHoveredGraphCommit:this.onClearCurrentlyHoveredGraphCommit,setAsCurrentlyHoveredGraphCommit:this.onCurrentlyHoveredGraphCommit,onClickRef:this.onClickRef,onClickCommit:this.onClickCommit,onDoubleClickCommit:this.onDoubleClickCommit,onBlurWipNodeInput:this.onBlurWipNodeInput,onFocusWipNodeInput:this.onFocusWipNodeInput,onDoubleClickRef:this.onDoubleClickRef,onMessageChange:this.onMessageChange,onRefNodeHovered:this.onRefNodeHovered,onRefNodeUnhovered:this.onRefNodeUnhovered,onRefZoneHovered:this.onRefZoneHovered,onRefZoneUnhovered:this.onRefZoneUnhovered,onToggleRefNodesShown:this.onToggleRefNodesShown,onCommitContextMenu:this.onCommitContextMenu,onShowContextMenuForGroupedRef:this.onRefContextMenu,onWipNodeInputWillUnmount:this.onWipNodeInputWillUnmount,getExternalIcon:this.getIconCallback,formatCommitDateTime:this.formatCommitDateTimeCallback,translate:this.translateCallback},X={[xo]:Ol(K,D),[Ro]:Yl(K,D),[_o]:yl(K,D),[To]:gl(K,D),[Eo]:vl(K,D),[Oo]:wl(K,D),[Mo]:pl(K,D),[Co]:ql(K,D)},Q=y.map(((e,t)=>i().createElement(ws,{cellRenderersByIds:X,columnIndex:t,cssVariables:c,enableResizer:q,getExternalIcon:this.getIconCallback,getKeyForCell:D,graphHeight:S-26,graphWidth:H,graphZones:y,graphZoneType:e.type,hasMoreCommits:w,isLoadingRows:T,key:`${e.type}ColumnContainer`,onResize:this.onGraphZoneResize,onResizeEnd:this.onGraphZoneResizeEnd,onScroll:this.onScrollForZone,onScrollToRowCausedUpdate:e.type===xo?this.onScrollToRowCausedUpdateForRefZone:void 0,onZoneEnter:t=>this.onZoneEnter(t,e.type,C,x),rowCount:O.length,scrollLeft:P,scrollToAlignment:e.type===xo?z:void 0,scrollToIndex:e.type===xo?k:void 0,scrollTop:G,smartCellRangeRenderer:B,translate:this.translateCallback}))),J=S-26,ee=this.orderedGraphRows.length*Xt,te=i().createElement("div",{className:"graph-component","data-vscode-context":Bo(a?.graph),onBlur:e=>this.onGraphContainerBlurred(e,C,x),onMouseEnter:this.onGraphContainerMouseEnter,onMouseLeave:this.onGraphContainerMouseLeave,ref:this.graphContainerRef,style:{height:"100%",width:"100%",position:"absolute"},tabIndex:-1},i().createElement(Zn,{context:a?.header,enableResizer:q,excludeRefsById:this.excludeRefsById,getExternalIcon:this.getIconCallback,graphZones:y,height:S,includeOnlyRefsById:this.includeOnlyRefsById,onColumnReOrdered:this.onGraphColumnReOrdered,onGraphZoneResize:this.onGraphZoneResize,onGraphZoneResizeEnd:this.onGraphZoneResizeEnd,onPopupGraphHeaderContextMenu:this.onPopupGraphHeaderContextMenu,onToggleRefNodesShown:this.onToggleRefNodesShown,repoPath:n,showRemoteNamesOnRefs:m,translate:this.translateCallback,width:H}),i().createElement("div",{className:b?me()(N,"graph-highlighted"):N,id:"graph-container",onKeyDown:this.onKeyDown,onMouseDown:this.onGraphHeaderRowMouseDown,style:{height:S,width:H},tabIndex:-1},v.length?i().createElement(Cs,{enabledScrollMarkerTypes:v,markerColors:this.getMarkerColors(),markerRowIndices:this.markerRowIndices,scrollWidth:parseInt(c["---scrollable-scrollbar-thickness"],10),totalRows:this.orderedGraphRows.length,viewportHeight:J<ee?J:ee,viewportWidth:H}):null,Q));return this.decorateWithHelmet(te,c,r)}}var Xl=Kl})(),module.exports=n})();
|