Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

2 Zeilen
42 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3172],{61639:function(we,Ke,l){"use strict";l.d(Ke,{Z:function(){return g}});var re=l(90484),F=l(44378),he=l(86504),se=l(7085),Ee=l(18095),Ne=l(18267),ee=l(94184),Q=l.n(ee),Y=l(67294),T=l(96159);function g(w,J,te,oe){var de=oe.isLeaf,G=oe.expanded,E=oe.loading;if(E)return Y.createElement(se.Z,{className:"".concat(w,"-switcher-loading-icon")});var i;if(te&&(0,re.Z)(te)==="object"&&(i=te.showLeafIcon),de)return te?(0,re.Z)(te)==="object"&&!i?Y.createElement("span",{className:"".concat(w,"-switcher-leaf-line")}):Y.createElement(he.Z,{className:"".concat(w,"-switcher-line-icon")}):null;var f="".concat(w,"-switcher-icon"),s=typeof J=="function"?J({expanded:!!G}):J;return(0,T.l$)(s)?(0,T.Tm)(s,{className:Q()(s.props.className||"",f)}):s||(te?G?Y.createElement(Ee.Z,{className:"".concat(w,"-switcher-line-icon")}):Y.createElement(Ne.Z,{className:"".concat(w,"-switcher-line-icon")}):Y.createElement(F.Z,{className:f}))}},4258:function(we,Ke,l){"use strict";l.d(Ke,{Z:function(){return O}});var re=l(22122),F=l(96156),he=l(81253),se=l(28991),Ee=l(6610),Ne=l(5991),ee=l(63349),Q=l(10379),Y=l(54070),T=l(67294),g=l(94184),w=l.n(g),J=l(64217),te=l(27822),oe=function(S){for(var R=S.prefixCls,t=S.level,x=S.isStart,C=S.isEnd,A="".concat(R,"-indent-unit"),r=[],o=0;o<t;o+=1){var y;r.push(T.createElement("span",{key:o,className:w()(A,(y={},(0,F.Z)(y,"".concat(A,"-start"),x[o]),(0,F.Z)(y,"".concat(A,"-end"),C[o]),y))}))}return T.createElement("span",{"aria-hidden":"true",className:"".concat(R,"-indent")},r)},de=T.memo(oe),G=l(1089),E=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],i="open",f="close",s="---",v=function(D){(0,Q.Z)(R,D);var S=(0,Y.Z)(R);function R(){var t;(0,Ee.Z)(this,R);for(var x=arguments.length,C=new Array(x),A=0;A<x;A++)C[A]=arguments[A];return t=S.call.apply(S,[this].concat(C)),t.state={dragNodeHighlight:!1},t.selectHandle=void 0,t.onSelectorClick=function(r){var o=t.props.context.onNodeClick;o(r,(0,G.F)(t.props)),t.isSelectable()?t.onSelect(r):t.onCheck(r)},t.onSelectorDoubleClick=function(r){var o=t.props.context.onNodeDoubleClick;o(r,(0,G.F)(t.props))},t.onSelect=function(r){if(!t.isDisabled()){var o=t.props.context.onNodeSelect;r.preventDefault(),o(r,(0,G.F)(t.props))}},t.onCheck=function(r){if(!t.isDisabled()){var o=t.props,y=o.disableCheckbox,N=o.checked,H=t.props.context.onNodeCheck;if(!(!t.isCheckable()||y)){r.preventDefault();var ae=!N;H(r,(0,G.F)(t.props),ae)}}},t.onMouseEnter=function(r){var o=t.props.context.onNodeMouseEnter;o(r,(0,G.F)(t.props))},t.onMouseLeave=function(r){var o=t.props.context.onNodeMouseLeave;o(r,(0,G.F)(t.props))},t.onContextMenu=function(r){var o=t.props.context.onNodeContextMenu;o(r,(0,G.F)(t.props))},t.onDragStart=function(r){var o=t.props.context.onNodeDragStart;r.stopPropagation(),t.setState({dragNodeHighlight:!0}),o(r,(0,ee.Z)(t));try{r.dataTransfer.setData("text/plain","")}catch(y){}},t.onDragEnter=function(r){var o=t.props.context.onNodeDragEnter;r.preventDefault(),r.stopPropagation(),o(r,(0,ee.Z)(t))},t.onDragOver=function(r){var o=t.props.context.onNodeDragOver;r.preventDefault(),r.stopPropagation(),o(r,(0,ee.Z)(t))},t.onDragLeave=function(r){var o=t.props.context.onNodeDragLeave;r.stopPropagation(),o(r,(0,ee.Z)(t))},t.onDragEnd=function(r){var o=t.props.context.onNodeDragEnd;r.stopPropagation(),t.setState({dragNodeHighlight:!1}),o(r,(0,ee.Z)(t))},t.onDrop=function(r){var o=t.props.context.onNodeDrop;r.preventDefault(),r.stopPropagation(),t.setState({dragNodeHighlight:!1}),o(r,(0,ee.Z)(t))},t.onExpand=function(r){var o=t.props,y=o.loading,N=o.context.onNodeExpand;y||N(r,(0,G.F)(t.props))},t.setSelectHandle=function(r){t.selectHandle=r},t.getNodeState=function(){var r=t.props.expanded;return t.isLeaf()?null:r?i:f},t.hasChildren=function(){var r=t.props.eventKey,o=t.props.context.keyEntities,y=o[r]||{},N=y.children;return!!(N||[]).length},t.isLeaf=function(){var r=t.props,o=r.isLeaf,y=r.loaded,N=t.props.context.loadData,H=t.hasChildren();return o===!1?!1:o||!N&&!H||N&&y&&!H},t.isDisabled=function(){var r=t.props.disabled,o=t.props.context.disabled;return!!(o||r)},t.isCheckable=function(){var r=t.props.checkable,o=t.props.context.checkable;return!o||r===!1?!1:o},t.syncLoadData=function(r){var o=r.expanded,y=r.loading,N=r.loaded,H=t.props.context,ae=H.loadData,X=H.onNodeLoad;y||ae&&o&&!t.isLeaf()&&!t.hasChildren()&&!N&&X((0,G.F)(t.props))},t.isDraggable=function(){var r=t.props,o=r.data,y=r.context.draggable;return!!(y&&(!y.nodeDraggable||y.nodeDraggable(o)))},t.renderDragHandler=function(){var r=t.props.context,o=r.draggable,y=r.prefixCls;return(o==null?void 0:o.icon)?T.createElement("span",{className:"".concat(y,"-draggable-icon")},o.icon):null},t.renderSwitcherIconDom=function(r){var o=t.props.switcherIcon,y=t.props.context.switcherIcon,N=o||y;return typeof N=="function"?N((0,se.Z)((0,se.Z)({},t.props),{},{isLeaf:r})):N},t.renderSwitcher=function(){var r=t.props.expanded,o=t.props.context.prefixCls;if(t.isLeaf()){var y=t.renderSwitcherIconDom(!0);return y!==!1?T.createElement("span",{className:w()("".concat(o,"-switcher"),"".concat(o,"-switcher-noop"))},y):null}var N=w()("".concat(o,"-switcher"),"".concat(o,"-switcher_").concat(r?i:f)),H=t.renderSwitcherIconDom(!1);return H!==!1?T.createElement("span",{onClick:t.onExpand,className:N},H):null},t.renderCheckbox=function(){var r=t.props,o=r.checked,y=r.halfChecked,N=r.disableCheckbox,H=t.props.context.prefixCls,ae=t.isDisabled(),X=t.isCheckable();if(!X)return null;var B=typeof X!="boolean"?X:null;return T.createElement("span",{className:w()("".concat(H,"-checkbox"),o&&"".concat(H,"-checkbox-checked"),!o&&y&&"".concat(H,"-checkbox-indeterminate"),(ae||N)&&"".concat(H,"-checkbox-disabled")),onClick:t.onCheck},B)},t.renderIcon=function(){var r=t.props.loading,o=t.props.context.prefixCls;return T.createElement("span",{className:w()("".concat(o,"-iconEle"),"".concat(o,"-icon__").concat(t.getNodeState()||"docu"),r&&"".concat(o,"-icon_loading"))})},t.renderSelector=function(){var r=t.state.dragNodeHighlight,o=t.props,y=o.title,N=o.selected,H=o.icon,ae=o.loading,X=o.data,B=t.props.context,q=B.prefixCls,ge=B.showIcon,xe=B.icon,me=B.loadData,ke=B.titleRender,De=t.isDisabled(),fe="".concat(q,"-node-content-wrapper"),Pe;if(ge){var Ce=H||xe;Pe=Ce?T.createElement("span",{className:w()("".concat(q,"-iconEle"),"".concat(q,"-icon__customize"))},typeof Ce=="function"?Ce(t.props):Ce):t.renderIcon()}else me&&ae&&(Pe=t.renderIcon());var p;typeof y=="function"?p=y(X):ke?p=ke(X):p=y;var M=T.createElement("span",{className:"".concat(q,"-title")},p);return T.createElement("span",{ref:t.setSelectHandle,title:typeof y=="string"?y:"",className:w()("".concat(fe),"".concat(fe,"-").concat(t.getNodeState()||"normal"),!De&&(N||r)&&"".concat(q,"-node-selected")),onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onContextMenu:t.onContextMenu,onClick:t.onSelectorClick,onDoubleClick:t.onSelectorDoubleClick},Pe,M,t.renderDropIndicator())},t.renderDropIndicator=function(){var r=t.props,o=r.disabled,y=r.eventKey,N=t.props.context,H=N.draggable,ae=N.dropLevelOffset,X=N.dropPosition,B=N.prefixCls,q=N.indent,ge=N.dropIndicatorRender,xe=N.dragOverNodeKey,me=N.direction,ke=H!==!1,De=!o&&ke&&xe===y;return De?ge({dropPosition:X,dropLevelOffset:ae,indent:q,prefixCls:B,direction:me}):null},t}return(0,Ne.Z)(R,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var x=this.props.selectable,C=this.props.context.selectable;return typeof x=="boolean"?x:C}},{key:"render",value:function(){var x,C=this.props,A=C.eventKey,r=C.className,o=C.style,y=C.dragOver,N=C.dragOverGapTop,H=C.dragOverGapBottom,ae=C.isLeaf,X=C.isStart,B=C.isEnd,q=C.expanded,ge=C.selected,xe=C.checked,me=C.halfChecked,ke=C.loading,De=C.domRef,fe=C.active,Pe=C.data,Ce=C.onMouseMove,p=C.selectable,M=(0,he.Z)(C,E),L=this.props.context,e=L.prefixCls,K=L.filterTreeNode,z=L.keyEntities,_=L.dropContainerKey,n=L.dropTargetKey,d=L.draggingNodeKey,a=this.isDisabled(),u=(0,J.Z)(M,{aria:!0,data:!0}),m=z[A]||{},b=m.level,P=B[B.length-1],k=this.isDraggable(),Z=!a&&k,$=d===A,c=p!==void 0?{"aria-selected":!!p}:void 0;return T.createElement("div",(0,re.Z)({ref:De,className:w()(r,"".concat(e,"-treenode"),(x={},(0,F.Z)(x,"".concat(e,"-treenode-disabled"),a),(0,F.Z)(x,"".concat(e,"-treenode-switcher-").concat(q?"open":"close"),!ae),(0,F.Z)(x,"".concat(e,"-treenode-checkbox-checked"),xe),(0,F.Z)(x,"".concat(e,"-treenode-checkbox-indeterminate"),me),(0,F.Z)(x,"".concat(e,"-treenode-selected"),ge),(0,F.Z)(x,"".concat(e,"-treenode-loading"),ke),(0,F.Z)(x,"".concat(e,"-treenode-active"),fe),(0,F.Z)(x,"".concat(e,"-treenode-leaf-last"),P),(0,F.Z)(x,"".concat(e,"-treenode-draggable"),Z),(0,F.Z)(x,"dragging",$),(0,F.Z)(x,"drop-target",n===A),(0,F.Z)(x,"drop-container",_===A),(0,F.Z)(x,"drag-over",!a&&y),(0,F.Z)(x,"drag-over-gap-top",!a&&N),(0,F.Z)(x,"drag-over-gap-bottom",!a&&H),(0,F.Z)(x,"filter-node",K&&K((0,G.F)(this.props))),x)),style:o,draggable:Z,"aria-grabbed":$,onDragStart:Z?this.onDragStart:void 0,onDragEnter:k?this.onDragEnter:void 0,onDragOver:k?this.onDragOver:void 0,onDragLeave:k?this.onDragLeave:void 0,onDrop:k?this.onDrop:void 0,onDragEnd:k?this.onDragEnd:void 0,onMouseMove:Ce},c,u),T.createElement(de,{prefixCls:e,level:b,isStart:X,isEnd:B}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),R}(T.Component),h=function(S){return T.createElement(te.k.Consumer,null,function(R){return T.createElement(v,(0,re.Z)({},S,{context:R}))})};h.displayName="TreeNode",h.defaultProps={title:s},h.isTreeNode=1;var O=h},27822:function(we,Ke,l){"use strict";l.d(Ke,{k:function(){return F}});var re=l(67294),F=re.createContext(null)},76513:function(we,Ke,l){"use strict";l.d(Ke,{O:function(){return O.Z},Z:function(){return Ce}});var re=l(22122),F=l(96156),he=l(90484),se=l(28991),Ee=l(85061),Ne=l(6610),ee=l(5991),Q=l(63349),Y=l(10379),T=l(54070),g=l(67294),w=l(15105),J=l(80334),te=l(64217),oe=l(94184),de=l.n(oe),G=l(27822),E=l(10225),i=l(1089),f=l(28481),s=l(81253),v=l(7606),h=l(63441),O=l(4258),D=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],S=function(M,L){var e=M.className,K=M.style,z=M.motion,_=M.motionNodes,n=M.motionType,d=M.onMotionStart,a=M.onMotionEnd,u=M.active,m=M.treeNodeRequiredProps,b=(0,s.Z)(M,D),P=g.useState(!0),k=(0,f.Z)(P,2),Z=k[0],$=k[1],c=g.useContext(G.k),W=c.prefixCls,U=g.useRef(!1),I=function(){U.current||a(),U.current=!0};return(0,g.useEffect)(function(){_&&n==="hide"&&Z&&$(!1)},[_]),(0,g.useEffect)(function(){return _&&d(),function(){_&&I()}},[]),_?g.createElement(h.Z,(0,re.Z)({ref:L,visible:Z},z,{motionAppear:n==="show",onAppearEnd:I,onLeaveEnd:I}),function(j,V){var ie=j.className,le=j.style;return g.createElement("div",{ref:V,className:de()("".concat(W,"-treenode-motion"),ie),style:le},_.map(function(ne){var pe=(0,re.Z)({},ne.data),ue=ne.title,ve=ne.key,ye=ne.isStart,Se=ne.isEnd;delete pe.children;var be=(0,i.H8)(ve,m);return g.createElement(O.Z,(0,re.Z)({},pe,be,{title:ue,active:u,data:ne.data,key:ve,isStart:ye,isEnd:Se}))}))}):g.createElement(O.Z,(0,re.Z)({domRef:L,className:e,style:K},b,{active:u}))};S.displayName="MotionTreeNode";var R=g.forwardRef(S),t=R;function x(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],L=p.length,e=M.length;if(Math.abs(L-e)!==1)return{add:!1,key:null};function K(z,_){var n=new Map;z.forEach(function(a){n.set(a,!0)});var d=_.filter(function(a){return!n.has(a)});return d.length===1?d[0]:null}return L<e?{add:!0,key:K(p,M)}:{add:!1,key:K(M,p)}}function C(p,M,L){var e=p.findIndex(function(n){return n.key===L}),K=p[e+1],z=M.findIndex(function(n){return n.key===L});if(K){var _=M.findIndex(function(n){return n.key===K.key});return M.slice(z+1,_)}return M.slice(z+1)}var A=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],r={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},o=function(){},y="RC_TREE_MOTION_".concat(Math.random()),N={key:y},H={key:y,level:0,index:0,pos:"0",node:N,nodes:[N]},ae={parent:null,children:[],pos:H.pos,data:N,title:null,key:y,isStart:[],isEnd:[]};function X(p,M,L,e){return M===!1||!L?p:p.slice(0,Math.ceil(L/e)+1)}function B(p){var M=p.key,L=p.pos;return(0,i.km)(M,L)}function q(p){for(var M=String(p.data.key),L=p;L.parent;)L=L.parent,M="".concat(L.data.key," > ").concat(M);return M}var ge=g.forwardRef(function(p,M){var L=p.prefixCls,e=p.data,K=p.selectable,z=p.checkable,_=p.expandedKeys,n=p.selectedKeys,d=p.checkedKeys,a=p.loadedKeys,u=p.loadingKeys,m=p.halfCheckedKeys,b=p.keyEntities,P=p.disabled,k=p.dragging,Z=p.dragOverNodeKey,$=p.dropPosition,c=p.motion,W=p.height,U=p.itemHeight,I=p.virtual,j=p.focusable,V=p.activeItem,ie=p.focused,le=p.tabIndex,ne=p.onKeyDown,pe=p.onFocus,ue=p.onBlur,ve=p.onActiveChange,ye=p.onListChangeStart,Se=p.onListChangeEnd,be=(0,s.Z)(p,A),Me=g.useRef(null),Oe=g.useRef(null);g.useImperativeHandle(M,function(){return{scrollTo:function(Te){Me.current.scrollTo(Te)},getIndentWidth:function(){return Oe.current.offsetWidth}}});var $e=g.useState(_),He=(0,f.Z)($e,2),Ye=He[0],Xe=He[1],Ve=g.useState(e),_e=(0,f.Z)(Ve,2),Le=_e[0],je=_e[1],Je=g.useState(e),Ge=(0,f.Z)(Je,2),Qe=Ge[0],Ue=Ge[1],qe=g.useState([]),Ze=(0,f.Z)(qe,2),dt=Ze[0],et=Ze[1],it=g.useState(null),at=(0,f.Z)(it,2),st=at[0],tt=at[1],rt=g.useRef(e);rt.current=e;function nt(){var ce=rt.current;je(ce),Ue(ce),et([]),tt(null),Se()}g.useEffect(function(){Xe(_);var ce=x(Ye,_);if(ce.key!==null)if(ce.add){var Te=Le.findIndex(function(Be){var We=Be.key;return We===ce.key}),Ie=X(C(Le,e,ce.key),I,W,U),Fe=Le.slice();Fe.splice(Te+1,0,ae),Ue(Fe),et(Ie),tt("show")}else{var Re=e.findIndex(function(Be){var We=Be.key;return We===ce.key}),Ae=X(C(e,Le,ce.key),I,W,U),ze=e.slice();ze.splice(Re+1,0,ae),Ue(ze),et(Ae),tt("hide")}else Le!==e&&(je(e),Ue(e))},[_,e]),g.useEffect(function(){k||nt()},[k]);var lt=c?Qe:e,ot={expandedKeys:_,selectedKeys:n,loadedKeys:a,loadingKeys:u,checkedKeys:d,halfCheckedKeys:m,dragOverNodeKey:Z,dropPosition:$,keyEntities:b};return g.createElement(g.Fragment,null,ie&&V&&g.createElement("span",{style:r,"aria-live":"assertive"},q(V)),g.createElement("div",null,g.createElement("input",{style:r,disabled:j===!1||P,tabIndex:j!==!1?le:null,onKeyDown:ne,onFocus:pe,onBlur:ue,value:"",onChange:o,"aria-label":"for screen reader"})),g.createElement("div",{className:"".concat(L,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},g.createElement("div",{className:"".concat(L,"-indent")},g.createElement("div",{ref:Oe,className:"".concat(L,"-indent-unit")}))),g.createElement(v.Z,(0,re.Z)({},be,{data:lt,itemKey:B,height:W,fullHeight:!1,virtual:I,itemHeight:U,prefixCls:"".concat(L,"-list"),ref:Me,onVisibleChange:function(Te,Ie){var Fe=new Set(Te),Re=Ie.filter(function(Ae){return!Fe.has(Ae)});Re.some(function(Ae){return B(Ae)===y})&&nt()}}),function(ce){var Te=ce.pos,Ie=(0,re.Z)({},ce.data),Fe=ce.title,Re=ce.key,Ae=ce.isStart,ze=ce.isEnd,Be=(0,i.km)(Re,Te);delete Ie.key,delete Ie.children;var We=(0,i.H8)(Be,ot);return g.createElement(t,(0,re.Z)({},Ie,We,{title:Fe,active:!!V&&Re===V.key,pos:Te,data:ce.data,isStart:Ae,isEnd:ze,motion:c,motionNodes:Re===y?dt:null,motionType:st,onMotionStart:ye,onMotionEnd:nt,treeNodeRequiredProps:ot,onMouseMove:function(){ve(null)}}))}))});ge.displayName="NodeList";var xe=ge,me=l(17341);function ke(p){var M=p.dropPosition,L=p.dropLevelOffset,e=p.indent,K={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(M){case-1:K.top=0,K.left=-L*e;break;case 1:K.bottom=0,K.left=-L*e;break;case 0:K.bottom=0,K.left=e;break}return g.createElement("div",{style:K})}var De=10,fe=function(p){(0,Y.Z)(L,p);var M=(0,T.Z)(L);function L(){var e;(0,Ne.Z)(this,L);for(var K=arguments.length,z=new Array(K),_=0;_<K;_++)z[_]=arguments[_];return e=M.call.apply(M,[this].concat(z)),e.destroyed=!1,e.delayedDragEnterLogic=void 0,e.loadingRetryTimes={},e.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,i.w$)()},e.dragStartMousePosition=null,e.dragNode=void 0,e.currentMouseOverDroppableNodeKey=null,e.listRef=g.createRef(),e.onNodeDragStart=function(n,d){var a=e.state,u=a.expandedKeys,m=a.keyEntities,b=e.props.onDragStart,P=d.props.eventKey;e.dragNode=d,e.dragStartMousePosition={x:n.clientX,y:n.clientY};var k=(0,E._5)(u,P);e.setState({draggingNodeKey:P,dragChildrenKeys:(0,E.wA)(P,m),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(k),window.addEventListener("dragend",e.onWindowDragEnd),b==null||b({event:n,node:(0,i.F)(d.props)})},e.onNodeDragEnter=function(n,d){var a=e.state,u=a.expandedKeys,m=a.keyEntities,b=a.dragChildrenKeys,P=a.flattenNodes,k=a.indent,Z=e.props,$=Z.onDragEnter,c=Z.onExpand,W=Z.allowDrop,U=Z.direction,I=d.props,j=I.pos,V=I.eventKey,ie=(0,Q.Z)(e),le=ie.dragNode;if(e.currentMouseOverDroppableNodeKey!==V&&(e.currentMouseOverDroppableNodeKey=V),!le){e.resetDragState();return}var ne=(0,E.OM)(n,le,d,k,e.dragStartMousePosition,W,P,m,u,U),pe=ne.dropPosition,ue=ne.dropLevelOffset,ve=ne.dropTargetKey,ye=ne.dropContainerKey,Se=ne.dropTargetPos,be=ne.dropAllowed,Me=ne.dragOverNodeKey;if(b.indexOf(ve)!==-1||!be){e.resetDragState();return}if(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach(function(Oe){clearTimeout(e.delayedDragEnterLogic[Oe])}),le.props.eventKey!==d.props.eventKey&&(n.persist(),e.delayedDragEnterLogic[j]=window.setTimeout(function(){if(e.state.draggingNodeKey!==null){var Oe=(0,Ee.Z)(u),$e=m[d.props.eventKey];$e&&($e.children||[]).length&&(Oe=(0,E.L0)(u,d.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys(Oe),c==null||c(Oe,{node:(0,i.F)(d.props),expanded:!0,nativeEvent:n.nativeEvent})}},800)),le.props.eventKey===ve&&ue===0){e.resetDragState();return}e.setState({dragOverNodeKey:Me,dropPosition:pe,dropLevelOffset:ue,dropTargetKey:ve,dropContainerKey:ye,dropTargetPos:Se,dropAllowed:be}),$==null||$({event:n,node:(0,i.F)(d.props),expandedKeys:u})},e.onNodeDragOver=function(n,d){var a=e.state,u=a.dragChildrenKeys,m=a.flattenNodes,b=a.keyEntities,P=a.expandedKeys,k=a.indent,Z=e.props,$=Z.onDragOver,c=Z.allowDrop,W=Z.direction,U=(0,Q.Z)(e),I=U.dragNode;if(!!I){var j=(0,E.OM)(n,I,d,k,e.dragStartMousePosition,c,m,b,P,W),V=j.dropPosition,ie=j.dropLevelOffset,le=j.dropTargetKey,ne=j.dropContainerKey,pe=j.dropAllowed,ue=j.dropTargetPos,ve=j.dragOverNodeKey;u.indexOf(le)!==-1||!pe||(I.props.eventKey===le&&ie===0?e.state.dropPosition===null&&e.state.dropLevelOffset===null&&e.state.dropTargetKey===null&&e.state.dropContainerKey===null&&e.state.dropTargetPos===null&&e.state.dropAllowed===!1&&e.state.dragOverNodeKey===null||e.resetDragState():V===e.state.dropPosition&&ie===e.state.dropLevelOffset&&le===e.state.dropTargetKey&&ne===e.state.dropContainerKey&&ue===e.state.dropTargetPos&&pe===e.state.dropAllowed&&ve===e.state.dragOverNodeKey||e.setState({dropPosition:V,dropLevelOffset:ie,dropTargetKey:le,dropContainerKey:ne,dropTargetPos:ue,dropAllowed:pe,dragOverNodeKey:ve}),$==null||$({event:n,node:(0,i.F)(d.props)}))}},e.onNodeDragLeave=function(n,d){e.currentMouseOverDroppableNodeKey===d.props.eventKey&&!n.currentTarget.contains(n.relatedTarget)&&(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var a=e.props.onDragLeave;a==null||a({event:n,node:(0,i.F)(d.props)})},e.onWindowDragEnd=function(n){e.onNodeDragEnd(n,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDragEnd=function(n,d){var a=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),a==null||a({event:n,node:(0,i.F)(d.props)}),e.dragNode=null},e.onNodeDrop=function(n,d){var a,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,m=e.state,b=m.dragChildrenKeys,P=m.dropPosition,k=m.dropTargetKey,Z=m.dropTargetPos,$=m.dropAllowed;if(!!$){var c=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),k!==null){var W=(0,se.Z)((0,se.Z)({},(0,i.H8)(k,e.getTreeNodeRequiredProps())),{},{active:((a=e.getActiveItem())===null||a===void 0?void 0:a.key)===k,data:e.state.keyEntities[k].node}),U=b.indexOf(k)!==-1;(0,J.ZP)(!U,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var I=(0,E.yx)(Z),j={event:n,node:(0,i.F)(W),dragNode:e.dragNode?(0,i.F)(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(b),dropToGap:P!==0,dropPosition:P+Number(I[I.length-1])};u||c==null||c(j),e.dragNode=null}}},e.cleanDragState=function(){var n=e.state.draggingNodeKey;n!==null&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(n,d){var a=e.state,u=a.expandedKeys,m=a.flattenNodes,b=d.expanded,P=d.key,k=d.isLeaf;if(!(k||n.shiftKey||n.metaKey||n.ctrlKey)){var Z=m.filter(function(c){return c.key===P})[0],$=(0,i.F)((0,se.Z)((0,se.Z)({},(0,i.H8)(P,e.getTreeNodeRequiredProps())),{},{data:Z.data}));e.setExpandedKeys(b?(0,E._5)(u,P):(0,E.L0)(u,P)),e.onNodeExpand(n,$)}},e.onNodeClick=function(n,d){var a=e.props,u=a.onClick,m=a.expandAction;m==="click"&&e.triggerExpandActionExpand(n,d),u==null||u(n,d)},e.onNodeDoubleClick=function(n,d){var a=e.props,u=a.onDoubleClick,m=a.expandAction;m==="doubleClick"&&e.triggerExpandActionExpand(n,d),u==null||u(n,d)},e.onNodeSelect=function(n,d){var a=e.state.selectedKeys,u=e.state,m=u.keyEntities,b=u.fieldNames,P=e.props,k=P.onSelect,Z=P.multiple,$=d.selected,c=d[b.key],W=!$;W?Z?a=(0,E.L0)(a,c):a=[c]:a=(0,E._5)(a,c);var U=a.map(function(I){var j=m[I];return j?j.node:null}).filter(function(I){return I});e.setUncontrolledState({selectedKeys:a}),k==null||k(a,{event:"select",selected:W,node:d,selectedNodes:U,nativeEvent:n.nativeEvent})},e.onNodeCheck=function(n,d,a){var u=e.state,m=u.keyEntities,b=u.checkedKeys,P=u.halfCheckedKeys,k=e.props,Z=k.checkStrictly,$=k.onCheck,c=d.key,W,U={event:"check",node:d,checked:a,nativeEvent:n.nativeEvent};if(Z){var I=a?(0,E.L0)(b,c):(0,E._5)(b,c),j=(0,E._5)(P,c);W={checked:I,halfChecked:j},U.checkedNodes=I.map(function(ue){return m[ue]}).filter(function(ue){return ue}).map(function(ue){return ue.node}),e.setUncontrolledState({checkedKeys:I})}else{var V=(0,me.S)([].concat((0,Ee.Z)(b),[c]),!0,m),ie=V.checkedKeys,le=V.halfCheckedKeys;if(!a){var ne=new Set(ie);ne.delete(c);var pe=(0,me.S)(Array.from(ne),{checked:!1,halfCheckedKeys:le},m);ie=pe.checkedKeys,le=pe.halfCheckedKeys}W=ie,U.checkedNodes=[],U.checkedNodesPositions=[],U.halfCheckedKeys=le,ie.forEach(function(ue){var ve=m[ue];if(!!ve){var ye=ve.node,Se=ve.pos;U.checkedNodes.push(ye),U.checkedNodesPositions.push({node:ye,pos:Se})}}),e.setUncontrolledState({checkedKeys:ie},!1,{halfCheckedKeys:le})}$==null||$(W,U)},e.onNodeLoad=function(n){var d=n.key,a=new Promise(function(u,m){e.setState(function(b){var P=b.loadedKeys,k=P===void 0?[]:P,Z=b.loadingKeys,$=Z===void 0?[]:Z,c=e.props,W=c.loadData,U=c.onLoad;if(!W||k.indexOf(d)!==-1||$.indexOf(d)!==-1)return null;var I=W(n);return I.then(function(){var j=e.state.loadedKeys,V=(0,E.L0)(j,d);U==null||U(V,{event:"load",node:n}),e.setUncontrolledState({loadedKeys:V}),e.setState(function(ie){return{loadingKeys:(0,E._5)(ie.loadingKeys,d)}}),u()}).catch(function(j){if(e.setState(function(ie){return{loadingKeys:(0,E._5)(ie.loadingKeys,d)}}),e.loadingRetryTimes[d]=(e.loadingRetryTimes[d]||0)+1,e.loadingRetryTimes[d]>=De){var V=e.state.loadedKeys;(0,J.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,E.L0)(V,d)}),u()}m(j)}),{loadingKeys:(0,E.L0)($,d)}})});return a.catch(function(){}),a},e.onNodeMouseEnter=function(n,d){var a=e.props.onMouseEnter;a==null||a({event:n,node:d})},e.onNodeMouseLeave=function(n,d){var a=e.props.onMouseLeave;a==null||a({event:n,node:d})},e.onNodeContextMenu=function(n,d){var a=e.props.onRightClick;a&&(n.preventDefault(),a({event:n,node:d}))},e.onFocus=function(){var n=e.props.onFocus;e.setState({focused:!0});for(var d=arguments.length,a=new Array(d),u=0;u<d;u++)a[u]=arguments[u];n==null||n.apply(void 0,a)},e.onBlur=function(){var n=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var d=arguments.length,a=new Array(d),u=0;u<d;u++)a[u]=arguments[u];n==null||n.apply(void 0,a)},e.getTreeNodeRequiredProps=function(){var n=e.state,d=n.expandedKeys,a=n.selectedKeys,u=n.loadedKeys,m=n.loadingKeys,b=n.checkedKeys,P=n.halfCheckedKeys,k=n.dragOverNodeKey,Z=n.dropPosition,$=n.keyEntities;return{expandedKeys:d||[],selectedKeys:a||[],loadedKeys:u||[],loadingKeys:m||[],checkedKeys:b||[],halfCheckedKeys:P||[],dragOverNodeKey:k,dropPosition:Z,keyEntities:$}},e.setExpandedKeys=function(n){var d=e.state,a=d.treeData,u=d.fieldNames,m=(0,i.oH)(a,n,u);e.setUncontrolledState({expandedKeys:n,flattenNodes:m},!0)},e.onNodeExpand=function(n,d){var a=e.state.expandedKeys,u=e.state,m=u.listChanging,b=u.fieldNames,P=e.props,k=P.onExpand,Z=P.loadData,$=d.expanded,c=d[b.key];if(!m){var W=a.indexOf(c),U=!$;if((0,J.ZP)($&&W!==-1||!$&&W===-1,"Expand state not sync with index check"),U?a=(0,E.L0)(a,c):a=(0,E._5)(a,c),e.setExpandedKeys(a),k==null||k(a,{node:d,expanded:U,nativeEvent:n.nativeEvent}),U&&Z){var I=e.onNodeLoad(d);I&&I.then(function(){var j=(0,i.oH)(e.state.treeData,a,b);e.setUncontrolledState({flattenNodes:j})}).catch(function(){var j=e.state.expandedKeys,V=(0,E._5)(j,c);e.setExpandedKeys(V)})}}},e.onListChangeStart=function(){e.setUncontrolledState({listChanging:!0})},e.onListChangeEnd=function(){setTimeout(function(){e.setUncontrolledState({listChanging:!1})})},e.onActiveChange=function(n){var d=e.state.activeKey,a=e.props.onActiveChange;d!==n&&(e.setState({activeKey:n}),n!==null&&e.scrollTo({key:n}),a==null||a(n))},e.getActiveItem=function(){var n=e.state,d=n.activeKey,a=n.flattenNodes;return d===null?null:a.find(function(u){var m=u.key;return m===d})||null},e.offsetActiveKey=function(n){var d=e.state,a=d.flattenNodes,u=d.activeKey,m=a.findIndex(function(k){var Z=k.key;return Z===u});m===-1&&n<0&&(m=a.length),m=(m+n+a.length)%a.length;var b=a[m];if(b){var P=b.key;e.onActiveChange(P)}else e.onActiveChange(null)},e.onKeyDown=function(n){var d=e.state,a=d.activeKey,u=d.expandedKeys,m=d.checkedKeys,b=d.fieldNames,P=e.props,k=P.onKeyDown,Z=P.checkable,$=P.selectable;switch(n.which){case w.Z.UP:{e.offsetActiveKey(-1),n.preventDefault();break}case w.Z.DOWN:{e.offsetActiveKey(1),n.preventDefault();break}}var c=e.getActiveItem();if(c&&c.data){var W=e.getTreeNodeRequiredProps(),U=c.data.isLeaf===!1||!!(c.data[b.children]||[]).length,I=(0,i.F)((0,se.Z)((0,se.Z)({},(0,i.H8)(a,W)),{},{data:c.data,active:!0}));switch(n.which){case w.Z.LEFT:{U&&u.includes(a)?e.onNodeExpand({},I):c.parent&&e.onActiveChange(c.parent.key),n.preventDefault();break}case w.Z.RIGHT:{U&&!u.includes(a)?e.onNodeExpand({},I):c.children&&c.children.length&&e.onActiveChange(c.children[0].key),n.preventDefault();break}case w.Z.ENTER:case w.Z.SPACE:{Z&&!I.disabled&&I.checkable!==!1&&!I.disableCheckbox?e.onNodeCheck({},I,!m.includes(a)):!Z&&$&&!I.disabled&&I.selectable!==!1&&e.onNodeSelect({},I);break}}}k==null||k(n)},e.setUncontrolledState=function(n){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!e.destroyed){var u=!1,m=!0,b={};Object.keys(n).forEach(function(P){if(P in e.props){m=!1;return}u=!0,b[P]=n[P]}),u&&(!d||m)&&e.setState((0,se.Z)((0,se.Z)({},b),a))}},e.scrollTo=function(n){e.listRef.current.scrollTo(n)},e}return(0,ee.Z)(L,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var K=this.props.activeKey;K!==void 0&&K!==this.state.activeKey&&(this.setState({activeKey:K}),K!==null&&this.scrollTo({key:K}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var K,z=this.state,_=z.focused,n=z.flattenNodes,d=z.keyEntities,a=z.draggingNodeKey,u=z.activeKey,m=z.dropLevelOffset,b=z.dropContainerKey,P=z.dropTargetKey,k=z.dropPosition,Z=z.dragOverNodeKey,$=z.indent,c=this.props,W=c.prefixCls,U=c.className,I=c.style,j=c.showLine,V=c.focusable,ie=c.tabIndex,le=ie===void 0?0:ie,ne=c.selectable,pe=c.showIcon,ue=c.icon,ve=c.switcherIcon,ye=c.draggable,Se=c.checkable,be=c.checkStrictly,Me=c.disabled,Oe=c.motion,$e=c.loadData,He=c.filterTreeNode,Ye=c.height,Xe=c.itemHeight,Ve=c.virtual,_e=c.titleRender,Le=c.dropIndicatorRender,je=c.onContextMenu,Je=c.onScroll,Ge=c.direction,Qe=c.rootClassName,Ue=c.rootStyle,qe=(0,te.Z)(this.props,{aria:!0,data:!0}),Ze;return ye&&((0,he.Z)(ye)==="object"?Ze=ye:typeof ye=="function"?Ze={nodeDraggable:ye}:Ze={}),g.createElement(G.k.Provider,{value:{prefixCls:W,selectable:ne,showIcon:pe,icon:ue,switcherIcon:ve,draggable:Ze,draggingNodeKey:a,checkable:Se,checkStrictly:be,disabled:Me,keyEntities:d,dropLevelOffset:m,dropContainerKey:b,dropTargetKey:P,dropPosition:k,dragOverNodeKey:Z,indent:$,direction:Ge,dropIndicatorRender:Le,loadData:$e,filterTreeNode:He,titleRender:_e,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},g.createElement("div",{role:"tree",className:de()(W,U,Qe,(K={},(0,F.Z)(K,"".concat(W,"-show-line"),j),(0,F.Z)(K,"".concat(W,"-focused"),_),(0,F.Z)(K,"".concat(W,"-active-focused"),u!==null),K)),style:Ue},g.createElement(xe,(0,re.Z)({ref:this.listRef,prefixCls:W,style:I,data:n,disabled:Me,selectable:ne,checkable:!!Se,motion:Oe,dragging:a!==null,height:Ye,itemHeight:Xe,virtual:Ve,focusable:V,focused:_,tabIndex:le,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:je,onScroll:Je},this.getTreeNodeRequiredProps(),qe))))}}],[{key:"getDerivedStateFromProps",value:function(K,z){var _=z.prevProps,n={prevProps:K};function d(V){return!_&&V in K||_&&_[V]!==K[V]}var a,u=z.fieldNames;if(d("fieldNames")&&(u=(0,i.w$)(K.fieldNames),n.fieldNames=u),d("treeData")?a=K.treeData:d("children")&&((0,J.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=(0,i.zn)(K.children)),a){n.treeData=a;var m=(0,i.I8)(a,{fieldNames:u});n.keyEntities=(0,se.Z)((0,F.Z)({},y,H),m.keyEntities)}var b=n.keyEntities||z.keyEntities;if(d("expandedKeys")||_&&d("autoExpandParent"))n.expandedKeys=K.autoExpandParent||!_&&K.defaultExpandParent?(0,E.r7)(K.expandedKeys,b):K.expandedKeys;else if(!_&&K.defaultExpandAll){var P=(0,se.Z)({},b);delete P[y],n.expandedKeys=Object.keys(P).map(function(V){return P[V].key})}else!_&&K.defaultExpandedKeys&&(n.expandedKeys=K.autoExpandParent||K.defaultExpandParent?(0,E.r7)(K.defaultExpandedKeys,b):K.defaultExpandedKeys);if(n.expandedKeys||delete n.expandedKeys,a||n.expandedKeys){var k=(0,i.oH)(a||z.treeData,n.expandedKeys||z.expandedKeys,u);n.flattenNodes=k}if(K.selectable&&(d("selectedKeys")?n.selectedKeys=(0,E.BT)(K.selectedKeys,K):!_&&K.defaultSelectedKeys&&(n.selectedKeys=(0,E.BT)(K.defaultSelectedKeys,K))),K.checkable){var Z;if(d("checkedKeys")?Z=(0,E.E6)(K.checkedKeys)||{}:!_&&K.defaultCheckedKeys?Z=(0,E.E6)(K.defaultCheckedKeys)||{}:a&&(Z=(0,E.E6)(K.checkedKeys)||{checkedKeys:z.checkedKeys,halfCheckedKeys:z.halfCheckedKeys}),Z){var $=Z,c=$.checkedKeys,W=c===void 0?[]:c,U=$.halfCheckedKeys,I=U===void 0?[]:U;if(!K.checkStrictly){var j=(0,me.S)(W,!0,b);W=j.checkedKeys,I=j.halfCheckedKeys}n.checkedKeys=W,n.halfCheckedKeys=I}}return d("loadedKeys")&&(n.loadedKeys=K.loadedKeys),n}}]),L}(g.Component);fe.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:ke,allowDrop:function(){return!0},expandAction:!1},fe.TreeNode=O.Z;var Pe=fe,Ce=Pe},10225:function(we,Ke,l){"use strict";l.d(Ke,{_5:function(){return ee},L0:function(){return Q},yx:function(){return Y},bt:function(){return T},Ds:function(){return g},wA:function(){return w},OM:function(){return oe},BT:function(){return de},E6:function(){return i},r7:function(){return f}});var re=l(85061),F=l(90484),he=l(67294),se=l(80334),Ee=l(4258),Ne=null;function ee(s,v){if(!s)return[];var h=s.slice(),O=h.indexOf(v);return O>=0&&h.splice(O,1),h}function Q(s,v){var h=(s||[]).slice();return h.indexOf(v)===-1&&h.push(v),h}function Y(s){return s.split("-")}function T(s,v){return"".concat(s,"-").concat(v)}function g(s){return s&&s.type&&s.type.isTreeNode}function w(s,v){var h=[],O=v[s];function D(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];S.forEach(function(R){var t=R.key,x=R.children;h.push(t),D(x)})}return D(O.children),h}function J(s){if(s.parent){var v=Y(s.pos);return Number(v[v.length-1])===s.parent.children.length-1}return!1}function te(s){var v=Y(s.pos);return Number(v[v.length-1])===0}function oe(s,v,h,O,D,S,R,t,x,C){var A,r=s.clientX,o=s.clientY,y=s.target.getBoundingClientRect(),N=y.top,H=y.height,ae=(C==="rtl"?-1:1)*(((D==null?void 0:D.x)||0)-r),X=(ae-12)/O,B=t[h.props.eventKey];if(o<N+H/2){var q=R.findIndex(function(e){return e.key===B.key}),ge=q<=0?0:q-1,xe=R[ge].key;B=t[xe]}var me=B.key,ke=B,De=B.key,fe=0,Pe=0;if(!x.includes(me))for(var Ce=0;Ce<X&&J(B);Ce+=1)B=B.parent,Pe+=1;var p=v.props.data,M=B.node,L=!0;return te(B)&&B.level===0&&o<N+H/2&&S({dragNode:p,dropNode:M,dropPosition:-1})&&B.key===h.props.eventKey?fe=-1:(ke.children||[]).length&&x.includes(De)?S({dragNode:p,dropNode:M,dropPosition:0})?fe=0:L=!1:Pe===0?X>-1.5?S({dragNode:p,dropNode:M,dropPosition:1})?fe=1:L=!1:S({dragNode:p,dropNode:M,dropPosition:0})?fe=0:S({dragNode:p,dropNode:M,dropPosition:1})?fe=1:L=!1:S({dragNode:p,dropNode:M,dropPosition:1})?fe=1:L=!1,{dropPosition:fe,dropLevelOffset:Pe,dropTargetKey:B.key,dropTargetPos:B.pos,dragOverNodeKey:De,dropContainerKey:fe===0?null:((A=B.parent)===null||A===void 0?void 0:A.key)||null,dropAllowed:L}}function de(s,v){if(!!s){var h=v.multiple;return h?s.slice():s.length?[s[0]]:s}}var G=function(v){return v};function E(s,v){if(!s)return[];var h=v||{},O=h.processProps,D=O===void 0?G:O,S=Array.isArray(s)?s:[s];return S.map(function(R){var t=R.children,x=_objectWithoutProperties(R,Ne),C=E(t,v);return React.createElement(TreeNode,_extends({key:x.key},D(x)),C)})}function i(s){if(!s)return null;var v;if(Array.isArray(s))v={checkedKeys:s,halfCheckedKeys:void 0};else if((0,F.Z)(s)==="object")v={checkedKeys:s.checked||void 0,halfCheckedKeys:s.halfChecked||void 0};else return(0,se.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return v}function f(s,v){var h=new Set;function O(D){if(!h.has(D)){var S=v[D];if(!!S){h.add(D);var R=S.parent,t=S.node;t.disabled||R&&O(R.key)}}}return(s||[]).forEach(function(D){O(D)}),(0,re.Z)(h)}},17341:function(we,Ke,l){"use strict";l.d(Ke,{S:function(){return Ne}});var re=l(80334);function F(ee,Q){var Y=new Set;return ee.forEach(function(T){Q.has(T)||Y.add(T)}),Y}function he(ee){var Q=ee||{},Y=Q.disabled,T=Q.disableCheckbox,g=Q.checkable;return!!(Y||T)||g===!1}function se(ee,Q,Y,T){for(var g=new Set(ee),w=new Set,J=0;J<=Y;J+=1){var te=Q.get(J)||new Set;te.forEach(function(E){var i=E.key,f=E.node,s=E.children,v=s===void 0?[]:s;g.has(i)&&!T(f)&&v.filter(function(h){return!T(h.node)}).forEach(function(h){g.add(h.key)})})}for(var oe=new Set,de=Y;de>=0;de-=1){var G=Q.get(de)||new Set;G.forEach(function(E){var i=E.parent,f=E.node;if(!(T(f)||!E.parent||oe.has(E.parent.key))){if(T(E.parent.node)){oe.add(i.key);return}var s=!0,v=!1;(i.children||[]).filter(function(h){return!T(h.node)}).forEach(function(h){var O=h.key,D=g.has(O);s&&!D&&(s=!1),!v&&(D||w.has(O))&&(v=!0)}),s&&g.add(i.key),v&&w.add(i.key),oe.add(i.key)}})}return{checkedKeys:Array.from(g),halfCheckedKeys:Array.from(F(w,g))}}function Ee(ee,Q,Y,T,g){for(var w=new Set(ee),J=new Set(Q),te=0;te<=T;te+=1){var oe=Y.get(te)||new Set;oe.forEach(function(i){var f=i.key,s=i.node,v=i.children,h=v===void 0?[]:v;!w.has(f)&&!J.has(f)&&!g(s)&&h.filter(function(O){return!g(O.node)}).forEach(function(O){w.delete(O.key)})})}J=new Set;for(var de=new Set,G=T;G>=0;G-=1){var E=Y.get(G)||new Set;E.forEach(function(i){var f=i.parent,s=i.node;if(!(g(s)||!i.parent||de.has(i.parent.key))){if(g(i.parent.node)){de.add(f.key);return}var v=!0,h=!1;(f.children||[]).filter(function(O){return!g(O.node)}).forEach(function(O){var D=O.key,S=w.has(D);v&&!S&&(v=!1),!h&&(S||J.has(D))&&(h=!0)}),v||w.delete(f.key),h&&J.add(f.key),de.add(f.key)}})}return{checkedKeys:Array.from(w),halfCheckedKeys:Array.from(F(J,w))}}function Ne(ee,Q,Y,T){var g=[],w;T?w=T:w=he;var J=new Set(ee.filter(function(G){var E=!!Y[G];return E||g.push(G),E})),te=new Map,oe=0;Object.keys(Y).forEach(function(G){var E=Y[G],i=E.level,f=te.get(i);f||(f=new Set,te.set(i,f)),f.add(E),oe=Math.max(oe,i)}),(0,re.ZP)(!g.length,"Tree missing follow keys: ".concat(g.slice(0,100).map(function(G){return"'".concat(G,"'")}).join(", ")));var de;return Q===!0?de=se(J,te,oe,w):de=Ee(J,Q.halfCheckedKeys,te,oe,w),de}},1089:function(we,Ke,l){"use strict";l.d(Ke,{km:function(){return T},w$:function(){return g},zn:function(){return J},oH:function(){return te},I8:function(){return de},H8:function(){return G},F:function(){return E}});var re=l(90484),F=l(85061),he=l(28991),se=l(81253),Ee=l(98423),Ne=l(50344),ee=l(80334),Q=l(10225),Y=["children"];function T(i,f){return i!=null?i:f}function g(i){var f=i||{},s=f.title,v=f._title,h=f.key,O=f.children,D=s||"title";return{title:D,_title:v||[D],key:h||"key",children:O||"children"}}function w(i,f){var s=new Map;function v(h){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(h||[]).forEach(function(D){var S=D[f.key],R=D[f.children];warning(S!=null,"Tree node must have a certain key: [".concat(O).concat(S,"]"));var t=String(S);warning(!s.has(t)||S===null||S===void 0,"Same 'key' exist in the Tree: ".concat(t)),s.set(t,!0),v(R,"".concat(O).concat(t," > "))})}v(i)}function J(i){function f(s){var v=(0,Ne.Z)(s);return v.map(function(h){if(!(0,Q.Ds)(h))return(0,ee.ZP)(!h,"Tree/TreeNode can only accept TreeNode as children."),null;var O=h.key,D=h.props,S=D.children,R=(0,se.Z)(D,Y),t=(0,he.Z)({key:O},R),x=f(S);return x.length&&(t.children=x),t}).filter(function(h){return h})}return f(i)}function te(i,f,s){var v=g(s),h=v._title,O=v.key,D=v.children,S=new Set(f===!0?[]:f),R=[];function t(x){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return x.map(function(A,r){for(var o=(0,Q.bt)(C?C.pos:"0",r),y=T(A[O],o),N,H=0;H<h.length;H+=1){var ae=h[H];if(A[ae]!==void 0){N=A[ae];break}}var X=(0,he.Z)((0,he.Z)({},(0,Ee.Z)(A,[].concat((0,F.Z)(h),[O,D]))),{},{title:N,key:y,parent:C,pos:o,children:null,data:A,isStart:[].concat((0,F.Z)(C?C.isStart:[]),[r===0]),isEnd:[].concat((0,F.Z)(C?C.isEnd:[]),[r===x.length-1])});return R.push(X),f===!0||S.has(y)?X.children=t(A[D]||[],X):X.children=[],X})}return t(i),R}function oe(i,f,s){var v={};(0,re.Z)(s)==="object"?v=s:v={externalGetKey:s},v=v||{};var h=v,O=h.childrenPropName,D=h.externalGetKey,S=h.fieldNames,R=g(S),t=R.key,x=R.children,C=O||x,A;D?typeof D=="string"?A=function(y){return y[D]}:typeof D=="function"&&(A=function(y){return D(y)}):A=function(y,N){return T(y[t],N)};function r(o,y,N,H){var ae=o?o[C]:i,X=o?(0,Q.bt)(N.pos,y):"0",B=o?[].concat((0,F.Z)(H),[o]):[];if(o){var q=A(o,X),ge={node:o,index:y,pos:X,key:q,parentPos:N.node?N.pos:null,level:N.level+1,nodes:B};f(ge)}ae&&ae.forEach(function(xe,me){r(xe,me,{node:o,pos:X,level:N?N.level+1:-1},B)})}r(null)}function de(i){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=f.initWrapper,v=f.processEntity,h=f.onProcessFinished,O=f.externalGetKey,D=f.childrenPropName,S=f.fieldNames,R=arguments.length>2?arguments[2]:void 0,t=O||R,x={},C={},A={posEntities:x,keyEntities:C};return s&&(A=s(A)||A),oe(i,function(r){var o=r.node,y=r.index,N=r.pos,H=r.key,ae=r.parentPos,X=r.level,B=r.nodes,q={node:o,nodes:B,index:y,key:H,pos:N,level:X},ge=T(H,N);x[N]=q,C[ge]=q,q.parent=x[ae],q.parent&&(q.parent.children=q.parent.children||[],q.parent.children.push(q)),v&&v(q,A)},{externalGetKey:t,childrenPropName:D,fieldNames:S}),h&&h(A),A}function G(i,f){var s=f.expandedKeys,v=f.selectedKeys,h=f.loadedKeys,O=f.loadingKeys,D=f.checkedKeys,S=f.halfCheckedKeys,R=f.dragOverNodeKey,t=f.dropPosition,x=f.keyEntities,C=x[i],A={eventKey:i,expanded:s.indexOf(i)!==-1,selected:v.indexOf(i)!==-1,loaded:h.indexOf(i)!==-1,loading:O.indexOf(i)!==-1,checked:D.indexOf(i)!==-1,halfChecked:S.indexOf(i)!==-1,pos:String(C?C.pos:""),dragOver:R===i&&t===0,dragOverGapTop:R===i&&t===-1,dragOverGapBottom:R===i&&t===1};return A}function E(i){var f=i.data,s=i.expanded,v=i.selected,h=i.checked,O=i.loaded,D=i.loading,S=i.halfChecked,R=i.dragOver,t=i.dragOverGapTop,x=i.dragOverGapBottom,C=i.pos,A=i.active,r=i.eventKey,o=(0,he.Z)((0,he.Z)({},f),{},{expanded:s,selected:v,checked:h,loaded:O,loading:D,halfChecked:S,dragOver:R,dragOverGapTop:t,dragOverGapBottom:x,pos:C,active:A,key:r});return"props"in o||Object.defineProperty(o,"props",{get:function(){return(0,ee.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),i}}),o}}}]);