@gientech/modual 2.2.10 → 2.2.12

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 (62) hide show
  1. package/README.md +775 -761
  2. package/assets/{GientechStreamReader-Btox1v82.js → GientechStreamReader-Cw7qAuh1.js} +1 -1
  3. package/assets/{LeftOutlined-DbVWaJal.js → LeftOutlined-e0IEJaBy.js} +1 -1
  4. package/assets/_commonjsHelpers-_d1bhYXs.js +1 -0
  5. package/assets/{circle-plus-Bqwlq2UM.js → circle-plus-D-3IlJj0.js} +1 -1
  6. package/assets/database.svg +11 -11
  7. package/assets/database_add.svg +53 -53
  8. package/assets/database_connect.svg +66 -66
  9. package/assets/database_upload.svg +29 -29
  10. package/assets/databse.svg +6 -6
  11. package/assets/defaultWeLogo.svg +14 -14
  12. package/assets/graph.svg +4 -4
  13. package/assets/iconAi.svg +9 -0
  14. package/assets/{index-zCzB-56N.js → index-B1tZE4X5.js} +1 -1
  15. package/assets/{index-CaKTISxy.js → index-BL0njpis.js} +8 -8
  16. package/assets/{index-DiTGnLML.js → index-BmxlskIi.js} +1 -1
  17. package/assets/{index-BB-K4Uv2.js → index-BtIbpTbT.js} +1 -1
  18. package/assets/{index-O8MDfMV6.js → index-BzdLAhNN.js} +1 -1
  19. package/assets/{index-BbQ5_tfg.js → index-CJSVtVuI.js} +20 -20
  20. package/assets/{index-CQChY5LV.js → index-D3P9OTJx.js} +1 -1
  21. package/assets/{index-DCnYE71u.js → index-DfjY9fMd.js} +18 -18
  22. package/assets/{index-DIaywdNt.js → index-DhiJUMaM.js} +1 -1
  23. package/assets/{index-zXg3ABkl.js → index-WUBFv9gs.js} +55 -55
  24. package/assets/knowledge.svg +4 -4
  25. package/assets/{lib_enter-e1LoilHd-DARjRYE-.js → lib_enter-e1LoilHd-DrO8w6Nj.js} +3 -3
  26. package/assets/mysql.svg +14 -14
  27. package/assets/{plus-B4_cWXV7.js → plus-CmPO6ys9.js} +1 -1
  28. package/assets/prism-cpp-DTm5qrps-DEcnTKnd.js +1 -0
  29. package/assets/prism-java-l04-K_JR-DTIQeGI0.js +1 -0
  30. package/assets/prism-php-Cq3Hq1Wv-BQ6y6LDZ.js +1 -0
  31. package/assets/prism-python-CP37PFZv-BvLoHz-u.js +1 -0
  32. package/assets/prism-ruby-DcAmdHPZ-CavK5dyy.js +1 -0
  33. package/assets/prism-rust-CuWIv8B8-D_BYGjS-.js +1 -0
  34. package/assets/prism-typescript-DSWPRTnC-CeVC8Yup.js +1 -0
  35. package/assets/{search-B5sYxJby.js → search-DH1utHsY.js} +1 -1
  36. package/assets/sensitive.svg +5 -5
  37. package/assets/{style-CLviPb8g.js → style-DIHL6Gbk.js} +7 -7
  38. package/assets/style5.css +1 -1
  39. package/assets/{triangle-alert-DMLBtHZo.js → triangle-alert-BjbZI8PD.js} +1 -1
  40. package/assets/{x-BHe7G4Ln.js → x-BUKpZUhr.js} +1 -1
  41. package/assistantConfig.js +20 -20
  42. package/chat.js +1 -1
  43. package/chatCompare.js +1 -1
  44. package/database.js +2 -2
  45. package/databaseId.js +1 -1
  46. package/databaseTable.js +2 -2
  47. package/index.js +1 -1
  48. package/modelManage.js +2 -2
  49. package/package.json +11 -6
  50. package/prism-setup.d.ts +10 -0
  51. package/prism-setup.js +9 -0
  52. package/sensitive.js +6 -6
  53. package/sensitiveWords.js +1 -1
  54. package/streamFilesReader.js +1 -1
  55. package/worker/pdf.worker.min.js +21 -21
  56. package/assets/prism-cpp-DTm5qrps-DCvIrbpC.js +0 -1
  57. package/assets/prism-java-l04-K_JR-DA8-aCBu.js +0 -1
  58. package/assets/prism-php-Cq3Hq1Wv-kjCPib2J.js +0 -1
  59. package/assets/prism-python-CP37PFZv-BhlyiSdN.js +0 -1
  60. package/assets/prism-ruby-DcAmdHPZ-k8JrZLoB.js +0 -1
  61. package/assets/prism-rust-CuWIv8B8-OHEgXNIx.js +0 -1
  62. package/assets/prism-typescript-DSWPRTnC-XMYg5ury.js +0 -1
@@ -1,16 +1,16 @@
1
- import*as i from"react";import ie,{forwardRef as zt,useMemo as Bo,useRef as Le,useCallback as Ee,useImperativeHandle as xn,createContext as To}from"react";import{R as zo,a as Do}from"./LeftOutlined-DbVWaJal.js";import{b3 as Te,K as pe,a0 as wn,b4 as Dt,b5 as Mn,L as de,Q as te,j as H,b6 as On,_ as ne,V as q,b7 as Ao,b8 as Pn,U as ee,A as xe,b9 as _o,l as Ve,O as Rn,M as En,az as we,aS as jo,aT as ko,aU as Ho,aW as Lo,ba as We,bb as At,v as Ko,a6 as Vo,I as Wo,C as ct,o as ut,T as Fo,bc as Xo,a2 as Go,s as D,a8 as qo,aX as Uo,a as Nn,m as Mt,a_ as Yo,bd as it,i as Bn,aG as an,r as Tn,aO as ln,be as Zo,a1 as zn,an as Ot,ap as Dn,b1 as Jo,bf as Qo,bg as er,bh as tr,bi as nr,b as or,bj as sn,$ as cn,h as rr,e as ir,au as ar,af as lr,bk as sr,a3 as cr,bl as ur,u as dr,bm as mr,bn as vr,bo as pr,H as un}from"./index-DCnYE71u.js";import{flushSync as fr}from"react-dom";var gr=pe.ESC,br=pe.TAB;function hr(e){var n=e.visible,t=e.triggerRef,o=e.onVisibleChange,r=e.autoFocus,l=e.overlayRef,a=i.useRef(!1),s=function(){if(n){var u,m;(u=t.current)===null||u===void 0||(m=u.focus)===null||m===void 0||m.call(u),o==null||o(!1)}},c=function(){var u;return(u=l.current)!==null&&u!==void 0&&u.focus?(l.current.focus(),a.current=!0,!0):!1},d=function(u){switch(u.keyCode){case gr:s();break;case br:{var m=!1;a.current||(m=c()),m?u.preventDefault():s();break}}};i.useEffect(function(){return n?(window.addEventListener("keydown",d),r&&Te(c,3),function(){window.removeEventListener("keydown",d),a.current=!1}):function(){a.current=!1}},[n])}var $r=zt(function(e,n){var t=e.overlay,o=e.arrow,r=e.prefixCls,l=Bo(function(){var s;return typeof t=="function"?s=t():s=t,s},[t]),a=wn(n,Dt(l));return ie.createElement(ie.Fragment,null,o&&ie.createElement("div",{className:"".concat(r,"-arrow")}),ie.cloneElement(l,{ref:Mn(l)?a:void 0}))}),Ne={adjustX:1,adjustY:1},Be=[0,0],Cr={topLeft:{points:["bl","tl"],overflow:Ne,offset:[0,-4],targetOffset:Be},top:{points:["bc","tc"],overflow:Ne,offset:[0,-4],targetOffset:Be},topRight:{points:["br","tr"],overflow:Ne,offset:[0,-4],targetOffset:Be},bottomLeft:{points:["tl","bl"],overflow:Ne,offset:[0,4],targetOffset:Be},bottom:{points:["tc","bc"],overflow:Ne,offset:[0,4],targetOffset:Be},bottomRight:{points:["tr","br"],overflow:Ne,offset:[0,4],targetOffset:Be}},yr=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ir(e,n){var t,o=e.arrow,r=o===void 0?!1:o,l=e.prefixCls,a=l===void 0?"rc-dropdown":l,s=e.transitionName,c=e.animation,d=e.align,f=e.placement,u=f===void 0?"bottomLeft":f,m=e.placements,g=m===void 0?Cr:m,v=e.getPopupContainer,p=e.showAction,b=e.hideAction,I=e.overlayClassName,w=e.overlayStyle,S=e.visible,C=e.trigger,$=C===void 0?["hover"]:C,h=e.autoFocus,E=e.overlay,y=e.children,x=e.onVisibleChange,T=de(e,yr),N=ie.useState(),P=te(N,2),M=P[0],O=P[1],R="visible"in e?S:M,L=ie.useRef(null),B=ie.useRef(null),k=ie.useRef(null);ie.useImperativeHandle(n,function(){return L.current});var F=function(K){O(K),x==null||x(K)};hr({visible:R,triggerRef:k,onVisibleChange:F,autoFocus:h,overlayRef:B});var X=function(K){var V=e.onOverlayClick;O(!1),V&&V(K)},J=function(){return ie.createElement($r,{ref:B,overlay:E,prefixCls:a,arrow:r})},U=function(){return typeof E=="function"?J:J()},z=function(){var K=e.minOverlayWidthMatchTrigger,V=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?K:!V},A=function(){var K=e.openClassName;return K!==void 0?K:"".concat(a,"-open")},_=ie.cloneElement(y,{className:H((t=y.props)===null||t===void 0?void 0:t.className,R&&A()),ref:Mn(y)?wn(k,Dt(y)):void 0}),Q=b;return!Q&&$.indexOf("contextMenu")!==-1&&(Q=["click"]),ie.createElement(On,ne({builtinPlacements:g},T,{prefixCls:a,ref:L,popupClassName:H(I,q({},"".concat(a,"-show-arrow"),r)),popupStyle:w,action:$,showAction:p,hideAction:Q,popupPlacement:u,popupAlign:d,popupTransitionName:s,popupAnimation:c,popupVisible:R,stretch:z()?"minWidth":"",popup:U(),onPopupVisibleChange:F,onPopupClick:X,getPopupContainer:v}),_)}const Sr=ie.forwardRef(Ir),xr=e=>typeof e!="object"&&typeof e!="function"||e===null;var An=i.createContext(null);function _n(e,n){return e===void 0?null:"".concat(e,"-").concat(n)}function jn(e){var n=i.useContext(An);return _n(n,e)}var wr=["children","locked"],ve=i.createContext(null);function Mr(e,n){var t=ee({},e);return Object.keys(n).forEach(function(o){var r=n[o];r!==void 0&&(t[o]=r)}),t}function Fe(e){var n=e.children,t=e.locked,o=de(e,wr),r=i.useContext(ve),l=Ao(function(){return Mr(r,o)},[r,o],function(a,s){return!t&&(a[0]!==s[0]||!Pn(a[1],s[1],!0))});return i.createElement(ve.Provider,{value:l},n)}var Or=[],kn=i.createContext(null);function dt(){return i.useContext(kn)}var Hn=i.createContext(Or);function ze(e){var n=i.useContext(Hn);return i.useMemo(function(){return e!==void 0?[].concat(xe(n),[e]):n},[n,e])}var Ln=i.createContext(null),_t=i.createContext({});function dn(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(_o(e)){var t=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(t)||e.isContentEditable||t==="a"&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),l=Number(r),a=null;return r&&!Number.isNaN(l)?a=l:o&&a===null&&(a=0),o&&e.disabled&&(a=null),a!==null&&(a>=0||n&&a<0)}return!1}function Pr(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=xe(e.querySelectorAll("*")).filter(function(o){return dn(o,n)});return dn(e,n)&&t.unshift(e),t}var Pt=pe.LEFT,Rt=pe.RIGHT,Et=pe.UP,ot=pe.DOWN,rt=pe.ENTER,Kn=pe.ESC,ke=pe.HOME,He=pe.END,mn=[Et,ot,Pt,Rt];function Rr(e,n,t,o){var r,l="prev",a="next",s="children",c="parent";if(e==="inline"&&o===rt)return{inlineTrigger:!0};var d=q(q({},Et,l),ot,a),f=q(q(q(q({},Pt,t?a:l),Rt,t?l:a),ot,s),rt,s),u=q(q(q(q(q(q({},Et,l),ot,a),rt,s),Kn,c),Pt,t?s:c),Rt,t?c:s),m={inline:d,horizontal:f,vertical:u,inlineSub:d,horizontalSub:u,verticalSub:u},g=(r=m["".concat(e).concat(n?"":"Sub")])===null||r===void 0?void 0:r[o];switch(g){case l:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function Er(e){for(var n=e;n;){if(n.getAttribute("data-menu-list"))return n;n=n.parentElement}return null}function Nr(e,n){for(var t=e||document.activeElement;t;){if(n.has(t))return t;t=t.parentElement}return null}function jt(e,n){var t=Pr(e,!0);return t.filter(function(o){return n.has(o)})}function vn(e,n,t){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var r=jt(e,n),l=r.length,a=r.findIndex(function(s){return t===s});return o<0?a===-1?a=l-1:a-=1:o>0&&(a+=1),a=(a+l)%l,r[a]}var Nt=function(n,t){var o=new Set,r=new Map,l=new Map;return n.forEach(function(a){var s=document.querySelector("[data-menu-id='".concat(_n(t,a),"']"));s&&(o.add(s),l.set(s,a),r.set(a,s))}),{elements:o,key2element:r,element2key:l}};function Br(e,n,t,o,r,l,a,s,c,d){var f=i.useRef(),u=i.useRef();u.current=n;var m=function(){Te.cancel(f.current)};return i.useEffect(function(){return function(){m()}},[]),function(g){var v=g.which;if([].concat(mn,[rt,Kn,ke,He]).includes(v)){var p=l(),b=Nt(p,o),I=b,w=I.elements,S=I.key2element,C=I.element2key,$=S.get(n),h=Nr($,w),E=C.get(h),y=Rr(e,a(E,!0).length===1,t,v);if(!y&&v!==ke&&v!==He)return;(mn.includes(v)||[ke,He].includes(v))&&g.preventDefault();var x=function(B){if(B){var k=B,F=B.querySelector("a");F!=null&&F.getAttribute("href")&&(k=F);var X=C.get(B);s(X),m(),f.current=Te(function(){u.current===X&&k.focus()})}};if([ke,He].includes(v)||y.sibling||!h){var T;!h||e==="inline"?T=r.current:T=Er(h);var N,P=jt(T,w);v===ke?N=P[0]:v===He?N=P[P.length-1]:N=vn(T,w,h,y.offset),x(N)}else if(y.inlineTrigger)c(E);else if(y.offset>0)c(E,!0),m(),f.current=Te(function(){b=Nt(p,o);var L=h.getAttribute("aria-controls"),B=document.getElementById(L),k=vn(B,b.elements);x(k)},5);else if(y.offset<0){var M=a(E,!0),O=M[M.length-2],R=S.get(O);c(O,!1),x(R)}}d==null||d(g)}}function Tr(e){Promise.resolve().then(e)}var kt="__RC_UTIL_PATH_SPLIT__",pn=function(n){return n.join(kt)},zr=function(n){return n.split(kt)},Bt="rc-menu-more";function Dr(){var e=i.useState({}),n=te(e,2),t=n[1],o=Le(new Map),r=Le(new Map),l=i.useState([]),a=te(l,2),s=a[0],c=a[1],d=Le(0),f=Le(!1),u=function(){f.current||t({})},m=Ee(function(S,C){var $=pn(C);r.current.set($,S),o.current.set(S,$),d.current+=1;var h=d.current;Tr(function(){h===d.current&&u()})},[]),g=Ee(function(S,C){var $=pn(C);r.current.delete($),o.current.delete(S)},[]),v=Ee(function(S){c(S)},[]),p=Ee(function(S,C){var $=o.current.get(S)||"",h=zr($);return C&&s.includes(h[0])&&h.unshift(Bt),h},[s]),b=Ee(function(S,C){return S.filter(function($){return $!==void 0}).some(function($){var h=p($,!0);return h.includes(C)})},[p]),I=function(){var C=xe(o.current.keys());return s.length&&C.push(Bt),C},w=Ee(function(S){var C="".concat(o.current.get(S)).concat(kt),$=new Set;return xe(r.current.keys()).forEach(function(h){h.startsWith(C)&&$.add(r.current.get(h))}),$},[]);return i.useEffect(function(){return function(){f.current=!0}},[]),{registerPath:m,unregisterPath:g,refreshOverflowKeys:v,isSubPathKey:b,getKeyPath:p,getKeys:I,getSubPathKeys:w}}function Ke(e){var n=i.useRef(e);n.current=e;var t=i.useCallback(function(){for(var o,r=arguments.length,l=new Array(r),a=0;a<r;a++)l[a]=arguments[a];return(o=n.current)===null||o===void 0?void 0:o.call.apply(o,[n].concat(l))},[]);return e?t:void 0}var Ar=Math.random().toFixed(5).toString().slice(2),fn=0;function _r(e){var n=Ve(e,{value:e}),t=te(n,2),o=t[0],r=t[1];return i.useEffect(function(){fn+=1;var l="".concat(Ar,"-").concat(fn);r("rc-menu-uuid-".concat(l))},[]),o}function Vn(e,n,t,o){var r=i.useContext(ve),l=r.activeKey,a=r.onActive,s=r.onInactive,c={active:l===e};return n||(c.onMouseEnter=function(d){t==null||t({key:e,domEvent:d}),a(e)},c.onMouseLeave=function(d){o==null||o({key:e,domEvent:d}),s(e)}),c}function Wn(e){var n=i.useContext(ve),t=n.mode,o=n.rtl,r=n.inlineIndent;if(t!=="inline")return null;var l=e;return o?{paddingRight:l*r}:{paddingLeft:l*r}}function Fn(e){var n=e.icon,t=e.props,o=e.children,r;return n===null||n===!1?null:(typeof n=="function"?r=i.createElement(n,ee({},t)):typeof n!="boolean"&&(r=n),r||o||null)}var jr=["item"];function at(e){var n=e.item,t=de(e,jr);return Object.defineProperty(t,"item",{get:function(){return Rn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),n}}),t}var kr=["title","attribute","elementRef"],Hr=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Lr=["active"],Kr=(function(e){jo(t,e);var n=ko(t);function t(){return Ho(this,t),n.apply(this,arguments)}return Lo(t,[{key:"render",value:function(){var r=this.props,l=r.title,a=r.attribute,s=r.elementRef,c=de(r,kr),d=we(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Rn(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),i.createElement(We.Item,ne({},a,{title:typeof l=="string"?l:void 0},d,{ref:s}))}}]),t})(i.Component),Vr=i.forwardRef(function(e,n){var t=e.style,o=e.className,r=e.eventKey;e.warnKey;var l=e.disabled,a=e.itemIcon,s=e.children,c=e.role,d=e.onMouseEnter,f=e.onMouseLeave,u=e.onClick,m=e.onKeyDown,g=e.onFocus,v=de(e,Hr),p=jn(r),b=i.useContext(ve),I=b.prefixCls,w=b.onItemClick,S=b.disabled,C=b.overflowDisabled,$=b.itemIcon,h=b.selectedKeys,E=b.onActive,y=i.useContext(_t),x=y._internalRenderMenuItem,T="".concat(I,"-item"),N=i.useRef(),P=i.useRef(),M=S||l,O=En(n,P),R=ze(r),L=function(V){return{key:r,keyPath:xe(R).reverse(),item:N.current,domEvent:V}},B=a||$,k=Vn(r,M,d,f),F=k.active,X=de(k,Lr),J=h.includes(r),U=Wn(R.length),z=function(V){if(!M){var re=L(V);u==null||u(at(re)),w(re)}},A=function(V){if(m==null||m(V),V.which===pe.ENTER){var re=L(V);u==null||u(at(re)),w(re)}},_=function(V){E(r),g==null||g(V)},Q={};e.role==="option"&&(Q["aria-selected"]=J);var Y=i.createElement(Kr,ne({ref:N,elementRef:O,role:c===null?"none":c||"menuitem",tabIndex:l?null:-1,"data-menu-id":C&&p?null:p},we(v,["extra"]),X,Q,{component:"li","aria-disabled":l,style:ee(ee({},U),t),className:H(T,q(q(q({},"".concat(T,"-active"),F),"".concat(T,"-selected"),J),"".concat(T,"-disabled"),M),o),onClick:z,onKeyDown:A,onFocus:_}),s,i.createElement(Fn,{props:ee(ee({},e),{},{isSelected:J}),icon:B}));return x&&(Y=x(Y,e,{selected:J})),Y});function Wr(e,n){var t=e.eventKey,o=dt(),r=ze(t);return i.useEffect(function(){if(o)return o.registerPath(t,r),function(){o.unregisterPath(t,r)}},[r]),o?null:i.createElement(Vr,ne({},e,{ref:n}))}const mt=i.forwardRef(Wr);var Fr=["className","children"],Xr=function(n,t){var o=n.className,r=n.children,l=de(n,Fr),a=i.useContext(ve),s=a.prefixCls,c=a.mode,d=a.rtl;return i.createElement("ul",ne({className:H(s,d&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(c==="inline"?"inline":"vertical"),o),role:"menu"},l,{"data-menu-list":!0,ref:t}),r)},Ht=i.forwardRef(Xr);Ht.displayName="SubMenuList";function Lt(e,n){return At(e).map(function(t,o){if(i.isValidElement(t)){var r,l,a=t.key,s=(r=(l=t.props)===null||l===void 0?void 0:l.eventKey)!==null&&r!==void 0?r:a,c=s==null;c&&(s="tmp_key-".concat([].concat(xe(n),[o]).join("-")));var d={key:s,eventKey:s};return i.cloneElement(t,d)}return t})}var oe={adjustX:1,adjustY:1},Gr={topLeft:{points:["bl","tl"],overflow:oe},topRight:{points:["br","tr"],overflow:oe},bottomLeft:{points:["tl","bl"],overflow:oe},bottomRight:{points:["tr","br"],overflow:oe},leftTop:{points:["tr","tl"],overflow:oe},leftBottom:{points:["br","bl"],overflow:oe},rightTop:{points:["tl","tr"],overflow:oe},rightBottom:{points:["bl","br"],overflow:oe}},qr={topLeft:{points:["bl","tl"],overflow:oe},topRight:{points:["br","tr"],overflow:oe},bottomLeft:{points:["tl","bl"],overflow:oe},bottomRight:{points:["tr","br"],overflow:oe},rightTop:{points:["tr","tl"],overflow:oe},rightBottom:{points:["br","bl"],overflow:oe},leftTop:{points:["tl","tr"],overflow:oe},leftBottom:{points:["bl","br"],overflow:oe}};function Xn(e,n,t){if(n)return n;if(t)return t[e]||t.other}var Ur={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Yr(e){var n=e.prefixCls,t=e.visible,o=e.children,r=e.popup,l=e.popupStyle,a=e.popupClassName,s=e.popupOffset,c=e.disabled,d=e.mode,f=e.onVisibleChange,u=i.useContext(ve),m=u.getPopupContainer,g=u.rtl,v=u.subMenuOpenDelay,p=u.subMenuCloseDelay,b=u.builtinPlacements,I=u.triggerSubMenuAction,w=u.forceSubMenuRender,S=u.rootClassName,C=u.motion,$=u.defaultMotions,h=i.useState(!1),E=te(h,2),y=E[0],x=E[1],T=g?ee(ee({},qr),b):ee(ee({},Gr),b),N=Ur[d],P=Xn(d,C,$),M=i.useRef(P);d!=="inline"&&(M.current=P);var O=ee(ee({},M.current),{},{leavedClassName:"".concat(n,"-hidden"),removeOnLeave:!1,motionAppear:!0}),R=i.useRef();return i.useEffect(function(){return R.current=Te(function(){x(t)}),function(){Te.cancel(R.current)}},[t]),i.createElement(On,{prefixCls:n,popupClassName:H("".concat(n,"-popup"),q({},"".concat(n,"-rtl"),g),a,S),stretch:d==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:T,popupPlacement:N,popupVisible:y,popup:r,popupStyle:l,popupAlign:s&&{offset:s},action:c?[]:[I],mouseEnterDelay:v,mouseLeaveDelay:p,onPopupVisibleChange:f,forceRender:w,popupMotion:O,fresh:!0},o)}function Zr(e){var n=e.id,t=e.open,o=e.keyPath,r=e.children,l="inline",a=i.useContext(ve),s=a.prefixCls,c=a.forceSubMenuRender,d=a.motion,f=a.defaultMotions,u=a.mode,m=i.useRef(!1);m.current=u===l;var g=i.useState(!m.current),v=te(g,2),p=v[0],b=v[1],I=m.current?t:!1;i.useEffect(function(){m.current&&b(!1)},[u]);var w=ee({},Xn(l,d,f));o.length>1&&(w.motionAppear=!1);var S=w.onVisibleChanged;return w.onVisibleChanged=function(C){return!m.current&&!C&&b(!0),S==null?void 0:S(C)},p?null:i.createElement(Fe,{mode:l,locked:!m.current},i.createElement(Ko,ne({visible:I},w,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(C){var $=C.className,h=C.style;return i.createElement(Ht,{id:n,className:$,style:h},r)}))}var Jr=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Qr=["active"],ei=i.forwardRef(function(e,n){var t=e.style,o=e.className,r=e.title,l=e.eventKey;e.warnKey;var a=e.disabled,s=e.internalPopupClose,c=e.children,d=e.itemIcon,f=e.expandIcon,u=e.popupClassName,m=e.popupOffset,g=e.popupStyle,v=e.onClick,p=e.onMouseEnter,b=e.onMouseLeave,I=e.onTitleClick,w=e.onTitleMouseEnter,S=e.onTitleMouseLeave,C=de(e,Jr),$=jn(l),h=i.useContext(ve),E=h.prefixCls,y=h.mode,x=h.openKeys,T=h.disabled,N=h.overflowDisabled,P=h.activeKey,M=h.selectedKeys,O=h.itemIcon,R=h.expandIcon,L=h.onItemClick,B=h.onOpenChange,k=h.onActive,F=i.useContext(_t),X=F._internalRenderSubMenuItem,J=i.useContext(Ln),U=J.isSubPathKey,z=ze(),A="".concat(E,"-submenu"),_=T||a,Q=i.useRef(),Y=i.useRef(),K=d??O,V=f??R,re=x.includes(l),ae=!N&&re,Me=U(M,l),Oe=Vn(l,_,w,S),fe=Oe.active,$e=de(Oe,Qr),Ce=i.useState(!1),G=te(Ce,2),Pe=G[0],qe=G[1],Ue=function(le){_||qe(le)},ft=function(le){Ue(!0),p==null||p({key:l,domEvent:le})},Ye=function(le){Ue(!1),b==null||b({key:l,domEvent:le})},ge=i.useMemo(function(){return fe||(y!=="inline"?Pe||U([P],l):!1)},[y,fe,P,Pe,l,U]),gt=Wn(z.length),bt=function(le){_||(I==null||I({key:l,domEvent:le}),y==="inline"&&B(l,!re))},Ze=Ke(function(me){v==null||v(at(me)),L(me)}),Je=function(le){y!=="inline"&&B(l,le)},ht=function(){k(l)},be=$&&"".concat($,"-popup"),De=i.useMemo(function(){return i.createElement(Fn,{icon:y!=="horizontal"?V:void 0,props:ee(ee({},e),{},{isOpen:ae,isSubMenu:!0})},i.createElement("i",{className:"".concat(A,"-arrow")}))},[y,V,e,ae,A]),ye=i.createElement("div",ne({role:"menuitem",style:gt,className:"".concat(A,"-title"),tabIndex:_?null:-1,ref:Q,title:typeof r=="string"?r:null,"data-menu-id":N&&$?null:$,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":be,"aria-disabled":_,onClick:bt,onFocus:ht},$e),r,De),Ae=i.useRef(y);if(y!=="inline"&&z.length>1?Ae.current="vertical":Ae.current=y,!N){var Re=Ae.current;ye=i.createElement(Yr,{mode:Re,prefixCls:A,visible:!s&&ae&&y!=="inline",popupClassName:u,popupOffset:m,popupStyle:g,popup:i.createElement(Fe,{mode:Re==="horizontal"?"vertical":Re},i.createElement(Ht,{id:be,ref:Y},c)),disabled:_,onVisibleChange:Je},ye)}var ue=i.createElement(We.Item,ne({ref:n,role:"none"},C,{component:"li",style:t,className:H(A,"".concat(A,"-").concat(y),o,q(q(q(q({},"".concat(A,"-open"),ae),"".concat(A,"-active"),ge),"".concat(A,"-selected"),Me),"".concat(A,"-disabled"),_)),onMouseEnter:ft,onMouseLeave:Ye}),ye,!N&&i.createElement(Zr,{id:be,open:ae,keyPath:z},c));return X&&(ue=X(ue,e,{selected:Me,active:ge,open:ae,disabled:_})),i.createElement(Fe,{onItemClick:Ze,mode:y==="horizontal"?"vertical":y,itemIcon:K,expandIcon:V},ue)}),vt=i.forwardRef(function(e,n){var t=e.eventKey,o=e.children,r=ze(t),l=Lt(o,r),a=dt();i.useEffect(function(){if(a)return a.registerPath(t,r),function(){a.unregisterPath(t,r)}},[r]);var s;return a?s=l:s=i.createElement(ei,ne({ref:n},e),l),i.createElement(Hn.Provider,{value:r},s)});function Kt(e){var n=e.className,t=e.style,o=i.useContext(ve),r=o.prefixCls,l=dt();return l?null:i.createElement("li",{role:"separator",className:H("".concat(r,"-item-divider"),n),style:t})}var ti=["className","title","eventKey","children"],ni=i.forwardRef(function(e,n){var t=e.className,o=e.title;e.eventKey;var r=e.children,l=de(e,ti),a=i.useContext(ve),s=a.prefixCls,c="".concat(s,"-item-group");return i.createElement("li",ne({ref:n,role:"presentation"},l,{onClick:function(f){return f.stopPropagation()},className:H(c,t)}),i.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof o=="string"?o:void 0},o),i.createElement("ul",{role:"group",className:"".concat(c,"-list")},r))}),Vt=i.forwardRef(function(e,n){var t=e.eventKey,o=e.children,r=ze(t),l=Lt(o,r),a=dt();return a?l:i.createElement(ni,ne({ref:n},we(e,["warnKey"])),l)}),oi=["label","children","key","type","extra"];function Tt(e,n,t){var o=n.item,r=n.group,l=n.submenu,a=n.divider;return(e||[]).map(function(s,c){if(s&&Vo(s)==="object"){var d=s,f=d.label,u=d.children,m=d.key,g=d.type,v=d.extra,p=de(d,oi),b=m??"tmp-".concat(c);return u||g==="group"?g==="group"?i.createElement(r,ne({key:b},p,{title:f}),Tt(u,n,t)):i.createElement(l,ne({key:b},p,{title:f}),Tt(u,n,t)):g==="divider"?i.createElement(a,ne({key:b},p)):i.createElement(o,ne({key:b},p,{extra:v}),f,(!!v||v===0)&&i.createElement("span",{className:"".concat(t,"-item-extra")},v))}return null}).filter(function(s){return s})}function gn(e,n,t,o,r){var l=e,a=ee({divider:Kt,item:mt,group:Vt,submenu:vt},o);return n&&(l=Tt(n,a,r)),Lt(l,t)}var ri=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Se=[],ii=i.forwardRef(function(e,n){var t,o=e,r=o.prefixCls,l=r===void 0?"rc-menu":r,a=o.rootClassName,s=o.style,c=o.className,d=o.tabIndex,f=d===void 0?0:d,u=o.items,m=o.children,g=o.direction,v=o.id,p=o.mode,b=p===void 0?"vertical":p,I=o.inlineCollapsed,w=o.disabled,S=o.disabledOverflow,C=o.subMenuOpenDelay,$=C===void 0?.1:C,h=o.subMenuCloseDelay,E=h===void 0?.1:h,y=o.forceSubMenuRender,x=o.defaultOpenKeys,T=o.openKeys,N=o.activeKey,P=o.defaultActiveFirst,M=o.selectable,O=M===void 0?!0:M,R=o.multiple,L=R===void 0?!1:R,B=o.defaultSelectedKeys,k=o.selectedKeys,F=o.onSelect,X=o.onDeselect,J=o.inlineIndent,U=J===void 0?24:J,z=o.motion,A=o.defaultMotions,_=o.triggerSubMenuAction,Q=_===void 0?"hover":_,Y=o.builtinPlacements,K=o.itemIcon,V=o.expandIcon,re=o.overflowedIndicator,ae=re===void 0?"...":re,Me=o.overflowedIndicatorPopupClassName,Oe=o.getPopupContainer,fe=o.onClick,$e=o.onOpenChange,Ce=o.onKeyDown;o.openAnimation,o.openTransitionName;var G=o._internalRenderMenuItem,Pe=o._internalRenderSubMenuItem,qe=o._internalComponents,Ue=de(o,ri),ft=i.useMemo(function(){return[gn(m,u,Se,qe,l),gn(m,u,Se,{},l)]},[m,u,qe]),Ye=te(ft,2),ge=Ye[0],gt=Ye[1],bt=i.useState(!1),Ze=te(bt,2),Je=Ze[0],ht=Ze[1],be=i.useRef(),De=_r(v),ye=g==="rtl",Ae=Ve(x,{value:T,postState:function(j){return j||Se}}),Re=te(Ae,2),ue=Re[0],me=Re[1],le=function(j){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function se(){me(j),$e==null||$e(j)}W?fr(se):se()},to=i.useState(ue),Wt=te(to,2),no=Wt[0],oo=Wt[1],$t=i.useRef(!1),ro=i.useMemo(function(){return(b==="inline"||b==="vertical")&&I?["vertical",I]:[b,!1]},[b,I]),Ft=te(ro,2),Qe=Ft[0],Ct=Ft[1],Xt=Qe==="inline",io=i.useState(Qe),Gt=te(io,2),he=Gt[0],ao=Gt[1],lo=i.useState(Ct),qt=te(lo,2),so=qt[0],co=qt[1];i.useEffect(function(){ao(Qe),co(Ct),$t.current&&(Xt?me(no):le(Se))},[Qe,Ct]);var uo=i.useState(0),Ut=te(uo,2),et=Ut[0],mo=Ut[1],yt=et>=ge.length-1||he!=="horizontal"||S;i.useEffect(function(){Xt&&oo(ue)},[ue]),i.useEffect(function(){return $t.current=!0,function(){$t.current=!1}},[]);var Ie=Dr(),Yt=Ie.registerPath,Zt=Ie.unregisterPath,vo=Ie.refreshOverflowKeys,Jt=Ie.isSubPathKey,po=Ie.getKeyPath,Qt=Ie.getKeys,fo=Ie.getSubPathKeys,go=i.useMemo(function(){return{registerPath:Yt,unregisterPath:Zt}},[Yt,Zt]),bo=i.useMemo(function(){return{isSubPathKey:Jt}},[Jt]);i.useEffect(function(){vo(yt?Se:ge.slice(et+1).map(function(Z){return Z.key}))},[et,yt]);var ho=Ve(N||P&&((t=ge[0])===null||t===void 0?void 0:t.key),{value:N}),en=te(ho,2),_e=en[0],It=en[1],$o=Ke(function(Z){It(Z)}),Co=Ke(function(){It(void 0)});xn(n,function(){return{list:be.current,focus:function(j){var W,se=Qt(),ce=Nt(se,De),nt=ce.elements,St=ce.key2element,Eo=ce.element2key,on=jt(be.current,nt),rn=_e??(on[0]?Eo.get(on[0]):(W=ge.find(function(No){return!No.props.disabled}))===null||W===void 0?void 0:W.key),je=St.get(rn);if(rn&&je){var xt;je==null||(xt=je.focus)===null||xt===void 0||xt.call(je,j)}}}});var yo=Ve(B||[],{value:k,postState:function(j){return Array.isArray(j)?j:j==null?Se:[j]}}),tn=te(yo,2),tt=tn[0],Io=tn[1],So=function(j){if(O){var W=j.key,se=tt.includes(W),ce;L?se?ce=tt.filter(function(St){return St!==W}):ce=[].concat(xe(tt),[W]):ce=[W],Io(ce);var nt=ee(ee({},j),{},{selectedKeys:ce});se?X==null||X(nt):F==null||F(nt)}!L&&ue.length&&he!=="inline"&&le(Se)},xo=Ke(function(Z){fe==null||fe(at(Z)),So(Z)}),nn=Ke(function(Z,j){var W=ue.filter(function(ce){return ce!==Z});if(j)W.push(Z);else if(he!=="inline"){var se=fo(Z);W=W.filter(function(ce){return!se.has(ce)})}Pn(ue,W,!0)||le(W,!0)}),wo=function(j,W){var se=W??!ue.includes(j);nn(j,se)},Mo=Br(he,_e,ye,De,be,Qt,po,It,wo,Ce);i.useEffect(function(){ht(!0)},[]);var Oo=i.useMemo(function(){return{_internalRenderMenuItem:G,_internalRenderSubMenuItem:Pe}},[G,Pe]),Po=he!=="horizontal"||S?ge:ge.map(function(Z,j){return i.createElement(Fe,{key:Z.key,overflowDisabled:j>et},Z)}),Ro=i.createElement(We,ne({id:v,ref:be,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:mt,className:H(l,"".concat(l,"-root"),"".concat(l,"-").concat(he),c,q(q({},"".concat(l,"-inline-collapsed"),so),"".concat(l,"-rtl"),ye),a),dir:g,style:s,role:"menu",tabIndex:f,data:Po,renderRawItem:function(j){return j},renderRawRest:function(j){var W=j.length,se=W?ge.slice(-W):null;return i.createElement(vt,{eventKey:Bt,title:ae,disabled:yt,internalPopupClose:W===0,popupClassName:Me},se)},maxCount:he!=="horizontal"||S?We.INVALIDATE:We.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(j){mo(j)},onKeyDown:Mo},Ue));return i.createElement(_t.Provider,{value:Oo},i.createElement(An.Provider,{value:De},i.createElement(Fe,{prefixCls:l,rootClassName:a,mode:he,openKeys:ue,rtl:ye,disabled:w,motion:Je?z:null,defaultMotions:Je?A:null,activeKey:_e,onActive:$o,onInactive:Co,selectedKeys:tt,inlineIndent:U,subMenuOpenDelay:$,subMenuCloseDelay:E,forceSubMenuRender:y,builtinPlacements:Y,triggerSubMenuAction:Q,getPopupContainer:Oe,itemIcon:K,expandIcon:V,onItemClick:xo,onOpenChange:nn},i.createElement(Ln.Provider,{value:bo},Ro),i.createElement("div",{style:{display:"none"},"aria-hidden":!0},i.createElement(kn.Provider,{value:go},gt)))))}),Xe=ii;Xe.Item=mt;Xe.SubMenu=vt;Xe.ItemGroup=Vt;Xe.Divider=Kt;const Gn=i.createContext({});var ai={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},li=function(n,t){return i.createElement(Wo,ne({},n,{ref:t,icon:ai}))},qn=i.forwardRef(li);const lt=To({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var si=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]]);return t};const Un=e=>{const{prefixCls:n,className:t,dashed:o}=e,r=si(e,["prefixCls","className","dashed"]),{getPrefixCls:l}=i.useContext(ct),a=l("menu",n),s=H({[`${a}-item-divider-dashed`]:!!o},t);return i.createElement(Kt,Object.assign({className:s},r))},Yn=e=>{var n;const{className:t,children:o,icon:r,title:l,danger:a,extra:s}=e,{prefixCls:c,firstLevel:d,direction:f,disableMenuItemTitleTooltip:u,inlineCollapsed:m}=i.useContext(lt),g=S=>{const C=o==null?void 0:o[0],$=i.createElement("span",{className:H(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!s||s===0})},o);return(!r||i.isValidElement(o)&&o.type==="span")&&o&&S&&d&&typeof C=="string"?i.createElement("div",{className:`${c}-inline-collapsed-noicon`},C.charAt(0)):$},{siderCollapsed:v}=i.useContext(Gn);let p=l;typeof l>"u"?p=d?o:"":l===!1&&(p="");const b={title:p};!v&&!m&&(b.title=null,b.open=!1);const I=At(o).length;let w=i.createElement(mt,Object.assign({},we(e,["title","icon","danger"]),{className:H({[`${c}-item-danger`]:a,[`${c}-item-only-child`]:(r?I+1:I)===1},t),title:typeof l=="string"?l:void 0}),ut(r,{className:H(i.isValidElement(r)?(n=r.props)===null||n===void 0?void 0:n.className:void 0,`${c}-item-icon`)}),g(m));return u||(w=i.createElement(Fo,Object.assign({},b,{placement:f==="rtl"?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),w)),w};var ci=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]]);return t};const st=i.createContext(null),ui=i.forwardRef((e,n)=>{const{children:t}=e,o=ci(e,["children"]),r=i.useContext(st),l=i.useMemo(()=>Object.assign(Object.assign({},r),o),[r,o.prefixCls,o.mode,o.selectable,o.rootClassName]),a=Xo(t),s=En(n,a?Dt(t):null);return i.createElement(st.Provider,{value:l},i.createElement(Go,{space:!0},a?i.cloneElement(t,{ref:s}):t))}),di=e=>{const{componentCls:n,motionDurationSlow:t,horizontalLineHeight:o,colorSplit:r,lineWidth:l,lineType:a,itemPaddingInline:s}=e;return{[`${n}-horizontal`]:{lineHeight:o,border:0,borderBottom:`${D(l)} ${a} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${n}-item, ${n}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${n}-item:hover,
1
+ import*as i from"react";import ie,{forwardRef as Dt,useMemo as Bo,useRef as Le,useCallback as Ee,useImperativeHandle as xn,createContext as To}from"react";import{R as Do,a as zo}from"./LeftOutlined-e0IEJaBy.js";import{b2 as Te,K as pe,a0 as wn,b3 as zt,b4 as Mn,L as de,Q as te,j as H,b5 as On,_ as ne,V as q,b6 as Ao,b7 as Pn,U as ee,A as xe,b8 as _o,l as Ve,O as Rn,M as En,ay as we,aR as jo,aS as ko,aT as Ho,aV as Lo,b9 as We,ba as At,v as Ko,a5 as Vo,I as Wo,C as ct,o as ut,T as Fo,bb as Xo,a2 as Go,s as z,a7 as qo,aW as Uo,a as Nn,m as Mt,aZ as Yo,bc as it,i as Bn,aF as an,r as Tn,aN as ln,bd as Zo,a1 as Dn,am as Ot,ao as zn,b0 as Jo,be as Qo,bf as er,bg as tr,bh as nr,b as or,bi as sn,$ as cn,h as rr,e as ir,at as ar,ae as lr,bj as sr,a3 as cr,bk as ur,u as dr,bl as mr,bm as vr,bn as pr,H as un}from"./index-DfjY9fMd.js";import{flushSync as fr}from"react-dom";var gr=pe.ESC,br=pe.TAB;function hr(e){var n=e.visible,t=e.triggerRef,o=e.onVisibleChange,r=e.autoFocus,l=e.overlayRef,a=i.useRef(!1),s=function(){if(n){var u,m;(u=t.current)===null||u===void 0||(m=u.focus)===null||m===void 0||m.call(u),o==null||o(!1)}},c=function(){var u;return(u=l.current)!==null&&u!==void 0&&u.focus?(l.current.focus(),a.current=!0,!0):!1},d=function(u){switch(u.keyCode){case gr:s();break;case br:{var m=!1;a.current||(m=c()),m?u.preventDefault():s();break}}};i.useEffect(function(){return n?(window.addEventListener("keydown",d),r&&Te(c,3),function(){window.removeEventListener("keydown",d),a.current=!1}):function(){a.current=!1}},[n])}var $r=Dt(function(e,n){var t=e.overlay,o=e.arrow,r=e.prefixCls,l=Bo(function(){var s;return typeof t=="function"?s=t():s=t,s},[t]),a=wn(n,zt(l));return ie.createElement(ie.Fragment,null,o&&ie.createElement("div",{className:"".concat(r,"-arrow")}),ie.cloneElement(l,{ref:Mn(l)?a:void 0}))}),Ne={adjustX:1,adjustY:1},Be=[0,0],Cr={topLeft:{points:["bl","tl"],overflow:Ne,offset:[0,-4],targetOffset:Be},top:{points:["bc","tc"],overflow:Ne,offset:[0,-4],targetOffset:Be},topRight:{points:["br","tr"],overflow:Ne,offset:[0,-4],targetOffset:Be},bottomLeft:{points:["tl","bl"],overflow:Ne,offset:[0,4],targetOffset:Be},bottom:{points:["tc","bc"],overflow:Ne,offset:[0,4],targetOffset:Be},bottomRight:{points:["tr","br"],overflow:Ne,offset:[0,4],targetOffset:Be}},yr=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ir(e,n){var t,o=e.arrow,r=o===void 0?!1:o,l=e.prefixCls,a=l===void 0?"rc-dropdown":l,s=e.transitionName,c=e.animation,d=e.align,f=e.placement,u=f===void 0?"bottomLeft":f,m=e.placements,g=m===void 0?Cr:m,v=e.getPopupContainer,p=e.showAction,b=e.hideAction,I=e.overlayClassName,w=e.overlayStyle,S=e.visible,C=e.trigger,$=C===void 0?["hover"]:C,h=e.autoFocus,E=e.overlay,y=e.children,x=e.onVisibleChange,T=de(e,yr),N=ie.useState(),P=te(N,2),M=P[0],O=P[1],R="visible"in e?S:M,L=ie.useRef(null),B=ie.useRef(null),k=ie.useRef(null);ie.useImperativeHandle(n,function(){return L.current});var F=function(K){O(K),x==null||x(K)};hr({visible:R,triggerRef:k,onVisibleChange:F,autoFocus:h,overlayRef:B});var X=function(K){var V=e.onOverlayClick;O(!1),V&&V(K)},J=function(){return ie.createElement($r,{ref:B,overlay:E,prefixCls:a,arrow:r})},U=function(){return typeof E=="function"?J:J()},D=function(){var K=e.minOverlayWidthMatchTrigger,V=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?K:!V},A=function(){var K=e.openClassName;return K!==void 0?K:"".concat(a,"-open")},_=ie.cloneElement(y,{className:H((t=y.props)===null||t===void 0?void 0:t.className,R&&A()),ref:Mn(y)?wn(k,zt(y)):void 0}),Q=b;return!Q&&$.indexOf("contextMenu")!==-1&&(Q=["click"]),ie.createElement(On,ne({builtinPlacements:g},T,{prefixCls:a,ref:L,popupClassName:H(I,q({},"".concat(a,"-show-arrow"),r)),popupStyle:w,action:$,showAction:p,hideAction:Q,popupPlacement:u,popupAlign:d,popupTransitionName:s,popupAnimation:c,popupVisible:R,stretch:D()?"minWidth":"",popup:U(),onPopupVisibleChange:F,onPopupClick:X,getPopupContainer:v}),_)}const Sr=ie.forwardRef(Ir),xr=e=>typeof e!="object"&&typeof e!="function"||e===null;var An=i.createContext(null);function _n(e,n){return e===void 0?null:"".concat(e,"-").concat(n)}function jn(e){var n=i.useContext(An);return _n(n,e)}var wr=["children","locked"],ve=i.createContext(null);function Mr(e,n){var t=ee({},e);return Object.keys(n).forEach(function(o){var r=n[o];r!==void 0&&(t[o]=r)}),t}function Fe(e){var n=e.children,t=e.locked,o=de(e,wr),r=i.useContext(ve),l=Ao(function(){return Mr(r,o)},[r,o],function(a,s){return!t&&(a[0]!==s[0]||!Pn(a[1],s[1],!0))});return i.createElement(ve.Provider,{value:l},n)}var Or=[],kn=i.createContext(null);function dt(){return i.useContext(kn)}var Hn=i.createContext(Or);function De(e){var n=i.useContext(Hn);return i.useMemo(function(){return e!==void 0?[].concat(xe(n),[e]):n},[n,e])}var Ln=i.createContext(null),_t=i.createContext({});function dn(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(_o(e)){var t=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(t)||e.isContentEditable||t==="a"&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),l=Number(r),a=null;return r&&!Number.isNaN(l)?a=l:o&&a===null&&(a=0),o&&e.disabled&&(a=null),a!==null&&(a>=0||n&&a<0)}return!1}function Pr(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=xe(e.querySelectorAll("*")).filter(function(o){return dn(o,n)});return dn(e,n)&&t.unshift(e),t}var Pt=pe.LEFT,Rt=pe.RIGHT,Et=pe.UP,ot=pe.DOWN,rt=pe.ENTER,Kn=pe.ESC,ke=pe.HOME,He=pe.END,mn=[Et,ot,Pt,Rt];function Rr(e,n,t,o){var r,l="prev",a="next",s="children",c="parent";if(e==="inline"&&o===rt)return{inlineTrigger:!0};var d=q(q({},Et,l),ot,a),f=q(q(q(q({},Pt,t?a:l),Rt,t?l:a),ot,s),rt,s),u=q(q(q(q(q(q({},Et,l),ot,a),rt,s),Kn,c),Pt,t?s:c),Rt,t?c:s),m={inline:d,horizontal:f,vertical:u,inlineSub:d,horizontalSub:u,verticalSub:u},g=(r=m["".concat(e).concat(n?"":"Sub")])===null||r===void 0?void 0:r[o];switch(g){case l:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function Er(e){for(var n=e;n;){if(n.getAttribute("data-menu-list"))return n;n=n.parentElement}return null}function Nr(e,n){for(var t=e||document.activeElement;t;){if(n.has(t))return t;t=t.parentElement}return null}function jt(e,n){var t=Pr(e,!0);return t.filter(function(o){return n.has(o)})}function vn(e,n,t){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var r=jt(e,n),l=r.length,a=r.findIndex(function(s){return t===s});return o<0?a===-1?a=l-1:a-=1:o>0&&(a+=1),a=(a+l)%l,r[a]}var Nt=function(n,t){var o=new Set,r=new Map,l=new Map;return n.forEach(function(a){var s=document.querySelector("[data-menu-id='".concat(_n(t,a),"']"));s&&(o.add(s),l.set(s,a),r.set(a,s))}),{elements:o,key2element:r,element2key:l}};function Br(e,n,t,o,r,l,a,s,c,d){var f=i.useRef(),u=i.useRef();u.current=n;var m=function(){Te.cancel(f.current)};return i.useEffect(function(){return function(){m()}},[]),function(g){var v=g.which;if([].concat(mn,[rt,Kn,ke,He]).includes(v)){var p=l(),b=Nt(p,o),I=b,w=I.elements,S=I.key2element,C=I.element2key,$=S.get(n),h=Nr($,w),E=C.get(h),y=Rr(e,a(E,!0).length===1,t,v);if(!y&&v!==ke&&v!==He)return;(mn.includes(v)||[ke,He].includes(v))&&g.preventDefault();var x=function(B){if(B){var k=B,F=B.querySelector("a");F!=null&&F.getAttribute("href")&&(k=F);var X=C.get(B);s(X),m(),f.current=Te(function(){u.current===X&&k.focus()})}};if([ke,He].includes(v)||y.sibling||!h){var T;!h||e==="inline"?T=r.current:T=Er(h);var N,P=jt(T,w);v===ke?N=P[0]:v===He?N=P[P.length-1]:N=vn(T,w,h,y.offset),x(N)}else if(y.inlineTrigger)c(E);else if(y.offset>0)c(E,!0),m(),f.current=Te(function(){b=Nt(p,o);var L=h.getAttribute("aria-controls"),B=document.getElementById(L),k=vn(B,b.elements);x(k)},5);else if(y.offset<0){var M=a(E,!0),O=M[M.length-2],R=S.get(O);c(O,!1),x(R)}}d==null||d(g)}}function Tr(e){Promise.resolve().then(e)}var kt="__RC_UTIL_PATH_SPLIT__",pn=function(n){return n.join(kt)},Dr=function(n){return n.split(kt)},Bt="rc-menu-more";function zr(){var e=i.useState({}),n=te(e,2),t=n[1],o=Le(new Map),r=Le(new Map),l=i.useState([]),a=te(l,2),s=a[0],c=a[1],d=Le(0),f=Le(!1),u=function(){f.current||t({})},m=Ee(function(S,C){var $=pn(C);r.current.set($,S),o.current.set(S,$),d.current+=1;var h=d.current;Tr(function(){h===d.current&&u()})},[]),g=Ee(function(S,C){var $=pn(C);r.current.delete($),o.current.delete(S)},[]),v=Ee(function(S){c(S)},[]),p=Ee(function(S,C){var $=o.current.get(S)||"",h=Dr($);return C&&s.includes(h[0])&&h.unshift(Bt),h},[s]),b=Ee(function(S,C){return S.filter(function($){return $!==void 0}).some(function($){var h=p($,!0);return h.includes(C)})},[p]),I=function(){var C=xe(o.current.keys());return s.length&&C.push(Bt),C},w=Ee(function(S){var C="".concat(o.current.get(S)).concat(kt),$=new Set;return xe(r.current.keys()).forEach(function(h){h.startsWith(C)&&$.add(r.current.get(h))}),$},[]);return i.useEffect(function(){return function(){f.current=!0}},[]),{registerPath:m,unregisterPath:g,refreshOverflowKeys:v,isSubPathKey:b,getKeyPath:p,getKeys:I,getSubPathKeys:w}}function Ke(e){var n=i.useRef(e);n.current=e;var t=i.useCallback(function(){for(var o,r=arguments.length,l=new Array(r),a=0;a<r;a++)l[a]=arguments[a];return(o=n.current)===null||o===void 0?void 0:o.call.apply(o,[n].concat(l))},[]);return e?t:void 0}var Ar=Math.random().toFixed(5).toString().slice(2),fn=0;function _r(e){var n=Ve(e,{value:e}),t=te(n,2),o=t[0],r=t[1];return i.useEffect(function(){fn+=1;var l="".concat(Ar,"-").concat(fn);r("rc-menu-uuid-".concat(l))},[]),o}function Vn(e,n,t,o){var r=i.useContext(ve),l=r.activeKey,a=r.onActive,s=r.onInactive,c={active:l===e};return n||(c.onMouseEnter=function(d){t==null||t({key:e,domEvent:d}),a(e)},c.onMouseLeave=function(d){o==null||o({key:e,domEvent:d}),s(e)}),c}function Wn(e){var n=i.useContext(ve),t=n.mode,o=n.rtl,r=n.inlineIndent;if(t!=="inline")return null;var l=e;return o?{paddingRight:l*r}:{paddingLeft:l*r}}function Fn(e){var n=e.icon,t=e.props,o=e.children,r;return n===null||n===!1?null:(typeof n=="function"?r=i.createElement(n,ee({},t)):typeof n!="boolean"&&(r=n),r||o||null)}var jr=["item"];function at(e){var n=e.item,t=de(e,jr);return Object.defineProperty(t,"item",{get:function(){return Rn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),n}}),t}var kr=["title","attribute","elementRef"],Hr=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Lr=["active"],Kr=(function(e){jo(t,e);var n=ko(t);function t(){return Ho(this,t),n.apply(this,arguments)}return Lo(t,[{key:"render",value:function(){var r=this.props,l=r.title,a=r.attribute,s=r.elementRef,c=de(r,kr),d=we(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Rn(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),i.createElement(We.Item,ne({},a,{title:typeof l=="string"?l:void 0},d,{ref:s}))}}]),t})(i.Component),Vr=i.forwardRef(function(e,n){var t=e.style,o=e.className,r=e.eventKey;e.warnKey;var l=e.disabled,a=e.itemIcon,s=e.children,c=e.role,d=e.onMouseEnter,f=e.onMouseLeave,u=e.onClick,m=e.onKeyDown,g=e.onFocus,v=de(e,Hr),p=jn(r),b=i.useContext(ve),I=b.prefixCls,w=b.onItemClick,S=b.disabled,C=b.overflowDisabled,$=b.itemIcon,h=b.selectedKeys,E=b.onActive,y=i.useContext(_t),x=y._internalRenderMenuItem,T="".concat(I,"-item"),N=i.useRef(),P=i.useRef(),M=S||l,O=En(n,P),R=De(r),L=function(V){return{key:r,keyPath:xe(R).reverse(),item:N.current,domEvent:V}},B=a||$,k=Vn(r,M,d,f),F=k.active,X=de(k,Lr),J=h.includes(r),U=Wn(R.length),D=function(V){if(!M){var re=L(V);u==null||u(at(re)),w(re)}},A=function(V){if(m==null||m(V),V.which===pe.ENTER){var re=L(V);u==null||u(at(re)),w(re)}},_=function(V){E(r),g==null||g(V)},Q={};e.role==="option"&&(Q["aria-selected"]=J);var Y=i.createElement(Kr,ne({ref:N,elementRef:O,role:c===null?"none":c||"menuitem",tabIndex:l?null:-1,"data-menu-id":C&&p?null:p},we(v,["extra"]),X,Q,{component:"li","aria-disabled":l,style:ee(ee({},U),t),className:H(T,q(q(q({},"".concat(T,"-active"),F),"".concat(T,"-selected"),J),"".concat(T,"-disabled"),M),o),onClick:D,onKeyDown:A,onFocus:_}),s,i.createElement(Fn,{props:ee(ee({},e),{},{isSelected:J}),icon:B}));return x&&(Y=x(Y,e,{selected:J})),Y});function Wr(e,n){var t=e.eventKey,o=dt(),r=De(t);return i.useEffect(function(){if(o)return o.registerPath(t,r),function(){o.unregisterPath(t,r)}},[r]),o?null:i.createElement(Vr,ne({},e,{ref:n}))}const mt=i.forwardRef(Wr);var Fr=["className","children"],Xr=function(n,t){var o=n.className,r=n.children,l=de(n,Fr),a=i.useContext(ve),s=a.prefixCls,c=a.mode,d=a.rtl;return i.createElement("ul",ne({className:H(s,d&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(c==="inline"?"inline":"vertical"),o),role:"menu"},l,{"data-menu-list":!0,ref:t}),r)},Ht=i.forwardRef(Xr);Ht.displayName="SubMenuList";function Lt(e,n){return At(e).map(function(t,o){if(i.isValidElement(t)){var r,l,a=t.key,s=(r=(l=t.props)===null||l===void 0?void 0:l.eventKey)!==null&&r!==void 0?r:a,c=s==null;c&&(s="tmp_key-".concat([].concat(xe(n),[o]).join("-")));var d={key:s,eventKey:s};return i.cloneElement(t,d)}return t})}var oe={adjustX:1,adjustY:1},Gr={topLeft:{points:["bl","tl"],overflow:oe},topRight:{points:["br","tr"],overflow:oe},bottomLeft:{points:["tl","bl"],overflow:oe},bottomRight:{points:["tr","br"],overflow:oe},leftTop:{points:["tr","tl"],overflow:oe},leftBottom:{points:["br","bl"],overflow:oe},rightTop:{points:["tl","tr"],overflow:oe},rightBottom:{points:["bl","br"],overflow:oe}},qr={topLeft:{points:["bl","tl"],overflow:oe},topRight:{points:["br","tr"],overflow:oe},bottomLeft:{points:["tl","bl"],overflow:oe},bottomRight:{points:["tr","br"],overflow:oe},rightTop:{points:["tr","tl"],overflow:oe},rightBottom:{points:["br","bl"],overflow:oe},leftTop:{points:["tl","tr"],overflow:oe},leftBottom:{points:["bl","br"],overflow:oe}};function Xn(e,n,t){if(n)return n;if(t)return t[e]||t.other}var Ur={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Yr(e){var n=e.prefixCls,t=e.visible,o=e.children,r=e.popup,l=e.popupStyle,a=e.popupClassName,s=e.popupOffset,c=e.disabled,d=e.mode,f=e.onVisibleChange,u=i.useContext(ve),m=u.getPopupContainer,g=u.rtl,v=u.subMenuOpenDelay,p=u.subMenuCloseDelay,b=u.builtinPlacements,I=u.triggerSubMenuAction,w=u.forceSubMenuRender,S=u.rootClassName,C=u.motion,$=u.defaultMotions,h=i.useState(!1),E=te(h,2),y=E[0],x=E[1],T=g?ee(ee({},qr),b):ee(ee({},Gr),b),N=Ur[d],P=Xn(d,C,$),M=i.useRef(P);d!=="inline"&&(M.current=P);var O=ee(ee({},M.current),{},{leavedClassName:"".concat(n,"-hidden"),removeOnLeave:!1,motionAppear:!0}),R=i.useRef();return i.useEffect(function(){return R.current=Te(function(){x(t)}),function(){Te.cancel(R.current)}},[t]),i.createElement(On,{prefixCls:n,popupClassName:H("".concat(n,"-popup"),q({},"".concat(n,"-rtl"),g),a,S),stretch:d==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:T,popupPlacement:N,popupVisible:y,popup:r,popupStyle:l,popupAlign:s&&{offset:s},action:c?[]:[I],mouseEnterDelay:v,mouseLeaveDelay:p,onPopupVisibleChange:f,forceRender:w,popupMotion:O,fresh:!0},o)}function Zr(e){var n=e.id,t=e.open,o=e.keyPath,r=e.children,l="inline",a=i.useContext(ve),s=a.prefixCls,c=a.forceSubMenuRender,d=a.motion,f=a.defaultMotions,u=a.mode,m=i.useRef(!1);m.current=u===l;var g=i.useState(!m.current),v=te(g,2),p=v[0],b=v[1],I=m.current?t:!1;i.useEffect(function(){m.current&&b(!1)},[u]);var w=ee({},Xn(l,d,f));o.length>1&&(w.motionAppear=!1);var S=w.onVisibleChanged;return w.onVisibleChanged=function(C){return!m.current&&!C&&b(!0),S==null?void 0:S(C)},p?null:i.createElement(Fe,{mode:l,locked:!m.current},i.createElement(Ko,ne({visible:I},w,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(C){var $=C.className,h=C.style;return i.createElement(Ht,{id:n,className:$,style:h},r)}))}var Jr=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Qr=["active"],ei=i.forwardRef(function(e,n){var t=e.style,o=e.className,r=e.title,l=e.eventKey;e.warnKey;var a=e.disabled,s=e.internalPopupClose,c=e.children,d=e.itemIcon,f=e.expandIcon,u=e.popupClassName,m=e.popupOffset,g=e.popupStyle,v=e.onClick,p=e.onMouseEnter,b=e.onMouseLeave,I=e.onTitleClick,w=e.onTitleMouseEnter,S=e.onTitleMouseLeave,C=de(e,Jr),$=jn(l),h=i.useContext(ve),E=h.prefixCls,y=h.mode,x=h.openKeys,T=h.disabled,N=h.overflowDisabled,P=h.activeKey,M=h.selectedKeys,O=h.itemIcon,R=h.expandIcon,L=h.onItemClick,B=h.onOpenChange,k=h.onActive,F=i.useContext(_t),X=F._internalRenderSubMenuItem,J=i.useContext(Ln),U=J.isSubPathKey,D=De(),A="".concat(E,"-submenu"),_=T||a,Q=i.useRef(),Y=i.useRef(),K=d??O,V=f??R,re=x.includes(l),ae=!N&&re,Me=U(M,l),Oe=Vn(l,_,w,S),fe=Oe.active,$e=de(Oe,Qr),Ce=i.useState(!1),G=te(Ce,2),Pe=G[0],qe=G[1],Ue=function(le){_||qe(le)},ft=function(le){Ue(!0),p==null||p({key:l,domEvent:le})},Ye=function(le){Ue(!1),b==null||b({key:l,domEvent:le})},ge=i.useMemo(function(){return fe||(y!=="inline"?Pe||U([P],l):!1)},[y,fe,P,Pe,l,U]),gt=Wn(D.length),bt=function(le){_||(I==null||I({key:l,domEvent:le}),y==="inline"&&B(l,!re))},Ze=Ke(function(me){v==null||v(at(me)),L(me)}),Je=function(le){y!=="inline"&&B(l,le)},ht=function(){k(l)},be=$&&"".concat($,"-popup"),ze=i.useMemo(function(){return i.createElement(Fn,{icon:y!=="horizontal"?V:void 0,props:ee(ee({},e),{},{isOpen:ae,isSubMenu:!0})},i.createElement("i",{className:"".concat(A,"-arrow")}))},[y,V,e,ae,A]),ye=i.createElement("div",ne({role:"menuitem",style:gt,className:"".concat(A,"-title"),tabIndex:_?null:-1,ref:Q,title:typeof r=="string"?r:null,"data-menu-id":N&&$?null:$,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":be,"aria-disabled":_,onClick:bt,onFocus:ht},$e),r,ze),Ae=i.useRef(y);if(y!=="inline"&&D.length>1?Ae.current="vertical":Ae.current=y,!N){var Re=Ae.current;ye=i.createElement(Yr,{mode:Re,prefixCls:A,visible:!s&&ae&&y!=="inline",popupClassName:u,popupOffset:m,popupStyle:g,popup:i.createElement(Fe,{mode:Re==="horizontal"?"vertical":Re},i.createElement(Ht,{id:be,ref:Y},c)),disabled:_,onVisibleChange:Je},ye)}var ue=i.createElement(We.Item,ne({ref:n,role:"none"},C,{component:"li",style:t,className:H(A,"".concat(A,"-").concat(y),o,q(q(q(q({},"".concat(A,"-open"),ae),"".concat(A,"-active"),ge),"".concat(A,"-selected"),Me),"".concat(A,"-disabled"),_)),onMouseEnter:ft,onMouseLeave:Ye}),ye,!N&&i.createElement(Zr,{id:be,open:ae,keyPath:D},c));return X&&(ue=X(ue,e,{selected:Me,active:ge,open:ae,disabled:_})),i.createElement(Fe,{onItemClick:Ze,mode:y==="horizontal"?"vertical":y,itemIcon:K,expandIcon:V},ue)}),vt=i.forwardRef(function(e,n){var t=e.eventKey,o=e.children,r=De(t),l=Lt(o,r),a=dt();i.useEffect(function(){if(a)return a.registerPath(t,r),function(){a.unregisterPath(t,r)}},[r]);var s;return a?s=l:s=i.createElement(ei,ne({ref:n},e),l),i.createElement(Hn.Provider,{value:r},s)});function Kt(e){var n=e.className,t=e.style,o=i.useContext(ve),r=o.prefixCls,l=dt();return l?null:i.createElement("li",{role:"separator",className:H("".concat(r,"-item-divider"),n),style:t})}var ti=["className","title","eventKey","children"],ni=i.forwardRef(function(e,n){var t=e.className,o=e.title;e.eventKey;var r=e.children,l=de(e,ti),a=i.useContext(ve),s=a.prefixCls,c="".concat(s,"-item-group");return i.createElement("li",ne({ref:n,role:"presentation"},l,{onClick:function(f){return f.stopPropagation()},className:H(c,t)}),i.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof o=="string"?o:void 0},o),i.createElement("ul",{role:"group",className:"".concat(c,"-list")},r))}),Vt=i.forwardRef(function(e,n){var t=e.eventKey,o=e.children,r=De(t),l=Lt(o,r),a=dt();return a?l:i.createElement(ni,ne({ref:n},we(e,["warnKey"])),l)}),oi=["label","children","key","type","extra"];function Tt(e,n,t){var o=n.item,r=n.group,l=n.submenu,a=n.divider;return(e||[]).map(function(s,c){if(s&&Vo(s)==="object"){var d=s,f=d.label,u=d.children,m=d.key,g=d.type,v=d.extra,p=de(d,oi),b=m??"tmp-".concat(c);return u||g==="group"?g==="group"?i.createElement(r,ne({key:b},p,{title:f}),Tt(u,n,t)):i.createElement(l,ne({key:b},p,{title:f}),Tt(u,n,t)):g==="divider"?i.createElement(a,ne({key:b},p)):i.createElement(o,ne({key:b},p,{extra:v}),f,(!!v||v===0)&&i.createElement("span",{className:"".concat(t,"-item-extra")},v))}return null}).filter(function(s){return s})}function gn(e,n,t,o,r){var l=e,a=ee({divider:Kt,item:mt,group:Vt,submenu:vt},o);return n&&(l=Tt(n,a,r)),Lt(l,t)}var ri=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Se=[],ii=i.forwardRef(function(e,n){var t,o=e,r=o.prefixCls,l=r===void 0?"rc-menu":r,a=o.rootClassName,s=o.style,c=o.className,d=o.tabIndex,f=d===void 0?0:d,u=o.items,m=o.children,g=o.direction,v=o.id,p=o.mode,b=p===void 0?"vertical":p,I=o.inlineCollapsed,w=o.disabled,S=o.disabledOverflow,C=o.subMenuOpenDelay,$=C===void 0?.1:C,h=o.subMenuCloseDelay,E=h===void 0?.1:h,y=o.forceSubMenuRender,x=o.defaultOpenKeys,T=o.openKeys,N=o.activeKey,P=o.defaultActiveFirst,M=o.selectable,O=M===void 0?!0:M,R=o.multiple,L=R===void 0?!1:R,B=o.defaultSelectedKeys,k=o.selectedKeys,F=o.onSelect,X=o.onDeselect,J=o.inlineIndent,U=J===void 0?24:J,D=o.motion,A=o.defaultMotions,_=o.triggerSubMenuAction,Q=_===void 0?"hover":_,Y=o.builtinPlacements,K=o.itemIcon,V=o.expandIcon,re=o.overflowedIndicator,ae=re===void 0?"...":re,Me=o.overflowedIndicatorPopupClassName,Oe=o.getPopupContainer,fe=o.onClick,$e=o.onOpenChange,Ce=o.onKeyDown;o.openAnimation,o.openTransitionName;var G=o._internalRenderMenuItem,Pe=o._internalRenderSubMenuItem,qe=o._internalComponents,Ue=de(o,ri),ft=i.useMemo(function(){return[gn(m,u,Se,qe,l),gn(m,u,Se,{},l)]},[m,u,qe]),Ye=te(ft,2),ge=Ye[0],gt=Ye[1],bt=i.useState(!1),Ze=te(bt,2),Je=Ze[0],ht=Ze[1],be=i.useRef(),ze=_r(v),ye=g==="rtl",Ae=Ve(x,{value:T,postState:function(j){return j||Se}}),Re=te(Ae,2),ue=Re[0],me=Re[1],le=function(j){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function se(){me(j),$e==null||$e(j)}W?fr(se):se()},to=i.useState(ue),Wt=te(to,2),no=Wt[0],oo=Wt[1],$t=i.useRef(!1),ro=i.useMemo(function(){return(b==="inline"||b==="vertical")&&I?["vertical",I]:[b,!1]},[b,I]),Ft=te(ro,2),Qe=Ft[0],Ct=Ft[1],Xt=Qe==="inline",io=i.useState(Qe),Gt=te(io,2),he=Gt[0],ao=Gt[1],lo=i.useState(Ct),qt=te(lo,2),so=qt[0],co=qt[1];i.useEffect(function(){ao(Qe),co(Ct),$t.current&&(Xt?me(no):le(Se))},[Qe,Ct]);var uo=i.useState(0),Ut=te(uo,2),et=Ut[0],mo=Ut[1],yt=et>=ge.length-1||he!=="horizontal"||S;i.useEffect(function(){Xt&&oo(ue)},[ue]),i.useEffect(function(){return $t.current=!0,function(){$t.current=!1}},[]);var Ie=zr(),Yt=Ie.registerPath,Zt=Ie.unregisterPath,vo=Ie.refreshOverflowKeys,Jt=Ie.isSubPathKey,po=Ie.getKeyPath,Qt=Ie.getKeys,fo=Ie.getSubPathKeys,go=i.useMemo(function(){return{registerPath:Yt,unregisterPath:Zt}},[Yt,Zt]),bo=i.useMemo(function(){return{isSubPathKey:Jt}},[Jt]);i.useEffect(function(){vo(yt?Se:ge.slice(et+1).map(function(Z){return Z.key}))},[et,yt]);var ho=Ve(N||P&&((t=ge[0])===null||t===void 0?void 0:t.key),{value:N}),en=te(ho,2),_e=en[0],It=en[1],$o=Ke(function(Z){It(Z)}),Co=Ke(function(){It(void 0)});xn(n,function(){return{list:be.current,focus:function(j){var W,se=Qt(),ce=Nt(se,ze),nt=ce.elements,St=ce.key2element,Eo=ce.element2key,on=jt(be.current,nt),rn=_e??(on[0]?Eo.get(on[0]):(W=ge.find(function(No){return!No.props.disabled}))===null||W===void 0?void 0:W.key),je=St.get(rn);if(rn&&je){var xt;je==null||(xt=je.focus)===null||xt===void 0||xt.call(je,j)}}}});var yo=Ve(B||[],{value:k,postState:function(j){return Array.isArray(j)?j:j==null?Se:[j]}}),tn=te(yo,2),tt=tn[0],Io=tn[1],So=function(j){if(O){var W=j.key,se=tt.includes(W),ce;L?se?ce=tt.filter(function(St){return St!==W}):ce=[].concat(xe(tt),[W]):ce=[W],Io(ce);var nt=ee(ee({},j),{},{selectedKeys:ce});se?X==null||X(nt):F==null||F(nt)}!L&&ue.length&&he!=="inline"&&le(Se)},xo=Ke(function(Z){fe==null||fe(at(Z)),So(Z)}),nn=Ke(function(Z,j){var W=ue.filter(function(ce){return ce!==Z});if(j)W.push(Z);else if(he!=="inline"){var se=fo(Z);W=W.filter(function(ce){return!se.has(ce)})}Pn(ue,W,!0)||le(W,!0)}),wo=function(j,W){var se=W??!ue.includes(j);nn(j,se)},Mo=Br(he,_e,ye,ze,be,Qt,po,It,wo,Ce);i.useEffect(function(){ht(!0)},[]);var Oo=i.useMemo(function(){return{_internalRenderMenuItem:G,_internalRenderSubMenuItem:Pe}},[G,Pe]),Po=he!=="horizontal"||S?ge:ge.map(function(Z,j){return i.createElement(Fe,{key:Z.key,overflowDisabled:j>et},Z)}),Ro=i.createElement(We,ne({id:v,ref:be,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:mt,className:H(l,"".concat(l,"-root"),"".concat(l,"-").concat(he),c,q(q({},"".concat(l,"-inline-collapsed"),so),"".concat(l,"-rtl"),ye),a),dir:g,style:s,role:"menu",tabIndex:f,data:Po,renderRawItem:function(j){return j},renderRawRest:function(j){var W=j.length,se=W?ge.slice(-W):null;return i.createElement(vt,{eventKey:Bt,title:ae,disabled:yt,internalPopupClose:W===0,popupClassName:Me},se)},maxCount:he!=="horizontal"||S?We.INVALIDATE:We.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(j){mo(j)},onKeyDown:Mo},Ue));return i.createElement(_t.Provider,{value:Oo},i.createElement(An.Provider,{value:ze},i.createElement(Fe,{prefixCls:l,rootClassName:a,mode:he,openKeys:ue,rtl:ye,disabled:w,motion:Je?D:null,defaultMotions:Je?A:null,activeKey:_e,onActive:$o,onInactive:Co,selectedKeys:tt,inlineIndent:U,subMenuOpenDelay:$,subMenuCloseDelay:E,forceSubMenuRender:y,builtinPlacements:Y,triggerSubMenuAction:Q,getPopupContainer:Oe,itemIcon:K,expandIcon:V,onItemClick:xo,onOpenChange:nn},i.createElement(Ln.Provider,{value:bo},Ro),i.createElement("div",{style:{display:"none"},"aria-hidden":!0},i.createElement(kn.Provider,{value:go},gt)))))}),Xe=ii;Xe.Item=mt;Xe.SubMenu=vt;Xe.ItemGroup=Vt;Xe.Divider=Kt;const Gn=i.createContext({});var ai={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},li=function(n,t){return i.createElement(Wo,ne({},n,{ref:t,icon:ai}))},qn=i.forwardRef(li);const lt=To({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var si=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]]);return t};const Un=e=>{const{prefixCls:n,className:t,dashed:o}=e,r=si(e,["prefixCls","className","dashed"]),{getPrefixCls:l}=i.useContext(ct),a=l("menu",n),s=H({[`${a}-item-divider-dashed`]:!!o},t);return i.createElement(Kt,Object.assign({className:s},r))},Yn=e=>{var n;const{className:t,children:o,icon:r,title:l,danger:a,extra:s}=e,{prefixCls:c,firstLevel:d,direction:f,disableMenuItemTitleTooltip:u,inlineCollapsed:m}=i.useContext(lt),g=S=>{const C=o==null?void 0:o[0],$=i.createElement("span",{className:H(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!s||s===0})},o);return(!r||i.isValidElement(o)&&o.type==="span")&&o&&S&&d&&typeof C=="string"?i.createElement("div",{className:`${c}-inline-collapsed-noicon`},C.charAt(0)):$},{siderCollapsed:v}=i.useContext(Gn);let p=l;typeof l>"u"?p=d?o:"":l===!1&&(p="");const b={title:p};!v&&!m&&(b.title=null,b.open=!1);const I=At(o).length;let w=i.createElement(mt,Object.assign({},we(e,["title","icon","danger"]),{className:H({[`${c}-item-danger`]:a,[`${c}-item-only-child`]:(r?I+1:I)===1},t),title:typeof l=="string"?l:void 0}),ut(r,{className:H(i.isValidElement(r)?(n=r.props)===null||n===void 0?void 0:n.className:void 0,`${c}-item-icon`)}),g(m));return u||(w=i.createElement(Fo,Object.assign({},b,{placement:f==="rtl"?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),w)),w};var ci=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]]);return t};const st=i.createContext(null),ui=i.forwardRef((e,n)=>{const{children:t}=e,o=ci(e,["children"]),r=i.useContext(st),l=i.useMemo(()=>Object.assign(Object.assign({},r),o),[r,o.prefixCls,o.mode,o.selectable,o.rootClassName]),a=Xo(t),s=En(n,a?zt(t):null);return i.createElement(st.Provider,{value:l},i.createElement(Go,{space:!0},a?i.cloneElement(t,{ref:s}):t))}),di=e=>{const{componentCls:n,motionDurationSlow:t,horizontalLineHeight:o,colorSplit:r,lineWidth:l,lineType:a,itemPaddingInline:s}=e;return{[`${n}-horizontal`]:{lineHeight:o,border:0,borderBottom:`${z(l)} ${a} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${n}-item, ${n}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${n}-item:hover,
2
2
  > ${n}-item-active,
3
3
  > ${n}-submenu ${n}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${n}-item, ${n}-submenu-title`]:{transition:[`border-color ${t}`,`background ${t}`].join(",")},[`${n}-submenu-arrow`]:{display:"none"}}}},mi=({componentCls:e,menuArrowOffset:n,calc:t})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
4
- ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${D(t(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${D(n)})`}}}}),bn=e=>qo(e),hn=(e,n)=>{const{componentCls:t,itemColor:o,itemSelectedColor:r,subMenuItemSelectedColor:l,groupTitleColor:a,itemBg:s,subMenuItemBg:c,itemSelectedBg:d,activeBarHeight:f,activeBarWidth:u,activeBarBorderWidth:m,motionDurationSlow:g,motionEaseInOut:v,motionEaseOut:p,itemPaddingInline:b,motionDurationMid:I,itemHoverColor:w,lineType:S,colorSplit:C,itemDisabledColor:$,dangerItemColor:h,dangerItemHoverColor:E,dangerItemSelectedColor:y,dangerItemActiveBg:x,dangerItemSelectedBg:T,popupBg:N,itemHoverBg:P,itemActiveBg:M,menuSubMenuBg:O,horizontalItemSelectedColor:R,horizontalItemSelectedBg:L,horizontalItemBorderRadius:B,horizontalItemHoverBg:k}=e;return{[`${t}-${n}, ${t}-${n} > ${t}`]:{color:o,background:s,[`&${t}-root:focus-visible`]:Object.assign({},bn(e)),[`${t}-item`]:{"&-group-title, &-extra":{color:a}},[`${t}-submenu-selected > ${t}-submenu-title`]:{color:l},[`${t}-item, ${t}-submenu-title`]:{color:o,[`&:not(${t}-item-disabled):focus-visible`]:Object.assign({},bn(e))},[`${t}-item-disabled, ${t}-submenu-disabled`]:{color:`${$} !important`},[`${t}-item:not(${t}-item-selected):not(${t}-submenu-selected)`]:{[`&:hover, > ${t}-submenu-title:hover`]:{color:w}},[`&:not(${t}-horizontal)`]:{[`${t}-item:not(${t}-item-selected)`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:M}},[`${t}-submenu-title`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:M}}},[`${t}-item-danger`]:{color:h,[`&${t}-item:hover`]:{[`&:not(${t}-item-selected):not(${t}-submenu-selected)`]:{color:E}},[`&${t}-item:active`]:{background:x}},[`${t}-item a`]:{"&, &:hover":{color:"inherit"}},[`${t}-item-selected`]:{color:r,[`&${t}-item-danger`]:{color:y},"a, a:hover":{color:"inherit"}},[`& ${t}-item-selected`]:{backgroundColor:d,[`&${t}-item-danger`]:{backgroundColor:T}},[`&${t}-submenu > ${t}`]:{backgroundColor:O},[`&${t}-popup > ${t}`]:{backgroundColor:N},[`&${t}-submenu-popup > ${t}`]:{backgroundColor:N},[`&${t}-horizontal`]:Object.assign(Object.assign({},n==="dark"?{borderBottom:0}:{}),{[`> ${t}-item, > ${t}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:B,"&::after":{position:"absolute",insetInline:b,bottom:0,borderBottom:`${D(f)} solid transparent`,transition:`border-color ${g} ${v}`,content:'""'},"&:hover, &-active, &-open":{background:k,"&::after":{borderBottomWidth:f,borderBottomColor:R}},"&-selected":{color:R,backgroundColor:L,"&:hover":{backgroundColor:L},"&::after":{borderBottomWidth:f,borderBottomColor:R}}}}),[`&${t}-root`]:{[`&${t}-inline, &${t}-vertical`]:{borderInlineEnd:`${D(m)} ${S} ${C}`}},[`&${t}-inline`]:{[`${t}-sub${t}-inline`]:{background:c},[`${t}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${D(u)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${I} ${p}`,`opacity ${I} ${p}`].join(","),content:'""'},[`&${t}-item-danger`]:{"&::after":{borderInlineEndColor:y}}},[`${t}-selected, ${t}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${I} ${v}`,`opacity ${I} ${v}`].join(",")}}}}}},$n=e=>{const{componentCls:n,itemHeight:t,itemMarginInline:o,padding:r,menuArrowSize:l,marginXS:a,itemMarginBlock:s,itemWidth:c,itemPaddingInline:d}=e,f=e.calc(l).add(r).add(a).equal();return{[`${n}-item`]:{position:"relative",overflow:"hidden"},[`${n}-item, ${n}-submenu-title`]:{height:t,lineHeight:D(t),paddingInline:d,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:s,width:c},[`> ${n}-item,
5
- > ${n}-submenu > ${n}-submenu-title`]:{height:t,lineHeight:D(t)},[`${n}-item-group-list ${n}-submenu-title,
6
- ${n}-submenu-title`]:{paddingInlineEnd:f}}},vi=e=>{const{componentCls:n,iconCls:t,itemHeight:o,colorTextLightSolid:r,dropdownWidth:l,controlHeightLG:a,motionEaseOut:s,paddingXL:c,itemMarginInline:d,fontSizeLG:f,motionDurationFast:u,motionDurationSlow:m,paddingXS:g,boxShadowSecondary:v,collapsedWidth:p,collapsedIconSize:b}=e,I={height:o,lineHeight:D(o),listStylePosition:"inside",listStyleType:"disc"};return[{[n]:{"&-inline, &-vertical":Object.assign({[`&${n}-root`]:{boxShadow:"none"}},$n(e))},[`${n}-submenu-popup`]:{[`${n}-vertical`]:Object.assign(Object.assign({},$n(e)),{boxShadow:v})}},{[`${n}-submenu-popup ${n}-vertical${n}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${D(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${n}-inline`]:{width:"100%",[`&${n}-root`]:{[`${n}-item, ${n}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${u} ${s}`].join(","),[`> ${n}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${n}-sub${n}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${n}-submenu > ${n}-submenu-title`]:I,[`& ${n}-item-group-title`]:{paddingInlineStart:c}},[`${n}-item`]:I}},{[`${n}-inline-collapsed`]:{width:p,[`&${n}-root`]:{[`${n}-item, ${n}-submenu ${n}-submenu-title`]:{[`> ${n}-inline-collapsed-noicon`]:{fontSize:f,textAlign:"center"}}},[`> ${n}-item,
4
+ ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${z(t(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${z(n)})`}}}}),bn=e=>qo(e),hn=(e,n)=>{const{componentCls:t,itemColor:o,itemSelectedColor:r,subMenuItemSelectedColor:l,groupTitleColor:a,itemBg:s,subMenuItemBg:c,itemSelectedBg:d,activeBarHeight:f,activeBarWidth:u,activeBarBorderWidth:m,motionDurationSlow:g,motionEaseInOut:v,motionEaseOut:p,itemPaddingInline:b,motionDurationMid:I,itemHoverColor:w,lineType:S,colorSplit:C,itemDisabledColor:$,dangerItemColor:h,dangerItemHoverColor:E,dangerItemSelectedColor:y,dangerItemActiveBg:x,dangerItemSelectedBg:T,popupBg:N,itemHoverBg:P,itemActiveBg:M,menuSubMenuBg:O,horizontalItemSelectedColor:R,horizontalItemSelectedBg:L,horizontalItemBorderRadius:B,horizontalItemHoverBg:k}=e;return{[`${t}-${n}, ${t}-${n} > ${t}`]:{color:o,background:s,[`&${t}-root:focus-visible`]:Object.assign({},bn(e)),[`${t}-item`]:{"&-group-title, &-extra":{color:a}},[`${t}-submenu-selected > ${t}-submenu-title`]:{color:l},[`${t}-item, ${t}-submenu-title`]:{color:o,[`&:not(${t}-item-disabled):focus-visible`]:Object.assign({},bn(e))},[`${t}-item-disabled, ${t}-submenu-disabled`]:{color:`${$} !important`},[`${t}-item:not(${t}-item-selected):not(${t}-submenu-selected)`]:{[`&:hover, > ${t}-submenu-title:hover`]:{color:w}},[`&:not(${t}-horizontal)`]:{[`${t}-item:not(${t}-item-selected)`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:M}},[`${t}-submenu-title`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:M}}},[`${t}-item-danger`]:{color:h,[`&${t}-item:hover`]:{[`&:not(${t}-item-selected):not(${t}-submenu-selected)`]:{color:E}},[`&${t}-item:active`]:{background:x}},[`${t}-item a`]:{"&, &:hover":{color:"inherit"}},[`${t}-item-selected`]:{color:r,[`&${t}-item-danger`]:{color:y},"a, a:hover":{color:"inherit"}},[`& ${t}-item-selected`]:{backgroundColor:d,[`&${t}-item-danger`]:{backgroundColor:T}},[`&${t}-submenu > ${t}`]:{backgroundColor:O},[`&${t}-popup > ${t}`]:{backgroundColor:N},[`&${t}-submenu-popup > ${t}`]:{backgroundColor:N},[`&${t}-horizontal`]:Object.assign(Object.assign({},n==="dark"?{borderBottom:0}:{}),{[`> ${t}-item, > ${t}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:B,"&::after":{position:"absolute",insetInline:b,bottom:0,borderBottom:`${z(f)} solid transparent`,transition:`border-color ${g} ${v}`,content:'""'},"&:hover, &-active, &-open":{background:k,"&::after":{borderBottomWidth:f,borderBottomColor:R}},"&-selected":{color:R,backgroundColor:L,"&:hover":{backgroundColor:L},"&::after":{borderBottomWidth:f,borderBottomColor:R}}}}),[`&${t}-root`]:{[`&${t}-inline, &${t}-vertical`]:{borderInlineEnd:`${z(m)} ${S} ${C}`}},[`&${t}-inline`]:{[`${t}-sub${t}-inline`]:{background:c},[`${t}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${z(u)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${I} ${p}`,`opacity ${I} ${p}`].join(","),content:'""'},[`&${t}-item-danger`]:{"&::after":{borderInlineEndColor:y}}},[`${t}-selected, ${t}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${I} ${v}`,`opacity ${I} ${v}`].join(",")}}}}}},$n=e=>{const{componentCls:n,itemHeight:t,itemMarginInline:o,padding:r,menuArrowSize:l,marginXS:a,itemMarginBlock:s,itemWidth:c,itemPaddingInline:d}=e,f=e.calc(l).add(r).add(a).equal();return{[`${n}-item`]:{position:"relative",overflow:"hidden"},[`${n}-item, ${n}-submenu-title`]:{height:t,lineHeight:z(t),paddingInline:d,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:s,width:c},[`> ${n}-item,
5
+ > ${n}-submenu > ${n}-submenu-title`]:{height:t,lineHeight:z(t)},[`${n}-item-group-list ${n}-submenu-title,
6
+ ${n}-submenu-title`]:{paddingInlineEnd:f}}},vi=e=>{const{componentCls:n,iconCls:t,itemHeight:o,colorTextLightSolid:r,dropdownWidth:l,controlHeightLG:a,motionEaseOut:s,paddingXL:c,itemMarginInline:d,fontSizeLG:f,motionDurationFast:u,motionDurationSlow:m,paddingXS:g,boxShadowSecondary:v,collapsedWidth:p,collapsedIconSize:b}=e,I={height:o,lineHeight:z(o),listStylePosition:"inside",listStyleType:"disc"};return[{[n]:{"&-inline, &-vertical":Object.assign({[`&${n}-root`]:{boxShadow:"none"}},$n(e))},[`${n}-submenu-popup`]:{[`${n}-vertical`]:Object.assign(Object.assign({},$n(e)),{boxShadow:v})}},{[`${n}-submenu-popup ${n}-vertical${n}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${z(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${n}-inline`]:{width:"100%",[`&${n}-root`]:{[`${n}-item, ${n}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${u} ${s}`].join(","),[`> ${n}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${n}-sub${n}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${n}-submenu > ${n}-submenu-title`]:I,[`& ${n}-item-group-title`]:{paddingInlineStart:c}},[`${n}-item`]:I}},{[`${n}-inline-collapsed`]:{width:p,[`&${n}-root`]:{[`${n}-item, ${n}-submenu ${n}-submenu-title`]:{[`> ${n}-inline-collapsed-noicon`]:{fontSize:f,textAlign:"center"}}},[`> ${n}-item,
7
7
  > ${n}-item-group > ${n}-item-group-list > ${n}-item,
8
8
  > ${n}-item-group > ${n}-item-group-list > ${n}-submenu > ${n}-submenu-title,
9
- > ${n}-submenu > ${n}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${D(e.calc(b).div(2).equal())} - ${D(d)})`,textOverflow:"clip",[`
9
+ > ${n}-submenu > ${n}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${z(e.calc(b).div(2).equal())} - ${z(d)})`,textOverflow:"clip",[`
10
10
  ${n}-submenu-arrow,
11
11
  ${n}-submenu-expand-icon
12
- `]:{opacity:0},[`${n}-item-icon, ${t}`]:{margin:0,fontSize:b,lineHeight:D(o),"+ span":{display:"inline-block",opacity:0}}},[`${n}-item-icon, ${t}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${n}-item-icon, ${t}`]:{display:"none"},"a, a:hover":{color:r}},[`${n}-item-group-title`]:Object.assign(Object.assign({},Uo),{paddingInline:g})}}]},Cn=e=>{const{componentCls:n,motionDurationSlow:t,motionDurationMid:o,motionEaseInOut:r,motionEaseOut:l,iconCls:a,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${n}-item, ${n}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${t}`,`background ${t}`,`padding calc(${t} + 0.1s) ${r}`].join(","),[`${n}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${o} ${l}`,`margin ${t} ${r}`,`color ${t}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${t} ${r}`,`margin ${t}`,`color ${t}`].join(",")}},[`${n}-item-icon`]:Object.assign({},Zo()),[`&${n}-item-only-child`]:{[`> ${a}, > ${n}-item-icon`]:{marginInlineEnd:0}}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${n}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},yn=e=>{const{componentCls:n,motionDurationSlow:t,motionEaseInOut:o,borderRadius:r,menuArrowSize:l,menuArrowOffset:a}=e;return{[`${n}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${t} ${o}, opacity ${t}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(l).mul(.6).equal(),height:e.calc(l).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${t} ${o}`,`transform ${t} ${o}`,`top ${t} ${o}`,`color ${t} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${D(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${D(a)})`}}}}},pi=e=>{const{antCls:n,componentCls:t,fontSize:o,motionDurationSlow:r,motionDurationMid:l,motionEaseInOut:a,paddingXS:s,padding:c,colorSplit:d,lineWidth:f,zIndexPopup:u,borderRadiusLG:m,subMenuItemBorderRadius:g,menuArrowSize:v,menuArrowOffset:p,lineType:b,groupTitleLineHeight:I,groupTitleFontSize:w}=e;return[{"":{[t]:Object.assign(Object.assign({},an()),{"&-hidden":{display:"none"}})},[`${t}-submenu-hidden`]:{display:"none"}},{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Tn(e)),an()),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${t}-item`]:{flex:"none"}},[`${t}-item, ${t}-submenu, ${t}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${t}-item-group-title`]:{padding:`${D(s)} ${D(c)}`,fontSize:w,lineHeight:I,transition:`all ${r}`},[`&-horizontal ${t}-submenu`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`].join(",")},[`${t}-submenu, ${t}-submenu-inline`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`,`padding ${l} ${a}`].join(",")},[`${t}-submenu ${t}-sub`]:{cursor:"initial",transition:[`background ${r} ${a}`,`padding ${r} ${a}`].join(",")},[`${t}-title-content`]:{transition:`color ${r}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${n}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${t}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${t}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${t}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:d,borderStyle:b,borderWidth:0,borderTopWidth:f,marginBlock:f,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Cn(e)),{[`${t}-item-group`]:{[`${t}-item-group-list`]:{margin:0,padding:0,[`${t}-item, ${t}-submenu-title`]:{paddingInline:`${D(e.calc(o).mul(2).equal())} ${D(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:u,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${t}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${t}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},Cn(e)),yn(e)),{[`${t}-item, ${t}-submenu > ${t}-submenu-title`]:{borderRadius:g},[`${t}-submenu-title::after`]:{transition:`transform ${r} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),yn(e)),{[`&-inline-collapsed ${t}-submenu-arrow,
13
- &-inline ${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${D(p)})`},"&::after":{transform:`rotate(45deg) translateX(${D(e.calc(p).mul(-1).equal())})`}},[`${t}-submenu-open${t}-submenu-inline > ${t}-submenu-title > ${t}-submenu-arrow`]:{transform:`translateY(${D(e.calc(v).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${D(e.calc(p).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${D(p)})`}}})},{[`${n}-layout-header`]:{[t]:{lineHeight:"inherit"}}}]},fi=e=>{var n,t,o;const{colorPrimary:r,colorError:l,colorTextDisabled:a,colorErrorBg:s,colorText:c,colorTextDescription:d,colorBgContainer:f,colorFillAlter:u,colorFillContent:m,lineWidth:g,lineWidthBold:v,controlItemBgActive:p,colorBgTextHover:b,controlHeightLG:I,lineHeight:w,colorBgElevated:S,marginXXS:C,padding:$,fontSize:h,controlHeightSM:E,fontSizeLG:y,colorTextLightSolid:x,colorErrorHover:T}=e,N=(n=e.activeBarWidth)!==null&&n!==void 0?n:0,P=(t=e.activeBarBorderWidth)!==null&&t!==void 0?t:g,M=(o=e.itemMarginInline)!==null&&o!==void 0?o:e.marginXXS,O=new ln(x).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:r,horizontalItemHoverColor:r,colorGroupTitle:d,groupTitleColor:d,colorItemTextSelected:r,itemSelectedColor:r,subMenuItemSelectedColor:r,colorItemTextSelectedHorizontal:r,horizontalItemSelectedColor:r,colorItemBg:f,itemBg:f,colorItemBgHover:b,itemHoverBg:b,colorItemBgActive:m,itemActiveBg:p,colorSubItemBg:u,subMenuItemBg:u,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:N,colorActiveBarHeight:v,activeBarHeight:v,colorActiveBarBorderSize:g,activeBarBorderWidth:P,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:l,dangerItemColor:l,colorDangerItemTextHover:l,dangerItemHoverColor:l,colorDangerItemTextSelected:l,dangerItemSelectedColor:l,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:M,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:I,groupTitleLineHeight:w,collapsedWidth:I*2,popupBg:S,itemMarginBlock:C,itemPaddingInline:$,horizontalLineHeight:`${I*1.15}px`,iconSize:h,iconMarginInlineEnd:E-h,collapsedIconSize:y,groupTitleFontSize:h,darkItemDisabledColor:new ln(x).setA(.25).toRgbString(),darkItemColor:O,darkDangerItemColor:l,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:x,darkItemSelectedBg:r,darkDangerItemSelectedBg:l,darkItemHoverBg:"transparent",darkGroupTitleColor:O,darkItemHoverColor:x,darkDangerItemHoverColor:T,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:l,itemWidth:N?`calc(100% + ${P}px)`:`calc(100% - ${M*2}px)`}},gi=(e,n=e,t=!0)=>Nn("Menu",r=>{const{colorBgElevated:l,controlHeightLG:a,fontSize:s,darkItemColor:c,darkDangerItemColor:d,darkItemBg:f,darkSubMenuItemBg:u,darkItemSelectedColor:m,darkItemSelectedBg:g,darkDangerItemSelectedBg:v,darkItemHoverBg:p,darkGroupTitleColor:b,darkItemHoverColor:I,darkItemDisabledColor:w,darkDangerItemHoverColor:S,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:$,popupBg:h,darkPopupBg:E}=r,y=r.calc(s).div(7).mul(5).equal(),x=Mt(r,{menuArrowSize:y,menuHorizontalHeight:r.calc(a).mul(1.15).equal(),menuArrowOffset:r.calc(y).mul(.25).equal(),menuSubMenuBg:l,calc:r.calc,popupBg:h}),T=Mt(x,{itemColor:c,itemHoverColor:I,groupTitleColor:b,itemSelectedColor:m,subMenuItemSelectedColor:m,itemBg:f,popupBg:E,subMenuItemBg:u,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:w,dangerItemColor:d,dangerItemHoverColor:S,dangerItemSelectedColor:C,dangerItemActiveBg:$,dangerItemSelectedBg:v,menuSubMenuBg:u,horizontalItemSelectedColor:m,horizontalItemSelectedBg:g});return[pi(x),di(x),vi(x),hn(x,"light"),hn(T,"dark"),mi(x),Yo(x),it(x,"slide-up"),it(x,"slide-down"),Bn(x,"zoom-big")]},fi,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:t,unitless:{groupTitleLineHeight:!0}})(e,n),Zn=e=>{var n;const{popupClassName:t,icon:o,title:r,theme:l}=e,a=i.useContext(lt),{prefixCls:s,inlineCollapsed:c,theme:d}=a,f=ze();let u;if(!o)u=c&&!f.length&&r&&typeof r=="string"?i.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):i.createElement("span",{className:`${s}-title-content`},r);else{const v=i.isValidElement(r)&&r.type==="span";u=i.createElement(i.Fragment,null,ut(o,{className:H(i.isValidElement(o)?(n=o.props)===null||n===void 0?void 0:n.className:void 0,`${s}-item-icon`)}),v?r:i.createElement("span",{className:`${s}-title-content`},r))}const m=i.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[g]=zn("Menu");return i.createElement(lt.Provider,{value:m},i.createElement(vt,Object.assign({},we(e,["icon"]),{title:u,popupClassName:H(s,t,`${s}-${l||d}`),popupStyle:Object.assign({zIndex:g},e.popupStyle)})))};var bi=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]]);return t};function wt(e){return e===null||e===!1}const hi={item:Yn,submenu:Zn,divider:Un},$i=zt((e,n)=>{var t;const o=i.useContext(st),r=o||{},{getPrefixCls:l,getPopupContainer:a,direction:s,menu:c}=i.useContext(ct),d=l(),{prefixCls:f,className:u,style:m,theme:g="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:b,siderCollapsed:I,rootClassName:w,mode:S,selectable:C,onClick:$,overflowedIndicatorPopupClassName:h}=e,E=bi(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),y=we(E,["collapsedWidth"]);(t=r.validator)===null||t===void 0||t.call(r,{mode:S});const x=Ot((...U)=>{var z;$==null||$.apply(void 0,U),(z=r.onClick)===null||z===void 0||z.call(r)}),T=r.mode||S,N=C??r.selectable,P=b??I,M={horizontal:{motionName:`${d}-slide-up`},inline:Jo(d),other:{motionName:`${d}-zoom-big`}},O=l("menu",f||r.prefixCls),R=Dn(O),[L,B,k]=gi(O,R,!o),F=H(`${O}-${g}`,c==null?void 0:c.className,u),X=i.useMemo(()=>{var U,z;if(typeof v=="function"||wt(v))return v||null;if(typeof r.expandIcon=="function"||wt(r.expandIcon))return r.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||wt(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const A=(U=v??(r==null?void 0:r.expandIcon))!==null&&U!==void 0?U:c==null?void 0:c.expandIcon;return ut(A,{className:H(`${O}-submenu-expand-icon`,i.isValidElement(A)?(z=A.props)===null||z===void 0?void 0:z.className:void 0)})},[v,r==null?void 0:r.expandIcon,c==null?void 0:c.expandIcon,O]),J=i.useMemo(()=>({prefixCls:O,inlineCollapsed:P||!1,direction:s,firstLevel:!0,theme:g,mode:T,disableMenuItemTitleTooltip:p}),[O,P,s,p,g]);return L(i.createElement(st.Provider,{value:null},i.createElement(lt.Provider,{value:J},i.createElement(Xe,Object.assign({getPopupContainer:a,overflowedIndicator:i.createElement(qn,null),overflowedIndicatorPopupClassName:H(O,`${O}-${g}`,h),mode:T,selectable:N,onClick:x},y,{inlineCollapsed:P,style:Object.assign(Object.assign({},c==null?void 0:c.style),m),className:F,prefixCls:O,direction:s,defaultMotions:M,expandIcon:X,ref:n,rootClassName:H(w,B,r.rootClassName,k,R),_internalComponents:hi})))))}),Ge=zt((e,n)=>{const t=Le(null),o=i.useContext(Gn);return xn(n,()=>({menu:t.current,focus:r=>{var l;(l=t.current)===null||l===void 0||l.focus(r)}})),i.createElement($i,Object.assign({ref:t},e,o))});Ge.Item=Yn;Ge.SubMenu=Zn;Ge.Divider=Un;Ge.ItemGroup=Vt;const Ci=e=>{const{componentCls:n,menuCls:t,colorError:o,colorTextLightSolid:r}=e,l=`${t}-item`;return{[`${n}, ${n}-menu-submenu`]:{[`${t} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}},yi=e=>{const{componentCls:n,menuCls:t,zIndexPopup:o,dropdownArrowDistance:r,sizePopupArrow:l,antCls:a,iconCls:s,motionDurationMid:c,paddingBlock:d,fontSize:f,dropdownEdgeChildPadding:u,colorTextDisabled:m,fontSizeIcon:g,controlPaddingHorizontal:v,colorBgElevated:p}=e;return[{[n]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:e.calc(l).div(2).sub(r).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:g}},[`${n}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:g},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${n}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${n}-placement-bottomLeft,
12
+ `]:{opacity:0},[`${n}-item-icon, ${t}`]:{margin:0,fontSize:b,lineHeight:z(o),"+ span":{display:"inline-block",opacity:0}}},[`${n}-item-icon, ${t}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${n}-item-icon, ${t}`]:{display:"none"},"a, a:hover":{color:r}},[`${n}-item-group-title`]:Object.assign(Object.assign({},Uo),{paddingInline:g})}}]},Cn=e=>{const{componentCls:n,motionDurationSlow:t,motionDurationMid:o,motionEaseInOut:r,motionEaseOut:l,iconCls:a,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${n}-item, ${n}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${t}`,`background ${t}`,`padding calc(${t} + 0.1s) ${r}`].join(","),[`${n}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${o} ${l}`,`margin ${t} ${r}`,`color ${t}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${t} ${r}`,`margin ${t}`,`color ${t}`].join(",")}},[`${n}-item-icon`]:Object.assign({},Zo()),[`&${n}-item-only-child`]:{[`> ${a}, > ${n}-item-icon`]:{marginInlineEnd:0}}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${n}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},yn=e=>{const{componentCls:n,motionDurationSlow:t,motionEaseInOut:o,borderRadius:r,menuArrowSize:l,menuArrowOffset:a}=e;return{[`${n}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${t} ${o}, opacity ${t}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(l).mul(.6).equal(),height:e.calc(l).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${t} ${o}`,`transform ${t} ${o}`,`top ${t} ${o}`,`color ${t} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${z(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${z(a)})`}}}}},pi=e=>{const{antCls:n,componentCls:t,fontSize:o,motionDurationSlow:r,motionDurationMid:l,motionEaseInOut:a,paddingXS:s,padding:c,colorSplit:d,lineWidth:f,zIndexPopup:u,borderRadiusLG:m,subMenuItemBorderRadius:g,menuArrowSize:v,menuArrowOffset:p,lineType:b,groupTitleLineHeight:I,groupTitleFontSize:w}=e;return[{"":{[t]:Object.assign(Object.assign({},an()),{"&-hidden":{display:"none"}})},[`${t}-submenu-hidden`]:{display:"none"}},{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Tn(e)),an()),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${t}-item`]:{flex:"none"}},[`${t}-item, ${t}-submenu, ${t}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${t}-item-group-title`]:{padding:`${z(s)} ${z(c)}`,fontSize:w,lineHeight:I,transition:`all ${r}`},[`&-horizontal ${t}-submenu`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`].join(",")},[`${t}-submenu, ${t}-submenu-inline`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`,`padding ${l} ${a}`].join(",")},[`${t}-submenu ${t}-sub`]:{cursor:"initial",transition:[`background ${r} ${a}`,`padding ${r} ${a}`].join(",")},[`${t}-title-content`]:{transition:`color ${r}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${n}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${t}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${t}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${t}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:d,borderStyle:b,borderWidth:0,borderTopWidth:f,marginBlock:f,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Cn(e)),{[`${t}-item-group`]:{[`${t}-item-group-list`]:{margin:0,padding:0,[`${t}-item, ${t}-submenu-title`]:{paddingInline:`${z(e.calc(o).mul(2).equal())} ${z(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:u,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${t}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${t}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},Cn(e)),yn(e)),{[`${t}-item, ${t}-submenu > ${t}-submenu-title`]:{borderRadius:g},[`${t}-submenu-title::after`]:{transition:`transform ${r} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),yn(e)),{[`&-inline-collapsed ${t}-submenu-arrow,
13
+ &-inline ${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${z(p)})`},"&::after":{transform:`rotate(45deg) translateX(${z(e.calc(p).mul(-1).equal())})`}},[`${t}-submenu-open${t}-submenu-inline > ${t}-submenu-title > ${t}-submenu-arrow`]:{transform:`translateY(${z(e.calc(v).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${z(e.calc(p).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${z(p)})`}}})},{[`${n}-layout-header`]:{[t]:{lineHeight:"inherit"}}}]},fi=e=>{var n,t,o;const{colorPrimary:r,colorError:l,colorTextDisabled:a,colorErrorBg:s,colorText:c,colorTextDescription:d,colorBgContainer:f,colorFillAlter:u,colorFillContent:m,lineWidth:g,lineWidthBold:v,controlItemBgActive:p,colorBgTextHover:b,controlHeightLG:I,lineHeight:w,colorBgElevated:S,marginXXS:C,padding:$,fontSize:h,controlHeightSM:E,fontSizeLG:y,colorTextLightSolid:x,colorErrorHover:T}=e,N=(n=e.activeBarWidth)!==null&&n!==void 0?n:0,P=(t=e.activeBarBorderWidth)!==null&&t!==void 0?t:g,M=(o=e.itemMarginInline)!==null&&o!==void 0?o:e.marginXXS,O=new ln(x).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:r,horizontalItemHoverColor:r,colorGroupTitle:d,groupTitleColor:d,colorItemTextSelected:r,itemSelectedColor:r,subMenuItemSelectedColor:r,colorItemTextSelectedHorizontal:r,horizontalItemSelectedColor:r,colorItemBg:f,itemBg:f,colorItemBgHover:b,itemHoverBg:b,colorItemBgActive:m,itemActiveBg:p,colorSubItemBg:u,subMenuItemBg:u,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:N,colorActiveBarHeight:v,activeBarHeight:v,colorActiveBarBorderSize:g,activeBarBorderWidth:P,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:l,dangerItemColor:l,colorDangerItemTextHover:l,dangerItemHoverColor:l,colorDangerItemTextSelected:l,dangerItemSelectedColor:l,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:M,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:I,groupTitleLineHeight:w,collapsedWidth:I*2,popupBg:S,itemMarginBlock:C,itemPaddingInline:$,horizontalLineHeight:`${I*1.15}px`,iconSize:h,iconMarginInlineEnd:E-h,collapsedIconSize:y,groupTitleFontSize:h,darkItemDisabledColor:new ln(x).setA(.25).toRgbString(),darkItemColor:O,darkDangerItemColor:l,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:x,darkItemSelectedBg:r,darkDangerItemSelectedBg:l,darkItemHoverBg:"transparent",darkGroupTitleColor:O,darkItemHoverColor:x,darkDangerItemHoverColor:T,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:l,itemWidth:N?`calc(100% + ${P}px)`:`calc(100% - ${M*2}px)`}},gi=(e,n=e,t=!0)=>Nn("Menu",r=>{const{colorBgElevated:l,controlHeightLG:a,fontSize:s,darkItemColor:c,darkDangerItemColor:d,darkItemBg:f,darkSubMenuItemBg:u,darkItemSelectedColor:m,darkItemSelectedBg:g,darkDangerItemSelectedBg:v,darkItemHoverBg:p,darkGroupTitleColor:b,darkItemHoverColor:I,darkItemDisabledColor:w,darkDangerItemHoverColor:S,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:$,popupBg:h,darkPopupBg:E}=r,y=r.calc(s).div(7).mul(5).equal(),x=Mt(r,{menuArrowSize:y,menuHorizontalHeight:r.calc(a).mul(1.15).equal(),menuArrowOffset:r.calc(y).mul(.25).equal(),menuSubMenuBg:l,calc:r.calc,popupBg:h}),T=Mt(x,{itemColor:c,itemHoverColor:I,groupTitleColor:b,itemSelectedColor:m,subMenuItemSelectedColor:m,itemBg:f,popupBg:E,subMenuItemBg:u,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:w,dangerItemColor:d,dangerItemHoverColor:S,dangerItemSelectedColor:C,dangerItemActiveBg:$,dangerItemSelectedBg:v,menuSubMenuBg:u,horizontalItemSelectedColor:m,horizontalItemSelectedBg:g});return[pi(x),di(x),vi(x),hn(x,"light"),hn(T,"dark"),mi(x),Yo(x),it(x,"slide-up"),it(x,"slide-down"),Bn(x,"zoom-big")]},fi,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:t,unitless:{groupTitleLineHeight:!0}})(e,n),Zn=e=>{var n;const{popupClassName:t,icon:o,title:r,theme:l}=e,a=i.useContext(lt),{prefixCls:s,inlineCollapsed:c,theme:d}=a,f=De();let u;if(!o)u=c&&!f.length&&r&&typeof r=="string"?i.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):i.createElement("span",{className:`${s}-title-content`},r);else{const v=i.isValidElement(r)&&r.type==="span";u=i.createElement(i.Fragment,null,ut(o,{className:H(i.isValidElement(o)?(n=o.props)===null||n===void 0?void 0:n.className:void 0,`${s}-item-icon`)}),v?r:i.createElement("span",{className:`${s}-title-content`},r))}const m=i.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[g]=Dn("Menu");return i.createElement(lt.Provider,{value:m},i.createElement(vt,Object.assign({},we(e,["icon"]),{title:u,popupClassName:H(s,t,`${s}-${l||d}`),popupStyle:Object.assign({zIndex:g},e.popupStyle)})))};var bi=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]]);return t};function wt(e){return e===null||e===!1}const hi={item:Yn,submenu:Zn,divider:Un},$i=Dt((e,n)=>{var t;const o=i.useContext(st),r=o||{},{getPrefixCls:l,getPopupContainer:a,direction:s,menu:c}=i.useContext(ct),d=l(),{prefixCls:f,className:u,style:m,theme:g="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:b,siderCollapsed:I,rootClassName:w,mode:S,selectable:C,onClick:$,overflowedIndicatorPopupClassName:h}=e,E=bi(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),y=we(E,["collapsedWidth"]);(t=r.validator)===null||t===void 0||t.call(r,{mode:S});const x=Ot((...U)=>{var D;$==null||$.apply(void 0,U),(D=r.onClick)===null||D===void 0||D.call(r)}),T=r.mode||S,N=C??r.selectable,P=b??I,M={horizontal:{motionName:`${d}-slide-up`},inline:Jo(d),other:{motionName:`${d}-zoom-big`}},O=l("menu",f||r.prefixCls),R=zn(O),[L,B,k]=gi(O,R,!o),F=H(`${O}-${g}`,c==null?void 0:c.className,u),X=i.useMemo(()=>{var U,D;if(typeof v=="function"||wt(v))return v||null;if(typeof r.expandIcon=="function"||wt(r.expandIcon))return r.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||wt(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const A=(U=v??(r==null?void 0:r.expandIcon))!==null&&U!==void 0?U:c==null?void 0:c.expandIcon;return ut(A,{className:H(`${O}-submenu-expand-icon`,i.isValidElement(A)?(D=A.props)===null||D===void 0?void 0:D.className:void 0)})},[v,r==null?void 0:r.expandIcon,c==null?void 0:c.expandIcon,O]),J=i.useMemo(()=>({prefixCls:O,inlineCollapsed:P||!1,direction:s,firstLevel:!0,theme:g,mode:T,disableMenuItemTitleTooltip:p}),[O,P,s,p,g]);return L(i.createElement(st.Provider,{value:null},i.createElement(lt.Provider,{value:J},i.createElement(Xe,Object.assign({getPopupContainer:a,overflowedIndicator:i.createElement(qn,null),overflowedIndicatorPopupClassName:H(O,`${O}-${g}`,h),mode:T,selectable:N,onClick:x},y,{inlineCollapsed:P,style:Object.assign(Object.assign({},c==null?void 0:c.style),m),className:F,prefixCls:O,direction:s,defaultMotions:M,expandIcon:X,ref:n,rootClassName:H(w,B,r.rootClassName,k,R),_internalComponents:hi})))))}),Ge=Dt((e,n)=>{const t=Le(null),o=i.useContext(Gn);return xn(n,()=>({menu:t.current,focus:r=>{var l;(l=t.current)===null||l===void 0||l.focus(r)}})),i.createElement($i,Object.assign({ref:t},e,o))});Ge.Item=Yn;Ge.SubMenu=Zn;Ge.Divider=Un;Ge.ItemGroup=Vt;const Ci=e=>{const{componentCls:n,menuCls:t,colorError:o,colorTextLightSolid:r}=e,l=`${t}-item`;return{[`${n}, ${n}-menu-submenu`]:{[`${t} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}},yi=e=>{const{componentCls:n,menuCls:t,zIndexPopup:o,dropdownArrowDistance:r,sizePopupArrow:l,antCls:a,iconCls:s,motionDurationMid:c,paddingBlock:d,fontSize:f,dropdownEdgeChildPadding:u,colorTextDisabled:m,fontSizeIcon:g,controlPaddingHorizontal:v,colorBgElevated:p}=e;return[{[n]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:e.calc(l).div(2).sub(r).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:g}},[`${n}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:g},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${n}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${n}-placement-bottomLeft,
14
14
  &${a}-slide-down-appear${a}-slide-down-appear-active${n}-placement-bottomLeft,
15
15
  &${a}-slide-down-enter${a}-slide-down-enter-active${n}-placement-bottom,
16
16
  &${a}-slide-down-appear${a}-slide-down-appear-active${n}-placement-bottom,
@@ -24,4 +24,4 @@ import*as i from"react";import ie,{forwardRef as zt,useMemo as Bo,useRef as Le,u
24
24
  &${a}-slide-down-leave${a}-slide-down-leave-active${n}-placement-bottom,
25
25
  &${a}-slide-down-leave${a}-slide-down-leave-active${n}-placement-bottomRight`]:{animationName:er},[`&${a}-slide-up-leave${a}-slide-up-leave-active${n}-placement-topLeft,
26
26
  &${a}-slide-up-leave${a}-slide-up-leave-active${n}-placement-top,
27
- &${a}-slide-up-leave${a}-slide-up-leave-active${n}-placement-topRight`]:{animationName:Qo}}},or(e,p,{arrowPlacement:{top:!0,bottom:!0}}),{[`${n} ${t}`]:{position:"relative",margin:0},[`${t}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${n}, ${n}-menu-submenu`]:Object.assign(Object.assign({},Tn(e)),{[t]:Object.assign(Object.assign({padding:u,listStyleType:"none",backgroundColor:p,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},cn(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${t}-item-group-title`]:{padding:`${D(d)} ${D(v)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${t}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${t}-item-icon`]:{minWidth:f,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${t}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${t}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${t}-item, ${t}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${D(d)} ${D(v)}`,color:e.colorText,fontWeight:"normal",fontSize:f,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},cn(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:p,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${D(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${n}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${n}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:g,fontStyle:"normal"}}}),[`${t}-item-group-list`]:{margin:`0 ${D(e.marginXS)}`,padding:0,listStyle:"none"},[`${t}-submenu-title`]:{paddingInlineEnd:e.calc(v).add(e.fontSizeSM).equal()},[`${t}-submenu-vertical`]:{position:"relative"},[`${t}-submenu${t}-submenu-disabled ${n}-menu-submenu-title`]:{[`&, ${n}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:p,cursor:"not-allowed"}},[`${t}-submenu-selected ${n}-menu-submenu-title`]:{color:e.colorPrimary}})})},[it(e,"slide-up"),it(e,"slide-down"),sn(e,"move-up"),sn(e,"move-down"),Bn(e,"zoom-big")]]},Ii=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},rr({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),ir(e)),Si=Nn("Dropdown",e=>{const{marginXXS:n,sizePopupArrow:t,paddingXXS:o,componentCls:r}=e,l=Mt(e,{menuCls:`${r}-menu`,dropdownArrowDistance:e.calc(t).div(2).add(n).equal(),dropdownEdgeChildPadding:o});return[yi(l),Ci(l)]},Ii,{resetStyle:!1}),pt=e=>{var n;const{menu:t,arrow:o,prefixCls:r,children:l,trigger:a,disabled:s,dropdownRender:c,popupRender:d,getPopupContainer:f,overlayClassName:u,rootClassName:m,overlayStyle:g,open:v,onOpenChange:p,visible:b,onVisibleChange:I,mouseEnterDelay:w=.15,mouseLeaveDelay:S=.1,autoAdjustOverflow:C=!0,placement:$="",overlay:h,transitionName:E,destroyOnHidden:y,destroyPopupOnHide:x}=e,{getPopupContainer:T,getPrefixCls:N,direction:P,dropdown:M}=i.useContext(ct),O=d||c;ar();const R=i.useMemo(()=>{const G=N();return E!==void 0?E:$.includes("top")?`${G}-slide-down`:`${G}-slide-up`},[N,$,E]),L=i.useMemo(()=>$?$.includes("Center")?$.slice(0,$.indexOf("Center")):$:P==="rtl"?"bottomRight":"bottomLeft",[$,P]),B=N("dropdown",r),k=Dn(B),[F,X,J]=Si(B,k),[,U]=lr(),z=i.Children.only(xr(l)?i.createElement("span",null,l):l),A=ut(z,{className:H(`${B}-trigger`,{[`${B}-rtl`]:P==="rtl"},z.props.className),disabled:(n=z.props.disabled)!==null&&n!==void 0?n:s}),_=s?[]:a,Q=!!(_!=null&&_.includes("contextMenu")),[Y,K]=Ve(!1,{value:v??b}),V=Ot(G=>{p==null||p(G,{source:"trigger"}),I==null||I(G),K(G)}),re=H(u,m,X,J,k,M==null?void 0:M.className,{[`${B}-rtl`]:P==="rtl"}),ae=sr({arrowPointAtCenter:typeof o=="object"&&o.pointAtCenter,autoAdjustOverflow:C,offset:U.marginXXS,arrowWidth:o?U.sizePopupArrow:0,borderRadius:U.borderRadius}),Me=Ot(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(p==null||p(!1,{source:"menu"}),K(!1))}),Oe=()=>{let G;return t!=null&&t.items?G=i.createElement(Ge,Object.assign({},t)):typeof h=="function"?G=h():G=h,O&&(G=O(G)),G=i.Children.only(typeof G=="string"?i.createElement("span",null,G):G),i.createElement(ui,{prefixCls:`${B}-menu`,rootClassName:H(J,k),expandIcon:i.createElement("span",{className:`${B}-menu-submenu-arrow`},P==="rtl"?i.createElement(zo,{className:`${B}-menu-submenu-arrow-icon`}):i.createElement(Do,{className:`${B}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Me,validator:({mode:Pe})=>{}},G)},[fe,$e]=zn("Dropdown",g==null?void 0:g.zIndex);let Ce=i.createElement(Sr,Object.assign({alignPoint:Q},we(e,["rootClassName"]),{mouseEnterDelay:w,mouseLeaveDelay:S,visible:Y,builtinPlacements:ae,arrow:!!o,overlayClassName:re,prefixCls:B,getPopupContainer:f||T,transitionName:R,trigger:_,overlay:Oe,placement:L,onVisibleChange:V,overlayStyle:Object.assign(Object.assign(Object.assign({},M==null?void 0:M.style),g),{zIndex:fe}),autoDestroy:y??x}),A);return fe&&(Ce=i.createElement(cr.Provider,{value:$e},Ce)),F(Ce)},xi=ur(pt,"align",void 0,"dropdown",e=>e),wi=e=>i.createElement(xi,Object.assign({},e),i.createElement("span",null));pt._InternalPanelDoNotUseOrYouWillBeFired=wi;function In(e){return["small","middle","large"].includes(e)}function Sn(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Jn=ie.createContext({latestIndex:0}),Mi=Jn.Provider,Oi=({className:e,index:n,children:t,split:o,style:r})=>{const{latestIndex:l}=i.useContext(Jn);return t==null?null:i.createElement(i.Fragment,null,i.createElement("div",{className:e,style:r},t),n<l&&o&&i.createElement("span",{className:`${e}-split`},o))};var Pi=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]]);return t};const Ri=i.forwardRef((e,n)=>{var t;const{getPrefixCls:o,direction:r,size:l,className:a,style:s,classNames:c,styles:d}=dr("space"),{size:f=l??"small",align:u,className:m,rootClassName:g,children:v,direction:p="horizontal",prefixCls:b,split:I,style:w,wrap:S=!1,classNames:C,styles:$}=e,h=Pi(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[E,y]=Array.isArray(f)?f:[f,f],x=In(y),T=In(E),N=Sn(y),P=Sn(E),M=At(v,{keepEmpty:!0}),O=u===void 0&&p==="horizontal"?"center":u,R=o("space",b),[L,B,k]=mr(R),F=H(R,a,B,`${R}-${p}`,{[`${R}-rtl`]:r==="rtl",[`${R}-align-${O}`]:O,[`${R}-gap-row-${y}`]:x,[`${R}-gap-col-${E}`]:T},m,g,k),X=H(`${R}-item`,(t=C==null?void 0:C.item)!==null&&t!==void 0?t:c.item),J=Object.assign(Object.assign({},d.item),$==null?void 0:$.item),U=M.map((_,Q)=>{const Y=(_==null?void 0:_.key)||`${X}-${Q}`;return i.createElement(Oi,{className:X,key:Y,index:Q,split:I,style:J},_)}),z=i.useMemo(()=>({latestIndex:M.reduce((Q,Y,K)=>Y!=null?K:Q,0)}),[M]);if(M.length===0)return null;const A={};return S&&(A.flexWrap="wrap"),!T&&P&&(A.columnGap=E),!x&&N&&(A.rowGap=y),L(i.createElement("div",Object.assign({ref:n,className:F,style:Object.assign(Object.assign(Object.assign({},A),s),w)},h),i.createElement(Mi,{value:z},U)))}),Qn=Ri;Qn.Compact=vr;var Ei=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]]);return t};const eo=e=>{const{getPopupContainer:n,getPrefixCls:t,direction:o}=i.useContext(ct),{prefixCls:r,type:l="default",danger:a,disabled:s,loading:c,onClick:d,htmlType:f,children:u,className:m,menu:g,arrow:v,autoFocus:p,overlay:b,trigger:I,align:w,open:S,onOpenChange:C,placement:$,getPopupContainer:h,href:E,icon:y=i.createElement(qn,null),title:x,buttonsRender:T=ae=>ae,mouseEnterDelay:N,mouseLeaveDelay:P,overlayClassName:M,overlayStyle:O,destroyOnHidden:R,destroyPopupOnHide:L,dropdownRender:B,popupRender:k}=e,F=Ei(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),X=t("dropdown",r),J=`${X}-button`,z={menu:g,arrow:v,autoFocus:p,align:w,disabled:s,trigger:s?[]:I,onOpenChange:C,getPopupContainer:h||n,mouseEnterDelay:N,mouseLeaveDelay:P,overlayClassName:M,overlayStyle:O,destroyOnHidden:R,popupRender:k||B},{compactSize:A,compactItemClassnames:_}=pr(X,o),Q=H(J,_,m);"destroyPopupOnHide"in e&&(z.destroyPopupOnHide=L),"overlay"in e&&(z.overlay=b),"open"in e&&(z.open=S),"placement"in e?z.placement=$:z.placement=o==="rtl"?"bottomLeft":"bottomRight";const Y=i.createElement(un,{type:l,danger:a,disabled:s,loading:c,onClick:d,htmlType:f,href:E,title:x},u),K=i.createElement(un,{type:l,danger:a,icon:y}),[V,re]=T([Y,K]);return i.createElement(Qn.Compact,Object.assign({className:Q,size:A,block:!0},F),V,i.createElement(pt,Object.assign({},z),re))};eo.__ANT_BUTTON=!0;const Ni=pt;Ni.Button=eo;export{Ni as D,Ge as M,ui as O,In as i};
27
+ &${a}-slide-up-leave${a}-slide-up-leave-active${n}-placement-topRight`]:{animationName:Qo}}},or(e,p,{arrowPlacement:{top:!0,bottom:!0}}),{[`${n} ${t}`]:{position:"relative",margin:0},[`${t}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${n}, ${n}-menu-submenu`]:Object.assign(Object.assign({},Tn(e)),{[t]:Object.assign(Object.assign({padding:u,listStyleType:"none",backgroundColor:p,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},cn(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${t}-item-group-title`]:{padding:`${z(d)} ${z(v)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${t}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${t}-item-icon`]:{minWidth:f,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${t}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${t}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${t}-item, ${t}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${z(d)} ${z(v)}`,color:e.colorText,fontWeight:"normal",fontSize:f,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},cn(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:p,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${z(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${n}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${n}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:g,fontStyle:"normal"}}}),[`${t}-item-group-list`]:{margin:`0 ${z(e.marginXS)}`,padding:0,listStyle:"none"},[`${t}-submenu-title`]:{paddingInlineEnd:e.calc(v).add(e.fontSizeSM).equal()},[`${t}-submenu-vertical`]:{position:"relative"},[`${t}-submenu${t}-submenu-disabled ${n}-menu-submenu-title`]:{[`&, ${n}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:p,cursor:"not-allowed"}},[`${t}-submenu-selected ${n}-menu-submenu-title`]:{color:e.colorPrimary}})})},[it(e,"slide-up"),it(e,"slide-down"),sn(e,"move-up"),sn(e,"move-down"),Bn(e,"zoom-big")]]},Ii=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},rr({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),ir(e)),Si=Nn("Dropdown",e=>{const{marginXXS:n,sizePopupArrow:t,paddingXXS:o,componentCls:r}=e,l=Mt(e,{menuCls:`${r}-menu`,dropdownArrowDistance:e.calc(t).div(2).add(n).equal(),dropdownEdgeChildPadding:o});return[yi(l),Ci(l)]},Ii,{resetStyle:!1}),pt=e=>{var n;const{menu:t,arrow:o,prefixCls:r,children:l,trigger:a,disabled:s,dropdownRender:c,popupRender:d,getPopupContainer:f,overlayClassName:u,rootClassName:m,overlayStyle:g,open:v,onOpenChange:p,visible:b,onVisibleChange:I,mouseEnterDelay:w=.15,mouseLeaveDelay:S=.1,autoAdjustOverflow:C=!0,placement:$="",overlay:h,transitionName:E,destroyOnHidden:y,destroyPopupOnHide:x}=e,{getPopupContainer:T,getPrefixCls:N,direction:P,dropdown:M}=i.useContext(ct),O=d||c;ar();const R=i.useMemo(()=>{const G=N();return E!==void 0?E:$.includes("top")?`${G}-slide-down`:`${G}-slide-up`},[N,$,E]),L=i.useMemo(()=>$?$.includes("Center")?$.slice(0,$.indexOf("Center")):$:P==="rtl"?"bottomRight":"bottomLeft",[$,P]),B=N("dropdown",r),k=zn(B),[F,X,J]=Si(B,k),[,U]=lr(),D=i.Children.only(xr(l)?i.createElement("span",null,l):l),A=ut(D,{className:H(`${B}-trigger`,{[`${B}-rtl`]:P==="rtl"},D.props.className),disabled:(n=D.props.disabled)!==null&&n!==void 0?n:s}),_=s?[]:a,Q=!!(_!=null&&_.includes("contextMenu")),[Y,K]=Ve(!1,{value:v??b}),V=Ot(G=>{p==null||p(G,{source:"trigger"}),I==null||I(G),K(G)}),re=H(u,m,X,J,k,M==null?void 0:M.className,{[`${B}-rtl`]:P==="rtl"}),ae=sr({arrowPointAtCenter:typeof o=="object"&&o.pointAtCenter,autoAdjustOverflow:C,offset:U.marginXXS,arrowWidth:o?U.sizePopupArrow:0,borderRadius:U.borderRadius}),Me=Ot(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(p==null||p(!1,{source:"menu"}),K(!1))}),Oe=()=>{let G;return t!=null&&t.items?G=i.createElement(Ge,Object.assign({},t)):typeof h=="function"?G=h():G=h,O&&(G=O(G)),G=i.Children.only(typeof G=="string"?i.createElement("span",null,G):G),i.createElement(ui,{prefixCls:`${B}-menu`,rootClassName:H(J,k),expandIcon:i.createElement("span",{className:`${B}-menu-submenu-arrow`},P==="rtl"?i.createElement(Do,{className:`${B}-menu-submenu-arrow-icon`}):i.createElement(zo,{className:`${B}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Me,validator:({mode:Pe})=>{}},G)},[fe,$e]=Dn("Dropdown",g==null?void 0:g.zIndex);let Ce=i.createElement(Sr,Object.assign({alignPoint:Q},we(e,["rootClassName"]),{mouseEnterDelay:w,mouseLeaveDelay:S,visible:Y,builtinPlacements:ae,arrow:!!o,overlayClassName:re,prefixCls:B,getPopupContainer:f||T,transitionName:R,trigger:_,overlay:Oe,placement:L,onVisibleChange:V,overlayStyle:Object.assign(Object.assign(Object.assign({},M==null?void 0:M.style),g),{zIndex:fe}),autoDestroy:y??x}),A);return fe&&(Ce=i.createElement(cr.Provider,{value:$e},Ce)),F(Ce)},xi=ur(pt,"align",void 0,"dropdown",e=>e),wi=e=>i.createElement(xi,Object.assign({},e),i.createElement("span",null));pt._InternalPanelDoNotUseOrYouWillBeFired=wi;function In(e){return["small","middle","large"].includes(e)}function Sn(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Jn=ie.createContext({latestIndex:0}),Mi=Jn.Provider,Oi=({className:e,index:n,children:t,split:o,style:r})=>{const{latestIndex:l}=i.useContext(Jn);return t==null?null:i.createElement(i.Fragment,null,i.createElement("div",{className:e,style:r},t),n<l&&o&&i.createElement("span",{className:`${e}-split`},o))};var Pi=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]]);return t};const Ri=i.forwardRef((e,n)=>{var t;const{getPrefixCls:o,direction:r,size:l,className:a,style:s,classNames:c,styles:d}=dr("space"),{size:f=l??"small",align:u,className:m,rootClassName:g,children:v,direction:p="horizontal",prefixCls:b,split:I,style:w,wrap:S=!1,classNames:C,styles:$}=e,h=Pi(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[E,y]=Array.isArray(f)?f:[f,f],x=In(y),T=In(E),N=Sn(y),P=Sn(E),M=At(v,{keepEmpty:!0}),O=u===void 0&&p==="horizontal"?"center":u,R=o("space",b),[L,B,k]=mr(R),F=H(R,a,B,`${R}-${p}`,{[`${R}-rtl`]:r==="rtl",[`${R}-align-${O}`]:O,[`${R}-gap-row-${y}`]:x,[`${R}-gap-col-${E}`]:T},m,g,k),X=H(`${R}-item`,(t=C==null?void 0:C.item)!==null&&t!==void 0?t:c.item),J=Object.assign(Object.assign({},d.item),$==null?void 0:$.item),U=M.map((_,Q)=>{const Y=(_==null?void 0:_.key)||`${X}-${Q}`;return i.createElement(Oi,{className:X,key:Y,index:Q,split:I,style:J},_)}),D=i.useMemo(()=>({latestIndex:M.reduce((Q,Y,K)=>Y!=null?K:Q,0)}),[M]);if(M.length===0)return null;const A={};return S&&(A.flexWrap="wrap"),!T&&P&&(A.columnGap=E),!x&&N&&(A.rowGap=y),L(i.createElement("div",Object.assign({ref:n,className:F,style:Object.assign(Object.assign(Object.assign({},A),s),w)},h),i.createElement(Mi,{value:D},U)))}),Qn=Ri;Qn.Compact=vr;var Ei=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]]);return t};const eo=e=>{const{getPopupContainer:n,getPrefixCls:t,direction:o}=i.useContext(ct),{prefixCls:r,type:l="default",danger:a,disabled:s,loading:c,onClick:d,htmlType:f,children:u,className:m,menu:g,arrow:v,autoFocus:p,overlay:b,trigger:I,align:w,open:S,onOpenChange:C,placement:$,getPopupContainer:h,href:E,icon:y=i.createElement(qn,null),title:x,buttonsRender:T=ae=>ae,mouseEnterDelay:N,mouseLeaveDelay:P,overlayClassName:M,overlayStyle:O,destroyOnHidden:R,destroyPopupOnHide:L,dropdownRender:B,popupRender:k}=e,F=Ei(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),X=t("dropdown",r),J=`${X}-button`,D={menu:g,arrow:v,autoFocus:p,align:w,disabled:s,trigger:s?[]:I,onOpenChange:C,getPopupContainer:h||n,mouseEnterDelay:N,mouseLeaveDelay:P,overlayClassName:M,overlayStyle:O,destroyOnHidden:R,popupRender:k||B},{compactSize:A,compactItemClassnames:_}=pr(X,o),Q=H(J,_,m);"destroyPopupOnHide"in e&&(D.destroyPopupOnHide=L),"overlay"in e&&(D.overlay=b),"open"in e&&(D.open=S),"placement"in e?D.placement=$:D.placement=o==="rtl"?"bottomLeft":"bottomRight";const Y=i.createElement(un,{type:l,danger:a,disabled:s,loading:c,onClick:d,htmlType:f,href:E,title:x},u),K=i.createElement(un,{type:l,danger:a,icon:y}),[V,re]=T([Y,K]);return i.createElement(Qn.Compact,Object.assign({className:Q,size:A,block:!0},F),V,i.createElement(pt,Object.assign({},D),re))};eo.__ANT_BUTTON=!0;const Ni=pt;Ni.Button=eo;export{Ni as D,Ge as M,ui as O,In as i};
@@ -1,4 +1,4 @@
1
- import{I as Gt,_ as pe,Q as V,a6 as ct,N as Kt,j as w,V as Ae,K as Ut,am as Xt,L as it,U as Ce,A as z,an as ut,a as dt,m as ft,q as He,r as Yt,ao as mt,C as D,ap as Se,aq as Zt,ar as gt,as as vt,at as Ct,au as Qt,av as Be,aw as Jt,H as ze,ax as pt,ay as en,s as Le,az as De,u as tn,ag as We,aA as yt,aB as nn,aC as bt,Y as on,Z as Ge,a0 as sn,a1 as an,a2 as rn,a3 as ln,aD as cn,n as Ee,ae as un,aE as dn,aF as fn,aG as mn,aH as qe,af as gn,aI as ht,aJ as xt,aK as vn,aL as Cn,aM as pn}from"./index-DCnYE71u.js";import*as a from"react";import j,{useContext as J,useRef as yn,useState as Ke,useEffect as Ue}from"react";import{createPortal as bn}from"react-dom";var hn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},xn=function(t,s){return a.createElement(Gt,pe({},t,{ref:s,icon:hn}))},$t=a.forwardRef(xn),Ot=a.forwardRef(function(e,t){var s=e.prefixCls,n=e.style,o=e.className,r=e.duration,u=r===void 0?4.5:r,i=e.showProgress,l=e.pauseOnHover,d=l===void 0?!0:l,c=e.eventKey,f=e.content,g=e.closable,m=e.closeIcon,C=m===void 0?"x":m,p=e.props,v=e.onClick,h=e.onNoticeClose,y=e.times,b=e.hovering,E=a.useState(!1),S=V(E,2),O=S[0],H=S[1],P=a.useState(0),x=V(P,2),$=x[0],N=x[1],M=a.useState(0),L=V(M,2),k=L[0],U=L[1],T=b||O,R=u>0&&i,W=function(){h(c)},X=function(I){(I.key==="Enter"||I.code==="Enter"||I.keyCode===Ut.ENTER)&&W()};a.useEffect(function(){if(!T&&u>0){var _=Date.now()-k,I=setTimeout(function(){W()},u*1e3-k);return function(){d&&clearTimeout(I),U(Date.now()-_)}}},[u,T,y]),a.useEffect(function(){if(!T&&R&&(d||k===0)){var _=performance.now(),I,F=function de(){cancelAnimationFrame(I),I=requestAnimationFrame(function(fe){var Y=fe+k-_,K=Math.min(Y/(u*1e3),1);N(K*100),K<1&&de()})};return F(),function(){d&&cancelAnimationFrame(I)}}},[u,k,T,R,y]);var ae=a.useMemo(function(){return ct(g)==="object"&&g!==null?g:g?{closeIcon:C}:{}},[g,C]),re=Kt(ae,!0),ee=100-(!$||$<0?0:$>100?100:$),q="".concat(s,"-notice");return a.createElement("div",pe({},p,{ref:t,className:w(q,o,Ae({},"".concat(q,"-closable"),g)),style:n,onMouseEnter:function(I){var F;H(!0),p==null||(F=p.onMouseEnter)===null||F===void 0||F.call(p,I)},onMouseLeave:function(I){var F;H(!1),p==null||(F=p.onMouseLeave)===null||F===void 0||F.call(p,I)},onClick:v}),a.createElement("div",{className:"".concat(q,"-content")},f),g&&a.createElement("a",pe({tabIndex:0,className:"".concat(q,"-close"),onKeyDown:X,"aria-label":"Close"},re,{onClick:function(I){I.preventDefault(),I.stopPropagation(),W()}}),ae.closeIcon),R&&a.createElement("progress",{className:"".concat(q,"-progress"),max:"100",value:ee},ee+"%"))}),Et=j.createContext({}),$n=function(t){var s=t.children,n=t.classNames;return j.createElement(Et.Provider,{value:{classNames:n}},s)},Xe=8,Ye=3,Ze=16,On=function(t){var s={offset:Xe,threshold:Ye,gap:Ze};if(t&&ct(t)==="object"){var n,o,r;s.offset=(n=t.offset)!==null&&n!==void 0?n:Xe,s.threshold=(o=t.threshold)!==null&&o!==void 0?o:Ye,s.gap=(r=t.gap)!==null&&r!==void 0?r:Ze}return[!!t,s]},En=["className","style","classNames","styles"],Sn=function(t){var s=t.configList,n=t.placement,o=t.prefixCls,r=t.className,u=t.style,i=t.motion,l=t.onAllNoticeRemoved,d=t.onNoticeClose,c=t.stack,f=J(Et),g=f.classNames,m=yn({}),C=Ke(null),p=V(C,2),v=p[0],h=p[1],y=Ke([]),b=V(y,2),E=b[0],S=b[1],O=s.map(function(T){return{config:T,key:String(T.key)}}),H=On(c),P=V(H,2),x=P[0],$=P[1],N=$.offset,M=$.threshold,L=$.gap,k=x&&(E.length>0||O.length<=M),U=typeof i=="function"?i(n):i;return Ue(function(){x&&E.length>1&&S(function(T){return T.filter(function(R){return O.some(function(W){var X=W.key;return R===X})})})},[E,O,x]),Ue(function(){var T;if(x&&m.current[(T=O[O.length-1])===null||T===void 0?void 0:T.key]){var R;h(m.current[(R=O[O.length-1])===null||R===void 0?void 0:R.key])}},[O,x]),j.createElement(Xt,pe({key:n,className:w(o,"".concat(o,"-").concat(n),g==null?void 0:g.list,r,Ae(Ae({},"".concat(o,"-stack"),!!x),"".concat(o,"-stack-expanded"),k)),style:u,keys:O,motionAppear:!0},U,{onAllRemoved:function(){l(n)}}),function(T,R){var W=T.config,X=T.className,ae=T.style,re=T.index,ee=W,q=ee.key,_=ee.times,I=String(q),F=W,de=F.className,fe=F.style,Y=F.classNames,K=F.styles,je=it(F,En),me=O.findIndex(function(Oe){return Oe.key===I}),le={};if(x){var te=O.length-1-(me>-1?me:re-1),$e=n==="top"||n==="bottom"?"-50%":"0";if(te>0){var Z,ge,A;le.height=k?(Z=m.current[I])===null||Z===void 0?void 0:Z.offsetHeight:v==null?void 0:v.offsetHeight;for(var ve=0,Q=0;Q<te;Q++){var we;ve+=((we=m.current[O[O.length-1-Q].key])===null||we===void 0?void 0:we.offsetHeight)+L}var Wt=(k?ve:te*N)*(n.startsWith("top")?1:-1),qt=!k&&v!==null&&v!==void 0&&v.offsetWidth&&(ge=m.current[I])!==null&&ge!==void 0&&ge.offsetWidth?((v==null?void 0:v.offsetWidth)-N*2*(te<3?te:3))/((A=m.current[I])===null||A===void 0?void 0:A.offsetWidth):1;le.transform="translate3d(".concat($e,", ").concat(Wt,"px, 0) scaleX(").concat(qt,")")}else le.transform="translate3d(".concat($e,", 0, 0)")}return j.createElement("div",{ref:R,className:w("".concat(o,"-notice-wrapper"),X,Y==null?void 0:Y.wrapper),style:Ce(Ce(Ce({},ae),le),K==null?void 0:K.wrapper),onMouseEnter:function(){return S(function(ne){return ne.includes(I)?ne:[].concat(z(ne),[I])})},onMouseLeave:function(){return S(function(ne){return ne.filter(function(Vt){return Vt!==I})})}},j.createElement(Ot,pe({},je,{ref:function(ne){me>-1?m.current[I]=ne:delete m.current[I]},prefixCls:o,classNames:Y,styles:K,className:w(de,g==null?void 0:g.notice),style:fe,times:_,key:q,eventKey:q,onNoticeClose:d,hovering:x&&E.length>0})))})},Pn=a.forwardRef(function(e,t){var s=e.prefixCls,n=s===void 0?"rc-notification":s,o=e.container,r=e.motion,u=e.maxCount,i=e.className,l=e.style,d=e.onAllRemoved,c=e.stack,f=e.renderNotifications,g=a.useState([]),m=V(g,2),C=m[0],p=m[1],v=function(x){var $,N=C.find(function(M){return M.key===x});N==null||($=N.onClose)===null||$===void 0||$.call(N),p(function(M){return M.filter(function(L){return L.key!==x})})};a.useImperativeHandle(t,function(){return{open:function(x){p(function($){var N=z($),M=N.findIndex(function(U){return U.key===x.key}),L=Ce({},x);if(M>=0){var k;L.times=(((k=$[M])===null||k===void 0?void 0:k.times)||0)+1,N[M]=L}else L.times=0,N.push(L);return u>0&&N.length>u&&(N=N.slice(-u)),N})},close:function(x){v(x)},destroy:function(){p([])}}});var h=a.useState({}),y=V(h,2),b=y[0],E=y[1];a.useEffect(function(){var P={};C.forEach(function(x){var $=x.placement,N=$===void 0?"topRight":$;N&&(P[N]=P[N]||[],P[N].push(x))}),Object.keys(b).forEach(function(x){P[x]=P[x]||[]}),E(P)},[C]);var S=function(x){E(function($){var N=Ce({},$),M=N[x]||[];return M.length||delete N[x],N})},O=a.useRef(!1);if(a.useEffect(function(){Object.keys(b).length>0?O.current=!0:O.current&&(d==null||d(),O.current=!1)},[b]),!o)return null;var H=Object.keys(b);return bn(a.createElement(a.Fragment,null,H.map(function(P){var x=b[P],$=a.createElement(Sn,{key:P,configList:x,placement:P,prefixCls:n,className:i==null?void 0:i(P),style:l==null?void 0:l(P),motion:r,onNoticeClose:v,onAllNoticeRemoved:S,stack:c});return f?f($,{prefixCls:n,key:P}):$})),o)}),Nn=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],kn=function(){return document.body},Qe=0;function jn(){for(var e={},t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return s.forEach(function(o){o&&Object.keys(o).forEach(function(r){var u=o[r];u!==void 0&&(e[r]=u)})}),e}function wn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,s=t===void 0?kn:t,n=e.motion,o=e.prefixCls,r=e.maxCount,u=e.className,i=e.style,l=e.onAllRemoved,d=e.stack,c=e.renderNotifications,f=it(e,Nn),g=a.useState(),m=V(g,2),C=m[0],p=m[1],v=a.useRef(),h=a.createElement(Pn,{container:C,ref:v,prefixCls:o,motion:n,maxCount:r,className:u,style:i,onAllRemoved:l,stack:d,renderNotifications:c}),y=a.useState([]),b=V(y,2),E=b[0],S=b[1],O=ut(function(P){var x=jn(f,P);(x.key===null||x.key===void 0)&&(x.key="rc-notification-".concat(Qe),Qe+=1),S(function($){return[].concat(z($),[{type:"open",config:x}])})}),H=a.useMemo(function(){return{open:O,close:function(x){S(function($){return[].concat(z($),[{type:"close",key:x}])})},destroy:function(){S(function(x){return[].concat(z(x),[{type:"destroy"}])})}}},[]);return a.useEffect(function(){p(s())}),a.useEffect(function(){if(v.current&&E.length){E.forEach(function($){switch($.type){case"open":v.current.open($.config);break;case"close":v.current.close($.key);break;case"destroy":v.current.destroy();break}});var P,x;S(function($){return(P!==$||!x)&&(P=$,x=$.filter(function(N){return!E.includes(N)})),x})}},[E]),[H,h]}const In=()=>{const[e,t]=a.useState([]),s=a.useCallback(n=>(t(o=>[].concat(z(o),[n])),()=>{t(o=>o.filter(r=>r!==n))}),[]);return[e,s]},Rn=e=>{const{componentCls:t,iconCls:s,boxShadow:n,colorText:o,colorSuccess:r,colorError:u,colorWarning:i,colorInfo:l,fontSizeLG:d,motionEaseInOutCirc:c,motionDurationSlow:f,marginXS:g,paddingXS:m,borderRadiusLG:C,zIndexPopup:p,contentPadding:v,contentBg:h}=e,y=`${t}-notice`,b=new He("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:m,transform:"translateY(0)",opacity:1}}),E=new He("MessageMoveOut",{"0%":{maxHeight:e.height,padding:m,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),S={padding:m,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${s}`]:{marginInlineEnd:g,fontSize:d},[`${y}-content`]:{display:"inline-block",padding:v,background:h,borderRadius:C,boxShadow:n,pointerEvents:"all"},[`${t}-success > ${s}`]:{color:r},[`${t}-error > ${s}`]:{color:u},[`${t}-warning > ${s}`]:{color:i},[`${t}-info > ${s},
1
+ import{I as Gt,_ as pe,Q as V,a5 as ct,N as Kt,j as w,V as Ae,K as Ut,al as Xt,L as it,U as Ce,A as z,am as ut,a as dt,m as ft,q as He,r as Yt,an as mt,C as D,ao as Se,ap as Zt,aq as gt,ar as vt,as as Ct,at as Qt,au as Be,av as Jt,H as ze,aw as pt,ax as en,s as Le,ay as De,u as tn,af as We,az as yt,aA as nn,aB as bt,Y as on,Z as Ge,a0 as sn,a1 as an,a2 as rn,a3 as ln,aC as cn,n as Ee,ad as un,aD as dn,aE as fn,aF as mn,aG as qe,ae as gn,aH as ht,aI as xt,aJ as vn,aK as Cn,aL as pn}from"./index-DfjY9fMd.js";import*as a from"react";import j,{useContext as J,useRef as yn,useState as Ke,useEffect as Ue}from"react";import{createPortal as bn}from"react-dom";var hn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},xn=function(t,s){return a.createElement(Gt,pe({},t,{ref:s,icon:hn}))},$t=a.forwardRef(xn),Ot=a.forwardRef(function(e,t){var s=e.prefixCls,n=e.style,o=e.className,r=e.duration,u=r===void 0?4.5:r,i=e.showProgress,l=e.pauseOnHover,d=l===void 0?!0:l,c=e.eventKey,f=e.content,g=e.closable,m=e.closeIcon,C=m===void 0?"x":m,p=e.props,v=e.onClick,h=e.onNoticeClose,y=e.times,b=e.hovering,E=a.useState(!1),S=V(E,2),O=S[0],H=S[1],P=a.useState(0),x=V(P,2),$=x[0],N=x[1],M=a.useState(0),L=V(M,2),k=L[0],U=L[1],T=b||O,R=u>0&&i,W=function(){h(c)},X=function(I){(I.key==="Enter"||I.code==="Enter"||I.keyCode===Ut.ENTER)&&W()};a.useEffect(function(){if(!T&&u>0){var _=Date.now()-k,I=setTimeout(function(){W()},u*1e3-k);return function(){d&&clearTimeout(I),U(Date.now()-_)}}},[u,T,y]),a.useEffect(function(){if(!T&&R&&(d||k===0)){var _=performance.now(),I,F=function de(){cancelAnimationFrame(I),I=requestAnimationFrame(function(fe){var Y=fe+k-_,K=Math.min(Y/(u*1e3),1);N(K*100),K<1&&de()})};return F(),function(){d&&cancelAnimationFrame(I)}}},[u,k,T,R,y]);var ae=a.useMemo(function(){return ct(g)==="object"&&g!==null?g:g?{closeIcon:C}:{}},[g,C]),re=Kt(ae,!0),ee=100-(!$||$<0?0:$>100?100:$),q="".concat(s,"-notice");return a.createElement("div",pe({},p,{ref:t,className:w(q,o,Ae({},"".concat(q,"-closable"),g)),style:n,onMouseEnter:function(I){var F;H(!0),p==null||(F=p.onMouseEnter)===null||F===void 0||F.call(p,I)},onMouseLeave:function(I){var F;H(!1),p==null||(F=p.onMouseLeave)===null||F===void 0||F.call(p,I)},onClick:v}),a.createElement("div",{className:"".concat(q,"-content")},f),g&&a.createElement("a",pe({tabIndex:0,className:"".concat(q,"-close"),onKeyDown:X,"aria-label":"Close"},re,{onClick:function(I){I.preventDefault(),I.stopPropagation(),W()}}),ae.closeIcon),R&&a.createElement("progress",{className:"".concat(q,"-progress"),max:"100",value:ee},ee+"%"))}),Et=j.createContext({}),$n=function(t){var s=t.children,n=t.classNames;return j.createElement(Et.Provider,{value:{classNames:n}},s)},Xe=8,Ye=3,Ze=16,On=function(t){var s={offset:Xe,threshold:Ye,gap:Ze};if(t&&ct(t)==="object"){var n,o,r;s.offset=(n=t.offset)!==null&&n!==void 0?n:Xe,s.threshold=(o=t.threshold)!==null&&o!==void 0?o:Ye,s.gap=(r=t.gap)!==null&&r!==void 0?r:Ze}return[!!t,s]},En=["className","style","classNames","styles"],Sn=function(t){var s=t.configList,n=t.placement,o=t.prefixCls,r=t.className,u=t.style,i=t.motion,l=t.onAllNoticeRemoved,d=t.onNoticeClose,c=t.stack,f=J(Et),g=f.classNames,m=yn({}),C=Ke(null),p=V(C,2),v=p[0],h=p[1],y=Ke([]),b=V(y,2),E=b[0],S=b[1],O=s.map(function(T){return{config:T,key:String(T.key)}}),H=On(c),P=V(H,2),x=P[0],$=P[1],N=$.offset,M=$.threshold,L=$.gap,k=x&&(E.length>0||O.length<=M),U=typeof i=="function"?i(n):i;return Ue(function(){x&&E.length>1&&S(function(T){return T.filter(function(R){return O.some(function(W){var X=W.key;return R===X})})})},[E,O,x]),Ue(function(){var T;if(x&&m.current[(T=O[O.length-1])===null||T===void 0?void 0:T.key]){var R;h(m.current[(R=O[O.length-1])===null||R===void 0?void 0:R.key])}},[O,x]),j.createElement(Xt,pe({key:n,className:w(o,"".concat(o,"-").concat(n),g==null?void 0:g.list,r,Ae(Ae({},"".concat(o,"-stack"),!!x),"".concat(o,"-stack-expanded"),k)),style:u,keys:O,motionAppear:!0},U,{onAllRemoved:function(){l(n)}}),function(T,R){var W=T.config,X=T.className,ae=T.style,re=T.index,ee=W,q=ee.key,_=ee.times,I=String(q),F=W,de=F.className,fe=F.style,Y=F.classNames,K=F.styles,je=it(F,En),me=O.findIndex(function(Oe){return Oe.key===I}),le={};if(x){var te=O.length-1-(me>-1?me:re-1),$e=n==="top"||n==="bottom"?"-50%":"0";if(te>0){var Z,ge,A;le.height=k?(Z=m.current[I])===null||Z===void 0?void 0:Z.offsetHeight:v==null?void 0:v.offsetHeight;for(var ve=0,Q=0;Q<te;Q++){var we;ve+=((we=m.current[O[O.length-1-Q].key])===null||we===void 0?void 0:we.offsetHeight)+L}var Wt=(k?ve:te*N)*(n.startsWith("top")?1:-1),qt=!k&&v!==null&&v!==void 0&&v.offsetWidth&&(ge=m.current[I])!==null&&ge!==void 0&&ge.offsetWidth?((v==null?void 0:v.offsetWidth)-N*2*(te<3?te:3))/((A=m.current[I])===null||A===void 0?void 0:A.offsetWidth):1;le.transform="translate3d(".concat($e,", ").concat(Wt,"px, 0) scaleX(").concat(qt,")")}else le.transform="translate3d(".concat($e,", 0, 0)")}return j.createElement("div",{ref:R,className:w("".concat(o,"-notice-wrapper"),X,Y==null?void 0:Y.wrapper),style:Ce(Ce(Ce({},ae),le),K==null?void 0:K.wrapper),onMouseEnter:function(){return S(function(ne){return ne.includes(I)?ne:[].concat(z(ne),[I])})},onMouseLeave:function(){return S(function(ne){return ne.filter(function(Vt){return Vt!==I})})}},j.createElement(Ot,pe({},je,{ref:function(ne){me>-1?m.current[I]=ne:delete m.current[I]},prefixCls:o,classNames:Y,styles:K,className:w(de,g==null?void 0:g.notice),style:fe,times:_,key:q,eventKey:q,onNoticeClose:d,hovering:x&&E.length>0})))})},Pn=a.forwardRef(function(e,t){var s=e.prefixCls,n=s===void 0?"rc-notification":s,o=e.container,r=e.motion,u=e.maxCount,i=e.className,l=e.style,d=e.onAllRemoved,c=e.stack,f=e.renderNotifications,g=a.useState([]),m=V(g,2),C=m[0],p=m[1],v=function(x){var $,N=C.find(function(M){return M.key===x});N==null||($=N.onClose)===null||$===void 0||$.call(N),p(function(M){return M.filter(function(L){return L.key!==x})})};a.useImperativeHandle(t,function(){return{open:function(x){p(function($){var N=z($),M=N.findIndex(function(U){return U.key===x.key}),L=Ce({},x);if(M>=0){var k;L.times=(((k=$[M])===null||k===void 0?void 0:k.times)||0)+1,N[M]=L}else L.times=0,N.push(L);return u>0&&N.length>u&&(N=N.slice(-u)),N})},close:function(x){v(x)},destroy:function(){p([])}}});var h=a.useState({}),y=V(h,2),b=y[0],E=y[1];a.useEffect(function(){var P={};C.forEach(function(x){var $=x.placement,N=$===void 0?"topRight":$;N&&(P[N]=P[N]||[],P[N].push(x))}),Object.keys(b).forEach(function(x){P[x]=P[x]||[]}),E(P)},[C]);var S=function(x){E(function($){var N=Ce({},$),M=N[x]||[];return M.length||delete N[x],N})},O=a.useRef(!1);if(a.useEffect(function(){Object.keys(b).length>0?O.current=!0:O.current&&(d==null||d(),O.current=!1)},[b]),!o)return null;var H=Object.keys(b);return bn(a.createElement(a.Fragment,null,H.map(function(P){var x=b[P],$=a.createElement(Sn,{key:P,configList:x,placement:P,prefixCls:n,className:i==null?void 0:i(P),style:l==null?void 0:l(P),motion:r,onNoticeClose:v,onAllNoticeRemoved:S,stack:c});return f?f($,{prefixCls:n,key:P}):$})),o)}),Nn=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],kn=function(){return document.body},Qe=0;function jn(){for(var e={},t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return s.forEach(function(o){o&&Object.keys(o).forEach(function(r){var u=o[r];u!==void 0&&(e[r]=u)})}),e}function wn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,s=t===void 0?kn:t,n=e.motion,o=e.prefixCls,r=e.maxCount,u=e.className,i=e.style,l=e.onAllRemoved,d=e.stack,c=e.renderNotifications,f=it(e,Nn),g=a.useState(),m=V(g,2),C=m[0],p=m[1],v=a.useRef(),h=a.createElement(Pn,{container:C,ref:v,prefixCls:o,motion:n,maxCount:r,className:u,style:i,onAllRemoved:l,stack:d,renderNotifications:c}),y=a.useState([]),b=V(y,2),E=b[0],S=b[1],O=ut(function(P){var x=jn(f,P);(x.key===null||x.key===void 0)&&(x.key="rc-notification-".concat(Qe),Qe+=1),S(function($){return[].concat(z($),[{type:"open",config:x}])})}),H=a.useMemo(function(){return{open:O,close:function(x){S(function($){return[].concat(z($),[{type:"close",key:x}])})},destroy:function(){S(function(x){return[].concat(z(x),[{type:"destroy"}])})}}},[]);return a.useEffect(function(){p(s())}),a.useEffect(function(){if(v.current&&E.length){E.forEach(function($){switch($.type){case"open":v.current.open($.config);break;case"close":v.current.close($.key);break;case"destroy":v.current.destroy();break}});var P,x;S(function($){return(P!==$||!x)&&(P=$,x=$.filter(function(N){return!E.includes(N)})),x})}},[E]),[H,h]}const In=()=>{const[e,t]=a.useState([]),s=a.useCallback(n=>(t(o=>[].concat(z(o),[n])),()=>{t(o=>o.filter(r=>r!==n))}),[]);return[e,s]},Rn=e=>{const{componentCls:t,iconCls:s,boxShadow:n,colorText:o,colorSuccess:r,colorError:u,colorWarning:i,colorInfo:l,fontSizeLG:d,motionEaseInOutCirc:c,motionDurationSlow:f,marginXS:g,paddingXS:m,borderRadiusLG:C,zIndexPopup:p,contentPadding:v,contentBg:h}=e,y=`${t}-notice`,b=new He("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:m,transform:"translateY(0)",opacity:1}}),E=new He("MessageMoveOut",{"0%":{maxHeight:e.height,padding:m,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),S={padding:m,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${s}`]:{marginInlineEnd:g,fontSize:d},[`${y}-content`]:{display:"inline-block",padding:v,background:h,borderRadius:C,boxShadow:n,pointerEvents:"all"},[`${t}-success > ${s}`]:{color:r},[`${t}-error > ${s}`]:{color:u},[`${t}-warning > ${s}`]:{color:i},[`${t}-info > ${s},
2
2
  ${t}-loading > ${s}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},Yt(e)),{color:o,position:"fixed",top:g,width:"100%",pointerEvents:"none",zIndex:p,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
3
3
  ${t}-move-up-appear,
4
4
  ${t}-move-up-enter
@@ -1,4 +1,4 @@
1
- import{c as F,a as G,m as U,i as X,b as Y,r as Z,P as q,e as J,h as Q,C as ee,j as x,k as te,u as oe,l as ne,T as re,n as ae,o as se,K as le}from"./index-DCnYE71u.js";import*as s from"react";import{isValidElement as ie}from"react";import"react-dom";/**
1
+ import{c as F,a as G,m as U,i as X,b as Y,r as Z,P as q,e as J,h as Q,C as ee,j as x,k as te,u as oe,l as ne,T as re,n as ae,o as se,K as le}from"./index-DfjY9fMd.js";import*as s from"react";import{isValidElement as ie}from"react";import"react-dom";/**
2
2
  * @license lucide-react v0.456.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import*as a from"react";import c,{useEffect as Kt,useMemo as Vt}from"react";import{I as pt,_ as k,Q as we,K as Q,j as E,V as X,l as it,N as Gt,a6 as Jt,U as Ft,a as vt,m as ht,a7 as Ut,r as ft,s as $,a8 as nt,$ as Qt,a9 as Yt,aa as Zt,ab as kt,ac as ei,ad as ti,ae as ii,B as ni,af as ai,u as St,y as ri,ag as oi,ah as li,S as ci,W as si,o as ui,q as bt}from"./index-DCnYE71u.js";import{R as at,a as rt}from"./LeftOutlined-DbVWaJal.js";function di(e,t,n){var i=n||{},r=i.noTrailing,g=r===void 0?!1:r,h=i.noLeading,f=h===void 0?!1:h,m=i.debounceMode,y=m===void 0?void 0:m,S,d=!1,x=0;function O(){S&&clearTimeout(S)}function _(v){var N=v||{},I=N.upcomingOnly,R=I===void 0?!1:I;O(),d=!R}function j(){for(var v=arguments.length,N=new Array(v),I=0;I<v;I++)N[I]=arguments[I];var R=this,W=Date.now()-x;if(d)return;function l(){x=Date.now(),t.apply(R,N)}function z(){S=void 0}!f&&y&&!S&&l(),O(),y===void 0&&W>e?f?(x=Date.now(),g||(S=setTimeout(y?z:l,e))):l():g!==!0&&(S=setTimeout(y?z:l,y===void 0?e-W:e))}return j.cancel=_,j}function mi(e,t,n){var i={},r=i.atBegin,g=r===void 0?!1:r;return di(e,t,{debounceMode:g!==!1})}var gi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},pi=function(t,n){return a.createElement(pt,k({},t,{ref:n,icon:gi}))},ot=a.forwardRef(pi),vi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},hi=function(t,n){return a.createElement(pt,k({},t,{ref:n,icon:vi}))},lt=a.forwardRef(hi),fi={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"},Si=[10,20,50,100],bi=function(t){var n=t.pageSizeOptions,i=n===void 0?Si:n,r=t.locale,g=t.changeSize,h=t.pageSize,f=t.goButton,m=t.quickGo,y=t.rootPrefixCls,S=t.disabled,d=t.buildOptionText,x=t.showSizeChanger,O=t.sizeChangerRender,_=c.useState(""),j=we(_,2),v=j[0],N=j[1],I=function(){return!v||Number.isNaN(v)?void 0:Number(v)},R=typeof d=="function"?d:function(p){return"".concat(p," ").concat(r.items_per_page)},W=function(b){N(b.target.value)},l=function(b){f||v===""||(N(""),!(b.relatedTarget&&(b.relatedTarget.className.indexOf("".concat(y,"-item-link"))>=0||b.relatedTarget.className.indexOf("".concat(y,"-item"))>=0))&&(m==null||m(I())))},z=function(b){v!==""&&(b.keyCode===Q.ENTER||b.type==="click")&&(N(""),m==null||m(I()))},K=function(){return i.some(function(b){return b.toString()===h.toString()})?i:i.concat([h]).sort(function(b,A){var ee=Number.isNaN(Number(b))?0:Number(b),V=Number.isNaN(Number(A))?0:Number(A);return ee-V})},P="".concat(y,"-options");if(!x&&!m)return null;var M=null,H=null,G=null;return x&&O&&(M=O({disabled:S,size:h,onSizeChange:function(b){g==null||g(Number(b))},"aria-label":r.page_size,className:"".concat(P,"-size-changer"),options:K().map(function(p){return{label:R(p),value:p}})})),m&&(f&&(G=typeof f=="boolean"?c.createElement("button",{type:"button",onClick:z,onKeyUp:z,disabled:S,className:"".concat(P,"-quick-jumper-button")},r.jump_to_confirm):c.createElement("span",{onClick:z,onKeyUp:z},f)),H=c.createElement("div",{className:"".concat(P,"-quick-jumper")},r.jump_to,c.createElement("input",{disabled:S,type:"text",value:v,onChange:W,onKeyUp:z,onBlur:l,"aria-label":r.page}),r.page,G)),c.createElement("li",{className:P},M,H)},ve=function(t){var n=t.rootPrefixCls,i=t.page,r=t.active,g=t.className,h=t.showTitle,f=t.onClick,m=t.onKeyPress,y=t.itemRender,S="".concat(n,"-item"),d=E(S,"".concat(S,"-").concat(i),X(X({},"".concat(S,"-active"),r),"".concat(S,"-disabled"),!i),g),x=function(){f(i)},O=function(v){m(v,f,i)},_=y(i,"page",c.createElement("a",{rel:"nofollow"},i));return _?c.createElement("li",{title:h?String(i):null,className:d,onClick:x,onKeyDown:O,tabIndex:0},_):null},$i=function(t,n,i){return i};function ct(){}function st(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function ae(e,t,n){var i=typeof e>"u"?t:e;return Math.floor((n-1)/i)+1}var Ci=function(t){var n=t.prefixCls,i=n===void 0?"rc-pagination":n,r=t.selectPrefixCls,g=r===void 0?"rc-select":r,h=t.className,f=t.current,m=t.defaultCurrent,y=m===void 0?1:m,S=t.total,d=S===void 0?0:S,x=t.pageSize,O=t.defaultPageSize,_=O===void 0?10:O,j=t.onChange,v=j===void 0?ct:j,N=t.hideOnSinglePage,I=t.align,R=t.showPrevNextJumpers,W=R===void 0?!0:R,l=t.showQuickJumper,z=t.showLessItems,K=t.showTitle,P=K===void 0?!0:K,M=t.onShowSizeChange,H=M===void 0?ct:M,G=t.locale,p=G===void 0?fi:G,b=t.style,A=t.totalBoundaryShowSizeChanger,ee=A===void 0?50:A,V=t.disabled,D=t.simple,L=t.showTotal,Y=t.showSizeChanger,je=Y===void 0?d>ee:Y,Be=t.sizeChangerRender,Me=t.pageSizeOptions,he=t.itemRender,te=he===void 0?$i:he,fe=t.jumpPrevIcon,J=t.jumpNextIcon,ie=t.prevIcon,le=t.nextIcon,ce=c.useRef(null),ne=it(10,{value:x,defaultValue:_}),Se=we(ne,2),B=Se[0],be=Se[1],Te=it(1,{value:f,defaultValue:y,postState:function(u){return Math.max(1,Math.min(u,ae(void 0,B,d)))}}),re=we(Te,2),s=re[0],F=re[1],De=c.useState(s),qe=we(De,2),oe=qe[0],$e=qe[1];Kt(function(){$e(s)},[s]);var Xe=Math.max(1,s-(z?3:5)),We=Math.min(ae(void 0,B,d),s+(z?3:5));function Ce(o,u){var C=o||c.createElement("button",{type:"button","aria-label":u,className:"".concat(i,"-item-link")});return typeof o=="function"&&(C=c.createElement(o,Ft({},t))),C}function Ke(o){var u=o.target.value,C=ae(void 0,B,d),Z;return u===""?Z=u:Number.isNaN(Number(u))?Z=oe:u>=C?Z=C:Z=Number(u),Z}function Nt(o){return st(o)&&o!==s&&st(d)&&d>0}var Et=d>B?l:!1;function It(o){(o.keyCode===Q.UP||o.keyCode===Q.DOWN)&&o.preventDefault()}function Ve(o){var u=Ke(o);switch(u!==oe&&$e(u),o.keyCode){case Q.ENTER:q(u);break;case Q.UP:q(u-1);break;case Q.DOWN:q(u+1);break}}function Pt(o){q(Ke(o))}function wt(o){var u=ae(o,B,d),C=s>u&&u!==0?u:s;be(o),$e(C),H==null||H(s,o),F(C),v==null||v(C,o)}function q(o){if(Nt(o)&&!V){var u=ae(void 0,B,d),C=o;return o>u?C=u:o<1&&(C=1),C!==oe&&$e(C),F(C),v==null||v(C,B),C}return s}var ye=s>1,xe=s<ae(void 0,B,d);function Ge(){ye&&q(s-1)}function Je(){xe&&q(s+1)}function Fe(){q(Xe)}function Ue(){q(We)}function se(o,u){if(o.key==="Enter"||o.charCode===Q.ENTER||o.keyCode===Q.ENTER){for(var C=arguments.length,Z=new Array(C>2?C-2:0),Pe=2;Pe<C;Pe++)Z[Pe-2]=arguments[Pe];u.apply(void 0,Z)}}function Ot(o){se(o,Ge)}function jt(o){se(o,Je)}function Bt(o){se(o,Fe)}function Mt(o){se(o,Ue)}function Tt(o){var u=te(o,"prev",Ce(ie,"prev page"));return c.isValidElement(u)?c.cloneElement(u,{disabled:!ye}):u}function Dt(o){var u=te(o,"next",Ce(le,"next page"));return c.isValidElement(u)?c.cloneElement(u,{disabled:!xe}):u}function ze(o){(o.type==="click"||o.keyCode===Q.ENTER)&&q(oe)}var Qe=null,_t=Gt(t,{aria:!0,data:!0}),Rt=L&&c.createElement("li",{className:"".concat(i,"-total-text")},L(d,[d===0?0:(s-1)*B+1,s*B>d?d:s*B])),Ye=null,w=ae(void 0,B,d);if(N&&d<=B)return null;var T=[],ue={rootPrefixCls:i,onClick:q,onKeyPress:se,showTitle:P,itemRender:te,page:-1},Ht=s-1>0?s-1:0,At=s+1<w?s+1:w,Ne=l&&l.goButton,Lt=Jt(D)==="object"?D.readOnly:!D,de=Ne,Ze=null;D&&(Ne&&(typeof Ne=="boolean"?de=c.createElement("button",{type:"button",onClick:ze,onKeyUp:ze},p.jump_to_confirm):de=c.createElement("span",{onClick:ze,onKeyUp:ze},Ne),de=c.createElement("li",{title:P?"".concat(p.jump_to).concat(s,"/").concat(w):null,className:"".concat(i,"-simple-pager")},de)),Ze=c.createElement("li",{title:P?"".concat(s,"/").concat(w):null,className:"".concat(i,"-simple-pager")},Lt?oe:c.createElement("input",{type:"text","aria-label":p.jump_to,value:oe,disabled:V,onKeyDown:It,onKeyUp:Ve,onChange:Ve,onBlur:Pt,size:3}),c.createElement("span",{className:"".concat(i,"-slash")},"/"),w));var U=z?1:2;if(w<=3+U*2){w||T.push(c.createElement(ve,k({},ue,{key:"noPager",page:1,className:"".concat(i,"-item-disabled")})));for(var me=1;me<=w;me+=1)T.push(c.createElement(ve,k({},ue,{key:me,page:me,active:s===me})))}else{var qt=z?p.prev_3:p.prev_5,Xt=z?p.next_3:p.next_5,ke=te(Xe,"jump-prev",Ce(fe,"prev page")),et=te(We,"jump-next",Ce(J,"next page"));W&&(Qe=ke?c.createElement("li",{title:P?qt:null,key:"prev",onClick:Fe,tabIndex:0,onKeyDown:Bt,className:E("".concat(i,"-jump-prev"),X({},"".concat(i,"-jump-prev-custom-icon"),!!fe))},ke):null,Ye=et?c.createElement("li",{title:P?Xt:null,key:"next",onClick:Ue,tabIndex:0,onKeyDown:Mt,className:E("".concat(i,"-jump-next"),X({},"".concat(i,"-jump-next-custom-icon"),!!J))},et):null);var _e=Math.max(1,s-U),Re=Math.min(s+U,w);s-1<=U&&(Re=1+U*2),w-s<=U&&(_e=w-U*2);for(var ge=_e;ge<=Re;ge+=1)T.push(c.createElement(ve,k({},ue,{key:ge,page:ge,active:s===ge})));if(s-1>=U*2&&s!==3&&(T[0]=c.cloneElement(T[0],{className:E("".concat(i,"-item-after-jump-prev"),T[0].props.className)}),T.unshift(Qe)),w-s>=U*2&&s!==w-2){var tt=T[T.length-1];T[T.length-1]=c.cloneElement(tt,{className:E("".concat(i,"-item-before-jump-next"),tt.props.className)}),T.push(Ye)}_e!==1&&T.unshift(c.createElement(ve,k({},ue,{key:1,page:1}))),Re!==w&&T.push(c.createElement(ve,k({},ue,{key:w,page:w})))}var Ee=Tt(Ht);if(Ee){var He=!ye||!w;Ee=c.createElement("li",{title:P?p.prev_page:null,onClick:Ge,tabIndex:He?null:0,onKeyDown:Ot,className:E("".concat(i,"-prev"),X({},"".concat(i,"-disabled"),He)),"aria-disabled":He},Ee)}var Ie=Dt(At);if(Ie){var pe,Ae;D?(pe=!xe,Ae=ye?0:null):(pe=!xe||!w,Ae=pe?null:0),Ie=c.createElement("li",{title:P?p.next_page:null,onClick:Je,tabIndex:Ae,onKeyDown:jt,className:E("".concat(i,"-next"),X({},"".concat(i,"-disabled"),pe)),"aria-disabled":pe},Ie)}var Wt=E(i,h,X(X(X(X(X({},"".concat(i,"-start"),I==="start"),"".concat(i,"-center"),I==="center"),"".concat(i,"-end"),I==="end"),"".concat(i,"-simple"),D),"".concat(i,"-disabled"),V));return c.createElement("ul",k({className:Wt,style:b,ref:ce},_t),Rt,Ee,D?Ze:T,Ie,c.createElement(bi,{locale:p,rootPrefixCls:i,disabled:V,selectPrefixCls:g,changeSize:wt,pageSize:B,pageSizeOptions:Me,quickGo:Et?q:null,goButton:de,showSizeChanger:je,sizeChangerRender:Be}))};const yi=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},xi=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:$(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:$(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:$(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
1
+ import*as a from"react";import c,{useEffect as Kt,useMemo as Vt}from"react";import{I as pt,_ as k,Q as we,K as Q,j as E,V as X,l as it,N as Gt,a5 as Jt,U as Ft,a as vt,m as ht,a6 as Ut,r as ft,s as $,a7 as nt,$ as Qt,a8 as Yt,a9 as Zt,aa as kt,ab as ei,ac as ti,ad as ii,B as ni,ae as ai,u as St,y as ri,af as oi,ag as li,S as ci,W as si,o as ui,q as bt}from"./index-DfjY9fMd.js";import{R as at,a as rt}from"./LeftOutlined-e0IEJaBy.js";function di(e,t,n){var i=n||{},r=i.noTrailing,g=r===void 0?!1:r,h=i.noLeading,f=h===void 0?!1:h,m=i.debounceMode,y=m===void 0?void 0:m,S,d=!1,x=0;function O(){S&&clearTimeout(S)}function _(v){var N=v||{},I=N.upcomingOnly,R=I===void 0?!1:I;O(),d=!R}function j(){for(var v=arguments.length,N=new Array(v),I=0;I<v;I++)N[I]=arguments[I];var R=this,W=Date.now()-x;if(d)return;function l(){x=Date.now(),t.apply(R,N)}function z(){S=void 0}!f&&y&&!S&&l(),O(),y===void 0&&W>e?f?(x=Date.now(),g||(S=setTimeout(y?z:l,e))):l():g!==!0&&(S=setTimeout(y?z:l,y===void 0?e-W:e))}return j.cancel=_,j}function mi(e,t,n){var i={},r=i.atBegin,g=r===void 0?!1:r;return di(e,t,{debounceMode:g!==!1})}var gi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},pi=function(t,n){return a.createElement(pt,k({},t,{ref:n,icon:gi}))},ot=a.forwardRef(pi),vi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},hi=function(t,n){return a.createElement(pt,k({},t,{ref:n,icon:vi}))},lt=a.forwardRef(hi),fi={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"},Si=[10,20,50,100],bi=function(t){var n=t.pageSizeOptions,i=n===void 0?Si:n,r=t.locale,g=t.changeSize,h=t.pageSize,f=t.goButton,m=t.quickGo,y=t.rootPrefixCls,S=t.disabled,d=t.buildOptionText,x=t.showSizeChanger,O=t.sizeChangerRender,_=c.useState(""),j=we(_,2),v=j[0],N=j[1],I=function(){return!v||Number.isNaN(v)?void 0:Number(v)},R=typeof d=="function"?d:function(p){return"".concat(p," ").concat(r.items_per_page)},W=function(b){N(b.target.value)},l=function(b){f||v===""||(N(""),!(b.relatedTarget&&(b.relatedTarget.className.indexOf("".concat(y,"-item-link"))>=0||b.relatedTarget.className.indexOf("".concat(y,"-item"))>=0))&&(m==null||m(I())))},z=function(b){v!==""&&(b.keyCode===Q.ENTER||b.type==="click")&&(N(""),m==null||m(I()))},K=function(){return i.some(function(b){return b.toString()===h.toString()})?i:i.concat([h]).sort(function(b,A){var ee=Number.isNaN(Number(b))?0:Number(b),V=Number.isNaN(Number(A))?0:Number(A);return ee-V})},P="".concat(y,"-options");if(!x&&!m)return null;var M=null,H=null,G=null;return x&&O&&(M=O({disabled:S,size:h,onSizeChange:function(b){g==null||g(Number(b))},"aria-label":r.page_size,className:"".concat(P,"-size-changer"),options:K().map(function(p){return{label:R(p),value:p}})})),m&&(f&&(G=typeof f=="boolean"?c.createElement("button",{type:"button",onClick:z,onKeyUp:z,disabled:S,className:"".concat(P,"-quick-jumper-button")},r.jump_to_confirm):c.createElement("span",{onClick:z,onKeyUp:z},f)),H=c.createElement("div",{className:"".concat(P,"-quick-jumper")},r.jump_to,c.createElement("input",{disabled:S,type:"text",value:v,onChange:W,onKeyUp:z,onBlur:l,"aria-label":r.page}),r.page,G)),c.createElement("li",{className:P},M,H)},ve=function(t){var n=t.rootPrefixCls,i=t.page,r=t.active,g=t.className,h=t.showTitle,f=t.onClick,m=t.onKeyPress,y=t.itemRender,S="".concat(n,"-item"),d=E(S,"".concat(S,"-").concat(i),X(X({},"".concat(S,"-active"),r),"".concat(S,"-disabled"),!i),g),x=function(){f(i)},O=function(v){m(v,f,i)},_=y(i,"page",c.createElement("a",{rel:"nofollow"},i));return _?c.createElement("li",{title:h?String(i):null,className:d,onClick:x,onKeyDown:O,tabIndex:0},_):null},$i=function(t,n,i){return i};function ct(){}function st(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function ae(e,t,n){var i=typeof e>"u"?t:e;return Math.floor((n-1)/i)+1}var Ci=function(t){var n=t.prefixCls,i=n===void 0?"rc-pagination":n,r=t.selectPrefixCls,g=r===void 0?"rc-select":r,h=t.className,f=t.current,m=t.defaultCurrent,y=m===void 0?1:m,S=t.total,d=S===void 0?0:S,x=t.pageSize,O=t.defaultPageSize,_=O===void 0?10:O,j=t.onChange,v=j===void 0?ct:j,N=t.hideOnSinglePage,I=t.align,R=t.showPrevNextJumpers,W=R===void 0?!0:R,l=t.showQuickJumper,z=t.showLessItems,K=t.showTitle,P=K===void 0?!0:K,M=t.onShowSizeChange,H=M===void 0?ct:M,G=t.locale,p=G===void 0?fi:G,b=t.style,A=t.totalBoundaryShowSizeChanger,ee=A===void 0?50:A,V=t.disabled,D=t.simple,L=t.showTotal,Y=t.showSizeChanger,je=Y===void 0?d>ee:Y,Be=t.sizeChangerRender,Me=t.pageSizeOptions,he=t.itemRender,te=he===void 0?$i:he,fe=t.jumpPrevIcon,J=t.jumpNextIcon,ie=t.prevIcon,le=t.nextIcon,ce=c.useRef(null),ne=it(10,{value:x,defaultValue:_}),Se=we(ne,2),B=Se[0],be=Se[1],Te=it(1,{value:f,defaultValue:y,postState:function(u){return Math.max(1,Math.min(u,ae(void 0,B,d)))}}),re=we(Te,2),s=re[0],F=re[1],De=c.useState(s),qe=we(De,2),oe=qe[0],$e=qe[1];Kt(function(){$e(s)},[s]);var Xe=Math.max(1,s-(z?3:5)),We=Math.min(ae(void 0,B,d),s+(z?3:5));function Ce(o,u){var C=o||c.createElement("button",{type:"button","aria-label":u,className:"".concat(i,"-item-link")});return typeof o=="function"&&(C=c.createElement(o,Ft({},t))),C}function Ke(o){var u=o.target.value,C=ae(void 0,B,d),Z;return u===""?Z=u:Number.isNaN(Number(u))?Z=oe:u>=C?Z=C:Z=Number(u),Z}function Nt(o){return st(o)&&o!==s&&st(d)&&d>0}var Et=d>B?l:!1;function It(o){(o.keyCode===Q.UP||o.keyCode===Q.DOWN)&&o.preventDefault()}function Ve(o){var u=Ke(o);switch(u!==oe&&$e(u),o.keyCode){case Q.ENTER:q(u);break;case Q.UP:q(u-1);break;case Q.DOWN:q(u+1);break}}function Pt(o){q(Ke(o))}function wt(o){var u=ae(o,B,d),C=s>u&&u!==0?u:s;be(o),$e(C),H==null||H(s,o),F(C),v==null||v(C,o)}function q(o){if(Nt(o)&&!V){var u=ae(void 0,B,d),C=o;return o>u?C=u:o<1&&(C=1),C!==oe&&$e(C),F(C),v==null||v(C,B),C}return s}var ye=s>1,xe=s<ae(void 0,B,d);function Ge(){ye&&q(s-1)}function Je(){xe&&q(s+1)}function Fe(){q(Xe)}function Ue(){q(We)}function se(o,u){if(o.key==="Enter"||o.charCode===Q.ENTER||o.keyCode===Q.ENTER){for(var C=arguments.length,Z=new Array(C>2?C-2:0),Pe=2;Pe<C;Pe++)Z[Pe-2]=arguments[Pe];u.apply(void 0,Z)}}function Ot(o){se(o,Ge)}function jt(o){se(o,Je)}function Bt(o){se(o,Fe)}function Mt(o){se(o,Ue)}function Tt(o){var u=te(o,"prev",Ce(ie,"prev page"));return c.isValidElement(u)?c.cloneElement(u,{disabled:!ye}):u}function Dt(o){var u=te(o,"next",Ce(le,"next page"));return c.isValidElement(u)?c.cloneElement(u,{disabled:!xe}):u}function ze(o){(o.type==="click"||o.keyCode===Q.ENTER)&&q(oe)}var Qe=null,_t=Gt(t,{aria:!0,data:!0}),Rt=L&&c.createElement("li",{className:"".concat(i,"-total-text")},L(d,[d===0?0:(s-1)*B+1,s*B>d?d:s*B])),Ye=null,w=ae(void 0,B,d);if(N&&d<=B)return null;var T=[],ue={rootPrefixCls:i,onClick:q,onKeyPress:se,showTitle:P,itemRender:te,page:-1},Ht=s-1>0?s-1:0,At=s+1<w?s+1:w,Ne=l&&l.goButton,Lt=Jt(D)==="object"?D.readOnly:!D,de=Ne,Ze=null;D&&(Ne&&(typeof Ne=="boolean"?de=c.createElement("button",{type:"button",onClick:ze,onKeyUp:ze},p.jump_to_confirm):de=c.createElement("span",{onClick:ze,onKeyUp:ze},Ne),de=c.createElement("li",{title:P?"".concat(p.jump_to).concat(s,"/").concat(w):null,className:"".concat(i,"-simple-pager")},de)),Ze=c.createElement("li",{title:P?"".concat(s,"/").concat(w):null,className:"".concat(i,"-simple-pager")},Lt?oe:c.createElement("input",{type:"text","aria-label":p.jump_to,value:oe,disabled:V,onKeyDown:It,onKeyUp:Ve,onChange:Ve,onBlur:Pt,size:3}),c.createElement("span",{className:"".concat(i,"-slash")},"/"),w));var U=z?1:2;if(w<=3+U*2){w||T.push(c.createElement(ve,k({},ue,{key:"noPager",page:1,className:"".concat(i,"-item-disabled")})));for(var me=1;me<=w;me+=1)T.push(c.createElement(ve,k({},ue,{key:me,page:me,active:s===me})))}else{var qt=z?p.prev_3:p.prev_5,Xt=z?p.next_3:p.next_5,ke=te(Xe,"jump-prev",Ce(fe,"prev page")),et=te(We,"jump-next",Ce(J,"next page"));W&&(Qe=ke?c.createElement("li",{title:P?qt:null,key:"prev",onClick:Fe,tabIndex:0,onKeyDown:Bt,className:E("".concat(i,"-jump-prev"),X({},"".concat(i,"-jump-prev-custom-icon"),!!fe))},ke):null,Ye=et?c.createElement("li",{title:P?Xt:null,key:"next",onClick:Ue,tabIndex:0,onKeyDown:Mt,className:E("".concat(i,"-jump-next"),X({},"".concat(i,"-jump-next-custom-icon"),!!J))},et):null);var _e=Math.max(1,s-U),Re=Math.min(s+U,w);s-1<=U&&(Re=1+U*2),w-s<=U&&(_e=w-U*2);for(var ge=_e;ge<=Re;ge+=1)T.push(c.createElement(ve,k({},ue,{key:ge,page:ge,active:s===ge})));if(s-1>=U*2&&s!==3&&(T[0]=c.cloneElement(T[0],{className:E("".concat(i,"-item-after-jump-prev"),T[0].props.className)}),T.unshift(Qe)),w-s>=U*2&&s!==w-2){var tt=T[T.length-1];T[T.length-1]=c.cloneElement(tt,{className:E("".concat(i,"-item-before-jump-next"),tt.props.className)}),T.push(Ye)}_e!==1&&T.unshift(c.createElement(ve,k({},ue,{key:1,page:1}))),Re!==w&&T.push(c.createElement(ve,k({},ue,{key:w,page:w})))}var Ee=Tt(Ht);if(Ee){var He=!ye||!w;Ee=c.createElement("li",{title:P?p.prev_page:null,onClick:Ge,tabIndex:He?null:0,onKeyDown:Ot,className:E("".concat(i,"-prev"),X({},"".concat(i,"-disabled"),He)),"aria-disabled":He},Ee)}var Ie=Dt(At);if(Ie){var pe,Ae;D?(pe=!xe,Ae=ye?0:null):(pe=!xe||!w,Ae=pe?null:0),Ie=c.createElement("li",{title:P?p.next_page:null,onClick:Je,tabIndex:Ae,onKeyDown:jt,className:E("".concat(i,"-next"),X({},"".concat(i,"-disabled"),pe)),"aria-disabled":pe},Ie)}var Wt=E(i,h,X(X(X(X(X({},"".concat(i,"-start"),I==="start"),"".concat(i,"-center"),I==="center"),"".concat(i,"-end"),I==="end"),"".concat(i,"-simple"),D),"".concat(i,"-disabled"),V));return c.createElement("ul",k({className:Wt,style:b,ref:ce},_t),Rt,Ee,D?Ze:T,Ie,c.createElement(bi,{locale:p,rootPrefixCls:i,disabled:V,selectPrefixCls:g,changeSize:wt,pageSize:B,pageSizeOptions:Me,quickGo:Et?q:null,goButton:de,showSizeChanger:je,sizeChangerRender:Be}))};const yi=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},xi=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:$(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:$(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:$(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
2
2
  &${t}-mini ${t}-prev ${t}-item-link,
3
3
  &${t}-mini ${t}-next ${t}-item-link
4
4
  `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:$(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:$(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:$(e.itemSizeSM),input:Object.assign(Object.assign({},ti(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},zi=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:$(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:$(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${$(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${$(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${$(e.inputOutlineOffset)} 0 ${$(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:$(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:$(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},Ni=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`