2 lines
85 KiB
JavaScript
2 lines
85 KiB
JavaScript
!function(){function e(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||t(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var o,a,r,i,l=[],c=!0,u=!1;try{if(r=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(o=r.call(t)).done)&&(l.push(o.value),l.length!==n);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}(e,n)||t(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,n){if(e){if("string"==typeof e)return o(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,n):void 0}}function o(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}function a(e){return a="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},a(e)}function r(e,n,t){return(n=function(e){var n=function(e,n){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,n||"default");if("object"!=a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==a(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}System.register(["./index-legacy-D6gbX9g9.js","./index-legacy-BltO_gR9.js"],(function(t,o){"use strict";var i,l,c,u,d,s,v,f,p,h,y,g,b,m,k,S,x,K,w,C,O,E,D,N,P,T,M,I,L,j,A,H,B,F,z,R,G,V,X,_,$,U,Y,W,q,Q,Z,J,ee,ne,te,oe,ae,re,ie,le,ce;return{setters:[function(e){i=e.f,l=e.c,c=e.a7,u=e.j,d=e.k,s=e.a,v=e.a5,f=e.aR,p=e.aB,h=e.t,y=e.U,g=e.a6,b=e.v,m=e.aS,k=e.P,S=e.p,x=e.aC,K=e.cZ,w=e.Y,C=e.cF,O=e.aD,E=e._,D=e.L,N=e.M,P=e.e3,T=e.dJ,M=e.bi,I=e.a8,L=e.bz,j=e.au,A=e.m,H=e.b,B=e.r,F=e.dV,z=e.ab,R=e.at,G=e.u,V=e.g,X=e.ay,_=e.Z,$=e.$,U=e.ae,Y=e.Q,W=e.aH,q=e.I,Q=e.dE,Z=e.aQ,J=e.aw,ee=e.a_,ne=e.a$,te=e.bm,oe=e.b1,ae=e.o,re=e.d},function(e){ie=e.R,le=e.k,ce=e.l}],execute:function(){function o(){var e=function(n){e.current=n};return e}t({b:Ze,c:Ue,d:o,f:ke,g:tn,h:Le,i:je,u:Je});var ue=function(e,n){var t,o=e.height,a=e.offset,u=e.prefixCls,d=e.onInnerResize,s=n.slots,v={},f={display:"flex",flexDirection:"column"};return void 0!==a&&(v={height:"".concat(o,"px"),position:"relative",overflow:"hidden"},f=i(i({},f),{transform:"translateY(".concat(a,"px)"),position:"absolute",left:0,right:0,top:0})),l("div",{style:v},[l(ie,{onResize:function(e){e.offsetHeight&&d&&d()}},{default:function(){return[l("div",{style:f,class:c(r({},"".concat(u,"-holder-inner"),u))},[null===(t=s.default)||void 0===t?void 0:t.call(s)])]}})])};ue.displayName="Filter",ue.inheritAttrs=!1,ue.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};var de=function(e,n){var t,o=e.setRef,a=n.slots,r=u(null===(t=a.default)||void 0===t?void 0:t.call(a));return r&&r.length?d(r[0],{ref:o}):r};de.props={setRef:{type:Function,default:function(){}}};function se(e){return"touches"in e?e.touches[0].pageY:e.pageY}var ve=s({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup:function(){return{moveRaf:null,scrollbarRef:o(),thumbRef:o(),visibleTimeout:null,state:v({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler:function(){this.delayHidden()},flush:"post"}},mounted:function(){var e,n;null===(e=this.scrollbarRef.current)||void 0===e||e.addEventListener("touchstart",this.onScrollbarTouchStart,!!f&&{passive:!1}),null===(n=this.thumbRef.current)||void 0===n||n.addEventListener("touchstart",this.onMouseDown,!!f&&{passive:!1})},beforeUnmount:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden:function(){var e=this;clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout((function(){e.state.visible=!1}),2e3)},onScrollbarTouchStart:function(e){e.preventDefault()},onContainerMouseDown:function(e){e.stopPropagation(),e.preventDefault()},patchEvents:function(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,!!f&&{passive:!1}),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents:function(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,!!f&&{passive:!1}),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,!!f&&{passive:!1}),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,!!f&&{passive:!1}),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),p.cancel(this.moveRaf)},onMouseDown:function(e){var n=this.$props.onStartMove;i(this.state,{dragging:!0,pageY:se(e),startTop:this.getTop()}),n(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove:function(e){var n=this.state,t=n.dragging,o=n.pageY,a=n.startTop,r=this.$props.onScroll;if(p.cancel(this.moveRaf),t){var i=a+(se(e)-o),l=this.getEnableScrollRange(),c=this.getEnableHeightRange(),u=c?i/c:0,d=Math.ceil(u*l);this.moveRaf=p((function(){r(d)}))}},onMouseUp:function(){var e=this.$props.onStopMove;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight:function(){var e=this.$props,n=e.height,t=n/e.scrollHeight*100;return t=Math.max(t,20),t=Math.min(t,n/2),Math.floor(t)},getEnableScrollRange:function(){var e=this.$props;return e.scrollHeight-e.height||0},getEnableHeightRange:function(){return this.$props.height-this.getSpinHeight()||0},getTop:function(){var e=this.$props.scrollTop,n=this.getEnableScrollRange(),t=this.getEnableHeightRange();return 0===e||0===n?0:e/n*t},showScroll:function(){var e=this.$props,n=e.height;return e.scrollHeight>n}},render:function(){var e=this.state,n=e.dragging,t=e.visible,o=this.$props.prefixCls,a=this.getSpinHeight()+"px",i=this.getTop()+"px",u=this.showScroll(),d=u&&t;return l("div",{ref:this.scrollbarRef,class:c("".concat(o,"-scrollbar"),r({},"".concat(o,"-scrollbar-show"),u)),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:d?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[l("div",{ref:this.thumbRef,class:c("".concat(o,"-scrollbar-thumb"),r({},"".concat(o,"-scrollbar-thumb-moving"),n)),style:{width:"100%",height:a,top:i,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});var fe="object"===("undefined"==typeof navigator?"undefined":a(navigator))&&/Firefox/i.test(navigator.userAgent),pe=function(e,n){var t=!1,o=null;return function(a){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=a<0&&e.value||a>0&&n.value;return r&&i?(clearTimeout(o),t=!1):i&&!t||(clearTimeout(o),t=!0,o=setTimeout((function(){t=!1}),50)),!t&&i}};var he=14/15;var ye=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(t[o[a]]=e[o[a]])}return t},ge=[],be={overflowY:"auto",overflowAnchor:"none"};var me=t("L",s({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:k.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup:function(e,t){var o=t.expose,l=S((function(){var n=e.height,t=e.itemHeight;return!(!1===e.virtual||!n||!t)})),c=S((function(){var n=e.height,t=e.itemHeight,o=e.data;return l.value&&o&&t*o.length>n})),u=v({scrollTop:0,scrollMoving:!1}),d=S((function(){return e.data||ge})),s=x([]);y(d,(function(){s.value=K(d.value).slice()}),{immediate:!0});var k=x((function(e){}));y((function(){return e.itemKey}),(function(e){k.value="function"==typeof e?e:function(n){return null==n?void 0:n[e]}}),{immediate:!0});var E=x(),D=x(),N=x(),P=function(e){return k.value(e)},T={getKey:P};function M(e){var n=function(e){var n=e;Number.isNaN(R.value)||(n=Math.min(n,R.value));return n=Math.max(n,0),n}("function"==typeof e?e(u.scrollTop):e);E.value&&(E.value.scrollTop=n),u.scrollTop=n}var I=function(e,n){var t=new Map,o=new Map,a=h(Symbol("update"));y(e,(function(){a.value=Symbol("update")}));var r=void 0;function i(){p.cancel(r)}function l(){i(),r=p((function(){t.forEach((function(e,n){if(e&&e.offsetParent){var t=e.offsetHeight;o.get(n)!==t&&(a.value=Symbol("update"),o.set(n,e.offsetHeight))}}))}))}return g((function(){i()})),[function(e,o){var a=n(e);t.get(a),o?(t.set(a,o.$el||o),l()):t.delete(a)},l,o,a]}(s,P),L=n(I,4),j=L[0],A=L[1],H=L[2],B=L[3],F=v({scrollHeight:void 0,start:0,end:0,offset:void 0}),z=x(0);b((function(){w((function(){var e;z.value=(null===(e=D.value)||void 0===e?void 0:e.offsetHeight)||0}))})),C((function(){w((function(){var e;z.value=(null===(e=D.value)||void 0===e?void 0:e.offsetHeight)||0}))})),y([l,s],(function(){l.value||i(F,{scrollHeight:void 0,start:0,end:s.value.length-1,offset:void 0})}),{immediate:!0}),y([l,s,z,c],(function(){l.value&&!c.value&&i(F,{scrollHeight:z.value,start:0,end:s.value.length-1,offset:void 0}),E.value&&(u.scrollTop=E.value.scrollTop)}),{immediate:!0}),y([c,l,function(){return u.scrollTop},s,B,function(){return e.height},z],(function(){if(l.value&&c.value){for(var n,t,o,a=0,r=s.value.length,d=s.value,v=u.scrollTop,f=e.itemHeight,p=e.height,h=v+p,y=0;y<r;y+=1){var g=d[y],b=P(g),m=H.get(b);void 0===m&&(m=f);var k=a+m;void 0===n&&k>=v&&(n=y,t=a),void 0===o&&k>h&&(o=y),a=k}void 0===n&&(n=0,t=0,o=Math.ceil(p/f)),void 0===o&&(o=r-1),o=Math.min(o+1,r),i(F,{scrollHeight:a,start:n,end:o,offset:t})}}),{immediate:!0});var R=S((function(){return F.scrollHeight-e.height}));var G=S((function(){return u.scrollTop<=0})),V=S((function(){return u.scrollTop>=R.value})),X=pe(G,V);var _=function(e,n,t,o){var a=0,r=null,i=null,l=!1,c=pe(n,t);return[function(n){if(e.value){p.cancel(r);var t=n.deltaY;a+=t,i=t,c(t)||(fe||n.preventDefault(),r=p((function(){o(a*(l?10:1)),a=0})))}},function(n){e.value&&(l=n.detail===i)}]}(l,G,V,(function(e){M((function(n){return n+e}))})),$=n(_,2),U=$[0],Y=$[1];function W(e){l.value&&e.preventDefault()}!function(e,n,t){var o=!1,a=0,r=null,i=null,l=function(){r&&(r.removeEventListener("touchmove",c),r.removeEventListener("touchend",u))},c=function(e){if(o){var n=Math.ceil(e.touches[0].pageY),r=a-n;a=n,t(r)&&e.preventDefault(),clearInterval(i),i=setInterval((function(){(!t(r*=he,!0)||Math.abs(r)<=.1)&&clearInterval(i)}),16)}},u=function(){o=!1,l()},d=function(e){l(),1!==e.touches.length||o||(o=!0,a=Math.ceil(e.touches[0].pageY),(r=e.target).addEventListener("touchmove",c,{passive:!1}),r.addEventListener("touchend",u))},s=function(){};b((function(){document.addEventListener("touchmove",s,{passive:!1}),y(e,(function(e){n.value.removeEventListener("touchstart",d),l(),clearInterval(i),e&&n.value.addEventListener("touchstart",d,{passive:!1})}),{immediate:!0})})),m((function(){document.removeEventListener("touchmove",s)}))}(l,E,(function(e,n){return!X(e,n)&&(U({preventDefault:function(){},deltaY:e}),!0)}));var q=function(){E.value&&(E.value.removeEventListener("wheel",U,!!f&&{passive:!1}),E.value.removeEventListener("DOMMouseScroll",Y),E.value.removeEventListener("MozMousePixelScroll",W))};O((function(){w((function(){E.value&&(q(),E.value.addEventListener("wheel",U,!!f&&{passive:!1}),E.value.addEventListener("DOMMouseScroll",Y),E.value.addEventListener("MozMousePixelScroll",W))}))})),m((function(){q()}));var Q=function(e,n,t,o,r,i,l,c){var u;return function(d){if(null!=d){p.cancel(u);var s=n.value,v=o.itemHeight;if("number"==typeof d)l(d);else if(d&&"object"===a(d)){var f,h=d.align;f="index"in d?d.index:s.findIndex((function(e){return r(e)===d.key}));var y=d.offset,g=void 0===y?0:y,b=function(n,o){if(!(n<0)&&e.value){var a=e.value.clientHeight,c=!1,d=o;if(a){for(var y=o||h,m=0,k=0,S=0,x=Math.min(s.length,f),K=0;K<=x;K+=1){var w=r(s[K]);k=m;var C=t.get(w);m=S=k+(void 0===C?v:C),K===f&&void 0===C&&(c=!0)}var O=e.value.scrollTop,E=null;switch(y){case"top":E=k-g;break;case"bottom":E=S-a+g;break;default:k<O?d="top":S>O+a&&(d="bottom")}null!==E&&E!==O&&l(E)}u=p((function(){c&&i(),b(n-1,d)}),2)}};b(5)}}else c()}}(E,s,H,e,P,A,M,(function(){var e;null===(e=N.value)||void 0===e||e.delayHidden()}));o({scrollTo:Q});var Z=S((function(){var n=null;return e.height&&(n=i(r({},e.fullHeight?"height":"maxHeight",e.height+"px"),be),l.value&&(n.overflowY="hidden",u.scrollMoving&&(n.pointerEvents="none"))),n}));y([function(){return F.start},function(){return F.end},s],(function(){if(e.onVisibleChange){var n=s.value.slice(F.start,F.end+1);e.onVisibleChange(n,s.value)}}),{flush:"post"});return{state:u,mergedData:s,componentStyle:Z,onFallbackScroll:function(n){var t,o=n.currentTarget.scrollTop;o!==u.scrollTop&&M(o),null===(t=e.onScroll)||void 0===t||t.call(e,n)},onScrollBar:function(e){M(e)},componentRef:E,useVirtual:l,calRes:F,collectHeight:A,setInstance:j,sharedConfig:T,scrollBarRef:N,fillerInnerRef:D,delayHideScrollBar:function(){var e;null===(e=N.value)||void 0===e||e.delayHidden()}}},render:function(){var e=this,n=i(i({},this.$props),this.$attrs),t=n.prefixCls,o=void 0===t?"rc-virtual-list":t,a=n.height,r=(n.itemHeight,n.fullHeight,n.data,n.itemKey,n.virtual,n.component),u=void 0===r?"div":r,d=(n.onScroll,n.children),s=void 0===d?this.$slots.default:d,v=n.style,f=n.class,p=ye(n,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),h=c(o,f),y=this.state.scrollTop,g=this.calRes,b=g.scrollHeight,m=g.offset,k=g.start,S=g.end,x=this.componentStyle,K=this.onFallbackScroll,w=this.onScrollBar,C=this.useVirtual,O=this.collectHeight,D=this.sharedConfig,N=this.setInstance,P=this.mergedData,T=this.delayHideScrollBar;return l("div",E({style:i(i({},v),{position:"relative"}),class:h},p),[l(u,{class:"".concat(o,"-holder"),style:x,ref:"componentRef",onScroll:K,onMouseenter:T},{default:function(){return[l(ue,{prefixCls:o,height:b,offset:m,onInnerResize:O,ref:"fillerInnerRef"},{default:function(){return function(e,n,t,o,a,r){var i=r.getKey;return e.slice(n,t+1).map((function(e,t){var r=a(e,n+t,{}),c=i(e);return l(de,{key:c,setRef:function(n){return o(e,n)}},{default:function(){return[r]}})}))}(P,k,S,N,s,D)}})]}}),C&&l(ve,{ref:"scrollBarRef",prefixCls:o,scrollTop:y,height:a,scrollHeight:b,count:P.length,onScroll:w,onStartMove:function(){e.state.scrollMoving=!0},onStopMove:function(){e.state.scrollMoving=!1}},null)])}}));function ke(e){var n=x();return O((function(){n.value=e()}),{flush:"sync"}),n}var Se=Symbol("TreeContextKey"),xe=s({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup:function(e,n){var t=n.slots;return D(Se,S((function(){return e.value}))),function(){var e;return null===(e=t.default)||void 0===e?void 0:e.call(t)}}}),Ke=function(){return N(Se,S((function(){return{}})))},we=Symbol("KeysStateKey"),Ce=function(){return N(we,{expandedKeys:x([]),selectedKeys:x([]),loadedKeys:x([]),loadingKeys:x([]),checkedKeys:x([]),halfCheckedKeys:x([]),expandedKeysSet:S((function(){return new Set})),selectedKeysSet:S((function(){return new Set})),loadedKeysSet:S((function(){return new Set})),loadingKeysSet:S((function(){return new Set})),checkedKeysSet:S((function(){return new Set})),halfCheckedKeysSet:S((function(){return new Set})),flattenNodes:x([])})},Oe=function(e){for(var n=e.prefixCls,t=e.level,o=e.isStart,a=e.isEnd,i="".concat(n,"-indent-unit"),c=[],u=0;u<t;u+=1)c.push(l("span",{key:u,class:r(r(r({},i,!0),"".concat(i,"-start"),o[u]),"".concat(i,"-end"),a[u])},null));return l("span",{"aria-hidden":"true",class:"".concat(n,"-indent")},[c])},Ee={eventKey:[String,Number],prefixCls:String,title:k.any,data:{type:Object,default:void 0},parent:{type:Object,default:void 0},isStart:{type:Array},isEnd:{type:Array},active:{type:Boolean,default:void 0},onMousemove:{type:Function},isLeaf:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},selectable:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},disableCheckbox:{type:Boolean,default:void 0},icon:k.any,switcherIcon:k.any,domRef:{type:Function}},De={prefixCls:{type:String},motion:{type:Object},focusable:{type:Boolean},activeItem:{type:Object},focused:{type:Boolean},tabindex:{type:Number},checkable:{type:Boolean},selectable:{type:Boolean},disabled:{type:Boolean},height:{type:Number},itemHeight:{type:Number},virtual:{type:Boolean},onScroll:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onActiveChange:{type:Function},onContextmenu:{type:Function},onListChangeStart:{type:Function},onListChangeEnd:{type:Function}},Ne=function(){return{prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:k.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:k.any,selectable:{type:Boolean,default:void 0},expandAction:[String,Boolean],disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:k.any,switcherIcon:k.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String},rootClassName:String,rootStyle:Object}},Pe=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(t[o[a]]=e[o[a]])}return t},Te="open",Me="close",Ie=s({compatConfig:{MODE:3},name:"ATreeNode",inheritAttrs:!1,props:Ee,isTreeNode:1,setup:function(e,n){var t=n.attrs,o=n.slots,a=n.expose;P(!("slots"in e.data),"treeData slots is deprecated, please use ".concat(Object.keys(e.data.slots||{}).map((function(e){return"`v-slot:"+e+"` "})),"instead"));var u=x(!1),d=Ke(),s=Ce(),f=s.expandedKeysSet,p=s.selectedKeysSet,h=s.loadedKeysSet,y=s.loadingKeysSet,g=s.checkedKeysSet,m=s.halfCheckedKeysSet,k=d.value,K=k.dragOverNodeKey,w=k.dropPosition,O=k.keyEntities,D=S((function(){return Ye(e.eventKey,{expandedKeysSet:f.value,selectedKeysSet:p.value,loadedKeysSet:h.value,loadingKeysSet:y.value,checkedKeysSet:g.value,halfCheckedKeysSet:m.value,dragOverNodeKey:K,dropPosition:w,keyEntities:O})})),N=ke((function(){return D.value.expanded})),I=ke((function(){return D.value.selected})),L=ke((function(){return D.value.checked})),j=ke((function(){return D.value.loaded})),A=ke((function(){return D.value.loading})),H=ke((function(){return D.value.halfChecked})),B=ke((function(){return D.value.dragOver})),F=ke((function(){return D.value.dragOverGapTop})),z=ke((function(){return D.value.dragOverGapBottom})),R=ke((function(){return D.value.pos})),G=x(),V=S((function(){var n=e.eventKey;return!!((d.value.keyEntities[n]||{}).children||[]).length})),X=S((function(){var n=e.isLeaf,t=d.value.loadData,o=V.value;return!1!==n&&(n||!t&&!o||t&&j.value&&!o)})),_=S((function(){return X.value?null:N.value?Te:Me})),$=S((function(){var n=e.disabled;return!(!d.value.disabled&&!n)})),U=S((function(){var n=e.checkable,t=d.value.checkable;return!(!t||!1===n)&&t})),Y=S((function(){var n=e.selectable,t=d.value.selectable;return"boolean"==typeof n?n:t})),W=S((function(){var n=e.data,t=e.active,o=e.checkable,a=e.disableCheckbox,r=e.disabled,l=e.selectable;return i(i({active:t,checkable:o,disableCheckbox:a,disabled:r,selectable:l},n),{dataRef:n,data:n,isLeaf:X.value,checked:L.value,expanded:N.value,loading:A.value,selected:I.value,halfChecked:H.value})})),q=M(),Q=S((function(){var n=e.eventKey,t=(d.value.keyEntities[n]||{}).parent;return i(i({},We(i({},e,D.value))),{parent:t})})),Z=v({eventData:Q,eventKey:S((function(){return e.eventKey})),selectHandle:G,pos:R,key:q.vnode.key});a(Z);var J=function(e){(0,d.value.onNodeDoubleClick)(e,Q.value)},ee=function(n){if(!$.value){var t=e.disableCheckbox,o=d.value.onNodeCheck;if(U.value&&!t){n.preventDefault();var a=!L.value;o(n,Q.value,a)}}},ne=function(e){(0,d.value.onNodeClick)(e,Q.value),Y.value?function(e){if(!$.value){var n=d.value.onNodeSelect;e.preventDefault(),n(e,Q.value)}}(e):ee(e)},te=function(e){(0,d.value.onNodeMouseEnter)(e,Q.value)},oe=function(e){(0,d.value.onNodeMouseLeave)(e,Q.value)},ae=function(e){(0,d.value.onNodeContextMenu)(e,Q.value)},re=function(e){var n=d.value.onNodeDragStart;e.stopPropagation(),u.value=!0,n(e,Z);try{e.dataTransfer.setData("text/plain","")}catch(t){}},ie=function(e){var n=d.value.onNodeDragEnter;e.preventDefault(),e.stopPropagation(),n(e,Z)},le=function(e){var n=d.value.onNodeDragOver;e.preventDefault(),e.stopPropagation(),n(e,Z)},ce=function(e){var n=d.value.onNodeDragLeave;e.stopPropagation(),n(e,Z)},ue=function(e){var n=d.value.onNodeDragEnd;e.stopPropagation(),u.value=!1,n(e,Z)},de=function(e){var n=d.value.onNodeDrop;e.preventDefault(),e.stopPropagation(),u.value=!1,n(e,Z)},se=function(e){var n=d.value.onNodeExpand;A.value||n(e,Q.value)},ve=function(){var e=d.value,n=e.draggable,t=e.prefixCls;return n&&(null==n?void 0:n.icon)?l("span",{class:"".concat(t,"-draggable-icon")},[n.icon]):null},fe=function(){var e=d.value,n=e.loadData,t=e.onNodeLoad;A.value||n&&N.value&&!X.value&&(V.value||j.value||t(Q.value))};b((function(){fe()})),C((function(){fe()}));var pe=function(){var n,t,a,r,i,u,s,v=d.value.prefixCls,f=(r=e.switcherIcon,i=void 0===r?o.switcherIcon||(null===(n=d.value.slots)||void 0===n?void 0:n[null===(a=null===(t=e.data)||void 0===t?void 0:t.slots)||void 0===a?void 0:a.switcherIcon]):r,u=d.value.switcherIcon,"function"==typeof(s=i||u)?s(W.value):s);if(X.value)return!1!==f?l("span",{class:c("".concat(v,"-switcher"),"".concat(v,"-switcher-noop"))},[f]):null;var p=c("".concat(v,"-switcher"),"".concat(v,"-switcher_").concat(N.value?Te:Me));return!1!==f?l("span",{onClick:se,class:p},[f]):null},he=function(){var n,t,o=e.disableCheckbox,a=d.value.prefixCls,r=$.value;return U.value?l("span",{class:c("".concat(a,"-checkbox"),L.value&&"".concat(a,"-checkbox-checked"),!L.value&&H.value&&"".concat(a,"-checkbox-indeterminate"),(r||o)&&"".concat(a,"-checkbox-disabled")),onClick:ee},[null===(t=(n=d.value).customCheckable)||void 0===t?void 0:t.call(n)]):null},ye=function(){var e=d.value.prefixCls;return l("span",{class:c("".concat(e,"-iconEle"),"".concat(e,"-icon__").concat(_.value||"docu"),A.value&&"".concat(e,"-icon_loading"))},null)},ge=function(){var n=e.disabled,t=e.eventKey,o=d.value,a=o.draggable,r=o.dropLevelOffset,i=o.dropPosition,l=o.prefixCls,c=o.indent,u=o.dropIndicatorRender,s=o.dragOverNodeKey,v=o.direction;return!n&&!1!==a&&s===t?u({dropPosition:i,dropLevelOffset:r,indent:c,prefixCls:l,direction:v}):null},be=function(){var n,t,a,r,i,s,v,f,p=e.icon,h=void 0===p?o.icon:p,y=e.data,g=o.title||(null===(n=d.value.slots)||void 0===n?void 0:n[null===(a=null===(t=e.data)||void 0===t?void 0:t.slots)||void 0===a?void 0:a.title])||(null===(r=d.value.slots)||void 0===r?void 0:r.title)||e.title,b=d.value,m=b.prefixCls,k=b.showIcon,S=b.icon,x=b.loadData,K=$.value,w="".concat(m,"-node-content-wrapper");if(k){var C=h||(null===(i=d.value.slots)||void 0===i?void 0:i[null===(s=null==y?void 0:y.slots)||void 0===s?void 0:s.icon])||S;v=C?l("span",{class:c("".concat(m,"-iconEle"),"".concat(m,"-icon__customize"))},["function"==typeof C?C(W.value):C]):ye()}else x&&A.value&&(v=ye());f=void 0===(f="function"==typeof g?g(W.value):g)?"---":f;var O=l("span",{class:"".concat(m,"-title")},[f]);return l("span",{ref:G,title:"string"==typeof g?g:"",class:c("".concat(w),"".concat(w,"-").concat(_.value||"normal"),!K&&(I.value||u.value)&&"".concat(m,"-node-selected")),onMouseenter:te,onMouseleave:oe,onContextmenu:ae,onClick:ne,onDblclick:J},[v,O,ge()])};return function(){var n,o=i(i({},e),t),a=o.eventKey,u=o.isLeaf,s=o.isStart,v=o.isEnd,f=o.domRef,p=o.active,h=(o.data,o.onMousemove),y=o.selectable,g=Pe(o,["eventKey","isLeaf","isStart","isEnd","domRef","active","data","onMousemove","selectable"]),b=d.value,m=b.prefixCls,k=b.filterTreeNode,S=b.keyEntities,x=b.dropContainerKey,K=b.dropTargetKey,w=b.draggingNodeKey,C=$.value,O=T(g,{aria:!0,data:!0}),D=(S[a]||{}).level,P=v[v.length-1],M=function(){var n=e.data,t=d.value.draggable;return!(!t||t.nodeDraggable&&!t.nodeDraggable(n))}(),j=!C&&M,R=w===a,G=void 0!==y?{"aria-selected":!!y}:void 0;return l("div",E(E({ref:f,class:c(t.class,"".concat(m,"-treenode"),(n={},r(r(r(r(r(r(r(r(r(r(n,"".concat(m,"-treenode-disabled"),C),"".concat(m,"-treenode-switcher-").concat(N.value?"open":"close"),!u),"".concat(m,"-treenode-checkbox-checked"),L.value),"".concat(m,"-treenode-checkbox-indeterminate"),H.value),"".concat(m,"-treenode-selected"),I.value),"".concat(m,"-treenode-loading"),A.value),"".concat(m,"-treenode-active"),p),"".concat(m,"-treenode-leaf-last"),P),"".concat(m,"-treenode-draggable"),j),"dragging",R),r(r(r(r(r(r(n,"drop-target",K===a),"drop-container",x===a),"drag-over",!C&&B.value),"drag-over-gap-top",!C&&F.value),"drag-over-gap-bottom",!C&&z.value),"filter-node",k&&k(Q.value)))),style:t.style,draggable:j,"aria-grabbed":R,onDragstart:j?re:void 0,onDragenter:M?ie:void 0,onDragover:M?le:void 0,onDragleave:M?ce:void 0,onDrop:M?de:void 0,onDragend:M?ue:void 0,onMousemove:h},G),O),[l(Oe,{prefixCls:m,level:D,isStart:s,isEnd:v},null),ve(),pe(),he(),be()])}}});function Le(e,n){if(!e)return[];var t=e.slice(),o=t.indexOf(n);return o>=0&&t.splice(o,1),t}function je(e,n){var t=(e||[]).slice();return-1===t.indexOf(n)&&t.push(n),t}function Ae(e){return e.split("-")}function He(e,n){return"".concat(e,"-").concat(n)}function Be(e){if(e.parent){var n=Ae(e.pos);return Number(n[n.length-1])===e.parent.children.length-1}return!1}function Fe(e,n,t,o,a,r,i,l,c,u){var d,s=e.clientX,v=e.clientY,f=e.target.getBoundingClientRect(),p=f.top,h=f.height,y=(("rtl"===u?-1:1)*(((null==a?void 0:a.x)||0)-s)-12)/o,g=l[t.eventKey];if(v<p+h/2){var b=i.findIndex((function(e){return e.key===g.key})),m=i[b<=0?0:b-1].key;g=l[m]}var k=g.key,S=g,x=g.key,K=0,w=0;if(!c.has(k))for(var C=0;C<y&&Be(g);C+=1)g=g.parent,w+=1;var O,E=n.eventData,D=g.node,N=!0;return O=Ae(g.pos),0===Number(O[O.length-1])&&0===g.level&&v<p+h/2&&r({dragNode:E,dropNode:D,dropPosition:-1})&&g.key===t.eventKey?K=-1:(S.children||[]).length&&c.has(x)?r({dragNode:E,dropNode:D,dropPosition:0})?K=0:N=!1:0===w?y>-1.5?r({dragNode:E,dropNode:D,dropPosition:1})?K=1:N=!1:r({dragNode:E,dropNode:D,dropPosition:0})?K=0:r({dragNode:E,dropNode:D,dropPosition:1})?K=1:N=!1:r({dragNode:E,dropNode:D,dropPosition:1})?K=1:N=!1,{dropPosition:K,dropLevelOffset:w,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:x,dropContainerKey:0===K?null:(null===(d=g.parent)||void 0===d?void 0:d.key)||null,dropAllowed:N}}function ze(e,n){if(e)return n.multiple?e.slice():e.length?[e[0]]:e}function Re(e){if(!e)return null;var n;if(Array.isArray(e))n={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==a(e))return null;n={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return n}function Ge(n,t){var o=new Set;function a(e){if(!o.has(e)){var n=t[e];if(n){o.add(e);var r=n.parent;n.node.disabled||r&&a(r.key)}}}return(n||[]).forEach((function(e){a(e)})),e(o)}var Ve=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(t[o[a]]=e[o[a]])}return t};function Xe(e,n){return null!=e?e:n}function _e(e){var n=e||{},t=n.title||"title";return{title:t,_title:n._title||[t],key:n.key||"key",children:n.children||"children"}}function $e(e){return function e(){return I(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(t){var o,a,r,l;if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return null;for(var c=t.children||{},u=t.key,d={},s=0,v=Object.entries(t.props);s<v.length;s++){var f=n(v[s],2),p=f[0],h=f[1];d[L(p)]=h}var y=d.isLeaf,g=d.checkable,b=d.selectable,m=d.disabled,k=d.disableCheckbox,S={isLeaf:y||""===y||void 0,checkable:g||""===g||void 0,selectable:b||""===b||void 0,disabled:m||""===m||void 0,disableCheckbox:k||""===k||void 0},x=i(i({},d),S),K=d.title,w=void 0===K?null===(o=c.title)||void 0===o?void 0:o.call(c,x):K,C=d.icon,O=void 0===C?null===(a=c.icon)||void 0===a?void 0:a.call(c,x):C,E=d.switcherIcon,D=void 0===E?null===(r=c.switcherIcon)||void 0===r?void 0:r.call(c,x):E,N=Ve(d,["title","icon","switcherIcon"]),P=null===(l=c.default)||void 0===l?void 0:l.call(c),T=i(i(i({},N),{title:w,icon:O,switcherIcon:D,key:u,isLeaf:y}),S),M=e(P);return M.length&&(T.children=M),T}))}(e)}function Ue(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.initWrapper,r=t.processEntity,i=t.onProcessFinished,l=t.externalGetKey,c=t.childrenPropName,u=t.fieldNames,d=l||(arguments.length>2?arguments[2]:void 0),s={},v={},f={posEntities:s,keyEntities:v};return o&&(f=o(f)||f),function(n,t,o){var r,i=("object"===a(o)?o:{externalGetKey:o})||{},l=i.childrenPropName,c=i.externalGetKey,u=_e(i.fieldNames),d=u.key,s=u.children,v=l||s;c?"string"==typeof c?r=function(e){return e[c]}:"function"==typeof c&&(r=function(e){return c(e)}):r=function(e,n){return Xe(e[d],n)},function o(a,i,l,c){var u=a?a[v]:n,d=a?He(l.pos,i):"0",s=a?[].concat(e(c),[a]):[];if(a){var f=r(a,d),p={node:a,index:i,pos:d,key:f,parentPos:l.node?l.pos:null,level:l.level+1,nodes:s};t(p)}u&&u.forEach((function(e,n){o(e,n,{node:a,pos:d,level:l?l.level+1:-1},s)}))}(null)}(n,(function(e){var n=e.node,t=e.index,o=e.pos,a=e.key,i=e.parentPos,l=e.level,c={node:n,nodes:e.nodes,index:t,key:a,pos:o,level:l},u=Xe(a,o);s[o]=c,v[u]=c,c.parent=s[i],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),r&&r(c,f)}),{externalGetKey:d,childrenPropName:c,fieldNames:u}),i&&i(f),f}function Ye(e,n){var t=n.expandedKeysSet,o=n.selectedKeysSet,a=n.loadedKeysSet,r=n.loadingKeysSet,i=n.checkedKeysSet,l=n.halfCheckedKeysSet,c=n.dragOverNodeKey,u=n.dropPosition,d=n.keyEntities[e];return{eventKey:e,expanded:t.has(e),selected:o.has(e),loaded:a.has(e),loading:r.has(e),checked:i.has(e),halfChecked:l.has(e),pos:String(d?d.pos:""),parent:d.parent,dragOver:c===e&&0===u,dragOverGapTop:c===e&&-1===u,dragOverGapBottom:c===e&&1===u}}function We(e){var n=e.data,t=e.expanded,o=e.selected,a=e.checked,r=e.loaded,l=e.loading,c=e.halfChecked,u=e.dragOver,d=e.dragOverGapTop,s=e.dragOverGapBottom,v=e.pos,f=e.active,p=e.eventKey,h=i(i({dataRef:n},n),{expanded:t,selected:o,checked:a,loaded:r,loading:l,halfChecked:c,dragOver:u,dragOverGapTop:d,dragOverGapBottom:s,pos:v,active:f,eventKey:p,key:p});return"props"in h||Object.defineProperty(h,"props",{get:function(){return e}}),h}function qe(e,n){var t=new Set;return e.forEach((function(e){n.has(e)||t.add(e)})),t}function Qe(e){var n=e||{},t=n.disabled,o=n.disableCheckbox,a=n.checkable;return!(!t&&!o)||!1===a}function Ze(e,n,t,o,a,r){var i;i=r||Qe;var l,c=new Set(e.filter((function(e){return!!t[e]})));return l=!0===n?function(e,n,t,o){for(var a=new Set(e),r=new Set,i=0;i<=t;i+=1)(n.get(i)||new Set).forEach((function(e){var n=e.key,t=e.node,r=e.children,i=void 0===r?[]:r;a.has(n)&&!o(t)&&i.filter((function(e){return!o(e.node)})).forEach((function(e){a.add(e.key)}))}));for(var l=new Set,c=t;c>=0;c-=1)(n.get(c)||new Set).forEach((function(e){var n=e.parent,t=e.node;if(!o(t)&&e.parent&&!l.has(e.parent.key))if(o(e.parent.node))l.add(n.key);else{var i=!0,c=!1;(n.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var n=e.key,t=a.has(n);i&&!t&&(i=!1),c||!t&&!r.has(n)||(c=!0)})),i&&a.add(n.key),c&&r.add(n.key),l.add(n.key)}}));return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(qe(r,a))}}(c,a,o,i):function(e,n,t,o,a){for(var r=new Set(e),i=new Set(n),l=0;l<=o;l+=1)(t.get(l)||new Set).forEach((function(e){var n=e.key,t=e.node,o=e.children,l=void 0===o?[]:o;r.has(n)||i.has(n)||a(t)||l.filter((function(e){return!a(e.node)})).forEach((function(e){r.delete(e.key)}))}));i=new Set;for(var c=new Set,u=o;u>=0;u-=1)(t.get(u)||new Set).forEach((function(e){var n=e.parent,t=e.node;if(!a(t)&&e.parent&&!c.has(e.parent.key))if(a(e.parent.node))c.add(n.key);else{var o=!0,l=!1;(n.children||[]).filter((function(e){return!a(e.node)})).forEach((function(e){var n=e.key,t=r.has(n);o&&!t&&(o=!1),l||!t&&!i.has(n)||(l=!0)})),o||r.delete(n.key),l&&i.add(n.key),c.add(n.key)}}));return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(qe(i,r))}}(c,n.halfCheckedKeys,a,o,i),l}function Je(e){var n=h(0),t=x();return O((function(){var o=new Map,a=0,r=e.value||{};for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)){var l=r[i],c=l.level,u=o.get(c);u||(u=new Set,o.set(c,u)),u.add(l),a=Math.max(a,c)}n.value=a,t.value=o})),{maxLevel:n,levelEntities:t}}var en=new z("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),nn=function(e){var n=e.checkboxCls,t="".concat(n,"-wrapper");return[r(r(r({},"".concat(n,"-group"),i(i({},B(e)),r({display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS},"> ".concat(e.antCls,"-row"),{flex:1}))),t,i(i({},B(e)),r(r({display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"}},"& + ".concat(t),{marginInlineStart:0}),"&".concat(t,"-in-form-item"),{'input[type="checkbox"]':{width:14,height:14}}))),n,i(i({},B(e)),r(r(r({position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center"},"".concat(n,"-input"),r({position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0},"&:focus-visible + ".concat(n,"-inner"),i({},F(e)))),"".concat(n,"-inner"),{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorBorder),borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:"all ".concat(e.motionDurationSlow),"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:"".concat(e.lineWidthBold,"px solid ").concat(e.colorWhite),borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:"all ".concat(e.motionDurationFast," ").concat(e.motionEaseInBack,", opacity ").concat(e.motionDurationFast)}}),"& + span",{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}))),r({},n,{"&-indeterminate":r({},"".concat(n,"-inner"),{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}})}),r(r(r({},"".concat(t,":hover ").concat(n,":after"),{visibility:"visible"}),"\n ".concat(t,":not(").concat(t,"-disabled),\n ").concat(n,":not(").concat(n,"-disabled)\n "),r({},"&:hover ".concat(n,"-inner"),{borderColor:e.colorPrimary})),"".concat(t,":not(").concat(t,"-disabled)"),r(r({},"&:hover ".concat(n,"-checked:not(").concat(n,"-disabled) ").concat(n,"-inner"),{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}),"&:hover ".concat(n,"-checked:not(").concat(n,"-disabled):after"),{borderColor:e.colorPrimaryHover})),r(r({},"".concat(n,"-checked"),r(r({},"".concat(n,"-inner"),{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseOutBack," ").concat(e.motionDurationFast)}}),"&:after",{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:"".concat(e.lineWidthBold,"px solid ").concat(e.colorPrimary),animationName:en,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:"all ".concat(e.motionDurationSlow)})),"\n ".concat(t,"-checked:not(").concat(t,"-disabled),\n ").concat(n,"-checked:not(").concat(n,"-disabled)\n "),r(r({},"&:hover ".concat(n,"-inner"),{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}),"&:hover ".concat(n,":after"),{borderColor:e.colorPrimaryHover})),r(r({},"".concat(t,"-disabled"),{cursor:"not-allowed"}),"".concat(n,"-disabled"),r(r(r(r(r({},"&, ".concat(n,"-input"),{cursor:"not-allowed",pointerEvents:"none"}),"".concat(n,"-inner"),{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}}),"&:after",{display:"none"}),"& + span",{color:e.colorTextDisabled}),"&".concat(n,"-indeterminate ").concat(n,"-inner::after"),{background:e.colorTextDisabled}))]};function tn(e,n){var t=A(n,{checkboxCls:".".concat(e),checkboxSize:n.controlInteractiveSize});return[nn(t)]}t("e",H("Checkbox",(function(e,n){return[tn(n.prefixCls,e)]})));function on(e,n,t){var o={}.atBegin;return function(e,n,t){var o,a=t||{},r=a.noTrailing,i=void 0!==r&&r,l=a.noLeading,c=void 0!==l&&l,u=a.debounceMode,d=void 0===u?void 0:u,s=!1,v=0;function f(){o&&clearTimeout(o)}function p(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];var l=this,u=Date.now()-v;function p(){v=Date.now(),n.apply(l,a)}function h(){o=void 0}s||(c||!d||o||p(),f(),void 0===d&&u>e?c?(v=Date.now(),i||(o=setTimeout(d?h:p,e))):p():!0!==i&&(o=setTimeout(d?h:p,void 0===d?e-u:e)))}return p.cancel=function(e){var n=(e||{}).upcomingOnly,t=void 0!==n&&n;f(),s=!t},p}(e,n,{debounceMode:!1!==(void 0!==o&&o)})}var an=new z("antSpinMove",{to:{opacity:1}}),rn=new z("antRotate",{to:{transform:"rotate(405deg)"}}),ln=function(e){return r({},"".concat(e.componentCls),i(i({},B(e)),r(r(r(r(r({position:"absolute",display:"none",color:e.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:"transform ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOutCirc),"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":r(r(r({position:"relative"},"> div > ".concat(e.componentCls),r(r(r(r(r({position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight},"".concat(e.componentCls,"-dot"),{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2}),"".concat(e.componentCls,"-text"),{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:"0 1px 2px ".concat(e.colorBgContainer)}),"&".concat(e.componentCls,"-show-text ").concat(e.componentCls,"-dot"),{marginTop:-e.spinDotSize/2-10}),"&-sm",r(r(r({},"".concat(e.componentCls,"-dot"),{margin:-e.spinDotSizeSM/2}),"".concat(e.componentCls,"-text"),{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2}),"&".concat(e.componentCls,"-show-text ").concat(e.componentCls,"-dot"),{marginTop:-e.spinDotSizeSM/2-10})),"&-lg",r(r(r({},"".concat(e.componentCls,"-dot"),{margin:-e.spinDotSizeLG/2}),"".concat(e.componentCls,"-text"),{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2}),"&".concat(e.componentCls,"-show-text ").concat(e.componentCls,"-dot"),{marginTop:-e.spinDotSizeLG/2-10}))),"".concat(e.componentCls,"-container"),{position:"relative",transition:"opacity ".concat(e.motionDurationSlow),"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:"all ".concat(e.motionDurationSlow),content:'""',pointerEvents:"none"}}),"".concat(e.componentCls,"-blur"),r({clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none"},"&::after",{opacity:.4,pointerEvents:"auto"}))},"&-tip",{color:e.spinDotDefault}),"".concat(e.componentCls,"-dot"),{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:an,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:rn,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}}),"&-sm ".concat(e.componentCls,"-dot"),{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}}),"&-lg ".concat(e.componentCls,"-dot"),{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}}),"&".concat(e.componentCls,"-show-text ").concat(e.componentCls,"-text"),{display:"block"})))},cn=H("Spin",(function(e){var n=A(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:.35*e.controlHeightLG,spinDotSizeLG:e.controlHeight});return[ln(n)]}),{contentHeight:400}),un=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(t[o[a]]=e[o[a]])}return t},dn=null;var sn=t("S",s({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:R({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:k.any,delay:Number,indicator:k.any},{size:"default",spinning:!0,wrapperClassName:""}),setup:function(e,t){var o,a,i,c=t.attrs,u=t.slots,s=G("spin",e),v=s.prefixCls,f=s.size,p=s.direction,h=n(cn(v),2),g=h[0],b=h[1],k=x(e.spinning&&(o=e.spinning,a=e.delay,!(o&&a&&!isNaN(Number(a)))));return y([function(){return e.spinning},function(){return e.delay}],(function(){null==i||i.cancel(),null==(i=on(e.delay,(function(){k.value=e.spinning})))||i()}),{immediate:!0,flush:"post"}),m((function(){null==i||i.cancel()})),function(){var n,t,o=c.class,a=un(c,["class"]),i=e.tip,s=void 0===i?null===(n=u.tip)||void 0===n?void 0:n.call(u):i,h=null===(t=u.default)||void 0===t?void 0:t.call(u),y=r(r(r(r(r(r(r(r({},b.value,!0),v.value,!0),"".concat(v.value,"-sm"),"small"===f.value),"".concat(v.value,"-lg"),"large"===f.value),"".concat(v.value,"-spinning"),k.value),"".concat(v.value,"-show-text"),!!s),"".concat(v.value,"-rtl"),"rtl"===p.value),o,!!o);var m=l("div",E(E({},a),{},{class:y,"aria-live":"polite","aria-busy":k.value}),[function(n){var t="".concat(n,"-dot"),o=V(u,e,"indicator");return null===o?null:(Array.isArray(o)&&(o=1===o.length?o[0]:o),X(o)?d(o,{class:t}):dn&&X(dn())?d(dn(),{class:t}):l("span",{class:"".concat(t," ").concat(n,"-dot-spin")},[l("i",{class:"".concat(n,"-dot-item")},null),l("i",{class:"".concat(n,"-dot-item")},null),l("i",{class:"".concat(n,"-dot-item")},null),l("i",{class:"".concat(n,"-dot-item")},null)]))}(v.value),s?l("div",{class:"".concat(v.value,"-text")},[s]):null]);if(h&&I(h).length){var S=r(r({},"".concat(v.value,"-container"),!0),"".concat(v.value,"-blur"),k.value);return g(l("div",{class:["".concat(v.value,"-nested-loading"),e.wrapperClassName,b.value]},[k.value&&l("div",{key:"loading"},[m]),l("div",{class:S,key:"container"},[h])]))}return g(m)}}}));sn.setDefaultIndicator=function(e){var n=e.indicator;dn="function"==typeof n?n:function(){return l(n,null,null)}},sn.install=function(e){return e.component(sn.name,sn),e};var vn=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(t[o[a]]=e[o[a]])}return t},fn=s({compatConfig:{MODE:3},name:"MotionTreeNode",inheritAttrs:!1,props:i(i({},Ee),{active:Boolean,motion:Object,motionNodes:{type:Array},onMotionStart:Function,onMotionEnd:Function,motionType:String}),setup:function(e,n){var t=n.attrs,o=n.slots,a=x(!0),r=Ke(),i=x(!1),c=S((function(){return e.motion?e.motion:le()})),u=function(n,t){var o,a,r,l;"appear"===t?null===(a=null===(o=c.value)||void 0===o?void 0:o.onAfterEnter)||void 0===a||a.call(o,n):"leave"===t&&(null===(l=null===(r=c.value)||void 0===r?void 0:r.onAfterLeave)||void 0===l||l.call(r,n)),i.value||e.onMotionEnd(),i.value=!0};return y((function(){return e.motionNodes}),(function(){e.motionNodes&&"hide"===e.motionType&&a.value&&w((function(){a.value=!1}))}),{immediate:!0,flush:"post"}),b((function(){e.motionNodes&&e.onMotionStart()})),m((function(){e.motionNodes&&u()})),function(){e.motion;var n=e.motionNodes,i=e.motionType,d=e.active,s=e.eventKey,v=vn(e,["motion","motionNodes","motionType","active","eventKey"]);return n?l(U,E(E({},c.value),{},{appear:"show"===i,onAfterAppear:function(e){return u(e,"appear")},onAfterLeave:function(e){return u(e,"leave")}}),{default:function(){return[_(l("div",{class:"".concat(r.value.prefixCls,"-treenode-motion")},[n.map((function(e){var n=vn(e.data,[]),t=e.title,a=e.key,r=e.isStart,i=e.isEnd;return delete n.children,l(Ie,E(E({},n),{},{title:t,active:d,data:e.data,key:a,eventKey:a,isStart:r,isEnd:i}),o)}))]),[[$,a.value]])]}}):l(Ie,E(E({class:t.class,style:t.style},v),{},{active:d,eventKey:s}),o)}}});function pn(e,n,t){var o=e.findIndex((function(e){return e.key===t})),a=e[o+1],r=n.findIndex((function(e){return e.key===t}));if(a){var i=n.findIndex((function(e){return e.key===a.key}));return n.slice(r+1,i)}return n.slice(r+1)}var hn=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(t[o[a]]=e[o[a]])}return t},yn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},gn=function(){},bn="RC_TREE_MOTION_".concat(Math.random()),mn={key:bn},kn={key:bn,level:0,index:0,pos:"0",node:mn,nodes:[mn]},Sn={parent:null,children:[],pos:kn.pos,data:mn,title:null,key:bn,isStart:[],isEnd:[]};function xn(e,n,t,o){return!1!==n&&t?e.slice(0,Math.ceil(t/o)+1):e}function Kn(e){return Xe(e.key,e.pos)}function wn(e){for(var n=String(e.key),t=e;t.parent;)t=t.parent,n="".concat(t.key," > ").concat(n);return n}var Cn=s({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:De,setup:function(e,t){var o=t.expose,a=t.attrs,r=h(),c=h(),u=Ce(),d=u.expandedKeys,s=u.flattenNodes;o({scrollTo:function(e){r.value.scrollTo(e)},getIndentWidth:function(){return c.value.offsetWidth}});var v=x(s.value),f=x([]),p=h(null);function g(){v.value=s.value,f.value=[],p.value=null,e.onListChangeEnd()}var b=Ke();y([function(){return d.value.slice()},s],(function(t,o){var a=n(t,2),r=a[0],i=a[1],l=n(o,2),c=l[0],u=l[1],d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=e.length,o=n.length;if(1!==Math.abs(t-o))return{add:!1,key:null};function a(e,n){var t=new Map;e.forEach((function(e){t.set(e,!0)}));var o=n.filter((function(e){return!t.has(e)}));return 1===o.length?o[0]:null}return t<o?{add:!0,key:a(e,n)}:{add:!1,key:a(n,e)}}(c,r);if(null!==d.key){var s=e.virtual,h=e.height,y=e.itemHeight;if(d.add){var g=u.findIndex((function(e){return e.key===d.key})),b=xn(pn(u,i,d.key),s,h,y),m=u.slice();m.splice(g+1,0,Sn),v.value=m,f.value=b,p.value="show"}else{var k=i.findIndex((function(e){return e.key===d.key})),S=xn(pn(i,u,d.key),s,h,y),x=i.slice();x.splice(k+1,0,Sn),v.value=x,f.value=S,p.value="hide"}}else u!==i&&(v.value=i)})),y((function(){return b.value.dragging}),(function(e){e||g()}));var m=S((function(){return void 0===e.motion?v.value:s.value})),k=function(){e.onActiveChange(null)};return function(){var n=i(i({},e),a),t=n.prefixCls,o=(n.selectable,n.checkable,n.disabled),u=n.motion,d=n.height,s=n.itemHeight,v=n.virtual,h=n.focusable,y=n.activeItem,b=n.focused,S=n.tabindex,x=n.onKeydown,K=n.onFocus,w=n.onBlur,C=n.onListChangeStart,O=(n.onListChangeEnd,hn(n,["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"]));return l(Y,null,[b&&y&&l("span",{style:yn,"aria-live":"assertive"},[wn(y)]),l("div",null,[l("input",{style:yn,disabled:!1===h||o,tabindex:!1!==h?S:null,onKeydown:x,onFocus:K,onBlur:w,value:"",onChange:gn,"aria-label":"for screen reader"},null)]),l("div",{class:"".concat(t,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[l("div",{class:"".concat(t,"-indent")},[l("div",{ref:c,class:"".concat(t,"-indent-unit")},null)])]),l(me,E(E({},j(O,["onActiveChange"])),{},{data:m.value,itemKey:Kn,height:d,fullHeight:!1,virtual:v,itemHeight:s,prefixCls:"".concat(t,"-list"),ref:r,onVisibleChange:function(e,n){var t=new Set(e);n.filter((function(e){return!t.has(e)})).some((function(e){return Kn(e)===bn}))&&g()}}),{default:function(e){var n=e.pos,t=hn(e.data,[]),o=e.title,a=e.key,r=e.isStart,i=e.isEnd,c=Xe(a,n);return delete t.key,delete t.children,l(fn,E(E({},t),{},{eventKey:c,title:o,active:!!y&&a===y.key,data:e.data,isStart:r,isEnd:i,motion:u,motionNodes:a===bn?f.value:null,motionType:p.value,onMotionStart:C,onMotionEnd:g,onMousemove:k}),null)}})])}}});var On=s({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,props:R(Ne(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,expandAction:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var n=e.dropPosition,t=e.dropLevelOffset,o=e.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:"".concat(2,"px")};switch(n){case-1:a.top=0,a.left="".concat(-t*o,"px");break;case 1:a.bottom=0,a.left="".concat(-t*o,"px");break;case 0:a.bottom=0,a.left="".concat(o)}return l("div",{style:a},null)},allowDrop:function(){return!0}}),setup:function(t,o){var u=o.attrs,d=o.slots,s=o.expose,f=x(!1),p={},h=x(),b=x([]),m=x([]),k=x([]),C=x([]),N=x([]),P=x([]),M={},I=v({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),L=x([]);y([function(){return t.treeData},function(){return t.children}],(function(){L.value=void 0!==t.treeData?t.treeData.slice():$e(K(t.children))}),{immediate:!0,deep:!0});var A=x({}),H=x(!1),B=x(null),F=x(!1),z=S((function(){return _e(t.fieldNames)})),R=x(),G=null,V=null,X=null,_=S((function(){return{expandedKeysSet:$.value,selectedKeysSet:U.value,loadedKeysSet:Y.value,loadingKeysSet:q.value,checkedKeysSet:Q.value,halfCheckedKeysSet:Z.value,dragOverNodeKey:I.dragOverNodeKey,dropPosition:I.dropPosition,keyEntities:A.value}})),$=S((function(){return new Set(P.value)})),U=S((function(){return new Set(b.value)})),Y=S((function(){return new Set(C.value)})),q=S((function(){return new Set(N.value)})),Q=S((function(){return new Set(m.value)})),Z=S((function(){return new Set(k.value)}));O((function(){if(L.value){var e=Ue(L.value,{fieldNames:z.value});A.value=i(r({},bn,kn),e.keyEntities)}}));var J=!1;y([function(){return t.expandedKeys},function(){return t.autoExpandParent},A],(function(e,o){var a=n(e,2),r=(a[0],a[1]),l=n(o,2),c=(l[0],l[1]),u=P.value;if(void 0!==t.expandedKeys||J&&r!==c)u=t.autoExpandParent||!J&&t.defaultExpandParent?Ge(t.expandedKeys,A.value):t.expandedKeys;else if(!J&&t.defaultExpandAll){var d=i({},A.value);delete d[bn],u=Object.keys(d).map((function(e){return d[e].key}))}else!J&&t.defaultExpandedKeys&&(u=t.autoExpandParent||t.defaultExpandParent?Ge(t.defaultExpandedKeys,A.value):t.defaultExpandedKeys);u&&(P.value=u),J=!0}),{immediate:!0});var ee=x([]);O((function(){ee.value=function(n,t,o){var a=_e(o),r=a._title,l=a.key,c=a.children,u=new Set(!0===t?[]:t),d=[];return function n(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.map((function(s,v){for(var f,p=He(a?a.pos:"0",v),h=Xe(s[l],p),y=0;y<r.length;y+=1){var g=r[y];if(void 0!==s[g]){f=s[g];break}}var b=i(i({},j(s,[].concat(e(r),[l,c]))),{title:f,key:h,parent:a,pos:p,children:null,data:s,isStart:[].concat(e(a?a.isStart:[]),[0===v]),isEnd:[].concat(e(a?a.isEnd:[]),[v===o.length-1])});return d.push(b),!0===t||u.has(h)?b.children=n(s[c]||[],b):b.children=[],b}))}(n),d}(L.value,P.value,z.value)})),O((function(){t.selectable&&(void 0!==t.selectedKeys?b.value=ze(t.selectedKeys,t):!J&&t.defaultSelectedKeys&&(b.value=ze(t.defaultSelectedKeys,t)))}));var ne=Je(A),te=ne.maxLevel,oe=ne.levelEntities;O((function(){var e;if(t.checkable&&(void 0!==t.checkedKeys?e=Re(t.checkedKeys)||{}:!J&&t.defaultCheckedKeys?e=Re(t.defaultCheckedKeys)||{}:L.value&&(e=Re(t.checkedKeys)||{checkedKeys:m.value,halfCheckedKeys:k.value}),e)){var n=e,o=n.checkedKeys,a=void 0===o?[]:o,r=n.halfCheckedKeys,i=void 0===r?[]:r;if(!t.checkStrictly){var l=Ze(a,!0,A.value,te.value,oe.value);a=l.checkedKeys,i=l.halfCheckedKeys}m.value=a,k.value=i}})),O((function(){t.loadedKeys&&(C.value=t.loadedKeys)}));var ae=function(){i(I,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},re=function(e){R.value.scrollTo(e)};y((function(){return t.activeKey}),(function(){void 0!==t.activeKey&&(B.value=t.activeKey)}),{immediate:!0}),y(B,(function(e){w((function(){null!==e&&re({key:e})}))}),{immediate:!0,flush:"post"});var ie=function(e){void 0===t.expandedKeys&&(P.value=e)},le=function(){null!==I.draggingNodeKey&&i(I,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),G=null,X=null},ce=function(e,n){var o=t.onDragend;I.dragOverNodeKey=null,le(),null==o||o({event:e,node:n.eventData}),V=null},ue=function(e){ce(e,null),window.removeEventListener("dragend",ue)},de=function(e,n){var o=t.onDragstart,a=n.eventKey,r=n.eventData;V=n,G={x:e.clientX,y:e.clientY};var i=Le(P.value,a);I.draggingNodeKey=a,I.dragChildrenKeys=function(e,n){var t=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(n){var o=n.key,a=n.children;t.push(o),e(a)}))}(n[e].children),t}(a,A.value),h.value=R.value.getIndentWidth(),ie(i),window.addEventListener("dragend",ue),o&&o({event:e,node:r})},se=function(e,n){var o=t.onDragenter,a=t.onExpand,r=t.allowDrop,l=t.direction,c=n.pos,u=n.eventKey;if(X!==u&&(X=u),V){var d=Fe(e,V,n,h.value,G,r,ee.value,A.value,$.value,l),s=d.dropPosition,v=d.dropLevelOffset,f=d.dropTargetKey,y=d.dropContainerKey,g=d.dropTargetPos,b=d.dropAllowed,m=d.dragOverNodeKey;-1===I.dragChildrenKeys.indexOf(f)&&b?(p||(p={}),Object.keys(p).forEach((function(e){clearTimeout(p[e])})),V.eventKey!==n.eventKey&&(p[c]=window.setTimeout((function(){if(null!==I.draggingNodeKey){var t=P.value.slice(),o=A.value[n.eventKey];o&&(o.children||[]).length&&(t=je(P.value,n.eventKey)),ie(t),a&&a(t,{node:n.eventData,expanded:!0,nativeEvent:e})}}),800)),V.eventKey!==f||0!==v?(i(I,{dragOverNodeKey:m,dropPosition:s,dropLevelOffset:v,dropTargetKey:f,dropContainerKey:y,dropTargetPos:g,dropAllowed:b}),o&&o({event:e,node:n.eventData,expandedKeys:P.value})):ae()):ae()}else ae()},ve=function(e,n){var o=t.onDragover,a=t.allowDrop,r=t.direction;if(V){var l=Fe(e,V,n,h.value,G,a,ee.value,A.value,$.value,r),c=l.dropPosition,u=l.dropLevelOffset,d=l.dropTargetKey,s=l.dropContainerKey,v=l.dropAllowed,f=l.dropTargetPos,p=l.dragOverNodeKey;-1===I.dragChildrenKeys.indexOf(d)&&v&&(V.eventKey===d&&0===u?null===I.dropPosition&&null===I.dropLevelOffset&&null===I.dropTargetKey&&null===I.dropContainerKey&&null===I.dropTargetPos&&!1===I.dropAllowed&&null===I.dragOverNodeKey||ae():c===I.dropPosition&&u===I.dropLevelOffset&&d===I.dropTargetKey&&s===I.dropContainerKey&&f===I.dropTargetPos&&v===I.dropAllowed&&p===I.dragOverNodeKey||i(I,{dropPosition:c,dropLevelOffset:u,dropTargetKey:d,dropContainerKey:s,dropTargetPos:f,dropAllowed:v,dragOverNodeKey:p}),o&&o({event:e,node:n.eventData}))}},fe=function(e,n){X!==n.eventKey||e.currentTarget.contains(e.relatedTarget)||(ae(),X=null);var o=t.onDragleave;o&&o({event:e,node:n.eventData})},pe=function(e,n){var o,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=I.dragChildrenKeys,l=I.dropPosition,c=I.dropTargetKey,u=I.dropTargetPos;if(I.dropAllowed){var d=t.onDrop;if(I.dragOverNodeKey=null,le(),null!==c){var s=i(i({},Ye(c,K(_.value))),{active:(null===(o=Me.value)||void 0===o?void 0:o.key)===c,data:A.value[c].node});r.indexOf(c);var v=Ae(u),f={event:e,node:We(s),dragNode:V?V.eventData:null,dragNodesKeys:[V.eventKey].concat(r),dropToGap:0!==l,dropPosition:l+Number(v[v.length-1])};a||null==d||d(f),V=null}}},he=function(e,n){var t=n.expanded,o=n.key,a=ee.value.filter((function(e){return e.key===o}))[0],r=We(i(i({},Ye(o,_.value)),{data:a.data}));ie(t?Le(P.value,o):je(P.value,o)),De(e,r)},ye=function(e,n){var o=t.onClick;"click"===t.expandAction&&he(e,n),o&&o(e,n)},ge=function(e,n){var o=t.onDblclick,a=t.expandAction;"doubleclick"!==a&&"dblclick"!==a||he(e,n),o&&o(e,n)},be=function(e,n){var o=b.value,a=t.onSelect,r=t.multiple,i=n.selected,l=n[z.value.key],c=!i;o=c?r?je(o,l):[l]:Le(o,l);var u=A.value,d=o.map((function(e){var n=u[e];return n?n.node:null})).filter((function(e){return e}));void 0===t.selectedKeys&&(b.value=o),a&&a(o,{event:"select",selected:c,node:n,selectedNodes:d,nativeEvent:e})},me=function(n,o,a){var r,i=t.checkStrictly,l=t.onCheck,c=o[z.value.key],u={event:"check",node:o,checked:a,nativeEvent:n},d=A.value;if(i){var s=a?je(m.value,c):Le(m.value,c);r={checked:s,halfChecked:Le(k.value,c)},u.checkedNodes=s.map((function(e){return d[e]})).filter((function(e){return e})).map((function(e){return e.node})),void 0===t.checkedKeys&&(m.value=s)}else{var v=Ze([].concat(e(m.value),[c]),!0,d,te.value,oe.value),f=v.checkedKeys,p=v.halfCheckedKeys;if(!a){var h=new Set(f);h.delete(c);var y=Ze(Array.from(h),{checked:!1,halfCheckedKeys:p},d,te.value,oe.value);f=y.checkedKeys,p=y.halfCheckedKeys}r=f,u.checkedNodes=[],u.checkedNodesPositions=[],u.halfCheckedKeys=p,f.forEach((function(e){var n=d[e];if(n){var t=n.node,o=n.pos;u.checkedNodes.push(t),u.checkedNodesPositions.push({node:t,pos:o})}})),void 0===t.checkedKeys&&(m.value=f,k.value=p)}l&&l(r,u)},ke=function(e){var n=e[z.value.key],o=new Promise((function(o,a){var r=t.loadData,i=t.onLoad;if(!r||Y.value.has(n)||q.value.has(n))return null;r(e).then((function(){var a=je(C.value,n),r=Le(N.value,n);i&&i(a,{event:"load",node:e}),void 0===t.loadedKeys&&(C.value=a),N.value=r,o()})).catch((function(e){var r=Le(N.value,n);if(N.value=r,M[n]=(M[n]||0)+1,M[n]>=10){var i=je(C.value,n);void 0===t.loadedKeys&&(C.value=i),o()}a(e)})),N.value=je(N.value,n)}));return o.catch((function(){})),o},Se=function(e,n){var o=t.onMouseenter;o&&o({event:e,node:n})},Ke=function(e,n){var o=t.onMouseleave;o&&o({event:e,node:n})},Ce=function(e,n){var o=t.onRightClick;o&&(e.preventDefault(),o({event:e,node:n}))},Oe=function(e){var n=t.onFocus;H.value=!0,n&&n(e)},Ee=function(e){var n=t.onBlur;H.value=!1,Te(null),n&&n(e)},De=function(e,n){var o=P.value,a=t.onExpand,r=t.loadData,i=n.expanded,l=n[z.value.key];if(!F.value){o.indexOf(l);var c=!i;if(o=c?je(o,l):Le(o,l),ie(o),a&&a(o,{node:n,expanded:c,nativeEvent:e}),c&&r){var u=ke(n);u&&u.then((function(){})).catch((function(e){var n=Le(P.value,l);ie(n),Promise.reject(e)}))}}},Ne=function(){F.value=!0},Pe=function(){setTimeout((function(){F.value=!1}))},Te=function(e){var n=t.onActiveChange;B.value!==e&&(void 0!==t.activeKey&&(B.value=e),null!==e&&re({key:e}),n&&n(e))},Me=S((function(){return null===B.value?null:ee.value.find((function(e){return e.key===B.value}))||null})),Ie=function(e){var n=ee.value.findIndex((function(e){return e.key===B.value}));-1===n&&e<0&&(n=ee.value.length),n=(n+e+ee.value.length)%ee.value.length;var t=ee.value[n];if(t){var o=t.key;Te(o)}else Te(null)},Be=S((function(){return We(i(i({},Ye(B.value,_.value)),{data:Me.value.data,active:!0}))})),Ve=function(e){var n=t.onKeydown,o=t.checkable,a=t.selectable;switch(e.which){case W.UP:Ie(-1),e.preventDefault();break;case W.DOWN:Ie(1),e.preventDefault()}var r=Me.value;if(r&&r.data){var i=!1===r.data.isLeaf||!!(r.data.children||[]).length,l=Be.value;switch(e.which){case W.LEFT:i&&$.value.has(B.value)?De({},l):r.parent&&Te(r.parent.key),e.preventDefault();break;case W.RIGHT:i&&!$.value.has(B.value)?De({},l):r.children&&r.children.length&&Te(r.children[0].key),e.preventDefault();break;case W.ENTER:case W.SPACE:!o||l.disabled||!1===l.checkable||l.disableCheckbox?o||!a||l.disabled||!1===l.selectable||be({},l):me({},l,!Q.value.has(B.value))}}n&&n(e)};return s({onNodeExpand:De,scrollTo:re,onKeydown:Ve,selectedKeys:S((function(){return b.value})),checkedKeys:S((function(){return m.value})),halfCheckedKeys:S((function(){return k.value})),loadedKeys:S((function(){return C.value})),loadingKeys:S((function(){return N.value})),expandedKeys:S((function(){return P.value}))}),g((function(){window.removeEventListener("dragend",ue),f.value=!0})),D(we,{expandedKeys:P,selectedKeys:b,loadedKeys:C,loadingKeys:N,checkedKeys:m,halfCheckedKeys:k,expandedKeysSet:$,selectedKeysSet:U,loadedKeysSet:Y,loadingKeysSet:q,checkedKeysSet:Q,halfCheckedKeysSet:Z,flattenNodes:ee}),function(){var e,n=I.draggingNodeKey,o=I.dropLevelOffset,s=I.dropContainerKey,v=I.dropTargetKey,f=I.dropPosition,p=I.dragOverNodeKey,y=t.prefixCls,g=t.showLine,b=t.focusable,m=t.tabindex,k=void 0===m?0:m,S=t.selectable,x=t.showIcon,K=t.icon,w=void 0===K?d.icon:K,C=t.switcherIcon,O=t.draggable,D=t.checkable,N=t.checkStrictly,P=t.disabled,M=t.motion,L=t.loadData,j=t.filterTreeNode,F=t.height,z=t.itemHeight,G=t.virtual,V=t.dropIndicatorRender,X=t.onContextmenu,_=t.onScroll,$=t.direction,U=t.rootClassName,Y=t.rootStyle,W=u.class,q=u.style,Q=T(i(i({},t),u),{aria:!0,data:!0});return e=!!O&&("object"===a(O)?O:"function"==typeof O?{nodeDraggable:O}:{}),l(xe,{value:{prefixCls:y,selectable:S,showIcon:x,icon:w,switcherIcon:C,draggable:e,draggingNodeKey:n,checkable:D,customCheckable:d.checkable,checkStrictly:N,disabled:P,keyEntities:A.value,dropLevelOffset:o,dropContainerKey:s,dropTargetKey:v,dropPosition:f,dragOverNodeKey:p,dragging:null!==n,indent:h.value,direction:$,dropIndicatorRender:V,loadData:L,filterTreeNode:j,onNodeClick:ye,onNodeDoubleClick:ge,onNodeExpand:De,onNodeSelect:be,onNodeCheck:me,onNodeLoad:ke,onNodeMouseEnter:Se,onNodeMouseLeave:Ke,onNodeContextMenu:Ce,onNodeDragStart:de,onNodeDragEnter:se,onNodeDragOver:ve,onNodeDragLeave:fe,onNodeDragEnd:ce,onNodeDrop:pe,slots:d}},{default:function(){return[l("div",{role:"tree",class:c(y,W,U,r(r(r({},"".concat(y,"-show-line"),g),"".concat(y,"-focused"),H.value),"".concat(y,"-active-focused"),null!==B.value)),style:Y},[l(Cn,E({ref:R,prefixCls:y,style:q,disabled:P,selectable:S,checkable:!!D,motion:M,height:F,itemHeight:z,virtual:G,focusable:b,focused:H.value,tabindex:k,activeItem:Me.value,onFocus:Oe,onBlur:Ee,onKeydown:Ve,onActiveChange:Te,onListChangeStart:Ne,onListChangeEnd:Pe,onContextmenu:X,onScroll:_},Q),null)])]}})}}}),En={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};function Dn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?Object(arguments[n]):{},o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),o.forEach((function(n){Nn(e,n,t[n])}))}return e}function Nn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Pn=function(e,n){var t=Dn({},e,n.attrs);return l(q,Dn({},t,{icon:En}),null)};Pn.displayName="FileOutlined",Pn.inheritAttrs=!1;var Tn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};function Mn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?Object(arguments[n]):{},o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),o.forEach((function(n){In(e,n,t[n])}))}return e}function In(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Ln=function(e,n){var t=Mn({},e,n.attrs);return l(q,Mn({},t,{icon:Tn}),null)};Ln.displayName="MinusSquareOutlined",Ln.inheritAttrs=!1;var jn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};function An(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?Object(arguments[n]):{},o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),o.forEach((function(n){Hn(e,n,t[n])}))}return e}function Hn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Bn=function(e,n){var t=An({},e,n.attrs);return l(q,An({},t,{icon:jn}),null)};Bn.displayName="PlusSquareOutlined",Bn.inheritAttrs=!1;var Fn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};function zn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?Object(arguments[n]):{},o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),o.forEach((function(n){Rn(e,n,t[n])}))}return e}function Rn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Gn=function(e,n){var t=zn({},e,n.attrs);return l(q,zn({},t,{icon:Fn}),null)};Gn.displayName="CaretDownFilled",Gn.inheritAttrs=!1;function Vn(e){var n=e.dropPosition,t=e.dropLevelOffset,o=e.prefixCls,a=e.indent,i=e.direction,c=void 0===i?"ltr":i,u="ltr"===c?"left":"right",d="ltr"===c?"right":"left",s=r(r({},u,"".concat(-t*a+4,"px")),d,0);switch(n){case-1:s.top="".concat(-3,"px");break;case 1:s.bottom="".concat(-3,"px");break;default:s.bottom="".concat(-3,"px"),s[u]="".concat(a+4,"px")}return l("div",{style:s,class:"".concat(o,"-drop-indicator")},null)}var Xn=new z("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),_n=function(e,n){var t,o=n.treeCls,a=n.treeNodeCls,l=n.treeNodePadding,c=n.treeTitleHeight,u=(c-n.fontSizeLG)/2,d=n.paddingXS;return r({},o,i(i({},B(n)),(r(r(r(r(r(r(r(r(r(r(t={background:n.colorBgContainer,borderRadius:n.borderRadius,transition:"background-color ".concat(n.motionDurationSlow)},"&".concat(o,"-rtl"),r({},"".concat(o,"-switcher"),{"&_close":r({},"".concat(o,"-switcher-icon"),{svg:{transform:"rotate(90deg)"}})})),"&-focused:not(:hover):not(".concat(o,"-active-focused)"),i({},F(n))),"".concat(o,"-list-holder-inner"),{alignItems:"flex-start"}),"&".concat(o,"-block-node"),r({},"".concat(o,"-list-holder-inner"),r(r({alignItems:"stretch"},"".concat(o,"-node-content-wrapper"),{flex:"auto"}),"".concat(a,".dragging"),{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:l,insetInlineStart:0,border:"1px solid ".concat(n.colorPrimary),opacity:0,animationName:Xn,animationDuration:n.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}))),"".concat(a),r(r(r({display:"flex",alignItems:"flex-start",padding:"0 0 ".concat(l,"px 0"),outline:"none","&-rtl":{direction:"rtl"},"&-disabled":r({},"".concat(o,"-node-content-wrapper"),{color:n.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}})},"&-active ".concat(o,"-node-content-wrapper"),i({},F(n))),"&:not(".concat(a,"-disabled).filter-node ").concat(o,"-title"),{color:"inherit",fontWeight:500}),"&-draggable",r(r({},"".concat(o,"-draggable-icon"),r({width:c,lineHeight:"".concat(c,"px"),textAlign:"center",visibility:"visible",opacity:.2,transition:"opacity ".concat(n.motionDurationSlow)},"".concat(a,":hover &"),{opacity:.45})),"&".concat(a,"-disabled"),r({},"".concat(o,"-draggable-icon"),{visibility:"hidden"})))),"".concat(o,"-indent"),{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:c}}),"".concat(o,"-draggable-icon"),{visibility:"hidden"}),"".concat(o,"-switcher"),i(i({},function(e,n){return r({},".".concat(e,"-switcher-icon"),{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:"transform ".concat(n.motionDurationSlow)}})}(e,n)),{position:"relative",flex:"none",alignSelf:"stretch",width:c,margin:0,lineHeight:"".concat(c,"px"),textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":r({},"".concat(o,"-switcher-icon"),{svg:{transform:"rotate(-90deg)"}}),"&-loading-icon":{color:n.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:c/2,bottom:-l,marginInlineStart:-1,borderInlineEnd:"1px solid ".concat(n.colorBorder),content:'""'},"&:after":{position:"absolute",width:c/2*.8,height:c/2,borderBottom:"1px solid ".concat(n.colorBorder),content:'""'}}})),"".concat(o,"-checkbox"),{top:"initial",marginInlineEnd:d,marginBlockStart:u}),"".concat(o,"-node-content-wrapper, ").concat(o,"-checkbox + span"),r(r({position:"relative",zIndex:"auto",minHeight:c,margin:0,padding:"0 ".concat(n.paddingXS/2,"px"),color:"inherit",lineHeight:"".concat(c,"px"),background:"transparent",borderRadius:n.borderRadius,cursor:"pointer",transition:"all ".concat(n.motionDurationMid,", border 0s, line-height 0s, box-shadow 0s"),"&:hover":{backgroundColor:n.controlItemBgHover}},"&".concat(o,"-node-selected"),{backgroundColor:n.controlItemBgActive}),"".concat(o,"-iconEle"),{display:"inline-block",width:c,height:c,lineHeight:"".concat(c,"px"),textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}})),r(r(r(r(r(t,"".concat(o,"-unselectable ").concat(o,"-node-content-wrapper:hover"),{backgroundColor:"transparent"}),"".concat(o,"-node-content-wrapper"),i({lineHeight:"".concat(c,"px"),userSelect:"none"},function(e,n){return r({},".".concat(e,"-drop-indicator"),{position:"absolute",zIndex:1,height:2,backgroundColor:n.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:"".concat(n.lineWidthBold,"px solid ").concat(n.colorPrimary),borderRadius:"50%",content:'""'}})}(e,n))),"".concat(a,".drop-container"),{"> [draggable]":{boxShadow:"0 0 0 2px ".concat(n.colorPrimary)}}),"&-show-line",r(r({},"".concat(o,"-indent"),{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:c/2,bottom:-l,borderInlineEnd:"1px solid ".concat(n.colorBorder),content:'""'},"&-end":{"&:before":{display:"none"}}}}),"".concat(o,"-switcher"),{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}})),"".concat(a,"-leaf-last"),r({},"".concat(o,"-switcher"),{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:"".concat(c/2,"px !important")}}})))))},$n=function(e){var n=e.treeCls,t=e.treeNodeCls,o=e.treeNodePadding;return r({},"".concat(n).concat(n,"-directory"),r({},t,r(r(r({position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,transition:"background-color ".concat(e.motionDurationMid),content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1}},"".concat(n,"-switcher"),{transition:"color ".concat(e.motionDurationMid)}),"".concat(n,"-node-content-wrapper"),r({borderRadius:0,userSelect:"none","&:hover":{background:"transparent"}},"&".concat(n,"-node-selected"),{color:e.colorTextLightSolid,background:"transparent"})),"&-selected",r(r(r({},"\n &:hover::before,\n &::before\n ",{background:e.colorPrimary}),"".concat(n,"-switcher"),{color:e.colorTextLightSolid}),"".concat(n,"-node-content-wrapper"),{color:e.colorTextLightSolid,background:"transparent"}))))},Un=function(e,n){var t=".".concat(e),o="".concat(t,"-treenode"),a=n.paddingXS/2,r=n.controlHeightSM,i=A(n,{treeCls:t,treeNodeCls:o,treeNodePadding:a,treeTitleHeight:r});return[_n(e,i),$n(i)]},Yn=H("Tree",(function(e,n){var t=n.prefixCls;return[r({},e.componentCls,tn("".concat(t,"-checkbox"),e)),Un(t,e),ce(e)]})),Wn=function(){var e=Ne();return i(i({},e),{showLine:ee([Boolean,Object]),multiple:ne(),autoExpandParent:ne(),checkStrictly:ne(),checkable:ne(),disabled:ne(),defaultExpandAll:ne(),defaultExpandParent:ne(),defaultExpandedKeys:te(),expandedKeys:te(),checkedKeys:ee([Array,Object]),defaultCheckedKeys:te(),selectedKeys:te(),defaultSelectedKeys:te(),selectable:ne(),loadedKeys:te(),draggable:ne(),showIcon:ne(),icon:oe(),switcherIcon:k.any,prefixCls:String,replaceFields:ae(),blockNode:ne(),openAnimation:k.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":oe(),"onUpdate:checkedKeys":oe(),"onUpdate:expandedKeys":oe()})},qn=s({compatConfig:{MODE:3},name:"ATree",inheritAttrs:!1,props:R(Wn(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:Object,setup:function(e,t){var o=t.attrs,u=t.expose,s=t.emit,v=t.slots;P(!(void 0===e.treeData&&v.default));var f=G("tree",e),p=f.prefixCls,y=f.direction,g=f.virtual,b=n(Yn(p),2),m=b[0],k=b[1],x=h();u({treeRef:x,onNodeExpand:function(){var e,n;null===(n=x.value)||void 0===n||(e=n).onNodeExpand.apply(e,arguments)},scrollTo:function(e){var n;null===(n=x.value)||void 0===n||n.scrollTo(e)},selectedKeys:S((function(){var e;return null===(e=x.value)||void 0===e?void 0:e.selectedKeys})),checkedKeys:S((function(){var e;return null===(e=x.value)||void 0===e?void 0:e.checkedKeys})),halfCheckedKeys:S((function(){var e;return null===(e=x.value)||void 0===e?void 0:e.halfCheckedKeys})),loadedKeys:S((function(){var e;return null===(e=x.value)||void 0===e?void 0:e.loadedKeys})),loadingKeys:S((function(){var e;return null===(e=x.value)||void 0===e?void 0:e.loadingKeys})),expandedKeys:S((function(){var e;return null===(e=x.value)||void 0===e?void 0:e.expandedKeys}))}),O((function(){J(void 0===e.replaceFields,"Tree","`replaceFields` is deprecated, please use fieldNames instead")}));var K=function(e,n){s("update:checkedKeys",e),s("check",e,n)},w=function(e,n){s("update:expandedKeys",e),s("expand",e,n)},C=function(e,n){s("update:selectedKeys",e),s("select",e,n)};return function(){var n=e.showIcon,t=e.showLine,u=e.switcherIcon,s=void 0===u?v.switcherIcon:u,f=e.icon,h=void 0===f?v.icon:f,b=e.blockNode,S=e.checkable,O=e.selectable,D=e.fieldNames,N=void 0===D?e.replaceFields:D,P=e.motion,T=void 0===P?e.openAnimation:P,M=e.itemHeight,L=void 0===M?28:M,A=e.onDoubleclick,H=e.onDblclick,B=i(i(i({},o),j(e,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{showLine:Boolean(t),dropIndicatorRender:Vn,fieldNames:N,icon:h,itemHeight:L}),F=v.default?I(v.default()):void 0;return m(l(On,E(E({},B),{},{virtual:g.value,motion:T,ref:x,prefixCls:p.value,class:c(r(r(r(r({},"".concat(p.value,"-icon-hide"),!n),"".concat(p.value,"-block-node"),b),"".concat(p.value,"-unselectable"),!O),"".concat(p.value,"-rtl"),"rtl"===y.value),o.class,k.value),direction:y.value,checkable:S,selectable:O,switcherIcon:function(e){return function(e,n,t,o,r){var c,u=t.isLeaf,s=t.expanded,v=n;if(t.loading)return l(Q,{class:"".concat(e,"-switcher-loading-icon")},null);r&&"object"===a(r)&&(c=r.showLeafIcon);var f=null,p="".concat(e,"-switcher-icon");return u?r?c&&o?o(t):f="object"!==a(r)||c?l(Pn,{class:"".concat(e,"-switcher-line-icon")},null):l("span",{class:"".concat(e,"-switcher-leaf-line")},null):null:(f=l(Gn,{class:p},null),r&&(f=l(s?Ln:Bn,{class:"".concat(e,"-switcher-line-icon")},null)),"function"==typeof n?v=n(i(i({},t),{defaultIcon:f,switcherCls:p})):Z(v)&&(v=d(v,{class:p})),v||f)}(p.value,s,e,v.leafIcon,t)},onCheck:K,onExpand:w,onSelect:C,onDblclick:H||A,children:F}),i(i({},v),{checkable:function(){return l("span",{class:"".concat(p.value,"-checkbox-inner")},null)}})))}}}),Qn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};function Zn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?Object(arguments[n]):{},o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),o.forEach((function(n){Jn(e,n,t[n])}))}return e}function Jn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var et=function(e,n){var t=Zn({},e,n.attrs);return l(q,Zn({},t,{icon:Qn}),null)};et.displayName="FolderOpenOutlined",et.inheritAttrs=!1;var nt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};function tt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?Object(arguments[n]):{},o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),o.forEach((function(n){ot(e,n,t[n])}))}return e}function ot(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var at,rt=function(e,n){var t=tt({},e,n.attrs);return l(q,tt({},t,{icon:nt}),null)};function it(e,n,t){e.forEach((function(e){var o=e[n.key],a=e[n.children];!1!==t(o,e)&&it(a||[],n,t)}))}function lt(e){var n=e.treeData,t=e.expandedKeys,o=e.startKey,a=e.endKey,r=e.fieldNames,i=void 0===r?{title:"title",key:"key",children:"children"}:r,l=[],c=at.None;if(o&&o===a)return[o];if(!o||!a)return[];return it(n,i,(function(e){if(c===at.End)return!1;if(function(e){return e===o||e===a}(e)){if(l.push(e),c===at.None)c=at.Start;else if(c===at.Start)return c=at.End,!1}else c===at.Start&&l.push(e);return t.includes(e)})),l}function ct(n,t,o){var a=e(t),r=[];return it(n,o,(function(e,n){var t=a.indexOf(e);return-1!==t&&(r.push(n),a.splice(t,1)),!!a.length})),r}rt.displayName="FolderOutlined",rt.inheritAttrs=!1,function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"}(at||(at={}));var ut=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)n.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(t[o[a]]=e[o[a]])}return t};function dt(e){var n=e.isLeaf,t=e.expanded;return l(n?Pn:t?et:rt,null,null)}var st=t("a",s({compatConfig:{MODE:3},name:"ADirectoryTree",inheritAttrs:!1,props:R(i(i({},Wn()),{expandAction:ee([Boolean,String])}),{showIcon:!0,expandAction:"click"}),slots:Object,setup:function(n,t){var o,a=t.attrs,u=t.slots,d=t.emit,s=t.expose,v=h(n.treeData||$e(I(null===(o=u.default)||void 0===o?void 0:o.call(u))));y((function(){return n.treeData}),(function(){v.value=n.treeData})),C((function(){w((function(){var e;void 0===n.treeData&&u.default&&(v.value=$e(I(null===(e=u.default)||void 0===e?void 0:e.call(u))))}))}));var f=h(),p=h(),g=S((function(){return _e(n.fieldNames)})),b=h();s({scrollTo:function(e){var n;null===(n=b.value)||void 0===n||n.scrollTo(e)},selectedKeys:S((function(){var e;return null===(e=b.value)||void 0===e?void 0:e.selectedKeys})),checkedKeys:S((function(){var e;return null===(e=b.value)||void 0===e?void 0:e.checkedKeys})),halfCheckedKeys:S((function(){var e;return null===(e=b.value)||void 0===e?void 0:e.halfCheckedKeys})),loadedKeys:S((function(){var e;return null===(e=b.value)||void 0===e?void 0:e.loadedKeys})),loadingKeys:S((function(){var e;return null===(e=b.value)||void 0===e?void 0:e.loadingKeys})),expandedKeys:S((function(){var e;return null===(e=b.value)||void 0===e?void 0:e.expandedKeys}))});var m,k=h(n.selectedKeys||n.defaultSelectedKeys||[]),x=h((m=Ue(v.value,{fieldNames:g.value}).keyEntities,n.defaultExpandAll?Object.keys(m):n.defaultExpandParent?Ge(n.expandedKeys||n.defaultExpandedKeys||[],m):n.expandedKeys||n.defaultExpandedKeys));y((function(){return n.selectedKeys}),(function(){void 0!==n.selectedKeys&&(k.value=n.selectedKeys)}),{immediate:!0}),y((function(){return n.expandedKeys}),(function(){void 0!==n.expandedKeys&&(x.value=n.expandedKeys)}),{immediate:!0});var K=re((function(e,n){n.isLeaf||e.shiftKey||e.metaKey||e.ctrlKey||b.value.onNodeExpand(e,n)}),200,{leading:!0}),O=function(e,t){void 0===n.expandedKeys&&(x.value=e),d("update:expandedKeys",e),d("expand",e,t)},D=function(e,t){"click"===n.expandAction&&K(e,t),d("click",e,t)},N=function(e,t){var o=n.expandAction;"dblclick"!==o&&"doubleclick"!==o||K(e,t),d("doubleclick",e,t),d("dblclick",e,t)},P=function(t,o){var a,r=n.multiple,l=o.node,c=o.nativeEvent,u=l[g.value.key],s=i(i({},o),{selected:!0}),h=(null==c?void 0:c.ctrlKey)||(null==c?void 0:c.metaKey),y=null==c?void 0:c.shiftKey;r&&h?(a=t,f.value=u,p.value=a,s.selectedNodes=ct(v.value,a,g.value)):r&&y?(a=Array.from(new Set([].concat(e(p.value||[]),e(lt({treeData:v.value,expandedKeys:x.value,startKey:u,endKey:f.value,fieldNames:g.value}))))),s.selectedNodes=ct(v.value,a,g.value)):(a=[u],f.value=u,p.value=a,s.selectedNodes=ct(v.value,a,g.value)),d("update:selectedKeys",a),d("select",a,s),void 0===n.selectedKeys&&(k.value=a)},T=function(e,n){d("update:checkedKeys",e),d("check",e,n)},M=G("tree",n),L=M.prefixCls,j=M.direction;return function(){var e=c("".concat(L.value,"-directory"),r({},"".concat(L.value,"-directory-rtl"),"rtl"===j.value),a.class),t=n.icon,o=void 0===t?u.icon:t,i=n.blockNode,d=void 0===i||i,s=ut(n,["icon","blockNode"]);return l(qn,E(E(E({},a),{},{icon:o||dt,ref:b,blockNode:d},s),{},{prefixCls:L.value,class:e,expandedKeys:x.value,selectedKeys:k.value,onSelect:P,onClick:D,onDblclick:N,onExpand:O,onCheck:T}),u)}}})),vt=Ie;t("_",i(qn,{DirectoryTree:st,TreeNode:vt,install:function(e){return e.component(qn.name,qn),e.component(vt.name,vt),e.component(st.name,st),e}}))}}}))}();
|