@para-ui/core 4.0.21 → 4.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/Cascader/index.js +2 -2
  2. package/ComboSelect/index.js +1 -1
  3. package/DynamicMultiBox/index.js +1 -1
  4. package/Form/index.js +2 -2
  5. package/FormItem/index.js +2 -2
  6. package/Pagination/index.js +2 -2
  7. package/README.md +4 -0
  8. package/Tree/index.js +2 -2
  9. package/_verture/{index-f59b0bc0.js → index-066d47d4.js} +594 -591
  10. package/_verture/{index-c77ccb98.js → index-b892f976.js} +5 -1
  11. package/index.js +3 -3
  12. package/package.json +1 -1
  13. package/umd/AutoBox.js +2 -2
  14. package/umd/AutoTips.js +4 -4
  15. package/umd/Breadcrumbs.js +4 -4
  16. package/umd/Button.js +4 -4
  17. package/umd/ButtonGroup.js +4 -4
  18. package/umd/Cascader.js +3 -3
  19. package/umd/Checkbox.js +2 -2
  20. package/umd/CheckboxGroup.js +2 -2
  21. package/umd/Collapse.js +2 -2
  22. package/umd/CollapseBox.js +1 -1
  23. package/umd/ComboSelect.js +3 -3
  24. package/umd/CopyText.js +4 -4
  25. package/umd/CycleSelector.js +2 -2
  26. package/umd/DatePicker.js +4 -4
  27. package/umd/Descriptions.js +2 -2
  28. package/umd/Desktop.js +2 -2
  29. package/umd/Drawer.js +2 -2
  30. package/umd/Dropdown.js +2 -2
  31. package/umd/DynamicMultiBox.js +3 -3
  32. package/umd/Form.js +3 -3
  33. package/umd/FormItem.js +3 -3
  34. package/umd/FunctionModal.js +5 -5
  35. package/umd/Help.js +2 -2
  36. package/umd/InputLang.js +4 -4
  37. package/umd/InputNumber.js +2 -2
  38. package/umd/Label.js +2 -2
  39. package/umd/Menu.js +2 -2
  40. package/umd/Modal.js +6 -6
  41. package/umd/MultiBox.js +2 -2
  42. package/umd/Notification.js +1 -1
  43. package/umd/OperateBtn.js +2 -2
  44. package/umd/PageHeader.js +2 -2
  45. package/umd/Pagination.js +2 -2
  46. package/umd/PopConfirm.js +2 -2
  47. package/umd/PopMenu.js +2 -2
  48. package/umd/Popover.js +2 -2
  49. package/umd/Progress.js +1 -1
  50. package/umd/QuickReply.js +2 -2
  51. package/umd/Radio.js +2 -2
  52. package/umd/RadioGroup.js +2 -2
  53. package/umd/Search.js +2 -2
  54. package/umd/Select.js +2 -2
  55. package/umd/SelectInput.js +2 -2
  56. package/umd/Selector.js +2 -2
  57. package/umd/SelectorPicker.js +2 -2
  58. package/umd/SingleBox.js +2 -2
  59. package/umd/Slider.js +2 -2
  60. package/umd/Stepper.js +2 -2
  61. package/umd/Switch.js +2 -2
  62. package/umd/Table.js +2 -2
  63. package/umd/Tabs.js +2 -2
  64. package/umd/Tag.js +2 -2
  65. package/umd/TextEditor.js +17 -17
  66. package/umd/TextField.js +2 -2
  67. package/umd/TimePicker.js +4 -4
  68. package/umd/Title.js +6 -6
  69. package/umd/ToggleButton.js +4 -4
  70. package/umd/Tooltip.js +2 -2
  71. package/umd/Transfer.js +2 -2
  72. package/umd/Tree.js +2 -2
  73. package/umd/Upload.js +2 -2
  74. /package/_verture/{index-fa1ee687.js → index-4b965dd7.js} +0 -0
package/umd/Selector.js CHANGED
@@ -18,7 +18,7 @@ object-assign
18
18
  (c) Sindre Sorhus
19
19
  @license MIT
20
20
  */var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,i,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var s in a=Object(arguments[l]))n.call(a,s)&&(c[s]=a[s]);if(t){i=t(a);for(var u=0;u<i.length;u++)r.call(a,i[u])&&(c[i[u]]=a[i[u]])}}return c}},44785:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(64467),o=n(89379),a=n(3453),i=n(82284),c=n(39155),l=n(66588),s=n(8719),u=n(46942),p=n.n(u),d=n(80371),f=n(25931),m=n(25318),h=n(72137),v=n(58515);const b=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===(0,i.A)(e)&&(t=e.transitionSupport);var u=c.forwardRef((function(e,t){var i=e.visible,u=void 0===i||i,b=e.removeOnLeave,g=void 0===b||b,y=e.forceRender,x=e.children,w=e.motionName,k=e.leavedClassName,A=e.eventProps,O=n(e),E=(0,c.useRef)(),S=(0,c.useRef)();var C=(0,m.A)(O,u,(function(){try{return(0,l.A)(E.current||S.current)}catch(e){return null}}),e),j=(0,a.A)(C,4),P=j[0],M=j[1],N=j[2],T=j[3],_=c.useRef(T);T&&(_.current=!0);var D=(0,c.useRef)(t);D.current=t;var L,R=c.useCallback((function(e){E.current=e,(0,s.Xf)(D.current,e)}),[]),I=(0,o.A)((0,o.A)({},A),{},{visible:u});if(x)if(P!==f.SF&&n(e)){var z,H;M===f.px?H="prepare":(0,v.$m)(M)?H="active":M===f.Mv&&(H="start"),L=x((0,o.A)((0,o.A)({},I),{},{className:p()((0,d.by)(w,P),(z={},(0,r.A)(z,(0,d.by)(w,"".concat(P,"-").concat(H)),H),(0,r.A)(z,w,"string"==typeof w),z)),style:N}),R)}else L=T?x((0,o.A)({},I),R):!g&&_.current?x((0,o.A)((0,o.A)({},I),{},{className:k}),R):y?x((0,o.A)((0,o.A)({},I),{},{style:{display:"none"}}),R):null;else L=null;return c.createElement(h.A,{ref:S},L)}));return u.displayName="CSSMotion",u}(d.J1)},97333:(e,t,n)=>{"use strict";var r=n(58168),o=n(80045),a=n(89379),i=n(23029),c=n(92901),l=n(85501),s=n(29426),u=n(39155),p=n(44785),d=n(80371),f=n(29710),m=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.A,n=function(e){(0,l.A)(p,e);var n=(0,s.A)(p);function p(){var e;return(0,i.A)(this,p),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:(0,a.A)((0,a.A)({},e),{},{status:f.e8})}))}}))},e}return(0,c.A)(p,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,a=this.props,i=a.component,c=a.children,l=a.onVisibleChanged,s=(0,o.A)(a,["component","children","onVisibleChanged"]),p=i||u.Fragment,d={};return m.forEach((function(e){d[e]=s[e],delete s[e]})),delete s.keys,u.createElement(p,s,n.map((function(n){var a=n.status,i=(0,o.A)(n,["status"]),s=a===f.bK||a===f.xI;return u.createElement(t,(0,r.A)({},d,{key:i.key,visible:s,eventProps:i,onVisibleChanged:function(t){null==l||l(t,{key:i.key}),t||e.removeKey(i.key)}}),c)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=(0,f.Ss)(n);return{keyEntities:(0,f.y$)(r,o).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==f.e8||e.status!==f.au}))}}}]),p}(u.Component);n.defaultProps={component:"div"}}(d.J1)},72137:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(23029),o=n(92901),a=n(85501),i=n(29426),c=n(39155);const l=function(e){(0,a.A)(n,e);var t=(0,i.A)(n);function n(){return(0,r.A)(this,n),t.apply(this,arguments)}return(0,o.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component)},85849:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(39155),o=n(80371);const a=function(e){var t=(0,r.useRef)(),n=(0,r.useRef)(e);n.current=e;var a=r.useCallback((function(e){n.current(e)}),[]);function i(e){e&&(e.removeEventListener(o.m8,a),e.removeEventListener(o.Vc,a))}return r.useEffect((function(){return function(){i(t.current)}}),[]),[function(e){t.current&&t.current!==e&&i(t.current),e&&e!==t.current&&(e.addEventListener(o.m8,a),e.addEventListener(o.Vc,a),t.current=e)},i]}},43982:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(39155);const o=(0,n(20998).A)()?r.useLayoutEffect:r.useEffect},84560:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(39155),o=n(25371);const a=function(){var e=r.useRef(null);function t(){o.A.cancel(e.current)}return r.useEffect((function(){return function(){t()}}),[]),[function n(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=(0,o.A)((function(){a<=1?r({isCanceled:function(){return i!==e.current}}):n(r,a-1)}));e.current=i},t]}},92659:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(3453),o=n(39155);function a(e){var t=(0,o.useRef)(!1),n=(0,o.useState)(e),a=(0,r.A)(n,2),i=a[0],c=a[1];return(0,o.useEffect)((function(){return function(){t.current=!0}}),[]),[i,function(e){t.current||c(e)}]}},25318:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(89379),o=n(64467),a=n(3453),i=n(39155),c=n(25931),l=n(92659),s=n(43982),u=n(58515),p=n(85849);function d(e,t,n,d){var f=d.motionEnter,m=void 0===f||f,h=d.motionAppear,v=void 0===h||h,b=d.motionLeave,g=void 0===b||b,y=d.motionDeadline,x=d.motionLeaveImmediately,w=d.onAppearPrepare,k=d.onEnterPrepare,A=d.onLeavePrepare,O=d.onAppearStart,E=d.onEnterStart,S=d.onLeaveStart,C=d.onAppearActive,j=d.onEnterActive,P=d.onLeaveActive,M=d.onAppearEnd,N=d.onEnterEnd,T=d.onLeaveEnd,_=d.onVisibleChanged,D=(0,l.A)(),L=(0,a.A)(D,2),R=L[0],I=L[1],z=(0,l.A)(c.SF),H=(0,a.A)(z,2),F=H[0],B=H[1],V=(0,l.A)(null),Z=(0,a.A)(V,2),$=Z[0],U=Z[1],W=(0,i.useRef)(!1),q=(0,i.useRef)(null),Y=(0,i.useRef)(!1),K=(0,i.useRef)(null);function X(){return n()||K.current}var G=(0,i.useRef)(!1);function J(e){var t,n=X();e&&!e.deadline&&e.target!==n||(F===c.Tv&&G.current?t=null==M?void 0:M(n,e):F===c.Wd&&G.current?t=null==N?void 0:N(n,e):F===c.dp&&G.current&&(t=null==T?void 0:T(n,e)),!1===t||Y.current||(B(c.SF),U(null)))}var Q=(0,p.A)(J),ee=(0,a.A)(Q,1)[0],te=i.useMemo((function(){var e,t,n;switch(F){case"appear":return e={},(0,o.A)(e,c.px,w),(0,o.A)(e,c.Mv,O),(0,o.A)(e,c.m7,C),e;case"enter":return t={},(0,o.A)(t,c.px,k),(0,o.A)(t,c.Mv,E),(0,o.A)(t,c.m7,j),t;case"leave":return n={},(0,o.A)(n,c.px,A),(0,o.A)(n,c.Mv,S),(0,o.A)(n,c.m7,P),n;default:return{}}}),[F]),ne=(0,u.Ay)(F,(function(e){if(e===c.px){var t=te[c.px];return t?t(X()):u.es}var n;ae in te&&U((null===(n=te[ae])||void 0===n?void 0:n.call(te,X(),null))||null);return ae===c.m7&&(ee(X()),y>0&&(clearTimeout(q.current),q.current=setTimeout((function(){J({deadline:!0})}),y))),u.qB})),re=(0,a.A)(ne,2),oe=re[0],ae=re[1],ie=(0,u.$m)(ae);G.current=ie,(0,s.A)((function(){I(t);var n,r=W.current;(W.current=!0,e)&&(!r&&t&&v&&(n=c.Tv),r&&t&&m&&(n=c.Wd),(r&&!t&&g||!r&&x&&!t&&g)&&(n=c.dp),n&&(B(n),oe()))}),[t]),(0,i.useEffect)((function(){(F===c.Tv&&!v||F===c.Wd&&!m||F===c.dp&&!g)&&B(c.SF)}),[v,m,g]),(0,i.useEffect)((function(){return function(){clearTimeout(q.current),Y.current=!0}}),[]),(0,i.useEffect)((function(){void 0!==R&&F===c.SF&&(null==_||_(R))}),[R,F]);var ce=$;return te[c.px]&&ae===c.Mv&&(ce=(0,r.A)({transition:"none"},ce)),[F,ae,ce,null!=R?R:t]}},58515:(e,t,n)=>{"use strict";n.d(t,{$m:()=>p,Ay:()=>d,es:()=>s,qB:()=>u});var r=n(3453),o=n(39155),a=n(25931),i=n(43982),c=n(84560),l=[a.px,a.Mv,a.m7,a.Hs],s=!1,u=!0;function p(e){return e===a.m7||e===a.Hs}const d=function(e,t){var n=o.useState(a.cE),u=(0,r.A)(n,2),p=u[0],d=u[1],f=(0,c.A)(),m=(0,r.A)(f,2),h=m[0],v=m[1];return(0,i.A)((function(){if(p!==a.cE&&p!==a.Hs){var e=l.indexOf(p),n=l[e+1],r=t(p);r===s?d(n):h((function(e){function t(){e.isCanceled()||d(n)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,p]),o.useEffect((function(){return function(){v()}}),[]),[function(){d(a.px)},p]}},30156:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(44785);n(97333);const o=r.A},25931:(e,t,n)=>{"use strict";n.d(t,{Hs:()=>p,Mv:()=>s,SF:()=>r,Tv:()=>o,Wd:()=>a,cE:()=>c,dp:()=>i,m7:()=>u,px:()=>l});var r="none",o="appear",a="enter",i="leave",c="none",l="prepare",s="start",u="active",p="end"},29710:(e,t,n)=>{"use strict";n.d(t,{Ss:()=>u,au:()=>c,bK:()=>a,e8:()=>l,xI:()=>i,y$:()=>p});var r=n(89379),o=n(82284),a="add",i="keep",c="remove",l="removed";function s(e){var t;return t=e&&"object"===(0,o.A)(e)&&"key"in e?e:{key:e},(0,r.A)((0,r.A)({},t),{},{key:String(t.key)})}function u(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(s)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,l=t.length,s=u(e),p=u(t);s.forEach((function(e){for(var t=!1,s=o;s<l;s+=1){var u=p[s];if(u.key===e.key){o<s&&(n=n.concat(p.slice(o,s).map((function(e){return(0,r.A)((0,r.A)({},e),{},{status:a})}))),o=s),n.push((0,r.A)((0,r.A)({},u),{},{status:i})),o+=1,t=!0;break}}t||n.push((0,r.A)((0,r.A)({},e),{},{status:c}))})),o<l&&(n=n.concat(p.slice(o).map((function(e){return(0,r.A)((0,r.A)({},e),{},{status:a})}))));var d={};return n.forEach((function(e){var t=e.key;d[t]=(d[t]||0)+1})),Object.keys(d).filter((function(e){return d[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==c}))).forEach((function(t){t.key===e&&(t.status=i)}))})),n}},80371:(e,t,n)=>{"use strict";n.d(t,{J1:()=>v,Vc:()=>b,by:()=>y,m8:()=>g});var r=n(82284),o=n(20998);function a(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var i,c,l,s=(i=(0,o.A)(),c="undefined"!=typeof window?window:{},l={animationend:a("Animation","AnimationEnd"),transitionend:a("Transition","TransitionEnd")},i&&("AnimationEvent"in c||delete l.animationend.animation,"TransitionEvent"in c||delete l.transitionend.transition),l),u={};if((0,o.A)()){var p=document.createElement("div");u=p.style}var d={};function f(e){if(d[e])return d[e];var t=s[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in u)return d[e]=t[a],d[e]}return""}var m=f("animationend"),h=f("transitionend"),v=!(!m||!h),b=m||"animationend",g=h||"transitionend";function y(e,t){return e?"object"===(0,r.A)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}},34307:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(58168),o=n(82284),a=n(89379),i=n(80045),c=n(39155),l=n(1748),s={adjustX:1,adjustY:1},u=[0,0],p={left:{points:["cr","cl"],overflow:s,offset:[-4,0],targetOffset:u},right:{points:["cl","cr"],overflow:s,offset:[4,0],targetOffset:u},top:{points:["bc","tc"],overflow:s,offset:[0,-4],targetOffset:u},bottom:{points:["tc","bc"],overflow:s,offset:[0,4],targetOffset:u},topLeft:{points:["bl","tl"],overflow:s,offset:[0,-4],targetOffset:u},leftTop:{points:["tr","tl"],overflow:s,offset:[-4,0],targetOffset:u},topRight:{points:["br","tr"],overflow:s,offset:[0,-4],targetOffset:u},rightTop:{points:["tl","tr"],overflow:s,offset:[4,0],targetOffset:u},bottomRight:{points:["tr","br"],overflow:s,offset:[0,4],targetOffset:u},rightBottom:{points:["bl","br"],overflow:s,offset:[4,0],targetOffset:u},bottomLeft:{points:["tl","bl"],overflow:s,offset:[0,4],targetOffset:u},leftBottom:{points:["br","bl"],overflow:s,offset:[-4,0],targetOffset:u}};const d=function(e){var t=e.overlay,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle;return c.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t)};var f=function(e,t){var n=e.overlayClassName,s=e.trigger,u=void 0===s?["hover"]:s,f=e.mouseEnterDelay,m=void 0===f?0:f,h=e.mouseLeaveDelay,v=void 0===h?.1:h,b=e.overlayStyle,g=e.prefixCls,y=void 0===g?"rc-tooltip":g,x=e.children,w=e.onVisibleChange,k=e.afterVisibleChange,A=e.transitionName,O=e.animation,E=e.motion,S=e.placement,C=void 0===S?"right":S,j=e.align,P=void 0===j?{}:j,M=e.destroyTooltipOnHide,N=void 0!==M&&M,T=e.defaultVisible,_=e.getTooltipContainer,D=e.overlayInnerStyle,L=(0,i.A)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),R=(0,c.useRef)(null);(0,c.useImperativeHandle)(t,(function(){return R.current}));var I=(0,a.A)({},L);"visible"in e&&(I.popupVisible=e.visible);var z=!1,H=!1;if("boolean"==typeof N)z=N;else if(N&&"object"===(0,o.A)(N)){var F=N.keepParent;z=!0===F,H=!1===F}return c.createElement(l.A,(0,r.A)({popupClassName:n,prefixCls:y,popup:function(){var t=e.arrowContent,n=void 0===t?null:t,r=e.overlay,o=e.id;return[c.createElement("div",{className:"".concat(y,"-arrow"),key:"arrow"},n),c.createElement(d,{key:"content",prefixCls:y,id:o,overlay:r,overlayInnerStyle:D})]},action:u,builtinPlacements:p,popupPlacement:C,ref:R,popupAlign:P,getPopupContainer:_,onPopupVisibleChange:w,afterPopupVisibleChange:k,popupTransitionName:A,popupAnimation:O,popupMotion:E,defaultPopupVisible:T,destroyPopupOnHide:z,autoDestroy:H,mouseLeaveDelay:v,popupStyle:b,mouseEnterDelay:m},I),x)};const m=(0,c.forwardRef)(f)},94934:(e,t)=>{"use strict";t.DD=void 0;var n={adjustX:1,adjustY:1},r=[0,0],o={left:{points:["cr","cl"],overflow:n,offset:[-4,0],targetOffset:r},right:{points:["cl","cr"],overflow:n,offset:[4,0],targetOffset:r},top:{points:["bc","tc"],overflow:n,offset:[0,-4],targetOffset:r},bottom:{points:["tc","bc"],overflow:n,offset:[0,4],targetOffset:r},topLeft:{points:["bl","tl"],overflow:n,offset:[0,-4],targetOffset:r},leftTop:{points:["tr","tl"],overflow:n,offset:[-4,0],targetOffset:r},topRight:{points:["br","tr"],overflow:n,offset:[0,-4],targetOffset:r},rightTop:{points:["tl","tr"],overflow:n,offset:[4,0],targetOffset:r},bottomRight:{points:["tr","br"],overflow:n,offset:[0,4],targetOffset:r},rightBottom:{points:["bl","br"],overflow:n,offset:[4,0],targetOffset:r},bottomLeft:{points:["tl","bl"],overflow:n,offset:[0,4],targetOffset:r},leftBottom:{points:["br","bl"],overflow:n,offset:[-4,0],targetOffset:r}};t.DD=o},1748:(e,t,n)=>{"use strict";n.d(t,{A:()=>lt});var r=n(89379),o=n(58168),a=n(23029),i=n(92901),c=n(9417),l=n(85501),s=n(29426),u=n(64467),p=n(39155),d=n.n(p),f=n(69514),m=n.n(f),h=n(25371),v=n(54808),b=n(66588),g=n(8719),y=n(69916),x=n(88822),w=n(46942),k=n.n(w);function A(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var O=n(3453),E=n(80045),S=n(68430),C=n(30156);function j(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function P(e){var t=e.prefixCls,n=e.visible,a=e.zIndex,i=e.mask,c=e.maskMotion,l=e.maskAnimation,s=e.maskTransitionName;if(!i)return null;var u={};return(c||s||l)&&(u=(0,r.A)({motionAppear:!0},j({motion:c,prefixCls:t,transitionName:s,animation:l}))),p.createElement(C.A,(0,o.A)({},u,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return p.createElement("div",{style:{zIndex:a},className:k()("".concat(t,"-mask"),n)})}))}var M,N=n(82284);function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){L(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var R={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function I(){if(void 0!==M)return M;M="";var e=document.createElement("p").style;for(var t in R)t+"Transform"in e&&(M=t);return M}function z(){return I()?"".concat(I(),"TransitionProperty"):"transitionProperty"}function H(){return I()?"".concat(I(),"Transform"):"transform"}function F(e,t){var n=z();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function B(e,t){var n=H();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var V,Z=/matrix\((.*)\)/,$=/matrix3d\((.*)\)/;function U(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function W(e,t,n){var r=n;if("object"!==D(t))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):V(e,t);for(var o in t)t.hasOwnProperty(o)&&W(e,o,t[o])}function q(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function Y(e){return q(e)}function K(e){return q(e,!0)}function X(e){var t=function(e){var t,n,r,o=e.ownerDocument,a=o.body,i=o&&o.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top),{left:n-=i.clientLeft||a.clientLeft||0,top:r-=i.clientTop||a.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=Y(r),t.top+=K(r),t}function G(e){return null!=e&&e==e.window}function J(e){return G(e)?e.document:9===e.nodeType?e:e.ownerDocument}var Q=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),ee=/^(top|right|bottom|left)$/,te="currentStyle",ne="runtimeStyle",re="left";function oe(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function ae(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function ie(e,t,n){"static"===W(e,"position")&&(e.style.position="relative");var r=-999,o=-999,a=oe("left",n),i=oe("top",n),c=ae(a),l=ae(i);"left"!==a&&(r=999),"top"!==i&&(o=999);var s,u="",p=X(e);("left"in t||"top"in t)&&(u=(s=e).style.transitionProperty||s.style[z()]||"",F(e,"none")),"left"in t&&(e.style[c]="",e.style[a]="".concat(r,"px")),"top"in t&&(e.style[l]="",e.style[i]="".concat(o,"px")),U(e);var d=X(e),f={};for(var m in t)if(t.hasOwnProperty(m)){var h=oe(m,n),v="left"===m?r:o,b=p[m]-d[m];f[h]=h===m?v+b:v-b}W(e,f),U(e),("left"in t||"top"in t)&&F(e,u);var g={};for(var y in t)if(t.hasOwnProperty(y)){var x=oe(y,n),w=t[y]-p[y];g[x]=y===x?f[x]+w:f[x]-w}W(e,g)}function ce(e,t){var n=X(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(H());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(H());if(r&&"none"!==r){var o,a=r.match(Z);a?((o=(a=a[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,o[5]=t.y,B(e,"matrix(".concat(o.join(","),")"))):((o=r.match($)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,o[13]=t.y,B(e,"matrix3d(".concat(o.join(","),")")))}else B(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,o)}function le(e,t){for(var n=0;n<e.length;n++)t(e[n])}function se(e){return"border-box"===V(e,"boxSizing")}"undefined"!=typeof window&&(V=window.getComputedStyle?function(e,t,n){var r=n,o="",a=J(e);return(r=r||a.defaultView.getComputedStyle(e,null))&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e[te]&&e[te][t];if(Q.test(n)&&!ee.test(t)){var r=e.style,o=r[re],a=e[ne][re];e[ne][re]=e[te][re],r[re]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[re]=o,e[ne][re]=a}return""===n?"auto":n});var ue=["margin","border","padding"],pe=-1,de=2,fe=1;function me(e,t,n){var r,o,a,i=0;for(o=0;o<t.length;o++)if(r=t[o])for(a=0;a<n.length;a++){var c=void 0;c="border"===r?"".concat(r).concat(n[a],"Width"):r+n[a],i+=parseFloat(V(e,c))||0}return i}var he={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function ve(e,t,n){var r=n;if(G(e))return"width"===t?he.viewportWidth(e):he.viewportHeight(e);if(9===e.nodeType)return"width"===t?he.docWidth(e):he.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],a="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),i=se(e),c=0;(null==a||a<=0)&&(a=void 0,(null==(c=V(e,t))||Number(c)<0)&&(c=e.style[t]||0),c=Math.floor(parseFloat(c))||0),void 0===r&&(r=i?fe:pe);var l=void 0!==a||i,s=a||c;return r===pe?l?s-me(e,["border","padding"],o):c:l?r===fe?s:s+(r===de?-me(e,["border"],o):me(e,["margin"],o)):c+me(e,ue.slice(r),o)}le(["Width","Height"],(function(e){he["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],he["viewport".concat(e)](n))},he["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,a=r.documentElement[n];return"CSS1Compat"===r.compatMode&&a||o&&o[n]||a}}));var be={position:"absolute",visibility:"hidden",display:"block"};function ge(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return 0!==o.offsetWidth?r=ve.apply(void 0,t):function(e,t,n){var r,o={},a=e.style;for(r in t)t.hasOwnProperty(r)&&(o[r]=a[r],a[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(a[r]=o[r])}(o,be,(function(){r=ve.apply(void 0,t)})),r}function ye(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}le(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);he["outer".concat(t)]=function(t,n){return t&&ge(t,e,n?0:fe)};var n="width"===e?["Left","Right"]:["Top","Bottom"];he[e]=function(t,r){var o=r;return void 0!==o?t?(se(t)&&(o+=me(t,["padding","border"],n)),W(t,e,o)):void 0:t&&ge(t,e,pe)}}));var xe={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:J,offset:function(e,t,n){if(void 0===t)return X(e);!function(e,t,n){if(n.ignoreShake){var r=X(e),o=r.left.toFixed(0),a=r.top.toFixed(0),i=t.left.toFixed(0),c=t.top.toFixed(0);if(o===i&&a===c)return}n.useCssRight||n.useCssBottom?ie(e,t,n):n.useCssTransform&&H()in document.body.style?ce(e,t):ie(e,t,n)}(e,t,n||{})},isWindow:G,each:le,css:W,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:ye,getWindowScrollLeft:function(e){return Y(e)},getWindowScrollTop:function(e){return K(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)xe.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};ye(xe,he);var we=xe.getParent;function ke(e){if(xe.isWindow(e)||9===e.nodeType)return null;var t,n=xe.getDocument(e).body,r=xe.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:we(e);for(t=we(e);t&&t!==n&&9!==t.nodeType;t=we(t))if("static"!==(r=xe.css(t,"position")))return t;return null}var Ae=xe.getParent;function Oe(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=ke(e),o=xe.getDocument(e),a=o.defaultView||o.parentWindow,i=o.body,c=o.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===i||r===c||"visible"===xe.css(r,"overflow")){if(r===i||r===c)break}else{var l=xe.offset(r);l.left+=r.clientLeft,l.top+=r.clientTop,n.top=Math.max(n.top,l.top),n.right=Math.min(n.right,l.left+r.clientWidth),n.bottom=Math.min(n.bottom,l.top+r.clientHeight),n.left=Math.max(n.left,l.left)}r=ke(r)}var s=null;xe.isWindow(e)||9===e.nodeType||(s=e.style.position,"absolute"===xe.css(e,"position")&&(e.style.position="fixed"));var u=xe.getWindowScrollLeft(a),p=xe.getWindowScrollTop(a),d=xe.viewportWidth(a),f=xe.viewportHeight(a),m=c.scrollWidth,h=c.scrollHeight,v=window.getComputedStyle(i);if("hidden"===v.overflowX&&(m=a.innerWidth),"hidden"===v.overflowY&&(h=a.innerHeight),e.style&&(e.style.position=s),t||function(e){if(xe.isWindow(e)||9===e.nodeType)return!1;var t=xe.getDocument(e),n=t.body,r=null;for(r=Ae(e);r&&r!==n&&r!==t;r=Ae(r))if("fixed"===xe.css(r,"position"))return!0;return!1}(e))n.left=Math.max(n.left,u),n.top=Math.max(n.top,p),n.right=Math.min(n.right,u+d),n.bottom=Math.min(n.bottom,p+f);else{var b=Math.max(m,u+d);n.right=Math.min(n.right,b);var g=Math.max(h,p+f);n.bottom=Math.min(n.bottom,g)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Ee(e){var t,n,r;if(xe.isWindow(e)||9===e.nodeType){var o=xe.getWindow(e);t={left:xe.getWindowScrollLeft(o),top:xe.getWindowScrollTop(o)},n=xe.viewportWidth(o),r=xe.viewportHeight(o)}else t=xe.offset(e),n=xe.outerWidth(e),r=xe.outerHeight(e);return t.width=n,t.height=r,t}function Se(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,a=e.height,i=e.left,c=e.top;return"c"===n?c+=a/2:"b"===n&&(c+=a),"c"===r?i+=o/2:"r"===r&&(i+=o),{left:i,top:c}}function Ce(e,t,n,r,o){var a=Se(t,n[1]),i=Se(e,n[0]),c=[i.left-a.left,i.top-a.top];return{left:Math.round(e.left-c[0]+r[0]-o[0]),top:Math.round(e.top-c[1]+r[1]-o[1])}}function je(e,t,n){return e.left<n.left||e.left+t.width>n.right}function Pe(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function Me(e,t,n){var r=[];return xe.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function Ne(e,t){return e[t]=-e[t],e}function Te(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function _e(e,t){e[0]=Te(e[0],t.width),e[1]=Te(e[1],t.height)}function De(e,t,n,r){var o=n.points,a=n.offset||[0,0],i=n.targetOffset||[0,0],c=n.overflow,l=n.source||e;a=[].concat(a),i=[].concat(i);var s={},u=0,p=Oe(l,!(!(c=c||{})||!c.alwaysByViewport)),d=Ee(l);_e(a,d),_e(i,t);var f=Ce(d,t,o,a,i),m=xe.merge(d,f);if(p&&(c.adjustX||c.adjustY)&&r){if(c.adjustX&&je(f,d,p)){var h=Me(o,/[lr]/gi,{l:"r",r:"l"}),v=Ne(a,0),b=Ne(i,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(Ce(d,t,h,v,b),d,p)||(u=1,o=h,a=v,i=b)}if(c.adjustY&&Pe(f,d,p)){var g=Me(o,/[tb]/gi,{t:"b",b:"t"}),y=Ne(a,1),x=Ne(i,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(Ce(d,t,g,y,x),d,p)||(u=1,o=g,a=y,i=x)}u&&(f=Ce(d,t,o,a,i),xe.mix(m,f));var w=je(f,d,p),k=Pe(f,d,p);if(w||k){var A=o;w&&(A=Me(o,/[lr]/gi,{l:"r",r:"l"})),k&&(A=Me(o,/[tb]/gi,{t:"b",b:"t"})),o=A,a=n.offset||[0,0],i=n.targetOffset||[0,0]}s.adjustX=c.adjustX&&w,s.adjustY=c.adjustY&&k,(s.adjustX||s.adjustY)&&(m=function(e,t,n,r){var o=xe.clone(e),a={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+a.width>n.right&&(a.width-=o.left+a.width-n.right),r.adjustX&&o.left+a.width>n.right&&(o.left=Math.max(n.right-a.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+a.height>n.bottom&&(a.height-=o.top+a.height-n.bottom),r.adjustY&&o.top+a.height>n.bottom&&(o.top=Math.max(n.bottom-a.height,n.top)),xe.mix(o,a)}(f,d,p,s))}return m.width!==d.width&&xe.css(l,"width",xe.width(l)+m.width-d.width),m.height!==d.height&&xe.css(l,"height",xe.height(l)+m.height-d.height),xe.offset(l,{left:m.left,top:m.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:a,targetOffset:i,overflow:s}}function Le(e,t,n){var r=n.target||t,o=Ee(r),a=!function(e,t){var n=Oe(e,t),r=Ee(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return De(e,o,n,a)}Le.__getOffsetParent=ke,Le.__getVisibleRectForElement=Oe;var Re=n(43210),Ie=n(42467),ze=n(30981);var He=n(43591);function Fe(e,t){var n=null,r=null;var o=new He.default((function(e){var o=(0,O.A)(e,1)[0].target;if(document.documentElement.contains(o)){var a=o.getBoundingClientRect(),i=a.width,c=a.height,l=Math.floor(i),s=Math.floor(c);n===l&&r===s||Promise.resolve().then((function(){t({width:l,height:s})})),n=l,r=s}}));return e&&o.observe(e),function(){o.disconnect()}}function Be(e){return"function"!=typeof e?null:e()}function Ve(e){return"object"===(0,N.A)(e)&&e?e:null}var Ze=function(e,t){var n=e.children,r=e.disabled,o=e.target,a=e.align,i=e.onAlign,c=e.monitorWindowResize,l=e.monitorBufferTime,s=void 0===l?0:l,u=d().useRef({}),p=d().useRef(),f=d().Children.only(n),m=d().useRef({});m.current.disabled=r,m.current.target=o,m.current.align=a,m.current.onAlign=i;var h=function(e,t){var n=d().useRef(!1),r=d().useRef(null);function o(){window.clearTimeout(r.current)}return[function a(i){if(o(),n.current&&!0!==i)r.current=window.setTimeout((function(){n.current=!1,a()}),t);else{if(!1===e(i))return;n.current=!0,r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,o()}]}((function(){var e=m.current,t=e.disabled,n=e.target,r=e.align,o=e.onAlign,a=p.current;if(!t&&n&&a){var i,c=Be(n),l=Ve(n);u.current.element=c,u.current.point=l,u.current.align=r;var s=document.activeElement;return c&&(0,Ie.A)(c)?i=Le(a,c,r):l&&(i=function(e,t,n){var r,o,a=xe.getDocument(e),i=a.defaultView||a.parentWindow,c=xe.getWindowScrollLeft(i),l=xe.getWindowScrollTop(i),s=xe.viewportWidth(i),u=xe.viewportHeight(i),p={left:r="pageX"in t?t.pageX:c+t.clientX,top:o="pageY"in t?t.pageY:l+t.clientY,width:0,height:0},d=r>=0&&r<=c+s&&o>=0&&o<=l+u,f=[n.points[0],"cc"];return De(e,p,_(_({},n),{},{points:f}),d)}(a,l,r)),function(e,t){e!==document.activeElement&&(0,v.A)(t,e)&&"function"==typeof e.focus&&e.focus()}(s,a),o&&i&&o(a,i),!0}return!1}),s),b=(0,O.A)(h,2),x=b[0],w=b[1],k=d().useState(),A=(0,O.A)(k,2),E=A[0],S=A[1],C=d().useState(),j=(0,O.A)(C,2),P=j[0],M=j[1];return(0,ze.A)((function(){S(Be(o)),M(Ve(o))})),d().useEffect((function(){var e,t;u.current.element===E&&((e=u.current.point)===(t=P)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&(0,Re.A)(u.current.align,a)||x()})),d().useEffect((function(){return Fe(p.current,x)}),[p.current]),d().useEffect((function(){return Fe(E,x)}),[E]),d().useEffect((function(){r?w():x()}),[r]),d().useEffect((function(){if(c)return(0,y.A)(window,"resize",x).remove}),[c]),d().useEffect((function(){return function(){w()}}),[]),d().useImperativeHandle(t,(function(){return{forceAlign:function(){return x(!0)}}})),d().isValidElement(f)&&(f=d().cloneElement(f,{ref:(0,g.K4)(f.ref,p)})),f},$e=d().forwardRef(Ze);$e.displayName="Align";const Ue=$e;function We(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
21
- We=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof b?t:b,i=Object.create(a.prototype),c=new M(r||[]);return o(i,"_invoke",{value:S(e,n,c)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",f="suspendedYield",m="executing",h="completed",v={};function b(){}function g(){}function y(){}var x={};s(x,i,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(T([])));k&&k!==n&&r.call(k,i)&&(x=k);var A=y.prototype=b.prototype=Object.create(x);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,a,i,c){var l=p(e[o],e,a);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==(0,N.A)(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,c)}),(function(e){n("throw",e,i,c)})):t.resolve(u).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function S(t,n,r){var o=d;return function(a,i){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=C(c,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=p(t,n,r);if("normal"===s.type){if(o=r.done?h:f,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=h,r.method="throw",r.arg=s.arg)}}}function C(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=p(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function T(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError((0,N.A)(t)+" is not iterable")}return g.prototype=y,o(A,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:g,configurable:!0}),g.displayName=s(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,l,"GeneratorFunction")),e.prototype=Object.create(A),e},t.awrap=function(e){return{__await:e}},O(E.prototype),s(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new E(u(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},O(A),s(A,l,"Generator"),s(A,i,(function(){return this})),s(A,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=T,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}var qe=n(10467),Ye=n(1233),Ke=["measure","alignPre","align",null,"motion"];var Xe=p.forwardRef((function(e,t){var n=e.visible,a=e.prefixCls,i=e.className,c=e.style,l=e.children,s=e.zIndex,u=e.stretch,d=e.destroyPopupOnHide,f=e.forceRender,m=e.align,v=e.point,b=e.getRootDomNode,g=e.getClassNameFromAlign,y=e.onAlign,x=e.onMouseEnter,w=e.onMouseLeave,A=e.onMouseDown,E=e.onTouchStart,S=e.onClick,P=(0,p.useRef)(),M=(0,p.useRef)(),N=(0,p.useState)(),T=(0,O.A)(N,2),_=T[0],D=T[1],L=function(e){var t=p.useState({width:0,height:0}),n=(0,O.A)(t,2),r=n[0],o=n[1];return[p.useMemo((function(){var t={};if(e){var n=r.width,o=r.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,r]),function(e){var t=e.offsetWidth,n=e.offsetHeight,r=e.getBoundingClientRect(),a=r.width,i=r.height;Math.abs(t-a)<1&&Math.abs(n-i)<1&&(t=a,n=i),o({width:t,height:n})}]}(u),R=(0,O.A)(L,2),I=R[0],z=R[1];var H=function(e,t){var n=(0,Ye.A)(null),r=(0,O.A)(n,2),o=r[0],a=r[1],i=(0,p.useRef)();function c(e){a(e,!0)}function l(){h.A.cancel(i.current)}return(0,p.useEffect)((function(){c("measure")}),[e]),(0,p.useEffect)((function(){"measure"===o&&t(),o&&(i.current=(0,h.A)((0,qe.A)(We().mark((function e(){var t,n;return We().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Ke.indexOf(o),(n=Ke[t+1])&&-1!==t&&c(n);case 3:case"end":return e.stop()}}),e)})))))}),[o]),(0,p.useEffect)((function(){return function(){l()}}),[]),[o,function(e){l(),i.current=(0,h.A)((function(){c((function(e){switch(o){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){u&&z(b())})),F=(0,O.A)(H,2),B=F[0],V=F[1],Z=(0,p.useState)(0),$=(0,O.A)(Z,2),U=$[0],W=$[1],q=(0,p.useRef)();function Y(){var e;null===(e=P.current)||void 0===e||e.forceAlign()}function K(e,t){var n=g(t);_!==n&&D(n),W((function(e){return e+1})),"align"===B&&(null==y||y(e,t))}(0,ze.A)((function(){"alignPre"===B&&W(0)}),[B]),(0,ze.A)((function(){"align"===B&&(U<3?Y():V((function(){var e;null===(e=q.current)||void 0===e||e.call(q)})))}),[U]);var X=(0,r.A)({},j(e));function G(){return new Promise((function(e){q.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=X[e];X[e]=function(e,n){return V(),null==t?void 0:t(e,n)}})),p.useEffect((function(){X.motionName||"motion"!==B||V()}),[X.motionName,B]),p.useImperativeHandle(t,(function(){return{forceAlign:Y,getElement:function(){return M.current}}}));var J=(0,r.A)((0,r.A)({},I),{},{zIndex:s,opacity:"motion"!==B&&"stable"!==B&&n?0:void 0,pointerEvents:n||"stable"===B?void 0:"none"},c),Q=!0;null==m||!m.points||"align"!==B&&"stable"!==B||(Q=!1);var ee=l;return p.Children.count(l)>1&&(ee=p.createElement("div",{className:"".concat(a,"-content")},l)),p.createElement(C.A,(0,o.A)({visible:n,ref:M,leavedClassName:"".concat(a,"-hidden")},X,{onAppearPrepare:G,onEnterPrepare:G,removeOnLeave:d,forceRender:f}),(function(e,t){var n=e.className,o=e.style,c=k()(a,i,_,n);return p.createElement(Ue,{target:v||b,key:"popup",ref:P,monitorWindowResize:!0,disabled:Q,align:m,onAlign:K},p.createElement("div",{ref:t,className:c,onMouseEnter:x,onMouseLeave:w,onMouseDownCapture:A,onTouchStartCapture:E,onClick:S,style:(0,r.A)((0,r.A)({},o),J)},ee))}))}));Xe.displayName="PopupInner";const Ge=Xe;var Je=p.forwardRef((function(e,t){var n=e.prefixCls,a=e.visible,i=e.zIndex,c=e.children,l=e.mobile,s=(l=void 0===l?{}:l).popupClassName,u=l.popupStyle,d=l.popupMotion,f=void 0===d?{}:d,m=l.popupRender,h=e.onClick,v=p.useRef();p.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return v.current}}}));var b=(0,r.A)({zIndex:i},u),g=c;return p.Children.count(c)>1&&(g=p.createElement("div",{className:"".concat(n,"-content")},c)),m&&(g=m(g)),p.createElement(C.A,(0,o.A)({visible:a,ref:v,removeOnLeave:!0},f),(function(e,t){var o=e.className,a=e.style,i=k()(n,s,o);return p.createElement("div",{ref:t,className:i,onClick:h,style:(0,r.A)((0,r.A)({},a),b)},g)}))}));Je.displayName="MobilePopupInner";const Qe=Je;var et=["visible","mobile"],tt=p.forwardRef((function(e,t){var n=e.visible,a=e.mobile,i=(0,E.A)(e,et),c=(0,p.useState)(n),l=(0,O.A)(c,2),s=l[0],u=l[1],d=(0,p.useState)(!1),f=(0,O.A)(d,2),m=f[0],h=f[1],v=(0,r.A)((0,r.A)({},i),{},{visible:s});(0,p.useEffect)((function(){u(n),n&&a&&h((0,S.A)())}),[n,a]);var b=m?p.createElement(Qe,(0,o.A)({},v,{mobile:a,ref:t})):p.createElement(Ge,(0,o.A)({},v,{ref:t}));return p.createElement("div",null,p.createElement(P,v),b)}));tt.displayName="Popup";const nt=tt;const rt=p.createContext(null);function ot(){}function at(){return""}function it(e){return e?e.ownerDocument:window.document}var ct=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const lt=(st=x.A,ut=function(e){(0,l.A)(n,e);var t=(0,s.A)(n);function n(e){var r,i;return(0,a.A)(this,n),r=t.call(this,e),(0,u.A)((0,c.A)(r),"popupRef",p.createRef()),(0,u.A)((0,c.A)(r),"triggerRef",p.createRef()),(0,u.A)((0,c.A)(r),"portalContainer",void 0),(0,u.A)((0,c.A)(r),"attachId",void 0),(0,u.A)((0,c.A)(r),"clickOutsideHandler",void 0),(0,u.A)((0,c.A)(r),"touchOutsideHandler",void 0),(0,u.A)((0,c.A)(r),"contextMenuOutsideHandler1",void 0),(0,u.A)((0,c.A)(r),"contextMenuOutsideHandler2",void 0),(0,u.A)((0,c.A)(r),"mouseDownTimeout",void 0),(0,u.A)((0,c.A)(r),"focusTime",void 0),(0,u.A)((0,c.A)(r),"preClickTime",void 0),(0,u.A)((0,c.A)(r),"preTouchTime",void 0),(0,u.A)((0,c.A)(r),"delayTimer",void 0),(0,u.A)((0,c.A)(r),"hasPopupMouseDown",void 0),(0,u.A)((0,c.A)(r),"onMouseEnter",(function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)})),(0,u.A)((0,c.A)(r),"onMouseMove",(function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)})),(0,u.A)((0,c.A)(r),"onMouseLeave",(function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,u.A)((0,c.A)(r),"onPopupMouseEnter",(function(){r.clearDelayTimer()})),(0,u.A)((0,c.A)(r),"onPopupMouseLeave",(function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,v.A)(null===(t=r.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,u.A)((0,c.A)(r),"onFocus",(function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))})),(0,u.A)((0,c.A)(r),"onMouseDown",(function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()})),(0,u.A)((0,c.A)(r),"onTouchStart",(function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()})),(0,u.A)((0,c.A)(r),"onBlur",(function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)})),(0,u.A)((0,c.A)(r),"onContextMenu",(function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)})),(0,u.A)((0,c.A)(r),"onContextMenuClose",(function(){r.isContextMenuToShow()&&r.close()})),(0,u.A)((0,c.A)(r),"onClick",(function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),Math.abs(t-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)})),(0,u.A)((0,c.A)(r),"onPopupMouseDown",(function(){var e;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(e=r.context).onPopupMouseDown.apply(e,arguments)})),(0,u.A)((0,c.A)(r),"onDocumentClick",(function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),o=r.getPopupDomNode();(0,v.A)(n,t)&&!r.isContextMenuOnly()||(0,v.A)(o,t)||r.hasPopupMouseDown||r.close()}})),(0,u.A)((0,c.A)(r),"getRootDomNode",(function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=(0,b.A)(r.triggerRef.current);if(t)return t}catch(e){}return m().findDOMNode((0,c.A)(r))})),(0,u.A)((0,c.A)(r),"getPopupClassNameFromAlign",(function(e){var t=[],n=r.props,o=n.popupPlacement,a=n.builtinPlacements,i=n.prefixCls,c=n.alignPoint,l=n.getPopupClassNameFromAlign;return o&&a&&t.push(function(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var c=a[i];if(A(e[c].points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(a,i,e,c)),l&&t.push(l(e)),t.join(" ")})),(0,u.A)((0,c.A)(r),"getComponent",(function(){var e=r.props,t=e.prefixCls,n=e.destroyPopupOnHide,a=e.popupClassName,i=e.onPopupAlign,c=e.popupMotion,l=e.popupAnimation,s=e.popupTransitionName,u=e.popupStyle,d=e.mask,f=e.maskAnimation,m=e.maskTransitionName,h=e.maskMotion,v=e.zIndex,b=e.popup,g=e.stretch,y=e.alignPoint,x=e.mobile,w=e.forceRender,k=e.onPopupClick,A=r.state,O=A.popupVisible,E=A.point,S=r.getPopupAlign(),C={};return r.isMouseEnterToShow()&&(C.onMouseEnter=r.onPopupMouseEnter),r.isMouseLeaveToHide()&&(C.onMouseLeave=r.onPopupMouseLeave),C.onMouseDown=r.onPopupMouseDown,C.onTouchStart=r.onPopupMouseDown,p.createElement(nt,(0,o.A)({prefixCls:t,destroyPopupOnHide:n,visible:O,point:y&&E,className:a,align:S,onAlign:i,animation:l,getClassNameFromAlign:r.getPopupClassNameFromAlign},C,{stretch:g,getRootDomNode:r.getRootDomNode,style:u,mask:d,zIndex:v,transitionName:s,maskAnimation:f,maskTransitionName:m,maskMotion:h,ref:r.popupRef,motion:c,mobile:x,forceRender:w,onClick:k}),"function"==typeof b?b():b)})),(0,u.A)((0,c.A)(r),"attachParent",(function(e){h.A.cancel(r.attachId);var t,n=r.props,o=n.getPopupContainer,a=n.getDocument,i=r.getRootDomNode();o?(i||0===o.length)&&(t=o(i)):t=a(r.getRootDomNode()).body,t?t.appendChild(e):r.attachId=(0,h.A)((function(){r.attachParent(e)}))})),(0,u.A)((0,c.A)(r),"getContainer",(function(){if(!r.portalContainer){var e=(0,r.props.getDocument)(r.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",r.portalContainer=e}return r.attachParent(r.portalContainer),r.portalContainer})),(0,u.A)((0,c.A)(r),"setPoint",(function(e){r.props.alignPoint&&e&&r.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),(0,u.A)((0,c.A)(r),"handlePortalUpdate",(function(){r.state.prevPopupVisible!==r.state.popupVisible&&r.props.afterPopupVisibleChange(r.state.popupVisible)})),(0,u.A)((0,c.A)(r),"triggerContextValue",{onPopupMouseDown:r.onPopupMouseDown}),i="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,r.state={prevPopupVisible:i,popupVisible:i},ct.forEach((function(e){r["fire".concat(e)]=function(t){r.fireEvents(e,t)}})),r}return(0,i.A)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,y.A)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,y.A)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,y.A)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,y.A)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),h.A.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,n){var o=e[t]||{};return(0,r.A)((0,r.A)({},o),n)}(o,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var a=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,a),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,o=t.forceRender,a=t.alignPoint,i=t.className,c=t.autoDestroy,l=p.Children.only(n),s={key:"trigger"};this.isContextMenuToShow()?s.onContextMenu=this.onContextMenu:s.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(s.onClick=this.onClick,s.onMouseDown=this.onMouseDown,s.onTouchStart=this.onTouchStart):(s.onClick=this.createTwoChains("onClick"),s.onMouseDown=this.createTwoChains("onMouseDown"),s.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(s.onMouseEnter=this.onMouseEnter,a&&(s.onMouseMove=this.onMouseMove)):s.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?s.onMouseLeave=this.onMouseLeave:s.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(s.onFocus=this.onFocus,s.onBlur=this.onBlur):(s.onFocus=this.createTwoChains("onFocus"),s.onBlur=this.createTwoChains("onBlur"));var u=k()(l&&l.props&&l.props.className,i);u&&(s.className=u);var d=(0,r.A)({},s);(0,g.f3)(l)&&(d.ref=(0,g.K4)(this.triggerRef,l.ref));var f,m=p.cloneElement(l,d);return(e||this.popupRef.current||o)&&(f=p.createElement(st,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&c&&(f=null),p.createElement(rt.Provider,{value:this.triggerContextValue},m,f)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),n}(p.Component),(0,u.A)(ut,"contextType",rt),(0,u.A)(ut,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:at,getDocument:it,onPopupVisibleChange:ot,afterPopupVisibleChange:ot,onPopupAlign:ot,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),ut);var st,ut},69916:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(69514),o=n.n(r);function a(e,t,n,r){var a=o().unstable_batchedUpdates?function(e){o().unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,a,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,a,r)}}}},20998:(e,t,n)=>{"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{A:()=>r})},54808:(e,t,n)=>{"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{A:()=>r})},66588:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(39155),o=n.n(r),a=n(69514),i=n.n(a);function c(e){return function(e){return e instanceof HTMLElement||e instanceof SVGElement}(e)?e:e instanceof o().Component?i().findDOMNode(e):null}},42467:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1}},16928:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r={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 t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const o=r},88822:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(39155),o=n(69514),a=n.n(o),i=n(20998);const c=(0,r.forwardRef)((function(e,t){var n=e.didUpdate,o=e.getContainer,c=e.children,l=(0,r.useRef)(),s=(0,r.useRef)();(0,r.useImperativeHandle)(t,(function(){return{}}));var u=(0,r.useRef)(!1);return!u.current&&(0,i.A)()&&(s.current=o(),l.current=s.current.parentNode,u.current=!0),(0,r.useEffect)((function(){null==n||n(e)})),(0,r.useEffect)((function(){return null===s.current.parentNode&&null!==l.current&&l.current.appendChild(s.current),function(){var e;null===(e=s.current)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(s.current)}}),[]),s.current?a().createPortal(c,s.current):null}))},30981:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(39155),o=(0,n(20998).A)()?r.useLayoutEffect:r.useEffect,a=function(e,t){var n=r.useRef(!0);o((function(){return e(n.current)}),t),o((function(){return n.current=!1,function(){n.current=!0}}),[])};const i=a},28104:(e,t,n)=>{"use strict";n(39155)},1233:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(3453),o=n(39155);function a(e){var t=o.useRef(!1),n=o.useState(e),a=(0,r.A)(n,2),i=a[0],c=a[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[i,function(e,n){n&&t.current||c(e)}]}},43210:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(82284),o=n(68210);const a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=new Set;return function e(t,i){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,l=a.has(t);if((0,o.Ay)(!l,"Warning: There may be circular references"),l)return!1;if(t===i)return!0;if(n&&c>1)return!1;a.add(t);var s=c+1;if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(var u=0;u<t.length;u++)if(!e(t[u],i[u],s))return!1;return!0}if(t&&i&&"object"===(0,r.A)(t)&&"object"===(0,r.A)(i)){var p=Object.keys(t);return p.length===Object.keys(i).length&&p.every((function(n){return e(t[n],i[n],s)}))}return!1}(e,t)}},68430:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}},25371:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var a=0,i=new Map;function c(e){i.delete(e)}var l=function(e){var t=a+=1;return function n(o){if(0===o)c(t),e();else{var a=r((function(){n(o-1)}));i.set(t,a)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};l.cancel=function(e){var t=i.get(e);return c(e),o(t)};const s=l},8719:(e,t,n)=>{"use strict";n.d(t,{K4:()=>i,Xf:()=>a,f3:()=>c});var r=n(82284),o=(n(39155),n(44363));n(28104);function a(e,t){"function"==typeof e?e(t):"object"===(0,r.A)(e)&&e&&"current"in e&&(e.current=t)}function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){a(t,e)}))}}function c(e){var t,n,r=(0,o.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===o.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===o.ForwardRef)}},68210:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r={},o=[];function a(e,t){}function i(e,t){}function c(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function l(e,t){c(a,e,t)}l.preMessage=function(e){o.push(e)},l.resetWarned=function(){r={}},l.noteOnce=function(e,t){c(i,e,t)};const s=l},22799:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");
21
+ We=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof b?t:b,i=Object.create(a.prototype),c=new M(r||[]);return o(i,"_invoke",{value:S(e,n,c)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d="suspendedStart",f="suspendedYield",m="executing",h="completed",v={};function b(){}function g(){}function y(){}var x={};s(x,i,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(T([])));k&&k!==n&&r.call(k,i)&&(x=k);var A=y.prototype=b.prototype=Object.create(x);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,a,i,c){var l=p(e[o],e,a);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"==(0,N.A)(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,c)}),(function(e){n("throw",e,i,c)})):t.resolve(u).then((function(e){s.value=e,i(s)}),(function(e){return n("throw",e,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function S(t,n,r){var o=d;return function(a,i){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===a)throw i;return{value:e,done:!0}}for(r.method=a,r.arg=i;;){var c=r.delegate;if(c){var l=C(c,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=p(t,n,r);if("normal"===s.type){if(o=r.done?h:f,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=h,r.method="throw",r.arg=s.arg)}}}function C(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),v;var a=p(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,v;var i=a.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function T(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError((0,N.A)(t)+" is not iterable")}return g.prototype=y,o(A,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:g,configurable:!0}),g.displayName=s(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,l,"GeneratorFunction")),e.prototype=Object.create(A),e},t.awrap=function(e){return{__await:e}},O(E.prototype),s(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new E(u(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},O(A),s(A,l,"Generator"),s(A,i,(function(){return this})),s(A,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=T,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}var qe=n(10467),Ye=n(1233),Ke=["measure","alignPre","align",null,"motion"];var Xe=p.forwardRef((function(e,t){var n=e.visible,a=e.prefixCls,i=e.className,c=e.style,l=e.children,s=e.zIndex,u=e.stretch,d=e.destroyPopupOnHide,f=e.forceRender,m=e.align,v=e.point,b=e.getRootDomNode,g=e.getClassNameFromAlign,y=e.onAlign,x=e.onMouseEnter,w=e.onMouseLeave,A=e.onMouseDown,E=e.onTouchStart,S=e.onClick,P=(0,p.useRef)(),M=(0,p.useRef)(),N=(0,p.useState)(),T=(0,O.A)(N,2),_=T[0],D=T[1],L=function(e){var t=p.useState({width:0,height:0}),n=(0,O.A)(t,2),r=n[0],o=n[1];return[p.useMemo((function(){var t={};if(e){var n=r.width,o=r.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,r]),function(e){var t=e.offsetWidth,n=e.offsetHeight,r=e.getBoundingClientRect(),a=r.width,i=r.height;Math.abs(t-a)<1&&Math.abs(n-i)<1&&(t=a,n=i),o({width:t,height:n})}]}(u),R=(0,O.A)(L,2),I=R[0],z=R[1];var H=function(e,t){var n=(0,Ye.A)(null),r=(0,O.A)(n,2),o=r[0],a=r[1],i=(0,p.useRef)();function c(e){a(e,!0)}function l(){h.A.cancel(i.current)}return(0,p.useEffect)((function(){c("measure")}),[e]),(0,p.useEffect)((function(){"measure"===o&&t(),o&&(i.current=(0,h.A)((0,qe.A)(We().mark((function e(){var t,n;return We().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Ke.indexOf(o),(n=Ke[t+1])&&-1!==t&&c(n);case 3:case"end":return e.stop()}}),e)})))))}),[o]),(0,p.useEffect)((function(){return function(){l()}}),[]),[o,function(e){l(),i.current=(0,h.A)((function(){c((function(e){switch(o){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){u&&z(b())})),F=(0,O.A)(H,2),B=F[0],V=F[1],Z=(0,p.useState)(0),$=(0,O.A)(Z,2),U=$[0],W=$[1],q=(0,p.useRef)();function Y(){var e;null===(e=P.current)||void 0===e||e.forceAlign()}function K(e,t){var n=g(t);_!==n&&D(n),W((function(e){return e+1})),"align"===B&&(null==y||y(e,t))}(0,ze.A)((function(){"alignPre"===B&&W(0)}),[B]),(0,ze.A)((function(){"align"===B&&(U<3?Y():V((function(){var e;null===(e=q.current)||void 0===e||e.call(q)})))}),[U]);var X=(0,r.A)({},j(e));function G(){return new Promise((function(e){q.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=X[e];X[e]=function(e,n){return V(),null==t?void 0:t(e,n)}})),p.useEffect((function(){X.motionName||"motion"!==B||V()}),[X.motionName,B]),p.useImperativeHandle(t,(function(){return{forceAlign:Y,getElement:function(){return M.current}}}));var J=(0,r.A)((0,r.A)({},I),{},{zIndex:s,opacity:"motion"!==B&&"stable"!==B&&n?0:void 0,pointerEvents:n||"stable"===B?void 0:"none"},c),Q=!0;null==m||!m.points||"align"!==B&&"stable"!==B||(Q=!1);var ee=l;return p.Children.count(l)>1&&(ee=p.createElement("div",{className:"".concat(a,"-content")},l)),p.createElement(C.A,(0,o.A)({visible:n,ref:M,leavedClassName:"".concat(a,"-hidden")},X,{onAppearPrepare:G,onEnterPrepare:G,removeOnLeave:d,forceRender:f}),(function(e,t){var n=e.className,o=e.style,c=k()(a,i,_,n);return p.createElement(Ue,{target:v||b,key:"popup",ref:P,monitorWindowResize:!0,disabled:Q,align:m,onAlign:K},p.createElement("div",{ref:t,className:c,onMouseEnter:x,onMouseLeave:w,onMouseDownCapture:A,onTouchStartCapture:E,onClick:S,style:(0,r.A)((0,r.A)({},o),J)},ee))}))}));Xe.displayName="PopupInner";const Ge=Xe;var Je=p.forwardRef((function(e,t){var n=e.prefixCls,a=e.visible,i=e.zIndex,c=e.children,l=e.mobile,s=(l=void 0===l?{}:l).popupClassName,u=l.popupStyle,d=l.popupMotion,f=void 0===d?{}:d,m=l.popupRender,h=e.onClick,v=p.useRef();p.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return v.current}}}));var b=(0,r.A)({zIndex:i},u),g=c;return p.Children.count(c)>1&&(g=p.createElement("div",{className:"".concat(n,"-content")},c)),m&&(g=m(g)),p.createElement(C.A,(0,o.A)({visible:a,ref:v,removeOnLeave:!0},f),(function(e,t){var o=e.className,a=e.style,i=k()(n,s,o);return p.createElement("div",{ref:t,className:i,onClick:h,style:(0,r.A)((0,r.A)({},a),b)},g)}))}));Je.displayName="MobilePopupInner";const Qe=Je;var et=["visible","mobile"],tt=p.forwardRef((function(e,t){var n=e.visible,a=e.mobile,i=(0,E.A)(e,et),c=(0,p.useState)(n),l=(0,O.A)(c,2),s=l[0],u=l[1],d=(0,p.useState)(!1),f=(0,O.A)(d,2),m=f[0],h=f[1],v=(0,r.A)((0,r.A)({},i),{},{visible:s});(0,p.useEffect)((function(){u(n),n&&a&&h((0,S.A)())}),[n,a]);var b=m?p.createElement(Qe,(0,o.A)({},v,{mobile:a,ref:t})):p.createElement(Ge,(0,o.A)({},v,{ref:t}));return p.createElement("div",null,p.createElement(P,v),b)}));tt.displayName="Popup";const nt=tt;const rt=p.createContext(null);function ot(){}function at(){return""}function it(e){return e?e.ownerDocument:window.document}var ct=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];const lt=(st=x.A,ut=function(e){(0,l.A)(n,e);var t=(0,s.A)(n);function n(e){var r,i;return(0,a.A)(this,n),r=t.call(this,e),(0,u.A)((0,c.A)(r),"popupRef",p.createRef()),(0,u.A)((0,c.A)(r),"triggerRef",p.createRef()),(0,u.A)((0,c.A)(r),"portalContainer",void 0),(0,u.A)((0,c.A)(r),"attachId",void 0),(0,u.A)((0,c.A)(r),"clickOutsideHandler",void 0),(0,u.A)((0,c.A)(r),"touchOutsideHandler",void 0),(0,u.A)((0,c.A)(r),"contextMenuOutsideHandler1",void 0),(0,u.A)((0,c.A)(r),"contextMenuOutsideHandler2",void 0),(0,u.A)((0,c.A)(r),"mouseDownTimeout",void 0),(0,u.A)((0,c.A)(r),"focusTime",void 0),(0,u.A)((0,c.A)(r),"preClickTime",void 0),(0,u.A)((0,c.A)(r),"preTouchTime",void 0),(0,u.A)((0,c.A)(r),"delayTimer",void 0),(0,u.A)((0,c.A)(r),"hasPopupMouseDown",void 0),(0,u.A)((0,c.A)(r),"onMouseEnter",(function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)})),(0,u.A)((0,c.A)(r),"onMouseMove",(function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)})),(0,u.A)((0,c.A)(r),"onMouseLeave",(function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,u.A)((0,c.A)(r),"onPopupMouseEnter",(function(){r.clearDelayTimer()})),(0,u.A)((0,c.A)(r),"onPopupMouseLeave",(function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,v.A)(null===(t=r.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)})),(0,u.A)((0,c.A)(r),"onFocus",(function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))})),(0,u.A)((0,c.A)(r),"onMouseDown",(function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()})),(0,u.A)((0,c.A)(r),"onTouchStart",(function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()})),(0,u.A)((0,c.A)(r),"onBlur",(function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)})),(0,u.A)((0,c.A)(r),"onContextMenu",(function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)})),(0,u.A)((0,c.A)(r),"onContextMenuClose",(function(){r.isContextMenuToShow()&&r.close()})),(0,u.A)((0,c.A)(r),"onClick",(function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),Math.abs(t-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)})),(0,u.A)((0,c.A)(r),"onPopupMouseDown",(function(){var e;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(e=r.context).onPopupMouseDown.apply(e,arguments)})),(0,u.A)((0,c.A)(r),"onDocumentClick",(function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),o=r.getPopupDomNode();(0,v.A)(n,t)&&!r.isContextMenuOnly()||(0,v.A)(o,t)||r.hasPopupMouseDown||r.close()}})),(0,u.A)((0,c.A)(r),"getRootDomNode",(function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=(0,b.A)(r.triggerRef.current);if(t)return t}catch(e){}return m().findDOMNode((0,c.A)(r))})),(0,u.A)((0,c.A)(r),"getPopupClassNameFromAlign",(function(e){var t=[],n=r.props,o=n.popupPlacement,a=n.builtinPlacements,i=n.prefixCls,c=n.alignPoint,l=n.getPopupClassNameFromAlign;return o&&a&&t.push(function(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var c=a[i];if(A(e[c].points,o,r))return"".concat(t,"-placement-").concat(c)}return""}(a,i,e,c)),l&&t.push(l(e)),t.join(" ")})),(0,u.A)((0,c.A)(r),"getComponent",(function(){var e=r.props,t=e.prefixCls,n=e.destroyPopupOnHide,a=e.popupClassName,i=e.onPopupAlign,c=e.popupMotion,l=e.popupAnimation,s=e.popupTransitionName,u=e.popupStyle,d=e.mask,f=e.maskAnimation,m=e.maskTransitionName,h=e.maskMotion,v=e.zIndex,b=e.popup,g=e.stretch,y=e.alignPoint,x=e.mobile,w=e.forceRender,k=e.onPopupClick,A=r.state,O=A.popupVisible,E=A.point,S=r.getPopupAlign(),C={};return r.isMouseEnterToShow()&&(C.onMouseEnter=r.onPopupMouseEnter),r.isMouseLeaveToHide()&&(C.onMouseLeave=r.onPopupMouseLeave),C.onMouseDown=r.onPopupMouseDown,C.onTouchStart=r.onPopupMouseDown,p.createElement(nt,(0,o.A)({prefixCls:t,destroyPopupOnHide:n,visible:O,point:y&&E,className:a,align:S,onAlign:i,animation:l,getClassNameFromAlign:r.getPopupClassNameFromAlign},C,{stretch:g,getRootDomNode:r.getRootDomNode,style:u,mask:d,zIndex:v,transitionName:s,maskAnimation:f,maskTransitionName:m,maskMotion:h,ref:r.popupRef,motion:c,mobile:x,forceRender:w,onClick:k}),"function"==typeof b?b():b)})),(0,u.A)((0,c.A)(r),"attachParent",(function(e){h.A.cancel(r.attachId);var t,n=r.props,o=n.getPopupContainer,a=n.getDocument,i=r.getRootDomNode();o?(i||0===o.length)&&(t=o(i)):t=a(r.getRootDomNode()).body,t?t.appendChild(e):r.attachId=(0,h.A)((function(){r.attachParent(e)}))})),(0,u.A)((0,c.A)(r),"getContainer",(function(){if(!r.portalContainer){var e=(0,r.props.getDocument)(r.getRootDomNode()).createElement("div");e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",r.portalContainer=e}return r.attachParent(r.portalContainer),r.portalContainer})),(0,u.A)((0,c.A)(r),"setPoint",(function(e){r.props.alignPoint&&e&&r.setState({point:{pageX:e.pageX,pageY:e.pageY}})})),(0,u.A)((0,c.A)(r),"handlePortalUpdate",(function(){r.state.prevPopupVisible!==r.state.popupVisible&&r.props.afterPopupVisibleChange(r.state.popupVisible)})),(0,u.A)((0,c.A)(r),"triggerContextValue",{onPopupMouseDown:r.onPopupMouseDown}),i="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,r.state={prevPopupVisible:i,popupVisible:i},ct.forEach((function(e){r["fire".concat(e)]=function(t){r.fireEvents(e,t)}})),r}return(0,i.A)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,y.A)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,y.A)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=(0,y.A)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=(0,y.A)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),h.A.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,n){var o=e[t]||{};return(0,r.A)((0,r.A)({},o),n)}(o,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var a=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,a),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,o=t.forceRender,a=t.alignPoint,i=t.className,c=t.autoDestroy,l=p.Children.only(n),s={key:"trigger"};this.isContextMenuToShow()?s.onContextMenu=this.onContextMenu:s.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(s.onClick=this.onClick,s.onMouseDown=this.onMouseDown,s.onTouchStart=this.onTouchStart):(s.onClick=this.createTwoChains("onClick"),s.onMouseDown=this.createTwoChains("onMouseDown"),s.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(s.onMouseEnter=this.onMouseEnter,a&&(s.onMouseMove=this.onMouseMove)):s.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?s.onMouseLeave=this.onMouseLeave:s.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(s.onFocus=this.onFocus,s.onBlur=this.onBlur):(s.onFocus=this.createTwoChains("onFocus"),s.onBlur=this.createTwoChains("onBlur"));var u=k()(l&&l.props&&l.props.className,i);u&&(s.className=u);var d=(0,r.A)({},s);(0,g.f3)(l)&&(d.ref=(0,g.K4)(this.triggerRef,l.ref));var f,m=p.cloneElement(l,d);return(e||this.popupRef.current||o)&&(f=p.createElement(st,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&c&&(f=null),p.createElement(rt.Provider,{value:this.triggerContextValue},m,f)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),n}(p.Component),(0,u.A)(ut,"contextType",rt),(0,u.A)(ut,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:at,getDocument:it,onPopupVisibleChange:ot,afterPopupVisibleChange:ot,onPopupAlign:ot,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),ut);var st,ut},69916:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(69514),o=n.n(r);function a(e,t,n,r){var a=o().unstable_batchedUpdates?function(e){o().unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,a,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,a,r)}}}},20998:(e,t,n)=>{"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{A:()=>r})},54808:(e,t,n)=>{"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{A:()=>r})},66588:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(39155),o=n.n(r),a=n(69514),i=n.n(a);function c(e){return function(e){return e instanceof HTMLElement||e instanceof SVGElement}(e)?e:e instanceof o().Component?i().findDOMNode(e):null}},42467:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1}},16928:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r={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 t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const o=r},88822:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(39155),o=n(69514),a=n.n(o),i=n(20998);const c=(0,r.forwardRef)((function(e,t){var n=e.didUpdate,o=e.getContainer,c=e.children,l=(0,r.useRef)(),s=(0,r.useRef)();(0,r.useImperativeHandle)(t,(function(){return{}}));var u=(0,r.useRef)(!1);return!u.current&&(0,i.A)()&&(s.current=o(),l.current=s.current.parentNode,u.current=!0),(0,r.useEffect)((function(){null==n||n(e)})),(0,r.useEffect)((function(){return null===s.current.parentNode&&null!==l.current&&l.current.appendChild(s.current),function(){var e;null===(e=s.current)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(s.current)}}),[]),s.current?a().createPortal(c,s.current):null}))},30981:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(39155),o=(0,n(20998).A)()?r.useLayoutEffect:r.useEffect,a=function(e,t){var n=r.useRef(!0);o((function(){return e(n.current)}),t),o((function(){return n.current=!1,function(){n.current=!0}}),[])};const i=a},28104:(e,t,n)=>{"use strict";n(39155)},1233:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(3453),o=n(39155);function a(e){var t=o.useRef(!1),n=o.useState(e),a=(0,r.A)(n,2),i=a[0],c=a[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[i,function(e,n){n&&t.current||c(e)}]}},43210:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(82284),o=n(68210);const a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=new Set;return function e(t,i){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,l=a.has(t);if((0,o.Ay)(!l,"Warning: There may be circular references"),l)return!1;if(t===i)return!0;if(n&&c>1)return!1;a.add(t);var s=c+1;if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(var u=0;u<t.length;u++)if(!e(t[u],i[u],s))return!1;return!0}if(t&&i&&"object"===(0,r.A)(t)&&"object"===(0,r.A)(i)){var p=Object.keys(t);return p.length===Object.keys(i).length&&p.every((function(n){return e(t[n],i[n],s)}))}return!1}(e,t)}},68430:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}},25371:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var a=0,i=new Map;function c(e){i.delete(e)}var l=function(e){var t=a+=1;return function n(o){if(0===o)c(t),e();else{var a=r((function(){n(o-1)}));i.set(t,a)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};l.cancel=function(e){var t=i.get(e);return c(e),o(t)};const s=l},8719:(e,t,n)=>{"use strict";n.d(t,{K4:()=>i,Xf:()=>a,f3:()=>c});var r=n(82284),o=(n(39155),n(44363)),a=(n(28104),function(e,t){"function"==typeof e?e(t):"object"===(0,r.A)(e)&&e&&"current"in e&&(e.current=t)}),i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach((function(t){a(t,e)}))}},c=function(e){var t,n,r=(0,o.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===o.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===o.ForwardRef)}},68210:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r={},o=[];function a(e,t){}function i(e,t){}function c(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function l(e,t){c(a,e,t)}l.preMessage=function(e){o.push(e)},l.resetWarned=function(){r={}},l.noteOnce=function(e,t){c(i,e,t)};const s=l},22799:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");
22
22
  /**
23
23
  * @license React
24
24
  * react-is.production.min.js
@@ -40,4 +40,4 @@ We=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Objec
40
40
  Copyright (c) 2018 Jed Watson.
41
41
  Licensed under the MIT License (MIT), see
42
42
  http://jedwatson.github.io/classnames
43
- */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},43145:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},96369:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},10467:(e,t,n)=>{"use strict";function r(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function c(e){r(i,o,a,c,l,"next",e)}function l(e){r(i,o,a,c,l,"throw",e)}c(void 0)}))}}n.d(t,{A:()=>o})},23029:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},92901:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(49922);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.A)(o.key),o)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},29426:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(53954),o=n(52176),a=n(56822);function i(e){var t=(0,o.A)();return function(){var n,o=(0,r.A)(e);if(t){var i=(0,r.A)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return(0,a.A)(this,n)}}},64467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(49922);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},58168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},53954:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},85501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(63662);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},52176:(e,t,n)=>{"use strict";function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(r=function(){return!!e})()}n.d(t,{A:()=>r})},6986:(e,t,n)=>{"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}n.d(t,{A:()=>r})},76562:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},89379:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(64467);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},80045:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(98587);function o(e,t){if(null==e)return{};var n,o,a=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},98587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{A:()=>r})},56822:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(82284),o=n(9417);function a(e,t){if(t&&("object"===(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},63662:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},3453:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(96369),o=n(6986),a=n(27800),i=n(76562);function c(e,t){return(0,r.A)(e)||(0,o.A)(e,t)||(0,a.A)(e,t)||(0,i.A)()}},92327:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(82284);function o(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},49922:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(82284),o=n(92327);function a(e){var t=(0,o.A)(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},82284:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},27800:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(43145);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,exports:{}};return r[e].call(n.exports,n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nc=void 0;var i={};return(()=>{"use strict";a.r(i),a.d(i,{default:()=>ie,handFieldConfig:()=>ae});var e=a(39155),t=a.n(e),n=a(52789),r=a(20855),o=a(89315),c=a(69004),l=a(7192),s=a(39864),u=a(14552),p=a(7569);const d={zh:{root:"根",selectAll:"全选",seeMore:"查看更多",selected:"已选",pleaseEnter:"请输入",searchResult:"搜索结果",detail:"详情",child:"下级"},en:{root:"root",selectAll:"Select all",seeMore:"See more",selected:"Selected",pleaseEnter:"Please enter",searchResult:"Search result",detail:"Details",child:"Level"}};a(19737);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}const b=function(a){var i,f,b,g=a.className,y=a.style,x=a.nodeMode,w=void 0===x?"branch":x,k=a.useCase,A=void 0===k?"view":k,O=a.img,E=a.selectMode,S=a.mainTitle,C=a.subTitle,j=a.tag,P=a.tagStyle,M=a.detail,N=a.detailRender,T=a.leftRender,_=a.child,D=a.close,L=a.checked,R=a.indeterminate,I=a.disabled,z=a.disabledChild,H=a.onLevel,F=a.onSelect,B=a.onClose,V=(0,p.A)("Selector",d),Z=h((0,e.useState)(),2),$=Z[0],U=Z[1],W=h((0,e.useState)(!1),2),q=W[0],Y=W[1],K=(0,e.useRef)(),X=function(e){e.stopPropagation()},G=(i=function(e){var t;return v(this,(function(n){switch(n.label){case 0:return N?(Y(!1),e?(Y(!0),K.current&&K.current.classList.add("selector-detail-popover-content-loading"),[4,N()]):[2,U(null)]):[2];case 1:return t=n.sent(),K.current&&K.current.classList.remove("selector-detail-popover-content-loading"),Y(!1),U(t),[2]}}))},f=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=i.apply(e,t);function a(e){m(o,n,r,a,c,"next",e)}function c(e){m(o,n,r,a,c,"throw",e)}a(void 0)}))},function(e){return f.apply(this,arguments)});return t().createElement("div",{className:(b="".concat(u.n,"-selector-node"),b+=" ".concat(u.n,"-selector-node-").concat(A),b+=" ".concat(u.n,"-selector-node-").concat(w),I&&(b+=" ".concat(u.n,"-selector-node-disabled")),z&&(b+=" ".concat(u.n,"-selector-node-disabled-child")),O&&(b+=" ".concat(u.n,"-selector-node-img")),g&&(b+=" ".concat(g)),b),style:y,onClick:function(){I||F&&F()}},t().createElement("div",{className:"selector-node-left"},T?T():t().createElement(t().Fragment,null,"radio"===E?t().createElement(n.default,{size:"small",className:"selector-node-radio",checked:L,disabled:I}):"check"===E?t().createElement(r.default,{size:"small",className:"selector-node-check",checked:L,disabled:I,indeterminate:R}):null,function(){if(!O)return null;var e=O;return"string"==typeof O&&(e=t().createElement("img",{src:O})),t().createElement("span",{className:"node-img"},e)}(),"branch"===w?t().createElement(t().Fragment,null,S&&t().createElement("span",{className:"main-title"},t().createElement(c.default,null,S)),C&&t().createElement("span",{className:"sub-title"},t().createElement(c.default,null,C)),j&&t().createElement("span",{className:"tag",style:P},j)):"leaf"===w?t().createElement("div",{className:"title-box"},t().createElement("div",{className:"main-title-box"},S&&t().createElement("span",{className:"main-title"},t().createElement(c.default,null,S)),j&&t().createElement("span",{className:"tag",style:P},j)),C&&t().createElement("div",{className:"sub-title"},t().createElement(c.default,null,C))):void 0)),t().createElement("div",{className:"selector-node-right"},M?t().createElement(o.default,{content:t().createElement("div",{className:"selector-detail-popover-content",ref:K},$,q&&t().createElement(l.default,null)),trigger:"hover",placement:"bottomRight",overlayClassName:"".concat(u.n,"-selector-detail"),onVisibleChange:G},t().createElement("span",{className:"detail",onClick:X},V({id:"detail"}))):null,M&&_&&t().createElement("span",{className:"line"}),_&&t().createElement("span",{className:"lower-child",onClick:function(e){e.stopPropagation(),I||z||H&&H()}},V({id:"child"})),M&&D&&t().createElement("span",{className:"line"}),D&&t().createElement("span",{className:"close",onClick:function(e){e.stopPropagation(),B&&B()}},t().createElement(s.A,null))))};var g=a(78948),y=a(69368),x=a(27788),w=a(77424),k=a(74848),A=a(55307),O=function(e){return(0,k.jsx)(A.A,Object.assign({dataName:"Refresh",viewBox:"0 0 24 24",path:(0,k.jsx)(k.Fragment,{children:(0,k.jsxs)("g",Object.assign({id:"Refresh",transform:"translate(-288 -96)"},{children:[(0,k.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(288 96)",fill:"none"}),(0,k.jsx)("path",{id:"icon",d:"M2.164,13.915c-.044-.06-.086-.124-.13-.185l-.493,1.222a.8.8,0,0,1-.743.5.791.791,0,0,1-.3-.059.8.8,0,0,1-.444-1.04l1.282-3.179a.8.8,0,0,1,1.037-.444L5.572,12a.8.8,0,1,1-.592,1.487L3.369,12.85c.025.034.048.07.073.1A6.983,6.983,0,0,0,16,8.806a.8.8,0,1,1,1.6,0,8.584,8.584,0,0,1-15.439,5.11ZM.262,8.528A8.584,8.584,0,0,1,15.7,3.419c.04.052.075.108.114.161l.509-1.262a.8.8,0,1,1,1.483.6L16.528,6.094a.8.8,0,0,1-1.038.444l-3.2-1.272a.8.8,0,0,1,.592-1.487l1.548.617-.01-.013A6.982,6.982,0,0,0,1.863,8.528a.8.8,0,0,1-1.6,0Z",transform:"translate(291.067 99.333)"})]}))})},e))},E=a(32663);a(61788);function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function j(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){C(a,r,o,i,c,"next",e)}function c(e){C(a,r,o,i,c,"throw",e)}i(void 0)}))}}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){P(e,t,n[t])}))}return e}function T(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}var L=function(n){var r=n.className,o=n.value,a=(n.rowKey,n.nodeMode),i=void 0===a?"branch":a,c=n.selectMode,l=n.loadMore,s=void 0!==l&&l,u=n.isAllCheck,f=void 0!==u&&u,m=n.detail,h=n.detailRender,v=n.isLazy,g=n.list,w=n.groupType,k=n.breadcrumbs,A=n.breadcrumbsSeparator,O=void 0===A?"-":A,S=n.breadcrumbsList,C=void 0===S?[]:S,P=n.fieldConfig,L=n.disabled,R=n.disabledChild,I=n.emptyProps,z=n.loading,H=n.onClickBreadcrumbs,F=n.onLevel,B=n.onSelect,V=n.onLoad,Z=n.onAllCheck,$=(0,p.A)("Selector",d),U=_((0,e.useState)({}),2),W=U[0],q=U[1],Y=(0,e.useRef)({listTypeJson:{},fieldConfig:{},resizeTimer:null}),K=(0,e.useRef)(null),X=(0,e.useRef)(null);Y.current.listTypeJson=(0,E.ArrayToObject)("value",w),Y.current.fieldConfig=P||{},(0,e.useEffect)((function(){return J(),function(){clearTimeout(Y.current.resizeTimer)}}),[]),(0,e.useEffect)((function(){if(g&&w&&w.length>0){for(var e={},t=0,n=g.length;t<n;t++){var r=g[t],o=r.type;e[o]||(e[o]=[]),e[o].push(r)}q(e)}}),[g]);var G,J=function(){clearTimeout(Y.current.resizeTimer),Y.current.resizeTimer=setTimeout((function(){Q()}),100)},Q=function(){if(X.current&&K.current){var e=K.current,t=X.current;t.classList.remove("selector-main-list-scroll-top","selector-main-list-scroll-bottom","selector-main-list-scroll-middle"),e.scrollHeight<=e.clientHeight||(0!==e.scrollTop?e.clientHeight+e.scrollTop!==e.scrollHeight?t.classList.add("selector-main-list-scroll-middle"):t.classList.add("selector-main-list-scroll-bottom"):t.classList.add("selector-main-list-scroll-top"))}},ee=function(e){if(L){if(!0===L)return!0;if(M(L,Array)&&e.key&&-1!==L.indexOf(e.key))return!0}return!!e.disabled},te=function(e){if(R){if(!0===R)return!0;if(M(R,Array)&&e.key&&-1!==R.indexOf(e.key))return!0}return!!e.disabledChild},ne=function(){if(!f||"check"!==c)return null;var e=function(){var e={checked:!1,indeterminate:!1};if(!o||!g||0===g.length)return e;for(var t=0,n=g.length;t<n;t++){var r=g[t],a=r.key;ee(r)?o[a]&&(e.checked=!0):o[a]?e.checked=!0:e.indeterminate=!0}return e.checked&&e.indeterminate?(e.checked=!1,e):!e.checked&&e.indeterminate?(e.indeterminate=!1,e):e}();return t().createElement(b,T(N({disabled:!0===L,nodeMode:"branch",mainTitle:$({id:"selectAll"}),selectMode:"check"},e),{onSelect:function(){var t=!0;e.checked&&(t=!1),Z&&Z(t)},className:"selector-all-check"}))},re=function(){V&&V()},oe=function(e){var t=!1;return o&&o[e.key]&&(t=!0),t},ae=function(e){return null==e?void 0:e.map((function(e,n){return t().createElement(b,N({key:n},function(e){var t={useCase:"view",detail:m,nodeMode:i,disabled:ee(e),disabledChild:te(e),onLevel:function(){return F&&F(e)},onSelect:function(){return B&&B(e)},checked:oe(e)};void 0!==e.leaf&&(t.nodeMode=e.leaf?"leaf":"branch");for(var n=["img","mainTitle","subTitle","tag","tagStyle"],r=0,o=n.length;r<o;r++){var a=n[r];t[a]=e[a]}if(!1!==e.choice&&c&&(t.selectMode=c),v)t.child=e.child;else{var l=e.children||[];l&&l.length>0&&(t.child=!0),void 0!==e.child&&(t.child=e.child)}return h&&(t.detailRender=j((function(){return D(this,(function(t){switch(t.label){case 0:return[4,h(e,!0)];case 1:return[2,t.sent()]}}))}))),void 0!==e.detail&&(t.detail=e.detail),t}(e)))}))},ie=function(e){H&&H(e)};return J(),t().createElement("div",{className:(G="selector-main-content",r&&(G+=" ".concat(r)),L&&(G+=" selector-main-content-disabled"),f&&"check"===c&&(G+=" selector-main-content-all-check"),s&&(G+=" selector-main-content-load-more"),G)},k&&0!==C.length?t().createElement("div",{className:"nav-box"},t().createElement(y.default,{list:C,separator:O,onClickItem:ie})):null,0!==(null==g?void 0:g.length)||z?t().createElement("div",{className:"selector-main-list"},ne(),t().createElement("div",{className:"selector-main-list-content",ref:X},t().createElement("div",{className:"selector-main-list-content-box",ref:K,onScroll:Q},w&&w.length>0?t().createElement(t().Fragment,null,w.map((function(n,r){var o=n.value,a=W[o]||[],i="selector-group-title";return 0===r&&(i+=" selector-group-title-first"),t().createElement(e.Fragment,{key:r},a.length>0&&t().createElement("div",{className:i},n.label||o),ae(a))}))):ae(g||[]))),s?t().createElement("div",{className:"selector-main-list-more",onClick:re},t().createElement("span",{className:"more-btn"},$({id:"seeMore"}))):null):t().createElement("div",{className:"selector-main-list-no-data"},t().createElement(x.default,T(N({},I),{size:(null==I?void 0:I.size)||"small"}))))};const R=function(n){var r=n.className,o=n.style,a=n.url,i=n.value,c=n.rowKey,s=void 0===c?"key":c,f=n.nodeMode,m=void 0===f?"branch":f,h=n.selectMode,v=n.loadMore,b=void 0!==v&&v,y=n.searchLoadMore,x=void 0!==y&&y,k=n.isAllCheck,A=void 0!==k&&k,E=n.disabled,S=n.disabledChild,C=n.detail,j=n.detailRender,P=n.isLazy,M=n.list,N=n.groupType,T=n.groupRange,D=n.search,R=n.searchVal,I=void 0===R?"":R,z=n.searchPlaceholder,H=n.searchTrigger,F=n.searchLoading,B=n.searchList,V=n.loading,Z=n.breadcrumbs,$=n.breadcrumbsSeparator,U=void 0===$?"-":$,W=n.breadcrumbsList,q=void 0===W?[]:W,Y=n.fieldConfig,K=n.onClickBreadcrumbs,X=n.onLevel,G=n.onSelect,J=n.onLoad,Q=n.onAllCheck,ee=n.onSearch,te=n.onRefresh,ne=(0,p.A)("Selector",d),re=_((0,e.useState)(!1),2),oe=re[0],ae=re[1],ie=_((0,e.useState)(""),2),ce=ie[0],le=ie[1],se=(0,e.useRef)({searchTimer:null,searchStr:""});(0,e.useEffect)((function(){I&&(se.current.searchStr=I.val,le(I.val),""!==I.val&&ae(!0))}),[I]);var ue,pe=function(e){le(e),se.current.searchStr=e,"onEnter"!==H&&he()},de=function(){he(!0)},fe=function(){he(!0)},me=function(){he()},he=function(e){clearTimeout(se.current.searchTimer),se.current.searchTimer=setTimeout((function(){ae(!!se.current.searchStr),ee&&ee(se.current.searchStr,!!e)}),300)},ve=function(e){return function(t){e&&(se.current.searchStr="",le(""),ae(!1)),X&&X(t,e)}},be=function(e){return function(){J&&J(e)}};return t().createElement("div",{className:(ue="".concat(u.n,"-selector-main"),r&&(ue+=" ".concat(r)),"check"===h&&(ue+=" ".concat(u.n,"-selector-main-select")),oe&&(ue+=" ".concat(u.n,"-selector-main-show-search")),D&&(ue+=" ".concat(u.n,"-selector-main-search")),!0===E&&(ue+=" ".concat(u.n,"-selector-main-disabled")),ue),style:o},t().createElement(t().Fragment,null,D&&t().createElement(g.default,{className:"selectot-main-search",value:ce,rightIconExist:!0,showBtn:!1,rightIcon:ce?t().createElement(w.A,null):a||te?t().createElement(O,null):null,btnType:"inside",onChange:pe,onEnter:de,onClear:me,placeholder:z||ne({id:"pleaseEnter"}),onClickBtn:fe})),t().createElement("div",{className:"selector-main-box"},t().createElement(L,{key:"list",className:"selector-main-list-box",value:i,rowKey:s,nodeMode:m,selectMode:h,loadMore:b,isAllCheck:A,disabled:E,disabledChild:S,detail:C,detailRender:j,isLazy:P,list:M,loading:V,groupType:"list"===T||"searchList"===T?N:void 0,breadcrumbs:Z,breadcrumbsSeparator:U,breadcrumbsList:q,fieldConfig:Y,onClickBreadcrumbs:K,onLevel:ve(!1),onSelect:G,onLoad:be(!1),onAllCheck:Q}),function(){if(oe)return t().createElement(L,{className:"selector-main-search-content",key:"search",value:i,rowKey:s,nodeMode:m,selectMode:h,loadMore:x,isAllCheck:!1,disabled:E,disabledChild:S,detail:C,detailRender:j,isLazy:P,list:B,groupType:"search"===T||"searchList"===T?N:void 0,fieldConfig:Y,loading:F,onSelect:G,onLevel:ve(!0),onLoad:be(!0)})}(),function(){if(F||V)return t().createElement(l.default,null)}()))};a(76813);function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function z(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function H(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){z(a,r,o,i,c,"next",e)}function c(e){z(a,r,o,i,c,"throw",e)}i(void 0)}))}}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}const Z=function(n){var r=n.className,o=n.layout,a=void 0===o?"node":o,i=n.style,l=n.list,f=n.groupType,m=n.nodeMode,h=n.backDataFieldConfig,v=n.detail,g=n.detailRender,y=n.disabled,x=n.handSelectorNodeInfo,w=n.selectDataTitleRender,k=n.selectRenderItem,A=n.selectRender,O=n.onClose,S=(0,p.A)("Selector",d),C=B((0,e.useState)({}),2),j=C[0],P=C[1],M=(0,e.useRef)({listTypeJson:{},backDataFieldConfig:{}});M.current.listTypeJson=(0,E.ArrayToObject)("value",f),M.current.backDataFieldConfig=h||{},(0,e.useEffect)((function(){if(l&&f&&f.length>0){for(var e={},t=0,n=l.length;t<n;t++){var r=l[t],o=r[M.current.backDataFieldConfig.type||""];e[o]||(e[o]=[]),e[o].push(r)}P(e)}}),[l]);var N,T=function(e){if(y){if(!0===y)return!0;if(n=y,null!=(r=Array)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):n instanceof r){var t=e[(null==h?void 0:h.key)||""];if(-1!==y.indexOf(t))return!0}}var n,r;return!1},_=function(){return A?A(l||[]):null==l?void 0:l.map((function(e,n){return t().createElement(b,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){F(e,t,n[t])}))}return e}({key:n},function(e,t){var n=e;x&&(n=x(e));var r={useCase:"edit",close:!T(e),detail:v,data:n,nodeMode:m,onClose:function(){return O&&O(n,t)},disabled:T(e),tagStyle:n.tagStyle};k&&(r.leftRender=function(){return k(e)}),void 0!==n.leaf&&(r.nodeMode=n.leaf?"leaf":"branch");for(var o=["img","mainTitle","subTitle","tag"],a=0,i=o.length;a<i;a++){var c=o[a]||"",l=h&&h[c]||"";r[c]=n[l]}return g&&(r.detailRender=H((function(){return V(this,(function(e){switch(e.label){case 0:return[4,g(n,!1)];case 1:return[2,e.sent()]}}))}))),void 0!==n.detail&&(r.detail=n.detail),void 0!==n.close&&(r.close=n.close),r}(e,n)))}))},D=function(){return t().createElement("div",{className:"title"},t().createElement("span",{className:"title-tip"},S({id:"selected"}),":"),w?w(l):f?t().createElement(t().Fragment,null,f.map((function(e,n){var r=0,o=e.value;if(j[o]&&(r=j[o].length),0!==r)return t().createElement("span",{className:"title-content",key:n},r,"个",e.label||e.value)}))):void 0)};return t().createElement("div",{className:(N="".concat(u.n,"-selector-data"),a&&(N+=" ".concat(u.n,"-selector-data-").concat(a)),!0===y&&(N+=" ".concat(u.n,"-selector-data-disabled")),r&&(N+=" ".concat(r)),N),style:i},"node"===a?t().createElement("div",{className:"selector-data-node-box"},D(),t().createElement("div",{className:"content"},_())):t().createElement("div",{className:"selector-data-tag-box"},D(),t().createElement("div",{className:"content"},A?A(l||[]):t().createElement(t().Fragment,null,null==l?void 0:l.map((function(e,n){var r=T(e);return t().createElement("span",{className:"content-tag",key:n},t().createElement("span",null,k?k(e):t().createElement(c.default,null,e[(null==h?void 0:h.mainTitle)||""]||e[(null==h?void 0:h.key)||""])),!r&&t().createElement(s.A,{onClick:function(){return O&&O(e,n)}}))}))))))};function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$(e,t,n[t])}))}return e}function W(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var q=function(e){var t=e.method,n=e.data,r=W(e,["method","data"]);return"Get"===t?(0,E.Get)(U({params:n},r)):"Post"===t?(0,E.Post)(U({data:n},r)):void 0},Y=a(82316);a(73353);function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function X(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function G(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){X(a,r,o,i,c,"next",e)}function c(e){X(a,r,o,i,c,"throw",e)}i(void 0)}))}}function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){J(e,t,n[t])}))}return e}function te(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||re(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ne(e){return function(e){if(Array.isArray(e))return K(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||re(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function re(e,t){if(e){if("string"==typeof e)return K(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(e,t):void 0}}function oe(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}var ae=function(e,t){return ee({mainTitle:"label",children:"children",parentId:"parentId",key:t,type:"type"},e)};const ie=function(n){var r=(0,Y.A)(n,"Selector"),o=r.className,a=r.style,i=r.rowKey,c=void 0===i?"key":i,l=r.layout,s=void 0===l?"lr":l,f=r.nodeMode,m=void 0===f?"branch":f,h=r.selectMode,v=r.refresh,b=r.ctx,g=r.url,y=r.method,x=void 0===y?"Get":y,w=r.value,k=r.defaultValue,A=r.data,O=r.pagination,S=void 0!==O&&O,C=r.size,j=void 0===C?10:C,P=r.isLazy,M=void 0!==P&&P,N=r.isAllCheck,T=void 0===N||N,_=r.disabled,D=r.disabledChild,L=r.detail,I=r.detailRender,z=r.backDataFieldConfig,H=r.search,F=r.searchPlaceholder,B=r.searchTrigger,V=void 0===B?"onChange":B,$=r.breadcrumbs,U=void 0===$||$,W=r.breadcrumbsSeparator,K=r.breadcrumbsHead,X=r.showbreadcrumbsHead,J=void 0===X||X,re=r.groupType,ie=r.groupRange,ce=void 0===ie?"search":ie,le=r.emptyProps,se=r.selectRenderItem,ue=r.selectRender,pe=r.onChange,de=r.onSelect,fe=r.onSearch,me=r.onRefresh,he=(0,p.A)("Selector",d),ve=ae(n.fieldConfig,c),be=ee({},ve,z),ge=te((0,e.useState)([]),2),ye=ge[0],xe=ge[1],we=te((0,e.useState)(!1),2),ke=we[0],Ae=we[1],Oe=te((0,e.useState)([]),2),Ee=Oe[0],Se=Oe[1],Ce=te((0,e.useState)({}),2),je=Ce[0],Pe=Ce[1],Me=te((0,e.useState)([]),2),Ne=Me[0],Te=Me[1],_e=te((0,e.useState)(!1),2),De=_e[0],Le=_e[1],Re=te((0,e.useState)({val:""}),2),Ie=Re[0],ze=Re[1],He=te((0,e.useState)([]),2),Fe=He[0],Be=He[1],Ve=te((0,e.useState)(!1),2),Ze=Ve[0],$e=Ve[1],Ue=te((0,e.useState)(!0),2),We=Ue[0],qe=Ue[1],Ye=te((0,e.useState)(),2),Ke=Ye[0],Xe=Ye[1],Ge=(0,e.useRef)({jsonData:{},jsonDataCopy:{},oneDataList:[],currentSourceData:[],selectValueJson:{},breadcrumbsList:[],reqId:Math.random().toString(),reqParams:{size:10,pagination:!1,isLazy:!1},noLazyReq:!1,reqTimer:null,page:1,searchVal:"",beforeSearchBreadcrumbs:null,searchConfig:{page:1,size:10,reqId:Math.random().toString(),currentSourceData:[]}});Ge.current.reqParams.size=j,Ge.current.reqParams.pagination=S,Ge.current.reqParams.isLazy=M;var Je=n.data||!Ge.current.reqParams.isLazy&&Ge.current.noLazyReq;(0,e.useEffect)((function(){return void 0!==k&&lt(k),function(){clearTimeout(Ge.current.reqTimer)}}),[]),(0,e.useEffect)((function(){void 0!==w&&lt(w)}),[w]),(0,e.useEffect)((function(){if(A){var e=rt(A,!1);Ge.current.oneDataList=e,Ge.current.currentSourceData=e,Te([]),ct()}}),[A]),(0,e.useEffect)((function(){g&&(Te([]),ct())}),[g]),(0,e.useEffect)((function(){clearTimeout(Ge.current.reqTimer),n.url&&(0,E.Cancel)(Ge.current.reqId),Ge.current.reqTimer=setTimeout((function(){if(Je){var e=Ge.current.currentSourceData;if(Ge.current.reqParams.pagination){var t=e.slice(0,Ge.current.page*Ge.current.reqParams.size);xe(t),Ge.current.page*Ge.current.reqParams.size>=e.length?Ae(!1):Ae(!0)}else xe(e);qe(!1)}if(n.url){var r={method:x,url:n.url,ctx:b,uuid:Ge.current.reqId,data:ee({parentId:ot()},n.params)};Ge.current.reqParams.isLazy?(Ge.current.reqParams.pagination&&(r.data.size=Ge.current.reqParams.size,r.data.page=Ge.current.page),at(n.paramsCallback?n.paramsCallback(r):r)):Ge.current.noLazyReq||at(n.paramsCallback?n.paramsCallback(r):r)}}),50)}),[Ke]),(0,e.useEffect)((function(){v&&tt()}),[v]);var Qe,et,tt=function(){Je||(Ge.current.currentSourceData=[]),ct()},nt=function(e,t){var r={key:e[c],parentId:e[ve.parentId],type:e[ve.type],img:e[ve.img],mainTitle:e[ve.mainTitle],subTitle:e[ve.subTitle],tag:e[ve.tag],children:[],disabled:!1,disabledChild:!1,choice:void 0!==h,detail:L,leaf:"leaf"===m,data:e};return n.handNodeInfo&&(r=n.handNodeInfo(r,t)),r},rt=function(e,t,n){var r=[],o={},a=function(e){for(var t=0,r=e.length;t<r;t++){var i=e[t],l=i[c],s=nt(i,!!n);o[l]=s;var u=ve.children;Ge.current.jsonDataCopy[l]=i,Ge.current.jsonData[l]=s,i[u]&&a(i[u])}};a(e);for(var i=Object.keys(o),l=0,s=i.length;l<s;l++){var u=i[l],p=o[u],d=p.parentId||"";t?r.push(p):d&&o[d]?(o[d].children||(o[d].children=[]),o[d].children.push(p)):r.push(p)}return r},ot=function(){var e;Ge.current.breadcrumbsList.length>0?e=Ge.current.breadcrumbsList[Ge.current.breadcrumbsList.length-1].value:n.breadcrumbsHead&&(e=n.breadcrumbsHead.value);return J&&1===Ge.current.breadcrumbsList.length&&(e=void 0,n.breadcrumbsHead&&(e=n.breadcrumbsHead.value)),e},at=(Qe=G((function(e){var t,r;return oe(this,(function(o){switch(o.label){case 0:return qe(!0),[4,q(e)];case 1:return t=o.sent(),r=t.data,t.err?(qe(!1),Ge.current.reqParams.isLazy&&Ge.current.reqParams.pagination&&1!==Ge.current.page&&(Ge.current.page=Ge.current.page-1),[2]):n.requestCallback?(n.requestCallback(r,(function(e){qe(!1),it(e)})),[2]):(qe(!1),it(r),[2])}}))})),function(e){return Qe.apply(this,arguments)}),it=function(e){if(Ge.current.reqParams.isLazy)if(Ge.current.reqParams.pagination){var t=e.data||{},n=t.list||[],r=t.total,o=rt(n,!0),a=ne(Ge.current.currentSourceData).concat(ne(o));Ge.current.currentSourceData=a,xe(a),Ge.current.page*Ge.current.reqParams.size>=r?Ae(!1):Ae(!0)}else{var i=e.data||[],c=rt(i,!0);Ge.current.currentSourceData=c,xe(c)}else{Ge.current.noLazyReq=!0;var l=e.data||[],s=rt(l,!1);Ge.current.oneDataList=s,Ge.current.currentSourceData=s,ct()}},ct=function(){Ge.current.page=1,Xe(Math.random())},lt=function(e){var t=e?[e]:[];Q(e,Array)&&(t=ne(e));var n=(0,E.ArrayToObject)(be.key,t);Ge.current.selectValueJson=n,Pe(n),Se(ne(t))},st=function(e){var t=["key","img","mainTitle","subTitle","tag"];n.groupType&&n.groupType.length>0&&t.push("type");for(var r={},o=0,a=t.length;o<a;o++){var i=t[o],c=be[i];c&&(r[c]=e[i])}return r},ut=function(e,t,n,r){pe&&pe(e,n,r),null==w&&lt(e||[])},pt=function(){var e=G((function(e){var t,n,r,o,a,i,c,l,s,u,p;return oe(this,(function(d){switch(d.label){case 0:return t=e.key||"","radio"===h&&je[t]?[2]:(n=Ge.current.selectValueJson[t],de?[4,de(e,"radio"===h||!n,!1)]:[3,2]);case 1:if(d.sent())return[2];d.label=2;case 2:if("radio"===h&&(r=st(e),ut(r,0,Ge.current.jsonData[t],Ge.current.jsonDataCopy[t])),"check"===h){for(o=[],a={},i={},c=0,l=Ee.length;c<l;c++)s=Ee[c],n&&e.key===s[be.key]||(u=s[be.key],a[u]=Ge.current.jsonData[u],i[u]=Ge.current.jsonDataCopy[u],o.push(s));n||(p=st(e),a[t]=Ge.current.jsonData[t],i[t]=Ge.current.jsonDataCopy[t],o.push(p)),ut(o,0,a,i)}return[2]}}))}));return function(t){return e.apply(this,arguments)}}(),dt=function(e){if(_){if(!0===_)return!0;if(Q(_,Array)&&e.key&&-1!==_.indexOf(e.key))return!0}return!!e.disabled},ft=function(){var e=G((function(e){var t,n,r,o,a,i,c,l,s,u,p,d,f,m,h,v;return oe(this,(function(b){switch(b.label){case 0:for(t=ne(ye),n=ne(Ee),r=[],o={},a={},i=[],c=[],l=0,s=t.length;l<s;l++)u=t[l],p=u.key||"",dt(u)||(e?Ge.current.selectValueJson[p]||(n.push(st(u)),c.push(u)):Ge.current.selectValueJson[p]&&(i.push(p),c.push(u)));for(d=0,f=n.length;d<f;d++)m=n[d],h=m[be.key],e?(o[h]=Ge.current.jsonData[h],a[h]=Ge.current.jsonDataCopy[h]):-1===i.indexOf(h)&&(o[h]=Ge.current.jsonData[h],a[h]=Ge.current.jsonDataCopy[h],r.push(m));return v=e?n:r,de?[4,de(c,!!e,!1)]:[3,2];case 1:if(b.sent())return[2];b.label=2;case 2:return ut(v,0,o,a),[2]}}))}));return function(t){return e.apply(this,arguments)}}(),mt=function(){var e=ne(Ne),t=K||{label:he({id:"root"}),value:"_paraui_first_floor"};return Ge.current.searchVal&&e.unshift({label:n.searchBreadcrumbs?n.searchBreadcrumbs:he({id:"searchResult"}),value:"_paraui_search"}),J&&e.unshift(t),Ge.current.breadcrumbsList=e,e},ht=function(e){var t=e.isTree;if(Ge.current.reqParams.pagination){var n=e.data||{},r=n.list||[],o=n.total,a=rt(r,!t,!0),i=ne(Ge.current.searchConfig.currentSourceData).concat(ne(a));Ge.current.searchConfig.currentSourceData=i,Be(i),Ge.current.searchConfig.page*Ge.current.searchConfig.size>=o?$e(!1):$e(!0)}else{var c=e.data||[],l=rt(c,!t,!0);Ge.current.searchConfig.currentSourceData=l,Be(l)}},vt=function(e){var t=e.data;if(e.err)return Le(!1),void(Ge.current.reqParams.pagination&&1!==Ge.current.searchConfig.page&&(Ge.current.searchConfig.page=Ge.current.searchConfig.page-1));n.requestCallback?n.requestCallback(t,(function(e){Le(!1),ht(e)}),!0):(Le(!1),ht(t))},bt=function(){var e=G((function(){var e,t,r,o,a;return oe(this,(function(i){switch(i.label){case 0:return fe?(t={},Ge.current.reqParams.pagination&&(t.size=Ge.current.searchConfig.size,t.page=Ge.current.searchConfig.page),[4,fe(Ge.current.searchVal,t)]):[3,2];case 1:return r=i.sent(),vt(r),[2];case 2:return o={method:x,url:n.url||"",ctx:b,uuid:Ge.current.reqId,data:ee({searchKey:null===(e=Ge.current.searchVal)||void 0===e?void 0:e.trim()},n.params)},Ge.current.reqParams.pagination&&(o.data.size=Ge.current.searchConfig.size,o.data.page=Ge.current.searchConfig.page),o=n.paramsCallback?n.paramsCallback(o,!0):o,[4,q(o)];case 3:return a=i.sent(),vt(a),[2]}}))}));return function(){return e.apply(this,arguments)}}(),gt=function(){var e=G((function(e,t){var n,r;return oe(this,(function(o){return Le(!0),Ge.current.searchVal=e,""===e?(Be([]),Le(!1),Ge.current.beforeSearchBreadcrumbs&&(Ge.current.breadcrumbsList=ne(Ge.current.beforeSearchBreadcrumbs),Te(ne(Ge.current.beforeSearchBreadcrumbs)),Ge.current.beforeSearchBreadcrumbs=null,Je&&(n=ot(),r=function(e,t){var n=t,r=function(t){for(var o=0,a=t.length;o<a;o++){var i=t[o],l=i[c],s=i.children||[];if(l===e)return void(n=s);r(s)}};return r(t),n}(n,Ge.current.oneDataList),Ge.current.currentSourceData=r),tt()),t&&(tt(),me&&me()),[2]):(Ge.current.searchConfig.page=1,Ge.current.searchConfig.currentSourceData=[],bt(),[2])}))}));return function(t,n){return e.apply(this,arguments)}}(),yt=function(e,t){if("radio"===h&&ut(null,0,{},{}),"check"===h){var n=ne(Ee);n.splice(t,1);for(var r={},o={},a=0,i=n.length;a<i;a++){var c=n[a][be.key];r[c]=Ge.current.jsonData[c],o[c]=Ge.current.jsonDataCopy[c]}ut(n,0,r,o)}},xt=function(){return t().createElement(Z,{layout:"tb"===s?"tag":"node",backDataFieldConfig:be,groupType:re,handSelectorNodeInfo:n.handSelectorNodeInfo,list:Ee,nodeMode:m,detail:L,detailRender:I,emptyProps:le,onClose:yt,selectDataTitleRender:n.selectDataTitleRender,selectRenderItem:se,selectRender:ue,disabled:_})};return t().createElement("div",{className:(et="".concat(u.n,"-selector"),o&&(et+=" ".concat(o)),s&&(et+=" ".concat(u.n,"-selector-").concat(s)),h&&(et+=" ".concat(u.n,"-selector-").concat(h)),!0===_&&(et+=" ".concat(u.n,"-selector-disabled")),et),style:a},"tb"===s&&xt(),t().createElement(R,{url:g,rowKey:c,value:je,loadMore:ke,isAllCheck:T,list:ye,groupType:re,groupRange:ce,fieldConfig:ve,nodeMode:m,selectMode:h,isLazy:M,detail:L,detailRender:I,search:H,searchTrigger:V,searchPlaceholder:F,searchLoading:De,searchVal:Ie,disabled:_,disabledChild:D,loading:We,searchLoadMore:Ze,searchList:Fe,breadcrumbs:U,breadcrumbsSeparator:W,breadcrumbsList:mt(),emptyProps:le,onLevel:function(e,t){!function(e,t){var n=ne(Ne);t&&(n=[],null===Ge.current.beforeSearchBreadcrumbs&&(Ge.current.beforeSearchBreadcrumbs=ne(Ne))),n.push({label:e.mainTitle,value:e.key||""}),Te(n)}(e,t),Je?(Ge.current.currentSourceData=e.children||[],ct()):Ge.current.reqParams.isLazy&&(Ge.current.reqParams.pagination&&(Ge.current.currentSourceData=[]),ct())},onSelect:pt,onLoad:function(e){if(e)return Ge.current.searchConfig.page=Ge.current.searchConfig.page+1,void bt();Ge.current.page=Ge.current.page+1,Xe(Math.random())},onAllCheck:ft,onClickBreadcrumbs:function(e){var t=Ge.current.breadcrumbsList;if(0!==t.length&&e.value!==t[t.length-1].value){var n=e.value||"",r=K?K.value:"_paraui_first_floor";if("_paraui_search"===e.value)return ze({val:Ge.current.searchVal}),void Te(ne(Ge.current.beforeSearchBreadcrumbs||[]));if(Ge.current.beforeSearchBreadcrumbs&&e.value===r&&(Ge.current.searchVal="",Ge.current.beforeSearchBreadcrumbs=null,ze({val:""}),mt()),Te(n===r?[]:function(e){for(var t=[],n=0,r=Ne.length;n<r;n++){var o=Ne[n];if(t.push(o),o.value===e.value)break}return t}(e)),Je)if(n===r)Ge.current.currentSourceData=ne(Ge.current.oneDataList);else{var o=Ge.current.jsonData[n];Ge.current.currentSourceData=o[ve.children]}else Ge.current.reqParams.isLazy&&Ge.current.reqParams.pagination&&(Ge.current.currentSourceData=[]);ct()}},onSearch:gt,onRefresh:me}),"lr"===s&&xt())}})(),i})()));
43
+ */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},43145:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},96369:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},10467:(e,t,n)=>{"use strict";function r(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function c(e){r(i,o,a,c,l,"next",e)}function l(e){r(i,o,a,c,l,"throw",e)}c(void 0)}))}}n.d(t,{A:()=>o})},23029:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},92901:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(49922);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.A)(o.key),o)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},29426:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(53954),o=n(52176),a=n(56822);function i(e){var t=(0,o.A)();return function(){var n,o=(0,r.A)(e);if(t){var i=(0,r.A)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return(0,a.A)(this,n)}}},64467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(49922);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},58168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{A:()=>r})},53954:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},85501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(63662);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},52176:(e,t,n)=>{"use strict";function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(r=function(){return!!e})()}n.d(t,{A:()=>r})},6986:(e,t,n)=>{"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,c=[],l=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}n.d(t,{A:()=>r})},76562:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},89379:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(64467);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},80045:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(98587);function o(e,t){if(null==e)return{};var n,o,a=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},98587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},56822:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(82284),o=n(9417);function a(e,t){if(t&&("object"===(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},63662:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{A:()=>r})},3453:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(96369),o=n(6986),a=n(27800),i=n(76562);function c(e,t){return(0,r.A)(e)||(0,o.A)(e,t)||(0,a.A)(e,t)||(0,i.A)()}},92327:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(82284);function o(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},49922:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(82284),o=n(92327);function a(e){var t=(0,o.A)(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},82284:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},27800:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(43145);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,exports:{}};return r[e].call(n.exports,n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nc=void 0;var i={};return(()=>{"use strict";a.r(i),a.d(i,{default:()=>ie,handFieldConfig:()=>ae});var e=a(39155),t=a.n(e),n=a(52789),r=a(20855),o=a(89315),c=a(69004),l=a(7192),s=a(39864),u=a(14552),p=a(7569);const d={zh:{root:"根",selectAll:"全选",seeMore:"查看更多",selected:"已选",pleaseEnter:"请输入",searchResult:"搜索结果",detail:"详情",child:"下级"},en:{root:"root",selectAll:"Select all",seeMore:"See more",selected:"Selected",pleaseEnter:"Please enter",searchResult:"Search result",detail:"Details",child:"Level"}};a(19737);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}const b=function(a){var i,f,b,g=a.className,y=a.style,x=a.nodeMode,w=void 0===x?"branch":x,k=a.useCase,A=void 0===k?"view":k,O=a.img,E=a.selectMode,S=a.mainTitle,C=a.subTitle,j=a.tag,P=a.tagStyle,M=a.detail,N=a.detailRender,T=a.leftRender,_=a.child,D=a.close,L=a.checked,R=a.indeterminate,I=a.disabled,z=a.disabledChild,H=a.onLevel,F=a.onSelect,B=a.onClose,V=(0,p.A)("Selector",d),Z=h((0,e.useState)(),2),$=Z[0],U=Z[1],W=h((0,e.useState)(!1),2),q=W[0],Y=W[1],K=(0,e.useRef)(),X=function(e){e.stopPropagation()},G=(i=function(e){var t;return v(this,(function(n){switch(n.label){case 0:return N?(Y(!1),e?(Y(!0),K.current&&K.current.classList.add("selector-detail-popover-content-loading"),[4,N()]):[2,U(null)]):[2];case 1:return t=n.sent(),K.current&&K.current.classList.remove("selector-detail-popover-content-loading"),Y(!1),U(t),[2]}}))},f=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=i.apply(e,t);function a(e){m(o,n,r,a,c,"next",e)}function c(e){m(o,n,r,a,c,"throw",e)}a(void 0)}))},function(e){return f.apply(this,arguments)});return t().createElement("div",{className:(b="".concat(u.n,"-selector-node"),b+=" ".concat(u.n,"-selector-node-").concat(A),b+=" ".concat(u.n,"-selector-node-").concat(w),I&&(b+=" ".concat(u.n,"-selector-node-disabled")),z&&(b+=" ".concat(u.n,"-selector-node-disabled-child")),O&&(b+=" ".concat(u.n,"-selector-node-img")),g&&(b+=" ".concat(g)),b),style:y,onClick:function(){I||F&&F()}},t().createElement("div",{className:"selector-node-left"},T?T():t().createElement(t().Fragment,null,"radio"===E?t().createElement(n.default,{size:"small",className:"selector-node-radio",checked:L,disabled:I}):"check"===E?t().createElement(r.default,{size:"small",className:"selector-node-check",checked:L,disabled:I,indeterminate:R}):null,function(){if(!O)return null;var e=O;return"string"==typeof O&&(e=t().createElement("img",{src:O})),t().createElement("span",{className:"node-img"},e)}(),"branch"===w?t().createElement(t().Fragment,null,S&&t().createElement("span",{className:"main-title"},t().createElement(c.default,null,S)),C&&t().createElement("span",{className:"sub-title"},t().createElement(c.default,null,C)),j&&t().createElement("span",{className:"tag",style:P},j)):"leaf"===w?t().createElement("div",{className:"title-box"},t().createElement("div",{className:"main-title-box"},S&&t().createElement("span",{className:"main-title"},t().createElement(c.default,null,S)),j&&t().createElement("span",{className:"tag",style:P},j)),C&&t().createElement("div",{className:"sub-title"},t().createElement(c.default,null,C))):void 0)),t().createElement("div",{className:"selector-node-right"},M?t().createElement(o.default,{content:t().createElement("div",{className:"selector-detail-popover-content",ref:K},$,q&&t().createElement(l.default,null)),trigger:"hover",placement:"bottomRight",overlayClassName:"".concat(u.n,"-selector-detail"),onVisibleChange:G},t().createElement("span",{className:"detail",onClick:X},V({id:"detail"}))):null,M&&_&&t().createElement("span",{className:"line"}),_&&t().createElement("span",{className:"lower-child",onClick:function(e){e.stopPropagation(),I||z||H&&H()}},V({id:"child"})),M&&D&&t().createElement("span",{className:"line"}),D&&t().createElement("span",{className:"close",onClick:function(e){e.stopPropagation(),B&&B()}},t().createElement(s.A,null))))};var g=a(78948),y=a(69368),x=a(27788),w=a(77424),k=a(74848),A=a(55307),O=function(e){return(0,k.jsx)(A.A,Object.assign({dataName:"Refresh",viewBox:"0 0 24 24",path:(0,k.jsx)(k.Fragment,{children:(0,k.jsxs)("g",Object.assign({id:"Refresh",transform:"translate(-288 -96)"},{children:[(0,k.jsx)("rect",{id:"safe",width:"24",height:"24",transform:"translate(288 96)",fill:"none"}),(0,k.jsx)("path",{id:"icon",d:"M2.164,13.915c-.044-.06-.086-.124-.13-.185l-.493,1.222a.8.8,0,0,1-.743.5.791.791,0,0,1-.3-.059.8.8,0,0,1-.444-1.04l1.282-3.179a.8.8,0,0,1,1.037-.444L5.572,12a.8.8,0,1,1-.592,1.487L3.369,12.85c.025.034.048.07.073.1A6.983,6.983,0,0,0,16,8.806a.8.8,0,1,1,1.6,0,8.584,8.584,0,0,1-15.439,5.11ZM.262,8.528A8.584,8.584,0,0,1,15.7,3.419c.04.052.075.108.114.161l.509-1.262a.8.8,0,1,1,1.483.6L16.528,6.094a.8.8,0,0,1-1.038.444l-3.2-1.272a.8.8,0,0,1,.592-1.487l1.548.617-.01-.013A6.982,6.982,0,0,0,1.863,8.528a.8.8,0,0,1-1.6,0Z",transform:"translate(291.067 99.333)"})]}))})},e))},E=a(32663);a(61788);function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function j(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){C(a,r,o,i,c,"next",e)}function c(e){C(a,r,o,i,c,"throw",e)}i(void 0)}))}}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){P(e,t,n[t])}))}return e}function T(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}var L=function(n){var r=n.className,o=n.value,a=(n.rowKey,n.nodeMode),i=void 0===a?"branch":a,c=n.selectMode,l=n.loadMore,s=void 0!==l&&l,u=n.isAllCheck,f=void 0!==u&&u,m=n.detail,h=n.detailRender,v=n.isLazy,g=n.list,w=n.groupType,k=n.breadcrumbs,A=n.breadcrumbsSeparator,O=void 0===A?"-":A,S=n.breadcrumbsList,C=void 0===S?[]:S,P=n.fieldConfig,L=n.disabled,R=n.disabledChild,I=n.emptyProps,z=n.loading,H=n.onClickBreadcrumbs,F=n.onLevel,B=n.onSelect,V=n.onLoad,Z=n.onAllCheck,$=(0,p.A)("Selector",d),U=_((0,e.useState)({}),2),W=U[0],q=U[1],Y=(0,e.useRef)({listTypeJson:{},fieldConfig:{},resizeTimer:null}),K=(0,e.useRef)(null),X=(0,e.useRef)(null);Y.current.listTypeJson=(0,E.ArrayToObject)("value",w),Y.current.fieldConfig=P||{},(0,e.useEffect)((function(){return J(),function(){clearTimeout(Y.current.resizeTimer)}}),[]),(0,e.useEffect)((function(){if(g&&w&&w.length>0){for(var e={},t=0,n=g.length;t<n;t++){var r=g[t],o=r.type;e[o]||(e[o]=[]),e[o].push(r)}q(e)}}),[g]);var G,J=function(){clearTimeout(Y.current.resizeTimer),Y.current.resizeTimer=setTimeout((function(){Q()}),100)},Q=function(){if(X.current&&K.current){var e=K.current,t=X.current;t.classList.remove("selector-main-list-scroll-top","selector-main-list-scroll-bottom","selector-main-list-scroll-middle"),e.scrollHeight<=e.clientHeight||(0!==e.scrollTop?e.clientHeight+e.scrollTop!==e.scrollHeight?t.classList.add("selector-main-list-scroll-middle"):t.classList.add("selector-main-list-scroll-bottom"):t.classList.add("selector-main-list-scroll-top"))}},ee=function(e){if(L){if(!0===L)return!0;if(M(L,Array)&&e.key&&-1!==L.indexOf(e.key))return!0}return!!e.disabled},te=function(e){if(R){if(!0===R)return!0;if(M(R,Array)&&e.key&&-1!==R.indexOf(e.key))return!0}return!!e.disabledChild},ne=function(){if(!f||"check"!==c)return null;var e=function(){var e={checked:!1,indeterminate:!1};if(!o||!g||0===g.length)return e;for(var t=0,n=g.length;t<n;t++){var r=g[t],a=r.key;ee(r)?o[a]&&(e.checked=!0):o[a]?e.checked=!0:e.indeterminate=!0}return e.checked&&e.indeterminate?(e.checked=!1,e):!e.checked&&e.indeterminate?(e.indeterminate=!1,e):e}();return t().createElement(b,T(N({disabled:!0===L,nodeMode:"branch",mainTitle:$({id:"selectAll"}),selectMode:"check"},e),{onSelect:function(){var t=!0;e.checked&&(t=!1),Z&&Z(t)},className:"selector-all-check"}))},re=function(){V&&V()},oe=function(e){var t=!1;return o&&o[e.key]&&(t=!0),t},ae=function(e){return null==e?void 0:e.map((function(e,n){return t().createElement(b,N({key:n},function(e){var t={useCase:"view",detail:m,nodeMode:i,disabled:ee(e),disabledChild:te(e),onLevel:function(){return F&&F(e)},onSelect:function(){return B&&B(e)},checked:oe(e)};void 0!==e.leaf&&(t.nodeMode=e.leaf?"leaf":"branch");for(var n=["img","mainTitle","subTitle","tag","tagStyle"],r=0,o=n.length;r<o;r++){var a=n[r];t[a]=e[a]}if(!1!==e.choice&&c&&(t.selectMode=c),v)t.child=e.child;else{var l=e.children||[];l&&l.length>0&&(t.child=!0),void 0!==e.child&&(t.child=e.child)}return h&&(t.detailRender=j((function(){return D(this,(function(t){switch(t.label){case 0:return[4,h(e,!0)];case 1:return[2,t.sent()]}}))}))),void 0!==e.detail&&(t.detail=e.detail),t}(e)))}))},ie=function(e){H&&H(e)};return J(),t().createElement("div",{className:(G="selector-main-content",r&&(G+=" ".concat(r)),L&&(G+=" selector-main-content-disabled"),f&&"check"===c&&(G+=" selector-main-content-all-check"),s&&(G+=" selector-main-content-load-more"),G)},k&&0!==C.length?t().createElement("div",{className:"nav-box"},t().createElement(y.default,{list:C,separator:O,onClickItem:ie})):null,0!==(null==g?void 0:g.length)||z?t().createElement("div",{className:"selector-main-list"},ne(),t().createElement("div",{className:"selector-main-list-content",ref:X},t().createElement("div",{className:"selector-main-list-content-box",ref:K,onScroll:Q},w&&w.length>0?t().createElement(t().Fragment,null,w.map((function(n,r){var o=n.value,a=W[o]||[],i="selector-group-title";return 0===r&&(i+=" selector-group-title-first"),t().createElement(e.Fragment,{key:r},a.length>0&&t().createElement("div",{className:i},n.label||o),ae(a))}))):ae(g||[]))),s?t().createElement("div",{className:"selector-main-list-more",onClick:re},t().createElement("span",{className:"more-btn"},$({id:"seeMore"}))):null):t().createElement("div",{className:"selector-main-list-no-data"},t().createElement(x.default,T(N({},I),{size:(null==I?void 0:I.size)||"small"}))))};const R=function(n){var r=n.className,o=n.style,a=n.url,i=n.value,c=n.rowKey,s=void 0===c?"key":c,f=n.nodeMode,m=void 0===f?"branch":f,h=n.selectMode,v=n.loadMore,b=void 0!==v&&v,y=n.searchLoadMore,x=void 0!==y&&y,k=n.isAllCheck,A=void 0!==k&&k,E=n.disabled,S=n.disabledChild,C=n.detail,j=n.detailRender,P=n.isLazy,M=n.list,N=n.groupType,T=n.groupRange,D=n.search,R=n.searchVal,I=void 0===R?"":R,z=n.searchPlaceholder,H=n.searchTrigger,F=n.searchLoading,B=n.searchList,V=n.loading,Z=n.breadcrumbs,$=n.breadcrumbsSeparator,U=void 0===$?"-":$,W=n.breadcrumbsList,q=void 0===W?[]:W,Y=n.fieldConfig,K=n.onClickBreadcrumbs,X=n.onLevel,G=n.onSelect,J=n.onLoad,Q=n.onAllCheck,ee=n.onSearch,te=n.onRefresh,ne=(0,p.A)("Selector",d),re=_((0,e.useState)(!1),2),oe=re[0],ae=re[1],ie=_((0,e.useState)(""),2),ce=ie[0],le=ie[1],se=(0,e.useRef)({searchTimer:null,searchStr:""});(0,e.useEffect)((function(){I&&(se.current.searchStr=I.val,le(I.val),""!==I.val&&ae(!0))}),[I]);var ue,pe=function(e){le(e),se.current.searchStr=e,"onEnter"!==H&&he()},de=function(){he(!0)},fe=function(){he(!0)},me=function(){he()},he=function(e){clearTimeout(se.current.searchTimer),se.current.searchTimer=setTimeout((function(){ae(!!se.current.searchStr),ee&&ee(se.current.searchStr,!!e)}),300)},ve=function(e){return function(t){e&&(se.current.searchStr="",le(""),ae(!1)),X&&X(t,e)}},be=function(e){return function(){J&&J(e)}};return t().createElement("div",{className:(ue="".concat(u.n,"-selector-main"),r&&(ue+=" ".concat(r)),"check"===h&&(ue+=" ".concat(u.n,"-selector-main-select")),oe&&(ue+=" ".concat(u.n,"-selector-main-show-search")),D&&(ue+=" ".concat(u.n,"-selector-main-search")),!0===E&&(ue+=" ".concat(u.n,"-selector-main-disabled")),ue),style:o},t().createElement(t().Fragment,null,D&&t().createElement(g.default,{className:"selectot-main-search",value:ce,rightIconExist:!0,showBtn:!1,rightIcon:ce?t().createElement(w.A,null):a||te?t().createElement(O,null):null,btnType:"inside",onChange:pe,onEnter:de,onClear:me,placeholder:z||ne({id:"pleaseEnter"}),onClickBtn:fe})),t().createElement("div",{className:"selector-main-box"},t().createElement(L,{key:"list",className:"selector-main-list-box",value:i,rowKey:s,nodeMode:m,selectMode:h,loadMore:b,isAllCheck:A,disabled:E,disabledChild:S,detail:C,detailRender:j,isLazy:P,list:M,loading:V,groupType:"list"===T||"searchList"===T?N:void 0,breadcrumbs:Z,breadcrumbsSeparator:U,breadcrumbsList:q,fieldConfig:Y,onClickBreadcrumbs:K,onLevel:ve(!1),onSelect:G,onLoad:be(!1),onAllCheck:Q}),function(){if(oe)return t().createElement(L,{className:"selector-main-search-content",key:"search",value:i,rowKey:s,nodeMode:m,selectMode:h,loadMore:x,isAllCheck:!1,disabled:E,disabledChild:S,detail:C,detailRender:j,isLazy:P,list:B,groupType:"search"===T||"searchList"===T?N:void 0,fieldConfig:Y,loading:F,onSelect:G,onLevel:ve(!0),onLoad:be(!0)})}(),function(){if(F||V)return t().createElement(l.default,null)}()))};a(76813);function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function z(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function H(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){z(a,r,o,i,c,"next",e)}function c(e){z(a,r,o,i,c,"throw",e)}i(void 0)}))}}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}const Z=function(n){var r=n.className,o=n.layout,a=void 0===o?"node":o,i=n.style,l=n.list,f=n.groupType,m=n.nodeMode,h=n.backDataFieldConfig,v=n.detail,g=n.detailRender,y=n.disabled,x=n.handSelectorNodeInfo,w=n.selectDataTitleRender,k=n.selectRenderItem,A=n.selectRender,O=n.onClose,S=(0,p.A)("Selector",d),C=B((0,e.useState)({}),2),j=C[0],P=C[1],M=(0,e.useRef)({listTypeJson:{},backDataFieldConfig:{}});M.current.listTypeJson=(0,E.ArrayToObject)("value",f),M.current.backDataFieldConfig=h||{},(0,e.useEffect)((function(){if(l&&f&&f.length>0){for(var e={},t=0,n=l.length;t<n;t++){var r=l[t],o=r[M.current.backDataFieldConfig.type||""];e[o]||(e[o]=[]),e[o].push(r)}P(e)}}),[l]);var N,T=function(e){if(y){if(!0===y)return!0;if(n=y,null!=(r=Array)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):n instanceof r){var t=e[(null==h?void 0:h.key)||""];if(-1!==y.indexOf(t))return!0}}var n,r;return!1},_=function(){return A?A(l||[]):null==l?void 0:l.map((function(e,n){return t().createElement(b,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){F(e,t,n[t])}))}return e}({key:n},function(e,t){var n=e;x&&(n=x(e));var r={useCase:"edit",close:!T(e),detail:v,data:n,nodeMode:m,onClose:function(){return O&&O(n,t)},disabled:T(e),tagStyle:n.tagStyle};k&&(r.leftRender=function(){return k(e)}),void 0!==n.leaf&&(r.nodeMode=n.leaf?"leaf":"branch");for(var o=["img","mainTitle","subTitle","tag"],a=0,i=o.length;a<i;a++){var c=o[a]||"",l=h&&h[c]||"";r[c]=n[l]}return g&&(r.detailRender=H((function(){return V(this,(function(e){switch(e.label){case 0:return[4,g(n,!1)];case 1:return[2,e.sent()]}}))}))),void 0!==n.detail&&(r.detail=n.detail),void 0!==n.close&&(r.close=n.close),r}(e,n)))}))},D=function(){return t().createElement("div",{className:"title"},t().createElement("span",{className:"title-tip"},S({id:"selected"}),":"),w?w(l):f?t().createElement(t().Fragment,null,f.map((function(e,n){var r=0,o=e.value;if(j[o]&&(r=j[o].length),0!==r)return t().createElement("span",{className:"title-content",key:n},r,"个",e.label||e.value)}))):void 0)};return t().createElement("div",{className:(N="".concat(u.n,"-selector-data"),a&&(N+=" ".concat(u.n,"-selector-data-").concat(a)),!0===y&&(N+=" ".concat(u.n,"-selector-data-disabled")),r&&(N+=" ".concat(r)),N),style:i},"node"===a?t().createElement("div",{className:"selector-data-node-box"},D(),t().createElement("div",{className:"content"},_())):t().createElement("div",{className:"selector-data-tag-box"},D(),t().createElement("div",{className:"content"},A?A(l||[]):t().createElement(t().Fragment,null,null==l?void 0:l.map((function(e,n){var r=T(e);return t().createElement("span",{className:"content-tag",key:n},t().createElement("span",null,k?k(e):t().createElement(c.default,null,e[(null==h?void 0:h.mainTitle)||""]||e[(null==h?void 0:h.key)||""])),!r&&t().createElement(s.A,{onClick:function(){return O&&O(e,n)}}))}))))))};function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$(e,t,n[t])}))}return e}function W(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var q=function(e){var t=e.method,n=e.data,r=W(e,["method","data"]);return"Get"===t?(0,E.Get)(U({params:n},r)):"Post"===t?(0,E.Post)(U({data:n},r)):void 0},Y=a(82316);a(73353);function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function X(e,t,n,r,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function G(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){X(a,r,o,i,c,"next",e)}function c(e){X(a,r,o,i,c,"throw",e)}i(void 0)}))}}function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){J(e,t,n[t])}))}return e}function te(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||re(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ne(e){return function(e){if(Array.isArray(e))return K(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||re(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function re(e,t){if(e){if("string"==typeof e)return K(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(e,t):void 0}}function oe(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}var ae=function(e,t){return ee({mainTitle:"label",children:"children",parentId:"parentId",key:t,type:"type"},e)};const ie=function(n){var r=(0,Y.A)(n,"Selector"),o=r.className,a=r.style,i=r.rowKey,c=void 0===i?"key":i,l=r.layout,s=void 0===l?"lr":l,f=r.nodeMode,m=void 0===f?"branch":f,h=r.selectMode,v=r.refresh,b=r.ctx,g=r.url,y=r.method,x=void 0===y?"Get":y,w=r.value,k=r.defaultValue,A=r.data,O=r.pagination,S=void 0!==O&&O,C=r.size,j=void 0===C?10:C,P=r.isLazy,M=void 0!==P&&P,N=r.isAllCheck,T=void 0===N||N,_=r.disabled,D=r.disabledChild,L=r.detail,I=r.detailRender,z=r.backDataFieldConfig,H=r.search,F=r.searchPlaceholder,B=r.searchTrigger,V=void 0===B?"onChange":B,$=r.breadcrumbs,U=void 0===$||$,W=r.breadcrumbsSeparator,K=r.breadcrumbsHead,X=r.showbreadcrumbsHead,J=void 0===X||X,re=r.groupType,ie=r.groupRange,ce=void 0===ie?"search":ie,le=r.emptyProps,se=r.selectRenderItem,ue=r.selectRender,pe=r.onChange,de=r.onSelect,fe=r.onSearch,me=r.onRefresh,he=(0,p.A)("Selector",d),ve=ae(n.fieldConfig,c),be=ee({},ve,z),ge=te((0,e.useState)([]),2),ye=ge[0],xe=ge[1],we=te((0,e.useState)(!1),2),ke=we[0],Ae=we[1],Oe=te((0,e.useState)([]),2),Ee=Oe[0],Se=Oe[1],Ce=te((0,e.useState)({}),2),je=Ce[0],Pe=Ce[1],Me=te((0,e.useState)([]),2),Ne=Me[0],Te=Me[1],_e=te((0,e.useState)(!1),2),De=_e[0],Le=_e[1],Re=te((0,e.useState)({val:""}),2),Ie=Re[0],ze=Re[1],He=te((0,e.useState)([]),2),Fe=He[0],Be=He[1],Ve=te((0,e.useState)(!1),2),Ze=Ve[0],$e=Ve[1],Ue=te((0,e.useState)(!0),2),We=Ue[0],qe=Ue[1],Ye=te((0,e.useState)(),2),Ke=Ye[0],Xe=Ye[1],Ge=(0,e.useRef)({jsonData:{},jsonDataCopy:{},oneDataList:[],currentSourceData:[],selectValueJson:{},breadcrumbsList:[],reqId:Math.random().toString(),reqParams:{size:10,pagination:!1,isLazy:!1},noLazyReq:!1,reqTimer:null,page:1,searchVal:"",beforeSearchBreadcrumbs:null,searchConfig:{page:1,size:10,reqId:Math.random().toString(),currentSourceData:[]}});Ge.current.reqParams.size=j,Ge.current.reqParams.pagination=S,Ge.current.reqParams.isLazy=M;var Je=n.data||!Ge.current.reqParams.isLazy&&Ge.current.noLazyReq;(0,e.useEffect)((function(){return void 0!==k&&lt(k),function(){clearTimeout(Ge.current.reqTimer)}}),[]),(0,e.useEffect)((function(){void 0!==w&&lt(w)}),[w]),(0,e.useEffect)((function(){if(A){var e=rt(A,!1);Ge.current.oneDataList=e,Ge.current.currentSourceData=e,Te([]),ct()}}),[A]),(0,e.useEffect)((function(){g&&(Te([]),ct())}),[g]),(0,e.useEffect)((function(){clearTimeout(Ge.current.reqTimer),n.url&&(0,E.Cancel)(Ge.current.reqId),Ge.current.reqTimer=setTimeout((function(){if(Je){var e=Ge.current.currentSourceData;if(Ge.current.reqParams.pagination){var t=e.slice(0,Ge.current.page*Ge.current.reqParams.size);xe(t),Ge.current.page*Ge.current.reqParams.size>=e.length?Ae(!1):Ae(!0)}else xe(e);qe(!1)}if(n.url){var r={method:x,url:n.url,ctx:b,uuid:Ge.current.reqId,data:ee({parentId:ot()},n.params)};Ge.current.reqParams.isLazy?(Ge.current.reqParams.pagination&&(r.data.size=Ge.current.reqParams.size,r.data.page=Ge.current.page),at(n.paramsCallback?n.paramsCallback(r):r)):Ge.current.noLazyReq||at(n.paramsCallback?n.paramsCallback(r):r)}}),50)}),[Ke]),(0,e.useEffect)((function(){v&&tt()}),[v]);var Qe,et,tt=function(){Je||(Ge.current.currentSourceData=[]),ct()},nt=function(e,t){var r={key:e[c],parentId:e[ve.parentId],type:e[ve.type],img:e[ve.img],mainTitle:e[ve.mainTitle],subTitle:e[ve.subTitle],tag:e[ve.tag],children:[],disabled:!1,disabledChild:!1,choice:void 0!==h,detail:L,leaf:"leaf"===m,data:e};return n.handNodeInfo&&(r=n.handNodeInfo(r,t)),r},rt=function(e,t,n){var r=[],o={},a=function(e){for(var t=0,r=e.length;t<r;t++){var i=e[t],l=i[c],s=nt(i,!!n);o[l]=s;var u=ve.children;Ge.current.jsonDataCopy[l]=i,Ge.current.jsonData[l]=s,i[u]&&a(i[u])}};a(e);for(var i=Object.keys(o),l=0,s=i.length;l<s;l++){var u=i[l],p=o[u],d=p.parentId||"";t?r.push(p):d&&o[d]?(o[d].children||(o[d].children=[]),o[d].children.push(p)):r.push(p)}return r},ot=function(){var e;Ge.current.breadcrumbsList.length>0?e=Ge.current.breadcrumbsList[Ge.current.breadcrumbsList.length-1].value:n.breadcrumbsHead&&(e=n.breadcrumbsHead.value);return J&&1===Ge.current.breadcrumbsList.length&&(e=void 0,n.breadcrumbsHead&&(e=n.breadcrumbsHead.value)),e},at=(Qe=G((function(e){var t,r;return oe(this,(function(o){switch(o.label){case 0:return qe(!0),[4,q(e)];case 1:return t=o.sent(),r=t.data,t.err?(qe(!1),Ge.current.reqParams.isLazy&&Ge.current.reqParams.pagination&&1!==Ge.current.page&&(Ge.current.page=Ge.current.page-1),[2]):n.requestCallback?(n.requestCallback(r,(function(e){qe(!1),it(e)})),[2]):(qe(!1),it(r),[2])}}))})),function(e){return Qe.apply(this,arguments)}),it=function(e){if(Ge.current.reqParams.isLazy)if(Ge.current.reqParams.pagination){var t=e.data||{},n=t.list||[],r=t.total,o=rt(n,!0),a=ne(Ge.current.currentSourceData).concat(ne(o));Ge.current.currentSourceData=a,xe(a),Ge.current.page*Ge.current.reqParams.size>=r?Ae(!1):Ae(!0)}else{var i=e.data||[],c=rt(i,!0);Ge.current.currentSourceData=c,xe(c)}else{Ge.current.noLazyReq=!0;var l=e.data||[],s=rt(l,!1);Ge.current.oneDataList=s,Ge.current.currentSourceData=s,ct()}},ct=function(){Ge.current.page=1,Xe(Math.random())},lt=function(e){var t=e?[e]:[];Q(e,Array)&&(t=ne(e));var n=(0,E.ArrayToObject)(be.key,t);Ge.current.selectValueJson=n,Pe(n),Se(ne(t))},st=function(e){var t=["key","img","mainTitle","subTitle","tag"];n.groupType&&n.groupType.length>0&&t.push("type");for(var r={},o=0,a=t.length;o<a;o++){var i=t[o],c=be[i];c&&(r[c]=e[i])}return r},ut=function(e,t,n,r){pe&&pe(e,n,r),null==w&&lt(e||[])},pt=function(){var e=G((function(e){var t,n,r,o,a,i,c,l,s,u,p;return oe(this,(function(d){switch(d.label){case 0:return t=e.key||"","radio"===h&&je[t]?[2]:(n=Ge.current.selectValueJson[t],de?[4,de(e,"radio"===h||!n,!1)]:[3,2]);case 1:if(d.sent())return[2];d.label=2;case 2:if("radio"===h&&(r=st(e),ut(r,0,Ge.current.jsonData[t],Ge.current.jsonDataCopy[t])),"check"===h){for(o=[],a={},i={},c=0,l=Ee.length;c<l;c++)s=Ee[c],n&&e.key===s[be.key]||(u=s[be.key],a[u]=Ge.current.jsonData[u],i[u]=Ge.current.jsonDataCopy[u],o.push(s));n||(p=st(e),a[t]=Ge.current.jsonData[t],i[t]=Ge.current.jsonDataCopy[t],o.push(p)),ut(o,0,a,i)}return[2]}}))}));return function(t){return e.apply(this,arguments)}}(),dt=function(e){if(_){if(!0===_)return!0;if(Q(_,Array)&&e.key&&-1!==_.indexOf(e.key))return!0}return!!e.disabled},ft=function(){var e=G((function(e){var t,n,r,o,a,i,c,l,s,u,p,d,f,m,h,v;return oe(this,(function(b){switch(b.label){case 0:for(t=ne(ye),n=ne(Ee),r=[],o={},a={},i=[],c=[],l=0,s=t.length;l<s;l++)u=t[l],p=u.key||"",dt(u)||(e?Ge.current.selectValueJson[p]||(n.push(st(u)),c.push(u)):Ge.current.selectValueJson[p]&&(i.push(p),c.push(u)));for(d=0,f=n.length;d<f;d++)m=n[d],h=m[be.key],e?(o[h]=Ge.current.jsonData[h],a[h]=Ge.current.jsonDataCopy[h]):-1===i.indexOf(h)&&(o[h]=Ge.current.jsonData[h],a[h]=Ge.current.jsonDataCopy[h],r.push(m));return v=e?n:r,de?[4,de(c,!!e,!1)]:[3,2];case 1:if(b.sent())return[2];b.label=2;case 2:return ut(v,0,o,a),[2]}}))}));return function(t){return e.apply(this,arguments)}}(),mt=function(){var e=ne(Ne),t=K||{label:he({id:"root"}),value:"_paraui_first_floor"};return Ge.current.searchVal&&e.unshift({label:n.searchBreadcrumbs?n.searchBreadcrumbs:he({id:"searchResult"}),value:"_paraui_search"}),J&&e.unshift(t),Ge.current.breadcrumbsList=e,e},ht=function(e){var t=e.isTree;if(Ge.current.reqParams.pagination){var n=e.data||{},r=n.list||[],o=n.total,a=rt(r,!t,!0),i=ne(Ge.current.searchConfig.currentSourceData).concat(ne(a));Ge.current.searchConfig.currentSourceData=i,Be(i),Ge.current.searchConfig.page*Ge.current.searchConfig.size>=o?$e(!1):$e(!0)}else{var c=e.data||[],l=rt(c,!t,!0);Ge.current.searchConfig.currentSourceData=l,Be(l)}},vt=function(e){var t=e.data;if(e.err)return Le(!1),void(Ge.current.reqParams.pagination&&1!==Ge.current.searchConfig.page&&(Ge.current.searchConfig.page=Ge.current.searchConfig.page-1));n.requestCallback?n.requestCallback(t,(function(e){Le(!1),ht(e)}),!0):(Le(!1),ht(t))},bt=function(){var e=G((function(){var e,t,r,o,a;return oe(this,(function(i){switch(i.label){case 0:return fe?(t={},Ge.current.reqParams.pagination&&(t.size=Ge.current.searchConfig.size,t.page=Ge.current.searchConfig.page),[4,fe(Ge.current.searchVal,t)]):[3,2];case 1:return r=i.sent(),vt(r),[2];case 2:return o={method:x,url:n.url||"",ctx:b,uuid:Ge.current.reqId,data:ee({searchKey:null===(e=Ge.current.searchVal)||void 0===e?void 0:e.trim()},n.params)},Ge.current.reqParams.pagination&&(o.data.size=Ge.current.searchConfig.size,o.data.page=Ge.current.searchConfig.page),o=n.paramsCallback?n.paramsCallback(o,!0):o,[4,q(o)];case 3:return a=i.sent(),vt(a),[2]}}))}));return function(){return e.apply(this,arguments)}}(),gt=function(){var e=G((function(e,t){var n,r;return oe(this,(function(o){return Le(!0),Ge.current.searchVal=e,""===e?(Be([]),Le(!1),Ge.current.beforeSearchBreadcrumbs&&(Ge.current.breadcrumbsList=ne(Ge.current.beforeSearchBreadcrumbs),Te(ne(Ge.current.beforeSearchBreadcrumbs)),Ge.current.beforeSearchBreadcrumbs=null,Je&&(n=ot(),r=function(e,t){var n=t,r=function(t){for(var o=0,a=t.length;o<a;o++){var i=t[o],l=i[c],s=i.children||[];if(l===e)return void(n=s);r(s)}};return r(t),n}(n,Ge.current.oneDataList),Ge.current.currentSourceData=r),tt()),t&&(tt(),me&&me()),[2]):(Ge.current.searchConfig.page=1,Ge.current.searchConfig.currentSourceData=[],bt(),[2])}))}));return function(t,n){return e.apply(this,arguments)}}(),yt=function(e,t){if("radio"===h&&ut(null,0,{},{}),"check"===h){var n=ne(Ee);n.splice(t,1);for(var r={},o={},a=0,i=n.length;a<i;a++){var c=n[a][be.key];r[c]=Ge.current.jsonData[c],o[c]=Ge.current.jsonDataCopy[c]}ut(n,0,r,o)}},xt=function(){return t().createElement(Z,{layout:"tb"===s?"tag":"node",backDataFieldConfig:be,groupType:re,handSelectorNodeInfo:n.handSelectorNodeInfo,list:Ee,nodeMode:m,detail:L,detailRender:I,emptyProps:le,onClose:yt,selectDataTitleRender:n.selectDataTitleRender,selectRenderItem:se,selectRender:ue,disabled:_})};return t().createElement("div",{className:(et="".concat(u.n,"-selector"),o&&(et+=" ".concat(o)),s&&(et+=" ".concat(u.n,"-selector-").concat(s)),h&&(et+=" ".concat(u.n,"-selector-").concat(h)),!0===_&&(et+=" ".concat(u.n,"-selector-disabled")),et),style:a},"tb"===s&&xt(),t().createElement(R,{url:g,rowKey:c,value:je,loadMore:ke,isAllCheck:T,list:ye,groupType:re,groupRange:ce,fieldConfig:ve,nodeMode:m,selectMode:h,isLazy:M,detail:L,detailRender:I,search:H,searchTrigger:V,searchPlaceholder:F,searchLoading:De,searchVal:Ie,disabled:_,disabledChild:D,loading:We,searchLoadMore:Ze,searchList:Fe,breadcrumbs:U,breadcrumbsSeparator:W,breadcrumbsList:mt(),emptyProps:le,onLevel:function(e,t){!function(e,t){var n=ne(Ne);t&&(n=[],null===Ge.current.beforeSearchBreadcrumbs&&(Ge.current.beforeSearchBreadcrumbs=ne(Ne))),n.push({label:e.mainTitle,value:e.key||""}),Te(n)}(e,t),Je?(Ge.current.currentSourceData=e.children||[],ct()):Ge.current.reqParams.isLazy&&(Ge.current.reqParams.pagination&&(Ge.current.currentSourceData=[]),ct())},onSelect:pt,onLoad:function(e){if(e)return Ge.current.searchConfig.page=Ge.current.searchConfig.page+1,void bt();Ge.current.page=Ge.current.page+1,Xe(Math.random())},onAllCheck:ft,onClickBreadcrumbs:function(e){var t=Ge.current.breadcrumbsList;if(0!==t.length&&e.value!==t[t.length-1].value){var n=e.value||"",r=K?K.value:"_paraui_first_floor";if("_paraui_search"===e.value)return ze({val:Ge.current.searchVal}),void Te(ne(Ge.current.beforeSearchBreadcrumbs||[]));if(Ge.current.beforeSearchBreadcrumbs&&e.value===r&&(Ge.current.searchVal="",Ge.current.beforeSearchBreadcrumbs=null,ze({val:""}),mt()),Te(n===r?[]:function(e){for(var t=[],n=0,r=Ne.length;n<r;n++){var o=Ne[n];if(t.push(o),o.value===e.value)break}return t}(e)),Je)if(n===r)Ge.current.currentSourceData=ne(Ge.current.oneDataList);else{var o=Ge.current.jsonData[n];Ge.current.currentSourceData=o[ve.children]}else Ge.current.reqParams.isLazy&&Ge.current.reqParams.pagination&&(Ge.current.currentSourceData=[]);ct()}},onSearch:gt,onRefresh:me}),"lr"===s&&xt())}})(),i})()));