static.kuangkie.pc.bundle.7b1090d3817402b8ff1e.js Maven / Gradle / Ivy
The newest version!
"use strict";(self.webpackChunkaldehyde=self.webpackChunkaldehyde||[]).push([[443],{87453:function(e,n,t){t.d(n,{Z:function(){return m}});var r=t(87462),o=t(1413),a=t(4942),i=t(45987),c=t(94184),l=t.n(c),u=t(67294),s=t(15105),d=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function f(e){return"string"==typeof e}var p=function(e){var n,t=e.className,c=e.prefixCls,p=e.style,v=e.active,h=e.status,m=e.iconPrefix,y=e.icon,g=(e.wrapperStyle,e.stepNumber),x=e.disabled,E=e.description,b=e.title,C=e.subTitle,Z=e.progressDot,k=e.stepIcon,w=e.tailContent,N=e.icons,S=e.stepIndex,K=e.onStepClick,R=e.onClick,T=e.render,P=(0,i.Z)(e,d),D={};K&&!x&&(D.role="button",D.tabIndex=0,D.onClick=function(e){null==R||R(e),K(S)},D.onKeyDown=function(e){var n=e.which;n!==s.Z.ENTER&&n!==s.Z.SPACE||K(S)});var M,L,I,O,A=h||"wait",H=l()("".concat(c,"-item"),"".concat(c,"-item-").concat(A),t,(n={},(0,a.Z)(n,"".concat(c,"-item-custom"),y),(0,a.Z)(n,"".concat(c,"-item-active"),v),(0,a.Z)(n,"".concat(c,"-item-disabled"),!0===x),n)),F=(0,o.Z)({},p),_=u.createElement("div",(0,r.Z)({},P,{className:H,style:F}),u.createElement("div",(0,r.Z)({onClick:R},D,{className:"".concat(c,"-item-container")}),u.createElement("div",{className:"".concat(c,"-item-tail")},w),u.createElement("div",{className:"".concat(c,"-item-icon")},(I=l()("".concat(c,"-icon"),"".concat(m,"icon"),(M={},(0,a.Z)(M,"".concat(m,"icon-").concat(y),y&&f(y)),(0,a.Z)(M,"".concat(m,"icon-check"),!y&&"finish"===h&&(N&&!N.finish||!N)),(0,a.Z)(M,"".concat(m,"icon-cross"),!y&&"error"===h&&(N&&!N.error||!N)),M)),O=u.createElement("span",{className:"".concat(c,"-icon-dot")}),L=Z?"function"==typeof Z?u.createElement("span",{className:"".concat(c,"-icon")},Z(O,{index:g-1,status:h,title:b,description:E})):u.createElement("span",{className:"".concat(c,"-icon")},O):y&&!f(y)?u.createElement("span",{className:"".concat(c,"-icon")},y):N&&N.finish&&"finish"===h?u.createElement("span",{className:"".concat(c,"-icon")},N.finish):N&&N.error&&"error"===h?u.createElement("span",{className:"".concat(c,"-icon")},N.error):y||"finish"===h||"error"===h?u.createElement("span",{className:I}):u.createElement("span",{className:"".concat(c,"-icon")},g),k&&(L=k({index:g-1,status:h,title:b,description:E,node:L})),L)),u.createElement("div",{className:"".concat(c,"-item-content")},u.createElement("div",{className:"".concat(c,"-item-title")},b,C&&u.createElement("div",{title:"string"==typeof C?C:void 0,className:"".concat(c,"-item-subtitle")},C)),E&&u.createElement("div",{className:"".concat(c,"-item-description")},E))));return T&&(_=T(_)||null),_},v=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function h(e){var n,t=e.prefixCls,c=void 0===t?"rc-steps":t,s=e.style,d=void 0===s?{}:s,f=e.className,h=(e.children,e.direction),m=void 0===h?"horizontal":h,y=e.type,g=void 0===y?"default":y,x=e.labelPlacement,E=void 0===x?"horizontal":x,b=e.iconPrefix,C=void 0===b?"rc":b,Z=e.status,k=void 0===Z?"process":Z,w=e.size,N=e.current,S=void 0===N?0:N,K=e.progressDot,R=void 0!==K&&K,T=e.stepIcon,P=e.initial,D=void 0===P?0:P,M=e.icons,L=e.onChange,I=e.itemRender,O=e.items,A=void 0===O?[]:O,H=(0,i.Z)(e,v),F="navigation"===g,_="inline"===g,W=_||R,z=_?"horizontal":m,U=_?void 0:w,B=W?"vertical":E,V=l()(c,"".concat(c,"-").concat(z),f,(n={},(0,a.Z)(n,"".concat(c,"-").concat(U),U),(0,a.Z)(n,"".concat(c,"-label-").concat(B),"horizontal"===z),(0,a.Z)(n,"".concat(c,"-dot"),!!W),(0,a.Z)(n,"".concat(c,"-navigation"),F),(0,a.Z)(n,"".concat(c,"-inline"),_),n)),j=function(e){L&&S!==e&&L(e)};return u.createElement("div",(0,r.Z)({className:V,style:d},H),A.filter((function(e){return e})).map((function(e,n){var t=(0,o.Z)({},e),a=D+n;return"error"===k&&n===S-1&&(t.className="".concat(c,"-next-error")),t.status||(t.status=a===S?k:a1&&void 0!==arguments[1]?arguments[1]:"";return"number"==typeof n?n:n.endsWith("%")?e*parseFloat(n)/100:null}var v=["children"],h=["fixed"];function m(e){return(0,u.Z)(e).filter((function(e){return s.isValidElement(e)})).map((function(e){var n=e.key,t=e.props,r=t.children,o=(0,l.Z)(t,v),a=(0,c.Z)({key:n},o);return r&&(a.children=m(r)),a}))}function y(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter((function(e){return e&&"object"===(0,i.Z)(e)})).reduce((function(e,t,r){var o=t.fixed,i=!0===o?"left":o,l="".concat(n,"-").concat(r),u=t.children;return u&&u.length>0?[].concat((0,a.Z)(e),(0,a.Z)(y(u,l).map((function(e){return(0,c.Z)({fixed:i},e)})))):[].concat((0,a.Z)(e),[(0,c.Z)((0,c.Z)({key:l},t),{},{fixed:i})])}),[])}var g=function(e,n){var t=e.prefixCls,a=e.columns,i=e.children,u=e.expandable,v=e.expandedKeys,g=e.columnTitle,x=e.getRowKey,E=e.onTriggerExpand,b=e.expandIcon,C=e.rowExpandable,Z=e.expandIconColumnIndex,k=e.direction,w=e.expandRowByClick,N=e.columnWidth,S=e.fixed,K=e.scrollWidth,R=e.clientWidth,T=s.useMemo((function(){return a||m(i)}),[a,i]),P=s.useMemo((function(){if(u){var e,n=T.slice();if(!n.includes(d.w)){var r=Z||0;r>=0&&n.splice(r,0,d.w)}var a=n.indexOf(d.w);n=n.filter((function(e,n){return e!==d.w||n===a}));var i,c=T[a];i="left"!==S&&!S||Z?"right"!==S&&!S||Z!==T.length?c?c.fixed:null:"right":"left";var l=(e={},(0,o.Z)(e,f.v,{className:"".concat(t,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,o.Z)(e,"title",g),(0,o.Z)(e,"fixed",i),(0,o.Z)(e,"className","".concat(t,"-row-expand-icon-cell")),(0,o.Z)(e,"width",N),(0,o.Z)(e,"render",(function(e,n,r){var o=x(n,r),a=v.has(o),i=!C||C(n),c=b({prefixCls:t,expanded:a,expandable:i,record:n,onExpand:E});return w?s.createElement("span",{onClick:function(e){return e.stopPropagation()}},c):c})),e);return n.map((function(e){return e===d.w?l:e}))}return T.filter((function(e){return e!==d.w}))}),[u,T,x,v,b,k]),D=s.useMemo((function(){var e=P;return n&&(e=n(e)),e.length||(e=[{render:function(){return null}}]),e}),[n,P,k]),M=function(e,n,t){return s.useMemo((function(){if(n&&n>0){var r=0,o=0;e.forEach((function(e){var t=p(n,e.width);t?r+=t:o+=1}));var a=Math.max(n,t),i=Math.max(a-r,o),l=o,u=i/o,s=0,d=e.map((function(e){var t=(0,c.Z)({},e),r=p(n,t.width);if(r)t.width=r;else{var o=Math.floor(u);t.width=1===l?i:o,i-=o,l-=1}return s+=t.width,t}));if(s=a),t.onHover]}))}(O,le),se=(0,h.Z)(ue,2),de=se[0],fe=se[1];if(0===ce||0===le)return null;var pe=null!==(m=G.title)&&void 0!==m?m:function(e){var n,t=e.ellipsis,r=e.rowType,o=e.children,i=!0===t?{showTitle:!0}:t;return i&&(i.showTitle||"header"===r)&&("string"==typeof o||"number"==typeof o?n=o.toString():a.isValidElement(o)&&"string"==typeof o.props.children&&(n=o.props.children)),n}({rowType:A,ellipsis:N,children:te}),ve=y()(Y,R,(C={},(0,v.Z)(C,"".concat(Y,"-fix-left"),ae&&$),(0,v.Z)(C,"".concat(Y,"-fix-left-first"),z&&$),(0,v.Z)(C,"".concat(Y,"-fix-left-last"),U&&$),(0,v.Z)(C,"".concat(Y,"-fix-left-all"),U&&J&&$),(0,v.Z)(C,"".concat(Y,"-fix-right"),ie&&$),(0,v.Z)(C,"".concat(Y,"-fix-right-first"),B&&$),(0,v.Z)(C,"".concat(Y,"-fix-right-last"),V&&$),(0,v.Z)(C,"".concat(Y,"-ellipsis"),N),(0,v.Z)(C,"".concat(Y,"-with-append"),j),(0,v.Z)(C,"".concat(Y,"-fix-sticky"),(ae||ie)&&X&&$),(0,v.Z)(C,"".concat(Y,"-row-hover"),!re&&de),C),G.className,null==re?void 0:re.className),he={};T&&(he.textAlign=T);var me=(0,p.Z)((0,p.Z)((0,p.Z)((0,p.Z)({},oe),G.style),he),null==re?void 0:re.style),ye=te;return"object"!==(0,f.Z)(ye)||Array.isArray(ye)||a.isValidElement(ye)||(ye=null),N&&(U||B)&&(ye=a.createElement("span",{className:"".concat(Y,"-content")},ye)),a.createElement(Z,(0,d.Z)({},re,G,{className:ve,style:me,title:pe,scope:S,onMouseEnter:function(e){var n;P&&fe(O,O+le-1),null==G||null===(n=G.onMouseEnter)||void 0===n||n.call(G,e)},onMouseLeave:function(e){var n;P&&fe(-1,-1),null==G||null===(n=G.onMouseLeave)||void 0===n||n.call(G,e)},colSpan:1!==ce?ce:null,rowSpan:1!==le?le:null}),j,ye)}var N=a.memo(w);function S(e,n,t,r,o,a){var i,c,l=t[e]||{},u=t[n]||{};"left"===l.fixed?i=r.left["rtl"===o?n:e]:"right"===u.fixed&&(c=r.right["rtl"===o?e:n]);var s=!1,d=!1,f=!1,p=!1,v=t[n+1],h=t[e-1],m=!(null!=a&&a.children);return"rtl"===o?void 0!==i?p=!(h&&"left"===h.fixed)&&m:void 0!==c&&(f=!(v&&"right"===v.fixed)&&m):void 0!==i?s=!(v&&"left"===v.fixed)&&m:void 0!==c&&(d=!(h&&"right"===h.fixed)&&m),{fixLeft:i,fixRight:c,lastFixLeft:s,firstFixRight:d,lastFixRight:f,firstFixLeft:p,isSticky:r.isSticky}}var K=a.createContext({}),R=t(45987),T=["children"];function P(e){return e.children}P.Row=function(e){var n=e.children,t=(0,R.Z)(e,T);return a.createElement("tr",t,n)},P.Cell=function(e){var n=e.className,t=e.index,r=e.children,i=e.colSpan,c=void 0===i?1:i,l=e.rowSpan,u=e.align,f=(0,o.qp)(s,["prefixCls","direction"]),p=f.prefixCls,v=f.direction,h=a.useContext(K),m=h.scrollColumnIndex,y=h.stickyOffsets,g=h.flattenColumns,x=h.columns,E=t+c-1+1===m?c+1:c,b=S(t,t+E-1,g,y,v,null==x?void 0:x[t]);return a.createElement(N,(0,d.Z)({className:n,index:t,component:"td",prefixCls:p,record:null,dataIndex:null,align:u,colSpan:E,rowSpan:l,render:function(){return r}},b))};var D=P,M=l((function(e){var n=e.children,t=e.stickyOffsets,r=e.flattenColumns,i=e.columns,c=(0,o.qp)(s,"prefixCls"),l=r.length-1,u=r[l],d=a.useMemo((function(){return{stickyOffsets:t,flattenColumns:r,scrollColumnIndex:null!=u&&u.scrollbar?l:null,columns:i}}),[u,r,l,t,i]);return a.createElement(K.Provider,{value:d},a.createElement("tfoot",{className:"".concat(c,"-summary")},n))})),L=D,I=t(48717),O=t(5110),A=t(79370),H=t(74204),F=t(66680),_=t(64217);function W(e,n,t,r,o,a,i){e.push({record:n,indent:t,index:i});var c=a(n),l=null==o?void 0:o.has(c);if(n&&Array.isArray(n[r])&&l)for(var u=0;u1?t-1:0),o=1;o=0;i-=1){var c=n[i],l=t&&t[i],u=l&&l[J.v];if(c||u||o){var s=u||{},f=(s.columnType,(0,R.Z)(s,ee));r.unshift(a.createElement("col",(0,d.Z)({key:i,style:{width:c}},f))),o=!0}}return a.createElement("colgroup",null,r)},te=t(93433),re=t(42550),oe=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"],ae=a.forwardRef((function(e,n){var t=e.className,r=e.noData,i=e.columns,c=e.flattenColumns,l=e.colWidths,u=e.columCount,d=e.stickyOffsets,f=e.direction,h=e.fixHeader,m=e.stickyTopOffset,g=e.stickyBottomOffset,x=e.stickyClassName,E=e.onScroll,b=e.maxContentScroll,C=e.children,Z=(0,R.Z)(e,oe),k=(0,o.qp)(s,["prefixCls","scrollbarSize","isSticky"]),w=k.prefixCls,N=k.scrollbarSize,S=k.isSticky,K=S&&!h?0:N,T=a.useRef(null),P=a.useCallback((function(e){(0,re.mH)(n,e),(0,re.mH)(T,e)}),[]);a.useEffect((function(){var e;function n(e){var n=e,t=n.currentTarget,r=n.deltaX;r&&(E({currentTarget:t,scrollLeft:t.scrollLeft+r}),e.preventDefault())}return null===(e=T.current)||void 0===e||e.addEventListener("wheel",n),function(){var e;null===(e=T.current)||void 0===e||e.removeEventListener("wheel",n)}}),[]);var D=a.useMemo((function(){return c.every((function(e){return e.width}))}),[c]),M=c[c.length-1],L={fixed:M?M.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(w,"-cell-scrollbar")}}},I=(0,a.useMemo)((function(){return K?[].concat((0,te.Z)(i),[L]):i}),[K,i]),O=(0,a.useMemo)((function(){return K?[].concat((0,te.Z)(c),[L]):c}),[K,c]),A=(0,a.useMemo)((function(){var e=d.right,n=d.left;return(0,p.Z)((0,p.Z)({},d),{},{left:"rtl"===f?[].concat((0,te.Z)(n.map((function(e){return e+K}))),[0]):n,right:"rtl"===f?e:[].concat((0,te.Z)(e.map((function(e){return e+K}))),[0]),isSticky:S})}),[K,d,S]),H=function(e,n){return(0,a.useMemo)((function(){for(var t=[],r=0;r1?"colgroup":"col":null,ellipsis:o.ellipsis,align:o.align,component:o.title?l:u,prefixCls:h,key:y[n]},c,{additionalProps:t,rowType:"header"}))})))}ce.displayName="HeaderRow";var le=ce,ue=l((function(e){var n=e.stickyOffsets,t=e.columns,r=e.flattenColumns,i=e.onHeaderRow,c=(0,o.qp)(s,["prefixCls","getComponent"]),l=c.prefixCls,u=c.getComponent,d=a.useMemo((function(){return function(e){var n=[];!function e(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;n[o]=n[o]||[];var a=r;return t.filter(Boolean).map((function(t){var r={key:t.key,className:t.className||"",children:t.title,column:t,colStart:a},i=1,c=t.children;return c&&c.length>0&&(i=e(c,a,o+1).reduce((function(e,n){return e+n}),0),r.hasSubColumns=!0),"colSpan"in t&&(i=t.colSpan),"rowSpan"in t&&(r.rowSpan=t.rowSpan),r.colSpan=i,r.colEnd=r.colStart+i-1,n[o].push(r),a+=i,i}))}(e,0);for(var t=n.length,r=function(e){n[e].forEach((function(n){"rowSpan"in n||n.hasSubColumns||(n.rowSpan=t-e)}))},o=0;o=m&&(r=m-g),c({scrollLeft:r/m*(f+2)}),k.current.x=e.pageX}else S&&K(!1)},P=function(){if(i.current){var e=(0,me.os)(i.current).top,n=e+i.current.offsetHeight,t=u===window?document.documentElement.scrollTop+window.innerHeight:(0,me.os)(u).top+u.clientHeight;n-(0,H.Z)()<=t||e>=t-l?Z((function(e){return(0,p.Z)((0,p.Z)({},e),{},{isHiddenScrollBar:!0})})):Z((function(e){return(0,p.Z)((0,p.Z)({},e),{},{isHiddenScrollBar:!1})}))}},D=function(e){Z((function(n){return(0,p.Z)((0,p.Z)({},n),{},{scrollLeft:e/f*m||0})}))};return a.useImperativeHandle(n,(function(){return{setScrollLeft:D}})),a.useEffect((function(){var e=(0,he.Z)(document.body,"mouseup",R,!1),n=(0,he.Z)(document.body,"mousemove",T,!1);return P(),function(){e.remove(),n.remove()}}),[g,S]),a.useEffect((function(){var e=(0,he.Z)(u,"scroll",P,!1),n=(0,he.Z)(window,"resize",P,!1);return function(){e.remove(),n.remove()}}),[u]),a.useEffect((function(){C.isHiddenScrollBar||Z((function(e){var n=i.current;return n?(0,p.Z)((0,p.Z)({},e),{},{scrollLeft:n.scrollLeft/n.scrollWidth*n.clientWidth}):e}))}),[C.isHiddenScrollBar]),f<=m||!g||C.isHiddenScrollBar?null:a.createElement("div",{style:{height:(0,H.Z)(),width:m,bottom:l},className:"".concat(d,"-sticky-scroll")},a.createElement("div",{onMouseDown:function(e){e.persist(),k.current.delta=e.pageX-C.scrollLeft,k.current.x=0,K(!0),e.preventDefault()},ref:x,className:y()("".concat(d,"-sticky-scroll-bar"),(0,v.Z)({},"".concat(d,"-sticky-scroll-bar-active"),S)),style:{width:"".concat(g,"px"),transform:"translate3d(".concat(C.scrollLeft,"px, 0, 0)")}}))},ge=a.forwardRef(ye),xe="rc-table",Ee=[],be={};function Ce(){return"No Data"}function Ze(e,n){var t,o=(0,p.Z)({rowKey:"key",prefixCls:xe,emptyText:Ce},e),i=o.prefixCls,c=o.className,l=o.rowClassName,u=o.style,m=o.data,b=o.rowKey,C=o.scroll,w=o.tableLayout,N=o.direction,K=o.title,R=o.footer,T=o.summary,P=o.caption,L=o.id,W=o.showHeader,z=o.components,U=o.emptyText,B=o.onRow,V=o.onHeaderRow,j=o.internalHooks,q=o.transformColumns,G=o.internalRefs,X=o.tailor,Y=o.getContainerWidth,Q=o.sticky,ee=m||Ee,re=!!ee.length,oe=j===r.R,ae=a.useCallback((function(e,n){return(0,E.Z)(z,e)||n}),[z]),ce=a.useMemo((function(){return"function"==typeof b?b:function(e){return e&&e[b]}}),[b]),le=ae(["body"]),he=function(){var e=a.useState(-1),n=(0,h.Z)(e,2),t=n[0],r=n[1],o=a.useState(-1),i=(0,h.Z)(o,2),c=i[0],l=i[1];return[t,c,a.useCallback((function(e,n){r(e),l(n)}),[])]}(),me=(0,h.Z)(he,3),ye=me[0],Ze=me[1],ke=me[2],we=function(e,n,t){var o=(0,J.g)(e),i=o.expandIcon,c=o.expandedRowKeys,l=o.defaultExpandedRowKeys,u=o.defaultExpandAllRows,s=o.expandedRowRender,d=o.onExpand,p=o.onExpandedRowsChange,v=i||de,m=o.childrenColumnName||"children",y=a.useMemo((function(){return s?"row":!!(e.expandable&&e.internalHooks===r.R&&e.expandable.__PARENT_RENDER_ICON__||n.some((function(e){return e&&"object"===(0,f.Z)(e)&&e[m]})))&&"nest"}),[!!s,n]),g=a.useState((function(){return l||(u?function(e,n,t){var r=[];return function e(o){(o||[]).forEach((function(o,a){r.push(n(o,a)),e(o[t])}))}(e),r}(n,t,m):[])})),x=(0,h.Z)(g,2),E=x[0],b=x[1],C=a.useMemo((function(){return new Set(c||E||[])}),[c,E]),Z=a.useCallback((function(e){var r,o=t(e,n.indexOf(e)),a=C.has(o);a?(C.delete(o),r=(0,te.Z)(C)):r=[].concat((0,te.Z)(C),[o]),b(r),d&&d(!a,e),p&&p(r)}),[t,C,n,d,p]);return[o,y,C,v,m,Z]}(o,ee,ce),Ne=(0,h.Z)(we,6),Se=Ne[0],Ke=Ne[1],Re=Ne[2],Te=Ne[3],Pe=Ne[4],De=Ne[5],Me=null==C?void 0:C.x,Le=a.useState(0),Ie=(0,h.Z)(Le,2),Oe=Ie[0],Ae=Ie[1],He=(0,se.Z)((0,p.Z)((0,p.Z)((0,p.Z)({},o),Se),{},{expandable:!!Se.expandedRowRender,columnTitle:Se.columnTitle,expandedKeys:Re,getRowKey:ce,onTriggerExpand:De,expandIcon:Te,expandIconColumnIndex:Se.expandIconColumnIndex,direction:N,scrollWidth:oe&&X&&"number"==typeof Me?Me:null,clientWidth:Oe}),oe?q:null),Fe=(0,h.Z)(He,3),_e=Fe[0],We=Fe[1],ze=Fe[2],Ue=null!=ze?ze:Me,Be=a.useMemo((function(){return{columns:_e,flattenColumns:We}}),[_e,We]),Ve=a.useRef(),je=a.useRef(),qe=a.useRef(),Ge=a.useRef();a.useImperativeHandle(n,(function(){return{nativeElement:Ve.current,scrollTo:function(e){var n;if(qe.current instanceof HTMLElement){var t=e.index,r=e.top,o=e.key;if(r){var a;null===(a=qe.current)||void 0===a||a.scrollTo({top:r})}else{var i,c=null!=o?o:ce(ee[t]);null===(i=qe.current.querySelector('[data-row-key="'.concat(c,'"]')))||void 0===i||i.scrollIntoView()}}else null!==(n=qe.current)&&void 0!==n&&n.scrollTo&&qe.current.scrollTo(e)}}}));var Xe,Ye,Qe,$e=a.useRef(),Je=a.useState(!1),en=(0,h.Z)(Je,2),nn=en[0],tn=en[1],rn=a.useState(!1),on=(0,h.Z)(rn,2),an=on[0],cn=on[1],ln=fe(new Map),un=(0,h.Z)(ln,2),sn=un[0],dn=un[1],fn=Z(We).map((function(e){return sn.get(e)})),pn=a.useMemo((function(){return fn}),[fn.join("_")]),vn=function(e,n,t){return(0,a.useMemo)((function(){for(var r=[],o=[],a=0,i=0,c=0;c0)):(tn(a>0),cn(a1?E-M:0,I=(0,p.Z)((0,p.Z)((0,p.Z)({},K),s),{},{flex:"0 0 ".concat(M,"px"),width:"".concat(M,"px"),marginRight:L,pointerEvents:"auto"}),O=a.useMemo((function(){return v?D<=1:0===T||0===D||D>1}),[D,T,v]);O?I.visibility="hidden":v&&(I.height=null==h?void 0:h(D));var A=O?function(){return null}:m,H={};return 0!==D&&0!==T||(H.rowSpan=1,H.colSpan=1),a.createElement(N,(0,d.Z)({className:y()(x,f),ellipsis:t.ellipsis,align:t.align,scope:t.rowScope,component:"div",prefixCls:n.prefixCls,key:Z,record:u,index:c,renderIndex:l,dataIndex:g,render:A,shouldCellUpdate:t.shouldCellUpdate},k,{appendNode:w,additionalProps:(0,p.Z)((0,p.Z)({},S),{},{style:I},H)}))},De=["data","index","className","rowKey","style","extra","getHeight"],Me=l(a.forwardRef((function(e,n){var t,r=e.data,i=e.index,c=e.className,l=e.rowKey,u=e.style,f=e.extra,h=e.getHeight,m=(0,R.Z)(e,De),g=r.record,x=r.indent,E=r.index,b=(0,o.qp)(s,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),C=b.scrollX,Z=b.flattenColumns,k=b.prefixCls,w=b.fixColumn,S=b.componentWidth,K=B(g,l,i,x),T=K.rowSupportExpand,P=K.expanded,D=K.rowProps,M=K.expandedRowRender,L=K.expandedRowClassName;if(T&&P){var I=M(g,i,x+1,P),O=null==L?void 0:L(g,i,x),A={};w&&(A={style:(0,v.Z)({},"--virtual-width","".concat(S,"px"))});var H="".concat(k,"-expanded-row-cell");t=a.createElement("div",{className:y()("".concat(k,"-expanded-row"),"".concat(k,"-expanded-row-level-").concat(x+1),O)},a.createElement(N,{component:"div",prefixCls:k,className:y()(H,(0,v.Z)({},"".concat(H,"-fixed"),w)),additionalProps:A},I))}var F=(0,p.Z)((0,p.Z)({},u),{},{width:C});f&&(F.position="absolute",F.pointerEvents="none");var _=a.createElement("div",(0,d.Z)({},D,m,{ref:T?null:n,className:y()(c,"".concat(k,"-row"),null==D?void 0:D.className,(0,v.Z)({},"".concat(k,"-row-extra"),f)),style:(0,p.Z)((0,p.Z)({},F),null==D?void 0:D.style)}),Z.map((function(e,n){return a.createElement(Pe,{key:n,rowInfo:K,column:e,colIndex:n,indent:x,index:i,renderIndex:E,record:g,inverse:f,getHeight:h})})));return T?a.createElement("div",{ref:n},_,t):_}))),Le=l(a.forwardRef((function(e,n){var t=e.data,r=e.onScroll,i=(0,o.qp)(s,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),c=i.flattenColumns,l=i.onColumnResize,u=i.getRowKey,p=i.expandedKeys,v=i.prefixCls,m=i.childrenColumnName,g=i.emptyNode,x=i.scrollX,E=(0,o.qp)(Re),b=E.sticky,C=E.scrollY,Z=E.listItemHeight,k=a.useRef(),w=z(t,m,p,u),S=a.useMemo((function(){var e=0;return c.map((function(n){var t=n.width;return[n.key,t,e+=t]}))}),[c]),K=a.useMemo((function(){return S.map((function(e){return e[2]}))}),[S]);a.useEffect((function(){S.forEach((function(e){var n=(0,h.Z)(e,2),t=n[0],r=n[1];l(t,r)}))}),[S]),a.useImperativeHandle(n,(function(){var e={scrollTo:function(e){var n;null===(n=k.current)||void 0===n||n.scrollTo(e)}};return Object.defineProperty(e,"scrollLeft",{get:function(){var e;return(null===(e=k.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var n;null===(n=k.current)||void 0===n||n.scrollTo({left:e})}}),e}));var R,T=function(e,n){var t,r=null===(t=w[n])||void 0===t?void 0:t.record,o=e.onCell;if(o){var a,i=o(r,n);return null!==(a=null==i?void 0:i.rowSpan)&&void 0!==a?a:1}return 1},P=a.useMemo((function(){return{columnsOffset:K}}),[K]),D="".concat(v,"-tbody");if(w.length){var M={};b&&(M.position="sticky",M.bottom=0,"object"===(0,f.Z)(b)&&b.offsetScroll&&(M.bottom=b.offsetScroll)),R=a.createElement(Ke.Z,{fullHeight:!1,ref:k,styles:{horizontalScrollBar:M},className:y()(D,"".concat(D,"-virtual")),height:C,itemHeight:Z||24,data:w,itemKey:function(e){return u(e.record)},scrollWidth:x,onVirtualScroll:function(e){var n=e.x;r({scrollLeft:n})},extraRender:function(e){var n=e.start,t=e.end,r=e.getSize,o=e.offsetY;if(t<0)return null;for(var i=c.filter((function(e){return 0===T(e,n)})),l=n,s=function(e){if(!(i=i.filter((function(n){return 0===T(n,e)}))).length)return l=e,1},d=n;d>=0&&!s(d);d-=1);for(var f=c.filter((function(e){return 1!==T(e,t)})),p=t,v=function(e){if(!(f=f.filter((function(n){return 1!==T(n,e)}))).length)return p=Math.max(e-1,t),1},h=t;h1}))&&m.push(e)},g=l;g<=p;g+=1)y(g);return m.map((function(e){var n=w[e],t=u(n.record,e),i=r(t);return a.createElement(Me,{key:e,data:n,rowKey:t,index:e,style:{top:-o+i.top},extra:!0,getHeight:function(n){var o=e+n-1,a=u(w[o].record,o),i=r(t,a);return i.bottom-i.top}})}))}},(function(e,n,t){var r=u(e.record,n);return a.createElement(Me,(0,d.Z)({data:e,rowKey:r,index:n},t))}))}else R=a.createElement("div",{className:y()("".concat(v,"-placeholder"))},a.createElement(N,{component:"div",prefixCls:v},g));return a.createElement(Te.Provider,{value:P},R)}))),Ie=function(e,n){var t=n.ref,r=n.onScroll;return a.createElement(Le,{ref:t,data:e,onScroll:r})};function Oe(e,n){var t=e.columns,o=e.scroll,i=e.sticky,c=e.prefixCls,l=void 0===c?xe:c,u=e.className,s=e.listItemHeight,f=e.components,v=o||{},h=v.x,m=v.y;"number"!=typeof h&&(h=1),"number"!=typeof m&&(m=500);var g=a.useMemo((function(){return{sticky:i,scrollY:m,listItemHeight:s}}),[i,m,s]);return a.createElement(Re.Provider,{value:g},a.createElement(Se,(0,d.Z)({},e,{className:y()(u,"".concat(l,"-virtual")),scroll:(0,p.Z)((0,p.Z)({},o),{},{x:h}),components:(0,p.Z)((0,p.Z)({},f),{},{body:Ie}),columns:t,internalHooks:r.R,tailor:!0,ref:n})))}var Ae=a.forwardRef(Oe);function He(e){return c(Ae,e)}He()},62978:function(e,n,t){t.d(n,{g:function(){return c},v:function(){return i}});var r=t(1413),o=t(45987),a=(t(80334),["expandable"]),i="RC_TABLE_INTERNAL_COL_DEFINE";function c(e){var n,t=e.expandable,i=(0,o.Z)(e,a);return!1===(n="expandable"in e?(0,r.Z)((0,r.Z)({},i),t):i).showExpandColumn&&(n.expandIconColumnIndex=-1),n}},59381:function(e,n,t){t.d(n,{Z:function(){return Q}});var r=t(87462),o=t(4942),a=t(1413),i=t(29439),c=t(71002),l=t(45987),u=t(94184),s=t.n(u),d=t(21770),f=t(31131),p=t(67294);t(80334);var v=(0,p.createContext)(null),h=t(93433),m=t(48717),y=t(66680),g=t(42550),x=t(75164),E={width:0,height:0,left:0,top:0};function b(e,n){var t=p.useRef(e),r=p.useState({}),o=(0,i.Z)(r,2)[1];return[t.current,function(e){var r="function"==typeof e?e(t.current):e;r!==t.current&&n(r,t.current),t.current=r,o({})}]}var C=Math.pow(.995,20),Z=t(8410);function k(e){var n=(0,p.useState)(0),t=(0,i.Z)(n,2),r=t[0],o=t[1],a=(0,p.useRef)(0),c=(0,p.useRef)();return c.current=e,(0,Z.o)((function(){var e;null===(e=c.current)||void 0===e||e.call(c)}),[r]),function(){a.current===r&&(a.current+=1,o(a.current))}}var w={width:0,height:0,left:0,top:0,right:0};function N(e){var n;return e instanceof Map?(n={},e.forEach((function(e,t){n[t]=e}))):n=e,JSON.stringify(n)}function S(e){return String(e).replace(/"/g,"TABS_DQ")}function K(e,n,t,r){return!(!t||r||!1===e||void 0===e&&(!1===n||null===n))}var R=p.forwardRef((function(e,n){var t=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return r&&!1!==r.showAdd?p.createElement("button",{ref:n,type:"button",className:"".concat(t,"-nav-add"),style:a,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null})),T=p.forwardRef((function(e,n){var t,r=e.position,o=e.prefixCls,a=e.extra;if(!a)return null;var i={};return"object"!==(0,c.Z)(a)||p.isValidElement(a)?i.right=a:i=a,"right"===r&&(t=i.right),"left"===r&&(t=i.left),t?p.createElement("div",{className:"".concat(o,"-extra-content"),ref:n},t):null})),P=t(30026),D=t(51325),M=t(15105),L=p.forwardRef((function(e,n){var t=e.prefixCls,r=e.id,a=e.tabs,c=e.locale,l=e.mobile,u=e.moreIcon,d=void 0===u?"More":u,f=e.moreTransitionName,v=e.style,h=e.className,m=e.editable,y=e.tabBarGutter,g=e.rtl,x=e.removeAriaLabel,E=e.onTabClick,b=e.getPopupContainer,C=e.popupClassName,Z=(0,p.useState)(!1),k=(0,i.Z)(Z,2),w=k[0],N=k[1],S=(0,p.useState)(null),T=(0,i.Z)(S,2),L=T[0],I=T[1],O="".concat(r,"-more-popup"),A="".concat(t,"-dropdown"),H=null!==L?"".concat(O,"-").concat(L):null,F=null==c?void 0:c.dropdownAriaLabel,_=p.createElement(D.ZP,{onClick:function(e){var n=e.key,t=e.domEvent;E(n,t),N(!1)},prefixCls:"".concat(A,"-menu"),id:O,tabIndex:-1,role:"listbox","aria-activedescendant":H,selectedKeys:[L],"aria-label":void 0!==F?F:"expanded dropdown"},a.map((function(e){var n=e.closable,t=e.disabled,o=e.closeIcon,a=e.key,i=e.label,c=K(n,o,m,t);return p.createElement(D.sN,{key:a,id:"".concat(O,"-").concat(a),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(a),disabled:t},p.createElement("span",null,i),c&&p.createElement("button",{type:"button","aria-label":x||"remove",tabIndex:0,className:"".concat(A,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,n){e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:n,event:e})}(e,a)}},o||m.removeIcon||"×"))})));function W(e){for(var n=a.filter((function(e){return!e.disabled})),t=n.findIndex((function(e){return e.key===L}))||0,r=n.length,o=0;on?"left":"right"})})),ne=(0,i.Z)(ee,2),te=ne[0],re=ne[1],oe=b(0,(function(e,n){!J&&W&&W({direction:e>n?"top":"bottom"})})),ae=(0,i.Z)(oe,2),ie=ae[0],ce=ae[1],le=(0,p.useState)([0,0]),ue=(0,i.Z)(le,2),se=ue[0],de=ue[1],fe=(0,p.useState)([0,0]),pe=(0,i.Z)(fe,2),ve=pe[0],he=pe[1],me=(0,p.useState)([0,0]),ye=(0,i.Z)(me,2),ge=ye[0],xe=ye[1],Ee=(0,p.useState)([0,0]),be=(0,i.Z)(Ee,2),Ce=be[0],Ze=be[1],ke=function(e){var n=(0,p.useRef)([]),t=(0,p.useState)({}),r=(0,i.Z)(t,2)[1],o=(0,p.useRef)("function"==typeof e?e():e),a=k((function(){var e=o.current;n.current.forEach((function(n){e=n(e)})),n.current=[],o.current=e,r({})}));return[o.current,function(e){n.current.push(e),a()}]}(new Map),we=(0,i.Z)(ke,2),Ne=we[0],Se=we[1],Ke=function(e,n,t){return(0,p.useMemo)((function(){for(var t,r=new Map,o=n.get(null===(t=e[0])||void 0===t?void 0:t.key)||E,i=o.left+o.width,c=0;cAe?Ae:e}J&&Z?(Oe=0,Ae=Math.max(0,Te-Le)):(Oe=Math.min(0,Le-Te),Ae=0);var Fe=(0,p.useRef)(null),_e=(0,p.useState)(),We=(0,i.Z)(_e,2),ze=We[0],Ue=We[1];function Be(){Ue(Date.now())}function Ve(){Fe.current&&clearTimeout(Fe.current)}!function(e,n){var t=(0,p.useState)(),r=(0,i.Z)(t,2),o=r[0],a=r[1],c=(0,p.useState)(0),l=(0,i.Z)(c,2),u=l[0],s=l[1],d=(0,p.useState)(0),f=(0,i.Z)(d,2),v=f[0],h=f[1],m=(0,p.useState)(),y=(0,i.Z)(m,2),g=y[0],x=y[1],E=(0,p.useRef)(),b=(0,p.useRef)(),Z=(0,p.useRef)(null);Z.current={onTouchStart:function(e){var n=e.touches[0],t=n.screenX,r=n.screenY;a({x:t,y:r}),window.clearInterval(E.current)},onTouchMove:function(e){if(o){e.preventDefault();var t=e.touches[0],r=t.screenX,i=t.screenY;a({x:r,y:i});var c=r-o.x,l=i-o.y;n(c,l);var d=Date.now();s(d),h(d-u),x({x:c,y:l})}},onTouchEnd:function(){if(o&&(a(null),x(null),g)){var e=g.x/v,t=g.y/v,r=Math.abs(e),i=Math.abs(t);if(Math.max(r,i)<.1)return;var c=e,l=t;E.current=window.setInterval((function(){Math.abs(c)<.01&&Math.abs(l)<.01?window.clearInterval(E.current):n(20*(c*=C),20*(l*=C))}),20)}},onWheel:function(e){var t=e.deltaX,r=e.deltaY,o=0,a=Math.abs(t),i=Math.abs(r);a===i?o="x"===b.current?t:r:a>i?(o=t,b.current="x"):(o=r,b.current="y"),n(-o,-o)&&e.preventDefault()}},p.useEffect((function(){function n(e){Z.current.onTouchMove(e)}function t(e){Z.current.onTouchEnd(e)}return document.addEventListener("touchmove",n,{passive:!1}),document.addEventListener("touchend",t,{passive:!1}),e.current.addEventListener("touchstart",(function(e){Z.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){Z.current.onWheel(e)})),function(){document.removeEventListener("touchmove",n),document.removeEventListener("touchend",t)}}),[])}(X,(function(e,n){function t(e,n){e((function(e){return He(e+n)}))}return!!Me&&(J?t(re,e):t(ce,n),Ve(),Be(),!0)})),(0,p.useEffect)((function(){return Ve(),ze&&(Fe.current=setTimeout((function(){Ue(0)}),100)),Ve}),[ze]);var je=function(e,n,t,r,o,a,i){var c,l,u,s=i.tabs,d=i.tabPosition,f=i.rtl;return["top","bottom"].includes(d)?(c="width",l=f?"right":"left",u=Math.abs(t)):(c="height",l="top",u=-t),(0,p.useMemo)((function(){if(!s.length)return[0,0];for(var t=s.length,r=t,o=0;ou+n){r=o-1;break}}for(var i=0,d=t-1;d>=0;d-=1)if((e.get(s[d].key)||w)[l]=r?[0,0]:[i,r]}),[e,n,r,o,a,u,d,s.map((function(e){return e.key})).join("_"),f])}(Ke,Le,J?te:ie,Te,Pe,De,(0,a.Z)((0,a.Z)({},e),{},{tabs:V})),qe=(0,i.Z)(je,2),Ge=qe[0],Xe=qe[1],Ye=(0,y.Z)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,n=Ke.get(e)||{width:0,height:0,left:0,right:0,top:0};if(J){var t=te;Z?n.rightte+Le&&(t=n.right+n.width-Le):n.left<-te?t=-n.left:n.left+n.width>-te+Le&&(t=-(n.left+n.width-Le)),ce(0),re(He(t))}else{var r=ie;n.top<-ie?r=-n.top:n.top+n.height>-ie+Le&&(r=-(n.top+n.height-Le)),re(0),ce(He(r))}})),Qe={};"top"===M||"bottom"===M?Qe[Z?"marginRight":"marginLeft"]=L:Qe.marginTop=L;var $e=V.map((function(e,n){var t=e.key;return p.createElement(O,{id:u,prefixCls:B,key:t,tab:e,style:0===n?void 0:Qe,closable:e.closable,editable:P,active:t===f,renderWrapper:F,removeAriaLabel:null==D?void 0:D.removeAriaLabel,onClick:function(e){_(t,e)},onFocus:function(){Ye(t),Be(),X.current&&(Z||(X.current.scrollLeft=0),X.current.scrollTop=0)}})})),Je=function(){return Se((function(){var e,n=new Map,t=null===(e=Y.current)||void 0===e?void 0:e.getBoundingClientRect();return V.forEach((function(e){var r,o=e.key,a=null===(r=Y.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(S(o),'"]'));if(a){var c=function(e,n){var t=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,a=e.offsetLeft,i=e.getBoundingClientRect(),c=i.width,l=i.height,u=i.x,s=i.y;return Math.abs(c-t)<1?[c,l,u-n.x,s-n.y]:[t,r,a,o]}(a,t),l=(0,i.Z)(c,4),u=l[0],s=l[1],d=l[2],f=l[3];n.set(o,{width:u,height:s,left:d,top:f})}})),n}))};(0,p.useEffect)((function(){Je()}),[V.map((function(e){return e.key})).join("_")]);var en=k((function(){var e=A(j),n=A(q),t=A(G);de([e[0]-n[0]-t[0],e[1]-n[1]-t[1]]);var r=A($);xe(r);var o=A(Q);Ze(o);var a=A(Y);he([a[0]-r[0],a[1]-r[1]]),Je()})),nn=V.slice(0,Ge),tn=V.slice(Xe+1),rn=[].concat((0,h.Z)(nn),(0,h.Z)(tn)),on=Ke.get(f),an=function(e){var n=e.activeTabOffset,t=e.horizontal,r=e.rtl,o=e.indicatorSize,a=(0,p.useState)(),c=(0,i.Z)(a,2),l=c[0],u=c[1],s=(0,p.useRef)(),d=function(e){return"function"==typeof o?o(e):"number"==typeof o?o:e};function f(){x.Z.cancel(s.current)}return(0,p.useEffect)((function(){var e={};return n&&(t?(r?(e.right=n.right+n.width/2,e.transform="translateX(50%)"):(e.left=n.left+n.width/2,e.transform="translateX(-50%)"),e.width=d(n.width)):(e.top=n.top+n.height/2,e.transform="translateY(-50%)",e.height=d(n.height))),f(),s.current=(0,x.Z)((function(){u(e)})),f}),[n,t,r,o]),{style:l}}({activeTabOffset:on,horizontal:J,rtl:Z,indicatorSize:z}).style;(0,p.useEffect)((function(){Ye()}),[f,Oe,Ae,N(on),N(Ke),J]),(0,p.useEffect)((function(){en()}),[Z]);var cn,ln,un,sn,dn=!!rn.length,fn="".concat(B,"-nav-wrap");return J?Z?(ln=te>0,cn=te!==Ae):(cn=te<0,ln=te!==Oe):(un=ie<0,sn=ie!==Oe),p.createElement(m.Z,{onResize:en},p.createElement("div",{ref:(0,g.x1)(n,j),role:"tablist",className:s()("".concat(B,"-nav"),c),style:l,onKeyDown:function(){Be()}},p.createElement(T,{ref:q,position:"left",extra:K,prefixCls:B}),p.createElement(m.Z,{onResize:en},p.createElement("div",{className:s()(fn,(t={},(0,o.Z)(t,"".concat(fn,"-ping-left"),cn),(0,o.Z)(t,"".concat(fn,"-ping-right"),ln),(0,o.Z)(t,"".concat(fn,"-ping-top"),un),(0,o.Z)(t,"".concat(fn,"-ping-bottom"),sn),t)),ref:X},p.createElement(m.Z,{onResize:en},p.createElement("div",{ref:Y,className:"".concat(B,"-nav-list"),style:{transform:"translate(".concat(te,"px, ").concat(ie,"px)"),transition:ze?"none":void 0}},$e,p.createElement(R,{ref:$,prefixCls:B,locale:D,editable:P,style:(0,a.Z)((0,a.Z)({},0===$e.length?void 0:Qe),{},{visibility:dn?"hidden":null})}),p.createElement("div",{className:s()("".concat(B,"-ink-bar"),(0,o.Z)({},"".concat(B,"-ink-bar-animated"),d.inkBar)),style:an}))))),p.createElement(I,(0,r.Z)({},e,{removeAriaLabel:null==D?void 0:D.removeAriaLabel,ref:Q,prefixCls:B,tabs:rn,className:!dn&&Ie,tabMoving:!!ze})),p.createElement(T,{ref:G,position:"right",extra:K,prefixCls:B})))})),_=F,W=p.forwardRef((function(e,n){var t=e.prefixCls,r=e.className,o=e.style,a=e.id,i=e.active,c=e.tabKey,l=e.children;return p.createElement("div",{id:a&&"".concat(a,"-panel-").concat(c),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(c),"aria-hidden":!i,style:o,className:s()(t,i&&"".concat(t,"-active"),r),ref:n},l)})),z=["renderTabBar"],U=["label","key"],B=function(e){var n=e.renderTabBar,t=(0,l.Z)(e,z),o=p.useContext(v).tabs;return n?n((0,a.Z)((0,a.Z)({},t),{},{panes:o.map((function(e){var n=e.label,t=e.key,o=(0,l.Z)(e,U);return p.createElement(W,(0,r.Z)({tab:n,key:t,tabKey:t},o))}))}),_):p.createElement(_,t)},V=t(5461),j=["key","forceRender","style","className","destroyInactiveTabPane"],q=function(e){var n=e.id,t=e.activeKey,i=e.animated,c=e.tabPosition,u=e.destroyInactiveTabPane,d=p.useContext(v),f=d.prefixCls,h=d.tabs,m=i.tabPane,y="".concat(f,"-tabpane");return p.createElement("div",{className:s()("".concat(f,"-content-holder"))},p.createElement("div",{className:s()("".concat(f,"-content"),"".concat(f,"-content-").concat(c),(0,o.Z)({},"".concat(f,"-content-animated"),m))},h.map((function(e){var o=e.key,c=e.forceRender,d=e.style,f=e.className,v=e.destroyInactiveTabPane,h=(0,l.Z)(e,j),g=o===t;return p.createElement(V.ZP,(0,r.Z)({key:o,visible:g,forceRender:c,removeOnLeave:!(!u&&!v),leavedClassName:"".concat(y,"-hidden")},i.tabPaneMotion),(function(e,t){var i=e.style,c=e.className;return p.createElement(W,(0,r.Z)({},h,{prefixCls:y,id:n,tabKey:o,animated:m,active:g,style:(0,a.Z)((0,a.Z)({},d),i),className:s()(f,c),ref:t}))}))}))))},G=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],X=0,Y=p.forwardRef((function(e,n){var t,u=e.id,h=e.prefixCls,m=void 0===h?"rc-tabs":h,y=e.className,g=e.items,x=e.direction,E=e.activeKey,b=e.defaultActiveKey,C=e.editable,Z=e.animated,k=e.tabPosition,w=void 0===k?"top":k,N=e.tabBarGutter,S=e.tabBarStyle,K=e.tabBarExtraContent,R=e.locale,T=e.moreIcon,P=e.moreTransitionName,D=e.destroyInactiveTabPane,M=e.renderTabBar,L=e.onChange,I=e.onTabClick,O=e.onTabScroll,A=e.getPopupContainer,H=e.popupClassName,F=e.indicatorSize,_=(0,l.Z)(e,G),W=p.useMemo((function(){return(g||[]).filter((function(e){return e&&"object"===(0,c.Z)(e)&&"key"in e}))}),[g]),z="rtl"===x,U=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!1}:(0,a.Z)({inkBar:!0},"object"===(0,c.Z)(n)?n:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(Z),V=(0,p.useState)(!1),j=(0,i.Z)(V,2),Y=j[0],Q=j[1];(0,p.useEffect)((function(){Q((0,f.Z)())}),[]);var $=(0,d.Z)((function(){var e;return null===(e=W[0])||void 0===e?void 0:e.key}),{value:E,defaultValue:b}),J=(0,i.Z)($,2),ee=J[0],ne=J[1],te=(0,p.useState)((function(){return W.findIndex((function(e){return e.key===ee}))})),re=(0,i.Z)(te,2),oe=re[0],ae=re[1];(0,p.useEffect)((function(){var e,n=W.findIndex((function(e){return e.key===ee}));-1===n&&(n=Math.max(0,Math.min(oe,W.length-1)),ne(null===(e=W[n])||void 0===e?void 0:e.key)),ae(n)}),[W.map((function(e){return e.key})).join("_"),ee,oe]);var ie=(0,d.Z)(null,{value:u}),ce=(0,i.Z)(ie,2),le=ce[0],ue=ce[1];(0,p.useEffect)((function(){u||(ue("rc-tabs-".concat(X)),X+=1)}),[]);var se={id:le,activeKey:ee,animated:U,tabPosition:w,rtl:z,mobile:Y},de=(0,a.Z)((0,a.Z)({},se),{},{editable:C,locale:R,moreIcon:T,moreTransitionName:P,tabBarGutter:N,onTabClick:function(e,n){null==I||I(e,n);var t=e!==ee;ne(e),t&&(null==L||L(e))},onTabScroll:O,extra:K,style:S,panes:null,getPopupContainer:A,popupClassName:H,indicatorSize:F});return p.createElement(v.Provider,{value:{tabs:W,prefixCls:m}},p.createElement("div",(0,r.Z)({ref:n,id:u,className:s()(m,"".concat(m,"-").concat(w),(t={},(0,o.Z)(t,"".concat(m,"-mobile"),Y),(0,o.Z)(t,"".concat(m,"-editable"),C),(0,o.Z)(t,"".concat(m,"-rtl"),z),t),y)},_),p.createElement(B,(0,r.Z)({},de,{renderTabBar:M})),p.createElement(q,(0,r.Z)({destroyInactiveTabPane:D},se,{animated:U}))))})),Q=Y},86165:function(e,n,t){t.d(n,{Z:function(){return N}});var r,o=t(87462),a=t(1413),i=t(4942),c=t(93433),l=t(29439),u=t(45987),s=t(94184),d=t.n(s),f=t(35612),p=t(82234),v=t(87887),h=t(21770),m=t(67294),y=t(71002),g=t(48717),x=t(8410),E=t(75164),b=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],C={};var Z=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],k=m.forwardRef((function(e,n){var t=e,c=t.prefixCls,s=(t.onPressEnter,t.defaultValue),f=t.value,p=t.autoSize,v=t.onResize,k=t.className,w=t.style,N=t.disabled,S=t.onChange,K=(t.onInternalAutoSize,(0,u.Z)(t,Z)),R=(0,h.Z)(s,{value:f,postState:function(e){return null!=e?e:""}}),T=(0,l.Z)(R,2),P=T[0],D=T[1],M=m.useRef();m.useImperativeHandle(n,(function(){return{textArea:M.current}}));var L=m.useMemo((function(){return p&&"object"===(0,y.Z)(p)?[p.minRows,p.maxRows]:[]}),[p]),I=(0,l.Z)(L,2),O=I[0],A=I[1],H=!!p,F=m.useState(2),_=(0,l.Z)(F,2),W=_[0],z=_[1],U=m.useState(),B=(0,l.Z)(U,2),V=B[0],j=B[1],q=function(){z(0)};(0,x.Z)((function(){H&&q()}),[f,O,A,H]),(0,x.Z)((function(){if(0===W)z(1);else if(1===W){var e=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),e.getAttribute("wrap")?r.setAttribute("wrap",e.getAttribute("wrap")):r.removeAttribute("wrap");var a=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(n&&C[t])return C[t];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),c={sizingStyle:b.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),paddingSize:a,borderSize:i,boxSizing:o};return n&&t&&(C[t]=c),c}(e,n),i=a.paddingSize,c=a.borderSize,l=a.boxSizing,u=a.sizingStyle;r.setAttribute("style","".concat(u,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),r.value=e.value||e.placeholder||"";var s,d=void 0,f=void 0,p=r.scrollHeight;if("border-box"===l?p+=c:"content-box"===l&&(p-=i),null!==t||null!==o){r.value=" ";var v=r.scrollHeight-i;null!==t&&(d=v*t,"border-box"===l&&(d=d+i+c),p=Math.max(d,p)),null!==o&&(f=v*o,"border-box"===l&&(f=f+i+c),s=p>f?"":"hidden",p=Math.min(f,p))}var h={height:p,overflowY:s,resize:"none"};return d&&(h.minHeight=d),f&&(h.maxHeight=f),h}(M.current,!1,O,A);z(2),j(e)}else!function(){try{if(document.activeElement===M.current){var e=M.current,n=e.selectionStart,t=e.selectionEnd,r=e.scrollTop;M.current.setSelectionRange(n,t),M.current.scrollTop=r}}catch(e){}}()}),[W]);var G=m.useRef(),X=function(){E.Z.cancel(G.current)};m.useEffect((function(){return X}),[]);var Y=H?V:null,Q=(0,a.Z)((0,a.Z)({},w),Y);return 0!==W&&1!==W||(Q.overflowY="hidden",Q.overflowX="hidden"),m.createElement(g.Z,{onResize:function(e){2===W&&(null==v||v(e),p&&(X(),G.current=(0,E.Z)((function(){q()}))))},disabled:!(p||v)},m.createElement("textarea",(0,o.Z)({},K,{ref:M,style:Q,className:d()(c,k,(0,i.Z)({},"".concat(c,"-disabled"),N)),disabled:N,value:P,onChange:function(e){D(e.target.value),null==S||S(e)}})))})),w=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],N=m.forwardRef((function(e,n){var t,r,s=e.defaultValue,y=e.value,g=e.onFocus,x=e.onBlur,E=e.onChange,b=e.allowClear,C=e.maxLength,Z=e.onCompositionStart,N=e.onCompositionEnd,S=e.suffix,K=e.prefixCls,R=void 0===K?"rc-textarea":K,T=e.classes,P=e.showCount,D=e.count,M=e.className,L=e.style,I=e.disabled,O=e.hidden,A=e.classNames,H=e.styles,F=e.onResize,_=(0,u.Z)(e,w),W=(0,h.Z)(s,{value:y,defaultValue:s}),z=(0,l.Z)(W,2),U=z[0],B=z[1],V=null==U?"":String(U),j=m.useState(!1),q=(0,l.Z)(j,2),G=q[0],X=q[1],Y=m.useRef(!1),Q=m.useState(null),$=(0,l.Z)(Q,2),J=$[0],ee=$[1],ne=(0,m.useRef)(null),te=function(){var e;return null===(e=ne.current)||void 0===e?void 0:e.textArea},re=function(){te().focus()};(0,m.useImperativeHandle)(n,(function(){return{resizableTextArea:ne.current,focus:re,blur:function(){te().blur()}}})),(0,m.useEffect)((function(){X((function(e){return!I&&e}))}),[I]);var oe=m.useState(null),ae=(0,l.Z)(oe,2),ie=ae[0],ce=ae[1];m.useEffect((function(){var e;ie&&(e=te()).setSelectionRange.apply(e,(0,c.Z)(ie))}),[ie]);var le,ue=(0,p.Z)(D,P),se=null!==(t=ue.max)&&void 0!==t?t:C,de=Number(se)>0,fe=ue.strategy(V),pe=!!se&&fe>se,ve=function(e,n){var t=n;!Y.current&&ue.exceedFormatter&&ue.max&&ue.strategy(n)>ue.max&&n!==(t=ue.exceedFormatter(n,{max:ue.max}))&&ce([te().selectionStart||0,te().selectionEnd||0]),B(t),(0,v.rJ)(e.currentTarget,e,E,t)},he=S;ue.show&&(le=ue.showFormatter?ue.showFormatter({value:V,count:fe,maxLength:se}):"".concat(fe).concat(de?" / ".concat(se):""),he=m.createElement(m.Fragment,null,he,m.createElement("span",{className:d()("".concat(R,"-data-count"),null==A?void 0:A.count),style:null==H?void 0:H.count},le)));var me=!_.autoSize&&!P&&!b;return m.createElement(f.Q,{value:V,allowClear:b,handleReset:function(e){B(""),re(),(0,v.rJ)(te(),e,E)},suffix:he,prefixCls:R,classes:{affixWrapper:d()(null==T?void 0:T.affixWrapper,(r={},(0,i.Z)(r,"".concat(R,"-show-count"),P),(0,i.Z)(r,"".concat(R,"-textarea-allow-clear"),b),r))},disabled:I,focused:G,className:d()(M,pe&&"".concat(R,"-out-of-range")),style:(0,a.Z)((0,a.Z)({},L),J&&!me?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof le?le:void 0}},hidden:O,inputElement:m.createElement(k,(0,o.Z)({},_,{maxLength:C,onKeyDown:function(e){var n=_.onPressEnter,t=_.onKeyDown;"Enter"===e.key&&n&&n(e),null==t||t(e)},onChange:function(e){ve(e,e.target.value)},onFocus:function(e){X(!0),null==g||g(e)},onBlur:function(e){X(!1),null==x||x(e)},onCompositionStart:function(e){Y.current=!0,null==Z||Z(e)},onCompositionEnd:function(e){Y.current=!1,ve(e,e.currentTarget.value),null==N||N(e)},className:d()(null==A?void 0:A.textarea),style:(0,a.Z)((0,a.Z)({},null==H?void 0:H.textarea),{},{resize:null==L?void 0:L.resize}),disabled:I,prefixCls:R,onResize:function(e){var n;null==F||F(e),null!==(n=te())&&void 0!==n&&n.style.height&&ee(!0)},ref:ne}))})}))},64178:function(e,n,t){t.d(n,{G:function(){return i},Z:function(){return y}});var r=t(94184),o=t.n(r),a=t(67294);function i(e){var n=e.children,t=e.prefixCls,r=e.id,i=e.overlayInnerStyle,c=e.className,l=e.style;return a.createElement("div",{className:o()("".concat(t,"-content"),c),style:l},a.createElement("div",{className:"".concat(t,"-inner"),id:r,role:"tooltip",style:i},"function"==typeof n?n():n))}var c=t(87462),l=t(1413),u=t(45987),s=t(2507),d={shiftX:64,adjustY:1},f={adjustX:1,shiftY:!0},p=[0,0],v={left:{points:["cr","cl"],overflow:f,offset:[-4,0],targetOffset:p},right:{points:["cl","cr"],overflow:f,offset:[4,0],targetOffset:p},top:{points:["bc","tc"],overflow:d,offset:[0,-4],targetOffset:p},bottom:{points:["tc","bc"],overflow:d,offset:[0,4],targetOffset:p},topLeft:{points:["bl","tl"],overflow:d,offset:[0,-4],targetOffset:p},leftTop:{points:["tr","tl"],overflow:f,offset:[-4,0],targetOffset:p},topRight:{points:["br","tr"],overflow:d,offset:[0,-4],targetOffset:p},rightTop:{points:["tl","tr"],overflow:f,offset:[4,0],targetOffset:p},bottomRight:{points:["tr","br"],overflow:d,offset:[0,4],targetOffset:p},rightBottom:{points:["bl","br"],overflow:f,offset:[4,0],targetOffset:p},bottomLeft:{points:["tl","bl"],overflow:d,offset:[0,4],targetOffset:p},leftBottom:{points:["br","bl"],overflow:f,offset:[-4,0],targetOffset:p}},h=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],m=function(e,n){var t=e.overlayClassName,r=e.trigger,o=void 0===r?["hover"]:r,d=e.mouseEnterDelay,f=void 0===d?0:d,p=e.mouseLeaveDelay,m=void 0===p?.1:p,y=e.overlayStyle,g=e.prefixCls,x=void 0===g?"rc-tooltip":g,E=e.children,b=e.onVisibleChange,C=e.afterVisibleChange,Z=e.transitionName,k=e.animation,w=e.motion,N=e.placement,S=void 0===N?"right":N,K=e.align,R=void 0===K?{}:K,T=e.destroyTooltipOnHide,P=void 0!==T&&T,D=e.defaultVisible,M=e.getTooltipContainer,L=e.overlayInnerStyle,I=(e.arrowContent,e.overlay),O=e.id,A=e.showArrow,H=void 0===A||A,F=(0,u.Z)(e,h),_=(0,a.useRef)(null);(0,a.useImperativeHandle)(n,(function(){return _.current}));var W=(0,l.Z)({},F);return"visible"in e&&(W.popupVisible=e.visible),a.createElement(s.Z,(0,c.Z)({popupClassName:t,prefixCls:x,popup:function(){return a.createElement(i,{key:"content",prefixCls:x,id:O,overlayInnerStyle:L},I)},action:o,builtinPlacements:v,popupPlacement:S,ref:_,popupAlign:R,getPopupContainer:M,onPopupVisibleChange:b,afterPopupVisibleChange:C,popupTransitionName:Z,popupAnimation:k,popupMotion:w,defaultPopupVisible:D,autoDestroy:P,mouseLeaveDelay:m,popupStyle:y,mouseEnterDelay:f,arrow:H},W),E)},y=(0,a.forwardRef)(m)},39877:function(e,n,t){t.d(n,{Qw:function(){return I},FJ:function(){return A},hT:function(){return O},OF:function(){return g},ZP:function(){return z}});var r=t(87462),o=t(93433),a=t(1413),i=t(29439),c=t(45987),l=t(71002),u=t(33212),s=t(88708),d=t(17341),f=t(21770),p=t(80334),v=t(67294),h=t(1089),m=t(4942),y=t(50344),g=function(){return null},x=["children","value"];function E(e){return(0,y.Z)(e).map((function(e){if(!v.isValidElement(e)||!e.type)return null;var n=e,t=n.key,r=n.props,o=r.children,i=r.value,l=(0,c.Z)(r,x),u=(0,a.Z)({key:t,value:i},l),s=E(o);return s.length&&(u.children=s),u})).filter((function(e){return e}))}function b(e){if(!e)return e;var n=(0,a.Z)({},e);return"props"in n||Object.defineProperty(n,"props",{get:function(){return(0,p.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),n}}),n}function C(e){var n=v.useRef();n.current=e;var t=v.useCallback((function(){return n.current.apply(n,arguments)}),[]);return t}function Z(e,n,t){return v.useMemo((function(){return e?t?function(e,n){var t=n.id,r=n.pId,o=n.rootPId,i={},c=[];return e.map((function(e){var n=(0,a.Z)({},e),r=n[t];return i[r]=n,n.key=n.key||r,n})).forEach((function(e){var n=e[r],t=i[n];t&&(t.children=t.children||[],t.children.push(e)),(n===o||!t&&null===o)&&c.push(e)})),c}(e,(0,a.Z)({id:"id",pId:"pId",rootPId:null},!0!==t?t:{})):e:E(n)}),[n,t,e])}var k=v.createContext(null),w=t(15105),N=t(56982),S=t(37837),K=v.createContext(null);function R(e){return!e||e.disabled||e.disableCheckbox||!1===e.checkable}function T(e){return null==e}var P={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},D=function(e,n){var t=(0,u.lk)(),a=t.prefixCls,c=t.multiple,l=t.searchValue,s=t.toggleOpen,d=t.open,f=t.notFoundContent,p=v.useContext(K),h=p.virtual,m=p.listHeight,y=p.listItemHeight,g=p.listItemScrollOffset,x=p.treeData,E=p.fieldNames,b=p.onSelect,C=p.dropdownMatchSelectWidth,Z=p.treeExpandAction,T=v.useContext(k),D=T.checkable,M=T.checkedKeys,L=T.halfCheckedKeys,I=T.treeExpandedKeys,O=T.treeDefaultExpandAll,A=T.treeDefaultExpandedKeys,H=T.onTreeExpand,F=T.treeIcon,_=T.showTreeIcon,W=T.switcherIcon,z=T.treeLine,U=T.treeNodeFilterProp,B=T.loadData,V=T.treeLoadedKeys,j=T.treeMotion,q=T.onTreeLoad,G=T.keyEntities,X=v.useRef(),Y=(0,N.Z)((function(){return x}),[d,x],(function(e,n){return n[0]&&e[1]!==n[1]})),Q=v.useState(null),$=(0,i.Z)(Q,2),J=$[0],ee=$[1],ne=G[J],te=v.useMemo((function(){return D?{checked:M,halfChecked:L}:null}),[D,M,L]);v.useEffect((function(){var e;d&&!c&&M.length&&(null===(e=X.current)||void 0===e||e.scrollTo({key:M[0]}),ee(M[0]))}),[d]);var re=String(l).toLowerCase(),oe=v.useState(A),ae=(0,i.Z)(oe,2),ie=ae[0],ce=ae[1],le=v.useState(null),ue=(0,i.Z)(le,2),se=ue[0],de=ue[1],fe=v.useMemo((function(){return I?(0,o.Z)(I):l?se:ie}),[ie,se,I,l]);v.useEffect((function(){l&&de(function(e,n){var t=[];return function e(r){r.forEach((function(r){var o=r[n.children];o&&(t.push(r[n.value]),e(o))}))}(e),t}(x,E))}),[l]);var pe=function(e){e.preventDefault()},ve=function(e,n){var t=n.node;D&&R(t)||(b(t.key,{selected:!M.includes(t.key)}),c||s(!1))};if(v.useImperativeHandle(n,(function(){var e;return{scrollTo:null===(e=X.current)||void 0===e?void 0:e.scrollTo,onKeyDown:function(e){var n;switch(e.which){case w.Z.UP:case w.Z.DOWN:case w.Z.LEFT:case w.Z.RIGHT:null===(n=X.current)||void 0===n||n.onKeyDown(e);break;case w.Z.ENTER:if(ne){var t=(null==ne?void 0:ne.node)||{},r=t.selectable,o=t.value;!1!==r&&ve(0,{node:{key:J},selected:!M.includes(o)})}break;case w.Z.ESC:s(!1)}},onKeyUp:function(){}}})),0===Y.length)return v.createElement("div",{role:"listbox",className:"".concat(a,"-empty"),onMouseDown:pe},f);var he={fieldNames:E};return V&&(he.loadedKeys=V),fe&&(he.expandedKeys=fe),v.createElement("div",{onMouseDown:pe},ne&&d&&v.createElement("span",{style:P,"aria-live":"assertive"},ne.node.value),v.createElement(S.Z,(0,r.Z)({ref:X,focusable:!1,prefixCls:"".concat(a,"-tree"),treeData:Y,height:m,itemHeight:y,itemScrollOffset:g,virtual:!1!==h&&!1!==C,multiple:c,icon:F,showIcon:_,switcherIcon:W,showLine:z,loadData:l?null:B,motion:j,activeKey:J,checkable:D,checkStrictly:!0,checkedKeys:te,selectedKeys:D?[]:M,defaultExpandAll:O},he,{onActiveChange:ee,onSelect:ve,onCheck:ve,onExpand:function(e){ce(e),de(e),H&&H(e)},onLoad:q,filterTreeNode:function(e){return!!re&&String(e[U]).toLowerCase().includes(re)},expandAction:Z})))},M=v.forwardRef(D);M.displayName="OptionList";var L=M,I="SHOW_ALL",O="SHOW_PARENT",A="SHOW_CHILD";function H(e,n,t,r){var o=new Set(e);return n===A?e.filter((function(e){var n=t[e];return!(n&&n.children&&n.children.some((function(e){var n=e.node;return o.has(n[r.value])}))&&n.children.every((function(e){var n=e.node;return R(n)||o.has(n[r.value])})))})):n===O?e.filter((function(e){var n=t[e],r=n?n.parent:null;return!(r&&!R(r.node)&&o.has(r.key))})):e}var F=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"],_=v.forwardRef((function(e,n){var t,y,x=e.id,E=e.prefixCls,w=void 0===E?"rc-tree-select":E,N=e.value,S=e.defaultValue,R=e.onChange,P=e.onSelect,D=e.onDeselect,M=e.searchValue,O=e.inputValue,_=e.onSearch,W=e.autoClearSearchValue,z=void 0===W||W,U=e.filterTreeNode,B=e.treeNodeFilterProp,V=void 0===B?"value":B,j=e.showCheckedStrategy,q=e.treeNodeLabelProp,G=e.multiple,X=e.treeCheckable,Y=e.treeCheckStrictly,Q=e.labelInValue,$=e.fieldNames,J=e.treeDataSimpleMode,ee=e.treeData,ne=e.children,te=e.loadData,re=e.treeLoadedKeys,oe=e.onTreeLoad,ae=e.treeDefaultExpandAll,ie=e.treeExpandedKeys,ce=e.treeDefaultExpandedKeys,le=e.onTreeExpand,ue=e.treeExpandAction,se=e.virtual,de=e.listHeight,fe=void 0===de?200:de,pe=e.listItemHeight,ve=void 0===pe?20:pe,he=e.listItemScrollOffset,me=void 0===he?0:he,ye=e.onDropdownVisibleChange,ge=e.dropdownMatchSelectWidth,xe=void 0===ge||ge,Ee=e.treeLine,be=e.treeIcon,Ce=e.showTreeIcon,Ze=e.switcherIcon,ke=e.treeMotion,we=(0,c.Z)(e,F),Ne=(0,s.ZP)(x),Se=X&&!Y,Ke=X||Y,Re=Y||Q,Te=Ke||G,Pe=(0,f.Z)(S,{value:N}),De=(0,i.Z)(Pe,2),Me=De[0],Le=De[1],Ie=v.useMemo((function(){return X?j||A:I}),[j,X]),Oe=v.useMemo((function(){return function(e){var n=e||{},t=n.label,r=n.value||"value";return{_title:t?[t]:["title","label"],value:r,key:r,children:n.children||"children"}}($)}),[JSON.stringify($)]),Ae=(0,f.Z)("",{value:void 0!==M?M:O,postState:function(e){return e||""}}),He=(0,i.Z)(Ae,2),Fe=He[0],_e=He[1],We=Z(ee,ne,J),ze=function(e,n){return v.useMemo((function(){return(0,h.I8)(e,{fieldNames:n,initWrapper:function(e){return(0,a.Z)((0,a.Z)({},e),{},{valueEntities:new Map})},processEntity:function(e,t){var r=e.node[n.value];t.valueEntities.set(r,e)}})}),[e,n])}(We,Oe),Ue=ze.keyEntities,Be=ze.valueEntities,Ve=v.useCallback((function(e){var n=[],t=[];return e.forEach((function(e){Be.has(e)?t.push(e):n.push(e)})),{missingRawValues:n,existRawValues:t}}),[Be]),je=function(e,n,t){var r=t.treeNodeFilterProp,o=t.filterTreeNode,i=t.fieldNames.children;return v.useMemo((function(){if(!n||!1===o)return e;var t;if("function"==typeof o)t=o;else{var c=n.toUpperCase();t=function(e,n){var t=n[r];return String(t).toUpperCase().includes(c)}}return function e(r){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.reduce((function(r,c){var l=c[i],u=o||t(n,b(c)),s=e(l||[],u);return(u||s.length)&&r.push((0,a.Z)((0,a.Z)({},c),{},(0,m.Z)({isLeaf:void 0},i,s))),r}),[])}(e)}),[e,n,i,r,o])}(We,Fe,{fieldNames:Oe,treeNodeFilterProp:V,filterTreeNode:U}),qe=v.useCallback((function(e){if(e){if(q)return e[q];for(var n=Oe._title,t=0;t1&&void 0!==arguments[1]?arguments[1]:"0",l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return r.map((function(r,u){var s="".concat(o,"-").concat(u),d=r[a.value],f=t.includes(d),p=e(r[a.children]||[],s,f),h=v.createElement(g,r,p.map((function(e){return e.node})));if(n===d&&(i=h),f){var m={pos:s,node:h,children:p};return l||c.push(m),m}return null})).filter((function(e){return e}))}(r),c.sort((function(e,n){var r=e.node.props.value,o=n.node.props.value;return t.indexOf(r)-t.indexOf(o)})))}Object.defineProperty(e,"triggerNode",{get:function(){return(0,p.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),l(),i}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return(0,p.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),l(),o?c:c.map((function(e){return e.node}))}})}(h,l,e,We,m,Oe),Ke?h.checked=u:h.selected=u;var y=Re?f:f.map((function(e){return e.value}));R(Te?y:y[0],Re?null:f.map((function(e){return e.label})),h)}})),dn=v.useCallback((function(e,n){var t,r=n.selected,a=n.source,i=Ue[e],c=null==i?void 0:i.node,l=null!==(t=null==c?void 0:c[Oe.value])&&void 0!==t?t:e;if(Te){var u=r?[].concat((0,o.Z)(nn),[l]):on.filter((function(e){return e!==l}));if(Se){var s,f=Ve(u),p=f.missingRawValues,v=f.existRawValues.map((function(e){return Be.get(e).key}));s=r?(0,d.S)(v,!0,Ue).checkedKeys:(0,d.S)(v,{checked:!1,halfCheckedKeys:an},Ue).checkedKeys,u=[].concat((0,o.Z)(p),(0,o.Z)(s.map((function(e){return Ue[e].node[Oe.value]}))))}sn(u,{selected:r,triggerValue:l},a||"option")}else sn([l],{selected:!0,triggerValue:l},"option");r||!Te?null==P||P(l,b(c)):null==D||D(l,b(c))}),[Ve,Be,Ue,Oe,Te,nn,sn,Se,P,D,on,an]),fn=v.useCallback((function(e){if(ye){var n={};Object.defineProperty(n,"documentClickClose",{get:function(){return(0,p.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),ye(e,n)}}),[ye]),pn=C((function(e,n){var t=e.map((function(e){return e.value}));"clear"!==n.type?n.values.length&&dn(n.values[0].value,{selected:!1,source:"selection"}):sn(t,{},"selection")})),vn=v.useMemo((function(){return{virtual:se,dropdownMatchSelectWidth:xe,listHeight:fe,listItemHeight:ve,listItemScrollOffset:me,treeData:je,fieldNames:Oe,onSelect:dn,treeExpandAction:ue}}),[se,xe,fe,ve,me,je,Oe,dn,ue]),hn=v.useMemo((function(){return{checkable:Ke,loadData:te,treeLoadedKeys:re,onTreeLoad:oe,checkedKeys:on,halfCheckedKeys:an,treeDefaultExpandAll:ae,treeExpandedKeys:ie,treeDefaultExpandedKeys:ce,onTreeExpand:le,treeIcon:be,treeMotion:ke,showTreeIcon:Ce,switcherIcon:Ze,treeLine:Ee,treeNodeFilterProp:V,keyEntities:Ue}}),[Ke,te,re,oe,on,an,ae,ie,ce,le,be,ke,Ce,Ze,Ee,V,Ue]);return v.createElement(K.Provider,{value:vn},v.createElement(k.Provider,{value:hn},v.createElement(u.Ac,(0,r.Z)({ref:n},we,{id:Ne,prefixCls:w,mode:Te?"multiple":void 0,displayValues:un,onDisplayValuesChange:pn,searchValue:Fe,onSearch:function(e){_e(e),null==_||_(e)},OptionList:L,emptyOptions:!We.length,onDropdownVisibleChange:fn,dropdownMatchSelectWidth:xe}))))})),W=_;W.TreeNode=g,W.SHOW_ALL=I,W.SHOW_PARENT=O,W.SHOW_CHILD=A;var z=W},4258:function(e,n,t){t.d(n,{Z:function(){return N}});var r=t(87462),o=t(4942),a=t(45987),i=t(1413),c=t(15671),l=t(43144),u=t(97326),s=t(60136),d=t(29388),f=t(94184),p=t.n(f),v=t(64217),h=t(67294),m=t(27822),y=function(e){for(var n=e.prefixCls,t=e.level,r=e.isStart,a=e.isEnd,i="".concat(n,"-indent-unit"),c=[],l=0;l0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=e.length,r=n.length;if(1!==Math.abs(t-r))return{add:!1,key:null};function o(e,n){var t=new Map;e.forEach((function(e){t.set(e,!0)}));var r=n.filter((function(e){return!t.has(e)}));return 1===r.length?r[0]:null}return t ").concat(n);return n}(K)),g.createElement("div",null,g.createElement("input",{style:M,disabled:!1===N||f,tabIndex:!1!==N?O:null,onKeyDown:A,onFocus:W,onBlur:z,value:"",onChange:L,"aria-label":"for screen reader"})),g.createElement("div",{className:"".concat(t,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},g.createElement("div",{className:"".concat(t,"-indent")},g.createElement("div",{ref:G,className:"".concat(t,"-indent-unit")}))),g.createElement(k.Z,(0,r.Z)({},j,{data:ye,itemKey:_,height:y,fullHeight:!1,virtual:w,itemHeight:x,prefixCls:"".concat(t,"-list"),ref:q,onVisibleChange:function(e,n){var t=new Set(e);n.filter((function(e){return!t.has(e)})).some((function(e){return _(e)===I}))&&me()}}),(function(e){var n=e.pos,t=(0,r.Z)({},((0,E.Z)(e.data),e.data)),o=e.title,a=e.key,i=e.isStart,c=e.isEnd,l=(0,S.km)(a,n);delete t.key,delete t.children;var u=(0,S.H8)(l,ge);return g.createElement(T,(0,r.Z)({},t,u,{title:o,active:!!K&&a===K.key,pos:n,data:e.data,isStart:i,isEnd:c,motion:m,motionNodes:a===I?ue:null,motionType:pe,onMotionStart:B,onMotionEnd:me,treeNodeRequiredProps:ge,onMouseMove:function(){U(null)}}))})))}));W.displayName="NodeList";var z=W,U=t(10225),B=t(17341),V=t(35381),j=function(e){(0,d.Z)(t,e);var n=(0,f.Z)(t);function t(){var e;(0,l.Z)(this,t);for(var r=arguments.length,o=new Array(r),a=0;a2&&void 0!==arguments[2]&&arguments[2],a=e.state,c=a.dragChildrenKeys,l=a.dropPosition,u=a.dropTargetKey,s=a.dropTargetPos;if(a.dropAllowed){var d=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==u){var f=(0,i.Z)((0,i.Z)({},(0,S.H8)(u,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===u,data:(0,V.Z)(e.state.keyEntities,u).node}),p=-1!==c.indexOf(u);(0,y.ZP)(!p,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var v=(0,U.yx)(s),h={event:n,node:(0,S.F)(f),dragNode:e.dragNode?(0,S.F)(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(c),dropToGap:0!==l,dropPosition:l+Number(v[v.length-1])};o||null==d||d(h),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(n,t){var r=e.state,o=r.expandedKeys,a=r.flattenNodes,c=t.expanded,l=t.key;if(!(t.isLeaf||n.shiftKey||n.metaKey||n.ctrlKey)){var u=a.filter((function(e){return e.key===l}))[0],s=(0,S.F)((0,i.Z)((0,i.Z)({},(0,S.H8)(l,e.getTreeNodeRequiredProps())),{},{data:u.data}));e.setExpandedKeys(c?(0,U._5)(o,l):(0,U.L0)(o,l)),e.onNodeExpand(n,s)}},e.onNodeClick=function(n,t){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(n,t),null==o||o(n,t)},e.onNodeDoubleClick=function(n,t){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(n,t),null==o||o(n,t)},e.onNodeSelect=function(n,t){var r=e.state.selectedKeys,o=e.state,a=o.keyEntities,i=o.fieldNames,c=e.props,l=c.onSelect,u=c.multiple,s=t.selected,d=t[i.key],f=!s,p=(r=f?u?(0,U.L0)(r,d):[d]:(0,U._5)(r,d)).map((function(e){var n=(0,V.Z)(a,e);return n?n.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),null==l||l(r,{event:"select",selected:f,node:t,selectedNodes:p,nativeEvent:n.nativeEvent})},e.onNodeCheck=function(n,t,r){var o,a=e.state,i=a.keyEntities,l=a.checkedKeys,u=a.halfCheckedKeys,s=e.props,d=s.checkStrictly,f=s.onCheck,p=t.key,v={event:"check",node:t,checked:r,nativeEvent:n.nativeEvent};if(d){var h=r?(0,U.L0)(l,p):(0,U._5)(l,p);o={checked:h,halfChecked:(0,U._5)(u,p)},v.checkedNodes=h.map((function(e){return(0,V.Z)(i,e)})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:h})}else{var m=(0,B.S)([].concat((0,c.Z)(l),[p]),!0,i),y=m.checkedKeys,g=m.halfCheckedKeys;if(!r){var x=new Set(y);x.delete(p);var E=(0,B.S)(Array.from(x),{checked:!1,halfCheckedKeys:g},i);y=E.checkedKeys,g=E.halfCheckedKeys}o=y,v.checkedNodes=[],v.checkedNodesPositions=[],v.halfCheckedKeys=g,y.forEach((function(e){var n=(0,V.Z)(i,e);if(n){var t=n.node,r=n.pos;v.checkedNodes.push(t),v.checkedNodesPositions.push({node:t,pos:r})}})),e.setUncontrolledState({checkedKeys:y},!1,{halfCheckedKeys:g})}null==f||f(o,v)},e.onNodeLoad=function(n){var t=n.key,r=new Promise((function(r,o){e.setState((function(a){var i=a.loadedKeys,c=void 0===i?[]:i,l=a.loadingKeys,u=void 0===l?[]:l,s=e.props,d=s.loadData,f=s.onLoad;return d&&-1===c.indexOf(t)&&-1===u.indexOf(t)?(d(n).then((function(){var o=e.state.loadedKeys,a=(0,U.L0)(o,t);null==f||f(a,{event:"load",node:n}),e.setUncontrolledState({loadedKeys:a}),e.setState((function(e){return{loadingKeys:(0,U._5)(e.loadingKeys,t)}})),r()})).catch((function(n){if(e.setState((function(e){return{loadingKeys:(0,U._5)(e.loadingKeys,t)}})),e.loadingRetryTimes[t]=(e.loadingRetryTimes[t]||0)+1,e.loadingRetryTimes[t]>=10){var a=e.state.loadedKeys;(0,y.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,U.L0)(a,t)}),r()}o(n)})),{loadingKeys:(0,U.L0)(u,t)}):null}))}));return r.catch((function(){})),r},e.onNodeMouseEnter=function(n,t){var r=e.props.onMouseEnter;null==r||r({event:n,node:t})},e.onNodeMouseLeave=function(n,t){var r=e.props.onMouseLeave;null==r||r({event:n,node:t})},e.onNodeContextMenu=function(n,t){var r=e.props.onRightClick;r&&(n.preventDefault(),r({event:n,node:t}))},e.onFocus=function(){var n=e.props.onFocus;e.setState({focused:!0});for(var t=arguments.length,r=new Array(t),o=0;o1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,a=!0,c={};Object.keys(n).forEach((function(t){t in e.props?a=!1:(o=!0,c[t]=n[t])})),!o||t&&!a||e.setState((0,i.Z)((0,i.Z)({},c),r))}},e.scrollTo=function(n){e.listRef.current.scrollTo(n)},e}return(0,u.Z)(t,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,n=e.activeKey,t=e.itemScrollOffset,r=void 0===t?0:t;void 0!==n&&n!==this.state.activeKey&&(this.setState({activeKey:n}),null!==n&&this.scrollTo({key:n,offset:r}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,n,t=this.state,i=t.focused,c=t.flattenNodes,l=t.keyEntities,u=t.draggingNodeKey,s=t.activeKey,d=t.dropLevelOffset,f=t.dropContainerKey,p=t.dropTargetKey,h=t.dropPosition,y=t.dragOverNodeKey,E=t.indent,b=this.props,C=b.prefixCls,Z=b.className,k=b.style,w=b.showLine,N=b.focusable,S=b.tabIndex,K=void 0===S?0:S,R=b.selectable,T=b.showIcon,P=b.icon,D=b.switcherIcon,M=b.draggable,L=b.checkable,I=b.checkStrictly,O=b.disabled,A=b.motion,H=b.loadData,F=b.filterTreeNode,_=b.height,W=b.itemHeight,U=b.virtual,B=b.titleRender,V=b.dropIndicatorRender,j=b.onContextMenu,q=b.onScroll,G=b.direction,X=b.rootClassName,Y=b.rootStyle,Q=(0,m.Z)(this.props,{aria:!0,data:!0});return M&&(n="object"===(0,a.Z)(M)?M:"function"==typeof M?{nodeDraggable:M}:{}),g.createElement(x.k.Provider,{value:{prefixCls:C,selectable:R,showIcon:T,icon:P,switcherIcon:D,draggable:n,draggingNodeKey:u,checkable:L,checkStrictly:I,disabled:O,keyEntities:l,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:p,dropPosition:h,dragOverNodeKey:y,indent:E,direction:G,dropIndicatorRender:V,loadData:H,filterTreeNode:F,titleRender:B,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},g.createElement("div",{role:"tree",className:v()(C,Z,X,(e={},(0,o.Z)(e,"".concat(C,"-show-line"),w),(0,o.Z)(e,"".concat(C,"-focused"),i),(0,o.Z)(e,"".concat(C,"-active-focused"),null!==s),e)),style:Y},g.createElement(z,(0,r.Z)({ref:this.listRef,prefixCls:C,style:k,data:c,disabled:O,selectable:R,checkable:!!L,motion:A,dragging:null!==u,height:_,itemHeight:W,virtual:U,focusable:N,focused:i,tabIndex:K,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:j,onScroll:q},this.getTreeNodeRequiredProps(),Q))))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t,r=n.prevProps,a={prevProps:e};function c(n){return!r&&n in e||r&&r[n]!==e[n]}var l=n.fieldNames;if(c("fieldNames")&&(l=(0,S.w$)(e.fieldNames),a.fieldNames=l),c("treeData")?t=e.treeData:c("children")&&((0,y.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),t=(0,S.zn)(e.children)),t){a.treeData=t;var u=(0,S.I8)(t,{fieldNames:l});a.keyEntities=(0,i.Z)((0,o.Z)({},I,A),u.keyEntities)}var s,d=a.keyEntities||n.keyEntities;if(c("expandedKeys")||r&&c("autoExpandParent"))a.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?(0,U.r7)(e.expandedKeys,d):e.expandedKeys;else if(!r&&e.defaultExpandAll){var f=(0,i.Z)({},d);delete f[I],a.expandedKeys=Object.keys(f).map((function(e){return f[e].key}))}else!r&&e.defaultExpandedKeys&&(a.expandedKeys=e.autoExpandParent||e.defaultExpandParent?(0,U.r7)(e.defaultExpandedKeys,d):e.defaultExpandedKeys);if(a.expandedKeys||delete a.expandedKeys,t||a.expandedKeys){var p=(0,S.oH)(t||n.treeData,a.expandedKeys||n.expandedKeys,l);a.flattenNodes=p}if(e.selectable&&(c("selectedKeys")?a.selectedKeys=(0,U.BT)(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(a.selectedKeys=(0,U.BT)(e.defaultSelectedKeys,e))),e.checkable&&(c("checkedKeys")?s=(0,U.E6)(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?s=(0,U.E6)(e.defaultCheckedKeys)||{}:t&&(s=(0,U.E6)(e.checkedKeys)||{checkedKeys:n.checkedKeys,halfCheckedKeys:n.halfCheckedKeys}),s)){var v=s,h=v.checkedKeys,m=void 0===h?[]:h,g=v.halfCheckedKeys,x=void 0===g?[]:g;if(!e.checkStrictly){var E=(0,B.S)(m,!0,d);m=E.checkedKeys,x=E.halfCheckedKeys}a.checkedKeys=m,a.halfCheckedKeys=x}return c("loadedKeys")&&(a.loadedKeys=e.loadedKeys),a}}]),t}(g.Component);j.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:function(e){var n=e.dropPosition,t=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:o.top=0,o.left=-t*r;break;case 1:o.bottom=0,o.left=-t*r;break;case 0:o.bottom=0,o.left=r}return g.createElement("div",{style:o})},allowDrop:function(){return!0},expandAction:!1},j.TreeNode=N.Z;var q=j},10225:function(e,n,t){t.d(n,{BT:function(){return p},E6:function(){return v},L0:function(){return l},OM:function(){return f},_5:function(){return c},r7:function(){return h},wA:function(){return s},yx:function(){return u}});var r=t(93433),o=t(71002),a=t(80334),i=(t(67294),t(4258),t(35381));function c(e,n){if(!e)return[];var t=e.slice(),r=t.indexOf(n);return r>=0&&t.splice(r,1),t}function l(e,n){var t=(e||[]).slice();return-1===t.indexOf(n)&&t.push(n),t}function u(e){return e.split("-")}function s(e,n){var t=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(n){var r=n.key,o=n.children;t.push(r),e(o)}))}((0,i.Z)(n,e).children),t}function d(e){if(e.parent){var n=u(e.pos);return Number(n[n.length-1])===e.parent.children.length-1}return!1}function f(e,n,t,r,o,a,c,l,s,f){var p,v=e.clientX,h=e.clientY,m=e.target.getBoundingClientRect(),y=m.top,g=m.height,x=(("rtl"===f?-1:1)*(((null==o?void 0:o.x)||0)-v)-12)/r,E=(0,i.Z)(l,t.props.eventKey);if(h-1.5?a({dragNode:T,dropNode:P,dropPosition:1})?N=1:D=!1:a({dragNode:T,dropNode:P,dropPosition:0})?N=0:a({dragNode:T,dropNode:P,dropPosition:1})?N=1:D=!1:a({dragNode:T,dropNode:P,dropPosition:1})?N=1:D=!1,{dropPosition:N,dropLevelOffset:S,dropTargetKey:E.key,dropTargetPos:E.pos,dragOverNodeKey:w,dropContainerKey:0===N?null:(null===(p=E.parent)||void 0===p?void 0:p.key)||null,dropAllowed:D}}function p(e,n){if(e)return n.multiple?e.slice():e.length?[e[0]]:e}function v(e){if(!e)return null;var n;if(Array.isArray(e))n={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,o.Z)(e))return(0,a.ZP)(!1,"`checkedKeys` is not an array or an object"),null;n={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return n}function h(e,n){var t=new Set;function o(e){if(!t.has(e)){var r=(0,i.Z)(n,e);if(r){t.add(e);var a=r.parent;r.node.disabled||a&&o(a.key)}}}return(e||[]).forEach((function(e){o(e)})),(0,r.Z)(t)}t(1089)},17341:function(e,n,t){t.d(n,{S:function(){return c}});var r=t(80334),o=t(35381);function a(e,n){var t=new Set;return e.forEach((function(e){n.has(e)||t.add(e)})),t}function i(e){var n=e||{},t=n.disabled,r=n.disableCheckbox,o=n.checkable;return!(!t&&!r)||!1===o}function c(e,n,t,c){var l,u=[];l=c||i;var s,d=new Set(e.filter((function(e){var n=!!(0,o.Z)(t,e);return n||u.push(e),n}))),f=new Map,p=0;return Object.keys(t).forEach((function(e){var n=t[e],r=n.level,o=f.get(r);o||(o=new Set,f.set(r,o)),o.add(n),p=Math.max(p,r)})),(0,r.ZP)(!u.length,"Tree missing follow keys: ".concat(u.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),s=!0===n?function(e,n,t,r){for(var o=new Set(e),i=new Set,c=0;c<=t;c+=1)(n.get(c)||new Set).forEach((function(e){var n=e.key,t=e.node,a=e.children,i=void 0===a?[]:a;o.has(n)&&!r(t)&&i.filter((function(e){return!r(e.node)})).forEach((function(e){o.add(e.key)}))}));for(var l=new Set,u=t;u>=0;u-=1)(n.get(u)||new Set).forEach((function(e){var n=e.parent,t=e.node;if(!r(t)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(n.key);else{var a=!0,c=!1;(n.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var n=e.key,t=o.has(n);a&&!t&&(a=!1),c||!t&&!i.has(n)||(c=!0)})),a&&o.add(n.key),c&&i.add(n.key),l.add(n.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(a(i,o))}}(d,f,p,l):function(e,n,t,r,o){for(var i=new Set(e),c=new Set(n),l=0;l<=r;l+=1)(t.get(l)||new Set).forEach((function(e){var n=e.key,t=e.node,r=e.children,a=void 0===r?[]:r;i.has(n)||c.has(n)||o(t)||a.filter((function(e){return!o(e.node)})).forEach((function(e){i.delete(e.key)}))}));c=new Set;for(var u=new Set,s=r;s>=0;s-=1)(t.get(s)||new Set).forEach((function(e){var n=e.parent,t=e.node;if(!o(t)&&e.parent&&!u.has(e.parent.key))if(o(e.parent.node))u.add(n.key);else{var r=!0,a=!1;(n.children||[]).filter((function(e){return!o(e.node)})).forEach((function(e){var n=e.key,t=i.has(n);r&&!t&&(r=!1),a||!t&&!c.has(n)||(a=!0)})),r||i.delete(n.key),a&&c.add(n.key),u.add(n.key)}}));return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(a(c,i))}}(d,n.halfCheckedKeys,f,p,l),s}},35381:function(e,n,t){function r(e,n){return e[n]}t.d(n,{Z:function(){return r}})},1089:function(e,n,t){t.d(n,{F:function(){return x},H8:function(){return g},I8:function(){return y},km:function(){return p},oH:function(){return m},w$:function(){return v},zn:function(){return h}});var r=t(71002),o=t(93433),a=t(1413),i=t(45987),c=t(50344),l=t(98423),u=t(80334),s=t(35381),d=["children"];function f(e,n){return"".concat(e,"-").concat(n)}function p(e,n){return null!=e?e:n}function v(e){var n=e||{},t=n.title||"title";return{title:t,_title:n._title||[t],key:n.key||"key",children:n.children||"children"}}function h(e){return function e(n){return(0,c.Z)(n).map((function(n){if(!function(e){return e&&e.type&&e.type.isTreeNode}(n))return(0,u.ZP)(!n,"Tree/TreeNode can only accept TreeNode as children."),null;var t=n.key,r=n.props,o=r.children,c=(0,i.Z)(r,d),l=(0,a.Z)({key:t},c),s=e(o);return s.length&&(l.children=s),l})).filter((function(e){return e}))}(e)}function m(e,n,t){var r=v(t),i=r._title,c=r.key,u=r.children,s=new Set(!0===n?[]:n),d=[];return function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t.map((function(v,h){for(var m,y=f(r?r.pos:"0",h),g=p(v[c],y),x=0;x1&&void 0!==arguments[1]?arguments[1]:{},t=n.initWrapper,a=n.processEntity,i=n.onProcessFinished,c=n.externalGetKey,l=n.childrenPropName,u=n.fieldNames,s=c||(arguments.length>2?arguments[2]:void 0),d={},h={},m={posEntities:d,keyEntities:h};return t&&(m=t(m)||m),function(e,n,t){var i,c=("object"===(0,r.Z)(t)?t:{externalGetKey:t})||{},l=c.childrenPropName,u=c.externalGetKey,s=v(c.fieldNames),y=s.key,g=s.children,x=l||g;u?"string"==typeof u?i=function(e){return e[u]}:"function"==typeof u&&(i=function(e){return u(e)}):i=function(e,n){return p(e[y],n)},function n(t,r,c,l){var u=t?t[x]:e,s=t?f(c.pos,r):"0",v=t?[].concat((0,o.Z)(l),[t]):[];if(t){var y=i(t,s);!function(e){var n=e.node,t=e.index,r=e.pos,o=e.key,i=e.parentPos,c=e.level,l={node:n,nodes:e.nodes,index:t,key:o,pos:r,level:c},u=p(o,r);d[r]=l,h[u]=l,l.parent=d[i],l.parent&&(l.parent.children=l.parent.children||[],l.parent.children.push(l)),a&&a(l,m)}({node:t,index:r,pos:s,key:y,parentPos:c.node?c.pos:null,level:c.level+1,nodes:v})}u&&u.forEach((function(e,r){n(e,r,{node:t,pos:s,level:c?c.level+1:-1},v)}))}(null)}(e,0,{externalGetKey:s,childrenPropName:l,fieldNames:u}),i&&i(m),m}function g(e,n){var t=n.expandedKeys,r=n.selectedKeys,o=n.loadedKeys,a=n.loadingKeys,i=n.checkedKeys,c=n.halfCheckedKeys,l=n.dragOverNodeKey,u=n.dropPosition,d=n.keyEntities,f=(0,s.Z)(d,e);return{eventKey:e,expanded:-1!==t.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==a.indexOf(e),checked:-1!==i.indexOf(e),halfChecked:-1!==c.indexOf(e),pos:String(f?f.pos:""),dragOver:l===e&&0===u,dragOverGapTop:l===e&&-1===u,dragOverGapBottom:l===e&&1===u}}function x(e){var n=e.data,t=e.expanded,r=e.selected,o=e.checked,i=e.loaded,c=e.loading,l=e.halfChecked,s=e.dragOver,d=e.dragOverGapTop,f=e.dragOverGapBottom,p=e.pos,v=e.active,h=e.eventKey,m=(0,a.Z)((0,a.Z)({},n),{},{expanded:t,selected:r,checked:o,loaded:i,loading:c,halfChecked:l,dragOver:s,dragOverGapTop:d,dragOverGapBottom:f,pos:p,active:v,key:h});return"props"in m||Object.defineProperty(m,"props",{get:function(){return(0,u.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}},13059:function(e,n,t){t.d(n,{Z:function(){return P}});var r=t(87462),o=t(15671),a=t(43144),i=t(60136),c=t(29388),l=t(67294),u=t(4942),s=t(45987),d=t(74165),f=t(71002),p=t(15861),v=t(93433),h=t(94184),m=t.n(h),y=t(64217);function g(e){var n=e.responseText||e.response;if(!n)return n;try{return JSON.parse(n)}catch(e){return n}}function x(e){var n=new XMLHttpRequest;e.onProgress&&n.upload&&(n.upload.onprogress=function(n){n.total>0&&(n.percent=n.loaded/n.total*100),e.onProgress(n)});var t=new FormData;e.data&&Object.keys(e.data).forEach((function(n){var r=e.data[n];Array.isArray(r)?r.forEach((function(e){t.append("".concat(n,"[]"),e)})):t.append(n,r)})),e.file instanceof Blob?t.append(e.filename,e.file,e.file.name):t.append(e.filename,e.file),n.onerror=function(n){e.onError(n)},n.onload=function(){return n.status<200||n.status>=300?e.onError(function(e,n){var t="cannot ".concat(e.method," ").concat(e.action," ").concat(n.status,"'"),r=new Error(t);return r.status=n.status,r.method=e.method,r.url=e.action,r}(e,n),g(n)):e.onSuccess(g(n),n)},n.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in n&&(n.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&n.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach((function(e){null!==r[e]&&n.setRequestHeader(e,r[e])})),n.send(t),{abort:function(){n.abort()}}}var E=+new Date,b=0;function C(){return"rc-upload-".concat(E,"-").concat(++b)}var Z=t(80334),k=function(e,n){if(e&&n){var t=Array.isArray(n)?n:n.split(","),r=e.name||"",o=e.type||"",a=o.replace(/\/.*$/,"");return t.some((function(e){var n=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===n.charAt(0)){var t=r.toLowerCase(),i=n.toLowerCase(),c=[i];return".jpg"!==i&&".jpeg"!==i||(c=[".jpg",".jpeg"]),c.some((function(e){return t.endsWith(e)}))}return/\/\*$/.test(n)?a===n.replace(/\/.*$/,""):o===n||!!/^\w+$/.test(n)&&((0,Z.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(n,"'.Skip for check.")),!0)}))}return!0},w=function(e,n,t){var r=function e(r,o){r&&(r.path=o||"",r.isFile?r.file((function(e){t(e)&&(r.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),n([e]))})):r.isDirectory&&function(e,n){var t=e.createReader(),r=[];!function e(){t.readEntries((function(t){var o=Array.prototype.slice.apply(t);r=r.concat(o),o.length?e():n(r)}))}()}(r,(function(n){n.forEach((function(n){e(n,"".concat(o).concat(r.name,"/"))}))})))};e.forEach((function(e){r(e.webkitGetAsEntry())}))},N=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],S=function(e){(0,i.Z)(t,e);var n=(0,c.Z)(t);function t(){var e;(0,o.Z)(this,t);for(var r=arguments.length,a=new Array(r),i=0;i1&&void 0!==arguments[1]?arguments[1]:{},t=[];return r.Children.forEach(e,(function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?t=t.concat(a(e)):(0,o.isFragment)(e)&&e.props?t=t.concat(a(e.props.children,n)):t.push(e))})),t}},64019:function(e,n,t){t.d(n,{Z:function(){return o}});var r=t(73935);function o(e,n,t,o){var a=r.unstable_batchedUpdates?function(e){r.unstable_batchedUpdates(t,e)}:t;return null!=e&&e.addEventListener&&e.addEventListener(n,a,o),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(n,a,o)}}}},98924:function(e,n,t){function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}t.d(n,{Z:function(){return r}})},94999:function(e,n,t){function r(e,n){if(!e)return!1;if(e.contains)return e.contains(n);for(var t=n;t;){if(t===e)return!0;t=t.parentNode}return!1}t.d(n,{Z:function(){return r}})},27678:function(e,n,t){function r(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function o(e){var n=e.getBoundingClientRect(),t=document.documentElement;return{left:n.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||document.body.clientTop||0)}}t.d(n,{g1:function(){return r},os:function(){return o}})},44958:function(e,n,t){t.d(n,{hq:function(){return h},jL:function(){return v}});var r=t(98924),o=t(94999),a="data-rc-order",i="data-rc-priority",c="rc-util-key",l=new Map;function u(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):c}function s(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function d(e){return Array.from((l.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function f(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,r.Z)())return null;var t=n.csp,o=n.prepend,c=n.priority,l=void 0===c?0:c,u=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o),f="prependQueue"===u,p=document.createElement("style");p.setAttribute(a,u),f&&l&&p.setAttribute(i,"".concat(l)),null!=t&&t.nonce&&(p.nonce=null==t?void 0:t.nonce),p.innerHTML=e;var v=s(n),h=v.firstChild;if(o){if(f){var m=d(v).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(a)))return!1;var n=Number(e.getAttribute(i)||0);return l>=n}));if(m.length)return v.insertBefore(p,m[m.length-1].nextSibling),p}v.insertBefore(p,h)}else v.appendChild(p);return p}function p(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d(s(n)).find((function(t){return t.getAttribute(u(n))===e}))}function v(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=p(e,n);t&&s(n).removeChild(t)}function h(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,n){var t=l.get(e);if(!t||!(0,o.Z)(document,t)){var r=f("",n),a=r.parentNode;l.set(e,a),e.removeChild(r)}}(s(t),t);var r,a,i,c=p(n,t);if(c)return null!==(r=t.csp)&&void 0!==r&&r.nonce&&c.nonce!==(null===(a=t.csp)||void 0===a?void 0:a.nonce)&&(c.nonce=null===(i=t.csp)||void 0===i?void 0:i.nonce),c.innerHTML!==e&&(c.innerHTML=e),c;var d=f(e,t);return d.setAttribute(u(t),n),d}},34203:function(e,n,t){t.d(n,{S:function(){return a},Z:function(){return i}});var r=t(67294),o=t(73935);function a(e){return e instanceof HTMLElement||e instanceof SVGElement}function i(e){return a(e)?e:e instanceof r.Component?o.findDOMNode(e):null}},88603:function(e,n,t){t.d(n,{tS:function(){return i}});var r=t(93433),o=t(5110);function a(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,o.Z)(e)){var t=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(t)||e.isContentEditable||"a"===t&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),i=Number(a),c=null;return a&&!Number.isNaN(i)?c=i:r&&null===c&&(c=0),r&&e.disabled&&(c=null),null!==c&&(c>=0||n&&c<0)}return!1}function i(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=(0,r.Z)(e.querySelectorAll("*")).filter((function(e){return a(e,n)}));return a(e,n)&&t.unshift(e),t}},5110:function(e,n){n.Z=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var n=e.getBBox(),t=n.width,r=n.height;if(t||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1}},27571:function(e,n,t){function r(e){var n;return null==e||null===(n=e.getRootNode)||void 0===n?void 0:n.call(e)}function o(e){return function(e){return r(e)instanceof ShadowRoot}(e)?r(e):null}t.d(n,{A:function(){return o}})},79370:function(e,n,t){t.d(n,{G:function(){return i}});var r=t(98924),o=function(e){if((0,r.Z)()&&window.document.documentElement){var n=Array.isArray(e)?e:[e],t=window.document.documentElement;return n.some((function(e){return e in t.style}))}return!1},a=function(e,n){if(!o(e))return!1;var t=document.createElement("div"),r=t.style[e];return t.style[e]=n,t.style[e]!==r};function i(e,n){return Array.isArray(e)||void 0===n?o(e):a(e,n)}},15105:function(e,n){var t={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var n=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||n>=t.F1&&n<=t.F12)return!1;switch(n){case t.ALT:case t.CAPS_LOCK:case t.CONTEXT_MENU:case t.CTRL:case t.DOWN:case t.END:case t.ESC:case t.HOME:case t.INSERT:case t.LEFT:case t.MAC_FF_META:case t.META:case t.NUMLOCK:case t.NUM_CENTER:case t.PAGE_DOWN:case t.PAGE_UP:case t.PAUSE:case t.PRINT_SCREEN:case t.RIGHT:case t.SHIFT:case t.UP:case t.WIN_KEY:case t.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=t.ZERO&&e<=t.NINE)return!0;if(e>=t.NUM_ZERO&&e<=t.NUM_MULTIPLY)return!0;if(e>=t.A&&e<=t.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case t.SPACE:case t.QUESTION_MARK:case t.NUM_PLUS:case t.NUM_MINUS:case t.NUM_PERIOD:case t.NUM_DIVISION:case t.SEMICOLON:case t.DASH:case t.EQUALS:case t.COMMA:case t.PERIOD:case t.SLASH:case t.APOSTROPHE:case t.SINGLE_QUOTE:case t.OPEN_SQUARE_BRACKET:case t.BACKSLASH:case t.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};n.Z=t},38135:function(e,n,t){var r;t.d(n,{s:function(){return m},v:function(){return E}});var o,a=t(74165),i=t(15861),c=t(71002),l=t(1413),u=t(73935),s=(0,l.Z)({},r||(r=t.t(u,2))),d=s.version,f=s.render,p=s.unmountComponentAtNode;try{Number((d||"").split(".")[0])>=18&&(o=s.createRoot)}catch(e){}function v(e){var n=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;n&&"object"===(0,c.Z)(n)&&(n.usingClientEntryPoint=e)}var h="__rc_react_root__";function m(e,n){o?function(e,n){v(!0);var t=n[h]||o(n);v(!1),t.render(e),n[h]=t}(e,n):function(e,n){f(e,n)}(e,n)}function y(e){return g.apply(this,arguments)}function g(){return(g=(0,i.Z)((0,a.Z)().mark((function e(n){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=n[h])||void 0===e||e.unmount(),delete n[h]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){p(e)}function E(e){return b.apply(this,arguments)}function b(){return(b=(0,i.Z)((0,a.Z)().mark((function e(n){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===o){e.next=2;break}return e.abrupt("return",y(n));case 2:x(n);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},74204:function(e,n,t){var r;function o(e){if("undefined"==typeof document)return 0;if(e||void 0===r){var n=document.createElement("div");n.style.width="100%",n.style.height="200px";var t=document.createElement("div"),o=t.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",t.appendChild(n),document.body.appendChild(t);var a=n.offsetWidth;t.style.overflow="scroll";var i=n.offsetWidth;a===i&&(i=t.clientWidth),document.body.removeChild(t),r=a-i}return r}function a(e){var n=e.match(/^(.*)px$/),t=Number(null==n?void 0:n[1]);return Number.isNaN(t)?o():t}function i(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};var n=getComputedStyle(e,"::-webkit-scrollbar"),t=n.width,r=n.height;return{width:a(t),height:a(r)}}t.d(n,{Z:function(){return o},o:function(){return i}})},66680:function(e,n,t){t.d(n,{Z:function(){return o}});var r=t(67294);function o(e){var n=r.useRef();n.current=e;var t=r.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),o=0;o2&&void 0!==arguments[2]&&arguments[2],a=new Set;return function e(n,i){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,l=a.has(n);if((0,o.ZP)(!l,"Warning: There may be circular references"),l)return!1;if(n===i)return!0;if(t&&c>1)return!1;a.add(n);var u=c+1;if(Array.isArray(n)){if(!Array.isArray(i)||n.length!==i.length)return!1;for(var s=0;s1&&void 0!==arguments[1]&&arguments[1];n=!1===t?{aria:!0,data:!0,attr:!0}:!0===t?{aria:!0}:(0,r.Z)({},t);var l={};return Object.keys(e).forEach((function(t){(n.aria&&("role"===t||c(t,a))||n.data&&c(t,i)||n.attr&&o.includes(t))&&(l[t]=e[t])})),l}},75164:function(e,n){var t=function(e){return+setTimeout(e,16)},r=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(t=function(e){return window.requestAnimationFrame(e)},r=function(e){return window.cancelAnimationFrame(e)});var o=0,a=new Map;function i(e){a.delete(e)}var c=function(e){var n=o+=1;return function r(o){if(0===o)i(n),e();else{var c=t((function(){r(o-1)}));a.set(n,c)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),n};c.cancel=function(e){var n=a.get(e);return i(e),r(n)},n.Z=c},42550:function(e,n,t){t.d(n,{Yr:function(){return s},mH:function(){return c},sQ:function(){return l},t4:function(){return d},x1:function(){return u}});var r=t(71002),o=t(67294),a=t(59864),i=t(56982);function c(e,n){"function"==typeof e?e(n):"object"===(0,r.Z)(e)&&e&&"current"in e&&(e.current=n)}function l(){for(var e=arguments.length,n=new Array(e),t=0;t3&&void 0!==arguments[3]&&arguments[3];return n.length&&r&&void 0===t&&!(0,c.Z)(e,n.slice(0,-1))?e:l(e,n,t,r)}function s(e){return Array.isArray(e)?[]:{}}var d="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function f(){for(var e=arguments.length,n=new Array(e),t=0;t