@customize-agent/server 4.0.108 → 4.0.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +27 -27
- package/.next/prerender-manifest.json +3 -3
- package/.next/server/chunks/1928.js +1 -1
- package/.next/server/chunks/1936.js +1 -1
- package/.next/server/chunks/6041.js +10 -8
- package/.next/server/chunks/8204.js +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/pages/api/kb/files/tree.js +5 -0
- package/.next/server/pages/api/kb/files/tree.js.nft.json +1 -0
- package/.next/server/pages/asset-library.html +1 -1
- package/.next/server/pages/document-roles.html +1 -1
- package/.next/server/pages/documents.html +1 -1
- package/.next/server/pages/guide.html +1 -1
- package/.next/server/pages/index.html +1 -1
- package/.next/server/pages/knowledge/file-detail.html +1 -1
- package/.next/server/pages/knowledge/files.html +1 -1
- package/.next/server/pages/knowledge/manage.html +1 -1
- package/.next/server/pages/knowledge.html +1 -1
- package/.next/server/pages/models.html +1 -1
- package/.next/server/pages/overview.html +1 -1
- package/.next/server/pages/prompt.html +1 -1
- package/.next/server/pages/settings.html +1 -1
- package/.next/server/pages/system/logs.html +1 -1
- package/.next/server/pages-manifest.json +28 -27
- package/.next/static/WFPMB0O5frURgkh5Qa8-n/_buildManifest.js +1 -0
- package/.next/static/chunks/{289-789ef042acd53608.js → 289-39ef5df8097382b4.js} +23 -23
- package/.next/static/chunks/497-58fdc9f4b4437f94.js +4 -0
- package/.next/static/chunks/713-efe6b531f7a30a5f.js +1 -0
- package/.next/static/chunks/795-e18d1f7843b8f683.js +1 -0
- package/.next/static/chunks/pages/_app-45a68e88c43b4f2c.js +212 -0
- package/.next/static/chunks/pages/asset-library-994e1e2977b6cf1b.js +1 -0
- package/.next/static/chunks/pages/{document-roles-aa320afdbc2edc5e.js → document-roles-17247e9639a04648.js} +1 -1
- package/.next/static/chunks/pages/documents-e79320e8cb87a955.js +1 -0
- package/.next/static/chunks/pages/knowledge/file-detail-73678bce1bb43f02.js +1 -0
- package/.next/static/chunks/pages/knowledge/files-f72277ef4a72bff0.js +1 -0
- package/.next/static/chunks/pages/knowledge/{manage-1363f53928abf98c.js → manage-b07ce5086d63ca67.js} +1 -1
- package/.next/static/chunks/pages/models-ec554ec972763d7b.js +1 -0
- package/.next/static/chunks/pages/prompt-11aab3e22cca2bdd.js +1 -0
- package/.next/static/chunks/pages/system/logs-91bfbc6fe9343d2e.js +1 -0
- package/.next/static/css/725551a791210988.css +1 -0
- package/.next/static/css/ad5a592c79d1448b.css +1 -0
- package/messages/en-US.json +147 -3
- package/messages/zh-CN.json +150 -6
- package/package.json +4 -4
- package/.next/static/chunks/375-1e1be370b94c7512.js +0 -1
- package/.next/static/chunks/651-b650f9bca2edf976.js +0 -4
- package/.next/static/chunks/795-ed2375ec938022d8.js +0 -1
- package/.next/static/chunks/pages/_app-d98d9d52c6257579.js +0 -212
- package/.next/static/chunks/pages/asset-library-dda51e0651d970ed.js +0 -1
- package/.next/static/chunks/pages/documents-5f3e8e1439988355.js +0 -1
- package/.next/static/chunks/pages/knowledge/file-detail-5c2b9a22d3d521e0.js +0 -1
- package/.next/static/chunks/pages/knowledge/files-57f72cae47532ab9.js +0 -1
- package/.next/static/chunks/pages/models-5d75c007cb2e8c25.js +0 -1
- package/.next/static/chunks/pages/prompt-87eeee86405f1356.js +0 -1
- package/.next/static/chunks/pages/system/logs-05259fa91f2e0903.js +0 -1
- package/.next/static/css/029ff7574443cc55.css +0 -1
- package/.next/static/css/df824e8d8cadbeb1.css +0 -1
- package/.next/static/wkCOJRi841-n7F2_lCGdW/_buildManifest.js +0 -1
- /package/.next/static/{wkCOJRi841-n7F2_lCGdW → WFPMB0O5frURgkh5Qa8-n}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[497],{1310:(e,t,r)=>{r.d(t,{A:()=>c});var a=r(97109),l=r(90190),n=r(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let c=a.forwardRef((e,t)=>a.createElement(n.A,o({},e,{ref:t,icon:l.A})))},1611:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"}},2256:(e,t,r)=>{r.d(t,{A:()=>a});let a=r(25341).A},7851:(e,t,r)=>{r.d(t,{A:()=>c});var a=r(97109),l=r(12059),n=r(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let c=a.forwardRef((e,t)=>a.createElement(n.A,o({},e,{ref:t,icon:l.A})))},8579:(e,t,r)=>{r.d(t,{A:()=>c});var a=r(97109),l=r(95008),n=r(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let c=a.forwardRef((e,t)=>a.createElement(n.A,o({},e,{ref:t,icon:l.A})))},12059:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"}},12887:(e,t)=>{t.A={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 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"}},16285:(e,t,r)=>{r.d(t,{A:()=>c});var a=r(97109),l=r(71885),n=r(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let c=a.forwardRef((e,t)=>a.createElement(n.A,o({},e,{ref:t,icon:l.A})))},23216:(e,t,r)=>{r.d(t,{A:()=>c});var a=r(97109),l=r(29664),n=r(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let c=a.forwardRef((e,t)=>a.createElement(n.A,o({},e,{ref:t,icon:l.A})))},23718:(e,t,r)=>{r.d(t,{A:()=>J});var a=r(97109),l=r(5308),n=r(87925),o=r(42644);let c=()=>null;function i(e){if(!e)return e;let t={...e};return"props"in t||Object.defineProperty(t,"props",{get:()=>((0,o.$e)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t)}),t}function s(e){let t=a.useRef();return t.current=e,a.useCallback((...e)=>t.current(...e),[])}let u=a.createContext(null),d=a.createContext(null),p=e=>!e||e.disabled||e.disableCheckbox||!1===e.checkable;function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let f={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},v=a.forwardRef((e,t)=>{let{prefixCls:r,multiple:c,searchValue:i,toggleOpen:s,open:v,notFoundContent:m}=(0,l.Vm)(),{virtual:b,listHeight:g,listItemHeight:y,listItemScrollOffset:w,treeData:A,fieldNames:C,onSelect:O,popupMatchSelectWidth:S,treeExpandAction:$,treeTitleRender:k,onPopupScroll:H,leftMaxCount:z,leafCountOnly:x,valueEntities:M,classNames:V,styles:E}=a.useContext(d),{checkable:L,checkedKeys:j,halfCheckedKeys:P,treeExpandedKeys:N,treeDefaultExpandAll:D,treeDefaultExpandedKeys:I,onTreeExpand:R,treeIcon:B,showTreeIcon:T,switcherIcon:W,treeLine:_,treeNodeFilterProp:K,loadData:F,treeLoadedKeys:X,treeMotion:q,onTreeLoad:G,keyEntities:U}=a.useContext(u),J=a.useRef(),Q=(0,o.Kr)(()=>A,[v,A],(e,t)=>t[0]&&e[1]!==t[1]),Y=a.useMemo(()=>L?{checked:j,halfChecked:P}:null,[L,j,P]);a.useEffect(()=>{v&&!c&&j.length&&J.current?.scrollTo({key:j[0]})},[v]);let Z=e=>{e.preventDefault()},ee=(e,t)=>{let{node:r}=t;!(L&&p(r))&&(O(r.key,{selected:!j.includes(r.key)}),c||s(!1))},[et,er]=a.useState(I),[ea,el]=a.useState(null),en=a.useMemo(()=>N?[...N]:i?ea:et,[et,ea,N,i]),eo=String(i).toLowerCase(),ec=e=>!!eo&&String(e[K]).toLowerCase().includes(eo);a.useEffect(()=>{i&&el(((e,t)=>{let r=[],a=e=>{e.forEach(e=>{let l=e[t.children];l&&(r.push(e[t.value]),a(l))})};return a(e),r})(A,C))},[i]);let[ei,es]=a.useState(()=>new Map);a.useEffect(()=>{z&&es(new Map)},[z]);let eu=(0,o._q)(e=>{let t=e[C.value];return!j.includes(t)&&null!==z&&(z<=0||!!x&&!!z&&function(e){let t=e[C.value];if(!ei.has(t)){let e=M.get(t);if(0===(e.children||[]).length)ei.set(t,!1);else{let r=e.children.filter(e=>!e.node.disabled&&!e.node.disableCheckbox&&!j.includes(e.node[C.value])).length;ei.set(t,r>z)}}return ei.get(t)}(e))}),ed=e=>{for(let t of e)if(!t.disabled&&!1!==t.selectable){if(!i||ec(t))return t;if(t[C.children]){let e=ed(t[C.children]);if(e)return e}}return null},[ep,eh]=a.useState(null),ef=U[ep];a.useEffect(()=>{if(v)eh(c||!j.length||i?(()=>{let e=ed(Q);return e?e[C.value]:null})():j[0])},[v,i]),a.useImperativeHandle(t,()=>({scrollTo:J.current?.scrollTo,onKeyDown:e=>{let{which:t}=e;switch(t){case o.DD.UP:case o.DD.DOWN:case o.DD.LEFT:case o.DD.RIGHT:J.current?.onKeyDown(e);break;case o.DD.ENTER:if(ef){let e=eu(ef.node),{selectable:t,value:r,disabled:a}=ef?.node||{};!1===t||a||e||ee(null,{node:{key:ep},selected:!j.includes(r)})}break;case o.DD.ESC:s(!1)}},onKeyUp:()=>{}}));let ev=(0,o.Kr)(()=>!i,[i,N||et],([e],[t,r])=>e!==t&&!!(t||r));if(0===Q.length)return a.createElement("div",{role:"listbox",className:`${r}-empty`,onMouseDown:Z},m);let em={fieldNames:C};return X&&(em.loadedKeys=X),en&&(em.expandedKeys=en),a.createElement("div",{onMouseDown:Z},ef&&v&&a.createElement("span",{style:f,"aria-live":"assertive"},ef.node.value),a.createElement(n.QB.Provider,{value:{nodeDisabled:eu}},a.createElement(n.Ay,h({classNames:V?.popup,styles:E?.popup,ref:J,focusable:!1,prefixCls:`${r}-tree`,treeData:Q,height:g,itemHeight:y,itemScrollOffset:w,virtual:!1!==b&&!1!==S,multiple:c,icon:B,showIcon:T,switcherIcon:W,showLine:_,loadData:ev?F:null,motion:q,activeKey:ep,checkable:L,checkStrictly:!0,checkedKeys:Y,selectedKeys:L?[]:j,defaultExpandAll:D,titleRender:k},em,{onActiveChange:eh,onSelect:ee,onCheck:ee,onExpand:e=>{er(e),el(e),R&&R(e)},onLoad:G,filterTreeNode:ec,expandAction:$,onScroll:H}))))}),m="SHOW_ALL",b="SHOW_PARENT",g="SHOW_CHILD";function y(e,t,r,a){let l=new Set(e);return t===g?e.filter(e=>{let t=r[e];return!t||!t.children||!t.children.some(({node:e})=>l.has(e[a.value]))||!t.children.every(({node:e})=>p(e)||l.has(e[a.value]))}):t===b?e.filter(e=>{let t=r[e],a=t?t.parent:null;return!a||p(a.node)||!l.has(a.key)}):e}function w(){return(w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let A=a.forwardRef((e,t)=>{let{id:r,prefixCls:p="rc-tree-select",value:h,defaultValue:f,onChange:b,onSelect:A,onDeselect:C,showSearch:O,searchValue:S,inputValue:$,onSearch:k,autoClearSearchValue:H,filterTreeNode:z,treeNodeFilterProp:x,showCheckedStrategy:M,treeNodeLabelProp:V,multiple:E,treeCheckable:L,treeCheckStrictly:j,labelInValue:P,maxCount:N,fieldNames:D,treeDataSimpleMode:I,treeData:R,children:B,loadData:T,treeLoadedKeys:W,onTreeLoad:_,treeDefaultExpandAll:K,treeExpandedKeys:F,treeDefaultExpandedKeys:X,onTreeExpand:q,treeExpandAction:G,virtual:U,listHeight:J=200,listItemHeight:Q=20,listItemScrollOffset:Y=0,onPopupVisibleChange:Z,popupMatchSelectWidth:ee=!0,treeLine:et,treeIcon:er,showTreeIcon:ea,switcherIcon:el,treeMotion:en,treeTitleRender:eo,onPopupScroll:ec,classNames:ei,styles:es,...eu}=e,ed=(0,o.Bi)(r),ep=L&&!j,eh=L||j,ef=j||P,ev=eh||E,[em,eb]=function(e,t){let{searchValue:r,inputValue:l,onSearch:n,autoClearSearchValue:o,filterTreeNode:c,treeNodeFilterProp:i}=t;return a.useMemo(()=>{let t="object"==typeof e,a={searchValue:r??l,onSearch:n,autoClearSearchValue:o,filterTreeNode:c,treeNodeFilterProp:i,...t?e:{}};return[!!t||e,a]},[e,r,l,n,o,c,i])}(O,{searchValue:S,inputValue:$,onSearch:k,autoClearSearchValue:H,filterTreeNode:z,treeNodeFilterProp:x}),{searchValue:eg,onSearch:ey,autoClearSearchValue:ew=!0,filterTreeNode:eA,treeNodeFilterProp:eC="value"}=eb,[eO,eS]=(0,o.PW)(f,h),e$=a.useMemo(()=>L?M||g:m,[M,L]),ek=a.useMemo(()=>(e=>{let{label:t,value:r,children:a}=e||{};return{_title:t?[t]:["title","label"],value:r||"value",key:r||"value",children:a||"children"}})(D),[JSON.stringify(D)]),[eH,ez]=(0,o.PW)("",eg),ex=eH||"",eM=function(e,t,r){return a.useMemo(()=>{if(e){if(r){let t={id:"id",pId:"pId",rootPId:null,..."object"==typeof r?r:{}},{id:a,pId:l,rootPId:n}=t,o=new Map,c=[];return e.forEach(e=>{let t=e[a],r={...e,key:e.key||t};o.set(t,r)}),o.forEach(e=>{let t=e[l],r=o.get(t);r?(r.children=r.children||[],r.children.push(e)):(t===n||null===n)&&c.push(e)}),c}return e}return function e(t){return(0,o.$r)(t).map(t=>{if(!a.isValidElement(t)||!t.type)return null;let{key:r,props:{children:l,value:n,...o}}=t,c={key:r,value:n,...o},i=e(l);return i.length&&(c.children=i),c}).filter(e=>e)}(t)},[t,r,e])}(R,B,I),{keyEntities:eV,valueEntities:eE}=((e,t)=>a.useMemo(()=>(0,n.cG)(e,{fieldNames:t,initWrapper:e=>({...e,valueEntities:new Map}),processEntity:(e,r)=>{let a=e.node[t.value];r.valueEntities.set(a,e)}}),[e,t]))(eM,ek),eL=a.useCallback(e=>{let t=[],r=[];return e.forEach(e=>{eE.has(e)?r.push(e):t.push(e)}),{missingRawValues:t,existRawValues:r}},[eE]),ej=((e,t,r)=>{let{fieldNames:l,treeNodeFilterProp:n,filterTreeNode:o}=r,{children:c}=l;return a.useMemo(()=>{if(!t||!1===o)return e;let r="function"==typeof o?o:(e,r)=>String(r[n]).toUpperCase().includes(t.toUpperCase()),a=(e,l=!1)=>e.reduce((e,n)=>{let o=n[c],s=l||r(t,i(n)),u=a(o||[],s);return(s||u.length)&&e.push({...n,isLeaf:void 0,[c]:u}),e},[]);return a(e)},[e,t,c,n,o])})(eM,ex,{fieldNames:ek,treeNodeFilterProp:eC,filterTreeNode:eA}),eP=a.useCallback(e=>{if(e){if(V)return e[V];let{_title:t}=ek;for(let r=0;r<t.length;r+=1){let a=e[t[r]];if(void 0!==a)return a}}},[ek,V]),eN=a.useCallback(e=>(e=>Array.isArray(e)?e:void 0!==e?[e]:[])(e).map(e=>!function(e){return!e||"object"!=typeof e}(e)?e:{value:e}),[]),eD=a.useCallback(e=>eN(e).map(e=>{let t,{label:r}=e,{value:a,halfChecked:l}=e,n=eE.get(a);return n?(r=eo?eo(n.node):r??eP(n.node),t=n.node.disabled):void 0===r&&(r=eN(eO).find(e=>e.value===a).label),{label:r,value:a,halfChecked:l,disabled:t}}),[eE,eP,eN,eO]),eI=a.useMemo(()=>eN(null===eO?[]:eO),[eN,eO]),[eR,eB]=a.useMemo(()=>{let e=[],t=[];return eI.forEach(r=>{r.halfChecked?t.push(r):e.push(r)}),[e,t]},[eI]),eT=a.useMemo(()=>eR.map(e=>e.value),[eR]),[eW,e_]=((e,t,r,l)=>a.useMemo(()=>{let a=e=>e.map(({value:e})=>e),o=a(e),c=a(t),i=o.filter(e=>!l[e]),s=o,u=c;if(r){let e=(0,n.po)(o,!0,l);s=e.checkedKeys,u=e.halfCheckedKeys}return[Array.from(new Set([...i,...s])),u]},[e,t,r,l]))(eR,eB,ep,eV),[eK]=(e=>{let t=a.useRef({valueLabels:new Map});return a.useMemo(()=>{let{valueLabels:r}=t.current,a=new Map,l=e.map(e=>{let{value:t,label:l}=e,n=l??r.get(t);return a.set(t,n),{...e,label:n}});return t.current.valueLabels=a,[l]},[e])})(a.useMemo(()=>{let e=eD(y(eW,e$,eV,ek).map(e=>eV[e]?.node?.[ek.value]??e).map(e=>{let t=eR.find(t=>t.value===e);return{value:e,label:P?t?.label:eo?.(t)}})),t=e[0];return!ev&&t&&null==t.value&&null==t.label?[]:e.map(e=>({...e,label:e.label??e.value}))},[ek,ev,eW,eR,eD,e$,eV])),eF=a.useMemo(()=>ev&&("SHOW_CHILD"===e$||j||!L)?N:null,[N,ev,j,e$,L]),eX=s((e,t,r)=>{let l=y(e,e$,eV,ek);if((!eF||!(l.length>eF))&&(eS(eD(e)),ew&&ez(""),b)){let n=e;ep&&(n=l.map(e=>{let t=eE.get(e);return t?t.node[ek.value]:e}));let{triggerValue:i,selected:s}=t||{triggerValue:void 0,selected:void 0},u=n;j&&(u=[...u,...eB.filter(e=>!n.includes(e.value))]);let d=eD(u),p={preValue:eR,triggerValue:i},h=!0;(j||"selection"===r&&!s)&&(h=!1),function(e,t,r,l,n,i){let s=null,u=null;function d(){u||(u=[],function e(l,n="0",o=!1){return l.map((l,d)=>{let p=`${n}-${d}`,h=l[i.value],f=r.includes(h),v=e(l[i.children]||[],p,f),m=a.createElement(c,l,v.map(e=>e.node));if(t===h&&(s=m),f){let e={pos:p,node:m,children:v};return o||u.push(e),e}return null}).filter(e=>e)}(l),u.sort(({node:{props:{value:e}}},{node:{props:{value:t}}})=>r.indexOf(e)-r.indexOf(t)))}Object.defineProperty(e,"triggerNode",{get:()=>((0,o.$e)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),d(),s)}),Object.defineProperty(e,"allCheckedNodes",{get:()=>((0,o.$e)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),d(),n)?u:u.map(({node:e})=>e)})}(p,i,e,eM,h,ek),eh?p.checked=s:p.selected=s;let f=ef?d:d.map(e=>e.value);b(ev?f:f[0],ef?null:d.map(e=>e.label),p)}}),eq=a.useCallback((e,{selected:t,source:r})=>{let a=eV[e],l=a?.node,o=l?.[ek.value]??e;if(ev){let e=t?[...eT,o]:eW.filter(e=>e!==o);if(ep){let r,{missingRawValues:a,existRawValues:l}=eL(e),o=l.map(e=>eE.get(e).key);t?{checkedKeys:r}=(0,n.po)(o,!0,eV):{checkedKeys:r}=(0,n.po)(o,{checked:!1,halfCheckedKeys:e_},eV),e=[...a,...r.map(e=>eV[e].node[ek.value])]}eX(e,{selected:t,triggerValue:o},r||"option")}else eX([o],{selected:!0,triggerValue:o},"option");t||!ev?A?.(o,i(l)):C?.(o,i(l))},[eL,eE,eV,ek,ev,eT,eX,ep,A,C,eW,e_,N]),eG=a.useCallback(e=>{Z&&Z(e)},[Z]),eU=s((e,t)=>{let r=e.map(e=>e.value);if("clear"===t.type)return void eX(r,{},"selection");t.values.length&&eq(t.values[0].value,{selected:!1,source:"selection"})}),eJ=a.useMemo(()=>({virtual:U,popupMatchSelectWidth:ee,listHeight:J,listItemHeight:Q,listItemScrollOffset:Y,treeData:ej,fieldNames:ek,onSelect:eq,treeExpandAction:G,treeTitleRender:eo,onPopupScroll:ec,leftMaxCount:void 0===N?null:N-eK.length,leafCountOnly:"SHOW_CHILD"===e$&&!j&&!!L,valueEntities:eE,classNames:ei,styles:es}),[U,ee,J,Q,Y,ej,ek,eq,G,eo,ec,N,eK.length,e$,j,L,eE,ei,es]),eQ=a.useMemo(()=>({checkable:eh,loadData:T,treeLoadedKeys:W,onTreeLoad:_,checkedKeys:eW,halfCheckedKeys:e_,treeDefaultExpandAll:K,treeExpandedKeys:F,treeDefaultExpandedKeys:X,onTreeExpand:q,treeIcon:er,treeMotion:en,showTreeIcon:ea,switcherIcon:el,treeLine:et,treeNodeFilterProp:eC,keyEntities:eV}),[eh,T,W,_,eW,e_,K,F,X,q,er,en,ea,el,et,eC,eV]);return a.createElement(d.Provider,{value:eJ},a.createElement(u.Provider,{value:eQ},a.createElement(l.g3,w({ref:t},eu,{classNames:ei,styles:es,id:ed,prefixCls:p,mode:ev?"multiple":void 0,displayValues:eK,onDisplayValuesChange:eU,autoClearSearchValue:ew,showSearch:em,searchValue:ex,onSearch:e=>{ez(e),ey?.(e)},OptionList:v,emptyOptions:!eM.length,onPopupVisibleChange:eG,popupMatchSelectWidth:ee}))))});A.TreeNode=c,A.SHOW_ALL=m,A.SHOW_PARENT=b,A.SHOW_CHILD=g;var C=r(3638),O=r(36319),S=r(92162),$=r(84649),k=r(82725),H=r(4034),z=r(74567),x=r(97194),M=r(6831),V=r(632),E=r(27273),L=r(55359),j=r(73134),P=r(72725),N=r(72243),D=r(77785),I=r(90533),R=r(76129),B=r(49644),T=r(7709),W=r(96899),_=r(15561),K=r(96285),F=r(28403),X=r(10540),q=r(32209);let G=a.forwardRef((e,t)=>{let r,{prefixCls:l,size:n,disabled:c,bordered:i=!0,style:s,className:u,rootClassName:d,treeCheckable:p,multiple:h,listHeight:f=256,listItemHeight:v,placement:m,notFoundContent:b,switcherIcon:g,treeLine:y,getPopupContainer:w,popupClassName:k,dropdownClassName:G,treeIcon:U=!1,transitionName:J,choiceTransitionName:Q="",status:Y,treeExpandAction:Z,builtinPlacements:ee,dropdownMatchSelectWidth:et,popupMatchSelectWidth:er,allowClear:ea,variant:el,dropdownStyle:en,dropdownRender:eo,popupRender:ec,onDropdownVisibleChange:ei,onOpenChange:es,tagRender:eu,maxCount:ed,showCheckedStrategy:ep,treeCheckStrictly:eh,styles:ef,classNames:ev,...em}=e,{getPrefixCls:eb,getPopupContainer:eg,direction:ey,styles:ew,classNames:eA,switcherIcon:eC}=(0,z.TP)("treeSelect"),{renderEmpty:eO,virtual:eS,popupMatchSelectWidth:e$,popupOverflow:ek}=a.useContext(z.QO),[,eH]=(0,T.Ay)(),ez=v??eH?.controlHeightSM+eH?.paddingXXS,ex=eb(),eM=eb("select",l),eV=eb("select-tree",l),eE=eb("tree-select",l),{compactSize:eL,compactItemClassnames:ej}=(0,B.RQ)(eM,ey),eP=(0,V.A)(eM),eN=(0,V.A)(eE),[eD,eI]=(0,N.A)(eM,eP);(0,X.OF)("TreeSelect",e=>{var t=(0,F.oX)(e,{treePrefixCls:eV});let{componentCls:r,treePrefixCls:a,colorBgElevated:l}=t,n=`.${a}`;return[{[`${r}-dropdown`]:[{padding:`${(0,_.zA)(t.paddingXS)} ${(0,_.zA)(t.calc(t.paddingXS).div(2).equal())}`},(0,q.k8)(a,(0,F.oX)(t,{colorBgContainer:l}),!1),{[n]:{borderRadius:0,[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-treenode`]:{[`${n}-node-content-wrapper`]:{flex:"auto"}}}}},(0,K.gd)(`${a}-checkbox`,t),{"&-rtl":{direction:"rtl",[`${n}-switcher${n}-switcher_close`]:{[`${n}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]},q.bi,{resetFont:!1})(eE,eN);let[eR,eB]=(0,j.A)("treeSelect",el,i),eT=(0,E.A)(e=>n??eL??e),eW=a.useContext(M.A),e_=c??eW,{status:eK,hasFeedback:eF,isFormItemInput:eX,feedbackIcon:eq}=a.useContext(L.$W),eG=(0,H.v)(eK,Y),eU={...e,size:eT,disabled:e_,status:eG,variant:eR},[eJ,eQ]=(0,S.AV)([eA,ev],[ew,ef],{props:eU},{popup:{_default:"root"}}),eY=(0,C.$)(k||G,`${eE}-dropdown`,{[`${eE}-dropdown-rtl`]:"rtl"===ey},d,eJ.root,eJ.popup?.root,eI,eP,eN,eD),eZ=(0,I.A)(ec||eo),e1=!!(p||h),e8=a.useMemo(()=>{if(!ed||("SHOW_ALL"!==ep||eh)&&"SHOW_PARENT"!==ep)return ed},[ed,ep,eh]),e2=(0,R.A)(e.suffixIcon,e.showArrow),{suffixIcon:e4,removeIcon:e0,clearIcon:e6}=(0,D.A)({...em,multiple:e1,showSuffixIcon:e2,hasFeedback:eF,feedbackIcon:eq,prefixCls:eM,componentName:"TreeSelect"});r=void 0!==b?b:eO?.("Select")||a.createElement(x.A,{componentName:"Select"});let e3=(0,o.cJ)(em,["suffixIcon","removeIcon","clearIcon"]),e7=a.useMemo(()=>void 0!==m?m:"rtl"===ey?"bottomRight":"bottomLeft",[m,ey]),e5=(0,C.$)(!l&&eE,{[`${eM}-lg`]:"large"===eT,[`${eM}-sm`]:"small"===eT,[`${eM}-rtl`]:"rtl"===ey,[`${eM}-${eR}`]:eB,[`${eM}-in-form-item`]:eX},(0,H.L)(eM,eG,eF),ej,u,d,eJ?.root,eI,eP,eN,eD),e9=g??eC,[te]=(0,O.YK)("SelectLike",eQ.popup?.root?.zIndex);return a.createElement(A,{classNames:eJ,styles:eQ,virtual:eS,disabled:e_,...e3,popupMatchSelectWidth:er??et??e$,builtinPlacements:(0,P.A)(ee,ek),ref:t,prefixCls:eM,className:e5,style:{...eQ?.root,...s},listHeight:f,listItemHeight:ez,treeCheckable:p?a.createElement("span",{className:`${eM}-tree-checkbox-inner`}):p,treeLine:!!y,suffixIcon:e4,multiple:e1,placement:e7,removeIcon:e0,allowClear:!0===ea?{clearIcon:e6}:ea,switcherIcon:e=>a.createElement(W.A,{prefixCls:eV,switcherIcon:e9,treeNodeProps:e,showLine:y}),showTreeIcon:U,notFoundContent:r,getPopupContainer:w||eg,treeMotion:null,popupClassName:eY,popupStyle:{...eQ.root,...eQ.popup?.root,zIndex:te},popupRender:eZ,onPopupVisibleChange:es||ei,choiceTransitionName:(0,$.b)(ex,"",Q),transitionName:(0,$.b)(ex,"slide-up",J),treeExpandAction:Z,tagRender:e1?eu:void 0,maxCount:e8,showCheckedStrategy:ep,treeCheckStrictly:eh})}),U=(0,k.A)(G,"popupAlign",e=>(0,o.cJ)(e,["visible"]));G.TreeNode=c,G.SHOW_ALL=m,G.SHOW_PARENT=b,G.SHOW_CHILD=g,G._InternalPanelDoNotUseOrYouWillBeFired=U;let J=G},26619:(e,t,r)=>{r.d(t,{A:()=>c});var a=r(97109),l=r(1611),n=r(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let c=a.forwardRef((e,t)=>a.createElement(n.A,o({},e,{ref:t,icon:l.A})))},26631:(e,t,r)=>{r.d(t,{A:()=>c});var a=r(97109),l=r(12887),n=r(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let c=a.forwardRef((e,t)=>a.createElement(n.A,o({},e,{ref:t,icon:l.A})))},29071:(e,t,r)=>{r.d(t,{A:()=>c});var a=r(97109),l=r(78847),n=r(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let c=a.forwardRef((e,t)=>a.createElement(n.A,o({},e,{ref:t,icon:l.A})))},29664:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z"}}]},name:"apartment",theme:"outlined"}},38770:(e,t,r)=>{r.d(t,{A:()=>a});let a=r(51916).A},51307:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"}},56398:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"}},63552:(e,t,r)=>{r.d(t,{A:()=>c});var a=r(97109),l=r(87312),n=r(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let c=a.forwardRef((e,t)=>a.createElement(n.A,o({},e,{ref:t,icon:l.A})))},64068:(e,t,r)=>{r.d(t,{A:()=>c});var a=r(97109),l=r(76148),n=r(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let c=a.forwardRef((e,t)=>a.createElement(n.A,o({},e,{ref:t,icon:l.A})))},66284:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z"}}]},name:"picture",theme:"outlined"}},67547:(e,t,r)=>{r.d(t,{A:()=>c});var a=r(97109),l=r(51307),n=r(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let c=a.forwardRef((e,t)=>a.createElement(n.A,o({},e,{ref:t,icon:l.A})))},71885:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"}},75548:(e,t,r)=>{r.d(t,{A:()=>c});var a=r(97109),l=r(66284),n=r(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let c=a.forwardRef((e,t)=>a.createElement(n.A,o({},e,{ref:t,icon:l.A})))},76148:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"}},76830:(e,t,r)=>{r.d(t,{A:()=>c});var a=r(97109),l=r(56398),n=r(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}let c=a.forwardRef((e,t)=>a.createElement(n.A,o({},e,{ref:t,icon:l.A})))},78847:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"}},87312:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9a7.92 7.92 0 00-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3.1-12.7-6.4-12.7zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"file-done",theme:"outlined"}},90190:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"}},95008:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"}},96285:(e,t,r)=>{r.d(t,{Ay:()=>i,gd:()=>c});var a=r(15561),l=r(7961),n=r(16666),o=r(28403);function c(e,t){var r=(0,o.oX)(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});let{checkboxCls:c,checkboxSize:i,lineWidth:s}=r,u=`${c}-wrapper`,d="@media (hover: hover) and (pointer: fine)";return[{[`${c}-group`]:{...(0,l.dF)(r),display:"inline-flex",flexWrap:"wrap",columnGap:r.marginXS,[`> ${r.antCls}-row`]:{flex:1}},[u]:{...(0,l.dF)(r),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${u}`]:{marginInlineStart:0}},[c]:{...(0,l.dF)(r),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:i,height:i,direction:"ltr",backgroundColor:r.colorBgContainer,border:`${(0,a.zA)(s)} ${r.lineType} ${r.colorBorder}`,borderRadius:r.borderRadiusSM,borderCollapse:"separate",transition:`all ${r.motionDurationSlow}`,flex:"none",...(0,n.V)(),"&:after":{boxSizing:"border-box",position:"absolute",top:`calc(${i} / 2 - ${s})`,insetInlineStart:`calc(${i} / 4 - ${s})`,display:"table",width:r.calc(i).div(14).mul(5).equal(),height:r.calc(i).div(14).mul(8).equal(),border:`${(0,a.zA)(r.lineWidthBold)} solid ${r.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${r.motionDurationFast} ${r.motionEaseInBack}, opacity ${r.motionDurationFast}`,...(0,n.V)()},[`${c}-input`]:{position:"absolute",inset:`calc(-1 * (${s}))`,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${c}-input:focus-visible)`]:(0,l.jk)(r),"& + span":{paddingInlineStart:r.paddingXS,paddingInlineEnd:r.paddingXS}}},{[d]:{[`
|
|
2
|
+
${u}:not(${u}-disabled),
|
|
3
|
+
${c}:not(${c}-disabled)
|
|
4
|
+
`]:{[`&:hover ${c}`]:{borderColor:r.colorPrimary}},[`${u}:not(${u}-disabled)`]:{[`&:hover ${c}-checked:not(${c}-disabled)`]:{backgroundColor:r.colorPrimaryHover,borderColor:"transparent"}}}},{[`${c}-checked`]:{backgroundColor:r.colorPrimary,borderColor:r.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${r.motionDurationMid} ${r.motionEaseOutBack} ${r.motionDurationFast}`,...(0,n.V)()},[d]:{[`&:not(${c}-disabled):hover`]:{backgroundColor:r.colorPrimaryHover,borderColor:"transparent"}}}},{[c]:{"&-indeterminate":{backgroundColor:r.colorBgContainer,borderColor:r.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:r.calc(r.fontSizeLG).div(2).equal(),height:r.calc(r.fontSizeLG).div(2).equal(),backgroundColor:r.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'},[d]:{[`&:not(${c}-disabled):hover`]:{backgroundColor:r.colorBgContainer,borderColor:r.colorPrimary}}}}},{[`${u}-disabled`]:{cursor:"not-allowed"},[`${c}-disabled`]:{[`&, ${c}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:r.colorBgContainerDisabled,borderColor:r.colorBorder,"&:after":{borderColor:r.colorTextDisabled},"& + span":{color:r.colorTextDisabled},[`&${c}-indeterminate::after`]:{background:r.colorTextDisabled}}}]}let i=(0,r(10540).OF)("Checkbox",(e,{prefixCls:t})=>[c(t,e)])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[713],{7225:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(97109),r=n(23830),i=n(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let a=o.forwardRef((e,t)=>o.createElement(i.A,l({},e,{ref:t,icon:r.A})))},10218:(e,t,n)=>{n.d(t,{A:()=>y,H:()=>f});var o=n(97109),r=n(4932),i=n(42644);let l=e=>"object"==typeof e&&null!=e&&1===e.nodeType,a=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,s=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return a(n.overflowY,t)||a(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},d=(e,t,n,o,r,i,l,a)=>i<e&&l>t||i>e&&l<t?0:i<=e&&a<=n||l>=t&&a>=n?i-e-o:l>t&&a<n||i<e&&a>n?l-t+r:0,c=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},h=(e,t)=>{var n,o,r,i;if("undefined"==typeof document)return[];let{scrollMode:a,block:h,inline:u,boundary:p,skipOverflowHiddenElements:f}=t,g="function"==typeof p?p:e=>e!==p;if(!l(e))throw TypeError("Invalid target");let y=document.scrollingElement||document.documentElement,v=[],b=e;for(;l(b)&&g(b);){if((b=c(b))===y){v.push(b);break}null!=b&&b===document.body&&s(b)&&!s(document.documentElement)||null!=b&&s(b,f)&&v.push(b)}let m=null!=(o=null==(n=window.visualViewport)?void 0:n.width)?o:innerWidth,k=null!=(i=null==(r=window.visualViewport)?void 0:r.height)?i:innerHeight,{scrollX:N,scrollY:w}=window,{height:E,width:x,top:$,right:C,bottom:K,left:S}=e.getBoundingClientRect(),{top:D,right:O,bottom:M,left:P}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),A="start"===h||"nearest"===h?$-D:"end"===h?K+M:$+E/2-D+M,T="center"===u?S+x/2-P+O:"end"===u?C+O:S-P,I=[];for(let e=0;e<v.length;e++){let t=v[e],{height:n,width:o,top:r,right:i,bottom:l,left:c}=t.getBoundingClientRect();if("if-needed"===a&&$>=0&&S>=0&&K<=k&&C<=m&&(t===y&&!s(t)||$>=r&&K<=l&&S>=c&&C<=i))break;let p=getComputedStyle(t),f=parseInt(p.borderLeftWidth,10),g=parseInt(p.borderTopWidth,10),b=parseInt(p.borderRightWidth,10),D=parseInt(p.borderBottomWidth,10),O=0,M=0,P="offsetWidth"in t?t.offsetWidth-t.clientWidth-f-b:0,R="offsetHeight"in t?t.offsetHeight-t.clientHeight-g-D:0,L="offsetWidth"in t?0===t.offsetWidth?0:o/t.offsetWidth:0,j="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(y===t)O="start"===h?A:"end"===h?A-k:"nearest"===h?d(w,w+k,k,g,D,w+A,w+A+E,E):A-k/2,M="start"===u?T:"center"===u?T-m/2:"end"===u?T-m:d(N,N+m,m,f,b,N+T,N+T+x,x),O=Math.max(0,O+w),M=Math.max(0,M+N);else{O="start"===h?A-r-g:"end"===h?A-l+D+R:"nearest"===h?d(r,l,n,g,D+R,A,A+E,E):A-(r+n/2)+R/2,M="start"===u?T-c-f:"center"===u?T-(c+o/2)+P/2:"end"===u?T-i+b+P:d(c,i,o,f,b+P,T,T+x,x);let{scrollLeft:e,scrollTop:a}=t;O=0===j?0:Math.max(0,Math.min(a+O/j,t.scrollHeight-n/j+R)),M=0===L?0:Math.max(0,Math.min(e+M/L,t.scrollWidth-o/L+P)),A+=a-O,T+=e-M}I.push({el:t,top:O,left:M})}return I};var u=n(26047),p=n(44624);function f(e){return(0,p.$r)(e).join("_")}function g(e,t){let n=t.getFieldInstance(e),o=(0,i.rb)(n);if(o)return o;let r=(0,p.kV)((0,p.$r)(e),t.__INTERNAL__.name);if(r)return document.getElementById(r)}function y(e){let[t]=(0,r.mN)(),n=o.useRef({}),i=o.useMemo(()=>e??{...t,__INTERNAL__:{itemRef:e=>t=>{let o=f(e);t?n.current[o]=t:delete n.current[o]}},scrollToField:(e,t={})=>{let{focus:n,...o}=t,r=g(e,i);r&&(!function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(h(e,t));let o="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:r,top:i,left:l}of h(e,!1===t?{block:"end",inline:"nearest"}:t===Object(t)&&0!==Object.keys(t).length?t:{block:"start",inline:"nearest"})){let e=i-n.top+n.bottom,t=l-n.left+n.right;r.scroll({top:e,left:t,behavior:o})}}(r,{scrollMode:"if-needed",block:"nearest",...o}),n&&i.focusField(e))},focusField:e=>{let t=i.getFieldInstance(e);(0,u.Tn)(t?.focus)?t.focus():g(e,i)?.focus?.()},getFieldInstance:e=>{let t=f(e);return n.current[t]}},[e,t]);return[i]}},15437:(e,t,n)=>{n.d(t,{A:()=>o});let o=e=>{let{componentCls:t,antCls:n,motionDurationMid:o,motionEaseInOut:r}=e;return{[t]:{[`${n}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`${["height","opacity"].map(e=>`${e} ${o} ${r}`).join(", ")} !important`}},[`${n}-motion-collapse`]:{overflow:"hidden",transition:`${["height","opacity"].map(e=>`${e} ${o} ${r}`).join(", ")} !important`}}}}},23830:(e,t)=>{t.A={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"}},30960:(e,t)=>{t.A={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"}},32209:(e,t,n)=>{n.d(t,{Ay:()=>u,k8:()=>c,bi:()=>h});var o=n(15561),r=n(96285),i=n(7961),l=n(15437),a=n(28403),s=n(10540);let d=new o.Mo("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),c=(e,t,n=!0)=>{let r=`.${e}`,l=`${r}-treenode`,s=t.calc(t.paddingXS).div(2).equal(),c=(0,a.oX)(t,{treeCls:r,treeNodeCls:l,treeNodePadding:s});return[((e,t)=>{let{treeCls:n,treeNodeCls:r,treeNodePadding:l,titleHeight:a,indentSize:s,switcherSize:c,motionDurationMid:h,nodeSelectedBg:u,nodeHoverBg:p,colorTextQuaternary:f,controlItemBgActiveDisabled:g}=t;return{[n]:{...(0,i.dF)(t),"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`${n}-list`]:{"&:focus-visible":{outline:"none",[`${r}-active ${n}-node-content-wrapper`]:{...(0,i.jk)(t)}}},[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:d,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:l,lineHeight:(0,o.zA)(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:l},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:g},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:c,textAlign:"center",visibility:"visible",color:f},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:s}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(c).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-checkbox`]:{flexShrink:0,alignSelf:"flex-start",marginBlockStart:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:{...{[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}},position:"relative",flex:"none",alignSelf:"stretch",width:c,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:c,height:a,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(c).div(2).equal(),bottom:t.calc(l).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(c).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}},[`${n}-node-content-wrapper`]:{position:"relative",minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${h}, border 0s, line-height 0s, box-shadow 0s`,...((e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,o.zA)(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}))(e,t),"&:hover":{backgroundColor:p},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:u},[`${n}-iconEle`]:{display:"inline-block",width:c,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(c).div(2).equal(),bottom:t.calc(l).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,o.zA)(t.calc(a).div(2).equal())} !important`}}}})(e,c),n&&(({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:o,motionDurationMid:r,borderRadius:i,controlItemBgHover:l})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${r}`,content:'""',borderRadius:i},"&:hover:before":{background:l}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:i,[`${e}-switcher, ${e}-draggable-icon`]:{color:o},[`${e}-node-content-wrapper`]:{color:o,background:"transparent","&, &:hover":{color:o},"&:before, &:hover:before":{background:n}}}}}))(c)].filter(Boolean)},h=e=>{let{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:o}=e;return{titleHeight:t,switcherSize:t,indentSize:t,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:o,nodeSelectedColor:e.colorText}},u=(0,s.OF)("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:(0,r.gd)(`${t}-checkbox`,e)},c(t,e),(0,l.A)(e)],e=>{let{colorTextLightSolid:t,colorPrimary:n}=e;return{...h(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:n}})},44624:(e,t,n)=>{n.d(t,{$r:()=>r,BS:()=>l,kV:()=>i});let o=["parentNode"];function r(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function i(e,t){if(!e.length)return;let n=e.join("_");return t?`${t}_${n}`:o.includes(n)?`form_item_${n}`:n}function l(e,t,n,o,r,i){let l=o;return void 0!==i?l=i:n.validating?l="validating":e.length?l="error":t.length?l="warning":(n.touched||r&&n.validated)&&(l="success"),l}},56768:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(97109),r=n(30960),i=n(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let a=o.forwardRef((e,t)=>o.createElement(i.A,l({},e,{ref:t,icon:r.A})))},58833:(e,t)=>{t.A={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"}},60495:(e,t)=>{t.A={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"}},87925:(e,t,n)=>{n.d(t,{nF:()=>x,QB:()=>a,$s:()=>j,BA:()=>L,po:()=>q,hr:()=>z,cG:()=>y,vH:()=>f,Ay:()=>X,AZ:()=>p});var o=n(3638),r=n(42644),i=n(97109);let l=i.createContext(null),a=i.createContext({}),s=e=>{let{dropPosition:t,dropLevelOffset:n,indent:o}=e,r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case -1:r.top=0,r.left=-n*o;break;case 1:r.bottom=0,r.left=-n*o;break;case 0:r.bottom=0,r.left=o}return i.createElement("div",{style:r})};var d=n(93307),c=n(67189);let h=i.memo(({prefixCls:e,level:t,isStart:n,isEnd:r})=>{let l=`${e}-indent-unit`,a=[];for(let e=0;e<t;e+=1)a.push(i.createElement("span",{key:e,className:(0,o.$)(l,{[`${l}-start`]:n[e],[`${l}-end`]:r[e]})}));return i.createElement("span",{"aria-hidden":"true",className:`${e}-indent`},a)});function u(e,t){return null!=e?e:t}function p(e){let{title:t,_title:n,key:o,children:r}=e||{},i=t||"title";return{title:i,_title:n||[i],key:o||"key",children:r||"children"}}function f(e){return function e(t){return(0,r.$r)(t).map(t=>{if(!(t&&t.type&&t.type.isTreeNode))return(0,r.$e)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;let{key:n}=t,{children:o,...i}=t.props,l={key:n,...i},a=e(o);return a.length&&(l.children=a),l}).filter(e=>e)}(e)}function g(e,t,n){let{_title:o,key:i,children:l}=p(n),a=new Set(!0===t?[]:t),s=[];return!function e(n,d=null){return n.map((c,h)=>{var p;let f,g=(p=d?d.pos:"0",`${p}-${h}`),y=u(c[i],g);for(let e=0;e<o.length;e+=1){let t=o[e];if(void 0!==c[t]){f=c[t];break}}let v=Object.assign((0,r.cJ)(c,[...o,i,l]),{title:f,key:y,parent:d,pos:g,children:null,data:c,isStart:[...d?d.isStart:[],0===h],isEnd:[...d?d.isEnd:[],h===n.length-1]});return s.push(v),!0===t||a.has(y)?v.children=e(c[l]||[],v):v.children=[],v})}(e),s}function y(e,{initWrapper:t,processEntity:n,onProcessFinished:o,externalGetKey:r,childrenPropName:i,fieldNames:l}={},a){let s={},d={},c={posEntities:s,keyEntities:d};return t&&(c=t(c)||c),!function(e,t,n){let o,{childrenPropName:r,externalGetKey:i,fieldNames:l}=("object"==typeof n?n:{externalGetKey:n})||{},{key:a,children:s}=p(l),d=r||s;i?"string"==typeof i?o=e=>e[i]:"function"==typeof i&&(o=e=>i(e)):o=(e,t)=>u(e[a],t),!function n(r,i,l,a){var s;let c=r?r[d]:e,h=r?(s=l.pos,`${s}-${i}`):"0",u=r?[...a,r]:[];if(r){let e=o(r,h);t({node:r,index:i,pos:h,key:e,parentPos:l.node?l.pos:null,level:l.level+1,nodes:u})}c&&c.forEach((e,t)=>{n(e,t,{node:r,pos:h,level:l?l.level+1:-1},u)})}(null)}(e,e=>{let{node:t,index:o,pos:r,key:i,parentPos:l,level:a,nodes:h}=e,p={node:t,nodes:h,index:o,key:i,pos:r,level:a},f=u(i,r);s[r]=p,d[f]=p,p.parent=s[l],p.parent&&(p.parent.children=p.parent.children||[],p.parent.children.push(p)),n&&n(p,c)},{externalGetKey:r||a,childrenPropName:i,fieldNames:l}),o&&o(c),c}function v(e,t,n,o){return!1!==e&&(e||!t&&!n||t&&o&&!n)}function b(e,{expandedKeys:t,selectedKeys:n,loadedKeys:o,loadingKeys:r,checkedKeys:i,halfCheckedKeys:l,dragOverNodeKey:a,dropPosition:s,keyEntities:d}){let c=d[e];return{eventKey:e,expanded:-1!==t.indexOf(e),selected:-1!==n.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==r.indexOf(e),checked:-1!==i.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(c?c.pos:""),dragOver:a===e&&0===s,dragOverGapTop:a===e&&-1===s,dragOverGapBottom:a===e&&1===s}}function m(e){let{data:t,expanded:n,selected:o,checked:i,loaded:l,loading:a,halfChecked:s,dragOver:d,dragOverGapTop:c,dragOverGapBottom:h,pos:u,active:p,eventKey:f}=e,g={...t,expanded:n,selected:o,checked:i,loaded:l,loading:a,halfChecked:s,dragOver:d,dragOverGapTop:c,dragOverGapBottom:h,pos:u,active:p,key:f};return"props"in g||Object.defineProperty(g,"props",{get:()=>((0,r.$e)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e)}),g}function k(){return(k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let N="open",w="close",E=e=>{let{eventKey:t,className:n,style:s,dragOver:d,dragOverGapTop:c,dragOverGapBottom:u,isLeaf:p,isStart:f,isEnd:g,expanded:y,selected:b,checked:E,halfChecked:x,loading:$,domRef:C,active:K,data:S,onMouseMove:D,selectable:O,treeId:M,...P}=e,A=(0,r.OX)(M,t),T=i.useContext(l),{classNames:I,styles:R}=T||{},L=i.useContext(a),j=i.useRef(null),[H,B]=i.useState(!1),_=!!(T.disabled||e.disabled||L.nodeDisabled?.(S)),W=i.useMemo(()=>!!T.checkable&&!1!==e.checkable&&T.checkable,[T.checkable,e.checkable]),z=t=>{_||W&&!e.disableCheckbox&&T.onNodeCheck(t,m(e),!E)},F=i.useMemo(()=>"boolean"==typeof O?O:T.selectable,[O,T.selectable]),V=t=>{if(T.onNodeClick(t,m(e)),F)_||T.onNodeSelect(t,m(e));else z(t)},q=t=>{T.onNodeDoubleClick(t,m(e))},U=t=>{T.onNodeMouseEnter(t,m(e))},G=t=>{T.onNodeMouseLeave(t,m(e))},X=t=>{T.onNodeContextMenu(t,m(e))},Y=i.useMemo(()=>!!(T.draggable&&(!T.draggable.nodeDraggable||T.draggable.nodeDraggable(S))),[T.draggable,S]),Q=t=>{$||T.onNodeExpand(t,m(e))},J=i.useMemo(()=>{let{children:e}=T.keyEntities[t]||{};return!!(e||[]).length},[T.keyEntities,t]),Z=i.useMemo(()=>v(p,T.loadData,J,e.loaded),[p,T.loadData,J,e.loaded]);i.useEffect(()=>{!$&&("function"!=typeof T.loadData||!y||Z||e.loaded||T.onNodeLoad(m(e)))},[$,T.loadData,T.onNodeLoad,y,Z,e]);let ee=i.useMemo(()=>T.draggable?.icon?i.createElement("span",{className:`${T.prefixCls}-draggable-icon`},T.draggable.icon):null,[T.draggable]),et=t=>{let n=e.switcherIcon||T.switcherIcon;return"function"==typeof n?n({...e,isLeaf:t}):n},en=i.useMemo(()=>{if(!W)return null;let t="boolean"!=typeof W?W:null;return i.createElement("span",{className:(0,o.$)(`${T.prefixCls}-checkbox`,{[`${T.prefixCls}-checkbox-checked`]:E,[`${T.prefixCls}-checkbox-indeterminate`]:!E&&x,[`${T.prefixCls}-checkbox-disabled`]:_||e.disableCheckbox}),onClick:z,role:"checkbox","aria-checked":x?"mixed":E,"aria-disabled":_||e.disableCheckbox,"aria-labelledby":A},t)},[W,E,x,_,e.disableCheckbox,A]),eo=i.useMemo(()=>Z?null:y?N:w,[Z,y]),er=i.useMemo(()=>i.createElement("span",{className:(0,o.$)(I?.itemIcon,`${T.prefixCls}-iconEle`,`${T.prefixCls}-icon__${eo||"docu"}`,{[`${T.prefixCls}-icon_loading`]:$}),style:R?.itemIcon}),[T.prefixCls,eo,$]),ei=i.useMemo(()=>{let n=!!T.draggable;return!e.disabled&&n&&T.dragOverNodeKey===t?T.dropIndicatorRender({dropPosition:T.dropPosition,dropLevelOffset:T.dropLevelOffset,indent:T.indent,prefixCls:T.prefixCls,direction:T.direction}):null},[T.dropPosition,T.dropLevelOffset,T.indent,T.prefixCls,T.direction,T.draggable,T.dragOverNodeKey,T.dropIndicatorRender]),el=i.useMemo(()=>{let t,n,{title:r="---"}=e,l=`${T.prefixCls}-node-content-wrapper`;if(T.showIcon){let n=e.icon||T.icon;t=n?i.createElement("span",{className:(0,o.$)(I?.itemIcon,`${T.prefixCls}-iconEle`,`${T.prefixCls}-icon__customize`),style:R?.itemIcon},"function"==typeof n?n(e):n):er}else T.loadData&&$&&(t=er);return n="function"==typeof r?r(S):T.titleRender?T.titleRender(S):r,i.createElement("span",{ref:j,title:"string"==typeof r?r:"",className:(0,o.$)(l,`${l}-${eo||"normal"}`,{[`${T.prefixCls}-node-selected`]:!_&&(b||H)}),onMouseEnter:U,onMouseLeave:G,onContextMenu:X,onClick:V,onDoubleClick:q},t,i.createElement("span",{className:(0,o.$)(`${T.prefixCls}-title`,I?.itemTitle),style:R?.itemTitle},n),ei)},[T.prefixCls,T.showIcon,e,T.icon,er,T.titleRender,S,eo,U,G,X,V,q]),ea=(0,r.KE)(P,{aria:!0,data:!0}),{level:es}=T.keyEntities[t]||{},ed=g[g.length-1],ec=!_&&Y,eh=T.draggingNodeKey===t;return i.createElement("div",k({ref:C,role:"treeitem",id:A,"aria-expanded":Z?void 0:y,"aria-selected":F&&!_?b:void 0,"aria-checked":W&&!_?x?"mixed":E:void 0,"aria-disabled":_,className:(0,o.$)(n,`${T.prefixCls}-treenode`,I?.item,{[`${T.prefixCls}-treenode-disabled`]:_,[`${T.prefixCls}-treenode-switcher-${y?"open":"close"}`]:!p,[`${T.prefixCls}-treenode-checkbox-checked`]:E,[`${T.prefixCls}-treenode-checkbox-indeterminate`]:x,[`${T.prefixCls}-treenode-selected`]:b,[`${T.prefixCls}-treenode-loading`]:$,[`${T.prefixCls}-treenode-active`]:K,[`${T.prefixCls}-treenode-leaf-last`]:ed,[`${T.prefixCls}-treenode-draggable`]:Y,dragging:eh,"drop-target":T.dropTargetKey===t,"drop-container":T.dropContainerKey===t,"drag-over":!_&&d,"drag-over-gap-top":!_&&c,"drag-over-gap-bottom":!_&&u,"filter-node":T.filterTreeNode?.(m(e)),[`${T.prefixCls}-treenode-leaf`]:Z}),style:{...s,...R?.item},draggable:ec,onDragStart:ec?t=>{t.stopPropagation(),B(!0),T.onNodeDragStart(t,e);try{t.dataTransfer.setData("text/plain","")}catch{}}:void 0,onDragEnter:Y?t=>{t.preventDefault(),t.stopPropagation(),T.onNodeDragEnter(t,e)}:void 0,onDragOver:Y?t=>{t.preventDefault(),t.stopPropagation(),T.onNodeDragOver(t,e)}:void 0,onDragLeave:Y?t=>{t.stopPropagation(),T.onNodeDragLeave(t,e)}:void 0,onDrop:Y?t=>{t.preventDefault(),t.stopPropagation(),B(!1),T.onNodeDrop(t,e)}:void 0,onDragEnd:Y?t=>{t.stopPropagation(),B(!1),T.onNodeDragEnd(t,e)}:void 0,onMouseMove:D},ea),i.createElement(h,{prefixCls:T.prefixCls,level:es,isStart:f,isEnd:g}),ee,(()=>{if(Z){let e=et(!0);return!1!==e?i.createElement("span",{className:(0,o.$)(`${T.prefixCls}-switcher`,`${T.prefixCls}-switcher-noop`,I?.itemSwitcher),style:R?.itemSwitcher},e):null}let e=et(!1);return!1!==e?i.createElement("span",{onClick:Q,className:(0,o.$)(`${T.prefixCls}-switcher`,`${T.prefixCls}-switcher_${y?N:w}`,I?.itemSwitcher),style:R?.itemSwitcher},e):null})(),en,el)};E.isTreeNode=1;let x=E,$=function(e,t){let[n,o]=i.useState(!1);(0,r.Nf)(()=>{if(n)return e(),()=>{t()}},[n]),(0,r.Nf)(()=>(o(!0),()=>{o(!1)}),[])};function C(){return(C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let K=i.forwardRef((e,t)=>{let{className:n,style:a,motion:s,motionNodes:d,motionType:h,onMotionStart:u,onMotionEnd:p,active:f,treeNodeRequiredProps:g,...y}=e,[v,m]=i.useState(!0),{prefixCls:k}=i.useContext(l),N=d&&"hide"!==h;(0,r.Nf)(()=>{d&&N!==v&&m(N)},[d]);let w=i.useRef(!1),E=()=>{d&&!w.current&&(w.current=!0,p())};return($(()=>{d&&u()},E),d)?i.createElement(c.Ay,C({ref:t,visible:v},s,{motionAppear:"show"===h,onVisibleChanged:e=>{N===e&&E()}}),({className:e,style:t},n)=>i.createElement("div",{ref:n,className:(0,o.$)(`${k}-treenode-motion`,e),style:t},d.map(e=>{let{data:{...t},title:n,key:o,isStart:r,isEnd:l}=e;delete t.children;let a=b(o,g);return i.createElement(x,C({},t,a,{title:n,active:f,data:e.data,key:o,isStart:r,isEnd:l}))}))):i.createElement(x,C({domRef:t,className:n,style:a},y,{active:f}))});function S(e,t,n){let o=e.findIndex(e=>e.key===n),r=e[o+1],i=t.findIndex(e=>e.key===n);if(r){let e=t.findIndex(e=>e.key===r.key);return t.slice(i+1,e)}return t.slice(i+1)}function D(){return(D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let O=`RC_TREE_MOTION_${Math.random()}`,M={key:O},P={key:O,level:0,index:0,pos:"0",node:M,nodes:[M]},A={parent:null,children:[],pos:P.pos,data:M,title:null,key:O,isStart:[],isEnd:[]};function T(e,t,n,o){return!1!==t&&n?e.slice(0,Math.ceil(n/o)+1):e}function I(e){let{key:t,pos:n}=e;return u(t,n)}let R=i.forwardRef((e,t)=>{let{prefixCls:n,data:o,selectable:l,checkable:a,expandedKeys:s,selectedKeys:c,checkedKeys:h,loadedKeys:p,loadingKeys:f,halfCheckedKeys:g,keyEntities:y,disabled:v,dragging:m,dragOverNodeKey:k,dropPosition:N,motion:w,height:E,itemHeight:x,virtual:$,scrollWidth:C,focusable:M,activeItem:P,tabIndex:R,onKeyDown:L,onFocus:j,onBlur:H,onMouseDown:B,onActiveChange:_,onListChangeStart:W,onListChangeEnd:z,...F}=e,V=(0,r.Bi)(),q=i.useRef(null),U=i.useRef(null);i.useImperativeHandle(t,()=>({scrollTo:e=>{q.current.scrollTo(e)},getIndentWidth:()=>U.current.offsetWidth}));let[G,X]=i.useState(s),[Y,Q]=i.useState(o),[J,Z]=i.useState(o),[ee,et]=i.useState([]),[en,eo]=i.useState(null),er=i.useRef(o);function ei(){let e=er.current;Q(e),Z(e),et([]),eo(null),z()}er.current=o,(0,r.Nf)(()=>{X(s);let e=function(e=[],t=[]){let n=e.length,o=t.length;if(1!==Math.abs(n-o))return{add:!1,key:null};function r(e,t){let n=new Map;e.forEach(e=>{n.set(e,!0)});let o=t.filter(e=>!n.has(e));return 1===o.length?o[0]:null}return n<o?{add:!0,key:r(e,t)}:{add:!1,key:r(t,e)}}(G,s);if(null!==e.key)if(e.add){let t=Y.findIndex(({key:t})=>t===e.key),n=T(S(Y,o,e.key),$,E,x),r=Y.slice();r.splice(t+1,0,A),Z(r),et(n),eo("show")}else{let t=o.findIndex(({key:t})=>t===e.key),n=T(S(o,Y,e.key),$,E,x),r=o.slice();r.splice(t+1,0,A),Z(r),et(n),eo("hide")}else Y!==o&&(Q(o),Z(o))},[s,o]),i.useEffect(()=>{m||ei()},[m]);let el=w?J:o,ea={expandedKeys:s,selectedKeys:c,loadedKeys:p,loadingKeys:f,checkedKeys:h,halfCheckedKeys:g,dragOverNodeKey:k,dropPosition:N,keyEntities:y};return i.createElement(i.Fragment,null,i.createElement("div",{className:`${n}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},i.createElement("div",{className:`${n}-indent`},i.createElement("div",{ref:U,className:`${n}-indent-unit`}))),i.createElement(d.A,D({},F,{data:el,itemKey:I,height:E,fullHeight:!1,virtual:$,itemHeight:x,scrollWidth:C,prefixCls:`${n}-list`,ref:q,role:"tree",tabIndex:!1===M||v?void 0:R,"aria-activedescendant":P?(0,r.OX)(V,P.key):void 0,onKeyDown:L,onFocus:j,onBlur:H,onMouseDown:B,onVisibleChange:e=>{e.every(e=>I(e)!==O)&&ei()}}),e=>{let{pos:t,data:{...n},title:o,key:r,isStart:l,isEnd:a}=e,s=u(r,t);delete n.key,delete n.children;let d=b(s,ea);return i.createElement(K,D({},n,d,{title:o,active:!!P&&r===P.key,pos:t,data:e.data,isStart:l,isEnd:a,motion:w,motionNodes:r===O?ee:null,motionType:en,onMotionStart:W,onMotionEnd:ei,treeNodeRequiredProps:ea,treeId:V,onMouseMove:()=>{_(null)}}))}))});function L(e,t){if(!e)return[];let n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function j(e,t){let n=(e||[]).slice();return -1===n.indexOf(t)&&n.push(t),n}function H(e){return e.split("-")}function B(e,t,n,o,r,i,l,a,s,d){let{clientX:c,clientY:h}=e,{top:u,height:p}=e.target.getBoundingClientRect(),f=(("rtl"===d?-1:1)*((r?.x||0)-c)-12)/o,g=s.filter(e=>a[e]?.children?.length),y=a[n.eventKey];if(h<u+p/2){let e=l.findIndex(e=>e.key===y.key);y=a[l[e<=0?0:e-1].key]}let v=y.key,b=y,m=y.key,k=0,N=0;if(!g.includes(v))for(let e=0;e<f;e+=1)if(function(e){if(e.parent){let t=H(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}(y))y=y.parent,N+=1;else break;let w=t.data,E=y.node,x=!0;return function(e){let t=H(e.pos);return 0===Number(t[t.length-1])}(y)&&0===y.level&&h<u+p/2&&i({dragNode:w,dropNode:E,dropPosition:-1})&&y.key===n.eventKey?k=-1:(b.children||[]).length&&g.includes(m)?i({dragNode:w,dropNode:E,dropPosition:0})?k=0:x=!1:0===N?f>-1.5?i({dragNode:w,dropNode:E,dropPosition:1})?k=1:x=!1:i({dragNode:w,dropNode:E,dropPosition:0})?k=0:i({dragNode:w,dropNode:E,dropPosition:1})?k=1:x=!1:i({dragNode:w,dropNode:E,dropPosition:1})?k=1:x=!1,{dropPosition:k,dropLevelOffset:N,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:m,dropContainerKey:0===k?null:y.parent?.key||null,dropAllowed:x}}function _(e,t){if(!e)return;let{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function W(e){let t;if(!e)return null;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!=typeof e)return(0,r.$e)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function z(e,t){let n=new Set;return(e||[]).forEach(e=>{!function e(o){if(n.has(o))return;let r=t[o];if(!r)return;n.add(o);let{parent:i,node:l}=r;!l.disabled&&i&&e(i.key)}(e)}),[...n]}function F(e,t){let n=new Set;return e.forEach(e=>{t.has(e)||n.add(e)}),n}function V(e){let{disabled:t,disableCheckbox:n,checkable:o}=e||{};return!!(t||n)||!1===o}function q(e,t,n,o){let i,l=[];i=o||V;let a=new Set(e.filter(e=>{let t=!!n[e];return t||l.push(e),t})),s=new Map,d=0;return Object.keys(n).forEach(e=>{let t=n[e],{level:o}=t,r=s.get(o);r||(r=new Set,s.set(o,r)),r.add(t),d=Math.max(d,o)}),(0,r.$e)(!l.length,`Tree missing follow keys: ${l.slice(0,100).map(e=>`'${e}'`).join(", ")}`),!0===t?function(e,t,n,o){let r=new Set(e),i=new Set;for(let e=0;e<=n;e+=1)(t.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:i=[]}=e;r.has(t)&&!o(n)&&i.filter(e=>!o(e.node)).forEach(e=>{r.add(e.key)})});let l=new Set;for(let e=n;e>=0;e-=1)(t.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(o(n)||!e.parent||l.has(e.parent.key))return;if(o(e.parent.node))return void l.add(t.key);let a=!0,s=!1;(t.children||[]).filter(e=>!o(e.node)).forEach(({key:e})=>{let t=r.has(e);a&&!t&&(a=!1),!s&&(t||i.has(e))&&(s=!0)}),a&&r.add(t.key),s&&i.add(t.key),l.add(t.key)});return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(F(i,r))}}(a,s,d,i):function(e,t,n,o,r){let i=new Set(e),l=new Set(t);for(let e=0;e<=o;e+=1)(n.get(e)||new Set).forEach(e=>{let{key:t,node:n,children:o=[]}=e;i.has(t)||l.has(t)||r(n)||o.filter(e=>!r(e.node)).forEach(e=>{i.delete(e.key)})});l=new Set;let a=new Set;for(let e=o;e>=0;e-=1)(n.get(e)||new Set).forEach(e=>{let{parent:t,node:n}=e;if(r(n)||!e.parent||a.has(e.parent.key))return;if(r(e.parent.node))return void a.add(t.key);let o=!0,s=!1;(t.children||[]).filter(e=>!r(e.node)).forEach(({key:e})=>{let t=i.has(e);o&&!t&&(o=!1),!s&&(t||l.has(e))&&(s=!0)}),o||i.delete(t.key),s&&l.add(t.key),a.add(t.key)});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(F(l,i))}}(a,t.halfCheckedKeys,s,d,i)}function U(){return(U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}class G extends i.Component{static defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:s,allowDrop:()=>!0,expandAction:!1};static TreeNode=x;destroyed=!1;delayedDragEnterLogic;loadingRetryTimes={};state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],activeKey:null,listChanging:!1,prevProps:null,fieldNames:p()};dragStartMousePosition=null;dragNodeProps=null;currentMouseOverDroppableNodeKey=null;focusedByMouse=!1;listRef=i.createRef();componentDidMount(){this.destroyed=!1,this.onUpdated(),window.addEventListener("mouseup",this.onGlobalMouseUp)}componentDidUpdate(){this.onUpdated()}onUpdated(){let{activeKey:e,itemScrollOffset:t=0}=this.props;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e,offset:t}))}componentWillUnmount(){window.removeEventListener("dragend",this.onWindowDragEnd),window.removeEventListener("mouseup",this.onGlobalMouseUp),this.destroyed=!0}static getDerivedStateFromProps(e,t){let n,{prevProps:o}=t,i={prevProps:e};function l(t){return!o&&e.hasOwnProperty(t)||o&&o[t]!==e[t]}let{fieldNames:a}=t;l("fieldNames")&&(i.fieldNames=a=p(e.fieldNames)),l("treeData")?{treeData:n}=e:l("children")&&((0,r.$e)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=f(e.children)),n&&(i.treeData=n,i.keyEntities={[O]:P,...y(n,{fieldNames:a}).keyEntities});let s=i.keyEntities||t.keyEntities;if(l("expandedKeys")||o&&l("autoExpandParent"))i.expandedKeys=e.autoExpandParent||!o&&e.defaultExpandParent?z(e.expandedKeys,s):e.expandedKeys;else if(!o&&e.defaultExpandAll){let e={...s};delete e[O];let t=[];Object.keys(e).forEach(n=>{let o=e[n];o.children&&o.children.length&&t.push(o.key)}),i.expandedKeys=t}else!o&&e.defaultExpandedKeys&&(i.expandedKeys=e.autoExpandParent||e.defaultExpandParent?z(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(i.expandedKeys||delete i.expandedKeys,n||i.expandedKeys){let e=g(n||t.treeData,i.expandedKeys||t.expandedKeys,a);i.flattenNodes=e}if(e.selectable&&(l("selectedKeys")?i.selectedKeys=_(e.selectedKeys,e):!o&&e.defaultSelectedKeys&&(i.selectedKeys=_(e.defaultSelectedKeys,e))),e.checkable){let r;if(l("checkedKeys")?r=W(e.checkedKeys)||{}:!o&&e.defaultCheckedKeys?r=W(e.defaultCheckedKeys)||{}:n&&(r=W(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),r){let{checkedKeys:t=[],halfCheckedKeys:n=[]}=r;if(!e.checkStrictly){let e=q(t,!0,s);({checkedKeys:t,halfCheckedKeys:n}=e)}i.checkedKeys=t,i.halfCheckedKeys=n}}return l("loadedKeys")&&(i.loadedKeys=e.loadedKeys),i}onNodeDragStart=(e,t)=>{let{expandedKeys:n,keyEntities:o}=this.state,{onDragStart:r}=this.props,{eventKey:i}=t;this.dragNodeProps=t,this.dragStartMousePosition={x:e.clientX,y:e.clientY};let l=L(n,i);this.setState({draggingNodeKey:i,dragChildrenKeys:function(e,t){let n=[];return!function e(t=[]){t.forEach(({key:t,children:o})=>{n.push(t),e(o)})}(t[e].children),n}(i,o),indent:this.listRef.current.getIndentWidth()}),this.setExpandedKeys(l),window.addEventListener("dragend",this.onWindowDragEnd),r?.({event:e,node:m(t)})};onNodeDragEnter=(e,t)=>{let{expandedKeys:n,keyEntities:o,dragChildrenKeys:r,flattenNodes:i,indent:l}=this.state,{onDragEnter:a,onExpand:s,allowDrop:d,direction:c}=this.props,{pos:h,eventKey:u}=t;if(this.currentMouseOverDroppableNodeKey!==u&&(this.currentMouseOverDroppableNodeKey=u),!this.dragNodeProps)return void this.resetDragState();let{dropPosition:p,dropLevelOffset:f,dropTargetKey:g,dropContainerKey:y,dropTargetPos:v,dropAllowed:b,dragOverNodeKey:k}=B(e,this.dragNodeProps,t,l,this.dragStartMousePosition,d,i,o,n,c);return r.includes(g)||!b||(this.delayedDragEnterLogic||(this.delayedDragEnterLogic={}),Object.keys(this.delayedDragEnterLogic).forEach(e=>{clearTimeout(this.delayedDragEnterLogic[e])}),this.dragNodeProps.eventKey!==t.eventKey&&(e.persist(),this.delayedDragEnterLogic[h]=window.setTimeout(()=>{if(null===this.state.draggingNodeKey)return;let r=[...n],i=o[t.eventKey];i&&(i.children||[]).length&&(r=j(n,t.eventKey)),this.props.hasOwnProperty("expandedKeys")||this.setExpandedKeys(r),s?.(r,{node:m(t),expanded:!0,nativeEvent:e.nativeEvent})},800)),this.dragNodeProps.eventKey===g&&0===f)?void this.resetDragState():void(this.setState({dragOverNodeKey:k,dropPosition:p,dropLevelOffset:f,dropTargetKey:g,dropContainerKey:y,dropTargetPos:v,dropAllowed:b}),a?.({event:e,node:m(t),expandedKeys:n}))};onNodeDragOver=(e,t)=>{let{dragChildrenKeys:n,flattenNodes:o,keyEntities:r,expandedKeys:i,indent:l}=this.state,{onDragOver:a,allowDrop:s,direction:d}=this.props;if(!this.dragNodeProps)return;let{dropPosition:c,dropLevelOffset:h,dropTargetKey:u,dropContainerKey:p,dropTargetPos:f,dropAllowed:g,dragOverNodeKey:y}=B(e,this.dragNodeProps,t,l,this.dragStartMousePosition,s,o,r,i,d);!n.includes(u)&&g&&(this.dragNodeProps.eventKey===u&&0===h?(null!==this.state.dropPosition||null!==this.state.dropLevelOffset||null!==this.state.dropTargetKey||null!==this.state.dropContainerKey||null!==this.state.dropTargetPos||!1!==this.state.dropAllowed||null!==this.state.dragOverNodeKey)&&this.resetDragState():(c!==this.state.dropPosition||h!==this.state.dropLevelOffset||u!==this.state.dropTargetKey||p!==this.state.dropContainerKey||f!==this.state.dropTargetPos||g!==this.state.dropAllowed||y!==this.state.dragOverNodeKey)&&this.setState({dropPosition:c,dropLevelOffset:h,dropTargetKey:u,dropContainerKey:p,dropTargetPos:f,dropAllowed:g,dragOverNodeKey:y}),a?.({event:e,node:m(t)}))};onNodeDragLeave=(e,t)=>{this.currentMouseOverDroppableNodeKey!==t.eventKey||e.currentTarget.contains(e.relatedTarget)||(this.resetDragState(),this.currentMouseOverDroppableNodeKey=null);let{onDragLeave:n}=this.props;n?.({event:e,node:m(t)})};onWindowDragEnd=e=>{this.onNodeDragEnd(e,null,!0),window.removeEventListener("dragend",this.onWindowDragEnd)};onNodeDragEnd=(e,t)=>{let{onDragEnd:n}=this.props;this.setState({dragOverNodeKey:null}),this.cleanDragState(),n?.({event:e,node:m(t)}),this.dragNodeProps=null,window.removeEventListener("dragend",this.onWindowDragEnd)};onNodeDrop=(e,t,n=!1)=>{let{dragChildrenKeys:o,dropPosition:i,dropTargetKey:l,dropTargetPos:a,dropAllowed:s}=this.state;if(!s)return;let{onDrop:d}=this.props;if(this.setState({dragOverNodeKey:null}),this.cleanDragState(),null===l)return;let c={...b(l,this.getTreeNodeRequiredProps()),active:this.getActiveItem()?.key===l,data:this.state.keyEntities[l].node},h=o.includes(l);(0,r.$e)(!h,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");let u=H(a),p={event:e,node:m(c),dragNode:this.dragNodeProps?m(this.dragNodeProps):null,dragNodesKeys:[this.dragNodeProps.eventKey].concat(o),dropToGap:0!==i,dropPosition:i+Number(u[u.length-1])};n||d?.(p),this.dragNodeProps=null};resetDragState(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}cleanDragState=()=>{let{draggingNodeKey:e}=this.state;null!==e&&this.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),this.dragStartMousePosition=null,this.currentMouseOverDroppableNodeKey=null};triggerExpandActionExpand=(e,t)=>{let{expandedKeys:n,flattenNodes:o}=this.state,{expanded:r,key:i,isLeaf:l}=t;if(l||e.shiftKey||e.metaKey||e.ctrlKey)return;let a=o.filter(e=>e.key===i)[0],s=m({...b(i,this.getTreeNodeRequiredProps()),data:a.data});this.setExpandedKeys(r?L(n,i):j(n,i)),this.onNodeExpand(e,s)};onNodeClick=(e,t)=>{let{onClick:n,expandAction:o}=this.props;"click"===o&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeDoubleClick=(e,t)=>{let{onDoubleClick:n,expandAction:o}=this.props;"doubleClick"===o&&this.triggerExpandActionExpand(e,t),n?.(e,t)};onNodeSelect=(e,t)=>{let{selectedKeys:n}=this.state,{keyEntities:o,fieldNames:r}=this.state,{onSelect:i,multiple:l}=this.props,{selected:a}=t,s=t[r.key],d=!a,c=(n=d?l?j(n,s):[s]:L(n,s)).map(e=>{let t=o[e];return t?t.node:null}).filter(Boolean);this.setUncontrolledState({selectedKeys:n}),i?.(n,{event:"select",selected:d,node:t,selectedNodes:c,nativeEvent:e.nativeEvent})};onNodeCheck=(e,t,n)=>{let o,{keyEntities:r,checkedKeys:i,halfCheckedKeys:l}=this.state,{checkStrictly:a,onCheck:s}=this.props,{key:d}=t,c={event:"check",node:t,checked:n,nativeEvent:e.nativeEvent};if(a){let e=n?j(i,d):L(i,d);o={checked:e,halfChecked:L(l,d)},c.checkedNodes=e.map(e=>r[e]).filter(Boolean).map(e=>e.node),this.setUncontrolledState({checkedKeys:e})}else{let{checkedKeys:e,halfCheckedKeys:t}=q([...i,d],!0,r);if(!n){let n=new Set(e);n.delete(d),{checkedKeys:e,halfCheckedKeys:t}=q(Array.from(n),{checked:!1,halfCheckedKeys:t},r)}o=e,c.checkedNodes=[],c.checkedNodesPositions=[],c.halfCheckedKeys=t,e.forEach(e=>{let t=r[e];if(!t)return;let{node:n,pos:o}=t;c.checkedNodes.push(n),c.checkedNodesPositions.push({node:n,pos:o})}),this.setUncontrolledState({checkedKeys:e},!1,{halfCheckedKeys:t})}s?.(o,c)};onNodeLoad=e=>{let{key:t}=e,{keyEntities:n}=this.state,o=n[t];if(o?.children?.length)return;let i=new Promise((n,o)=>{this.setState(({loadedKeys:i=[],loadingKeys:l=[]})=>{let{loadData:a,onLoad:s}=this.props;return!a||i.includes(t)||l.includes(t)?null:(a(e).then(()=>{let{loadedKeys:o}=this.state,r=j(o,t);s?.(r,{event:"load",node:e}),this.setUncontrolledState({loadedKeys:r}),this.setState(e=>({loadingKeys:L(e.loadingKeys,t)})),n()}).catch(e=>{if(this.setState(e=>({loadingKeys:L(e.loadingKeys,t)})),this.loadingRetryTimes[t]=(this.loadingRetryTimes[t]||0)+1,this.loadingRetryTimes[t]>=10){let{loadedKeys:e}=this.state;(0,r.$e)(!1,"Retry for `loadData` many times but still failed. No more retry."),this.setUncontrolledState({loadedKeys:j(e,t)}),n()}o(e)}),{loadingKeys:j(l,t)})})});return i.catch(()=>{}),i};onNodeMouseEnter=(e,t)=>{let{onMouseEnter:n}=this.props;n?.({event:e,node:t})};onNodeMouseLeave=(e,t)=>{let{onMouseLeave:n}=this.props;n?.({event:e,node:t})};onNodeContextMenu=(e,t)=>{let{onRightClick:n}=this.props;n&&(e.preventDefault(),n({event:e,node:t}))};onMouseDown=e=>{this.focusedByMouse=!0;let{onMouseDown:t}=this.props;t?.(e)};onGlobalMouseUp=()=>{this.focusedByMouse=!1};onFocus=(...e)=>{let{onFocus:t,disabled:n}=this.props,{activeKey:o,selectedKeys:r,flattenNodes:i}=this.state;if(!this.focusedByMouse&&!n&&null===o){let e=r.find(e=>i.some(t=>t.key===e));void 0!==e?this.onActiveChange(e):this.onActiveChange(i?.[0]?.key||null)}t?.(...e)};onBlur=(...e)=>{let{onBlur:t}=this.props;this.onActiveChange(null),t?.(...e)};getTreeNodeRequiredProps=()=>{let{expandedKeys:e,selectedKeys:t,loadedKeys:n,loadingKeys:o,checkedKeys:r,halfCheckedKeys:i,dragOverNodeKey:l,dropPosition:a,keyEntities:s}=this.state;return{expandedKeys:e||[],selectedKeys:t||[],loadedKeys:n||[],loadingKeys:o||[],checkedKeys:r||[],halfCheckedKeys:i||[],dragOverNodeKey:l,dropPosition:a,keyEntities:s}};setExpandedKeys=e=>{let{treeData:t,fieldNames:n}=this.state,o=g(t,e,n);this.setUncontrolledState({expandedKeys:e,flattenNodes:o},!0)};onNodeExpand=(e,t)=>{let{expandedKeys:n}=this.state,{listChanging:o,fieldNames:i}=this.state,{onExpand:l,loadData:a}=this.props,{expanded:s}=t,d=t[i.key];if(o)return;let c=n.includes(d),h=!s;if((0,r.$e)(s&&c||!s&&!c,"Expand state not sync with index check"),n=h?j(n,d):L(n,d),this.setExpandedKeys(n),l?.(n,{node:t,expanded:h,nativeEvent:e.nativeEvent}),h&&a){let e=this.onNodeLoad(t);e&&e.then(()=>{let e=g(this.state.treeData,n,i);this.setUncontrolledState({flattenNodes:e})}).catch(()=>{let{expandedKeys:e}=this.state,t=L(e,d);this.setExpandedKeys(t)})}};onListChangeStart=()=>{this.setUncontrolledState({listChanging:!0})};onListChangeEnd=()=>{setTimeout(()=>{this.setUncontrolledState({listChanging:!1})})};onActiveChange=e=>{let{activeKey:t}=this.state,{onActiveChange:n,itemScrollOffset:o=0}=this.props;t!==e&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e,offset:o}),n?.(e))};getActiveItem=()=>{let{activeKey:e,flattenNodes:t}=this.state;return null===e?null:t.find(({key:t})=>t===e)||null};offsetActiveKey=e=>{let{flattenNodes:t,activeKey:n}=this.state,o=t.findIndex(({key:e})=>e===n);-1===o&&e<0&&(o=t.length),o=(o+e+t.length)%t.length;let r=t[o];if(r){let{key:e}=r;this.onActiveChange(e)}else this.onActiveChange(null)};onKeyDown=e=>{let{activeKey:t,expandedKeys:n,checkedKeys:o,flattenNodes:r,keyEntities:i}=this.state,{onKeyDown:l,checkable:a,selectable:s,disabled:d,loadData:c}=this.props;if(d)return;switch(e.key){case"ArrowUp":this.offsetActiveKey(-1),e.preventDefault();break;case"ArrowDown":this.offsetActiveKey(1),e.preventDefault();break;case"Home":this.onActiveChange(r?.[0]?.key),e.preventDefault();break;case"End":this.onActiveChange(r?.[r.length-1]?.key),e.preventDefault()}let h=this.getActiveItem();if(h&&h.data){let r=m({...b(t,this.getTreeNodeRequiredProps()),data:h.data,active:!0}),l=i[t],d=!!l?.children?.length,u=!v(h.data.isLeaf,c,d,r.loaded),p=a&&!r.disabled&&!1!==r.checkable&&!r.disableCheckbox,f=!a&&s&&!r.disabled&&!1!==r.selectable;switch(e.key){case"ArrowLeft":u&&n.includes(t)?this.onNodeExpand({},r):h.parent&&this.onActiveChange(h.parent.key),e.preventDefault();break;case"ArrowRight":u&&!n.includes(t)?this.onNodeExpand({},r):h.children&&h.children.length&&this.onActiveChange(h.children[0].key),e.preventDefault();break;case"Enter":u?(e.preventDefault(),this.onNodeExpand({},r)):p?o.includes(t)||(e.preventDefault(),this.onNodeCheck({},r,!0)):f&&!r.selected&&(e.preventDefault(),this.onNodeSelect({},r));break;case" ":p?(e.preventDefault(),this.onNodeCheck({},r,!o.includes(t))):f&&(e.preventDefault(),this.onNodeSelect({},r))}}l?.(e)};setUncontrolledState=(e,t=!1,n=null)=>{if(!this.destroyed){let o=!1,r=!0,i={};Object.keys(e).forEach(t=>{if(this.props.hasOwnProperty(t)){r=!1;return}o=!0,i[t]=e[t]}),o&&(!t||r)&&this.setState({...i,...n})}};scrollTo=e=>{this.listRef.current.scrollTo(e)};render(){let e,{flattenNodes:t,keyEntities:n,draggingNodeKey:a,dropLevelOffset:s,dropContainerKey:d,dropTargetKey:c,dropPosition:h,dragOverNodeKey:u,indent:p}=this.state,{prefixCls:f,className:g,style:y,styles:v,classNames:b,showLine:m,focusable:k,tabIndex:N=0,selectable:w,showIcon:E,icon:x,switcherIcon:$,draggable:C,checkable:K,checkStrictly:S,disabled:D,motion:O,loadData:M,filterTreeNode:P,height:A,itemHeight:T,scrollWidth:I,virtual:L,titleRender:j,dropIndicatorRender:H,onContextMenu:B,onScroll:_,direction:W,rootClassName:z,rootStyle:F}=this.props,V=(0,r.KE)(this.props,{aria:!0,data:!0});C&&(e="object"==typeof C?C:"function"==typeof C?{nodeDraggable:C}:{});let q={styles:v,classNames:b,prefixCls:f,selectable:w,showIcon:E,icon:x,switcherIcon:$,draggable:e,draggingNodeKey:a,checkable:K,checkStrictly:S,disabled:D,keyEntities:n,dropLevelOffset:s,dropContainerKey:d,dropTargetKey:c,dropPosition:h,dragOverNodeKey:u,indent:p,direction:W,dropIndicatorRender:H,loadData:M,filterTreeNode:P,titleRender:j,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return i.createElement(l.Provider,{value:q},i.createElement("div",{className:(0,o.$)(f,g,z,{[`${f}-show-line`]:m}),style:F},i.createElement(R,U({ref:this.listRef,prefixCls:f,style:y,data:t,disabled:D,selectable:w,checkable:!!K,motion:O,dragging:null!==a,height:A,itemHeight:T,virtual:L,focusable:k,tabIndex:N,activeItem:this.getActiveItem(),onFocus:this.onFocus,onMouseDown:this.onMouseDown,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:B,onScroll:_,scrollWidth:I},this.getTreeNodeRequiredProps(),V))))}}let X=G},96899:(e,t,n)=>{n.d(t,{A:()=>m});var o=n(97109),r=n(60495),i=n(88483);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let a=o.forwardRef((e,t)=>o.createElement(i.A,l({},e,{ref:t,icon:r.A})));var s=n(56768),d=n(83914),c=n(58833);function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let u=o.forwardRef((e,t)=>o.createElement(i.A,h({},e,{ref:t,icon:c.A})));var p=n(98953);function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}let g=o.forwardRef((e,t)=>o.createElement(i.A,f({},e,{ref:t,icon:p.A})));var y=n(3638),v=n(26047),b=n(52690);let m=e=>{let t,{prefixCls:n,switcherIcon:r,treeNodeProps:i,showLine:l,switcherLoadingIcon:c}=e,{isLeaf:h,expanded:p,loading:f}=i;if(f)return o.isValidElement(c)?c:o.createElement(d.A,{className:`${n}-switcher-loading-icon`});if((0,v.Qd)(l)&&(t=l.showLeafIcon),h){if(!l)return null;if("boolean"!=typeof t&&t){let e=(0,v.Tn)(t)?t(i):t,r=`${n}-switcher-line-custom-icon`;return o.isValidElement(e)?(0,b.Ob)(e,{className:(0,y.$)(e.props?.className,r)}):e}return t?o.createElement(s.A,{className:`${n}-switcher-line-icon`}):o.createElement("span",{className:`${n}-switcher-leaf-line`})}let m=`${n}-switcher-icon`,k=(0,v.Tn)(r)?r(i):r;return o.isValidElement(k)?(0,b.Ob)(k,{className:(0,y.$)(k.props?.className,l?`${n}-switcher-line-icon`:m)}):void 0!==k?k:l?p?o.createElement(u,{className:`${n}-switcher-line-icon`}):o.createElement(g,{className:`${n}-switcher-line-icon`}):o.createElement(a,{className:m})}},98953:(e,t)=>{t.A={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"}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[795],{5450:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"}},12887:(e,t)=>{t.A={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 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"}},13114:(e,t,a)=>{a.d(t,{A:()=>c});var s=a(97109),r=a(5450),l=a(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e}).apply(this,arguments)}let c=s.forwardRef((e,t)=>s.createElement(l.A,o({},e,{ref:t,icon:r.A})))},14995:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"}},24810:(e,t,a)=>{a.d(t,{A:()=>c});var s=a(97109),r=a(31738),l=a(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e}).apply(this,arguments)}let c=s.forwardRef((e,t)=>s.createElement(l.A,o({},e,{ref:t,icon:r.A})))},26631:(e,t,a)=>{a.d(t,{A:()=>c});var s=a(97109),r=a(12887),l=a(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e}).apply(this,arguments)}let c=s.forwardRef((e,t)=>s.createElement(l.A,o({},e,{ref:t,icon:r.A})))},27795:(e,t,a)=>{a.r(t),a.d(t,{default:()=>f});var s=a(65321),r=a(97109),l=a(48321),o=a(33442),c=a(85114),n=a(99605),i=a(99811),d=a(13114),v=a(29071),x=a(26631),u=a(84742),m=a(38762),h=a(24810),g=a(6578);function p(e){let{title:t,value:a,subtext:r,icon:l,colorClass:o,animationClass:c}=e;return(0,s.jsxs)("div",{className:"p-4 animateFadeIn flex flex-col justify-between border-l-2 border-transparent hover:border-[var(--colorBrand)] transition-colors ".concat(c||""),style:{opacity:0},children:[(0,s.jsxs)("div",{className:"flex items-start justify-between mb-2",children:[(0,s.jsx)("div",{className:"text-xs font-semibold text-[var(--colorTextSecondary)] tracking-wide uppercase",children:t}),l&&(0,s.jsx)("div",{className:o,style:{opacity:.7},children:l})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-3xl font-bold tracking-tight",children:a}),r&&(0,s.jsx)("div",{className:"text-xs mt-1 truncate font-medium",style:{color:"var(--colorTextTertiary)"},children:r})]})]})}function f(){var e,t,a,f,j,y,b,w,A,N,k,T,C,z,O,M,S,L,P,H;let B=(0,l.Vr)(),[R,E]=(0,r.useState)(null),[I,D]=(0,r.useState)(!0),[V,F]=(0,r.useState)(0),[U,_]=(0,r.useState)(0),[W,Z]=(0,r.useState)(0),[q,G]=(0,r.useState)(0),[J,K]=(0,r.useState)(null),Q=(0,r.useCallback)(async()=>{D(!0);try{let[e,t,a,s,r]=await Promise.all([(0,g.FC)(),(0,g.Z3)().catch(()=>[]),(0,g.lv)().catch(()=>({roles:[],configs:[]})),(0,g.Dl)().catch(()=>({templates:[]})),(0,g.II)().catch(()=>null)]);E(e),F(Array.isArray(t)?t.length:0);let l=Array.isArray(a.roles)?a.roles:[];_(l.filter(e=>"file"===e.type).length),Z(l.filter(e=>"prompt"===e.type).length),G(Array.isArray(s.templates)?s.templates.length:0),K(r)}catch(e){}finally{D(!1)}},[]);(0,r.useEffect)(()=>{Q();let e=setInterval(()=>{Q()},1e4);return()=>clearInterval(e)},[Q]);let X=(null==R?void 0:R.tasks.total)?Math.round(R.tasks.success/R.tasks.total*100):0,Y=null==R||null==(e=R.models)?void 0:e[0],$=(null==R?void 0:R.logs.latestAt)?new Date(R.logs.latestAt).toLocaleString():B("overview.noLogs");return(0,s.jsxs)("div",{className:"space-y-12",children:[(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-end justify-between gap-4 pb-6 border-b border-[var(--borderColor)]",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"text-3xl font-extrabold tracking-tight text-[var(--colorText)] mb-2",children:B("overview.title")}),(0,s.jsx)("p",{className:"text-sm text-[var(--colorTextSecondary)]",children:B("overview.description")})]}),(0,s.jsxs)(o.A,{children:[(0,s.jsxs)("span",{className:"text-xs font-mono",style:{color:"var(--colorTextTertiary)"},children:[B("overview.updated"),": ",$]}),(0,s.jsx)(c.Ay,{type:"text",icon:(0,s.jsx)(i.A,{spin:I}),onClick:()=>{Q()}})]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-8 divide-x border-b pb-8 border-[var(--borderColor)] divide-[var(--borderColor)] -mx-4 px-4",children:[(0,s.jsx)(p,{title:B("overview.uptime"),value:"".concat(R?Math.floor(R.uptime/3600):0,"h"),icon:(0,s.jsx)(d.A,{size:16}),colorClass:"text-[var(--colorBrand)]",animationClass:"stagger-1"}),(0,s.jsx)(p,{title:B("overview.tokensUsed"),value:(null!=(a=null==R?void 0:R.tokens.total)?a:0).toLocaleString(),subtext:"P ".concat(null!=(f=null==R?void 0:R.tokens.prompt)?f:0," / C ").concat(null!=(j=null==R?void 0:R.tokens.completion)?j:0),icon:(0,s.jsx)(v.A,{size:16}),colorClass:"text-[var(--colorWarn)]",animationClass:"stagger-2"}),(0,s.jsx)(p,{title:B("overview.tasksTotal"),value:(null!=(y=null==R?void 0:R.tasks.total)?y:0).toLocaleString(),subtext:"✓ ".concat(null!=(b=null==R?void 0:R.tasks.success)?b:0," | ✗ ").concat(null!=(w=null==R?void 0:R.tasks.failed)?w:0," | ↻ ").concat(null!=(A=null==R?void 0:R.tasks.running)?A:0),icon:(0,s.jsx)(x.A,{size:16}),colorClass:"text-[var(--colorInfo)]",animationClass:"stagger-3"}),(0,s.jsx)(p,{title:B("overview.successRate"),value:"".concat(X,"%"),icon:X>80?(0,s.jsx)(u.A,{size:16}):(0,s.jsx)(m.A,{size:16}),colorClass:X>80?"text-[var(--colorOk)]":"text-[var(--colorDanger)]",animationClass:"stagger-4"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-sm font-semibold mb-6 uppercase tracking-wider text-[var(--colorTextSecondary)] animateFadeIn stagger-5",style:{opacity:0},children:B("overview.systemResources")}),(0,s.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-y-8 gap-x-4",children:[(0,s.jsx)(p,{title:B("overview.fileRoles"),value:U,animationClass:"stagger-5"}),(0,s.jsx)(p,{title:B("overview.promptRoles"),value:W,animationClass:"stagger-5"}),(0,s.jsx)(p,{title:B("overview.templateCount"),value:q,animationClass:"stagger-5"}),(0,s.jsx)(p,{title:B("overview.semanticModel"),value:(null==J?void 0:J.provider)==="openai-compatible"?B("overview.external"):J?B("overview.local"):"—",subtext:null!=(N=null==J?void 0:J.model)?N:B("overview.notConfigured"),animationClass:"stagger-5"}),(0,s.jsx)(p,{title:B("overview.modelProviders"),value:V,animationClass:"stagger-5"}),(0,s.jsx)(p,{title:B("overview.auditLogs"),value:null!=(k=null==R?void 0:R.logs.events)?k:0,animationClass:"stagger-5"})]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12 pt-8 border-t border-[var(--borderColor)] animateFadeIn stagger-5",style:{opacity:0},children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-sm font-semibold mb-6 uppercase tracking-wider text-[var(--colorTextSecondary)]",children:B("overview.hardwareUsage")}),(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-6",children:[(0,s.jsx)(n.A,{type:"dashboard",percent:null!=(T=null==R?void 0:R.cpu.usagePercent)?T:0,size:64,strokeColor:(null!=(C=null==R?void 0:R.cpu.usagePercent)?C:0)>80?"var(--colorDanger)":"var(--colorText)",strokeWidth:10}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-sm font-medium text-[var(--colorTextSecondary)]",children:B("overview.cpuUsage")}),(0,s.jsxs)("div",{className:"text-xl font-bold",children:[null!=(z=null==R||null==(t=R.cpu.usagePercent)?void 0:t.toFixed(1))?z:"0.0","%"]}),(0,s.jsxs)("div",{className:"text-xs text-[var(--colorTextTertiary)]",children:[null!=(O=null==R?void 0:R.cpu.cores)?O:0," ",B("overview.cores")]})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-6",children:[(0,s.jsx)(n.A,{type:"dashboard",percent:null!=(M=null==R?void 0:R.memory.usagePercent)?M:0,size:64,strokeColor:(null!=(S=null==R?void 0:R.memory.usagePercent)?S:0)>80?"var(--colorDanger)":"var(--colorTextSecondary)",strokeWidth:10}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-sm font-medium text-[var(--colorTextSecondary)]",children:B("overview.memoryUsage")}),(0,s.jsxs)("div",{className:"text-xl font-bold",children:[null!=(L=null==R?void 0:R.memory.usagePercent)?L:0,"%"]}),(0,s.jsxs)("div",{className:"text-xs text-[var(--colorTextTertiary)]",children:[null!=(P=null==R?void 0:R.memory.processMB)?P:0," MB / ",null!=(H=null==R?void 0:R.memory.totalMB)?H:0," MB"]})]})]})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-sm font-semibold mb-6 uppercase tracking-wider text-[var(--colorTextSecondary)]",children:B("overview.activityContext")}),(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-xs text-[var(--colorTextTertiary)] mb-1",children:B("overview.topModel")}),Y?(0,s.jsxs)("div",{className:"font-semibold flex items-center gap-2",children:[(0,s.jsx)(h.A,{className:"text-[var(--colorTextSecondary)]"})," ",Y.model,(0,s.jsxs)("span",{className:"font-normal text-[var(--colorTextTertiary)] text-sm",children:["@",Y.provider]})]}):(0,s.jsx)("span",{className:"text-sm text-[var(--colorTextTertiary)]",children:B("overview.noDataAvailable")})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-xs text-[var(--colorTextTertiary)] mb-3",children:B("overview.recentTaskTypes")}),(null==R?void 0:R.tasks.types)&&Object.keys(R.tasks.types).length>0?(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:Object.entries(R.tasks.types).sort((e,t)=>t[1]-e[1]).map(e=>{let[t,a]=e;return(0,s.jsxs)("div",{className:"px-2 py-1 rounded text-xs font-mono bg-[var(--colorBgHover)] text-[var(--colorTextSecondary)]",children:[t.slice(0,30)," ",(0,s.jsx)("span",{className:"ml-2 font-bold text-[var(--colorText)]",children:a})]},t)})}):(0,s.jsx)("span",{className:"text-sm text-[var(--colorTextTertiary)]",children:B("common.noData")})]})]})]})]})]})}},29071:(e,t,a)=>{a.d(t,{A:()=>c});var s=a(97109),r=a(78847),l=a(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e}).apply(this,arguments)}let c=s.forwardRef((e,t)=>s.createElement(l.A,o({},e,{ref:t,icon:r.A})))},31738:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"}},78847:(e,t)=>{t.A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"}},99811:(e,t,a)=>{a.d(t,{A:()=>c});var s=a(97109),r=a(14995),l=a(88483);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e}).apply(this,arguments)}let c=s.forwardRef((e,t)=>s.createElement(l.A,o({},e,{ref:t,icon:r.A})))}}]);
|