All Downloads are FREE. Search and download functionalities are using the official Maven repository.

static.kuangkie.hydrogen.bundle.2d02eb715864da029362.js Maven / Gradle / Ivy

The newest version!
"use strict";(self.webpackChunkhydrogen_react=self.webpackChunkhydrogen_react||[]).push([[3512],{56489:function(e,n,t){t.d(n,{Z:function(){return m}});var r=t(63123),o=t(36849),a=t(8270),i=t(17253),c=t(92703),l=t.n(c),u=t(35466),s=t(19110),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,b=e.description,E=e.title,C=e.subTitle,k=e.progressDot,Z=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",_=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)),H=(0,o.Z)({},p),F=u.createElement("div",(0,r.Z)({},P,{className:_,style:H}),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=k?"function"==typeof k?u.createElement("span",{className:"".concat(c,"-icon")},k(O,{index:g-1,status:h,title:E,description:b})):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),Z&&(L=Z({index:g-1,status:h,title:E,description:b,node:L})),L)),u.createElement("div",{className:"".concat(c,"-item-content")},u.createElement("div",{className:"".concat(c,"-item-title")},E,C&&u.createElement("div",{title:"string"==typeof C?C:void 0,className:"".concat(c,"-item-subtitle")},C)),b&&u.createElement("div",{className:"".concat(c,"-item-description")},b))));return T&&(F=T(F)||null),F},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,b=void 0===x?"horizontal":x,E=e.iconPrefix,C=void 0===E?"rc":E,k=e.status,Z=void 0===k?"process":k,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,_=(0,i.Z)(e,v),H="navigation"===g,F="inline"===g,W=F||R,z=F?"horizontal":m,B=F?void 0:w,U=W?"vertical":b,V=l()(c,"".concat(c,"-").concat(z),f,(n={},(0,a.Z)(n,"".concat(c,"-").concat(B),B),(0,a.Z)(n,"".concat(c,"-label-").concat(U),"horizontal"===z),(0,a.Z)(n,"".concat(c,"-dot"),!!W),(0,a.Z)(n,"".concat(c,"-navigation"),H),(0,a.Z)(n,"".concat(c,"-inline"),F),n)),j=function(e){L&&S!==e&&L(e)};return u.createElement("div",(0,r.Z)({className:V,style:d},_),A.filter((function(e){return e})).map((function(e,n){var t=(0,o.Z)({},e),a=D+n;return"error"===Z&&n===S-1&&(t.className="".concat(c,"-next-error")),t.status||(t.status=a===S?Z: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,b=e.onTriggerExpand,E=e.expandIcon,C=e.rowExpandable,k=e.expandIconColumnIndex,Z=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=k||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||k?"right"!==S&&!S||k!==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=E({prefixCls:t,expanded:a,expandable:i,record:n,onExpand:b});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,E,Z]),D=s.useMemo((function(){var e=P;return n&&(e=n(e)),e.length||(e=[{render:function(){return null}}]),e}),[n,P,Z]),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"),B&&$),(0,v.Z)(C,"".concat(Y,"-fix-left-all"),B&&J&&$),(0,v.Z)(C,"".concat(Y,"-fix-right"),ie&&$),(0,v.Z)(C,"".concat(Y,"-fix-right-first"),U&&$),(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&&(B||U)&&(ye=a.createElement("span",{className:"".concat(Y,"-content")},ye)),a.createElement(k,(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(17253),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,b=t+c-1+1===m?c+1:c,E=S(t,t+b-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:b,rowSpan:l,render:function(){return r}},E))};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(56415),O=t(16964),A=t(38599),_=t(40555),H=t(76814),F=t(40875);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(25206),re=t(6461),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,b=e.onScroll,E=e.maxContentScroll,C=e.children,k=(0,R.Z)(e,oe),Z=(0,o.qp)(s,["prefixCls","scrollbarSize","isSticky"]),w=Z.prefixCls,N=Z.scrollbarSize,S=Z.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&&(b({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]),_=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)}),Z.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,_.Z)()<=t||e>=t-l?k((function(e){return(0,p.Z)((0,p.Z)({},e),{},{isHiddenScrollBar:!0})})):k((function(e){return(0,p.Z)((0,p.Z)({},e),{},{isHiddenScrollBar:!1})}))}},D=function(e){k((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||k((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,_.Z)(),width:m,bottom:l},className:"".concat(d,"-sticky-scroll")},a.createElement("div",{onMouseDown:function(e){e.persist(),Z.current.delta=e.pageX-C.scrollLeft,Z.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",be=[],Ee={};function Ce(){return"No Data"}function ke(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,E=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,B=o.emptyText,U=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||be,re=!!ee.length,oe=j===r.R,ae=a.useCallback((function(e,n){return(0,b.Z)(z,e)||n}),[z]),ce=a.useMemo((function(){return"function"==typeof E?E:function(e){return e&&e[E]}}),[E]),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],ke=me[1],Ze=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),b=x[0],E=x[1],C=a.useMemo((function(){return new Set(c||b||[])}),[c,b]),k=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]),E(r),d&&d(!a,e),p&&p(r)}),[t,C,n,d,p]);return[o,y,C,v,m,k]}(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],_e=(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),He=(0,h.Z)(_e,3),Fe=He[0],We=He[1],ze=He[2],Be=null!=ze?ze:Me,Ue=a.useMemo((function(){return{columns:Fe,flattenColumns:We}}),[Fe,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=k(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?b-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,_={};return 0!==D&&0!==T||(_.rowSpan=1,_.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:k,record:u,index:c,renderIndex:l,dataIndex:g,render:A,shouldCellUpdate:t.shouldCellUpdate},Z,{appendNode:w,additionalProps:(0,p.Z)((0,p.Z)({},S),{},{style:I},_)}))},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,b=r.index,E=(0,o.qp)(s,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),C=E.scrollX,k=E.flattenColumns,Z=E.prefixCls,w=E.fixColumn,S=E.componentWidth,K=U(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 _="".concat(Z,"-expanded-row-cell");t=a.createElement("div",{className:y()("".concat(Z,"-expanded-row"),"".concat(Z,"-expanded-row-level-").concat(x+1),O)},a.createElement(N,{component:"div",prefixCls:Z,className:y()(_,(0,v.Z)({},"".concat(_,"-fixed"),w)),additionalProps:A},I))}var H=(0,p.Z)((0,p.Z)({},u),{},{width:C});f&&(H.position="absolute",H.pointerEvents="none");var F=a.createElement("div",(0,d.Z)({},D,m,{ref:T?null:n,className:y()(c,"".concat(Z,"-row"),null==D?void 0:D.className,(0,v.Z)({},"".concat(Z,"-row-extra"),f)),style:(0,p.Z)((0,p.Z)({},H),null==D?void 0:D.style)}),k.map((function(e,n){return a.createElement(Pe,{key:n,rowInfo:K,column:e,colIndex:n,indent:x,index:i,renderIndex:b,record:g,inverse:f,getHeight:h})})));return T?a.createElement("div",{ref:n},F,t):F}))),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,b=(0,o.qp)(Re),E=b.sticky,C=b.scrollY,k=b.listItemHeight,Z=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=Z.current)||void 0===n||n.scrollTo(e)}};return Object.defineProperty(e,"scrollLeft",{get:function(){var e;return(null===(e=Z.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var n;null===(n=Z.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={};E&&(M.position="sticky",M.bottom=0,"object"===(0,f.Z)(E)&&E.offsetScroll&&(M.bottom=E.offsetScroll)),R=a.createElement(Ke.Z,{fullHeight:!1,ref:Z,styles:{horizontalScrollBar:M},className:y()(D,"".concat(D,"-virtual")),height:C,itemHeight:k||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 _e(e){return c(Ae,e)}_e()},67593:function(e,n,t){t.d(n,{g:function(){return c},v:function(){return i}});var r=t(36849),o=t(17253),a=(t(39205),["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}},98686:function(e,n,t){t.d(n,{Z:function(){return Q}});var r=t(63123),o=t(8270),a=t(36849),i=t(55043),c=t(31311),l=t(17253),u=t(92703),s=t.n(u),d=t(78008),f=t(10984),p=t(35466);t(39205);var v=(0,p.createContext)(null),h=t(25206),m=t(56415),y=t(76814),g=t(6461),x=t(61277),b={width:0,height:0,left:0,top:0};function E(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),k=t(2610);function Z(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,k.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(53394),D=t(95945),M=t(19110),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,b=e.onTabClick,E=e.getPopupContainer,C=e.popupClassName,k=(0,p.useState)(!1),Z=(0,i.Z)(k,2),w=Z[0],N=Z[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"),_=null!==L?"".concat(O,"-").concat(L):null,H=null==c?void 0:c.dropdownAriaLabel,F=p.createElement(D.ZP,{onClick:function(e){var n=e.key,t=e.domEvent;b(n,t),N(!1)},prefixCls:"".concat(A,"-menu"),id:O,tabIndex:-1,role:"listbox","aria-activedescendant":_,selectedKeys:[L],"aria-label":void 0!==H?H:"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=E(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],be=(0,p.useState)([0,0]),Ee=(0,i.Z)(be,2),Ce=Ee[0],ke=Ee[1],Ze=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=Z((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)(Ze,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)||b,i=o.left+o.width,c=0;cAe?Ae:e}J&&k?(Oe=0,Ae=Math.max(0,Te-Le)):(Oe=Math.min(0,Le-Te),Ae=0);var He=(0,p.useRef)(null),Fe=(0,p.useState)(),We=(0,i.Z)(Fe,2),ze=We[0],Be=We[1];function Ue(){Be(Date.now())}function Ve(){He.current&&clearTimeout(He.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],b=(0,p.useRef)(),E=(0,p.useRef)(),k=(0,p.useRef)(null);k.current={onTouchStart:function(e){var n=e.touches[0],t=n.screenX,r=n.screenY;a({x:t,y:r}),window.clearInterval(b.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;b.current=window.setInterval((function(){Math.abs(c)<.01&&Math.abs(l)<.01?window.clearInterval(b.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"===E.current?t:r:a>i?(o=t,E.current="x"):(o=r,E.current="y"),n(-o,-o)&&e.preventDefault()}},p.useEffect((function(){function n(e){k.current.onTouchMove(e)}function t(e){k.current.onTouchEnd(e)}return document.addEventListener("touchmove",n,{passive:!1}),document.addEventListener("touchend",t,{passive:!1}),e.current.addEventListener("touchstart",(function(e){k.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){k.current.onWheel(e)})),function(){document.removeEventListener("touchmove",n),document.removeEventListener("touchend",t)}}),[])}(X,(function(e,n){function t(e,n){e((function(e){return _e(e+n)}))}return!!Me&&(J?t(re,e):t(ce,n),Ve(),Ue(),!0)})),(0,p.useEffect)((function(){return Ve(),ze&&(He.current=setTimeout((function(){Be(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;k?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(_e(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(_e(r))}})),Qe={};"top"===M||"bottom"===M?Qe[k?"marginRight":"marginLeft"]=L:Qe.marginTop=L;var $e=V.map((function(e,n){var t=e.key;return p.createElement(O,{id:u,prefixCls:U,key:t,tab:e,style:0===n?void 0:Qe,closable:e.closable,editable:P,active:t===f,renderWrapper:H,removeAriaLabel:null==D?void 0:D.removeAriaLabel,onClick:function(e){F(t,e)},onFocus:function(){Ye(t),Ue(),X.current&&(k||(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=Z((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);ke(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:k,indicatorSize:z}).style;(0,p.useEffect)((function(){Ye()}),[f,Oe,Ae,N(on),N(Ke),J]),(0,p.useEffect)((function(){en()}),[k]);var cn,ln,un,sn,dn=!!rn.length,fn="".concat(U,"-nav-wrap");return J?k?(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(U,"-nav"),c),style:l,onKeyDown:function(){Ue()}},p.createElement(T,{ref:q,position:"left",extra:K,prefixCls:U}),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(U,"-nav-list"),style:{transform:"translate(".concat(te,"px, ").concat(ie,"px)"),transition:ze?"none":void 0}},$e,p.createElement(R,{ref:$,prefixCls:U,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(U,"-ink-bar"),(0,o.Z)({},"".concat(U,"-ink-bar-animated"),d.inkBar)),style:an}))))),p.createElement(I,(0,r.Z)({},e,{removeAriaLabel:null==D?void 0:D.removeAriaLabel,ref:Q,prefixCls:U,tabs:rn,className:!dn&&Ie,tabMoving:!!ze})),p.createElement(T,{ref:G,position:"right",extra:K,prefixCls:U})))})),F=H,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"],B=["label","key"],U=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,B);return p.createElement(W,(0,r.Z)({tab:n,key:t,tabKey:t},o))}))}),F):p.createElement(F,t)},V=t(45231),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,b=e.activeKey,E=e.defaultActiveKey,C=e.editable,k=e.animated,Z=e.tabPosition,w=void 0===Z?"top":Z,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,_=e.popupClassName,H=e.indicatorSize,F=(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,B=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}(k),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:b,defaultValue:E}),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:B,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:_,indicatorSize:H});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)},F),p.createElement(U,(0,r.Z)({},de,{renderTabBar:M})),p.createElement(q,(0,r.Z)({destroyInactiveTabPane:D},se,{animated:B}))))})),Q=Y},895:function(e,n,t){t.d(n,{Z:function(){return N}});var r,o=t(63123),a=t(36849),i=t(8270),c=t(25206),l=t(55043),u=t(17253),s=t(92703),d=t.n(s),f=t(6509),p=t(68342),v=t(34447),h=t(78008),m=t(35466),y=t(31311),g=t(56415),x=t(2610),b=t(61277),E=["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 k=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Z=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,Z=t.className,w=t.style,N=t.disabled,S=t.onChange,K=(t.onInternalAutoSize,(0,u.Z)(t,k)),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],_=!!p,H=m.useState(2),F=(0,l.Z)(H,2),W=F[0],z=F[1],B=m.useState(),U=(0,l.Z)(B,2),V=U[0],j=U[1],q=function(){z(0)};(0,x.Z)((function(){_&&q()}),[f,O,A,_]),(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:E.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(){b.Z.cancel(G.current)};m.useEffect((function(){return X}),[]);var Y=_?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,b.Z)((function(){q()}))))},disabled:!(p||v)},m.createElement("textarea",(0,o.Z)({},K,{ref:M,style:Q,className:d()(c,Z,(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,b=e.onChange,E=e.allowClear,C=e.maxLength,k=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,_=e.styles,H=e.onResize,F=(0,u.Z)(e,w),W=(0,h.Z)(s,{value:y,defaultValue:s}),z=(0,l.Z)(W,2),B=z[0],U=z[1],V=null==B?"":String(B),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]),U(t),(0,v.rJ)(e.currentTarget,e,b,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==_?void 0:_.count},le)));var me=!F.autoSize&&!P&&!E;return m.createElement(f.Q,{value:V,allowClear:E,handleReset:function(e){U(""),re(),(0,v.rJ)(te(),e,b)},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"),E),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(Z,(0,o.Z)({},F,{maxLength:C,onKeyDown:function(e){var n=F.onPressEnter,t=F.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==k||k(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==_?void 0:_.textarea),{},{resize:null==L?void 0:L.resize}),disabled:I,prefixCls:R,onResize:function(e){var n;null==H||H(e),null!==(n=te())&&void 0!==n&&n.style.height&&ee(!0)},ref:ne}))})}))},12542:function(e,n,t){t.d(n,{G:function(){return i},Z:function(){return y}});var r=t(92703),o=t.n(r),a=t(35466);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(63123),l=t(36849),u=t(17253),s=t(28766),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,b=e.children,E=e.onVisibleChange,C=e.afterVisibleChange,k=e.transitionName,Z=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,_=void 0===A||A,H=(0,u.Z)(e,h),F=(0,a.useRef)(null);(0,a.useImperativeHandle)(n,(function(){return F.current}));var W=(0,l.Z)({},H);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:F,popupAlign:R,getPopupContainer:M,onPopupVisibleChange:E,afterPopupVisibleChange:C,popupTransitionName:k,popupAnimation:Z,popupMotion:w,defaultPopupVisible:D,autoDestroy:P,mouseLeaveDelay:m,popupStyle:y,mouseEnterDelay:f,arrow:_},W),b)},y=(0,a.forwardRef)(m)},61562: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(63123),o=t(25206),a=t(36849),i=t(55043),c=t(17253),l=t(31311),u=t(35570),s=t(76573),d=t(25163),f=t(78008),p=t(39205),v=t(35466),h=t(29658),m=t(8270),y=t(25227),g=function(){return null},x=["children","value"];function b(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=b(o);return s.length&&(u.children=s),u})).filter((function(e){return e}))}function E(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 k(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:b(n)}),[n,t,e])}var Z=v.createContext(null),w=t(19110),N=t(94414),S=t(33281),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,b=p.fieldNames,E=p.onSelect,C=p.dropdownMatchSelectWidth,k=p.treeExpandAction,T=v.useContext(Z),D=T.checkable,M=T.checkedKeys,L=T.halfCheckedKeys,I=T.treeExpandedKeys,O=T.treeDefaultExpandAll,A=T.treeDefaultExpandedKeys,_=T.onTreeExpand,H=T.treeIcon,F=T.showTreeIcon,W=T.switcherIcon,z=T.treeLine,B=T.treeNodeFilterProp,U=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,b))}),[l]);var pe=function(e){e.preventDefault()},ve=function(e,n){var t=n.node;D&&R(t)||(E(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:b};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:H,showIcon:F,switcherIcon:W,showLine:z,loadData:l?null:U,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),_&&_(e)},onLoad:q,filterTreeNode:function(e){return!!re&&String(e[B]).toLowerCase().includes(re)},expandAction:k})))},M=v.forwardRef(D);M.displayName="OptionList";var L=M,I="SHOW_ALL",O="SHOW_PARENT",A="SHOW_CHILD";function _(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 H=["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"],F=v.forwardRef((function(e,n){var t,y,x=e.id,b=e.prefixCls,w=void 0===b?"rc-tree-select":b,N=e.value,S=e.defaultValue,R=e.onChange,P=e.onSelect,D=e.onDeselect,M=e.searchValue,O=e.inputValue,F=e.onSearch,W=e.autoClearSearchValue,z=void 0===W||W,B=e.filterTreeNode,U=e.treeNodeFilterProp,V=void 0===U?"value":U,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,be=e.treeLine,Ee=e.treeIcon,Ce=e.showTreeIcon,ke=e.switcherIcon,Ze=e.treeMotion,we=(0,c.Z)(e,H),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||""}}),_e=(0,i.Z)(Ae,2),He=_e[0],Fe=_e[1],We=k(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),Be=ze.keyEntities,Ue=ze.valueEntities,Ve=v.useCallback((function(e){var n=[],t=[];return e.forEach((function(e){Ue.has(e)?t.push(e):n.push(e)})),{missingRawValues:n,existRawValues:t}}),[Ue]),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,E(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,He,{fieldNames:Oe,treeNodeFilterProp:V,filterTreeNode:B}),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=Be[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 Ue.get(e).key}));s=r?(0,d.S)(v,!0,Be).checkedKeys:(0,d.S)(v,{checked:!1,halfCheckedKeys:an},Be).checkedKeys,u=[].concat((0,o.Z)(p),(0,o.Z)(s.map((function(e){return Be[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,E(c)):null==D||D(l,E(c))}),[Ve,Ue,Be,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:Ee,treeMotion:Ze,showTreeIcon:Ce,switcherIcon:ke,treeLine:be,treeNodeFilterProp:V,keyEntities:Be}}),[Ke,te,re,oe,on,an,ae,ie,ce,le,Ee,Ze,Ce,ke,be,V,Be]);return v.createElement(K.Provider,{value:vn},v.createElement(Z.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:He,onSearch:function(e){Fe(e),null==F||F(e)},OptionList:L,emptyOptions:!We.length,onDropdownVisibleChange:fn,dropdownMatchSelectWidth:xe}))))})),W=F;W.TreeNode=g,W.SHOW_ALL=I,W.SHOW_PARENT=O,W.SHOW_CHILD=A;var z=W},7112:function(e,n,t){t.d(n,{Z:function(){return N}});var r=t(63123),o=t(8270),a=t(17253),i=t(36849),c=t(4913),l=t(64296),u=t(76464),s=t(81928),d=t(76044),f=t(92703),p=t.n(f),v=t(40875),h=t(35466),m=t(49120),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(Z.Z,(0,r.Z)({},j,{data:ye,itemKey:F,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 F(e)===I}))&&me()}}),(function(e){var n=e.pos,t=(0,r.Z)({},((0,b.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:U,onMotionEnd:me,treeNodeRequiredProps:ge,onMouseMove:function(){B(null)}}))})))}));W.displayName="NodeList";var z=W,B=t(12188),U=t(25163),V=t(40102),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,B.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,B._5)(o,l):(0,B.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,B.L0)(r,d):[d]:(0,B._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,B.L0)(l,p):(0,B._5)(l,p);o={checked:h,halfChecked:(0,B._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,U.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 b=(0,U.S)(Array.from(x),{checked:!1,halfCheckedKeys:g},i);y=b.checkedKeys,g=b.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,B.L0)(o,t);null==f||f(a,{event:"load",node:n}),e.setUncontrolledState({loadedKeys:a}),e.setState((function(e){return{loadingKeys:(0,B._5)(e.loadingKeys,t)}})),r()})).catch((function(n){if(e.setState((function(e){return{loadingKeys:(0,B._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,B.L0)(a,t)}),r()}o(n)})),{loadingKeys:(0,B.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,b=t.indent,E=this.props,C=E.prefixCls,k=E.className,Z=E.style,w=E.showLine,N=E.focusable,S=E.tabIndex,K=void 0===S?0:S,R=E.selectable,T=E.showIcon,P=E.icon,D=E.switcherIcon,M=E.draggable,L=E.checkable,I=E.checkStrictly,O=E.disabled,A=E.motion,_=E.loadData,H=E.filterTreeNode,F=E.height,W=E.itemHeight,B=E.virtual,U=E.titleRender,V=E.dropIndicatorRender,j=E.onContextMenu,q=E.onScroll,G=E.direction,X=E.rootClassName,Y=E.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:b,direction:G,dropIndicatorRender:V,loadData:_,filterTreeNode:H,titleRender:U,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,k,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:Z,data:c,disabled:O,selectable:R,checkable:!!L,motion:A,dragging:null!==u,height:F,itemHeight:W,virtual:B,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,B.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,B.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,B.BT)(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(a.selectedKeys=(0,B.BT)(e.defaultSelectedKeys,e))),e.checkable&&(c("checkedKeys")?s=(0,B.E6)(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?s=(0,B.E6)(e.defaultCheckedKeys)||{}:t&&(s=(0,B.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 b=(0,U.S)(m,!0,d);m=b.checkedKeys,x=b.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},12188: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(25206),o=t(31311),a=t(39205),i=(t(35466),t(7112),t(40102));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,b=(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:b.key,dropTargetPos:b.pos,dragOverNodeKey:w,dropContainerKey:0===N?null:(null===(p=b.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(29658)},25163:function(e,n,t){t.d(n,{S:function(){return c}});var r=t(39205),o=t(40102);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}},40102:function(e,n,t){function r(e,n){return e[n]}t.d(n,{Z:function(){return r}})},29658: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(31311),o=t(25206),a=t(36849),i=t(17253),c=t(25227),l=t(89704),u=t(39205),s=t(40102),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}},25313:function(e,n,t){t.d(n,{Z:function(){return P}});var r=t(63123),o=t(4913),a=t(64296),i=t(81928),c=t(76044),l=t(35466),u=t(8270),s=t(17253),d=t(63319),f=t(31311),p=t(54390),v=t(25206),h=t(92703),m=t.n(h),y=t(40875);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 b=+new Date,E=0;function C(){return"rc-upload-".concat(b,"-").concat(++E)}var k=t(39205),Z=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,k.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}},88281:function(e,n,t){t.d(n,{Z:function(){return o}});var r=t(46116);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)}}}},65442:function(e,n,t){function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}t.d(n,{Z:function(){return r}})},12619: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}})},16259: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}})},68910:function(e,n,t){t.d(n,{hq:function(){return h},jL:function(){return v}});var r=t(65442),o=t(12619),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}},11889:function(e,n,t){t.d(n,{S:function(){return a},Z:function(){return i}});var r=t(35466),o=t(46116);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}},77610:function(e,n,t){t.d(n,{tS:function(){return i}});var r=t(25206),o=t(16964);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}},16964: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}},79129: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}})},38599:function(e,n,t){t.d(n,{G:function(){return i}});var r=t(65442),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)}},19110: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},9192:function(e,n,t){var r;t.d(n,{s:function(){return m},v:function(){return b}});var o,a=t(63319),i=t(54390),c=t(31311),l=t(36849),u=t(46116),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 b(e){return E.apply(this,arguments)}function E(){return(E=(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)}},40555: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}})},76814:function(e,n,t){t.d(n,{Z:function(){return o}});var r=t(35466);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;s




© 2015 - 2024 Weber Informatics LLC | Privacy Policy