@gitkraken/gitkraken-components 13.0.0-vnext.3 → 13.0.0-vnext.30

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.
Files changed (64) hide show
  1. package/README.md +6 -0
  2. package/dist/components/dnd/DndComponent.d.ts +1 -1
  3. package/dist/components/dnd/DndContainer.d.ts +1 -1
  4. package/dist/components/graph/GraphColumn.d.ts +7 -2
  5. package/dist/components/graph/GraphContainer.d.ts +285 -31
  6. package/dist/components/graph/GraphHeaderRow.d.ts +5 -1
  7. package/dist/components/graph/GraphScrollMarker.d.ts +26 -5
  8. package/dist/components/graph/commitzone/CommitNode.d.ts +1 -1
  9. package/dist/components/graph/commitzone/CommitZone.d.ts +3 -2
  10. package/dist/components/graph/commitzone/GraphAvatar.d.ts +1 -1
  11. package/dist/components/graph/commitzone/edges/Arc.d.ts +2 -2
  12. package/dist/components/graph/commitzone/edges/Edges.d.ts +1 -1
  13. package/dist/components/graph/commitzone/edges/EndingEdge.d.ts +2 -2
  14. package/dist/components/graph/commitzone/edges/PassThroughEdge.d.ts +2 -2
  15. package/dist/components/graph/commitzone/edges/StartingEdge.d.ts +2 -2
  16. package/dist/components/graph/common/DraggableGraphHeader.d.ts +1 -1
  17. package/dist/components/graph/common/GenericGraphZone.d.ts +4 -2
  18. package/dist/components/graph/common/ScrollbarContainer.d.ts +1 -1
  19. package/dist/components/graph/common/StickyTimeline.d.ts +10 -0
  20. package/dist/components/graph/common/TimelineMessage.d.ts +6 -0
  21. package/dist/components/graph/messagezone/WorkDirMessageInput.d.ts +1 -1
  22. package/dist/components/graph/refzone/CreateRefNode.d.ts +1 -1
  23. package/dist/components/graph/refzone/RefNode.d.ts +11 -7
  24. package/dist/components/graph/refzone/RefNodeAnnotationTarget.d.ts +10 -0
  25. package/dist/components/graph/refzone/RefNodes.d.ts +4 -2
  26. package/dist/components/graph/refzone/RefZone.d.ts +8 -3
  27. package/dist/components/graph/rowAdornment/RowAdornmentLayer.d.ts +52 -0
  28. package/dist/components/graph/rowAdornment/RowAdornmentOverlay.d.ts +19 -0
  29. package/dist/components/graph/rowRenderers/CommitMessageZoneRow.d.ts +2 -1
  30. package/dist/components/graph/rowRenderers/CommitZoneRow.d.ts +2 -0
  31. package/dist/components/graph/rowRenderers/CommitsInfoRow.d.ts +1 -1
  32. package/dist/components/graph/rowRenderers/RefZoneRow.d.ts +2 -0
  33. package/dist/components/graph/shared/Avatar.d.ts +1 -1
  34. package/dist/components/graph/shared/FileDiffTypeIcon.d.ts +2 -1
  35. package/dist/components/graph/shared/WipStatsPill.d.ts +11 -0
  36. package/dist/components/resizable/Resizable.d.ts +2 -7
  37. package/dist/domain/commit/CommitHelpers.d.ts +2 -2
  38. package/dist/domain/commit/CommitTypes.d.ts +1 -0
  39. package/dist/domain/edge/EdgeHelpers.d.ts +4 -4
  40. package/dist/domain/generic/GenericTypes.d.ts +6 -0
  41. package/dist/domain/graph/GraphConstants.d.ts +18 -2
  42. package/dist/domain/graph/GraphEdgeHelpers.d.ts +34 -0
  43. package/dist/domain/graph/GraphHelpers.d.ts +29 -5
  44. package/dist/domain/graph/GraphTypes.d.ts +101 -10
  45. package/dist/domain/graph/PinnedBranchHelpers.d.ts +21 -0
  46. package/dist/domain/graph/ScopedGraphHelpers.d.ts +15 -0
  47. package/dist/domain/graph/row/ProcessedGraphRowObj.d.ts +6 -5
  48. package/dist/domain/graph/rowAdornment/RowAdornmentHelpers.d.ts +14 -0
  49. package/dist/domain/graph/rowAdornment/RowAdornmentTypes.d.ts +97 -0
  50. package/dist/domain/hostingservice/HostingServiceTypes.d.ts +2 -1
  51. package/dist/domain/reactvirtualized/ReactVirtualizedHelpers.d.ts +1 -1
  52. package/dist/domain/ref/RefConstants.d.ts +4 -1
  53. package/dist/domain/ref/RefTypes.d.ts +1 -1
  54. package/dist/domain/workdir/WorkDirHelpers.d.ts +50 -0
  55. package/dist/domain/workdir/WorkDirTypes.d.ts +51 -0
  56. package/dist/index.d.ts +16 -1
  57. package/dist/index.js +21 -2
  58. package/dist/styles.css +2 -2
  59. package/dist/types.d.ts +1 -0
  60. package/dist/utils/ObjectUtils.d.ts +29 -0
  61. package/package.json +100 -93
  62. package/CHANGELOG.md +0 -15
  63. package/ThirdPartyNotices.txt +0 -227
  64. package/dist/types.js +0 -1
package/dist/index.js CHANGED
@@ -1,2 +1,21 @@
1
- (()=>{var e={396:e=>{e.exports=function(e,t){return Array.prototype.slice.call(e,t)}},182:(e,t,o)=>{var r=o(394);e.exports=function(e,t,o){e&&r(function(){e.apply(o||null,t||[])})}},130:(e,t,o)=>{var r=o(396),i=o(182);e.exports=function(e,t){var o=t||{},n={};return void 0===e&&(e={}),e.on=function(t,o){return n[t]?n[t].push(o):n[t]=[o],e},e.once=function(t,o){return o._once=!0,e.on(t,o),e},e.off=function(t,o){var r=arguments.length;if(1===r)delete n[t];else if(0===r)n={};else{var i=n[t];if(!i)return e;i.splice(i.indexOf(o),1)}return e},e.emit=function(){var t=r(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var s=(n[t]||[]).slice(0);return function(){var n=r(arguments),l=this||e;if("error"===t&&!1!==o.throws&&!s.length)throw 1===n.length?n[0]:n;return s.forEach(function(r){o.async?i(r,n,l):r.apply(l,n),r._once&&e.off(t,r)}),e}},e}},46:(e,t,o)=>{var r=o(47),i=o(371),n=o.g.document,s=function(e,t,o,r){return e.addEventListener(t,o,r)},l=function(e,t,o,r){return e.removeEventListener(t,o,r)},a=[];function h(e,t,o){var r=function(e,t,o){var r,i;for(r=0;r<a.length;r++)if((i=a[r]).element===e&&i.type===t&&i.fn===o)return r}(e,t,o);if(r){var i=a[r].wrapper;return a.splice(r,1),i}}o.g.addEventListener||(s=function(e,t,r){var i,n,s,l;return e.attachEvent("on"+t,(l=h(i=e,n=t,s=r)||function(e){var t=e||o.g.event;t.target=t.target||t.srcElement,t.preventDefault=t.preventDefault||function(){t.returnValue=!1},t.stopPropagation=t.stopPropagation||function(){t.cancelBubble=!0},t.which=t.which||t.keyCode,s.call(i,t)},a.push({wrapper:l,element:i,type:n,fn:s}),l))},l=function(e,t,o){var r=h(e,t,o);if(r)return e.detachEvent("on"+t,r)}),e.exports={add:s,remove:l,fabricate:function(e,t,o){var s,l=-1===i.indexOf(t)?new r(t,{detail:o}):(n.createEvent?(s=n.createEvent("Event")).initEvent(t,!0,!0):n.createEventObject&&(s=n.createEventObject()),s);e.dispatchEvent?e.dispatchEvent(l):e.fireEvent("on"+t,l)}}},371:(e,t,o)=>{var r=[],i="",n=/^on/;for(i in o.g)n.test(i)&&r.push(i.slice(2));e.exports=r},47:(e,t,o)=>{var r=o.g.CustomEvent;e.exports=!function(){try{var e=new r("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?"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=!!t.bubbles,o.cancelable=!!t.cancelable,o.detail=t.detail):(o.bubbles=!1,o.cancelable=!1,o.detail=void 0),o}:r},541:e=>{var t={};function o(e){var o=t[e];return o?o.lastIndex=0:t[e]=o=RegExp("(?:^|\\s)"+e+"(?:\\s|$)","g"),o}e.exports={add:function(e,t){var r=e.className;r.length?o(t).test(r)||(e.className+=" "+t):e.className=t},rm:function(e,t){e.className=e.className.replace(o(t)," ").trim()}}},427:(e,t,o)=>{var r=o(130),i=o(46),n=o(541),s=document,l=s.documentElement;function a(e,t,r,n){o.g.navigator.pointerEnabled?i[t](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[r],n):o.g.navigator.msPointerEnabled?i[t](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[r],n):(i[t](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[r],n),i[t](e,r,n))}function h(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;if(void 0!==t)return 1&t?1:2&t?3:4&t?2:0}function c(e,t){return void 0!==o.g[t]?o.g[t]:l.clientHeight?l[e]:s.body[e]}function d(e,t,o){var r,i=e||{},n=i.className;return i.className+=" gu-hide",r=s.elementFromPoint(t,o),i.className=n,r}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 _(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||function e(t){return!!t&&"false"!==t.contentEditable&&("true"===t.contentEditable||e(g(t)))}(e)}function v(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=t.targetTouches&&t.targetTouches.length?t.targetTouches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,r={pageX:"clientX",pageY:"clientY"};return e in r&&!(e in o)&&r[e]in o&&(e=r[e]),o[e]}e.exports=function(e,t){var o,y,R,C,T,w,b,E,O,I,M,x,N=arguments.length;1===N&&!1===Array.isArray(e)&&(t=e,e=[]);var D=null,A=t||{};void 0===A.moves&&(A.moves=p),void 0===A.accepts&&(A.accepts=p),void 0===A.invalid&&(A.invalid=function(){return!1}),void 0===A.containers&&(A.containers=e||[]),void 0===A.isContainer&&(A.isContainer=u),void 0===A.copy&&(A.copy=!1),void 0===A.copySortSource&&(A.copySortSource=!1),void 0===A.revertOnSpill&&(A.revertOnSpill=!1),void 0===A.removeOnSpill&&(A.removeOnSpill=!1),void 0===A.direction&&(A.direction="vertical"),void 0===A.ignoreInputTextSelection&&(A.ignoreInputTextSelection=!0),void 0===A.mirrorContainer&&(A.mirrorContainer=s.body);var H=r({containers:A.containers,start:function(e){var t=B(e);t&&Z(t)},end:U,cancel:K,remove:Y,destroy:function(){z(!0),$({})},canMove:function(e){return!!B(e)},dragging:!1});return!0===A.removeOnSpill&&H.on("over",function(e){n.rm(e,"gu-hide")}).on("out",function(e){H.dragging&&n.add(e,"gu-hide")}),z(),H;function G(e){return -1!==H.containers.indexOf(e)||A.isContainer(e)}function z(e){var t=e?"remove":"add";a(l,t,"mousedown",P),a(l,t,"mouseup",$)}function W(e){a(l,e?"remove":"add","mousemove",F)}function k(e){var t=e?"remove":"add";i[t](l,"selectstart",L),i[t](l,"click",L)}function L(e){x&&e.preventDefault()}function P(e){if(w=e.clientX,b=e.clientY,1===h(e)&&!e.metaKey&&!e.ctrlKey){var t=e.target,o=B(t);o&&(x=o,W(),"mousedown"===e.type&&(_(t)?t.focus():e.preventDefault()))}}function F(e){if(x){if(0===h(e)){$({});return}if(void 0===e.clientX||e.clientX!==w||void 0===e.clientY||e.clientY!==b){if(A.ignoreInputTextSelection){var t,r=S("clientX",e),i=S("clientY",e);if(_(s.elementFromPoint(r,i)))return}var d=x;W(!0),k(),U(),Z(d);var u={left:(t=R.getBoundingClientRect()).left+c("scrollLeft","pageXOffset"),top:t.top+c("scrollTop","pageYOffset")};C=S("pageX",e)-u.left,T=S("pageY",e)-u.top,n.add(I||R,"gu-transit"),function(){if(!o){var e=R.getBoundingClientRect();(o=R.cloneNode(!0)).style.width=f(e)+"px",o.style.height=m(e)+"px",n.rm(o,"gu-transit"),n.add(o,"gu-mirror"),A.mirrorContainer.appendChild(o),a(l,"add","mousemove",J),n.add(A.mirrorContainer,"gu-unselectable"),H.emit("cloned",o,R,"mirror")}}(),J(e)}}}function B(e){if(!(H.dragging&&o||G(e))){for(var t=e;g(e)&&!1===G(g(e));)if(A.invalid(e,t)||!(e=g(e)))return;var r=g(e);if(!(!r||A.invalid(e,t))&&A.moves(e,r,t,v(e)))return{item:e,source:r}}}function Z(e){var t,o;t=e.item,o=e.source,("boolean"==typeof A.copy?A.copy:A.copy(t,o))&&(I=e.item.cloneNode(!0),H.emit("cloned",I,e.item,"copy")),y=e.source,R=e.item,E=O=v(e.item),H.dragging=!0,H.emit("drag",R,y)}function U(){if(H.dragging){var e=I||R;V(e,g(e))}}function j(){x=!1,W(!0),k(!0)}function $(e){if(j(),H.dragging){var t=I||R,r=S("clientX",e),i=S("clientY",e),n=Q(d(o,r,i),r,i);n&&(I&&A.copySortSource||!I||n!==y)?V(t,n):A.removeOnSpill?Y():K()}}function V(e,t){var o=g(e);I&&A.copySortSource&&t===y&&o.removeChild(R),X(t)?H.emit("cancel",e,y,y):H.emit("drop",e,t,y,O),q()}function Y(){if(H.dragging){var e=I||R,t=g(e);t&&t.removeChild(e),H.emit(I?"cancel":"remove",e,t,y),q()}}function K(e){if(H.dragging){var t=arguments.length>0?e:A.revertOnSpill,o=I||R,r=g(o),i=X(r);!1===i&&t&&(I?r&&r.removeChild(I):y.insertBefore(o,E)),i||t?H.emit("cancel",o,y,y):H.emit("drop",o,r,y,O),q()}}function q(){var e=I||R;j(),o&&(n.rm(A.mirrorContainer,"gu-unselectable"),a(l,"remove","mousemove",J),g(o).removeChild(o),o=null),e&&n.rm(e,"gu-transit"),M&&clearTimeout(M),H.dragging=!1,D&&H.emit("out",e,D,y),H.emit("dragend",e),y=R=I=E=O=M=D=null}function X(e,t){var r;return r=void 0!==t?t:o?O:v(I||R),e===y&&r===E}function Q(e,t,o){for(var r=e;r&&!function(){if(!1===G(r))return!1;var i=ee(r,e),n=et(r,i,t,o);return!!X(r,n)||A.accepts(R,r,y,n)}();)r=g(r);return r}function J(e){if(o){e.preventDefault();var t,r=S("clientX",e),i=S("clientY",e),n=r-C,s=i-T;o.style.left=n+"px",o.style.top=s+"px";var l=I||R,a=d(o,r,i),h=Q(a,r,i),c=null!==h&&h!==D;(c||null===h)&&(D&&f("out"),D=h,c&&f("over"));var u=g(l);if(h===y&&I&&!A.copySortSource){u&&u.removeChild(l);return}var p=ee(h,a);if(null!==p)t=et(h,p,r,i);else if(!0!==A.revertOnSpill||I){I&&u&&u.removeChild(l);return}else t=E,h=y;(null===t&&c||t!==l&&t!==v(l))&&(O=t,h.insertBefore(l,t),H.emit("shadow",l,h,y))}function f(e){H.emit(e,l,D,y)}}function ee(e,t){for(var o=t;o!==e&&g(o)!==e;)o=g(o);return o===l?null:o}function et(e,t,o,r){var i,n="horizontal"===A.direction;return t!==e?(i=t.getBoundingClientRect(),n?o>i.left+f(i)/2?v(t):t:r>i.top+m(i)/2?v(t):t):function(){var t,i,s,l=e.children.length;for(t=0;t<l;t++)if(s=(i=e.children[t]).getBoundingClientRect(),n&&s.left+s.width/2>o||!n&&s.top+s.height/2>r)return i;return null}()}}},280:(e,t,o)=>{o.d(t,{A:()=>m});var r=o(942),i=o.n(r),n=o(15),s=o.n(n);class l{name;notify;constructor(e,t){this.name=e,this.notify=t}}class a{observer;unsubscribeCallback;constructor(e,t){this.observer=e,this.unsubscribeCallback=t}unsubscribe(){this.unsubscribeCallback(this.observer)}}let h=new class{observers;constructor(){this.observers=new Set}broadcast(e){this.observers&&this.observers.forEach(t=>{e.name===t.name&&t.notify(e)})}subscribe(e,t){let o=new l(e,t);return this.observers.add(o),new a(o,e=>{this.observers.delete(e)})}unsubscribe(e){e&&e.unsubscribe()}},c="ON_DRAG_START",d="ON_DRAG_END",u=null,p=new Map;class f extends s().Component{dndComponentRef=s().createRef();mounted=!1;onDragStartSubscription;onDragEndSubscription;constructor(e){super(e),this.onDragStartSubscription=h.subscribe(c,e=>{let t=null!==e.content&&p.get(e.content);this.setState({isDroppable:this.canDrop(void 0,t,this.props.dndData)})}),this.onDragEndSubscription=h.subscribe(d,()=>{this.mounted&&this.setState({isDroppable:!1})}),this.state={isDragging:!1,isDroppable:!1,isOver:!1}}componentDidMount(){if(this.mounted=!0,null!==u){let e=p.get(u);this.setState({isDroppable:this.canDrop(void 0,e,this.props.dndData)})}}componentWillUnmount(){this.mounted=!1,this.onDragStartSubscription.unsubscribe(),this.onDragEndSubscription.unsubscribe()}canDrop(e,t,o){let{canDrop:r}=this.props;return r&&("boolean"==typeof r||r(e,t,o))}addDragEndEventListenerOnce(){let e=this.dndComponentRef?.current;e&&(e.removeEventListener("dragend",this.onDragEnd),e.addEventListener("dragend",this.onDragEnd,{once:!0}))}isDraggable(){let{canDrag:e,dndData:t}=this.props;return!!e&&("boolean"==typeof e||e(t))}onDragEnter(e){if(e.stopPropagation(),this.setState({isOver:!0}),this.props.onDragEnter){let t=p.get(u);this.props.onDragEnter(e,t,this.props.dndData)}}onDragLeave(e){e.stopPropagation();let t=p.get(u);this.props.onDragLeave&&this.props.onDragLeave(e,t,this.props.dndData),this.setState({isDroppable:this.canDrop(void 0,t,this.props.dndData),isOver:!1})}onDrag(e){e.stopPropagation()}onDragOver(e){e.stopPropagation();let t=p.get(u);this.canDrop(e,t,this.props.dndData)&&(e.preventDefault(),this.setState({isOver:!0}))}onDragStart(e){e.stopPropagation();let{dndData:t,dndId:o,onBeginDrag:r}=this.props;u=o,p.set(u,t),this.addDragEndEventListenerOnce(),h.broadcast({name:c,content:u}),r&&r(e,t),this.setState({isDragging:!0})}onDragEnd=e=>{e.stopPropagation();let{dndData:t,onEndDrag:o}=this.props;o&&o(e,p.get(u),t),h.broadcast({name:d,content:u}),p.delete(u),u=null,this.mounted&&this.setState({isDragging:!1})};onDrop(e){e.stopPropagation();let{dndData:t,onDrop:o}=this.props;o&&(o(e,p.get(u),t),this.setState({isOver:!1}))}cloneChildrenWithShallowMergedProps(e,t){if(e)return s().Children.map(e,e=>s().isValidElement(e)?s().cloneElement(e,t):e)}render(){let{children:e,className:t,forwardDndPropsToChildren:o,style:r}=this.props,{isDragging:n,isDroppable:l,isOver:a}=this.state,h=this.isDraggable(),c=i()("dnd-component",t,{draggable:h,dragging:n,droppable:l,hovering:a});return s().createElement("div",{className:c,draggable:h,onDrag:e=>this.onDrag(e),onDragEnter:e=>this.onDragEnter(e),onDragLeave:e=>this.onDragLeave(e),onDragOver:e=>this.onDragOver(e),onDragStart:e=>this.onDragStart(e),onDrop:e=>this.onDrop(e),ref:this.dndComponentRef,style:r},o?this.cloneChildrenWithShallowMergedProps(e,{isDraggable:h,isDragging:n,isDroppable:l,isOver:a}):e)}}var m=f},797:(e,t,o)=>{let r;o.d(t,{A:()=>si});var i,n,s,l,a,h,c,d,u,p,f,m,g,_,v,S,y,R,C,T,w,b,E,O,I=o(942),M=o.n(I),x=o(15),N=o.n(x),D=((i=D||{})[i.Hash=35]="Hash",i[i.Slash=47]="Slash",i[i.Digit0=48]="Digit0",i[i.Digit1=49]="Digit1",i[i.Digit2=50]="Digit2",i[i.Digit3=51]="Digit3",i[i.Digit4=52]="Digit4",i[i.Digit5=53]="Digit5",i[i.Digit6=54]="Digit6",i[i.Digit7=55]="Digit7",i[i.Digit8=56]="Digit8",i[i.Digit9=57]="Digit9",i[i.Backslash=92]="Backslash",i[i.A=65]="A",i[i.B=66]="B",i[i.C=67]="C",i[i.D=68]="D",i[i.E=69]="E",i[i.F=70]="F",i[i.Z=90]="Z",i[i.a=97]="a",i[i.b=98]="b",i[i.c=99]="c",i[i.d=100]="d",i[i.e=101]="e",i[i.f=102]="f",i[i.z=122]="z",i);function A(e){switch(e){case 48:break;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 H(e,t,o){return(o<0&&(o+=1),o>1&&(o-=1),o<1/6)?e+(t-e)*6*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function G(e){let t,o,r;let i=e.h/360,{s:n,l:s,a:l}=e;if(0===n)t=o=r=s;else{let e=s<.5?s*(1+n):s+n-s*n,l=2*s-e;t=H(l,e,i+1/3),o=H(l,e,i),r=H(l,e,i-1/3)}return{type:"rgba",r:Math.round(255*t),g:Math.round(255*o),b:Math.round(255*r),a:l}}let z=/^((?:rgb|hsl)a?)\((-?\d+%?)[,\s]+(-?\d+%?)[,\s]+(-?\d+%?)[,\s]*(-?[\d.]+%?)?\)$/i;function W(e){let t;if(0===(e=e.trim()).length)return null;if(35===e.charCodeAt(0))return function(e){let t=(e=e.trim()).length;if(0===t||35!==e.charCodeAt(0))return null;if(7===t)return{type:"rgba",r:16*A(e.charCodeAt(1))+A(e.charCodeAt(2)),g:16*A(e.charCodeAt(3))+A(e.charCodeAt(4)),b:16*A(e.charCodeAt(5))+A(e.charCodeAt(6)),a:1};if(9===t){let t=16*A(e.charCodeAt(1))+A(e.charCodeAt(2));return{type:"rgba",r:t,g:16*A(e.charCodeAt(3))+A(e.charCodeAt(4)),b:16*A(e.charCodeAt(5))+A(e.charCodeAt(6)),a:(16*A(e.charCodeAt(7))+A(e.charCodeAt(8)))/255}}if(4===t){let t=A(e.charCodeAt(1)),o=A(e.charCodeAt(2)),r=A(e.charCodeAt(3));return{type:"rgba",r:16*t+t,g:16*o+o,b:16*r+r,a:1}}if(5===t){let t=A(e.charCodeAt(1)),o=A(e.charCodeAt(2)),r=A(e.charCodeAt(3)),i=A(e.charCodeAt(4));return{type:"rgba",r:16*t+t,g:16*o+o,b:16*r+r,a:(16*i+i)/255}}return null}(e);let o=z.exec(e);if(null==o)return null;let r=o[1];switch(r){case"rgb":case"hsl":t=[parseInt(o[2],10),parseInt(o[3],10),parseInt(o[4],10),1];break;case"rgba":case"hsla":t=[parseInt(o[2],10),parseInt(o[3],10),parseInt(o[4],10),parseFloat(o[5])];break;default:return null}return"hsl"===r||"hsla"===r?G({h:t[0],s:t[1],l:t[2],a:t[3]}):{type:"rgba",r:t[0],g:t[1],b:t[2],a:t[3]}}let k=e=>{var t;return("hsla"===(t=W(e)).type&&(t=G(t)),(299*t.r+587*t.g+114*t.b)/1e3<128)?"#FFFFFF":"#000000"};var L=o(298),P=o(214);let F=e=>!(e===L.oB||e===L.t$),B=(e,t=P.wT)=>e?e.substring(0,t):"",Z=/^.*(:?\n){0,2}/m;function U(e,t="\n"){return e.replace("\n"===t?Z:RegExp(`^.*(:?${t}){0,2}`,"m"),"")}let j=/^co-authored-by:\s*([^\s<>]+(?:\s+[^\s<>]+)*)\s*<([^<>]+)>/gim;function $(e){let t=[];for(let o=j.exec(e);null!==o;o=j.exec(e)){let[,e,r]=o;t.push({name:e,email:r})}return t}var V=o(522),Y=o(686);let K=/(?<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,q=/(?<dateStyle>full|long|medium|short)(?:\+(?<timeStyle>full|long|medium|short))?/,X=new Map,Q=["th","st","nd","rd"],J={};function ee(e,t,o,r){let i=`${e}${r?"_compact":""}`,n=J[e];return n||(n=o+e*t+t/2,J[i]=n),n}let et={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 eo(e,t){let o="";for(let[e,r]of Object.entries(et)){let i=t[r];i&&(o+=` ${e}="${i}"`)}return`<${e}${o} />`}function er(e){return eo("line",e)}function ei(e,t,o,r){return{fill:"none",shapeRendering:"auto",strokeLinejoin:"round",strokeWidth:o,strokeDasharray:F(e)?r?1:2:0,stroke:t}}function en(e,t,o,r){return`${e}_${t}_${o||"+"}${r?"_compact":""}`}function es(e,t,o){return`${e}_${t||"+"}${o?"_compact":""}`}var el=o(210),ea=o(66),eh=o(406),ec=o(635),ed=o(852);let eu=e=>({cellCache:t,cellRenderer:o,columnSizeAndPositionManager:r,columnStartIndex:i,columnStopIndex:n,deferredMeasurementCache:s,horizontalOffsetAdjustment:l,isScrolling:a,parent:h,rowSizeAndPositionManager:c,rowStartIndex:d,rowStopIndex:u,styleCache:p,verticalOffsetAdjustment:f,visibleColumnIndices:m,visibleRowIndices:g})=>{let _=[],v=r.areOffsetsAdjusted()||c.areOffsetsAdjusted(),S=!a&&!v;for(let v=d;v<=u;v+=1){let d=c.getSizeAndPositionOfCell(v);for(let c=i;c<=n;c+=1){let i,n;let u=r.getSizeAndPositionOfCell(c),y=c>=m.start&&c<=m.stop&&v>=g.start&&v<=g.stop,R=`${v}-${c}`;S&&p[R]?i=p[R]:s&&!s.has(v,c)?i={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(i={height:d.size,left:u.offset+l,position:"absolute",top:d.offset+f,width:u.size},p[R]=i);let C={columnIndex:c,isScrolling:a,isVisible:y,key:R,parent:h,rowIndex:v,style:i};if(!a||l||f)n=o(C);else{let r=e(v,c);t[R]&&t[R].realKeyForCell===r||(t[R]={realKeyForCell:r,cell:o(C)}),n=t[R].cell}null!=n&&_.push(n)}}return _};var ep=o(666),ef=o(126);let em={0:1,90:0,180:-1,270:0},eg={0:0,90:1,180:0,270:-1},e_=P.nf-P.Oe,ev=` A ${e_} ${e_} 0 0 0 `;function eS(e,t,o){let r=em[o],i=eg[o];return{x:e-P.nf*r,xOffset:-(r*P.Oe),y:t+P.nf*i,yOffset:i*P.Oe}}let ey={};var eR=function(e,t,o,r,i,n,s,l){let a=ei(r,e,s,l);return a.d=function(e,t,o,r){let i=`${e}_${t}_${o}_${r}`,n=ey[i];if(n)return n;let s=eS(e,t,r),l=eS(e,t,o);return n=`M ${s.x} ${s.y}${l.xOffset?` H ${s.x+l.xOffset}`:` V ${s.y+l.yOffset}`}${ev}${l.x+s.xOffset} ${l.y+s.yOffset}${s.xOffset?` H ${l.x}`:` V ${l.y}`}`,ey[i]=n,n}(i,n,o,t),eo("path",a)};let eC={},eT={},ew={},eb={};function eE(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function eO(e){return(eO="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})(e)}function eI(e){var t=function(e,t){if("object"!=eO(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,t||"default");if("object"!=eO(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eO(t)?t:t+""}function eM(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eI(r.key),r)}}function ex(e,t,o){return t&&eM(e.prototype,t),o&&eM(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function eN(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eD(e,t){if(t&&("object"===eO(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return eN(e)}function eA(e){return(eA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eH(e,t){return(eH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function eG(e,t){if("function"!=typeof t&&null!==t)throw 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&&eH(e,t)}function ez(e,t,o){return(t=eI(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function eW(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function ek(e){this.setState((function(t){var o=this.constructor.getDerivedStateFromProps(e,t);return null!=o?o:null}).bind(this))}function eL(e,t){try{var o=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(o,r)}finally{this.props=o,this.state=r}}function eP(e){var t=e.prototype;if(!t||!t.isReactComponent)throw Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var o=null,r=null,i=null;if("function"==typeof t.componentWillMount?o="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(o="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?i="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==o||null!==r||null!==i)throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+(e.displayName||e.name)+" uses "+("function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()")+" but also contains the following legacy lifecycles:"+(null!==o?"\n "+o:"")+(null!==r?"\n "+r:"")+(null!==i?"\n "+i:"")+"\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=eW,t.componentWillReceiveProps=ek),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=eL;var n=t.componentDidUpdate;t.componentDidUpdate=function(e,t,o){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:o;n.call(this,e,t,r)}}return e}function eF(){return(eF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}eW.__suppressDeprecationWarning=!0,ek.__suppressDeprecationWarning=!0,eL.__suppressDeprecationWarning=!0;let eB=function(){for(var e,t,o=0,r="";o<arguments.length;)(e=arguments[o++])&&(t=function e(t){var o,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t))for(o=0;o<t.length;o++)t[o]&&(r=e(t[o]))&&(i&&(i+=" "),i+=r);else for(o in t)t[o]&&(i&&(i+=" "),i+=o)}return i}(e))&&(r&&(r+=" "),r+=t);return r};function eZ(e){var t=e.cellCount,o=e.cellSize,r=e.computeMetadataCallback,i=e.computeMetadataCallbackProps,n=e.nextCellsCount,s=e.nextCellSize,l=e.nextScrollToIndex,a=e.scrollToIndex,h=e.updateScrollOffsetForScrollToIndex;(t!==n||("number"==typeof o||"number"==typeof s)&&o!==s)&&(r(i),a>=0&&a===l&&h())}function eU(e,t){if(null==e)return{};var o,r,i=function(e,t){if(null==e)return{};var o,r,i={},n=Object.keys(e);for(r=0;r<n.length;r++)o=n[r],t.indexOf(o)>=0||(i[o]=e[o]);return i}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}var ej=function(){function e(t){var o=t.cellCount,r=t.cellSizeGetter,i=t.estimatedCellSize;eE(this,e),ez(this,"_cellSizeAndPositionData",{}),ez(this,"_lastMeasuredIndex",-1),ez(this,"_lastBatchedIndex",-1),ez(this,"_cellCount",void 0),ez(this,"_cellSizeGetter",void 0),ez(this,"_estimatedCellSize",void 0),this._cellSizeGetter=r,this._cellCount=o,this._estimatedCellSize=i}return ex(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,o=e.estimatedCellSize,r=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=o,this._cellSizeGetter=r}},{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,r=this._lastMeasuredIndex+1;r<=e;r++){var i=this._cellSizeGetter({index:r});if(void 0===i||isNaN(i))throw Error("Invalid size returned for cell ".concat(r," of value ").concat(i));null===i?(this._cellSizeAndPositionData[r]={offset:o,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[r]={offset:o,size:i},o+=i,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,o=e.align,r=e.containerSize,i=e.currentOffset,n=e.targetIndex;if(r<=0)return 0;var s=this.getSizeAndPositionOfCell(n),l=s.offset,a=l-r+s.size;switch(void 0===o?"auto":o){case"start":t=l;break;case"end":t=a;break;case"center":t=l-(r-s.size)/2;break;default:t=Math.max(a,Math.min(l,i))}return Math.max(0,Math.min(this.getTotalSize()-r,t))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;if(0===this.getTotalSize())return{};var r=o+t,i=this._findNearestCell(o),n=this.getSizeAndPositionOfCell(i);o=n.offset+n.size;for(var s=i;o<r&&s<this._cellCount-1;)s++,o+=this.getSizeAndPositionOfCell(s).size;return{start:i,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 r=t+Math.floor((e-t)/2),i=this.getSizeAndPositionOfCell(r).offset;if(i===o)return r;i<o?t=r+1:i>o&&(e=r-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}(),e$=function(){function e(t){var o=t.maxScrollSize,r=void 0===o?"undefined"!=typeof window&&window.chrome?16777100:15e5:o,i=eU(t,["maxScrollSize"]);eE(this,e),ez(this,"_cellSizeAndPositionManager",void 0),ez(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new ej(i),this._maxScrollSize=r}return ex(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,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize();return Math.round(this._getOffsetPercentage({containerSize:t,offset:o,totalSize:i})*(i-r))}},{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=e.containerSize,r=e.currentOffset,i=e.targetIndex;r=this._safeOffsetToOffset({containerSize:o,offset:r});var n=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:void 0===t?"auto":t,containerSize:o,currentOffset:r,targetIndex:i});return this._offsetToSafeOffset({containerSize:o,offset:n})}},{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,r=e.totalSize;return r<=t?0:o/(r-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,o=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize();return r===i?o:Math.round(this._getOffsetPercentage({containerSize:t,offset:o,totalSize:r})*(i-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,o=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize();return r===i?o:Math.round(this._getOffsetPercentage({containerSize:t,offset:o,totalSize:i})*(r-t))}}]),e}();function eV(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t={};return function(o){var r=o.callback,i=o.indices,n=Object.keys(i),s=!e||n.every(function(e){var t=i[e];return Array.isArray(t)?t.length>0:t>=0}),l=n.length!==Object.keys(t).length||n.some(function(e){var o=t[e],r=i[e];return Array.isArray(r)?o.join(",")!==r.join(","):o!==r});t=i,s&&l&&r(i)}}function eY(e){var t=e.cellSize,o=e.cellSizeAndPositionManager,r=e.previousCellsCount,i=e.previousCellSize,n=e.previousScrollToAlignment,s=e.previousScrollToIndex,l=e.previousSize,a=e.scrollOffset,h=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,u=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,f=o.getCellCount(),m=c>=0&&c<f;m&&(d!==l||u||!i||"number"==typeof t&&t!==i||h!==n||c!==s)?p(c):!m&&f>0&&(d<l||f<r)&&a>o.getTotalSize()-d&&p(f-1)}let eK=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function eq(e){if((!u&&0!==u||e)&&eK){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),u=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return u}"undefined"!=typeof window?p=window:"undefined"!=typeof self?p=self:p={};var eX=p.requestAnimationFrame||p.webkitRequestAnimationFrame||p.mozRequestAnimationFrame||p.oRequestAnimationFrame||p.msRequestAnimationFrame||function(e){return p.setTimeout(e,1e3/60)},eQ=p.cancelAnimationFrame||p.webkitCancelAnimationFrame||p.mozCancelAnimationFrame||p.oCancelAnimationFrame||p.msCancelAnimationFrame||function(e){p.clearTimeout(e)},eJ=function(e){return eQ(e.id)},e0=function(e,t){Promise.resolve().then(function(){o=Date.now()});var o,r={id:eX(function i(){Date.now()-o>=t?e.call():r.id=eX(i)})};return r};function e1(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function e2(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?e1(o,!0).forEach(function(t){ez(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):e1(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var e5={OBSERVED:"observed",REQUESTED:"requested"},e6=(m=f=function(e){function t(e){eE(this,t),ez(eN(o=eD(this,eA(t).call(this,e))),"_onGridRenderedMemoizer",eV()),ez(eN(o),"_onScrollMemoizer",eV(!1)),ez(eN(o),"_deferredInvalidateColumnIndex",null),ez(eN(o),"_deferredInvalidateRowIndex",null),ez(eN(o),"_recomputeScrollLeftFlag",!1),ez(eN(o),"_recomputeScrollTopFlag",!1),ez(eN(o),"_horizontalScrollBarSize",0),ez(eN(o),"_verticalScrollBarSize",0),ez(eN(o),"_scrollbarPresenceChanged",!1),ez(eN(o),"_scrollingContainer",void 0),ez(eN(o),"_childrenToDisplay",void 0),ez(eN(o),"_columnStartIndex",void 0),ez(eN(o),"_columnStopIndex",void 0),ez(eN(o),"_rowStartIndex",void 0),ez(eN(o),"_rowStopIndex",void 0),ez(eN(o),"_renderedColumnStartIndex",0),ez(eN(o),"_renderedColumnStopIndex",0),ez(eN(o),"_renderedRowStartIndex",0),ez(eN(o),"_renderedRowStopIndex",0),ez(eN(o),"_initialScrollTop",void 0),ez(eN(o),"_initialScrollLeft",void 0),ez(eN(o),"_disablePointerEventsTimeoutId",void 0),ez(eN(o),"_styleCache",{}),ez(eN(o),"_cellCache",{}),ez(eN(o),"_debounceScrollEndedCallback",function(){o._disablePointerEventsTimeoutId=null,o.setState({isScrolling:!1,needToResetStyleCache:!1})}),ez(eN(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}})}),ez(eN(o),"_onWheel",function(e){var t=e.deltaX,r=e.deltaY;o.handleWheelEvent({deltaX:t,deltaY:r})}),ez(eN(o),"_setScrollingContainerRef",function(e){e&&(e.removeEventListener("wheel",o.preventDefault),e.addEventListener("wheel",o.preventDefault,{passive:!1})),o._scrollingContainer=e}),ez(eN(o),"_onScroll",function(e){e.target===o._scrollingContainer&&o.handleScrollEvent(e.target)});var o,r=new e$({cellCount:e.columnCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.columnWidth)(o)},estimatedCellSize:t._getEstimatedColumnSize(e)}),i=new e$({cellCount:e.rowCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.rowHeight)(o)},estimatedCellSize:t._getEstimatedRowSize(e)});return o.state={instanceProps:{columnSizeAndPositionManager:r,rowSizeAndPositionManager:i,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:1,scrollDirectionVertical:1,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 eG(t,e),ex(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,r=e.columnIndex,i=void 0===r?this.props.scrollToColumn:r,n=e.rowIndex,s=void 0===n?this.props.scrollToRow:n,l=e2({},this.props,{scrollToAlignment:o,scrollToColumn:i,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=e.scrollTop,r=void 0===o?0:o;if(!(r<0)){this._debounceScrollEnded();var i=this.props,n=i.autoHeight,s=i.autoWidth,l=i.height,a=i.width,h=this.state.instanceProps,c=h.scrollbarSize,d=h.rowSizeAndPositionManager.getTotalSize(),u=h.columnSizeAndPositionManager.getTotalSize(),p=Math.min(Math.max(0,u-a+c),void 0===t?0:t),f=Math.min(Math.max(0,d-l+c),r);if(this.state.scrollLeft!==p||this.state.scrollTop!==f){var m={isScrolling:!0,scrollDirectionHorizontal:p!==this.state.scrollLeft?p>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:f!==this.state.scrollTop?f>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:e5.OBSERVED};n||(m.scrollTop=f),s||(m.scrollLeft=p),m.needToResetStyleCache=!1,this.setState(m)}this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:f,totalColumnsWidth:u,totalRowsHeight:d})}}},{key:"preventDefault",value:function(e){e.preventDefault()}},{key:"handleWheelEvent",value:function(e){var t=e.deltaX,o=e.deltaY;this._debounceScrollEnded();var r=this.props,i=r.autoHeight,n=r.autoWidth,s=r.height,l=r.width,a=this.state.instanceProps.scrollbarSize,h=this.state.instanceProps.rowSizeAndPositionManager.getTotalSize(),c=this.state.instanceProps.columnSizeAndPositionManager.getTotalSize(),d=Math.min(Math.max(0,c-l+a),Math.max(0,this._scrollingContainer.scrollLeft+t)),u=Math.min(Math.max(0,h-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?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:u!==this.state.scrollTop?u>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:e5.REQUESTED};i||(p.scrollTop=u),n||(p.scrollLeft=d),p.needToResetStyleCache=!1,this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:u,totalColumnsWidth:c,totalRowsHeight:h})}},{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,r=this.state.instanceProps;r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),r.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,r=e.rowIndex,i=void 0===r?0:r,n=this.props,s=n.scrollToColumn,l=n.scrollToRow,a=this.state.instanceProps;a.columnSizeAndPositionManager.resetCell(o),a.rowSizeAndPositionManager.resetCell(i),this._recomputeScrollLeftFlag=s>=0&&(1===this.state.scrollDirectionHorizontal?o<=s:o>=s),this._recomputeScrollTopFlag=l>=0&&(1===this.state.scrollDirectionVertical?i<=l:i>=l),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,o=e.rowIndex,r=this.props,i=r.columnCount,n=r.onScrollToTargetCausedUpdate,s=this.state,l=s.scrollLeft,a=s.scrollTop,h=this.props,c=this.state,d=void 0,u=void 0;if(i>1&&void 0!==t){var p=this._updateScrollLeftForScrollToColumn(e2({},h,{scrollToColumn:t}),c,!0);p&&"number"==typeof p.scrollLeft&&p.scrollLeft>=0&&(d=p.scrollLeft)}if(void 0!==o){var f=this._updateScrollTopForScrollToRow(e2({},h,{scrollToRow:o}),c,!0);f&&"number"==typeof f.scrollTop&&f.scrollTop>=0&&(u=f.scrollTop)}if(n&&("number"==typeof d||"number"==typeof u)){var m="number"!=typeof d?d:l,g="number"!=typeof u?u:a;n({clientHeight:h.height,clientWidth:h.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:m,scrollTop:g,scrollWidth:this.getTotalColumnsWidth()})}}},{key:"componentDidMount",value:function(){var e=this.props,o=e.getScrollbarSize,r=e.height,i=e.scrollLeft,n=e.scrollToColumn,s=e.scrollTop,l=e.scrollToRow,a=e.width,h=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),h.scrollbarSizeMeasured||this.setState(function(e){var t=e2({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=o(),t.instanceProps.scrollbarSizeMeasured=!0,t}),"number"==typeof i&&i>=0||"number"==typeof s&&s>=0){var c=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:i,scrollTop:s});c&&(c.needToResetStyleCache=!1,this.setState(c))}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=r>0&&a>0;n>=0&&d&&this._updateScrollLeftForScrollToColumn(),l>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:i||0,scrollTop:s||0,totalColumnsWidth:h.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:h.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,n=r.autoWidth,s=r.columnCount,l=r.height,a=r.rowCount,h=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,u=r.width,p=this.state,f=p.scrollLeft,m=p.scrollPositionChangeReason,g=p.scrollTop,_=p.instanceProps;this._handleInvalidatedGridSize();var v=s>0&&0===e.columnCount||a>0&&0===e.rowCount;m===e5.REQUESTED&&(!n&&f>=0&&(f!==this._scrollingContainer.scrollLeft||v)&&(this._scrollingContainer.scrollLeft=f),!i&&g>=0&&(g!==this._scrollingContainer.scrollTop||v)&&(this._scrollingContainer.scrollTop=g));var S=(0===e.width||0===e.height)&&l>0&&u>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):eY({cellSizeAndPositionManager:_.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:f,scrollToAlignment:h,scrollToIndex:c,size:u,sizeJustIncreasedFromZero:S,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):eY({cellSizeAndPositionManager:_.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:g,scrollToAlignment:h,scrollToIndex:d,size:l,sizeJustIncreasedFromZero:S,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),f!==t.scrollLeft||g!==t.scrollTop){var y=_.rowSizeAndPositionManager.getTotalSize(),R=_.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:g,totalColumnsWidth:R,totalRowsHeight:y})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._scrollingContainer&&this._scrollingContainer.removeEventListener("wheel",this.preventDefault),this._disablePointerEventsTimeoutId&&eJ(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,o=e.autoHeight,r=e.autoWidth,i=e.className,n=e.containerProps,s=e.containerRole,l=e.containerStyle,a=e.height,h=e.id,c=e.noContentRenderer,d=e.role,u=e.style,p=e.tabIndex,f=e.width,m=this.state,g=m.instanceProps,_=m.needToResetStyleCache,v=this._isScrolling(),S={boxSizing:"border-box",direction:"ltr",height:o?"auto":a,position:"relative",width:r?"auto":f,WebkitOverflowScrolling:"touch",willChange:"transform"};_&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var y=g.columnSizeAndPositionManager.getTotalSize(),R=g.rowSizeAndPositionManager.getTotalSize(),C=R>a?g.scrollbarSize:0,T=y>f?g.scrollbarSize:0;(T!==this._horizontalScrollBarSize||C!==this._verticalScrollBarSize)&&(this._horizontalScrollBarSize=T,this._verticalScrollBarSize=C,this._scrollbarPresenceChanged=!0),S.overflowX=y+C<=f?"hidden":"auto",S.overflowY=R+T<=a?"hidden":"auto";var w=this._childrenToDisplay,b=0===w.length&&a>0&&f>0;return x.createElement("div",eF({ref:this._setScrollingContainerRef},n,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:eB("ReactVirtualized__Grid",i),id:h,onScroll:this._onScroll,onWheel:this._onWheel,role:d,style:e2({},S,{},u),tabIndex:p}),w.length>0&&x.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:s,style:e2({width:t?"auto":y,height:R,maxWidth:y,maxHeight:R,overflow:"hidden",pointerEvents:v?"none":"",position:"relative"},l)},w),b&&c())}},{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,r=e.cellRangeRenderer,i=e.columnCount,n=e.deferredMeasurementCache,s=e.height,l=e.overscanColumnCount,a=e.overscanIndicesGetter,h=e.overscanRowCount,c=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,_=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,v=this._isScrolling(e,t);if(this._childrenToDisplay=[],s>0&&d>0){var S=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:_}),y=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:s,offset:g}),R=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:_}),C=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:s,offset:g});this._renderedColumnStartIndex=S.start,this._renderedColumnStopIndex=S.stop,this._renderedRowStartIndex=y.start,this._renderedRowStopIndex=y.stop;var T=a({direction:"horizontal",cellCount:i,overscanCellsCount:l,scrollDirection:p,startIndex:"number"==typeof S.start?S.start:0,stopIndex:"number"==typeof S.stop?S.stop:-1}),w=a({direction:"vertical",cellCount:c,overscanCellsCount:h,scrollDirection:f,startIndex:"number"==typeof y.start?y.start:0,stopIndex:"number"==typeof y.stop?y.stop:-1}),b=T.overscanStartIndex,E=T.overscanStopIndex,O=w.overscanStartIndex,I=w.overscanStopIndex;if(n){if(!n.hasFixedHeight()){for(var M=O;M<=I;M++)if(!n.has(M,0)){b=0,E=i-1;break}}if(!n.hasFixedWidth()){for(var x=b;x<=E;x++)if(!n.has(0,x)){O=0,I=c-1;break}}}this._childrenToDisplay=r({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:b,columnStopIndex:E,deferredMeasurementCache:n,horizontalOffsetAdjustment:R,isScrolling:v,isScrollingOptOut:u,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:O,rowStopIndex:I,scrollLeft:_,scrollTop:g,styleCache:this._styleCache,verticalOffsetAdjustment:C,visibleColumnIndices:S,visibleRowIndices:y}),this._columnStartIndex=b,this._columnStopIndex=E,this._rowStartIndex=O,this._rowStopIndex=I}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&eJ(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=e0(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,r=e.scrollTop,i=e.totalColumnsWidth,n=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,r=e.scrollTop,s=t.props,l=s.height;(0,s.onScroll)({clientHeight:l,clientWidth:s.width,scrollHeight:n,scrollLeft:o,scrollTop:r,scrollWidth:i})},indices:{scrollLeft:o,scrollTop:r}})}},{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")?!!e.isScrolling:!!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,r=e.scrollTop,i=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:r});i&&(i.needToResetStyleCache=!1,this.setState(i))}},{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,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t._getScrollLeftForScrollToColumnStateUpdate(e,o);if(i)return i.needToResetStyleCache=!1,this.setState(i),e.onScrollToTargetCausedUpdate&&!r&&e.onScrollToTargetCausedUpdate({clientHeight:e.height,clientWidth:e.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:i.scrollLeft,scrollTop:i.scrollTop,scrollWidth:this.getTotalColumnsWidth()}),i}},{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 r=this._rowStartIndex;r<=this._rowStopIndex;r++)for(var i=this._columnStartIndex;i<=this._columnStopIndex;i++){var n="".concat(r,"-").concat(i);this._styleCache[n]=e[n],o&&(this._cellCache[n]=t[n])}}},{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,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t._getScrollTopForScrollToRowStateUpdate(e,o);if(i)return i.needToResetStyleCache=!1,this.setState(i),e.onScrollToTargetCausedUpdate&&!r&&e.onScrollToTargetCausedUpdate({clientHeight:e.height,clientWidth:e.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:i.scrollLeft,scrollTop:i.scrollTop,scrollWidth:this.getTotalColumnsWidth()}),i}}],[{key:"getDerivedStateFromProps",value:function(e,o){var r,i,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 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}),eZ({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)}}),eZ({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,e2({},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,r=e.scrollTop,i={scrollPositionChangeReason:e5.REQUESTED};return("number"==typeof o&&o>=0&&(i.scrollDirectionHorizontal=o>t.scrollLeft?1:-1,i.scrollLeft=o),"number"==typeof r&&r>=0&&(i.scrollDirectionVertical=r>t.scrollTop?1:-1,i.scrollTop=r),"number"==typeof o&&o>=0&&o!==t.scrollLeft||"number"==typeof r&&r>=0&&r!==t.scrollTop)?i:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var o=e.columnCount,r=e.height,i=e.scrollToAlignment,n=e.scrollToColumn,s=e.width,l=t.scrollLeft,a=t.instanceProps;if(o>0){var h=o-1,c=a.rowSizeAndPositionManager.getTotalSize(),d=a.scrollbarSizeMeasured&&c>r?a.scrollbarSize:0;return a.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:s-d,currentOffset:l,targetIndex:n<0?h:Math.min(h,n)})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,o){var r=o.scrollLeft,i=t._getCalculatedScrollLeft(e,o);return"number"==typeof i&&i>=0&&r!==i?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:i,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var o=e.height,r=e.rowCount,i=e.scrollToAlignment,n=e.scrollToRow,s=e.width,l=t.scrollTop,a=t.instanceProps;if(r>0){var h=r-1,c=a.columnSizeAndPositionManager.getTotalSize(),d=a.scrollbarSizeMeasured&&c>s?a.scrollbarSize:0;return a.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:o-d,currentOffset:l,targetIndex:n<0?h:Math.min(h,n)})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,o){var r=o.scrollTop,i=t._getCalculatedScrollTop(e,o);return"number"==typeof i&&i>=0&&r!==i?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:-1,scrollTop:i}):{}}}]),t}(x.PureComponent),ez(f,"propTypes",null),m);function e3(e){var t=e.cellCount,o=e.overscanCellsCount,r=e.scrollDirection,i=e.startIndex,n=e.stopIndex;return(o=Math.max(1,o),1===r)?{overscanStartIndex:Math.max(0,i-1),overscanStopIndex:Math.min(t-1,n+o)}:{overscanStartIndex:Math.max(0,i-o),overscanStopIndex:Math.min(t-1,n+1)}}function e4(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}ez(e6,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,o=e.cellRenderer,r=e.columnSizeAndPositionManager,i=e.columnStartIndex,n=e.columnStopIndex,s=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,a=e.isScrolling,h=e.isScrollingOptOut,c=e.parent,d=e.rowSizeAndPositionManager,u=e.rowStartIndex,p=e.rowStopIndex,f=e.styleCache,m=e.verticalOffsetAdjustment,g=e.visibleColumnIndices,_=e.visibleRowIndices,v=[],S=r.areOffsetsAdjusted()||d.areOffsetsAdjusted(),y=!a&&!S,R=u;R<=p;R++)for(var C=d.getSizeAndPositionOfCell(R),T=i;T<=n;T++){var w=r.getSizeAndPositionOfCell(T),b=T>=g.start&&T<=g.stop&&R>=_.start&&R<=_.stop,E="".concat(R,"-").concat(T),O=void 0;y&&f[E]?O=f[E]:s&&!s.has(R,T)?O={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(O={height:C.size,left:w.offset+l,position:"absolute",top:C.offset+m,width:w.size},f[E]=O);var I={columnIndex:T,isScrolling:a,isVisible:b,key:E,parent:c,rowIndex:R,style:O},M=void 0;(h||a)&&!l&&!m?(t[E]||(t[E]=o(I)),M=t[E]):M=o(I),null!=M&&!1!==M&&v.push(M)}return v},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:eq,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,o=e.overscanCellsCount,r=e.scrollDirection,i=e.startIndex,n=e.stopIndex;return 1===r?{overscanStartIndex:Math.max(0,i),overscanStopIndex:Math.min(t-1,n+o)}:{overscanStartIndex:Math.max(0,i-o),overscanStopIndex:Math.min(t-1,n)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),eP(e6);var e9=(_=g=function(e){function t(){eE(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return ez(eN(o=eD(this,(e=eA(t)).call.apply(e,[this].concat(i)))),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),ez(eN(o),"_columnStartIndex",0),ez(eN(o),"_columnStopIndex",0),ez(eN(o),"_rowStartIndex",0),ez(eN(o),"_rowStopIndex",0),ez(eN(o),"_onKeyDown",function(e){var t=o.props,r=t.columnCount,i=t.disabled,n=t.mode,s=t.rowCount;if(!i){var l=o._getScrollState(),a=l.scrollToColumn,h=l.scrollToRow,c=o._getScrollState(),d=c.scrollToColumn,u=c.scrollToRow;switch(e.key){case"ArrowDown":u="cells"===n?Math.min(u+1,s-1):Math.min(o._rowStopIndex+1,s-1);break;case"ArrowLeft":d="cells"===n?Math.max(d-1,0):Math.max(o._columnStartIndex-1,0);break;case"ArrowRight":d="cells"===n?Math.min(d+1,r-1):Math.min(o._columnStopIndex+1,r-1);break;case"ArrowUp":u="cells"===n?Math.max(u-1,0):Math.max(o._rowStartIndex-1,0)}(d!==a||u!==h)&&(e.preventDefault(),o._updateScrollState({scrollToColumn:d,scrollToRow:u}))}}),ez(eN(o),"_onSectionRendered",function(e){var t=e.columnStartIndex,r=e.columnStopIndex,i=e.rowStartIndex,n=e.rowStopIndex;o._columnStartIndex=t,o._columnStopIndex=r,o._rowStartIndex=i,o._rowStopIndex=n}),o}return eG(t,e),ex(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,r=this._getScrollState(),i=r.scrollToColumn,n=r.scrollToRow;return x.createElement("div",{className:t,onKeyDown:this._onKeyDown},o({onSectionRendered:this._onSectionRendered,scrollToColumn:i,scrollToRow:n}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow,r=this.props,i=r.isControlled,n=r.onScrollToChange;"function"==typeof n&&n({scrollToColumn:t,scrollToRow:o}),i||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?e4(o,!0).forEach(function(t){ez(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):e4(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}(x.PureComponent),ez(g,"propTypes",null),_);function e7(e,t){void 0!==t?r=t:"undefined"!=typeof window?r=window:"undefined"!=typeof self?r=self:r=o.g;var r,i=void 0!==r.document&&r.document.attachEvent;if(!i){var n,s,l=(n=r.requestAnimationFrame||r.mozRequestAnimationFrame||r.webkitRequestAnimationFrame||function(e){return r.setTimeout(e,20)},function(e){return n(e)}),a=(s=r.cancelAnimationFrame||r.mozCancelAnimationFrame||r.webkitCancelAnimationFrame||r.clearTimeout,function(e){return s(e)}),h=function(e){var t=e.__resizeTriggers__,o=t.firstElementChild,r=t.lastElementChild,i=o.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=o.offsetWidth+1+"px",i.style.height=o.offsetHeight+1+"px",o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight},c=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&0>e.target.className.indexOf("contract-trigger")&&0>e.target.className.indexOf("expand-trigger"))){var t=this;h(this),this.__resizeRAF__&&a(this.__resizeRAF__),this.__resizeRAF__=l(function(){(t.offsetWidth!=t.__resizeLast__.width||t.offsetHeight!=t.__resizeLast__.height)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(o){o.call(t,e)}))})}},d=!1,u="",p="animationstart",f="Webkit Moz O ms".split(" "),m="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),g=r.document.createElement("fakeelement");if(void 0!==g.style.animationName&&(d=!0),!1===d){for(var _=0;_<f.length;_++)if(void 0!==g.style[f[_]+"AnimationName"]){u="-"+(0,f[_]).toLowerCase()+"-",p=m[_],d=!0;break}}var v="resizeanim",S="@"+u+"keyframes "+v+" { from { opacity: 0; } to { opacity: 0; } } ",y=u+"animation: 1ms "+v+"; "}var R=function(t){if(!t.getElementById("detectElementResize")){var o=(S||"")+".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%; }',r=t.head||t.getElementsByTagName("head")[0],i=t.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=o:i.appendChild(t.createTextNode(o)),r.appendChild(i)}};return{addResizeListener:function(e,t){if(i)e.attachEvent("onresize",t);else{if(!e.__resizeTriggers__){var o=e.ownerDocument,n=r.getComputedStyle(e);n&&"static"==n.position&&(e.style.position="relative"),R(o),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=o.createElement("div")).className="resize-triggers";var s='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>';if(window.trustedTypes){var l=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return s}});e.__resizeTriggers__.innerHTML=l.createHTML("")}else e.__resizeTriggers__.innerHTML=s;e.appendChild(e.__resizeTriggers__),h(e),e.addEventListener("scroll",c,!0),p&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName==v&&h(e)},e.__resizeTriggers__.addEventListener(p,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(t)}},removeResizeListener:function(e,t){if(i)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",c,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(p,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}function e8(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}ez(e9,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),eP(e9);var te=(S=v=function(e){function t(){eE(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return ez(eN(o=eD(this,(e=eA(t)).call.apply(e,[this].concat(i)))),"state",{height:o.props.defaultHeight||0,width:o.props.defaultWidth||0}),ez(eN(o),"_parentNode",void 0),ez(eN(o),"_autoSizer",void 0),ez(eN(o),"_window",void 0),ez(eN(o),"_detectElementResize",void 0),ez(eN(o),"_onResize",function(){var e=o.props,t=e.disableHeight,r=e.disableWidth,i=e.onResize;if(o._parentNode){var n=o._parentNode.offsetHeight||0,s=o._parentNode.offsetWidth||0,l=(o._window||window).getComputedStyle(o._parentNode)||{},a=parseInt(l.paddingLeft,10)||0,h=parseInt(l.paddingRight,10)||0,c=parseInt(l.paddingTop,10)||0,d=parseInt(l.paddingBottom,10)||0,u=n-c-d,p=s-a-h;(t||o.state.height===u)&&(r||o.state.width===p)||(o.setState({height:n-c-d,width:s-a-h}),i({height:n,width:s}))}}),ez(eN(o),"_setRef",function(e){o._autoSizer=e}),o}return eG(t,e),ex(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=e7(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,r=e.disableHeight,i=e.disableWidth,n=e.style,s=this.state,l=s.height,a=s.width,h={overflow:"visible"},c={};return r||(h.height=0,c.height=l),i||(h.width=0,c.width=a),x.createElement("div",{className:o,ref:this._setRef,style:function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?e8(o,!0).forEach(function(t){ez(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):e8(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({},h,{},n)},t(c))}}]),t}(x.Component),ez(v,"propTypes",null),S);ez(te,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});let tt=require("react-dom");var to=o.n(tt),tr=(R=y=function(e){function t(){eE(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return ez(eN(o=eD(this,(e=eA(t)).call.apply(e,[this].concat(i)))),"_child",void 0),ez(eN(o),"_measure",function(){var e=o.props,t=e.cache,r=e.columnIndex,i=void 0===r?0:r,n=e.parent,s=e.rowIndex,l=void 0===s?o.props.index||0:s,a=o._getCellMeasurements(),h=a.height,c=a.width;(h!==t.getHeight(l,i)||c!==t.getWidth(l,i))&&(t.set(l,i,c,h),n&&"function"==typeof n.recomputeGridSize&&n.recomputeGridSize({columnIndex:i,rowIndex:l}))}),ez(eN(o),"_registerChild",function(e){e&&Element,o._child=e,e&&o._maybeMeasureCell()}),o}return eG(t,e),ex(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,tt.findDOMNode)(this);if(!t||!t.ownerDocument||!t.ownerDocument.defaultView||!(t instanceof t.ownerDocument.defaultView.HTMLElement))return{height:0,width:0};var o=t.style.width,r=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var i=Math.ceil(t.offsetHeight),n=Math.ceil(t.offsetWidth);return o&&(t.style.width=o),r&&(t.style.height=r),{height:i,width:n}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,o=e.columnIndex,r=void 0===o?0:o,i=e.parent,n=e.rowIndex,s=void 0===n?this.props.index||0:n;if(!t.has(s,r)){var l=this._getCellMeasurements(),a=l.height,h=l.width;t.set(s,r,h,a),i&&"function"==typeof i.invalidateCellSizeAfterRender&&i.invalidateCellSizeAfterRender({columnIndex:r,rowIndex:s})}}}]),t}(x.PureComponent),ez(y,"propTypes",null),R);function ti(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}ez(tr,"__internalCellMeasurerFlag",!1);var tn={OBSERVED:"observed",REQUESTED:"requested"},ts=function(e){function t(){eE(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return ez(eN(o=eD(this,(e=eA(t)).call.apply(e,[this].concat(i)))),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),ez(eN(o),"_calculateSizeAndPositionDataOnNextUpdate",!1),ez(eN(o),"_onSectionRenderedMemoizer",eV()),ez(eN(o),"_onScrollMemoizer",eV(!1)),ez(eN(o),"_invokeOnSectionRenderedHelper",function(){var e=o.props,t=e.cellLayoutManager,r=e.onSectionRendered;o._onSectionRenderedMemoizer({callback:r,indices:{indices:t.getLastRenderedIndices()}})}),ez(eN(o),"_setScrollingContainerRef",function(e){o._scrollingContainer=e}),ez(eN(o),"_updateScrollPositionForScrollToCell",function(){var e=o.props,t=e.cellLayoutManager,r=e.height,i=e.scrollToAlignment,n=e.scrollToCell,s=e.width,l=o.state,a=l.scrollLeft,h=l.scrollTop;if(n>=0){var c=t.getScrollPositionForCell({align:i,cellIndex:n,height:r,scrollLeft:a,scrollTop:h,width:s});(c.scrollLeft!==a||c.scrollTop!==h)&&o._setScrollPosition(c)}}),ez(eN(o),"_onScroll",function(e){if(e.target===o._scrollingContainer){o._enablePointerEventsAfterDelay();var t=o.props,r=t.cellLayoutManager,i=t.height,n=t.isScrollingChange,s=t.width,l=o._scrollbarSize,a=r.getTotalSize(),h=a.height,c=a.width,d=Math.max(0,Math.min(c-s+l,e.target.scrollLeft)),u=Math.max(0,Math.min(h-i+l,e.target.scrollTop));if(o.state.scrollLeft!==d||o.state.scrollTop!==u){var p=e.cancelable?tn.OBSERVED:tn.REQUESTED;o.state.isScrolling||n(!0),o.setState({isScrolling:!0,scrollLeft:d,scrollPositionChangeReason:p,scrollTop:u})}o._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:u,totalWidth:c,totalHeight:h})}}),o._scrollbarSize=eq(),void 0===o._scrollbarSize?(o._scrollbarSizeMeasured=!1,o._scrollbarSize=0):o._scrollbarSizeMeasured=!0,o}return eG(t,e),ex(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,o=e.scrollLeft,r=e.scrollToCell,i=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=eq(),this._scrollbarSizeMeasured=!0,this.setState({})),r>=0?this._updateScrollPositionForScrollToCell():(o>=0||i>=0)&&this._setScrollPosition({scrollLeft:o,scrollTop:i}),this._invokeOnSectionRenderedHelper();var n=t.getTotalSize(),s=n.height,l=n.width;this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:i||0,totalHeight:s,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var o=this.props,r=o.height,i=o.scrollToAlignment,n=o.scrollToCell,s=o.width,l=this.state,a=l.scrollLeft,h=l.scrollPositionChangeReason,c=l.scrollTop;h===tn.REQUESTED&&(a>=0&&a!==t.scrollLeft&&a!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=a),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),(r!==e.height||i!==e.scrollToAlignment||n!==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,r=e.cellLayoutManager,i=e.className,n=e.height,s=e.horizontalOverscanSize,l=e.id,a=e.noContentRenderer,h=e.style,c=e.verticalOverscanSize,d=e.width,u=this.state,p=u.isScrolling,f=u.scrollLeft,m=u.scrollTop;(this._lastRenderedCellCount!==o||this._lastRenderedCellLayoutManager!==r||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=o,this._lastRenderedCellLayoutManager=r,this._calculateSizeAndPositionDataOnNextUpdate=!1,r.calculateSizeAndPositionData());var g=r.getTotalSize(),_=g.height,v=g.width,S=Math.max(0,f-s),y=Math.max(0,m-c),R=Math.min(v,f+d+s),C=Math.min(_,m+n+c),T=n>0&&d>0?r.cellRenderers({height:C-y,isScrolling:p,width:R-S,x:S,y:y}):[],w={boxSizing:"border-box",direction:"ltr",height:t?"auto":n,position:"relative",WebkitOverflowScrolling:"touch",width:d,willChange:"transform"},b=_>n?this._scrollbarSize:0,E=v>d?this._scrollbarSize:0;return w.overflowX=v+b<=d?"hidden":"auto",w.overflowY=_+E<=n?"hidden":"auto",x.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:eB("ReactVirtualized__Collection",i),id:l,onScroll:this._onScroll,role:"grid",style:function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ti(o,!0).forEach(function(t){ez(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ti(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({},w,{},h),tabIndex:0},o>0&&x.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:_,maxHeight:_,maxWidth:v,overflow:"hidden",pointerEvents:p?"none":"",width:v}},T),0===o&&a())}},{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,r=e.scrollTop,i=e.totalHeight,n=e.totalWidth;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,r=e.scrollTop,s=t.props,l=s.height;(0,s.onScroll)({clientHeight:l,clientWidth:s.width,scrollHeight:i,scrollLeft:o,scrollTop:r,scrollWidth:n})},indices:{scrollLeft:o,scrollTop:r}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,o=e.scrollTop,r={scrollPositionChangeReason:tn.REQUESTED};t>=0&&(r.scrollLeft=t),o>=0&&(r.scrollTop=o),(t>=0&&t!==this.state.scrollLeft||o>=0&&o!==this.state.scrollTop)&&this.setState(r)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0===e.cellCount&&(0!==t.scrollLeft||0!==t.scrollTop)?{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:tn.REQUESTED}: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:tn.REQUESTED}:null}}]),t}(x.PureComponent);ez(ts,"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}),ts.propTypes={},eP(ts);var tl=function(){function e(t){var o=t.height,r=t.width,i=t.x,n=t.y;eE(this,e),this.height=o,this.width=r,this.x=i,this.y=n,this._indexMap={},this._indices=[]}return ex(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}(),ta=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;eE(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return ex(e,[{key:"getCellIndices",value:function(e){var t=e.height,o=e.width,r=e.x,i=e.y,n={};return this.getSections({height:t,width:o,x:r,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){n[e]=e})}),Object.keys(n).map(function(e){return n[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,r=e.x,i=e.y,n=Math.floor(r/this._sectionSize),s=Math.floor((r+o-1)/this._sectionSize),l=Math.floor(i/this._sectionSize),a=Math.floor((i+t-1)/this._sectionSize),h=[],c=n;c<=s;c++)for(var d=l;d<=a;d++){var u="".concat(c,".").concat(d);this._sections[u]||(this._sections[u]=new tl({height:this._sectionSize,width:this._sectionSize,x:c*this._sectionSize,y:d*this._sectionSize})),h.push(this._sections[u])}return h}},{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 th(e){var t=e.align,o=e.cellOffset,r=e.cellSize,i=e.containerSize,n=e.currentOffset,s=o-i+r;switch(void 0===t?"auto":t){case"start":return o;case"end":return s;case"center":return o-(i-r)/2;default:return Math.max(s,Math.min(o,n))}}var tc=function(e){function t(e,o){var r;return eE(this,t),(r=eD(this,eA(t).call(this,e,o)))._cellMetadata=[],r._lastRenderedCellIndices=[],r._cellCache=[],r._isScrollingChange=r._isScrollingChange.bind(eN(r)),r._setCollectionViewRef=r._setCollectionViewRef.bind(eN(r)),r}return eG(t,e),ex(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=eF({},this.props);return x.createElement(ts,eF({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,r=e.sectionSize,i=[],n=new ta(r),s=0,l=0,a=0;a<t;a++){var h=o({index:a});if(null==h.height||isNaN(h.height)||null==h.width||isNaN(h.width)||null==h.x||isNaN(h.x)||null==h.y||isNaN(h.y))throw Error("Invalid metadata returned for cell ".concat(a,":\n x:").concat(h.x,", y:").concat(h.y,", width:").concat(h.width,", height:").concat(h.height));s=Math.max(s,h.y+h.height),l=Math.max(l,h.x+h.width),i[a]=h,n.registerCell({cellMetadatum:h,index:a})}return{cellMetadata:i,height:s,sectionManager:n,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,r=e.height,i=e.scrollLeft,n=e.scrollTop,s=e.width,l=this.props.cellCount;if(o>=0&&o<l){var a=this._cellMetadata[o];i=th({align:t,cellOffset:a.x,cellSize:a.width,containerSize:s,currentOffset:i,targetIndex:o}),n=th({align:t,cellOffset:a.y,cellSize:a.height,containerSize:r,currentOffset:n,targetIndex:o})}return{scrollLeft:i,scrollTop:n}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,o=e.height,r=e.isScrolling,i=e.width,n=e.x,s=e.y,l=this.props,a=l.cellGroupRenderer,h=l.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:o,width:i,x:n,y:s}),a({cellCache:this._cellCache,cellRenderer:h,cellSizeAndPositionGetter:function(e){var o=e.index;return t._sectionManager.getCellMetadata({index:o})},indices:this._lastRenderedCellIndices,isScrolling:r})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}]),t}(x.PureComponent);function td(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=Array(t);o<t;o++)r[o]=e[o];return r}function tu(e,t){if(e){if("string"==typeof e)return td(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);if("Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o)return Array.from(e);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return td(e,t)}}ez(tc,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,o=e.cellRenderer,r=e.cellSizeAndPositionGetter,i=e.indices,n=e.isScrolling;return i.map(function(e){var i=r({index:e}),s={index:e,isScrolling:n,key:e,style:{height:i.height,left:i.x,position:"absolute",top:i.y,width:i.width}};return n?(e in t||(t[e]=o(s)),t[e]):o(s)}).filter(function(e){return!!e})}}),tc.propTypes={},function(e){function t(e,o){var r;return eE(this,t),(r=eD(this,eA(t).call(this,e,o)))._registerChild=r._registerChild.bind(eN(r)),r}return eG(t,e),ex(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,o=t.columnMaxWidth,r=t.columnMinWidth,i=t.columnCount,n=t.width;(o!==e.columnMaxWidth||r!==e.columnMinWidth||i!==e.columnCount||n!==e.width)&&this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,o=e.columnMaxWidth,r=e.columnMinWidth,i=e.columnCount,n=e.width,s=n/i;return s=Math.floor(s=Math.min(o?Math.min(o,n):n,s=Math.max(r||1,s))),t({adjustedWidth:Math.min(n,s*i),columnWidth:s,getColumnWidth:function(){return s},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}(x.PureComponent).propTypes={};var tp=function(e){function t(e,o){var r;return eE(this,t),(r=eD(this,eA(t).call(this,e,o)))._loadMoreRowsMemoizer=eV(),r._onRowsRendered=r._onRowsRendered.bind(eN(r)),r._registerChild=r._registerChild.bind(eN(r)),r}return eG(t,e),ex(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=eV(),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 r=o(e);r&&r.then(function(){var o,r,i,n,s;r=(o={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex}).lastRenderedStartIndex,i=o.lastRenderedStopIndex,n=o.startIndex,s=o.stopIndex,!(n>i||s<r)&&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,r,i=this,n=this.props,s=n.isRowLoaded,l=n.minimumBatchSize,a=n.rowCount,h=n.threshold,c=function(e){for(var t=e.isRowLoaded,o=e.minimumBatchSize,r=e.rowCount,i=e.startIndex,n=e.stopIndex,s=[],l=null,a=null,h=i;h<=n;h++)t({index:h})?null!==a&&(s.push({startIndex:l,stopIndex:a}),l=a=null):(a=h,null===l&&(l=h));if(null!==a){for(var c=Math.min(Math.max(a,l+o-1),r-1),d=a+1;d<=c&&!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:s,minimumBatchSize:l,rowCount:a,startIndex:Math.max(0,e-h),stopIndex:Math.min(a-1,t+h)}),d=(r=[]).concat.apply(r,function(e){if(Array.isArray(e))return td(e)}(o=c.map(function(e){return[e.startIndex,e.stopIndex]}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||tu(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());this._loadMoreRowsMemoizer({callback:function(){i._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(x.PureComponent);ez(tp,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),tp.propTypes={};var tf=(T=C=function(e){function t(){eE(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return ez(eN(o=eD(this,(e=eA(t)).call.apply(e,[this].concat(i)))),"Grid",void 0),ez(eN(o),"_cellRenderer",function(e){var t=e.parent,r=e.rowIndex,i=e.style,n=e.isScrolling,s=e.isVisible,l=e.key,a=o.props.rowRenderer,h=Object.getOwnPropertyDescriptor(i,"width");return h&&h.writable&&(i.width="100%"),a({index:r,style:i,isScrolling:n,isVisible:s,key:l,parent:t})}),ez(eN(o),"_setRef",function(e){o.Grid=e}),ez(eN(o),"_onScroll",function(e){var t=e.clientHeight,r=e.scrollHeight,i=e.scrollTop;(0,o.props.onScroll)({clientHeight:t,scrollHeight:r,scrollTop:i})}),ez(eN(o),"_onScrollToRowCausedUpdate",function(e){var t=e.clientHeight,r=e.scrollHeight,i=e.scrollTop;(0,o.props.onScrollToRowCausedUpdate)({clientHeight:t,scrollHeight:r,scrollTop:i})}),ez(eN(o),"_onSectionRendered",function(e){var t=e.rowOverscanStartIndex,r=e.rowOverscanStopIndex,i=e.rowStartIndex,n=e.rowStopIndex;(0,o.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:r,startIndex:i,stopIndex:n})}),o}return eG(t,e),ex(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=e.rowIndex;this.Grid&&this.Grid.recomputeGridSize({rowIndex:void 0===o?0:o,columnIndex:void 0===t?0:t})}},{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,r=e.scrollToIndex,i=e.width,n=eB("ReactVirtualized__List",t);return x.createElement(e6,eF({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:n,columnWidth:i,columnCount:1,noContentRenderer:o,onScroll:this._onScroll,onScrollToTargetCausedUpdate:this._onScrollToRowCausedUpdate,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:r}))}}]),t}(x.PureComponent),ez(C,"propTypes",null),T);ez(tf,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},onScrollToRowCausedUpdate:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:e3,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});let tm={ge:function(e,t,o,r,i){return"function"==typeof o?function(e,t,o,r,i){for(var n=o+1;t<=o;){var s=t+o>>>1;i(e[s],r)>=0?(n=s,o=s-1):t=s+1}return n}(e,void 0===r?0:0|r,void 0===i?e.length-1:0|i,t,o):function(e,t,o,r){for(var i=o+1;t<=o;){var n=t+o>>>1;e[n]>=r?(i=n,o=n-1):t=n+1}return i}(e,void 0===o?0:0|o,void 0===r?e.length-1:0|r,t)}};function tg(e,t,o,r,i){this.mid=e,this.left=t,this.right=o,this.leftPoints=r,this.rightPoints=i,this.count=(t?t.count:0)+(o?o.count:0)+r.length}var t_=tg.prototype;function tv(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 tS(e,t){var o=tI(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 ty(e,t){var o=e.intervals([]);o.push(t),tS(e,o)}function tR(e,t){var o=e.intervals([]),r=o.indexOf(t);return r<0?0:(o.splice(r,1),tS(e,o),1)}function tC(e,t,o){for(var r=0;r<e.length&&e[r][0]<=t;++r){var i=o(e[r]);if(i)return i}}function tT(e,t,o){for(var r=e.length-1;r>=0&&e[r][1]>=t;--r){var i=o(e[r]);if(i)return i}}function tw(e,t){for(var o=0;o<e.length;++o){var r=t(e[o]);if(r)return r}}function tb(e,t){return e-t}function tE(e,t){return e[0]-t[0]||e[1]-t[1]}function tO(e,t){return e[1]-t[1]||e[0]-t[0]}function tI(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(tb);for(var r=t[t.length>>1],i=[],n=[],s=[],o=0;o<e.length;++o){var l=e[o];l[1]<r?i.push(l):r<l[0]?n.push(l):s.push(l)}var a=s.slice();return s.sort(tE),a.sort(tO),new tg(r,tI(i),tI(n),s,a)}function tM(e){this.root=e}t_.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},t_.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)?ty(this,e):this.left.insert(e):this.left=tI([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?ty(this,e):this.right.insert(e):this.right=tI([e]);else{var o=tm.ge(this.leftPoints,e,tE),r=tm.ge(this.rightPoints,e,tO);this.leftPoints.splice(o,0,e),this.rightPoints.splice(r,0,e)}},t_.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid){if(!this.left)return 0;if(4*(this.right?this.right.count:0)>3*(t-1))return tR(this,e);var o=this.left.remove(e);return 2===o?(this.left=null,this.count-=1,1):(1===o&&(this.count-=1),o)}if(e[0]>this.mid){if(!this.right)return 0;if(4*(this.left?this.left.count:0)>3*(t-1))return tR(this,e);var o=this.right.remove(e);return 2===o?(this.right=null,this.count-=1,1):(1===o&&(this.count-=1),o)}if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var r=this,i=this.left;i.right;)r=i,i=i.right;if(r===this)i.right=this.right;else{var n=this.left,o=this.right;r.count-=i.count,r.right=i.left,i.left=n,i.right=o}tv(this,i),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?tv(this,this.left):tv(this,this.right);return 1}for(var n=tm.ge(this.leftPoints,e,tE);n<this.leftPoints.length&&this.leftPoints[n][0]===e[0];++n)if(this.leftPoints[n]===e){this.count-=1,this.leftPoints.splice(n,1);for(var o=tm.ge(this.rightPoints,e,tO);o<this.rightPoints.length&&this.rightPoints[o][1]===e[1];++o)if(this.rightPoints[o]===e)return this.rightPoints.splice(o,1),1}return 0},t_.queryPoint=function(e,t){if(e<this.mid){if(this.left){var o=this.left.queryPoint(e,t);if(o)return o}return tC(this.leftPoints,e,t)}if(!(e>this.mid))return tw(this.leftPoints,t);if(this.right){var o=this.right.queryPoint(e,t);if(o)return o}return tT(this.rightPoints,e,t)},t_.queryInterval=function(e,t,o){if(e<this.mid&&this.left){var r=this.left.queryInterval(e,t,o);if(r)return r}if(t>this.mid&&this.right){var r=this.right.queryInterval(e,t,o);if(r)return r}return t<this.mid?tC(this.leftPoints,t,o):e>this.mid?tT(this.rightPoints,e,o):tw(this.leftPoints,o)};var tx=tM.prototype;tx.insert=function(e){this.root?this.root.insert(e):this.root=new tg(e[0],null,null,[e],[e])},tx.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},tx.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},tx.queryInterval=function(e,t,o){if(e<=t&&this.root)return this.root.queryInterval(e,t,o)},Object.defineProperty(tx,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(tx,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var tN=function(){function e(){eE(this,e),ez(this,"_columnSizeMap",{}),ez(this,"_intervalTree",new tM(null)),ez(this,"_leftMap",{})}return ex(e,[{key:"estimateTotalHeight",value:function(e,t,o){var r=e-this.count;return this.tallestColumnSize+Math.ceil(r/t)*o}},{key:"range",value:function(e,t,o){var r=this;this._intervalTree.queryInterval(e,e+t,function(e){var t=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 r,i,n,s,l=[],a=!0,h=!1;try{for(n=(o=o.call(e)).next;!(a=(r=n.call(o)).done)&&(l.push(r.value),3!==l.length);a=!0);}catch(e){h=!0,i=e}finally{try{if(!a&&null!=o.return&&(s=o.return(),Object(s)!==s))return}finally{if(h)throw i}}return l}}(e,3)||tu(e,3)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=t[0],n=(t[1],t[2]);return o(n,r._leftMap[n],i)})}},{key:"setPosition",value:function(e,t,o,r){this._intervalTree.insert([o,o+r,e]),this._leftMap[e]=t;var i=this._columnSizeMap,n=i[t];void 0===n?i[t]=o+r:i[t]=Math.max(n,o+r)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var r=e[o];t=0===t?r:Math.min(t,r)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e)t=Math.max(t,e[o]);return t}}]),e}();function tD(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}var tA=(b=w=function(e){function t(){eE(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return ez(eN(o=eD(this,(e=eA(t)).call.apply(e,[this].concat(i)))),"state",{isScrolling:!1,scrollTop:0}),ez(eN(o),"_debounceResetIsScrollingId",void 0),ez(eN(o),"_invalidateOnUpdateStartIndex",null),ez(eN(o),"_invalidateOnUpdateStopIndex",null),ez(eN(o),"_positionCache",new tN),ez(eN(o),"_startIndex",null),ez(eN(o),"_startIndexMemoized",null),ez(eN(o),"_stopIndex",null),ez(eN(o),"_stopIndexMemoized",null),ez(eN(o),"_debounceResetIsScrollingCallback",function(){o.setState({isScrolling:!1})}),ez(eN(o),"_setScrollingContainerRef",function(e){o._scrollingContainer=e}),ez(eN(o),"_onScroll",function(e){var t=o.props.height,r=e.currentTarget.scrollTop,i=Math.min(Math.max(0,o._getEstimatedTotalHeight()-t),r);r===i&&(o._debounceResetIsScrolling(),o.state.scrollTop!==i&&o.setState({isScrolling:!0,scrollTop:i}))}),o}return eG(t,e),ex(t,[{key:"clearCellPositions",value:function(){this._positionCache=new tN,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 tN,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&&eJ(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,o=this.props,r=o.autoHeight,i=o.cellCount,n=o.cellMeasurerCache,s=o.cellRenderer,l=o.className,a=o.height,h=o.id,c=o.keyMapper,d=o.overscanByPixels,u=o.role,p=o.style,f=o.tabIndex,m=o.width,g=o.rowDirection,_=this.state,v=_.isScrolling,S=_.scrollTop,y=[],R=this._getEstimatedTotalHeight(),C=this._positionCache.shortestColumnSize,T=this._positionCache.count,w=0;if(this._positionCache.range(Math.max(0,S-d),a+2*d,function(o,r,i){var l;void 0===e?(w=o,e=o):(w=Math.min(w,o),e=Math.max(e,o)),y.push(s({index:o,isScrolling:v,key:c(o),parent:t,style:(ez(l={height:n.getHeight(o)},"ltr"===g?"left":"right",r),ez(l,"position","absolute"),ez(l,"top",i),ez(l,"width",n.getWidth(o)),l)}))}),C<S+a+d&&T<i)for(var b=Math.min(i-T,Math.ceil((S+a+d-C)/n.defaultHeight*m/n.defaultWidth)),E=T;E<T+b;E++)e=E,y.push(s({index:E,isScrolling:v,key:c(E),parent:this,style:{width:n.getWidth(E)}}));return this._startIndex=w,this._stopIndex=e,x.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:eB("ReactVirtualized__Masonry",l),id:h,onScroll:this._onScroll,role:u,style:function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?tD(o,!0).forEach(function(t){ez(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tD(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({boxSizing:"border-box",direction:"ltr",height:r?"auto":a,overflowX:"hidden",overflowY:R<a?"hidden":"auto",position:"relative",width:m,WebkitOverflowScrolling:"touch",willChange:"transform"},p),tabIndex:f},x.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:R,maxWidth:"100%",maxHeight:R,overflow:"hidden",pointerEvents:v?"none":"",position:"relative"}},y))}},{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&&eJ(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=e0(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,o=e.cellMeasurerCache,r=Math.max(1,Math.floor(e.width/o.defaultWidth));return this._positionCache.estimateTotalHeight(t,r,o.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,o=e.onScroll,r=this.state.scrollTop;this._onScrollMemoized!==r&&(o({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:r}),this._onScrollMemoized=r)}},{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,r=o.cellMeasurerCache,i=o.cellPositioner,n=e;n<=t;n++){var s=i(n),l=s.left,a=s.top;this._positionCache.setPosition(n,l,a,r.getHeight(n))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}]),t}(x.PureComponent),ez(w,"propTypes",null),b);function tH(){}ez(tA,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:tH,onScroll:tH,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"}),eP(tA);var tG=function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eE(this,e),ez(this,"_cellMeasurerCache",void 0),ez(this,"_columnIndexOffset",void 0),ez(this,"_rowIndexOffset",void 0),ez(this,"columnWidth",function(e){var o=e.index;t._cellMeasurerCache.columnWidth({index:o+t._columnIndexOffset})}),ez(this,"rowHeight",function(e){var o=e.index;t._cellMeasurerCache.rowHeight({index:o+t._rowIndexOffset})});var r=o.cellMeasurerCache,i=o.columnIndexOffset,n=o.rowIndexOffset;this._cellMeasurerCache=r,this._columnIndexOffset=void 0===i?0:i,this._rowIndexOffset=void 0===n?0:n}return ex(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,r){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,o,r)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function tz(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function tW(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?tz(o,!0).forEach(function(t){ez(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tz(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var tk=function(e){function t(e,o){eE(this,t),ez(eN(r=eD(this,eA(t).call(this,e,o))),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),ez(eN(r),"_deferredInvalidateColumnIndex",null),ez(eN(r),"_deferredInvalidateRowIndex",null),ez(eN(r),"_bottomLeftGridRef",function(e){r._bottomLeftGrid=e}),ez(eN(r),"_bottomRightGridRef",function(e){r._bottomRightGrid=e}),ez(eN(r),"_cellRendererBottomLeftGrid",function(e){var t=e.rowIndex,o=eU(e,["rowIndex"]),i=r.props,n=i.cellRenderer,s=i.fixedRowCount;return t===i.rowCount-s?x.createElement("div",{key:o.key,style:tW({},o.style,{height:20})}):n(tW({},o,{parent:eN(r),rowIndex:t+s}))}),ez(eN(r),"_cellRendererBottomRightGrid",function(e){var t=e.columnIndex,o=e.rowIndex,i=eU(e,["columnIndex","rowIndex"]),n=r.props,s=n.cellRenderer,l=n.fixedColumnCount,a=n.fixedRowCount;return s(tW({},i,{columnIndex:t+l,parent:eN(r),rowIndex:o+a}))}),ez(eN(r),"_cellRendererTopRightGrid",function(e){var t=e.columnIndex,o=eU(e,["columnIndex"]),i=r.props,n=i.cellRenderer,s=i.columnCount,l=i.fixedColumnCount;return t===s-l?x.createElement("div",{key:o.key,style:tW({},o.style,{width:20})}):n(tW({},o,{columnIndex:t+l,parent:eN(r)}))}),ez(eN(r),"_columnWidthRightGrid",function(e){var t=e.index,o=r.props,i=o.columnCount,n=o.fixedColumnCount,s=o.columnWidth,l=r.state,a=l.scrollbarSize;return l.showHorizontalScrollbar&&t===i-n?a:"function"==typeof s?s({index:t+n}):s}),ez(eN(r),"_onScroll",function(e){var t=e.scrollLeft,o=e.scrollTop;r.setState({scrollLeft:t,scrollTop:o});var i=r.props.onScroll;i&&i(e)}),ez(eN(r),"_onScrollbarPresenceChange",function(e){var t=e.horizontal,o=e.size,i=e.vertical,n=r.state,s=n.showHorizontalScrollbar,l=n.showVerticalScrollbar;if(t!==s||i!==l){r.setState({scrollbarSize:o,showHorizontalScrollbar:t,showVerticalScrollbar:i});var a=r.props.onScrollbarPresenceChange;"function"==typeof a&&a({horizontal:t,size:o,vertical:i})}}),ez(eN(r),"_onScrollLeft",function(e){var t=e.scrollLeft;r._onScroll({scrollLeft:t,scrollTop:r.state.scrollTop})}),ez(eN(r),"_onScrollTop",function(e){var t=e.scrollTop;r._onScroll({scrollTop:t,scrollLeft:r.state.scrollLeft})}),ez(eN(r),"_rowHeightBottomGrid",function(e){var t=e.index,o=r.props,i=o.fixedRowCount,n=o.rowCount,s=o.rowHeight,l=r.state,a=l.scrollbarSize;return l.showVerticalScrollbar&&t===n-i?a:"function"==typeof s?s({index:t+i}):s}),ez(eN(r),"_topLeftGridRef",function(e){r._topLeftGrid=e}),ez(eN(r),"_topRightGridRef",function(e){r._topRightGrid=e});var r,i=e.deferredMeasurementCache,n=e.fixedColumnCount,s=e.fixedRowCount;return r._maybeCalculateCachedStyles(!0),i&&(r._deferredMeasurementCacheBottomLeftGrid=s>0?new tG({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:s}):i,r._deferredMeasurementCacheBottomRightGrid=n>0||s>0?new tG({cellMeasurerCache:i,columnIndexOffset:n,rowIndexOffset:s}):i,r._deferredMeasurementCacheTopRightGrid=n>0?new tG({cellMeasurerCache:i,columnIndexOffset:n,rowIndexOffset:0}):i),r}return eG(t,e),ex(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,r=e.rowIndex,i=void 0===r?0:r;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,i):i}},{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,r=e.rowIndex,i=void 0===r?0:r,n=this.props,s=n.fixedColumnCount,l=n.fixedRowCount,a=Math.max(0,o-s),h=Math.max(0,i-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:h}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:a,rowIndex:h}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:i}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:a,rowIndex:i}),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 r={};t>0&&(r.scrollLeft=t),o>0&&(r.scrollTop=o),this.setState(r)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,o=e.onSectionRendered,r=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),n=eU(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var s=this.state,l=s.scrollLeft,a=s.scrollTop;return x.createElement("div",{style:this._containerOuterStyle},x.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(n),this._renderTopRightGrid(tW({},n,{onScroll:t,scrollLeft:l}))),x.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(tW({},n,{onScroll:t,scrollTop:a})),this._renderBottomRightGrid(tW({},n,{onScroll:t,onSectionRendered:o,scrollLeft:l,scrollToColumn:r,scrollToRow:i,scrollTop:a}))))}},{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 r=0,i=0;i<t;i++)r+=o({index:i});this._leftGridWidth=r}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 r=0,i=0;i<t;i++)r+=o({index:i});this._topGridHeight=r}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,r=t.enableFixedColumnScroll,i=t.enableFixedRowScroll,n=t.height,s=t.fixedColumnCount,l=t.fixedRowCount,a=t.rowHeight,h=t.style,c=t.styleBottomLeftGrid,d=t.styleBottomRightGrid,u=t.styleTopLeftGrid,p=t.styleTopRightGrid,f=t.width,m=e||n!==this._lastRenderedHeight||f!==this._lastRenderedWidth,g=e||o!==this._lastRenderedColumnWidth||s!==this._lastRenderedFixedColumnCount,_=e||l!==this._lastRenderedFixedRowCount||a!==this._lastRenderedRowHeight;(e||m||h!==this._lastRenderedStyle)&&(this._containerOuterStyle=tW({height:n,overflow:"visible",width:f},h)),(e||m||_)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:f},this._containerBottomStyle={height:n-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:f}),(e||c!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=tW({left:0,overflowX:"hidden",overflowY:r?"auto":"hidden",position:"absolute"},c)),(e||g||d!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=tW({left:this._getLeftGridWidth(this.props),position:"absolute"},d)),(e||u!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=tW({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},u)),(e||g||p!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=tW({left:this._getLeftGridWidth(this.props),overflowX:i?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},p)),this._lastRenderedColumnWidth=o,this._lastRenderedFixedColumnCount=s,this._lastRenderedFixedRowCount=l,this._lastRenderedHeight=n,this._lastRenderedRowHeight=a,this._lastRenderedStyle=h,this._lastRenderedStyleBottomLeftGrid=c,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,r=e.fixedRowCount,i=e.rowCount,n=e.hideBottomLeftGridScrollbar,s=this.state.showVerticalScrollbar;if(!o)return null;var l=this._getBottomGridHeight(e),a=this._getLeftGridWidth(e),h=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,c=x.createElement(e6,eF({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:o,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:l,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,i-r)+(s?1:0),rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:n?a+h:a}));return n?x.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:tW({},this._bottomLeftGridStyle,{height:l,width:a,overflowY:"hidden"})},c):c}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,o=e.fixedColumnCount,r=e.fixedRowCount,i=e.rowCount,n=e.scrollToColumn,s=e.scrollToRow;return x.createElement(e6,eF({},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-r),rowHeight:this._rowHeightBottomGrid,scrollToColumn:n-o,scrollToRow:s-r,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,o=e.fixedRowCount;return t&&o?x.createElement(e6,eF({},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,r=e.fixedColumnCount,i=e.fixedRowCount,n=e.scrollLeft,s=e.hideTopRightGridScrollbar,l=this.state,a=l.showHorizontalScrollbar,h=l.scrollbarSize;if(!i)return null;var c=this._getTopGridHeight(e),d=this._getRightGridWidth(e),u=c,p=this._topRightGridStyle;s&&(u=c+(a?h:0),p=tW({},this._topRightGridStyle,{left:0}));var f=x.createElement(e6,eF({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-r)+(a?1:0),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:u,onScroll:o?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:i,scrollLeft:n,style:p,tabIndex:null,width:d}));return s?x.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:tW({},this._topRightGridStyle,{height:c,width:d,overflowX:"hidden"})},f):f}}],[{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}(x.PureComponent);function tL(e){var t=e.className,o=e.columns,r=e.style;return x.createElement("div",{className:t,role:"row",style:r},o)}ez(tk,"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}),tk.propTypes={},eP(tk),function(e){function t(e,o){var r;return eE(this,t),(r=eD(this,eA(t).call(this,e,o))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},r._onScroll=r._onScroll.bind(eN(r)),r}return eG(t,e),ex(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.clientHeight,r=t.clientWidth,i=t.scrollHeight,n=t.scrollLeft,s=t.scrollTop,l=t.scrollWidth;return e({clientHeight:o,clientWidth:r,onScroll:this._onScroll,scrollHeight:i,scrollLeft:n,scrollTop:s,scrollWidth:l})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.clientWidth,r=e.scrollHeight,i=e.scrollLeft,n=e.scrollTop,s=e.scrollWidth;this.setState({clientHeight:t,clientWidth:o,scrollHeight:r,scrollLeft:i,scrollTop:n,scrollWidth:s})}}]),t}(x.PureComponent).propTypes={},tL.propTypes=null;let tP={ASC:"ASC",DESC:"DESC"};function tF(e){var t=e.sortDirection,o=eB("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===tP.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===tP.DESC});return x.createElement("svg",{className:o,width:18,height:18,viewBox:"0 0 24 24"},t===tP.ASC?x.createElement("path",{d:"M7 14l5-5 5 5z"}):x.createElement("path",{d:"M7 10l5 5 5-5z"}),x.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function tB(e){var t=e.dataKey,o=e.label,r=e.sortBy,i=e.sortDirection,n=[x.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof o?o:null},o)];return r===t&&n.push(x.createElement(tF,{key:"SortIndicator",sortDirection:i})),n}function tZ(e){var t=e.className,o=e.columns,r=e.index,i=e.key,n=e.onRowClick,s=e.onRowDoubleClick,l=e.onRowMouseOut,a=e.onRowMouseOver,h=e.onRowRightClick,c=e.rowData,d=e.style,u={"aria-rowindex":r+1};return(n||s||l||a||h)&&(u["aria-label"]="row",u.tabIndex=0,n&&(u.onClick=function(e){return n({event:e,index:r,rowData:c})}),s&&(u.onDoubleClick=function(e){return s({event:e,index:r,rowData:c})}),l&&(u.onMouseOut=function(e){return l({event:e,index:r,rowData:c})}),a&&(u.onMouseOver=function(e){return a({event:e,index:r,rowData:c})}),h&&(u.onContextMenu=function(e){return h({event:e,index:r,rowData:c})})),x.createElement("div",eF({},u,{className:t,key:i,role:"row",style:d}),o)}tF.propTypes={},tB.propTypes=null,tZ.propTypes=null;var tU=function(e){function t(){return eE(this,t),eD(this,eA(t).apply(this,arguments))}return eG(t,e),t}(x.Component);function tj(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function t$(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?tj(o,!0).forEach(function(t){ez(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tj(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}ez(tU,"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:tP.ASC,flexGrow:0,flexShrink:1,headerRenderer:tB,style:{}}),tU.propTypes={};var tV=function(e){function t(e){var o;return eE(this,t),(o=eD(this,eA(t).call(this,e))).state={scrollbarWidth:0},o._createColumn=o._createColumn.bind(eN(o)),o._createRow=o._createRow.bind(eN(o)),o._onScroll=o._onScroll.bind(eN(o)),o._onSectionRendered=o._onSectionRendered.bind(eN(o)),o._setRef=o._setRef.bind(eN(o)),o}return eG(t,e),ex(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=e.rowIndex;this.Grid&&this.Grid.recomputeGridSize({rowIndex:void 0===o?0:o,columnIndex:void 0===t?0:t})}},{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,tt.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,r=t.className,i=t.disableHeader,n=t.gridClassName,s=t.gridStyle,l=t.headerHeight,a=t.headerRowRenderer,h=t.height,c=t.id,d=t.noRowsRenderer,u=t.rowClassName,p=t.rowStyle,f=t.scrollToIndex,m=t.style,g=t.width,_=this.state.scrollbarWidth,v="function"==typeof u?u({index:-1}):u,S="function"==typeof p?p({index:-1}):p;return this._cachedColumnStyles=[],x.Children.toArray(o).forEach(function(t,o){var r=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[o]=t$({overflow:"hidden"},r)}),x.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":x.Children.toArray(o).length,"aria-rowcount":this.props.rowCount,className:eB("ReactVirtualized__Table",r),id:c,role:"grid",style:m},!i&&a({className:eB("ReactVirtualized__Table__headerRow",v),columns:this._getHeaderColumns(),style:t$({height:l,overflow:"hidden",paddingRight:_,width:g},S)}),x.createElement(e6,eF({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:eB("ReactVirtualized__Table__Grid",n),cellRenderer:this._createRow,columnWidth:g,columnCount:1,height:i?h:h-l,id:void 0,noContentRenderer:d,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:_,scrollToRow:f,style:t$({},s,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,o=e.columnIndex,r=e.isScrolling,i=e.parent,n=e.rowData,s=e.rowIndex,l=this.props.onColumnClick,a=t.props,h=a.cellDataGetter,c=a.cellRenderer,d=a.className,u=a.columnData,p=a.dataKey,f=a.id,m=c({cellData:h({columnData:u,dataKey:p,rowData:n}),columnData:u,columnIndex:o,dataKey:p,isScrolling:r,parent:i,rowData:n,rowIndex:s}),g=this._cachedColumnStyles[o],_="string"==typeof m?m:null;return x.createElement("div",{"aria-colindex":o+1,"aria-describedby":f,className:eB("ReactVirtualized__Table__rowColumn",d),key:"Row"+s+"-Col"+o,onClick:function(e){l&&l({columnData:u,dataKey:p,event:e})},role:"gridcell",style:g,title:_},m)}},{key:"_createHeader",value:function(e){var t,o,r,i,n,s=e.column,l=e.index,a=this.props,h=a.headerClassName,c=a.headerStyle,d=a.onHeaderClick,u=a.sort,p=a.sortBy,f=a.sortDirection,m=s.props,g=m.columnData,_=m.dataKey,v=m.defaultSortDirection,S=m.disableSort,y=m.headerRenderer,R=m.id,C=m.label,T=!S&&u,w=eB("ReactVirtualized__Table__headerColumn",h,s.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:T}),b=this._getFlexStyleForColumn(s,t$({},c,{},s.props.headerStyle)),E=y({columnData:g,dataKey:_,disableSort:S,label:C,sortBy:p,sortDirection:f});if(T||d){var O=p!==_?v:f===tP.DESC?tP.ASC:tP.DESC,I=function(e){T&&u({defaultSortDirection:v,event:e,sortBy:_,sortDirection:O}),d&&d({columnData:g,dataKey:_,event:e})};n=s.props["aria-label"]||C||_,i="none",r=0,t=I,o=function(e){("Enter"===e.key||" "===e.key)&&I(e)}}return p===_&&(i=f===tP.ASC?"ascending":"descending"),x.createElement("div",{"aria-label":n,"aria-sort":i,className:w,id:R,key:"Header-Col"+l,onClick:t,onKeyDown:o,role:"columnheader",style:b,tabIndex:r},E)}},{key:"_createRow",value:function(e){var t=this,o=e.rowIndex,r=e.isScrolling,i=e.key,n=e.parent,s=e.style,l=this.props,a=l.children,h=l.onRowClick,c=l.onRowDoubleClick,d=l.onRowRightClick,u=l.onRowMouseOver,p=l.onRowMouseOut,f=l.rowClassName,m=l.rowGetter,g=l.rowRenderer,_=l.rowStyle,v=this.state.scrollbarWidth,S="function"==typeof f?f({index:o}):f,y="function"==typeof _?_({index:o}):_,R=m({index:o}),C=x.Children.toArray(a).map(function(e,i){return t._createColumn({column:e,columnIndex:i,isScrolling:r,parent:n,rowData:R,rowIndex:o,scrollbarWidth:v})}),T=eB("ReactVirtualized__Table__row",S),w=t$({},s,{height:this._getRowHeight(o),overflow:"hidden",paddingRight:v},y);return g({className:T,columns:C,index:o,isScrolling:r,key:i,onRowClick:h,onRowDoubleClick:c,onRowRightClick:d,onRowMouseOver:u,onRowMouseOut:p,rowData:R,style:w})}},{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"),r=t$({},t,{flex:o,msFlex:o,WebkitFlex:o});return e.props.maxWidth&&(r.maxWidth=e.props.maxWidth),e.props.minWidth&&(r.minWidth=e.props.minWidth),r}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,o=t.children;return(t.disableHeader?[]:x.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,r=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:o,scrollTop:r})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,o=e.rowOverscanStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:o,startIndex:r,stopIndex:i})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(x.PureComponent);ez(tV,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:e3,overscanRowCount:10,rowRenderer:tZ,headerRowRenderer:tL,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),tV.propTypes={};var tY=[],tK=null,tq=null;function tX(){tq&&(tq=null,document.body&&null!=tK&&(document.body.style.pointerEvents=tK),tK=null)}function tQ(){tX(),tY.forEach(function(e){return e.__resetIsScrolling()})}function tJ(e){var t;e.currentTarget===window&&null==tK&&document.body&&(tK=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),tq&&eJ(tq),t=0,tY.forEach(function(e){t=Math.max(t,e.props.scrollingResetTimeInterval)}),tq=e0(tQ,t),tY.forEach(function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()})}function t0(e,t){tY.some(function(e){return e.props.scrollElement===t})||t.addEventListener("scroll",tJ),tY.push(e)}function t1(e,t){!(tY=tY.filter(function(t){return t!==e})).length&&(t.removeEventListener("scroll",tJ),tq&&(eJ(tq),tX()))}var t2=function(e){return e===window},t5=function(e){return e.getBoundingClientRect()};function t6(e,t){if(!e)return{height:t.serverHeight,width:t.serverWidth};if(!t2(e))return t5(e);var o=window,r=o.innerHeight,i=o.innerWidth;return{height:"number"==typeof r?r:0,width:"number"==typeof i?i:0}}function t3(e){return t2(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 t4(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}var t9=function(){return"undefined"!=typeof window?window:void 0},t7=(O=E=function(e){function t(){eE(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return ez(eN(o=eD(this,(e=eA(t)).call.apply(e,[this].concat(i)))),"_window",t9()),ez(eN(o),"_isMounted",!1),ez(eN(o),"_positionFromTop",0),ez(eN(o),"_positionFromLeft",0),ez(eN(o),"_detectElementResize",void 0),ez(eN(o),"_child",void 0),ez(eN(o),"state",function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?t4(o,!0).forEach(function(t){ez(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t4(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({},t6(o.props.scrollElement,o.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),ez(eN(o),"_registerChild",function(e){e&&Element,o._child=e,o.updatePosition()}),ez(eN(o),"_onChildScroll",function(e){var t=e.scrollTop;if(o.state.scrollTop!==t){var r=o.props.scrollElement;r&&("function"==typeof r.scrollTo?r.scrollTo(0,t+o._positionFromTop):r.scrollTop=t+o._positionFromTop)}}),ez(eN(o),"_registerResizeListener",function(e){e===window?window.addEventListener("resize",o._onResize,!1):o._detectElementResize.addResizeListener(e,o._onResize)}),ez(eN(o),"_unregisterResizeListener",function(e){e===window?window.removeEventListener("resize",o._onResize,!1):e&&o._detectElementResize.removeResizeListener(e,o._onResize)}),ez(eN(o),"_onResize",function(){o.updatePosition()}),ez(eN(o),"__handleWindowScrollEvent",function(){if(o._isMounted){var e=o.props.onScroll,t=o.props.scrollElement;if(t){var r=t3(t),i=Math.max(0,r.left-o._positionFromLeft),n=Math.max(0,r.top-o._positionFromTop);o.setState({isScrolling:!0,scrollLeft:i,scrollTop:n}),e({scrollLeft:i,scrollTop:n})}}}),ez(eN(o),"__resetIsScrolling",function(){o.setState({isScrolling:!1})}),o}return eG(t,e),ex(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,r=o.height,i=o.width,n=this._child||tt.findDOMNode(this);if(n instanceof Element&&e){var s=function(e,t){if(t2(t)&&document.documentElement){var o=document.documentElement,r=t5(e),i=t5(o);return{top:r.top-i.top,left:r.left-i.left}}var n=t3(t),s=t5(e),l=t5(t);return{top:s.top+n.top-l.top,left:s.left+n.left-l.left}}(n,e);this._positionFromTop=s.top,this._positionFromLeft=s.left}var l=t6(e,this.props);(r!==l.height||i!==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=e7(),this.updatePosition(e),e&&(t0(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var o=this.props.scrollElement,r=e.scrollElement;r!==o&&null!=r&&null!=o&&(this.updatePosition(o),t1(this,r),t0(this,o),this._unregisterResizeListener(r),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(t1(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.isScrolling,r=t.scrollTop,i=t.scrollLeft,n=t.height,s=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:n,isScrolling:o,scrollLeft:i,scrollTop:r,width:s})}}]),t}(x.PureComponent),ez(E,"propTypes",null),O);ez(t7,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:t9(),serverHeight:0,serverWidth:0});var t8=(n=function(e,t){return(n=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)},function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),oe=function(){return(oe=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},ot={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},oo={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},or={width:"20px",height:"20px",position:"absolute"},oi={top:oe(oe({},ot),{top:"-5px"}),right:oe(oe({},oo),{left:void 0,right:"-5px"}),bottom:oe(oe({},ot),{top:void 0,bottom:"-5px"}),left:oe(oe({},oo),{left:"-5px"}),topRight:oe(oe({},or),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:oe(oe({},or),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:oe(oe({},or),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:oe(oe({},or),{left:"-10px",top:"-10px",cursor:"nw-resize"})},on=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 t8(t,e),t.prototype.render=function(){return x.createElement("div",{className:this.props.className||"",style:oe(oe({position:"absolute",userSelect:"none"},oi[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(x.PureComponent),os=(s=function(e,t){return(s=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)},function(e,t){function o(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),ol=function(){return(ol=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},oa={width:"auto",height:"auto"},oh=function(e,t,o){return Math.max(Math.min(e,o),t)},oc=function(e,t,o){var r=Math.round(e/t);return r*t+o*(r-1)},od=function(e,t){return RegExp(e,"i").test(t)},ou=function(e){return!!(e.touches&&e.touches.length)},op=function(e,t,o){void 0===o&&(o=0);var r=t.reduce(function(o,r,i){return Math.abs(r-e)<Math.abs(t[o]-e)?i:o},0),i=Math.abs(t[r]-e);return 0===o||i<o?t[r]:e},of=function(e){return"auto"===(e=e.toString())||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},om=function(e,t,o,r){if(e&&"string"==typeof e){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var i=Number(e.replace("%",""))/100;return t*i}if(e.endsWith("vw")){var i=Number(e.replace("vw",""))/100;return o*i}if(e.endsWith("vh")){var i=Number(e.replace("vh",""))/100;return r*i}}return e},og=["as","ref","style","className","grid","gridGap","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"],o_="__resizable_base__",ov=function(e){function t(t){var o,r,i,n,s=e.call(this,t)||this;return s.ratio=1,s.resizable=null,s.parentLeft=0,s.parentTop=0,s.resizableLeft=0,s.resizableRight=0,s.resizableTop=0,s.resizableBottom=0,s.targetLeft=0,s.targetTop=0,s.appendBase=function(){if(!s.resizable||!s.window)return null;var e=s.parentNode;if(!e)return null;var t=s.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 0 100%",t.classList?t.classList.add(o_):t.className+=o_,e.appendChild(t),t},s.removeBase=function(e){var t=s.parentNode;t&&t.removeChild(e)},s.state={isResizing:!1,width:null!==(r=null===(o=s.propsSize)||void 0===o?void 0:o.width)&&void 0!==r?r:"auto",height:null!==(n=null===(i=s.propsSize)||void 0===i?void 0:i.height)&&void 0!==n?n:"auto",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},s.onResizeStart=s.onResizeStart.bind(s),s.onMouseMove=s.onMouseMove.bind(s),s.onMouseUp=s.onMouseUp.bind(s),s}return os(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||oa},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,r=this.resizable.offsetHeight,i=this.resizable.style.position;"relative"!==i&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:o,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=i}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){var o;if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&(null===(o=e.propsSize[t])||void 0===o?void 0:o.toString().endsWith("%"))){if(e.state[t].toString().endsWith("%"))return e.state[t].toString();var r=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/r[t]*100+"%"}return of(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?of(t.width):o("width"),height:t&&void 0!==t.height&&!this.state.isResizing?of(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%",e.style.minHeight="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=o),this.removeBase(e),r},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)?"auto":e},t.prototype.calculateNewMaxFromBoundary=function(e,t){var o,r,i=this.props.boundsByDirection,n=this.state.direction,s=i&&od("left",n),l=i&&od("top",n);if("parent"===this.props.bounds){var a=this.parentNode;a&&(o=s?this.resizableRight-this.parentLeft:a.offsetWidth+(this.parentLeft-this.resizableLeft),r=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,r=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),r=l?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return o&&Number.isFinite(o)&&(e=e&&e<o?e:o),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var o,r=this.props.scale||1,i=Array.isArray(o=this.props.resizeRatio||1)?o:[o,o],n=i[0],s=i[1],l=this.state,a=l.direction,h=l.original,c=this.props,d=c.lockAspectRatio,u=c.lockAspectRatioExtraHeight,p=c.lockAspectRatioExtraWidth,f=h.width,m=h.height,g=u||0,_=p||0;return od("right",a)&&(f=h.width+(e-h.x)*n/r,d&&(m=(f-_)/this.ratio+g)),od("left",a)&&(f=h.width-(e-h.x)*n/r,d&&(m=(f-_)/this.ratio+g)),od("bottom",a)&&(m=h.height+(t-h.y)*s/r,d&&(f=(m-g)*this.ratio+_)),od("top",a)&&(m=h.height-(t-h.y)*s/r,d&&(f=(m-g)*this.ratio+_)),{newWidth:f,newHeight:m}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,o,r){var i=this.props,n=i.lockAspectRatio,s=i.lockAspectRatioExtraHeight,l=i.lockAspectRatioExtraWidth,a=void 0===r.width?10:r.width,h=void 0===o.width||o.width<0?e:o.width,c=void 0===r.height?10:r.height,d=void 0===o.height||o.height<0?t:o.height,u=s||0,p=l||0;if(n){var f=(c-u)*this.ratio+p,m=(d-u)*this.ratio+p,g=(a-p)/this.ratio+u,_=(h-p)/this.ratio+u;e=oh(e,Math.max(a,f),Math.min(h,m)),t=oh(t,Math.max(c,g),Math.min(d,_))}else e=oh(e,a,h),t=oh(t,c,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){var e=1/(this.props.scale||1);if("parent"===this.props.bounds){var t=this.parentNode;if(t){var o=t.getBoundingClientRect();this.parentLeft=o.left*e,this.parentTop=o.top*e}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var r=this.props.bounds.getBoundingClientRect();this.targetLeft=r.left*e,this.targetTop=r.top*e}if(this.resizable){var i=this.resizable.getBoundingClientRect(),n=i.left,s=i.top,l=i.right,a=i.bottom;this.resizableLeft=n*e,this.resizableRight=l*e,this.resizableTop=s*e,this.resizableBottom=a*e}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var o,r,i=0,n=0;if(e.nativeEvent&&((o=e.nativeEvent).clientX||0===o.clientX)&&(o.clientY||0===o.clientY)?(i=e.nativeEvent.clientX,n=e.nativeEvent.clientY):e.nativeEvent&&ou(e.nativeEvent)&&(i=e.nativeEvent.touches[0].clientX,n=e.nativeEvent.touches[0].clientY),!this.props.onResizeStart||!this.resizable||!1!==this.props.onResizeStart(e,t,this.resizable)){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 s=this.window.getComputedStyle(this.resizable);if("auto"!==s.flexBasis){var l=this.parentNode;if(l){var a=this.window.getComputedStyle(l).flexDirection;this.flexDir=a.startsWith("row")?"row":"column",r=s.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var h={original:{x:i,y:n,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:ol(ol({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:r};this.setState(h)}}},t.prototype.onMouseMove=function(e){var t,o,r,i,n,s,l=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&ou(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var a=this.props,h=a.maxWidth,c=a.maxHeight,d=a.minWidth,u=a.minHeight,p=ou(e)?e.touches[0].clientX:e.clientX,f=ou(e)?e.touches[0].clientY:e.clientY,m=this.state,g=m.direction,_=m.original,v=m.width,S=m.height,y=this.getParentSize(),R=(t=this.window.innerWidth,o=this.window.innerHeight,r=h,i=c,n=d,s=u,r=om(r,y.width,t,o),i=om(i,y.height,t,o),n=om(n,y.width,t,o),s=om(s,y.height,t,o),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===i?void 0:Number(i),minWidth:void 0===n?void 0:Number(n),minHeight:void 0===s?void 0:Number(s)});h=R.maxWidth,c=R.maxHeight,d=R.minWidth,u=R.minHeight;var C=this.calculateNewSizeFromDirection(p,f),T=C.newHeight,w=C.newWidth,b=this.calculateNewMaxFromBoundary(h,c);this.props.snap&&this.props.snap.x&&(w=op(w,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(T=op(T,this.props.snap.y,this.props.snapGap));var E=this.calculateNewSizeFromAspectRatio(w,T,{width:b.maxWidth,height:b.maxHeight},{width:d,height:u});if(w=E.newWidth,T=E.newHeight,this.props.grid){var O=oc(w,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),I=oc(T,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),M=this.props.snapGap||0,x=0===M||Math.abs(O-w)<=M?O:w,N=0===M||Math.abs(I-T)<=M?I:T;w=x,T=N}var D={width:w-_.width,height:T-_.height};if(v&&"string"==typeof v){if(v.endsWith("%")){var A=w/y.width*100;w=A+"%"}else if(v.endsWith("vw")){var H=w/this.window.innerWidth*100;w=H+"vw"}else if(v.endsWith("vh")){var G=w/this.window.innerHeight*100;w=G+"vh"}}if(S&&"string"==typeof S){if(S.endsWith("%")){var A=T/y.height*100;T=A+"%"}else if(S.endsWith("vw")){var H=T/this.window.innerWidth*100;T=H+"vw"}else if(S.endsWith("vh")){var G=T/this.window.innerHeight*100;T=G+"vh"}}var z={width:this.createSizeForCssProperty(w,"width"),height:this.createSizeForCssProperty(T,"height")};"row"===this.flexDir?z.flexBasis=z.width:"column"===this.flexDir&&(z.flexBasis=z.height);var W=this.state.width!==z.width,k=this.state.height!==z.height,L=this.state.flexBasis!==z.flexBasis,P=W||k||L;P&&(0,tt.flushSync)(function(){l.setState(z)}),this.props.onResize&&P&&this.props.onResize(e,g,this.resizable,D)}},t.prototype.onMouseUp=function(e){var t,o,r=this.state,i=r.isResizing,n=r.direction,s=r.original;if(i&&this.resizable){var l={width:this.size.width-s.width,height:this.size.height-s.height};this.props.onResizeStop&&this.props.onResizeStop(e,n,this.resizable,l),this.props.size&&this.setState({width:null!==(t=this.props.size.width)&&void 0!==t?t:"auto",height:null!==(o=this.props.size.height)&&void 0!==o?o:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:ol(ol({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){var t,o;this.setState({width:null!==(t=e.width)&&void 0!==t?t:"auto",height:null!==(o=e.height)&&void 0!==o?o:"auto"})},t.prototype.renderResizer=function(){var e=this,t=this.props,o=t.enable,r=t.handleStyles,i=t.handleClasses,n=t.handleWrapperStyle,s=t.handleWrapperClass,l=t.handleComponent;if(!o)return null;var a=Object.keys(o).map(function(t){return!1!==o[t]?x.createElement(on,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:i&&i[t]},l&&l[t]?l[t]:null):null});return x.createElement("div",{className:s,style:n},a)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce(function(t,o){return -1!==og.indexOf(o)||(t[o]=e.props[o]),t},{}),o=ol(ol(ol({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 r=this.props.as||"div";return x.createElement(r,ol({style:o,className:this.props.className},t,{ref:function(t){t&&(e.resizable=t)}}),this.state.isResizing&&x.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],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(x.PureComponent);let oS={bottom:"bottom",left:"left",right:"right",top:"top"},oy={top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},oR={min:0,max:1/0},oC=({height:e,heightConstraints:t,width:o,widthConstraints:r})=>({height:(0,ef.q)(e,t.min,t.max),width:(0,ef.q)(o,r.min,r.max)}),oT=({deltaWidth:e,deltaHeight:t},{heightConstraints:o,widthConstraints:r},{initialHeight:i,initialWidth:n})=>oC({height:i+t,heightConstraints:o,width:n+e,widthConstraints:r}),ow=({enable:e,height:t,heightConstraints:o,resizeEdge:r,width:i=0,widthConstraints:n})=>({...oC({height:t,widthConstraints:n,heightConstraints:o,width:i}),enable:void 0===e||e,horizontal:r===oS.left||r===oS.right,initialHeight:t,initialWidth:i,resizing:!1,isMouseWheeling:!1,vertical:r===oS.top||r===oS.bottom});class ob extends N().PureComponent{static defaultProps={className:"",enable:!0,heightConstraints:oR,resizeContentClassName:"",resizeHandleClassName:"",style:{},wrapperStyle:{},translate:()=>"",wrapChildrenInDivContainer:!0,widthConstraints:oR};onWheelTimeOut;isMouseWheeling=!1;constructor(e){super(e),this.state=ow(e)}static getDerivedStateFromProps(e,t){return t.resizing?t:ow(e)}componentDidUpdate(e){let{onResizeFromPropChange:t}=this.props,{height:o,resizing:r,width:i}=this.state,{onResizeFromPropChange:n}=e;if(r)return;let{height:s,width:l}=this.state,a=n||t;a&&(s!==o||l!==i)&&a({height:s,width:l,originalHeight:o,originalWidth:i})}_onResize=(e,t,o,{height:r,width:i})=>{let{onResize:n}=this.props,{height:s,horizontal:l,vertical:a,width:h}=this.state,{height:c,width:d}=oT({deltaWidth:i,deltaHeight:r},this.props,this.state),u=l&&d!==h,p=a&&c!==s;(u||p)&&(this.setState({height:p?c:s,width:u?d:h,isMouseWheeling:!1}),n&&n({height:p?c:void 0,width:u?d:void 0}))};_onResizeStart=e=>{e.preventDefault(),e.stopPropagation();let{onResizeStart:t}=this.props,{height:o,horizontal:r,vertical:i,width:n}=this.state;this.setState({resizing:!0}),t&&t({height:i?o:void 0,width:r?n:void 0})};_onResizeEnd=()=>{let{onResizeEnd:e}=this.props,{height:t,horizontal:o,vertical:r,width:i,initialWidth:n,initialHeight:s}=this.state;this.setState({initialWidth:i,initialHeight:t,resizing:!1}),(n!==i||s!==t)&&e&&e({width:o?i:void 0,height:r?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})},50)};render(){let{children:e,className:t,handleStyles:o,id:r,resizeContentClassName:i,resizeEdge:n,resizeHandleClassName:s,style:l,translate:a,heightConstraints:h,wrapChildrenInDivContainer:c,widthConstraints:d}=this.props,{enable:u,height:p,horizontal:f,resizing:m,vertical:g,width:_,isMouseWheeling:v}=this.state,{display:S,...y}=l,{min:R,max:C}=d,{min:T,max:w}=h,b={...this.props.wrapperStyle};f&&(b.width=_,b.minWidth=_),g&&(b.height=p,b.minHeight=p);let E=M()("resizable",t,{resizing:m}),O=M()("contents",i,`resize-edge-${n}`,{horizontal:f,vertical:g}),I=M()(n,s,"resizable-handle",{horizontal:f,vertical:g}),x=N().createElement("span",{title:a("ResizePanel")});return N().createElement("div",{"data-testid":`resizable-${r||""}`,onWheel:this._onWheel,style:{...b,display:S}},N().createElement(ov,{className:E,"data-testid":`resizable-core-${r||""}`,enable:{...oy,[n]:!v&&u},handleClasses:{[n]:I},handleComponent:{[n]:x},handleStyles:o,maxHeight:g?w:void 0,maxWidth:f?C:void 0,minHeight:g?T:void 0,minWidth:f?R:void 0,onResize:this._onResize,onResizeStart:this._onResizeStart,onResizeStop:this._onResizeEnd,size:{height:g?p:"100%",width:f?_:"100%"},style:y},c?N().createElement("div",{className:O,style:{userSelect:"none"}},e):e))}}var oE=o(468);class oO extends N().PureComponent{canvas;componentDidMount(){this.updateCanvas()}componentDidUpdate(e){(e.branchUpstreamRowIndices!==this.props.branchUpstreamRowIndices||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||e.scrollWidth!==this.props.scrollWidth)&&this.updateCanvas()}updateCanvas(e){let{branchUpstreamRowIndices:t,enabledScrollMarkerTypes:o,viewportHeight:r,markerRowIndices:i,markerColors:n,scrollWidth:s,totalRows:l}=e||this.props,a=this.canvas.getContext("2d");a.canvas.width=s,a.canvas.height=r;let h=s/P.Yx;for(let[e,s]of(a.clearRect(0,0,a.canvas.width,a.canvas.height),Object.entries(P.wx))){if(!o.includes(e)&&!("remoteBranches"===e&&o.includes("localBranches")))continue;let c="remoteBranches"!==e||o.includes("remoteBranches")?i[e]||[]:t,d=n[e],u=s.lanes;d&&c.length&&(a.fillStyle=d,c.forEach(t=>{let{height:o,offset:i}=function(e,t,o){let r=t*P.yB,{shape:i}=P.wx[e],n=P.j[i];if(!n)return{height:0,offset:0};let{baseHeight:s,minHeight:l,maxHeight:a}=n,h=o/r*s;void 0!==l&&h<l&&(h=l),void 0!==a&&h>a&&(h=a);let c=P.yB*(o/r),d=h>=c?0:(c-h)/2;return{height:h,offset:d}}(e,l,r);u.length&&a.fillRect(u[0]*h,function(e,t,o){let r=o*P.yB;return e*P.yB/r*t}(t,r,l)+i-.5*o,h*u.length,o)}))}}render(){return N().createElement("canvas",{className:"graph-scroll-markers",ref:e=>{this.canvas=e}})}}var oI=function({children:e,className:t,height:o,heightAdjustment:r,graphZoneType:i,scrollTop:n,style:s}){let l=P.W[i].listId,a=document.getElementById(l),h=a?.scrollHeight||0,c=o-28;void 0!==n&&(c=Number(s.top)-n,a&&h-o-n<0&&(c=o-r-28));let d={top:c,zIndex:2},u=N().createElement("span",{className:"absolute",style:d},e);return N().createElement("div",{className:t,style:s},a?to().createPortal(u,document.getElementById("graph-container")):u)};function oM({inline:e,getExternalIcon:t,message:o,size:r=100,useSimpleSpinner:i}){let n=M()("loading-spinner",{"inline-block":e,ml2:e,"shrink-0":e}),s=M()("spinner","mr1",{"inline-block":e}),l={height:r,width:r},a=M()("message",{"inline-block":e,mx2:e}),h=i?N().createElement("span",{className:s,style:l},t("loading")):N().createElement("div",{className:s,style:l},N().createElement("img",{className:"ring outer",src:"../../../images/spinner-outer-ring.svg",style:l}),N().createElement("img",{className:"ring inner",src:"../../../images/spinner-inner-ring.svg",style:l}),N().createElement("img",{className:"bg-img",src:"../../../images/spinner-kraken.svg",style:l}));return N().createElement("div",{className:n},h,o&&N().createElement("div",{className:a},o))}class ox extends N().Component{render(){let{currentCommits:e,customFooterRow:t,graphZoneType:o,hasMoreCommits:r,height:i,horizontalScrollHeight:n,getExternalIcon:s,isLoadingRows:l,scrollTop:a,style:h,translate:c}=this.props,d=N().createElement(oM,{className:"loading-spinner",getExternalIcon:s,size:20,useSimpleSpinner:!0}),u=N().createElement("div",{className:"flex items-center"},N().createElement("span",{style:{paddingRight:"5px"}},d)),p=0!==(e>0?e:0)||r?t:N().createElement(N().Fragment,null,c("Graph-NoCommits")),f=N().createElement("div",{className:"graph-adjust-commit-count p1"},l?u:p);return N().createElement(oI,{graphZoneType:o,height:i,heightAdjustment:n,scrollTop:a,style:h},f)}}function oN({branchUpstreamRowIndices:e,rowCount:t,cellRenderersByIds:o,columnIndex:r,customFooterRow:i,enabledScrollMarkerTypes:n,enableResizer:s,getExternalIcon:l,getKeyForCell:a,graphHeight:h,graphWidth:c,graphZoneType:d,graphZones:u,hasMoreCommits:p,horizontalScrollHeight:f,isLoadingRows:m,markerColors:g,markerRowIndices:_,onResize:v,onResizeEnd:S,onResizeFromPropChange:y,onScroll:R,onScrollToRowCausedUpdate:C,onZoneEnter:T,scrollLeft:w,scrollToAlignment:b,scrollToIndex:E,scrollTop:O,smartCellRangeRenderer:I,translate:x,verticalScrollWidth:D}){let A=(0,ea.Et)(d,u);if(!A)return null;let H=document.getElementById(A.listId),G=(0,ea.z)(d,u),z=(0,ea.Yy)(t,p,m),W=(0,ea.yJ)(t,p,m),k=(0,ea.U0)(A,t),L=(0,ea.Ve)(t,p,m),F=D>0,B=n.length>0,Z=M()("graph-panel","react-virtualized-list","pad-for-horizontal-scrollbar",d===P.ui?"z3":null,{"pad-for-vertical-scrollbar":F}),U=d===P.md?{...!G&&{position:"static"},...G&&{width:A.currentWidth>k?A.currentWidth:k,maxWidth:"none"}}:void 0,j=(e,t)=>{e.scrollTop>t&&H&&(0,ea.br)(H)||R(d,e,c,h,p)},$=(e,t)=>{let o=t+e.deltaY;(o=o>=0?o:0)>t&&H&&(0,ea.br)(H)||R(d,{clientHeight:L,clientWidth:k,scrollHeight:f,scrollLeft:0,scrollTop:o>=0?o:0,scrollWidth:D},c,h,p)},V=(e,t,o)=>N().createElement("span",{"data-column-name":t,"data-row-idx":o.rowIndex,key:`gk-row-${o.key}`,style:{top:o.style.top}},e),Y=(e,n)=>{if(n.rowIndex>t-1)return z&&0===r?N().createElement(ox,{currentCommits:t-1,customFooterRow:i,getExternalIcon:l,graphZoneType:d,hasMoreCommits:p,height:h,horizontalScrollHeight:f,isLoadingRows:m,key:a(n.rowIndex),scrollTop:O,style:n.style,translate:x}):void 0;let s={...n,style:{...n.style}};P.OU===e&&(s.style.top=Number(n.style.top)-O);let c=o[e];return c?V(c(s),e,n):void 0},K=(e,t,o,r,i,n,s,l)=>N().createElement(e6,{autoContainerWidth:!0,cellRangeRenderer:I,cellRenderer:t=>Y(e,t),className:o,columnCount:1,columnWidth:l,containerStyle:r,height:s,id:t,isScrolling:!1,key:t,onScrollToTargetCausedUpdate:C?e=>C(d,e,c,h,p):void 0,overscanRowCount:0,rowCount:W,rowHeight:P.yB,scrollLeft:w,scrollToAlignment:b,scrollTop:O,scrollToRow:E,style:i,tabIndex:null,width:n}),q=K(A.type,A.listId,Z,U,{position:"absolute"},A.currentWidth,h,k),X=G?N().createElement("div",{className:"timeline-column-container",onWheelCapture:e=>$(e,O)},K(P.OU,"timeline-column","graph-panel react-virtualized-list timeline-column",{overflow:"visible",zIndex:3,maxHeight:L},{position:"absolute",right:0,zIndex:3,maxHeight:h},1,h,1)):void 0,Q=q&&N().createElement(N().Fragment,null,X,B&&G?N().createElement(oO,{branchUpstreamRowIndices:e,enabledScrollMarkerTypes:n,markerColors:g,markerRowIndices:_,scrollWidth:D,totalRows:W,viewportHeight:h<L?h:L,viewportWidth:A.currentWidth}):null,N().createElement(oE.A,{contentHeight:L,contentWidth:k,displayHorizontalScrollbar:A.type===P.md,displayVerticalScrollbar:G,forceOnVerticalWheel:!G,forceVerticalScrollbar:G&&B,height:h,onScroll:e=>j(e,O),scrollLeft:w,scrollTop:O,width:A.currentWidth},q)),J=N().createElement("div",{onMouseEnter:T},Q);return G?J:N().createElement(ob,{enable:s,height:h,id:`${d}Column`,key:`${d}Column`,onResize:v?e=>v(A,e):void 0,onResizeEnd:S?e=>S(A,e):void 0,onResizeFromPropChange:y?e=>y(A,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z1",width:A.currentWidth,widthConstraints:(0,ea.qC)(d,u,c)},J)}var oD=o(547),oA=o.n(oD);let oH="dnd-container";class oG extends N().PureComponent{dndDrake;childReactElementsById={};constructor(e){super(e),this.loadChildrenReactElements(this.props.children)}componentDidMount(){this.dndDrake&&this.dndDrake.on("drop",this.onDrop)}componentDidUpdate(e){this.props.children!==e.children&&this.loadChildrenReactElements(e.children)}componentWillUnmount(){this.dndDrake&&this.dndDrake.destroy()}onDrop=(e,t,o,r)=>{if(this.props.onDrop&&e.id){let t=this.sanitizeId(e.id),o=r?.id?this.sanitizeId(r.id):null,i=this.childReactElementsById[t],n=o?this.childReactElementsById[o]:null;i&&this.props.onDrop(i,n)}};isContainerCallback=e=>!!e?.classList.contains(oH);movesCallback=e=>!!e?.id&&this.isDraggable(e.id);acceptsCallback=(e,t,o,r)=>!!e?.id&&this.isDroppable(e.id,r?.id);invalidCallBack=()=>!1;dndDecorator=e=>{if(e){let t={isContainer:this.isContainerCallback,mirrorContainer:this.props.mirrorContainer,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=oA()([e],t)}};loadChildrenReactElements(e){this.childReactElementsById={},e&&(e instanceof Array?e.forEach(e=>{N().isValidElement(e)&&this.addChildReactElement(e)}):N().isValidElement(e)&&this.addChildReactElement(e))}addChildReactElement(e){let 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){let t=this.sanitizeId(e),o=this.childReactElementsById[t];return!!o&&this.props.isDraggable(o)}return!1}isDroppable(e,t){if(this.props.isDroppable){let o=this.sanitizeId(e),r=t?this.sanitizeId(t):null,i=this.childReactElementsById[o],n=r?this.childReactElementsById[r]:null;if(i)return this.props.isDroppable(i,n)}return!1}render(){let{children:e,className:t}=this.props,o=M()(oH,t);return N().createElement("div",{className:o,ref:this.dndDecorator},e)}}function oz(){return(0,x.useState)(null)}let oW=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,ok=function(e,t){return(0,x.useMemo)(()=>(function(e,t){let o=oW(e),r=oW(t);return e=>{o&&o(e),r&&r(e)}})(e,t),[e,t])};var oL=Object.prototype.hasOwnProperty;function oP(e,t,o){for(o of e.keys())if(oF(o,t))return o}function oF(e,t){var o,r,i;if(e===t)return!0;if(e&&t&&(o=e.constructor)===t.constructor){if(o===Date)return e.getTime()===t.getTime();if(o===RegExp)return e.toString()===t.toString();if(o===Array){if((r=e.length)===t.length)for(;r--&&oF(e[r],t[r]););return -1===r}if(o===Set){if(e.size!==t.size)return!1;for(r of e)if((i=r)&&"object"==typeof i&&!(i=oP(t,i))||!t.has(i))return!1;return!0}if(o===Map){if(e.size!==t.size)return!1;for(r of e)if((i=r[0])&&"object"==typeof i&&!(i=oP(t,i))||!oF(r[1],t.get(i)))return!1;return!0}if(o===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(o===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return -1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return -1===r}if(!o||"object"==typeof e){for(o in r=0,e)if(oL.call(e,o)&&++r&&!oL.call(t,o)||!(o in t)||!oF(e[o],t[o]))return!1;return Object.keys(t).length===r}}return e!=e&&t!=t}let oB=function(e){let t=function(){let e=(0,x.useRef)(!0),t=(0,x.useRef)(()=>e.current);return(0,x.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}();return[e[0],(0,x.useCallback)(o=>{if(t())return e[1](o)},[t,e[1]])]};function oZ(e){return e.split("-")[0]}function oU(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function oj(e){var t=oU(e).Element;return e instanceof t||e instanceof Element}function o$(e){var t=oU(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function oV(e){if("undefined"==typeof ShadowRoot)return!1;var t=oU(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var oY=Math.max,oK=Math.min,oq=Math.round;function oX(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function oQ(){return!/^((?!chrome|android).)*safari/i.test(oX())}function oJ(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1);var r=e.getBoundingClientRect(),i=1,n=1;t&&o$(e)&&(i=e.offsetWidth>0&&oq(r.width)/e.offsetWidth||1,n=e.offsetHeight>0&&oq(r.height)/e.offsetHeight||1);var s=(oj(e)?oU(e):window).visualViewport,l=!oQ()&&o,a=(r.left+(l&&s?s.offsetLeft:0))/i,h=(r.top+(l&&s?s.offsetTop:0))/n,c=r.width/i,d=r.height/n;return{width:c,height:d,top:h,right:a+c,bottom:h+d,left:a,x:a,y:h}}function o0(e){var t=oJ(e),o=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-o)&&(o=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:r}}function o1(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&oV(o)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function o2(e){return e?(e.nodeName||"").toLowerCase():null}function o5(e){return oU(e).getComputedStyle(e)}function o6(e){return((oj(e)?e.ownerDocument:e.document)||window.document).documentElement}function o3(e){return"html"===o2(e)?e:e.assignedSlot||e.parentNode||(oV(e)?e.host:null)||o6(e)}function o4(e){return o$(e)&&"fixed"!==o5(e).position?e.offsetParent:null}function o9(e){for(var t=oU(e),o=o4(e);o&&["table","td","th"].indexOf(o2(o))>=0&&"static"===o5(o).position;)o=o4(o);return o&&("html"===o2(o)||"body"===o2(o)&&"static"===o5(o).position)?t:o||function(e){var t=/firefox/i.test(oX());if(/Trident/i.test(oX())&&o$(e)&&"fixed"===o5(e).position)return null;var o=o3(e);for(oV(o)&&(o=o.host);o$(o)&&0>["html","body"].indexOf(o2(o));){var r=o5(o);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return o;o=o.parentNode}return null}(e)||t}function o7(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function o8(e,t,o){return oY(e,oK(t,o))}function re(){return{top:0,right:0,bottom:0,left:0}}function rt(e){return Object.assign({},re(),e)}function ro(e,t){return t.reduce(function(t,o){return t[o]=e,t},{})}var rr="bottom",ri="right",rn="left",rs="auto",rl=["top",rr,ri,rn],ra="start",rh="viewport",rc="popper",rd=rl.reduce(function(e,t){return e.concat([t+"-"+ra,t+"-end"])},[]),ru=[].concat(rl,[rs]).reduce(function(e,t){return e.concat([t,t+"-"+ra,t+"-end"])},[]),rp=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function rf(e){return e.split("-")[1]}var rm={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rg(e){var t,o,r,i,n,s,l,a=e.popper,h=e.popperRect,c=e.placement,d=e.variation,u=e.offsets,p=e.position,f=e.gpuAcceleration,m=e.adaptive,g=e.roundOffsets,_=e.isFixed,v=u.x,S=void 0===v?0:v,y=u.y,R=void 0===y?0:y,C="function"==typeof g?g({x:S,y:R}):{x:S,y:R};S=C.x,R=C.y;var T=u.hasOwnProperty("x"),w=u.hasOwnProperty("y"),b=rn,E="top",O=window;if(m){var I=o9(a),M="clientHeight",x="clientWidth";I===oU(a)&&"static"!==o5(I=o6(a)).position&&"absolute"===p&&(M="scrollHeight",x="scrollWidth"),("top"===c||(c===rn||c===ri)&&"end"===d)&&(E=rr,R-=(_&&I===O&&O.visualViewport?O.visualViewport.height:I[M])-h.height,R*=f?1:-1),(c===rn||("top"===c||c===rr)&&"end"===d)&&(b=ri,S-=(_&&I===O&&O.visualViewport?O.visualViewport.width:I[x])-h.width,S*=f?1:-1)}var N=Object.assign({position:p},m&&rm),D=!0===g?(t={x:S,y:R},o=oU(a),r=t.x,i=t.y,{x:oq(r*(n=o.devicePixelRatio||1))/n||0,y:oq(i*n)/n||0}):{x:S,y:R};return(S=D.x,R=D.y,f)?Object.assign({},N,((l={})[E]=w?"0":"",l[b]=T?"0":"",l.transform=1>=(O.devicePixelRatio||1)?"translate("+S+"px, "+R+"px)":"translate3d("+S+"px, "+R+"px, 0)",l)):Object.assign({},N,((s={})[E]=w?R+"px":"",s[b]=T?S+"px":"",s.transform="",s))}var r_={passive:!0},rv={left:"right",right:"left",bottom:"top",top:"bottom"};function rS(e){return e.replace(/left|right|bottom|top/g,function(e){return rv[e]})}var ry={start:"end",end:"start"};function rR(e){return e.replace(/start|end/g,function(e){return ry[e]})}function rC(e){var t=oU(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function rT(e){return oJ(o6(e)).left+rC(e).scrollLeft}function rw(e){var t=o5(e),o=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+i+r)}function rb(e,t){void 0===t&&(t=[]);var o,r=function e(t){return["html","body","#document"].indexOf(o2(t))>=0?t.ownerDocument.body:o$(t)&&rw(t)?t:e(o3(t))}(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),n=oU(r),s=i?[n].concat(n.visualViewport||[],rw(r)?r:[]):r,l=t.concat(s);return i?l:l.concat(rb(o3(s)))}function rE(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function rO(e,t,o){var r,i,n,s,l,a,h,c,d,u;return t===rh?rE(function(e,t){var o=oU(e),r=o6(e),i=o.visualViewport,n=r.clientWidth,s=r.clientHeight,l=0,a=0;if(i){n=i.width,s=i.height;var h=oQ();(h||!h&&"fixed"===t)&&(l=i.offsetLeft,a=i.offsetTop)}return{width:n,height:s,x:l+rT(e),y:a}}(e,o)):oj(t)?((r=oJ(t,!1,"fixed"===o)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):rE((i=o6(e),s=o6(i),l=rC(i),a=null==(n=i.ownerDocument)?void 0:n.body,h=oY(s.scrollWidth,s.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),c=oY(s.scrollHeight,s.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),d=-l.scrollLeft+rT(i),u=-l.scrollTop,"rtl"===o5(a||s).direction&&(d+=oY(s.clientWidth,a?a.clientWidth:0)-h),{width:h,height:c,x:d,y:u}))}function rI(e){var t,o=e.reference,r=e.element,i=e.placement,n=i?oZ(i):null,s=i?rf(i):null,l=o.x+o.width/2-r.width/2,a=o.y+o.height/2-r.height/2;switch(n){case"top":t={x:l,y:o.y-r.height};break;case rr:t={x:l,y:o.y+o.height};break;case ri:t={x:o.x+o.width,y:a};break;case rn:t={x:o.x-r.width,y:a};break;default:t={x:o.x,y:o.y}}var h=n?o7(n):null;if(null!=h){var c="y"===h?"height":"width";switch(s){case ra:t[h]=t[h]-(o[c]/2-r[c]/2);break;case"end":t[h]=t[h]+(o[c]/2-r[c]/2)}}return t}function rM(e,t){void 0===t&&(t={});var o,r,i,n,s,l,a,h,c=t,d=c.placement,u=void 0===d?e.placement:d,p=c.strategy,f=void 0===p?e.strategy:p,m=c.boundary,g=c.rootBoundary,_=c.elementContext,v=void 0===_?rc:_,S=c.altBoundary,y=c.padding,R=void 0===y?0:y,C=rt("number"!=typeof R?R:ro(R,rl)),T=e.rects.popper,w=e.elements[void 0!==S&&S?v===rc?"reference":rc:v],b=(o=oj(w)?w:w.contextElement||o6(e.elements.popper),r=void 0===m?"clippingParents":m,i=void 0===g?rh:g,a=(l=[].concat("clippingParents"===r?(n=rb(o3(o)),oj(s=["absolute","fixed"].indexOf(o5(o).position)>=0&&o$(o)?o9(o):o)?n.filter(function(e){return oj(e)&&o1(e,s)&&"body"!==o2(e)}):[]):[].concat(r),[i]))[0],(h=l.reduce(function(e,t){var r=rO(o,t,f);return e.top=oY(r.top,e.top),e.right=oK(r.right,e.right),e.bottom=oK(r.bottom,e.bottom),e.left=oY(r.left,e.left),e},rO(o,a,f))).width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h),E=oJ(e.elements.reference),O=rI({reference:E,element:T,strategy:"absolute",placement:u}),I=rE(Object.assign({},T,O)),M=v===rc?I:E,x={top:b.top-M.top+C.top,bottom:M.bottom-b.bottom+C.bottom,left:b.left-M.left+C.left,right:M.right-b.right+C.right},N=e.modifiersData.offset;if(v===rc&&N){var D=N[u];Object.keys(x).forEach(function(e){var t=[ri,rr].indexOf(e)>=0?1:-1,o=["top",rr].indexOf(e)>=0?"y":"x";x[e]+=D[o]*t})}return x}function rx(e,t,o){return void 0===o&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function rN(e){return["top",ri,rr,rn].some(function(t){return e[t]>=0})}var rD={placement:"bottom",modifiers:[],strategy:"absolute"};function rA(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}let rH=(h=void 0===(a=(l={defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,o=e.name,r=t.rects.reference,i=t.rects.popper,n=t.modifiersData.preventOverflow,s=rM(t,{elementContext:"reference"}),l=rM(t,{altBoundary:!0}),a=rx(s,r),h=rx(l,i,n),c=rN(a),d=rN(h);t.modifiersData[o]={referenceClippingOffsets:a,popperEscapeOffsets:h,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,o=e.name;t.modifiersData[o]=rI({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,o=e.options,r=o.gpuAcceleration,i=o.adaptive,n=o.roundOffsets,s=void 0===n||n,l={placement:oZ(t.placement),variation:rf(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,rg(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,rg(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,o=e.instance,r=e.options,i=r.scroll,n=void 0===i||i,s=r.resize,l=void 0===s||s,a=oU(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return n&&h.forEach(function(e){e.addEventListener("scroll",o.update,r_)}),l&&a.addEventListener("resize",o.update,r_),function(){n&&h.forEach(function(e){e.removeEventListener("scroll",o.update,r_)}),l&&a.removeEventListener("resize",o.update,r_)}},data:{}},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,o=e.options,r=e.name,i=o.offset,n=void 0===i?[0,0]:i,s=ru.reduce(function(e,o){var r,i,s,l,a,h;return e[o]=(r=t.rects,s=[rn,"top"].indexOf(i=oZ(o))>=0?-1:1,a=(l="function"==typeof n?n(Object.assign({},r,{placement:o})):n)[0],h=l[1],a=a||0,h=(h||0)*s,[rn,ri].indexOf(i)>=0?{x:h,y:a}:{x:a,y:h}),e},{}),l=s[t.placement],a=l.x,h=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=h),t.modifiersData[r]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=o.mainAxis,n=void 0===i||i,s=o.altAxis,l=void 0===s||s,a=o.fallbackPlacements,h=o.padding,c=o.boundary,d=o.rootBoundary,u=o.altBoundary,p=o.flipVariations,f=void 0===p||p,m=o.allowedAutoPlacements,g=t.options.placement,_=oZ(g)===g,v=a||(_||!f?[rS(g)]:function(e){if(oZ(e)===rs)return[];var t=rS(e);return[rR(e),t,rR(t)]}(g)),S=[g].concat(v).reduce(function(e,o){var r,i,n,s,l,a,u,p,g,_,v,S;return e.concat(oZ(o)===rs?(i=(r={placement:o,boundary:c,rootBoundary:d,padding:h,flipVariations:f,allowedAutoPlacements:m}).placement,n=r.boundary,s=r.rootBoundary,l=r.padding,a=r.flipVariations,p=void 0===(u=r.allowedAutoPlacements)?ru:u,0===(v=(_=(g=rf(i))?a?rd:rd.filter(function(e){return rf(e)===g}):rl).filter(function(e){return p.indexOf(e)>=0})).length&&(v=_),Object.keys(S=v.reduce(function(e,o){return e[o]=rM(t,{placement:o,boundary:n,rootBoundary:s,padding:l})[oZ(o)],e},{})).sort(function(e,t){return S[e]-S[t]})):o)},[]),y=t.rects.reference,R=t.rects.popper,C=new Map,T=!0,w=S[0],b=0;b<S.length;b++){var E=S[b],O=oZ(E),I=rf(E)===ra,M=["top",rr].indexOf(O)>=0,x=M?"width":"height",N=rM(t,{placement:E,boundary:c,rootBoundary:d,altBoundary:u,padding:h}),D=M?I?ri:rn:I?rr:"top";y[x]>R[x]&&(D=rS(D));var A=rS(D),H=[];if(n&&H.push(N[O]<=0),l&&H.push(N[D]<=0,N[A]<=0),H.every(function(e){return e})){w=E,T=!1;break}C.set(E,H)}if(T)for(var G=f?3:1,z=function(e){var t=S.find(function(t){var o=C.get(t);if(o)return o.slice(0,e).every(function(e){return e})});if(t)return w=t,"break"},W=G;W>0&&"break"!==z(W);W--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,r=e.name,i=o.mainAxis,n=o.altAxis,s=o.boundary,l=o.rootBoundary,a=o.altBoundary,h=o.padding,c=o.tether,d=void 0===c||c,u=o.tetherOffset,p=void 0===u?0:u,f=rM(t,{boundary:s,rootBoundary:l,padding:h,altBoundary:a}),m=oZ(t.placement),g=rf(t.placement),_=!g,v=o7(m),S="x"===v?"y":"x",y=t.modifiersData.popperOffsets,R=t.rects.reference,C=t.rects.popper,T="function"==typeof p?p(Object.assign({},t.rects,{placement:t.placement})):p,w="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),b=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(y){if(void 0===i||i){var O,I="y"===v?"top":rn,M="y"===v?rr:ri,x="y"===v?"height":"width",N=y[v],D=N+f[I],A=N-f[M],H=d?-C[x]/2:0,G=g===ra?R[x]:C[x],z=g===ra?-C[x]:-R[x],W=t.elements.arrow,k=d&&W?o0(W):{width:0,height:0},L=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:re(),P=L[I],F=L[M],B=o8(0,R[x],k[x]),Z=_?R[x]/2-H-B-P-w.mainAxis:G-B-P-w.mainAxis,U=_?-R[x]/2+H+B+F+w.mainAxis:z+B+F+w.mainAxis,j=t.elements.arrow&&o9(t.elements.arrow),$=j?"y"===v?j.clientTop||0:j.clientLeft||0:0,V=null!=(O=null==b?void 0:b[v])?O:0,Y=o8(d?oK(D,N+Z-V-$):D,N,d?oY(A,N+U-V):A);y[v]=Y,E[v]=Y-N}if(void 0!==n&&n){var K,q,X="x"===v?"top":rn,Q="x"===v?rr:ri,J=y[S],ee="y"===S?"height":"width",et=J+f[X],eo=J-f[Q],er=-1!==["top",rn].indexOf(m),ei=null!=(q=null==b?void 0:b[S])?q:0,en=er?et:J-R[ee]-C[ee]-ei+w.altAxis,es=er?J+R[ee]+C[ee]-ei-w.altAxis:eo,el=d&&er?(K=o8(en,J,es))>es?es:K:o8(d?en:et,J,d?es:eo);y[S]=el,E[S]=el-J}t.modifiersData[r]=E}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,o,r=e.state,i=e.name,n=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,a=oZ(r.placement),h=o7(a),c=[rn,ri].indexOf(a)>=0?"height":"width";if(s&&l){var d=rt("number"!=typeof(t="function"==typeof(t=n.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:ro(t,rl)),u=o0(s),p="y"===h?"top":rn,f="y"===h?rr:ri,m=r.rects.reference[c]+r.rects.reference[h]-l[h]-r.rects.popper[c],g=l[h]-r.rects.reference[h],_=o9(s),v=_?"y"===h?_.clientHeight||0:_.clientWidth||0:0,S=d[p],y=v-u[c]-d[f],R=v/2-u[c]/2+(m/2-g/2),C=o8(S,R,y);r.modifiersData[i]=((o={})[h]=C,o.centerOffset=C-R,o)}},effect:function(e){var t=e.state,o=e.options.element,r=void 0===o?"[data-popper-arrow]":o;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&o1(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}]}).defaultModifiers)?[]:a,d=void 0===(c=l.defaultOptions)?rD:c,function(e,t,o){void 0===o&&(o=d);var r,i,n={placement:"bottom",orderedModifiers:[],options:Object.assign({},rD,d),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],l=!1,a={state:n,setOptions:function(o){var r,i,l,u,p,f="function"==typeof o?o(n.options):o;c(),n.options=Object.assign({},d,n.options,f),n.scrollParents={reference:oj(e)?rb(e):e.contextElement?rb(e.contextElement):[],popper:rb(t)};var m=(i=Object.keys(r=[].concat(h,n.options.modifiers).reduce(function(e,t){var o=e[t.name];return e[t.name]=o?Object.assign({},o,t,{options:Object.assign({},o.options,t.options),data:Object.assign({},o.data,t.data)}):t,e},{})).map(function(e){return r[e]}),l=new Map,u=new Set,p=[],i.forEach(function(e){l.set(e.name,e)}),i.forEach(function(e){u.has(e.name)||function e(t){u.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!u.has(t)){var o=l.get(t);o&&e(o)}}),p.push(t)}(e)}),rp.reduce(function(e,t){return e.concat(p.filter(function(e){return e.phase===t}))},[]));return n.orderedModifiers=m.filter(function(e){return e.enabled}),n.orderedModifiers.forEach(function(e){var t=e.name,o=e.options,r=e.effect;if("function"==typeof r){var i=r({state:n,name:t,instance:a,options:void 0===o?{}:o});s.push(i||function(){})}}),a.update()},forceUpdate:function(){if(!l){var e,t,o,r,i,s,h,c,d,u,p,f,m=n.elements,g=m.reference,_=m.popper;if(rA(g,_)){n.rects={reference:(t=o9(_),o="fixed"===n.options.strategy,r=o$(t),c=o$(t)&&(s=oq((i=t.getBoundingClientRect()).width)/t.offsetWidth||1,h=oq(i.height)/t.offsetHeight||1,1!==s||1!==h),d=o6(t),u=oJ(g,c,o),p={scrollLeft:0,scrollTop:0},f={x:0,y:0},(r||!r&&!o)&&(("body"!==o2(t)||rw(d))&&(p=(e=t)!==oU(e)&&o$(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:rC(e)),o$(t)?(f=oJ(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):d&&(f.x=rT(d))),{x:u.left+p.scrollLeft-f.x,y:u.top+p.scrollTop-f.y,width:u.width,height:u.height}),popper:o0(_)},n.reset=!1,n.placement=n.options.placement,n.orderedModifiers.forEach(function(e){return n.modifiersData[e.name]=Object.assign({},e.data)});for(var v=0;v<n.orderedModifiers.length;v++){if(!0===n.reset){n.reset=!1,v=-1;continue}var S=n.orderedModifiers[v],y=S.fn,R=S.options,C=void 0===R?{}:R,T=S.name;"function"==typeof y&&(n=y({state:n,options:C,name:T,instance:a})||n)}}}},update:(r=function(){return new Promise(function(e){a.forceUpdate(),e(n)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(r())})})),i}),destroy:function(){c(),l=!0}};if(!rA(e,t))return a;function c(){s.forEach(function(e){return e()}),s=[]}return a.setOptions(o).then(function(e){!l&&o.onFirstUpdate&&o.onFirstUpdate(e)}),a}),rG=["enabled","placement","strategy","modifiers"],rz={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>void 0},rW={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{let{reference:t,popper:o}=e.elements;if("removeAttribute"in t){let e=(t.getAttribute("aria-describedby")||"").split(",").filter(e=>e.trim()!==o.id);e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;let{popper:o,reference:r}=e.elements,i=null==(t=o.getAttribute("role"))?void 0:t.toLowerCase();if(o.id&&"tooltip"===i&&"setAttribute"in r){let e=r.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(o.id))return;r.setAttribute("aria-describedby",e?`${e},${o.id}`:o.id)}}},rk=[],rL=function(e,t,o={}){let{enabled:r=!0,placement:i="bottom",strategy:n="absolute",modifiers:s=rk}=o,l=function(e,t){if(null==e)return{};var o={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;o[r]=e[r]}return o}(o,rG),a=(0,x.useRef)(s),h=(0,x.useRef)(),c=(0,x.useCallback)(()=>{var e;null==(e=h.current)||e.update()},[]),d=(0,x.useCallback)(()=>{var e;null==(e=h.current)||e.forceUpdate()},[]),[u,p]=oB((0,x.useState)({placement:i,update:c,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),f=(0,x.useMemo)(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{let t={},o={};Object.keys(e.elements).forEach(r=>{t[r]=e.styles[r],o[r]=e.attributes[r]}),p({state:e,styles:t,attributes:o,update:c,forceUpdate:d,placement:e.placement})}}),[c,d,p]),m=(0,x.useMemo)(()=>(oF(a.current,s)||(a.current=s),a.current),[s]);return(0,x.useEffect)(()=>{h.current&&r&&h.current.setOptions({placement:i,strategy:n,modifiers:[...m,f,rz]})},[n,i,f,r,m]),(0,x.useEffect)(()=>{if(r&&null!=e&&null!=t)return h.current=rH(e,t,Object.assign({},l,{placement:i,strategy:n,modifiers:[...m,rW,f]})),()=>{null!=h.current&&(h.current.destroy(),h.current=void 0,p(e=>Object.assign({},e,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),u};var rP=!1,rF=!1;try{var rB={get passive(){return rP=!0},get once(){return rF=rP=!0}};eK&&(window.addEventListener("test",rB,rB),window.removeEventListener("test",rB,!0))}catch(e){}let rZ=function(e,t,o,r){if(r&&"boolean"!=typeof r&&!rF){var i=r.once,n=r.capture,s=o;!rF&&i&&(s=o.__once||function e(r){this.removeEventListener(t,e,n),o.call(this,r)},o.__once=s),e.addEventListener(t,s,rP?r:n)}e.addEventListener(t,o,r)},rU=function(e,t,o,r){var i=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,o,i),o.__once&&e.removeEventListener(t,o.__once,i)},rj=function(e,t,o,r){return rZ(e,t,o,r),function(){rU(e,t,o,r)}};function r$(e){return e&&e.ownerDocument||document}let rV=function(e){let t=(0,x.useRef)(e);return(0,x.useEffect)(()=>{t.current=e},[e]),t};function rY(e){let t=rV(e);return(0,x.useCallback)(function(...e){return t.current&&t.current(...e)},[t])}function rK(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}var rq=o(771),rX=o.n(rq);let rQ=()=>{},rJ=e=>e&&("current"in e?e.current:e),r0={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"},r1=function(e,t=rQ,{disabled:o,clickTrigger:r="click"}={}){let i=(0,x.useRef)(!1),n=(0,x.useRef)(!1),s=(0,x.useCallback)(t=>{let o=rJ(e);rX()(!!o,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!o||!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)||0!==t.button||!!rK(o,t.target)||n.current,n.current=!1},[e]),l=rY(t=>{let o=rJ(e);o&&rK(o,t.target)?n.current=!0:n.current=!1}),a=rY(e=>{i.current||t(e)});(0,x.useEffect)(()=>{var t,i;if(o||null==e)return;let n=r$(rJ(e)),h=n.defaultView||window,c=null!=(t=h.event)?t:null==(i=h.parent)?void 0:i.event,d=null;r0[r]&&(d=rj(n,r0[r],l,!0));let u=rj(n,r,s,!0),p=rj(n,r,e=>{if(e===c){c=void 0;return}a(e)}),f=[];return"ontouchstart"in n.documentElement&&(f=[].slice.call(n.body.children).map(e=>rj(e,"mousemove",rQ))),()=>{null==d||d(),u(),p(),f.forEach(e=>e())}},[e,o,r,s,l,a])};function r2(e){if(!e||"function"==typeof e)return null;let{major:t}=function(){let e=x.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}();return t>=19?e.props.ref:e.ref}let r5=()=>{},r6=function(e,t,{disabled:o,clickTrigger:r}={}){let i=t||r5;r1(e,i,{disabled:o,clickTrigger:r});let n=rY(e=>{("Escape"===e.code||27===e.keyCode)&&i(e)});(0,x.useEffect)(()=>{if(o||null==e)return;let t=r$(rJ(e)),r=(t.defaultView||window).event,i=rj(t,"keyup",e=>{if(e===r){r=void 0;return}n(e)});return()=>{i()}},[e,o,n])},r3=(0,x.createContext)(eK?window:void 0);r3.Provider;let r4=(e,t)=>eK?null==e?(t||r$()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect))?e:null:null;function r9(e,t){let o=(0,x.useContext)(r3),[r,i]=(0,x.useState)(()=>r4(e,null==o?void 0:o.document));if(!r){let t=r4(e);t&&i(t)}return(0,x.useEffect)(()=>{t&&r&&t(r)},[t,r]),(0,x.useEffect)(()=>{let t=r4(e);t!==r&&i(t)},[e,r]),r}let r7=void 0!==o.g&&o.g.navigator&&"ReactNative"===o.g.navigator.product,r8="undefined"!=typeof document||r7?x.useLayoutEffect:x.useEffect,ie=function({children:e,in:t,onExited:o,mountOnEnter:r,unmountOnExit:i}){let n=(0,x.useRef)(null),s=(0,x.useRef)(t),l=rY(o);(0,x.useEffect)(()=>{t?s.current=!0:l(n.current)},[t,l]);let a=ok(n,r2(e)),h=(0,x.cloneElement)(e,{ref:a});return t?h:i||!s.current&&r?null:h},it=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];var io=o(848);let ir=["component"],ii=x.forwardRef((e,t)=>{let{component:o}=e,r=function(e){let{onEnter:t,onEntering:o,onEntered:r,onExit:i,onExiting:n,onExited:s,addEndListener:l,children:a}=e,h=function(e,t){if(null==e)return{};var o={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;o[r]=e[r]}return o}(e,it),c=(0,x.useRef)(null),d=ok(c,r2(a)),u=e=>t=>{e&&c.current&&e(c.current,t)},p=(0,x.useCallback)(u(t),[t]),f=(0,x.useCallback)(u(o),[o]),m=(0,x.useCallback)(u(r),[r]),g=(0,x.useCallback)(u(i),[i]),_=(0,x.useCallback)(u(n),[n]),v=(0,x.useCallback)(u(s),[s]),S=(0,x.useCallback)(u(l),[l]);return Object.assign({},h,{nodeRef:c},t&&{onEnter:p},o&&{onEntering:f},r&&{onEntered:m},i&&{onExit:g},n&&{onExiting:_},s&&{onExited:v},l&&{addEndListener:S},{children:"function"==typeof a?(e,t)=>a(e,Object.assign({},t,{ref:d})):(0,x.cloneElement)(a,{ref:d})})}(function(e,t){if(null==e)return{};var o={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;o[r]=e[r]}return o}(e,ir));return(0,io.jsx)(o,Object.assign({ref:t},r))});function is({children:e,in:t,onExited:o,onEntered:r,transition:i}){let[n,s]=(0,x.useState)(!t);t&&n&&s(!1);let l=ok(function({in:e,onTransition:t}){let o=(0,x.useRef)(null),r=(0,x.useRef)(!0),i=rY(t);return r8(()=>{if(!o.current)return;let t=!1;return i({in:e,element:o.current,initial:r.current,isStale:()=>t}),()=>{t=!0}},[e,i]),r8(()=>(r.current=!1,()=>{r.current=!0}),[]),o}({in:!!t,onTransition:e=>{Promise.resolve(i(e)).then(()=>{e.isStale()||(e.in?null==r||r(e.element,e.initial):(s(!0),null==o||o(e.element)))},t=>{throw e.in||s(!0),t})}}),r2(e));return n&&!t?null:(0,x.cloneElement)(e,{ref:l})}let il=x.forwardRef((e,t)=>{var o;let{flip:r,offset:i,placement:n,containerPadding:s,popperConfig:l={},transition:a,runTransition:h}=e,[c,d]=oz(),[u,p]=oz(),f=ok(d,t),m=r9(e.container),g=r9(e.target),[_,v]=(0,x.useState)(!e.show),S=rL(g,c,function({enabled:e,enableEvents:t,placement:o,flip:r,offset:i,fixed:n,containerPadding:s,arrowElement:l,popperConfig:a={}}){var h,c,d,u,p;let f=function(e){let t={};return Array.isArray(e)?(null==e||e.forEach(e=>{t[e.name]=e}),t):e||t}(a.modifiers);return Object.assign({},a,{placement:o,enabled:e,strategy:n?"fixed":a.strategy,modifiers:function(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}(Object.assign({},f,{eventListeners:{enabled:t,options:null==(h=f.eventListeners)?void 0:h.options},preventOverflow:Object.assign({},f.preventOverflow,{options:s?Object.assign({padding:s},null==(c=f.preventOverflow)?void 0:c.options):null==(d=f.preventOverflow)?void 0:d.options}),offset:{options:Object.assign({offset:i},null==(u=f.offset)?void 0:u.options)},arrow:Object.assign({},f.arrow,{enabled:!!l,options:Object.assign({},null==(p=f.arrow)?void 0:p.options,{element:l})}),flip:Object.assign({enabled:!!r},f.flip)}))})}({placement:n,enableEvents:!!e.show,containerPadding:s||5,flip:r,offset:i,arrowElement:u,popperConfig:l}));e.show&&_&&v(!1);let y=e.show||!_;if(r6(c,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!y)return null;let{onExit:R,onExiting:C,onEnter:T,onEntering:w,onEntered:b}=e,E=e.children(Object.assign({},S.attributes.popper,{style:S.styles.popper,ref:f}),{popper:S,placement:n,show:!!e.show,arrowProps:Object.assign({},S.attributes.arrow,{style:S.styles.arrow,ref:p})});return o={in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:E,onExit:R,onExiting:C,onExited:(...t)=>{v(!0),e.onExited&&e.onExited(...t)},onEnter:T,onEntering:w,onEntered:b},E=a?(0,io.jsx)(ii,Object.assign({},o,{component:a})):h?(0,io.jsx)(is,Object.assign({},o,{transition:h})):(0,io.jsx)(ie,Object.assign({},o)),m?to().createPortal(E,m):null});il.displayName="Overlay";let ia=function(e){let t=(0,x.useRef)(e);return(0,x.useEffect)(()=>{t.current=e},[e]),t},ih=void 0!==o.g&&o.g.navigator&&"ReactNative"===o.g.navigator.product,ic="undefined"!=typeof document||ih?x.useLayoutEffect:x.useEffect,id=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,iu=function(e,t){return(0,x.useMemo)(()=>(function(e,t){let o=id(e),r=id(t);return e=>{o&&o(e),r&&r(e)}})(e,t),[e,t])};function ip(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}let im=x.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:ig,Provider:i_}=im;function iv(e,t){let{prefixes:o}=(0,x.useContext)(im);return e||o[t]||t}function iS(){let{dir:e}=(0,x.useContext)(im);return"rtl"===e}let iy=x.forwardRef(({className:e,bsPrefix:t,as:o="div",...r},i)=>(t=iv(t,"popover-header"),(0,io.jsx)(o,{ref:i,className:M()(e,t),...r})));iy.displayName="PopoverHeader";let iR=x.forwardRef(({className:e,bsPrefix:t,as:o="div",...r},i)=>(t=iv(t,"popover-body"),(0,io.jsx)(o,{ref:i,className:M()(e,t),...r})));function iC(e,t){let o=e;return"left"===e?o=t?"end":"start":"right"===e&&(o=t?"start":"end"),o}function iT(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}iR.displayName="PopoverBody";let iw=Object.assign(x.forwardRef(({bsPrefix:e,placement:t="right",className:o,style:r,children:i,body:n,arrowProps:s,hasDoneInitialMeasure:l,popper:a,show:h,...c},d)=>{let u=iv(e,"popover"),p=iS(),[f]=(null==t?void 0:t.split("-"))||[],m=iC(f,p),g=r;return h&&!l&&(g={...r,...iT(null==a?void 0:a.strategy)}),(0,io.jsxs)("div",{ref:d,role:"tooltip",style:g,"x-placement":f,className:M()(o,u,f&&`bs-popover-${m}`),...c,children:[(0,io.jsx)("div",{className:"popover-arrow",...s}),n?(0,io.jsx)(iR,{children:i}):i]})}),{Header:iy,Body:iR,POPPER_OFFSET:[0,8]}),ib=x.forwardRef(({bsPrefix:e,placement:t="right",className:o,style:r,children:i,arrowProps:n,hasDoneInitialMeasure:s,popper:l,show:a,...h},c)=>{e=iv(e,"tooltip");let d=iS(),[u]=(null==t?void 0:t.split("-"))||[],p=iC(u,d),f=r;return a&&!s&&(f={...r,...iT(null==l?void 0:l.strategy)}),(0,io.jsxs)("div",{ref:c,style:f,role:"tooltip","x-placement":u,className:M()(o,e,`bs-tooltip-${p}`),...h,children:[(0,io.jsx)("div",{className:"tooltip-arrow",...n}),(0,io.jsx)("div",{className:`${e}-inner`,children:i})]})});ib.displayName="Tooltip";let iE=Object.assign(ib,{TOOLTIP_OFFSET:[0,6]});function iO(e,t){return(iO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}let iI={disabled:!1},iM=N().createContext(null);var ix="unmounted",iN="exited",iD="entering",iA="entered",iH="exiting",iG=function(e){function t(t,o){r=e.call(this,t,o)||this;var r,i,n=o&&!o.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?n?(i=iN,r.appearStatus=iD):i=iA:i=t.unmountOnExit||t.mountOnEnter?ix:iN,r.state={status:i},r.nextCallback=null,r}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,iO(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ix?{status:iN}:null};var o=t.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var o=this.state.status;this.props.in?o!==iD&&o!==iA&&(t=iD):(o===iD||o===iA)&&(t=iH)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,o,r=this.props.timeout;return e=t=o=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,o=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:o}},o.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){if(this.cancelNextCallback(),t===iD){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:to().findDOMNode(this);o&&o.scrollTop}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===iN&&this.setState({status:ix})},o.performEnter=function(e){var t=this,o=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[to().findDOMNode(this),r],n=i[0],s=i[1],l=this.getTimeouts(),a=r?l.appear:l.enter;if(!e&&!o||iI.disabled){this.safeSetState({status:iA},function(){t.props.onEntered(n)});return}this.props.onEnter(n,s),this.safeSetState({status:iD},function(){t.props.onEntering(n,s),t.onTransitionEnd(a,function(){t.safeSetState({status:iA},function(){t.props.onEntered(n,s)})})})},o.performExit=function(){var e=this,t=this.props.exit,o=this.getTimeouts(),r=this.props.nodeRef?void 0:to().findDOMNode(this);if(!t||iI.disabled){this.safeSetState({status:iN},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:iH},function(){e.props.onExiting(r),e.onTransitionEnd(o.exit,function(){e.safeSetState({status:iN},function(){e.props.onExited(r)})})})},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,o=!0;return this.nextCallback=function(r){o&&(o=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},o.onTransitionEnd=function(e,t){this.setNextCallback(t);var o=this.props.nodeRef?this.props.nodeRef.current:to().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(!o||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],n=i[0],s=i[1];this.props.addEndListener(n,s)}null!=e&&setTimeout(this.nextCallback,e)},o.render=function(){var e=this.state.status;if(e===ix)return null;var t=this.props,o=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,function(e,t){if(null==e)return{};var o={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;o[r]=e[r]}return o}(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return N().createElement(iM.Provider,{value:null},"function"==typeof o?o(e,r):N().cloneElement(N().Children.only(o),r))},t}(N().Component);function iz(){}iG.contextType=iM,iG.propTypes={},iG.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:iz,onEntering:iz,onEntered:iz,onExit:iz,onExiting:iz,onExited:iz},iG.UNMOUNTED=ix,iG.EXITED=iN,iG.ENTERING=iD,iG.ENTERED=iA,iG.EXITING=iH;var iW=/([A-Z])/g,ik=/^ms-/;function iL(e){return e.replace(iW,"-$1").toLowerCase().replace(ik,"-ms-")}var iP=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;let iF=function(e,t){var o,r="",i="";if("string"==typeof t)return e.style.getPropertyValue(iL(t))||((o=r$(e))&&o.defaultView||window).getComputedStyle(e,void 0).getPropertyValue(iL(t));Object.keys(t).forEach(function(o){var n=t[o];n||0===n?o&&iP.test(o)?i+=o+"("+n+") ":r+=iL(o)+": "+n+";":e.style.removeProperty(iL(o))}),i&&(r+="transform: "+i+";"),e.style.cssText+=";"+r};function iB(e,t){let o=iF(e,t)||"",r=-1===o.indexOf("ms")?1e3:1;return parseFloat(o)*r}function iZ(e,t){var o,r,i,n,s,l,a,h,c,d,u,p;let f=iB(e,"transitionDuration"),m=iB(e,"transitionDelay"),g=(o=e,r=o=>{o.target===e&&(g(),t(o))},null==(i=f+m)&&(l=-1===(s=iF(o,"transitionDuration")||"").indexOf("ms")?1e3:1,i=parseFloat(s)*l||0),u=(h=!1,c=setTimeout(function(){h||function(e,t,o,r){if(void 0===o&&(o=!1),void 0===r&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,o,r),e.dispatchEvent(i)}}(o,"transitionend",!0)},i+5),d=rj(o,"transitionend",function(){h=!0},{once:!0}),function(){clearTimeout(c),d()}),p=rj(o,"transitionend",r),function(){u(),p()})}function iU(e){return e&&"setState"in e?to().findDOMNode(e):null!=e?e:null}let ij=N().forwardRef(({onEnter:e,onEntering:t,onEntered:o,onExit:r,onExiting:i,onExited:n,addEndListener:s,children:l,childRef:a,...h},c)=>{let d=(0,x.useRef)(null),u=iu(d,a),p=e=>{u(iU(e))},f=e=>t=>{e&&d.current&&e(d.current,t)},m=(0,x.useCallback)(f(e),[e]),g=(0,x.useCallback)(f(t),[t]),_=(0,x.useCallback)(f(o),[o]),v=(0,x.useCallback)(f(r),[r]),S=(0,x.useCallback)(f(i),[i]),y=(0,x.useCallback)(f(n),[n]),R=(0,x.useCallback)(f(s),[s]);return(0,io.jsx)(iG,{ref:c,...h,onEnter:m,onEntered:_,onEntering:g,onExit:v,onExited:y,onExiting:S,addEndListener:R,nodeRef:d,children:"function"==typeof l?(e,t)=>l(e,{...t,ref:p}):N().cloneElement(l,{ref:p})})}),i$={[iD]:"show",[iA]:"show"},iV=x.forwardRef(({className:e,children:t,transitionClasses:o={},onEnter:r,...i},n)=>{let s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},l=(0,x.useCallback)((e,t)=>{e.offsetHeight,null==r||r(e,t)},[r]);return(0,io.jsx)(ij,{ref:n,addEndListener:iZ,...s,onEnter:l,childRef:r2(t),children:(r,i)=>x.cloneElement(t,{...i,className:M()("fade",e,t.props.className,i$[r],o[r])})})});iV.displayName="Fade";let iY=iV,iK=x.forwardRef(({children:e,transition:t=iY,popperConfig:o={},rootClose:r=!1,placement:i="top",show:n=!1,...s},l)=>{let a=(0,x.useRef)({}),[h,c]=(0,x.useState)(null),[d,u]=function(e){let t=(0,x.useRef)(null),o=iv(void 0,"popover"),r=iv(void 0,"tooltip"),i=(0,x.useMemo)(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(ip(t.current,o))return iw.POPPER_OFFSET;if(ip(t.current,r))return iE.TOOLTIP_OFFSET}return[0,0]}}}),[e,o,r]);return[t,[i]]}(s.offset),p=iu(l,d),f=!0===t?iY:t||void 0,m=function(e){let t=ia(e);return(0,x.useCallback)(function(...e){return t.current&&t.current(...e)},[t])}(e=>{c(e),null==o||null==o.onFirstUpdate||o.onFirstUpdate(e)});return ic(()=>{h&&s.target&&(null==a.current.scheduleUpdate||a.current.scheduleUpdate())},[h,s.target]),(0,x.useEffect)(()=>{n||c(null)},[n]),(0,io.jsx)(il,{...s,ref:p,popperConfig:{...o,modifiers:u.concat(o.modifiers||[]),onFirstUpdate:m},transition:f,rootClose:r,placement:i,show:n,children:(r,{arrowProps:i,popper:n,show:s})=>{var l;!function(e,t){let{ref:o}=e,{ref:r}=t;e.ref=o.__wrapped||(o.__wrapped=e=>o(iU(e))),t.ref=r.__wrapped||(r.__wrapped=e=>r(iU(e)))}(r,i);let c=null==n?void 0:n.placement,d=Object.assign(a.current,{state:null==n?void 0:n.state,scheduleUpdate:null==n?void 0:n.update,placement:c,outOfBoundaries:(null==n||null==(l=n.state)||null==(l=l.modifiersData.hide)?void 0:l.isReferenceHidden)||!1,strategy:o.strategy}),u=!!h;return"function"==typeof e?e({...r,placement:c,show:s,...!t&&s&&{className:"show"},popper:d,arrowProps:i,hasDoneInitialMeasure:u}):x.cloneElement(e,{...r,placement:c,arrowProps:i,popper:d,hasDoneInitialMeasure:u,className:M()(e.props.className,!t&&s&&"show"),style:{...e.props.style,...r.style}})}})});iK.displayName="Overlay";var iq=o(556),iX=o.n(iq);let iQ=2147483648-1;function iJ(e,t,o){let[r]=t,i=r.currentTarget,n=r.relatedTarget||r.nativeEvent[o];n&&n===i||rK(i,n)||e(...t)}o(311),iX().oneOf(["click","hover","focus"]);let i0=({trigger:e=["hover","focus"],overlay:t,children:o,popperConfig:r={},show:i,defaultShow:n=!1,onToggle:s,delay:l,placement:a,flip:h=a&&-1!==a.indexOf("auto"),...c})=>{var d,u,p,f,m,g;let _=(0,x.useRef)(null),v=iu(_,r2(o)),S=function(){let e=function(){let e=(0,x.useRef)(!0),t=(0,x.useRef)(()=>e.current);return(0,x.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}(),t=(0,x.useRef)();return!function(e){let t=function(e){let t=(0,x.useRef)(e);return t.current=e,t}(e);(0,x.useEffect)(()=>()=>t.current(),[])}(()=>clearTimeout(t.current)),(0,x.useMemo)(()=>{let o=()=>clearTimeout(t.current);return{set:function(r,i=0){e()&&(o(),i<=iQ?t.current=setTimeout(r,i):function e(t,o,r){let i=r-Date.now();t.current=i<=iQ?setTimeout(o,i):setTimeout(()=>e(t,o,r),iQ)}(t,r,Date.now()+i))},clear:o,handleRef:t}},[])}(),y=(0,x.useRef)(""),[R,C]=(d=(0,x.useRef)(void 0!==i),p=(u=(0,x.useState)(n))[0],f=u[1],m=void 0!==i,g=d.current,d.current=m,!m&&g&&p!==n&&f(n),[m?i:p,(0,x.useCallback)(function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];s&&s.apply(void 0,[e].concat(o)),f(e)},[s])]),T=l&&"object"==typeof l?l:{show:l,hide:l},{onFocus:w,onBlur:b,onClick:E}="function"!=typeof o?x.Children.only(o).props:{},O=(0,x.useCallback)(()=>{if(S.clear(),y.current="show",!T.show){C(!0);return}S.set(()=>{"show"===y.current&&C(!0)},T.show)},[T.show,C,S]),I=(0,x.useCallback)(()=>{if(S.clear(),y.current="hide",!T.hide){C(!1);return}S.set(()=>{"hide"===y.current&&C(!1)},T.hide)},[T.hide,C,S]),M=(0,x.useCallback)((...e)=>{O(),null==w||w(...e)},[O,w]),N=(0,x.useCallback)((...e)=>{I(),null==b||b(...e)},[I,b]),D=(0,x.useCallback)((...e)=>{C(!R),null==E||E(...e)},[E,C,R]),A=(0,x.useCallback)((...e)=>{iJ(O,e,"fromElement")},[O]),H=(0,x.useCallback)((...e)=>{iJ(I,e,"toElement")},[I]),G=null==e?[]:[].concat(e),z={ref:e=>{v(iU(e))}};return -1!==G.indexOf("click")&&(z.onClick=D),-1!==G.indexOf("focus")&&(z.onFocus=M,z.onBlur=N),-1!==G.indexOf("hover")&&(z.onMouseOver=A,z.onMouseOut=H),(0,io.jsxs)(io.Fragment,{children:["function"==typeof o?o(z):(0,x.cloneElement)(o,z),(0,io.jsx)(iK,{...c,show:R,onHide:I,flip:h,placement:a,popperConfig:r,target:_.current,children:t})]})},i1={},i2=document.createElement("canvas");i2.id="gk-graph-avatar-canvas";class i5 extends N().Component{image;constructor(e){super(e),this.image=new Image,this.image.crossOrigin="anonymous",this.image.onload=()=>this.refreshImage(),this.state={dataURL:void 0}}static getDerivedStateFromProps(e,t){return{dataURL:!e.url&&t.dataURL?void 0:t.dataURL}}componentDidMount(){let{url:e}=this.props;e&&this.startImgLoading(e)}componentDidUpdate(e){let{url:t}=this.props;t&&e.url!==t&&this.startImgLoading(t)}componentWillUnmount(){this.image=void 0}refreshImage(){let e;if(this.image){if(this.image.complete){let t=this.image.height,o=this.image.width,r=i2.getContext("2d");r.canvas.width=o,r.canvas.height=t,r.drawImage(this.image,0,0,o,t),e=i2.toDataURL(),i1[this.image.src]=e}this.setState({dataURL:e})}}startImgLoading(e){if(!this.image)return;let t=i1[e];if(t){this.setState({dataURL:t});return}this.image.src=e}render(){let{avatarClassName:e,avatarStyle:t,children:o,className:r,context:i,enableTransparentBackground:n,style:s,height:l,hint:a,size:h,width:c}=this.props,{dataURL:d}=this.state,u=!d,p=u?s:{...s,...t,background:`url(${d}) 0% 0% / ${h}px no-repeat ${n?"":"var(--app__bg0, #1c1e23)"}`,height:l||h,width:c||h},f=M()(r,u?"":e,!u&&{avatar:!0}),m=u?N().createElement(N().Fragment,null,o):void 0;return N().createElement("div",{className:f,"data-test-class":d?"avatar":"local-avatar","data-vscode-context":(0,ea.DO)(i),style:p,title:a},m)}}let i6=(e,t,o,r)=>N().createElement("span",{className:"ref-avatar"},N().createElement(i5,{avatarClassName:t,context:r,enableTransparentBackground:!0,size:14,url:e},o));function i3({icon:e,tooltipClassName:t="",tooltipId:o,tooltipText:r}){return r&&o?N().createElement(i0,{delay:400,overlay:N().createElement(iE,{className:M()("gk-graph","bs-tooltip",t),id:o},r),placement:"top",trigger:["hover","focus"]},e||N().createElement("span",null)):N().createElement(N().Fragment,null," ",e||N().createElement("span",null)," ")}function i4({id:e,toolTipText:t,getExternalIcon:o,issueTrackerType:r}){return N().createElement(i3,{icon:o(`issue-${r}`),tooltipClassName:"wide pull-left",tooltipId:`issue-tooltip-${e}`,tooltipText:t?t.trim():""})}function i9({hostingServiceType:e,icon:t,id:o,toolTipText:r}){return N().createElement(i3,{icon:t,tooltipClassName:"wide pull-left",tooltipId:`pr-tooltip-${e}-${o}`,tooltipText:r?r.trim():""})}function i7({icon:e,type:t,upstream:o,tooltipText:r}){return N().createElement(i3,{icon:e,tooltipClassName:"wide pull-left",tooltipId:`upstream-indicator-tooltip-${t}-${o}`,tooltipText:r})}function i8({avatarClassName:e,avatarUrl:t,context:o,icon:r,tooltipText:i}){return N().createElement(i3,{icon:i6(t,e,r,o),tooltipId:`remote-icon-${i||"tooltipText"}`,tooltipText:i})}var ne=o(810),nt=o(280),no=function({className:e,name:t}){return N().createElement("span",{className:M()("ref-name","truncate",e),style:{height:P.F0}},t)};function nr(e,t,o,r=0){let i,n,s;let{annotated:l,refType:a,message:h,name:c}=t;switch(a){case ep.z.REMOTE:{n=t.hostingServiceType?`${ep.z.REMOTE}-${t.hostingServiceType}`:ep.z.REMOTE,i=t.avatarUrl;let e=`${c} (${o("Ref-Remote")})`;s=t.owner?`${t.owner} -> ${e}`:e;break}case ep.z.TAG:n=ep.z.TAG,s=`${l&&h?h:c} (${o("Ref-Tag")})`;break;case ep.z.HEAD:default:{let e=null!=t.worktreeId;n=e?ep.z.WORKTREE:ep.z.HEAD,s=`${c} (${o(e?"Ref-Worktree":"Ref-Local")})`}}let d=t.context||void 0,u=N().createElement("span",{"data-vscode-context":(0,ea.DO)(d)},e(n));return N().createElement(i8,{avatarUrl:i||"",context:d,icon:u,key:`ref-icon-${r}-${a}-${c}`,tooltipText:s})}class ni extends N().PureComponent{getContextForRefGroupIfExists(e,t,o){let r;let i=!1,n=!1,s=!1;for(let l of e){if(l.refType===ep.z.HEAD)return o?l.contextGroup||t:l.context;l.refType!==ep.z.REMOTE||("origin"===l.owner?(i=!0,r=o?l.contextGroup||t:l.context):i||"upstream"!==l.owner?i||n||(s=!0,r=o?l.contextGroup||t:l.context):(n=!0,r=o?l.contextGroup||t:l.context)),i||n||s||(r=o?l.contextGroup||t:l.context)}return r}getDecoratedRefIcon(e,t,o,r,i){return N().createElement("div",{className:i,"data-vscode-context":(0,ea.DO)(r),key:e,onClick:e=>this.onClickMetadata(e,o),onDoubleClick:e=>this.onDoubleClickMetadata(e,o)},t)}getPullRequestIconsAndTooltipsForRef(e,t,o){let r;let{getExternalIcon:i,onMissingRefMetadata:n,translate:s}=this.props;if(!(r=t.refType===ep.z.HEAD?t.upstream?e?.[t.upstream.id]?.[eh.ki]:null:(0,ea.yb)(t,e,n,eh.ki))||0===r.length)return null;let l=[];for(let e of r){let{context:r,hostingServiceType:n,id:a,title:h}=e;if(o.has(a))continue;o.add(a);let c={refId:t.id,type:eh.ki,data:e},d=`pr-icon-${t.refType}-${t.name}-${a}`,u=this.getDecoratedRefIcon(d,i("pull-request"),c,r,M()("ref-pull-request"));l.push(N().createElement(i9,{hostingServiceType:n,icon:u,id:a,key:d,toolTipText:h&&""!==h.trim()?s("PullRequestIcon-Tooltip",a,h,(0,ne.T)(n)):""}))}return l}getUpstreamIndicatorIconsAndTooltipsForRef(e,t){let{getExternalIcon:o,onMissingRefMetadata:r,translate:i}=this.props,n=(0,ea.yb)(t,e,r,eh.RA);if(!n||0===n.ahead&&0===n.behind)return null;let s={refId:t.id,type:eh.RA,data:n},l=n.ahead>0,a=n.behind>0,h=n.context;if(l||a){let e,r;let c=l?`${n.ahead>99?"99+":n.ahead}`:"",d=a?`${n.behind>99?"99+":n.behind}`:"",u=`${n.owner}/${n.name}`;a&&l?(e=i("UpstreamIndicatorIcon-BehindAndAheadTooltip",d,c,u),r="ahead-behind"):a?(e=i("UpstreamIndicatorIcon-BehindTooltip",d,u),r="behind"):l&&(e=i("UpstreamIndicatorIcon-AheadTooltip",c,u),r="ahead");let p=N().createElement(N().Fragment,null,a?N().createElement(N().Fragment,null,N().createElement("span",{className:"ref-upstream-behind"},d),o("upstream-behind")):null,l?N().createElement(N().Fragment,null,N().createElement("span",{className:"ref-upstream-ahead"},c),o("upstream-ahead")):null);return N().createElement(i7,{icon:this.getDecoratedRefIcon(`ref-upstream-${t.id}`,p,s,h,"ref-upstream"),tooltipText:e,type:r,upstream:u})}return null}getIssueIconsAndTooltipsForRef(e,t,o){let{getExternalIcon:r,onMissingRefMetadata:i,translate:n}=this.props,s=(0,ea.yb)(t,e,i,eh.fd);if(!s||0===s.length)return null;let l=[];for(let e of s){if(o.has(e.id))continue;let i={refId:t.id,type:eh.fd,data:e};o.add(e.id);let s=N().createElement(i4,{getExternalIcon:r,id:e.id,issueTrackerType:e.issueTrackerType,key:`issue-icon-${e.id}`,toolTipText:e.title&&""!==e.title.trim()?n("IssueIcon-Tooltip",e.displayId,e.title):""}),a=t.context||void 0;l.push(this.getDecoratedRefIcon(`ref-issue-${e.id}`,s,i,a,M()("ref-issue")))}return l}onContextMenu=e=>{let{onContextMenu:t,refGroup:o,sha:r}=this.props;t(e,o,r)};onClick=e=>{let{onClick:t,refGroup:o,sha:r}=this.props;t(e,o,r)};onClickMetadata=(e,t)=>{e.stopPropagation();let{onClick:o,refGroup:r,sha:i}=this.props;o(e,r,i,t)};onDoubleClick=e=>{let{onDoubleClick:t,refGroup:o,sha:r}=this.props;t(e,o,r)};onDoubleClickMetadata=(e,t)=>{e.stopPropagation();let{onDoubleClick:o,refGroup:r,sha:i}=this.props;o(e,r,i,t)};render(){let{enableShowHideRefsOptions:e,hasActive:t,hasRefs:o,isActive:r,isGhostRef:i,getExternalIcon:n,groupIsHovered:s,isInUnsupportedRebase:l,onRefBeginDrag:a,onRefDragEnter:h,onRefDragLeave:c,onRefDrop:d,onRefCanDrag:u,onRefCanDrop:p,onRefEndDrag:f,isRefGroupIncluded:m,refGroup:g,refGroupContext:_,refIconsPosition:v,refMetadata:S,onHovered:y,onHideRefClick:R,sha:C,showRemoteNamesOnRefs:T,enabledRefMetadataTypes:w,translate:b,type:E,useColumnHeaderIcons:O}=this.props,I=e&&!t&&s&&!m,x=v===ep.E.LEFT,D=v===ep.E.RIGHT,A=M()("ref-node-wrapper","flex"),H={minWidth:0,marginLeft:3,height:P.$0},G=M()("ref-node","flex","items-center","p1",{"has-active":t,"dim-ref":!o&&s,"is-active":r}),z="";g.length>0&&(z=T&&g[0].fullName||g[0].name);let W=M()({"display-none":O&&!s&&D,mr1:D}),k=N().createElement(no,{className:W,name:z}),L=[],F=[],B=[],Z=null,U=new Set,j=new Set;g.forEach((e,t)=>{if(L.push(nr(n,e,b,t)),w.includes(eh.fd)&&(e.refType===ep.z.HEAD||e.refType===ep.z.REMOTE)){let t=this.getIssueIconsAndTooltipsForRef(S,e,j);t&&B.push(...t)}if(w.includes(eh.ki)&&e.refType===ep.z.REMOTE){let t=this.getPullRequestIconsAndTooltipsForRef(S,e,U);t&&F.push(...t)}w.includes(eh.RA)&&e.refType===ep.z.HEAD&&(Z=this.getUpstreamIndicatorIconsAndTooltipsForRef(S,e))});let $=N().createElement("span",{className:M()("flex","items-center","ref-icons",{"is-active":r,"is-left-position":x})},[...L,...F,...B]),V=r?N().createElement(i3,{icon:N().createElement("span",{className:M()("ref-icon-current")},n("check")),tooltipId:"ref-icon-current",tooltipText:b("Ref-Current")}):null,Y=this.getContextForRefGroupIfExists(g,_),K=this.getContextForRefGroupIfExists(g,_,!0),q=I?N().createElement("span",{className:"flex ml-auto"},N().createElement(i3,{icon:N().createElement("span",{className:M()("mr1","button"),onClick:e=>R(e,g,C)},n("hide")),tooltipId:`ref-node-toggle-visibility-btn-${z}`,tooltipText:b("Hide")})):null;return N().createElement(nt.A,{canDrag:e=>u(e),canDrop:(e,t,o)=>p(e,t,o),className:A,"data-vscode-context":(0,ea.DO)(K),dndData:{commitType:E,isGhostRef:i,isInUnsupportedRebase:l,refGroup:g,sha:C},dndId:`DndRefNode_${g[0].id}`,onBeginDrag:(e,t)=>a(e,t),onDragEnter:(e,t,o)=>h(e,t,o),onDragLeave:(e,t,o)=>c(e,t,o),onDrop:(e,t,o)=>d(e,t,o),onEndDrag:(e,t,o)=>f(e,t,o),style:H},N().createElement("span",{className:G,"data-test-class":"ref-node-span","data-vscode-context":(0,ea.DO)(Y),onContextMenu:l?void 0:this.onContextMenu,onDoubleClick:l?void 0:this.onDoubleClick,onMouseDown:this.onClick,onMouseEnter:e=>y(e,g,C),style:{minWidth:"100%"}},V,x&&$,k,D&&$,Z,q))}}class nn extends N().Component{headIconsRef=N().createRef();containerRef=N().createRef();popoverMenuTargetRef=N().createRef();constructor(e){super(e),this.state={showPopoverMenu:!1}}onHiddenRefsClick=e=>{let{showPopoverMenu:t}=this.state;e.stopPropagation(),this.setState({showPopoverMenu:!t})};onShowRefNodes=(e,t,o)=>{this.props.onToggleRefNodesShown(e,t,o),0===Object.keys(this.props.excludeRefsById).length&&this.setState({showPopoverMenu:!0})};compareGraphRefOpts(e,t){let o=e.name.localeCompare(t.name);return 0===o&&e.type===ep.z.REMOTE?-1:o}render(){let{columnSetting:e,enableResizer:t,enableShowHideRefsOptions:o,getExternalIcon:r,graphWidth:i,graphZones:n,graphZoneType:s,excludeRefsById:l,includeOnlyRefsById:a,isDraggable:h,onFilterColumnClick:c,onHover:d,onResize:u,onResizeEnd:p,onResizeFromPropChange:f,onResizeStart:m,onUnhover:g,onSettingsClick:_,rowsStatsLoading:v,settingsContext:S,showRemoteNamesOnRefs:y,translate:R}=this.props,{showPopoverMenu:C}=this.state,T=(0,ea.Et)(s,n);if(!T)return null;let w=(0,ea.z)(s,n),b=T.currentWidth-P.WQ,E=`${s}-header`,O=(0,ea.uQ)(T),I=e?.isFilterable||!1,x=O&&(I||o),D=M()("columns-btn",{"small-btn":x}),A=null,H=null;if(s===P.ui){let e=Object.entries(l),t=Object.values(a),i=t.length>0,n=i&&t.some(e=>e.type===ep.z.TAG),s=e.filter(e=>e[1].type===ep.z.TAG&&(!i||!n)||!a[e[0]]);s.length>0&&(H=s.sort((e,t)=>this.compareGraphRefOpts(e[1],t[1])).map((e,t)=>{let o=e[0],i=e[1];l[o].id=o;let n={name:i.name,refType:i.type,owner:i.owner,avatarUrl:i.avatarUrl},s=(y||"*"===n.name)&&n.refType===ep.z.REMOTE?`${n.owner}/${n.name}`:n.name;return N().createElement("li",{id:o,key:o,onClick:e=>this.onShowRefNodes(e,[l[o]],!0)},nr(r,n,R,t),N().createElement("span",{className:"ml1 text-ellipsis"},s))}),A=o?N().createElement("div",{className:M()(D,"right","text-normal","button",C?"active":null),ref:this.popoverMenuTargetRef},N().createElement(i3,{icon:N().createElement("span",{onClick:this.onHiddenRefsClick},r("hide")),tooltipId:"header-ref-node-hidden-refs-btn",tooltipText:R("GraphHeader-HiddenRefs-btn")})):null)}let G=I?N().createElement("div",{className:M()(D,"columns-filter","right","fs-1",{filtering:e?.isFilterActive||!1})},N().createElement(i3,{icon:N().createElement("span",{className:"columns-filter-icon text-disabled hover-icon",id:`${s}-header-filter`,onClick:e=>c(e,s),style:{height:P.bo,marginBottom:P.Qb}},r("filter")),tooltipId:"header-columns-filter",tooltipText:R("GraphHeader-Filter")})):null,z=!O&&s===P.Sq&&v?N().createElement("span",{className:M()(D,"spinner")},r("loading")):null,W=N().createElement(iK,{container:this.containerRef.current,onHide:C?()=>{this.setState({showPopoverMenu:!1})}:void 0,placement:"bottom",rootClose:C,show:C,target:this.popoverMenuTargetRef.current},e=>N().createElement(iw,{className:M()({"is-last-header":w}),id:"opts-popover",...e},N().createElement("ul",null,H))),k=w&&_?N().createElement("div",{className:M()("columns-btn","columns-settings","right","fs-1"),"data-vscode-context":(0,ea.DO)(S)},N().createElement(i3,{icon:N().createElement("span",{className:"columns-settings-icon text-disabled hover-icon",onClick:e=>_(e,i)},r("settings")),tooltipId:"header-columns-settings",tooltipText:R("GraphHeader-EditColumns")})):null,L=this.headIconsRef?.current?.clientWidth??0,F=N().createElement("div",{className:"header-columns-icons",ref:this.headIconsRef},k,z,G,A),B=O?N().createElement(N().Fragment,null,N().createElement("div",{className:M()(D,"justify-start",{ml1:!x}),style:{width:b-L},title:R(T.headerLabelUntranslated)},r((0,ea.n0)(s))),F):N().createElement(N().Fragment,null,N().createElement("div",{className:"text-disabled text-ellipsis",style:{height:P.bo,overflow:"hidden",width:b-L}},N().createElement("span",{className:"fs-1 ml1 font-monospace"},R(T.headerLabelUntranslated))),F),Z=N().createElement("div",{onMouseEnter:d,onMouseLeave:g},W,B),U=M()("panel-bg0","graph-header",{"is-draggable":h,"is-last-header":w});return N().createElement("div",{className:U,id:E,key:E,ref:this.containerRef,style:{zIndex:2,transform:"translate3d(0, 0, 0)",...w?{minWidth:b}:{display:"flex",minWidth:T.currentWidth,width:T.currentWidth}}},w?Z:N().createElement(ob,{className:U,enable:t,handleStyles:{right:{right:0}},height:P.bo,id:`${s}HeaderColumn`,onResize:u?e=>u(T,e):void 0,onResizeEnd:p?e=>p(T,e):void 0,onResizeFromPropChange:f?e=>f(T,e):void 0,onResizeStart:m?e=>m(T,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z2 border-right",style:{display:"flex"},translate:R,width:T.currentWidth,widthConstraints:(0,ea.qC)(s,n,i)},Z))}}class ns extends N().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(){let{columnsSettings:e,dragAppendToContainer:t,enableResizer:o,enableShowHideRefsOptions:r,getExternalIcon:i,excludeRefsById:n,headerContext:s,includeOnlyRefsById:l,onFilterColumnClick:a,onPopupGraphHeaderContextMenu:h,onGraphZoneResize:c,onGraphZoneResizeEnd:d,onGraphZoneResizeFromPropChange:u,onSettingsClick:p,onToggleRefNodesShown:f,graphZones:m,repoPath:g,rowsStatsLoading:_,showRemoteNamesOnRefs:v,translate:S,width:y,height:R,settingsContext:C}=this.props,T=N().createElement("div",{className:"panel-bg0",style:{height:P.bo,marginBottom:P.Qb,marginLeft:-P.xY,minWidth:P.xY+P.WQ}});return N().createElement("div",{className:"graph-header flex","data-vscode-context":(0,ea.DO)(s),onContextMenu:h?e=>h(e,y):void 0,style:{height:P.bo,marginBottom:P.Qb}},T,N().createElement(oG,{className:"flex",direction:"horizontal",isDraggable:this.isDraggable,isDroppable:this.isDroppable,mirrorContainer:t,onDrop:this.onDrop},m.map(t=>N().createElement(nn,{columnSetting:e[t.type],enableResizer:o,enableShowHideRefsOptions:r,excludeRefsById:n,getExternalIcon:i,graphHeight:R,graphWidth:y,graphZones:m,graphZoneType:t.type,id:`${t.type}Header`,includeOnlyRefsById:l,isDraggable:t.isCustomizable,isDroppable:t.isCustomizable,key:`${t.type}Header`,onFilterColumnClick:a,onHover:this.onZoneHover,onResize:c,onResizeEnd:d,onResizeFromPropChange:u,onSettingsClick:p,onToggleRefNodesShown:f,onUnhover:this.onZoneUnHover,repoPath:g,rowsStatsLoading:_,settingsContext:C,showRemoteNamesOnRefs:v,translate:S}))))}}function nl(e){let{constraints:{max:t,min:o},stats:{files:r,additions:i,deletions:n},getExternalIcon:s,isLastColumn:l,isRowSelected:a,verticalScrollWidth:h,zoneWidth:c}=e,d=i+n,u=Math.max(o,Math.min(t,d)),p=l?h+P.KA:P.KA;d<=u&&(p+=P.KA);let f=Math.max(P.MT,u/t*(c-52-p));return N().createElement("div",{className:M()("changes-zone",a?"selected":null)},N().createElement("span",{className:"changes-files",style:{width:52}},N().createElement("span",{className:"mr1"},s("files")),N().createElement("span",{className:"mr1"},r>999?"999+":r)),N().createElement("span",{className:"changes-bar",style:{width:f}},i?N().createElement("div",{className:"changes-sub-bar added",style:{width:i/d*f}}):null,n?N().createElement("div",{className:"changes-sub-bar deleted",style:{width:n/d*f}}):null))}let na=M()("absolute","top-0","right-0","bottom-0","left-0","time-line"),nh=M()(na,"z2");var nc=function({z2:e}){return N().createElement("div",{className:e?nh:na,style:{height:2}})};let nd=N().createElement("div",{className:"color-strip height-100",style:{width:2}}),nu={},np={};class nf extends N().PureComponent{render(){let{clearCurrentlyHoveredGraphCommit:e,children:t,column:o,columnForColoring:r,context:i,currentlyHoveredCommitSha:n,dimRowsOfSelectedCommit:s,getExternalIcon:l,graphZoneType:a,hasAvatars:h,highlightRowsOnRefHover:c,isDimmedMergeCommitRow:d,isHighlighted:u,isHovering:p,isLastColumn:f,isInUnsupportedRebase:m,isMissingHoveredRefGroup:g,isSelected:_,numGraphColumns:v,onContextMenu:S,onClickCommit:y,onDoubleClickCommit:R,rowContext:C,sha:T,showColorStrip:w,showConflictIcon:b,showTimeline:E,setAsCurrentlyHoveredGraphCommit:O,style:I,title:x,type:D,verticalScrollWidth:A,zoneWidth:H}=this.props,G=function(e,t){let o=e+t.toString(),r=nu[o];return r||(r=M()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative",e,{"is-hovering":t}),nu[o]=r),r}(D,p),z=function(e,t,o,r,i,n=!1,s=!1,l=!1,a=!1){let h=`${e}${t}${r}${o}${n}${s}${l}${a}${i}`,c=np[h];return c||(c=M()(`column-${t%i+1}`,"graph-row","height-100-percent","flex",e,{"is-selected":r},{"is-highlighted":o},{"dimmed-row":a&&!o||n&&(s||l)}),np[h]=c),c}(D,r??o,u,_,v,g,c,s,d),W=E?N().createElement(nc,null):null;return N().createElement("div",{className:G,"data-vscode-context":(0,ea.DO)(C),onContextMenu:m?void 0:e=>S(e,a,T),onDoubleClick:e=>R(e,a,T),onMouseDown:e=>y(e,a,T),onMouseEnter:e=>O(e,a,T,n),onMouseLeave:t=>e(t,a,T,n),style:I},W,N().createElement("div",{className:z,"data-vscode-context":(0,ea.DO)(i)},w?nd:null,b?N().createElement("span",{className:M()("ml2")},l("warning")):null,N().createElement("span",{className:M()("graph-zone","width-100","flex-1"),style:{lineHeight:`${P.$0}px`,...f&&{width:H-A},...h&&{marginLeft:5}},title:x},t)))}}var nm=(e,t)=>{let{processedRows:o,rowStatsConstraints:r,getExternalIcon:i,highlightRowsOnRefHover:n,isInUnsupportedRebase:s,numGraphColumns:l,clearCurrentlyHoveredGraphCommit:a,currentlyHoveredCommitSha:h,dimMergeCommits:c,dimRowsOfSelectedCommit:d,onCommitContextMenu:u,onClickCommit:p,onDoubleClickCommit:f,rowsStats:m,setAsCurrentlyHoveredGraphCommit:g,suppressNonRefRowTooltips:_}=e,v=new ea.n$(e);return({rowIndex:e,style:S})=>{let y=t(e),R=o[e],{sha:C,type:T,contexts:w}=R,b=w?.stats||void 0,E=w?.row||void 0,O=m?.[C],I=[O?.files?`${O.files} files changed`:"",O?.additions?`${O.additions} lines added`:"",O?.deletions?`${O.deletions} lines deleted`:""].filter(Boolean).join(", ");I=T!==L.bY?I:"";let M=P.Sq,x=v.isColumnFollowingGraphColumn(M),D=v.isLastColumn(M),A=v.getZoneWidth(M),H=v.getVerticalScrollWidth(M);return N().createElement(nf,{clearCurrentlyHoveredGraphCommit:a,column:R.column,columnForColoring:R.columnForColoring,context:b,currentlyHoveredCommitSha:h,dimRowsOfSelectedCommit:d,getExternalIcon:i,graphZoneType:M,highlightRowsOnRefHover:n,isDimmedMergeCommitRow:T===L.t$&&c,isHighlighted:v.isHighlighted(e),isHovering:v.isHovering(e),isInUnsupportedRebase:s,isLastColumn:D,isMissingHoveredRefGroup:v.isMissingHoveredRefGroup(e),isSelected:v.isSelected(e),key:y,numGraphColumns:l,onClickCommit:p,onContextMenu:u,onDoubleClickCommit:f,rowContext:E,setAsCurrentlyHoveredGraphCommit:g,sha:C,showColorStrip:x,showTimeline:v.hasTimeline(e),style:S,title:_?void 0:I,type:T,verticalScrollWidth:H,zoneWidth:A},O&&T!==L.bY?N().createElement(nl,{constraints:r,getExternalIcon:i,isLastColumn:D,isRowSelected:v.isSelected(e),stats:O,verticalScrollWidth:H,zoneWidth:A}):null)}};function ng(e){let t=(e||"").trim().toUpperCase();if(0===t.length)return"?";let o=t.split(" ");return 1===o.length?o[0][0]:o.length>1?o[0][0]+o[o.length-1][0]:"?"}function n_(e,t){return e&&t?`${e} <${t}>`:e||t||""}class nv extends N().Component{constructor(e){super(e),this.state={tooltipText:""}}getDefaultAvatar=(e,t,o)=>{let{authorInitials:r,column:i,context:n,cssVariables:s,style:l,fontSize:a,minWidth:h,size:c,title:d=""}=this.props,u=void 0!==i&&s[(0,Y.$6)(i)]||P.BP,p=k(u.trim()),f={alignItems:"center",backgroundColor:u,backgroundSize:c,color:p,display:"flex",fontSize:`${a}px`,fontWeight:"bold",height:e,justifyContent:"center",minWidth:h,top:o,width:t,...l};return N().createElement("div",{className:this.getAvatarClassName(),"data-vscode-context":(0,ea.DO)(n),style:f,title:d},r?r.toUpperCase():"")};ensureTooltipText=()=>{let{tooltip:e}=this.props;this.setState({tooltipText:"function"==typeof e?e():e})};getAvatarClassName(){return M()("avatar","gravatar","rad2",this.props.className)}render(){let{tooltipText:e}=this.state,{avatarUrl:t,context:o,style:r,height:i,minWidth:n,size:s,title:l="",tooltip:a,top:h,useAuthorInitialsForAvatars:c,width:d}=this.props,u=i||s,p=d||s,f=h||P.lH/2-u/2,m={top:f,minWidth:n,...r},g=this.getDefaultAvatar(u,p,f),_=c?g:N().createElement("span",null,N().createElement(i5,{avatarClassName:this.getAvatarClassName(),avatarStyle:m,context:o,height:u,hint:l,size:s,url:t,width:p},this.getDefaultAvatar(u,p,f)));return a?N().createElement(i0,{delay:250,onEnter:this.ensureTooltipText,overlay:N().createElement(iE,{className:"gk-graph",id:"graph-gravatar-tooltip"},e),placement:"top",trigger:["hover","focus"]},_):_}}var nS=(e,t)=>{let{avatarUrlByEmail:o,clearCurrentlyHoveredGraphCommit:r,cssVariables:i,currentlyHoveredCommitSha:n,dimMergeCommits:s,dimRowsOfSelectedCommit:l,getExternalIcon:a,highlightRowsOnRefHover:h,processedRows:c,isInUnsupportedRebase:d,onCommitContextMenu:u,onClickCommit:p,onDoubleClickCommit:f,numGraphColumns:m,setAsCurrentlyHoveredGraphCommit:g,suppressNonRefRowTooltips:_,useAuthorInitialsForAvatars:v}=e,S=new ea.n$(e);return({rowIndex:e,style:y})=>{let R=t(e),C=c[e],{author:T,email:w,message:b,sha:E,type:O,contexts:I}=C,x=P.fx,D=S.getActiveGraphZone(x),A=O!==L.bY?T:void 0,H=O!==L.bY?n_(T,w):void 0,G=I?.author||void 0,z=I?.row||void 0,W=S.isColumnFollowingGraphColumn(x),k=S.isLastColumn(x),F=S.getZoneWidth(x),B=(F<=D.minimumWidth||D?.mode===P.eB.Rich)&&O!==L.bY;if(B){let e=v?void 0:o[w];A=N().createElement(nv,{authorInitials:ng(T),avatarUrl:e,className:M()("node",L.oB,"z6"),column:C.column,context:I?.avatar||void 0,cssVariables:i,fontSize:10,height:P.n0,size:P.CF,tooltip:_?void 0:()=>{let e=T&&""!==T.trim()&&"Unknown"!==T?n_(T,w):w,t=$(U(b||"")),o="";if(0===t.length)o=e;else{t.unshift({email:w,name:T});for(let e=0;e<t.length;e+=1){let r=t[e];o+=n_(r.name,r.email),e<t.length-1&&(o+=", ")}}return o},useAuthorInitialsForAvatars:v,width:P.n0})}return N().createElement(nf,{clearCurrentlyHoveredGraphCommit:r,column:C.column,columnForColoring:C.columnForColoring,context:G,currentlyHoveredCommitSha:n,dimRowsOfSelectedCommit:l,getExternalIcon:a,graphZoneType:x,hasAvatars:B,highlightRowsOnRefHover:h,isDimmedMergeCommitRow:O===L.t$&&s,isHighlighted:S.isHighlighted(e),isHovering:S.isHovering(e),isInUnsupportedRebase:d,isLastColumn:k,isMissingHoveredRefGroup:S.isMissingHoveredRefGroup(e),isSelected:S.isSelected(e),key:R,numGraphColumns:m,onClickCommit:p,onContextMenu:u,onDoubleClickCommit:f,rowContext:z,setAsCurrentlyHoveredGraphCommit:g,sha:E,showColorStrip:W,showTimeline:S.hasTimeline(e),style:y,title:_?void 0:H,type:O,verticalScrollWidth:S.getVerticalScrollWidth(x),zoneWidth:F},A)}},ny=(e,t)=>{let{processedRows:o,getExternalIcon:r,highlightRowsOnRefHover:i,isInUnsupportedRebase:n,numGraphColumns:s,formatCommitDateTime:l,clearCurrentlyHoveredGraphCommit:a,dimMergeCommits:h,dimRowsOfSelectedCommit:c,currentlyHoveredCommitSha:d,onCommitContextMenu:u,onClickCommit:p,onDoubleClickCommit:f,setAsCurrentlyHoveredGraphCommit:m,suppressNonRefRowTooltips:g}=e,_=new ea.n$(e);return({rowIndex:e,style:v})=>{let S=t(e),y=o[e],{date:R,sha:C,type:T,contexts:w}=y,b=R&&T!==L.bY?l(R,L.N.RowEntry):void 0,E=R&&T!==L.bY?l(R,L.N.Tooltip):void 0,O=w?.date||void 0,I=w?.row||void 0,M=P.$A,x=_.isColumnFollowingGraphColumn(M),D=_.isLastColumn(M),A=_.getZoneWidth(M),H=_.getVerticalScrollWidth(M);return N().createElement(nf,{clearCurrentlyHoveredGraphCommit:a,column:y.column,columnForColoring:y.columnForColoring,context:O,currentlyHoveredCommitSha:d,dimRowsOfSelectedCommit:c,getExternalIcon:r,graphZoneType:M,highlightRowsOnRefHover:i,isDimmedMergeCommitRow:T===L.t$&&h,isHighlighted:_.isHighlighted(e),isHovering:_.isHovering(e),isInUnsupportedRebase:n,isLastColumn:D,isMissingHoveredRefGroup:_.isMissingHoveredRefGroup(e),isSelected:_.isSelected(e),key:S,numGraphColumns:s,onClickCommit:p,onContextMenu:u,onDoubleClickCommit:f,rowContext:I,setAsCurrentlyHoveredGraphCommit:m,sha:C,showColorStrip:x,showTimeline:!1,style:v,title:g?void 0:E,type:T,verticalScrollWidth:H,zoneWidth:A},b)}};let nR={type:iX().string,tooltip:iX().bool,as:iX().elementType},nC=x.forwardRef(({as:e="div",className:t,type:o="valid",tooltip:r=!1,...i},n)=>(0,io.jsx)(e,{...i,ref:n,className:M()(t,`${o}-${r?"tooltip":"feedback"}`)}));nC.displayName="Feedback",nC.propTypes=nR;let nT=x.createContext({}),nw=x.forwardRef(({bsPrefix:e,type:t,size:o,htmlSize:r,id:i,className:n,isValid:s=!1,isInvalid:l=!1,plaintext:a,readOnly:h,as:c="input",...d},u)=>{let{controlId:p}=(0,x.useContext)(nT);return e=iv(e,"form-control"),(0,io.jsx)(c,{...d,type:t,size:r,ref:u,readOnly:h,id:i||p,className:M()(n,a?`${e}-plaintext`:e,o&&`${e}-${o}`,"color"===t&&`${e}-color`,s&&"is-valid",l&&"is-invalid")})});nw.displayName="FormControl";let nb=Object.assign(nw,{Feedback:nC});var nE=o(350);let nO=e=>{switch(e){case nE.types.ADDED:return"added";case nE.types.MODIFIED:return"modified";case nE.types.DELETED:return"deleted";case nE.types.RENAMED:return"renamed";default:return null}},nI=e=>{switch(e){case nE.types.ADDED:return"color-green";case nE.types.MODIFIED:return"color-orange";case nE.types.DELETED:return"color-red";case nE.types.RENAMED:return"color-blue";default:return null}},nM=e=>{switch(e){case nE.types.ADDED:return"CommitDiffSection-FileAdded";case nE.types.MODIFIED:return"CommitDiffSection-FileModified";case nE.types.DELETED:return"CommitDiffSection-FileDeleted";case nE.types.RENAMED:return"CommitDiffSection-FileRenamed";default:return null}};class nx extends N().Component{render(){let{fileDiffType:e,getExternalIcon:t,translate:o}=this.props;if(!e)return null;let r=nO(e),i=nI(e),n=nM(e),s=M()("fs-1",i,"mr1");return N().createElement("span",{className:s,title:o(n)},r&&t(r))}}let{ADDED:nN,DELETED:nD,MODIFIED:nA,RENAMED:nH}=nE.types,nG={[nN]:"CommitDiffSection-NFilesAdded",[nD]:"CommitDiffSection-NFilesDeleted",[nA]:"CommitDiffSection-NFilesModified",[nH]:"CommitDiffSection-NFilesRenamed"};var nz=function({count:e,diffType:t,getExternalIcon:o,fileNodeListStyle:r,translate:i}){let n,s;let l=r?e:i(nG[t],e);return r&&(n={fontSize:P.Gu,marginRight:P.Ql},s={fontSize:P.ro,margin:`0px ${P.tl}px 0px 0px`}),N().createElement("span",{className:"tiny-files-readout",style:n},N().createElement(nx,{fileDiffType:t,getExternalIcon:o,style:s,translate:i}),N().createElement("span",{className:"tiny-files-readout-text"},l))},nW=function({diffStats:e,fileNodeListStyle:t,getExternalIcon:o,translate:r}){let{types:i}=nE;if(!e||!Object.values(e).some(e=>!!e))return N().createElement("span",null);let n=e.modified?N().createElement(nz,{count:e.modified,diffType:i.MODIFIED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,s=e.added?N().createElement(nz,{count:e.added,diffType:i.ADDED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,l=e.deleted?N().createElement(nz,{count:e.deleted,diffType:i.DELETED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,a=e.renamed?N().createElement(nz,{count:e.renamed,diffType:i.RENAMED,fileNodeListStyle:!0,getExternalIcon:o,translate:r}):null,h=t?{marginLeft:P.yX}:null;return N().createElement("span",{className:"summary",style:h},n,s,l,a)};class nk extends N().Component{textWidthRef=N().createRef();wrapperRef=N().createRef();static defaultProps={style:{},value:""};componentDidMount(){this.wrapperRef?.current&&(this.wrapperRef.current.style.width="0px")}componentDidUpdate(){this.textWidthRef?.current&&this.wrapperRef?.current&&(this.wrapperRef.current.style.width=`${Number(this.textWidthRef.current.offsetWidth)+35}px`)}componentWillUnmount(){this.props.onBlur&&this.props.onBlur()}onWipKeyDown(e){e.stopPropagation()}render(){let{clearCurrentlyHoveredGraphCommit:e,currentlyHoveredCommitSha:t,getExternalIcon:o,graphZoneType:r,isCommitting:i,isHovering:n,isSelected:s,onBlur:l,onClickCommit:a,onContextMenu:h,onFocus:c,onMessageChange:d,setAsCurrentlyHoveredGraphCommit:u,sha:p,style:f,translate:m,value:g,workDirStats:_}=this.props,v=M()("graph-zone-column","pt3","pb3","pointer","height-100-percent","grow-3","graph-row-wrapper",L.bY,{"is-hovering":n}),S=M()("column-1","graph-row","flex",{"is-selected":s}),y=N().createElement(nW,{diffStats:_,getExternalIcon:o,translate:m}),R=N().createElement("div",{className:"work-dir-input",ref:this.wrapperRef},N().createElement(nb,{"data-test-class":"work-dir-input-field",disabled:i,onBlur:e=>l(e),onChange:e=>d(e.target.value),onContextMenu:e=>h(e,r,p),onFocus:e=>c(e),onKeyDown:e=>this.onWipKeyDown(e),placeholder:m("WorkDirMessageInput-WIPPlaceholder"),type:"text",value:g}),N().createElement("div",{className:"text-width","data-test-class":"work-dir-input-message",ref:this.textWidthRef},g));return N().createElement("div",{className:v,onMouseEnter:e=>u(e,r,p,t),onMouseLeave:o=>e(o,r,p,t),style:f},N().createElement("div",{className:S,"data-test-class":"work-dir-message-row-div",onMouseDown:e=>a(e,r,p)},R,y))}}var nL=(e,t)=>{let{dimMergeCommits:o,dimRowsOfSelectedCommit:r,processedRows:i,translate:n,getExternalIcon:s,graphCommitDescDisplayMode:l,highlightRowsOnRefHover:a,isInUnsupportedRebase:h,numGraphColumns:c,isCommitting:d,pendingCommitMessageSummary:u,workDirStats:p,onBlurWipNodeInput:f,onFocusWipNodeInput:m,onMessageChange:g,clearCurrentlyHoveredGraphCommit:_,currentlyHoveredCommitSha:v,onCommitContextMenu:S,onClickCommit:y,onDoubleClickCommit:R,setAsCurrentlyHoveredGraphCommit:C,suppressNonRefRowTooltips:T,wipMessageEditable:w}=e,b=new ea.n$(e);return({rowIndex:e,style:E})=>{let O=t(e),I=i[e],{displaySummary:M,displayBody:x,sha:D,type:A,contexts:H,message:G}=I,z=H?.message||void 0,W=H?.row||void 0,k=P.d4,F=b.isColumnFollowingGraphColumn(k),B=b.isLastColumn(k),Z=b.getZoneWidth(k),U=b.getVerticalScrollWidth(k),j=b.isHovering(e),$=A===L.bY&&void 0!==p&&Object.keys(p).length>0,V=$&&!w?N().createElement(nW,{diffStats:p,getExternalIcon:s,translate:n}):null,Y=l===P.FQ.ALWAYS||l===P.FQ.ON_HOVER&&j,K=A!==L.bY||w?N().createElement(N().Fragment,null,N().createElement("span",{className:"message-zone--summary"},M),Y&&x?N().createElement("span",{className:"message-zone--body"},x):null):N().createElement("span",{style:{display:"flex",alignItems:"stretch",textOverflow:"ellipsis"}},Y?M:null,V);return $&&w?N().createElement(nk,{clearCurrentlyHoveredGraphCommit:_,currentlyHoveredCommitSha:v,getExternalIcon:s,graphZoneType:k,isCommitting:d,isHovering:b.isHovering(e),isSelected:b.isSelected(e),key:O,onBlur:f,onClickCommit:y,onContextMenu:S,onFocus:m,onMessageChange:g,setAsCurrentlyHoveredGraphCommit:C,sha:D,style:E,translate:n,value:u,workDirStats:p}):N().createElement(nf,{clearCurrentlyHoveredGraphCommit:_,column:I.column,columnForColoring:I.columnForColoring,context:z,currentlyHoveredCommitSha:v,dimRowsOfSelectedCommit:r,getExternalIcon:s,graphZoneType:k,highlightRowsOnRefHover:a,isDimmedMergeCommitRow:A===L.t$&&o,isHighlighted:b.isHighlighted(e),isHovering:j,isInUnsupportedRebase:h,isLastColumn:B,isMissingHoveredRefGroup:b.isMissingHoveredRefGroup(e),isSelected:b.isSelected(e),key:O,numGraphColumns:c,onClickCommit:y,onContextMenu:S,onDoubleClickCommit:R,rowContext:W,setAsCurrentlyHoveredGraphCommit:C,sha:D,showColorStrip:F,showConflictIcon:A===L.l2||A===L.gL,showTimeline:b.hasTimeline(e),style:E,title:T?void 0:G,type:A,verticalScrollWidth:U,zoneWidth:Z},K)}},nP=(e,t)=>{let{processedRows:o,getExternalIcon:r,highlightRowsOnRefHover:i,isInUnsupportedRebase:n,numGraphColumns:s,clearCurrentlyHoveredGraphCommit:l,currentlyHoveredCommitSha:a,dimMergeCommits:h,dimRowsOfSelectedCommit:c,onCommitContextMenu:d,onClickCommit:u,onDoubleClickCommit:p,setAsCurrentlyHoveredGraphCommit:f,shaLength:m,suppressNonRefRowTooltips:g}=e,_=new ea.n$(e);return({rowIndex:e,style:v})=>{let S=t(e),y=o[e],{sha:R,type:C,contexts:T}=y,w=B(R,m),b=T?.sha||void 0,E=T?.row||void 0,O=P.AR,I=_.isColumnFollowingGraphColumn(O),M=_.isLastColumn(O),x=_.getZoneWidth(O),D=_.getVerticalScrollWidth(O);return N().createElement(nf,{clearCurrentlyHoveredGraphCommit:l,column:y.column,columnForColoring:y.columnForColoring,context:b,currentlyHoveredCommitSha:a,dimRowsOfSelectedCommit:c,getExternalIcon:r,graphZoneType:O,highlightRowsOnRefHover:i,isDimmedMergeCommitRow:C===L.t$&&h,isHighlighted:_.isHighlighted(e),isHovering:_.isHovering(e),isInUnsupportedRebase:n,isLastColumn:M,isMissingHoveredRefGroup:_.isMissingHoveredRefGroup(e),isSelected:_.isSelected(e),key:S,numGraphColumns:s,onClickCommit:u,onContextMenu:d,onDoubleClickCommit:p,rowContext:E,setAsCurrentlyHoveredGraphCommit:f,sha:R,showColorStrip:I,showTimeline:_.hasTimeline(e),style:v,type:C,verticalScrollWidth:D,zoneWidth:x},C!==L.bY?N().createElement("span",{className:"font-monospace pointer",title:g?void 0:w},w):null)}};function nF({hasRefs:e,isActiveSha:t,left:o,type:r,width:i}){let n=M()("ref-line","z4",{"is-active":t});return e&&[L.oB,L.t$,L.l2].includes(r)?N().createElement("hr",{className:n,style:{left:o,width:i}}):null}function nB({graphZoneModeConstants:{RADIUS_DIFF_MERGE_NODE_COMMIT_NODE:e},hasRefs:t,isActiveSha:o,nodeOffset:r,type:i}){return N().createElement(nF,{hasRefs:t,isActiveSha:o,left:0,type:i,width:r+(i===L.t$?e:0)})}function nZ({className:e,marginLeft:t}){return N().createElement("div",{className:M()("app-bg0","absolute","left-0","right-0","bottom-0","top-0","pt3","pb3",e),style:{marginLeft:t}},N().createElement("div",{className:"commit-bg-color height-100-percent width-100-percent"}))}let nU=(e,t,o,r)=>o+t*e+r/2;function nj({column:e,graphZoneModeConstants:{COMMIT_COLUMN_WIDTH:t,COMMIT_NODE_DIAMETER:o,COMMIT_ZONE_GUTTER_WIDTH:r}}){return N().createElement(nZ,{className:"z1",marginLeft:nU(e,t,r,o)})}function n$(){return N().createElement(nZ,{marginLeft:0})}let nV=({authorEmail:e,authorInitials:t,authorName:o,avatarUrl:r,column:i,context:n,cssVariables:s,graphZoneModeConstants:l,left:a,message:h,opacity:c,suppressNonRefRowTooltips:d,type:u,useAuthorInitialsForAvatars:p})=>N().createElement(nv,{authorInitials:t,avatarUrl:r,className:M()("node",u,"z6"),column:i,context:n,cssVariables:s,fontSize:10,height:l.COMMIT_NODE_DIAMETER,size:l.COMMIT_ZONE_AVATAR_DIAMETER,style:{left:a,opacity:c},tooltip:d?void 0:()=>{let t=o&&""!==o.trim()&&"Unknown"!==o?n_(o,e):e,r=$(U(h||"")),i="";if(0===r.length)i=t;else{r.unshift({email:e,name:o});for(let e=0;e<r.length;e+=1){let t=r[e];i+=n_(t.name,t.email),e<r.length-1&&(i+=", ")}}return i},top:l.COMMIT_NODE_TOP_OFFSET,useAuthorInitialsForAvatars:p,width:l.COMMIT_NODE_DIAMETER}),nY=(e,t,o,r,i,n,s=!1)=>{let l={height:n.COMMIT_MERGE_NODE_DIAMETER,left:o+n.COMMIT_MERGE_NODE_LEFT_OFFSET,marginTop:n.COMMIT_MERGE_NODE_TOP_OFFSET,opacity:r,width:n.COMMIT_MERGE_NODE_DIAMETER},a=M()("node",i,"z6"),h=N().createElement(iE,{className:"gk-graph",id:"graph-merge-node-tooltip"},n_(t,e)),c=N().createElement("div",{className:a,"data-test-class":"tree-row-commit-node",style:l});return s?c:N().createElement(i0,{delay:250,overlay:h,placement:"top",trigger:["hover","focus"]},c)},nK=(e,t,o,r,i,n,s,l=!1,a,h=!1)=>{let c;let d={height:a.COMMIT_NODE_DIAMETER,left:r,marginTop:a.COMMIT_NODE_TOP_OFFSET,opacity:i,width:a.COMMIT_NODE_DIAMETER};l&&(d.borderWidth=1);let u=M()("gk-graph","node",s,"z6",{compact:l});c=s===L.OZ?n("Stash"):s===L.bY?n("Graph-WorkInProgress"):n_(o,t);let p=N().createElement("div",{className:u,"data-test-class":"tree-row-commit-node",style:d},s!==L.OZ||l?null:N().createElement("span",null,e("stash"))),f=N().createElement(iE,{className:"gk-graph",id:"graph-other-node-tooltip"},c);return h?p:N().createElement(i0,{delay:250,overlay:f,placement:"top",trigger:["hover","focus"]},p)};class nq extends N().PureComponent{render(){let{authorEmail:e,authorName:t,getExternalIcon:o,graphZoneModeConstants:r,left:i,opacity:n,suppressNonRefRowTooltips:s,translate:l,type:a}=this.props;return(t||e)&&a===L.oB?r.IS_COMPACT?nY(e,t,i,n,L.t$,r,s):nV(this.props):a===L.t$||a===L.l2||a===L.gL?nY(e,t,i,n,a,r,s):nK(o,e,t,i,n,l,a,r.IS_COMPACT,r,s)}}class nX extends N().Component{render(){let{columnColorByColumn:e,edgeColumnMax:t,edges:o,nodeColumn:r,graphZoneModeConstants:{COMMIT_COLUMN_WIDTH:i,COMMIT_ZONE_GUTTER_WIDTH:n,COMMIT_ZONE_LINE_WIDTH:s,IS_COMPACT:l}}=this.props,a=function(e,t,o,r,i,n,s,l){let a=function(e,t,o,r){let i="";for(let n=0;n<=t;n++){let{passThrough:t,starting:s,ending:l}=e[n]??{};i=`${i}_${en(n,o,s?.type,r)}_${en(n,o,l?.type,r)}_${es(n,t?.type,r)}`}return i}(e,t,o,l),h=eb[a];if(h)return h;let c="";for(let a=0;a<=t;a+=1){let t=e[a];if(!t)continue;let{passThrough:h,starting:d,ending:u}=t;c+=(d?function(e,t,o,r,i,n,s,l){let a=en(e,t,o,l),h=ew[a];return h||(h=t===e?function(e,t,o,r,i,n,s){let l=ei(o,e,n,s);return l.x1=ee(t,r,i,s),l.x2=ee(t,r,i,s),l.y1=P.kU/2,l.y2=P.kU,er(l)}(r[e],t,o,i,n,s,l):function(e,t,o,r,i,n,s,l){let a=ei(r,e,s,l),h=t<o?-P.nf:P.nf,c={...a};c.x1=ee(o,i,n,l),c.x2=ee(o,i,n,l),c.y1=P.kU-P.kj,c.y2=P.kU;let d={...a};return d.x1=ee(o,i,n,l)+h,d.x2=ee(t,i,n,l),d.y1=P.kU/2,d.y2=P.kU/2,`<g>${eR(e,t<o?180:270,t<o?270:0,r,ee(o,i,n,l)+h,P.kU-P.kj,s,l)}${er(c)}${er(d)}</g>`}(r[e],t,e,o,i,n,s,l),ew[a]=h),h}(a,o,d.type,r,i,n,s,l):"")+(h?function(e,t,o,r,i,n,s){let l=es(e,t,s),a=eT[l];if(a)return a;let h=ee(e,r,i,s),c=ei(t,o[e],n,s);return c.x1=h,c.x2=h,c.y1=0,c.y2=P.kU,a=er(c),eT[l]=a,a}(a,h.type,r,i,n,s,l):"")+(u?function(e,t,o,r,i,n,s,l){let a=en(e,t,o,l),h=eC[a];return h||(h=t===e?function(e,t,o,r,i,n,s){let l=ei(o,e,n,s);return l.x1=ee(t,r,i,s),l.x2=ee(t,r,i,s),l.y1=0,l.y2=P.kU/2,er(l)}(r[e],t,o,i,n,s,l):function(e,t,o,r,i,n,s,l){let a=ei(r,e,s,l),h=t<o?-P.nf:P.nf,c={...a};c.x1=ee(o,i,n,l),c.x2=ee(o,i,n,l),c.y1=0,c.y2=P._b;let d={...a};return d.x1=ee(o,i,n,l)+h,d.x2=ee(t,i,n,l),d.y1=P.kU/2,d.y2=P.kU/2,`<g>${er(c)}${eR(e,t>o?0:90,t>o?90:180,r,ee(o,i,n,l)+h,P._b,s,l)}${er(d)}</g>`}(r[e],t,e,o,i,n,s,l),eC[a]=h),h}(a,o,u.type,r,i,n,s,l):"")}return h=`url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g>${c}</g></svg>')`,eb[a]=h,h}(o,t,r,e,i,n,s,l);return N().createElement("div",{className:"absolute top-0 right-0 bottom-0 left-0 z2",style:{background:a}})}}function nQ({boxShadowAlpha:e,boxShadowLeft:t,children:o,className:r="",left:i,width:n}){return N().createElement("div",{className:M()("absolute","top-0","bottom-0","z3",r),style:{boxShadow:`${t}px 5px 10px rgba(0, 0, 0, ${e})`,left:i,width:n}},o)}function nJ({boxShadowAlpha:e,hasTimeline:t,scrollLeft:o,width:r}){return N().createElement(nQ,{boxShadowAlpha:e,boxShadowLeft:5,className:"app-bg0 left-0",left:o,width:r},t?N().createElement(nc,{z2:!0}):null)}function n0({boxShadowAlpha:e,commitZoneWidth:t,hasTimeline:o,scrollLeft:r,width:i}){return N().createElement(nQ,{boxShadowAlpha:e,boxShadowLeft:-5,left:r+t-i,width:i},o?N().createElement(nc,{z2:!0}):null,N().createElement(n$,null))}class n1 extends N().PureComponent{render(){let{authorEmail:e,authorName:t,avatarContext:o,avatarUrl:r,clearCurrentlyHoveredGraphCommit:i,column:n,columnColorByColumn:s,columnForColoring:l,commitZoneWidth:a,cssVariables:h,currentlyHoveredCommitSha:c,edgeColumnMax:d,edges:u,hasRefs:p,hasTimeline:f,getExternalIcon:m,graphZoneModeConstants:g,isActiveSha:_,isInUnsupportedRebase:v,isLastColumn:S,isSelected:y,leftGutterBoxShadowAlpha:R,leftGutterWidth:C,message:T,nodeOffset:w,nodeOpacity:b,numGraphColumns:E,onContextMenu:O,onClickCommit:I,onDoubleClickCommit:x,rightGutterBoxShadowAlpha:D,rightGutterWidth:A,rowContext:H,scrollLeft:G,setAsCurrentlyHoveredGraphCommit:z,sha:W,shouldShowRefLine:k,suppressNonRefRowTooltips:L,style:F,translate:B,type:Z,useAuthorInitialsForAvatars:U,zoneContext:j}=this.props,$=(l??n)%E+1,V=M()("relative","commit-zone","height-100-percent","pt3",Z,`column-${$}`,{"is-selected":y,"has-active":_}),Y=f?N().createElement(nc,{z2:!0}):null,K=N().createElement("div",{className:V,"data-vscode-context":(0,ea.DO)(j),onContextMenu:v?void 0:e=>O(e,P.md,W),onDoubleClick:e=>x(e,P.md,W),onMouseDown:e=>I(e,P.md,W),onMouseEnter:e=>z(e,P.md,W,c),onMouseLeave:e=>i(e,P.md,W,c),style:{...F,...S&&{width:"100%"}}},Y,N().createElement(nJ,{boxShadowAlpha:R,hasTimeline:f,scrollLeft:G,width:C}),k?N().createElement(nB,{graphZoneModeConstants:g,hasRefs:p,isActiveSha:_,nodeOffset:w,type:Z}):null,N().createElement(nq,{authorEmail:e,authorInitials:ng(t),authorName:t,avatarUrl:r,column:n,context:o,cssVariables:h,getExternalIcon:m,graphZoneModeConstants:g,left:w,message:T,opacity:b,suppressNonRefRowTooltips:L,translate:B,type:Z,useAuthorInitialsForAvatars:U}),N().createElement(nj,{column:n,graphZoneModeConstants:g}),N().createElement(nX,{columnColorByColumn:s,edgeColumnMax:d,edges:u,graphZoneModeConstants:g,nodeColumn:n}),N().createElement(n0,{boxShadowAlpha:D,commitZoneWidth:a,hasTimeline:f,scrollLeft:G,width:A}));return H?N().createElement("div",{"data-vscode-context":(0,ea.DO)(H)},K):K}}var n2=function(e,t){let{avatarUrlByEmail:o,onMissingAvatar:r,clearCurrentlyHoveredGraphCommit:i,columnColorByColumn:n,cssVariables:s,currentlyHoveredCommitSha:l,processedRows:a,getExternalIcon:h,graphZoneModeConstants:c,isInUnsupportedRebase:d,leftGutterBoxShadowAlpha:u,leftGutterWidth:p,onCommitContextMenu:f,onClickCommit:m,onDoubleClickCommit:g,nodeOffsetByColumn:_,nodeOpacityByColumn:v,numGraphColumns:S,rightGutterBoxShadowAlpha:y,rightGutterWidth:R,setAsCurrentlyHoveredGraphCommit:C,scrollLeft:T,shouldShowRefLine:w,suppressNonRefRowTooltips:b,translate:E,useAuthorInitialsForAvatars:O}=e,I=new ea.n$(e);return({rowIndex:e,style:M})=>{let x;let D=t(e),A=a[e],H=P.md,G=I.getZoneWidth(H),{email:z,author:W,contexts:k,message:L,sha:F,type:B}=A,Z=A.column,U=k?.graph||void 0,j=k?.avatar||void 0,$=k?.row||void 0;O||(x=o[z])||r(z,F);let V=I.isLastColumn(H);return N().createElement(n1,{authorEmail:z,authorName:W,avatarContext:j,avatarUrl:x,clearCurrentlyHoveredGraphCommit:i,column:Z,columnColorByColumn:n,columnForColoring:A.columnForColoring,commitZoneWidth:G,cssVariables:s,currentlyHoveredCommitSha:l,edgeColumnMax:A.edgeColumnMaxes,edges:A.edges,getExternalIcon:h,graphZoneModeConstants:c,hasRefs:A.hasRefs||!1,hasTimeline:I.hasTimeline(e),isActiveSha:I.rowContainsCurrentHeadRef(A),isInUnsupportedRebase:d,isLastColumn:V,isSelected:I.isSelected(e),key:D,leftGutterBoxShadowAlpha:u,leftGutterWidth:p,message:L,nodeOffset:_[Z],nodeOpacity:v[Z],numGraphColumns:S,onClickCommit:m,onContextMenu:f,onDoubleClickCommit:g,rightGutterBoxShadowAlpha:y,rightGutterWidth:R,rowContext:$,scrollLeft:T,setAsCurrentlyHoveredGraphCommit:C,sha:F,shouldShowRefLine:w,style:M,suppressNonRefRowTooltips:b,translate:E,type:B,useAuthorInitialsForAvatars:O,zoneContext:U})}};let n5=x.forwardRef(({controlId:e,as:t="div",...o},r)=>{let i=(0,x.useMemo)(()=>({controlId:e}),[e]);return(0,io.jsx)(nT.Provider,{value:i,children:(0,io.jsx)(t,{...o,ref:r})})});n5.displayName="FormGroup";class n6 extends N().PureComponent{handleClickOutside(){let{sha:e,shorthand:t,type:o,data:r}=this.props.createRefFormData;this.props.onCancel(t,e,o,r)}constructor(e){super(e);let{createRefFormData:t,formatRefShorthand:o}=this.props,{sha:r,shorthand:i,type:n,data:s}=t;this.state={currentShorthand:o(i,r,n,s),initShorthand:i}}static getDerivedStateFromProps(e,t){let{createRefFormData:o,formatRefShorthand:r}=e,{currentShorthand:i,initShorthand:n}=t,{sha:s,shorthand:l,type:a,data:h}=o,c=l!==n;return c&&r(l,s,a,h)!==i?{currentShorthand:r(l,s,a,h),initShorthand:l}:c?{currentShorthand:i,initShorthand:l}:null}onInputChange(e){let t=e||"";if(e){let{sha:e,type:o,data:r}=this.props.createRefFormData;t=this.props.formatRefShorthand(t,e,o,r)}this.setState({currentShorthand:t}),this.props.onRefShorthandChange?.(t)}render(){let{createRefFormData:e,isRefShorthandValid:t,onCancel:o,onContextMenu:r,onRefCreate:i,refZoneWidth:n,style:s,translate:l}=this.props,{currentShorthand:a}=this.state,{data:h,sha:c,type:d}=e,u=l(d===ep.z.TAG?"RefZone-EnterTagName":"RefZone-EnterBranchName");return N().createElement("div",{className:"create-ref","data-testid":"create-ref",style:{...s,minWidth:n,width:n}},N().createElement(n5,null,N().createElement(nb,{autoFocus:!0,"data-testid":"create-ref-form-control",isInvalid:a.length>0&&!t(a,c,d,h),onChange:e=>this.onInputChange(e.target?.value),onContextMenu:e=>r(e,a,c,d,h),onKeyDown:e=>{if(e.stopPropagation(),"Escape"===e.key){o(a,c,d,h);return}c&&"Enter"===e.key&&i(a,c,d,h)},placeholder:u,type:"text",value:a})))}}var n3=function({hasActive:e,overflowCount:t}){return N().createElement("span",{className:M()("overflow-count ml1",{"is-active":e}),"data-test-class":"overflow-count"},"+",t)},n4=function({style:e,children:t,column:o,numGraphColumns:r,onMouseEnter:i,onMouseLeave:n,ref:s,...l}){return N().createElement("div",{...l,className:M()("gk-graph","ref-zone",`column-${o%r+1}`),ref:s},N().createElement("ul",{onMouseEnter:i,onMouseLeave:n,style:{...e,listStyle:"none",padding:0,zIndex:1}},t))};let n9=()=>`ref-overlay-container-${Math.random()}`;var n7=function({enabledRefMetadataTypes:e,column:t,columnForColoring:o,context:r,enableShowHideRefsOptions:i,targetRef:n,hasActive:s,hasRefs:l,getExternalIcon:a,includeOnlyRefsById:h,includeOnlyRemotesByName:c,isGhostRef:d,isHovered:u,isInUnsupportedRebase:p,numGraphColumns:f,onMissingRefMetadata:m,refGroupContexts:g,refGroupsByName:_,refIconsPosition:v,refMetadata:S,refNodeHovered:y,sha:R,showRemoteNamesOnRefs:C,showContextMenuForGroupedRef:T,onClickRef:w,onDoubleClickRef:b,onToggleRefNodesShown:E,onRefBeginDrag:O,onRefCanDrag:I,onRefCanDrop:D,onRefDragEnter:A,onRefDragLeave:H,onRefDrop:G,onRefEndDrag:z,translate:W,type:k,useColumnHeaderIcons:L}){let[F,B]=(0,x.useState)(n9());(0,x.useEffect)(()=>{B(n9())},[u]);let Z=(0,x.useCallback)((e,t,o)=>{E(e,t.map(e=>({id:(0,ea.$V)(e),name:e.name,type:e.refType,owner:e.owner,avatarUrl:e.avatarUrl})),!1,o)},[E]),U=(0,x.useMemo)(()=>_&&_.length>P.gi?_.slice(0,P.gi):_,[_]),j=U.length>0?U[0]:null,$=(0,x.useMemo)(()=>u?U:j?[j]:[],[j,u,U]),V=(0,x.useMemo)(()=>{let e=P.lE+(j?.length||0)*P.RJ+(s?P.RJ:0);return u?{height:100,position:"relative"}:{minWidth:e}},[j,s,u]),Y=(0,x.useMemo)(()=>{let e=Object.values(h);return e.length>0&&e.some(e=>e.type===ep.z.TAG)},[h]),K=(0,x.useMemo)(()=>({enabledRefMetadataTypes:e,enableShowHideRefsOptions:i,getExternalIcon:a,groupIsHovered:u,hasActive:s,hasRefs:l,isGhostRef:d,isInUnsupportedRebase:p,onClick:w,onContextMenu:T,onDoubleClick:b,onHideRefClick:Z,onHovered:y,onMissingRefMetadata:m,onRefBeginDrag:O,onRefCanDrag:I,onRefCanDrop:D,onRefDragEnter:A,onRefDragLeave:H,onRefDrop:G,onRefEndDrag:z,refIconsPosition:v,refMetadata:S,sha:R,showRemoteNamesOnRefs:C,translate:W,type:k,useColumnHeaderIcons:L}),[i,e,a,s,l,d,u,p,w,b,Z,m,O,I,D,A,H,G,z,v,S,y,R,T,C,W,k,L]),q=(0,x.useMemo)(()=>$.map(e=>{let t=e[0],o=g?.[t.name]||void 0,r=e.some(e=>{let t=(0,ea.$V)(e);switch(e.refType){case ep.z.TAG:return Y&&!!h[t];case ep.z.REMOTE:return!!h[t]||e.owner&&c[e.owner];default:return!!h[t]}});return{...K,isActive:t.isCurrentHead,isRefGroupIncluded:r,key:`ref-node-${t.fullName||t.name}`,refGroup:e,refGroupContext:o}}),[K,Y,h,c,g,$]);return N().createElement("span",{"data-vscode-context":(0,ea.DO)(r),style:V},N().createElement("div",{className:M()({"display-none":u})},q.map(e=>N().createElement(ni,{...e,key:e.key}))),N().createElement(iK,{key:F,placement:"right-start",show:u,target:n.current},N().createElement(n4,{column:o??t,numGraphColumns:f},q.map(e=>N().createElement("li",{key:e.key},N().createElement(ni,{...e,key:void 0}))))))};let n8={};class se extends N().PureComponent{popoverTargetRef=(0,x.createRef)();static defaultProps={style:{}};componentDidUpdate(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))}onCustomToggleRefNodesShown=(e,t,o,r)=>{this.props.onToggleRefNodesShown(e,t,o,r),this.props.refZoneUnhovered()};render(){let{enabledRefMetadataTypes:e,column:t,columnForColoring:o,context:r,enableShowHideRefsOptions:i,showGhostRefsOnRowHover:n,hasActive:s,hasRefs:l,hasTimeline:a,hoveredRefGroup:h,hoveredRefZoneSha:c,getExternalIcon:d,includeOnlyRefsById:u,includeOnlyRemotesByName:p,isInUnsupportedRebase:f,numGraphColumns:m,onClickRef:g,onDoubleClickRef:_,onMissingRefMetadata:v,onRefBeginDrag:S,onRefCanDrag:y,onRefCanDrop:R,onRefDragEnter:C,onRefDragLeave:T,onRefDrop:w,onRefEndDrag:b,refGroupContexts:E,refGroupsByName:O,refIconsPosition:I,refMetadata:x,refNodeHovered:D,refNodeUnhovered:A,refZoneHovered:H,refZoneUnhovered:G,sha:z,shouldShowRefLine:W,showColorStrip:k,showContextMenuForGroupedRef:L,showRemoteNamesOnRefs:F,style:B,translate:Z,type:U,useColumnHeaderIcons:j,width:$}=this.props,V=c===z,Y={minWidth:$,width:$},K={...B,...Y},q=a?N().createElement(nc,null):null,X=O.length,Q=e=>{H(z),X?D(e,O[0],z):h&&A(e,h,z)},J=e=>{G(),h&&A(e,h,z)},ee=(0,ea.xJ)((e,t)=>{J(e),S(e,t)}),et=X>0&&!l&&n,eo=function(e,t,o,r,i,n){let s=`${e}${t}${o}${r}${i}${n}`,l=n8[s];return l||(l=M()(`column-${t%i+1}`,"flex","pb3","pt3","ref-zone","relative",e,{"dim-ref":n,"has-active":r,z6:o,z1:!o}),n8[s]=l),l}(U,o??t,V,s,m,et),er=N().createElement("div",{className:"color-strip height-100",style:{width:2}});if(!X)return N().createElement("div",{className:eo,onMouseEnter:Q,onWheel:J,style:K},k?er:null,q);let ei={minWidth:0,overflow:"hidden",width:$-P.Zk},en=X-1,es=en>0&&!V?N().createElement(n3,{hasActive:s,overflowCount:en}):null;return N().createElement("div",{className:eo,onMouseEnter:Q,onMouseLeave:J,onWheel:J,style:K},N().createElement("div",{ref:this.popoverTargetRef}),k?er:null,q,N().createElement("div",{className:"flex",style:ei},N().createElement(n7,{column:t,columnForColoring:o,context:r,enabledRefMetadataTypes:e,enableShowHideRefsOptions:i,getExternalIcon:d,hasActive:s,hasRefs:l,includeOnlyRefsById:u,includeOnlyRemotesByName:p,isGhostRef:et,isHovered:V,isInUnsupportedRebase:f,numGraphColumns:m,onClickRef:g,onDoubleClickRef:_,onMissingRefMetadata:v,onRefBeginDrag:ee,onRefCanDrag:y,onRefCanDrop:R,onRefDragEnter:(e,t,o)=>{V||o?.sha!==z||Q(e),C(e,t,o)},onRefDragLeave:T,onRefDrop:w,onRefEndDrag:b,onToggleRefNodesShown:this.onCustomToggleRefNodesShown,refGroupContexts:E,refGroupsByName:O,refIconsPosition:I,refMetadata:x,refNodeHovered:D,sha:z,showContextMenuForGroupedRef:L,showRemoteNamesOnRefs:F,targetRef:this.popoverTargetRef,translate:Z,type:U,useColumnHeaderIcons:j}),es),l&&W?N().createElement("div",{className:"absolute left-0 flex z1",style:Y},N().createElement(nF,{hasRefs:!0,isActiveSha:s,left:P.mE,type:U,width:"100%"})):null)}}var st=(e,t)=>{let{createRefFormData:o,formatRefShorthand:r,enableShowHideRefsOptions:i,enabledRefMetadataTypes:n,isRefShorthandValid:s,showGhostRefsOnRowHover:l,showRemoteNamesOnRefs:a,onDoubleClickRef:h,processedRows:c,includeOnlyRefsById:d,includeOnlyRemotesByName:u,isInUnsupportedRebase:p,getExternalIcon:f,hoveredRefGroup:m,hoveredRefZoneSha:g,numGraphColumns:_,onClickRef:v,onMissingRefMetadata:S,onShowContextMenuForGroupedRef:y,onRefBeginDrag:R,onRefCanDrag:C,onRefCanDrop:T,onRefCreate:w,onRefCreateCancel:b,onRefCreateContextMenu:E,onRefDragEnter:O,onRefDragLeave:I,onRefDrop:M,onRefEndDrag:x,onRefNodeHovered:D,onRefNodeUnhovered:A,onRefShorthandChange:H,onRefZoneHovered:G,onRefZoneUnhovered:z,onToggleRefNodesShown:W,refIconsPosition:k,refMetadataById:L,shouldShowRefLine:F,translate:B}=e,Z=new ea.n$(e);return({rowIndex:e,style:U})=>{let j=t(e),$=c[e],V=P.ui,Y=Z.getZoneWidth(V),K=Z.isHovering(e),{sha:q,type:X,hasRefs:Q,contexts:J}=$,ee=J?.ref||void 0,et=J?.refGroups||void 0,eo=Z.isSingleSelected(e),er=(l||Q)&&(Q||K||eo)?Z.getGraphRefGroupsByNameForRow(e):[],ei=Z.isColumnFollowingGraphColumn(V),en=Z.shouldUseColumnHeaderIcons(V);return o?.sha===q?N().createElement(n6,{createRefFormData:o,formatRefShorthand:r,isRefShorthandValid:s,key:j,onCancel:b,onContextMenu:E,onRefCreate:w,onRefShorthandChange:H,refZoneWidth:Y,style:U,translate:B}):N().createElement(se,{column:$.column,columnForColoring:$.columnForColoring,context:ee,enabledRefMetadataTypes:n,enableShowHideRefsOptions:i,getExternalIcon:f,hasActive:Z.rowContainsCurrentHeadRef($),hasRefs:Q||!1,hasTimeline:Z.hasTimeline(e),hoveredRefGroup:m,hoveredRefZoneSha:g,includeOnlyRefsById:d,includeOnlyRemotesByName:u,isInUnsupportedRebase:p,isSingleSelected:eo,key:j,numGraphColumns:_,onClickRef:v,onDoubleClickRef:h,onMissingRefMetadata:S,onRefBeginDrag:R,onRefCanDrag:C,onRefCanDrop:T,onRefDragEnter:O,onRefDragLeave:I,onRefDrop:M,onRefEndDrag:x,onToggleRefNodesShown:W,refGroupContexts:et,refGroupsByName:er,refIconsPosition:k,refMetadata:L,refNodeHovered:D,refNodeUnhovered:A,refZoneHovered:G,refZoneUnhovered:z,sha:q,shouldShowRefLine:F,showColorStrip:ei,showContextMenuForGroupedRef:y,showGhostRefsOnRowHover:l,showRemoteNamesOnRefs:a,style:U,translate:B,type:X,useColumnHeaderIcons:en,width:Y})}},so=(e,t)=>{let{translate:o,processedRows:r}=e,i=M()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative"),n=new ea.n$(e);return({rowIndex:e,style:s})=>{let l=t(e),a=M()("graph-row","height-100-percent","flex"),h=n.hasTimeline(e),c=r[e],d=c.contexts?.row||void 0,u=c.timeLineEntry?.label||"",p=c.timeLineEntry?.value||0,f=h?N().createElement(nc,null):null,m=h?N().createElement("span",{className:"time-line-message-container"},N().createElement("span",{className:"time-line-message"},o(u,p))):null;return N().createElement("div",{className:i,"data-vscode-context":(0,ea.DO)(d),key:l,style:s},f,N().createElement("div",{className:a,"data-vscode-context":(0,ea.DO)(d)},m))}};class sr extends N().Component{graphComponentRef=N().createRef();graphContainerRef=N().createRef();resizeObserver;lastNavSha=null;currentSha=null;isRefContextMenuShown=!1;isMounted=!1;selectedShas=new Set;lastFocusedSha;processedGraphRowBySha={};shaByRefId={};childrenBySha={};scrollToSha;headSha;headUpstreamSha;lastLazyLoadHeight=0;lastTopVisibleRowIndex=-1;lastBottomVisibleRowIndex=-1;maxColumns=0;orderedGraphRows=[];rowStatsConstraints={min:0,max:0};shouldFireShowMoreCommits=!0;columnsToFreeWhenFound={};hasMergeNodeChildBySha={};reserverInfoBySha={};columnsUsed={};rowsStats;workDirStats=P.pi;excludeByType={};excludeRefsById={};includeOnlyRefsById={};excludeRemotesByName={};includeOnlyRemotesByName={};highlightedShas={};searchMode="normal";scrollLeft=0;scrollTop=0;graphHeight=585;graphWidth=804;graphZoneModeConstants=(0,ea.jz)();graphZonesByType={};graphZoneOrdering=[P.ui,P.md,P.d4,P.fx,P.Sq,P.$A,P.AR];clientHeight=0;missingAvatarsTimer;pendingMissingAvatars={};requestedMissingAvatars={};missingRefsMetadataTimer;pendingMissingRefsMetadata={};requestedMissingRefsMetadata={};branchUpstreamRowIndices=[];downstreamsByUpstream={};timelinesInterval;constructor(e){for(let[t,o]of(super(e),this.resizeObserver=new ResizeObserver(e=>e.forEach(e=>this.onGraphResized(e.contentRect.width,e.contentRect.height))),Object.entries(e.isSelectedBySha||{})))o&&(this.selectedShas.add(t),this.lastFocusedSha=t);this.excludeByType=this.props.excludeByType||{},this.excludeRefsById=this.props.excludeRefsById||{},this.excludeRemotesByName=this.getExcludeRemotesByName(),this.includeOnlyRemotesByName=this.getIncludeOnlyRemotesByName(),this.includeOnlyRefsById=this.props.includeOnlyRefsById||{},this.downstreamsByUpstream=this.props.downstreamsByUpstream||{},this.highlightedShas=this.props.highlightedShas||{},this.searchMode=this.props.searchMode||"normal",this.rowsStats=this.props.rowsStats||this.rowsStats,this.workDirStats=this.props.workDirStats||this.workDirStats,this.processRows(this.props.graphRows),this.cleanupSelections(),this.updateMarkerRowIndices(["selection","highlights"]);let t=(0,Y.yr)(this.props.cssVariables);this.graphZoneModeConstants=(0,ea.jz)(this.props.columnsSettings?.[P.md]?.mode),this.maybeSortGraphZoneOrderingFromSettings(this.props.columnsSettings),this.state={avatarUrlByEmail:this.props.avatarUrlByEmail||{},contexts:this.props.contexts,createRefFormData:this.props.createRefFormData,cssVariablesWithDefaults:t,columnColorByColumn:this.getColumnColorByColumn(t),currentlyHoveredCommitSha:void 0,dimMergeCommits:this.props.dimMergeCommits||!1,dimRowsOfSelectedCommit:!1,enableShowHideRefsOptions:this.props.enableShowHideRefsOptions||!1,highlightRowsOnRefHover:this.props.highlightRowsOnRefHover||!1,showGhostRefsOnRowHover:this.props.showGhostRefsOnRowHover||!1,showRemoteNamesOnRefs:this.props.showRemoteNamesOnRefs||!1,enabledRefMetadataTypes:this.props.enabledRefMetadataTypes||[],enabledScrollMarkerTypes:this.props.enabledScrollMarkerTypes||[],graphCommitDescDisplayMode:this.props.graphCommitDescDisplayMode||P.FQ.ALWAYS,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,isLoadingRows:this.props.isLoadingRows||!1,numGraphColumns:this.getNumGraphColumns(t),markerRowIndices:{},pendingCommitMessageSummary:this.props.pendingCommitMessageSummary||"",processedRows:[...this.orderedGraphRows],refIconsPosition:this.getRefIconsPositionOrDefault(this.props.refIconsPosition),refMetadataById:this.props.refMetadataById,rowsStats:this.rowsStats,rowsStatsLoading:this.props.rowsStatsLoading||!1,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||P.K3.dark,width:this.graphWidth,workDirStats:this.workDirStats}}componentDidMount(){this.isMounted=!0,this.resizeObserver.observe(this.graphComponentRef.current),window.addEventListener("keydown",this.onWindowKeyDown),window.addEventListener("keyup",this.onWindowKeyUp),window.addEventListener("blur",this.onWindowBlur);let e=this.getSelectedShas();e.length>0&&this.selectCommits(e,!1,!0)}UNSAFE_componentWillReceiveProps(e){let t=!1,o=!1,r={},i=!1;this.props.searchMode!==e.searchMode&&(this.searchMode=e.searchMode||"normal",o=!0,r.highlights=!0),this.props.highlightedShas!==e.highlightedShas&&(this.setState({highlightedShas:e.highlightedShas}),this.highlightedShas=e.highlightedShas||{},"filter"===this.searchMode&&(o=!0),r.highlights=!0);let n=this.props.isSelectedBySha!==e.isSelectedBySha,s=this.props.searchMode!==e.searchMode;if(s&&(i=!0),this.processedGraphRowBySha&&(n||this.props.highlightedShas!==e.highlightedShas)&&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.graphCommitDescDisplayMode!==e.graphCommitDescDisplayMode&&this.setState({graphCommitDescDisplayMode:e.graphCommitDescDisplayMode||P.FQ.ALWAYS}),this.props.isContainerWindowFocused!==e.isContainerWindowFocused&&this.dimRowsOfSelectedCommit(!1),this.props.downstreamsByUpstream!==e.downstreamsByUpstream&&(this.downstreamsByUpstream=e.downstreamsByUpstream||{},e.graphRows?.length&&(o=!0)),this.props.graphRows!==e.graphRows||this.props.cssVariables!==e.cssVariables||o){this.cleanEdgeCaches();let r=(0,Y.yr)(e.cssVariables);i=!0,this.setState({columnColorByColumn:this.getColumnColorByColumn(r),cssVariablesWithDefaults:r,numGraphColumns:this.getNumGraphColumns(r)}),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.props.onShowMoreCommits!==e.onShowMoreCommits)&&this.setState({hasMoreCommits:e.hasMoreCommits||!1},()=>this.loadMoreCommitsIfNecessary(this.graphHeight,this.state.hasMoreCommits)),this.props.isLoadingRows!==e.isLoadingRows&&this.setState({isLoadingRows:e.isLoadingRows||!1}),this.props.rowsStats!==e.rowsStats&&(this.rowsStats=e.rowsStats,this.updateRowStatsConstraints(),this.setState({rowsStats:e.rowsStats})),this.props.rowsStatsLoading!==e.rowsStatsLoading&&this.setState({rowsStatsLoading:e.rowsStatsLoading||!1}),this.props.workDirStats!==e.workDirStats&&(this.workDirStats=e.workDirStats||P.pi,(!(0,ea.X1)(this.props.workDirStats)&&(0,ea.X1)(e.workDirStats)||(0,ea.X1)(this.props.workDirStats)&&!(0,ea.X1)(e.workDirStats))&&(i=!0),this.setState({workDirStats:this.workDirStats})),this.props.avatarUrlByEmail!==e.avatarUrlByEmail&&(this.setState({avatarUrlByEmail:e.avatarUrlByEmail||{}}),this.requestedMissingAvatars={}),this.props.refIconsPosition!==e.refIconsPosition&&this.setState({refIconsPosition:this.getRefIconsPositionOrDefault(e.refIconsPosition)}),this.props.refMetadataById!==e.refMetadataById&&(this.setState({refMetadataById:e.refMetadataById}),this.requestedMissingRefsMetadata={},r.pullRequests=!0),this.props.columnsSettings!==e.columnsSettings){if(e.columnsSettings?.[P.md]?.mode!==this.props.columnsSettings?.[P.md]?.mode){this.cleanEdgeCaches(),this.graphZoneModeConstants=(0,ea.jz)(e.columnsSettings?.[P.md]?.mode),this.updateCommitZoneContentWidthFromChange();let o=this.graphZonesByType[P.md];o.currentWidth=o.contentWidth,o.preferredWidth=o.contentWidth,o.minimumWidth=this.graphZoneModeConstants.COMMIT_ZONE_VIEWPORT_WIDTH_MIN,o.showIconWidth=this.graphZoneModeConstants.COMMIT_ZONE_SHOW_ICON_WIDTH,this.loadEdgesBySha(),t=!0}e.columnsSettings&&(this.updateZonesFromSettings(e.columnsSettings),t=!0)}if(this.props.contexts!==e.contexts&&this.setState({contexts:e.contexts}),this.props.pendingCommitMessageSummary!==e.pendingCommitMessageSummary&&this.setState({pendingCommitMessageSummary:e.pendingCommitMessageSummary||""}),this.props.enableShowHideRefsOptions!==e.enableShowHideRefsOptions&&this.setState({enableShowHideRefsOptions:e.enableShowHideRefsOptions}),this.props.createRefFormData!==e.createRefFormData&&(e.createRefFormData?.sha&&this.selectCommits([e.createRefFormData?.sha],!1,!0),this.setState({createRefFormData:e.createRefFormData})),i){this.processRows(e.graphRows);let t=(0,Y.yr)(e.cssVariables);(s||n)&&this.selectCommits(e.isSelectedBySha?Object.keys(e.isSelectedBySha):[],!1,!0),this.setState({processedRows:[...this.orderedGraphRows],columnColorByColumn:this.getColumnColorByColumn(t)})}if(t){this.updateCommitZoneContentWidthFromChange();let e=this.getOrderedActiveGraphZones();this.expandLastZoneMinWidthForScrollbar(e),this.ensureZoneWidthsMatchGraphWidth(e,this.graphWidth),this.setState({graphZones:e})}Object.keys(r).length&&this.updateMarkerRowIndices(Object.keys(r),e)}componentWillUnmount(){this.isMounted=!1,this.clearTimelinesInterval(),window.removeEventListener("keydown",this.onWindowKeyDown),window.removeEventListener("keyup",this.onWindowKeyUp),window.removeEventListener("blur",this.onWindowBlur),this.resizeObserver.disconnect()}focus(){this.graphContainerRef?.current?.focus()}getRefIconsPositionOrDefault(e){return e||ep.E.LEFT}onGraphVisibleRowsUpdatedThrottled=(0,ea.nF)(()=>this.onGraphVisibleRowsUpdated(),250,20);onBlurWipNodeInput=e=>{this.props.onBlurWipNodeInput&&this.props.onBlurWipNodeInput(e)};onDoubleClickRef=(e,t,o,r)=>{this.props.onDoubleClickGraphRef&&this.props.onDoubleClickGraphRef(e,t,this.processedGraphRowBySha[o],r)};onFocusWipNodeInput=e=>{this.props.onFocusWipNodeInput&&this.props.onFocusWipNodeInput(e)};onFilterColumnClick=(e,t)=>{this.props.onFilterColumnClick&&this.props.onFilterColumnClick(e,t)};onCurrentlyHoveredGraphCommit=(e,t,o,r)=>{r!==o&&(this.props.onGraphRowHovered&&this.props.onGraphRowHovered(e,t,this.processedGraphRowBySha[o]),this.setState({currentlyHoveredCommitSha:o}))};onClearCurrentlyHoveredGraphCommit=(e,t,o,r)=>{r&&(this.props.onGraphRowUnhovered&&this.props.onGraphRowUnhovered(e,t,this.processedGraphRowBySha[o]),this.setState({currentlyHoveredCommitSha:void 0}))};onGraphColumnReOrdered=(e,t)=>{let o=this.graphZoneOrdering.indexOf(e),r=t?this.graphZoneOrdering.indexOf(t):this.graphZoneOrdering.length-1;t&&o<r&&(r-=1),this.graphZoneOrdering.splice(o,1),this.graphZoneOrdering.splice(r,0,e);let i={};this.graphZoneOrdering.forEach((e,t)=>{this.graphZonesByType[e].order=t,i[e]=this.getGraphColumnSettingFromZoneType(this.graphZonesByType[e])}),this.setState({graphZones:this.initializeGraphZones(i,this.graphZoneOrdering,this.graphWidth)}),this.props.onGraphColumnsReOrdered&&this.props.onGraphColumnsReOrdered(i)};onGraphZoneResize=(0,ea.xJ)((e,t)=>{if(t?.width){let o=this.getOrderedActiveGraphZones();this.adjustResizedGraphZone(o,e,t,!1),this.setState({graphZones:o})}});onGraphZoneResizeEnd=(0,ea.xJ)((e,t)=>{if(t?.width){let 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=(e,t)=>{this.props.onPopupGraphHeaderContextMenu&&this.props.onPopupGraphHeaderContextMenu(e,t)};onSettingsClick=(e,t)=>{this.props.onSettingsClick&&(e.stopPropagation(),this.props.onSettingsClick(e,t))};onMessageChange=e=>{this.setState({pendingCommitMessageSummary:e}),this.props.onMessageChange&&this.props.onMessageChange(e)};onRefBeginDrag=(e,t)=>{this.props.onRefBeginDrag&&this.props.onRefBeginDrag(e,t)};onRefCanDrag=e=>!!this.props.onRefCanDrag&&this.props.onRefCanDrag(e);onRefCanDrop=(e,t,o)=>!!this.props.onRefCanDrop&&this.props.onRefCanDrop(e,t,o);onRefCreate=(e,t,o,r)=>{this.props.onRefCreate&&this.props.onRefCreate(e,t,o,r)};onRefCreateCancel=(e,t,o,r)=>{this.props.onRefCreateCancel&&this.props.onRefCreateCancel(e,t,o,r)};onRefCreateContextMenu=(e,t,o,r,i)=>{this.props.onRefCreateContextMenu&&this.props.onRefCreateContextMenu(e,t,o,r,i)};onRefDragEnter=(e,t,o)=>{this.props.onRefDragEnter&&this.props.onRefDragEnter(e,t,o)};onRefDragLeave=(e,t,o)=>{this.props.onRefDragLeave&&this.props.onRefDragLeave(e,t,o)};onRefDrop=(e,t,o)=>{this.props.onRefDrop&&this.props.onRefDrop(e,t,o)};onRefEndDrag=(e,t,o)=>{this.props.onRefEndDrag&&this.props.onRefEndDrag(e,t,o)};onZoneRowClick(e,t,o){if(0===e.button){let{enableMultiSelection:t,shiftSelectMode:r}=this.props,i=this.isMacOSPlatform();if(t&&(!i&&e.ctrlKey||i&&e.metaKey))this.selectCommits([o],!0,!1);else if(t&&"simple"===r&&e.shiftKey){if(this.lastFocusedSha){if(this.lastFocusedSha!==o){let e=this.getShiftSelectRange(o);e.length&&this.selectCommits(e,!0,!1)}}else this.selectCommits([o],!1,!1)}else this.selectCommits([o],!1,!1)}}getShiftSelectRange(e){if(!this.lastFocusedSha||!this.selectedShas.size)return[e];let t=this.processedGraphRowBySha[this.lastFocusedSha].rowIndex,o=Array.from(this.selectedShas).map(e=>this.processedGraphRowBySha[e].rowIndex),r=Math.min(...o),i=Math.max(...o),n=i>t,s=this.selectedShas.size>1,l=this.processedGraphRowBySha[e].rowIndex,a=[];if(t<l)for(let e=t;e<=l;e++)s&&n?(l<=i&&e!==l||l>i&&e!==i)&&a.push(this.orderedGraphRows[e].sha):e!==t&&a.push(this.orderedGraphRows[e].sha);else for(let e=t;e>=l;e--)s&&!n?(l>=r&&e!==l||l<r&&e!==r)&&a.push(this.orderedGraphRows[e].sha):e!==t&&a.push(this.orderedGraphRows[e].sha);return a}onClickRef=(e,t,o,r)=>{this.onZoneRowClick(e,P.ui,o),this.props.onClickGraphRef&&this.props.onClickGraphRef(e,t,this.processedGraphRowBySha[o],r),this.currentSha=o,this.loadSelectedGraphRow(this.currentSha),this.lastNavSha=null};onClickCommit=(e,t,o)=>{if(this.onZoneRowClick(e,t,o),this.props.onClickGraphRow){let r=this.processedGraphRowBySha[o];this.props.onClickGraphRow(e,t,r)}this.currentSha=o,this.loadSelectedGraphRow(this.currentSha),this.lastNavSha=null};onDoubleClickCommit=(e,t,o)=>{if(this.props.onDoubleClickGraphRow){let r=this.processedGraphRowBySha[o];this.props.onDoubleClickGraphRow(e,t,r)}};onWindowKeyUp=e=>{switch(e.key){case el.e.metaKey:this.isMacOSPlatform()&&this.dimRowsOfSelectedCommit(!1);break;case el.e.controlKey:this.isMacOSPlatform()||this.dimRowsOfSelectedCommit(!1)}};onWindowBlur=e=>{let{hoveredRefGroup:t,hoveredRefZoneSha:o}=this.state;t&&o&&this.onRefNodeUnhovered(e,t,o),this.onRefZoneUnhovered(),this.dimRowsOfSelectedCommit(!1)};onWindowKeyDown=e=>{switch(e.key){case el.e.metaKey:this.isMacOSPlatform()&&this.dimRowsOfSelectedCommit(!0);break;case el.e.controlKey:this.isMacOSPlatform()||this.dimRowsOfSelectedCommit(!0);break;default:this.state.dimRowsOfSelectedCommit&&this.dimRowsOfSelectedCommit(!1)}};onKeyUp=e=>{this.lastNavSha&&this.isNavigationKey(e.key)&&this.currentSha!==this.lastNavSha&&(this.loadSelectedGraphRow(this.currentSha),this.lastNavSha=null)};onKeyDown=e=>{switch(null===this.lastNavSha&&this.isNavigationKey(e.key)&&(this.lastNavSha=this.currentSha),e.key){case el.e.arrowUpKey:this.selectPrevious(e.shiftKey);break;case el.e.arrowDownKey:this.selectNext(e.shiftKey);break;case"H":case"h":this.selectHead(e.shiftKey)}};isNavigationKey(e){return[el.e.arrowUpKey,el.e.arrowDownKey].some(t=>t===e)}loadSelectedGraphRow(e){let t=this.processedGraphRowBySha[e];t&&this.props.onLoadSelectedGraphRow&&this.props.onLoadSelectedGraphRow(t)}onRefNodeHovered=(e,t,o)=>{(!this.props.showGhostRefsOnRowHover||(0,ea.SY)(this.selectedShas,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.isRefContextMenuShown||(this.props.onGraphRefNodeUnhovered&&this.props.onGraphRefNodeUnhovered(e,t,this.processedGraphRowBySha[o]),this.setState({hoveredRefGroup:void 0}))};onRefShorthandChange=e=>{let{createRefFormData:t}=this.state;this.setState({createRefFormData:{...t,shorthand:e}})};onRefZoneHovered=e=>{this.setState({hoveredRefZoneSha:e})};onRefZoneUnhovered=()=>{this.isRefContextMenuShown||this.setState({hoveredRefZoneSha:void 0})};onShowMoreCommits=()=>{this.props.onShowMoreCommits&&this.shouldFireShowMoreCommits&&(this.props.onShowMoreCommits(),this.shouldFireShowMoreCommits=!1,setTimeout(()=>{this.shouldFireShowMoreCommits=!0},250))};onScrollForZone=(e,t,o,r,i)=>{this.setScroll(e,t),this.props.onScrollForZone&&this.props.onScrollForZone(e,t),this.loadMoreCommitsIfNecessary(r,i)};loadMoreCommitsIfNecessary(e,t){if(!this.props.onShowMoreCommits||!t||!e||e<0||!this.scrollTop||this.scrollTop<0||!this.orderedGraphRows?.length)return;let o=this.scrollTop+e,r=this.orderedGraphRows.length*P.yB;o>r-P.By&&o>this.lastLazyLoadHeight&&(this.lastLazyLoadHeight=Math.min(o,r-1),this.onShowMoreCommits())}onScrollToRowCausedUpdateForFirstColumn=(e,t)=>{let o={...t};if(e===P.md&&t.scrollTop){let t=this.getHorizontalScrollHeight(e,this.state.cssVariablesWithDefaults);o.scrollTop-=t+P.ar}this.setScroll(e,o),this.props.onScrollToRowCausedUpdateForFirstColumn?.(e,o)};onCommitContextMenu=(e,t,o)=>{if(this.props.onRowContextMenu){let r=this.processedGraphRowBySha[o];this.props.onRowContextMenu(e,t,r)}};onRefContextMenu=(e,t,o)=>{if(this.props.onRefContextMenu){this.isRefContextMenuShown=!0,this.onRefZoneHovered(o);let r=this.processedGraphRowBySha[o];this.props.onRefContextMenu(e,t,r),setTimeout(()=>{this.isRefContextMenuShown=!1},250)}};selectCommits(e,t,o){if(!t)for(let t of this.selectedShas)e.includes(t)||this.selectedShas.delete(t);for(let o of e)t&&this.selectedShas.has(o)?this.selectedShas.delete(o):this.processedGraphRowBySha?.[o]&&this.selectedShas.add(o);if(this.lastFocusedSha=e.length&&this.selectedShas.has(e[e.length-1])?e[e.length-1]:(0,ea.HV)(this.selectedShas),this.lastFocusedSha&&this.selectSha(this.lastFocusedSha,o),this.props.onSelectGraphRows){let e=this.getSelectedShas().map(e=>this.processedGraphRowBySha[e]);this.props.onSelectGraphRows(e)}this.updateMarkerRowIndices(["selection"]),this.setState({processedRows:[...this.orderedGraphRows]})}getCommitZoneContentWidthBetweenGutters(){return this.getCurrentWidthByZone(P.md)-this.getLeftGutterWidth()-this.getRightGutterWidth()}getSelectedShas(){return[...this.selectedShas]}getExcludeRemotesByName(){let e={};return Object.values(this.excludeRefsById).forEach(t=>{t.type===ep.z.REMOTE&&t.owner&&"*"===t.name&&(e[t.owner]=!0)}),e}getIncludeOnlyRemotesByName(){let e={};return Object.values(this.includeOnlyRefsById).forEach(t=>{t.type===ep.z.REMOTE&&t.owner&&"*"===t.name&&(e[t.owner]=!0)}),e}clearScrollToIndex=(0,ea.xJ)(()=>{this.isMounted&&this.setState({scrollToIndex:void 0})});getTopAndBottomVisibleRowIndex(){let{graphHeight:e,orderedGraphRows:t,scrollTop:o}=this,r=e||0;if(!r||!t?.length)return{top:-1,bottom:-1};let i=(r-P.q4)/P.yB,n=o/P.yB,s=Math.min(Math.ceil(n+(i-1)),t.length-1);return{top:Math.max(Math.floor(n),0),bottom:s}}getOffsetSha(e){let t=this.graphHeight||0,o=this.props.scrollRowPadding||0;if(!o||!t)return e;let r=o;if(r<=0)return e;let i=this.getTopAndBottomVisibleRowIndex(),n=i.top,s=i.bottom;if(-1===n||-1===s)return e;let l=Math.floor((s-n)/2);if(l<1)return e;r=Math.min(r,l);let a=this.orderedGraphRows.length,h=this.orderedGraphRows.findIndex(t=>t.sha===e);if(!h||!this.orderedGraphRows.length)return e;let c=n+r>h,d=s-r<h;return c?this.orderedGraphRows[Math.max(h-r,0)].sha||e:d&&this.orderedGraphRows[Math.min(h+r,a-1)].sha||e}selectSha(e,t=!1){let o=this.processedGraphRowBySha[e]?.column||0,r=this.getScrollLeft(),i=this.getCommitZoneContentWidthBetweenGutters(),n=this.getCurrentWidthByZone(P.md),s=this.getCommitZoneContentWidth(),l=o*this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,a=r-this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH/3<=l&&l<=r+i?r:(0,ef.q)(l-i/2,0,Math.max(0,s-n));this.setScrollToSha(t?this.getOffsetSha(e):e,a),this.setState({scrollToAlignment:this.getScrollToAlignment(),scrollToIndex:this.getScrollToIndex()},this.clearScrollToIndex)}updateWidthByZone(e,t,o){let r=this.getOrderedActiveGraphZones(),i=this.graphZonesByType[t],n=(0,ea.jY)(i,r,e);if(i.currentWidth=n,t===P.md){let e=Math.max(0,this.getCommitZoneContentWidth()-i.currentWidth);this.getScrollLeft()>e&&this.setScrollLeft(e)}o&&(i.preferredWidth=n)}updateCommitZoneContentWidthFromChange(){let e=this.graphZonesByType[P.md];if(!e.isHidden){let t=this.getOrderedActiveGraphZones(),o=this.getCommitZoneContentWidth();e.contentWidth=o,e.maximumWidth=o,e.currentWidth>o&&(e.currentWidth=(0,ea.jY)(e,t,o)),this.setState({graphZones:t})}}getCurrentWidthByZone(e,t=!0){let o=t?this.getVerticalScrollWidth(P.md,this.props.cssVariables,!0):0,r=this.graphZonesByType[e];return r&&!r.isHidden?r.currentWidth-o:0}getCommitZoneContentWidth(){return(this.maxColumns||1)*this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH+2*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+2*this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT}getCommitZoneWidth(e=!0){let t=e?this.getVerticalScrollWidth(P.md,this.props.cssVariables,!0):0;if(this.graphZonesByType[P.md])return this.graphZonesByType[P.md].currentWidth-t;let{columnsSettings:o}=this.props;return o?.[P.md]?o[P.md].width-t:P.W[P.md].minimumWidth-t}getSingleColumnModeFactor(){let e=this.maxColumns,t=this.getCurrentWidthByZone(P.md);return 1===e?0:(0,ef.q)(1-(t-2*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH-this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT)/this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,0,1)}setClientHeight(e){this.clientHeight=e}getClientHeight(){return this.clientHeight}setScroll(e,t){this.setClientHeight(t.clientHeight),null!=t.scrollTop&&this.setScrollTop(t.scrollTop),e===P.md&&null!=t.scrollLeft&&this.setScrollLeft(t.scrollLeft)}getNonAdjustedScrollLeft(){return this.scrollLeft}setScrollLeft(e){this.scrollLeft!==e&&(this.scrollLeft=e,this.setState({scrollLeft:e}))}getScrollLeft(){let 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(){let e=this.getScrollToSha();if(e){let t=this.processedGraphRowBySha[e]?.rowIndex;return void 0===t?this.orderedGraphRows.findIndex(t=>t.sha===e):t}return -1}getScrollToAlignment(){let e=this.getClientHeight(),t=this.getScrollTop(),o=this.getScrollToIndex();return(0,ea.Mz)(P.yB,e,t,o)}getMinNodeOffset(){let e=this.getScrollLeft(),t=this.getSingleColumnModeFactor();return(1-t)*(e+2*this.graphZoneModeConstants.COMMIT_ZONE_PADDING_LEFT)+t*(e+this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH)}getHorizontalScrollHeight(e,t,o){return this.graphZonesByType[e]?(0,ea.xy)(e,this.getOrderedActiveGraphZones(),this.orderedGraphRows,t,o):0}getVerticalScrollWidth(e,t,o){return this.graphZonesByType[e]?(0,ea.K8)(e,this.getOrderedActiveGraphZones(),this.props.hasMoreCommits,this.props.isLoadingRows,this.graphHeight,this.orderedGraphRows,this.props.enabledScrollMarkerTypes?.length>0,t,o):0}getMaxNodeOffset(){let e=this.getCurrentWidthByZone(P.md),t=this.getScrollLeft(),o=this.getSingleColumnModeFactor();return(1-o)*(e+t+(this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT-this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH))+o*(t+this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH)}getAbsoluteNodeLeftByColumn(){let e={};for(let t=0;t<=this.maxColumns;t+=1)e[t]=this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH*t;return e}getNodeOffsetByColumn(){let e=this.getMinNodeOffset(),t=this.getMaxNodeOffset(),o=this.getAbsoluteNodeLeftByColumn(),r={};return Object.keys(o).forEach(i=>{let n=o[i];r[i]=(0,ef.q)(n,e,t)}),r}getMaxNodeLeft(){return this.getScrollLeft()+(this.getCurrentWidthByZone(P.md)-this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH-this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT)}getMinNodeLeft(){let e=this.getScrollLeft(),t=this.getSingleColumnModeFactor();return e+this.graphZoneModeConstants.COMMIT_ZONE_PADDING_LEFT+t*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH}getRightGutterSlideOutFactor(){let e=this.getCurrentWidthByZone(P.md),t=this.getCommitZoneContentWidth(),o=this.getSingleColumnModeFactor();return(0,ef.q)((e-(t-(this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT)))/this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,0,1)+o/2}getNodeOpacityByColumn(){let e=this.getMinNodeLeft(),t=this.getMaxNodeLeft(),o=this.getAbsoluteNodeLeftByColumn(),r=this.getRightGutterSlideOutFactor(),i=this.getSingleColumnModeFactor(),n={};return Object.keys(o).forEach(s=>{let l=o[s],a=l-(e-i*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH),h=t+this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH-(l+this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH*(1-r));n[s]=P.Td+(1-P.Td)*Math.max(Math.min(a,h)/(this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH/2),i)}),n}getLeftGutterWidth(){let e=this.getSingleColumnModeFactor();return this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH/2*e}getRightGutterWidth(){return(1-this.getRightGutterSlideOutFactor())*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH}getBoxShadowAlphaForGutter(e,t){return .4*(1-Math.max(e,t))}getLeftGutterBoxShadowAlpha(e){let t=this.getScrollLeft(),o=this.getSingleColumnModeFactor();return e*this.getBoxShadowAlphaForGutter(o,(0,ef.q)(1-t/this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,0,1))}getRightGutterBoxShadowAlpha(e){let t=this.getSingleColumnModeFactor(),o=this.getRightGutterSlideOutFactor();return e*this.getBoxShadowAlphaForGutter(t,o)}updateMarkerRowIndices(e,t){this.isMounted&&this.setState(({markerRowIndices:o})=>{e.forEach(e=>{o[e]=[]}),e.includes("selection")&&this.getSelectedShas().forEach(e=>{this.processedGraphRowBySha[e]?.rowIndex!==void 0&&o.selection.push(this.processedGraphRowBySha[e].rowIndex)});let r=t?.searchMode??this.props.searchMode;if(e.includes("highlights")&&"filter"!==r&&Object.keys(t.highlightedShas||this.state?.highlightedShas||this.props.highlightedShas||{}).forEach(e=>{this.processedGraphRowBySha[e]?.rowIndex!==void 0&&o.highlights.push(this.processedGraphRowBySha[e].rowIndex)}),e.includes("pullRequests")){let e=t?.refMetadataById||this.state?.refMetadataById||this.props.refMetadataById||{};Object.keys(e).forEach(t=>{if(e[t]?.[eh.ki]?.length>0){let e=this.shaByRefId[t];null!=e&&this.processedGraphRowBySha[e]?.rowIndex!==void 0&&o.pullRequests.push(this.processedGraphRowBySha[e].rowIndex)}})}})}getMarkerColors(){let e=getComputedStyle(document.documentElement),t={};return Object.values(P.wx).forEach(o=>{let r=e.getPropertyValue(o.colorCssKey).trim();r&&(t[o.type]=r)}),t}initializeGraphZones(e,t,o){this.graphZonesByType={};let r=[],i=0;t.forEach((t,o)=>{let n=e?e[t]:void 0,s=P.W[t],l=n?.width?n.width:s.minimumWidth,a={...s,type:t,currentWidth:l,preferredWidth:l,isHidden:n?.isHidden||!1,mode:n?.mode,order:s.isCustomizable&&n?.order!==void 0?n?.order:o};n?.isHidden||(i+=a.currentWidth),t===P.md&&(a.contentWidth=this.getCommitZoneContentWidth(),a.minimumWidth=this.graphZoneModeConstants.COMMIT_ZONE_VIEWPORT_WIDTH_MIN,a.showIconWidth=this.graphZoneModeConstants.COMMIT_ZONE_SHOW_ICON_WIDTH,this.maxColumns>0&&(a.maximumWidth=a.contentWidth)),this.graphZonesByType[t]=a,a?.isHidden||r.push(a)});let n=r[r.length-1];if(n){let e=(0,ea.eQ)(this.props.cssVariables,!0),t=n.minimumWidth+e;(null==n.maximumWidth||n.maximumWidth>=t)&&(n.minimumWidth=t,null!=n.showIconWidth&&(n.showIconWidth+=e),r[r.length-1]=n)}for(r.forEach(e=>{let t=(0,ea.jY)(e,r,e.currentWidth);t!==e.currentWidth&&(i-=e.currentWidth,e.currentWidth=t,i+=t)});i>o;){let e=(0,ea.Q9)(r);if(!e)break;let t=e.currentWidth,n=i-o,s=Math.max(e.minimumWidth,t-n),l=t-s;this.graphZonesByType[e.type].currentWidth=s,i-=l}if(i<o){let e=t[t.length-1],i=o-(0,ea.al)(r,e);this.graphZonesByType[e].currentWidth=i}return r}maybeSortGraphZoneOrderingFromSettings(e){this.graphZoneOrdering.every(t=>e?.[t]?.order!==void 0)&&this.graphZoneOrdering.sort((t,o)=>e[t].order<e[o].order?-1:e[t].order>e[o].order?1:0)}updateZonesFromSettings(e){let t=!1;this.graphZoneOrdering.forEach((o,r)=>{let i=this.graphZonesByType[o],n=e?.[i.type];n&&(n.isHidden===i.isHidden||(t=!0,i.type!==P.Sq||n.isHidden||this.updateRowStatsConstraints()),i.isHidden=n.isHidden,i.order=i.isCustomizable&&n?.order!==void 0?n?.order:r,i.mode=n.mode,i.preferredWidth=n.width??i.preferredWidth,i.currentWidth=i.preferredWidth)}),t&&this.graphZoneOrdering.forEach(e=>{let t=this.graphZonesByType[e];t.currentWidth=t.minimumWidth})}getEdgeColumnMaxes(e){let t=0;return Object.keys(this.processedGraphRowBySha[e]?.edges||{}).forEach(e=>{t=Math.max(t,parseInt(e,10))}),t}getEndingAndPassThroughEdgesByColumnFromPrevRow(e,t){let o,r,i,n;let s={};return Object.keys(t).forEach(l=>{r=(o=t[l]).passThrough,i=o.starting,(n=r&&!F(r.type)?r:i&&!F(i.type)?i:r||i||void 0)&&(n.parentSha===e.sha?s[l]={ending:n}:s[l]={passThrough:n})}),s}getFinalEdgeStateForGraphAndRow(e,t){let o=this.getEndingAndPassThroughEdgesByColumnFromPrevRow(e,t),r=this.getStartingEdgesByColumn(e);return Object.keys(r).forEach(e=>{o[e]||(o[e]={ending:void 0,passThrough:void 0,starting:void 0}),o[e].starting=r[e]}),o}loadEdgesBySha(){this.maxColumns=0,this.isCommitListFiltered()||this.orderedGraphRows.forEach((e,t)=>{let o=this.orderedGraphRows[t-1],r=o&&this.processedGraphRowBySha[o.sha]?.edges?this.processedGraphRowBySha[o.sha].edges:{};this.processedGraphRowBySha[e.sha].edges=this.getFinalEdgeStateForGraphAndRow(e,r);let i=this.getEdgeColumnMaxes(e.sha);this.processedGraphRowBySha[e.sha].edgeColumnMaxes=i,i>this.maxColumns&&(this.maxColumns=i)})}processRows(e){this.loadRowsbySha(e||[]),this.loadEdgesBySha()}getStartingEdgesByColumn(e){let t={},o=e.parents;if(o.length>0){let r=e.type,i=this.processedGraphRowBySha[e.sha]?.column;void 0!==i&&(t[i]={parentSha:o[0],type:r});for(let e=1;e<o.length;e+=1){let i=o[e],n=this.processedGraphRowBySha[i]?.column;void 0!==n&&(t[n]={parentSha:i,type:r})}}return t}formatCommitDateTimeCallback=(e,t)=>this.props.formatCommitDateTime?this.props.formatCommitDateTime(e,t):function(e,t,o,i=!0){t=t??void 0;let n=`${(void 0)??""}:${t}`,s=X.get(n);if(null==s){let e=function(e){if(null==e)return{localeMatcher:"best fit",dateStyle:"full",timeStyle:"short"};let t=q.exec(e);if(t?.groups!=null){let{dateStyle:e,timeStyle:o}=t.groups;return{localeMatcher:"best fit",dateStyle:e||"full",timeStyle:o||void 0}}let o={localeMatcher:"best fit"};for(let{groups:t}of e.matchAll(K))if(null!=t)for(let e in t){let r=t[e];if(null!=r)switch(e){case"year":o.year=4===r.length?"numeric":"2-digit";break;case"month":switch(r.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":"DD"===r?o.day="2-digit":o.day="numeric";break;case"weekday":switch(r.length){case 4:o.weekday="long";break;case 3:o.weekday="short";break;case 2:o.weekday="narrow"}break;case"hour":o.hour=2===r.length?"2-digit":"numeric",o.hour12="hh"===r||"h"===r;break;case"minute":o.minute=2===r.length?"2-digit":"numeric";break;case"second":o.second=2===r.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===r.length?"long":"short"}}return o}(t);s=new Intl.DateTimeFormat(r,e),i&&X.set(n,s)}if(null==t||q.test(t))return s.format(e);let l=s.formatToParts(e);return t.replace(K,(t,n,s,a,h,c,d,u,p,f,m,g,_,v,S)=>{if(null!=n)return n.substring(1,n.length-1);for(let t in S){let n=S[t];if(null==n)continue;let s=l.find(e=>e.type===t);if("Do"===n&&s?.type==="day")return function(e){let t=e%100;return`${e}${Q[(t-20)%10]??Q[t]??"th"}`}(Number(s.value));if("a"===n&&s?.type==="dayPeriod"){let t=(function(e){let t=`${(void 0)??""}:time:${e}`,n=X.get(t);if(null==n){let s;s=null==o?r:"system"===o?void 0:[o],n=new Intl.DateTimeFormat(s,{localeMatcher:"best fit",timeStyle:e}),i&&X.set(t,n)}return n})("short").formatToParts(e).find(e=>"dayPeriod"===e.type);return` ${(t??s)?.value??""}`}return s?.value??""}return""})}(e,P.qO);formatCommitMessageCallback=e=>this.props.formatCommitMessage?this.props.formatCommitMessage(e):e;formatRefShorthandCallback=(e,t,o,r)=>this.props.formatRefShorthand?this.props.formatRefShorthand(e,t,o,r):e.replace(/\s/g,"");isRefShorthandValidCallback=(e,t,o,r)=>!this.props.isRefShorthandValid||this.props.isRefShorthandValid(e,t,o,r);translateCallback=(e,...t)=>this.props.translate?this.props.translate(e,...t):ed.H[e]?function(e,t){if(0===t.length)return e;let o=e;return t.forEach((e,t)=>{let r=RegExp(`\\{${t}\\}`,"g");o=o.replace(r,e)}),o}(ed.H[e],t):e;getIconCallback=e=>this.props.getExternalIcon?.(e)||N().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(()=>{if(!this.isMounted)return;let e={...this.pendingMissingAvatars};this.pendingMissingAvatars={};let t=Object.keys(e);if(t.length){for(let e of t)this.requestedMissingAvatars[e]=!0;this.props.onEmailsMissingAvatarUrls?.(e)}},100))};onMissingRefMetadata=(e,t)=>{if(!this.props.onRefsMissingMetadata||this.requestedMissingRefsMetadata[e])return;let o=this.pendingMissingRefsMetadata[e]||[],r=t.filter(e=>!o.includes(e));this.pendingMissingRefsMetadata[e]=[...o,...r],this.missingRefsMetadataTimer&&(clearTimeout(this.missingRefsMetadataTimer),this.missingRefsMetadataTimer=void 0),this.missingRefsMetadataTimer=setTimeout(()=>{if(!this.isMounted)return;let e={...this.pendingMissingRefsMetadata};this.pendingMissingRefsMetadata={};let t=Object.keys(e);if(t.length){for(let e of t)this.requestedMissingRefsMetadata[e]=!0;this.props.onRefsMissingMetadata?.(e)}},100)};selectNext(e){let t;if(e&&"normal"===this.searchMode&&this.lastFocusedSha){let e=this.processedGraphRowBySha[this.lastFocusedSha];e?.parents?.length&&(t=e.parents[0])}else{let e=Math.min((this.lastFocusedSha?this.orderedGraphRows.findIndex(e=>e.sha===this.lastFocusedSha):-1)+1,this.orderedGraphRows.length-1);t=this.orderedGraphRows[e]?.sha}this.currentSha=t||null,t&&this.selectCommits([t],!1,!0)}selectPrevious(e){let t;if(e&&"normal"===this.searchMode&&this.lastFocusedSha){let e=this.childrenBySha[this.lastFocusedSha];if(e?.length){for(let o=0;o<e.length;o+=1)if(o===e.length-1)t=e[o];else if(this.processedGraphRowBySha[e[o]]?.type!==L.OZ){t=e[o];break}}}else{let e=Math.max(-1,(this.lastFocusedSha?this.orderedGraphRows.findIndex(e=>e.sha===this.lastFocusedSha):-1)-1);t=this.orderedGraphRows[e]?.sha,e<0&&(t=this.orderedGraphRows[0]?.sha)}this.currentSha=t||null,t&&this.selectCommits([t],!1,!0)}selectHead(e){let t=null;e&&this.headUpstreamSha?t=this.headUpstreamSha:this.headSha&&(t=this.headSha),this.currentSha=t||null,t&&this.selectCommits([t],!1,!0)}getAvailableColumnAndUseIt(){let e=0;for(;this.columnsUsed[e];)e+=1;return this.columnsUsed[e]=!0,e}getColumns(e){let t,o;this.hasMergeNodeChildBySha[e.sha]&&delete this.hasMergeNodeChildBySha[e.sha];let r=e.parents||[],i=this.columnsToFreeWhenFound[e.sha];if(void 0!==i)for(let e=0;e<i.length;e+=1)delete this.columnsUsed[i[e]];let n=0,s=this.reserverInfoBySha[e.sha];s?.column!==void 0?(n=s.column,delete this.reserverInfoBySha[e.sha]):n=this.getAvailableColumnAndUseIt();for(let i=0;i<r.length;i+=1)if(t=r[i],e.type===L.t$&&(this.hasMergeNodeChildBySha[t]=!0),o=this.reserverInfoBySha[t],0===i&&o?.column!==void 0&&o?.column!==n){let r=this.columnsToFreeWhenFound[t]||[],i=o?.type===L.OZ&&e.type!==L.OZ&&s?.newestDate>o?.newestDate;(o?.column>n||i)&&!this.hasMergeNodeChildBySha[t]?(this.reserverInfoBySha[t]={type:e.type,newestDate:s?.newestDate,column:n},r.push(o.column)):r.push(n),this.columnsToFreeWhenFound[t]=r}else o?.column===void 0&&(this.reserverInfoBySha[t]={type:e.type,newestDate:s?.column===n?s?.newestDate:e.date,column:0===i?n:this.getAvailableColumnAndUseIt()});return n}getFilteredHeadsForGraphRow(e,t){return e.heads.filter(e=>e.isCurrentHead||(t?void 0!==this.includeOnlyRefsById[(0,ea.mH)(ep.z.HEAD,e)]:!this.excludeByType.heads&&void 0===this.excludeRefsById[(0,ea.mH)(ep.z.HEAD,e)]))}getFilteredRemotesForGraphRow(e,t){return e.remotes.filter(e=>t?void 0!==this.includeOnlyRefsById[(0,ea.mH)(ep.z.REMOTE,e)]||!e.owner||void 0!==this.includeOnlyRemotesByName[e.owner]:(!this.excludeByType.remotes||e.owner&&this.downstreamsByUpstream[`${e.owner}/${e.name}`]?.length>0)&&void 0===this.excludeRefsById[(0,ea.mH)(ep.z.REMOTE,e)]&&(!e.owner||void 0===this.excludeRemotesByName[e.owner]))}getFilteredTagsForGraphRow(e,t,o){let r=t&&Object.values(this.includeOnlyRefsById).some(e=>e.type===ep.z.TAG),i=t&&(this.getFilteredHeadsForGraphRow(e,t).length>0||this.getFilteredRemotesForGraphRow(e,t).length>0);return e.tags.filter(e=>r?void 0!==this.includeOnlyRefsById[(0,ea.mH)(ep.z.TAG,e)]:!this.excludeByType.tags&&void 0===this.excludeRefsById[(0,ea.mH)(ep.z.TAG,e)]&&(!t||i||o))}loadRowsbySha(e){this.orderedGraphRows=[],this.processedGraphRowBySha={};let t=this.isCommitListFiltered();this.childrenBySha={},this.shaByRefId={},this.reserverInfoBySha={},this.columnsToFreeWhenFound={},this.columnsUsed={};let o=new Map,r={},i=[],n=[];this.branchUpstreamRowIndices=[];let s=[],l=[],a=[],h=[],c={};if((0,ea.X1)(this.workDirStats)&&e.length>0&&!(0,ea.l7)(e[0].type)){let t=(0,ea.pg)(e),o={sha:L.bY,parents:t?[t]:[],author:"",email:"",date:new Date().getTime(),message:this.translateCallback("Graph-WorkInProgress"),type:L.bY,heads:[],remotes:[],tags:[]};this.workDirStats.context&&(o.contexts={row:this.workDirStats.context}),e.unshift(o)}else!(0,ea.X1)(this.workDirStats)&&e.length>0&&(0,ea.l7)(e[0].type)&&e.shift();let d=Object.keys(this.includeOnlyRefsById).length>0;e.forEach((e,u)=>{let p;let f=this.childrenBySha[e.sha]?.length>0,m=e.heads?.length>0?this.getFilteredHeadsForGraphRow(e,d):[],g=e.remotes?.length>0?this.getFilteredRemotesForGraphRow(e,d):[],_=e.tags?.length>0?this.getFilteredTagsForGraphRow(e,d,!!(c[e.sha]||f)):[],v=e.parents?.length>0?e.parents.filter(e=>!r[e]):[],S=m.length>0||g.length>0||_.length>0,y=m.length>0||g.length>0;if(e.type!==L.oB&&e.type!==L.t$||c[e.sha]){if(e.type===L.OZ&&this.excludeByType.stashes&&(r[e.sha]=!0),!r[e.sha]&&v.length>0){let e;for(e of v)c[e]=!0}}else e.type!==L.oB&&e.type!==L.t$||c[e.sha]||S||f||(r[e.sha]=!0);let R=r[e.sha],C=R?0:this.getColumns(e);t&&(p=C,C=0);let T=new ec.Y(this,{...e,heads:m,remotes:g,tags:_,parents:v},C,void 0,void 0,void 0,void 0,p);if(!R){let r;let c=o.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}),r=c[0],T.childRefs={heads:[...r?.heads||[]],remotes:[...r?.remotes||[]],tags:[...r?.tags||[]]},o.delete(e.sha));for(let t=0;t<v.length;t+=1){let i=v[t];this.childrenBySha[i]||(this.childrenBySha[i]=[]),this.childrenBySha[i].push(e.sha);let n=o.get(i);(y||r)&&void 0===n&&(n=[],o.set(i,n)),y?n?.unshift({sha:e.sha,parentIndexScore:t,rowEntered:u,heads:m,remotes:g,tags:_}):r&&n?.unshift({...r,parentIndexScore:t,rowEntered:u})}let d=this.orderedGraphRows.length;if(T.rowIndex=d,m.length>0)for(let e of(s.push(d),m.some(e=>e.isCurrentHead)&&(this.headSha=T.sha,i.push(d)),m))this.shaByRefId[(0,ea.mH)(ep.z.HEAD,e)]=T.sha;if(g.length>0)for(let e of(l.push(d),g))e.current&&(n.push(d),this.headUpstreamSha=T.sha),this.downstreamsByUpstream[`${e.owner}/${e.name}`]?.length>0&&this.branchUpstreamRowIndices.push(d),this.shaByRefId[(0,ea.mH)(ep.z.REMOTE,e)]=T.sha;if(_.length>0)for(let e of(a.push(d),_))this.shaByRefId[(0,ea.mH)(ep.z.TAG,e)]=T.sha;e.type===L.OZ&&h.push(d),(!t||this.highlightedShas[e.sha])&&this.orderedGraphRows.push(T)}this.processedGraphRowBySha[e.sha]=T}),this.isMounted?this.setState(e=>({markerRowIndices:{...e.markerRowIndices,head:i,upstream:n,localBranches:s,remoteBranches:l,tags:a,stashes:h}})):this.state={...this.state,markerRowIndices:{...this.state?.markerRowIndices,head:i,upstream:n,localBranches:s,remoteBranches:l,tags:a,stashes:h}},this.clearTimelinesInterval(),this.updateTimelines(),this.timelinesInterval=setInterval(this.onTimelinesRefreshInterval,9e5),this.onGraphVisibleRowsUpdated()}updateRowStatsConstraints(){this.rowStatsConstraints=(0,ea.S6)(null!=this.rowsStats?Object.values(this.rowsStats).map(e=>e.additions+e.deletions):[])}updateTimelines(){Object.values((0,ea.ug)()).forEach(e=>{e.forEach(e=>{let{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})}clearTimelinesInterval(){this.timelinesInterval&&(clearInterval(this.timelinesInterval),this.timelinesInterval=void 0)}onTimelinesRefreshInterval=()=>{this.isMounted&&(this.clearTimelines(),this.updateTimelines(),this.setState({processedRows:[...this.orderedGraphRows]}))};cleanupSelections(){for(let e of this.selectedShas)this.processedGraphRowBySha[e]||(this.selectedShas.delete(e),this.lastFocusedSha!==e||(this.lastFocusedSha=void 0))}getColumnColorByColumn(e){let t=this.getNumGraphColumns(e),o=this.maxColumns>t?this.maxColumns:t,r={};for(let n=0;n<=o;n+=1)if(n<t){var i;let t=e[(0,Y.$6)(n)];r[n]="rgba"===(i=W(t)).type?`rgba(${i.r}, ${i.g}, ${i.b}, ${Number(i.a.toFixed(2))})`:`hsla(${i.h}, ${(100*i.s).toFixed(2)}%, ${(100*i.l).toFixed(2)}%, ${Number(i.a.toFixed(2))})`}else{let e=r[n%t];r[n]=e}return r}getNumGraphColumns(e){let t=Number.parseInt(e[V.u],P.Dl);return Number.isNaN(t)?P.Dl:t}expandLastZoneMinWidthForScrollbar(e){let t=e[e.length-1]?.type;if(!t)return;let o=(0,ea.eQ)(this.props.cssVariables,!0),r=P.W[t].minimumWidth+o,i=this.graphZonesByType[t];if(!i||null!=i.maximumWidth&&r>i.maximumWidth)return;i.minimumWidth=r;let n=P.W[t].showIconWidth;null!=n&&(i.showIconWidth=n+o),i.currentWidth<i.minimumWidth&&(i.currentWidth=i.minimumWidth),i.preferredWidth<i.minimumWidth&&(i.preferredWidth=i.minimumWidth)}ensureZoneWidthsMatchGraphWidth(e,t){let o=(0,ea.al)(e);o>t&&this.shrinkZoneWidthsToFitWidth(e,t),o<t&&this.expandZoneWidthsToFitWidth(e,t)}shrinkZoneWidthsToFitWidth(e,t,o){let r=(0,ea.al)(e);for(;r>t;){let i=(0,ea.Q9)(e,o);if(!i)break;let n=(0,ea.al)(e,i.type);if(n+i.currentWidth>t){let o=(0,ea.jY)(i,e,t-n);this.updateWidthByZone(o,i.type)}r=(0,ea.al)(e)}}getOrderedActiveGraphZones(){return this.graphZoneOrdering.sort((e,t)=>this.graphZonesByType[e].order-this.graphZonesByType[t].order).filter(e=>!this.graphZonesByType[e].isHidden).map(e=>this.graphZonesByType[e])}expandZoneWidthsToFitWidth(e,t,o){let r=(0,ea.al)(e);for(;r<t;){let i=(0,ea.fW)(e,o);if(!i)break;let n=(0,ea.al)(e,i.type),s=i.maximumWidth?Math.min(i.maximumWidth,i.preferredWidth||1/0):i.preferredWidth||0;if(n+i.currentWidth<t){let o=t-n;!(0,ea.z)(i.type,e)&&o>s&&(o=s),o=(0,ea.jY)(i,e,o),this.updateWidthByZone(o,i.type)}r=(0,ea.al)(e)}}onGraphHeaderRowMouseDown=e=>{1===e.button&&e.preventDefault()};onToggleRefNodesShown=(e,t,o,r)=>{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,r?this.processedGraphRowBySha[r]:void 0),this.processRows(this.props.graphRows),this.setState({processedRows:[...this.orderedGraphRows]})};cleanEdgeCaches(){eb={},ew={},eT={},eC={},J={}}onZoneEnter=(e,t,o,r)=>{t!==P.ui&&(o&&r&&this.onRefNodeUnhovered(e,o,r),this.onRefZoneUnhovered())};adjustResizedGraphZone(e,t,o,r){if(o?.width){let i=t.currentWidth;this.updateWidthByZone(o.width,t.type,r);let n=(0,ea.kU)(t.type,e),s=this.graphZonesByType[t.type];i>s.currentWidth&&this.expandZoneWidthsToFitWidth(e,this.graphWidth,n+1),i<s.currentWidth&&this.shrinkZoneWidthsToFitWidth(e,this.graphWidth,n-1)}}dimRowsOfSelectedCommit(e){this.setState({dimRowsOfSelectedCommit:e})}onGraphContainerBlurred=(e,t,o)=>{setTimeout(()=>{this.isMounted&&(t&&o&&this.onRefNodeUnhovered(e,t,o),this.onRefZoneUnhovered())},250)};onGraphContainerMouseEnter=e=>{this.props.onGraphMouseEnter&&this.props.onGraphMouseEnter(e)};onGraphContainerMouseLeave=e=>{this.props.onGraphMouseLeave&&this.props.onGraphMouseLeave(e)};onGraphResized=(0,ea.xJ)((e,t)=>{if(!this.isMounted)return;let o=Math.floor(t),r=Math.floor(e),i=o!==this.graphHeight,n=r!==this.graphWidth,s={};if(i&&(this.graphHeight=o,s.height=o),n){this.graphWidth=r;let e=this.getOrderedActiveGraphZones();this.ensureZoneWidthsMatchGraphWidth(e,this.graphWidth),s.width=this.graphWidth,s.graphZones=e}(i||n)&&(this.setState(s),i&&this.onGraphVisibleRowsUpdatedThrottled(),this.props.onGraphResized&&this.props.onGraphResized(this.graphWidth,this.graphHeight))});onGraphVisibleRowsUpdated(){if(!this.isMounted||!this.props.onGraphVisibleRowsChanged||!this.orderedGraphRows?.length)return;let{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()}isCommitListFiltered(){return"filter"===this.searchMode&&Object.values(this.highlightedShas).length>0}getGraphColumnSettingFromZoneType(e){return{width:e.preferredWidth||0,isHidden:e.isHidden,mode:e.mode,order:e.order}}decorateWithHelmet=(e,t,o)=>{let r=(0,Y.JQ)(t);return N().createElement(N().Fragment,null,N().createElement("style",{nonce:o},r),N().createElement("div",{className:"gk-graph"},e))};render(){let{columnsSettings:e,customFooterRow:t,isInUnsupportedRebase:o,isCommitting:r,repoPath:i,nonce:n,suppressNonRefRowTooltips:s,wipMessageEditable:l}=this.props,{avatarUrlByEmail:a,columnColorByColumn:h,contexts:c,createRefFormData:d,cssVariablesWithDefaults:u,currentlyHoveredCommitSha:p,dimMergeCommits:f,dimRowsOfSelectedCommit:m,enableShowHideRefsOptions:g,highlightRowsOnRefHover:_,showGhostRefsOnRowHover:v,showRemoteNamesOnRefs:S,enabledRefMetadataTypes:y,enabledScrollMarkerTypes:R,graphCommitDescDisplayMode:C,graphZones:T,hasMoreCommits:w,height:b,highlightedShas:E,hoveredRefGroup:O,hoveredRefZoneSha:I,themeOpacityFactor:x,isLoadingRows:D,rowsStatsLoading:A,numGraphColumns:H,pendingCommitMessageSummary:G,processedRows:z,refIconsPosition:W,refMetadataById:k,useAuthorInitialsForAvatars:L,scrollToAlignment:F,scrollToIndex:B,scrollTop:Z,scrollLeft:U,shaLength:j,width:$,workDirStats:V}=this.state,Y=M()("flex","graph-container"),K=(0,ea.xd)(z),q=eu(e=>K(e)),X=this.getLeftGutterWidth(),Q=this.getRightGutterWidth(),J=this.getRightGutterBoxShadowAlpha(x),ee=this.getLeftGutterBoxShadowAlpha(x),et=this.getNodeOffsetByColumn(),eo=this.getNodeOpacityByColumn(),er=(0,ea.kU)(P.ui,T),ei=(0,ea.kU)(P.md,T),en=!O,es={alwaysShowTimelines:this.isCommitListFiltered(),avatarUrlByEmail:a,createRefFormData:d,dimMergeCommits:f,dimRowsOfSelectedCommit:m,enableShowHideRefsOptions:g,highlightRowsOnRefHover:_,showGhostRefsOnRowHover:v,showRemoteNamesOnRefs:S,enabledRefMetadataTypes:y,enabledScrollMarkerTypes:R,isInUnsupportedRebase:o,isCommitting:r||!1,pendingCommitMessageSummary:G,workDirStats:V,repoPath:i,columnColorByColumn:h,currentlyHoveredCommitSha:p,cssVariables:u,graphCommitDescDisplayMode:C,graphZoneModeConstants:this.graphZoneModeConstants,graphZones:T,hasMoreCommits:w,height:b,highlightedShas:E,hoveredRefGroup:O,hoveredRefZoneSha:I,includeOnlyRefsById:this.includeOnlyRefsById,includeOnlyRemotesByName:this.includeOnlyRemotesByName,isLoadingRows:D,selectedShas:this.selectedShas,leftGutterBoxShadowAlpha:ee,leftGutterWidth:X,nodeOffsetByColumn:et,nodeOpacityByColumn:eo,nonce:n,numGraphColumns:H,processedRows:z,processedGraphRowBySha:this.processedGraphRowBySha,refIconsPosition:W,refMetadataById:k,rightGutterBoxShadowAlpha:J,rightGutterWidth:Q,rowStatsConstraints:this.rowStatsConstraints,rowsStats:this.rowsStats,suppressNonRefRowTooltips:s,useAuthorInitialsForAvatars:L,scrollToAlignment:F,scrollLeft:U,scrollTop:Z,shaLength:j,shouldShowRefLine:-1!==er&&-1!==ei&&ei-er==1,width:$,wipMessageEditable:l||!1,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,onRefBeginDrag:this.onRefBeginDrag,onRefCanDrag:this.onRefCanDrag,onRefCanDrop:this.onRefCanDrop,onRefCreate:this.onRefCreate,onRefCreateCancel:this.onRefCreateCancel,onRefCreateContextMenu:this.onRefCreateContextMenu,onRefDragEnter:this.onRefDragEnter,onRefDragLeave:this.onRefDragLeave,onRefDrop:this.onRefDrop,onRefEndDrag:this.onRefEndDrag,onRefNodeHovered:this.onRefNodeHovered,onRefNodeUnhovered:this.onRefNodeUnhovered,onRefShorthandChange:this.onRefShorthandChange,onRefZoneHovered:this.onRefZoneHovered,onRefZoneUnhovered:this.onRefZoneUnhovered,onToggleRefNodesShown:this.onToggleRefNodesShown,onCommitContextMenu:this.onCommitContextMenu,onShowContextMenuForGroupedRef:this.onRefContextMenu,getExternalIcon:this.getIconCallback,formatCommitDateTime:this.formatCommitDateTimeCallback,formatRefShorthand:this.formatRefShorthandCallback,isRefShorthandValid:this.isRefShorthandValidCallback,translate:this.translateCallback},el={[P.ui]:st(es,K),[P.md]:n2(es,K),[P.d4]:nL(es,K),[P.fx]:nS(es,K),[P.$A]:ny(es,K),[P.AR]:nP(es,K),[P.Sq]:nm(es,K),[P.OU]:so(es,K)},eh=T.map((e,o)=>{let r=0===o;return N().createElement(oN,{branchUpstreamRowIndices:this.branchUpstreamRowIndices,cellRenderersByIds:el,columnIndex:o,customFooterRow:t,enabledScrollMarkerTypes:R,enableResizer:en,getExternalIcon:this.getIconCallback,getKeyForCell:K,graphHeight:b-P.q4,graphWidth:$,graphZones:T,graphZoneType:e.type,hasMoreCommits:w,horizontalScrollHeight:this.getHorizontalScrollHeight(e.type,u),isLoadingRows:D,key:`${e.type}ColumnContainer`,markerColors:this.getMarkerColors(),markerRowIndices:this.state.markerRowIndices,onResize:this.onGraphZoneResize,onResizeEnd:this.onGraphZoneResizeEnd,onScroll:this.onScrollForZone,onScrollToRowCausedUpdate:r?this.onScrollToRowCausedUpdateForFirstColumn:void 0,onZoneEnter:t=>this.onZoneEnter(t,e.type,O,I),rowCount:z.length,scrollLeft:U,scrollToAlignment:r?F:void 0,scrollToIndex:r?B:void 0,scrollTop:Z,smartCellRangeRenderer:q,translate:this.translateCallback,verticalScrollWidth:this.getVerticalScrollWidth(e.type,u)})}),ec=this.graphComponentRef?.current&&N().createElement(ns,{columnsSettings:e,dragAppendToContainer:this.graphComponentRef?.current,enableResizer:en,enableShowHideRefsOptions:g,excludeRefsById:this.excludeRefsById,getExternalIcon:this.getIconCallback,graphZones:T,headerContext:c?.header,height:b,includeOnlyRefsById:this.includeOnlyRefsById,onColumnReOrdered:this.onGraphColumnReOrdered,onFilterColumnClick:this.onFilterColumnClick,onGraphZoneResize:this.onGraphZoneResize,onGraphZoneResizeEnd:this.onGraphZoneResizeEnd,onPopupGraphHeaderContextMenu:this.onPopupGraphHeaderContextMenu,onSettingsClick:this.onSettingsClick,onToggleRefNodesShown:this.onToggleRefNodesShown,repoPath:i,rowsStatsLoading:A,settingsContext:c?.settings,showRemoteNamesOnRefs:S,translate:this.translateCallback,width:$}),ed=N().createElement("div",{className:"graph-component","data-vscode-context":(0,ea.DO)(c?.graph),onBlur:e=>this.onGraphContainerBlurred(e,O,I),onMouseEnter:this.onGraphContainerMouseEnter,onMouseLeave:this.onGraphContainerMouseLeave,ref:this.graphComponentRef,style:{height:"100%",width:"100%",position:"absolute"},tabIndex:-1},ec,N().createElement("div",{className:E&&Object.keys(E).length?M()(Y,"graph-highlighted"):Y,id:"graph-container",onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,onMouseDown:this.onGraphHeaderRowMouseDown,ref:this.graphContainerRef,style:{height:b,width:$},tabIndex:-1},eh));return this.decorateWithHelmet(ed,u,n)}}var si=sr},468:(e,t,o)=>{o.d(t,{A:()=>l});var r=o(15),i=o.n(r),n=o(66);class s extends i().PureComponent{resizeObserver;scrollbarContainerRef=i().createRef();horizontalScrollRef=i().createRef();scrollabbleContentRef=i().createRef();verticalScrollRef=i().createRef();outerHorizontalScrollRef=i().createRef();constructor(e){super(e),this.resizeObserver=new ResizeObserver(e=>e.forEach(e=>this.onContainerResized(e.contentRect.width,e.contentRect.height)))}updateScrollbarValues(e,t){this.horizontalScrollRef?.current&&(this.horizontalScrollRef.current.scrollLeft=e||0),this.verticalScrollRef?.current&&(this.verticalScrollRef.current.scrollTop=t||0)}componentDidUpdate(e){let{scrollLeft:t,scrollTop:o}=this.props;(e.scrollLeft!==t||e.scrollTop!==o)&&this.updateScrollbarValues(t,o)}onHorizontalScroll(e){this.props.onScroll&&this.props.onScroll({clientHeight:this.props.height||0,clientWidth:e.target.clientWidth,scrollHeight:this.getAdjustedContentHeight(),scrollLeft:e.target.scrollLeft,scrollTop:this.props.scrollTop||0,scrollWidth:e.target.scrollWidth})}onVerticalScroll(e){let t=1>Math.abs(e.target.scrollTop-(this.props.scrollTop??0));this.props.onScroll&&!t&&this.props.onScroll({clientHeight:e.target.clientHeight,clientWidth:this.props.width||0,scrollHeight:e.target.scrollHeight,scrollLeft:this.props.scrollLeft||0,scrollTop:e.target.scrollTop,scrollWidth:this.props.contentWidth||0})}onWheel(e){if(!this.props.onScroll||!this.verticalScrollRef.current&&!this.props.forceOnVerticalWheel&&!this.horizontalScrollRef.current&&!this.props.forceOnHorizontalWheel)return;let t=this.props.scrollLeft||0,o=t;(this.horizontalScrollRef.current||this.props.forceOnHorizontalWheel)&&(o+=e.deltaX,(o=o>=0?o:0)>t&&this.horizontalScrollRef?.current&&(0,n.y6)(this.horizontalScrollRef.current)&&(o=t));let r=this.props.scrollTop||0,i=r;(this.verticalScrollRef.current||this.props.forceOnVerticalWheel)&&(i+=e.deltaY,(i=i>=0?i:0)>r&&this.verticalScrollRef?.current&&(0,n.br)(this.verticalScrollRef.current)&&(i=r)),(i!==r||o!==t)&&this.props.onScroll({clientHeight:this.props.height||0,clientWidth:this.props.width||0,scrollHeight:this.getAdjustedContentHeight(),scrollLeft:o>=0?o:0,scrollTop:i>=0?i:0,scrollWidth:this.props.contentWidth||0})}componentDidMount(){this.updateScrollbarValues(this.props.scrollLeft,this.props.scrollTop),this.resizeObserver.observe(this.scrollbarContainerRef.current)}componentWillUnmount(){this.resizeObserver.disconnect()}onContainerResized=(0,n.xJ)((e,t)=>{let o=this.props.contentHeight||0,r=this.props.contentWidth||0,i=this.props.scrollTop||0,n=this.props.scrollLeft||0,s=t<o?i:0,l=e<r?n:0;(i!==s||n!==l)&&(this.updateScrollbarValues(l,s),this.props.onScroll?.({clientHeight:t,clientWidth:e,scrollHeight:o,scrollLeft:l,scrollTop:s,scrollWidth:r}))});hasHorizontalScroll(){let{contentWidth:e,displayHorizontalScrollbar:t,forceHorizontalScrollbar:o,width:r}=this.props;return o||t&&r<e}hasVerticalScroll(){let{displayVerticalScrollbar:e,forceVerticalScrollbar:t,height:o}=this.props;return t||e&&o<this.getAdjustedContentHeight()}getHorizontalScrollbarTickness(){return parseInt(this.outerHorizontalScrollRef.current?.clientHeight,10)||0}getAdjustedContentHeight(){return this.props.contentHeight+this.getHorizontalScrollbarTickness()}adjustScrollWhileDragging(e){let t;let o=this.getAdjustedContentHeight();if(!this.scrollabbleContentRef.current||this.props.height>=o||!this.props.onScroll)return;let r=this.scrollabbleContentRef.current.getBoundingClientRect(),i=e.clientY-r.top,n=Math.abs(o-this.props.height);if(this.props.scrollTop>0&&i<=20){let e=this.props.scrollTop-20;t={clientHeight:r.height,clientWidth:r.width,scrollHeight:n,scrollLeft:this.props.scrollLeft||0,scrollTop:e>0?e:0,scrollWidth:this.props.contentWidth||0}}if(this.props.scrollTop<n&&i>=this.props.height-20){let e=this.props.scrollTop+20;t={clientHeight:r.height,clientWidth:r.width,scrollHeight:n,scrollLeft:this.props.scrollLeft||0,scrollTop:e<n?e:n,scrollWidth:this.props.contentWidth||0}}t&&this.props.onScroll(t)}render(){let{children:e,contentHeight:t,contentWidth:o,forceHorizontalScrollbar:r,forceVerticalScrollbar:n,height:s,width:l}=this.props,a=this.hasVerticalScroll(),h=this.hasHorizontalScroll(),c=h&&i().createElement("div",{className:"scrollbar-outer horizontal",ref:this.outerHorizontalScrollRef,style:{top:`calc(${s}px - var(--scrollable-scrollbar-thickness))`,width:l}},i().createElement("div",{className:"scrollbar-inner horizontal_scrollbar",onScroll:e=>this.onHorizontalScroll(e),ref:this.horizontalScrollRef,style:{overflowX:r?"scroll":"auto",width:a?`calc(${l}px - var(--scrollable-scrollbar-thickness))`:l}},i().createElement("div",{style:{height:"1px",width:o}}))),d=a&&i().createElement("div",{className:"scrollbar-outer vertical",style:{height:s}},i().createElement("div",{className:"scrollbar-inner vertical_scrollbar",onScroll:e=>this.onVerticalScroll(e),ref:this.verticalScrollRef,style:{overflowY:n?"scroll":"auto",height:h?`calc(${s}px - var(--scrollable-scrollbar-thickness))`:s}},i().createElement("div",{style:{height:`calc(${t}px + var(--scrollable-scrollbar-thickness))`,width:"1px"}})));return i().createElement("div",{className:"scrollbar-container",onWheelCapture:e=>this.onWheel(e),ref:this.scrollbarContainerRef,style:{height:s,width:l}},i().createElement("div",{className:"scrollable-content",onDragOverCapture:e=>this.adjustScrollWhileDragging(e),ref:this.scrollabbleContentRef,style:{height:s,width:l}},e),c,d)}}var l=s},298:(e,t,o)=>{o.d(t,{N:()=>c,OZ:()=>l,bY:()=>a,gL:()=>s,l2:()=>i,oB:()=>r,t$:()=>n});let r="commit-node",i="merge-conflict-node",n="merge-node",s="unsupported-rebase-warning-node",l="stash-node",a="work-dir-changes";var h,c=((h=c||{}).RowEntry="rowEntry",h.Tooltip="tooltip",h)},218:()=>{},522:(e,t,o)=>{o.d(t,{Y:()=>i,u:()=>r});let r="--num-columns-supported",i={"--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","--scroll-marker-head-color":"#16c216","--scroll-marker-highlights-color":"#e6e62b","--scroll-marker-local-branches-color":"#ffa500","--scroll-marker-pull-requests-color":"#ff8f18","--scroll-marker-remote-branches-color":"#ffd68b","--scroll-marker-selection-color":"#0821ff","--scroll-marker-stashes-color":"#fb94ff","--scroll-marker-tags-color":"#affcff","--scroll-marker-upstream-color":"#9bff9b","--stats-added-color":"#347d39","--stats-deleted-color":"#c93c37","--stats-files-color":"#e2c08d","--stats-bar-border-radius":"3px","--stats-bar-height":"40%"}},686:(e,t,o)=>{o.d(t,{$6:()=>i,JQ:()=>s,yr:()=>n});var r=o(522);function i(e){return`--column-${e}-color`}function n(e={}){let 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{...r.Y,...e}}(t)}function s(e){let t=e||r.Y,o="";for(let e of(o+=".gk-graph {\n",Object.keys(t)))o+=`${e}: ${t[e]};
2
- `;return o+"}\n"}},350:(e,t,o)=>{o.d(t,{types:()=>r});let r={ADDED:"added",DELETED:"deleted",MODIFIED:"modified",RENAMED:"renamed"}},366:()=>{},210:(e,t,o)=>{o.d(t,{e:()=>i});var r,i=((r=i||{}).arrowDownKey="ArrowDown",r.arrowUpKey="ArrowUp",r.controlKey="Control",r.metaKey="Meta",r.shiftKey="Shift",r)},214:(e,t,o)=>{o.d(t,{$0:()=>l,$A:()=>el,AR:()=>ea,BP:()=>r,By:()=>a,CF:()=>R,CY:()=>Q,Dl:()=>e_,E5:()=>M,EB:()=>v,F0:()=>x,FQ:()=>eC,G3:()=>H,Gu:()=>Y,H6:()=>O,Hm:()=>I,K3:()=>$,KA:()=>B,KV:()=>k,MT:()=>F,OU:()=>eo,Oe:()=>m,Qb:()=>j,Ql:()=>K,RJ:()=>z,Sb:()=>ef,Sq:()=>eh,Td:()=>c,W:()=>eS,WC:()=>ey,WQ:()=>et,Yx:()=>i,Zk:()=>A,_b:()=>u,ar:()=>h,bo:()=>U,cD:()=>E,d4:()=>en,di:()=>N,eB:()=>ep,fx:()=>es,gK:()=>C,gi:()=>L,iX:()=>T,io:()=>G,j:()=>em,jp:()=>b,kU:()=>p,kj:()=>d,lE:()=>W,lH:()=>f,mE:()=>D,mP:()=>J,md:()=>ei,n0:()=>y,n9:()=>P,nf:()=>g,oC:()=>Z,pi:()=>eR,q4:()=>n,qO:()=>w,ro:()=>X,tl:()=>q,ui:()=>er,wF:()=>_,wT:()=>ev,wx:()=>eg,xY:()=>ee,yB:()=>s,yX:()=>V,z$:()=>S});let r="#199489",i=3,n=26,s=28,l=22,a=1400,h=6,c=.5,d=3,u=3,p=28,f=22,m=3,g=11,_=56,v=56,S=32,y=22,R=18,C=55,T=50,w="short+short",b=55,E=50,O=50,I=50,M=55,x=18,N=32,D=2,A=6,H=14,G=5,z=19,W=10,k=55,L=100,P=50,F=10,B=25,Z=58,U=22,j=2,$={dark:1,light:.5},V=10,Y=12,K=6,q=3,X=12,Q="auto",J="center",ee=7,et=4,eo="timelineMessage",er="ref",ei="graph",en="message",es="author",el="datetime",ea="sha",eh="changes";var ec,ed,eu,ep=((ec=ep||{}).Compact="compact",ec.Rich="rich",ec.Text="text",ec),ef=((ed=ef||{}).Block="block",ed.FullLine="fullLine",ed.ThinLine="thinLine",ed);let em={block:{type:"block",baseHeight:1*s,minHeight:5,maxHeight:20},fullLine:{type:"fullLine",baseHeight:.5*s,minHeight:2,maxHeight:4},thinLine:{type:"thinLine",baseHeight:.25*s,minHeight:1,maxHeight:2}},eg={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"},pullRequests:{type:"pullRequests",colorCssKey:"--color-graph-scroll-marker-pull-requests",lanes:[2],shape:"block"},head:{type:"head",colorCssKey:"--scroll-marker-head-color",lanes:[0,1],shape:"block"},selection:{type:"selection",colorCssKey:"--color-graph-scroll-marker-selection",lanes:[0,1,2],shape:"fullLine"}},e_=10,ev=6,eS={[es]:{headerLabelUntranslated:"GraphHeader-CommitAuthor",isCustomizable:!0,listId:"commit-author-zone",minimumWidth:S,showIconWidth:C},[el]:{headerLabelUntranslated:"GraphHeader-CommitDateTime",isCustomizable:!0,listId:"commit-date-time-zone",minimumWidth:T,showIconWidth:b},[en]:{headerLabelUntranslated:"GraphHeader-CommitMessage",isCustomizable:!0,listId:"commit-message-zone",minimumWidth:I,showIconWidth:M},[ea]:{headerLabelUntranslated:"GraphHeader-CommitSha",isCustomizable:!0,listId:"commit-sha-zone",minimumWidth:E,showIconWidth:O},[ei]:{headerLabelUntranslated:"GraphHeader-CommitGraph",isCustomizable:!0,listId:"commit-zone",minimumWidth:_,showIconWidth:v},[er]:{headerLabelUntranslated:"GraphHeader-BranchTag",isCustomizable:!0,listId:"ref-zone",minimumWidth:N,showIconWidth:k},[eh]:{headerLabelUntranslated:"GraphHeader-Changes",isCustomizable:!0,listId:"changes-zone",minimumWidth:P,showIconWidth:Z}},ey={hour:23,day:6,week:4,month:11,year:6},eR={added:0,deleted:0,modified:0};var eC=((eu=eC||{}).ALWAYS="ALWAYS",eu.ON_HOVER="ON_HOVER",eu.NEVER="NEVER",eu)},66:(e,t,o)=>{o.d(t,{$V:()=>S,DO:()=>f,Et:()=>A,HV:()=>K,K8:()=>x,Mz:()=>U,Q9:()=>y,S6:()=>m,SY:()=>Z,U0:()=>I,Ve:()=>O,X1:()=>B,Yy:()=>b,a5:()=>V,al:()=>T,br:()=>u,eQ:()=>C,fW:()=>R,jY:()=>D,jz:()=>W,kU:()=>G,l7:()=>F,mH:()=>v,n$:()=>Y,n0:()=>j,nF:()=>d,pg:()=>P,qC:()=>z,uQ:()=>H,ug:()=>_,xJ:()=>c,xd:()=>k,xy:()=>M,y6:()=>p,yJ:()=>E,yb:()=>g,z:()=>w});var r=o(126),i=o(298),n=o(686),s=o(666),l=o(214),a=o(406),h=o(635);let c=e=>{let t;return(...o)=>{t&&cancelAnimationFrame(t),t=requestAnimationFrame(()=>{e(...o)})}},d=(e,t,o)=>{let r,i,n,s=!1,l=t;return(...a)=>{void 0!==o&&(i=new Date().getTime(),l=!r||i-r>l+o?o:t),n&&(clearTimeout(n),n=null),s?n=setTimeout(()=>{e(...a)},l):(e(...a),r=new Date().getTime(),s=!0,setTimeout(()=>{s=!1},l))}};function u(e){return 1>Math.abs(e.scrollHeight-e.scrollTop-e.clientHeight)}function p(e){return 1>Math.abs(e.scrollWidth-e.scrollLeft-e.clientWidth)}function f(e){return e?"string"==typeof e?e:JSON.stringify(e):null}function m(e){let{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);let o=e[0],r=e[Math.floor(.25*t)],i=e[Math.floor(.5*t)],n=e[Math.floor(.75*t)],s=e[t-1],l=n-r;return{min:Math.max(o,i-1.5*l),max:Math.min(s,i+1.5*l)}}function g(e,t,o,r){let{id:i}=e;return!i||null===t||t?.[i]===null||r&&t?.[i]?.[r]===null?null:t&&i in t?r&&!t[i]?.[r]?(o(i,[r]),null):r?t?.[i]?.[r]:t?.[i]:(o(i,a.ej),null)}function _(){let e;let t=new Date,o={hour:[],day:[],week:[],month:[],year:[]};for(e=1;e<=l.WC.hour;e+=1)o.hour.push({date:t.getTime()-36e5*e,label:1===e?"Timeline-1HourAgo":"Timeline-NHoursAgo",timeUnit:"hour",value:e});for(e=1;e<=l.WC.day;e+=1)o.day.push({date:t.getTime()-864e5*e,label:1===e?"Timeline-Yesterday":"Timeline-NDaysAgo",timeUnit:"day",value:e});for(e=1;e<=l.WC.week;e+=1)o.week.push({date:t.getTime()-6048e5*e,label:1===e?"Timeline-1WeekAgo":"Timeline-NWeeksAgo",timeUnit:"week",value:e});let r=new Date;for(r.setHours(0,0,0,0),e=1;e<=l.WC.month;e+=1)r.setMonth(r.getMonth()-1),r.setHours(0,0,0,0),o.month.push({date:r.getTime(),label:1===e?"Timeline-1MonthAgo":"Timeline-NMonthsAgo",timeUnit:"month",value:e});let i=new Date;for(i.setHours(0,0,0,0),e=1;e<=l.WC.year;e+=1){let t;switch(i.setFullYear(i.getFullYear()-1),i.setHours(0,0,0,0),e){case 1:t="Timeline-1YearAgo";break;case l.WC.year:t="Timeline-NPlusYearsAgo";break;default:t="Timeline-NYearsAgo"}o.year.push({date:i.getTime(),label:t,timeUnit:"year",value:e})}return o}function v(e,t){if(t.id)return t.id;let o=t.owner||"";return e===s.z.REMOTE?`${e}/${o}/${t.name}`:`${e}/${t.name}`}function S(e){return v(e.refType,e)}function y(e,t=0){for(let o=e.length-1;o>=t;o-=1){let t=e[o];if(t.currentWidth>t.minimumWidth)return t}}function R(e,t=0){if(e.length){for(let o=t;o<e.length;o+=1){let t=e[o],r=t.maximumWidth?Math.min(t.maximumWidth,t.preferredWidth||1/0):t.preferredWidth;if(r&&t.currentWidth<r)return t}return e[e.length-1]}}function C(e,t=!1){let o="--scrollable-scrollbar-thickness",r=t||!e[o]?(0,n.yr)(e):e,i=r[o]?parseInt(r[o],10):0;return Number.isNaN(i)?0:i}function T(e,t){let o=0;for(let r of e)t&&r.type===t||(o+=r.currentWidth);return o}let w=(e,t)=>e===t[t.length-1].type;function b(e,t,o){return t||o||0===e}function E(e,t,o){let r=b(e,t,o);return e+(r?1:0)}function O(e,t,o){let r=E(e,t,o);return l.yB*r}function I(e,t){return e.type===l.md&&t>0?e.contentWidth||0:e.currentWidth}function M(e,t,o,r,i){var n;let s=A(e,t);return s&&(n=o.length,s.currentWidth<I(s,n))?C(r,i):0}function x(e,t,o,r,i,n,s,l,a){let h=A(e,t);return h?!function(e,t,o,r,i,n,s){let l=O(n,o,r);return w(e.type,t)&&(i<l||s)}(h,t,o,r,i,n.length,s)?0:C(l,a):0}let N=(e,t)=>{let o=G(e,t),r=G(l.md,t);return -1!==o&&-1!==r&&o-r==1};function D(e,t,o){return(0,r.q)(o,e.minimumWidth||0,e.maximumWidth&&!w(e.type,t)?e.maximumWidth||0:Number.MAX_VALUE)}function A(e,t){return t.find(({type:t})=>t===e)}function H(e){return!!e&&e.currentWidth<=e.showIconWidth}function G(e,t){return t.findIndex(({type:t})=>t===e)}function z(e,t,o){let r=0,i=0,n=G(e,t);if(n>-1){let e=function(e,t=0){let o=0;for(let r=t;r<e.length;r+=1)o+=e[r].minimumWidth;return o}(t,n+1),s=function(e,t=e.length-1){let o=0;for(let r=0;r<=t;r+=1)o+=e[r].currentWidth;return o}(t,n-1),l=t[n].maximumWidth||Number.MAX_VALUE;r=t[n].minimumWidth,i=Math.min(l,o-e-s)}return{min:r,max:i}}function W(e){let t=!!e&&e===l.eB.Compact,o=t?1:2,r=t?10:28,i=t?1:3,n=t?1:3,s=t?10:22,a=t?s:l.lH,h=t?s:s/2+1;return{COMMIT_ZONE_LINE_WIDTH:o,COMMIT_ZONE_GUTTER_WIDTH:r,COMMIT_ZONE_PADDING_LEFT:i,COMMIT_ZONE_PADDING_RIGHT:n,COMMIT_COLUMN_WIDTH:s,COMMIT_NODE_DIAMETER:a,COMMIT_MERGE_NODE_DIAMETER:h,COMMIT_NODE_TOP_OFFSET:.5*l.lH-.5*a,COMMIT_MERGE_NODE_LEFT_OFFSET:s/2-h/2,COMMIT_MERGE_NODE_TOP_OFFSET:.5*l.lH-.5*h,COMMIT_ZONE_AVATAR_DIAMETER:a-2*o,COMMIT_ZONE_VIEWPORT_WIDTH_MIN:a+i+n+r,COMMIT_ZONE_SHOW_ICON_WIDTH:t?45:56,IS_COMPACT:t,RADIUS_DIFF_MERGE_NODE_COMMIT_NODE:a/2-h/2}}let k=e=>t=>t===e.length?"SHOW_MORE_COMMITS":e[t].sha;function L(e){return e instanceof h.Y?!!e.refsData?.activeGraphRef:!!e?.heads&&e.heads.some(e=>$(e))}function P(e){let t=e.find(L);return t?.sha||void 0}function F(e){return[i.l2,i.gL,i.bY].includes(e)}function B(e){return!!e&&Object.values(e).some(e=>e>0)}function Z(e,t){return e.has(t)&&1===e.size}function U(e,t,o,r){if(r<0)return l.CY;let i=e+2,n=r*e;return n>=o-i&&n<o+t+i?l.CY:l.mP}function j(e){switch(e){case l.md:return"graph";case l.ui:return"branch";case l.d4:return"message";case l.fx:return"author";case l.$A:return"datetime";case l.AR:return"commit";case l.Sq:return"changes";default:return""}}function $(e){return e.isCurrentHead}function V(e){return e.refType===s.z.HEAD&&$(e)}class Y{props;constructor(e){this.props=e}getActiveGraphZone(e){let t=A(e,this.props.graphZones);return!t||t.isHidden?void 0:t}getGraphRefGroupsByNameForRow(e){let t=this.getRow(e);return t&&t.refsData?.orderedRefGroups||[]}getRow(e){if(!(e<0)&&!(e>this.props.processedRows.length-1))return this.props.processedRows[e]}getZoneWidth(e,t=!0){var o;let r=t?this.getVerticalScrollWidth(e):0;return o=this.props.graphZones,(A(e,o)?.currentWidth||l.W[e].minimumWidth)-r}isDateTimeZoneActive(){return!!this.getActiveGraphZone(l.$A)}shouldShowTimelines(){return this.props.alwaysShowTimelines||!this.isDateTimeZoneActive()}isFirstRow(e){return 0===e}isColumnFollowingGraphColumn(e){return N(e,this.props.graphZones)}isHighlighted(e){if(this.props.processedRows[e]&&this.props.highlightedShas){let t=this.props.processedRows[e]?.sha;return this.props.highlightedShas[t]||!1}return!1}isHovering(e){return!!this.props.processedRows[e]&&this.props.currentlyHoveredCommitSha===this.props.processedRows[e]?.sha}isLastColumn(e){return w(e,this.props.graphZones)}getSelectedRefGroupByName(){if(1===this.props.selectedShas.size){let e=this.props.selectedShas[Symbol.iterator]().next().value;if(e){let t=this.props.processedGraphRowBySha[e];if(t)return t.refsData?.orderedRefGroups||[]}}return[]}getHorizontalScrollHeight(e){return M(e,this.props.graphZones,this.props.processedRows,this.props.cssVariables)}getVerticalScrollWidth(e){return x(e,this.props.graphZones,this.props.hasMoreCommits,this.props.isLoadingRows,this.props.height,this.props.processedRows,this.props.enabledScrollMarkerTypes.length>0,this.props.cssVariables)}shouldUseColumnHeaderIcons(e){let t=A(e,this.props.graphZones);return!!t&&H(t)}isMissingHoveredRefGroup(e){if(this.props.highlightedShas)return!1;let t=this.getRow(e);if(!t)return!1;let o=[];if(this.props.dimRowsOfSelectedCommit){let e=this.getSelectedRefGroupByName();if(!e.length)return!1;o=e[0]}else{let{hoveredRefGroup:e}=this.props;if(!e?.length)return!1;o=e}let{name:r,refType:i}=o[0],n=i===s.z.TAG,l=t.tags.length>0&&!t.heads.length&&!t.remotes.length,{heads:a,tags:h,remotes:c}=t.hasRefs&&(!l||n)?t:t.childRefs;return!a.length&&!c.length&&!h.length||!a.some(e=>e.name===r&&o.some(e=>e.refType===s.z.HEAD))&&!c.some(e=>e.name===r&&o.some(t=>t.refType===s.z.REMOTE&&t.owner===e.owner))&&!h.some(e=>e.name===r&&o.some(e=>e.refType===s.z.TAG))}isSelected(e){let t=this.getRow(e)?.sha;return!!t&&this.props.selectedShas.has(t)}isSingleSelected(e){let t=this.getRow(e)?.sha;return!!t&&Z(this.props.selectedShas,t)}hasTimeline(e){return this.shouldShowTimelines()&&!!this.props.processedRows[e]?.timeLineEntry&&!this.isFirstRow(e)}rowContainsCurrentHeadRef(e){return L(e)}}function K(e){let t;for(t of e);return t}},406:(e,t,o)=>{o.d(t,{RA:()=>i,ej:()=>s,fd:()=>n,ki:()=>r});let r="pullRequest",i="upstream",n="issue",s=[r,i,n]},635:(e,t,o)=>{o.d(t,{Y:()=>s});var r=o(666),i=o(66);let n={[r.z.HEAD]:2,[r.z.REMOTE]:1,[r.z.TAG]:0};class s{_graph;_message;_heads;_remotes;_tags;_activeGraphRef;_activeGraphRefGroup;_refGroupsByName;_orderedRefGroups;sha;parents;author;email;date;type;contexts;rowIndex;column;columnForColoring;edgeColumnMaxes;edges;childRefs;timeLineEntry;summary;body;displayMessage;displaySummary;displayBody;set message(e){this._message!==e&&(this._message=e,this.displayMessage=this._graph.formatCommitMessageCallback(e),this.updateSummaryAndBody(e))}get message(){return this._message}get heads(){return this._heads}set heads(e){this._heads!==e&&(this._heads=e,this.initializeRefGroups())}set remotes(e){this._remotes!==e&&(this._remotes=e,this.initializeRefGroups())}get remotes(){return this._remotes}set tags(e){this._tags!==e&&(this._tags=e,this.initializeRefGroups())}get tags(){return this._tags}get hasRefs(){return this.heads.length>0||this.remotes.length>0||this.tags.length>0}get hasChildRefs(){return this.childRefs.heads.length>0||this.childRefs.remotes.length>0||this.childRefs.tags.length>0}get refsData(){if(this.hasRefs||this.hasChildRefs)return 0===this._orderedRefGroups.length&&this.loadGraphRefGroupsData(),{activeGraphRef:this._activeGraphRef,activeGraphRefGroup:this._activeGraphRefGroup,orderedRefGroups:this._orderedRefGroups,refGroupsByName:this._refGroupsByName}}constructor(e,t,o,r,i,n,s,l){this._graph=e,this._heads=t.heads||[],this._remotes=t.remotes||[],this._tags=t.tags||[],this._message=t.message,this.sha=t.sha,this.parents=t.parents,this.author=t.author,this.email=t.email,this.date=t.date,this.type=t.type,this.contexts=t.contexts,this.column=o||0,this.columnForColoring=l,this.edgeColumnMaxes=r||0,this.edges=i||{},this.childRefs=n||{heads:[],tags:[],remotes:[]},this.timeLineEntry=s,this.initializeRefGroups(),this.updateSummaryAndBody(t.message)}updateSummaryAndBody(e){let t,o=e?e.trim():"",r=o.indexOf("\n");-1!==r&&(t=o.substring(r+1).trim().replace(/\n+(?:\s+\n+)?/g," | "),o=o.substring(0,r)),this.body=t,this.summary=o,this.displaySummary=this._graph.formatCommitMessageCallback(o),this.displayBody=t?this._graph.formatCommitMessageCallback(t):void 0}initializeRefGroups(){this._activeGraphRefGroup=void 0,this._activeGraphRef=void 0,this._refGroupsByName={},this._orderedRefGroups=[]}addRefToRefGroup(e){let t=e.name;this._refGroupsByName[t]||(this._refGroupsByName[t]=[]),this._refGroupsByName[t].push(e)}loadGraphRefGroupsData(){this.initializeRefGroups();let e=[],{heads:t,tags:o,remotes:s}=this.hasRefs?this:this.childRefs;for(let o of t){let t={...o,refType:r.z.HEAD};this.addRefToRefGroup(t),(0,i.a5)(t)?(this._activeGraphRefGroup=this._refGroupsByName[t.name],this._activeGraphRef=t,e.unshift(this._refGroupsByName[t.name])):e.push(this._refGroupsByName[t.name])}for(let t of s){let o={...t,fullName:t.owner?`${t.owner}/${t.name}`:t.name,refType:r.z.REMOTE},i=this._refGroupsByName[o.name];this.addRefToRefGroup(o),i||e.push(this._refGroupsByName[o.name])}for(let t of o){let o={...t,refType:r.z.TAG};this.addRefToRefGroup(o),e.push(this._refGroupsByName[o.name])}this._orderedRefGroups=e.sort((e,t)=>e===this._activeGraphRefGroup?-1:t===this._activeGraphRefGroup?1:n[e[0].refType]>n[t[0].refType]?-1:n[e[0].refType]<n[t[0].refType]?1:e.length>t.length?-1:e.length<t.length?1:e[0].name.localeCompare(t[0].name))}}},810:(e,t,o)=>{function r(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}}o.d(t,{T:()=>r})},852:(e,t,o)=>{o.d(t,{H:()=>r});let r={"CommitDiffSection-FileAdded":"added","CommitDiffSection-FileDeleted":"deleted","CommitDiffSection-FileModified":"modified","CommitDiffSection-FileRenamed":"renamed","CommitDiffSection-NFilesAdded":"{0} added","CommitDiffSection-NFilesDeleted":"{0} deleted","CommitDiffSection-NFilesModified":"{0} modified","CommitDiffSection-NFilesRenamed":"{0} renamed","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":"Columns settings","GraphHeader-Filter":"Filter","GraphHeader-HiddenRefs-btn":"Hidden Branches / Tags","OptionalGraphZone-CommitAuthor":"Author","OptionalGraphZone-CommitDateTime":"Date / Time","OptionalGraphZone-CommitSha":"Sha","IssueIcon-Tooltip":"{0}: {1}","PullRequestIcon-Tooltip":"#{0}: {1}\n Double-click to open pull request on {2}","Ref-Current":"Current Branch","Ref-Local":"Local Branch","Ref-Remote":"Remote Branch","Ref-Tag":"Tag","Ref-Worktree":"Worktree","RefZone-EnterBranchName":"enter branch name","RefZone-EnterTagName":"enter tag name","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","UpstreamIndicatorIcon-BehindAndAheadTooltip":"{0} commit(s) behind and {1} commit(s) ahead of {2}\n Double-click to pull changes","UpstreamIndicatorIcon-BehindTooltip":"{0} commit(s) behind {1}\n Double-click to pull changes","UpstreamIndicatorIcon-AheadTooltip":"{0} commit(s) ahead of {1}\n Double-click to push changes",ResizePanel:"Resize Panel",Stash:"Stash",Hide:"Hide",Show:"Show","WorkDirMessageInput-WIPPlaceholder":"WIP"}},899:()=>{},666:(e,t,o)=>{o.d(t,{E:()=>n,z:()=>r});let r={HEAD:"head",REMOTE:"remote",TAG:"tag",WORKTREE:"worktree"};var i,n=((i=n||{}).LEFT="LEFT",i.RIGHT="RIGHT",i)},285:()=>{},456:()=>{},310:()=>{},118:(e,t,o)=>{o.r(t),o.d(t,{CHANGES_BAR_MIN_WIDTH:()=>l.MT,CHANGES_BAR_RIGHT_MARGIN:()=>l.KA,CHANGES_ZONE_MIN_WIDTH:()=>l.n9,CHANGES_ZONE_SHOW_ICON_WIDTH:()=>l.oC,COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER:()=>l.CF,COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER:()=>l.n0,COMMIT_AUTHOR_ZONE_MIN_WIDTH:()=>l.z$,COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH:()=>l.gK,COMMIT_DATE_TIME_ZONE_MIN_WIDTH:()=>l.iX,COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH:()=>l.jp,COMMIT_MESSAGE_ZONE_MIN_WIDTH:()=>l.Hm,COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH:()=>l.E5,COMMIT_NODE_MIN_ALPHA:()=>l.Td,COMMIT_SHA_ZONE_MIN_WIDTH:()=>l.cD,COMMIT_SHA_ZONE_SHOW_ICON_WIDTH:()=>l.H6,COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN:()=>l.wF,COMMIT_ZONE_EDGE_ARC_PADDING:()=>l.Oe,COMMIT_ZONE_EDGE_ARC_RADIUS:()=>l.nf,COMMIT_ZONE_MARGIN_BOTTOM:()=>l.kj,COMMIT_ZONE_MARGIN_TOP:()=>l._b,COMMIT_ZONE_ROW_HEIGHT:()=>l.kU,COMMIT_ZONE_ROW_INNER_HEIGHT:()=>l.lH,COMMIT_ZONE_SHOW_ICON_WIDTH:()=>l.EB,CommitDateTimeSources:()=>r.N,DEFAULT_AVATAR_BACKGROUND_COLOR:()=>l.BP,DEFAULT_COMMIT_SHA_LENGTH:()=>l.wT,DEFAULT_CSS_VARIABLES:()=>g.Y,DEFAULT_TRANSLATIONS:()=>m.H,DEFAULT_WORKDIR_STATS:()=>l.pi,GRAPH_HEADER_ROW_HEIGHT:()=>l.q4,GRAPH_ROW_HEIGHT:()=>l.yB,GRAPH_ROW_INNER_HEIGHT:()=>l.$0,GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET:()=>l.By,GRAPH_ROW_PADDING:()=>l.ar,GRAPH_SCROLL_MARKER_LANES:()=>l.Yx,GraphColumnMode:()=>l.eB,GraphMarkerShape:()=>l.Sb,HEADER_ROW_HEIGHT:()=>l.bo,HEADER_ROW_MARGIN_BOTTOM:()=>l.Qb,INLINE_SUMMARY_MARGIN_LEFT:()=>l.yX,LeftPanelToGraphMarginGap:()=>l.xY,NUM_COLUMNS_SUPPORTED_PROP_NAME:()=>g.u,NamedKeys:()=>i.e,OPACITY_FACTOR_BY_THEME:()=>l.K3,REF_NODE_ICON_MARGIN:()=>l.io,REF_NODE_ICON_SPACING:()=>l.RJ,REF_NODE_ICON_WIDTH:()=>l.G3,REF_NODE_OUTER_SPACING:()=>l.lE,REF_ZONE_MARGIN_LEFT:()=>l.mE,REF_ZONE_MARGIN_RIGHT:()=>l.Zk,REF_ZONE_MAX_REFS_TO_RENDER:()=>l.gi,REF_ZONE_MIN_WIDTH:()=>l.di,REF_ZONE_SHOW_ICON_WIDTH:()=>l.KV,REF_ZONE_TEXT_HEIGHT:()=>l.F0,ResizableHandleCorrection:()=>l.WQ,SCROLL_TO_ALIGNMENT_AUTO:()=>l.CY,SCROLL_TO_ALIGNMENT_CENTER:()=>l.mP,TIMESTAMP_FORMAT_DATE_TIME:()=>l.qO,TINY_FILES_READOUT_FONT_SIZE:()=>l.Gu,TINY_FILES_READOUT_RIGHT_MARGIN:()=>l.Ql,TINY_ICON_RIGHT_MARGIN:()=>l.tl,TINY_ICON_SIZE:()=>l.ro,allMetadataTypes:()=>a.ej,changesZone:()=>l.Sq,commitAuthorZone:()=>l.fx,commitDateTimeZone:()=>l.$A,commitMessageZone:()=>l.d4,commitNodeType:()=>r.oB,commitShaZone:()=>l.AR,commitZone:()=>l.md,getHostingServiceName:()=>h.T,graphCommitDescDisplayModes:()=>l.FQ,graphMarkerMetadata:()=>l.wx,graphMarkerShapeMetadata:()=>l.j,graphZoneMetaData:()=>l.W,issueMetadataType:()=>a.fd,lookbackLimitByPeriod:()=>l.WC,mergeConflictNodeType:()=>r.l2,mergeNodeType:()=>r.t$,numGraphColumnsDefault:()=>l.Dl,pullRequestMetadataType:()=>a.ki,refIconsPositions:()=>c.E,refTypes:()=>c.z,refZone:()=>l.ui,stashNodeType:()=>r.OZ,timelineMsgRowRenderId:()=>l.OU,types:()=>v.types,unsupportedRebaseWarningNodeType:()=>r.gL,upstreamMetadataType:()=>a.RA,workDirType:()=>r.bY});var r=o(298),i=o(210),n=o(218),s={};for(let e in n)0>["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys"].indexOf(e)&&(s[e]=()=>n[e]);o.d(t,s);var l=o(214),a=o(406),h=o(810),c=o(666),d=o(285),s={};for(let e in d)0>["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","CHANGES_ZONE_SHOW_ICON_WIDTH","COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER","COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_SHA_ZONE_SHOW_ICON_WIDTH","COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_SHOW_ICON_WIDTH","DEFAULT_AVATAR_BACKGROUND_COLOR","DEFAULT_COMMIT_SHA_LENGTH","DEFAULT_WORKDIR_STATS","GRAPH_HEADER_ROW_HEIGHT","GRAPH_ROW_HEIGHT","GRAPH_ROW_INNER_HEIGHT","GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET","GRAPH_ROW_PADDING","GRAPH_SCROLL_MARKER_LANES","GraphColumnMode","GraphMarkerShape","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","REF_NODE_ICON_MARGIN","REF_NODE_ICON_SPACING","REF_NODE_ICON_WIDTH","REF_NODE_OUTER_SPACING","REF_ZONE_MARGIN_LEFT","REF_ZONE_MARGIN_RIGHT","REF_ZONE_MAX_REFS_TO_RENDER","REF_ZONE_MIN_WIDTH","REF_ZONE_SHOW_ICON_WIDTH","REF_ZONE_TEXT_HEIGHT","ResizableHandleCorrection","SCROLL_TO_ALIGNMENT_AUTO","SCROLL_TO_ALIGNMENT_CENTER","TIMESTAMP_FORMAT_DATE_TIME","TINY_FILES_READOUT_FONT_SIZE","TINY_FILES_READOUT_RIGHT_MARGIN","TINY_ICON_RIGHT_MARGIN","TINY_ICON_SIZE","changesZone","commitAuthorZone","commitDateTimeZone","commitMessageZone","commitShaZone","commitZone","graphCommitDescDisplayModes","graphMarkerMetadata","graphMarkerShapeMetadata","graphZoneMetaData","lookbackLimitByPeriod","numGraphColumnsDefault","refZone","timelineMsgRowRenderId","allMetadataTypes","issueMetadataType","pullRequestMetadataType","upstreamMetadataType","getHostingServiceName","refIconsPositions","refTypes"].indexOf(e)&&(s[e]=()=>d[e]);o.d(t,s);var u=o(310),s={};for(let e in u)0>["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","CHANGES_ZONE_SHOW_ICON_WIDTH","COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER","COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_SHA_ZONE_SHOW_ICON_WIDTH","COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_SHOW_ICON_WIDTH","DEFAULT_AVATAR_BACKGROUND_COLOR","DEFAULT_COMMIT_SHA_LENGTH","DEFAULT_WORKDIR_STATS","GRAPH_HEADER_ROW_HEIGHT","GRAPH_ROW_HEIGHT","GRAPH_ROW_INNER_HEIGHT","GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET","GRAPH_ROW_PADDING","GRAPH_SCROLL_MARKER_LANES","GraphColumnMode","GraphMarkerShape","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","REF_NODE_ICON_MARGIN","REF_NODE_ICON_SPACING","REF_NODE_ICON_WIDTH","REF_NODE_OUTER_SPACING","REF_ZONE_MARGIN_LEFT","REF_ZONE_MARGIN_RIGHT","REF_ZONE_MAX_REFS_TO_RENDER","REF_ZONE_MIN_WIDTH","REF_ZONE_SHOW_ICON_WIDTH","REF_ZONE_TEXT_HEIGHT","ResizableHandleCorrection","SCROLL_TO_ALIGNMENT_AUTO","SCROLL_TO_ALIGNMENT_CENTER","TIMESTAMP_FORMAT_DATE_TIME","TINY_FILES_READOUT_FONT_SIZE","TINY_FILES_READOUT_RIGHT_MARGIN","TINY_ICON_RIGHT_MARGIN","TINY_ICON_SIZE","changesZone","commitAuthorZone","commitDateTimeZone","commitMessageZone","commitShaZone","commitZone","graphCommitDescDisplayModes","graphMarkerMetadata","graphMarkerShapeMetadata","graphZoneMetaData","lookbackLimitByPeriod","numGraphColumnsDefault","refZone","timelineMsgRowRenderId","allMetadataTypes","issueMetadataType","pullRequestMetadataType","upstreamMetadataType","getHostingServiceName","refIconsPositions","refTypes"].indexOf(e)&&(s[e]=()=>u[e]);o.d(t,s);var p=o(456),s={};for(let e in p)0>["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","CHANGES_ZONE_SHOW_ICON_WIDTH","COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER","COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_SHA_ZONE_SHOW_ICON_WIDTH","COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_SHOW_ICON_WIDTH","DEFAULT_AVATAR_BACKGROUND_COLOR","DEFAULT_COMMIT_SHA_LENGTH","DEFAULT_WORKDIR_STATS","GRAPH_HEADER_ROW_HEIGHT","GRAPH_ROW_HEIGHT","GRAPH_ROW_INNER_HEIGHT","GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET","GRAPH_ROW_PADDING","GRAPH_SCROLL_MARKER_LANES","GraphColumnMode","GraphMarkerShape","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","REF_NODE_ICON_MARGIN","REF_NODE_ICON_SPACING","REF_NODE_ICON_WIDTH","REF_NODE_OUTER_SPACING","REF_ZONE_MARGIN_LEFT","REF_ZONE_MARGIN_RIGHT","REF_ZONE_MAX_REFS_TO_RENDER","REF_ZONE_MIN_WIDTH","REF_ZONE_SHOW_ICON_WIDTH","REF_ZONE_TEXT_HEIGHT","ResizableHandleCorrection","SCROLL_TO_ALIGNMENT_AUTO","SCROLL_TO_ALIGNMENT_CENTER","TIMESTAMP_FORMAT_DATE_TIME","TINY_FILES_READOUT_FONT_SIZE","TINY_FILES_READOUT_RIGHT_MARGIN","TINY_ICON_RIGHT_MARGIN","TINY_ICON_SIZE","changesZone","commitAuthorZone","commitDateTimeZone","commitMessageZone","commitShaZone","commitZone","graphCommitDescDisplayModes","graphMarkerMetadata","graphMarkerShapeMetadata","graphZoneMetaData","lookbackLimitByPeriod","numGraphColumnsDefault","refZone","timelineMsgRowRenderId","allMetadataTypes","issueMetadataType","pullRequestMetadataType","upstreamMetadataType","getHostingServiceName","refIconsPositions","refTypes"].indexOf(e)&&(s[e]=()=>p[e]);o.d(t,s);var f=o(899),s={};for(let e in f)0>["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","CHANGES_ZONE_SHOW_ICON_WIDTH","COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER","COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_SHA_ZONE_SHOW_ICON_WIDTH","COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_SHOW_ICON_WIDTH","DEFAULT_AVATAR_BACKGROUND_COLOR","DEFAULT_COMMIT_SHA_LENGTH","DEFAULT_WORKDIR_STATS","GRAPH_HEADER_ROW_HEIGHT","GRAPH_ROW_HEIGHT","GRAPH_ROW_INNER_HEIGHT","GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET","GRAPH_ROW_PADDING","GRAPH_SCROLL_MARKER_LANES","GraphColumnMode","GraphMarkerShape","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","REF_NODE_ICON_MARGIN","REF_NODE_ICON_SPACING","REF_NODE_ICON_WIDTH","REF_NODE_OUTER_SPACING","REF_ZONE_MARGIN_LEFT","REF_ZONE_MARGIN_RIGHT","REF_ZONE_MAX_REFS_TO_RENDER","REF_ZONE_MIN_WIDTH","REF_ZONE_SHOW_ICON_WIDTH","REF_ZONE_TEXT_HEIGHT","ResizableHandleCorrection","SCROLL_TO_ALIGNMENT_AUTO","SCROLL_TO_ALIGNMENT_CENTER","TIMESTAMP_FORMAT_DATE_TIME","TINY_FILES_READOUT_FONT_SIZE","TINY_FILES_READOUT_RIGHT_MARGIN","TINY_ICON_RIGHT_MARGIN","TINY_ICON_SIZE","changesZone","commitAuthorZone","commitDateTimeZone","commitMessageZone","commitShaZone","commitZone","graphCommitDescDisplayModes","graphMarkerMetadata","graphMarkerShapeMetadata","graphZoneMetaData","lookbackLimitByPeriod","numGraphColumnsDefault","refZone","timelineMsgRowRenderId","allMetadataTypes","issueMetadataType","pullRequestMetadataType","upstreamMetadataType","getHostingServiceName","refIconsPositions","refTypes"].indexOf(e)&&(s[e]=()=>f[e]);o.d(t,s);var m=o(852),g=o(522),_=o(366),s={};for(let e in _)0>["default","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","CHANGES_ZONE_SHOW_ICON_WIDTH","COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER","COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_SHA_ZONE_SHOW_ICON_WIDTH","COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_SHOW_ICON_WIDTH","DEFAULT_AVATAR_BACKGROUND_COLOR","DEFAULT_COMMIT_SHA_LENGTH","DEFAULT_WORKDIR_STATS","GRAPH_HEADER_ROW_HEIGHT","GRAPH_ROW_HEIGHT","GRAPH_ROW_INNER_HEIGHT","GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET","GRAPH_ROW_PADDING","GRAPH_SCROLL_MARKER_LANES","GraphColumnMode","GraphMarkerShape","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","REF_NODE_ICON_MARGIN","REF_NODE_ICON_SPACING","REF_NODE_ICON_WIDTH","REF_NODE_OUTER_SPACING","REF_ZONE_MARGIN_LEFT","REF_ZONE_MARGIN_RIGHT","REF_ZONE_MAX_REFS_TO_RENDER","REF_ZONE_MIN_WIDTH","REF_ZONE_SHOW_ICON_WIDTH","REF_ZONE_TEXT_HEIGHT","ResizableHandleCorrection","SCROLL_TO_ALIGNMENT_AUTO","SCROLL_TO_ALIGNMENT_CENTER","TIMESTAMP_FORMAT_DATE_TIME","TINY_FILES_READOUT_FONT_SIZE","TINY_FILES_READOUT_RIGHT_MARGIN","TINY_ICON_RIGHT_MARGIN","TINY_ICON_SIZE","changesZone","commitAuthorZone","commitDateTimeZone","commitMessageZone","commitShaZone","commitZone","graphCommitDescDisplayModes","graphMarkerMetadata","graphMarkerShapeMetadata","graphZoneMetaData","lookbackLimitByPeriod","numGraphColumnsDefault","refZone","timelineMsgRowRenderId","allMetadataTypes","issueMetadataType","pullRequestMetadataType","upstreamMetadataType","getHostingServiceName","refIconsPositions","refTypes","DEFAULT_TRANSLATIONS","DEFAULT_CSS_VARIABLES","NUM_COLUMNS_SUPPORTED_PROP_NAME"].indexOf(e)&&(s[e]=()=>_[e]);o.d(t,s);var v=o(350)},126:(e,t,o)=>{function r(e,t,o){return(e=e<=o?e:o)>=t?e:t}o.d(t,{q:()=>r})},311:e=>{e.exports=function(e,t,o,r,i,n,s,l){if(!e){var a;if(void 0===t)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var h=[o,r,i,n,s,l],c=0;(a=Error(t.replace(/%s/g,function(){return h[c++]}))).name="Invariant Violation"}throw a.framesToPop=1,a}}},694:(e,t,o)=>{var r=o(925);function i(){}function n(){}n.resetWarningCache=i,e.exports=function(){function e(e,t,o,i,n,s){if(s!==r){var l=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:n,resetWarningCache:i};return o.PropTypes=o,o}},556:(e,t,o)=>{e.exports=o(694)()},925:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},547:(e,t,o)=>{var r=o(427),i=o(396);e.exports=function(){return r.apply(this,i(arguments)).on("cloned",function(t){e(t),i(t.getElementsByTagName("*")).forEach(e)});function e(e){e.removeAttribute("data-reactid")}}},698:(e,t)=>{var o=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(e,t,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),"key"in t)for(var n in r={},t)"key"!==n&&(r[n]=t[n]);else r=t;return{$$typeof:o,type:e,key:i,ref:void 0!==(t=r.ref)?t:null,props:r}}t.Fragment=r,t.jsx=i,t.jsxs=i},848:(e,t,o)=>{e.exports=o(698)},394:e=>{var t;t="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){setTimeout(e,0)},e.exports=t},771:e=>{e.exports=function(){}},15:e=>{e.exports=require("react")},942:(e,t)=>{var o;!function(){var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=n(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var o in e)r.call(e,o)&&e[o]&&(t=n(t,o));return t}(o)))}return e}function n(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0!==(o=(function(){return i}).apply(t,[]))&&(e.exports=o)}()}},t={};function o(r){var i=t[r];if(void 0!==i)return i.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.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 r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||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 r={};(()=>{o.r(r),o.d(r,{DndComponent:()=>e.A,ScrollbarContainer:()=>t.A,default:()=>l});var e=o(280),t=o(468),i=o(797),n=o(118),s={};for(let e in n)0>["default","DndComponent","ScrollbarContainer"].indexOf(e)&&(s[e]=()=>n[e]);o.d(r,s);var l=i.A})(),module.exports=r})();
1
+ import e,{findDOMNode as t,flushSync as o}from"react-dom";import*as r from"react";var i={201(e){e.exports=function(e,t){return Array.prototype.slice.call(e,t)}},842(e,t,o){var r=o(292);e.exports=function(e,t,o){e&&r(function(){e.apply(o||null,t||[])})}},43(e,t,o){var r=o(201),i=o(842);e.exports=function(e,t){var o=t||{},n={};return void 0===e&&(e={}),e.on=function(t,o){return n[t]?n[t].push(o):n[t]=[o],e},e.once=function(t,o){return o._once=!0,e.on(t,o),e},e.off=function(t,o){var r=arguments.length;if(1===r)delete n[t];else if(0===r)n={};else{var i=n[t];if(!i)return e;i.splice(i.indexOf(o),1)}return e},e.emit=function(){var t=r(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var s=(n[t]||[]).slice(0);return function(){var n=r(arguments),a=this||e;if("error"===t&&!1!==o.throws&&!s.length)throw 1===n.length?n[0]:n;return s.forEach(function(r){o.async?i(r,n,a):r.apply(a,n),r._once&&e.off(t,r)}),e}},e}},894(e,t,o){var r=o(326),i=o(386),n=o.g.document,s=function(e,t,o,r){return e.addEventListener(t,o,r)},a=function(e,t,o,r){return e.removeEventListener(t,o,r)},l=[];function h(e,t,o){var r=function(e,t,o){var r,i;for(r=0;r<l.length;r++)if((i=l[r]).element===e&&i.type===t&&i.fn===o)return r}(e,t,o);if(r){var i=l[r].wrapper;return l.splice(r,1),i}}o.g.addEventListener||(s=function(e,t,r){return e.attachEvent("on"+t,function(e,t,r){var i=h(e,t,r)||function(t){var i=t||o.g.event;i.target=i.target||i.srcElement,i.preventDefault=i.preventDefault||function(){i.returnValue=!1},i.stopPropagation=i.stopPropagation||function(){i.cancelBubble=!0},i.which=i.which||i.keyCode,r.call(e,i)};return l.push({wrapper:i,element:e,type:t,fn:r}),i}(e,t,r))},a=function(e,t,o){var r=h(e,t,o);if(r)return e.detachEvent("on"+t,r)}),e.exports={add:s,remove:a,fabricate:function(e,t,o){var s,a=-1===i.indexOf(t)?new r(t,{detail:o}):(n.createEvent?(s=n.createEvent("Event")).initEvent(t,!0,!0):n.createEventObject&&(s=n.createEventObject()),s);e.dispatchEvent?e.dispatchEvent(a):e.fireEvent("on"+t,a)}}},386(e,t,o){var r=[],i="",n=/^on/;for(i in o.g)n.test(i)&&r.push(i.slice(2));e.exports=r},326(e,t,o){var r=o.g.CustomEvent;e.exports=!function(){try{var e=new r("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch{}return!1}()?"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=!!t.bubbles,o.cancelable=!!t.cancelable,o.detail=t.detail):(o.bubbles=!1,o.cancelable=!1,o.detail=void 0),o}:r},579(e){var t={};function o(e){var o=t[e];return o?o.lastIndex=0:t[e]=o=RegExp("(?:^|\\s)"+e+"(?:\\s|$)","g"),o}e.exports={add:function(e,t){var r=e.className;r.length?o(t).test(r)||(e.className+=" "+t):e.className=t},rm:function(e,t){e.className=e.className.replace(o(t)," ").trim()}}},81(e,t,o){var r=o(43),i=o(894),n=o(579),s=document,a=s.documentElement;function l(e,t,r,n){o.g.navigator.pointerEnabled?i[t](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[r],n):o.g.navigator.msPointerEnabled?i[t](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[r],n):(i[t](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[r],n),i[t](e,r,n))}function h(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;if(void 0!==t)return 1&t?1:2&t?3:4&t?2:0}function c(e,t){return void 0!==o.g[t]?o.g[t]:a.clientHeight?a[e]:s.body[e]}function d(e,t,o){var r,i=e||{},n=i.className;return i.className+=" gu-hide",r=s.elementFromPoint(t,o),i.className=n,r}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 _(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||function e(t){return!!t&&"false"!==t.contentEditable&&("true"===t.contentEditable||e(g(t)))}(e)}function v(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=t.targetTouches&&t.targetTouches.length?t.targetTouches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,r={pageX:"clientX",pageY:"clientY"};return e in r&&!(e in o)&&r[e]in o&&(e=r[e]),o[e]}e.exports=function(e,t){var o,R,y,T,C,w,E,b,I,M,O,N,x=arguments.length;1===x&&!1===Array.isArray(e)&&(t=e,e=[]);var A=null,D=t||{};void 0===D.moves&&(D.moves=p),void 0===D.accepts&&(D.accepts=p),void 0===D.invalid&&(D.invalid=function(){return!1}),void 0===D.containers&&(D.containers=e||[]),void 0===D.isContainer&&(D.isContainer=u),void 0===D.copy&&(D.copy=!1),void 0===D.copySortSource&&(D.copySortSource=!1),void 0===D.revertOnSpill&&(D.revertOnSpill=!1),void 0===D.removeOnSpill&&(D.removeOnSpill=!1),void 0===D.direction&&(D.direction="vertical"),void 0===D.ignoreInputTextSelection&&(D.ignoreInputTextSelection=!0),void 0===D.mirrorContainer&&(D.mirrorContainer=s.body);var H=r({containers:D.containers,start:function(e){var t=B(e);t&&Z(t)},end:U,cancel:K,remove:Y,destroy:function(){k(!0),V({})},canMove:function(e){return!!B(e)},dragging:!1});return!0===D.removeOnSpill&&H.on("over",function(e){n.rm(e,"gu-hide")}).on("out",function(e){H.dragging&&n.add(e,"gu-hide")}),k(),H;function G(e){return -1!==H.containers.indexOf(e)||D.isContainer(e)}function k(e){var t=e?"remove":"add";l(a,t,"mousedown",F),l(a,t,"mouseup",V)}function W(e){l(a,e?"remove":"add","mousemove",P)}function z(e){var t=e?"remove":"add";i[t](a,"selectstart",L),i[t](a,"click",L)}function L(e){N&&e.preventDefault()}function F(e){if(w=e.clientX,E=e.clientY,1===h(e)&&!e.metaKey&&!e.ctrlKey){var t=e.target,o=B(t);o&&(N=o,W(),"mousedown"===e.type&&(_(t)?t.focus():e.preventDefault()))}}function P(e){if(N){if(0===h(e))return void V({});if(void 0===e.clientX||e.clientX!==w||void 0===e.clientY||e.clientY!==E){if(D.ignoreInputTextSelection){var t,r=S("clientX",e),i=S("clientY",e);if(_(s.elementFromPoint(r,i)))return}var d=N;W(!0),z(),U(),Z(d);var u={left:(t=y.getBoundingClientRect()).left+c("scrollLeft","pageXOffset"),top:t.top+c("scrollTop","pageYOffset")};T=S("pageX",e)-u.left,C=S("pageY",e)-u.top,n.add(M||y,"gu-transit"),function(){if(!o){var e=y.getBoundingClientRect();(o=y.cloneNode(!0)).style.width=f(e)+"px",o.style.height=m(e)+"px",n.rm(o,"gu-transit"),n.add(o,"gu-mirror"),D.mirrorContainer.appendChild(o),l(a,"add","mousemove",J),n.add(D.mirrorContainer,"gu-unselectable"),H.emit("cloned",o,y,"mirror")}}(),J(e)}}}function B(e){if(!(H.dragging&&o||G(e))){for(var t=e;g(e)&&!1===G(g(e));)if(D.invalid(e,t)||!(e=g(e)))return;var r=g(e);if(!(!r||D.invalid(e,t))&&D.moves(e,r,t,v(e)))return{item:e,source:r}}}function Z(e){var t,o;t=e.item,o=e.source,("boolean"==typeof D.copy?D.copy:D.copy(t,o))&&(M=e.item.cloneNode(!0),H.emit("cloned",M,e.item,"copy")),R=e.source,y=e.item,b=I=v(e.item),H.dragging=!0,H.emit("drag",y,R)}function U(){if(H.dragging){var e=M||y;$(e,g(e))}}function j(){N=!1,W(!0),z(!0)}function V(e){if(j(),H.dragging){var t=M||y,r=S("clientX",e),i=S("clientY",e),n=Q(d(o,r,i),r,i);n&&(M&&D.copySortSource||!M||n!==R)?$(t,n):D.removeOnSpill?Y():K()}}function $(e,t){var o=g(e);M&&D.copySortSource&&t===R&&o.removeChild(y),X(t)?H.emit("cancel",e,R,R):H.emit("drop",e,t,R,I),q()}function Y(){if(H.dragging){var e=M||y,t=g(e);t&&t.removeChild(e),H.emit(M?"cancel":"remove",e,t,R),q()}}function K(e){if(H.dragging){var t=arguments.length>0?e:D.revertOnSpill,o=M||y,r=g(o),i=X(r);!1===i&&t&&(M?r&&r.removeChild(M):R.insertBefore(o,b)),i||t?H.emit("cancel",o,R,R):H.emit("drop",o,r,R,I),q()}}function q(){var e=M||y;j(),o&&(n.rm(D.mirrorContainer,"gu-unselectable"),l(a,"remove","mousemove",J),g(o).removeChild(o),o=null),e&&n.rm(e,"gu-transit"),O&&clearTimeout(O),H.dragging=!1,A&&H.emit("out",e,A,R),H.emit("dragend",e),R=y=M=b=I=O=A=null}function X(e,t){var r;return r=void 0!==t?t:o?I:v(M||y),e===R&&r===b}function Q(e,t,o){for(var r=e;r&&!function(){if(!1===G(r))return!1;var i=ee(r,e),n=et(r,i,t,o);return!!X(r,n)||D.accepts(y,r,R,n)}();)r=g(r);return r}function J(e){if(o){e.preventDefault();var t,r=S("clientX",e),i=S("clientY",e),n=r-T,s=i-C;o.style.left=n+"px",o.style.top=s+"px";var a=M||y,l=d(o,r,i),h=Q(l,r,i),c=null!==h&&h!==A;(c||null===h)&&(A&&f("out"),A=h,c&&f("over"));var u=g(a);if(h===R&&M&&!D.copySortSource){u&&u.removeChild(a);return}var p=ee(h,l);if(null!==p)t=et(h,p,r,i);else if(!0!==D.revertOnSpill||M){M&&u&&u.removeChild(a);return}else t=b,h=R;(null===t&&c||t!==a&&t!==v(a))&&(I=t,h.insertBefore(a,t),H.emit("shadow",a,h,R))}function f(e){H.emit(e,a,A,R)}}function ee(e,t){for(var o=t;o!==e&&g(o)!==e;)o=g(o);return o===a?null:o}function et(e,t,o,r){var i,n="horizontal"===D.direction;return t!==e?(i=t.getBoundingClientRect(),n?o>i.left+f(i)/2?v(t):t:r>i.top+m(i)/2?v(t):t):function(){var t,i,s,a=e.children.length;for(t=0;t<a;t++)if(s=(i=e.children[t]).getBoundingClientRect(),n&&s.left+s.width/2>o||!n&&s.top+s.height/2>r)return i;return null}()}}},597(e){e.exports=function(e,t,o,r,i,n,s,a){if(!e){var l;if(void 0===t)l=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var h=[o,r,i,n,s,a],c=0;(l=Error(t.replace(/%s/g,function(){return h[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},186(e,t,o){var r=o(985);function i(){}function n(){}n.resetWarningCache=i,e.exports=function(){function e(e,t,o,i,n,s){if(s!==r){var a=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 a.name="Invariant Violation",a}}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:n,resetWarningCache:i};return o.PropTypes=o,o}},736(e,t,o){e.exports=o(186)()},985(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},366(e,t,o){o.d(t,{A:()=>f});var r=o(500),i=o.n(r),n=o(641);class s{name;notify;constructor(e,t){this.name=e,this.notify=t}}class a{observer;unsubscribeCallback;constructor(e,t){this.observer=e,this.unsubscribeCallback=t}unsubscribe(){this.unsubscribeCallback(this.observer)}}let l=new class{observers;constructor(){this.observers=new Set}broadcast(e){this.observers&&this.observers.forEach(t=>{e.name===t.name&&t.notify(e)})}subscribe(e,t){let o=new s(e,t);return this.observers.add(o),new a(o,e=>{this.observers.delete(e)})}unsubscribe(e){e&&e.unsubscribe()}},h="ON_DRAG_START",c="ON_DRAG_END",d=null,u=new Map;class p extends n.Component{dndComponentRef=n.createRef();mounted=!1;onDragStartSubscription;onDragEndSubscription;constructor(e){super(e),this.onDragStartSubscription=l.subscribe(h,e=>{let t=null!==e.content&&u.get(e.content);this.setState({isDroppable:this.canDrop(void 0,t,this.props.dndData)})}),this.onDragEndSubscription=l.subscribe(c,()=>{this.mounted&&this.setState({isDroppable:!1})}),this.state={isDragging:!1,isDroppable:!1,isOver:!1}}componentDidMount(){if(this.mounted=!0,null!==d){let e=u.get(d);this.setState({isDroppable:this.canDrop(void 0,e,this.props.dndData)})}}componentWillUnmount(){this.mounted=!1,this.onDragStartSubscription.unsubscribe(),this.onDragEndSubscription.unsubscribe()}canDrop(e,t,o){let{canDrop:r}=this.props;return(r&&("boolean"==typeof r||r(e,t,o)))??!1}addDragEndEventListenerOnce(){let e=this.dndComponentRef?.current;e&&(e.removeEventListener("dragend",this.onDragEnd),e.addEventListener("dragend",this.onDragEnd,{once:!0}))}isDraggable(){let{canDrag:e,dndData:t}=this.props;return!!e&&("boolean"==typeof e||e(t))}onDragEnter(e){if(e.stopPropagation(),this.setState({isOver:!0}),this.props.onDragEnter){let t=u.get(d);this.props.onDragEnter(e,t,this.props.dndData)}}onDragLeave(e){e.stopPropagation();let t=u.get(d);this.props.onDragLeave&&this.props.onDragLeave(e,t,this.props.dndData),this.setState({isDroppable:this.canDrop(void 0,t,this.props.dndData),isOver:!1})}onDrag(e){e.stopPropagation()}onDragOver(e){e.stopPropagation();let t=u.get(d);this.canDrop(e,t,this.props.dndData)&&(e.preventDefault(),this.setState({isOver:!0}))}onDragStart(e){e.stopPropagation();let{dndData:t,dndId:o,onBeginDrag:r}=this.props;d=o,u.set(d,t),this.addDragEndEventListenerOnce(),l.broadcast({name:h,content:d}),r&&r(e,t),this.setState({isDragging:!0})}onDragEnd=e=>{e.stopPropagation();let{dndData:t,onEndDrag:o}=this.props;o&&o(e,u.get(d),t),l.broadcast({name:c,content:d}),u.delete(d),d=null,this.mounted&&this.setState({isDragging:!1})};onDrop(e){e.stopPropagation();let{dndData:t,onDrop:o}=this.props;o&&(o(e,u.get(d),t),this.setState({isOver:!1}))}cloneChildrenWithShallowMergedProps(e,t){if(e)return n.Children.map(e,e=>n.isValidElement(e)?n.cloneElement(e,t):e)}render(){let{children:e,className:t,forwardDndPropsToChildren:o,style:r}=this.props,{isDragging:s,isDroppable:a,isOver:l}=this.state,h=this.isDraggable(),c=i()("dnd-component",t,{draggable:h,dragging:s,droppable:a,hovering:l});return n.createElement("div",{className:c,draggable:h,onDrag:e=>this.onDrag(e),onDragEnter:e=>this.onDragEnter(e),onDragLeave:e=>this.onDragLeave(e),onDragOver:e=>this.onDragOver(e),onDragStart:e=>this.onDragStart(e),onDrop:e=>this.onDrop(e),ref:this.dndComponentRef,style:r},o?this.cloneChildrenWithShallowMergedProps(e,{isDraggable:h,isDragging:s,isDroppable:a,isOver:l}):e)}}var f=p},883(r,i,n){let s;n.d(i,{A:()=>se});var a,l,h,c,d,u,p,f,m,g,_,v,S,R,y,T,C,w,E,b,I,M,O,N=n(500),x=n.n(N),A=n(641),D=((a=D||{})[a.Hash=35]="Hash",a[a.Slash=47]="Slash",a[a.Digit0=48]="Digit0",a[a.Digit1=49]="Digit1",a[a.Digit2=50]="Digit2",a[a.Digit3=51]="Digit3",a[a.Digit4=52]="Digit4",a[a.Digit5=53]="Digit5",a[a.Digit6=54]="Digit6",a[a.Digit7=55]="Digit7",a[a.Digit8=56]="Digit8",a[a.Digit9=57]="Digit9",a[a.Backslash=92]="Backslash",a[a.A=65]="A",a[a.B=66]="B",a[a.C=67]="C",a[a.D=68]="D",a[a.E=69]="E",a[a.F=70]="F",a[a.Z=90]="Z",a[a.a=97]="a",a[a.b=98]="b",a[a.c=99]="c",a[a.d=100]="d",a[a.e=101]="e",a[a.f=102]="f",a[a.z=122]="z",a);function H(e){switch(e){case 48:break;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 G(e,t,o){return(o<0&&(o+=1),o>1&&(o-=1),o<1/6)?e+(t-e)*6*o:o<.5?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function k(e){let t,o,r,i=e.h/360,{s:n,l:s,a}=e;if(0===n)t=o=r=s;else{let e=s<.5?s*(1+n):s+n-s*n,a=2*s-e;t=G(a,e,i+1/3),o=G(a,e,i),r=G(a,e,i-1/3)}return{type:"rgba",r:Math.round(255*t),g:Math.round(255*o),b:Math.round(255*r),a}}let W=/^((?:rgb|hsl)a?)\((-?\d+%?)[,\s]+(-?\d+%?)[,\s]+(-?\d+%?)[,\s]*(-?[\d.]+%?)?\)$/i;function z(e){let t;if(0===(e=e.trim()).length)return null;if(35===e.charCodeAt(0))return function(e){let t=(e=e.trim()).length;if(0===t||35!==e.charCodeAt(0))return null;if(7===t){let t=16*H(e.charCodeAt(1))+H(e.charCodeAt(2));return{type:"rgba",r:t,g:16*H(e.charCodeAt(3))+H(e.charCodeAt(4)),b:16*H(e.charCodeAt(5))+H(e.charCodeAt(6)),a:1}}if(9===t){let t=16*H(e.charCodeAt(1))+H(e.charCodeAt(2)),o=16*H(e.charCodeAt(3))+H(e.charCodeAt(4));return{type:"rgba",r:t,g:o,b:16*H(e.charCodeAt(5))+H(e.charCodeAt(6)),a:(16*H(e.charCodeAt(7))+H(e.charCodeAt(8)))/255}}if(4===t){let t=H(e.charCodeAt(1)),o=H(e.charCodeAt(2)),r=H(e.charCodeAt(3));return{type:"rgba",r:16*t+t,g:16*o+o,b:16*r+r,a:1}}if(5===t){let t=H(e.charCodeAt(1)),o=H(e.charCodeAt(2)),r=H(e.charCodeAt(3)),i=H(e.charCodeAt(4));return{type:"rgba",r:16*t+t,g:16*o+o,b:16*r+r,a:(16*i+i)/255}}return null}(e);let o=W.exec(e);if(null==o)return null;let r=o[1];switch(r){case"rgb":case"hsl":t=[parseInt(o[2],10),parseInt(o[3],10),parseInt(o[4],10),1];break;case"rgba":case"hsla":t=[parseInt(o[2],10),parseInt(o[3],10),parseInt(o[4],10),parseFloat(o[5])];break;default:return null}return"hsl"===r||"hsla"===r?k({h:t[0],s:t[1],l:t[2],a:t[3]}):{type:"rgba",r:t[0],g:t[1],b:t[2],a:t[3]}}var L=n(823),F=n(555),P=n(435);let B=/(?<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,Z=/(?<dateStyle>full|long|medium|short)(?:\+(?<timeStyle>full|long|medium|short))?/,U=new Map,j=["th","st","nd","rd"];var V=n(7);let $=e=>e!==L.oB&&e!==L.t$,Y=/^.*(:?\n){0,2}/m;function K(e,t=`
2
+ `){return e.replace(`
3
+ `===t?Y:RegExp(`^.*(:?${t}){0,2}`,"m"),"")}let q=/^co-authored-by:\s*([^\s<>]+(?:\s+[^\s<>]+)*)\s*<([^<>]+)>/gim;function X(e){let t=[];for(let o=q.exec(e);null!==o;o=q.exec(e)){let[,e,r]=o;t.push({name:e,email:r})}return t}let Q={};function J(e,t,o,r){let i=`${e}${r?"_compact":""}`,n=Q[e];return n||(n=o+e*t+t/2,Q[i]=n),n}let ee={d:"d",fill:"fill",filter:"filter","shape-rendering":"shapeRendering","stroke-linejoin":"strokeLinejoin","stroke-width":"strokeWidth","stroke-dasharray":"strokeDasharray",stroke:"stroke",x1:"x1",x2:"x2",y1:"y1",y2:"y2"};function et(e,t){let o="";for(let[e,r]of Object.entries(ee)){let i=t[r];i&&(o+=` ${e}="${i}"`)}return`<${e}${o} />`}function eo(e){return et("line",e)}function er(e,t,o,r){return{fill:"none",shapeRendering:"auto",strokeLinejoin:"round",strokeWidth:o,strokeDasharray:"synthetic-edge"===e?r?4:6:$(e)?r?1:2:0,stroke:t}}function ei(e,t,o,r){return`${e}_${t}_${o||"+"}${r?"_compact":""}`}function en(e,t,o){return`${e}_${t||"+"}${o?"_compact":""}`}var es=n(739),ea=n(895),el=n(695);function eh(e,t=!1){let o=+!!t;for(;e[o];)o+=1;return e[o]=!0,o}var ec=n(982),ed=n(456);function eu(e){return e.type===L.bY&&e.sha!==L.bY}let ep=new Set([L.bY,L.l2,L.gL]);function ef(e,t,o){let r=[e];for(;r.length>0;){let e=r.pop();if(o.has(e))continue;o.add(e);let i=t.get(e);if(null!=i)for(let e of i)o.has(e)||r.push(e)}}let em=new WeakMap;var eg=n(553),e_=n(931),ev=n(603);let eS={0:1,90:0,180:-1,270:0},eR={0:0,90:1,180:0,270:-1},ey=V.nf-V.Oe,eT=` A ${ey} ${ey} 0 0 0 `;function eC(e,t,o){let r=eS[o],i=eR[o];return{x:e-V.nf*r,xOffset:-(r*V.Oe),y:t+V.nf*i,yOffset:i*V.Oe}}let ew={};var eE=function(e,t,o,r,i,n,s,a){let l=er(r,e,s,a);return l.d=function(e,t,o,r){let i=`${e}_${t}_${o}_${r}`,n=ew[i];if(n)return n;let s=eC(e,t,r),a=eC(e,t,o);return n=`M ${s.x} ${s.y}${a.xOffset?` H ${s.x+a.xOffset}`:` V ${s.y+a.yOffset}`}${eT}${a.x+s.xOffset} ${a.y+s.yOffset}${s.xOffset?` H ${a.x}`:` V ${a.y}`}`,ew[i]=n,n}(i,n,o,t),et("path",l)};let eb={},eI={},eM={},eO={};function eN(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function ex(e){return(ex="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})(e)}function eA(e){var t=function(e,t){if("object"!=ex(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,t||"default");if("object"!=ex(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ex(t)?t:t+""}function eD(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eA(r.key),r)}}function eH(e,t,o){return t&&eD(e.prototype,t),o&&eD(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function eG(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ek(e,t){if(t&&("object"==ex(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return eG(e)}function eW(e){return(eW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ez(e,t){return(ez=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function eL(e,t){if("function"!=typeof t&&null!==t)throw 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&&ez(e,t)}function eF(e,t,o){return(t=eA(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function eP(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function eB(e){this.setState((function(t){var o=this.constructor.getDerivedStateFromProps(e,t);return null!=o?o:null}).bind(this))}function eZ(e,t){try{var o=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(o,r)}finally{this.props=o,this.state=r}}function eU(e){var t=e.prototype;if(!t||!t.isReactComponent)throw Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var o=null,r=null,i=null;if("function"==typeof t.componentWillMount?o="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(o="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?i="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==o||null!==r||null!==i)throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
4
+
5
+ `+(e.displayName||e.name)+" uses "+("function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()")+" but also contains the following legacy lifecycles:"+(null!==o?`
6
+ `+o:"")+(null!==r?`
7
+ `+r:"")+(null!==i?`
8
+ `+i:"")+`
9
+
10
+ The above lifecycles should be removed. Learn more about this warning here:
11
+ https://fb.me/react-async-component-lifecycle-hooks`);if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=eP,t.componentWillReceiveProps=eB),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=eZ;var n=t.componentDidUpdate;t.componentDidUpdate=function(e,t,o){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:o;n.call(this,e,t,r)}}return e}function ej(){return(ej=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(null,arguments)}eP.__suppressDeprecationWarning=!0,eB.__suppressDeprecationWarning=!0,eZ.__suppressDeprecationWarning=!0;let eV=function(){for(var e,t,o=0,r="";o<arguments.length;)(e=arguments[o++])&&(t=function e(t){var o,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t))for(o=0;o<t.length;o++)t[o]&&(r=e(t[o]))&&(i&&(i+=" "),i+=r);else for(o in t)t[o]&&(i&&(i+=" "),i+=o);return i}(e))&&(r&&(r+=" "),r+=t);return r};function e$(e){var t=e.cellCount,o=e.cellSize,r=e.computeMetadataCallback,i=e.computeMetadataCallbackProps,n=e.nextCellsCount,s=e.nextCellSize,a=e.nextScrollToIndex,l=e.scrollToIndex,h=e.updateScrollOffsetForScrollToIndex;(t!==n||("number"==typeof o||"number"==typeof s)&&o!==s)&&(r(i),l>=0&&l===a&&h())}function eY(e,t){if(null==e)return{};var o={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;o[r]=e[r]}return o}function eK(e,t){if(null==e)return{};var o,r,i=eY(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&({}).propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}var eq=function(){function e(t){var o=t.cellCount,r=t.cellSizeGetter,i=t.estimatedCellSize;eN(this,e),eF(this,"_cellSizeAndPositionData",{}),eF(this,"_lastMeasuredIndex",-1),eF(this,"_lastBatchedIndex",-1),eF(this,"_cellCount",void 0),eF(this,"_cellSizeGetter",void 0),eF(this,"_estimatedCellSize",void 0),this._cellSizeGetter=r,this._cellCount=o,this._estimatedCellSize=i}return eH(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,o=e.estimatedCellSize,r=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=o,this._cellSizeGetter=r}},{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,r=this._lastMeasuredIndex+1;r<=e;r++){var i=this._cellSizeGetter({index:r});if(void 0===i||isNaN(i))throw Error("Invalid size returned for cell ".concat(r," of value ").concat(i));null===i?(this._cellSizeAndPositionData[r]={offset:o,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[r]={offset:o,size:i},o+=i,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,o=e.align,r=e.containerSize,i=e.currentOffset,n=e.targetIndex;if(r<=0)return 0;var s=this.getSizeAndPositionOfCell(n),a=s.offset,l=a-r+s.size;switch(void 0===o?"auto":o){case"start":t=a;break;case"end":t=l;break;case"center":t=a-(r-s.size)/2;break;default:t=Math.max(l,Math.min(a,i))}return Math.max(0,Math.min(this.getTotalSize()-r,t))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,o=e.offset;if(0===this.getTotalSize())return{};var r=o+t,i=this._findNearestCell(o),n=this.getSizeAndPositionOfCell(i);o=n.offset+n.size;for(var s=i;o<r&&s<this._cellCount-1;)s++,o+=this.getSizeAndPositionOfCell(s).size;return{start:i,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 r=t+Math.floor((e-t)/2),i=this.getSizeAndPositionOfCell(r).offset;if(i===o)return r;i<o?t=r+1:i>o&&(e=r-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}(),eX=function(){function e(t){var o=t.maxScrollSize,r=void 0===o?"u">typeof window&&window.chrome?0xffff8c:15e5:o,i=eK(t,["maxScrollSize"]);eN(this,e),eF(this,"_cellSizeAndPositionManager",void 0),eF(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new eq(i),this._maxScrollSize=r}return eH(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,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize();return Math.round(this._getOffsetPercentage({containerSize:t,offset:o,totalSize:i})*(i-r))}},{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=e.containerSize,r=e.currentOffset,i=e.targetIndex;r=this._safeOffsetToOffset({containerSize:o,offset:r});var n=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:void 0===t?"auto":t,containerSize:o,currentOffset:r,targetIndex:i});return this._offsetToSafeOffset({containerSize:o,offset:n})}},{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,r=e.totalSize;return r<=t?0:o/(r-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,o=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize();return r===i?o:Math.round(this._getOffsetPercentage({containerSize:t,offset:o,totalSize:r})*(i-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,o=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),i=this.getTotalSize();return r===i?o:Math.round(this._getOffsetPercentage({containerSize:t,offset:o,totalSize:i})*(r-t))}}]),e}();function eQ(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t={};return function(o){var r=o.callback,i=o.indices,n=Object.keys(i),s=!e||n.every(function(e){var t=i[e];return Array.isArray(t)?t.length>0:t>=0}),a=n.length!==Object.keys(t).length||n.some(function(e){var o=t[e],r=i[e];return Array.isArray(r)?o.join(",")!==r.join(","):o!==r});t=i,s&&a&&r(i)}}function eJ(e){var t=e.cellSize,o=e.cellSizeAndPositionManager,r=e.previousCellsCount,i=e.previousCellSize,n=e.previousScrollToAlignment,s=e.previousScrollToIndex,a=e.previousSize,l=e.scrollOffset,h=e.scrollToAlignment,c=e.scrollToIndex,d=e.size,u=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,f=o.getCellCount(),m=c>=0&&c<f;m&&(d!==a||u||!i||"number"==typeof t&&t!==i||h!==n||c!==s)?p(c):!m&&f>0&&(d<a||f<r)&&l>o.getTotalSize()-d&&p(f-1)}let e0=!!("u">typeof window&&window.document&&window.document.createElement);function e1(e){if((!f&&0!==f||e)&&e0){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),f=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return f}var e2=(m="u">typeof window?window:"u">typeof self?self:{}).requestAnimationFrame||m.webkitRequestAnimationFrame||m.mozRequestAnimationFrame||m.oRequestAnimationFrame||m.msRequestAnimationFrame||function(e){return m.setTimeout(e,1e3/60)},e5=m.cancelAnimationFrame||m.webkitCancelAnimationFrame||m.mozCancelAnimationFrame||m.oCancelAnimationFrame||m.msCancelAnimationFrame||function(e){m.clearTimeout(e)},e3=function(e){return e5(e.id)},e6=function(e,t){Promise.resolve().then(function(){o=Date.now()});var o,r={id:e2(function i(){Date.now()-o>=t?e.call():r.id=e2(i)})};return r};function e4(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function e9(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?e4(o,!0).forEach(function(t){eF(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):e4(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var e7="requested",e8=(_=g=function(e){function t(e){var o;return eN(this,t),eF(eG(o=ek(this,eW(t).call(this,e))),"_onGridRenderedMemoizer",eQ()),eF(eG(o),"_onScrollMemoizer",eQ(!1)),eF(eG(o),"_deferredInvalidateColumnIndex",null),eF(eG(o),"_deferredInvalidateRowIndex",null),eF(eG(o),"_recomputeScrollLeftFlag",!1),eF(eG(o),"_recomputeScrollTopFlag",!1),eF(eG(o),"_horizontalScrollBarSize",0),eF(eG(o),"_verticalScrollBarSize",0),eF(eG(o),"_scrollbarPresenceChanged",!1),eF(eG(o),"_scrollingContainer",void 0),eF(eG(o),"_childrenToDisplay",void 0),eF(eG(o),"_columnStartIndex",void 0),eF(eG(o),"_columnStopIndex",void 0),eF(eG(o),"_rowStartIndex",void 0),eF(eG(o),"_rowStopIndex",void 0),eF(eG(o),"_renderedColumnStartIndex",0),eF(eG(o),"_renderedColumnStopIndex",0),eF(eG(o),"_renderedRowStartIndex",0),eF(eG(o),"_renderedRowStopIndex",0),eF(eG(o),"_initialScrollTop",void 0),eF(eG(o),"_initialScrollLeft",void 0),eF(eG(o),"_disablePointerEventsTimeoutId",void 0),eF(eG(o),"_styleCache",{}),eF(eG(o),"_cellCache",{}),eF(eG(o),"_debounceScrollEndedCallback",function(){o._disablePointerEventsTimeoutId=null,o.setState({isScrolling:!1,needToResetStyleCache:!1})}),eF(eG(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}})}),eF(eG(o),"_onWheel",function(e){var t=e.deltaX,r=e.deltaY;o.handleWheelEvent({deltaX:t,deltaY:r})}),eF(eG(o),"_setScrollingContainerRef",function(e){e&&(e.removeEventListener("wheel",o.preventDefault),e.addEventListener("wheel",o.preventDefault,{passive:!1})),o._scrollingContainer=e}),eF(eG(o),"_onScroll",function(e){e.target===o._scrollingContainer&&o.handleScrollEvent(e.target)}),o.state={instanceProps:{columnSizeAndPositionManager:new eX({cellCount:e.columnCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.columnWidth)(o)},estimatedCellSize:t._getEstimatedColumnSize(e)}),rowSizeAndPositionManager:new eX({cellCount:e.rowCount,cellSizeGetter:function(o){return t._wrapSizeGetter(e.rowHeight)(o)},estimatedCellSize:t._getEstimatedRowSize(e)}),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:1,scrollDirectionVertical:1,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 eL(t,e),eH(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,r=e.columnIndex,i=void 0===r?this.props.scrollToColumn:r,n=e.rowIndex,s=void 0===n?this.props.scrollToRow:n,a=e9({},this.props,{scrollToAlignment:o,scrollToColumn:i,scrollToRow:s});return{scrollLeft:this._getCalculatedScrollLeft(a),scrollTop:this._getCalculatedScrollTop(a)}}},{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=e.scrollTop,r=void 0===o?0:o;if(!(r<0)){this._debounceScrollEnded();var i=this.props,n=i.autoHeight,s=i.autoWidth,a=i.height,l=i.width,h=this.state.instanceProps,c=h.scrollbarSize,d=h.rowSizeAndPositionManager.getTotalSize(),u=h.columnSizeAndPositionManager.getTotalSize(),p=Math.min(Math.max(0,u-l+c),void 0===t?0:t),f=Math.min(Math.max(0,d-a+c),r);if(this.state.scrollLeft!==p||this.state.scrollTop!==f){var m={isScrolling:!0,scrollDirectionHorizontal:p!==this.state.scrollLeft?p>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:f!==this.state.scrollTop?f>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:"observed"};n||(m.scrollTop=f),s||(m.scrollLeft=p),m.needToResetStyleCache=!1,this.setState(m)}this._invokeOnScrollMemoizer({scrollLeft:p,scrollTop:f,totalColumnsWidth:u,totalRowsHeight:d})}}},{key:"preventDefault",value:function(e){e.preventDefault()}},{key:"handleWheelEvent",value:function(e){var t=e.deltaX,o=e.deltaY;this._debounceScrollEnded();var r=this.props,i=r.autoHeight,n=r.autoWidth,s=r.height,a=r.width,l=this.state.instanceProps.scrollbarSize,h=this.state.instanceProps.rowSizeAndPositionManager.getTotalSize(),c=this.state.instanceProps.columnSizeAndPositionManager.getTotalSize(),d=Math.min(Math.max(0,c-a+l),Math.max(0,this._scrollingContainer.scrollLeft+t)),u=Math.min(Math.max(0,h-s+l),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?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:u!==this.state.scrollTop?u>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:e7};i||(p.scrollTop=u),n||(p.scrollLeft=d),p.needToResetStyleCache=!1,this.setState(p)}this._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:u,totalColumnsWidth:c,totalRowsHeight:h})}},{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,r=this.state.instanceProps;r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),r.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,r=e.rowIndex,i=void 0===r?0:r,n=this.props,s=n.scrollToColumn,a=n.scrollToRow,l=this.state.instanceProps;l.columnSizeAndPositionManager.resetCell(o),l.rowSizeAndPositionManager.resetCell(i),this._recomputeScrollLeftFlag=s>=0&&(1===this.state.scrollDirectionHorizontal?o<=s:o>=s),this._recomputeScrollTopFlag=a>=0&&(1===this.state.scrollDirectionVertical?i<=a:i>=a),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,o=e.rowIndex,r=this.props,i=r.columnCount,n=r.onScrollToTargetCausedUpdate,s=this.state,a=s.scrollLeft,l=s.scrollTop,h=this.props,c=this.state,d=void 0,u=void 0;if(i>1&&void 0!==t){var p=this._updateScrollLeftForScrollToColumn(e9({},h,{scrollToColumn:t}),c,!0);p&&"number"==typeof p.scrollLeft&&p.scrollLeft>=0&&(d=p.scrollLeft)}if(void 0!==o){var f=this._updateScrollTopForScrollToRow(e9({},h,{scrollToRow:o}),c,!0);f&&"number"==typeof f.scrollTop&&f.scrollTop>=0&&(u=f.scrollTop)}if(n&&("number"==typeof d||"number"==typeof u)){var m="number"!=typeof d?d:a,g="number"!=typeof u?u:l;n({clientHeight:h.height,clientWidth:h.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:m,scrollTop:g,scrollWidth:this.getTotalColumnsWidth()})}}},{key:"componentDidMount",value:function(){var e=this.props,o=e.getScrollbarSize,r=e.height,i=e.scrollLeft,n=e.scrollToColumn,s=e.scrollTop,a=e.scrollToRow,l=e.width,h=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),h.scrollbarSizeMeasured||this.setState(function(e){var t=e9({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=o(),t.instanceProps.scrollbarSizeMeasured=!0,t}),"number"==typeof i&&i>=0||"number"==typeof s&&s>=0){var c=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:i,scrollTop:s});c&&(c.needToResetStyleCache=!1,this.setState(c))}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=r>0&&l>0;n>=0&&d&&this._updateScrollLeftForScrollToColumn(),a>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:i||0,scrollTop:s||0,totalColumnsWidth:h.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:h.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var o=this,r=this.props,i=r.autoHeight,n=r.autoWidth,s=r.columnCount,a=r.height,l=r.rowCount,h=r.scrollToAlignment,c=r.scrollToColumn,d=r.scrollToRow,u=r.width,p=this.state,f=p.scrollLeft,m=p.scrollPositionChangeReason,g=p.scrollTop,_=p.instanceProps;this._handleInvalidatedGridSize();var v=s>0&&0===e.columnCount||l>0&&0===e.rowCount;m===e7&&(!n&&f>=0&&(f!==this._scrollingContainer.scrollLeft||v)&&(this._scrollingContainer.scrollLeft=f),!i&&g>=0&&(g!==this._scrollingContainer.scrollTop||v)&&(this._scrollingContainer.scrollTop=g));var S=(0===e.width||0===e.height)&&a>0&&u>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):eJ({cellSizeAndPositionManager:_.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:f,scrollToAlignment:h,scrollToIndex:c,size:u,sizeJustIncreasedFromZero:S,updateScrollIndexCallback:function(){return o._updateScrollLeftForScrollToColumn(o.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):eJ({cellSizeAndPositionManager:_.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:g,scrollToAlignment:h,scrollToIndex:d,size:a,sizeJustIncreasedFromZero:S,updateScrollIndexCallback:function(){return o._updateScrollTopForScrollToRow(o.props)}}),this._invokeOnGridRenderedHelper(),f!==t.scrollLeft||g!==t.scrollTop){var R=_.rowSizeAndPositionManager.getTotalSize(),y=_.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:f,scrollTop:g,totalColumnsWidth:y,totalRowsHeight:R})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._scrollingContainer&&this._scrollingContainer.removeEventListener("wheel",this.preventDefault),this._disablePointerEventsTimeoutId&&e3(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,o=e.autoHeight,r=e.autoWidth,i=e.className,n=e.containerProps,s=e.containerRole,a=e.containerStyle,l=e.height,h=e.id,c=e.noContentRenderer,d=e.role,u=e.style,p=e.tabIndex,f=e.width,m=this.state,g=m.instanceProps,_=m.needToResetStyleCache,v=this._isScrolling(),S={boxSizing:"border-box",direction:"ltr",height:o?"auto":l,position:"relative",width:r?"auto":f,WebkitOverflowScrolling:"touch",willChange:"transform"};_&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var R=g.columnSizeAndPositionManager.getTotalSize(),y=g.rowSizeAndPositionManager.getTotalSize(),T=y>l?g.scrollbarSize:0,C=R>f?g.scrollbarSize:0;(C!==this._horizontalScrollBarSize||T!==this._verticalScrollBarSize)&&(this._horizontalScrollBarSize=C,this._verticalScrollBarSize=T,this._scrollbarPresenceChanged=!0),S.overflowX=R+T<=f?"hidden":"auto",S.overflowY=y+C<=l?"hidden":"auto";var w=this._childrenToDisplay,E=0===w.length&&l>0&&f>0;return A.createElement("div",ej({ref:this._setScrollingContainerRef},n,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:eV("ReactVirtualized__Grid",i),id:h,onScroll:this._onScroll,onWheel:this._onWheel,role:d,style:e9({},S,{},u),tabIndex:p}),w.length>0&&A.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:s,style:e9({width:t?"auto":R,height:y,maxWidth:R,maxHeight:y,overflow:"hidden",pointerEvents:v?"none":"",position:"relative"},a)},w),E&&c())}},{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,r=e.cellRangeRenderer,i=e.columnCount,n=e.deferredMeasurementCache,s=e.height,a=e.overscanColumnCount,l=e.overscanIndicesGetter,h=e.overscanRowCount,c=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,_=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,v=this._isScrolling(e,t);if(this._childrenToDisplay=[],s>0&&d>0){var S=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:_}),R=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:s,offset:g}),y=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:_}),T=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:s,offset:g});this._renderedColumnStartIndex=S.start,this._renderedColumnStopIndex=S.stop,this._renderedRowStartIndex=R.start,this._renderedRowStopIndex=R.stop;var C=l({direction:"horizontal",cellCount:i,overscanCellsCount:a,scrollDirection:p,startIndex:"number"==typeof S.start?S.start:0,stopIndex:"number"==typeof S.stop?S.stop:-1}),w=l({direction:"vertical",cellCount:c,overscanCellsCount:h,scrollDirection:f,startIndex:"number"==typeof R.start?R.start:0,stopIndex:"number"==typeof R.stop?R.stop:-1}),E=C.overscanStartIndex,b=C.overscanStopIndex,I=w.overscanStartIndex,M=w.overscanStopIndex;if(n){if(!n.hasFixedHeight()){for(var O=I;O<=M;O++)if(!n.has(O,0)){E=0,b=i-1;break}}if(!n.hasFixedWidth()){for(var N=E;N<=b;N++)if(!n.has(0,N)){I=0,M=c-1;break}}}this._childrenToDisplay=r({cellCache:this._cellCache,cellRenderer:o,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:E,columnStopIndex:b,deferredMeasurementCache:n,horizontalOffsetAdjustment:y,isScrolling:v,isScrollingOptOut:u,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:I,rowStopIndex:M,scrollLeft:_,scrollTop:g,styleCache:this._styleCache,verticalOffsetAdjustment:T,visibleColumnIndices:S,visibleRowIndices:R}),this._columnStartIndex=E,this._columnStopIndex=b,this._rowStartIndex=I,this._rowStopIndex=M}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&e3(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=e6(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,r=e.scrollTop,i=e.totalColumnsWidth,n=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,r=e.scrollTop,s=t.props,a=s.height;(0,s.onScroll)({clientHeight:a,clientWidth:s.width,scrollHeight:n,scrollLeft:o,scrollTop:r,scrollWidth:i})},indices:{scrollLeft:o,scrollTop:r}})}},{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")?!!e.isScrolling:!!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,r=e.scrollTop,i=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:r});i&&(i.needToResetStyleCache=!1,this.setState(i))}},{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,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t._getScrollLeftForScrollToColumnStateUpdate(e,o);if(i)return i.needToResetStyleCache=!1,this.setState(i),e.onScrollToTargetCausedUpdate&&!r&&e.onScrollToTargetCausedUpdate({clientHeight:e.height,clientWidth:e.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:i.scrollLeft,scrollTop:i.scrollTop,scrollWidth:this.getTotalColumnsWidth()}),i}},{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 r=this._rowStartIndex;r<=this._rowStopIndex;r++)for(var i=this._columnStartIndex;i<=this._columnStopIndex;i++){var n="".concat(r,"-").concat(i);this._styleCache[n]=e[n],o&&(this._cellCache[n]=t[n])}}},{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,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t._getScrollTopForScrollToRowStateUpdate(e,o);if(i)return i.needToResetStyleCache=!1,this.setState(i),e.onScrollToTargetCausedUpdate&&!r&&e.onScrollToTargetCausedUpdate({clientHeight:e.height,clientWidth:e.width,scrollHeight:this.getTotalRowsHeight(),scrollLeft:i.scrollLeft,scrollTop:i.scrollTop,scrollWidth:this.getTotalColumnsWidth()}),i}}],[{key:"getDerivedStateFromProps",value:function(e,o){var r,i,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 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}),e$({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)}}),e$({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,e9({},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,r=e.scrollTop,i={scrollPositionChangeReason:e7};return("number"==typeof o&&o>=0&&(i.scrollDirectionHorizontal=o>t.scrollLeft?1:-1,i.scrollLeft=o),"number"==typeof r&&r>=0&&(i.scrollDirectionVertical=r>t.scrollTop?1:-1,i.scrollTop=r),"number"==typeof o&&o>=0&&o!==t.scrollLeft||"number"==typeof r&&r>=0&&r!==t.scrollTop)?i:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var o=e.columnCount,r=e.height,i=e.scrollToAlignment,n=e.scrollToColumn,s=e.width,a=t.scrollLeft,l=t.instanceProps;if(o>0){var h=o-1,c=n<0?h:Math.min(h,n),d=l.rowSizeAndPositionManager.getTotalSize(),u=l.scrollbarSizeMeasured&&d>r?l.scrollbarSize:0;return l.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:s-u,currentOffset:a,targetIndex:c})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,o){var r=o.scrollLeft,i=t._getCalculatedScrollLeft(e,o);return"number"==typeof i&&i>=0&&r!==i?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:i,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var o=e.height,r=e.rowCount,i=e.scrollToAlignment,n=e.scrollToRow,s=e.width,a=t.scrollTop,l=t.instanceProps;if(r>0){var h=r-1,c=n<0?h:Math.min(h,n),d=l.columnSizeAndPositionManager.getTotalSize(),u=l.scrollbarSizeMeasured&&d>s?l.scrollbarSize:0;return l.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:i,containerSize:o-u,currentOffset:a,targetIndex:c})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,o){var r=o.scrollTop,i=t._getCalculatedScrollTop(e,o);return"number"==typeof i&&i>=0&&r!==i?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:-1,scrollTop:i}):{}}}]),t}(A.PureComponent),eF(g,"propTypes",null),_);function te(e){var t=e.cellCount,o=e.overscanCellsCount,r=e.scrollDirection,i=e.startIndex,n=e.stopIndex;return(o=Math.max(1,o),1===r)?{overscanStartIndex:Math.max(0,i-1),overscanStopIndex:Math.min(t-1,n+o)}:{overscanStartIndex:Math.max(0,i-o),overscanStopIndex:Math.min(t-1,n+1)}}function tt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}eF(e8,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,o=e.cellRenderer,r=e.columnSizeAndPositionManager,i=e.columnStartIndex,n=e.columnStopIndex,s=e.deferredMeasurementCache,a=e.horizontalOffsetAdjustment,l=e.isScrolling,h=e.isScrollingOptOut,c=e.parent,d=e.rowSizeAndPositionManager,u=e.rowStartIndex,p=e.rowStopIndex,f=e.styleCache,m=e.verticalOffsetAdjustment,g=e.visibleColumnIndices,_=e.visibleRowIndices,v=[],S=r.areOffsetsAdjusted()||d.areOffsetsAdjusted(),R=!l&&!S,y=u;y<=p;y++)for(var T=d.getSizeAndPositionOfCell(y),C=i;C<=n;C++){var w=r.getSizeAndPositionOfCell(C),E=C>=g.start&&C<=g.stop&&y>=_.start&&y<=_.stop,b="".concat(y,"-").concat(C),I=void 0;R&&f[b]?I=f[b]:s&&!s.has(y,C)?I={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(I={height:T.size,left:w.offset+a,position:"absolute",top:T.offset+m,width:w.size},f[b]=I);var M={columnIndex:C,isScrolling:l,isVisible:E,key:b,parent:c,rowIndex:y,style:I},O=void 0;(h||l)&&!a&&!m?(t[b]||(t[b]=o(M)),O=t[b]):O=o(M),null!=O&&!1!==O&&v.push(O)}return v},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:e1,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,o=e.overscanCellsCount,r=e.scrollDirection,i=e.startIndex,n=e.stopIndex;return 1===r?{overscanStartIndex:Math.max(0,i),overscanStopIndex:Math.min(t-1,n+o)}:{overscanStartIndex:Math.max(0,i-o),overscanStopIndex:Math.min(t-1,n)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),eU(e8);var to=(S=v=function(e){function t(){eN(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return eF(eG(o=ek(this,(e=eW(t)).call.apply(e,[this].concat(i)))),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),eF(eG(o),"_columnStartIndex",0),eF(eG(o),"_columnStopIndex",0),eF(eG(o),"_rowStartIndex",0),eF(eG(o),"_rowStopIndex",0),eF(eG(o),"_onKeyDown",function(e){var t=o.props,r=t.columnCount,i=t.disabled,n=t.mode,s=t.rowCount;if(!i){var a=o._getScrollState(),l=a.scrollToColumn,h=a.scrollToRow,c=o._getScrollState(),d=c.scrollToColumn,u=c.scrollToRow;switch(e.key){case"ArrowDown":u="cells"===n?Math.min(u+1,s-1):Math.min(o._rowStopIndex+1,s-1);break;case"ArrowLeft":d="cells"===n?Math.max(d-1,0):Math.max(o._columnStartIndex-1,0);break;case"ArrowRight":d="cells"===n?Math.min(d+1,r-1):Math.min(o._columnStopIndex+1,r-1);break;case"ArrowUp":u="cells"===n?Math.max(u-1,0):Math.max(o._rowStartIndex-1,0)}(d!==l||u!==h)&&(e.preventDefault(),o._updateScrollState({scrollToColumn:d,scrollToRow:u}))}}),eF(eG(o),"_onSectionRendered",function(e){var t=e.columnStartIndex,r=e.columnStopIndex,i=e.rowStartIndex,n=e.rowStopIndex;o._columnStartIndex=t,o._columnStopIndex=r,o._rowStartIndex=i,o._rowStopIndex=n}),o}return eL(t,e),eH(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,r=this._getScrollState(),i=r.scrollToColumn,n=r.scrollToRow;return A.createElement("div",{className:t,onKeyDown:this._onKeyDown},o({onSectionRendered:this._onSectionRendered,scrollToColumn:i,scrollToRow:n}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,o=e.scrollToRow,r=this.props,i=r.isControlled,n=r.onScrollToChange;"function"==typeof n&&n({scrollToColumn:t,scrollToRow:o}),i||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?tt(o,!0).forEach(function(t){eF(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tt(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}(A.PureComponent),eF(v,"propTypes",null),S);function tr(e,t){var o=void 0!==t?t:"u">typeof window?window:"u">typeof self?self:n.g,r=void 0!==o.document&&o.document.attachEvent;if(!r){var i,s,a=(i=o.requestAnimationFrame||o.mozRequestAnimationFrame||o.webkitRequestAnimationFrame||function(e){return o.setTimeout(e,20)},function(e){return i(e)}),l=(s=o.cancelAnimationFrame||o.mozCancelAnimationFrame||o.webkitCancelAnimationFrame||o.clearTimeout,function(e){return s(e)}),h=function(e){var t=e.__resizeTriggers__,o=t.firstElementChild,r=t.lastElementChild,i=o.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=o.offsetWidth+1+"px",i.style.height=o.offsetHeight+1+"px",o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight},c=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&0>e.target.className.indexOf("contract-trigger")&&0>e.target.className.indexOf("expand-trigger"))){var t=this;h(this),this.__resizeRAF__&&l(this.__resizeRAF__),this.__resizeRAF__=a(function(){(t.offsetWidth!=t.__resizeLast__.width||t.offsetHeight!=t.__resizeLast__.height)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(o){o.call(t,e)}))})}},d=!1,u="",p="animationstart",f="Webkit Moz O ms".split(" "),m="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),g=o.document.createElement("fakeelement");if(void 0!==g.style.animationName&&(d=!0),!1===d){for(var _=0;_<f.length;_++)if(void 0!==g.style[f[_]+"AnimationName"]){u="-"+f[_].toLowerCase()+"-",p=m[_],d=!0;break}}var v="resizeanim",S="@"+u+"keyframes "+v+" { from { opacity: 0; } to { opacity: 0; } } ",R=u+"animation: 1ms "+v+"; "}var y=function(t){if(!t.getElementById("detectElementResize")){var o=(S||"")+".resize-triggers { "+(R||"")+'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%; }',r=t.head||t.getElementsByTagName("head")[0],i=t.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=o:i.appendChild(t.createTextNode(o)),r.appendChild(i)}};return{addResizeListener:function(e,t){if(r)e.attachEvent("onresize",t);else{if(!e.__resizeTriggers__){var i=e.ownerDocument,n=o.getComputedStyle(e);n&&"static"==n.position&&(e.style.position="relative"),y(i),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=i.createElement("div")).className="resize-triggers";var s='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>';if(window.trustedTypes){var a=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return s}});e.__resizeTriggers__.innerHTML=a.createHTML("")}else e.__resizeTriggers__.innerHTML=s;e.appendChild(e.__resizeTriggers__),h(e),e.addEventListener("scroll",c,!0),p&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName==v&&h(e)},e.__resizeTriggers__.addEventListener(p,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(t)}},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",c,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(p,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch{}}}}}function ti(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}eF(to,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),eU(to);var tn=(y=R=function(e){function t(){eN(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return eF(eG(o=ek(this,(e=eW(t)).call.apply(e,[this].concat(i)))),"state",{height:o.props.defaultHeight||0,width:o.props.defaultWidth||0}),eF(eG(o),"_parentNode",void 0),eF(eG(o),"_autoSizer",void 0),eF(eG(o),"_window",void 0),eF(eG(o),"_detectElementResize",void 0),eF(eG(o),"_onResize",function(){var e=o.props,t=e.disableHeight,r=e.disableWidth,i=e.onResize;if(o._parentNode){var n=o._parentNode.offsetHeight||0,s=o._parentNode.offsetWidth||0,a=(o._window||window).getComputedStyle(o._parentNode)||{},l=parseInt(a.paddingLeft,10)||0,h=parseInt(a.paddingRight,10)||0,c=parseInt(a.paddingTop,10)||0,d=parseInt(a.paddingBottom,10)||0,u=n-c-d,p=s-l-h;(t||o.state.height===u)&&(r||o.state.width===p)||(o.setState({height:n-c-d,width:s-l-h}),i({height:n,width:s}))}}),eF(eG(o),"_setRef",function(e){o._autoSizer=e}),o}return eL(t,e),eH(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=tr(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,r=e.disableHeight,i=e.disableWidth,n=e.style,s=this.state,a=s.height,l=s.width,h={overflow:"visible"},c={};return r||(h.height=0,c.height=a),i||(h.width=0,c.width=l),A.createElement("div",{className:o,ref:this._setRef,style:function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ti(o,!0).forEach(function(t){eF(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ti(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({},h,{},n)},t(c))}}]),t}(A.Component),eF(R,"propTypes",null),y);eF(tn,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var ts=(C=T=function(e){function o(){eN(this,o);for(var e,t,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return eF(eG(t=ek(this,(e=eW(o)).call.apply(e,[this].concat(i)))),"_child",void 0),eF(eG(t),"_measure",function(){var e=t.props,o=e.cache,r=e.columnIndex,i=void 0===r?0:r,n=e.parent,s=e.rowIndex,a=void 0===s?t.props.index||0:s,l=t._getCellMeasurements(),h=l.height,c=l.width;(h!==o.getHeight(a,i)||c!==o.getWidth(a,i))&&(o.set(a,i,c,h),n&&"function"==typeof n.recomputeGridSize&&n.recomputeGridSize({columnIndex:i,rowIndex:a}))}),eF(eG(t),"_registerChild",function(e){e&&Element,t._child=e,e&&t._maybeMeasureCell()}),t}return eL(o,e),eH(o,[{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,o=this._child||t(this);if(!o||!o.ownerDocument||!o.ownerDocument.defaultView||!(o instanceof o.ownerDocument.defaultView.HTMLElement))return{height:0,width:0};var r=o.style.width,i=o.style.height;e.hasFixedWidth()||(o.style.width="auto"),e.hasFixedHeight()||(o.style.height="auto");var n=Math.ceil(o.offsetHeight),s=Math.ceil(o.offsetWidth);return r&&(o.style.width=r),i&&(o.style.height=i),{height:n,width:s}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,o=e.columnIndex,r=void 0===o?0:o,i=e.parent,n=e.rowIndex,s=void 0===n?this.props.index||0:n;if(!t.has(s,r)){var a=this._getCellMeasurements(),l=a.height,h=a.width;t.set(s,r,h,l),i&&"function"==typeof i.invalidateCellSizeAfterRender&&i.invalidateCellSizeAfterRender({columnIndex:r,rowIndex:s})}}}]),o}(A.PureComponent),eF(T,"propTypes",null),C);function ta(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}eF(ts,"__internalCellMeasurerFlag",!1);var tl="requested",th=function(e){function t(){eN(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return eF(eG(o=ek(this,(e=eW(t)).call.apply(e,[this].concat(i)))),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),eF(eG(o),"_calculateSizeAndPositionDataOnNextUpdate",!1),eF(eG(o),"_onSectionRenderedMemoizer",eQ()),eF(eG(o),"_onScrollMemoizer",eQ(!1)),eF(eG(o),"_invokeOnSectionRenderedHelper",function(){var e=o.props,t=e.cellLayoutManager,r=e.onSectionRendered;o._onSectionRenderedMemoizer({callback:r,indices:{indices:t.getLastRenderedIndices()}})}),eF(eG(o),"_setScrollingContainerRef",function(e){o._scrollingContainer=e}),eF(eG(o),"_updateScrollPositionForScrollToCell",function(){var e=o.props,t=e.cellLayoutManager,r=e.height,i=e.scrollToAlignment,n=e.scrollToCell,s=e.width,a=o.state,l=a.scrollLeft,h=a.scrollTop;if(n>=0){var c=t.getScrollPositionForCell({align:i,cellIndex:n,height:r,scrollLeft:l,scrollTop:h,width:s});(c.scrollLeft!==l||c.scrollTop!==h)&&o._setScrollPosition(c)}}),eF(eG(o),"_onScroll",function(e){if(e.target===o._scrollingContainer){o._enablePointerEventsAfterDelay();var t=o.props,r=t.cellLayoutManager,i=t.height,n=t.isScrollingChange,s=t.width,a=o._scrollbarSize,l=r.getTotalSize(),h=l.height,c=l.width,d=Math.max(0,Math.min(c-s+a,e.target.scrollLeft)),u=Math.max(0,Math.min(h-i+a,e.target.scrollTop));if(o.state.scrollLeft!==d||o.state.scrollTop!==u){var p=e.cancelable?"observed":tl;o.state.isScrolling||n(!0),o.setState({isScrolling:!0,scrollLeft:d,scrollPositionChangeReason:p,scrollTop:u})}o._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:u,totalWidth:c,totalHeight:h})}}),o._scrollbarSize=e1(),void 0===o._scrollbarSize?(o._scrollbarSizeMeasured=!1,o._scrollbarSize=0):o._scrollbarSizeMeasured=!0,o}return eL(t,e),eH(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,o=e.scrollLeft,r=e.scrollToCell,i=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=e1(),this._scrollbarSizeMeasured=!0,this.setState({})),r>=0?this._updateScrollPositionForScrollToCell():(o>=0||i>=0)&&this._setScrollPosition({scrollLeft:o,scrollTop:i}),this._invokeOnSectionRenderedHelper();var n=t.getTotalSize(),s=n.height,a=n.width;this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:i||0,totalHeight:s,totalWidth:a})}},{key:"componentDidUpdate",value:function(e,t){var o=this.props,r=o.height,i=o.scrollToAlignment,n=o.scrollToCell,s=o.width,a=this.state,l=a.scrollLeft,h=a.scrollPositionChangeReason,c=a.scrollTop;h===tl&&(l>=0&&l!==t.scrollLeft&&l!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=l),c>=0&&c!==t.scrollTop&&c!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=c)),(r!==e.height||i!==e.scrollToAlignment||n!==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,r=e.cellLayoutManager,i=e.className,n=e.height,s=e.horizontalOverscanSize,a=e.id,l=e.noContentRenderer,h=e.style,c=e.verticalOverscanSize,d=e.width,u=this.state,p=u.isScrolling,f=u.scrollLeft,m=u.scrollTop;(this._lastRenderedCellCount!==o||this._lastRenderedCellLayoutManager!==r||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=o,this._lastRenderedCellLayoutManager=r,this._calculateSizeAndPositionDataOnNextUpdate=!1,r.calculateSizeAndPositionData());var g=r.getTotalSize(),_=g.height,v=g.width,S=Math.max(0,f-s),R=Math.max(0,m-c),y=Math.min(v,f+d+s),T=Math.min(_,m+n+c),C=n>0&&d>0?r.cellRenderers({height:T-R,isScrolling:p,width:y-S,x:S,y:R}):[],w={boxSizing:"border-box",direction:"ltr",height:t?"auto":n,position:"relative",WebkitOverflowScrolling:"touch",width:d,willChange:"transform"},E=_>n?this._scrollbarSize:0,b=v>d?this._scrollbarSize:0;return w.overflowX=v+E<=d?"hidden":"auto",w.overflowY=_+b<=n?"hidden":"auto",A.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:eV("ReactVirtualized__Collection",i),id:a,onScroll:this._onScroll,role:"grid",style:function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ta(o,!0).forEach(function(t){eF(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ta(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({},w,{},h),tabIndex:0},o>0&&A.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:_,maxHeight:_,maxWidth:v,overflow:"hidden",pointerEvents:p?"none":"",width:v}},C),0===o&&l())}},{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,r=e.scrollTop,i=e.totalHeight,n=e.totalWidth;this._onScrollMemoizer({callback:function(e){var o=e.scrollLeft,r=e.scrollTop,s=t.props,a=s.height;(0,s.onScroll)({clientHeight:a,clientWidth:s.width,scrollHeight:i,scrollLeft:o,scrollTop:r,scrollWidth:n})},indices:{scrollLeft:o,scrollTop:r}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,o=e.scrollTop,r={scrollPositionChangeReason:tl};t>=0&&(r.scrollLeft=t),o>=0&&(r.scrollTop=o),(t>=0&&t!==this.state.scrollLeft||o>=0&&o!==this.state.scrollTop)&&this.setState(r)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0===e.cellCount&&(0!==t.scrollLeft||0!==t.scrollTop)?{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:tl}: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:tl}:null}}]),t}(A.PureComponent);eF(th,"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}),th.propTypes={},eU(th);var tc=function(){function e(t){var o=t.height,r=t.width,i=t.x,n=t.y;eN(this,e),this.height=o,this.width=r,this.x=i,this.y=n,this._indexMap={},this._indices=[]}return eH(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}(),td=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;eN(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return eH(e,[{key:"getCellIndices",value:function(e){var t=e.height,o=e.width,r=e.x,i=e.y,n={};return this.getSections({height:t,width:o,x:r,y:i}).forEach(function(e){return e.getCellIndices().forEach(function(e){n[e]=e})}),Object.keys(n).map(function(e){return n[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,r=e.x,i=e.y,n=Math.floor(r/this._sectionSize),s=Math.floor((r+o-1)/this._sectionSize),a=Math.floor(i/this._sectionSize),l=Math.floor((i+t-1)/this._sectionSize),h=[],c=n;c<=s;c++)for(var d=a;d<=l;d++){var u="".concat(c,".").concat(d);this._sections[u]||(this._sections[u]=new tc({height:this._sectionSize,width:this._sectionSize,x:c*this._sectionSize,y:d*this._sectionSize})),h.push(this._sections[u])}return h}},{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 tu(e){var t=e.align,o=e.cellOffset,r=e.cellSize,i=e.containerSize,n=e.currentOffset,s=o-i+r;switch(void 0===t?"auto":t){case"start":return o;case"end":return s;case"center":return o-(i-r)/2;default:return Math.max(s,Math.min(o,n))}}var tp=function(e){function t(e,o){var r;return eN(this,t),(r=ek(this,eW(t).call(this,e,o)))._cellMetadata=[],r._lastRenderedCellIndices=[],r._cellCache=[],r._isScrollingChange=r._isScrollingChange.bind(eG(r)),r._setCollectionViewRef=r._setCollectionViewRef.bind(eG(r)),r}return eL(t,e),eH(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=ej({},this.props);return A.createElement(th,ej({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,r=e.sectionSize,i=[],n=new td(r),s=0,a=0,l=0;l<t;l++){var h=o({index:l});if(null==h.height||isNaN(h.height)||null==h.width||isNaN(h.width)||null==h.x||isNaN(h.x)||null==h.y||isNaN(h.y))throw Error("Invalid metadata returned for cell ".concat(l,`:
12
+ x:`).concat(h.x,", y:").concat(h.y,", width:").concat(h.width,", height:").concat(h.height));s=Math.max(s,h.y+h.height),a=Math.max(a,h.x+h.width),i[l]=h,n.registerCell({cellMetadatum:h,index:l})}return{cellMetadata:i,height:s,sectionManager:n,width:a}}({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,r=e.height,i=e.scrollLeft,n=e.scrollTop,s=e.width,a=this.props.cellCount;if(o>=0&&o<a){var l=this._cellMetadata[o];i=tu({align:t,cellOffset:l.x,cellSize:l.width,containerSize:s,currentOffset:i,targetIndex:o}),n=tu({align:t,cellOffset:l.y,cellSize:l.height,containerSize:r,currentOffset:n,targetIndex:o})}return{scrollLeft:i,scrollTop:n}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,o=e.height,r=e.isScrolling,i=e.width,n=e.x,s=e.y,a=this.props,l=a.cellGroupRenderer,h=a.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:o,width:i,x:n,y:s}),l({cellCache:this._cellCache,cellRenderer:h,cellSizeAndPositionGetter:function(e){var o=e.index;return t._sectionManager.getCellMetadata({index:o})},indices:this._lastRenderedCellIndices,isScrolling:r})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}]),t}(A.PureComponent);function tf(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,r=Array(t);o<t;o++)r[o]=e[o];return r}function tm(e,t){if(e){if("string"==typeof e)return tf(e,t);var o=({}).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)?tf(e,t):void 0}}eF(tp,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,o=e.cellRenderer,r=e.cellSizeAndPositionGetter,i=e.indices,n=e.isScrolling;return i.map(function(e){var i=r({index:e}),s={index:e,isScrolling:n,key:e,style:{height:i.height,left:i.x,position:"absolute",top:i.y,width:i.width}};return n?(e in t||(t[e]=o(s)),t[e]):o(s)}).filter(function(e){return!!e})}}),tp.propTypes={},function(e){function t(e,o){var r;return eN(this,t),(r=ek(this,eW(t).call(this,e,o)))._registerChild=r._registerChild.bind(eG(r)),r}return eL(t,e),eH(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,o=t.columnMaxWidth,r=t.columnMinWidth,i=t.columnCount,n=t.width;(o!==e.columnMaxWidth||r!==e.columnMinWidth||i!==e.columnCount||n!==e.width)&&this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,o=e.columnMaxWidth,r=e.columnMinWidth,i=e.columnCount,n=e.width,s=o?Math.min(o,n):n,a=n/i;return t({adjustedWidth:Math.min(n,(a=Math.floor(a=Math.min(s,a=Math.max(r||1,a))))*i),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}(A.PureComponent).propTypes={};var tg=function(e){function t(e,o){var r;return eN(this,t),(r=ek(this,eW(t).call(this,e,o)))._loadMoreRowsMemoizer=eQ(),r._onRowsRendered=r._onRowsRendered.bind(eG(r)),r._registerChild=r._registerChild.bind(eG(r)),r}return eL(t,e),eH(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=eQ(),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 r=o(e);r&&r.then(function(){var o,r,i,n,s;r=(o={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex}).lastRenderedStartIndex,i=o.lastRenderedStopIndex,n=o.startIndex,s=o.stopIndex,!(n>i||s<r)&&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,r,i=this,n=this.props,s=n.isRowLoaded,a=n.minimumBatchSize,l=n.rowCount,h=n.threshold,c=function(e){for(var t=e.isRowLoaded,o=e.minimumBatchSize,r=e.rowCount,i=e.startIndex,n=e.stopIndex,s=[],a=null,l=null,h=i;h<=n;h++)t({index:h})?null!==l&&(s.push({startIndex:a,stopIndex:l}),a=l=null):(l=h,null===a&&(a=h));if(null!==l){for(var c=Math.min(Math.max(l,a+o-1),r-1),d=l+1;d<=c;d++)if(t({index:d}))break;else l=d;s.push({startIndex:a,stopIndex:l})}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:s,minimumBatchSize:a,rowCount:l,startIndex:Math.max(0,e-h),stopIndex:Math.min(l-1,t+h)}),d=(r=[]).concat.apply(r,function(e){if(Array.isArray(e))return tf(e)}(o=c.map(function(e){return[e.startIndex,e.stopIndex]}))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||tm(o)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance.
13
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}());this._loadMoreRowsMemoizer({callback:function(){i._loadUnloadedRanges(c)},indices:{squashedUnloadedRanges:d}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(A.PureComponent);eF(tg,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),tg.propTypes={};var t_=(E=w=function(e){function t(){eN(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return eF(eG(o=ek(this,(e=eW(t)).call.apply(e,[this].concat(i)))),"Grid",void 0),eF(eG(o),"_cellRenderer",function(e){var t=e.parent,r=e.rowIndex,i=e.style,n=e.isScrolling,s=e.isVisible,a=e.key,l=o.props.rowRenderer,h=Object.getOwnPropertyDescriptor(i,"width");return h&&h.writable&&(i.width="100%"),l({index:r,style:i,isScrolling:n,isVisible:s,key:a,parent:t})}),eF(eG(o),"_setRef",function(e){o.Grid=e}),eF(eG(o),"_onScroll",function(e){var t=e.clientHeight,r=e.scrollHeight,i=e.scrollTop;(0,o.props.onScroll)({clientHeight:t,scrollHeight:r,scrollTop:i})}),eF(eG(o),"_onScrollToRowCausedUpdate",function(e){var t=e.clientHeight,r=e.scrollHeight,i=e.scrollTop;(0,o.props.onScrollToRowCausedUpdate)({clientHeight:t,scrollHeight:r,scrollTop:i})}),eF(eG(o),"_onSectionRendered",function(e){var t=e.rowOverscanStartIndex,r=e.rowOverscanStopIndex,i=e.rowStartIndex,n=e.rowStopIndex;(0,o.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:r,startIndex:i,stopIndex:n})}),o}return eL(t,e),eH(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=e.rowIndex;this.Grid&&this.Grid.recomputeGridSize({rowIndex:void 0===o?0:o,columnIndex:void 0===t?0:t})}},{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,r=e.scrollToIndex,i=e.width,n=eV("ReactVirtualized__List",t);return A.createElement(e8,ej({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:n,columnWidth:i,columnCount:1,noContentRenderer:o,onScroll:this._onScroll,onScrollToTargetCausedUpdate:this._onScrollToRowCausedUpdate,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:r}))}}]),t}(A.PureComponent),eF(w,"propTypes",null),E);eF(t_,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},onScrollToRowCausedUpdate:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:te,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});let tv=function(e,t,o,r,i){return"function"==typeof o?function(e,t,o,r,i){for(var n=o+1;t<=o;){var s=t+o>>>1;i(e[s],r)>=0?(n=s,o=s-1):t=s+1}return n}(e,void 0===r?0:0|r,void 0===i?e.length-1:0|i,t,o):function(e,t,o,r){for(var i=o+1;t<=o;){var n=t+o>>>1;e[n]>=r?(i=n,o=n-1):t=n+1}return i}(e,void 0===o?0:0|o,void 0===r?e.length-1:0|r,t)};function tS(e,t,o,r,i){this.mid=e,this.left=t,this.right=o,this.leftPoints=r,this.rightPoints=i,this.count=(t?t.count:0)+(o?o.count:0)+r.length}var tR=tS.prototype;function ty(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 tT(e,t){var o=tx(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 tC(e,t){var o=e.intervals([]);o.push(t),tT(e,o)}function tw(e,t){var o=e.intervals([]),r=o.indexOf(t);return r<0?0:(o.splice(r,1),tT(e,o),1)}function tE(e,t,o){for(var r=0;r<e.length&&e[r][0]<=t;++r){var i=o(e[r]);if(i)return i}}function tb(e,t,o){for(var r=e.length-1;r>=0&&e[r][1]>=t;--r){var i=o(e[r]);if(i)return i}}function tI(e,t){for(var o=0;o<e.length;++o){var r=t(e[o]);if(r)return r}}function tM(e,t){return e-t}function tO(e,t){var o=e[0]-t[0];return o||e[1]-t[1]}function tN(e,t){var o=e[1]-t[1];return o||e[0]-t[0]}function tx(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(tM);for(var r=t[t.length>>1],i=[],n=[],s=[],o=0;o<e.length;++o){var a=e[o];a[1]<r?i.push(a):r<a[0]?n.push(a):s.push(a)}var l=s.slice();return s.sort(tO),l.sort(tN),new tS(r,tx(i),tx(n),s,l)}function tA(e){this.root=e}tR.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},tR.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)?tC(this,e):this.left.insert(e):this.left=tx([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?tC(this,e):this.right.insert(e):this.right=tx([e]);else{var o=tv(this.leftPoints,e,tO),r=tv(this.rightPoints,e,tN);this.leftPoints.splice(o,0,e),this.rightPoints.splice(r,0,e)}},tR.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid){if(!this.left)return 0;if(4*(this.right?this.right.count:0)>3*(t-1))return tw(this,e);var o=this.left.remove(e);return 2===o?(this.left=null,this.count-=1,1):(1===o&&(this.count-=1),o)}if(e[0]>this.mid){if(!this.right)return 0;if(4*(this.left?this.left.count:0)>3*(t-1))return tw(this,e);var o=this.right.remove(e);return 2===o?(this.right=null,this.count-=1,1):(1===o&&(this.count-=1),o)}if(1===this.count)if(this.leftPoints[0]===e)return 2;else return 0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var r=this,i=this.left;i.right;)r=i,i=i.right;if(r===this)i.right=this.right;else{var n=this.left,o=this.right;r.count-=i.count,r.right=i.left,i.left=n,i.right=o}ty(this,i),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?ty(this,this.left):ty(this,this.right);return 1}for(var n=tv(this.leftPoints,e,tO);n<this.leftPoints.length&&this.leftPoints[n][0]===e[0];++n)if(this.leftPoints[n]===e){this.count-=1,this.leftPoints.splice(n,1);for(var o=tv(this.rightPoints,e,tN);o<this.rightPoints.length;++o)if(this.rightPoints[o][1]!==e[1])break;else if(this.rightPoints[o]===e)return this.rightPoints.splice(o,1),1}return 0},tR.queryPoint=function(e,t){if(e<this.mid){if(this.left){var o=this.left.queryPoint(e,t);if(o)return o}return tE(this.leftPoints,e,t)}if(!(e>this.mid))return tI(this.leftPoints,t);if(this.right){var o=this.right.queryPoint(e,t);if(o)return o}return tb(this.rightPoints,e,t)},tR.queryInterval=function(e,t,o){if(e<this.mid&&this.left){var r=this.left.queryInterval(e,t,o);if(r)return r}if(t>this.mid&&this.right){var r=this.right.queryInterval(e,t,o);if(r)return r}return t<this.mid?tE(this.leftPoints,t,o):e>this.mid?tb(this.rightPoints,e,o):tI(this.leftPoints,o)};var tD=tA.prototype;tD.insert=function(e){this.root?this.root.insert(e):this.root=new tS(e[0],null,null,[e],[e])},tD.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},tD.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},tD.queryInterval=function(e,t,o){if(e<=t&&this.root)return this.root.queryInterval(e,t,o)},Object.defineProperty(tD,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(tD,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var tH=function(){function e(){eN(this,e),eF(this,"_columnSizeMap",{}),eF(this,"_intervalTree",new tA(null)),eF(this,"_leftMap",{})}return eH(e,[{key:"estimateTotalHeight",value:function(e,t,o){var r=e-this.count;return this.tallestColumnSize+Math.ceil(r/t)*o}},{key:"range",value:function(e,t,o){var r=this;this._intervalTree.queryInterval(e,e+t,function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,r,i,n,s=[],a=!0,l=!1;try{i=(t=t.call(e)).next,!1;for(;!(a=(o=i.call(t)).done)&&(s.push(o.value),3!==s.length);a=!0);}catch(e){l=!0,r=e}finally{try{if(!a&&null!=t.return&&(n=t.return(),Object(n)!==n))return}finally{if(l)throw r}}return s}}(e)||tm(e,3)||function(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
14
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}(),i=t[0],n=(t[1],t[2]);return o(n,r._leftMap[n],i)})}},{key:"setPosition",value:function(e,t,o,r){this._intervalTree.insert([o,o+r,e]),this._leftMap[e]=t;var i=this._columnSizeMap,n=i[t];void 0===n?i[t]=o+r:i[t]=Math.max(n,o+r)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e){var r=e[o];t=0===t?r:Math.min(t,r)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var o in e)t=Math.max(t,e[o]);return t}}]),e}();function tG(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}var tk=(I=b=function(e){function t(){eN(this,t);for(var e,o,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return eF(eG(o=ek(this,(e=eW(t)).call.apply(e,[this].concat(i)))),"state",{isScrolling:!1,scrollTop:0}),eF(eG(o),"_debounceResetIsScrollingId",void 0),eF(eG(o),"_invalidateOnUpdateStartIndex",null),eF(eG(o),"_invalidateOnUpdateStopIndex",null),eF(eG(o),"_positionCache",new tH),eF(eG(o),"_startIndex",null),eF(eG(o),"_startIndexMemoized",null),eF(eG(o),"_stopIndex",null),eF(eG(o),"_stopIndexMemoized",null),eF(eG(o),"_debounceResetIsScrollingCallback",function(){o.setState({isScrolling:!1})}),eF(eG(o),"_setScrollingContainerRef",function(e){o._scrollingContainer=e}),eF(eG(o),"_onScroll",function(e){var t=o.props.height,r=e.currentTarget.scrollTop,i=Math.min(Math.max(0,o._getEstimatedTotalHeight()-t),r);r===i&&(o._debounceResetIsScrolling(),o.state.scrollTop!==i&&o.setState({isScrolling:!0,scrollTop:i}))}),o}return eL(t,e),eH(t,[{key:"clearCellPositions",value:function(){this._positionCache=new tH,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 tH,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&&e3(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,o=this.props,r=o.autoHeight,i=o.cellCount,n=o.cellMeasurerCache,s=o.cellRenderer,a=o.className,l=o.height,h=o.id,c=o.keyMapper,d=o.overscanByPixels,u=o.role,p=o.style,f=o.tabIndex,m=o.width,g=o.rowDirection,_=this.state,v=_.isScrolling,S=_.scrollTop,R=[],y=this._getEstimatedTotalHeight(),T=this._positionCache.shortestColumnSize,C=this._positionCache.count,w=0;if(this._positionCache.range(Math.max(0,S-d),l+2*d,function(o,r,i){var a;void 0===e?(w=o,e=o):(w=Math.min(w,o),e=Math.max(e,o)),R.push(s({index:o,isScrolling:v,key:c(o),parent:t,style:(eF(a={height:n.getHeight(o)},"ltr"===g?"left":"right",r),eF(a,"position","absolute"),eF(a,"top",i),eF(a,"width",n.getWidth(o)),a)}))}),T<S+l+d&&C<i)for(var E=Math.min(i-C,Math.ceil((S+l+d-T)/n.defaultHeight*m/n.defaultWidth)),b=C;b<C+E;b++)e=b,R.push(s({index:b,isScrolling:v,key:c(b),parent:this,style:{width:n.getWidth(b)}}));return this._startIndex=w,this._stopIndex=e,A.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:eV("ReactVirtualized__Masonry",a),id:h,onScroll:this._onScroll,role:u,style:function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?tG(o,!0).forEach(function(t){eF(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tG(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({boxSizing:"border-box",direction:"ltr",height:r?"auto":l,overflowX:"hidden",overflowY:y<l?"hidden":"auto",position:"relative",width:m,WebkitOverflowScrolling:"touch",willChange:"transform"},p),tabIndex:f},A.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:y,maxWidth:"100%",maxHeight:y,overflow:"hidden",pointerEvents:v?"none":"",position:"relative"}},R))}},{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&&e3(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=e6(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,o=e.cellMeasurerCache,r=Math.max(1,Math.floor(e.width/o.defaultWidth));return this._positionCache.estimateTotalHeight(t,r,o.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,o=e.onScroll,r=this.state.scrollTop;this._onScrollMemoized!==r&&(o({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:r}),this._onScrollMemoized=r)}},{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,r=o.cellMeasurerCache,i=o.cellPositioner,n=e;n<=t;n++){var s=i(n),a=s.left,l=s.top;this._positionCache.setPosition(n,a,l,r.getHeight(n))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}]),t}(A.PureComponent),eF(b,"propTypes",null),I);function tW(){}eF(tk,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:tW,onScroll:tW,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"}),eU(tk);var tz=function(){function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eN(this,e),eF(this,"_cellMeasurerCache",void 0),eF(this,"_columnIndexOffset",void 0),eF(this,"_rowIndexOffset",void 0),eF(this,"columnWidth",function(e){var o=e.index;t._cellMeasurerCache.columnWidth({index:o+t._columnIndexOffset})}),eF(this,"rowHeight",function(e){var o=e.index;t._cellMeasurerCache.rowHeight({index:o+t._rowIndexOffset})});var r=o.cellMeasurerCache,i=o.columnIndexOffset,n=o.rowIndexOffset;this._cellMeasurerCache=r,this._columnIndexOffset=void 0===i?0:i,this._rowIndexOffset=void 0===n?0:n}return eH(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,r){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,o,r)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function tL(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function tF(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?tL(o,!0).forEach(function(t){eF(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tL(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var tP=function(e){function t(e,o){eN(this,t),eF(eG(r=ek(this,eW(t).call(this,e,o))),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),eF(eG(r),"_deferredInvalidateColumnIndex",null),eF(eG(r),"_deferredInvalidateRowIndex",null),eF(eG(r),"_bottomLeftGridRef",function(e){r._bottomLeftGrid=e}),eF(eG(r),"_bottomRightGridRef",function(e){r._bottomRightGrid=e}),eF(eG(r),"_cellRendererBottomLeftGrid",function(e){var t=e.rowIndex,o=eK(e,["rowIndex"]),i=r.props,n=i.cellRenderer,s=i.fixedRowCount;return t===i.rowCount-s?A.createElement("div",{key:o.key,style:tF({},o.style,{height:20})}):n(tF({},o,{parent:eG(r),rowIndex:t+s}))}),eF(eG(r),"_cellRendererBottomRightGrid",function(e){var t=e.columnIndex,o=e.rowIndex,i=eK(e,["columnIndex","rowIndex"]),n=r.props,s=n.cellRenderer,a=n.fixedColumnCount,l=n.fixedRowCount;return s(tF({},i,{columnIndex:t+a,parent:eG(r),rowIndex:o+l}))}),eF(eG(r),"_cellRendererTopRightGrid",function(e){var t=e.columnIndex,o=eK(e,["columnIndex"]),i=r.props,n=i.cellRenderer,s=i.columnCount,a=i.fixedColumnCount;return t===s-a?A.createElement("div",{key:o.key,style:tF({},o.style,{width:20})}):n(tF({},o,{columnIndex:t+a,parent:eG(r)}))}),eF(eG(r),"_columnWidthRightGrid",function(e){var t=e.index,o=r.props,i=o.columnCount,n=o.fixedColumnCount,s=o.columnWidth,a=r.state,l=a.scrollbarSize;return a.showHorizontalScrollbar&&t===i-n?l:"function"==typeof s?s({index:t+n}):s}),eF(eG(r),"_onScroll",function(e){var t=e.scrollLeft,o=e.scrollTop;r.setState({scrollLeft:t,scrollTop:o});var i=r.props.onScroll;i&&i(e)}),eF(eG(r),"_onScrollbarPresenceChange",function(e){var t=e.horizontal,o=e.size,i=e.vertical,n=r.state,s=n.showHorizontalScrollbar,a=n.showVerticalScrollbar;if(t!==s||i!==a){r.setState({scrollbarSize:o,showHorizontalScrollbar:t,showVerticalScrollbar:i});var l=r.props.onScrollbarPresenceChange;"function"==typeof l&&l({horizontal:t,size:o,vertical:i})}}),eF(eG(r),"_onScrollLeft",function(e){var t=e.scrollLeft;r._onScroll({scrollLeft:t,scrollTop:r.state.scrollTop})}),eF(eG(r),"_onScrollTop",function(e){var t=e.scrollTop;r._onScroll({scrollTop:t,scrollLeft:r.state.scrollLeft})}),eF(eG(r),"_rowHeightBottomGrid",function(e){var t=e.index,o=r.props,i=o.fixedRowCount,n=o.rowCount,s=o.rowHeight,a=r.state,l=a.scrollbarSize;return a.showVerticalScrollbar&&t===n-i?l:"function"==typeof s?s({index:t+i}):s}),eF(eG(r),"_topLeftGridRef",function(e){r._topLeftGrid=e}),eF(eG(r),"_topRightGridRef",function(e){r._topRightGrid=e});var r,i=e.deferredMeasurementCache,n=e.fixedColumnCount,s=e.fixedRowCount;return r._maybeCalculateCachedStyles(!0),i&&(r._deferredMeasurementCacheBottomLeftGrid=s>0?new tz({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:s}):i,r._deferredMeasurementCacheBottomRightGrid=n>0||s>0?new tz({cellMeasurerCache:i,columnIndexOffset:n,rowIndexOffset:s}):i,r._deferredMeasurementCacheTopRightGrid=n>0?new tz({cellMeasurerCache:i,columnIndexOffset:n,rowIndexOffset:0}):i),r}return eL(t,e),eH(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,r=e.rowIndex,i=void 0===r?0:r;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,i):i}},{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,r=e.rowIndex,i=void 0===r?0:r,n=this.props,s=n.fixedColumnCount,a=n.fixedRowCount,l=Math.max(0,o-s),h=Math.max(0,i-a);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:h}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:l,rowIndex:h}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:o,rowIndex:i}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:l,rowIndex:i}),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 r={};t>0&&(r.scrollLeft=t),o>0&&(r.scrollTop=o),this.setState(r)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,o=e.onSectionRendered,r=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),i=(e.scrollTop,e.scrollToRow),n=eK(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var s=this.state,a=s.scrollLeft,l=s.scrollTop;return A.createElement("div",{style:this._containerOuterStyle},A.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(n),this._renderTopRightGrid(tF({},n,{onScroll:t,scrollLeft:a}))),A.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(tF({},n,{onScroll:t,scrollTop:l})),this._renderBottomRightGrid(tF({},n,{onScroll:t,onSectionRendered:o,scrollLeft:a,scrollToColumn:r,scrollToRow:i,scrollTop:l}))))}},{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 r=0,i=0;i<t;i++)r+=o({index:i});this._leftGridWidth=r}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 r=0,i=0;i<t;i++)r+=o({index:i});this._topGridHeight=r}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,r=t.enableFixedColumnScroll,i=t.enableFixedRowScroll,n=t.height,s=t.fixedColumnCount,a=t.fixedRowCount,l=t.rowHeight,h=t.style,c=t.styleBottomLeftGrid,d=t.styleBottomRightGrid,u=t.styleTopLeftGrid,p=t.styleTopRightGrid,f=t.width,m=e||n!==this._lastRenderedHeight||f!==this._lastRenderedWidth,g=e||o!==this._lastRenderedColumnWidth||s!==this._lastRenderedFixedColumnCount,_=e||a!==this._lastRenderedFixedRowCount||l!==this._lastRenderedRowHeight;(e||m||h!==this._lastRenderedStyle)&&(this._containerOuterStyle=tF({height:n,overflow:"visible",width:f},h)),(e||m||_)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:f},this._containerBottomStyle={height:n-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:f}),(e||c!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=tF({left:0,overflowX:"hidden",overflowY:r?"auto":"hidden",position:"absolute"},c)),(e||g||d!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=tF({left:this._getLeftGridWidth(this.props),position:"absolute"},d)),(e||u!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=tF({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},u)),(e||g||p!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=tF({left:this._getLeftGridWidth(this.props),overflowX:i?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},p)),this._lastRenderedColumnWidth=o,this._lastRenderedFixedColumnCount=s,this._lastRenderedFixedRowCount=a,this._lastRenderedHeight=n,this._lastRenderedRowHeight=l,this._lastRenderedStyle=h,this._lastRenderedStyleBottomLeftGrid=c,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,r=e.fixedRowCount,i=e.rowCount,n=e.hideBottomLeftGridScrollbar,s=this.state.showVerticalScrollbar;if(!o)return null;var a=this._getBottomGridHeight(e),l=this._getLeftGridWidth(e),h=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,c=A.createElement(e8,ej({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:o,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:a,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,i-r)+ +!!s,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:n?l+h:l}));return n?A.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:tF({},this._bottomLeftGridStyle,{height:a,width:l,overflowY:"hidden"})},c):c}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,o=e.fixedColumnCount,r=e.fixedRowCount,i=e.rowCount,n=e.scrollToColumn,s=e.scrollToRow;return A.createElement(e8,ej({},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-r),rowHeight:this._rowHeightBottomGrid,scrollToColumn:n-o,scrollToRow:s-r,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,o=e.fixedRowCount;return t&&o?A.createElement(e8,ej({},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,r=e.fixedColumnCount,i=e.fixedRowCount,n=e.scrollLeft,s=e.hideTopRightGridScrollbar,a=this.state,l=a.showHorizontalScrollbar,h=a.scrollbarSize;if(!i)return null;var c=this._getTopGridHeight(e),d=this._getRightGridWidth(e),u=c,p=this._topRightGridStyle;s&&(u=c+(l?h:0),p=tF({},this._topRightGridStyle,{left:0}));var f=A.createElement(e8,ej({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-r)+ +!!l,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:u,onScroll:o?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:i,scrollLeft:n,style:p,tabIndex:null,width:d}));return s?A.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:tF({},this._topRightGridStyle,{height:c,width:d,overflowX:"hidden"})},f):f}}],[{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}(A.PureComponent);function tB(e){var t=e.className,o=e.columns,r=e.style;return A.createElement("div",{className:t,role:"row",style:r},o)}eF(tP,"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}),tP.propTypes={},eU(tP),function(e){function t(e,o){var r;return eN(this,t),(r=ek(this,eW(t).call(this,e,o))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},r._onScroll=r._onScroll.bind(eG(r)),r}return eL(t,e),eH(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.clientHeight,r=t.clientWidth,i=t.scrollHeight,n=t.scrollLeft,s=t.scrollTop,a=t.scrollWidth;return e({clientHeight:o,clientWidth:r,onScroll:this._onScroll,scrollHeight:i,scrollLeft:n,scrollTop:s,scrollWidth:a})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,o=e.clientWidth,r=e.scrollHeight,i=e.scrollLeft,n=e.scrollTop,s=e.scrollWidth;this.setState({clientHeight:t,clientWidth:o,scrollHeight:r,scrollLeft:i,scrollTop:n,scrollWidth:s})}}]),t}(A.PureComponent).propTypes={},tB.propTypes=null;let tZ="DESC";function tU(e){var t=e.sortDirection,o=eV("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":"ASC"===t,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===tZ});return A.createElement("svg",{className:o,width:18,height:18,viewBox:"0 0 24 24"},"ASC"===t?A.createElement("path",{d:"M7 14l5-5 5 5z"}):A.createElement("path",{d:"M7 10l5 5 5-5z"}),A.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function tj(e){var t=e.dataKey,o=e.label,r=e.sortBy,i=e.sortDirection,n=[A.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof o?o:null},o)];return r===t&&n.push(A.createElement(tU,{key:"SortIndicator",sortDirection:i})),n}function tV(e){var t=e.className,o=e.columns,r=e.index,i=e.key,n=e.onRowClick,s=e.onRowDoubleClick,a=e.onRowMouseOut,l=e.onRowMouseOver,h=e.onRowRightClick,c=e.rowData,d=e.style,u={"aria-rowindex":r+1};return(n||s||a||l||h)&&(u["aria-label"]="row",u.tabIndex=0,n&&(u.onClick=function(e){return n({event:e,index:r,rowData:c})}),s&&(u.onDoubleClick=function(e){return s({event:e,index:r,rowData:c})}),a&&(u.onMouseOut=function(e){return a({event:e,index:r,rowData:c})}),l&&(u.onMouseOver=function(e){return l({event:e,index:r,rowData:c})}),h&&(u.onContextMenu=function(e){return h({event:e,index:r,rowData:c})})),A.createElement("div",ej({},u,{className:t,key:i,role:"row",style:d}),o)}tU.propTypes={},tj.propTypes=null,tV.propTypes=null;var t$=function(e){function t(){return eN(this,t),ek(this,eW(t).apply(this,arguments))}return eL(t,e),t}(A.Component);function tY(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function tK(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?tY(o,!0).forEach(function(t){eF(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):tY(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}eF(t$,"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:"ASC",flexGrow:0,flexShrink:1,headerRenderer:tj,style:{}}),t$.propTypes={};var tq=function(e){function o(e){var t;return eN(this,o),(t=ek(this,eW(o).call(this,e))).state={scrollbarWidth:0},t._createColumn=t._createColumn.bind(eG(t)),t._createRow=t._createRow.bind(eG(t)),t._onScroll=t._onScroll.bind(eG(t)),t._onSectionRendered=t._onSectionRendered.bind(eG(t)),t._setRef=t._setRef.bind(eG(t)),t}return eL(o,e),eH(o,[{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=e.rowIndex;this.Grid&&this.Grid.recomputeGridSize({rowIndex:void 0===o?0:o,columnIndex:void 0===t?0:t})}},{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=t(this.Grid),o=e.clientWidth||0;return(e.offsetWidth||0)-o}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,r=t.className,i=t.disableHeader,n=t.gridClassName,s=t.gridStyle,a=t.headerHeight,l=t.headerRowRenderer,h=t.height,c=t.id,d=t.noRowsRenderer,u=t.rowClassName,p=t.rowStyle,f=t.scrollToIndex,m=t.style,g=t.width,_=this.state.scrollbarWidth,v="function"==typeof u?u({index:-1}):u,S="function"==typeof p?p({index:-1}):p;return this._cachedColumnStyles=[],A.Children.toArray(o).forEach(function(t,o){var r=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[o]=tK({overflow:"hidden"},r)}),A.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":A.Children.toArray(o).length,"aria-rowcount":this.props.rowCount,className:eV("ReactVirtualized__Table",r),id:c,role:"grid",style:m},!i&&l({className:eV("ReactVirtualized__Table__headerRow",v),columns:this._getHeaderColumns(),style:tK({height:a,overflow:"hidden",paddingRight:_,width:g},S)}),A.createElement(e8,ej({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:eV("ReactVirtualized__Table__Grid",n),cellRenderer:this._createRow,columnWidth:g,columnCount:1,height:i?h:h-a,id:void 0,noContentRenderer:d,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:_,scrollToRow:f,style:tK({},s,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,o=e.columnIndex,r=e.isScrolling,i=e.parent,n=e.rowData,s=e.rowIndex,a=this.props.onColumnClick,l=t.props,h=l.cellDataGetter,c=l.cellRenderer,d=l.className,u=l.columnData,p=l.dataKey,f=l.id,m=c({cellData:h({columnData:u,dataKey:p,rowData:n}),columnData:u,columnIndex:o,dataKey:p,isScrolling:r,parent:i,rowData:n,rowIndex:s}),g=this._cachedColumnStyles[o],_="string"==typeof m?m:null;return A.createElement("div",{"aria-colindex":o+1,"aria-describedby":f,className:eV("ReactVirtualized__Table__rowColumn",d),key:"Row"+s+"-Col"+o,onClick:function(e){a&&a({columnData:u,dataKey:p,event:e})},role:"gridcell",style:g,title:_},m)}},{key:"_createHeader",value:function(e){var t,o,r,i,n,s=e.column,a=e.index,l=this.props,h=l.headerClassName,c=l.headerStyle,d=l.onHeaderClick,u=l.sort,p=l.sortBy,f=l.sortDirection,m=s.props,g=m.columnData,_=m.dataKey,v=m.defaultSortDirection,S=m.disableSort,R=m.headerRenderer,y=m.id,T=m.label,C=!S&&u,w=eV("ReactVirtualized__Table__headerColumn",h,s.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:C}),E=this._getFlexStyleForColumn(s,tK({},c,{},s.props.headerStyle)),b=R({columnData:g,dataKey:_,disableSort:S,label:T,sortBy:p,sortDirection:f});if(C||d){var I=p!==_?v:f===tZ?"ASC":tZ,M=function(e){C&&u({defaultSortDirection:v,event:e,sortBy:_,sortDirection:I}),d&&d({columnData:g,dataKey:_,event:e})};n=s.props["aria-label"]||T||_,i="none",r=0,t=M,o=function(e){("Enter"===e.key||" "===e.key)&&M(e)}}return p===_&&(i="ASC"===f?"ascending":"descending"),A.createElement("div",{"aria-label":n,"aria-sort":i,className:w,id:y,key:"Header-Col"+a,onClick:t,onKeyDown:o,role:"columnheader",style:E,tabIndex:r},b)}},{key:"_createRow",value:function(e){var t=this,o=e.rowIndex,r=e.isScrolling,i=e.key,n=e.parent,s=e.style,a=this.props,l=a.children,h=a.onRowClick,c=a.onRowDoubleClick,d=a.onRowRightClick,u=a.onRowMouseOver,p=a.onRowMouseOut,f=a.rowClassName,m=a.rowGetter,g=a.rowRenderer,_=a.rowStyle,v=this.state.scrollbarWidth,S="function"==typeof f?f({index:o}):f,R="function"==typeof _?_({index:o}):_,y=m({index:o}),T=A.Children.toArray(l).map(function(e,i){return t._createColumn({column:e,columnIndex:i,isScrolling:r,parent:n,rowData:y,rowIndex:o,scrollbarWidth:v})}),C=eV("ReactVirtualized__Table__row",S),w=tK({},s,{height:this._getRowHeight(o),overflow:"hidden",paddingRight:v},R);return g({className:C,columns:T,index:o,isScrolling:r,key:i,onRowClick:h,onRowDoubleClick:c,onRowRightClick:d,onRowMouseOver:u,onRowMouseOut:p,rowData:y,style:w})}},{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"),r=tK({},t,{flex:o,msFlex:o,WebkitFlex:o});return e.props.maxWidth&&(r.maxWidth=e.props.maxWidth),e.props.minWidth&&(r.minWidth=e.props.minWidth),r}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,o=t.children;return(t.disableHeader?[]:A.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,r=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:o,scrollTop:r})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,o=e.rowOverscanStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:o,startIndex:r,stopIndex:i})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),o}(A.PureComponent);eF(tq,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:te,overscanRowCount:10,rowRenderer:tV,headerRowRenderer:tB,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),tq.propTypes={};var tX=[],tQ=null,tJ=null;function t0(){tJ&&(tJ=null,document.body&&null!=tQ&&(document.body.style.pointerEvents=tQ),tQ=null)}function t1(){t0(),tX.forEach(function(e){return e.__resetIsScrolling()})}function t2(e){var t;e.currentTarget===window&&null==tQ&&document.body&&(tQ=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),tJ&&e3(tJ),t=0,tX.forEach(function(e){t=Math.max(t,e.props.scrollingResetTimeInterval)}),tJ=e6(t1,t),tX.forEach(function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()})}function t5(e,t){tX.some(function(e){return e.props.scrollElement===t})||t.addEventListener("scroll",t2),tX.push(e)}function t3(e,t){!(tX=tX.filter(function(t){return t!==e})).length&&(t.removeEventListener("scroll",t2),tJ&&(e3(tJ),t0()))}var t6=function(e){return e===window},t4=function(e){return e.getBoundingClientRect()};function t9(e,t){if(!e)return{height:t.serverHeight,width:t.serverWidth};if(!t6(e))return t4(e);var o=window,r=o.innerHeight,i=o.innerWidth;return{height:"number"==typeof r?r:0,width:"number"==typeof i?i:0}}function t7(e){return t6(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 t8(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}var oe=function(){return"u">typeof window?window:void 0},ot=(O=M=function(e){function o(){eN(this,o);for(var e,t,r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];return eF(eG(t=ek(this,(e=eW(o)).call.apply(e,[this].concat(i)))),"_window",oe()),eF(eG(t),"_isMounted",!1),eF(eG(t),"_positionFromTop",0),eF(eG(t),"_positionFromLeft",0),eF(eG(t),"_detectElementResize",void 0),eF(eG(t),"_child",void 0),eF(eG(t),"state",function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?t8(o,!0).forEach(function(t){eF(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t8(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({},t9(t.props.scrollElement,t.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),eF(eG(t),"_registerChild",function(e){e&&Element,t._child=e,t.updatePosition()}),eF(eG(t),"_onChildScroll",function(e){var o=e.scrollTop;if(t.state.scrollTop!==o){var r=t.props.scrollElement;r&&("function"==typeof r.scrollTo?r.scrollTo(0,o+t._positionFromTop):r.scrollTop=o+t._positionFromTop)}}),eF(eG(t),"_registerResizeListener",function(e){e===window?window.addEventListener("resize",t._onResize,!1):t._detectElementResize.addResizeListener(e,t._onResize)}),eF(eG(t),"_unregisterResizeListener",function(e){e===window?window.removeEventListener("resize",t._onResize,!1):e&&t._detectElementResize.removeResizeListener(e,t._onResize)}),eF(eG(t),"_onResize",function(){t.updatePosition()}),eF(eG(t),"__handleWindowScrollEvent",function(){if(t._isMounted){var e=t.props.onScroll,o=t.props.scrollElement;if(o){var r=t7(o),i=Math.max(0,r.left-t._positionFromLeft),n=Math.max(0,r.top-t._positionFromTop);t.setState({isScrolling:!0,scrollLeft:i,scrollTop:n}),e({scrollLeft:i,scrollTop:n})}}}),eF(eG(t),"__resetIsScrolling",function(){t.setState({isScrolling:!1})}),t}return eL(o,e),eH(o,[{key:"updatePosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,o=this.props.onResize,r=this.state,i=r.height,n=r.width,s=this._child||t(this);if(s instanceof Element&&e){var a=function(e,t){if(t6(t)&&document.documentElement){var o=document.documentElement,r=t4(e),i=t4(o);return{top:r.top-i.top,left:r.left-i.left}}var n=t7(t),s=t4(e),a=t4(t);return{top:s.top+n.top-a.top,left:s.left+n.left-a.left}}(s,e);this._positionFromTop=a.top,this._positionFromLeft=a.left}var l=t9(e,this.props);(i!==l.height||n!==l.width)&&(this.setState({height:l.height,width:l.width}),o({height:l.height,width:l.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=tr(),this.updatePosition(e),e&&(t5(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var o=this.props.scrollElement,r=e.scrollElement;r!==o&&null!=r&&null!=o&&(this.updatePosition(o),t3(this,r),t5(this,o),this._unregisterResizeListener(r),this._registerResizeListener(o))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(t3(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,o=t.isScrolling,r=t.scrollTop,i=t.scrollLeft,n=t.height,s=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:n,isScrolling:o,scrollLeft:i,scrollTop:r,width:s})}}]),o}(A.PureComponent),eF(M,"propTypes",null),O);eF(ot,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:oe(),serverHeight:0,serverWidth:0});var oo=n(615),or=function(){return(or=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},oi={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},on={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},os={width:"20px",height:"20px",position:"absolute",zIndex:1},oa={top:or(or({},oi),{top:"-5px"}),right:or(or({},on),{left:void 0,right:"-5px"}),bottom:or(or({},oi),{top:void 0,bottom:"-5px"}),left:or(or({},on),{left:"-5px"}),topRight:or(or({},os),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:or(or({},os),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:or(or({},os),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:or(or({},os),{left:"-10px",top:"-10px",cursor:"nw-resize"})},ol=(0,A.memo)(function(e){var t=e.onResizeStart,o=e.direction,r=e.children,i=e.replaceStyles,n=e.className,s=(0,A.useCallback)(function(e){t(e,o)},[t,o]),a=(0,A.useCallback)(function(e){t(e,o)},[t,o]),l=(0,A.useMemo)(function(){return or(or({position:"absolute",userSelect:"none"},oa[o]),null!=i?i:{})},[i,o]);return(0,oo.jsx)("div",{className:n||void 0,style:l,onMouseDown:s,onTouchStart:a,children:r})}),oh=(l=function(e,t){return(l=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)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),oc=function(){return(oc=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},od={width:"auto",height:"auto"},ou=function(e,t,o){return Math.max(Math.min(e,o),t)},op=function(e,t,o){var r=Math.round(e/t);return r*t+o*(r-1)},of=function(e,t){return RegExp(e,"i").test(t)},om=function(e){return!!(e.touches&&e.touches.length)},og=function(e,t,o){void 0===o&&(o=0);var r=t.reduce(function(o,r,i){return Math.abs(r-e)<Math.abs(t[o]-e)?i:o},0),i=Math.abs(t[r]-e);return 0===o||i<o?t[r]:e},o_=function(e){return"auto"===(e=e.toString())||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},ov=function(e,t,o,r){if(e&&"string"==typeof e){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var i=Number(e.replace("%",""))/100;return t*i}if(e.endsWith("vw")){var i=Number(e.replace("vw",""))/100;return o*i}if(e.endsWith("vh")){var i=Number(e.replace("vh",""))/100;return r*i}}return e},oS=["as","ref","style","className","grid","gridGap","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"],oR="__resizable_base__",oy=function(e){function t(t){var o,r,i,n,s=e.call(this,t)||this;return s.ratio=1,s.resizable=null,s.parentLeft=0,s.parentTop=0,s.resizableLeft=0,s.resizableRight=0,s.resizableTop=0,s.resizableBottom=0,s.targetLeft=0,s.targetTop=0,s.delta={width:0,height:0},s.appendBase=function(){if(!s.resizable||!s.window)return null;var e=s.parentNode;if(!e)return null;var t=s.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 0 100%",t.classList?t.classList.add(oR):t.className+=oR,e.appendChild(t),t},s.removeBase=function(e){var t=s.parentNode;t&&t.removeChild(e)},s.state={isResizing:!1,width:null!=(r=null==(o=s.propsSize)?void 0:o.width)?r:"auto",height:null!=(n=null==(i=s.propsSize)?void 0:i.height)?n:"auto",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},s.onResizeStart=s.onResizeStart.bind(s),s.onMouseMove=s.onMouseMove.bind(s),s.onMouseUp=s.onMouseUp.bind(s),s}return oh(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||od},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,r=this.resizable.offsetHeight,i=this.resizable.style.position;"relative"!==i&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:o,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=i}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){var o;if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&(null==(o=e.propsSize[t])?void 0:o.toString().endsWith("%"))){if(e.state[t].toString().endsWith("%"))return e.state[t].toString();var r=e.getParentSize(),i=Number(e.state[t].toString().replace("px",""))/r[t]*100;return"".concat(i,"%")}return o_(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?o_(t.width):o("width"),height:t&&void 0!==t.height&&!this.state.isResizing?o_(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%",e.style.minHeight="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=o),this.removeBase(e),r},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)?"auto":e},t.prototype.calculateNewMaxFromBoundary=function(e,t){var o,r,i=this.props.boundsByDirection,n=this.state.direction,s=i&&of("left",n),a=i&&of("top",n);if("parent"===this.props.bounds){var l=this.parentNode;l&&(o=s?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),r=a?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(o=s?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(o=s?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return o&&Number.isFinite(o)&&(e=e&&e<o?e:o),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var o,r=this.props.scale||1,i=Array.isArray(o=this.props.resizeRatio||1)?o:[o,o],n=i[0],s=i[1],a=this.state,l=a.direction,h=a.original,c=this.props,d=c.lockAspectRatio,u=c.lockAspectRatioExtraHeight,p=c.lockAspectRatioExtraWidth,f=h.width,m=h.height,g=u||0,_=p||0;return of("right",l)&&(f=h.width+(e-h.x)*n/r,d&&(m=(f-_)/this.ratio+g)),of("left",l)&&(f=h.width-(e-h.x)*n/r,d&&(m=(f-_)/this.ratio+g)),of("bottom",l)&&(m=h.height+(t-h.y)*s/r,d&&(f=(m-g)*this.ratio+_)),of("top",l)&&(m=h.height-(t-h.y)*s/r,d&&(f=(m-g)*this.ratio+_)),{newWidth:f,newHeight:m}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,o,r){var i=this.props,n=i.lockAspectRatio,s=i.lockAspectRatioExtraHeight,a=i.lockAspectRatioExtraWidth,l=void 0===r.width?10:r.width,h=void 0===o.width||o.width<0?e:o.width,c=void 0===r.height?10:r.height,d=void 0===o.height||o.height<0?t:o.height,u=s||0,p=a||0;if(n){var f=(c-u)*this.ratio+p,m=(d-u)*this.ratio+p,g=(l-p)/this.ratio+u,_=(h-p)/this.ratio+u,v=Math.max(c,g),S=Math.min(d,_);e=ou(e,Math.max(l,f),Math.min(h,m)),t=ou(t,v,S)}else e=ou(e,l,h),t=ou(t,c,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){var e=1/(this.props.scale||1);if("parent"===this.props.bounds){var t=this.parentNode;if(t){var o=t.getBoundingClientRect();this.parentLeft=o.left*e,this.parentTop=o.top*e}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var r=this.props.bounds.getBoundingClientRect();this.targetLeft=r.left*e,this.targetTop=r.top*e}if(this.resizable){var i=this.resizable.getBoundingClientRect(),n=i.left,s=i.top,a=i.right,l=i.bottom;this.resizableLeft=n*e,this.resizableRight=a*e,this.resizableTop=s*e,this.resizableBottom=l*e}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var o,r,i=0,n=0;if(e.nativeEvent&&((o=e.nativeEvent).clientX||0===o.clientX)&&(o.clientY||0===o.clientY)?(i=e.nativeEvent.clientX,n=e.nativeEvent.clientY):e.nativeEvent&&om(e.nativeEvent)&&(i=e.nativeEvent.touches[0].clientX,n=e.nativeEvent.touches[0].clientY),!this.props.onResizeStart||!this.resizable||!1!==this.props.onResizeStart(e,t,this.resizable)){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 s=this.window.getComputedStyle(this.resizable);if("auto"!==s.flexBasis){var a=this.parentNode;if(a){var l=this.window.getComputedStyle(a).flexDirection;this.flexDir=l.startsWith("row")?"row":"column",r=s.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var h={original:{x:i,y:n,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:oc(oc({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:r};this.setState(h)}}},t.prototype.onMouseMove=function(e){var t=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&om(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var r,i,n,s,a,l,h=this.props,c=h.maxWidth,d=h.maxHeight,u=h.minWidth,p=h.minHeight,f=om(e)?e.touches[0].clientX:e.clientX,m=om(e)?e.touches[0].clientY:e.clientY,g=this.state,_=g.direction,v=g.original,S=g.width,R=g.height,y=this.getParentSize(),T=(r=this.window.innerWidth,i=this.window.innerHeight,n=c,s=d,a=u,l=p,n=ov(n,y.width,r,i),s=ov(s,y.height,r,i),a=ov(a,y.width,r,i),l=ov(l,y.height,r,i),{maxWidth:void 0===n?void 0:Number(n),maxHeight:void 0===s?void 0:Number(s),minWidth:void 0===a?void 0:Number(a),minHeight:void 0===l?void 0:Number(l)});c=T.maxWidth,d=T.maxHeight,u=T.minWidth,p=T.minHeight;var C=this.calculateNewSizeFromDirection(f,m),w=C.newHeight,E=C.newWidth,b=this.calculateNewMaxFromBoundary(c,d);this.props.snap&&this.props.snap.x&&(E=og(E,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(w=og(w,this.props.snap.y,this.props.snapGap));var I=this.calculateNewSizeFromAspectRatio(E,w,{width:b.maxWidth,height:b.maxHeight},{width:u,height:p});if(E=I.newWidth,w=I.newHeight,this.props.grid){var M=op(E,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),O=op(w,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),N=this.props.snapGap||0,x=0===N||Math.abs(M-E)<=N?M:E,A=0===N||Math.abs(O-w)<=N?O:w;E=x,w=A}var D={width:E-v.width,height:w-v.height};if(this.delta=D,S&&"string"==typeof S){if(S.endsWith("%")){var H=E/y.width*100;E="".concat(H,"%")}else if(S.endsWith("vw")){var G=E/this.window.innerWidth*100;E="".concat(G,"vw")}else if(S.endsWith("vh")){var k=E/this.window.innerHeight*100;E="".concat(k,"vh")}}if(R&&"string"==typeof R){if(R.endsWith("%")){var H=w/y.height*100;w="".concat(H,"%")}else if(R.endsWith("vw")){var G=w/this.window.innerWidth*100;w="".concat(G,"vw")}else if(R.endsWith("vh")){var k=w/this.window.innerHeight*100;w="".concat(k,"vh")}}var W={width:this.createSizeForCssProperty(E,"width"),height:this.createSizeForCssProperty(w,"height")};"row"===this.flexDir?W.flexBasis=W.width:"column"===this.flexDir&&(W.flexBasis=W.height);var z=this.state.width!==W.width,L=this.state.height!==W.height,F=this.state.flexBasis!==W.flexBasis,P=z||L||F;P&&o(function(){t.setState(W)}),this.props.onResize&&P&&this.props.onResize(e,_,this.resizable,D)}},t.prototype.onMouseUp=function(e){var t,o,r=this.state,i=r.isResizing,n=r.direction;r.original,i&&this.resizable&&(this.props.onResizeStop&&this.props.onResizeStop(e,n,this.resizable,this.delta),this.props.size&&this.setState({width:null!=(t=this.props.size.width)?t:"auto",height:null!=(o=this.props.size.height)?o:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:oc(oc({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(e){var t,o;this.setState({width:null!=(t=e.width)?t:"auto",height:null!=(o=e.height)?o:"auto"})},t.prototype.renderResizer=function(){var e=this,t=this.props,o=t.enable,r=t.handleStyles,i=t.handleClasses,n=t.handleWrapperStyle,s=t.handleWrapperClass,a=t.handleComponent;if(!o)return null;var l=Object.keys(o).map(function(t){return!1!==o[t]?(0,oo.jsx)(ol,{direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:i&&i[t],children:a&&a[t]?a[t]:null},t):null});return(0,oo.jsx)("div",{className:s,style:n,children:l})},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce(function(t,o){return -1!==oS.indexOf(o)||(t[o]=e.props[o]),t},{}),o=oc(oc(oc({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 r=this.props.as||"div";return(0,oo.jsxs)(r,oc({style:o,className:this.props.className},t,{ref:function(t){t&&(e.resizable=t)},children:[this.state.isResizing&&(0,oo.jsx)("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],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(A.PureComponent);let oT={top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},oC={min:0,max:1/0},ow=({height:e,heightConstraints:t,width:o,widthConstraints:r})=>({height:(0,ev.q)(e,t.min,t.max),width:(0,ev.q)(o,r.min,r.max)}),oE=({enable:e,height:t,heightConstraints:o,resizeEdge:r,width:i,widthConstraints:n})=>({...ow({height:t,widthConstraints:n,heightConstraints:o,width:i??0}),enable:void 0===e||e,horizontal:"left"===r||"right"===r,initialHeight:t,initialWidth:i??0,resizing:!1,vertical:"top"===r||"bottom"===r});class ob extends A.PureComponent{static defaultProps={className:"",enable:!0,heightConstraints:oC,resizeContentClassName:"",resizeHandleClassName:"",style:{},wrapperStyle:{},translate:()=>"",wrapChildrenInDivContainer:!0,widthConstraints:oC};constructor(e){super(e),this.state=oE(e)}static getDerivedStateFromProps(e,t){return t.resizing?t:oE(e)}componentDidUpdate(e){let{onResizeFromPropChange:t}=this.props,{height:o,resizing:r,width:i}=this.state,{onResizeFromPropChange:n}=e;if(r)return;let{height:s,width:a}=this.state,l=n||t;l&&(s!==o||a!==i)&&l({height:s,width:a,originalHeight:o,originalWidth:i})}_onResize=(e,t,o,{height:r,width:i})=>{let{onResize:n}=this.props,{height:s,horizontal:a,vertical:l,width:h}=this.state,{height:c,width:d}=(({deltaWidth:e,deltaHeight:t},{heightConstraints:o,widthConstraints:r},{initialHeight:i,initialWidth:n})=>ow({height:i+t,heightConstraints:o,width:n+e,widthConstraints:r}))({deltaWidth:i,deltaHeight:r},this.props,this.state),u=a&&d!==h,p=l&&c!==s;(u||p)&&(this.setState({height:p?c:s,width:u?d:h}),n&&n({height:p?c:void 0,width:u?d:void 0}))};_onResizeStart=e=>{e.preventDefault(),e.stopPropagation();let{onResizeStart:t}=this.props,{height:o,horizontal:r,vertical:i,width:n}=this.state;this.setState({resizing:!0}),t&&t({height:i?o:void 0,width:r?n:void 0})};_onResizeEnd=()=>{let{onResizeEnd:e}=this.props,{height:t,horizontal:o,vertical:r,width:i,initialWidth:n,initialHeight:s}=this.state;this.setState({initialWidth:i,initialHeight:t,resizing:!1}),(n!==i||s!==t)&&e&&e({width:o?i:void 0,height:r?t:void 0})};render(){let{children:e,className:t,handleStyles:o,id:r,resizeContentClassName:i,resizeEdge:n,resizeHandleClassName:s,style:a,translate:l,heightConstraints:h,wrapChildrenInDivContainer:c,widthConstraints:d}=this.props,{enable:u,height:p,horizontal:f,resizing:m,vertical:g,width:_}=this.state,{display:v,...S}=a,{min:R,max:y}=d,{min:T,max:C}=h,w={...this.props.wrapperStyle};f&&(w.width=_,w.minWidth=_),g&&(w.height=p,w.minHeight=p);let E=x()("resizable",t,{resizing:m}),b=x()("contents",i,`resize-edge-${n}`,{horizontal:f,vertical:g}),I=x()(n,s,"resizable-handle",{horizontal:f,vertical:g}),M=A.createElement("span",{title:l("ResizePanel")});return A.createElement("div",{"data-testid":`resizable-${r||""}`,style:{...w,display:v}},A.createElement(oy,{className:E,"data-testid":`resizable-core-${r||""}`,enable:{...oT,[n]:u},handleClasses:{[n]:I},handleComponent:{[n]:M},handleStyles:o,maxHeight:g?C:void 0,maxWidth:f?y:void 0,minHeight:g?T:void 0,minWidth:f?R:void 0,onResize:this._onResize,onResizeStart:this._onResizeStart,onResizeStop:this._onResizeEnd,size:{height:g?p:"100%",width:f?_:"100%"},style:S},c?A.createElement("div",{className:b,style:{userSelect:"none"}},e):e))}}var oI=n(385),oM=n(999);let oO=x()("absolute","top-0","right-0","bottom-0","left-0","time-line"),oN=x()(oO,"z2");var ox=function({z2:e}){return A.createElement("div",{className:e?oN:oO,style:{height:2}})};function oA({message:e}){return A.default.createElement("span",{className:"time-line-message-container"},A.default.createElement("span",{className:"time-line-message"},e))}let oD=x()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative"),oH=x()("graph-row","height-100-percent","flex");function oG(e){let t,o,r,i=(0,oM.c)(16),{processedRows:n,scrollTop:s,translate:a}=e;if(i[0]!==n){t=[];for(let e=0;e<n.length;e++){let o=n[e];o.timeLineEntry&&t.push({row:o,index:e,position:e*V.yB})}i[0]=n,i[1]=t}else t=i[1];let l=t;e:{let e,t,r;if(!l.length){o=null;break e}if(i[2]!==s||i[3]!==l){for(let o of l)if(o.position<=s)e=o.row;else{t=o;break}i[2]=s,i[3]=l,i[4]=e,i[5]=t}else e=i[4],t=i[5];if(t&&t.position-s<=V.yB/2&&(e=t.row),!e){o=null;break e}let{label:n,value:h}=e.timeLineEntry;i[6]!==n||i[7]!==a||i[8]!==h?(r=a(n,h),i[6]=n,i[7]=a,i[8]=h,i[9]=r):r=i[9],o=r}let h=o;if(null==h||s<V.yB)return null;if(i[10]!==h){let e,t,o,n;i[12]===Symbol.for("react.memo_cache_sentinel")?(e={className:"sticky-timeline-container"},i[12]=e):e=i[12],i[13]===Symbol.for("react.memo_cache_sentinel")?(t={className:oD},o=A.default.createElement(ox,null),i[13]=t,i[14]=o):(t=i[13],o=i[14]),i[15]===Symbol.for("react.memo_cache_sentinel")?(n={className:oH},i[15]=n):n=i[15],r=A.default.createElement("div",e,A.default.createElement("div",t,o,A.default.createElement("div",n,A.default.createElement(oA,{message:h})))),i[10]=h,i[11]=r}else r=i[11];return r}let ok={head:"head",localBranches:"branch",remoteBranches:"remote",tags:"tag",stashes:"stash",pullRequests:"pull-request",upstream:"upstream-ahead",wip:"worktree"},oW={head:8,tags:7,localBranches:6,remoteBranches:5,pullRequests:4,stashes:3,upstream:2,wip:1};function oz(e){return e.slice().sort((e,t)=>(oW[t.type]??0)-(oW[e.type]??0))}function oL(e,t,o){let r=t*V.yB,{shape:i}=V.wx[e],n=V.j[i];if(!n)return{height:0,offset:0};let{baseHeight:s,minHeight:a,maxHeight:l}=n,h=o/r*s;void 0!==a&&h<a&&(h=a),void 0!==l&&h>l&&(h=l);let c=V.yB*(o/r),d=h>=c?0:(c-h)/2;return{height:h,offset:d}}function oF(e,t,o){let r=o*V.yB;return e*V.yB/r*t}function oP(e,t,o){let r=o*V.yB;if(r<=t||t<=0)return null;let i=Math.max(12,t/r*t),n=r-t,s=t-i,a=n>0?Math.max(0,Math.min(s,e/n*s)):0,l=Math.min(6,i/2-1);return{top:a+l,bottom:a+i-l}}class oB extends A.PureComponent{canvas;state={hovered:null};memoMarkersByRow={};componentDidMount(){this.updateCanvas()}componentDidUpdate(e){if((e.branchUpstreamRowIndices!==this.props.branchUpstreamRowIndices||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||e.scrollWidth!==this.props.scrollWidth||e.scrollTop!==this.props.scrollTop)&&this.updateCanvas(),(e.interactiveMarkers!==this.props.interactiveMarkers||e.enabledScrollMarkerTypes!==this.props.enabledScrollMarkerTypes||e.branchUpstreamRowIndices!==this.props.branchUpstreamRowIndices)&&null!=this.state.hovered){let{markersByRow:e}=this.getMarkersByRowMemo();e.has(this.state.hovered.rowIndex)||this.setState({hovered:null})}if((e.scrollTop!==this.props.scrollTop||e.viewportHeight!==this.props.viewportHeight||e.totalRows!==this.props.totalRows)&&null!=this.state.hovered){let e=oP(this.props.scrollTop,this.props.viewportHeight,this.props.totalRows);null!=e&&this.state.hovered.tooltipTop>=e.top&&this.state.hovered.tooltipTop<=e.bottom&&this.setState({hovered:null})}}updateCanvas(e){let{branchUpstreamRowIndices:t,enabledScrollMarkerTypes:o,viewportHeight:r,markerRowIndices:i,markerColors:n,scrollTop:s,scrollWidth:a,totalRows:l}=e||this.props;if(null==this.canvas)return;let h=this.canvas.getContext("2d");h.canvas.width=a,h.canvas.height=r;let c=a/V.Yx,d=oP(s,r,l);for(let[e,s]of(h.clearRect(0,0,h.canvas.width,h.canvas.height),Object.entries(V.wx))){if(!o.includes(e)&&!("remoteBranches"===e&&o.includes("localBranches")))continue;let a="remoteBranches"!==e||o.includes("remoteBranches")?i[e]||[]:t,u=n[e],p=s.lanes;if(!u||!a.length||!p.length)continue;let{height:f,offset:m}=oL(e,l,r);if(f<=0)continue;let g=p[0]*c,_=c*p.length;h.fillStyle=u;let v=-1/0;for(let e of a){let t=oF(e,r,l)+m,o=t-.5*f;o<v||(h.globalAlpha=null!=d&&t>=d.top&&t<=d.bottom?.35:1,h.fillRect(g,o,_,f),v=o+f)}}h.globalAlpha=1}setHoveredRow(e,t){let o=this.state.hovered;if(o?.rowIndex===e)return;let{totalRows:r,viewportHeight:i}=this.props,n=oz(t),s=function(e,t,o,r){let{offset:i}=oL(e[0].type,r,o);return oF(t,o,r)+i}(n,e,i,r),a=this.pickRowColor(n);this.setState({hovered:{rowIndex:e,markers:n,tooltipTop:s,color:a}})}pickRowColor(e){let t=e[0].type;return this.props.markerColors[t]??"var(--text-normal, #ccc)"}clearHoveredIfRow(e){this.state.hovered?.rowIndex===e&&this.setState({hovered:null})}onRowHitMove=(e,t)=>{this.setHoveredRow(e,t)};onRowHitClick=(e,t)=>{let o=oz(t)[0];this.props.onMarkerClick?.(o.sha,e,o.type)};getMarkersByRowMemo(){let{interactiveMarkers:e,enabledScrollMarkerTypes:t,branchUpstreamRowIndices:o}=this.props,r=this.memoMarkersByRow;if(r.interactiveMarkers===e&&r.enabledScrollMarkerTypes===t&&r.branchUpstreamRowIndices===o&&null!=r.result&&null!=r.upstreamSet)return{upstreamSet:r.upstreamSet,markersByRow:r.result};let i=new Set(o),n=new Map;if(null!=e)for(let o of e){if(!(t.includes(o.type)||"remoteBranches"===o.type&&t.includes("localBranches")&&i.has(o.rowIndex)))continue;let e=n.get(o.rowIndex);null!=e?e.push(o):n.set(o.rowIndex,[o])}return r.interactiveMarkers=e,r.enabledScrollMarkerTypes=t,r.branchUpstreamRowIndices=o,r.upstreamSet=i,r.result=n,{upstreamSet:i,markersByRow:n}}render(){let{interactiveMarkers:e,scrollWidth:t,totalRows:o,viewportHeight:r}=this.props,{hovered:i}=this.state,n=(e?.length??0)>0&&null!=this.props.onMarkerClick,s=t??0,a=s>0?s/V.Yx:0,{markersByRow:l}=this.getMarkersByRowMemo(),h=null!=i&&l.has(i.rowIndex),c=null;if(null!=i&&h&&s>0&&o>0&&r>0){let e=o*V.yB,t=V.yB*(r/e),n=Math.max(t,4),a=oF(i.rowIndex,r,o)+t/2;c=A.createElement("div",{className:"graph-scroll-marker-hover",style:{top:a-n/2,height:n,left:-3,width:s+3,background:i.color}})}let d=oP(this.props.scrollTop,r,o),u=null;if(n&&o>0&&r>0&&a>0){let e=new Map,t=t=>{let i=e.get(t);return null==i&&(i=oL(t,o,r),e.set(t,i)),i};for(let[e,i]of(u=[],l)){let n=oF(e,r,o),a=1/0,l=-1/0;for(let e of i){let{height:o,offset:r}=t(e.type);if(0===o)continue;let i=n+r;i-o/2<a&&(a=i-o/2),i+o/2>l&&(l=i+o/2)}if(a===1/0)continue;let h=(a+l)/2;if(null!=d&&h>=d.top&&h<=d.bottom)continue;let c=a-3,p=l-a+6;u.push(A.createElement("div",{className:"graph-scroll-marker-hit",key:`row-${e}`,onClick:()=>this.onRowHitClick(e,i),onMouseLeave:()=>this.clearHoveredIfRow(e),onMouseMove:()=>this.onRowHitMove(e,i),style:{top:c,height:p,left:0,width:s}}))}}return A.createElement("div",{className:"graph-scroll-markers-root",style:{width:t,height:r}},A.createElement("canvas",{className:"graph-scroll-markers",ref:e=>{this.canvas=e}}),c,u,null!=i&&h&&A.createElement("div",{className:"graph-scroll-marker-tooltip",style:{top:i.tooltipTop}},i.markers.map((e,t)=>{let o=ok[e.type],r=null!=o?this.props.getExternalIcon?.(o):null;return A.createElement("div",{className:"graph-scroll-marker-tooltip__row",key:`${e.type}-${t}`},null!=r&&A.createElement("span",{className:"graph-scroll-marker-tooltip__icon"},r),A.createElement("span",{className:"graph-scroll-marker-tooltip__label"},e.label))})))}}var oZ=function({children:t,className:o,height:r,heightAdjustment:i,graphZoneType:n,scrollTop:s,style:a}){let l=V.W[n].listId,h=document.getElementById(l),c=h?.scrollHeight||0,d=r-28;void 0!==s&&(d=Number(a.top)-s,h&&c-r-s<0&&(d=r-i-28));let u={top:d,zIndex:2},p=A.createElement("span",{className:"absolute",style:u},t);return A.createElement("div",{className:o,style:a},h?e.createPortal(p,document.getElementById("graph-container")):p)};function oU({inline:e,getExternalIcon:t,message:o,size:r=100,useSimpleSpinner:i}){let n=x()("loading-spinner",{"inline-block":e,ml2:e,"shrink-0":e}),s=x()("spinner","mr1",{"inline-block":e}),a={height:r,width:r},l=x()("message",{"inline-block":e,mx2:e}),h=i?A.createElement("span",{className:s,style:a},t("loading")):A.createElement("div",{className:s,style:a},A.createElement("img",{className:"ring outer",src:"../../../images/spinner-outer-ring.svg",style:a}),A.createElement("img",{className:"ring inner",src:"../../../images/spinner-inner-ring.svg",style:a}),A.createElement("img",{className:"bg-img",src:"../../../images/spinner-kraken.svg",style:a}));return A.createElement("div",{className:n},h,o&&A.createElement("div",{className:l},o))}class oj extends A.Component{render(){let{currentCommits:e,customFooterRow:t,graphZoneType:o,hasMoreCommits:r,height:i,horizontalScrollHeight:n,getExternalIcon:s,isLoadingRows:a,scrollTop:l,style:h,translate:c}=this.props,d=A.createElement(oU,{className:"loading-spinner",getExternalIcon:s,size:20,useSimpleSpinner:!0}),u=A.createElement("div",{className:"flex items-center"},A.createElement("span",{style:{paddingRight:"5px"}},d)),p=0!==(e>0?e:0)||r?t:A.createElement(A.Fragment,null,c("Graph-NoCommits")),f=A.createElement("div",{className:"graph-adjust-commit-count p1"},a?u:p);return A.createElement(oZ,{graphZoneType:o,height:i,heightAdjustment:n,scrollTop:l,style:h},f)}}function oV({branchUpstreamRowIndices:e,rowCount:t,cellRenderersByIds:o,columnIndex:r,customFooterRow:i,enabledScrollMarkerTypes:n,enableResizer:s,getExternalIcon:a,getKeyForCell:l,graphHeight:h,graphWidth:c,graphZoneType:d,graphZones:u,hasMoreCommits:p,horizontalScrollHeight:f,isFilteredSearch:m,isLoadingRows:g,markerColors:_,markerRowIndices:v,interactiveScrollMarkers:S,onScrollMarkerClicked:R,onResize:y,onResizeEnd:T,onResizeFromPropChange:C,onScroll:w,onScrollToRowCausedUpdate:E,onZoneEnter:b,processedRows:I,scrollLeft:M,scrollToAlignment:O,scrollToIndex:N,scrollTop:D,smartCellRangeRenderer:H,stickyTimeline:G,translate:k,verticalScrollWidth:W}){let z=(0,A.useRef)(null),L=(0,ea.Et)(d,u);if(!L)return null;let F=(0,ea.z)(d,u),P=(0,ea.Yy)(t,p,g),B=(0,ea.yJ)(t,p,g),Z=(0,ea.U0)(L,t),U=(0,ea.Ve)(t,p,g),j=W>0,$=!m&&n.length>0,Y=x()("graph-panel","react-virtualized-list","pad-for-horizontal-scrollbar",d===V.ui?"z3":null,{"pad-for-vertical-scrollbar":j}),K=d===V.md?{...!F&&{position:"static"},...F&&{width:L.currentWidth>Z?L.currentWidth:Z,maxWidth:"none"}}:void 0,q=(e,t)=>{if(e<=t)return!1;let o=(()=>{let e=z.current;if(e?.isConnected)return e;let t=document.getElementById(L.listId);return z.current=t,t})();return null!=o&&(0,ea.br)(o)},X=(e,n,s,u,m,_,v,S)=>A.createElement(e8,{autoContainerWidth:!0,cellRangeRenderer:H,cellRenderer:n=>((e,n)=>{let s;if(n.rowIndex>t-1)return P&&0===r?A.createElement(oj,{currentCommits:t-1,customFooterRow:i,getExternalIcon:a,graphZoneType:d,hasMoreCommits:p,height:h,horizontalScrollHeight:f,isLoadingRows:g,key:l(n.rowIndex),scrollTop:D,style:n.style,translate:k}):void 0;let c={...n,style:{...n.style}};V.OU===e&&(c.style.top=Number(n.style.top)-D);let u=o[e];return u?(s=u(c),A.createElement("span",{"data-column-name":e,"data-row-idx":n.rowIndex,key:`gk-row-${n.key}`,style:{top:n.style.top}},s)):void 0})(e,n),className:s,columnCount:1,columnWidth:S,containerStyle:u,height:v,id:n,key:n,onScrollToTargetCausedUpdate:E?e=>E(d,e,c,h,p):void 0,overscanRowCount:0,rowCount:B,rowHeight:V.yB,scrollLeft:M,scrollToAlignment:O,scrollTop:D,scrollToRow:N,style:m,tabIndex:null,width:_}),Q=X(L.type,L.listId,Y,K??{},{position:"absolute"},L.currentWidth,h,Z),J=F?A.createElement("div",{className:"timeline-column-container",onWheelCapture:e=>{let t;q(t=(t=D+e.deltaY)>=0?t:0,D)||w(d,{clientHeight:U,clientWidth:Z,scrollHeight:f,scrollLeft:0,scrollTop:t,scrollWidth:W},c,h,p)}},G&&I&&A.createElement(oG,{processedRows:I,scrollTop:D,translate:k}),X(V.OU,"timeline-column","graph-panel react-virtualized-list timeline-column",{overflow:"visible",zIndex:3,maxHeight:U},{position:"absolute",right:0,zIndex:3,maxHeight:h},1,h,1)):void 0,ee=Q&&A.createElement(A.Fragment,null,J,$&&F?A.createElement(oB,{branchUpstreamRowIndices:e,enabledScrollMarkerTypes:n,getExternalIcon:a,interactiveMarkers:S,markerColors:_,markerRowIndices:v,onMarkerClick:R,scrollTop:D,scrollWidth:W,totalRows:B,viewportHeight:h<U?h:U,viewportWidth:L.currentWidth}):null,A.createElement(oI.A,{contentHeight:U,contentWidth:Z,displayHorizontalScrollbar:L.type===V.md,displayVerticalScrollbar:F,forceOnVerticalWheel:!F,forceVerticalScrollbar:F&&$,height:h,onScroll:e=>{!q(e.scrollTop,D)&&w(d,e,c,h,p)},scrollLeft:M,scrollTop:D,width:L.currentWidth},Q)),et=A.createElement("div",{onMouseEnter:b},ee);return F?et:A.createElement(ob,{enable:s,height:h,id:`${d}Column`,key:`${d}Column`,onResize:y?e=>y(L,e):void 0,onResizeEnd:T?e=>T(L,e):void 0,onResizeFromPropChange:C?e=>C(L,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z1",width:L.currentWidth,widthConstraints:(0,ea.qC)(d,u,c)},et)}var o$=n(175),oY=n.n(o$);let oK="dnd-container";class oq extends A.PureComponent{dndDrake;childReactElementsById={};constructor(e){super(e),this.loadChildrenReactElements(this.props.children)}componentDidMount(){this.dndDrake&&this.dndDrake.on("drop",this.onDrop)}componentDidUpdate(e){this.props.children!==e.children&&this.loadChildrenReactElements(e.children)}componentWillUnmount(){this.dndDrake&&this.dndDrake.destroy()}onDrop=(e,t,o,r)=>{if(this.props.onDrop&&e.id){let t=this.sanitizeId(e.id),o=r?.id?this.sanitizeId(r.id):null,i=this.childReactElementsById[t],n=o?this.childReactElementsById[o]:null;i&&this.props.onDrop(i,n)}};isContainerCallback=e=>e?.classList.contains(oK)??!1;movesCallback=e=>!!e?.id&&this.isDraggable(e.id);acceptsCallback=(e,t,o,r)=>!!e?.id&&this.isDroppable(e.id,r?.id);invalidCallBack=()=>!1;dndDecorator=e=>{if(e){let t={isContainer:this.isContainerCallback,mirrorContainer:this.props.mirrorContainer,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=oY()([e],t)}};loadChildrenReactElements(e){this.childReactElementsById={},e&&(e instanceof Array?e.forEach(e=>{A.isValidElement(e)&&this.addChildReactElement(e)}):A.isValidElement(e)&&this.addChildReactElement(e))}addChildReactElement(e){let 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){let t=this.sanitizeId(e),o=this.childReactElementsById[t];return null!=o&&this.props.isDraggable(o)}return!1}isDroppable(e,t){if(this.props.isDroppable){let o=this.sanitizeId(e),r=t?this.sanitizeId(t):null,i=this.childReactElementsById[o],n=r?this.childReactElementsById[r]:null;if(i)return this.props.isDroppable(i,n)}return!1}render(){let{children:e,className:t}=this.props,o=x()(oK,t);return A.createElement("div",{className:o,ref:this.dndDecorator},e)}}function oX(){return(0,A.useState)(null)}let oQ=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,oJ=function(e,t){return(0,A.useMemo)(()=>{let o,r;return o=oQ(e),r=oQ(t),e=>{o&&o(e),r&&r(e)}},[e,t])};var o0=Object.prototype.hasOwnProperty;function o1(e,t,o){for(o of e.keys())if(o2(o,t))return o}function o2(e,t){var o,r,i;if(e===t)return!0;if(e&&t&&(o=e.constructor)===t.constructor){if(o===Date)return e.getTime()===t.getTime();if(o===RegExp)return e.toString()===t.toString();if(o===Array){if((r=e.length)===t.length)for(;r--&&o2(e[r],t[r]););return -1===r}if(o===Set){if(e.size!==t.size)return!1;for(r of e)if((i=r)&&"object"==typeof i&&!(i=o1(t,i))||!t.has(i))return!1;return!0}if(o===Map){if(e.size!==t.size)return!1;for(r of e)if((i=r[0])&&"object"==typeof i&&!(i=o1(t,i))||!o2(r[1],t.get(i)))return!1;return!0}if(o===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(o===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return -1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return -1===r}if(!o||"object"==typeof e){for(o in r=0,e)if(o0.call(e,o)&&++r&&!o0.call(t,o)||!(o in t)||!o2(e[o],t[o]))return!1;return Object.keys(t).length===r}}return e!=e&&t!=t}let o5=function(e){let t,o,r=(t=(0,A.useRef)(!0),o=(0,A.useRef)(()=>t.current),(0,A.useEffect)(()=>(t.current=!0,()=>{t.current=!1}),[]),o.current);return[e[0],(0,A.useCallback)(t=>{if(r())return e[1](t)},[r,e[1]])]};function o3(e){return e.split("-")[0]}function o6(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function o4(e){var t=o6(e).Element;return e instanceof t||e instanceof Element}function o9(e){var t=o6(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function o7(e){if("u"<typeof ShadowRoot)return!1;var t=o6(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var o8=Math.max,re=Math.min,rt=Math.round;function ro(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function rr(){return!/^((?!chrome|android).)*safari/i.test(ro())}function ri(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1);var r=e.getBoundingClientRect(),i=1,n=1;t&&o9(e)&&(i=e.offsetWidth>0&&rt(r.width)/e.offsetWidth||1,n=e.offsetHeight>0&&rt(r.height)/e.offsetHeight||1);var s=(o4(e)?o6(e):window).visualViewport,a=!rr()&&o,l=(r.left+(a&&s?s.offsetLeft:0))/i,h=(r.top+(a&&s?s.offsetTop:0))/n,c=r.width/i,d=r.height/n;return{width:c,height:d,top:h,right:l+c,bottom:h+d,left:l,x:l,y:h}}function rn(e){var t=ri(e),o=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-o)&&(o=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:r}}function rs(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&o7(o)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ra(e){return e?(e.nodeName||"").toLowerCase():null}function rl(e){return o6(e).getComputedStyle(e)}function rh(e){return((o4(e)?e.ownerDocument:e.document)||window.document).documentElement}function rc(e){return"html"===ra(e)?e:e.assignedSlot||e.parentNode||(o7(e)?e.host:null)||rh(e)}function rd(e){return o9(e)&&"fixed"!==rl(e).position?e.offsetParent:null}function ru(e){for(var t=o6(e),o=rd(e);o&&["table","td","th"].indexOf(ra(o))>=0&&"static"===rl(o).position;)o=rd(o);return o&&("html"===ra(o)||"body"===ra(o)&&"static"===rl(o).position)?t:o||function(e){var t=/firefox/i.test(ro());if(/Trident/i.test(ro())&&o9(e)&&"fixed"===rl(e).position)return null;var o=rc(e);for(o7(o)&&(o=o.host);o9(o)&&0>["html","body"].indexOf(ra(o));){var r=rl(o);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return o;o=o.parentNode}return null}(e)||t}function rp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function rf(e,t,o){return o8(e,re(t,o))}function rm(){return{top:0,right:0,bottom:0,left:0}}function rg(e){return Object.assign({},rm(),e)}function r_(e,t){return t.reduce(function(t,o){return t[o]=e,t},{})}var rv="bottom",rS="right",rR="left",ry="auto",rT=["top",rv,rS,rR],rC="start",rw="viewport",rE="popper",rb=rT.reduce(function(e,t){return e.concat([t+"-"+rC,t+"-end"])},[]),rI=[].concat(rT,[ry]).reduce(function(e,t){return e.concat([t,t+"-"+rC,t+"-end"])},[]),rM=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function rO(e){return e.split("-")[1]}var rN={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rx(e){var t,o,r,i,n,s,a,l=e.popper,h=e.popperRect,c=e.placement,d=e.variation,u=e.offsets,p=e.position,f=e.gpuAcceleration,m=e.adaptive,g=e.roundOffsets,_=e.isFixed,v=u.x,S=void 0===v?0:v,R=u.y,y=void 0===R?0:R,T="function"==typeof g?g({x:S,y:y}):{x:S,y:y};S=T.x,y=T.y;var C=u.hasOwnProperty("x"),w=u.hasOwnProperty("y"),E=rR,b="top",I=window;if(m){var M=ru(l),O="clientHeight",N="clientWidth";M===o6(l)&&"static"!==rl(M=rh(l)).position&&"absolute"===p&&(O="scrollHeight",N="scrollWidth"),("top"===c||(c===rR||c===rS)&&"end"===d)&&(b=rv,y-=(_&&M===I&&I.visualViewport?I.visualViewport.height:M[O])-h.height,y*=f?1:-1),(c===rR||("top"===c||c===rv)&&"end"===d)&&(E=rS,S-=(_&&M===I&&I.visualViewport?I.visualViewport.width:M[N])-h.width,S*=f?1:-1)}var x=Object.assign({position:p},m&&rN),A=!0===g?(t={x:S,y:y},o=o6(l),r=t.x,i=t.y,{x:rt(r*(n=o.devicePixelRatio||1))/n||0,y:rt(i*n)/n||0}):{x:S,y:y};return(S=A.x,y=A.y,f)?Object.assign({},x,((a={})[b]=w?"0":"",a[E]=C?"0":"",a.transform=1>=(I.devicePixelRatio||1)?"translate("+S+"px, "+y+"px)":"translate3d("+S+"px, "+y+"px, 0)",a)):Object.assign({},x,((s={})[b]=w?y+"px":"",s[E]=C?S+"px":"",s.transform="",s))}var rA={passive:!0},rD={left:"right",right:"left",bottom:"top",top:"bottom"};function rH(e){return e.replace(/left|right|bottom|top/g,function(e){return rD[e]})}var rG={start:"end",end:"start"};function rk(e){return e.replace(/start|end/g,function(e){return rG[e]})}function rW(e){var t=o6(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function rz(e){return ri(rh(e)).left+rW(e).scrollLeft}function rL(e){var t=rl(e),o=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+i+r)}function rF(e,t){void 0===t&&(t=[]);var o,r=function e(t){return["html","body","#document"].indexOf(ra(t))>=0?t.ownerDocument.body:o9(t)&&rL(t)?t:e(rc(t))}(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),n=o6(r),s=i?[n].concat(n.visualViewport||[],rL(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(rF(rc(s)))}function rP(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function rB(e,t,o){var r,i,n,s,a,l,h,c,d,u;return t===rw?rP(function(e,t){var o=o6(e),r=rh(e),i=o.visualViewport,n=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){n=i.width,s=i.height;var h=rr();(h||!h&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:n,height:s,x:a+rz(e),y:l}}(e,o)):o4(t)?((r=ri(t,!1,"fixed"===o)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):rP((i=rh(e),s=rh(i),a=rW(i),l=null==(n=i.ownerDocument)?void 0:n.body,h=o8(s.scrollWidth,s.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),c=o8(s.scrollHeight,s.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),d=-a.scrollLeft+rz(i),u=-a.scrollTop,"rtl"===rl(l||s).direction&&(d+=o8(s.clientWidth,l?l.clientWidth:0)-h),{width:h,height:c,x:d,y:u}))}function rZ(e){var t,o=e.reference,r=e.element,i=e.placement,n=i?o3(i):null,s=i?rO(i):null,a=o.x+o.width/2-r.width/2,l=o.y+o.height/2-r.height/2;switch(n){case"top":t={x:a,y:o.y-r.height};break;case rv:t={x:a,y:o.y+o.height};break;case rS:t={x:o.x+o.width,y:l};break;case rR:t={x:o.x-r.width,y:l};break;default:t={x:o.x,y:o.y}}var h=n?rp(n):null;if(null!=h){var c="y"===h?"height":"width";switch(s){case rC:t[h]=t[h]-(o[c]/2-r[c]/2);break;case"end":t[h]=t[h]+(o[c]/2-r[c]/2)}}return t}function rU(e,t){void 0===t&&(t={});var o,r,i,n,s,a,l,h,c=t,d=c.placement,u=void 0===d?e.placement:d,p=c.strategy,f=void 0===p?e.strategy:p,m=c.boundary,g=c.rootBoundary,_=c.elementContext,v=void 0===_?rE:_,S=c.altBoundary,R=c.padding,y=void 0===R?0:R,T=rg("number"!=typeof y?y:r_(y,rT)),C=e.rects.popper,w=e.elements[void 0!==S&&S?v===rE?"reference":rE:v],E=(o=o4(w)?w:w.contextElement||rh(e.elements.popper),r=void 0===m?"clippingParents":m,i=void 0===g?rw:g,l=(a=[].concat("clippingParents"===r?(n=rF(rc(o)),!o4(s=["absolute","fixed"].indexOf(rl(o).position)>=0&&o9(o)?ru(o):o)?[]:n.filter(function(e){return o4(e)&&rs(e,s)&&"body"!==ra(e)})):[].concat(r),[i]))[0],(h=a.reduce(function(e,t){var r=rB(o,t,f);return e.top=o8(r.top,e.top),e.right=re(r.right,e.right),e.bottom=re(r.bottom,e.bottom),e.left=o8(r.left,e.left),e},rB(o,l,f))).width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h),b=ri(e.elements.reference),I=rZ({reference:b,element:C,strategy:"absolute",placement:u}),M=rP(Object.assign({},C,I)),O=v===rE?M:b,N={top:E.top-O.top+T.top,bottom:O.bottom-E.bottom+T.bottom,left:E.left-O.left+T.left,right:O.right-E.right+T.right},x=e.modifiersData.offset;if(v===rE&&x){var A=x[u];Object.keys(N).forEach(function(e){var t=[rS,rv].indexOf(e)>=0?1:-1,o=["top",rv].indexOf(e)>=0?"y":"x";N[e]+=A[o]*t})}return N}function rj(e,t,o){return void 0===o&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function rV(e){return["top",rS,rv,rR].some(function(t){return e[t]>=0})}var r$={placement:"bottom",modifiers:[],strategy:"absolute"};function rY(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}let rK=(d=void 0===(c=(h={defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,o=e.name,r=t.rects.reference,i=t.rects.popper,n=t.modifiersData.preventOverflow,s=rU(t,{elementContext:"reference"}),a=rU(t,{altBoundary:!0}),l=rj(s,r),h=rj(a,i,n),c=rV(l),d=rV(h);t.modifiersData[o]={referenceClippingOffsets:l,popperEscapeOffsets:h,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,o=e.name;t.modifiersData[o]=rZ({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,o=e.options,r=o.gpuAcceleration,i=o.adaptive,n=o.roundOffsets,s=void 0===n||n,a={placement:o3(t.placement),variation:rO(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,rx(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,rx(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,o=e.instance,r=e.options,i=r.scroll,n=void 0===i||i,s=r.resize,a=void 0===s||s,l=o6(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return n&&h.forEach(function(e){e.addEventListener("scroll",o.update,rA)}),a&&l.addEventListener("resize",o.update,rA),function(){n&&h.forEach(function(e){e.removeEventListener("scroll",o.update,rA)}),a&&l.removeEventListener("resize",o.update,rA)}},data:{}},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,o=e.options,r=e.name,i=o.offset,n=void 0===i?[0,0]:i,s=rI.reduce(function(e,o){var r,i,s,a,l,h;return e[o]=(r=t.rects,s=[rR,"top"].indexOf(i=o3(o))>=0?-1:1,l=(a="function"==typeof n?n(Object.assign({},r,{placement:o})):n)[0],h=a[1],l=l||0,h=(h||0)*s,[rR,rS].indexOf(i)>=0?{x:h,y:l}:{x:l,y:h}),e},{}),a=s[t.placement],l=a.x,h=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=h),t.modifiersData[r]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=o.mainAxis,n=void 0===i||i,s=o.altAxis,a=void 0===s||s,l=o.fallbackPlacements,h=o.padding,c=o.boundary,d=o.rootBoundary,u=o.altBoundary,p=o.flipVariations,f=void 0===p||p,m=o.allowedAutoPlacements,g=t.options.placement,_=o3(g)===g,v=l||(_||!f?[rH(g)]:function(e){if(o3(e)===ry)return[];var t=rH(e);return[rk(e),t,rk(t)]}(g)),S=[g].concat(v).reduce(function(e,o){var r,i,n,s,a,l,u,p,g,_,v,S;return e.concat(o3(o)===ry?(i=(r={placement:o,boundary:c,rootBoundary:d,padding:h,flipVariations:f,allowedAutoPlacements:m}).placement,n=r.boundary,s=r.rootBoundary,a=r.padding,l=r.flipVariations,p=void 0===(u=r.allowedAutoPlacements)?rI:u,0===(v=(_=(g=rO(i))?l?rb:rb.filter(function(e){return rO(e)===g}):rT).filter(function(e){return p.indexOf(e)>=0})).length&&(v=_),Object.keys(S=v.reduce(function(e,o){return e[o]=rU(t,{placement:o,boundary:n,rootBoundary:s,padding:a})[o3(o)],e},{})).sort(function(e,t){return S[e]-S[t]})):o)},[]),R=t.rects.reference,y=t.rects.popper,T=new Map,C=!0,w=S[0],E=0;E<S.length;E++){var b=S[E],I=o3(b),M=rO(b)===rC,O=["top",rv].indexOf(I)>=0,N=O?"width":"height",x=rU(t,{placement:b,boundary:c,rootBoundary:d,altBoundary:u,padding:h}),A=O?M?rS:rR:M?rv:"top";R[N]>y[N]&&(A=rH(A));var D=rH(A),H=[];if(n&&H.push(x[I]<=0),a&&H.push(x[A]<=0,x[D]<=0),H.every(function(e){return e})){w=b,C=!1;break}T.set(b,H)}if(C)for(var G=f?3:1,k=function(e){var t=S.find(function(t){var o=T.get(t);if(o)return o.slice(0,e).every(function(e){return e})});if(t)return w=t,"break"},W=G;W>0&&"break"!==k(W);W--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,o=e.options,r=e.name,i=o.mainAxis,n=o.altAxis,s=o.boundary,a=o.rootBoundary,l=o.altBoundary,h=o.padding,c=o.tether,d=void 0===c||c,u=o.tetherOffset,p=void 0===u?0:u,f=rU(t,{boundary:s,rootBoundary:a,padding:h,altBoundary:l}),m=o3(t.placement),g=rO(t.placement),_=!g,v=rp(m),S="x"===v?"y":"x",R=t.modifiersData.popperOffsets,y=t.rects.reference,T=t.rects.popper,C="function"==typeof p?p(Object.assign({},t.rects,{placement:t.placement})):p,w="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,b={x:0,y:0};if(R){if(void 0===i||i){var I,M="y"===v?"top":rR,O="y"===v?rv:rS,N="y"===v?"height":"width",x=R[v],A=x+f[M],D=x-f[O],H=d?-T[N]/2:0,G=g===rC?y[N]:T[N],k=g===rC?-T[N]:-y[N],W=t.elements.arrow,z=d&&W?rn(W):{width:0,height:0},L=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:rm(),F=L[M],P=L[O],B=rf(0,y[N],z[N]),Z=_?y[N]/2-H-B-F-w.mainAxis:G-B-F-w.mainAxis,U=_?-y[N]/2+H+B+P+w.mainAxis:k+B+P+w.mainAxis,j=t.elements.arrow&&ru(t.elements.arrow),V=j?"y"===v?j.clientTop||0:j.clientLeft||0:0,$=null!=(I=null==E?void 0:E[v])?I:0,Y=rf(d?re(A,x+Z-$-V):A,x,d?o8(D,x+U-$):D);R[v]=Y,b[v]=Y-x}if(void 0!==n&&n){var K,q,X="x"===v?"top":rR,Q="x"===v?rv:rS,J=R[S],ee="y"===S?"height":"width",et=J+f[X],eo=J-f[Q],er=-1!==["top",rR].indexOf(m),ei=null!=(q=null==E?void 0:E[S])?q:0,en=er?et:J-y[ee]-T[ee]-ei+w.altAxis,es=er?J+y[ee]+T[ee]-ei-w.altAxis:eo,ea=d&&er?(K=rf(en,J,es))>es?es:K:rf(d?en:et,J,d?es:eo);R[S]=ea,b[S]=ea-J}t.modifiersData[r]=b}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,o=e.state,r=e.name,i=e.options,n=o.elements.arrow,s=o.modifiersData.popperOffsets,a=o3(o.placement),l=rp(a),h=[rR,rS].indexOf(a)>=0?"height":"width";if(n&&s){var c,d=(c=i.padding,rg("number"!=typeof(c="function"==typeof c?c(Object.assign({},o.rects,{placement:o.placement})):c)?c:r_(c,rT))),u=rn(n),p="y"===l?"top":rR,f="y"===l?rv:rS,m=o.rects.reference[h]+o.rects.reference[l]-s[l]-o.rects.popper[h],g=s[l]-o.rects.reference[l],_=ru(n),v=_?"y"===l?_.clientHeight||0:_.clientWidth||0:0,S=d[p],R=v-u[h]-d[f],y=v/2-u[h]/2+(m/2-g/2),T=rf(S,y,R);o.modifiersData[r]=((t={})[l]=T,t.centerOffset=T-y,t)}},effect:function(e){var t=e.state,o=e.options.element,r=void 0===o?"[data-popper-arrow]":o;null==r||("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&rs(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}]}).defaultModifiers)?[]:c,p=void 0===(u=h.defaultOptions)?r$:u,function(e,t,o){void 0===o&&(o=p);var r,i,n={placement:"bottom",orderedModifiers:[],options:Object.assign({},r$,p),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],a=!1,l={state:n,setOptions:function(o){var r,i,a,c,u,f,m="function"==typeof o?o(n.options):o;h(),n.options=Object.assign({},p,n.options,m),n.scrollParents={reference:o4(e)?rF(e):e.contextElement?rF(e.contextElement):[],popper:rF(t)};var g=(i=Object.keys(r=[].concat(d,n.options.modifiers).reduce(function(e,t){var o=e[t.name];return e[t.name]=o?Object.assign({},o,t,{options:Object.assign({},o.options,t.options),data:Object.assign({},o.data,t.data)}):t,e},{})).map(function(e){return r[e]}),a=new Map,c=new Set,u=[],i.forEach(function(e){a.set(e.name,e)}),i.forEach(function(e){c.has(e.name)||function e(t){c.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!c.has(t)){var o=a.get(t);o&&e(o)}}),u.push(t)}(e)}),f=u,rM.reduce(function(e,t){return e.concat(f.filter(function(e){return e.phase===t}))},[]));return n.orderedModifiers=g.filter(function(e){return e.enabled}),n.orderedModifiers.forEach(function(e){var t=e.name,o=e.options,r=e.effect;if("function"==typeof r){var i=r({state:n,name:t,instance:l,options:void 0===o?{}:o});s.push(i||function(){})}}),l.update()},forceUpdate:function(){if(!a){var e=n.elements,t=e.reference,o=e.popper;if(rY(t,o)){n.rects={reference:(r=ru(o),i="fixed"===n.options.strategy,s=o9(r),u=o9(r)&&(c=rt((h=r.getBoundingClientRect()).width)/r.offsetWidth||1,d=rt(h.height)/r.offsetHeight||1,1!==c||1!==d),p=rh(r),f=ri(t,u,i),m={scrollLeft:0,scrollTop:0},g={x:0,y:0},(s||!s&&!i)&&(("body"!==ra(r)||rL(p))&&(m=function(e){return e!==o6(e)&&o9(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:rW(e)}(r)),o9(r)?(g=ri(r,!0),g.x+=r.clientLeft,g.y+=r.clientTop):p&&(g.x=rz(p))),{x:f.left+m.scrollLeft-g.x,y:f.top+m.scrollTop-g.y,width:f.width,height:f.height}),popper:rn(o)},n.reset=!1,n.placement=n.options.placement,n.orderedModifiers.forEach(function(e){return n.modifiersData[e.name]=Object.assign({},e.data)});for(var r,i,s,h,c,d,u,p,f,m,g,_=0;_<n.orderedModifiers.length;_++){if(!0===n.reset){n.reset=!1,_=-1;continue}var v=n.orderedModifiers[_],S=v.fn,R=v.options,y=void 0===R?{}:R,T=v.name;"function"==typeof S&&(n=S({state:n,options:y,name:T,instance:l})||n)}}}},update:(r=function(){return new Promise(function(e){l.forceUpdate(),e(n)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(r())})})),i}),destroy:function(){h(),a=!0}};if(!rY(e,t))return l;function h(){s.forEach(function(e){return e()}),s=[]}return l.setOptions(o).then(function(e){!a&&o.onFirstUpdate&&o.onFirstUpdate(e)}),l}),rq=["enabled","placement","strategy","modifiers"],rX={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>void 0},rQ={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{let{reference:t,popper:o}=e.elements;if("removeAttribute"in t){let e=(t.getAttribute("aria-describedby")||"").split(",").filter(e=>e.trim()!==o.id);e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;let{popper:o,reference:r}=e.elements,i=null==(t=o.getAttribute("role"))?void 0:t.toLowerCase();if(o.id&&"tooltip"===i&&"setAttribute"in r){let e=r.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(o.id))return;r.setAttribute("aria-describedby",e?`${e},${o.id}`:o.id)}}},rJ=[],r0=function(e,t,o={}){let{enabled:r=!0,placement:i="bottom",strategy:n="absolute",modifiers:s=rJ}=o,a=function(e,t){if(null==e)return{};var o={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;o[r]=e[r]}return o}(o,rq),l=(0,A.useRef)(s),h=(0,A.useRef)(),c=(0,A.useCallback)(()=>{var e;null==(e=h.current)||e.update()},[]),d=(0,A.useCallback)(()=>{var e;null==(e=h.current)||e.forceUpdate()},[]),[u,p]=o5((0,A.useState)({placement:i,update:c,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),f=(0,A.useMemo)(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{let t={},o={};Object.keys(e.elements).forEach(r=>{t[r]=e.styles[r],o[r]=e.attributes[r]}),p({state:e,styles:t,attributes:o,update:c,forceUpdate:d,placement:e.placement})}}),[c,d,p]),m=(0,A.useMemo)(()=>(o2(l.current,s)||(l.current=s),l.current),[s]);return(0,A.useEffect)(()=>{h.current&&r&&h.current.setOptions({placement:i,strategy:n,modifiers:[...m,f,rX]})},[n,i,f,r,m]),(0,A.useEffect)(()=>{if(r&&null!=e&&null!=t)return h.current=rK(e,t,Object.assign({},a,{placement:i,strategy:n,modifiers:[...m,rQ,f]})),()=>{null!=h.current&&(h.current.destroy(),h.current=void 0,p(e=>Object.assign({},e,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),u};var r1=!1,r2=!1;try{var r5={get passive(){return r1=!0},get once(){return r2=r1=!0}};e0&&(window.addEventListener("test",r5,r5),window.removeEventListener("test",r5,!0))}catch{}let r3=function(e,t,o,r){if(r&&"boolean"!=typeof r&&!r2){var i=r.once,n=r.capture,s=o;!r2&&i&&(s=o.__once||function e(r){this.removeEventListener(t,e,n),o.call(this,r)},o.__once=s),e.addEventListener(t,s,r1?r:n)}e.addEventListener(t,o,r)},r6=function(e,t,o,r){var i=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,o,i),o.__once&&e.removeEventListener(t,o.__once,i)},r4=function(e,t,o,r){return r3(e,t,o,r),function(){r6(e,t,o,r)}};function r9(e){return e&&e.ownerDocument||document}let r7=function(e){let t=(0,A.useRef)(e);return(0,A.useEffect)(()=>{t.current=e},[e]),t};function r8(e){let t=r7(e);return(0,A.useCallback)(function(...e){return t.current&&t.current(...e)},[t])}function ie(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}var it=n(730),io=n.n(it);let ir=()=>{},ii=e=>e&&("current"in e?e.current:e),is={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"},ia=function(e,t=ir,{disabled:o,clickTrigger:r="click"}={}){let i=(0,A.useRef)(!1),n=(0,A.useRef)(!1),s=(0,A.useCallback)(t=>{let o=ii(e);io()(!!o,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!o||!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)||0!==t.button||!!ie(o,t.target)||n.current,n.current=!1},[e]),a=r8(t=>{let o=ii(e);o&&ie(o,t.target)?n.current=!0:n.current=!1}),l=r8(e=>{i.current||t(e)});(0,A.useEffect)(()=>{var t,i;if(o||null==e)return;let n=r9(ii(e)),h=n.defaultView||window,c=null!=(t=h.event)?t:null==(i=h.parent)?void 0:i.event,d=null;is[r]&&(d=r4(n,is[r],a,!0));let u=r4(n,r,s,!0),p=r4(n,r,e=>{if(e===c){c=void 0;return}l(e)}),f=[];return"ontouchstart"in n.documentElement&&(f=[].slice.call(n.body.children).map(e=>r4(e,"mousemove",ir))),()=>{null==d||d(),u(),p(),f.forEach(e=>e())}},[e,o,r,s,a,l])};function il(e){let t;if(!e||"function"==typeof e)return null;let{major:o}={major:+(t=A.version.split("."))[0],minor:+t[1],patch:+t[2]};return o>=19?e.props.ref:e.ref}let ih=()=>{},ic=function(e,t,{disabled:o,clickTrigger:r}={}){let i=t||ih;ia(e,i,{disabled:o,clickTrigger:r});let n=r8(e=>{("Escape"===e.code||27===e.keyCode)&&i(e)});(0,A.useEffect)(()=>{if(o||null==e)return;let t=r9(ii(e)),r=(t.defaultView||window).event,i=r4(t,"keyup",e=>{if(e===r){r=void 0;return}n(e)});return()=>{i()}},[e,o,n])},id=(0,A.createContext)(e0?window:void 0);id.Provider;let iu=(e,t)=>e0?null==e?(t||r9()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect))?e:null:null;function ip(e,t){let o=(0,A.useContext)(id),[r,i]=(0,A.useState)(()=>iu(e,null==o?void 0:o.document));if(!r){let t=iu(e);t&&i(t)}return(0,A.useEffect)(()=>{t&&r&&t(r)},[t,r]),(0,A.useEffect)(()=>{let t=iu(e);t!==r&&i(t)},[e,r]),r}let im=void 0!==n.g&&n.g.navigator&&"ReactNative"===n.g.navigator.product,ig="u">typeof document||im?A.useLayoutEffect:A.useEffect,i_=function({children:e,in:t,onExited:o,mountOnEnter:r,unmountOnExit:i}){let n=(0,A.useRef)(null),s=(0,A.useRef)(t),a=r8(o);(0,A.useEffect)(()=>{t?s.current=!0:a(n.current)},[t,a]);let l=oJ(n,il(e)),h=(0,A.cloneElement)(e,{ref:l});return t?h:i||!s.current&&r?null:h},iv=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"],iS=["component"],iR=A.forwardRef((e,t)=>{let{component:o}=e,r=function(e){let{onEnter:t,onEntering:o,onEntered:r,onExit:i,onExiting:n,onExited:s,addEndListener:a,children:l}=e,h=function(e,t){if(null==e)return{};var o={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;o[r]=e[r]}return o}(e,iv),c=(0,A.useRef)(null),d=oJ(c,il(l)),u=e=>t=>{e&&c.current&&e(c.current,t)},p=(0,A.useCallback)(u(t),[t]),f=(0,A.useCallback)(u(o),[o]),m=(0,A.useCallback)(u(r),[r]),g=(0,A.useCallback)(u(i),[i]),_=(0,A.useCallback)(u(n),[n]),v=(0,A.useCallback)(u(s),[s]),S=(0,A.useCallback)(u(a),[a]);return Object.assign({},h,{nodeRef:c},t&&{onEnter:p},o&&{onEntering:f},r&&{onEntered:m},i&&{onExit:g},n&&{onExiting:_},s&&{onExited:v},a&&{addEndListener:S},{children:"function"==typeof l?(e,t)=>l(e,Object.assign({},t,{ref:d})):(0,A.cloneElement)(l,{ref:d})})}(function(e,t){if(null==e)return{};var o={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;o[r]=e[r]}return o}(e,iS));return(0,oo.jsx)(o,Object.assign({ref:t},r))});function iy({children:e,in:t,onExited:o,onEntered:r,transition:i}){let[n,s]=(0,A.useState)(!t);t&&n&&s(!1);let a=oJ(function({in:e,onTransition:t}){let o=(0,A.useRef)(null),r=(0,A.useRef)(!0),i=r8(t);return ig(()=>{if(!o.current)return;let t=!1;return i({in:e,element:o.current,initial:r.current,isStale:()=>t}),()=>{t=!0}},[e,i]),ig(()=>(r.current=!1,()=>{r.current=!0}),[]),o}({in:!!t,onTransition:e=>{Promise.resolve(i(e)).then(()=>{e.isStale()||(e.in?null==r||r(e.element,e.initial):(s(!0),null==o||o(e.element)))},t=>{throw e.in||s(!0),t})}}),il(e));return n&&!t?null:(0,A.cloneElement)(e,{ref:a})}let iT=A.forwardRef((t,o)=>{var r;let{flip:i,offset:n,placement:s,containerPadding:a,popperConfig:l={},transition:h,runTransition:c}=t,[d,u]=oX(),[p,f]=oX(),m=oJ(u,o),g=ip(t.container),_=ip(t.target),[v,S]=(0,A.useState)(!t.show),R=r0(_,d,function({enabled:e,enableEvents:t,placement:o,flip:r,offset:i,fixed:n,containerPadding:s,arrowElement:a,popperConfig:l={}}){var h,c,d,u,p,f;let m,g=(f=l.modifiers,m={},Array.isArray(f)?(null==f||f.forEach(e=>{m[e.name]=e}),m):f||m);return Object.assign({},l,{placement:o,enabled:e,strategy:n?"fixed":l.strategy,modifiers:function(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}(Object.assign({},g,{eventListeners:{enabled:t,options:null==(h=g.eventListeners)?void 0:h.options},preventOverflow:Object.assign({},g.preventOverflow,{options:s?Object.assign({padding:s},null==(c=g.preventOverflow)?void 0:c.options):null==(d=g.preventOverflow)?void 0:d.options}),offset:{options:Object.assign({offset:i},null==(u=g.offset)?void 0:u.options)},arrow:Object.assign({},g.arrow,{enabled:!!a,options:Object.assign({},null==(p=g.arrow)?void 0:p.options,{element:a})}),flip:Object.assign({enabled:!!r},g.flip)}))})}({placement:s,enableEvents:!!t.show,containerPadding:a||5,flip:i,offset:n,arrowElement:p,popperConfig:l}));t.show&&v&&S(!1);let y=t.show||!v;if(ic(d,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!y)return null;let{onExit:T,onExiting:C,onEnter:w,onEntering:E,onEntered:b}=t,I=t.children(Object.assign({},R.attributes.popper,{style:R.styles.popper,ref:m}),{popper:R,placement:s,show:!!t.show,arrowProps:Object.assign({},R.attributes.arrow,{style:R.styles.arrow,ref:f})});return r={in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:I,onExit:T,onExiting:C,onExited:(...e)=>{S(!0),t.onExited&&t.onExited(...e)},onEnter:w,onEntering:E,onEntered:b},I=h?(0,oo.jsx)(iR,Object.assign({},r,{component:h})):c?(0,oo.jsx)(iy,Object.assign({},r,{transition:c})):(0,oo.jsx)(i_,Object.assign({},r)),g?e.createPortal(I,g):null});iT.displayName="Overlay";let iC=function(e){let t=(0,A.useRef)(e);return(0,A.useEffect)(()=>{t.current=e},[e]),t},iw=void 0!==n.g&&n.g.navigator&&"ReactNative"===n.g.navigator.product,iE="u">typeof document||iw?A.useLayoutEffect:A.useEffect,ib=e=>e&&"function"!=typeof e?t=>{e.current=t}:e,iI=function(e,t){return(0,A.useMemo)(()=>{let o,r;return o=ib(e),r=ib(t),e=>{o&&o(e),r&&r(e)}},[e,t])};function iM(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}let iO=A.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:iN,Provider:ix}=iO;function iA(e,t){let{prefixes:o}=(0,A.useContext)(iO);return e||o[t]||t}function iD(){let{dir:e}=(0,A.useContext)(iO);return"rtl"===e}let iH=A.forwardRef(({className:e,bsPrefix:t,as:o="div",...r},i)=>(t=iA(t,"popover-header"),(0,oo.jsx)(o,{ref:i,className:x()(e,t),...r})));iH.displayName="PopoverHeader";let iG=A.forwardRef(({className:e,bsPrefix:t,as:o="div",...r},i)=>(t=iA(t,"popover-body"),(0,oo.jsx)(o,{ref:i,className:x()(e,t),...r})));function ik(e,t){let o=e;return"left"===e?o=t?"end":"start":"right"===e&&(o=t?"start":"end"),o}function iW(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}iG.displayName="PopoverBody",A.Component;let iz=A.forwardRef(({bsPrefix:e,placement:t="right",className:o,style:r,children:i,body:n,arrowProps:s,hasDoneInitialMeasure:a,popper:l,show:h,...c},d)=>{let u=iA(e,"popover"),p=iD(),[f]=(null==t?void 0:t.split("-"))||[],m=ik(f,p),g=r;return h&&!a&&(g={...r,...iW(null==l?void 0:l.strategy)}),(0,oo.jsxs)("div",{ref:d,role:"tooltip",style:g,"x-placement":f,className:x()(o,u,f&&`bs-popover-${m}`),...c,children:[(0,oo.jsx)("div",{className:"popover-arrow",...s}),n?(0,oo.jsx)(iG,{children:i}):i]})});iz.displayName="Popover";let iL=Object.assign(iz,{Header:iH,Body:iG,POPPER_OFFSET:[0,8]}),iF=A.forwardRef(({bsPrefix:e,placement:t="right",className:o,style:r,children:i,arrowProps:n,hasDoneInitialMeasure:s,popper:a,show:l,...h},c)=>{e=iA(e,"tooltip");let d=iD(),[u]=(null==t?void 0:t.split("-"))||[],p=ik(u,d),f=r;return l&&!s&&(f={...r,...iW(null==a?void 0:a.strategy)}),(0,oo.jsxs)("div",{ref:c,style:f,role:"tooltip","x-placement":u,className:x()(o,e,`bs-tooltip-${p}`),...h,children:[(0,oo.jsx)("div",{className:"tooltip-arrow",...n}),(0,oo.jsx)("div",{className:`${e}-inner`,children:i})]})});iF.displayName="Tooltip";let iP=Object.assign(iF,{TOOLTIP_OFFSET:[0,6]}),iB=A.default.createContext(null);var iZ="unmounted",iU="exited",ij="entering",iV="entered",i$="exiting",iY=function(t){function o(e,o){var r,i=t.call(this,e,o)||this,n=o&&!o.isMounting?e.enter:e.appear;return i.appearStatus=null,e.in?n?(r=iU,i.appearStatus=ij):r=iV:r=e.unmountOnExit||e.mountOnEnter?iZ:iU,i.state={status:r},i.nextCallback=null,i}o.prototype=Object.create(t.prototype),o.prototype.constructor=o,ez(o,t),o.getDerivedStateFromProps=function(e,t){return e.in&&t.status===iZ?{status:iU}:null};var r=o.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var o=this.state.status;this.props.in?o!==ij&&o!==iV&&(t=ij):(o===ij||o===iV)&&(t=i$)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,o,r=this.props.timeout;return e=t=o=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,o=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:o}},r.updateStatus=function(t,o){if(void 0===t&&(t=!1),null!==o)if(this.cancelNextCallback(),o===ij){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:e.findDOMNode(this);r&&r.scrollTop}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===iU&&this.setState({status:iZ})},r.performEnter=function(t){var o=this,r=this.props.enter,i=this.context?this.context.isMounting:t,n=this.props.nodeRef?[i]:[e.findDOMNode(this),i],s=n[0],a=n[1],l=this.getTimeouts(),h=i?l.appear:l.enter;(t||r)&&1?(this.props.onEnter(s,a),this.safeSetState({status:ij},function(){o.props.onEntering(s,a),o.onTransitionEnd(h,function(){o.safeSetState({status:iV},function(){o.props.onEntered(s,a)})})})):this.safeSetState({status:iV},function(){o.props.onEntered(s)})},r.performExit=function(){var t=this,o=this.props.exit,r=this.getTimeouts(),i=this.props.nodeRef?void 0:e.findDOMNode(this);o?(this.props.onExit(i),this.safeSetState({status:i$},function(){t.props.onExiting(i),t.onTransitionEnd(r.exit,function(){t.safeSetState({status:iU},function(){t.props.onExited(i)})})})):this.safeSetState({status:iU},function(){t.props.onExited(i)})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,o=!0;return this.nextCallback=function(r){o&&(o=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(t,o){this.setNextCallback(o);var r=this.props.nodeRef?this.props.nodeRef.current:e.findDOMNode(this),i=null==t&&!this.props.addEndListener;if(!r||i)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){var n=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],s=n[0],a=n[1];this.props.addEndListener(s,a)}null!=t&&setTimeout(this.nextCallback,t)},r.render=function(){var e=this.state.status;if(e===iZ)return null;var t=this.props,o=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,eY(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return A.default.createElement(iB.Provider,{value:null},"function"==typeof o?o(e,r):A.default.cloneElement(A.default.Children.only(o),r))},o}(A.default.Component);function iK(){}iY.contextType=iB,iY.propTypes={},iY.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:iK,onEntering:iK,onEntered:iK,onExit:iK,onExiting:iK,onExited:iK},iY.UNMOUNTED=iZ,iY.EXITED=iU,iY.ENTERING=ij,iY.ENTERED=iV,iY.EXITING=i$;var iq=/([A-Z])/g,iX=/^ms-/;function iQ(e){return e.replace(iq,"-$1").toLowerCase().replace(iX,"-ms-")}var iJ=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;let i0=function(e,t){var o,r,i="",n="";if("string"==typeof t){return e.style.getPropertyValue(iQ(t))||((r=r9(o=e))&&r.defaultView||window).getComputedStyle(o,void 0).getPropertyValue(iQ(t))}Object.keys(t).forEach(function(o){var r=t[o];r||0===r?o&&iJ.test(o)?n+=o+"("+r+") ":i+=iQ(o)+": "+r+";":e.style.removeProperty(iQ(o))}),n&&(i+="transform: "+n+";"),e.style.cssText+=";"+i};function i1(e,t){let o=i0(e,t)||"",r=-1===o.indexOf("ms")?1e3:1;return parseFloat(o)*r}function i2(e,t){let o=i1(e,"transitionDuration"),r=i1(e,"transitionDelay"),i=function(e,t,o){null==o&&(i=-1===(r=i0(e,"transitionDuration")||"").indexOf("ms")?1e3:1,o=parseFloat(r)*i||0);var r,i,n,s,a,l=(n=!1,s=setTimeout(function(){n||function(e,t,o,r){if(void 0===o&&(o=!1),void 0===r&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,o,r),e.dispatchEvent(i)}}(e,"transitionend",!0)},o+5),a=r4(e,"transitionend",function(){n=!0},{once:!0}),function(){clearTimeout(s),a()}),h=r4(e,"transitionend",t);return function(){l(),h()}}(e,o=>{o.target===e&&(i(),t(o))},o+r)}function i5(t){return t&&"setState"in t?e.findDOMNode(t):null!=t?t:null}let i3=A.default.forwardRef(({onEnter:e,onEntering:t,onEntered:o,onExit:r,onExiting:i,onExited:n,addEndListener:s,children:a,childRef:l,...h},c)=>{let d=(0,A.useRef)(null),u=iI(d,l),p=e=>{u(i5(e))},f=e=>t=>{e&&d.current&&e(d.current,t)},m=(0,A.useCallback)(f(e),[e]),g=(0,A.useCallback)(f(t),[t]),_=(0,A.useCallback)(f(o),[o]),v=(0,A.useCallback)(f(r),[r]),S=(0,A.useCallback)(f(i),[i]),R=(0,A.useCallback)(f(n),[n]),y=(0,A.useCallback)(f(s),[s]);return(0,oo.jsx)(iY,{ref:c,...h,onEnter:m,onEntered:_,onEntering:g,onExit:v,onExited:R,onExiting:S,addEndListener:y,nodeRef:d,children:"function"==typeof a?(e,t)=>a(e,{...t,ref:p}):A.default.cloneElement(a,{ref:p})})});i3.displayName="TransitionWrapper";let i6={[ij]:"show",[iV]:"show"},i4=A.forwardRef(({className:e,children:t,transitionClasses:o={},onEnter:r,...i},n)=>{let s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},a=(0,A.useCallback)((e,t)=>{e.offsetHeight,null==r||r(e,t)},[r]);return(0,oo.jsx)(i3,{ref:n,addEndListener:i2,...s,onEnter:a,childRef:il(t),children:(r,i)=>A.cloneElement(t,{...i,className:x()("fade",e,t.props.className,i6[r],o[r])})})});i4.displayName="Fade";let i9=i4,i7=A.forwardRef(({children:e,transition:t=i9,popperConfig:o={},rootClose:r=!1,placement:i="top",show:n=!1,...s},a)=>{var l;let h,c,d,u,p,f=(0,A.useRef)({}),[m,g]=(0,A.useState)(null),[_,v]=(l=s.offset,h=(0,A.useRef)(null),c=iA(void 0,"popover"),d=iA(void 0,"tooltip"),u=(0,A.useMemo)(()=>({name:"offset",options:{offset:()=>{if(l)return l;if(h.current){if(iM(h.current,c))return iL.POPPER_OFFSET;if(iM(h.current,d))return iP.TOOLTIP_OFFSET}return[0,0]}}}),[l,c,d]),[h,[u]]),S=iI(a,_),R=!0===t?i9:t||void 0,y=(p=iC(e=>{g(e),null==o||null==o.onFirstUpdate||o.onFirstUpdate(e)}),(0,A.useCallback)(function(...e){return p.current&&p.current(...e)},[p]));return iE(()=>{m&&s.target&&(null==f.current.scheduleUpdate||f.current.scheduleUpdate())},[m,s.target]),(0,A.useEffect)(()=>{n||g(null)},[n]),(0,oo.jsx)(iT,{...s,ref:S,popperConfig:{...o,modifiers:v.concat(o.modifiers||[]),onFirstUpdate:y},transition:R,rootClose:r,placement:i,show:n,children:(r,{arrowProps:i,popper:n,show:s})=>{var a;!function(e,t){let{ref:o}=e,{ref:r}=t;e.ref=o.__wrapped||(o.__wrapped=e=>o(i5(e))),t.ref=r.__wrapped||(r.__wrapped=e=>r(i5(e)))}(r,i);let l=null==n?void 0:n.placement,h=Object.assign(f.current,{state:null==n?void 0:n.state,scheduleUpdate:null==n?void 0:n.update,placement:l,outOfBoundaries:(null==n||null==(a=n.state)||null==(a=a.modifiersData.hide)?void 0:a.isReferenceHidden)||!1,strategy:o.strategy}),c=!!m;return"function"==typeof e?e({...r,placement:l,show:s,...!t&&s&&{className:"show"},popper:h,arrowProps:i,hasDoneInitialMeasure:c}):A.cloneElement(e,{...r,placement:l,arrowProps:i,popper:h,hasDoneInitialMeasure:c,className:x()(e.props.className,!t&&s&&"show"),style:{...e.props.style,...r.style}})}})});i7.displayName="Overlay";var i8=n(736),ne=n.n(i8);let nt=0x80000000-1;function no(e,t,o){let[r]=t,i=r.currentTarget,n=r.relatedTarget||r.nativeEvent[o];n&&n===i||ie(i,n)||e(...t)}n(597),ne().oneOf(["click","hover","focus"]);let nr=({trigger:e=["hover","focus"],overlay:t,children:o,popperConfig:r={},show:i,defaultShow:n=!1,onToggle:s,delay:a,placement:l,flip:h=l&&-1!==l.indexOf("auto"),...c})=>{var d,u,p,f,m,g,_;let v,S,R,y,T,C,w=(0,A.useRef)(null),E=iI(w,il(o)),b=(T=(v=(0,A.useRef)(!0),S=(0,A.useRef)(()=>v.current),(0,A.useEffect)(()=>(v.current=!0,()=>{v.current=!1}),[]),S.current),C=(0,A.useRef)(),_=()=>clearTimeout(C.current),(R=(0,A.useRef)(_)).current=_,y=R,(0,A.useEffect)(()=>()=>y.current(),[]),(0,A.useMemo)(()=>{let e=()=>clearTimeout(C.current);return{set:function(t,o=0){T()&&(e(),o<=nt?C.current=setTimeout(t,o):function e(t,o,r){let i=r-Date.now();t.current=i<=nt?setTimeout(o,i):setTimeout(()=>e(t,o,r),nt)}(C,t,Date.now()+o))},clear:e,handleRef:C}},[])),I=(0,A.useRef)(""),[M,O]=(d=(0,A.useRef)(void 0!==i),p=(u=(0,A.useState)(n))[0],f=u[1],m=void 0!==i,g=d.current,d.current=m,!m&&g&&p!==n&&f(n),[m?i:p,(0,A.useCallback)(function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];s&&s.apply(void 0,[e].concat(o)),f(e)},[s])]),N=a&&"object"==typeof a?a:{show:a,hide:a},{onFocus:x,onBlur:D,onClick:H}="function"!=typeof o?A.Children.only(o).props:{},G=(0,A.useCallback)(()=>{(b.clear(),I.current="show",N.show)?b.set(()=>{"show"===I.current&&O(!0)},N.show):O(!0)},[N.show,O,b]),k=(0,A.useCallback)(()=>{(b.clear(),I.current="hide",N.hide)?b.set(()=>{"hide"===I.current&&O(!1)},N.hide):O(!1)},[N.hide,O,b]),W=(0,A.useCallback)((...e)=>{G(),null==x||x(...e)},[G,x]),z=(0,A.useCallback)((...e)=>{k(),null==D||D(...e)},[k,D]),L=(0,A.useCallback)((...e)=>{O(!M),null==H||H(...e)},[H,O,M]),F=(0,A.useCallback)((...e)=>{no(G,e,"fromElement")},[G]),P=(0,A.useCallback)((...e)=>{no(k,e,"toElement")},[k]),B=null==e?[]:[].concat(e),Z={ref:e=>{E(i5(e))}};return -1!==B.indexOf("click")&&(Z.onClick=L),-1!==B.indexOf("focus")&&(Z.onFocus=W,Z.onBlur=z),-1!==B.indexOf("hover")&&(Z.onMouseOver=F,Z.onMouseOut=P),(0,oo.jsxs)(oo.Fragment,{children:["function"==typeof o?o(Z):(0,A.cloneElement)(o,Z),(0,oo.jsx)(i7,{...c,show:M,onHide:k,flip:h,placement:l,popperConfig:r,target:w.current,children:t})]})},ni={},nn=document.createElement("canvas");nn.id="gk-graph-avatar-canvas";class ns extends A.Component{image;constructor(e){super(e),this.image=new Image,this.image.crossOrigin="anonymous",this.image.onload=()=>this.refreshImage(),this.state={dataURL:void 0}}static getDerivedStateFromProps(e,t){return{dataURL:!e.url&&t.dataURL?void 0:t.dataURL}}componentDidMount(){let{url:e}=this.props;e&&this.startImgLoading(e)}componentDidUpdate(e){let{url:t}=this.props;t&&e.url!==t&&this.startImgLoading(t)}componentWillUnmount(){this.image=void 0}refreshImage(){let e;if(this.image){if(this.image.complete){let t=this.image.height,o=this.image.width,r=nn.getContext("2d");r.canvas.width=o,r.canvas.height=t,r.drawImage(this.image,0,0,o,t),e=nn.toDataURL(),ni[this.image.src]=e}this.setState({dataURL:e})}}startImgLoading(e){if(!this.image)return;let t=ni[e];t?this.setState({dataURL:t}):this.image.src=e}render(){let{avatarClassName:e,avatarStyle:t,children:o,className:r,context:i,enableTransparentBackground:n,style:s,height:a,hint:l,size:h,width:c}=this.props,{dataURL:d}=this.state,u=!d,p=u?s:{...s,...t,background:`url(${d}) center / cover no-repeat ${n?"":"var(--app__bg0, #1c1e23)"} padding-box`,height:a||h,width:c||h},f=x()(r,u?"":e,!u&&{avatar:!0}),m=u?A.createElement(A.Fragment,null,o):void 0;return A.createElement("div",{className:f,"data-test-class":d?"avatar":"local-avatar","data-vscode-context":(0,ea.DO)(i),style:p,title:l},m)}}function na({icon:e,tooltipClassName:t,tooltipId:o,tooltipText:r}){return r&&o?A.createElement(nr,{delay:400,overlay:A.createElement(iP,{className:x()("gk-graph","bs-tooltip",t),id:o},r),placement:"top",trigger:["hover","focus"]},e||A.createElement("span",null)):A.createElement(A.Fragment,null," ",e||A.createElement("span",null)," ")}function nl({id:e,toolTipText:t,getExternalIcon:o,issueTrackerType:r}){return A.createElement(na,{icon:o(`issue-${r}`),tooltipClassName:"wide pull-left",tooltipId:`issue-tooltip-${e}`,tooltipText:t?t.trim():""})}function nh({hostingServiceType:e,icon:t,id:o,toolTipText:r}){return A.createElement(na,{icon:t,tooltipClassName:"wide pull-left",tooltipId:`pr-tooltip-${e}-${o}`,tooltipText:r?r.trim():""})}function nc({icon:e,type:t,upstream:o,tooltipText:r}){return A.createElement(na,{icon:e,tooltipClassName:"wide pull-left",tooltipId:`upstream-indicator-tooltip-${t}-${o}`,tooltipText:r})}function nd({avatarClassName:e,avatarUrl:t,context:o,icon:r,tooltipText:i}){return A.createElement(na,{icon:A.createElement("span",{className:"ref-avatar"},A.createElement(ns,{avatarClassName:e??void 0,context:o,enableTransparentBackground:!0,size:14,url:t??void 0},r)),tooltipId:`remote-icon-${i||"tooltipText"}`,tooltipText:i})}var nu=n(599),np=n(366),nf=function({className:e,name:t}){return A.createElement("span",{className:x()("ref-name","truncate",e),style:{height:V.F0}},t)};let nm=A.default.forwardRef(({children:e,className:t,isRefGhost:o,isRefHidden:r,isRefActive:i,isRefPinned:n,...s},a)=>{let l=x()(t,"relative",{"display-none":!e}),h=x()("absolute top-0 bottom-0 left-0 right-0 pointer-events-none"),c=!r&&!o;return A.default.createElement("div",{...s,className:l,ref:a},c&&i&&A.default.createElement("div",{className:h,id:V.ax}),c&&n&&A.default.createElement("div",{className:h,id:V.MQ}),e)});function ng(e,t,o,r=0){let i,n,s,{annotated:a,refType:l,message:h,name:c}=t;switch(l){case e_.z.REMOTE:{n=t.hostingServiceType?`${e_.z.REMOTE}-${t.hostingServiceType}`:e_.z.REMOTE,i=t.avatarUrl;let e=`${c} (${o("Ref-Remote")})`;s=t.owner?`${t.owner} -> ${e}`:e;break}case e_.z.TAG:n=e_.z.TAG,s=`${a&&h?h:c} (${o("Ref-Tag")})`;break;case e_.z.HEAD:default:{let e=null!=t.worktreeId;n=e?e_.z.WORKTREE:e_.z.HEAD,s=`${c} (${o(e?"Ref-Worktree":"Ref-Local")})`}}let d=t.context||void 0,u=A.createElement("span",{"data-vscode-context":(0,ea.DO)(d)},e(n));return A.createElement(nd,{avatarUrl:i||"",context:d??null,icon:u,key:`ref-icon-${r}-${l}-${c}`,tooltipText:s})}nm.displayName="RefNodeAnnotationTarget";class n_ extends A.PureComponent{getContextForRefGroupIfExists(e,t,o){let r,i=!1,n=!1,s=!1;for(let a of e){if(a.refType===e_.z.HEAD)return o?a.contextGroup||t:a.context;a.refType===e_.z.REMOTE&&("origin"===a.owner?(i=!0,r=o?a.contextGroup||t:a.context):i||"upstream"!==a.owner?i||n||(s=!0,r=o?a.contextGroup||t:a.context):(n=!0,r=o?a.contextGroup||t:a.context)),i||n||s||(r=o?a.contextGroup||t:a.context)}return r}getDecoratedRefIcon(e,t,o,r,i){return A.createElement("div",{className:i,"data-vscode-context":(0,ea.DO)(r),key:e,onClick:e=>this.onClickMetadata(e,o),onDoubleClick:e=>this.onDoubleClickMetadata(e,o)},t)}getPullRequestIconsAndTooltipsForRef(e,t,o){let r,{fallbackRefMetadata:i,getExternalIcon:n,onMissingRefMetadata:s,translate:a}=this.props;if(!(r=t.refType===e_.z.HEAD?t.upstream?e?.[t.upstream.id]?.[el.ki]:null:(0,ea.yb)(t,e,s,el.ki,i))||0===r.length)return null;let l=[];for(let e of r){let{context:r,hostingServiceType:i,id:s,title:h}=e;if(o.has(s))continue;o.add(s);let c={refId:t.id,type:el.ki,data:e},d=`pr-icon-${t.refType}-${t.name}-${s}`,u=this.getDecoratedRefIcon(d,n("pull-request"),c,r,x()("ref-pull-request"));l.push(A.createElement(nh,{hostingServiceType:i,icon:u,id:s,key:d,toolTipText:h&&""!==h.trim()?a("PullRequestIcon-Tooltip",s,h,(0,nu.T)(i)):""}))}return l}getUpstreamIndicatorIconsAndTooltipsForRef(e,t){let{fallbackRefMetadata:o,getExternalIcon:r,onMissingRefMetadata:i,translate:n}=this.props,s=(0,ea.yb)(t,e,i,el.RA,o);if(!s||0===s.ahead&&0===s.behind)return null;let a={refId:t.id,type:el.RA,data:s},l=s.ahead>0,h=s.behind>0,c=s.context;if(l||h){let e,o,i=l?`${s.ahead>99?"99+":s.ahead}`:"",d=h?`${s.behind>99?"99+":s.behind}`:"",u=`${s.owner}/${s.name}`;h&&l?(e=n("UpstreamIndicatorIcon-BehindAndAheadTooltip",d,i,u),o="ahead-behind"):h?(e=n("UpstreamIndicatorIcon-BehindTooltip",d,u),o="behind"):(e=n("UpstreamIndicatorIcon-AheadTooltip",i,u),o="ahead");let p=A.createElement(A.Fragment,null,h?A.createElement(A.Fragment,null,A.createElement("span",{className:"ref-upstream-behind"},d),r("upstream-behind")):null,l?A.createElement(A.Fragment,null,A.createElement("span",{className:"ref-upstream-ahead"},i),r("upstream-ahead")):null);return A.createElement(nc,{icon:this.getDecoratedRefIcon(`ref-upstream-${t.id}`,p,a,c,"ref-upstream"),tooltipText:e,type:o,upstream:u})}return null}getIssueIconsAndTooltipsForRef(e,t,o){let{fallbackRefMetadata:r,getExternalIcon:i,onMissingRefMetadata:n,translate:s}=this.props,a=(0,ea.yb)(t,e,n,el.fd,r);if(!a||0===a.length)return null;let l=[];for(let e of a){if(o.has(e.id))continue;let r={refId:t.id,type:el.fd,data:e};o.add(e.id);let n=A.createElement(nl,{getExternalIcon:i,id:e.id,issueTrackerType:e.issueTrackerType,key:`issue-icon-${e.id}`,toolTipText:e.title&&""!==e.title.trim()?s("IssueIcon-Tooltip",e.displayId,e.title):""}),a=e.context||void 0;l.push(this.getDecoratedRefIcon(`ref-issue-${e.id}`,n,r,a,x()("ref-issue")))}return l}onContextMenu=e=>{let{onContextMenu:t,refGroup:o,sha:r}=this.props;t(e,o,r)};onClick=e=>{let{onClick:t,refGroup:o,sha:r}=this.props;t(e,o,r)};onClickMetadata=(e,t)=>{e.stopPropagation();let{onClick:o,refGroup:r,sha:i}=this.props;o(e,r,i,t)};onDoubleClick=e=>{let{onDoubleClick:t,refGroup:o,sha:r}=this.props;t(e,o,r)};onDoubleClickMetadata=(e,t)=>{e.stopPropagation();let{onDoubleClick:o,refGroup:r,sha:i}=this.props;o(e,r,i,t)};render(){let{className:e,enableShowHideRefsOptions:t,hasActive:o,hasRefs:r,isHidden:i,isActive:n,isGhostRef:s,isPinned:a,getExternalIcon:l,groupIsHovered:h,isInUnsupportedRebase:c,onRefBeginDrag:d,onRefDragEnter:u,onRefDragLeave:p,onRefDrop:f,onRefCanDrag:m,onRefCanDrop:g,onRefEndDrag:_,isRefGroupIncluded:v,refGroup:S,refGroupContext:R,refIconsPosition:y,refMetadata:T,onHovered:C,onHideRefClick:w,sha:E,showRemoteNamesOnRefs:b,enabledRefMetadataTypes:I,translate:M,type:O,useColumnHeaderIcons:N}=this.props,D=t&&!o&&h&&!v,H=y===e_.E.LEFT,G=y===e_.E.RIGHT,k=x()("ref-node-wrapper","flex"),W={minWidth:0,marginLeft:3,height:V.$0},z=x()("ref-node","flex","items-center","p1",{"has-active":o,"dim-ref":!r&&h,"is-active":n}),L="";S.length>0&&(L=b&&S[0].fullName||S[0].name);let F=x()({"display-none":N&&!h&&G,mr1:G}),P=A.createElement(nf,{className:F,name:L}),B=[],Z=[],U=[],j=null,$=new Set,Y=new Set;S.forEach((e,t)=>{if(B.push(ng(l,e,M,t)),I.includes(el.fd)&&(e.refType===e_.z.HEAD||e.refType===e_.z.REMOTE)){let t=this.getIssueIconsAndTooltipsForRef(T,e,Y);t&&U.push(...t)}if(I.includes(el.ki)&&e.refType===e_.z.REMOTE){let t=this.getPullRequestIconsAndTooltipsForRef(T,e,$);t&&Z.push(...t)}I.includes(el.RA)&&e.refType===e_.z.HEAD&&(j=this.getUpstreamIndicatorIconsAndTooltipsForRef(T,e))});let K=A.createElement("span",{className:x()("flex","items-center","ref-icons",{"is-active":n,"is-left-position":H})},[...B,...Z,...U]),q=n?A.createElement(na,{icon:A.createElement("span",{className:"ref-icon-current"},l("check")),tooltipId:"ref-icon-current",tooltipText:M("Ref-Current")}):a?A.createElement(na,{icon:A.createElement("span",{className:"ref-icon-pinned"},l("pin")),tooltipId:"ref-icon-pinned",tooltipText:M("Ref-Pinned")}):null,X=this.getContextForRefGroupIfExists(S,R),Q=this.getContextForRefGroupIfExists(S,R,!0),J=D?A.createElement("span",{className:"flex ml-auto"},A.createElement(na,{icon:A.createElement("span",{className:x()("mr1","button"),onClick:e=>w(e,S,E)},l("hide")),tooltipId:`ref-node-toggle-visibility-btn-${L}`,tooltipText:M("Hide")})):null;return A.createElement("div",{className:x()(e,{hidden:i})},A.createElement(np.A,{canDrag:e=>m(e),canDrop:(e,t,o)=>g(e,t,o),className:k,"data-vscode-context":(0,ea.DO)(Q),dndData:{commitType:O,isGhostRef:s,isInUnsupportedRebase:c,refGroup:S,sha:E},dndId:`DndRefNode_${S[0].id}`,onBeginDrag:(e,t)=>d(e,t),onDragEnter:(e,t,o)=>u(e,t,o),onDragLeave:(e,t,o)=>p(e,t,o),onDrop:(e,t,o)=>f(e,t,o),onEndDrag:(e,t,o)=>_(e,t,o),style:W},A.createElement("span",{className:z,"data-test-class":"ref-node-span","data-vscode-context":(0,ea.DO)(X),onContextMenu:c?void 0:this.onContextMenu,onDoubleClick:c?void 0:this.onDoubleClick,onMouseDown:this.onClick,onMouseEnter:e=>C(e,S,E),style:{minWidth:"100%"}},A.createElement(nm,{className:"ref-icon",isRefActive:n,isRefGhost:s,isRefHidden:i??!1,isRefPinned:a},q),H&&K,P,G&&K,j,J)))}}class nv extends A.Component{headIconsRef=A.createRef();containerRef=A.createRef();popoverMenuTargetRef=A.createRef();constructor(e){super(e),this.state={showPopoverMenu:!1}}onHiddenRefsClick=e=>{let{showPopoverMenu:t}=this.state;e.stopPropagation(),this.setState({showPopoverMenu:!t})};onShowRefNodes=(e,t,o)=>{this.props.onToggleRefNodesShown(e,t,o),(0,ed.xV)(this.props.excludeRefsById)||this.setState({showPopoverMenu:!0})};compareGraphRefOpts(e,t){let o=e.name.localeCompare(t.name);return 0===o&&e.type===e_.z.REMOTE?-1:o}render(){let{columnSetting:e,enableResizer:t,enableShowHideRefsOptions:o,getExternalIcon:r,graphWidth:i,graphZones:n,graphZoneType:s,excludeRefsById:a,includeOnlyRefsById:l,isDraggable:h,onFilterColumnClick:c,onHover:d,onResize:u,onResizeEnd:p,onResizeFromPropChange:f,onResizeStart:m,onUnhover:g,onSettingsClick:_,rowsStatsLoading:v,settingsContext:S,showRemoteNamesOnRefs:R,translate:y}=this.props,{showPopoverMenu:T}=this.state,C=(0,ea.Et)(s,n);if(!C)return null;let w=(0,ea.z)(s,n),E=C.currentWidth-V.WQ,b=`${s}-header`,I=(0,ea.uQ)(C),M=e?.isFilterable||!1,O=I&&(M||o),N=x()("columns-btn",{"small-btn":O}),D=null,H=null;if(s===V.ui){let e=Object.entries(a),t=Object.values(l),i=t.length>0,n=i&&t.some(e=>e.type===e_.z.TAG),s=e.filter(e=>e[1].type===e_.z.TAG&&(!i||!n)||!l[e[0]]);s.length>0&&(H=s.sort((e,t)=>this.compareGraphRefOpts(e[1],t[1])).map((e,t)=>{let o=e[0],i=e[1];a[o].id=o;let n={name:i.name,refType:i.type,owner:i.owner,avatarUrl:i.avatarUrl},s=(R||"*"===n.name)&&n.refType===e_.z.REMOTE?`${n.owner}/${n.name}`:n.name;return A.createElement("li",{id:o,key:o,onClick:e=>this.onShowRefNodes(e,[a[o]],!0)},ng(r,n,y,t),A.createElement("span",{className:"ml1 text-ellipsis"},s))}),D=o?A.createElement("div",{className:x()(N,"right","text-normal","button",T?"active":null),ref:this.popoverMenuTargetRef},A.createElement(na,{icon:A.createElement("span",{onClick:this.onHiddenRefsClick},r("hide")),tooltipId:"header-ref-node-hidden-refs-btn",tooltipText:y("GraphHeader-HiddenRefs-btn")})):null)}let G=M?A.createElement("div",{className:x()(N,"columns-filter","right","fs-1",{filtering:e?.isFilterActive||!1})},A.createElement(na,{icon:A.createElement("span",{className:"columns-filter-icon text-disabled hover-icon",id:`${s}-header-filter`,onClick:e=>c(e,s),style:{height:V.bo,marginBottom:V.Qb}},r("filter")),tooltipId:"header-columns-filter",tooltipText:y("GraphHeader-Filter")})):null,k=!I&&s===V.Sq&&v?A.createElement("span",{className:x()(N,"spinner")},r("loading")):null,W=A.createElement(i7,{container:this.containerRef.current,onHide:T?()=>{this.setState({showPopoverMenu:!1})}:void 0,placement:"bottom",rootClose:T,show:T,target:this.popoverMenuTargetRef.current},e=>A.createElement(iL,{className:x()({"is-last-header":w}),id:"opts-popover",...e},A.createElement("ul",null,H))),z=w&&_?A.createElement("div",{className:x()("columns-btn","columns-settings","right","fs-1"),"data-vscode-context":(0,ea.DO)(S)},A.createElement(na,{icon:A.createElement("span",{className:"columns-settings-icon text-disabled hover-icon",onClick:e=>_(e,i)},r("settings")),tooltipId:"header-columns-settings",tooltipText:y("GraphHeader-EditColumns")})):null,L=this.headIconsRef?.current?.clientWidth??0,F=A.createElement("div",{className:"header-columns-icons",ref:this.headIconsRef},z,k,G,D),P=I?A.createElement(A.Fragment,null,A.createElement("div",{className:x()(N,"justify-start",{ml1:!O}),style:{width:E-L},title:y(C.headerLabelUntranslated)},r((0,ea.n0)(s))),F):A.createElement(A.Fragment,null,A.createElement("div",{className:"text-disabled text-ellipsis",style:{height:V.bo,overflow:"hidden",width:E-L}},A.createElement("span",{className:"fs-1 ml1 font-monospace"},y(C.headerLabelUntranslated))),F),B=A.createElement("div",{onMouseEnter:d,onMouseLeave:g},W,P),Z=x()("panel-bg0","graph-header",{"is-draggable":h,"is-last-header":w});return A.createElement("div",{className:Z,id:b,key:b,ref:this.containerRef,style:{zIndex:2,transform:"translate3d(0, 0, 0)",...w?{minWidth:E}:{display:"flex",minWidth:C.currentWidth,width:C.currentWidth}}},w?B:A.createElement(ob,{className:Z,enable:t,handleStyles:{right:{right:0}},height:V.bo,id:`${s}HeaderColumn`,onResize:u?e=>u(C,e):void 0,onResizeEnd:p?e=>p(C,e):void 0,onResizeFromPropChange:f?e=>f(C,e):void 0,onResizeStart:m?e=>m(C,e):void 0,resizeContentClassName:"z1",resizeEdge:"right",resizeHandleClassName:"z2 border-right",style:{display:"flex"},translate:y,width:C.currentWidth,widthConstraints:(0,ea.qC)(s,n,i)},B))}}class nS extends A.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(){let{columnsSettings:e,dragAppendToContainer:t,enableResizer:o,enableShowHideRefsOptions:r,getExternalIcon:i,excludeRefsById:n,headerContext:s,includeOnlyRefsById:a,onFilterColumnClick:l,onPopupGraphHeaderContextMenu:h,onGraphZoneResize:c,onGraphZoneResizeEnd:d,onGraphZoneResizeFromPropChange:u,onSettingsClick:p,onToggleRefNodesShown:f,graphZones:m,repoPath:g,rowsStatsLoading:_,showRemoteNamesOnRefs:v,translate:S,width:R,height:y,settingsContext:T}=this.props,C=A.createElement("div",{className:"panel-bg0",style:{height:V.bo,marginBottom:V.Qb,marginLeft:-V.xY,minWidth:V.xY+V.WQ}});return A.createElement("div",{className:"graph-header flex","data-vscode-context":(0,ea.DO)(s),onContextMenu:h?e=>h(e,R):void 0,onMouseDownCapture:this.props.onMouseDownCapture,onMouseMoveCapture:this.props.onMouseMoveCapture,onMouseUpCapture:this.props.onMouseUpCapture,onWheelCapture:this.props.onWheel,style:{height:V.bo,marginBottom:V.Qb}},C,A.createElement(oq,{className:"flex",direction:"horizontal",isDraggable:this.isDraggable,isDroppable:this.isDroppable,mirrorContainer:t,onDrop:this.onDrop},m.map(t=>A.createElement(nv,{columnSetting:e[t.type],enableResizer:o,enableShowHideRefsOptions:r,excludeRefsById:n,getExternalIcon:i,graphHeight:y,graphWidth:R,graphZones:m,graphZoneType:t.type,id:`${t.type}Header`,includeOnlyRefsById:a,isDraggable:t.isCustomizable,isDroppable:t.isCustomizable,key:`${t.type}Header`,onFilterColumnClick:l,onHover:this.onZoneHover,onResize:c,onResizeEnd:d,onResizeFromPropChange:u,onSettingsClick:p,onToggleRefNodesShown:f,onUnhover:this.onZoneUnHover,repoPath:g,rowsStatsLoading:_,settingsContext:T,showRemoteNamesOnRefs:v,translate:S}))))}}var nR=n(484);let ny=/[^a-zA-Z0-9_\-€-￿]/g,nT=new Map;function nC(e){let t=nT.get(e);if(null!=t)return t;let o=`--row-${e.replace(ny,e=>`\\${e}`)}`;return nT.set(e,o),o}var nw=function({sha:e,content:t,isHovered:o,isSelected:r}){if(null==t)return null;let i="row-adornment-overlay";r?i+=" is-selected":o&&(i+=" is-hovered");let n={positionAnchor:nC(e)};return A.createElement("div",{className:i,"data-sha":e,style:n},t)};class nE extends A.Component{adornments=new Map;pendingResolves=new Map;provideAbortController;resolveIdCounter=0;state={cacheVersion:0};componentDidMount(){this.setupProvider()}componentDidUpdate(e){if(e.provider!==this.props.provider&&(this.teardownProvider(e.provider),this.setupProvider()),this.adornments.size){let e=this.props.getVisibleRows();this.evictDistantAdornments(e)}}componentWillUnmount(){this.teardownProvider(this.props.provider)}setupProvider(){this.props.provider.invalidate?.addEventListener(nR.e.type,this.onInvalidate)}teardownProvider(e){this.provideAbortController?.abort(),this.provideAbortController=void 0,this.pendingResolves.clear(),this.adornments.clear(),e.invalidate?.removeEventListener(nR.e.type,this.onInvalidate)}onInvalidate=e=>{let{shas:t,type:o}=e.detail;if("all"===o)if(t)for(let e of t)this.adornments.delete(e);else this.adornments.clear();else if(t)for(let e of t){let t=this.adornments.get(e);t&&(t.content=void 0)}else for(let e of this.adornments.values())e.content=void 0;this.setState(e=>({cacheVersion:e.cacheVersion+1}))};provideForVisibleRows(e){let{provider:t}=this.props,o=e.filter(e=>!this.adornments.has(e.sha));if(!o.length)return;this.provideAbortController?.abort(),this.provideAbortController=new AbortController;let r=this.provideAbortController.signal,i=t.provideAdornments(o,r);i instanceof Promise?i.then(e=>{r.aborted||(this.applyProvideResults(e),this.setState(e=>({cacheVersion:e.cacheVersion+1})))}).catch(()=>{}):this.applyProvideResults(i)}applyProvideResults(e){for(let[t,o]of Object.entries(e))this.adornments.set(t,{visibility:o.visibility??!0,dynamic:o.dynamic??!1,context:o.context,content:void 0})}evictDistantAdornments(e,t=100){let{allRows:o}=this.props;if(0===e.length||0===this.adornments.size)return;let r=e.map(e=>e.rowIndex??-1).filter(e=>e>=0);if(0===r.length)return;let i=Math.min(...r),n=Math.max(...r),s=new Set,a=Math.max(0,i-t),l=Math.min(o.length-1,n+t);for(let e=a;e<=l;e++){let t=o[e];t&&s.add(t.sha)}for(let e of this.adornments.keys())s.has(e)||(this.adornments.delete(e),this.pendingResolves.delete(e))}shouldShowAdornment(e,t){if(!0===e)return!0;for(let o of e)if("hover"===o&&t.isHovered||"focus"===o&&t.isFocused||"selected"===o&&t.isSelected)return!0;return!1}getOrResolveContent(e){let{provider:t}=this.props,o=this.adornments.get(e.sha);if(!o)return;if(void 0!==o.content&&!o.dynamic)return o.content;let r=t.resolveAdornment(e,o.context);if(r instanceof Promise){let t=++this.resolveIdCounter;this.pendingResolves.set(e.sha,t),r.then(r=>{this.pendingResolves.get(e.sha)===t&&(this.pendingResolves.delete(e.sha),o.dynamic||(o.content=r),this.setState(e=>({cacheVersion:e.cacheVersion+1})))}).catch(()=>{this.pendingResolves.delete(e.sha)});return}return o.dynamic||(o.content=r),r}render(){let{getVisibleRows:e,selectedShas:t,hoveredSha:o,focusedSha:r}=this.props,i=e();this.provideForVisibleRows(i);let n=[];for(let e of i){let i=this.adornments.get(e.sha);if(!i)continue;let s={isHovered:o===e.sha,isFocused:r===e.sha,isSelected:t.has(e.sha)};if(!this.shouldShowAdornment(i.visibility,s))continue;let a=this.getOrResolveContent(e);null!=a&&n.push(A.createElement(nw,{content:a,isHovered:s.isHovered,isSelected:s.isSelected,key:e.sha,sha:e.sha}))}if(!n.length)return null;let{hasVerticalScrollbar:s}=this.props;return A.createElement("div",{className:s?"row-adornment-overlay-container has-scrollbar":"row-adornment-overlay-container"},n)}}function nb(e){let{constraints:{max:t,min:o},stats:{files:r,additions:i,deletions:n},getExternalIcon:s,isLastColumn:a,isRowSelected:l,verticalScrollWidth:h,zoneWidth:c}=e,d=i+n,u=Math.max(o,Math.min(t,d)),p=a?h+V.KA:V.KA;d<=u&&(p+=V.KA);let f=Math.max(V.MT,u/t*(c-52-p));return A.createElement("div",{className:x()("changes-zone",l?"selected":null)},A.createElement("span",{className:"changes-files",style:{width:52}},A.createElement("span",{className:"mr1"},s("files")),A.createElement("span",{className:"mr1"},r>999?"999+":r)),A.createElement("span",{className:"changes-bar",style:{width:f}},i?A.createElement("div",{className:"changes-sub-bar added",style:{width:i/d*f}}):null,n?A.createElement("div",{className:"changes-sub-bar deleted",style:{width:n/d*f}}):null))}let nI=A.createElement("div",{className:"color-strip height-100",style:{width:2}}),nM={},nO={};class nN extends A.PureComponent{render(){let e,t,{clearCurrentlyHoveredGraphCommit:o,children:r,column:i,columnForColoring:n,context:s,currentlyHoveredCommitSha:a,dimRowsOfSelectedCommit:l,getExternalIcon:h,graphZoneType:c,hasActive:d,hasAvatars:u,highlightRowsOnRefHover:p,isDimmedMergeCommitRow:f,isHighlighted:m,isHovering:g,isLastColumn:_,isInUnsupportedRebase:v,isMissingHoveredRefGroup:S,isSelected:R,numGraphColumns:y,onContextMenu:T,onClickCommit:C,onDoubleClickCommit:w,rowContext:E,scopeBoundaryKind:b,sha:I,showColorStrip:M,showConflictIcon:O,showTimeline:N,setAsCurrentlyHoveredGraphCommit:D,style:H,title:G,type:k,verticalScrollWidth:W,zoneWidth:z}=this.props,L=((t=nM[e=k+g.toString()])||(t=x()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative",k,{"is-hovering":g}),nM[e]=t),t),F=function(e,t,o,r,i,n=!1,s=!1,a=!1,l=!1,h,c=!1){let d=`${e}${t}${r}${o}${n}${s}${a}${l}${i}${h??""}${c}`,u=nO[d];return u||(u=x()(`column-${t%i+1}`,"graph-row","height-100-percent","flex",e,{"is-selected":r},{"is-highlighted":o},{"dimmed-row":l&&!o||n&&(s||a)},{"scope-fork-point":"forkPoint"===h,"scope-merge-target":"mergeTarget"===h},{"has-active":c}),nO[d]=u),u}(k,n??i,m,R,y,S,p,l,f,b,d),P=N?A.createElement(ox,null):null,B=_?{anchorName:nC(I)}:void 0;return A.createElement("div",{className:L,"data-vscode-context":(0,ea.DO)(E),onContextMenu:v?void 0:e=>T(e,c,I),onDoubleClick:e=>w(e,c,I),onMouseDown:e=>C(e,c,I),onMouseEnter:e=>D(e,c,I,a??void 0),onMouseLeave:e=>o(e,c,I,a??void 0),style:{...H,...B}},P,A.createElement("div",{className:F,"data-vscode-context":(0,ea.DO)(s)},M?nI:null,O?A.createElement("span",{className:x()("ml2")},h("warning")):null,A.createElement("span",{className:x()("graph-zone","width-100","flex-1"),style:{lineHeight:`${V.$0}px`,..._&&{width:z-W},...u&&{marginLeft:5}},title:G??void 0},r)))}}function nx(e){let t=(e||"").trim().toUpperCase();if(0===t.length)return"?";let o=t.split(" ");return 1===o.length?o[0][0]:o.length>1?o[0][0]+o[o.length-1][0]:"?"}function nA(e,t){return e&&t?`${e} <${t}>`:e||t||""}class nD extends A.Component{constructor(e){super(e),this.state={tooltipText:""}}getDefaultAvatar=(e,t,o)=>{var r;let{authorInitials:i,column:n,context:s,cssVariables:a,style:l,fontSize:h,minWidth:c,size:d,title:u=""}=this.props,p=void 0!==n&&a[(0,P.$6)(n)]||V.BP,f=("hsla"===(r=z(p.trim())).type&&(r=k(r)),(299*r.r+587*r.g+114*r.b)/1e3<128)?"#FFFFFF":"#000000",m={alignItems:"center",backgroundColor:p,backgroundSize:d,color:f,display:"flex",fontSize:`${h}px`,fontWeight:"bold",height:e,justifyContent:"center",minWidth:c,top:o,width:t,...l};return A.createElement("div",{className:this.getAvatarClassName(),"data-vscode-context":(0,ea.DO)(s),style:m,title:u},i?i.toUpperCase():"")};ensureTooltipText=()=>{let{tooltip:e}=this.props;this.setState({tooltipText:"function"==typeof e?e():e})};getAvatarClassName(){return x()("avatar","gravatar","rad2",this.props.className)}render(){let{tooltipText:e}=this.state,{avatarUrl:t,context:o,style:r,height:i,minWidth:n,size:s,title:a="",tooltip:l,top:h,useAuthorInitialsForAvatars:c,width:d}=this.props,u=i||s,p=d||s,f=h||V.lH/2-u/2,m={top:f,minWidth:n,...r},g=this.getDefaultAvatar(u,p,f),_=c?g:A.createElement("span",null,A.createElement(ns,{avatarClassName:this.getAvatarClassName(),avatarStyle:m,context:o,height:u,hint:a,size:s,url:t??void 0,width:p},this.getDefaultAvatar(u,p,f)));return l?A.createElement(nr,{delay:250,onEnter:this.ensureTooltipText,overlay:A.createElement(iP,{className:"gk-graph",id:"graph-gravatar-tooltip"},e),placement:"top",trigger:["hover","focus"]},_):_}}let nH={type:ne().string,tooltip:ne().bool,as:ne().elementType},nG=A.forwardRef(({as:e="div",className:t,type:o="valid",tooltip:r=!1,...i},n)=>(0,oo.jsx)(e,{...i,ref:n,className:x()(t,`${o}-${r?"tooltip":"feedback"}`)}));nG.displayName="Feedback",nG.propTypes=nH;let nk=A.createContext({}),nW=A.forwardRef(({bsPrefix:e,type:t,size:o,htmlSize:r,id:i,className:n,isValid:s=!1,isInvalid:a=!1,plaintext:l,readOnly:h,as:c="input",...d},u)=>{let{controlId:p}=(0,A.useContext)(nk);return e=iA(e,"form-control"),(0,oo.jsx)(c,{...d,type:t,size:r,ref:u,readOnly:h,id:i||p,className:x()(n,l?`${e}-plaintext`:e,o&&`${e}-${o}`,"color"===t&&`${e}-color`,s&&"is-valid",a&&"is-invalid")})});nW.displayName="FormControl";let nz=Object.assign(nW,{Feedback:nG});var nL=n(83);class nF extends A.Component{render(){let{fileDiffType:e,getExternalIcon:t,translate:o,noMargin:r}=this.props;if(!e)return null;let i=(e=>{switch(e){case nL.g.ADDED:return"added";case nL.g.MODIFIED:return"modified";case nL.g.DELETED:return"deleted";case nL.g.RENAMED:return"renamed";default:return null}})(e),n=(e=>{switch(e){case nL.g.ADDED:return"color-green";case nL.g.MODIFIED:return"color-orange";case nL.g.DELETED:return"color-red";case nL.g.RENAMED:return"color-blue";default:return null}})(e),s=(e=>{switch(e){case nL.g.ADDED:return"CommitDiffSection-FileAdded";case nL.g.MODIFIED:return"CommitDiffSection-FileModified";case nL.g.DELETED:return"CommitDiffSection-FileDeleted";case nL.g.RENAMED:return"CommitDiffSection-FileRenamed";default:return null}})(e),a=x()("fs-1",n,{mr1:!r});return A.createElement("span",{className:a,title:o(s)},i&&t(i))}}var nP=function({workDirStats:e,getExternalIcon:t,translate:o}){let{added:r,deleted:i,modified:n}=e,{g:s}=nL;if(!r&&!i&&!n){let e=o("WipStatsPill-NoChanges");return A.createElement("span",{"aria-label":e,className:"wip-stats-pill wip-stats-pill--clean",title:e},A.createElement("span",{"aria-hidden":"true",className:"wip-stats-pill__check"},"✓"))}return A.createElement("span",{className:"wip-stats-pill"},r>0&&A.createElement("span",{className:"wip-stats-pill__item wip-stats-pill__item--added"},A.createElement(nF,{fileDiffType:s.ADDED,getExternalIcon:t,noMargin:!0,style:{},translate:o}),A.createElement("span",{className:"wip-stats-pill__count"},r)),n>0&&A.createElement("span",{className:"wip-stats-pill__item wip-stats-pill__item--modified"},A.createElement(nF,{fileDiffType:s.MODIFIED,getExternalIcon:t,noMargin:!0,style:{},translate:o}),A.createElement("span",{className:"wip-stats-pill__count"},n)),i>0&&A.createElement("span",{className:"wip-stats-pill__item wip-stats-pill__item--deleted"},A.createElement(nF,{fileDiffType:s.DELETED,getExternalIcon:t,noMargin:!0,style:{},translate:o}),A.createElement("span",{className:"wip-stats-pill__count"},i)))};class nB extends A.Component{textWidthRef=A.createRef();wrapperRef=A.createRef();static defaultProps={style:{},value:""};componentDidMount(){this.wrapperRef?.current&&(this.wrapperRef.current.style.width="0px")}componentDidUpdate(){this.textWidthRef?.current&&this.wrapperRef?.current&&(this.wrapperRef.current.style.width=`${Number(this.textWidthRef.current.offsetWidth)+35}px`)}componentWillUnmount(){this.props.onBlur&&this.props.onBlur()}onWipKeyDown(e){e.stopPropagation()}render(){let{clearCurrentlyHoveredGraphCommit:e,currentlyHoveredCommitSha:t,getExternalIcon:o,graphZoneType:r,isCommitting:i,isHovering:n,isSelected:s,onBlur:a,onClickCommit:l,onContextMenu:h,onFocus:c,onMessageChange:d,setAsCurrentlyHoveredGraphCommit:u,sha:p,style:f,translate:m,value:g,workDirStats:_}=this.props,v=x()("graph-zone-column","pt3","pb3","pointer","height-100-percent","grow-3","graph-row-wrapper",L.bY,{"is-hovering":n}),S=x()("column-1","graph-row","flex",{"is-selected":s}),R=A.createElement(nP,{getExternalIcon:o,translate:m,workDirStats:_}),y=A.createElement("div",{className:"work-dir-input",ref:this.wrapperRef},A.createElement(nz,{"data-test-class":"work-dir-input-field",disabled:i,onBlur:e=>a(e),onChange:e=>d(e.target.value),onContextMenu:e=>h(e,r,p),onFocus:e=>c(e),onKeyDown:e=>this.onWipKeyDown(e),placeholder:m("WorkDirMessageInput-WIPPlaceholder"),type:"text",value:g}),A.createElement("div",{className:"text-width","data-test-class":"work-dir-input-message",ref:this.textWidthRef},g));return A.createElement("div",{className:v,onMouseEnter:e=>u(e,r,p,t??void 0),onMouseLeave:o=>e(o,r,p,t??void 0),style:f},A.createElement("div",{className:S,"data-test-class":"work-dir-message-row-div",onMouseDown:e=>l(e,r,p),style:{position:"relative",width:"100%"}},y,R))}}function nZ({hasRefs:e,isActiveSha:t,left:o,type:r,width:i}){let n=x()("ref-line","z4",{"is-active":t});return e&&[L.oB,L.t$,L.l2].includes(r)?A.createElement("hr",{className:n,style:{left:o,width:i}}):null}function nU({graphZoneModeConstants:{RADIUS_DIFF_MERGE_NODE_COMMIT_NODE:e},hasRefs:t,isActiveSha:o,nodeOffset:r,type:i}){return A.createElement(nZ,{hasRefs:t,isActiveSha:o,left:0,type:i,width:r+(i===L.t$?e:0)})}function nj({className:e,marginLeft:t}){return A.createElement("div",{className:x()("app-bg0","absolute","left-0","right-0","bottom-0","top-0","pt3","pb3",e),style:{marginLeft:t}},A.createElement("div",{className:"commit-bg-color height-100-percent width-100-percent"}))}function nV({column:e,graphZoneModeConstants:{COMMIT_COLUMN_WIDTH:t,COMMIT_NODE_DIAMETER:o,COMMIT_ZONE_GUTTER_WIDTH:r}}){return A.createElement(nj,{className:"z1",marginLeft:r+t*e+o/2})}function n$(){return A.createElement(nj,{marginLeft:0})}let nY=(e,t,o,r,i,n,s=!1)=>{let a={height:n.COMMIT_MERGE_NODE_DIAMETER,left:o+n.COMMIT_MERGE_NODE_LEFT_OFFSET,marginTop:n.COMMIT_MERGE_NODE_TOP_OFFSET,opacity:r,width:n.COMMIT_MERGE_NODE_DIAMETER},l=x()("node",i,"z6"),h=A.createElement(iP,{className:"gk-graph",id:"graph-merge-node-tooltip"},nA(t,e)),c=A.createElement("div",{className:l,"data-test-class":"tree-row-commit-node",style:a});return s?c:A.createElement(nr,{delay:250,overlay:h,placement:"top",trigger:["hover","focus"]},c)};class nK extends A.PureComponent{render(){let{authorEmail:e,authorName:t,getExternalIcon:o,graphZoneModeConstants:r,left:i,opacity:n,suppressNonRefRowTooltips:s,translate:a,type:l}=this.props;return(t||e)&&l===L.oB?r.IS_COMPACT?nY(e,t,i,n,L.t$,r,s):(({authorEmail:e,authorInitials:t,authorName:o,avatarUrl:r,column:i,context:n,cssVariables:s,graphZoneModeConstants:a,left:l,message:h,opacity:c,suppressNonRefRowTooltips:d,type:u,useAuthorInitialsForAvatars:p})=>A.createElement(nD,{authorInitials:t,avatarUrl:r,className:x()("node",u,"z6"),column:i,context:n,cssVariables:s,fontSize:10,height:a.COMMIT_NODE_DIAMETER,size:a.COMMIT_ZONE_AVATAR_DIAMETER,style:{left:l,opacity:c},tooltip:d?void 0:()=>{let t=o&&""!==o.trim()&&"Unknown"!==o?nA(o,e):e,r=X(K(h||"")),i="";if(0===r.length)i=t;else{r.unshift({email:e,name:o});for(let e=0;e<r.length;e+=1){let t=r[e];i+=nA(t.name,t.email),e<r.length-1&&(i+=", ")}}return i},top:a.COMMIT_NODE_TOP_OFFSET,useAuthorInitialsForAvatars:p,width:a.COMMIT_NODE_DIAMETER}))(this.props):l===L.t$||l===L.l2||l===L.gL?nY(e,t,i,n,l,r,s):((e,t,o,r,i,n,s,a=!1,l,h=!1)=>{let c,d={height:l.COMMIT_NODE_DIAMETER,left:r,marginTop:l.COMMIT_NODE_TOP_OFFSET,opacity:i,width:l.COMMIT_NODE_DIAMETER};a&&(d.borderWidth=1);let u=x()("gk-graph","node",s,"z6",{compact:a});c=s===L.OZ?n("Stash"):s===L.bY?n("Graph-WorkInProgress"):nA(o,t);let p=A.createElement("div",{className:u,"data-test-class":"tree-row-commit-node",style:d},s!==L.OZ||a?null:A.createElement("span",null,e("stash"))),f=A.createElement(iP,{className:"gk-graph",id:"graph-other-node-tooltip"},c);return h?p:A.createElement(nr,{delay:250,overlay:f,placement:"top",trigger:["hover","focus"]},p)})(o,e,t,i,n,a,l,r.IS_COMPACT,r,s)}}class nq extends A.Component{render(){let{columnColorByColumn:e,edgeColumnMax:t,edges:o,nodeColumn:r,graphZoneModeConstants:{COMMIT_COLUMN_WIDTH:i,COMMIT_ZONE_GUTTER_WIDTH:n,COMMIT_ZONE_LINE_WIDTH:s,IS_COMPACT:a}}=this.props,l=function(e,t,o,r,i,n,s,a){let l=function(e,t,o,r){let i="";for(let n=0;n<=t;n++){let{passThrough:t,starting:s,ending:a}=e[n]??{};i=`${i}_${ei(n,o,s?.type,r)}_${ei(n,o,a?.type,r)}_${en(n,t?.type,r)}`}return i}(e,t,o,a),h=eO[l];if(h)return h;let c="";for(let l=0;l<=t;l+=1){let t=e[l];if(!t)continue;let{passThrough:h,starting:d,ending:u}=t;c+=d?function(e,t,o,r,i,n,s,a){var l,h;let c,d,u,p,f,m,g=ei(e,t,o,a),_=eM[g];return _?_:(_=t===e?(l=r[e],c=er(o,l,s,a),c.x1=d=J(t,i,n,a),c.x2=d,c.y1=c.strokeDasharray?V.kU/2+V.kj:V.kU/2,c.y2=V.kU,eo(c)):(h=r[e],u=er(o,h,s,a),p=t<e?-V.nf:V.nf,(f={...u}).x1=J(e,i,n,a),f.x2=J(e,i,n,a),f.y1=V.kU-V.kj,f.y2=V.kU,(m={...u}).x1=J(e,i,n,a)+p,m.x2=J(t,i,n,a),m.y1=V.kU/2,m.y2=V.kU/2,`<g>${eE(h,t<e?180:270,270*(t<e),o,J(e,i,n,a)+p,V.kU-V.kj,s,a)}${eo(f)}${eo(m)}</g>`),eM[g]=_,_)}(l,o,d.type,r,i,n,s,a):"",c+=h?function(e,t,o,r,i,n,s){let a=en(e,t,s),l=eI[a];if(l)return l;let h=J(e,r,i,s),c=er(t,o[e],n,s);return c.x1=h,c.x2=h,c.y1=0,c.y2=V.kU,l=eo(c),eI[a]=l,l}(l,h.type,r,i,n,s,a):"",c+=u?function(e,t,o,r,i,n,s,a){var l,h;let c,d,u,p,f,m,g=ei(e,t,o,a),_=eb[g];return _?_:(_=t===e?(l=r[e],c=er(o,l,s,a),c.x1=d=J(t,i,n,a),c.x2=d,c.y1=0,c.y2=c.strokeDasharray?V.kU/2-V._b:V.kU/2,eo(c)):(h=r[e],u=er(o,h,s,a),p=t<e?-V.nf:V.nf,(f={...u}).x1=J(e,i,n,a),f.x2=J(e,i,n,a),f.y1=0,f.y2=V._b,(m={...u}).x1=J(e,i,n,a)+p,m.x2=J(t,i,n,a),m.y1=V.kU/2,m.y2=V.kU/2,`<g>${eo(f)}${eE(h,t>e?0:90,t>e?90:180,o,J(e,i,n,a)+p,V._b,s,a)}${eo(m)}</g>`),eb[g]=_,_)}(l,o,u.type,r,i,n,s,a):""}let d=`<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><g>${c}</g></svg>`.replace(/%/g,"%25");return h=`url('data:image/svg+xml;charset=UTF-8,${d}')`,eO[l]=h,h}(o,t,r,e,i,n,s,a);return A.createElement("div",{className:"absolute top-0 right-0 bottom-0 left-0 z2",style:{background:l}})}}function nX({boxShadowAlpha:e,boxShadowLeft:t,children:o,className:r="",left:i,width:n}){return A.createElement("div",{className:x()("absolute","top-0","bottom-0","z3",r),style:{boxShadow:`${t}px 5px 10px rgba(0, 0, 0, ${e})`,left:i,width:n}},o)}function nQ({boxShadowAlpha:e,hasTimeline:t,scrollLeft:o,width:r}){return A.createElement(nX,{boxShadowAlpha:e,boxShadowLeft:5,className:"app-bg0 left-0",left:o,width:r},t?A.createElement(ox,{z2:!0}):null)}function nJ({boxShadowAlpha:e,commitZoneWidth:t,hasTimeline:o,scrollLeft:r,width:i}){return A.createElement(nX,{boxShadowAlpha:e,boxShadowLeft:-5,left:r+t-i,width:i},o?A.createElement(ox,{z2:!0}):null,A.createElement(n$,null))}class n0 extends A.PureComponent{render(){let{authorEmail:e,authorName:t,avatarContext:o,avatarUrl:r,clearCurrentlyHoveredGraphCommit:i,column:n,columnColorByColumn:s,columnForColoring:a,commitZoneWidth:l,cssVariables:h,currentlyHoveredCommitSha:c,edgeColumnMax:d,edges:u,hasRefs:p,hasTimeline:f,getExternalIcon:m,graphZoneModeConstants:g,isActiveSha:_,isInUnsupportedRebase:v,isLastColumn:S,isSelected:R,leftGutterBoxShadowAlpha:y,leftGutterWidth:T,message:C,nodeOffset:w,nodeOpacity:E,numGraphColumns:b,onContextMenu:I,onClickCommit:M,onDoubleClickCommit:O,rightGutterBoxShadowAlpha:N,rightGutterWidth:D,rowContext:H,scopeBoundaryKind:G,scrollLeft:k,setAsCurrentlyHoveredGraphCommit:W,sha:z,shouldShowRefLine:L,suppressNonRefRowTooltips:F,style:P,translate:B,type:Z,useAuthorInitialsForAvatars:U,zoneContext:j}=this.props,$=(a??n)%b+1,Y=x()("relative","commit-zone","height-100-percent","pt3",Z,`column-${$}`,{"is-selected":R,"has-active":_,"scope-fork-point":"forkPoint"===G,"scope-merge-target":"mergeTarget"===G}),K=f?A.createElement(ox,{z2:!0}):null,q=A.createElement("div",{className:Y,"data-vscode-context":(0,ea.DO)(j),onContextMenu:v?void 0:e=>I(e,V.md,z),onDoubleClick:e=>O(e,V.md,z),onMouseDown:e=>M(e,V.md,z),onMouseEnter:e=>W(e,V.md,z,c),onMouseLeave:e=>i(e,V.md,z,c),style:{...P,...S&&{width:"100%"}}},K,A.createElement(nQ,{boxShadowAlpha:y,hasTimeline:f,scrollLeft:k,width:T}),L?A.createElement(nU,{graphZoneModeConstants:g,hasRefs:p,isActiveSha:_,nodeOffset:w,type:Z}):null,A.createElement(nK,{authorEmail:e,authorInitials:nx(t),authorName:t,avatarUrl:r,column:n,context:o,cssVariables:h,getExternalIcon:m,graphZoneModeConstants:g,left:w,message:C,opacity:E,suppressNonRefRowTooltips:F,translate:B,type:Z,useAuthorInitialsForAvatars:U}),A.createElement(nV,{column:n,graphZoneModeConstants:g}),A.createElement(nq,{columnColorByColumn:s,edgeColumnMax:d,edges:u,graphZoneModeConstants:g,nodeColumn:n}),A.createElement(nJ,{boxShadowAlpha:N,commitZoneWidth:l,hasTimeline:f,scrollLeft:k,width:D}));return H?A.createElement("div",{"data-vscode-context":(0,ea.DO)(H)},q):q}}var n1=function(e,t){let{avatarUrlByEmail:o,onMissingAvatar:r,clearCurrentlyHoveredGraphCommit:i,columnColorByColumn:n,cssVariables:s,currentlyHoveredCommitSha:a,processedRows:l,wipNodeMetadataBySha:h,getExternalIcon:c,graphZoneModeConstants:d,isInUnsupportedRebase:u,leftGutterBoxShadowAlpha:p,leftGutterWidth:f,onCommitContextMenu:m,onClickCommit:g,onDoubleClickCommit:_,nodeOffsetByColumn:v,nodeOpacityByColumn:S,numGraphColumns:R,rightGutterBoxShadowAlpha:y,rightGutterWidth:T,setAsCurrentlyHoveredGraphCommit:C,scrollLeft:w,shouldShowRefLine:E,suppressNonRefRowTooltips:b,translate:I,useAuthorInitialsForAvatars:M}=e,O=new ea.n$(e);return({rowIndex:e,style:N})=>{let x,D=t(e),H=l[e],G=V.md,k=O.getZoneWidth(G),{email:W,author:z,contexts:F,message:P,sha:B,type:Z}=H,U=H.column,j=F?.graph||void 0,$=F?.avatar||void 0,Y=F?.row||void 0;!M&&((x=o[W])||r(W,B));let K=Z===L.bY?h?.[B]:void 0;K?.nodeAvatarUrl&&(x=K.nodeAvatarUrl);let q=O.isLastColumn(G);return A.createElement(n0,{authorEmail:W,authorName:z,avatarContext:$,avatarUrl:x,clearCurrentlyHoveredGraphCommit:i,column:U,columnColorByColumn:n,columnForColoring:H.columnForColoring,commitZoneWidth:k,cssVariables:s,currentlyHoveredCommitSha:a,edgeColumnMax:H.edgeColumnMaxes,edges:H.edges,getExternalIcon:c,graphZoneModeConstants:d,hasRefs:H.hasRefs||!1,hasTimeline:O.hasTimeline(e),isActiveSha:O.rowContainsCurrentHeadRef(H),isInUnsupportedRebase:u,isLastColumn:q,isSelected:O.isSelected(e),key:D,leftGutterBoxShadowAlpha:p,leftGutterWidth:f,message:P,nodeOffset:v[U],nodeOpacity:S[U],numGraphColumns:R,onClickCommit:g,onContextMenu:m,onDoubleClickCommit:_,rightGutterBoxShadowAlpha:y,rightGutterWidth:T,rowContext:Y,scopeBoundaryKind:H.scopeBoundaryKind,scrollLeft:w,setAsCurrentlyHoveredGraphCommit:C,sha:B,shouldShowRefLine:E,style:N,suppressNonRefRowTooltips:b,translate:I,type:Z,useAuthorInitialsForAvatars:M,zoneContext:j})}};let n2=A.forwardRef(({controlId:e,as:t="div",...o},r)=>{let i=(0,A.useMemo)(()=>({controlId:e}),[e]);return(0,oo.jsx)(nk.Provider,{value:i,children:(0,oo.jsx)(t,{...o,ref:r})})});n2.displayName="FormGroup";class n5 extends A.PureComponent{handleClickOutside(){let{sha:e,shorthand:t,type:o,data:r}=this.props.createRefFormData;this.props.onCancel(t,e,o,r)}constructor(e){super(e);let{createRefFormData:t,formatRefShorthand:o}=this.props,{sha:r,shorthand:i,type:n,data:s}=t;this.state={currentShorthand:o(i,r,n,s),initShorthand:i}}static getDerivedStateFromProps(e,t){let{createRefFormData:o,formatRefShorthand:r}=e,{currentShorthand:i,initShorthand:n}=t,{sha:s,shorthand:a,type:l,data:h}=o,c=a!==n;return c&&r(a,s,l,h)!==i?{currentShorthand:r(a,s,l,h),initShorthand:a}:c?{currentShorthand:i,initShorthand:a}:null}onInputChange(e){let t=e||"";if(e){let{sha:e,type:o,data:r}=this.props.createRefFormData;t=this.props.formatRefShorthand(t,e,o,r)}this.setState({currentShorthand:t}),this.props.onRefShorthandChange?.(t)}render(){let{createRefFormData:e,isRefShorthandValid:t,onCancel:o,onContextMenu:r,onRefCreate:i,refZoneWidth:n,style:s,translate:a}=this.props,{currentShorthand:l}=this.state,{data:h,sha:c,type:d}=e,u=a(d===e_.z.TAG?"RefZone-EnterTagName":"RefZone-EnterBranchName");return A.createElement("div",{className:"create-ref","data-testid":"create-ref",style:{...s,minWidth:n,width:n}},A.createElement(n2,null,A.createElement(nz,{autoFocus:!0,"data-testid":"create-ref-form-control",isInvalid:l.length>0&&!t(l,c,d,h),onChange:e=>this.onInputChange(e.target?.value),onContextMenu:e=>r(e,l,c,d,h),onKeyDown:e=>{(e.stopPropagation(),"Escape"===e.key)?o(l,c,d,h):c&&"Enter"===e.key&&i(l,c,d,h)},placeholder:u,type:"text",value:l})))}}var n3=function({hasActive:e,overflowCount:t}){return A.createElement("span",{className:x()("overflow-count ml1",{"is-active":e}),"data-test-class":"overflow-count"},"+",t)},n6=function({style:e,children:t,column:o,numGraphColumns:r,onMouseEnter:i,onMouseLeave:n,ref:s,...a}){return A.createElement("div",{...a,className:x()("gk-graph","ref-zone","ref-popover",`column-${o%r+1}`),ref:s},A.createElement("ul",{onMouseEnter:i,onMouseLeave:n,style:{...e,listStyle:"none",padding:0,zIndex:6}},t))},n4=function({enabledRefMetadataTypes:e,column:t,columnForColoring:o,context:r,enableShowHideRefsOptions:i,targetRef:n,hasActive:s,hasRefs:a,getExternalIcon:l,includeOnlyRefsById:h,includeOnlyRemotesByName:c,isGhostRef:d,isHovered:u,isInUnsupportedRebase:p,numGraphColumns:f,onMissingRefMetadata:m,pinnedBranchFullName:g,refGroupContexts:_,refGroupsByName:v,refIconsPosition:S,refMetadata:R,fallbackRefMetadata:y,refNodeHovered:T,sha:C,showRemoteNamesOnRefs:w,showContextMenuForGroupedRef:E,onClickRef:b,onDoubleClickRef:I,onToggleRefNodesShown:M,onRefBeginDrag:O,onRefCanDrag:N,onRefCanDrop:x,onRefDragEnter:D,onRefDragLeave:H,onRefDrop:G,onRefEndDrag:k,translate:W,type:z,useColumnHeaderIcons:L}){let F=`ref-overlay-container-${(0,A.useId)()}`,P=(0,A.useCallback)((e,t,o)=>{M(e,t.map(e=>({id:(0,ea.$V)(e),name:e.name,type:e.refType,owner:e.owner,avatarUrl:e.avatarUrl})),!1,o)},[M]),B=(0,A.useMemo)(()=>v&&v.length>V.gi?v.slice(0,V.gi):v,[v]),Z=B.length>0?B[0]:null,U=(0,A.useMemo)(()=>u?B:Z?[Z]:[],[Z,u,B]),j=(0,A.useMemo)(()=>{let e=V.lE+(Z?.length||0)*V.RJ+(s?V.RJ:0);return u?{height:100,position:"relative"}:{minWidth:e}},[Z,s,u]),$=(0,A.useMemo)(()=>(0,ed.D7)(h,e=>e.type===e_.z.TAG),[h]),Y=(0,A.useMemo)(()=>({enabledRefMetadataTypes:e,enableShowHideRefsOptions:i,getExternalIcon:l,groupIsHovered:u,hasActive:s,hasRefs:a,isGhostRef:d,isInUnsupportedRebase:p,onClick:b,onContextMenu:E,onDoubleClick:I,onHideRefClick:P,onHovered:T,onMissingRefMetadata:m,onRefBeginDrag:O,onRefCanDrag:N,onRefCanDrop:x,onRefDragEnter:D,onRefDragLeave:H,onRefDrop:G,onRefEndDrag:k,refIconsPosition:S,refMetadata:R,fallbackRefMetadata:y,sha:C,showRemoteNamesOnRefs:w,translate:W,type:z,useColumnHeaderIcons:L}),[i,e,y,l,s,a,d,u,p,b,I,P,m,O,N,x,D,H,G,k,S,R,T,C,E,w,W,z,L]),K=(0,A.useMemo)(()=>U.map(e=>{let t=e[0],o=_?.[t.name]||void 0,r=e.some(e=>{let t=(0,ea.$V)(e);switch(e.refType){case e_.z.TAG:return $&&!!h[t];case e_.z.REMOTE:return!!h[t]||e.owner&&c[e.owner];default:return!!h[t]}}),i=!!g&&e.some(e=>e.id===g);return{...Y,isActive:t.isCurrentHead??!1,isPinned:i,isRefGroupIncluded:r,key:`ref-node-${t.fullName||t.name}`,refGroup:e,refGroupContext:o}}),[Y,$,h,c,g,_,U]);return A.default.createElement("span",{className:"ref-nodes","data-vscode-context":(0,ea.DO)(r),style:j},K.map(e=>A.default.createElement(n_,{...e,className:"inline",isHidden:u,key:e.key})),A.default.createElement(i7,{key:F,placement:"right-start",show:u,target:()=>n.current},A.default.createElement(n6,{column:o??t,numGraphColumns:f},K.map(e=>A.default.createElement("li",{key:e.key},A.default.createElement(n_,{...e,isHidden:!u}))))))};let n9={};class n7 extends A.default.PureComponent{popoverTargetRef=(0,A.createRef)();static defaultProps={style:{}};componentDidUpdate(e){!this.props.hasRefs&&this.props.isSingleSelected&&!e.isSingleSelected&&this.props.hoveredRefZoneSha===this.props.sha&&(this.props.refZoneUnhovered(),this.props.hoveredRefGroup&&this.props.refNodeUnhovered(null,this.props.hoveredRefGroup,this.props.sha))}onCustomToggleRefNodesShown=(e,t,o,r)=>{this.props.onToggleRefNodesShown(e,t,o,r),this.props.refZoneUnhovered()};render(){var e;let t,o,{enabledRefMetadataTypes:r,column:i,columnForColoring:n,context:s,enableShowHideRefsOptions:a,showGhostRefsOnRowHover:l,hasActive:h,hasRefs:c,hasTimeline:d,hoveredRefGroup:u,hoveredRefZoneSha:p,getExternalIcon:f,includeOnlyRefsById:m,includeOnlyRemotesByName:g,isInUnsupportedRebase:_,scopeBoundaryKind:v,numGraphColumns:S,onClickRef:R,onDoubleClickRef:y,onMissingRefMetadata:T,onRefBeginDrag:C,onRefCanDrag:w,onRefCanDrop:E,onRefDragEnter:b,onRefDragLeave:I,onRefDrop:M,onRefEndDrag:O,pinnedBranchFullName:N,refGroupContexts:D,refGroupsByName:H,refIconsPosition:G,refMetadata:k,fallbackRefMetadata:W,refNodeHovered:z,refNodeUnhovered:L,refZoneHovered:F,refZoneUnhovered:P,sha:B,shouldShowRefLine:Z,showColorStrip:U,showContextMenuForGroupedRef:j,showRemoteNamesOnRefs:$,style:Y,translate:K,type:q,useColumnHeaderIcons:X,width:Q,clearCurrentlyHoveredGraphCommit:J,currentlyHoveredCommitSha:ee}=this.props,et=p===B,eo={minWidth:Q,width:Q},er={...Y,...eo},ei=d?A.default.createElement(ox,null):null,en=H.length,es=e=>{F(B),en?z(e,H[0],B):u&&L(e,u,B)},el=e=>{P(),u&&L(e,u,B),J(e,V.ui,B,ee??void 0)},eh=(0,ea.xJ)((e,t)=>{el(e),C(e,t)}),ec=en>0&&!c&&l,ed=(e=n??i,(o=n9[t=`${q}${e}${et}${h}${S}${ec}${v??""}`])||(o=x()(`column-${e%S+1}`,"flex","pb3","pt3","ref-zone","relative",q,{"dim-ref":ec,"has-active":h,z6:et,z1:!et,"scope-fork-point":"forkPoint"===v,"scope-merge-target":"mergeTarget"===v}),n9[t]=o),o),eu=A.default.createElement("div",{className:"color-strip height-100",style:{width:2}}),ep="forkPoint"===v,ef="mergeTarget"===v,em=ep?A.default.createElement(nr,{delay:400,overlay:A.default.createElement(iP,{className:"gk-graph bs-tooltip",id:`merge-base-tooltip-${B}`},"Merge base — where this branch diverged from its merge target."),placement:"top",trigger:["hover","focus"]},A.default.createElement("div",{className:"merge-base-ref-node"},"BASE")):ef?A.default.createElement(nr,{delay:400,overlay:A.default.createElement(iP,{className:"gk-graph bs-tooltip",id:`merge-target-tooltip-${B}`},"Merge target — the tip of the branch this scope is being compared against."),placement:"top",trigger:["hover","focus"]},A.default.createElement("div",{className:"merge-target-ref-node"},"TARGET")):null;if(!en)return A.default.createElement("div",{className:ed,onMouseEnter:es,onMouseLeave:el,onWheel:el,style:er},U?eu:null,ei,em);let eg={minWidth:0,overflow:"hidden",width:Q-V.Zk},e_=en-1,ev=e_>0&&!et?A.default.createElement(n3,{hasActive:h,overflowCount:e_}):null;return A.default.createElement("div",{className:ed,onMouseEnter:es,onMouseLeave:el,onWheel:el,style:er},U?eu:null,ei,A.default.createElement("div",{className:"flex",style:eg},em,A.default.createElement("div",{ref:this.popoverTargetRef}),A.default.createElement(n4,{column:i,columnForColoring:n,context:s,enabledRefMetadataTypes:r,enableShowHideRefsOptions:a,fallbackRefMetadata:W,getExternalIcon:f,hasActive:h,hasRefs:c,includeOnlyRefsById:m,includeOnlyRemotesByName:g,isGhostRef:ec,isHovered:et,isInUnsupportedRebase:_,numGraphColumns:S,onClickRef:R,onDoubleClickRef:y,onMissingRefMetadata:T,onRefBeginDrag:eh,onRefCanDrag:w,onRefCanDrop:E,onRefDragEnter:(e,t,o)=>{et||o?.sha!==B||es(e),b(e,t,o)},onRefDragLeave:I,onRefDrop:M,onRefEndDrag:O,onToggleRefNodesShown:this.onCustomToggleRefNodesShown,pinnedBranchFullName:N,refGroupContexts:D,refGroupsByName:H,refIconsPosition:G,refMetadata:k,refNodeHovered:z,sha:B,showContextMenuForGroupedRef:j,showRemoteNamesOnRefs:$,targetRef:this.popoverTargetRef,translate:K,type:q,useColumnHeaderIcons:X}),ev),(c||ep||ef)&&Z?A.default.createElement("div",{className:"absolute left-0 flex z1",style:eo},A.default.createElement(nZ,{hasRefs:!0,isActiveSha:h,left:V.mE,type:q,width:"100%"})):null)}}class n8 extends A.Component{static getDerivedStateFromProps(e,t){let o={},r=!1;return e.themeOpacityFactor!==t.themeOpacityFactor&&(o.themeOpacityFactor=e.themeOpacityFactor||V.K3.dark,r=!0),e.dimMergeCommits!==t.dimMergeCommits&&(o.dimMergeCommits=e.dimMergeCommits||!1,r=!0),e.highlightRowsOnRefHover!==t.highlightRowsOnRefHover&&(o.highlightRowsOnRefHover=e.highlightRowsOnRefHover||!1,r=!0),e.showGhostRefsOnRowHover!==t.showGhostRefsOnRowHover&&(o.showGhostRefsOnRowHover=e.showGhostRefsOnRowHover||!1,r=!0),e.showRemoteNamesOnRefs!==t.showRemoteNamesOnRefs&&(o.showRemoteNamesOnRefs=e.showRemoteNamesOnRefs||!1,r=!0),e.enabledRefMetadataTypes!==t.enabledRefMetadataTypes&&(o.enabledRefMetadataTypes=e.enabledRefMetadataTypes||[],r=!0),e.enabledScrollMarkerTypes!==t.enabledScrollMarkerTypes&&(o.enabledScrollMarkerTypes=e.enabledScrollMarkerTypes||[],r=!0),e.graphCommitDescDisplayMode!==t.graphCommitDescDisplayMode&&(o.graphCommitDescDisplayMode=e.graphCommitDescDisplayMode||V.FQ.ALWAYS,r=!0),e.useAuthorInitialsForAvatars!==t.useAuthorInitialsForAvatars&&(o.useAuthorInitialsForAvatars=e.useAuthorInitialsForAvatars||!1,r=!0),e.shaLength!==t.shaLength&&(o.shaLength=e.shaLength,r=!0),e.hasMoreCommits!==t.hasMoreCommits&&(o.hasMoreCommits=e.hasMoreCommits||!1,r=!0),e.isLoadingRows!==t.isLoadingRows&&(o.isLoadingRows=e.isLoadingRows||!1,r=!0),e.rowsStatsLoading!==t.rowsStatsLoading&&(o.rowsStatsLoading=e.rowsStatsLoading||!1,r=!0),e.avatarUrlByEmail!==t.avatarUrlByEmail&&(o.avatarUrlByEmail=e.avatarUrlByEmail||{},r=!0),e.refMetadataById!==t.refMetadataById&&(o.refMetadataById=e.refMetadataById,r=!0),e.contexts!==t.contexts&&(o.contexts=e.contexts,r=!0),e.pendingCommitMessageSummary!==t.pendingCommitMessageSummary&&(o.pendingCommitMessageSummary=e.pendingCommitMessageSummary||"",r=!0),e.enableShowHideRefsOptions!==t.enableShowHideRefsOptions&&(o.enableShowHideRefsOptions=e.enableShowHideRefsOptions||!1,r=!0),e.createRefFormData!==t.createRefFormData&&(o.createRefFormData=e.createRefFormData,r=!0),e.highlightedShas!==t.highlightedShas&&(o.highlightedShas=e.highlightedShas,r=!0),e.workDirStats!==t.workDirStats&&(o.workDirStats=e.workDirStats||V.pi,r=!0),e.rowsStats!==t.rowsStats&&(o.rowsStats=e.rowsStats,r=!0),r?o:null}graphComponentRef=A.createRef();graphContainerRef=A.createRef();resizeObserver;lastNavSha=null;currentSha=null;isRefContextMenuShown=!1;isMounted=!1;selectedShas=new Set;selectionAnchorSha;selectionFocusSha;processedGraphRowBySha={};shaByRefId={};childrenBySha={};scrollToSha;headSha;headUpstreamSha;lastLazyLoadHeight=0;lastTopVisibleRowIndex=-1;lastBottomVisibleRowIndex=-1;maxColumns=0;orderedGraphRows=[];rowStatsConstraints={min:0,max:0};shouldFireShowMoreCommits=!0;columnsToFreeWhenFound={};hasMergeNodeChildBySha={};_autoLoadTimer;reserverInfoBySha={};columnsUsed={};pinnedBranchShas=new Set;scopeVisibility=null;syntheticEdgeChildShas=new Set;_lastReportedUnreachable=null;rowsStats;workDirStats=V.pi;_markerColorsCache=null;excludeByType={};excludeRefsById={};includeOnlyRefsById={};excludeRemotesByName={};includeOnlyRemotesByName={};highlightedShas={};searchMode="normal";scrollLeft=0;scrollTop=0;graphHeight=585;graphWidth=804;graphZoneModeConstants=(0,ea.jz)();graphZonesByType={};graphZoneOrdering=[V.ui,V.md,V.d4,V.fx,V.Sq,V.$A,V.AR];clientHeight=0;missingAvatarsTimer;pendingMissingAvatars={};requestedMissingAvatars={};missingRefsMetadataTimer;pendingMissingRefsMetadata={};requestedMissingRefsMetadata={};previousRefMetadataById=null;requestedMissingWipStats={};visibleWipShasTimer;lastFiredVisibleWipShas=void 0;branchUpstreamRowIndices=[];interactiveScrollMarkersFromRows=[];downstreamsByUpstream={};timelinesInterval;constructor(e){for(let[t,o]of(super(e),this.resizeObserver=new ResizeObserver(e=>e.forEach(e=>this.onGraphResized(e.contentRect.width,e.contentRect.height))),Object.entries(e.isSelectedBySha||{})))o&&(this.selectedShas.add(t),this.selectionAnchorSha=t,this.selectionFocusSha=t);this.excludeByType=this.props.excludeByType||{},this.excludeRefsById=this.props.excludeRefsById||{},this.excludeRemotesByName=this.getExcludeRemotesByName(),this.includeOnlyRemotesByName=this.getIncludeOnlyRemotesByName(),this.includeOnlyRefsById=this.props.includeOnlyRefsById||{},this.downstreamsByUpstream=this.props.downstreamsByUpstream||{},this.highlightedShas=this.props.highlightedShas||{},this.searchMode=this.props.searchMode||"normal",this.rowsStats=this.props.rowsStats||this.rowsStats,this.workDirStats=this.props.workDirStats||this.workDirStats,this.processRows(this.props.graphRows),this.cleanupSelections(),this.updateMarkerRowIndices(["selection","highlights"]);let t=(0,P.yr)(this.props.cssVariables);this.graphZoneModeConstants=(0,ea.jz)(this.props.columnsSettings?.[V.md]?.mode),this.maybeSortGraphZoneOrderingFromSettings(this.props.columnsSettings),this.state={avatarUrlByEmail:this.props.avatarUrlByEmail||{},contexts:this.props.contexts,createRefFormData:this.props.createRefFormData,cssVariablesWithDefaults:t,columnColorByColumn:this.getColumnColorByColumn(t),currentlyHoveredCommitSha:void 0,dimMergeCommits:this.props.dimMergeCommits||!1,dimRowsOfSelectedCommit:!1,enableShowHideRefsOptions:this.props.enableShowHideRefsOptions||!1,highlightRowsOnRefHover:this.props.highlightRowsOnRefHover||!1,showGhostRefsOnRowHover:this.props.showGhostRefsOnRowHover||!1,showRemoteNamesOnRefs:this.props.showRemoteNamesOnRefs||!1,enabledRefMetadataTypes:this.props.enabledRefMetadataTypes||[],enabledScrollMarkerTypes:this.props.enabledScrollMarkerTypes||[],graphCommitDescDisplayMode:this.props.graphCommitDescDisplayMode||V.FQ.ALWAYS,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,isLoadingRows:this.props.isLoadingRows||!1,numGraphColumns:this.getNumGraphColumns(t),markerRowIndices:{},interactiveScrollMarkers:this.computeInteractiveScrollMarkers(),pendingCommitMessageSummary:this.props.pendingCommitMessageSummary||"",processedRows:[...this.orderedGraphRows],refIconsPosition:this.getRefIconsPositionOrDefault(this.props.refIconsPosition),refMetadataById:this.props.refMetadataById,rowsStats:this.rowsStats,rowsStatsLoading:this.props.rowsStatsLoading||!1,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||V.K3.dark,width:this.graphWidth,workDirStats:this.workDirStats}}componentDidMount(){this.isMounted=!0,this.resizeObserver.observe(this.graphComponentRef.current),window.addEventListener("keydown",this.onWindowKeyDown),window.addEventListener("keyup",this.onWindowKeyUp),window.addEventListener("blur",this.onWindowBlur),window.addEventListener("mousedown",this.onWindowMouseDown),this.selectedShas.size&&this.selectCommitsCore([...this.selectedShas],{ensureVisible:!0})}componentDidUpdate(e,t){let o=!1,r=!1,i={},n=!1;e.searchMode!==this.props.searchMode&&(this.searchMode=this.props.searchMode||"normal",r=!0,i.highlights=!0),e.highlightedShas!==this.props.highlightedShas&&(this.highlightedShas=this.props.highlightedShas||{},"filter"===this.searchMode&&(r=!0),i.highlights=!0),e.excludeByType!==this.props.excludeByType&&(this.excludeByType=this.props.excludeByType||{},this.props.graphRows?.length&&(r=!0)),e.excludeRefsById!==this.props.excludeRefsById&&(this.excludeRefsById=this.props.excludeRefsById||{},this.excludeRemotesByName=this.getExcludeRemotesByName(),this.props.graphRows?.length&&(r=!0)),e.includeOnlyRefsById!==this.props.includeOnlyRefsById&&(this.includeOnlyRefsById=this.props.includeOnlyRefsById||{},this.includeOnlyRemotesByName=this.getIncludeOnlyRemotesByName(),this.props.graphRows?.length&&(r=!0)),e.downstreamsByUpstream!==this.props.downstreamsByUpstream&&(this.downstreamsByUpstream=this.props.downstreamsByUpstream||{},this.props.graphRows?.length&&(r=!0)),e.searchMode!==this.props.searchMode&&(n=!0);let s=!this.areSelectedByShaEqual(e.isSelectedBySha,this.props.isSelectedBySha),a=null!=this.props.isSelectedBySha&&(0,ed.xV)(this.props.isSelectedBySha),l=this.orderedGraphRows.length>0;if(this.processedGraphRowBySha&&l&&(s||0===this.selectedShas.size&&a)){let e=this.props.isSelectedBySha?Object.keys(this.props.isSelectedBySha):[];this.selectCommitsCore(e,{ensureVisible:!0}),s&&e.length>0?this.selectionAnchorSha=e[e.length-1]:s&&0===e.length&&(this.selectionAnchorSha=void 0)}if(e.isContainerWindowFocused!==this.props.isContainerWindowFocused&&this.dimRowsOfSelectedCommit(!1),e.graphRows!==this.props.graphRows||e.cssVariables!==this.props.cssVariables||r){this.cleanEdgeCaches(),this._markerColorsCache=null;let t=(0,P.yr)(this.props.cssVariables);n=!0,this.setState({columnColorByColumn:this.getColumnColorByColumn(t),cssVariablesWithDefaults:t,numGraphColumns:this.getNumGraphColumns(t)}),o=!0,(this.props.graphRows?.length<e.graphRows?.length||r)&&(this.lastLazyLoadHeight=0)}if(e.workDirStats!==this.props.workDirStats&&(this.workDirStats=this.props.workDirStats||V.pi),(e.workDirStats!==this.props.workDirStats||e.wipVisibility!==this.props.wipVisibility)&&(0,ea.dF)(e.workDirStats,e.wipVisibility)!==(0,ea.dF)(this.props.workDirStats,this.props.wipVisibility)&&(n=!0),e.avatarUrlByEmail!==this.props.avatarUrlByEmail&&(this.requestedMissingAvatars={}),e.wipNodeMetadataBySha!==this.props.wipNodeMetadataBySha&&(this.requestedMissingWipStats={},this.scheduleVisibleWipShasUpdate()),e.refIconsPosition!==this.props.refIconsPosition){let e=this.getRefIconsPositionOrDefault(this.props.refIconsPosition);this.state.refIconsPosition!==e&&this.setState({refIconsPosition:e})}if(e.refMetadataById!==this.props.refMetadataById&&(e.refMetadataById&&(0,ed.xV)(e.refMetadataById)&&(this.previousRefMetadataById=e.refMetadataById),this.requestedMissingRefsMetadata={},i.pullRequests=!0),e.rowsStats!==this.props.rowsStats&&(this.rowsStats=this.props.rowsStats,this.updateRowStatsConstraints()),e.columnsSettings!==this.props.columnsSettings){if(this.props.columnsSettings?.[V.md]?.mode!==e.columnsSettings?.[V.md]?.mode){this.cleanEdgeCaches(),this.graphZoneModeConstants=(0,ea.jz)(this.props.columnsSettings?.[V.md]?.mode),this.updateCommitZoneContentWidthFromChange();let e=this.graphZonesByType[V.md];e.currentWidth=e.contentWidth,e.preferredWidth=e.contentWidth,e.minimumWidth=this.graphZoneModeConstants.COMMIT_ZONE_VIEWPORT_WIDTH_MIN,e.showIconWidth=this.graphZoneModeConstants.COMMIT_ZONE_SHOW_ICON_WIDTH,this.loadEdgesBySha(),o=!0}this.props.columnsSettings&&(this.updateZonesFromSettings(this.props.columnsSettings),o=!0)}if(e.createRefFormData!==this.props.createRefFormData&&this.props.createRefFormData?.sha&&(this.selectCommitsCore([this.props.createRefFormData?.sha],{ensureVisible:!0}),this.selectionAnchorSha=this.props.createRefFormData.sha),e.pinnedBranchFullName!==this.props.pinnedBranchFullName&&(n=!0),e.stashesAnchorCommits!==this.props.stashesAnchorCommits&&(n=!0),e.scope!==this.props.scope&&(n=!0,i.highlights=!0,i.pullRequests=!0),(e.hasMoreCommits!==this.props.hasMoreCommits||e.onShowMoreCommits!==this.props.onShowMoreCommits)&&this.loadMoreCommitsIfNecessary(this.graphHeight,this.state.hasMoreCommits),n){let e=Array.from(this.selectedShas),t=this.selectionFocusSha;this.processRows(this.props.graphRows,this.props.pinnedBranchFullName);let o=(0,P.yr)(this.props.cssVariables);if(e.length>0){this.cleanupSelections();let o=[];for(let t of e){let e=this.processedGraphRowBySha[t];e?.hidden===!1&&(o.push(e),this.selectedShas.add(t))}if(o.length){if(t){let e=this.processedGraphRowBySha[t];e?.hidden===!1?this.selectionFocusSha=t:(this.selectionFocusSha=o[o.length-1].sha,this._selectionVersion++)}if(this.selectionAnchorSha&&this.selectionAnchorSha!==this.selectionFocusSha){let e=this.processedGraphRowBySha[this.selectionAnchorSha];(null==e||e.hidden)&&(this.selectionAnchorSha=this.selectionFocusSha)}let e=this.selectionFocusSha?this.processedGraphRowBySha[this.selectionFocusSha]:void 0,r={isContiguous:this.areRowsContiguous(o),isTopological:!1};this.props.onSelectGraphRows?.(o,e,r),this.updateMarkerRowIndices(["selection"])}else this.selectedShas.clear(),this.selectionFocusSha=void 0,this.selectionAnchorSha=void 0,this._selectionVersion++,this.props.onSelectGraphRows?.([],void 0,{isContiguous:!0,isTopological:!1}),this.updateMarkerRowIndices(["selection"])}else if(a){let e=this.props.isSelectedBySha?Object.keys(this.props.isSelectedBySha):[];this.selectCommitsCore(e,{ensureVisible:!0}),e.length>0&&(this.selectionAnchorSha=e[e.length-1])}this.setState({processedRows:[...this.orderedGraphRows],columnColorByColumn:this.getColumnColorByColumn(o)})}if(o){this.updateCommitZoneContentWidthFromChange();let e=this.getOrderedActiveGraphZones();this.expandLastZoneMinWidthForScrollbar(e),this.ensureZoneWidthsMatchGraphWidth(e,this.graphWidth),this.setState({graphZones:e})}let h=Object.keys(i);h.length&&this.updateMarkerRowIndices(h);let c=this.props.graphRows?.length!==e.graphRows?.length,d=this.state.hasMoreCommits!==t.hasMoreCommits,u=this.state.height!==t.height;(c||d||u||o)&&this.autoLoadToFillViewport(),c&&this.loadMoreCommitsIfNecessary(this.graphHeight,this.state.hasMoreCommits)}componentWillUnmount(){this.isMounted=!1,this.clearTimelinesInterval(),null!=this._pendingScrollUpdate&&(cancelAnimationFrame(this._pendingScrollUpdate),this._pendingScrollUpdate=void 0),null!=this._pendingRowsUpdate&&(cancelAnimationFrame(this._pendingRowsUpdate),this._pendingRowsUpdate=void 0),this._autoLoadTimer&&(clearTimeout(this._autoLoadTimer),this._autoLoadTimer=void 0),this._headerHoverRestoreTimer&&(clearTimeout(this._headerHoverRestoreTimer),this._headerHoverRestoreTimer=void 0),this.missingAvatarsTimer&&(clearTimeout(this.missingAvatarsTimer),this.missingAvatarsTimer=void 0),this.missingRefsMetadataTimer&&(clearTimeout(this.missingRefsMetadataTimer),this.missingRefsMetadataTimer=void 0),this.visibleWipShasTimer&&(clearTimeout(this.visibleWipShasTimer),this.visibleWipShasTimer=void 0),window.removeEventListener("keydown",this.onWindowKeyDown),window.removeEventListener("keyup",this.onWindowKeyUp),window.removeEventListener("blur",this.onWindowBlur),window.removeEventListener("mousedown",this.onWindowMouseDown),this.resizeObserver.disconnect()}focus(){this.graphContainerRef?.current?.focus({preventScroll:!0})}getRefIconsPositionOrDefault(e){return e||e_.E.LEFT}onGraphVisibleRowsUpdatedThrottled=(0,ea.nF)(()=>this.onGraphVisibleRowsUpdated(),250,20);onBlurWipNodeInput=e=>{this.props.onBlurWipNodeInput?.(e)};onDoubleClickRef=(e,t,o,r)=>{this.props.onDoubleClickGraphRef?.(e,t,this.processedGraphRowBySha[o],r)};onFocusWipNodeInput=e=>{this.props.onFocusWipNodeInput?.(e)};onFilterColumnClick=(e,t)=>{this.props.onFilterColumnClick?.(e,t)};onCurrentlyHoveredGraphCommit=(e,t,o,r)=>{r!==o&&(this.props.onGraphRowHovered?.(e,t,this.processedGraphRowBySha[o]),this.setState({currentlyHoveredCommitSha:o}))};onClearCurrentlyHoveredGraphCommit=(e,t,o,r)=>{if(!r)return;let i=e.relatedTarget;if(i instanceof HTMLElement){let e=i.closest(".resizable-handle.horizontal");if(null!=e&&!e.closest(`#${V.ui}-header`))return}if((i=e.currentTarget)instanceof HTMLElement){let t=i.getBoundingClientRect();if(e.clientY>=t.top&&e.clientY<=t.bottom)return}this.props.onGraphRowUnhovered?.(e,t,this.processedGraphRowBySha[o]),this.setState({currentlyHoveredCommitSha:void 0})};onGraphColumnReOrdered=(e,t)=>{let o=this.graphZoneOrdering.indexOf(e),r=t?this.graphZoneOrdering.indexOf(t):this.graphZoneOrdering.length-1;t&&o<r&&(r-=1),this.graphZoneOrdering.splice(o,1),this.graphZoneOrdering.splice(r,0,e);let i={};this.graphZoneOrdering.forEach((e,t)=>{this.graphZonesByType[e].order=t,i[e]=this.getGraphColumnSettingFromZoneType(this.graphZonesByType[e])}),this.setState({graphZones:this.initializeGraphZones(i,this.graphZoneOrdering,this.graphWidth)}),this.props.onGraphColumnsReOrdered&&this.props.onGraphColumnsReOrdered(i)};onGraphZoneResize=(0,ea.xJ)((e,t)=>{if(t?.width){let o=this.getOrderedActiveGraphZones();this.adjustResizedGraphZone(o,e,t,!1),this.setState({graphZones:o})}});onGraphZoneResizeEnd=(0,ea.xJ)((e,t)=>{if(t?.width){let 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=(e,t)=>{this.props.onPopupGraphHeaderContextMenu&&this.props.onPopupGraphHeaderContextMenu(e,t)};onSettingsClick=(e,t)=>{this.props.onSettingsClick&&(e.stopPropagation(),this.props.onSettingsClick(e,t))};onMessageChange=e=>{this.setState({pendingCommitMessageSummary:e}),this.props.onMessageChange&&this.props.onMessageChange(e)};onRefBeginDrag=(e,t)=>{this.props.onRefBeginDrag&&this.props.onRefBeginDrag(e,t)};onRefCanDrag=e=>!!this.props.onRefCanDrag&&this.props.onRefCanDrag(e);onRefCanDrop=(e,t,o)=>!!this.props.onRefCanDrop&&this.props.onRefCanDrop(e,t,o);onRefCreate=(e,t,o,r)=>{this.props.onRefCreate&&this.props.onRefCreate(e,t,o,r)};onRefCreateCancel=(e,t,o,r)=>{this.props.onRefCreateCancel&&this.props.onRefCreateCancel(e,t,o,r)};onRefCreateContextMenu=(e,t,o,r,i)=>{this.props.onRefCreateContextMenu&&this.props.onRefCreateContextMenu(e,t,o,r,i)};onRefDragEnter=(e,t,o)=>{this.props.onRefDragEnter&&this.props.onRefDragEnter(e,t,o)};onRefDragLeave=(e,t,o)=>{this.props.onRefDragLeave&&this.props.onRefDragLeave(e,t,o)};onRefDrop=(e,t,o)=>{this.props.onRefDrop&&this.props.onRefDrop(e,t,o)};onRefEndDrag=(e,t,o)=>{this.props.onRefEndDrag&&this.props.onRefEndDrag(e,t,o)};performRangeSelection(e,t,o){if(this.selectionAnchorSha??=this.selectionFocusSha,!this.selectionAnchorSha)return this.selectionAnchorSha=e,this.selectCommitsCore([e],{ensureVisible:!0,isKeyboardNav:o}),!0;let r=this.isFilteredSearch()?"simple":t,i=this.getShiftSelectRange(e,r);if(i?.length){let t="topological"===r;return this.selectCommitsCore(i,{ensureVisible:!0,focusSha:e,isTopological:t,isContiguous:!!t||void 0,isKeyboardNav:o}),!0}return!1}onZoneRowClick(e,t,o){if(0!==e.button)return;let{enableMultiSelection:r,shiftSelectMode:i}=this.props,n=this.isMacOSPlatform(),s=r&&(!n&&e.ctrlKey||n&&e.metaKey),a=r&&e.shiftKey;s?this.handleToggleSelection(o,i):a&&this.performRangeSelection(o,i,!1)||(this.selectionFocusSha=o,this.selectionAnchorSha=o,this.selectCommitsCore([o],{isKeyboardNav:!1}))}handleToggleSelection(e,t){if("topological"===t&&!this.isFilteredSearch()&&this.selectedShas.size>0&&!this.selectedShas.has(e))if(1===this.selectedShas.size);else{let t;if(2===this.selectedShas.size){let[o,r]=Array.from(this.selectedShas),i=this.processedGraphRowBySha[o],n=this.processedGraphRowBySha[r];if(i&&n&&null!=i.rowIndex&&null!=n.rowIndex){let s=i.rowIndex<=n.rowIndex?o:r,a=i.rowIndex<=n.rowIndex?r:o,l=this.getDirectTopologicalPathBetween(s,a);t=null!=l&&l.length>1&&this.canExtendTopologicalSelection(e)}else t=!1}else t=this.canExtendTopologicalSelection(e);if(!t){this.selectionFocusSha=e,this.selectionAnchorSha=e,this.selectCommitsCore([e],{isKeyboardNav:!1});return}}this.selectionAnchorSha=e;let o="topological"===t&&!this.isFilteredSearch();this.selectCommitsCore([e],{toggle:!0,isTopological:o,isKeyboardNav:!1})}getShiftSelectRange(e,t){let o;if(!this.selectionAnchorSha)return[e];let r=this.processedGraphRowBySha[this.selectionAnchorSha],i=this.processedGraphRowBySha[e];if(!r||!i)return[e];if("simple"===t){let e=r.rowIndex,t=i.rowIndex;o=[];let n=Math.min(e,t),s=Math.max(e,t);for(let e=n;e<=s;e++)this.orderedGraphRows[e]&&o.push(this.orderedGraphRows[e].sha)}else o=this.getTopologicalPathBetween(this.selectionAnchorSha,e);return o&&o.length>1&&o.sort((e,t)=>(this.processedGraphRowBySha[e]?.rowIndex??0)-(this.processedGraphRowBySha[t]?.rowIndex??0)),o}canExtendTopologicalSelection(e){let t,o;if(0===this.selectedShas.size)return!0;let r=1/0,i=-1;for(let e of this.selectedShas){let n=this.processedGraphRowBySha[e];n&&(n.rowIndex<r&&(r=n.rowIndex,t=e),n.rowIndex>i&&(i=n.rowIndex,o=e))}if(!t||!o)return!0;let n=this.processedGraphRowBySha[e];if(!n)return!1;let s=n.rowIndex;if(s<r){let o=this.getDirectTopologicalPathBetween(e,t);return null!=o&&o.length>1}if(s>i){let t=this.getDirectTopologicalPathBetween(o,e);return null!=t&&t.length>1}let a=this.getDirectTopologicalPathBetween(t,e),l=this.getDirectTopologicalPathBetween(e,o);return null!=a&&a.length>1&&null!=l&&l.length>1}getTopologicalPathBetween(e,t){if(e===t)return[e];let o=this.getDirectTopologicalPathBetween(e,t);if(o&&o.length>1)return o;let r=this.findNearestTopologicallyReachableCommit(e,t);if(r)return this.getDirectTopologicalPathBetween(e,r)}getDirectTopologicalPathBetween(e,t){if(e===t)return[e];let o=new Set,r=new Map,i=[e],n=0;for(o.add(e);n<i.length;){let s=i[n++];if(s===t){let o=[],i=t;for(;void 0!==i;)o.push(i),i=r.get(i);if(o.reverse(),this.hasOnlyTwoEndpoints(o,e,t))return o;break}let a=this.processedGraphRowBySha[s];if(a){for(let e of a.parents||[])o.has(e)||(o.add(e),r.set(e,s),i.push(e));for(let e of this.childrenBySha[s]||[])o.has(e)||(o.add(e),r.set(e,s),i.push(e))}}}findNearestTopologicallyReachableCommit(e,t){let o=this.processedGraphRowBySha[e]?.rowIndex,r=this.processedGraphRowBySha[t]?.rowIndex;if(void 0===o||void 0===r)return;let i=o>r,n=Math.min(o,r),s=Math.max(o,r),a=new Set,l=[e],h=0,c=new Set([e]);for(;h<l.length;){let e=l[h++];a.add(e);let t=this.processedGraphRowBySha[e];if(t){for(let o of i?this.childrenBySha[e]||[]:t.parents||[])if(!c.has(o)){let e=this.processedGraphRowBySha[o];e&&e.rowIndex>=n&&e.rowIndex<=s&&(c.add(o),l.push(o))}}}if(i)for(let e=r+1;e<o;e++){let t=this.orderedGraphRows[e]?.sha;if(t&&a.has(t))return t}else for(let e=r-1;e>o;e--){let t=this.orderedGraphRows[e]?.sha;if(t&&a.has(t))return t}}hasOnlyTwoEndpoints(e,t,o){if(e.length<=2)return!0;let r=new Set(e),i=0;for(let n of e){let e=n===t||n===o,s=this.processedGraphRowBySha[n];if(!s)continue;let a=s.parents||[],l=this.childrenBySha[n]||[],h=a.filter(e=>r.has(e)).length,c=l.filter(e=>r.has(e)).length;if((0===h||0===c)&&(i++,!e))return!1}return 2===i}areRowsContiguous(e){if(e.length<=1)return!0;let t=new Set(e.map(e=>e.sha)),o=new Set,r=[e[0].sha],i=0;for(o.add(e[0].sha);i<r.length;){let e=r[i++],n=this.processedGraphRowBySha[e];if(!n)continue;for(let e of n.parents??[])t.has(e)&&!o.has(e)&&(o.add(e),r.push(e));let s=this.childrenBySha[e];if(s)for(let e of s)t.has(e)&&!o.has(e)&&(o.add(e),r.push(e))}return o.size===e.length}onClickRef=(e,t,o,r)=>{this.onZoneRowClick(e,V.ui,o),this.props.onClickGraphRef&&this.props.onClickGraphRef(e,t,this.processedGraphRowBySha[o],r),this.currentSha=o,this.loadSelectedGraphRow(this.currentSha),this.lastNavSha=null};onClickCommit=(e,t,o)=>{if(this.onZoneRowClick(e,t,o),this.props.onClickGraphRow){let r=this.processedGraphRowBySha[o];this.props.onClickGraphRow(e,t,r)}this.currentSha=o,this.loadSelectedGraphRow(this.currentSha),this.lastNavSha=null};onDoubleClickCommit=(e,t,o)=>{if(this.props.onDoubleClickGraphRow){let r=this.processedGraphRowBySha[o];this.props.onDoubleClickGraphRow(e,t,r)}};onWindowBlur=e=>{let{hoveredRefGroup:t,hoveredRefZoneSha:o}=this.state;t&&o&&this.onRefNodeUnhovered(e,t,o),this.onRefZoneUnhovered(),this.dimRowsOfSelectedCommit(!1)};onWindowKeyUp=()=>{this.dimRowsOfSelectedCommit(!1)};onWindowKeyDown=e=>{let t=this.isMacOSPlatform();this.dimRowsOfSelectedCommit(!t&&e.key===es.e.controlKey||t&&e.key===es.e.metaKey)};onWindowMouseDown=()=>{this.dimRowsOfSelectedCommit(!1)};isKeyboardNavigating=!1;onKeyUp=e=>{this.isKeyboardNavigating=!1,this.lastNavSha&&this.isNavigationKey(e.key)&&this.currentSha!==this.lastNavSha&&(this.loadSelectedGraphRow(this.currentSha),this.lastNavSha=null)};onKeyDown=e=>{this.isKeyboardNavigating=!0,null===this.lastNavSha&&this.isNavigationKey(e.key)&&(this.lastNavSha=this.currentSha);let t=this.isMacOSPlatform()?e.metaKey:e.ctrlKey,{shiftSelectMode:o}=this.props,r=this.isFilteredSearch()?"simple":o;switch(e.key){case es.e.arrowUpKey:e.altKey?this.selectPreviousBranchingPoint():this.selectPrevious(e.shiftKey,t,r);break;case es.e.arrowDownKey:e.altKey?this.selectNextBranchingPoint():this.selectNext(e.shiftKey,t,r);break;case es.e.arrowRightKey:this.selectPrevious(e.shiftKey,!1,r);break;case es.e.arrowLeftKey:this.selectNext(e.shiftKey,!1,r);break;case es.e.homeKey:this.selectFirst(e.shiftKey,r);break;case es.e.endKey:this.selectLast(e.shiftKey,r);break;case es.e.pageUpKey:e.altKey?this.selectPreviousRef():this.selectPageUp(e.shiftKey,r);break;case es.e.pageDownKey:e.altKey?this.selectNextRef():this.selectPageDown(e.shiftKey,r);break;case"H":case"h":this.selectHead(e.shiftKey)}};isNavigationKey(e){return[es.e.arrowUpKey,es.e.arrowDownKey,es.e.arrowLeftKey,es.e.arrowRightKey,es.e.homeKey,es.e.endKey,es.e.pageUpKey,es.e.pageDownKey].some(t=>t===e)}loadSelectedGraphRow(e){let t=this.processedGraphRowBySha[e];t&&this.props.onLoadSelectedGraphRow&&this.props.onLoadSelectedGraphRow(t)}onRefNodeHovered=(e,t,o)=>{(!this.props.showGhostRefsOnRowHover||(0,ea.SY)(this.selectedShas,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.isRefContextMenuShown||(this.props.onGraphRefNodeUnhovered&&this.props.onGraphRefNodeUnhovered(e,t,this.processedGraphRowBySha[o]),this.setState({hoveredRefGroup:void 0}))};onRefShorthandChange=e=>{let{createRefFormData:t}=this.state;this.setState({createRefFormData:{...t,shorthand:e}})};onRefZoneHovered=e=>{this.setState({hoveredRefZoneSha:e})};onRefZoneUnhovered=()=>{this.isRefContextMenuShown||this.setState({hoveredRefZoneSha:void 0})};onShowMoreCommits=()=>{this.props.onShowMoreCommits&&this.shouldFireShowMoreCommits&&(this.props.onShowMoreCommits(),this.shouldFireShowMoreCommits=!1,setTimeout(()=>{this.shouldFireShowMoreCommits=!0},250))};onScrollForZone=(e,t,o,r,i)=>{this.setScroll(e,t),this.props.onScrollForZone&&this.props.onScrollForZone(e,t),this.loadMoreCommitsIfNecessary(r,i)};hasUnfoundHighlightedCommits(){if(this.props.hasMoreSearchResults)return!0;for(let e in this.highlightedShas)if(e!==V.cJ&&null==this.processedGraphRowBySha[e])return!0;return!1}loadMoreCommitsIfNecessary(e,t){if(!this.props.onShowMoreCommits||!t||!e||e<0||!this.scrollTop||this.scrollTop<0||!this.orderedGraphRows?.length||this.scopeVisibility?.isBounded)return;let o=this.scrollTop+e,r=this.orderedGraphRows.length*V.yB,i=this.isFilteredSearch(),n=i?.8*r:r-V.By;this.lastLazyLoadHeight>0&&o>=this.lastLazyLoadHeight&&this.lastLazyLoadHeight<n&&(this.lastLazyLoadHeight=0),o>n&&o>this.lastLazyLoadHeight&&(this.lastLazyLoadHeight=Math.min(o,r-1),(!i||this.hasUnfoundHighlightedCommits())&&this.onShowMoreCommits())}shouldAutoLoadToFillViewport(){return!(!this.isFilteredSearch()||!this.props.onShowMoreCommits||!this.state.hasMoreCommits||this.state.isLoadingRows||!this.orderedGraphRows?.length||!this.graphHeight||this.graphHeight<=0||this.scopeVisibility?.isBounded)&&!!this.hasUnfoundHighlightedCommits()&&this.orderedGraphRows.length*V.yB<=1.2*(this.graphHeight-V.q4)}autoLoadToFillViewport(){if(this.shouldAutoLoadToFillViewport()){if(!this.shouldFireShowMoreCommits){this._autoLoadTimer&&clearTimeout(this._autoLoadTimer),this._autoLoadTimer=setTimeout(()=>{this._autoLoadTimer=void 0,this.autoLoadToFillViewport()},300);return}this._autoLoadTimer&&clearTimeout(this._autoLoadTimer),this._autoLoadTimer=setTimeout(()=>{this.shouldAutoLoadToFillViewport()&&this.shouldFireShowMoreCommits&&this.onShowMoreCommits(),this._autoLoadTimer=void 0},100)}}onScrollToRowCausedUpdateForFirstColumn=(e,t)=>{let o={...t};if(e===V.md&&t.scrollTop){let t=this.getHorizontalScrollHeight(e,this.state.cssVariablesWithDefaults);o.scrollTop-=t+V.ar}this.setScroll(e,o),this.props.onScrollToRowCausedUpdateForFirstColumn?.(e,o)};onCommitContextMenu=(e,t,o)=>{if(this.props.onRowContextMenu){let r=this.processedGraphRowBySha[o];this.props.onRowContextMenu(e,t,r)}};onRefContextMenu=(e,t,o)=>{if(this.props.onRefContextMenu){this.isRefContextMenuShown=!0,this.onRefZoneHovered(o);let r=this.processedGraphRowBySha[o];this.props.onRefContextMenu(e,t,r),setTimeout(()=>{this.isRefContextMenuShown=!1},250)}};areSelectedByShaEqual(e,t){if(null==e&&null==t)return!0;if(null==e||null==t)return!1;let o=Object.keys(e),r=Object.keys(t);if(o.length!==r.length)return!1;for(let r of o)if(!(r in t)||e[r]!==t[r])return!1;return!0}_pendingRowsUpdate;_selectionVersion=0;_cachedSmartCellRangeRenderer=null;_cachedScrollLeftForRenderer=-1;_cachedForceCache;getOrCreateSmartCellRangeRenderer(e,t){if(null==this._cachedSmartCellRangeRenderer||this._cachedScrollLeftForRenderer!==e||this._cachedForceCache!==t){let o=e=>{let t=this.state.processedRows[e];if(!t)return"SHOW_MORE_COMMITS";let o=t.sha;return this.selectedShas.has(o)?`${o}_${this._selectionVersion}`:o};this._cachedSmartCellRangeRenderer=({cellCache:r,cellRenderer:i,columnSizeAndPositionManager:n,columnStartIndex:s,columnStopIndex:a,deferredMeasurementCache:l,horizontalOffsetAdjustment:h,isScrolling:c,parent:d,rowSizeAndPositionManager:u,rowStartIndex:p,rowStopIndex:f,styleCache:m,verticalOffsetAdjustment:g,visibleColumnIndices:_,visibleRowIndices:v})=>{let S=[],R=r.__prevScrollLeft!==e;R&&(r.__prevScrollLeft=e);let y=n.areOffsetsAdjusted()||u.areOffsetsAdjusted(),T=!c&&!y;for(let e=p;e<=f;e+=1){let p=u.getSizeAndPositionOfCell(e);for(let u=s;u<=a;u+=1){let s,a,f=n.getSizeAndPositionOfCell(u),y=u>=_.start&&u<=_.stop&&e>=v.start&&e<=v.stop,w=`${e}-${u}`;T&&m[w]?s=m[w]:l&&!l.has(e,u)?s={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(s={height:p.size,left:f.offset+h,position:"absolute",top:p.offset+g,width:f.size},m[w]=s);let E={columnIndex:u,isScrolling:c,isVisible:y,key:w,parent:d,rowIndex:e,style:s};if(!c&&!t||h||g||R)a=i(E);else{let t=o(e,u);r[w]?.realKeyForCell!==t&&(r[w]={realKeyForCell:t,cell:i(E)}),a=r[w].cell}if(null!=a){var C;globalThis.process?.env?.NODE_ENV!=="production"&&(C=a,(0,A.isValidElement)(C)&&(C.type&&C.type.__internalCellMeasurerFlag&&(C=C.props.children),(0,A.isValidElement)(C)&&C?.props?.style===void 0&&!0!==d.__warnedAboutMissingStyle&&(d.__warnedAboutMissingStyle=!0))),S.push(a)}}}return S},this._cachedScrollLeftForRenderer=e,this._cachedForceCache=t}return this._cachedSmartCellRangeRenderer}getCommits(e){let t=[];for(let o of e){let e=this.processedGraphRowBySha[o];null!=e&&t.push(e)}return t}selectCommits(e,t){return this.selectCommitsCore(e,{toggle:t?.toggle,ensureVisible:t?.ensureVisible})}selectCommitsCore(e,t){let{toggle:o=!1,ensureVisible:r=!1,isKeyboardNav:i=this.isKeyboardNavigating,isTopological:n,isContiguous:s,focusSha:a}=t??{},l=[];if(o){for(let t of e)this.selectedShas.has(t)?this.selectedShas.delete(t):null!=this.processedGraphRowBySha[t]&&this.selectedShas.add(t);for(let e of this.selectedShas){let t=this.processedGraphRowBySha[e];null!=t&&l.push(t)}}else if(1===e.length){let[t]=e,o=this.processedGraphRowBySha[t];null!=o?(this.selectedShas.clear(),this.selectedShas.add(t),l.push(o)):this.selectedShas.clear()}else for(let t of(this.selectedShas.clear(),e)){let e=this.processedGraphRowBySha[t];null!=e&&(this.selectedShas.add(t),l.push(e))}l.length>1&&l.sort((e,t)=>(e.rowIndex??0)-(t.rowIndex??0)),this._selectionVersion++,a&&this.selectedShas.has(a)?this.selectionFocusSha=a:this.selectionFocusSha=e.length&&this.selectedShas.has(e[e.length-1])?e[e.length-1]:(0,ea.HV)(this.selectedShas),this.selectionFocusSha&&(r||i)&&this.selectSha(this.selectionFocusSha,i);let h=this.selectionFocusSha?this.processedGraphRowBySha[this.selectionFocusSha]:void 0;return this.props.onSelectGraphRows?.(l,h,{isContiguous:s??(l.length<=1||this.areRowsContiguous(l)),isTopological:n??l.length<=1}),null!=this._pendingRowsUpdate&&cancelAnimationFrame(this._pendingRowsUpdate),this._pendingRowsUpdate=requestAnimationFrame(()=>{this._pendingRowsUpdate=void 0;let e={...this.state.markerRowIndices};for(let t of(e.selection=[],this.selectedShas)){let o=this.processedGraphRowBySha[t]?.rowIndex;null!=o&&e.selection.push(o)}if(i){let t=this.getScrollToIndex(),o=this.getScrollToAlignment(),r=this.predictScrollTop(t,o);null!=r&&(this.scrollTop=r),this.setState({markerRowIndices:e,scrollToAlignment:o,scrollToIndex:t,...null!=r&&{scrollTop:r}},this.clearScrollToIndex)}else this.setState({markerRowIndices:e})}),l}predictScrollTop(e,t){let o;if(e<0)return;let r=e*V.yB,i=this.getClientHeight(),n=this.scrollTop;if("start"===t)o=r;else if("end"===t)o=r-i+V.yB;else if("center"===t)o=r-i/2+V.yB/2;else{let e=r+V.yB;r<n?o=r:e>n+i&&(o=e-i)}return null!=o&&(o=Math.max(0,Math.min(o,Math.max(0,(this.orderedGraphRows?.length??0)*V.yB-i)))),o}getCommitZoneContentWidthBetweenGutters(){return this.getCurrentWidthByZone(V.md)-this.getLeftGutterWidth()-this.getRightGutterWidth()}getExcludeRemotesByName(){let e={};return Object.values(this.excludeRefsById).forEach(t=>{t.type===e_.z.REMOTE&&t.owner&&"*"===t.name&&(e[t.owner]=!0)}),e}getIncludeOnlyRemotesByName(){let e={};return Object.values(this.includeOnlyRefsById).forEach(t=>{t.type===e_.z.REMOTE&&t.owner&&"*"===t.name&&(e[t.owner]=!0)}),e}clearScrollToIndex=(0,ea.xJ)(()=>{this.isMounted&&this.setState({scrollToIndex:void 0})});getVisibleRows=()=>{let{top:e,bottom:t}=this.getTopAndBottomVisibleRowIndex();return e>=0&&t>=0?this.state.processedRows.slice(e,t+1):[]};getTopAndBottomVisibleRowIndex(){let{graphHeight:e,orderedGraphRows:t,scrollTop:o}=this,r=e||0;if(!r||!t?.length)return{top:-1,bottom:-1};let i=(r-V.q4)/V.yB,n=o/V.yB;return{top:Math.max(Math.floor(n),0),bottom:Math.min(Math.ceil(n+(i-1)),t.length-1)}}getOffsetSha(e,t,o,r){this._scrollToAlignmentOverride=void 0;let i=this.props.scrollRowPadding||0;if(!i||"none"===t||!this.graphHeight||!this.orderedGraphRows.length)return e;let n=this.processedGraphRowBySha[e]?.rowIndex??-1;if(-1===n)return e;let{top:s,bottom:a}=this.getTopAndBottomVisibleRowIndex();if(-1===s||-1===a||n>=s&&n<=a&&!r)return e;let l=Math.floor(Math.floor((this.graphHeight-V.q4)/V.yB)/2);if(l<1)return e;let h=Math.min(i,l);return void 0===o||t!==o?e:"up"===t&&n<=s+h?(this._scrollToAlignmentOverride="start",this.orderedGraphRows[Math.max(n-h,0)].sha||e):"down"===t&&n>=a-h?(this._scrollToAlignmentOverride="end",this.orderedGraphRows[Math.min(n+h,this.orderedGraphRows.length-1)].sha||e):e}_pendingScrollUpdate;_lastSelectedRowIndex;_lastScrollDirection="none";_scrollToAlignmentOverride;selectSha(e,t=!1){let o=this.processedGraphRowBySha[e]?.column||0,r=this.getScrollLeft(),i=this.getCommitZoneContentWidthBetweenGutters(),n=this.getCurrentWidthByZone(V.md),s=this.getCommitZoneContentWidth(),a=o*this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,l=r-this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH/3<=a,h=Math.max(0,s-n),c=l&&a<=r+i?r:(0,ev.q)(a-i/2,0,h),d=this.processedGraphRowBySha[e]?.rowIndex,u=void 0!==d&&void 0!==this._lastSelectedRowIndex?d>this._lastSelectedRowIndex?"down":d<this._lastSelectedRowIndex?"up":"none":"none",p=t?this.getOffsetSha(e,u,this._lastScrollDirection,t):e;this.setScrollToSha(p,c),t?(this._lastScrollDirection=u,void 0!==d&&(this._lastSelectedRowIndex=d)):(this._lastScrollDirection="none",this._lastSelectedRowIndex=void 0,this._scrollToAlignmentOverride=void 0),t&&this.props.hasMoreCommits&&void 0!==d&&this.orderedGraphRows.length-d<=V.By/V.yB&&this.loadMoreCommitsIfNecessary(this.graphHeight,this.props.hasMoreCommits),t||(null!=this._pendingScrollUpdate&&cancelAnimationFrame(this._pendingScrollUpdate),this._pendingScrollUpdate=requestAnimationFrame(()=>{this._pendingScrollUpdate=void 0,this.setState({scrollToAlignment:this.getScrollToAlignment(),scrollToIndex:this.getScrollToIndex()},this.clearScrollToIndex)}))}updateWidthByZone(e,t,o){let r=this.getOrderedActiveGraphZones(),i=this.graphZonesByType[t],n=(0,ea.jY)(i,r,e);if(i.currentWidth=n,t===V.md){let e=Math.max(0,this.getCommitZoneContentWidth()-i.currentWidth);this.getScrollLeft()>e&&this.setScrollLeft(e)}o&&(i.preferredWidth=n)}updateCommitZoneContentWidthFromChange(){let e=this.graphZonesByType[V.md];if(!e.isHidden){let t=this.getOrderedActiveGraphZones(),o=this.getCommitZoneContentWidth();e.contentWidth=o,e.maximumWidth=o,e.currentWidth>o&&(e.currentWidth=(0,ea.jY)(e,t,o)),this.setState({graphZones:t})}}getCurrentWidthByZone(e,t=!0){let o=t?this.getVerticalScrollWidth(V.md,this.props.cssVariables,!0):0,r=this.graphZonesByType[e];return r&&!r.isHidden?r.currentWidth-o:0}getCommitZoneContentWidth(){return(this.maxColumns||1)*this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH+2*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+2*this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT}getCommitZoneWidth(e=!0){let t=e?this.getVerticalScrollWidth(V.md,this.props.cssVariables,!0):0;if(this.graphZonesByType[V.md])return this.graphZonesByType[V.md].currentWidth-t;let{columnsSettings:o}=this.props;return o?.[V.md]?o[V.md].width-t:V.W[V.md].minimumWidth-t}getSingleColumnModeFactor(){let e=this.maxColumns,t=this.getCurrentWidthByZone(V.md);return 1===e?0:(0,ev.q)(1-(t-2*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH-this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT)/this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,0,1)}setClientHeight(e){this.clientHeight=e}getClientHeight(){return this.clientHeight}setScroll(e,t){this.setClientHeight(t.clientHeight),null!=t.scrollTop&&this.setScrollTop(t.scrollTop),e===V.md&&null!=t.scrollLeft&&this.setScrollLeft(t.scrollLeft)}getNonAdjustedScrollLeft(){return this.scrollLeft}setScrollLeft(e){this.scrollLeft!==e&&(this.scrollLeft=e,this.setState({scrollLeft:e}))}getScrollLeft(){let 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(){let e=this.getScrollToSha();if(e){let t=this.processedGraphRowBySha[e]?.rowIndex;return void 0===t?this.orderedGraphRows.findIndex(t=>t.sha===e):t}return -1}getScrollToAlignment(){if(void 0!==this._scrollToAlignmentOverride)return this._scrollToAlignmentOverride;let e=this.getClientHeight(),t=this.getScrollTop(),o=this.getScrollToIndex();if("none"!==this._lastScrollDirection&&o>=0){let r=o*V.yB,i=r+V.yB,n=t+e;if(!(r>=t&&i<=n))return"down"===this._lastScrollDirection?"end":"start"}return(0,ea.Mz)(V.yB,e,t,o)}getMinNodeOffset(){let e=this.getScrollLeft(),t=this.getSingleColumnModeFactor();return(1-t)*(e+2*this.graphZoneModeConstants.COMMIT_ZONE_PADDING_LEFT)+t*(e+this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH)}getHorizontalScrollHeight(e,t,o){return this.graphZonesByType[e]?(0,ea.xy)(e,this.getOrderedActiveGraphZones(),this.orderedGraphRows,t,o):0}getVerticalScrollWidth(e,t,o){return this.graphZonesByType[e]?(0,ea.K8)(e,this.getOrderedActiveGraphZones(),this.props.hasMoreCommits,this.props.isLoadingRows,this.graphHeight,this.orderedGraphRows,(this.props.enabledScrollMarkerTypes?.length??0)>0,t,o):0}getMaxNodeOffset(){let e=this.getCurrentWidthByZone(V.md),t=this.getScrollLeft(),o=this.getSingleColumnModeFactor();return(1-o)*(e+t+(this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT-this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH))+o*(t+this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH)}getAbsoluteNodeLeftByColumn(){let e={};for(let t=0;t<=this.maxColumns;t+=1)e[t]=this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH*t;return e}getNodeOffsetByColumn(){let e=this.getMinNodeOffset(),t=this.getMaxNodeOffset(),o=this.getAbsoluteNodeLeftByColumn(),r={};return Object.keys(o).forEach(i=>{let n=o[i];r[i]=(0,ev.q)(n,e,t)}),r}getMaxNodeLeft(){return this.getScrollLeft()+(this.getCurrentWidthByZone(V.md)-this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH-this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT)}getMinNodeLeft(){let e=this.getScrollLeft(),t=this.getSingleColumnModeFactor();return e+this.graphZoneModeConstants.COMMIT_ZONE_PADDING_LEFT+t*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH}getRightGutterSlideOutFactor(){let e=this.getCurrentWidthByZone(V.md),t=this.getCommitZoneContentWidth(),o=this.getSingleColumnModeFactor();return(0,ev.q)((e-(t-(this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+this.graphZoneModeConstants.COMMIT_ZONE_PADDING_RIGHT)))/this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,0,1)+o/2}getNodeOpacityByColumn(){let e=this.getMinNodeLeft(),t=this.getMaxNodeLeft(),o=this.getAbsoluteNodeLeftByColumn(),r=this.getRightGutterSlideOutFactor(),i=this.getSingleColumnModeFactor(),n={};return Object.keys(o).forEach(s=>{let a=o[s],l=Math.min(a-(e-i*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH),t+this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH-(a+this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH*(1-r)));n[s]=V.Td+(1-V.Td)*Math.max(l/(this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH/2),i)}),n}getLeftGutterWidth(){let e=this.getSingleColumnModeFactor();return this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH+e*(this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH/2)}getRightGutterWidth(){return(1-this.getRightGutterSlideOutFactor())*this.graphZoneModeConstants.COMMIT_ZONE_GUTTER_WIDTH}getBoxShadowAlphaForGutter(e,t){return .4*(1-Math.max(e,t))}getLeftGutterBoxShadowAlpha(e){let t=this.getScrollLeft(),o=this.getSingleColumnModeFactor();return e*this.getBoxShadowAlphaForGutter(o,(0,ev.q)(1-t/this.graphZoneModeConstants.COMMIT_COLUMN_WIDTH,0,1))}getRightGutterBoxShadowAlpha(e){let t=this.getSingleColumnModeFactor(),o=this.getRightGutterSlideOutFactor();return e*this.getBoxShadowAlphaForGutter(t,o)}updateMarkerRowIndices(e,t){this.isMounted&&this.setState(({markerRowIndices:o})=>{if(e.forEach(e=>o[e]=[]),e.includes("selection"))for(let e of this.selectedShas){let t=this.processedGraphRowBySha[e]?.rowIndex;void 0!==t&&o.selection.push(t)}let r=t?.searchMode??this.props.searchMode;if(e.includes("highlights")&&"filter"!==r)for(let e of Object.keys(t?.highlightedShas||this.state?.highlightedShas||this.props.highlightedShas||{})){let t=this.processedGraphRowBySha[e]?.rowIndex;void 0!==t&&o.highlights.push(t)}if(e.includes("pullRequests")){let e=t?.refMetadataById||this.state?.refMetadataById||this.props.refMetadataById||{};for(let t of Object.keys(e))if(e[t]?.[el.ki]?.length){let e=this.shaByRefId[t];if(null==e)continue;let r=this.processedGraphRowBySha[e]?.rowIndex;void 0!==r&&o.pullRequests.push(r)}o.pullRequests.sort((e,t)=>e-t)}let i={markerRowIndices:o,interactiveScrollMarkers:this.state.interactiveScrollMarkers};return e.includes("pullRequests")&&(i.interactiveScrollMarkers=this.computeInteractiveScrollMarkers(t)),i})}computeInteractiveScrollMarkers(e){let t=e?.refMetadataById||this.state?.refMetadataById||this.props.refMetadataById||{},o=[];for(let e of Object.keys(t)){let r=t[e]?.[el.ki];if(!r?.length)continue;let i=this.shaByRefId[e];if(null==i)continue;let n=this.processedGraphRowBySha[i]?.rowIndex;if(null==n)continue;let s=r[0];o.push({type:"pullRequests",rowIndex:n,sha:i,label:s.title?`#${s.id} ${s.title}`:`#${s.id}`})}return this.interactiveScrollMarkersFromRows.concat(o)}onScrollMarkerClicked=e=>{this.selectCommitsCore([e],{ensureVisible:!0,isKeyboardNav:!1})};getHeadPillDirection(){if(!this.headSha||!this.orderedGraphRows.length)return null;let e=this.processedGraphRowBySha[this.headSha]?.rowIndex;if(null==e||e<0)return null;let{top:t,bottom:o}=this.getTopAndBottomVisibleRowIndex();return t<0||o<0?null:e<t-1?"up":e>o+1?"down":null}onHeadPillClick=()=>{this.headSha&&this.selectCommitsCore([this.headSha],{ensureVisible:!0,isKeyboardNav:!1})};getMarkerColors(){if(this._markerColorsCache)return this._markerColorsCache;let e=getComputedStyle(this.graphComponentRef?.current||document.querySelector(".gk-graph")||document.documentElement),t={};for(let o of Object.values(V.wx)){let r=e.getPropertyValue(o.colorCssKey).trim();r&&(t[o.type]=r)}return this._markerColorsCache=t,t}initializeGraphZones(e,t,o){this.graphZonesByType={};let r=[],i=0;t.forEach((t,o)=>{let n=e?e[t]:void 0,s=V.W[t],a=n?.width?n.width:s.minimumWidth,l={...s,type:t,currentWidth:a,preferredWidth:a,isHidden:n?.isHidden||!1,mode:n?.mode,order:s.isCustomizable&&n?.order!==void 0?n?.order:o};n?.isHidden||(i+=l.currentWidth),t===V.md&&(l.contentWidth=this.getCommitZoneContentWidth(),l.minimumWidth=this.graphZoneModeConstants.COMMIT_ZONE_VIEWPORT_WIDTH_MIN,l.showIconWidth=this.graphZoneModeConstants.COMMIT_ZONE_SHOW_ICON_WIDTH,this.maxColumns>0&&(l.maximumWidth=l.contentWidth)),this.graphZonesByType[t]=l,l?.isHidden||r.push(l)});let n=r[r.length-1];if(n){let e=(0,ea.eQ)(this.props.cssVariables,!0),t=n.minimumWidth+e;(null==n.maximumWidth||n.maximumWidth>=t)&&(n.minimumWidth=t,null!=n.showIconWidth&&(n.showIconWidth+=e),r[r.length-1]=n)}for(r.forEach(e=>{let t=(0,ea.jY)(e,r,e.currentWidth);t!==e.currentWidth&&(i-=e.currentWidth,e.currentWidth=t,i+=t)});i>o;){let e=(0,ea.Q9)(r);if(!e)break;let t=e.currentWidth,n=i-o,s=Math.max(e.minimumWidth,t-n),a=t-s;this.graphZonesByType[e.type].currentWidth=s,i-=a}if(i<o){let e=t[t.length-1],i=o-(0,ea.al)(r,e);this.graphZonesByType[e].currentWidth=i}return r}maybeSortGraphZoneOrderingFromSettings(e){this.graphZoneOrdering.every(t=>e?.[t]?.order!==void 0)&&this.graphZoneOrdering.sort((t,o)=>e[t].order<e[o].order?-1:+(e[t].order>e[o].order))}updateZonesFromSettings(e){let t=!1;this.graphZoneOrdering.forEach((o,r)=>{let i=this.graphZonesByType[o],n=e?.[i.type];n&&(n.isHidden!==i.isHidden&&(t=!0,i.type!==V.Sq||n.isHidden||this.updateRowStatsConstraints()),i.isHidden=n.isHidden,i.order=i.isCustomizable&&n?.order!==void 0?n?.order:r,i.mode=n.mode,i.preferredWidth=n.width??i.preferredWidth,i.currentWidth=i.preferredWidth)}),t&&this.graphZoneOrdering.forEach(e=>{let t=this.graphZonesByType[e];t.currentWidth=t.minimumWidth})}loadEdgesBySha(){if(this.maxColumns=0,this.isFilteredSearch())return;let e=e=>this.processedGraphRowBySha[e]?.column;this.orderedGraphRows.forEach((t,o)=>{let r=this.orderedGraphRows[o-1],i=function(e,t,o,r){var i;let n,s,a,l,h,c=(i=e.sha,h={},Object.keys(t).forEach(e=>{s=(n=t[e]).passThrough,a=n.starting,(l=s&&!$(s.type)?s:a&&!$(a.type)?a:s||a||void 0)&&(l.parentSha===i?h[e]={ending:l}:h[e]={passThrough:l})}),h),d=function(e,t,o){let r={},i=e.parents;if(i.length>0){let n=o.has(e.sha)?"synthetic-edge":e.type,s=t(e.sha);void 0!==s&&(r[s]={parentSha:i[0],type:n});for(let e=1;e<i.length;e+=1){let o=i[e],s=t(o);void 0!==s&&(r[s]={parentSha:o,type:n})}}return r}(e,o,r);return Object.keys(d).forEach(e=>{c[e]||(c[e]={ending:void 0,passThrough:void 0,starting:void 0}),c[e].starting=d[e]}),c}(t,r&&this.processedGraphRowBySha[r.sha]?.edges?this.processedGraphRowBySha[r.sha].edges:{},e,this.syntheticEdgeChildShas);this.processedGraphRowBySha[t.sha].edges=i;let n=function(e){if(null==e)return 0;let t=0;return Object.keys(e).forEach(e=>{let o=parseInt(e,10);o>t&&(t=o)}),t}(i);this.processedGraphRowBySha[t.sha].edgeColumnMaxes=n,n>this.maxColumns&&(this.maxColumns=n)})}processRows(e,t){this.loadRowsbySha(e||[],t),this.loadEdgesBySha()}formatCommitDateTimeCallback=(e,t)=>this.props.formatCommitDateTime?this.props.formatCommitDateTime(e,t):function(e,t,o=!0){t=t??void 0;let r=`${(void 0)??""}:${t}`,i=U.get(r);if(null==i){let e=function(e){if(null==e)return{localeMatcher:"best fit",dateStyle:"full",timeStyle:"short"};let t=Z.exec(e);if(t?.groups!=null){let{dateStyle:e,timeStyle:o}=t.groups;return{localeMatcher:"best fit",dateStyle:e||"full",timeStyle:o||void 0}}let o={localeMatcher:"best fit"};for(let{groups:t}of e.matchAll(B))if(null!=t)for(let e in t){let r=t[e];if(null!=r)switch(e){case"year":o.year=4===r.length?"numeric":"2-digit";break;case"month":switch(r.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":"DD"===r?o.day="2-digit":o.day="numeric";break;case"weekday":switch(r.length){case 4:o.weekday="long";break;case 3:o.weekday="short";break;case 2:o.weekday="narrow"}break;case"hour":o.hour=2===r.length?"2-digit":"numeric",o.hour12="hh"===r||"h"===r;break;case"minute":o.minute=2===r.length?"2-digit":"numeric";break;case"second":o.second=2===r.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===r.length?"long":"short"}}return o}(t);i=new Intl.DateTimeFormat(s,e),o&&U.set(r,i)}if(null==t||Z.test(t))return i.format(e);let n=i.formatToParts(e);return t.replace(B,(t,r,i,a,l,h,c,d,u,p,f,m,g,_,v)=>{if(null!=r)return r.substring(1,r.length-1);for(let t in v){let r=v[t];if(null==r)continue;let i=n.find(e=>e.type===t);if("Do"===r&&i?.type==="day")return function(e){let t=e%100;return`${e}${j[(t-20)%10]??j[t]??j[0]}`}(Number(i.value));if("a"===r&&i?.type==="dayPeriod"){let t=(function(e){let t=`${(void 0)??""}:time:${e}`,r=U.get(t);null==r&&(r=new Intl.DateTimeFormat(s,{localeMatcher:"best fit",timeStyle:e}),o&&U.set(t,r));return r})("short").formatToParts(e).find(e=>"dayPeriod"===e.type);return` ${(t??i)?.value??""}`}return i?.value??""}return""})}(e,V.qO);formatCommitMessageCallback=e=>this.props.formatCommitMessage?.(e)??{summary:e};formatRefShorthandCallback=(e,t,o,r)=>this.props.formatRefShorthand?this.props.formatRefShorthand(e,t,o,r):e.replace(/\s/g,"");isRefShorthandValidCallback=(e,t,o,r)=>!this.props.isRefShorthandValid||this.props.isRefShorthandValid(e,t,o,r);translateCallback=(e,...t)=>this.props.translate?this.props.translate(e,...t):eg.H[e]?function(e,t){if(0===t.length)return e;let o=e;return t.forEach((e,t)=>{let r=RegExp(`\\{${t}\\}`,"g");o=o.replace(r,e)}),o}(eg.H[e],t):e;getIconCallback=e=>{let t=this.props.getExternalIcon?.(e);return t||A.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(()=>{if(!this.isMounted)return;let e={...this.pendingMissingAvatars};this.pendingMissingAvatars={};let t=Object.keys(e);if(t.length){for(let e of t)this.requestedMissingAvatars[e]=!0;this.props.onEmailsMissingAvatarUrls?.(e)}},100))};onMissingRefMetadata=(e,t)=>{if(!this.props.onRefsMissingMetadata||this.requestedMissingRefsMetadata[e])return;let o=this.pendingMissingRefsMetadata[e]||[],r=t.filter(e=>!o.includes(e));this.pendingMissingRefsMetadata[e]=[...o,...r],this.missingRefsMetadataTimer&&(clearTimeout(this.missingRefsMetadataTimer),this.missingRefsMetadataTimer=void 0),this.missingRefsMetadataTimer=setTimeout(()=>{if(!this.isMounted)return;let e={...this.pendingMissingRefsMetadata};this.pendingMissingRefsMetadata={};let t=Object.keys(e);if(t.length){for(let e of t)this.requestedMissingRefsMetadata[e]=!0;this.props.onRefsMissingMetadata?.(e)}},100)};scheduleVisibleWipShasUpdate=()=>{let{onVisibleWipShasChanged:e,onWipShasMissingStats:t}=this.props;if(!e&&!t)return;this.visibleWipShasTimer&&clearTimeout(this.visibleWipShasTimer);let o=this.props.wipShasSettleDelayMs??100;this.visibleWipShasTimer=setTimeout(()=>{if(this.visibleWipShasTimer=void 0,!this.isMounted)return;let o={},{top:r,bottom:i}=this.getTopAndBottomVisibleRowIndex();if(r>=0&&i>=0)for(let e=r;e<=i;e++){let t=this.orderedGraphRows[e];null!=t&&eu(t)&&(o[t.sha]=!0)}let{missing:n,prunedRequestedDedup:s}=function(e,t,o){let r={};for(let o of Object.keys(t))e[o]&&(r[o]=!0);let i={};for(let t of Object.keys(e)){if(r[t])continue;let e=o?.[t];e?.customContent==null&&(e?.workDirStats===void 0||e?.workDirStatsStale===!0)&&(i[t]=!0)}return{missing:i,prunedRequestedDedup:r}}(o,this.requestedMissingWipStats,this.props.wipNodeMetadataBySha);this.requestedMissingWipStats=s,null!=e&&(void 0===this.lastFiredVisibleWipShas||!function(e,t){let o=Object.keys(e);if(o.length!==Object.keys(t).length)return!1;for(let e of o)if(!t[e])return!1;return!0}(o,this.lastFiredVisibleWipShas))&&(this.lastFiredVisibleWipShas=o,e(o));let a=Object.keys(n);if(null!=t&&a.length>0){for(let e of a)this.requestedMissingWipStats[e]=!0;t(n)}},o)};selectNext(e,t,o){this.selectInDirection("down",e,t,o)}selectPrevious(e,t,o){this.selectInDirection("up",e,t,o)}selectInDirection(e,t,o,r){let i=o&&!this.isFilteredSearch(),n=t?r??"simple":void 0,s=this.getNextShaInDirection(e,t,i,n);s&&(this.currentSha=s,t&&n?this.performRangeSelection(s,n,!0):t||(this.selectCommitsCore([s],{ensureVisible:!0,isTopological:i}),this.selectionAnchorSha=s))}getNextShaInDirection(e,t,o,r){if(t&&"topological"===r&&this.selectionFocusSha){let t=this.selectionAnchorSha??this.selectionFocusSha;return this.findNextReachableFromAnchor(e,this.selectionFocusSha,t,o)}if(o&&!t&&this.selectionFocusSha)return"down"===e?this.getNextTopologicalSha(this.selectionFocusSha):this.getPreviousTopologicalSha(this.selectionFocusSha);let i=this.selectionFocusSha?this.processedGraphRowBySha[this.selectionFocusSha]?.rowIndex??-1:-1,n="down"===e?Math.min(i+1,this.orderedGraphRows.length-1):Math.max(0,i-1);return this.orderedGraphRows[n]?.sha}getNextTopologicalSha(e){return this.getSameColumnParent(e)}getPreviousTopologicalSha(e){return this.getSameColumnChild(e)}findNextReachableFromAnchor(e,t,o,r){let i,n=this.processedGraphRowBySha[t];if(!n)return;let s=n.rowIndex,a="down"===e;if(r){let r="down"===e?this.getNextTopologicalSha(t):this.getPreviousTopologicalSha(t);if(r&&this.isReachableFrom(o,r))return r}let l=a?s+1:s-1;if(l>=0&&l<this.orderedGraphRows.length){let e=this.orderedGraphRows[l]?.sha;if(e&&this.isReachableFrom(o,e))return e}let h=this.processedGraphRowBySha[o];if(!h)return;let c=h.rowIndex,d=s===c?a:s>c,u=new Set,p=[o],f=0,m=a?1/0:-1/0;for(;f<p.length&&f<1e3;){let e=p[f++];if(u.has(e))continue;u.add(e);let t=this.processedGraphRowBySha[e];if(!t)continue;(a?t.rowIndex>s&&t.rowIndex<m:t.rowIndex<s&&t.rowIndex>m)&&(i=e,m=t.rowIndex);let o=d?t.parents:this.childrenBySha[e];if(o)for(let e of o)u.has(e)||p.push(e)}return i}isReachableFrom(e,t){if(e===t)return!0;let o=this.processedGraphRowBySha[e],r=this.processedGraphRowBySha[t];if(!o||!r)return!1;let i=r.rowIndex>o.rowIndex,n=new Set,s=[e],a=0;for(;a<s.length&&a<500;){let e=s[a++];if(e===t)return!0;if(n.has(e))continue;n.add(e);let o=i?this.processedGraphRowBySha[e]?.parents:this.childrenBySha[e];if(o)for(let e of o)n.has(e)||s.push(e)}return!1}getSameColumnChild(e){let t=this.childrenBySha[e];if(!t?.length)return;let o=this.processedGraphRowBySha[e],r=o?.column;if(void 0!==r)for(let e of t){let t=this.processedGraphRowBySha[e];if(t&&!t.hidden&&t.column===r)return e}for(let o of t){let t=this.processedGraphRowBySha[o];if(t&&!t.hidden&&t.parents?.[0]===e)return o}}selectPreviousBranchingPoint(){if(!this.selectionFocusSha||this.isFilteredSearch())return;let e=this.selectionFocusSha,t=this.orderedGraphRows.length;for(let o=0;o<t;o++){let t=this.getSameColumnChild(e);if(!t||(e=t,this.isBranchingPoint(e)))break}e!==this.selectionFocusSha&&(this.currentSha=e,this.selectCommitsCore([e],{ensureVisible:!0}),this.selectionAnchorSha=e)}isBranchingPoint(e){let t=this.childrenBySha[e];if(!t?.length)return!1;let o=this.processedGraphRowBySha[e]?.column;if(void 0===o)return!1;for(let e of t){let t=this.processedGraphRowBySha[e];if(t&&!t.hidden&&t.column!==o)return!0}return!1}getSameColumnParent(e){let t=this.processedGraphRowBySha[e];if(!t?.parents?.length)return;let o=t.column;if(void 0!==o){for(let e of t.parents){let t=this.processedGraphRowBySha[e];if(t&&!t.hidden&&t.column===o)return e}for(let e of t.parents){let t=this.processedGraphRowBySha[e];if(t&&!t.hidden)return e}}}selectNextBranchingPoint(){if(!this.selectionFocusSha||this.isFilteredSearch())return;let e=this.selectionFocusSha,t=this.orderedGraphRows.length;for(let o=0;o<t;o++){let t=this.getSameColumnParent(e);if(!t||(e=t,this.isBranchingPoint(e)))break}e!==this.selectionFocusSha&&(this.currentSha=e,this.selectCommitsCore([e],{ensureVisible:!0}),this.selectionAnchorSha=e)}selectNextRef(){let e=this.selectionFocusSha?this.processedGraphRowBySha[this.selectionFocusSha]?.rowIndex??-1:-1;for(let t=e+1;t<this.orderedGraphRows.length;t++){let e=this.orderedGraphRows[t];if(e?.hasRefs){this.currentSha=e.sha,this.selectCommitsCore([e.sha],{ensureVisible:!0}),this.selectionAnchorSha=e.sha;return}}}selectPreviousRef(){let e=this.selectionFocusSha?this.processedGraphRowBySha[this.selectionFocusSha]?.rowIndex??-1:this.orderedGraphRows.length;for(let t=e-1;t>=0;t--){let e=this.orderedGraphRows[t];if(e?.hasRefs){this.currentSha=e.sha,this.selectCommitsCore([e.sha],{ensureVisible:!0}),this.selectionAnchorSha=e.sha;return}}}selectHead(e){let t=null;e&&this.headUpstreamSha?t=this.headUpstreamSha:this.headSha&&(t=this.headSha),this.currentSha=t||null,t&&(this.selectCommitsCore([t],{ensureVisible:!0}),this.selectionAnchorSha=t)}selectFirst(e,t){if(!this.orderedGraphRows.length)return;let o=this.orderedGraphRows[0]?.sha;if(o)if(this.currentSha=o,e){this.selectionAnchorSha??=this.selectionFocusSha??o;let e=t??"simple",r=this.getShiftSelectRange(o,e);if(r?.length){let t="topological"===e;this.selectCommitsCore(r,{ensureVisible:!0,focusSha:o,isKeyboardNav:!0,isTopological:t,isContiguous:!!t||void 0})}}else this.selectCommitsCore([o],{ensureVisible:!0}),this.selectionAnchorSha=o}selectLast(e,t){if(!this.orderedGraphRows.length)return;let o=this.orderedGraphRows.length-1,r=this.orderedGraphRows[o]?.sha;if(r)if(this.currentSha=r,e){this.selectionAnchorSha??=this.selectionFocusSha??r;let e=t??"simple",o=this.getShiftSelectRange(r,e);if(o?.length){let t="topological"===e;this.selectCommitsCore(o,{ensureVisible:!0,focusSha:r,isKeyboardNav:!0,isTopological:t,isContiguous:!!t||void 0})}}else this.selectCommitsCore([r],{ensureVisible:!0}),this.selectionAnchorSha=r}selectPageUp(e,t){if(!this.orderedGraphRows.length)return;let o=Math.max(1,Math.floor(this.getClientHeight()/V.yB)-1),r=Math.max(0,(this.selectionFocusSha?this.processedGraphRowBySha[this.selectionFocusSha]?.rowIndex??-1:-1)-o),i=this.orderedGraphRows[r]?.sha;if(i)if(this.currentSha=i,e){this.selectionAnchorSha??=this.selectionFocusSha??i;let e=t??"simple",o=this.getShiftSelectRange(i,e);if(o?.length){let t="topological"===e;this.selectCommitsCore(o,{ensureVisible:!0,focusSha:i,isKeyboardNav:!0,isTopological:t,isContiguous:!!t||void 0})}}else this.selectCommitsCore([i],{ensureVisible:!0}),this.selectionAnchorSha=i}selectPageDown(e,t){if(!this.orderedGraphRows.length)return;let o=Math.max(1,Math.floor(this.getClientHeight()/V.yB)-1),r=this.selectionFocusSha?this.processedGraphRowBySha[this.selectionFocusSha]?.rowIndex??-1:-1,i=Math.min(this.orderedGraphRows.length-1,r+o),n=this.orderedGraphRows[i]?.sha;if(n)if(this.currentSha=n,e){this.selectionAnchorSha??=this.selectionFocusSha??n;let e=t??"simple",o=this.getShiftSelectRange(n,e);if(o?.length){let t="topological"===e;this.selectCommitsCore(o,{ensureVisible:!0,focusSha:n,isKeyboardNav:!0,isTopological:t,isContiguous:!!t||void 0})}}else this.selectCommitsCore([n],{ensureVisible:!0}),this.selectionAnchorSha=n}getColumns(e,t){let o;this.hasMergeNodeChildBySha[e.sha]&&delete this.hasMergeNodeChildBySha[e.sha];let r=t??e.parents??[],i=this.pinnedBranchShas.has(e.sha),n=this.pinnedBranchShas.size>0,s=this.columnsToFreeWhenFound[e.sha];if(void 0!==s)for(let e=0;e<s.length;e+=1)delete this.columnsUsed[s[e]];let a=this.reserverInfoBySha[e.sha];i?(o=0,this.columnsUsed[0]=!0,delete this.reserverInfoBySha[e.sha]):a?.column!==void 0?(o=a.column,delete this.reserverInfoBySha[e.sha]):o=eh(this.columnsUsed,n);for(let t=0;t<r.length;t+=1){let i=r[t];e.type===L.t$&&(this.hasMergeNodeChildBySha[i]=!0);let s=this.reserverInfoBySha[i];if(0===t&&s?.column!==void 0&&s?.column!==o){let t=this.columnsToFreeWhenFound[i]||[],r=s?.type===L.OZ&&e.type!==L.OZ&&a?.newestDate>s?.newestDate;(s?.column>o||r)&&!this.hasMergeNodeChildBySha[i]?(this.reserverInfoBySha[i]={type:e.type,newestDate:a?.newestDate,column:o},t.push(s.column)):t.push(o),this.columnsToFreeWhenFound[i]=t}else if(s?.column===void 0){var l,h,c;let r=this.pinnedBranchShas.has(i);this.reserverInfoBySha[i]={type:e.type,newestDate:a?.column===o?a?.newestDate:e.date,column:(l=this.columnsUsed,h=t,c=o,r?0:0===h?c:eh(l,n))}}}return o}getFilteredHeadsForGraphRow(e,t){return e.heads.filter(e=>e.isCurrentHead||(t?void 0!==this.includeOnlyRefsById[(0,ea.mH)(e_.z.HEAD,e)]:!this.excludeByType.heads&&void 0===this.excludeRefsById[(0,ea.mH)(e_.z.HEAD,e)]))}getFilteredRemotesForGraphRow(e,t){return e.remotes.filter(e=>t?void 0!==this.includeOnlyRefsById[(0,ea.mH)(e_.z.REMOTE,e)]||!e.owner||void 0!==this.includeOnlyRemotesByName[e.owner]:(!this.excludeByType.remotes||e.owner&&this.downstreamsByUpstream[`${e.owner}/${e.name}`]?.length>0)&&void 0===this.excludeRefsById[(0,ea.mH)(e_.z.REMOTE,e)]&&(!e.owner||void 0===this.excludeRemotesByName[e.owner]))}getBaseFilteredTagsForGraphRow(e,t){return e.tags.filter(e=>t?void 0!==this.includeOnlyRefsById[(0,ea.mH)(e_.z.TAG,e)]:!this.excludeByType.tags&&void 0===this.excludeRefsById[(0,ea.mH)(e_.z.TAG,e)])}loadRowsbySha(e,t){var o;this.orderedGraphRows=[],this.processedGraphRowBySha={};let r=this.isFilteredSearch();this.childrenBySha={},this.shaByRefId={},this.reserverInfoBySha={},this.columnsToFreeWhenFound={},this.columnsUsed={};let i=void 0!==t?t:this.props.pinnedBranchFullName;this.pinnedBranchShas=function(e,t){let o,r=new Set;if(!t)return r;for(let i of e){if(!o){if(!(i.heads?.some(e=>e.id===t)||i.remotes?.some(e=>e.id===t)))continue;o=i.sha}if(i.sha===o&&(r.add(i.sha),!(o=i.parents?.[0])))break}return r}(e,i),this.scopeVisibility=null!=this.props.scope?function(e,t){let o,r=em.get(e);null==r&&(r=new Map,em.set(e,r));let i=(o=null!=t.additionalBranchRefs&&t.additionalBranchRefs.length>0?[...t.additionalBranchRefs].sort().join(","):"",`${t.branchRef}\0${t.upstreamRef??""}\0${t.mergeTargetTipSha??""}\0${t.mergeBase?.sha??""}\0${t.collapseStyle??""}\0${o}`),n=r.get(i);if(null!=n)return n;let s=function(e,t){let o,r=new Set,i=new Set,n=new Set,s=new Set,a=new Map,l=new Set,h=!1,c=function(e){let t=new Map,o=new Map,r=new Set;for(let i of e){if(r.add(i.sha),null!=i.parents&&i.parents.length>0&&t.set(i.sha,i.parents),null!=i.heads)for(let e of i.heads)null!=e.id&&o.set(e.id,i.sha);if(null!=i.remotes)for(let e of i.remotes)null!=e.id&&o.set(e.id,i.sha)}return{parentsBySha:t,shaByRefId:o,loadedShas:r}}(e),d=t.mergeBase?.sha,u=!1;if(null!=d)if(null!=t.mergeTargetTipSha){for(let e of(o=new Set,ef(t.mergeTargetTipSha,c.parentsBySha,o),o))if(!c.loadedShas.has(e)){u=!0;break}o.add(d)}else o=new Set([d]);else if(null!=t.mergeTargetTipSha){for(let e of(o=new Set,ef(t.mergeTargetTipSha,c.parentsBySha,o),o))if(!c.loadedShas.has(e)){u=!0;break}}else{let r=new Set;if(r.add(t.branchRef),null!=t.upstreamRef&&r.add(t.upstreamRef),null!=t.additionalBranchRefs)for(let e of t.additionalBranchRefs)r.add(e);let i=function(e,t){let o=new Set;for(let r of e){let e=!1,i=!1;if(null!=r.heads)for(let o of r.heads)null!=o.id&&(t.has(o.id)?e=!0:i=!0);if(null!=r.remotes)for(let o of r.remotes)null!=o.id&&(t.has(o.id)?e=!0:i=!0);i&&!e&&o.add(r.sha)}return o}(e,r);i.size>0&&(o=i)}function p(e){if(i.add(e),null==o)return void ef(e,c.parentsBySha,r);if(!function(e,t,o,r){if(o.add(e),r.has(e))return;let i=[e];for(;i.length>0;){let e=i.pop(),n=t.get(e);if(null!=n)for(let e of n)o.has(e)||r.has(e)||(o.add(e),i.push(e))}}(e,c.parentsBySha,r,o),null!=d)c.loadedShas.has(d)?(r.add(d),n.add(d),h=!0):l.add(e);else{let t=function(e,t,o){let r=e,i=new Set;for(;null!=r;){if(o.has(r))return r;if(i.has(r))break;i.add(r);let e=t.get(r);r=null!=e&&e.length>0?e[0]:void 0}}(e,c.parentsBySha,o);null!=t&&(r.add(t),n.add(t),h=!0)}}let f=c.shaByRefId.get(t.branchRef);if(null!=f&&p(f),null!=t.upstreamRef){let e=c.shaByRefId.get(t.upstreamRef);null!=e&&p(e)}if(null!=t.additionalBranchRefs)for(let e of t.additionalBranchRefs){let t=c.shaByRefId.get(e);null!=t&&p(t)}if(null!=t.mergeTargetTipSha&&(r.add(t.mergeTargetTipSha),i.add(t.mergeTargetTipSha),s.add(t.mergeTargetTipSha)),"gap"!==t.collapseStyle){let e=new Set;for(let t of r){let o=c.parentsBySha.get(t);if(null!=o)for(let t of o)r.has(t)&&e.add(t)}for(let t of i){if(e.has(t)||n.has(t))continue;let o=c.parentsBySha.get(t);if(null==o||0===o.length)continue;let h=!1;for(let e of o)if(r.has(e)){h=!0;break}let d=s.has(t);if(h&&!d)continue;let p=function(e,t,o){let r=t.get(e);if(null==r||0===r.length)return[];let i=[],n=new Set,s=[...r],a=0;for(;a<s.length;){let e=s[a];if(a+=1,n.has(e))continue;if(n.add(e),o.has(e)){i.push(e);continue}let r=t.get(e);if(null!=r)for(let e of r)n.has(e)||s.push(e)}return i}(t,c.parentsBySha,r);if(p.length>0){a.set(t,p);continue}if(d&&u){let e=function(e,t,o){let r=[];for(let i of e){if(o.has(i))continue;let n=t.get(i),s=null!=n&&n.length>0?n[0]:void 0;null!=s&&e.has(s)||r.push(i)}return r}(r,c.parentsBySha,i);e.length>0&&a.set(t,e)}h||l.add(t)}}return{visibleShas:r,anchorShas:i,forkPointShas:n,mergeTargetShas:s,syntheticParentsBySha:a,unreachableAnchors:l,isBounded:h&&0===l.size}}(e,t);return r.set(i,s),s}(e,this.props.scope):null,this.syntheticEdgeChildShas=new Set;let n=new Map,s={},a={},l=[],h=[];this.branchUpstreamRowIndices=[],this.interactiveScrollMarkersFromRows=[];let c=[],d=[],u=[],p=[],f=[],m={};if((0,ea.dF)(this.workDirStats,this.props.wipVisibility)&&e.length>0&&!(0,ea.l7)(e[0].type)){let t=(0,ea.pg)(e),r={sha:L.bY,parents:t?[t]:[],author:"",email:"",date:new Date().getTime(),message:this.translateCallback(null==(o=this.workDirStats)?"Graph-WorkInProgress":(0,ed.D7)(o,e=>"number"==typeof e&&e>0)?"Graph-WorkInProgress-Changes":"Graph-WorkInProgress-Clean"),type:L.bY,heads:[],remotes:[],tags:[]};this.workDirStats.context&&(r.contexts={row:this.workDirStats.context}),e.unshift(r)}else!(0,ea.dF)(this.workDirStats,this.props.wipVisibility)&&e.length>0&&(0,ea.l7)(e[0].type)&&e.shift();let g=(0,ed.xV)(this.includeOnlyRefsById),_=g&&(0,ed.D7)(this.includeOnlyRefsById,e=>e.type===e_.z.TAG),v=g&&!_,S=this.props.stashesAnchorCommits??!0,R=[],y=[],T=[],C=[];if(!S)for(let t=0;t<e.length;t+=1){let o=e[t],r=(o.heads?.length??0)>0?this.getFilteredHeadsForGraphRow(o,g):[],i=(o.remotes?.length??0)>0?this.getFilteredRemotesForGraphRow(o,g):[],n=r.length>0||i.length>0,s=(o.tags?.length??0)>0?this.getBaseFilteredTagsForGraphRow(o,_):[];R[t]=r,y[t]=i,T[t]=s,C[t]={hasBaseFilteredTags:s.length>0,hasFilteredBranches:n}}let w=S?void 0:(0,ea.ci)(e,C,v);for(let t=0;t<e.length;t+=1){let o,i,C=e[t],E=this.childrenBySha[C.sha]?.length>0;null!=this.scopeVisibility&&((0,ea.l7)(C.type)?function(e,t){if(null==t||!ep.has(e.type))return!1;let o=e.parents;if(null==o||0===o.length)return eu(e);if(eu(e)){for(let e of o)if(t.anchorShas.has(e)&&!t.mergeTargetShas.has(e))return!1;return!0}for(let e of o)if(t.visibleShas.has(e))return!1;return!0}(C,this.scopeVisibility)&&(s[C.sha]=!0):this.scopeVisibility.visibleShas.has(C.sha)||(s[C.sha]=!0));let b=this.scopeVisibility?.anchorShas.has(C.sha),I=b?C.heads??[]:S?(C.heads?.length??0)>0?this.getFilteredHeadsForGraphRow(C,g):[]:R[t],M=b?C.remotes??[]:S?(C.remotes?.length??0)>0?this.getFilteredRemotesForGraphRow(C,g):[]:y[t],O=I.length>0||M.length>0,N=b?C.tags??[]:S?(C.tags?.length??0)>0?this.getBaseFilteredTagsForGraphRow(C,_):[]:T[t],x=m[C.sha]||E,A=N.length>0&&(!v||O||x)?N:[];if(null!=this.scopeVisibility){let e=this.scopeVisibility.syntheticParentsBySha.get(C.sha);null!=e&&e.length>0?(o=e,this.syntheticEdgeChildShas.add(C.sha)):o=C.parents?.length>0?C.parents.filter(e=>this.scopeVisibility.visibleShas.has(e)):[]}else o=C.parents?.length>0?C.parents.filter(e=>!s[e]):[];let D=I.length>0||M.length>0||A.length>0,H=I.length>0||M.length>0;if(S||C.type!==L.OZ||o.some(e=>w?.has(e))||(s[C.sha]=!0),C.type!==L.oB&&C.type!==L.t$||m[C.sha]){if(C.type===L.OZ&&this.excludeByType.stashes&&(s[C.sha]=!0),!s[C.sha]&&o.length>0){let e;for(e of o)m[e]=!0}}else C.type!==L.oB&&C.type!==L.t$||m[C.sha]||D||E||(s[C.sha]=!0);let G=s[C.sha],k=G?0:null!=this.scopeVisibility?this.getColumns(C,o):this.getColumns(C);r&&(i=k,k=0);let W=new ec.Y(this,{...C,heads:I,remotes:M,tags:A,parents:o},k,void 0,void 0,void 0,void 0,i);if(null!=this.scopeVisibility&&(this.scopeVisibility.mergeTargetShas.has(C.sha)?W.scopeBoundaryKind="mergeTarget":this.scopeVisibility.forkPointShas.has(C.sha)&&(W.scopeBoundaryKind="forkPoint")),!G){let e,i=n.get(C.sha);i?.length&&(i.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}),e=i[0],W.childRefs={heads:[...e?.heads||[]],remotes:[...e?.remotes||[]],tags:[...e?.tags||[]]},n.delete(C.sha));for(let r=0;r<o.length;r+=1){let i=o[r];if(this.childrenBySha[i]||(this.childrenBySha[i]=[]),this.childrenBySha[i].push(C.sha),b)continue;let s=n.get(i);(H||e)&&void 0===s&&(s=[],n.set(i,s)),H?s?.unshift({sha:C.sha,parentIndexScore:r,rowEntered:t,heads:I,remotes:M,tags:A}):e&&s?.unshift({...e,parentIndexScore:r,rowEntered:t})}if(!r||this.highlightedShas[C.sha]){let e=this.orderedGraphRows.length;W.rowIndex=e,this.orderedGraphRows.push(W);let t=(t,o)=>{this.interactiveScrollMarkersFromRows.push({type:t,rowIndex:e,sha:W.sha,label:o})};if(I.length){c.push(e);let o=I.find(e=>e.isCurrentHead);for(let r of(null!=o&&(this.headSha=W.sha,l.push(e),t("head",o.name?`HEAD \u2192 ${o.name}`:"HEAD")),I))r.isCurrentHead||t("localBranches",r.name)}if(M.length)for(let o of(d.push(e),M)){let r=o.owner?`${o.owner}/${o.name}`:o.name;o.current?(h.push(e),this.headUpstreamSha=W.sha,t("upstream",r)):t("remoteBranches",r),this.downstreamsByUpstream[`${o.owner}/${o.name}`]?.length&&this.branchUpstreamRowIndices.push(e)}if(A.length)for(let o of(u.push(e),A))t("tags",o.name);C.type===L.OZ&&(p.push(e),t("stashes",C.message?`Stash: ${C.message}`:"Stash")),(0,ea.l7)(C.type)&&(f.push(e),t("wip","WIP"))}if(I.length)for(let e of I)this.shaByRefId[(0,ea.mH)(e_.z.HEAD,e)]=W.sha;if(M.length)for(let e of M)this.shaByRefId[(0,ea.mH)(e_.z.REMOTE,e)]=W.sha;if(A.length)for(let e of A)this.shaByRefId[(0,ea.mH)(e_.z.TAG,e)]=W.sha}this.processedGraphRowBySha[C.sha]=W,a[C.sha]=k}this.props.onColumnsCalculated?.(a);let E=this.props.onScopeAnchorsUnreachable,b=this.scopeVisibility?.unreachableAnchors;if(null!=E&&null!=b&&b.size>0){let e=this._lastReportedUnreachable,t=e?.size!==b.size;if(!t&&null!=e){for(let o of b)if(!e.has(o)){t=!0;break}}t&&(this._lastReportedUnreachable=new Set(b),E(b))}else null!=this._lastReportedUnreachable&&(null==b||0===b.size)&&(this._lastReportedUnreachable=null);this.isMounted?this.setState(e=>({markerRowIndices:{...e.markerRowIndices,head:l,upstream:h,localBranches:c,remoteBranches:d,tags:u,stashes:p,wip:f},interactiveScrollMarkers:this.computeInteractiveScrollMarkers()})):this.state={...this.state,markerRowIndices:{...this.state?.markerRowIndices,head:l,upstream:h,localBranches:c,remoteBranches:d,tags:u,stashes:p,wip:f},interactiveScrollMarkers:this.computeInteractiveScrollMarkers()},this.clearTimelinesInterval(),this.updateTimelines(),this.timelinesInterval=setInterval(this.onTimelinesRefreshInterval,9e5),this.onGraphVisibleRowsUpdated()}updateRowStatsConstraints(){this.rowStatsConstraints=(0,ea.S6)(null!=this.rowsStats?Object.values(this.rowsStats).map(e=>e.additions+e.deletions):[])}updateTimelines(){let e=(0,ea.ug)();(0,ea.Vs)(this.orderedGraphRows,e)}clearTimelines(){for(let e of Object.values(this.processedGraphRowBySha))e.timeLineEntry=void 0}clearTimelinesInterval(){this.timelinesInterval&&(clearInterval(this.timelinesInterval),this.timelinesInterval=void 0)}onTimelinesRefreshInterval=()=>{this.isMounted&&(this.clearTimelines(),this.updateTimelines(),this.setState({processedRows:[...this.orderedGraphRows]}))};cleanupSelections(){for(let e of this.selectedShas)this.processedGraphRowBySha[e]||(this.selectedShas.delete(e),this.selectionFocusSha===e&&(this.selectionFocusSha=void 0));this.selectionAnchorSha&&!this.processedGraphRowBySha[this.selectionAnchorSha]&&(this.selectionAnchorSha=void 0)}getColumnColorByColumn(e){let t=this.getNumGraphColumns(e),o=this.maxColumns>t?this.maxColumns:t,r={};for(let n=0;n<=o;n+=1)if(n<t){var i;let t=e[(0,P.$6)(n)];r[n]="rgba"===(i=z(t)).type?`rgba(${i.r}, ${i.g}, ${i.b}, ${Number(i.a.toFixed(2))})`:`hsla(${i.h}, ${(100*i.s).toFixed(2)}%, ${(100*i.l).toFixed(2)}%, ${Number(i.a.toFixed(2))})`}else{let e=r[n%t];r[n]=e}return r}getNumGraphColumns(e){let t=Number.parseInt(e[F.u],V.Dl);return Number.isNaN(t)?V.Dl:t}expandLastZoneMinWidthForScrollbar(e){let t=e[e.length-1]?.type;if(!t)return;let o=(0,ea.eQ)(this.props.cssVariables,!0),r=V.W[t].minimumWidth+o,i=this.graphZonesByType[t];if(!i||null!=i.maximumWidth&&r>i.maximumWidth)return;i.minimumWidth=r;let n=V.W[t].showIconWidth;null!=n&&(i.showIconWidth=n+o),i.currentWidth<i.minimumWidth&&(i.currentWidth=i.minimumWidth),i.preferredWidth<i.minimumWidth&&(i.preferredWidth=i.minimumWidth)}ensureZoneWidthsMatchGraphWidth(e,t){let o=(0,ea.al)(e);o>t&&this.shrinkZoneWidthsToFitWidth(e,t),o<t&&this.expandZoneWidthsToFitWidth(e,t)}shrinkZoneWidthsToFitWidth(e,t,o){let r=(0,ea.al)(e);for(;r>t;){let i=(0,ea.Q9)(e,o);if(!i)break;let n=(0,ea.al)(e,i.type);if(n+i.currentWidth>t){let o=(0,ea.jY)(i,e,t-n);this.updateWidthByZone(o,i.type)}r=(0,ea.al)(e)}}getOrderedActiveGraphZones(){return this.graphZoneOrdering.sort((e,t)=>this.graphZonesByType[e].order-this.graphZonesByType[t].order).filter(e=>!this.graphZonesByType[e].isHidden).map(e=>this.graphZonesByType[e])}expandZoneWidthsToFitWidth(e,t,o){let r=(0,ea.al)(e);for(;r<t;){let i=(0,ea.fW)(e,o);if(!i)break;let n=(0,ea.al)(e,i.type),s=i.maximumWidth?Math.min(i.maximumWidth,i.preferredWidth||1/0):i.preferredWidth||0;if(n+i.currentWidth<t){let o=t-n;!(0,ea.z)(i.type,e)&&o>s&&(o=s),o=(0,ea.jY)(i,e,o),this.updateWidthByZone(o,i.type)}r=(0,ea.al)(e)}}onGraphHeaderRowMouseDown=e=>{1===e.button&&e.preventDefault()};onToggleRefNodesShown=(e,t,o,r)=>{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?.(e,t,o,r?this.processedGraphRowBySha[r]:void 0),this.processRows(this.props.graphRows),this.setState({processedRows:[...this.orderedGraphRows]})};cleanEdgeCaches(){eO={},eM={},eI={},eb={},Q={}}onZoneEnter=(e,t,o,r)=>{t!==V.ui&&(o&&r&&this.onRefNodeUnhovered(e,o,r),this.onRefZoneUnhovered())};adjustResizedGraphZone(e,t,o,r){if(o?.width){let i=t.currentWidth;this.updateWidthByZone(o.width,t.type,r);let n=(0,ea.kU)(t.type,e),s=this.graphZonesByType[t.type];i>s.currentWidth&&this.expandZoneWidthsToFitWidth(e,this.graphWidth,n+1),i<s.currentWidth&&this.shrinkZoneWidthsToFitWidth(e,this.graphWidth,n-1)}}dimRowsOfSelectedCommit(e){this.state.dimRowsOfSelectedCommit!==e&&this.setState({dimRowsOfSelectedCommit:e})}onGraphContainerBlurred=(e,t,o)=>{setTimeout(()=>{this.isMounted&&(t&&o&&this.onRefNodeUnhovered(e,t,o),this.onRefZoneUnhovered())},250)};onGraphContainerMouseEnter=e=>{this.props.onGraphMouseEnter?.(e)};onGraphContainerMouseLeave=e=>{let t=e.relatedTarget;if(t instanceof HTMLElement&&t.closest(".ref-popover"))return void this.props.onGraphMouseLeave?.(e);let{currentlyHoveredCommitSha:o}=this.state;if(null!=o){let t=this.processedGraphRowBySha[o];null!=t&&this.props.onGraphRowUnhovered?.(e,V.md,t),this.setState({currentlyHoveredCommitSha:void 0})}this.props.onGraphMouseLeave?.(e)};_headerHoverRestoreTimer;onGraphHeaderMouseDown=()=>{let{currentlyHoveredCommitSha:e}=this.state;if(null!=e){if(this.props.onGraphRowUnhovered){let t=this.processedGraphRowBySha[e];null!=t&&this.props.onGraphRowUnhovered({nativeEvent:{relatedTarget:null},relatedTarget:null},V.md,t)}this.setState({currentlyHoveredCommitSha:void 0})}};onGraphHeaderMouseUp=e=>{this.hoverRowForHeaderEvent(e.clientX,e.clientY,e.target)};onGraphHeaderWheel=e=>{let{currentlyHoveredCommitSha:t}=this.state;if(null!=t){if(this.props.onGraphRowUnhovered){let e=this.processedGraphRowBySha[t];null!=e&&this.props.onGraphRowUnhovered({nativeEvent:{relatedTarget:null},relatedTarget:null},V.md,e)}this.setState({currentlyHoveredCommitSha:void 0})}let o=this.orderedGraphRows?.length??0;if(!o)return;let{hasMoreCommits:r,scrollLeft:i,scrollTop:n}=this.state,s=this.graphWidth||this.state.width||0,a=(this.graphHeight||this.state.height||0)-V.q4;if(s<=0||a<=0)return;let l=o*V.yB,h=Math.max(0,l-a),c=n+e.deltaY;if((c=(0,ev.q)(c,0,h))===n)return;let d={clientHeight:a,clientWidth:s,scrollHeight:l,scrollLeft:i,scrollTop:c,scrollWidth:s},u=this.getOrderedActiveGraphZones(),p=u.length>0?u[u.length-1].type:V.md;this.onScrollForZone(p,d,s,a,r);let f=e.target;if(f){this._headerHoverRestoreTimer&&clearTimeout(this._headerHoverRestoreTimer);let t=e.clientX,o=e.clientY;this._headerHoverRestoreTimer=setTimeout(()=>{this._headerHoverRestoreTimer=void 0,this.hoverRowForHeaderEvent(t,o,f)},200)}e.preventDefault()};onGraphHeaderMouseMove=e=>{0===e.buttons&&this.hoverRowForHeaderEvent(e.clientX,e.clientY,e.target)};hoverRowForHeaderEvent(e,t,o){if(!(o instanceof HTMLElement))return;let r=o.closest(".resizable-handle.horizontal");if(null==r||r.closest(`#${V.ui}-header`))return;let i=this.graphContainerRef?.current;if(null==i)return;let n=this.orderedGraphRows?.length??0;if(!n)return;let s=i.getBoundingClientRect(),a=t-s.top;if(a<0)return;let l=this.state.scrollTop??0,{currentlyHoveredCommitSha:h}=this.state,c=Math.floor((a+l)/V.yB);if(c<0||c>=n)return;let d=this.orderedGraphRows[c];if(!d)return;let u=s.top+c*V.yB-l,p=V.yB,f={getBoundingClientRect:()=>({top:u,left:e,right:e+60,bottom:u+p,x:e,y:u,width:60,height:p})};this.onCurrentlyHoveredGraphCommit({clientX:e,currentTarget:f,nativeEvent:{clientX:e,currentTarget:f,target:f}},V.md,d.sha,h)}onGraphResized=(0,ea.xJ)((e,t)=>{if(!this.isMounted)return;let o=Math.floor(t),r=Math.floor(e);if(0===r||0===o)return;let i=o!==this.graphHeight,n=r!==this.graphWidth,s={};if(i&&(this.graphHeight=o,s.height=o),n){this.graphWidth=r;let e=this.getOrderedActiveGraphZones();this.ensureZoneWidthsMatchGraphWidth(e,this.graphWidth),s.width=this.graphWidth,s.graphZones=e}(i||n)&&(this.setState(s),i&&this.onGraphVisibleRowsUpdatedThrottled(),this.props.onGraphResized&&this.props.onGraphResized(this.graphWidth,this.graphHeight))});onGraphVisibleRowsUpdated(){if(this.scheduleVisibleWipShasUpdate(),!this.isMounted||!this.props.onGraphVisibleRowsChanged||!this.orderedGraphRows?.length)return;let{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()}isFilteredSearch(){return"filter"===this.searchMode&&(0,ed.Hk)(this.highlightedShas)}getGraphColumnSettingFromZoneType(e){return{width:e.preferredWidth||0,isHidden:e.isHidden,mode:e.mode,order:e.order}}decorateWithHelmet=(e,t,o)=>{let r=(0,P.JQ)(t);return A.createElement(A.Fragment,null,A.createElement("style",{nonce:o},r),A.createElement("div",{className:"gk-graph"},e))};render(){let{columnsSettings:e,customFooterRow:t,isInUnsupportedRebase:o,isCommitting:r,repoPath:i,nonce:n,pinnedBranchFullName:s,rowAdornmentProvider:a,suppressNonRefRowTooltips:l,wipMessageEditable:h}=this.props,{avatarUrlByEmail:c,columnColorByColumn:d,contexts:u,createRefFormData:p,cssVariablesWithDefaults:f,currentlyHoveredCommitSha:m,dimMergeCommits:g,dimRowsOfSelectedCommit:_,enableShowHideRefsOptions:v,highlightRowsOnRefHover:S,showGhostRefsOnRowHover:R,showRemoteNamesOnRefs:y,enabledRefMetadataTypes:T,enabledScrollMarkerTypes:C,graphCommitDescDisplayMode:w,graphZones:E,hasMoreCommits:b,height:I,highlightedShas:M,hoveredRefGroup:O,hoveredRefZoneSha:N,themeOpacityFactor:D,isLoadingRows:H,rowsStatsLoading:G,numGraphColumns:k,pendingCommitMessageSummary:W,processedRows:z,refIconsPosition:F,refMetadataById:P,useAuthorInitialsForAvatars:B,scrollToAlignment:Z,scrollToIndex:U,scrollTop:j,scrollLeft:$,shaLength:Y,width:q,workDirStats:Q}=this.state,J=x()("flex","graph-container"),ee=(0,ea.xd)(z),et=this.getOrCreateSmartCellRangeRenderer($,this.isKeyboardNavigating),eo=this.getLeftGutterWidth(),er=this.getRightGutterWidth(),ei=this.getRightGutterBoxShadowAlpha(D),en=this.getLeftGutterBoxShadowAlpha(D),es=this.getNodeOffsetByColumn(),el=this.getNodeOpacityByColumn(),eh=(0,ea.kU)(V.ui,E),ec=(0,ea.kU)(V.md,E),eu=!O,ep={alwaysShowTimelines:this.isFilteredSearch(),avatarUrlByEmail:c,createRefFormData:p??void 0,dimMergeCommits:g,dimRowsOfSelectedCommit:_,enableShowHideRefsOptions:v,highlightRowsOnRefHover:S,showGhostRefsOnRowHover:R,showRemoteNamesOnRefs:y,enabledRefMetadataTypes:T,enabledScrollMarkerTypes:C,isInUnsupportedRebase:o||!1,isCommitting:r||!1,pendingCommitMessageSummary:W,workDirStats:Q,wipNodeMetadataBySha:this.props.wipNodeMetadataBySha,repoPath:i,columnColorByColumn:d,currentlyHoveredCommitSha:m,cssVariables:f,graphCommitDescDisplayMode:w,graphZoneModeConstants:this.graphZoneModeConstants,graphZones:E,hasMoreCommits:b,height:I,highlightedShas:M,hoveredRefGroup:O,hoveredRefZoneSha:N,includeOnlyRefsById:this.includeOnlyRefsById,includeOnlyRemotesByName:this.includeOnlyRemotesByName,isLoadingRows:H,selectedShas:this.selectedShas,leftGutterBoxShadowAlpha:en,leftGutterWidth:eo,nodeOffsetByColumn:es,nodeOpacityByColumn:el,nonce:n,numGraphColumns:k,pinnedBranchFullName:s,processedRows:z,processedGraphRowBySha:this.processedGraphRowBySha,refIconsPosition:F,refMetadataById:P,fallbackRefMetadataById:this.previousRefMetadataById,rightGutterBoxShadowAlpha:ei,rightGutterWidth:er,rowStatsConstraints:this.rowStatsConstraints,rowsStats:this.rowsStats,suppressNonRefRowTooltips:l,useAuthorInitialsForAvatars:B,scrollToAlignment:Z,scrollLeft:$,scrollTop:j,shaLength:Y,shouldShowRefLine:-1!==eh&&-1!==ec&&ec-eh==1,width:q,wipMessageEditable:h||!1,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,onRefBeginDrag:this.onRefBeginDrag,onRefCanDrag:this.onRefCanDrag,onRefCanDrop:this.onRefCanDrop,onRefCreate:this.onRefCreate,onRefCreateCancel:this.onRefCreateCancel,onRefCreateContextMenu:this.onRefCreateContextMenu,onRefDragEnter:this.onRefDragEnter,onRefDragLeave:this.onRefDragLeave,onRefDrop:this.onRefDrop,onRefEndDrag:this.onRefEndDrag,onRefNodeHovered:this.onRefNodeHovered,onRefNodeUnhovered:this.onRefNodeUnhovered,onRefShorthandChange:this.onRefShorthandChange,onRefZoneHovered:this.onRefZoneHovered,onRefZoneUnhovered:this.onRefZoneUnhovered,onToggleRefNodesShown:this.onToggleRefNodesShown,onCommitContextMenu:this.onCommitContextMenu,onShowContextMenuForGroupedRef:this.onRefContextMenu,getExternalIcon:this.getIconCallback,formatCommitDateTime:this.formatCommitDateTimeCallback,formatRefShorthand:this.formatRefShorthandCallback,isRefShorthandValid:this.isRefShorthandValidCallback,translate:this.translateCallback},ef={[V.ui]:((e,t)=>{let{createRefFormData:o,formatRefShorthand:r,enableShowHideRefsOptions:i,enabledRefMetadataTypes:n,isRefShorthandValid:s,showGhostRefsOnRowHover:a,showRemoteNamesOnRefs:l,onDoubleClickRef:h,processedRows:c,includeOnlyRefsById:d,includeOnlyRemotesByName:u,isInUnsupportedRebase:p,getExternalIcon:f,hoveredRefGroup:m,hoveredRefZoneSha:g,numGraphColumns:_,onClickRef:v,onMissingRefMetadata:S,onShowContextMenuForGroupedRef:R,onRefBeginDrag:y,onRefCanDrag:T,onRefCanDrop:C,onRefCreate:w,onRefCreateCancel:E,onRefCreateContextMenu:b,onRefDragEnter:I,onRefDragLeave:M,onRefDrop:O,onRefEndDrag:N,onRefNodeHovered:x,onRefNodeUnhovered:D,onRefShorthandChange:H,onRefZoneHovered:G,onRefZoneUnhovered:k,onToggleRefNodesShown:W,pinnedBranchFullName:z,refIconsPosition:L,refMetadataById:F,fallbackRefMetadataById:P,shouldShowRefLine:B,translate:Z,clearCurrentlyHoveredGraphCommit:U,currentlyHoveredCommitSha:j}=e,$=new ea.n$(e);return({rowIndex:e,style:Y})=>{let K=t(e),q=c[e],X=V.ui,Q=$.getZoneWidth(X),J=$.isHovering(e),{sha:ee,type:et,hasRefs:eo,contexts:er}=q,ei=er?.ref||null,en=er?.refGroups||null,es=$.isSingleSelected(e),ea=(a||eo)&&(eo||J||es)?$.getGraphRefGroupsByNameForRow(e):[],el=$.isColumnFollowingGraphColumn(X),eh=$.shouldUseColumnHeaderIcons(X);return o?.sha===ee?A.createElement(n5,{createRefFormData:o,formatRefShorthand:r,isRefShorthandValid:s,key:K,onCancel:E,onContextMenu:b,onRefCreate:w,onRefShorthandChange:H,refZoneWidth:Q,style:Y,translate:Z}):A.createElement(n7,{clearCurrentlyHoveredGraphCommit:U,column:q.column,columnForColoring:q.columnForColoring,context:ei,currentlyHoveredCommitSha:j??null,enabledRefMetadataTypes:n,enableShowHideRefsOptions:i,fallbackRefMetadata:P,getExternalIcon:f,hasActive:$.rowContainsCurrentHeadRef(q),hasRefs:eo||!1,hasTimeline:$.hasTimeline(e),hoveredRefGroup:m??null,hoveredRefZoneSha:g,includeOnlyRefsById:d,includeOnlyRemotesByName:u,isInUnsupportedRebase:p,isSingleSelected:es,key:K,numGraphColumns:_,onClickRef:v,onDoubleClickRef:h,onMissingRefMetadata:S,onRefBeginDrag:y,onRefCanDrag:T,onRefCanDrop:C,onRefDragEnter:I,onRefDragLeave:M,onRefDrop:O,onRefEndDrag:N,onToggleRefNodesShown:W,pinnedBranchFullName:z,refGroupContexts:en,refGroupsByName:ea,refIconsPosition:L,refMetadata:F,refNodeHovered:x,refNodeUnhovered:D,refZoneHovered:G,refZoneUnhovered:k,scopeBoundaryKind:q.scopeBoundaryKind,sha:ee,shouldShowRefLine:B,showColorStrip:el,showContextMenuForGroupedRef:R,showGhostRefsOnRowHover:a,showRemoteNamesOnRefs:l,style:Y,translate:Z,type:et,useColumnHeaderIcons:eh,width:Q})}})(ep,ee),[V.md]:n1(ep,ee),[V.d4]:((e,t)=>{let{dimMergeCommits:o,dimRowsOfSelectedCommit:r,processedRows:i,translate:n,getExternalIcon:s,graphCommitDescDisplayMode:a,highlightRowsOnRefHover:l,isInUnsupportedRebase:h,numGraphColumns:c,isCommitting:d,pendingCommitMessageSummary:u,workDirStats:p,wipNodeMetadataBySha:f,onBlurWipNodeInput:m,onFocusWipNodeInput:g,onMessageChange:_,clearCurrentlyHoveredGraphCommit:v,currentlyHoveredCommitSha:S,onCommitContextMenu:R,onClickCommit:y,onDoubleClickCommit:T,setAsCurrentlyHoveredGraphCommit:C,suppressNonRefRowTooltips:w,wipMessageEditable:E}=e,b=new ea.n$(e);return({rowIndex:e,style:I})=>{let M,O,N,x,D,H,G=t(e),k=i[e],{displaySummary:W,displayBody:z,sha:F,type:P,contexts:B,message:Z}=k,U=B?.message||void 0,j=B?.row||void 0,$=V.d4,Y=b.isColumnFollowingGraphColumn($),K=b.isLastColumn($),q=b.getZoneWidth($),X=b.getVerticalScrollWidth($),Q=b.isHovering(e),{effectiveWorkDirStats:J,hasWorkDirChanges:ee,isWipEditable:et,customWipContent:eo}=(O=(M=F===L.bY)?void 0:f?.[F],N=M?p:O?.workDirStats,x=P===L.bY&&(0,ed.xV)(N),D=O?.customContent??null,H=!M&&P===L.bY&&null==D&&(O?.workDirStats===void 0||O?.workDirStatsStale===!0),{isPrimaryWip:M,effectiveWorkDirStats:N,hasWorkDirChanges:x,isWipEditable:M&&E,customWipContent:D,needsWipStatsRequest:H}),er=et||eo||!J?null:A.createElement(nP,{getExternalIcon:s,translate:n,workDirStats:J}),ei=a===V.FQ.ALWAYS||a===V.FQ.ON_HOVER&&Q,en=P!==L.bY||et?A.createElement(A.Fragment,null,A.createElement("span",{className:"message-zone--summary"},W),ei&&z?A.createElement("span",{className:"message-zone--body"},z):null):A.createElement("span",{className:"message-zone--wip-row"},A.createElement("span",{className:"message-zone--wip-text"},ei?W:null),eo??er);return ee&&et?A.createElement(nB,{clearCurrentlyHoveredGraphCommit:v,currentlyHoveredCommitSha:S??null,getExternalIcon:s,graphZoneType:$,isCommitting:d,isHovering:b.isHovering(e),isSelected:b.isSelected(e),key:G,onBlur:m,onClickCommit:y,onContextMenu:R,onFocus:g,onMessageChange:_,setAsCurrentlyHoveredGraphCommit:C,sha:F,style:I,translate:n,value:u,workDirStats:p}):A.createElement(nN,{clearCurrentlyHoveredGraphCommit:v,column:k.column,columnForColoring:k.columnForColoring,context:U,currentlyHoveredCommitSha:S??null,dimRowsOfSelectedCommit:r,getExternalIcon:s,graphZoneType:$,hasActive:b.rowIsActiveHead(k),highlightRowsOnRefHover:l,isDimmedMergeCommitRow:P===L.t$&&o,isHighlighted:b.isHighlighted(e),isHovering:Q,isInUnsupportedRebase:h,isLastColumn:K,isMissingHoveredRefGroup:b.isMissingHoveredRefGroup(e),isSelected:b.isSelected(e),key:G,numGraphColumns:c,onClickCommit:y,onContextMenu:R,onDoubleClickCommit:T,rowContext:j,scopeBoundaryKind:k.scopeBoundaryKind,setAsCurrentlyHoveredGraphCommit:C,sha:F,showColorStrip:Y,showConflictIcon:P===L.l2||P===L.gL,showTimeline:b.hasTimeline(e),style:I,title:w?void 0:Z,type:P,verticalScrollWidth:X,zoneWidth:q},en)}})(ep,ee),[V.fx]:((e,t)=>{let{avatarUrlByEmail:o,clearCurrentlyHoveredGraphCommit:r,cssVariables:i,currentlyHoveredCommitSha:n,dimMergeCommits:s,dimRowsOfSelectedCommit:a,getExternalIcon:l,highlightRowsOnRefHover:h,processedRows:c,isInUnsupportedRebase:d,onCommitContextMenu:u,onClickCommit:p,onDoubleClickCommit:f,numGraphColumns:m,setAsCurrentlyHoveredGraphCommit:g,suppressNonRefRowTooltips:_,useAuthorInitialsForAvatars:v}=e,S=new ea.n$(e);return({rowIndex:e,style:R})=>{let y=t(e),T=c[e],{author:C,email:w,message:E,sha:b,type:I,contexts:M}=T,O=V.fx,N=S.getActiveGraphZone(O),D=I!==L.bY?C:null,H=I!==L.bY?nA(C,w):void 0,G=M?.author||void 0,k=M?.row||void 0,W=S.isColumnFollowingGraphColumn(O),z=S.isLastColumn(O),F=S.getZoneWidth(O),P=(F<=N.minimumWidth||N?.mode===V.eB.Rich)&&I!==L.bY;if(P){let e=v?void 0:o[w];D=A.createElement(nD,{authorInitials:nx(C),avatarUrl:e,className:x()("node",L.oB,"z6"),column:T.column,context:M?.avatar||void 0,cssVariables:i,fontSize:10,height:V.n0,size:V.CF,tooltip:_?void 0:()=>{let e=C&&""!==C.trim()&&"Unknown"!==C?nA(C,w):w,t=X(K(E||"")),o="";if(0===t.length)o=e;else{t.unshift({email:w,name:C});for(let e=0;e<t.length;e+=1){let r=t[e];o+=nA(r.name,r.email),e<t.length-1&&(o+=", ")}}return o},useAuthorInitialsForAvatars:v,width:V.n0})}return A.createElement(nN,{clearCurrentlyHoveredGraphCommit:r,column:T.column,columnForColoring:T.columnForColoring,context:G,currentlyHoveredCommitSha:n??null,dimRowsOfSelectedCommit:a,getExternalIcon:l,graphZoneType:O,hasAvatars:P,highlightRowsOnRefHover:h,isDimmedMergeCommitRow:I===L.t$&&s,isHighlighted:S.isHighlighted(e),isHovering:S.isHovering(e),isInUnsupportedRebase:d,isLastColumn:z,isMissingHoveredRefGroup:S.isMissingHoveredRefGroup(e),isSelected:S.isSelected(e),key:y,numGraphColumns:m,onClickCommit:p,onContextMenu:u,onDoubleClickCommit:f,rowContext:k,scopeBoundaryKind:T.scopeBoundaryKind,setAsCurrentlyHoveredGraphCommit:g,sha:b,showColorStrip:W,showTimeline:S.hasTimeline(e),style:R,title:_?void 0:H,type:I,verticalScrollWidth:S.getVerticalScrollWidth(O),zoneWidth:F},D)}})(ep,ee),[V.$A]:((e,t)=>{let{processedRows:o,getExternalIcon:r,highlightRowsOnRefHover:i,isInUnsupportedRebase:n,numGraphColumns:s,formatCommitDateTime:a,clearCurrentlyHoveredGraphCommit:l,dimMergeCommits:h,dimRowsOfSelectedCommit:c,currentlyHoveredCommitSha:d,onCommitContextMenu:u,onClickCommit:p,onDoubleClickCommit:f,setAsCurrentlyHoveredGraphCommit:m,suppressNonRefRowTooltips:g}=e,_=new ea.n$(e);return({rowIndex:e,style:v})=>{let S=t(e),R=o[e],{date:y,sha:T,type:C,contexts:w}=R,E=y&&C!==L.bY?a(y,L.N.RowEntry):null,b=y&&C!==L.bY?a(y,L.N.Tooltip):void 0,I=w?.date||void 0,M=w?.row||void 0,O=V.$A,N=_.isColumnFollowingGraphColumn(O),x=_.isLastColumn(O),D=_.getZoneWidth(O),H=_.getVerticalScrollWidth(O);return A.createElement(nN,{clearCurrentlyHoveredGraphCommit:l,column:R.column,columnForColoring:R.columnForColoring,context:I,currentlyHoveredCommitSha:d??null,dimRowsOfSelectedCommit:c,getExternalIcon:r,graphZoneType:O,highlightRowsOnRefHover:i,isDimmedMergeCommitRow:C===L.t$&&h,isHighlighted:_.isHighlighted(e),isHovering:_.isHovering(e),isInUnsupportedRebase:n,isLastColumn:x,isMissingHoveredRefGroup:_.isMissingHoveredRefGroup(e),isSelected:_.isSelected(e),key:S,numGraphColumns:s,onClickCommit:p,onContextMenu:u,onDoubleClickCommit:f,rowContext:M,scopeBoundaryKind:R.scopeBoundaryKind,setAsCurrentlyHoveredGraphCommit:m,sha:T,showColorStrip:N,showTimeline:!1,style:v,title:g?void 0:b,type:C,verticalScrollWidth:H,zoneWidth:D},E)}})(ep,ee),[V.AR]:((e,t)=>{let{processedRows:o,getExternalIcon:r,highlightRowsOnRefHover:i,isInUnsupportedRebase:n,numGraphColumns:s,clearCurrentlyHoveredGraphCommit:a,currentlyHoveredCommitSha:l,dimMergeCommits:h,dimRowsOfSelectedCommit:c,onCommitContextMenu:d,onClickCommit:u,onDoubleClickCommit:p,setAsCurrentlyHoveredGraphCommit:f,shaLength:m,suppressNonRefRowTooltips:g}=e,_=new ea.n$(e);return({rowIndex:e,style:v})=>{let S=t(e),R=o[e],{sha:y,type:T,contexts:C}=R,w=((e,t=V.wT)=>e?e.substring(0,t):"")(y,m??void 0),E=C?.sha||void 0,b=C?.row||void 0,I=V.AR,M=_.isColumnFollowingGraphColumn(I),O=_.isLastColumn(I),N=_.getZoneWidth(I),x=_.getVerticalScrollWidth(I);return A.createElement(nN,{clearCurrentlyHoveredGraphCommit:a,column:R.column,columnForColoring:R.columnForColoring,context:E,currentlyHoveredCommitSha:l??null,dimRowsOfSelectedCommit:c,getExternalIcon:r,graphZoneType:I,highlightRowsOnRefHover:i,isDimmedMergeCommitRow:T===L.t$&&h,isHighlighted:_.isHighlighted(e),isHovering:_.isHovering(e),isInUnsupportedRebase:n,isLastColumn:O,isMissingHoveredRefGroup:_.isMissingHoveredRefGroup(e),isSelected:_.isSelected(e),key:S,numGraphColumns:s,onClickCommit:u,onContextMenu:d,onDoubleClickCommit:p,rowContext:b,scopeBoundaryKind:R.scopeBoundaryKind,setAsCurrentlyHoveredGraphCommit:f,sha:y,showColorStrip:M,showTimeline:_.hasTimeline(e),style:v,type:T,verticalScrollWidth:x,zoneWidth:N},T!==L.bY?A.createElement("span",{className:"font-monospace pointer",title:g?void 0:w},w):null)}})(ep,ee),[V.Sq]:((e,t)=>{let{processedRows:o,rowStatsConstraints:r,getExternalIcon:i,highlightRowsOnRefHover:n,isInUnsupportedRebase:s,numGraphColumns:a,clearCurrentlyHoveredGraphCommit:l,currentlyHoveredCommitSha:h,dimMergeCommits:c,dimRowsOfSelectedCommit:d,onCommitContextMenu:u,onClickCommit:p,onDoubleClickCommit:f,rowsStats:m,setAsCurrentlyHoveredGraphCommit:g,suppressNonRefRowTooltips:_}=e,v=new ea.n$(e);return({rowIndex:e,style:S})=>{let R=t(e),y=o[e],{sha:T,type:C,contexts:w}=y,E=w?.stats||void 0,b=w?.row||void 0,I=m?.[T],M=[I?.files?`${I.files} files changed`:"",I?.additions?`${I.additions} lines added`:"",I?.deletions?`${I.deletions} lines deleted`:""].filter(Boolean).join(", ");M=C!==L.bY?M:"";let O=V.Sq,N=v.isColumnFollowingGraphColumn(O),x=v.isLastColumn(O),D=v.getZoneWidth(O),H=v.getVerticalScrollWidth(O);return A.createElement(nN,{clearCurrentlyHoveredGraphCommit:l,column:y.column,columnForColoring:y.columnForColoring,context:E,currentlyHoveredCommitSha:h??null,dimRowsOfSelectedCommit:d,getExternalIcon:i,graphZoneType:O,highlightRowsOnRefHover:n,isDimmedMergeCommitRow:C===L.t$&&c,isHighlighted:v.isHighlighted(e),isHovering:v.isHovering(e),isInUnsupportedRebase:s,isLastColumn:x,isMissingHoveredRefGroup:v.isMissingHoveredRefGroup(e),isSelected:v.isSelected(e),key:R,numGraphColumns:a,onClickCommit:p,onContextMenu:u,onDoubleClickCommit:f,rowContext:b,scopeBoundaryKind:y.scopeBoundaryKind,setAsCurrentlyHoveredGraphCommit:g,sha:T,showColorStrip:N,showTimeline:v.hasTimeline(e),style:S,title:_?void 0:M,type:C,verticalScrollWidth:H,zoneWidth:D},I&&C!==L.bY?A.createElement(nb,{constraints:r,getExternalIcon:i,isLastColumn:x,isRowSelected:v.isSelected(e),stats:I,verticalScrollWidth:H,zoneWidth:D}):null)}})(ep,ee),[V.OU]:((e,t)=>{let{translate:o,processedRows:r}=e,i=x()("graph-row-wrapper","grow-3","height-100","graph-zone-column","min-width-0","pb3","pointer","pt3","relative"),n=new ea.n$(e);return({rowIndex:e,style:s})=>{let a=t(e),l=x()("graph-row","height-100-percent","flex"),h=n.hasTimeline(e),c=r[e],d=c.contexts?.row||void 0,u=c.timeLineEntry?.label||"",p=c.timeLineEntry?.value||0,f=h?A.createElement(ox,null):null,m=h?A.createElement(oA,{message:o(u,p)}):null;return A.createElement("div",{className:i,"data-vscode-context":(0,ea.DO)(d),key:a,style:s},f,A.createElement("div",{className:l,"data-vscode-context":(0,ea.DO)(d)},m))}})(ep,ee)},em=E.map((e,o)=>{let r=0===o;return A.createElement(oV,{branchUpstreamRowIndices:this.branchUpstreamRowIndices,cellRenderersByIds:ef,columnIndex:o,customFooterRow:t,enabledScrollMarkerTypes:C,enableResizer:eu,getExternalIcon:this.getIconCallback,getKeyForCell:ee,graphHeight:I-V.q4,graphWidth:q,graphZones:E,graphZoneType:e.type,hasMoreCommits:b,horizontalScrollHeight:this.getHorizontalScrollHeight(e.type,f),interactiveScrollMarkers:this.state.interactiveScrollMarkers,isFilteredSearch:this.isFilteredSearch(),isLoadingRows:H,key:`${e.type}ColumnContainer`,markerColors:this.getMarkerColors(),markerRowIndices:this.state.markerRowIndices,onResize:this.onGraphZoneResize,onResizeEnd:this.onGraphZoneResizeEnd,onScroll:this.onScrollForZone,onScrollMarkerClicked:this.onScrollMarkerClicked,onScrollToRowCausedUpdate:r?this.onScrollToRowCausedUpdateForFirstColumn:void 0,onZoneEnter:t=>this.onZoneEnter(t,e.type,O,N),processedRows:z,rowCount:z.length,scrollLeft:$,scrollToAlignment:r?Z:void 0,scrollToIndex:r?U:void 0,scrollTop:j,smartCellRangeRenderer:et,stickyTimeline:this.props.stickyTimeline,translate:this.translateCallback,verticalScrollWidth:this.getVerticalScrollWidth(e.type,f)})}),eg=this.graphComponentRef?.current&&A.createElement(nS,{columnsSettings:e,dragAppendToContainer:this.graphComponentRef?.current,enableResizer:eu,enableShowHideRefsOptions:v,excludeRefsById:this.excludeRefsById,getExternalIcon:this.getIconCallback,graphZones:E,headerContext:u?.header,height:I,includeOnlyRefsById:this.includeOnlyRefsById,onColumnReOrdered:this.onGraphColumnReOrdered,onFilterColumnClick:this.onFilterColumnClick,onGraphZoneResize:this.onGraphZoneResize,onGraphZoneResizeEnd:this.onGraphZoneResizeEnd,onMouseDownCapture:this.onGraphHeaderMouseDown,onMouseMoveCapture:this.onGraphHeaderMouseMove,onMouseUpCapture:this.onGraphHeaderMouseUp,onPopupGraphHeaderContextMenu:this.onPopupGraphHeaderContextMenu,onSettingsClick:this.onSettingsClick,onToggleRefNodesShown:this.onToggleRefNodesShown,onWheel:this.onGraphHeaderWheel,repoPath:i,rowsStatsLoading:G,settingsContext:u?.settings,showRemoteNamesOnRefs:y,translate:this.translateCallback,width:q}),e_=this.getHeadPillDirection(),ev=null!=this.headSha?this.processedGraphRowBySha[this.headSha]:void 0,eS=ev?.columnForColoring??ev?.column,eR=null!=eS?d[eS]:void 0,ey=A.createElement("div",{className:"graph-component","data-vscode-context":(0,ea.DO)(u?.graph),onBlur:e=>this.onGraphContainerBlurred(e,O,N),onMouseEnter:this.onGraphContainerMouseEnter,onMouseLeave:this.onGraphContainerMouseLeave,ref:this.graphComponentRef,style:{height:"100%",width:"100%",position:"absolute"},tabIndex:-1},eg,A.createElement("div",{className:(0,ed.xV)(M)?x()(J,"graph-highlighted"):J,id:"graph-container",onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,onMouseDown:this.onGraphHeaderRowMouseDown,ref:this.graphContainerRef,style:{height:I,width:q},tabIndex:-1},em,a&&A.createElement(nE,{allRows:z,getVisibleRows:this.getVisibleRows,hasVerticalScrollbar:E.length>0&&this.getVerticalScrollWidth(E[E.length-1].type,f)>0,hoveredSha:m,provider:a,selectedShas:this.selectedShas})),null!=e_&&A.createElement("button",{"aria-label":"Scroll to HEAD",className:`graph-head-pill graph-head-pill--${e_}`,onClick:this.onHeadPillClick,style:null!=eR?{"--head-pill-color":eR}:void 0,title:"Scroll to HEAD",type:"button"},A.createElement("svg",{"aria-hidden":"true",fill:"none",height:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.2",viewBox:"0 0 16 16",width:"10"},"up"===e_?A.createElement("path",{d:"M8 13V3M3 8l5-5 5 5"}):A.createElement("path",{d:"M8 3v10M3 8l5 5 5-5"})),"HEAD"));return this.decorateWithHelmet(ey,f,n)}}var se=n8},385(e,t,o){o.d(t,{A:()=>s});var r=o(641),i=o(895);class n extends r.PureComponent{resizeObserver;scrollbarContainerRef=r.createRef();horizontalScrollRef=r.createRef();scrollabbleContentRef=r.createRef();verticalScrollRef=r.createRef();outerHorizontalScrollRef=r.createRef();constructor(e){super(e),this.resizeObserver=new ResizeObserver(e=>e.forEach(e=>this.onContainerResized(e.contentRect.width,e.contentRect.height)))}updateScrollbarValues(e,t){this.horizontalScrollRef?.current&&(this.horizontalScrollRef.current.scrollLeft=e||0),this.verticalScrollRef?.current&&(this.verticalScrollRef.current.scrollTop=t||0)}componentDidUpdate(e){let{scrollLeft:t,scrollTop:o}=this.props;(e.scrollLeft!==t||e.scrollTop!==o)&&this.updateScrollbarValues(t,o)}onHorizontalScroll(e){this.props.onScroll&&this.props.onScroll({clientHeight:this.props.height||0,clientWidth:e.target.clientWidth,scrollHeight:this.getAdjustedContentHeight(),scrollLeft:e.target.scrollLeft,scrollTop:this.props.scrollTop||0,scrollWidth:e.target.scrollWidth})}onVerticalScroll(e){let t=1>Math.abs(e.target.scrollTop-(this.props.scrollTop??0));this.props.onScroll&&!t&&this.props.onScroll({clientHeight:e.target.clientHeight,clientWidth:this.props.width||0,scrollHeight:e.target.scrollHeight,scrollLeft:this.props.scrollLeft||0,scrollTop:e.target.scrollTop,scrollWidth:this.props.contentWidth||0})}onWheel(e){if(!this.props.onScroll||!this.verticalScrollRef.current&&!this.props.forceOnVerticalWheel&&!this.horizontalScrollRef.current&&!this.props.forceOnHorizontalWheel)return;let t=this.props.scrollLeft||0,o=t;(this.horizontalScrollRef.current||this.props.forceOnHorizontalWheel)&&(o+=e.deltaX,(o=o>=0?o:0)>t&&this.horizontalScrollRef?.current&&(0,i.y6)(this.horizontalScrollRef.current)&&(o=t));let r=this.props.scrollTop||0,n=r;(this.verticalScrollRef.current||this.props.forceOnVerticalWheel)&&(n+=e.deltaY,(n=n>=0?n:0)>r&&this.verticalScrollRef?.current&&(0,i.br)(this.verticalScrollRef.current)&&(n=r)),(n!==r||o!==t)&&this.props.onScroll({clientHeight:this.props.height||0,clientWidth:this.props.width||0,scrollHeight:this.getAdjustedContentHeight(),scrollLeft:o>=0?o:0,scrollTop:n>=0?n:0,scrollWidth:this.props.contentWidth||0})}componentDidMount(){this.updateScrollbarValues(this.props.scrollLeft,this.props.scrollTop),this.resizeObserver.observe(this.scrollbarContainerRef.current)}componentWillUnmount(){this.resizeObserver.disconnect()}onContainerResized=(0,i.xJ)((e,t)=>{let o=this.props.contentHeight||0,r=this.props.contentWidth||0,i=this.props.scrollTop||0,n=this.props.scrollLeft||0,s=t<o?i:0,a=e<r?n:0;(i!==s||n!==a)&&(this.updateScrollbarValues(a,s),this.props.onScroll?.({clientHeight:t,clientWidth:e,scrollHeight:o,scrollLeft:a,scrollTop:s,scrollWidth:r}))});hasHorizontalScroll(){let{contentWidth:e,displayHorizontalScrollbar:t,forceHorizontalScrollbar:o,width:r}=this.props;return!!o||!!t&&(r??0)<e}hasVerticalScroll(){let{displayVerticalScrollbar:e,forceVerticalScrollbar:t,height:o}=this.props;return!!t||!!e&&(o??0)<this.getAdjustedContentHeight()}getHorizontalScrollbarTickness(){return parseInt(this.outerHorizontalScrollRef.current?.clientHeight,10)||0}getAdjustedContentHeight(){return this.props.contentHeight+this.getHorizontalScrollbarTickness()}adjustScrollWhileDragging(e){let t,o=this.getAdjustedContentHeight();if(!this.scrollabbleContentRef.current||(this.props.height??0)>=o||!this.props.onScroll)return;let r=this.scrollabbleContentRef.current.getBoundingClientRect(),i=e.clientY-r.top,n=Math.abs(o-(this.props.height??0));if((this.props.scrollTop??0)>0&&i<=20){let e=(this.props.scrollTop??0)-20;t={clientHeight:r.height,clientWidth:r.width,scrollHeight:n,scrollLeft:this.props.scrollLeft||0,scrollTop:e>0?e:0,scrollWidth:this.props.contentWidth||0}}if((this.props.scrollTop??0)<n&&i>=(this.props.height??0)-20){let e=(this.props.scrollTop??0)+20;t={clientHeight:r.height,clientWidth:r.width,scrollHeight:n,scrollLeft:this.props.scrollLeft||0,scrollTop:e<n?e:n,scrollWidth:this.props.contentWidth||0}}t&&this.props.onScroll(t)}render(){let{children:e,contentHeight:t,contentWidth:o,forceHorizontalScrollbar:i,forceVerticalScrollbar:n,height:s,width:a}=this.props,l=this.hasVerticalScroll(),h=this.hasHorizontalScroll(),c=h&&r.createElement("div",{className:"scrollbar-outer horizontal",ref:this.outerHorizontalScrollRef,style:{top:`calc(${s}px - var(--scrollable-scrollbar-thickness))`,width:a}},r.createElement("div",{className:"scrollbar-inner horizontal_scrollbar",onScroll:e=>this.onHorizontalScroll(e),ref:this.horizontalScrollRef,style:{overflowX:i?"scroll":"auto",width:l?`calc(${a}px - var(--scrollable-scrollbar-thickness))`:a}},r.createElement("div",{style:{height:"1px",width:o}}))),d=l&&r.createElement("div",{className:"scrollbar-outer vertical",style:{height:s}},r.createElement("div",{className:"scrollbar-inner vertical_scrollbar",onScroll:e=>this.onVerticalScroll(e),ref:this.verticalScrollRef,style:{overflowY:n?"scroll":"auto",height:h?`calc(${s}px - var(--scrollable-scrollbar-thickness))`:s}},r.createElement("div",{style:{height:`calc(${t}px + var(--scrollable-scrollbar-thickness))`,width:"1px"}})));return r.createElement("div",{className:"scrollbar-container",onWheelCapture:e=>this.onWheel(e),ref:this.scrollbarContainerRef,style:{height:s,width:a}},r.createElement("div",{className:"scrollable-content",onDragOverCapture:e=>this.adjustScrollWhileDragging(e),ref:this.scrollabbleContentRef,style:{height:s,width:a}},e),c,d)}}var s=n},823(e,t,o){o.d(t,{N:()=>c,OZ:()=>a,bY:()=>l,gL:()=>s,l2:()=>i,oB:()=>r,t$:()=>n});let r="commit-node",i="merge-conflict-node",n="merge-node",s="unsupported-rebase-warning-node",a="stash-node",l="work-dir-changes";var h,c=((h=c||{}).RowEntry="rowEntry",h.Tooltip="tooltip",h)},95(){},555(e,t,o){o.d(t,{Y:()=>i,u:()=>r});let r="--num-columns-supported",i={"--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","--scroll-marker-head-color":"#16c216","--scroll-marker-highlights-color":"#e6e62b","--scroll-marker-local-branches-color":"#ffa500","--scroll-marker-pull-requests-color":"#ff8f18","--scroll-marker-remote-branches-color":"#ffd68b","--scroll-marker-selection-color":"#0821ff","--scroll-marker-stashes-color":"#fb94ff","--scroll-marker-tags-color":"#affcff","--scroll-marker-upstream-color":"#9bff9b","--stats-added-color":"#347d39","--stats-deleted-color":"#c93c37","--stats-files-color":"#e2c08d","--stats-bar-border-radius":"3px","--stats-bar-height":"40%"}},435(e,t,o){o.d(t,{$6:()=>i,JQ:()=>s,yr:()=>n});var r=o(555);function i(e){return`--column-${e}-color`}function n(e={}){let t={},o=Object.entries(e),i=[];for(let[e,r]of o)r?.includes("var(")?i.push([e,r]):t[e]=r;if(i.length>0){let e=document.querySelector(".gk-graph")||document.documentElement,r=document.createElement("div");for(let[e,t]of(r.style.display="none",o))e.startsWith("--")&&r.style.setProperty(e,t);e.appendChild(r);try{let e=getComputedStyle(r);for(let[o,n]of i){r.style.setProperty("--temp-resolve",n);let i=e.getPropertyValue("--temp-resolve").trim();t[o]=i||n}}finally{e.removeChild(r)}}return function(e={}){return{...r.Y,...e}}(t)}function s(e){let t=e||r.Y,o="";for(let e of(o+=`.gk-graph {
15
+ `,Object.keys(t)))o+=`${e}: ${t[e]};
16
+ `;return o+`}
17
+ `}},83(e,t,o){o.d(t,{g:()=>r});let r={ADDED:"added",DELETED:"deleted",MODIFIED:"modified",RENAMED:"renamed"}},451(){},739(e,t,o){o.d(t,{e:()=>i});var r,i=((r=i||{}).arrowDownKey="ArrowDown",r.arrowLeftKey="ArrowLeft",r.arrowRightKey="ArrowRight",r.arrowUpKey="ArrowUp",r.controlKey="Control",r.endKey="End",r.homeKey="Home",r.metaKey="Meta",r.pageDownKey="PageDown",r.pageUpKey="PageUp",r.shiftKey="Shift",r)},7(e,t,o){o.d(t,{$0:()=>a,$A:()=>eh,AR:()=>ec,BP:()=>r,By:()=>l,CF:()=>y,CY:()=>ee,Dl:()=>eR,E5:()=>O,EB:()=>v,F0:()=>N,FQ:()=>eE,G3:()=>H,Gu:()=>q,H6:()=>I,Hm:()=>M,K3:()=>Y,KA:()=>U,KV:()=>F,MQ:()=>W,MT:()=>Z,OU:()=>ei,Oe:()=>m,Qb:()=>$,Ql:()=>X,RJ:()=>z,Sb:()=>e_,Sq:()=>ed,Td:()=>c,W:()=>eT,WC:()=>eC,WQ:()=>er,Yx:()=>i,Zk:()=>D,_b:()=>u,ar:()=>h,ax:()=>k,bo:()=>V,cD:()=>b,cJ:()=>eu,d4:()=>ea,di:()=>x,eB:()=>eg,fx:()=>el,gK:()=>T,gi:()=>P,iX:()=>C,io:()=>G,j:()=>ev,jp:()=>E,kU:()=>p,kj:()=>d,lE:()=>L,lH:()=>f,mE:()=>A,mP:()=>et,md:()=>es,n0:()=>R,n9:()=>B,nf:()=>g,oC:()=>j,pi:()=>ew,q4:()=>n,qO:()=>w,ro:()=>J,tl:()=>Q,ui:()=>en,wF:()=>_,wT:()=>ey,wx:()=>eS,xY:()=>eo,yB:()=>s,yX:()=>K,z$:()=>S});let r="#199489",i=3,n=26,s=28,a=22,l=1400,h=6,c=.5,d=3,u=3,p=28,f=22,m=3,g=11,_=56,v=56,S=32,R=22,y=18,T=55,C=50,w="short+short",E=55,b=50,I=50,M=50,O=55,N=18,x=32,A=2,D=6,H=14,G=5,k="gk-graph-ref-active",W="gk-graph-ref-pinned",z=19,L=10,F=55,P=100,B=50,Z=10,U=25,j=58,V=22,$=2,Y={dark:1,light:.5},K=10,q=12,X=6,Q=3,J=12,ee="auto",et="center",eo=7,er=4,ei="timelineMessage",en="ref",es="graph",ea="message",el="author",eh="datetime",ec="sha",ed="changes",eu="gk.empty-set-marker";var ep,ef,em,eg=((ep=eg||{}).Compact="compact",ep.Rich="rich",ep.Text="text",ep),e_=((ef=e_||{}).Block="block",ef.FullLine="fullLine",ef.ThinLine="thinLine",ef);let ev={block:{type:"block",baseHeight:+s,minHeight:5,maxHeight:20},fullLine:{type:"fullLine",baseHeight:.5*s,minHeight:2,maxHeight:4},thinLine:{type:"thinLine",baseHeight:.25*s,minHeight:1,maxHeight:2}},eS={stashes:{type:"stashes",colorCssKey:"--scroll-marker-stashes-color",lanes:[0],shape:"block"},wip:{type:"wip",colorCssKey:"--scroll-marker-wip-color",lanes:[0],shape:"block"},tags:{type:"tags",colorCssKey:"--scroll-marker-tags-color",lanes:[2],shape:"block"},remoteBranches:{type:"remoteBranches",colorCssKey:"--scroll-marker-remote-branches-color",lanes:[2],shape:"block"},localBranches:{type:"localBranches",colorCssKey:"--scroll-marker-local-branches-color",lanes:[0],shape:"block"},highlights:{type:"highlights",colorCssKey:"--scroll-marker-highlights-color",lanes:[1],shape:"block"},upstream:{type:"upstream",colorCssKey:"--scroll-marker-upstream-color",lanes:[1,2],shape:"block"},pullRequests:{type:"pullRequests",colorCssKey:"--scroll-marker-pull-requests-color",lanes:[2],shape:"block"},head:{type:"head",colorCssKey:"--scroll-marker-head-color",lanes:[0,1],shape:"block"},selection:{type:"selection",colorCssKey:"--scroll-marker-selection-color",lanes:[0,1,2],shape:"fullLine"}},eR=10,ey=6,eT={[el]:{headerLabelUntranslated:"GraphHeader-CommitAuthor",isCustomizable:!0,listId:"commit-author-zone",minimumWidth:S,showIconWidth:T},[eh]:{headerLabelUntranslated:"GraphHeader-CommitDateTime",isCustomizable:!0,listId:"commit-date-time-zone",minimumWidth:C,showIconWidth:E},[ea]:{headerLabelUntranslated:"GraphHeader-CommitMessage",isCustomizable:!0,listId:"commit-message-zone",minimumWidth:M,showIconWidth:O},[ec]:{headerLabelUntranslated:"GraphHeader-CommitSha",isCustomizable:!0,listId:"commit-sha-zone",minimumWidth:b,showIconWidth:I},[es]:{headerLabelUntranslated:"GraphHeader-CommitGraph",isCustomizable:!0,listId:"commit-zone",minimumWidth:_,showIconWidth:v},[en]:{headerLabelUntranslated:"GraphHeader-BranchTag",isCustomizable:!0,listId:"ref-zone",minimumWidth:x,showIconWidth:F},[ed]:{headerLabelUntranslated:"GraphHeader-Changes",isCustomizable:!0,listId:"changes-zone",minimumWidth:B,showIconWidth:j}},eC={hour:24,day:7,week:4,month:12,year:10},ew={added:0,deleted:0,modified:0};var eE=((em=eE||{}).ALWAYS="ALWAYS",em.ON_HOVER="ON_HOVER",em.NEVER="NEVER",em)},895(e,t,o){o.d(t,{$V:()=>C,DO:()=>g,Et:()=>k,HV:()=>Q,K8:()=>H,Mz:()=>$,Q9:()=>w,S6:()=>_,SY:()=>V,U0:()=>A,Ve:()=>x,Vs:()=>y,Yy:()=>O,a5:()=>q,al:()=>I,br:()=>f,ci:()=>d,dF:()=>j,eQ:()=>b,fW:()=>E,jY:()=>G,jz:()=>F,kU:()=>z,l7:()=>U,mH:()=>T,n$:()=>X,n0:()=>Y,nF:()=>p,pg:()=>Z,qC:()=>L,uQ:()=>W,ug:()=>R,xJ:()=>u,xd:()=>P,xy:()=>D,y6:()=>m,yJ:()=>N,yb:()=>v,z:()=>M});var r=o(603),i=o(456),n=o(823),s=o(435),a=o(931),l=o(7),h=o(695),c=o(982);function d(e,t,o){let r=new Set,i={};for(let s=0;s<e.length;s+=1){let a=e[s],l=t[s];if(a.type===n.OZ)continue;let h=i[a.sha]||!1,c=l.hasBaseFilteredTags&&(!o||l.hasFilteredBranches||h),d=l.hasFilteredBranches||c;if(a.type!==n.oB&&a.type!==n.t$||d||h)for(let e of(r.add(a.sha),a.parents??[]))i[e]=!0}return r}let u=e=>{let t;return(...o)=>{t&&cancelAnimationFrame(t),t=requestAnimationFrame(()=>{e(...o)})}},p=(e,t,o)=>{let r,i,n,s=!1,a=t;return(...l)=>{void 0!==o&&(i=new Date().getTime(),a=!r||i-r>a+o?o:t),n&&(clearTimeout(n),n=null),s?n=setTimeout(()=>{e(...l)},a):(e(...l),r=new Date().getTime(),s=!0,setTimeout(()=>{s=!1},a))}};function f(e){return 1>Math.abs(e.scrollHeight-e.scrollTop-e.clientHeight)}function m(e){return 1>Math.abs(e.scrollWidth-e.scrollLeft-e.clientWidth)}function g(e){return e?"string"==typeof e?e:JSON.stringify(e):null}function _(e){let{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);let o=e[0],r=e[Math.floor(.25*t)],i=e[Math.floor(.5*t)],n=e[Math.floor(.75*t)],s=e[t-1],a=n-r;return{min:Math.max(o,i-1.5*a),max:Math.min(s,i+1.5*a)}}function v(e,t,o,r,i){let{id:n}=e;if(!n||null===t||t?.[n]===null||r&&t?.[n]?.[r]===null)return null;let s=()=>{if(!i||!(n in i))return null;let e=i[n];return e?r?e[r]:e:null};return t&&n in t?r&&!t[n]?.[r]?(o(n,[r]),s()):r?t?.[n]?.[r]:t?.[n]:(o(n,h.ej),s())}function S(e){let t=Math.floor(e/36e5);if(t<24){if(0===t)return{label:"Timeline-Now",value:0};if(1===t)return{label:"Timeline-1HourAgo",value:1};if(t>0)return{label:"Timeline-NHoursAgo",value:t}}let o=Math.floor(e/864e5);if(o<7){if(1===o)return{label:"Timeline-Yesterday",value:1};if(o>0)return{label:"Timeline-NDaysAgo",value:o}}let r=Math.floor(e/6048e5);if(r<5){if(1===r)return{label:"Timeline-1WeekAgo",value:1};if(r>0)return{label:"Timeline-NWeeksAgo",value:r}}let i=new Date,n=new Date(i.getTime()-e),s=(i.getFullYear()-n.getFullYear())*12+(i.getMonth()-n.getMonth());if(s<12){if(1===s)return{label:"Timeline-1MonthAgo",value:1};if(s>0)return{label:"Timeline-NMonthsAgo",value:s}}let a=i.getFullYear()-n.getFullYear();return 1===a?{label:"Timeline-1YearAgo",value:1}:a>0?{label:"Timeline-NYearsAgo",value:a}:{label:"Timeline-Now",value:0}}function R(){let e,t=new Date,o=t.getTime(),r=[];for(e=1;e<l.WC.hour;e+=1){let t=36e5*e,{label:i,value:n}=S(t);r.push({date:o-t,label:i,timeUnit:"hour",value:n})}for(e=1;e<l.WC.day;e+=1){let t=864e5*e,{label:i,value:n}=S(t);r.push({date:o-t,label:i,timeUnit:"day",value:n})}for(e=1;e<=l.WC.week;e+=1){let t=6048e5*e,{label:i,value:n}=S(t);r.push({date:o-t,label:i,timeUnit:"week",value:n})}for(e=1;e<l.WC.month;e+=1){let i=new Date;i.setMonth(t.getMonth()-e),i.setHours(0,0,0,0);let{label:n,value:s}=S(o-i.getTime());r.push({date:i.getTime(),label:n,timeUnit:"month",value:s})}for(e=1;e<=l.WC.year;e+=1){let o,i=new Date;switch(i.setFullYear(t.getFullYear()-e),i.setHours(0,0,0,0),e){case 1:o="Timeline-1YearAgo";break;case l.WC.year:o="Timeline-NPlusYearsAgo";break;default:o="Timeline-NYearsAgo"}r.push({date:i.getTime(),label:o,timeUnit:"year",value:e})}return r}function y(e,t){let o=0;for(let r of e){for(;o+1<t.length&&r.date<=t[o+1].date;)o++;let e=t[o];o<t.length&&r.date<=e.date&&(r.timeLineEntry=e,o++)}}function T(e,t){if(t.id)return t.id;let o=t.owner||"";return e===a.z.REMOTE?`${e}/${o}/${t.name}`:`${e}/${t.name}`}function C(e){return T(e.refType,e)}function w(e,t=0){for(let o=e.length-1;o>=t;o-=1){let t=e[o];if(t.currentWidth>t.minimumWidth)return t}}function E(e,t=0){if(e.length){for(let o=t;o<e.length;o+=1){let t=e[o],r=t.maximumWidth?Math.min(t.maximumWidth,t.preferredWidth||1/0):t.preferredWidth;if(r&&t.currentWidth<r)return t}return e[e.length-1]}}function b(e,t=!1){let o="--scrollable-scrollbar-thickness",r=t||!e[o]?(0,s.yr)(e):e,i=r[o]?parseInt(r[o],10):0;return Number.isNaN(i)?0:i}function I(e,t){let o=0;for(let r of e)t&&r.type===t||(o+=r.currentWidth);return o}let M=(e,t)=>e===t[t.length-1].type;function O(e,t,o){return t||o||0===e}function N(e,t,o){let r=O(e,t,o);return e+ +!!r}function x(e,t,o){let r=N(e,t,o);return l.yB*r}function A(e,t){return e.type===l.md&&t>0?e.contentWidth||0:e.currentWidth}function D(e,t,o,r,i){var n;let s=k(e,t);return s?(n=o.length,s.currentWidth<A(s,n))?b(r,i):0:0}function H(e,t,o,r,i,n,s,a,l){var h;let c,d=k(e,t);return d?(h=n.length,c=x(h,o,r),M(d.type,t)&&(i<c||s))?b(a,l):0:0}function G(e,t,o){return(0,r.q)(o,e.minimumWidth||0,e.maximumWidth&&!M(e.type,t)?e.maximumWidth||0:Number.MAX_VALUE)}function k(e,t){return t.find(({type:t})=>t===e)}function W(e){return!!e&&e.currentWidth<=e.showIconWidth}function z(e,t){return t.findIndex(({type:t})=>t===e)}function L(e,t,o){let r=0,i=0,n=z(e,t);if(n>-1){let e=function(e,t=0){let o=0;for(let r=t;r<e.length;r+=1)o+=e[r].minimumWidth;return o}(t,n+1),s=function(e,t=e.length-1){let o=0;for(let r=0;r<=t;r+=1)o+=e[r].currentWidth;return o}(t,n-1),a=Math.min(t[n].maximumWidth||Number.MAX_VALUE,o-e-s);r=t[n].minimumWidth,i=a}return{min:r,max:i}}function F(e){let t=!!e&&e===l.eB.Compact,o=t?1:2,r=t?10:28,i=t?1:3,n=t?1:3,s=t?10:22,a=t?s:l.lH,h=t?s:s/2+1;return{COMMIT_ZONE_LINE_WIDTH:o,COMMIT_ZONE_GUTTER_WIDTH:r,COMMIT_ZONE_PADDING_LEFT:i,COMMIT_ZONE_PADDING_RIGHT:n,COMMIT_COLUMN_WIDTH:s,COMMIT_NODE_DIAMETER:a,COMMIT_MERGE_NODE_DIAMETER:h,COMMIT_NODE_TOP_OFFSET:.5*l.lH-.5*a,COMMIT_MERGE_NODE_LEFT_OFFSET:s/2-h/2,COMMIT_MERGE_NODE_TOP_OFFSET:.5*l.lH-.5*h,COMMIT_ZONE_AVATAR_DIAMETER:a-2*o,COMMIT_ZONE_VIEWPORT_WIDTH_MIN:a+i+n+r,COMMIT_ZONE_SHOW_ICON_WIDTH:t?45:56,IS_COMPACT:t,RADIUS_DIFF_MERGE_NODE_COMMIT_NODE:a/2-h/2}}let P=e=>t=>t===e.length?"SHOW_MORE_COMMITS":e[t].sha;function B(e){return e instanceof c.Y?!!e.refsData?.activeGraphRef:!!e?.heads&&e.heads.some(e=>K(e))}function Z(e){let t=e.find(B);return t?.sha||void 0}function U(e){return[n.l2,n.gL,n.bY].includes(e)}function j(e,t){return"always"===t||!!e&&(0,i.D7)(e,e=>"number"==typeof e&&e>0)}function V(e,t){return e.has(t)&&1===e.size}function $(e,t,o,r){if(r<0)return l.CY;let i=e+2,n=r*e;return n>=o-i&&n<o+t+i?l.CY:l.mP}function Y(e){switch(e){case l.md:return"graph";case l.ui:return"branch";case l.d4:return"message";case l.fx:return"author";case l.$A:return"datetime";case l.AR:return"commit";case l.Sq:return"changes";default:return}}function K(e){return e.isCurrentHead??!1}function q(e){return e.refType===a.z.HEAD&&K(e)}class X{props;constructor(e){this.props=e}getActiveGraphZone(e){let t=k(e,this.props.graphZones);return!t||t.isHidden?void 0:t}getGraphRefGroupsByNameForRow(e){let t=this.getRow(e);return t&&t.refsData?.orderedRefGroups||[]}getRow(e){if(!(e<0)&&!(e>this.props.processedRows.length-1))return this.props.processedRows[e]}getZoneWidth(e,t=!0){var o;let r=t?this.getVerticalScrollWidth(e):0;return o=this.props.graphZones,(k(e,o)?.currentWidth||l.W[e].minimumWidth)-r}isDateTimeZoneActive(){return!!this.getActiveGraphZone(l.$A)}shouldShowTimelines(){return this.props.alwaysShowTimelines||!this.isDateTimeZoneActive()}isFirstRow(e){return 0===e}isColumnFollowingGraphColumn(e){var t;let o,r;return o=z(e,t=this.props.graphZones),r=z(l.md,t),-1!==o&&-1!==r&&o-r==1}isHighlighted(e){if(this.props.processedRows[e]&&this.props.highlightedShas){let t=this.props.processedRows[e]?.sha;return this.props.highlightedShas[t]||!1}return!1}isHovering(e){return!!this.props.processedRows[e]&&this.props.currentlyHoveredCommitSha===this.props.processedRows[e]?.sha}isLastColumn(e){return M(e,this.props.graphZones)}getSelectedRefGroupByName(){if(1===this.props.selectedShas.size){let e=this.props.selectedShas[Symbol.iterator]().next().value;if(e){let t=this.props.processedGraphRowBySha[e];if(t)return t.refsData?.orderedRefGroups||[]}}return[]}getHorizontalScrollHeight(e){return D(e,this.props.graphZones,this.props.processedRows,this.props.cssVariables)}getVerticalScrollWidth(e){return H(e,this.props.graphZones,this.props.hasMoreCommits,this.props.isLoadingRows,this.props.height,this.props.processedRows,this.props.enabledScrollMarkerTypes.length>0,this.props.cssVariables)}shouldUseColumnHeaderIcons(e){let t=k(e,this.props.graphZones);return!!t&&W(t)}isMissingHoveredRefGroup(e){if(this.props.highlightedShas)return!1;let t=this.getRow(e);if(!t)return!1;let o=[];if(this.props.dimRowsOfSelectedCommit){let e=this.getSelectedRefGroupByName();if(!e.length)return!1;o=e[0]}else{let{hoveredRefGroup:e}=this.props;if(!e?.length)return!1;o=e}let{name:r,refType:i}=o[0],n=i===a.z.TAG,s=t.tags.length>0&&!t.heads.length&&!t.remotes.length,{heads:l,tags:h,remotes:c}=t.hasRefs&&(!s||n)?{heads:t.heads,tags:t.tags,remotes:t.remotes}:t.childRefs;return!l.length&&!c.length&&!h.length||!l.some(e=>e.name===r&&o.some(e=>e.refType===a.z.HEAD))&&!c.some(e=>e.name===r&&o.some(t=>t.refType===a.z.REMOTE&&t.owner===e.owner))&&!h.some(e=>e.name===r&&o.some(e=>e.refType===a.z.TAG))}isSelected(e){let t=this.getRow(e)?.sha;return!!t&&this.props.selectedShas.has(t)}isSingleSelected(e){let t=this.getRow(e)?.sha;return!!t&&V(this.props.selectedShas,t)}hasTimeline(e){if(!this.shouldShowTimelines())return!1;let t=this.props.processedRows[e];return!!t?.timeLineEntry&&!(e*l.yB-this.props.scrollTop<l.yB)}rowContainsCurrentHeadRef(e){return B(e)}rowIsActiveHead(e){return e?.heads?.some(e=>K(e))??!1}}function Q(e){let t;for(t of e);return t}},695(e,t,o){o.d(t,{RA:()=>i,ej:()=>s,fd:()=>n,ki:()=>r});let r="pullRequest",i="upstream",n="issue",s=[r,i,n]},982(e,t,o){o.d(t,{Y:()=>s});var r=o(931),i=o(895);let n={[r.z.WORKTREE]:3,[r.z.HEAD]:2,[r.z.REMOTE]:1,[r.z.TAG]:0};class s{_graph;_message;_heads;_remotes;_tags;_activeGraphRef;_activeGraphRefGroup;_refGroupsByName;_orderedRefGroups;sha;parents;author;email;date;type;contexts;rowIndex;column;columnForColoring;edgeColumnMaxes;edges;childRefs;timeLineEntry;scopeBoundaryKind;summary;body;displaySummary;displayBody;set message(e){if(this._message!==e){this._message=e;let t=this._graph.formatCommitMessageCallback(e);this.displaySummary=t.summary,this.displayBody=t.body}}get message(){return this._message}get heads(){return this._heads}set heads(e){this._heads!==e&&(this._heads=e,this.initializeRefGroups())}set remotes(e){this._remotes!==e&&(this._remotes=e,this.initializeRefGroups())}get remotes(){return this._remotes}set tags(e){this._tags!==e&&(this._tags=e,this.initializeRefGroups())}get tags(){return this._tags}get hasRefs(){return this.heads.length>0||this.remotes.length>0||this.tags.length>0}get hasChildRefs(){return this.childRefs.heads.length>0||this.childRefs.remotes.length>0||this.childRefs.tags.length>0}get hidden(){return null==this.rowIndex}get refsData(){if(this.hasRefs||this.hasChildRefs)return 0===this._orderedRefGroups.length&&this.loadGraphRefGroupsData(),{activeGraphRef:this._activeGraphRef,activeGraphRefGroup:this._activeGraphRefGroup,orderedRefGroups:this._orderedRefGroups,refGroupsByName:this._refGroupsByName}}constructor(e,t,o,r,i,n,s,a){this._graph=e,this._heads=t.heads||[],this._remotes=t.remotes||[],this._tags=t.tags||[],this.message=t.message,this.sha=t.sha,this.parents=t.parents,this.author=t.author,this.email=t.email,this.date=t.date,this.type=t.type,this.contexts=t.contexts,this.column=o||0,this.columnForColoring=a,this.edgeColumnMaxes=r||0,this.edges=i||{},this.childRefs=n||{heads:[],tags:[],remotes:[]},this.timeLineEntry=s,this.initializeRefGroups()}initializeRefGroups(){this._activeGraphRefGroup=void 0,this._activeGraphRef=void 0,this._refGroupsByName={},this._orderedRefGroups=[]}addRefToRefGroup(e){let t=e.name;this._refGroupsByName[t]||(this._refGroupsByName[t]=[]),this._refGroupsByName[t].push(e)}loadGraphRefGroupsData(){this.initializeRefGroups();let e=[],{heads:t,tags:o,remotes:s}=this.hasRefs?this:this.childRefs;for(let o of t){let t={...o,refType:r.z.HEAD};this.addRefToRefGroup(t),(0,i.a5)(t)?(this._activeGraphRefGroup=this._refGroupsByName[t.name],this._activeGraphRef=t,e.unshift(this._refGroupsByName[t.name])):e.push(this._refGroupsByName[t.name])}for(let t of s){let o={...t,fullName:t.owner?`${t.owner}/${t.name}`:t.name,refType:r.z.REMOTE},i=this._refGroupsByName[o.name];this.addRefToRefGroup(o),i||e.push(this._refGroupsByName[o.name])}for(let t of o){let o={...t,refType:r.z.TAG};this.addRefToRefGroup(o),e.push(this._refGroupsByName[o.name])}this._orderedRefGroups=e.sort((e,t)=>e===this._activeGraphRefGroup?-1:t===this._activeGraphRefGroup?1:n[e[0].refType]>n[t[0].refType]?-1:n[e[0].refType]<n[t[0].refType]?1:e.length>t.length?-1:e.length<t.length?1:e[0].name.localeCompare(t[0].name))}}},484(e,t,o){o.d(t,{e:()=>r});class r extends CustomEvent{static type="invalidate";constructor(e,t){super(r.type,{detail:{shas:t?new Set(t):void 0,type:e}})}}},599(e,t,o){o.d(t,{T:()=>r});function r(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}}},553(e,t,o){o.d(t,{H:()=>r});let r={"CommitDiffSection-FileAdded":"added","CommitDiffSection-FileDeleted":"deleted","CommitDiffSection-FileModified":"modified","CommitDiffSection-FileRenamed":"renamed","CommitDiffSection-NFilesAdded":"{0} added","CommitDiffSection-NFilesDeleted":"{0} deleted","CommitDiffSection-NFilesModified":"{0} modified","CommitDiffSection-NFilesRenamed":"{0} renamed","Graph-IsLoadingRows":"Loading...","Graph-NoCommits":"No commits","Graph-WorkInProgress":"Work in progress","Graph-WorkInProgress-Changes":"Working Changes","Graph-WorkInProgress-Clean":"Working Tree","WipStatsPill-NoChanges":"No changes","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":"Columns settings","GraphHeader-Filter":"Filter","GraphHeader-HiddenRefs-btn":"Hidden Branches / Tags","OptionalGraphZone-CommitAuthor":"Author","OptionalGraphZone-CommitDateTime":"Date / Time","OptionalGraphZone-CommitSha":"Sha","IssueIcon-Tooltip":"{0}: {1}","PullRequestIcon-Tooltip":`#{0}: {1}
18
+ Double-click to open pull request on {2}`,"Ref-Current":"Current Branch","Ref-Local":"Local Branch","Ref-Remote":"Remote Branch","Ref-Tag":"Tag","Ref-Worktree":"Worktree","RefZone-EnterBranchName":"enter branch name","RefZone-EnterTagName":"enter tag name","Timeline-Now":"just now","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","UpstreamIndicatorIcon-BehindAndAheadTooltip":`{0} commit(s) behind and {1} commit(s) ahead of {2}
19
+ Double-click to pull changes`,"UpstreamIndicatorIcon-BehindTooltip":`{0} commit(s) behind {1}
20
+ Double-click to pull changes`,"UpstreamIndicatorIcon-AheadTooltip":`{0} commit(s) ahead of {1}
21
+ Double-click to push changes`,ResizePanel:"Resize Panel",Stash:"Stash",Hide:"Hide",Show:"Show","WorkDirMessageInput-WIPPlaceholder":"WIP"}},37(){},931(e,t,o){o.d(t,{E:()=>n,z:()=>r});let r={HEAD:"head",REMOTE:"remote",TAG:"tag",WORKTREE:"worktree"};var i,n=((i=n||{}).LEFT="LEFT",i.RIGHT="RIGHT",i)},835(){},65(){},583(){},603(e,t,o){o.d(t,{q:()=>r});function r(e,t,o){return(e=e<=o?e:o)>=t?e:t}},456(e,t,o){function r(e){for(let t in e)if(Object.hasOwn(e,t))return!0;return!1}function i(e,t=1){let o=0;for(let r in e)if(Object.hasOwn(e,r)&&e[r]&&++o>=t)return!0;return o>=t}function n(e,t,o=1){let r=0;for(let i in e)if(Object.hasOwn(e,i)&&t(e[i])&&++r>=o)return!0;return r>=o}o.d(t,{D7:()=>n,Hk:()=>i,xV:()=>r})},175(e,t,o){var r=o(81),i=o(201);e.exports=function(){return r.apply(this,i(arguments)).on("cloned",function(t){e(t),i(t.getElementsByTagName("*")).forEach(e)});function e(e){e.removeAttribute("data-reactid")}}},513(e,t,o){var r=o(641).__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;t.c=function(e){return r.H.useMemoCache(e)}},131(e,t){var o=Symbol.for("react.transitional.element");function r(e,t,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),"key"in t)for(var n in r={},t)"key"!==n&&(r[n]=t[n]);else r=t;return{$$typeof:o,type:e,key:i,ref:void 0!==(t=r.ref)?t:null,props:r}}t.Fragment=Symbol.for("react.fragment"),t.jsx=r,t.jsxs=r},999(e,t,o){e.exports=o(513)},615(e,t,o){e.exports=o(131)},292(e){e.exports="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){setTimeout(e,0)}},730(e){e.exports=function(){}},641(e,t,o){var i;i={},o.d(i,{Children:()=>r.Children,Component:()=>r.Component,Fragment:()=>r.Fragment,PureComponent:()=>r.PureComponent,__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE:()=>r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,cloneElement:()=>r.cloneElement,createContext:()=>r.createContext,createElement:()=>r.createElement,createRef:()=>r.createRef,default:()=>r.default,forwardRef:()=>r.forwardRef,isValidElement:()=>r.isValidElement,memo:()=>r.memo,useCallback:()=>r.useCallback,useContext:()=>r.useContext,useEffect:()=>r.useEffect,useId:()=>r.useId,useLayoutEffect:()=>r.useLayoutEffect,useMemo:()=>r.useMemo,useRef:()=>r.useRef,useState:()=>r.useState,version:()=>r.version}),e.exports=i},500(e,t){var o,r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=n(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var o in e)r.call(e,o)&&e[o]&&(t=n(t,o));return t}(o)))}return e}function n(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(o=(function(){return i}).apply(t,[]))||(e.exports=o)}},n={};function s(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return i[e](o,o.exports,s),o.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch{if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};s.r(a),s.d(a,{CHANGES_BAR_MIN_WIDTH:()=>m.MT,CHANGES_BAR_RIGHT_MARGIN:()=>m.KA,CHANGES_ZONE_MIN_WIDTH:()=>m.n9,CHANGES_ZONE_SHOW_ICON_WIDTH:()=>m.oC,COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER:()=>m.CF,COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER:()=>m.n0,COMMIT_AUTHOR_ZONE_MIN_WIDTH:()=>m.z$,COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH:()=>m.gK,COMMIT_DATE_TIME_ZONE_MIN_WIDTH:()=>m.iX,COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH:()=>m.jp,COMMIT_MESSAGE_ZONE_MIN_WIDTH:()=>m.Hm,COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH:()=>m.E5,COMMIT_NODE_MIN_ALPHA:()=>m.Td,COMMIT_SHA_ZONE_MIN_WIDTH:()=>m.cD,COMMIT_SHA_ZONE_SHOW_ICON_WIDTH:()=>m.H6,COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN:()=>m.wF,COMMIT_ZONE_EDGE_ARC_PADDING:()=>m.Oe,COMMIT_ZONE_EDGE_ARC_RADIUS:()=>m.nf,COMMIT_ZONE_MARGIN_BOTTOM:()=>m.kj,COMMIT_ZONE_MARGIN_TOP:()=>m._b,COMMIT_ZONE_ROW_HEIGHT:()=>m.kU,COMMIT_ZONE_ROW_INNER_HEIGHT:()=>m.lH,COMMIT_ZONE_SHOW_ICON_WIDTH:()=>m.EB,CommitDateTimeSources:()=>d.N,DEFAULT_AVATAR_BACKGROUND_COLOR:()=>m.BP,DEFAULT_COMMIT_SHA_LENGTH:()=>m.wT,DEFAULT_CSS_VARIABLES:()=>E.Y,DEFAULT_TRANSLATIONS:()=>w.H,DEFAULT_WORKDIR_STATS:()=>m.pi,DndComponent:()=>l.A,GRAPH_HEADER_ROW_HEIGHT:()=>m.q4,GRAPH_ROW_HEIGHT:()=>m.yB,GRAPH_ROW_INNER_HEIGHT:()=>m.$0,GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET:()=>m.By,GRAPH_ROW_PADDING:()=>m.ar,GRAPH_SCROLL_MARKER_LANES:()=>m.Yx,GraphColumnMode:()=>m.eB,GraphMarkerShape:()=>m.Sb,HEADER_ROW_HEIGHT:()=>m.bo,HEADER_ROW_MARGIN_BOTTOM:()=>m.Qb,INLINE_SUMMARY_MARGIN_LEFT:()=>m.yX,LeftPanelToGraphMarginGap:()=>m.xY,NUM_COLUMNS_SUPPORTED_PROP_NAME:()=>E.u,NamedKeys:()=>u.e,OPACITY_FACTOR_BY_THEME:()=>m.K3,REF_NODE_ACTIVE_ANNOTATION_ID:()=>m.ax,REF_NODE_ICON_MARGIN:()=>m.io,REF_NODE_ICON_SPACING:()=>m.RJ,REF_NODE_ICON_WIDTH:()=>m.G3,REF_NODE_OUTER_SPACING:()=>m.lE,REF_NODE_PINNED_ANNOTATION_ID:()=>m.MQ,REF_ZONE_MARGIN_LEFT:()=>m.mE,REF_ZONE_MARGIN_RIGHT:()=>m.Zk,REF_ZONE_MAX_REFS_TO_RENDER:()=>m.gi,REF_ZONE_MIN_WIDTH:()=>m.di,REF_ZONE_SHOW_ICON_WIDTH:()=>m.KV,REF_ZONE_TEXT_HEIGHT:()=>m.F0,ResizableHandleCorrection:()=>m.WQ,RowAdornmentInvalidateEvent:()=>_.e,SCROLL_TO_ALIGNMENT_AUTO:()=>m.CY,SCROLL_TO_ALIGNMENT_CENTER:()=>m.mP,ScrollbarContainer:()=>h.A,TIMESTAMP_FORMAT_DATE_TIME:()=>m.qO,TINY_FILES_READOUT_FONT_SIZE:()=>m.Gu,TINY_FILES_READOUT_RIGHT_MARGIN:()=>m.Ql,TINY_ICON_RIGHT_MARGIN:()=>m.tl,TINY_ICON_SIZE:()=>m.ro,allMetadataTypes:()=>g.ej,changesZone:()=>m.Sq,commitAuthorZone:()=>m.fx,commitDateTimeZone:()=>m.$A,commitMessageZone:()=>m.d4,commitNodeType:()=>d.oB,commitShaZone:()=>m.AR,commitZone:()=>m.md,default:()=>M,emptySetMarker:()=>m.cJ,getHostingServiceName:()=>v.T,graphCommitDescDisplayModes:()=>m.FQ,graphMarkerMetadata:()=>m.wx,graphMarkerShapeMetadata:()=>m.j,graphZoneMetaData:()=>m.W,issueMetadataType:()=>g.fd,lookbackLimitByPeriod:()=>m.WC,mergeConflictNodeType:()=>d.l2,mergeNodeType:()=>d.t$,numGraphColumnsDefault:()=>m.Dl,pullRequestMetadataType:()=>g.ki,refIconsPositions:()=>S.E,refTypes:()=>S.z,refZone:()=>m.ui,stashNodeType:()=>d.OZ,timelineMsgRowRenderId:()=>m.OU,types:()=>I.g,unsupportedRebaseWarningNodeType:()=>d.gL,upstreamMetadataType:()=>g.RA,workDirType:()=>d.bY});var l=s(366),h=s(385),c=s(883),d=s(823),u=s(739),p=s(95),f={};for(let e in p)0>["default","DndComponent","ScrollbarContainer","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys"].indexOf(e)&&(f[e]=()=>p[e]);s.d(a,f);var m=s(7),g=s(695),_=s(484),v=s(599),S=s(931),R=s(835),f={};for(let e in R)0>["default","DndComponent","ScrollbarContainer","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","CHANGES_ZONE_SHOW_ICON_WIDTH","COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER","COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_SHA_ZONE_SHOW_ICON_WIDTH","COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_SHOW_ICON_WIDTH","DEFAULT_AVATAR_BACKGROUND_COLOR","DEFAULT_COMMIT_SHA_LENGTH","DEFAULT_WORKDIR_STATS","GRAPH_HEADER_ROW_HEIGHT","GRAPH_ROW_HEIGHT","GRAPH_ROW_INNER_HEIGHT","GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET","GRAPH_ROW_PADDING","GRAPH_SCROLL_MARKER_LANES","GraphColumnMode","GraphMarkerShape","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","REF_NODE_ACTIVE_ANNOTATION_ID","REF_NODE_ICON_MARGIN","REF_NODE_ICON_SPACING","REF_NODE_ICON_WIDTH","REF_NODE_OUTER_SPACING","REF_NODE_PINNED_ANNOTATION_ID","REF_ZONE_MARGIN_LEFT","REF_ZONE_MARGIN_RIGHT","REF_ZONE_MAX_REFS_TO_RENDER","REF_ZONE_MIN_WIDTH","REF_ZONE_SHOW_ICON_WIDTH","REF_ZONE_TEXT_HEIGHT","ResizableHandleCorrection","SCROLL_TO_ALIGNMENT_AUTO","SCROLL_TO_ALIGNMENT_CENTER","TIMESTAMP_FORMAT_DATE_TIME","TINY_FILES_READOUT_FONT_SIZE","TINY_FILES_READOUT_RIGHT_MARGIN","TINY_ICON_RIGHT_MARGIN","TINY_ICON_SIZE","changesZone","commitAuthorZone","commitDateTimeZone","commitMessageZone","commitShaZone","commitZone","emptySetMarker","graphCommitDescDisplayModes","graphMarkerMetadata","graphMarkerShapeMetadata","graphZoneMetaData","lookbackLimitByPeriod","numGraphColumnsDefault","refZone","timelineMsgRowRenderId","allMetadataTypes","issueMetadataType","pullRequestMetadataType","upstreamMetadataType","RowAdornmentInvalidateEvent","getHostingServiceName","refIconsPositions","refTypes"].indexOf(e)&&(f[e]=()=>R[e]);s.d(a,f);var y=s(583),f={};for(let e in y)0>["default","DndComponent","ScrollbarContainer","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","CHANGES_ZONE_SHOW_ICON_WIDTH","COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER","COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_SHA_ZONE_SHOW_ICON_WIDTH","COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_SHOW_ICON_WIDTH","DEFAULT_AVATAR_BACKGROUND_COLOR","DEFAULT_COMMIT_SHA_LENGTH","DEFAULT_WORKDIR_STATS","GRAPH_HEADER_ROW_HEIGHT","GRAPH_ROW_HEIGHT","GRAPH_ROW_INNER_HEIGHT","GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET","GRAPH_ROW_PADDING","GRAPH_SCROLL_MARKER_LANES","GraphColumnMode","GraphMarkerShape","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","REF_NODE_ACTIVE_ANNOTATION_ID","REF_NODE_ICON_MARGIN","REF_NODE_ICON_SPACING","REF_NODE_ICON_WIDTH","REF_NODE_OUTER_SPACING","REF_NODE_PINNED_ANNOTATION_ID","REF_ZONE_MARGIN_LEFT","REF_ZONE_MARGIN_RIGHT","REF_ZONE_MAX_REFS_TO_RENDER","REF_ZONE_MIN_WIDTH","REF_ZONE_SHOW_ICON_WIDTH","REF_ZONE_TEXT_HEIGHT","ResizableHandleCorrection","SCROLL_TO_ALIGNMENT_AUTO","SCROLL_TO_ALIGNMENT_CENTER","TIMESTAMP_FORMAT_DATE_TIME","TINY_FILES_READOUT_FONT_SIZE","TINY_FILES_READOUT_RIGHT_MARGIN","TINY_ICON_RIGHT_MARGIN","TINY_ICON_SIZE","changesZone","commitAuthorZone","commitDateTimeZone","commitMessageZone","commitShaZone","commitZone","emptySetMarker","graphCommitDescDisplayModes","graphMarkerMetadata","graphMarkerShapeMetadata","graphZoneMetaData","lookbackLimitByPeriod","numGraphColumnsDefault","refZone","timelineMsgRowRenderId","allMetadataTypes","issueMetadataType","pullRequestMetadataType","upstreamMetadataType","RowAdornmentInvalidateEvent","getHostingServiceName","refIconsPositions","refTypes"].indexOf(e)&&(f[e]=()=>y[e]);s.d(a,f);var T=s(65),f={};for(let e in T)0>["default","DndComponent","ScrollbarContainer","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","CHANGES_ZONE_SHOW_ICON_WIDTH","COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER","COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_SHA_ZONE_SHOW_ICON_WIDTH","COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_SHOW_ICON_WIDTH","DEFAULT_AVATAR_BACKGROUND_COLOR","DEFAULT_COMMIT_SHA_LENGTH","DEFAULT_WORKDIR_STATS","GRAPH_HEADER_ROW_HEIGHT","GRAPH_ROW_HEIGHT","GRAPH_ROW_INNER_HEIGHT","GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET","GRAPH_ROW_PADDING","GRAPH_SCROLL_MARKER_LANES","GraphColumnMode","GraphMarkerShape","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","REF_NODE_ACTIVE_ANNOTATION_ID","REF_NODE_ICON_MARGIN","REF_NODE_ICON_SPACING","REF_NODE_ICON_WIDTH","REF_NODE_OUTER_SPACING","REF_NODE_PINNED_ANNOTATION_ID","REF_ZONE_MARGIN_LEFT","REF_ZONE_MARGIN_RIGHT","REF_ZONE_MAX_REFS_TO_RENDER","REF_ZONE_MIN_WIDTH","REF_ZONE_SHOW_ICON_WIDTH","REF_ZONE_TEXT_HEIGHT","ResizableHandleCorrection","SCROLL_TO_ALIGNMENT_AUTO","SCROLL_TO_ALIGNMENT_CENTER","TIMESTAMP_FORMAT_DATE_TIME","TINY_FILES_READOUT_FONT_SIZE","TINY_FILES_READOUT_RIGHT_MARGIN","TINY_ICON_RIGHT_MARGIN","TINY_ICON_SIZE","changesZone","commitAuthorZone","commitDateTimeZone","commitMessageZone","commitShaZone","commitZone","emptySetMarker","graphCommitDescDisplayModes","graphMarkerMetadata","graphMarkerShapeMetadata","graphZoneMetaData","lookbackLimitByPeriod","numGraphColumnsDefault","refZone","timelineMsgRowRenderId","allMetadataTypes","issueMetadataType","pullRequestMetadataType","upstreamMetadataType","RowAdornmentInvalidateEvent","getHostingServiceName","refIconsPositions","refTypes"].indexOf(e)&&(f[e]=()=>T[e]);s.d(a,f);var C=s(37),f={};for(let e in C)0>["default","DndComponent","ScrollbarContainer","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","CHANGES_ZONE_SHOW_ICON_WIDTH","COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER","COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_SHA_ZONE_SHOW_ICON_WIDTH","COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_SHOW_ICON_WIDTH","DEFAULT_AVATAR_BACKGROUND_COLOR","DEFAULT_COMMIT_SHA_LENGTH","DEFAULT_WORKDIR_STATS","GRAPH_HEADER_ROW_HEIGHT","GRAPH_ROW_HEIGHT","GRAPH_ROW_INNER_HEIGHT","GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET","GRAPH_ROW_PADDING","GRAPH_SCROLL_MARKER_LANES","GraphColumnMode","GraphMarkerShape","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","REF_NODE_ACTIVE_ANNOTATION_ID","REF_NODE_ICON_MARGIN","REF_NODE_ICON_SPACING","REF_NODE_ICON_WIDTH","REF_NODE_OUTER_SPACING","REF_NODE_PINNED_ANNOTATION_ID","REF_ZONE_MARGIN_LEFT","REF_ZONE_MARGIN_RIGHT","REF_ZONE_MAX_REFS_TO_RENDER","REF_ZONE_MIN_WIDTH","REF_ZONE_SHOW_ICON_WIDTH","REF_ZONE_TEXT_HEIGHT","ResizableHandleCorrection","SCROLL_TO_ALIGNMENT_AUTO","SCROLL_TO_ALIGNMENT_CENTER","TIMESTAMP_FORMAT_DATE_TIME","TINY_FILES_READOUT_FONT_SIZE","TINY_FILES_READOUT_RIGHT_MARGIN","TINY_ICON_RIGHT_MARGIN","TINY_ICON_SIZE","changesZone","commitAuthorZone","commitDateTimeZone","commitMessageZone","commitShaZone","commitZone","emptySetMarker","graphCommitDescDisplayModes","graphMarkerMetadata","graphMarkerShapeMetadata","graphZoneMetaData","lookbackLimitByPeriod","numGraphColumnsDefault","refZone","timelineMsgRowRenderId","allMetadataTypes","issueMetadataType","pullRequestMetadataType","upstreamMetadataType","RowAdornmentInvalidateEvent","getHostingServiceName","refIconsPositions","refTypes"].indexOf(e)&&(f[e]=()=>C[e]);s.d(a,f);var w=s(553),E=s(555),b=s(451),f={};for(let e in b)0>["default","DndComponent","ScrollbarContainer","CommitDateTimeSources","commitNodeType","mergeConflictNodeType","mergeNodeType","stashNodeType","unsupportedRebaseWarningNodeType","workDirType","NamedKeys","CHANGES_BAR_MIN_WIDTH","CHANGES_BAR_RIGHT_MARGIN","CHANGES_ZONE_MIN_WIDTH","CHANGES_ZONE_SHOW_ICON_WIDTH","COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER","COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER","COMMIT_AUTHOR_ZONE_MIN_WIDTH","COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH","COMMIT_DATE_TIME_ZONE_MIN_WIDTH","COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH","COMMIT_MESSAGE_ZONE_MIN_WIDTH","COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH","COMMIT_NODE_MIN_ALPHA","COMMIT_SHA_ZONE_MIN_WIDTH","COMMIT_SHA_ZONE_SHOW_ICON_WIDTH","COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN","COMMIT_ZONE_EDGE_ARC_PADDING","COMMIT_ZONE_EDGE_ARC_RADIUS","COMMIT_ZONE_MARGIN_BOTTOM","COMMIT_ZONE_MARGIN_TOP","COMMIT_ZONE_ROW_HEIGHT","COMMIT_ZONE_ROW_INNER_HEIGHT","COMMIT_ZONE_SHOW_ICON_WIDTH","DEFAULT_AVATAR_BACKGROUND_COLOR","DEFAULT_COMMIT_SHA_LENGTH","DEFAULT_WORKDIR_STATS","GRAPH_HEADER_ROW_HEIGHT","GRAPH_ROW_HEIGHT","GRAPH_ROW_INNER_HEIGHT","GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET","GRAPH_ROW_PADDING","GRAPH_SCROLL_MARKER_LANES","GraphColumnMode","GraphMarkerShape","HEADER_ROW_HEIGHT","HEADER_ROW_MARGIN_BOTTOM","INLINE_SUMMARY_MARGIN_LEFT","LeftPanelToGraphMarginGap","OPACITY_FACTOR_BY_THEME","REF_NODE_ACTIVE_ANNOTATION_ID","REF_NODE_ICON_MARGIN","REF_NODE_ICON_SPACING","REF_NODE_ICON_WIDTH","REF_NODE_OUTER_SPACING","REF_NODE_PINNED_ANNOTATION_ID","REF_ZONE_MARGIN_LEFT","REF_ZONE_MARGIN_RIGHT","REF_ZONE_MAX_REFS_TO_RENDER","REF_ZONE_MIN_WIDTH","REF_ZONE_SHOW_ICON_WIDTH","REF_ZONE_TEXT_HEIGHT","ResizableHandleCorrection","SCROLL_TO_ALIGNMENT_AUTO","SCROLL_TO_ALIGNMENT_CENTER","TIMESTAMP_FORMAT_DATE_TIME","TINY_FILES_READOUT_FONT_SIZE","TINY_FILES_READOUT_RIGHT_MARGIN","TINY_ICON_RIGHT_MARGIN","TINY_ICON_SIZE","changesZone","commitAuthorZone","commitDateTimeZone","commitMessageZone","commitShaZone","commitZone","emptySetMarker","graphCommitDescDisplayModes","graphMarkerMetadata","graphMarkerShapeMetadata","graphZoneMetaData","lookbackLimitByPeriod","numGraphColumnsDefault","refZone","timelineMsgRowRenderId","allMetadataTypes","issueMetadataType","pullRequestMetadataType","upstreamMetadataType","RowAdornmentInvalidateEvent","getHostingServiceName","refIconsPositions","refTypes","DEFAULT_TRANSLATIONS","DEFAULT_CSS_VARIABLES","NUM_COLUMNS_SUPPORTED_PROP_NAME"].indexOf(e)&&(f[e]=()=>b[e]);s.d(a,f);var I=s(83),M=c.A;let O=a.CHANGES_BAR_MIN_WIDTH,N=a.CHANGES_BAR_RIGHT_MARGIN,x=a.CHANGES_ZONE_MIN_WIDTH,A=a.CHANGES_ZONE_SHOW_ICON_WIDTH,D=a.COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER,H=a.COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER,G=a.COMMIT_AUTHOR_ZONE_MIN_WIDTH,k=a.COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH,W=a.COMMIT_DATE_TIME_ZONE_MIN_WIDTH,z=a.COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH,L=a.COMMIT_MESSAGE_ZONE_MIN_WIDTH,F=a.COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH,P=a.COMMIT_NODE_MIN_ALPHA,B=a.COMMIT_SHA_ZONE_MIN_WIDTH,Z=a.COMMIT_SHA_ZONE_SHOW_ICON_WIDTH,U=a.COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN,j=a.COMMIT_ZONE_EDGE_ARC_PADDING,V=a.COMMIT_ZONE_EDGE_ARC_RADIUS,$=a.COMMIT_ZONE_MARGIN_BOTTOM,Y=a.COMMIT_ZONE_MARGIN_TOP,K=a.COMMIT_ZONE_ROW_HEIGHT,q=a.COMMIT_ZONE_ROW_INNER_HEIGHT,X=a.COMMIT_ZONE_SHOW_ICON_WIDTH,Q=a.CommitDateTimeSources,J=a.DEFAULT_AVATAR_BACKGROUND_COLOR,ee=a.DEFAULT_COMMIT_SHA_LENGTH,et=a.DEFAULT_CSS_VARIABLES,eo=a.DEFAULT_TRANSLATIONS,er=a.DEFAULT_WORKDIR_STATS,ei=a.DndComponent,en=a.GRAPH_HEADER_ROW_HEIGHT,es=a.GRAPH_ROW_HEIGHT,ea=a.GRAPH_ROW_INNER_HEIGHT,el=a.GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET,eh=a.GRAPH_ROW_PADDING,ec=a.GRAPH_SCROLL_MARKER_LANES,ed=a.GraphColumnMode,eu=a.GraphMarkerShape,ep=a.HEADER_ROW_HEIGHT,ef=a.HEADER_ROW_MARGIN_BOTTOM,em=a.INLINE_SUMMARY_MARGIN_LEFT,eg=a.LeftPanelToGraphMarginGap,e_=a.NUM_COLUMNS_SUPPORTED_PROP_NAME,ev=a.NamedKeys,eS=a.OPACITY_FACTOR_BY_THEME,eR=a.REF_NODE_ACTIVE_ANNOTATION_ID,ey=a.REF_NODE_ICON_MARGIN,eT=a.REF_NODE_ICON_SPACING,eC=a.REF_NODE_ICON_WIDTH,ew=a.REF_NODE_OUTER_SPACING,eE=a.REF_NODE_PINNED_ANNOTATION_ID,eb=a.REF_ZONE_MARGIN_LEFT,eI=a.REF_ZONE_MARGIN_RIGHT,eM=a.REF_ZONE_MAX_REFS_TO_RENDER,eO=a.REF_ZONE_MIN_WIDTH,eN=a.REF_ZONE_SHOW_ICON_WIDTH,ex=a.REF_ZONE_TEXT_HEIGHT,eA=a.ResizableHandleCorrection,eD=a.RowAdornmentInvalidateEvent,eH=a.SCROLL_TO_ALIGNMENT_AUTO,eG=a.SCROLL_TO_ALIGNMENT_CENTER,ek=a.ScrollbarContainer,eW=a.TIMESTAMP_FORMAT_DATE_TIME,ez=a.TINY_FILES_READOUT_FONT_SIZE,eL=a.TINY_FILES_READOUT_RIGHT_MARGIN,eF=a.TINY_ICON_RIGHT_MARGIN,eP=a.TINY_ICON_SIZE,eB=a.allMetadataTypes,eZ=a.changesZone,eU=a.commitAuthorZone,ej=a.commitDateTimeZone,eV=a.commitMessageZone,e$=a.commitNodeType,eY=a.commitShaZone,eK=a.commitZone,eq=a.default,eX=a.emptySetMarker,eQ=a.getHostingServiceName,eJ=a.graphCommitDescDisplayModes,e0=a.graphMarkerMetadata,e1=a.graphMarkerShapeMetadata,e2=a.graphZoneMetaData,e5=a.issueMetadataType,e3=a.lookbackLimitByPeriod,e6=a.mergeConflictNodeType,e4=a.mergeNodeType,e9=a.numGraphColumnsDefault,e7=a.pullRequestMetadataType,e8=a.refIconsPositions,te=a.refTypes,tt=a.refZone,to=a.stashNodeType,tr=a.timelineMsgRowRenderId,ti=a.types,tn=a.unsupportedRebaseWarningNodeType,ts=a.upstreamMetadataType,ta=a.workDirType;export{O as CHANGES_BAR_MIN_WIDTH,N as CHANGES_BAR_RIGHT_MARGIN,x as CHANGES_ZONE_MIN_WIDTH,A as CHANGES_ZONE_SHOW_ICON_WIDTH,D as COMMIT_AUTHOR_ZONE_AVATAR_INNER_DIAMETER,H as COMMIT_AUTHOR_ZONE_AVATAR_OUTER_DIAMETER,G as COMMIT_AUTHOR_ZONE_MIN_WIDTH,k as COMMIT_AUTHOR_ZONE_SHOW_ICON_WIDTH,W as COMMIT_DATE_TIME_ZONE_MIN_WIDTH,z as COMMIT_DATE_TIME_ZONE_SHOW_ICON_WIDTH,L as COMMIT_MESSAGE_ZONE_MIN_WIDTH,F as COMMIT_MESSAGE_ZONE_SHOW_ICON_WIDTH,P as COMMIT_NODE_MIN_ALPHA,B as COMMIT_SHA_ZONE_MIN_WIDTH,Z as COMMIT_SHA_ZONE_SHOW_ICON_WIDTH,U as COMMIT_ZONE_DEFAULT_VIEWPORT_WIDTH_MIN,j as COMMIT_ZONE_EDGE_ARC_PADDING,V as COMMIT_ZONE_EDGE_ARC_RADIUS,$ as COMMIT_ZONE_MARGIN_BOTTOM,Y as COMMIT_ZONE_MARGIN_TOP,K as COMMIT_ZONE_ROW_HEIGHT,q as COMMIT_ZONE_ROW_INNER_HEIGHT,X as COMMIT_ZONE_SHOW_ICON_WIDTH,Q as CommitDateTimeSources,J as DEFAULT_AVATAR_BACKGROUND_COLOR,ee as DEFAULT_COMMIT_SHA_LENGTH,et as DEFAULT_CSS_VARIABLES,eo as DEFAULT_TRANSLATIONS,er as DEFAULT_WORKDIR_STATS,ei as DndComponent,en as GRAPH_HEADER_ROW_HEIGHT,es as GRAPH_ROW_HEIGHT,ea as GRAPH_ROW_INNER_HEIGHT,el as GRAPH_ROW_LAZY_LOAD_COMMITS_OFFSET,eh as GRAPH_ROW_PADDING,ec as GRAPH_SCROLL_MARKER_LANES,ed as GraphColumnMode,eu as GraphMarkerShape,ep as HEADER_ROW_HEIGHT,ef as HEADER_ROW_MARGIN_BOTTOM,em as INLINE_SUMMARY_MARGIN_LEFT,eg as LeftPanelToGraphMarginGap,e_ as NUM_COLUMNS_SUPPORTED_PROP_NAME,ev as NamedKeys,eS as OPACITY_FACTOR_BY_THEME,eR as REF_NODE_ACTIVE_ANNOTATION_ID,ey as REF_NODE_ICON_MARGIN,eT as REF_NODE_ICON_SPACING,eC as REF_NODE_ICON_WIDTH,ew as REF_NODE_OUTER_SPACING,eE as REF_NODE_PINNED_ANNOTATION_ID,eb as REF_ZONE_MARGIN_LEFT,eI as REF_ZONE_MARGIN_RIGHT,eM as REF_ZONE_MAX_REFS_TO_RENDER,eO as REF_ZONE_MIN_WIDTH,eN as REF_ZONE_SHOW_ICON_WIDTH,ex as REF_ZONE_TEXT_HEIGHT,eA as ResizableHandleCorrection,eD as RowAdornmentInvalidateEvent,eH as SCROLL_TO_ALIGNMENT_AUTO,eG as SCROLL_TO_ALIGNMENT_CENTER,ek as ScrollbarContainer,eW as TIMESTAMP_FORMAT_DATE_TIME,ez as TINY_FILES_READOUT_FONT_SIZE,eL as TINY_FILES_READOUT_RIGHT_MARGIN,eF as TINY_ICON_RIGHT_MARGIN,eP as TINY_ICON_SIZE,eB as allMetadataTypes,eZ as changesZone,eU as commitAuthorZone,ej as commitDateTimeZone,eV as commitMessageZone,e$ as commitNodeType,eY as commitShaZone,eK as commitZone,eq as default,eX as emptySetMarker,eQ as getHostingServiceName,eJ as graphCommitDescDisplayModes,e0 as graphMarkerMetadata,e1 as graphMarkerShapeMetadata,e2 as graphZoneMetaData,e5 as issueMetadataType,e3 as lookbackLimitByPeriod,e6 as mergeConflictNodeType,e4 as mergeNodeType,e9 as numGraphColumnsDefault,e7 as pullRequestMetadataType,e8 as refIconsPositions,te as refTypes,tt as refZone,to as stashNodeType,tr as timelineMsgRowRenderId,ti as types,tn as unsupportedRebaseWarningNodeType,ts as upstreamMetadataType,ta as workDirType};