"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[67390],{86128:function(e,n,t){t.d(n,{Z:function(){return E}});var r=t(87462),o=t(4942),a=t(45987),c=t(1413),i=t(15671),d=t(43144),s=t(97326),l=t(60136),p=t(51630),u=t(67294),f=t(94184),h=t.n(f),v=t(64217),g=t(27822),k=function(e){for(var n=e.prefixCls,t=e.level,r=e.isStart,a=e.isEnd,c="".concat(n,"-indent-unit"),i=[],d=0;d=0&&t.splice(r,1),t}function i(e,n){var t=(e||[]).slice();return-1===t.indexOf(n)&&t.push(n),t}function d(e){return e.split("-")}function s(e,n){return"".concat(e,"-").concat(n)}function l(e){return e&&e.type&&e.type.isTreeNode}function p(e,n){var t=[];return function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];n.forEach((function(n){var r=n.key,o=n.children;t.push(r),e(o)}))}(n[e].children),t}function u(e){if(e.parent){var n=d(e.pos);return Number(n[n.length-1])===e.parent.children.length-1}return!1}function f(e,n,t,r,o,a,c,i,s,l){var p,f=e.clientX,h=e.clientY,v=e.target.getBoundingClientRect(),g=v.top,k=v.height,y=(("rtl"===l?-1:1)*(((null==o?void 0:o.x)||0)-f)-12)/r,x=i[t.props.eventKey];if(h-1.5?a({dragNode:K,dropNode:O,dropPosition:1})?E=1:P=!1:a({dragNode:K,dropNode:O,dropPosition:0})?E=0:a({dragNode:K,dropNode:O,dropPosition:1})?E=1:P=!1:a({dragNode:K,dropNode:O,dropPosition:1})?E=1:P=!1,{dropPosition:E,dropLevelOffset:Z,dropTargetKey:x.key,dropTargetPos:x.pos,dragOverNodeKey:C,dropContainerKey:0===E?null:(null===(p=x.parent)||void 0===p?void 0:p.key)||null,dropAllowed:P}}function h(e,n){if(e)return n.multiple?e.slice():e.length?[e[0]]:e}function v(e){if(!e)return null;var n;if(Array.isArray(e))n={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,o.Z)(e))return(0,a.ZP)(!1,"`checkedKeys` is not an array or an object"),null;n={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return n}function g(e,n){var t=new Set;function o(e){if(!t.has(e)){var r=n[e];if(r){t.add(e);var a=r.parent;r.node.disabled||a&&o(a.key)}}}return(e||[]).forEach((function(e){o(e)})),(0,r.Z)(t)}},17341:function(e,n,t){t.d(n,{S:function(){return c}});var r=t(80334);function o(e,n){var t=new Set;return e.forEach((function(e){n.has(e)||t.add(e)})),t}function a(e){var n=e||{},t=n.disabled,r=n.disableCheckbox,o=n.checkable;return!(!t&&!r)||!1===o}function c(e,n,t,c){var i,d=[];i=c||a;var s,l=new Set(e.filter((function(e){var n=!!t[e];return n||d.push(e),n}))),p=new Map,u=0;return Object.keys(t).forEach((function(e){var n=t[e],r=n.level,o=p.get(r);o||(o=new Set,p.set(r,o)),o.add(n),u=Math.max(u,r)})),(0,r.ZP)(!d.length,"Tree missing follow keys: ".concat(d.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),s=!0===n?function(e,n,t,r){for(var a=new Set(e),c=new Set,i=0;i<=t;i+=1)(n.get(i)||new Set).forEach((function(e){var n=e.key,t=e.node,o=e.children,c=void 0===o?[]:o;a.has(n)&&!r(t)&&c.filter((function(e){return!r(e.node)})).forEach((function(e){a.add(e.key)}))}));for(var d=new Set,s=t;s>=0;s-=1)(n.get(s)||new Set).forEach((function(e){var n=e.parent,t=e.node;if(!r(t)&&e.parent&&!d.has(e.parent.key))if(r(e.parent.node))d.add(n.key);else{var o=!0,i=!1;(n.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var n=e.key,t=a.has(n);o&&!t&&(o=!1),i||!t&&!c.has(n)||(i=!0)})),o&&a.add(n.key),i&&c.add(n.key),d.add(n.key)}}));return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(o(c,a))}}(l,p,u,i):function(e,n,t,r,a){for(var c=new Set(e),i=new Set(n),d=0;d<=r;d+=1)(t.get(d)||new Set).forEach((function(e){var n=e.key,t=e.node,r=e.children,o=void 0===r?[]:r;c.has(n)||i.has(n)||a(t)||o.filter((function(e){return!a(e.node)})).forEach((function(e){c.delete(e.key)}))}));i=new Set;for(var s=new Set,l=r;l>=0;l-=1)(t.get(l)||new Set).forEach((function(e){var n=e.parent,t=e.node;if(!a(t)&&e.parent&&!s.has(e.parent.key))if(a(e.parent.node))s.add(n.key);else{var r=!0,o=!1;(n.children||[]).filter((function(e){return!a(e.node)})).forEach((function(e){var n=e.key,t=c.has(n);r&&!t&&(r=!1),o||!t&&!i.has(n)||(o=!0)})),r||c.delete(n.key),o&&i.add(n.key),s.add(n.key)}}));return{checkedKeys:Array.from(c),halfCheckedKeys:Array.from(o(i,c))}}(l,n.halfCheckedKeys,p,u,i),s}},1089:function(e,n,t){t.d(n,{F:function(){return x},H8:function(){return y},I8:function(){return k},km:function(){return u},oH:function(){return v},w$:function(){return f},zn:function(){return h}});var r=t(71002),o=t(74902),a=t(1413),c=t(45987),i=t(98423),d=t(50344),s=t(80334),l=t(10225),p=["children"];function u(e,n){return null!=e?e:n}function f(e){var n=e||{},t=n.title||"title";return{title:t,_title:n._title||[t],key:n.key||"key",children:n.children||"children"}}function h(e){return function e(n){return(0,d.Z)(n).map((function(n){if(!(0,l.Ds)(n))return(0,s.ZP)(!n,"Tree/TreeNode can only accept TreeNode as children."),null;var t=n.key,r=n.props,o=r.children,i=(0,c.Z)(r,p),d=(0,a.Z)({key:t},i),u=e(o);return u.length&&(d.children=u),d})).filter((function(e){return e}))}(e)}function v(e,n,t){var r=f(t),c=r._title,d=r.key,s=r.children,p=new Set(!0===n?[]:n),h=[];return function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t.map((function(f,v){for(var g,k=(0,l.bt)(r?r.pos:"0",v),y=u(f[d],k),x=0;x1&&void 0!==arguments[1]?arguments[1]:{},t=n.initWrapper,r=n.processEntity,o=n.onProcessFinished,a=n.externalGetKey,c=n.childrenPropName,i=n.fieldNames,d=arguments.length>2?arguments[2]:void 0,s=a||d,l={},p={},f={posEntities:l,keyEntities:p};return t&&(f=t(f)||f),g(e,(function(e){var n=e.node,t=e.index,o=e.pos,a=e.key,c=e.parentPos,i=e.level,d={node:n,nodes:e.nodes,index:t,key:a,pos:o,level:i},s=u(a,o);l[o]=d,p[s]=d,d.parent=l[c],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d)),r&&r(d,f)}),{externalGetKey:s,childrenPropName:c,fieldNames:i}),o&&o(f),f}function y(e,n){var t=n.expandedKeys,r=n.selectedKeys,o=n.loadedKeys,a=n.loadingKeys,c=n.checkedKeys,i=n.halfCheckedKeys,d=n.dragOverNodeKey,s=n.dropPosition,l=n.keyEntities[e];return{eventKey:e,expanded:-1!==t.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==a.indexOf(e),checked:-1!==c.indexOf(e),halfChecked:-1!==i.indexOf(e),pos:String(l?l.pos:""),dragOver:d===e&&0===s,dragOverGapTop:d===e&&-1===s,dragOverGapBottom:d===e&&1===s}}function x(e){var n=e.data,t=e.expanded,r=e.selected,o=e.checked,c=e.loaded,i=e.loading,d=e.halfChecked,l=e.dragOver,p=e.dragOverGapTop,u=e.dragOverGapBottom,f=e.pos,h=e.active,v=e.eventKey,g=(0,a.Z)((0,a.Z)({},n),{},{expanded:t,selected:r,checked:o,loaded:c,loading:i,halfChecked:d,dragOver:l,dragOverGapTop:p,dragOverGapBottom:u,pos:f,active:h,key:v});return"props"in g||Object.defineProperty(g,"props",{get:function(){return(0,s.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),g}}}]);